OSDN Git Service

libgo: Apply upstream libtool patch.
[pf3gnuchains/gcc-fork.git] / libgo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRINGOPS_FLAG
606 HAVE_SYS_MMAN_H_FALSE
607 HAVE_SYS_MMAN_H_TRUE
608 PTHREAD_LIBS
609 PTHREAD_CFLAGS
610 NET_LIBS
611 MATH_LIBS
612 USING_SPLIT_STACK_FALSE
613 USING_SPLIT_STACK_TRUE
614 SPLIT_STACK
615 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
616 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
617 GOARCH
618 LIBGO_IS_X86_64_FALSE
619 LIBGO_IS_X86_64_TRUE
620 LIBGO_IS_SPARC64_FALSE
621 LIBGO_IS_SPARC64_TRUE
622 LIBGO_IS_SPARC_FALSE
623 LIBGO_IS_SPARC_TRUE
624 LIBGO_IS_PPC64_FALSE
625 LIBGO_IS_PPC64_TRUE
626 LIBGO_IS_PPC_FALSE
627 LIBGO_IS_PPC_TRUE
628 LIBGO_IS_MIPS64_FALSE
629 LIBGO_IS_MIPS64_TRUE
630 LIBGO_IS_MIPS_FALSE
631 LIBGO_IS_MIPS_TRUE
632 LIBGO_IS_M68K_FALSE
633 LIBGO_IS_M68K_TRUE
634 LIBGO_IS_ARM_FALSE
635 LIBGO_IS_ARM_TRUE
636 LIBGO_IS_386_FALSE
637 LIBGO_IS_386_TRUE
638 GOOS
639 LIBGO_IS_SOLARIS_FALSE
640 LIBGO_IS_SOLARIS_TRUE
641 LIBGO_IS_RTEMS_FALSE
642 LIBGO_IS_RTEMS_TRUE
643 LIBGO_IS_LINUX_FALSE
644 LIBGO_IS_LINUX_TRUE
645 LIBGO_IS_FREEBSD_FALSE
646 LIBGO_IS_FREEBSD_TRUE
647 LIBGO_IS_DARWIN_FALSE
648 LIBGO_IS_DARWIN_TRUE
649 LIBFFIINCS
650 LIBFFI
651 glibgo_toolexeclibdir
652 glibgo_toolexecdir
653 glibgo_prefixdir
654 WERROR
655 WARN_FLAGS
656 enable_static
657 enable_shared
658 CPP
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 AR
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LIBTOOL
671 OBJCOPY
672 RANLIB
673 LD
674 FGREP
675 EGREP
676 GREP
677 SED
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 GOCFLAGS
682 GOC
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 multi_basedir
735 libtool_VERSION
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_multilib
778 enable_dependency_tracking
779 enable_maintainer_mode
780 with_gnu_ld
781 enable_shared
782 enable_static
783 with_pic
784 enable_fast_install
785 enable_libtool_lock
786 enable_version_specific_runtime_libs
787 with_libffi
788 with_system_libunwind
789 '
790       ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CPP
794 CPPFLAGS'
795
796
797 # Initialize some variables set by options.
798 ac_init_help=
799 ac_init_version=false
800 ac_unrecognized_opts=
801 ac_unrecognized_sep=
802 # The variables have the same names as the options, with
803 # dashes changed to underlines.
804 cache_file=/dev/null
805 exec_prefix=NONE
806 no_create=
807 no_recursion=
808 prefix=NONE
809 program_prefix=NONE
810 program_suffix=NONE
811 program_transform_name=s,x,x,
812 silent=
813 site=
814 srcdir=
815 verbose=
816 x_includes=NONE
817 x_libraries=NONE
818
819 # Installation directory options.
820 # These are left unexpanded so users can "make install exec_prefix=/foo"
821 # and all the variables that are supposed to be based on exec_prefix
822 # by default will actually change.
823 # Use braces instead of parens because sh, perl, etc. also accept them.
824 # (The list follows the same order as the GNU Coding Standards.)
825 bindir='${exec_prefix}/bin'
826 sbindir='${exec_prefix}/sbin'
827 libexecdir='${exec_prefix}/libexec'
828 datarootdir='${prefix}/share'
829 datadir='${datarootdir}'
830 sysconfdir='${prefix}/etc'
831 sharedstatedir='${prefix}/com'
832 localstatedir='${prefix}/var'
833 includedir='${prefix}/include'
834 oldincludedir='/usr/include'
835 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836 infodir='${datarootdir}/info'
837 htmldir='${docdir}'
838 dvidir='${docdir}'
839 pdfdir='${docdir}'
840 psdir='${docdir}'
841 libdir='${exec_prefix}/lib'
842 localedir='${datarootdir}/locale'
843 mandir='${datarootdir}/man'
844
845 ac_prev=
846 ac_dashdash=
847 for ac_option
848 do
849   # If the previous option needs an argument, assign it.
850   if test -n "$ac_prev"; then
851     eval $ac_prev=\$ac_option
852     ac_prev=
853     continue
854   fi
855
856   case $ac_option in
857   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858   *)    ac_optarg=yes ;;
859   esac
860
861   # Accept the important Cygnus configure options, so we can diagnose typos.
862
863   case $ac_dashdash$ac_option in
864   --)
865     ac_dashdash=yes ;;
866
867   -bindir | --bindir | --bindi | --bind | --bin | --bi)
868     ac_prev=bindir ;;
869   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870     bindir=$ac_optarg ;;
871
872   -build | --build | --buil | --bui | --bu)
873     ac_prev=build_alias ;;
874   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875     build_alias=$ac_optarg ;;
876
877   -cache-file | --cache-file | --cache-fil | --cache-fi \
878   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879     ac_prev=cache_file ;;
880   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882     cache_file=$ac_optarg ;;
883
884   --config-cache | -C)
885     cache_file=config.cache ;;
886
887   -datadir | --datadir | --datadi | --datad)
888     ac_prev=datadir ;;
889   -datadir=* | --datadir=* | --datadi=* | --datad=*)
890     datadir=$ac_optarg ;;
891
892   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893   | --dataroo | --dataro | --datar)
894     ac_prev=datarootdir ;;
895   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897     datarootdir=$ac_optarg ;;
898
899   -disable-* | --disable-*)
900     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903       as_fn_error "invalid feature name: $ac_useropt"
904     ac_useropt_orig=$ac_useropt
905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906     case $ac_user_opts in
907       *"
908 "enable_$ac_useropt"
909 "*) ;;
910       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911          ac_unrecognized_sep=', ';;
912     esac
913     eval enable_$ac_useropt=no ;;
914
915   -docdir | --docdir | --docdi | --doc | --do)
916     ac_prev=docdir ;;
917   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918     docdir=$ac_optarg ;;
919
920   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921     ac_prev=dvidir ;;
922   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923     dvidir=$ac_optarg ;;
924
925   -enable-* | --enable-*)
926     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929       as_fn_error "invalid feature name: $ac_useropt"
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933       *"
934 "enable_$ac_useropt"
935 "*) ;;
936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937          ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=\$ac_optarg ;;
940
941   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943   | --exec | --exe | --ex)
944     ac_prev=exec_prefix ;;
945   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947   | --exec=* | --exe=* | --ex=*)
948     exec_prefix=$ac_optarg ;;
949
950   -gas | --gas | --ga | --g)
951     # Obsolete; use --with-gas.
952     with_gas=yes ;;
953
954   -help | --help | --hel | --he | -h)
955     ac_init_help=long ;;
956   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957     ac_init_help=recursive ;;
958   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959     ac_init_help=short ;;
960
961   -host | --host | --hos | --ho)
962     ac_prev=host_alias ;;
963   -host=* | --host=* | --hos=* | --ho=*)
964     host_alias=$ac_optarg ;;
965
966   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967     ac_prev=htmldir ;;
968   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969   | --ht=*)
970     htmldir=$ac_optarg ;;
971
972   -includedir | --includedir | --includedi | --included | --include \
973   | --includ | --inclu | --incl | --inc)
974     ac_prev=includedir ;;
975   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976   | --includ=* | --inclu=* | --incl=* | --inc=*)
977     includedir=$ac_optarg ;;
978
979   -infodir | --infodir | --infodi | --infod | --info | --inf)
980     ac_prev=infodir ;;
981   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982     infodir=$ac_optarg ;;
983
984   -libdir | --libdir | --libdi | --libd)
985     ac_prev=libdir ;;
986   -libdir=* | --libdir=* | --libdi=* | --libd=*)
987     libdir=$ac_optarg ;;
988
989   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990   | --libexe | --libex | --libe)
991     ac_prev=libexecdir ;;
992   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993   | --libexe=* | --libex=* | --libe=*)
994     libexecdir=$ac_optarg ;;
995
996   -localedir | --localedir | --localedi | --localed | --locale)
997     ac_prev=localedir ;;
998   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999     localedir=$ac_optarg ;;
1000
1001   -localstatedir | --localstatedir | --localstatedi | --localstated \
1002   | --localstate | --localstat | --localsta | --localst | --locals)
1003     ac_prev=localstatedir ;;
1004   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006     localstatedir=$ac_optarg ;;
1007
1008   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009     ac_prev=mandir ;;
1010   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011     mandir=$ac_optarg ;;
1012
1013   -nfp | --nfp | --nf)
1014     # Obsolete; use --without-fp.
1015     with_fp=no ;;
1016
1017   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018   | --no-cr | --no-c | -n)
1019     no_create=yes ;;
1020
1021   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023     no_recursion=yes ;;
1024
1025   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027   | --oldin | --oldi | --old | --ol | --o)
1028     ac_prev=oldincludedir ;;
1029   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032     oldincludedir=$ac_optarg ;;
1033
1034   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035     ac_prev=prefix ;;
1036   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037     prefix=$ac_optarg ;;
1038
1039   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040   | --program-pre | --program-pr | --program-p)
1041     ac_prev=program_prefix ;;
1042   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044     program_prefix=$ac_optarg ;;
1045
1046   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047   | --program-suf | --program-su | --program-s)
1048     ac_prev=program_suffix ;;
1049   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051     program_suffix=$ac_optarg ;;
1052
1053   -program-transform-name | --program-transform-name \
1054   | --program-transform-nam | --program-transform-na \
1055   | --program-transform-n | --program-transform- \
1056   | --program-transform | --program-transfor \
1057   | --program-transfo | --program-transf \
1058   | --program-trans | --program-tran \
1059   | --progr-tra | --program-tr | --program-t)
1060     ac_prev=program_transform_name ;;
1061   -program-transform-name=* | --program-transform-name=* \
1062   | --program-transform-nam=* | --program-transform-na=* \
1063   | --program-transform-n=* | --program-transform-=* \
1064   | --program-transform=* | --program-transfor=* \
1065   | --program-transfo=* | --program-transf=* \
1066   | --program-trans=* | --program-tran=* \
1067   | --progr-tra=* | --program-tr=* | --program-t=*)
1068     program_transform_name=$ac_optarg ;;
1069
1070   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071     ac_prev=pdfdir ;;
1072   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073     pdfdir=$ac_optarg ;;
1074
1075   -psdir | --psdir | --psdi | --psd | --ps)
1076     ac_prev=psdir ;;
1077   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078     psdir=$ac_optarg ;;
1079
1080   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081   | -silent | --silent | --silen | --sile | --sil)
1082     silent=yes ;;
1083
1084   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085     ac_prev=sbindir ;;
1086   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087   | --sbi=* | --sb=*)
1088     sbindir=$ac_optarg ;;
1089
1090   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092   | --sharedst | --shareds | --shared | --share | --shar \
1093   | --sha | --sh)
1094     ac_prev=sharedstatedir ;;
1095   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098   | --sha=* | --sh=*)
1099     sharedstatedir=$ac_optarg ;;
1100
1101   -site | --site | --sit)
1102     ac_prev=site ;;
1103   -site=* | --site=* | --sit=*)
1104     site=$ac_optarg ;;
1105
1106   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107     ac_prev=srcdir ;;
1108   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109     srcdir=$ac_optarg ;;
1110
1111   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112   | --syscon | --sysco | --sysc | --sys | --sy)
1113     ac_prev=sysconfdir ;;
1114   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116     sysconfdir=$ac_optarg ;;
1117
1118   -target | --target | --targe | --targ | --tar | --ta | --t)
1119     ac_prev=target_alias ;;
1120   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121     target_alias=$ac_optarg ;;
1122
1123   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124     verbose=yes ;;
1125
1126   -version | --version | --versio | --versi | --vers | -V)
1127     ac_init_version=: ;;
1128
1129   -with-* | --with-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error "invalid package name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval with_$ac_useropt=no ;;
1160
1161   --x)
1162     # Obsolete; use --with-x.
1163     with_x=yes ;;
1164
1165   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166   | --x-incl | --x-inc | --x-in | --x-i)
1167     ac_prev=x_includes ;;
1168   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170     x_includes=$ac_optarg ;;
1171
1172   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174     ac_prev=x_libraries ;;
1175   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177     x_libraries=$ac_optarg ;;
1178
1179   -*) as_fn_error "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information."
1181     ;;
1182
1183   *=*)
1184     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185     # Reject names that are not valid shell variable names.
1186     case $ac_envvar in #(
1187       '' | [0-9]* | *[!_$as_cr_alnum]* )
1188       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1189     esac
1190     eval $ac_envvar=\$ac_optarg
1191     export $ac_envvar ;;
1192
1193   *)
1194     # FIXME: should be removed in autoconf 3.0.
1195     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199     ;;
1200
1201   esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206   as_fn_error "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210   case $enable_option_checking in
1211     no) ;;
1212     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1213     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214   esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   # Remove trailing slashes.
1225   case $ac_val in
1226     */ )
1227       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228       eval $ac_var=\$ac_val;;
1229   esac
1230   # Be sure to have absolute directory names.
1231   case $ac_val in
1232     [\\/$]* | ?:[\\/]* )  continue;;
1233     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234   esac
1235   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247   if test "x$build_alias" = x; then
1248     cross_compiling=maybe
1249     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1250     If a cross compiler is detected then cross compile mode will be used." >&2
1251   elif test "x$build_alias" != "x$host_alias"; then
1252     cross_compiling=yes
1253   fi
1254 fi
1255
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259 test "$silent" = yes && exec 6>/dev/null
1260
1261
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265   as_fn_error "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267   as_fn_error "pwd does not report name of working directory"
1268
1269
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272   ac_srcdir_defaulted=yes
1273   # Try the directory containing this script, then the parent directory.
1274   ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276          X"$as_myself" : 'X\(//\)[^/]' \| \
1277          X"$as_myself" : 'X\(//\)$' \| \
1278          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)[^/].*/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\/\)$/{
1289             s//\1/
1290             q
1291           }
1292           /^X\(\/\).*/{
1293             s//\1/
1294             q
1295           }
1296           s/.*/./; q'`
1297   srcdir=$ac_confdir
1298   if test ! -r "$srcdir/$ac_unique_file"; then
1299     srcdir=..
1300   fi
1301 else
1302   ac_srcdir_defaulted=no
1303 fi
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1311         pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314   srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_env_${ac_var}_value=\$${ac_var}
1325   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333   # Omit some internal or obsolete options to make the list less imposing.
1334   # This message is too long to be a string in the A/UX 3.1 sh.
1335   cat <<_ACEOF
1336 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346   -h, --help              display this help and exit
1347       --help=short        display options specific to this package
1348       --help=recursive    display the short help of all the included packages
1349   -V, --version           display version information and exit
1350   -q, --quiet, --silent   do not print \`checking...' messages
1351       --cache-file=FILE   cache test results in FILE [disabled]
1352   -C, --config-cache      alias for \`--cache-file=config.cache'
1353   -n, --no-create         do not create output files
1354       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357   --prefix=PREFIX         install architecture-independent files in PREFIX
1358                           [$ac_default_prefix]
1359   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                           [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370   --bindir=DIR            user executables [EPREFIX/bin]
1371   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1372   --libexecdir=DIR        program executables [EPREFIX/libexec]
1373   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1374   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1375   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1376   --libdir=DIR            object code libraries [EPREFIX/lib]
1377   --includedir=DIR        C header files [PREFIX/include]
1378   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381   --infodir=DIR           info documentation [DATAROOTDIR/info]
1382   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383   --mandir=DIR            man documentation [DATAROOTDIR/man]
1384   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1385   --htmldir=DIR           html documentation [DOCDIR]
1386   --dvidir=DIR            dvi documentation [DOCDIR]
1387   --pdfdir=DIR            pdf documentation [DOCDIR]
1388   --psdir=DIR             ps documentation [DOCDIR]
1389 _ACEOF
1390
1391   cat <<\_ACEOF
1392
1393 Program names:
1394   --program-prefix=PREFIX            prepend PREFIX to installed program names
1395   --program-suffix=SUFFIX            append SUFFIX to installed program names
1396   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398 System types:
1399   --build=BUILD     configure for building on BUILD [guessed]
1400   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401   --target=TARGET   configure for building compilers for TARGET [HOST]
1402 _ACEOF
1403 fi
1404
1405 if test -n "$ac_init_help"; then
1406   case $ac_init_help in
1407      short | recursive ) echo "Configuration of package-unused version-unused:";;
1408    esac
1409   cat <<\_ACEOF
1410
1411 Optional Features:
1412   --disable-option-checking  ignore unrecognized --enable/--with options
1413   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1414   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1415   --enable-multilib       build many library versions (default)
1416   --disable-dependency-tracking  speeds up one-time build
1417   --enable-dependency-tracking   do not reject slow dependency extractors
1418   --enable-maintainer-mode  enable make rules and dependencies not useful
1419                           (and sometimes confusing) to the casual installer
1420   --enable-shared[=PKGS]  build shared libraries [default=yes]
1421   --enable-static[=PKGS]  build static libraries [default=yes]
1422   --enable-fast-install[=PKGS]
1423                           optimize for fast installation [default=yes]
1424   --disable-libtool-lock  avoid locking (might break parallel builds)
1425   --enable-version-specific-runtime-libs
1426                           Specify that runtime libraries should be installed
1427                           in a compiler-specific directory
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433   --with-pic              try to use only PIC/non-PIC objects [default=use
1434                           both]
1435   --without-libffi        don't use libffi
1436   --with-system-libunwind use installed libunwind
1437
1438 Some influential environment variables:
1439   CC          C compiler command
1440   CFLAGS      C compiler flags
1441   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442               nonstandard directory <lib dir>
1443   LIBS        libraries to pass to the linker, e.g. -l<library>
1444   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445               you have headers in a nonstandard directory <include dir>
1446   GOC         Go compiler command
1447   GOCFLAGS    Go compiler flags
1448   CPP         C preprocessor
1449
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to the package provider.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459   # If there are subdirs, report their specific --help.
1460   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461     test -d "$ac_dir" ||
1462       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463       continue
1464     ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470   # A ".." for each directory in $ac_dir_suffix.
1471   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472   case $ac_top_builddir_sub in
1473   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475   esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483   .)  # We are building in place.
1484     ac_srcdir=.
1485     ac_top_srcdir=$ac_top_builddir_sub
1486     ac_abs_top_srcdir=$ac_pwd ;;
1487   [\\/]* | ?:[\\/]* )  # Absolute name.
1488     ac_srcdir=$srcdir$ac_dir_suffix;
1489     ac_top_srcdir=$srcdir
1490     ac_abs_top_srcdir=$srcdir ;;
1491   *) # Relative name.
1492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493     ac_top_srcdir=$ac_top_build_prefix$srcdir
1494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498     cd "$ac_dir" || { ac_status=$?; continue; }
1499     # Check for guested configure.
1500     if test -f "$ac_srcdir/configure.gnu"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503     elif test -f "$ac_srcdir/configure"; then
1504       echo &&
1505       $SHELL "$ac_srcdir/configure" --help=recursive
1506     else
1507       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508     fi || ac_status=$?
1509     cd "$ac_pwd" || { ac_status=$?; break; }
1510   done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515   cat <<\_ACEOF
1516 package-unused configure version-unused
1517 generated by GNU Autoconf 2.64
1518
1519 Copyright (C) 2009 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523   exit
1524 fi
1525
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1529
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1534 {
1535   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536   rm -f conftest.$ac_objext
1537   if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540   *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544   (eval "$ac_compile") 2>conftest.err
1545   ac_status=$?
1546   if test -s conftest.err; then
1547     grep -v '^ *+' conftest.err >conftest.er1
1548     cat conftest.er1 >&5
1549     mv -f conftest.er1 conftest.err
1550   fi
1551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552   test $ac_status = 0; } && {
1553          test -z "$ac_c_werror_flag" ||
1554          test ! -s conftest.err
1555        } && test -s conftest.$ac_objext; then :
1556   ac_retval=0
1557 else
1558   $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561         ac_retval=1
1562 fi
1563   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564   return $ac_retval
1565
1566 } # ac_fn_c_try_compile
1567
1568 # ac_fn_c_try_link LINENO
1569 # -----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_link ()
1572 {
1573   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574   rm -f conftest.$ac_objext conftest$ac_exeext
1575   if { { ac_try="$ac_link"
1576 case "(($ac_try" in
1577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578   *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582   (eval "$ac_link") 2>conftest.err
1583   ac_status=$?
1584   if test -s conftest.err; then
1585     grep -v '^ *+' conftest.err >conftest.er1
1586     cat conftest.er1 >&5
1587     mv -f conftest.er1 conftest.err
1588   fi
1589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590   test $ac_status = 0; } && {
1591          test -z "$ac_c_werror_flag" ||
1592          test ! -s conftest.err
1593        } && test -s conftest$ac_exeext && {
1594          test "$cross_compiling" = yes ||
1595          $as_test_x conftest$ac_exeext
1596        }; then :
1597   ac_retval=0
1598 else
1599   $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602         ac_retval=1
1603 fi
1604   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606   # interfere with the next link command; also delete a directory that is
1607   # left behind by Apple's compiler.  We do this before executing the actions.
1608   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610   return $ac_retval
1611
1612 } # ac_fn_c_try_link
1613
1614 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists and can be compiled using the include files in
1617 # INCLUDES, setting the cache variable VAR accordingly.
1618 ac_fn_c_check_header_compile ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624   $as_echo_n "(cached) " >&6
1625 else
1626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h.  */
1628 $4
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"; then :
1632   eval "$3=yes"
1633 else
1634   eval "$3=no"
1635 fi
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 fi
1638 eval ac_res=\$$3
1639                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642
1643 } # ac_fn_c_check_header_compile
1644
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_cpp ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } >/dev/null && {
1667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668          test ! -s conftest.err
1669        }; then :
1670   ac_retval=0
1671 else
1672   $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675     ac_retval=1
1676 fi
1677   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678   return $ac_retval
1679
1680 } # ac_fn_c_try_cpp
1681
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685 # that executables *can* be run.
1686 ac_fn_c_try_run ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696   (eval "$ac_link") 2>&5
1697   ac_status=$?
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700   { { case "(($ac_try" in
1701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702   *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706   (eval "$ac_try") 2>&5
1707   ac_status=$?
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; }; }; then :
1710   ac_retval=0
1711 else
1712   $as_echo "$as_me: program exited with status $ac_status" >&5
1713        $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716        ac_retval=$ac_status
1717 fi
1718   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720   return $ac_retval
1721
1722 } # ac_fn_c_try_run
1723
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733   $as_echo_n "(cached) " >&6
1734 else
1735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h.  */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1739 #define $2 innocuous_$2
1740
1741 /* System header to define __stub macros and hopefully few prototypes,
1742     which can conflict with char $2 (); below.
1743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744     <limits.h> exists even on freestanding compilers.  */
1745
1746 #ifdef __STDC__
1747 # include <limits.h>
1748 #else
1749 # include <assert.h>
1750 #endif
1751
1752 #undef $2
1753
1754 /* Override any GCC internal prototype to avoid an error.
1755    Use char because int might match the return type of a GCC
1756    builtin and then its argument prototype would still apply.  */
1757 #ifdef __cplusplus
1758 extern "C"
1759 #endif
1760 char $2 ();
1761 /* The GNU C library defines this for functions which it implements
1762     to always fail with ENOSYS.  Some functions are actually named
1763     something starting with __ and the normal name is an alias.  */
1764 #if defined __stub_$2 || defined __stub___$2
1765 choke me
1766 #endif
1767
1768 int
1769 main ()
1770 {
1771 return $2 ();
1772   ;
1773   return 0;
1774 }
1775 _ACEOF
1776 if ac_fn_c_try_link "$LINENO"; then :
1777   eval "$3=yes"
1778 else
1779   eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext \
1782     conftest$ac_exeext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788
1789 } # ac_fn_c_check_func
1790
1791 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1794 # the include files in INCLUDES and setting the cache variable VAR
1795 # accordingly.
1796 ac_fn_c_check_header_mongrel ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803   $as_echo_n "(cached) " >&6
1804 fi
1805 eval ac_res=\$$3
1806                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 else
1809   # Is the header compilable?
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1811 $as_echo_n "checking $2 usability... " >&6; }
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 $4
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818   ac_header_compiler=yes
1819 else
1820   ac_header_compiler=no
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1824 $as_echo "$ac_header_compiler" >&6; }
1825
1826 # Is the header present?
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1828 $as_echo_n "checking $2 presence... " >&6; }
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h.  */
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_cpp "$LINENO"; then :
1834   ac_header_preproc=yes
1835 else
1836   ac_header_preproc=no
1837 fi
1838 rm -f conftest.err conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1840 $as_echo "$ac_header_preproc" >&6; }
1841
1842 # So?  What about this header?
1843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1844   yes:no: )
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1846 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849     ;;
1850   no:yes:* )
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1852 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1854 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1856 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1858 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861     ;;
1862 esac
1863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866   $as_echo_n "(cached) " >&6
1867 else
1868   eval "$3=\$ac_header_compiler"
1869 fi
1870 eval ac_res=\$$3
1871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 fi
1874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875
1876 } # ac_fn_c_check_header_mongrel
1877
1878 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1879 # -------------------------------------------
1880 # Tests whether TYPE exists after having included INCLUDES, setting cache
1881 # variable VAR accordingly.
1882 ac_fn_c_check_type ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   eval "$3=no"
1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 $4
1894 int
1895 main ()
1896 {
1897 if (sizeof ($2))
1898          return 0;
1899   ;
1900   return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h.  */
1906 $4
1907 int
1908 main ()
1909 {
1910 if (sizeof (($2)))
1911             return 0;
1912   ;
1913   return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917
1918 else
1919   eval "$3=yes"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929
1930 } # ac_fn_c_check_type
1931 cat >config.log <<_ACEOF
1932 This file contains any messages produced by compilers while
1933 running configure, to aid debugging if configure makes a mistake.
1934
1935 It was created by package-unused $as_me version-unused, which was
1936 generated by GNU Autoconf 2.64.  Invocation command line was
1937
1938   $ $0 $@
1939
1940 _ACEOF
1941 exec 5>>config.log
1942 {
1943 cat <<_ASUNAME
1944 ## --------- ##
1945 ## Platform. ##
1946 ## --------- ##
1947
1948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1953
1954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1955 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1956
1957 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1958 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1960 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1961 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1962 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1963 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1964
1965 _ASUNAME
1966
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972     $as_echo "PATH: $as_dir"
1973   done
1974 IFS=$as_save_IFS
1975
1976 } >&5
1977
1978 cat >&5 <<_ACEOF
1979
1980
1981 ## ----------- ##
1982 ## Core tests. ##
1983 ## ----------- ##
1984
1985 _ACEOF
1986
1987
1988 # Keep a trace of the command line.
1989 # Strip out --no-create and --no-recursion so they do not pile up.
1990 # Strip out --silent because we don't want to record it for future runs.
1991 # Also quote any args containing shell meta-characters.
1992 # Make two passes to allow for proper duplicate-argument suppression.
1993 ac_configure_args=
1994 ac_configure_args0=
1995 ac_configure_args1=
1996 ac_must_keep_next=false
1997 for ac_pass in 1 2
1998 do
1999   for ac_arg
2000   do
2001     case $ac_arg in
2002     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004     | -silent | --silent | --silen | --sile | --sil)
2005       continue ;;
2006     *\'*)
2007       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2008     esac
2009     case $ac_pass in
2010     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2011     2)
2012       as_fn_append ac_configure_args1 " '$ac_arg'"
2013       if test $ac_must_keep_next = true; then
2014         ac_must_keep_next=false # Got value, back to normal.
2015       else
2016         case $ac_arg in
2017           *=* | --config-cache | -C | -disable-* | --disable-* \
2018           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020           | -with-* | --with-* | -without-* | --without-* | --x)
2021             case "$ac_configure_args0 " in
2022               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2023             esac
2024             ;;
2025           -* ) ac_must_keep_next=true ;;
2026         esac
2027       fi
2028       as_fn_append ac_configure_args " '$ac_arg'"
2029       ;;
2030     esac
2031   done
2032 done
2033 { ac_configure_args0=; unset ac_configure_args0;}
2034 { ac_configure_args1=; unset ac_configure_args1;}
2035
2036 # When interrupted or exit'd, cleanup temporary files, and complete
2037 # config.log.  We remove comments because anyway the quotes in there
2038 # would cause problems or look ugly.
2039 # WARNING: Use '\'' to represent an apostrophe within the trap.
2040 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041 trap 'exit_status=$?
2042   # Save into config.log some information that might help in debugging.
2043   {
2044     echo
2045
2046     cat <<\_ASBOX
2047 ## ---------------- ##
2048 ## Cache variables. ##
2049 ## ---------------- ##
2050 _ASBOX
2051     echo
2052     # The following way of writing the cache mishandles newlines in values,
2053 (
2054   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2055     eval ac_val=\$$ac_var
2056     case $ac_val in #(
2057     *${as_nl}*)
2058       case $ac_var in #(
2059       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2060 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2061       esac
2062       case $ac_var in #(
2063       _ | IFS | as_nl) ;; #(
2064       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2065       *) { eval $ac_var=; unset $ac_var;} ;;
2066       esac ;;
2067     esac
2068   done
2069   (set) 2>&1 |
2070     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2071     *${as_nl}ac_space=\ *)
2072       sed -n \
2073         "s/'\''/'\''\\\\'\'''\''/g;
2074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2075       ;; #(
2076     *)
2077       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2078       ;;
2079     esac |
2080     sort
2081 )
2082     echo
2083
2084     cat <<\_ASBOX
2085 ## ----------------- ##
2086 ## Output variables. ##
2087 ## ----------------- ##
2088 _ASBOX
2089     echo
2090     for ac_var in $ac_subst_vars
2091     do
2092       eval ac_val=\$$ac_var
2093       case $ac_val in
2094       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095       esac
2096       $as_echo "$ac_var='\''$ac_val'\''"
2097     done | sort
2098     echo
2099
2100     if test -n "$ac_subst_files"; then
2101       cat <<\_ASBOX
2102 ## ------------------- ##
2103 ## File substitutions. ##
2104 ## ------------------- ##
2105 _ASBOX
2106       echo
2107       for ac_var in $ac_subst_files
2108       do
2109         eval ac_val=\$$ac_var
2110         case $ac_val in
2111         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112         esac
2113         $as_echo "$ac_var='\''$ac_val'\''"
2114       done | sort
2115       echo
2116     fi
2117
2118     if test -s confdefs.h; then
2119       cat <<\_ASBOX
2120 ## ----------- ##
2121 ## confdefs.h. ##
2122 ## ----------- ##
2123 _ASBOX
2124       echo
2125       cat confdefs.h
2126       echo
2127     fi
2128     test "$ac_signal" != 0 &&
2129       $as_echo "$as_me: caught signal $ac_signal"
2130     $as_echo "$as_me: exit $exit_status"
2131   } >&5
2132   rm -f core *.core core.conftest.* &&
2133     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2134     exit $exit_status
2135 ' 0
2136 for ac_signal in 1 2 13 15; do
2137   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2138 done
2139 ac_signal=0
2140
2141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2142 rm -f -r conftest* confdefs.h
2143
2144 $as_echo "/* confdefs.h */" > confdefs.h
2145
2146 # Predefined preprocessor variables.
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_NAME "$PACKAGE_NAME"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_STRING "$PACKAGE_STRING"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_URL "$PACKAGE_URL"
2170 _ACEOF
2171
2172
2173 # Let the site file select an alternate cache file if it wants to.
2174 # Prefer an explicitly selected file to automatically selected ones.
2175 ac_site_file1=NONE
2176 ac_site_file2=NONE
2177 if test -n "$CONFIG_SITE"; then
2178   ac_site_file1=$CONFIG_SITE
2179 elif test "x$prefix" != xNONE; then
2180   ac_site_file1=$prefix/share/config.site
2181   ac_site_file2=$prefix/etc/config.site
2182 else
2183   ac_site_file1=$ac_default_prefix/share/config.site
2184   ac_site_file2=$ac_default_prefix/etc/config.site
2185 fi
2186 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2187 do
2188   test "x$ac_site_file" = xNONE && continue
2189   if test -r "$ac_site_file"; then
2190     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2191 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2192     sed 's/^/| /' "$ac_site_file" >&5
2193     . "$ac_site_file"
2194   fi
2195 done
2196
2197 if test -r "$cache_file"; then
2198   # Some versions of bash will fail to source /dev/null (special
2199   # files actually), so we avoid doing that.
2200   if test -f "$cache_file"; then
2201     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2202 $as_echo "$as_me: loading cache $cache_file" >&6;}
2203     case $cache_file in
2204       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2205       *)                      . "./$cache_file";;
2206     esac
2207   fi
2208 else
2209   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2210 $as_echo "$as_me: creating cache $cache_file" >&6;}
2211   >$cache_file
2212 fi
2213
2214 # Check that the precious variables saved in the cache have kept the same
2215 # value.
2216 ac_cache_corrupted=false
2217 for ac_var in $ac_precious_vars; do
2218   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2219   eval ac_new_set=\$ac_env_${ac_var}_set
2220   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2221   eval ac_new_val=\$ac_env_${ac_var}_value
2222   case $ac_old_set,$ac_new_set in
2223     set,)
2224       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2225 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2226       ac_cache_corrupted=: ;;
2227     ,set)
2228       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2229 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2230       ac_cache_corrupted=: ;;
2231     ,);;
2232     *)
2233       if test "x$ac_old_val" != "x$ac_new_val"; then
2234         # differences in whitespace do not lead to failure.
2235         ac_old_val_w=`echo x $ac_old_val`
2236         ac_new_val_w=`echo x $ac_new_val`
2237         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2238           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2239 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2240           ac_cache_corrupted=:
2241         else
2242           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2243 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2244           eval $ac_var=\$ac_old_val
2245         fi
2246         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2247 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2248         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2249 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2250       fi;;
2251   esac
2252   # Pass precious variables to config.status.
2253   if test "$ac_new_set" = set; then
2254     case $ac_new_val in
2255     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2256     *) ac_arg=$ac_var=$ac_new_val ;;
2257     esac
2258     case " $ac_configure_args " in
2259       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2260       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2261     esac
2262   fi
2263 done
2264 if $ac_cache_corrupted; then
2265   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2268 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2269   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2270 fi
2271 ## -------------------- ##
2272 ## Main body of script. ##
2273 ## -------------------- ##
2274
2275 ac_ext=c
2276 ac_cpp='$CPP $CPPFLAGS'
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2280
2281
2282
2283
2284
2285
2286 ac_config_headers="$ac_config_headers config.h"
2287
2288
2289 libtool_VERSION=1:0:0
2290
2291
2292 # Default to --enable-multilib
2293 # Check whether --enable-multilib was given.
2294 if test "${enable_multilib+set}" = set; then :
2295   enableval=$enable_multilib; case "$enableval" in
2296   yes) multilib=yes ;;
2297   no)  multilib=no ;;
2298   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2299  esac
2300 else
2301   multilib=yes
2302 fi
2303
2304
2305 # We may get other options which we leave undocumented:
2306 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2307 # See config-ml.in if you want the gory details.
2308
2309 if test "$srcdir" = "."; then
2310   if test "$with_target_subdir" != "."; then
2311     multi_basedir="$srcdir/$with_multisrctop../.."
2312   else
2313     multi_basedir="$srcdir/$with_multisrctop.."
2314   fi
2315 else
2316   multi_basedir="$srcdir/.."
2317 fi
2318
2319
2320 # Even if the default multilib is not a cross compilation,
2321 # it may be that some of the other multilibs are.
2322 if test $cross_compiling = no && test $multilib = yes \
2323    && test "x${with_multisubdir}" != x ; then
2324    cross_compiling=maybe
2325 fi
2326
2327 ac_config_commands="$ac_config_commands default-1"
2328
2329
2330 ac_aux_dir=
2331 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2332   for ac_t in install-sh install.sh shtool; do
2333     if test -f "$ac_dir/$ac_t"; then
2334       ac_aux_dir=$ac_dir
2335       ac_install_sh="$ac_aux_dir/$ac_t -c"
2336       break 2
2337     fi
2338   done
2339 done
2340 if test -z "$ac_aux_dir"; then
2341   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2342 fi
2343
2344 # These three variables are undocumented and unsupported,
2345 # and are intended to be withdrawn in a future Autoconf release.
2346 # They can cause serious problems if a builder's source tree is in a directory
2347 # whose full name contains unusual characters.
2348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2350 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2351
2352
2353 # Make sure we can run config.sub.
2354 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2355   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2356
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2358 $as_echo_n "checking build system type... " >&6; }
2359 if test "${ac_cv_build+set}" = set; then :
2360   $as_echo_n "(cached) " >&6
2361 else
2362   ac_build_alias=$build_alias
2363 test "x$ac_build_alias" = x &&
2364   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2365 test "x$ac_build_alias" = x &&
2366   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2368   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2369
2370 fi
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2372 $as_echo "$ac_cv_build" >&6; }
2373 case $ac_cv_build in
2374 *-*-*) ;;
2375 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2376 esac
2377 build=$ac_cv_build
2378 ac_save_IFS=$IFS; IFS='-'
2379 set x $ac_cv_build
2380 shift
2381 build_cpu=$1
2382 build_vendor=$2
2383 shift; shift
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2386 build_os=$*
2387 IFS=$ac_save_IFS
2388 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2389
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2392 $as_echo_n "checking host system type... " >&6; }
2393 if test "${ac_cv_host+set}" = set; then :
2394   $as_echo_n "(cached) " >&6
2395 else
2396   if test "x$host_alias" = x; then
2397   ac_cv_host=$ac_cv_build
2398 else
2399   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2400     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2401 fi
2402
2403 fi
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2405 $as_echo "$ac_cv_host" >&6; }
2406 case $ac_cv_host in
2407 *-*-*) ;;
2408 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2409 esac
2410 host=$ac_cv_host
2411 ac_save_IFS=$IFS; IFS='-'
2412 set x $ac_cv_host
2413 shift
2414 host_cpu=$1
2415 host_vendor=$2
2416 shift; shift
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2419 host_os=$*
2420 IFS=$ac_save_IFS
2421 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2422
2423
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2425 $as_echo_n "checking target system type... " >&6; }
2426 if test "${ac_cv_target+set}" = set; then :
2427   $as_echo_n "(cached) " >&6
2428 else
2429   if test "x$target_alias" = x; then
2430   ac_cv_target=$ac_cv_host
2431 else
2432   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2433     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2434 fi
2435
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2438 $as_echo "$ac_cv_target" >&6; }
2439 case $ac_cv_target in
2440 *-*-*) ;;
2441 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2442 esac
2443 target=$ac_cv_target
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_target
2446 shift
2447 target_cpu=$1
2448 target_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 target_os=$*
2453 IFS=$ac_save_IFS
2454 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2455
2456
2457 # The aliases save the names the user supplied, while $host etc.
2458 # will get canonicalized.
2459 test -n "$target_alias" &&
2460   test "$program_prefix$program_suffix$program_transform_name" = \
2461     NONENONEs,x,x, &&
2462   program_prefix=${target_alias}-
2463
2464 target_alias=${target_alias-$host_alias}
2465
2466 am__api_version='1.11'
2467
2468 # Find a good install program.  We prefer a C program (faster),
2469 # so one script is as good as another.  But avoid the broken or
2470 # incompatible versions:
2471 # SysV /etc/install, /usr/sbin/install
2472 # SunOS /usr/etc/install
2473 # IRIX /sbin/install
2474 # AIX /bin/install
2475 # AmigaOS /C/install, which installs bootblocks on floppy discs
2476 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2477 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2478 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2479 # OS/2's system install, which has a completely different semantic
2480 # ./install, which can be erroneously created by make from ./install.sh.
2481 # Reject install programs that cannot install multiple files.
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2483 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2484 if test -z "$INSTALL"; then
2485 if test "${ac_cv_path_install+set}" = set; then :
2486   $as_echo_n "(cached) " >&6
2487 else
2488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493     # Account for people who put trailing slashes in PATH elements.
2494 case $as_dir/ in #((
2495   ./ | .// | /[cC]/* | \
2496   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2497   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2498   /usr/ucb/* ) ;;
2499   *)
2500     # OSF1 and SCO ODT 3.0 have their own names for install.
2501     # Don't use installbsd from OSF since it installs stuff as root
2502     # by default.
2503     for ac_prog in ginstall scoinst install; do
2504       for ac_exec_ext in '' $ac_executable_extensions; do
2505         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2506           if test $ac_prog = install &&
2507             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508             # AIX install.  It has an incompatible calling convention.
2509             :
2510           elif test $ac_prog = install &&
2511             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512             # program-specific install script used by HP pwplus--don't use.
2513             :
2514           else
2515             rm -rf conftest.one conftest.two conftest.dir
2516             echo one > conftest.one
2517             echo two > conftest.two
2518             mkdir conftest.dir
2519             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2520               test -s conftest.one && test -s conftest.two &&
2521               test -s conftest.dir/conftest.one &&
2522               test -s conftest.dir/conftest.two
2523             then
2524               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2525               break 3
2526             fi
2527           fi
2528         fi
2529       done
2530     done
2531     ;;
2532 esac
2533
2534   done
2535 IFS=$as_save_IFS
2536
2537 rm -rf conftest.one conftest.two conftest.dir
2538
2539 fi
2540   if test "${ac_cv_path_install+set}" = set; then
2541     INSTALL=$ac_cv_path_install
2542   else
2543     # As a last resort, use the slow shell script.  Don't cache a
2544     # value for INSTALL within a source directory, because that will
2545     # break other packages using the cache if that directory is
2546     # removed, or if the value is a relative name.
2547     INSTALL=$ac_install_sh
2548   fi
2549 fi
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2551 $as_echo "$INSTALL" >&6; }
2552
2553 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2554 # It thinks the first close brace ends the variable substitution.
2555 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556
2557 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558
2559 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2562 $as_echo_n "checking whether build environment is sane... " >&6; }
2563 # Just in case
2564 sleep 1
2565 echo timestamp > conftest.file
2566 # Reject unsafe characters in $srcdir or the absolute working directory
2567 # name.  Accept space and tab only in the latter.
2568 am_lf='
2569 '
2570 case `pwd` in
2571   *[\\\"\#\$\&\'\`$am_lf]*)
2572     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2573 esac
2574 case $srcdir in
2575   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2576     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2577 esac
2578
2579 # Do `set' in a subshell so we don't clobber the current shell's
2580 # arguments.  Must try -L first in case configure is actually a
2581 # symlink; some systems play weird games with the mod time of symlinks
2582 # (eg FreeBSD returns the mod time of the symlink's containing
2583 # directory).
2584 if (
2585    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2586    if test "$*" = "X"; then
2587       # -L didn't work.
2588       set X `ls -t "$srcdir/configure" conftest.file`
2589    fi
2590    rm -f conftest.file
2591    if test "$*" != "X $srcdir/configure conftest.file" \
2592       && test "$*" != "X conftest.file $srcdir/configure"; then
2593
2594       # If neither matched, then we have a broken ls.  This can happen
2595       # if, for instance, CONFIG_SHELL is bash and it inherits a
2596       # broken ls alias from the environment.  This has actually
2597       # happened.  Such a system could not be considered "sane".
2598       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2599 alias in your environment" "$LINENO" 5
2600    fi
2601
2602    test "$2" = conftest.file
2603    )
2604 then
2605    # Ok.
2606    :
2607 else
2608    as_fn_error "newly created file is older than distributed files!
2609 Check your system clock" "$LINENO" 5
2610 fi
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2612 $as_echo "yes" >&6; }
2613 test "$program_prefix" != NONE &&
2614   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2615 # Use a double $ so make ignores it.
2616 test "$program_suffix" != NONE &&
2617   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2618 # Double any \ or $.
2619 # By default was `s,x,x', remove it if useless.
2620 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2621 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2622
2623 # expand $ac_aux_dir to an absolute path
2624 am_aux_dir=`cd $ac_aux_dir && pwd`
2625
2626 if test x"${MISSING+set}" != xset; then
2627   case $am_aux_dir in
2628   *\ * | *\     *)
2629     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2630   *)
2631     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2632   esac
2633 fi
2634 # Use eval to expand $SHELL
2635 if eval "$MISSING --run true"; then
2636   am_missing_run="$MISSING --run "
2637 else
2638   am_missing_run=
2639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2640 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2641 fi
2642
2643 if test x"${install_sh}" != xset; then
2644   case $am_aux_dir in
2645   *\ * | *\     *)
2646     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2647   *)
2648     install_sh="\${SHELL} $am_aux_dir/install-sh"
2649   esac
2650 fi
2651
2652 # Installed binaries are usually stripped using `strip' when the user
2653 # run `make install-strip'.  However `strip' might not be the right
2654 # tool to use in cross-compilation environments, therefore Automake
2655 # will honor the `STRIP' environment variable to overrule this program.
2656 if test "$cross_compiling" != no; then
2657   if test -n "$ac_tool_prefix"; then
2658   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2659 set dummy ${ac_tool_prefix}strip; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if test "${ac_cv_prog_STRIP+set}" = set; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   if test -n "$STRIP"; then
2666   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671   IFS=$as_save_IFS
2672   test -z "$as_dir" && as_dir=.
2673     for ac_exec_ext in '' $ac_executable_extensions; do
2674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677     break 2
2678   fi
2679 done
2680   done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 STRIP=$ac_cv_prog_STRIP
2686 if test -n "$STRIP"; then
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2688 $as_echo "$STRIP" >&6; }
2689 else
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 fi
2693
2694
2695 fi
2696 if test -z "$ac_cv_prog_STRIP"; then
2697   ac_ct_STRIP=$STRIP
2698   # Extract the first word of "strip", so it can be a program name with args.
2699 set dummy strip; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2703   $as_echo_n "(cached) " >&6
2704 else
2705   if test -n "$ac_ct_STRIP"; then
2706   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713     for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_ac_ct_STRIP="strip"
2716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720   done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2726 if test -n "$ac_ct_STRIP"; then
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2728 $as_echo "$ac_ct_STRIP" >&6; }
2729 else
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734   if test "x$ac_ct_STRIP" = x; then
2735     STRIP=":"
2736   else
2737     case $cross_compiling:$ac_tool_warned in
2738 yes:)
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2741 ac_tool_warned=yes ;;
2742 esac
2743     STRIP=$ac_ct_STRIP
2744   fi
2745 else
2746   STRIP="$ac_cv_prog_STRIP"
2747 fi
2748
2749 fi
2750 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2751
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2753 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2754 if test -z "$MKDIR_P"; then
2755   if test "${ac_cv_path_mkdir+set}" = set; then :
2756   $as_echo_n "(cached) " >&6
2757 else
2758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2760 do
2761   IFS=$as_save_IFS
2762   test -z "$as_dir" && as_dir=.
2763     for ac_prog in mkdir gmkdir; do
2764          for ac_exec_ext in '' $ac_executable_extensions; do
2765            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2766            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2767              'mkdir (GNU coreutils) '* | \
2768              'mkdir (coreutils) '* | \
2769              'mkdir (fileutils) '4.1*)
2770                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2771                break 3;;
2772            esac
2773          done
2774        done
2775   done
2776 IFS=$as_save_IFS
2777
2778 fi
2779
2780   if test "${ac_cv_path_mkdir+set}" = set; then
2781     MKDIR_P="$ac_cv_path_mkdir -p"
2782   else
2783     # As a last resort, use the slow shell script.  Don't cache a
2784     # value for MKDIR_P within a source directory, because that will
2785     # break other packages using the cache if that directory is
2786     # removed, or if the value is a relative name.
2787     test -d ./--version && rmdir ./--version
2788     MKDIR_P="$ac_install_sh -d"
2789   fi
2790 fi
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2792 $as_echo "$MKDIR_P" >&6; }
2793
2794 mkdir_p="$MKDIR_P"
2795 case $mkdir_p in
2796   [\\/$]* | ?:[\\/]*) ;;
2797   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2798 esac
2799
2800 for ac_prog in gawk mawk nawk awk
2801 do
2802   # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy $ac_prog; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if test "${ac_cv_prog_AWK+set}" = set; then :
2807   $as_echo_n "(cached) " >&6
2808 else
2809   if test -n "$AWK"; then
2810   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817     for ac_exec_ext in '' $ac_executable_extensions; do
2818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819     ac_cv_prog_AWK="$ac_prog"
2820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821     break 2
2822   fi
2823 done
2824   done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 AWK=$ac_cv_prog_AWK
2830 if test -n "$AWK"; then
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2832 $as_echo "$AWK" >&6; }
2833 else
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839   test -n "$AWK" && break
2840 done
2841
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2843 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2844 set x ${MAKE-make}
2845 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2846 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   cat >conftest.make <<\_ACEOF
2850 SHELL = /bin/sh
2851 all:
2852         @echo '@@@%%%=$(MAKE)=@@@%%%'
2853 _ACEOF
2854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2855 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2856   *@@@%%%=?*=@@@%%%*)
2857     eval ac_cv_prog_make_${ac_make}_set=yes;;
2858   *)
2859     eval ac_cv_prog_make_${ac_make}_set=no;;
2860 esac
2861 rm -f conftest.make
2862 fi
2863 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2865 $as_echo "yes" >&6; }
2866   SET_MAKE=
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870   SET_MAKE="MAKE=${MAKE-make}"
2871 fi
2872
2873 rm -rf .tst 2>/dev/null
2874 mkdir .tst 2>/dev/null
2875 if test -d .tst; then
2876   am__leading_dot=.
2877 else
2878   am__leading_dot=_
2879 fi
2880 rmdir .tst 2>/dev/null
2881
2882 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2883   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2884   # is not polluted with repeated "-I."
2885   am__isrc=' -I$(srcdir)'
2886   # test to see if srcdir already configured
2887   if test -f $srcdir/config.status; then
2888     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2889   fi
2890 fi
2891
2892 # test whether we have cygpath
2893 if test -z "$CYGPATH_W"; then
2894   if (cygpath --version) >/dev/null 2>/dev/null; then
2895     CYGPATH_W='cygpath -w'
2896   else
2897     CYGPATH_W=echo
2898   fi
2899 fi
2900
2901
2902 # Define the identity of the package.
2903  PACKAGE='libgo'
2904  VERSION='version-unused'
2905
2906
2907 # Some tools Automake needs.
2908
2909 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2910
2911
2912 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2913
2914
2915 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2916
2917
2918 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2919
2920
2921 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2922
2923 # We need awk for the "check" target.  The system "awk" is bad on
2924 # some platforms.
2925 # Always define AMTAR for backward compatibility.
2926
2927 AMTAR=${AMTAR-"${am_missing_run}tar"}
2928
2929 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 if test -n "$ac_tool_prefix"; then
2946   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then :
2951   $as_echo_n "(cached) " >&6
2952 else
2953   if test -n "$CC"; then
2954   ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959   IFS=$as_save_IFS
2960   test -z "$as_dir" && as_dir=.
2961     for ac_exec_ext in '' $ac_executable_extensions; do
2962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965     break 2
2966   fi
2967 done
2968   done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 CC=$ac_cv_prog_CC
2974 if test -n "$CC"; then
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976 $as_echo "$CC" >&6; }
2977 else
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982
2983 fi
2984 if test -z "$ac_cv_prog_CC"; then
2985   ac_ct_CC=$CC
2986   # Extract the first word of "gcc", so it can be a program name with args.
2987 set dummy gcc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   if test -n "$ac_ct_CC"; then
2994   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001     for ac_exec_ext in '' $ac_executable_extensions; do
3002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003     ac_cv_prog_ac_ct_CC="gcc"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_CC" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022   if test "x$ac_ct_CC" = x; then
3023     CC=""
3024   else
3025     case $cross_compiling:$ac_tool_warned in
3026 yes:)
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3030 esac
3031     CC=$ac_ct_CC
3032   fi
3033 else
3034   CC="$ac_cv_prog_CC"
3035 fi
3036
3037 if test -z "$CC"; then
3038           if test -n "$ac_tool_prefix"; then
3039     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}cc; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CC+set}" = set; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   if test -n "$CC"; then
3047   ac_cv_prog_CC="$CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054     for ac_exec_ext in '' $ac_executable_extensions; do
3055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056     ac_cv_prog_CC="${ac_tool_prefix}cc"
3057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061   done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CC=$ac_cv_prog_CC
3067 if test -n "$CC"; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076   fi
3077 fi
3078 if test -z "$CC"; then
3079   # Extract the first word of "cc", so it can be a program name with args.
3080 set dummy cc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_CC+set}" = set; then :
3084   $as_echo_n "(cached) " >&6
3085 else
3086   if test -n "$CC"; then
3087   ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089   ac_prog_rejected=no
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093   IFS=$as_save_IFS
3094   test -z "$as_dir" && as_dir=.
3095     for ac_exec_ext in '' $ac_executable_extensions; do
3096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3098        ac_prog_rejected=yes
3099        continue
3100      fi
3101     ac_cv_prog_CC="cc"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 if test $ac_prog_rejected = yes; then
3110   # We found a bogon in the path, so make sure we never use it.
3111   set dummy $ac_cv_prog_CC
3112   shift
3113   if test $# != 0; then
3114     # We chose a different compiler from the bogus one.
3115     # However, it has the same basename, so the bogon will be chosen
3116     # first if we set CC to just the basename; use the full file name.
3117     shift
3118     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3119   fi
3120 fi
3121 fi
3122 fi
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3127 else
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 fi
3131
3132
3133 fi
3134 if test -z "$CC"; then
3135   if test -n "$ac_tool_prefix"; then
3136   for ac_prog in cl.exe
3137   do
3138     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$CC"; then
3146   ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175     test -n "$CC" && break
3176   done
3177 fi
3178 if test -z "$CC"; then
3179   ac_ct_CC=$CC
3180   for ac_prog in cl.exe
3181 do
3182   # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy $ac_prog; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   if test -n "$ac_ct_CC"; then
3190   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197     for ac_exec_ext in '' $ac_executable_extensions; do
3198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199     ac_cv_prog_ac_ct_CC="$ac_prog"
3200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201     break 2
3202   fi
3203 done
3204   done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210 if test -n "$ac_ct_CC"; then
3211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3212 $as_echo "$ac_ct_CC" >&6; }
3213 else
3214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218
3219   test -n "$ac_ct_CC" && break
3220 done
3221
3222   if test "x$ac_ct_CC" = x; then
3223     CC=""
3224   else
3225     case $cross_compiling:$ac_tool_warned in
3226 yes:)
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229 ac_tool_warned=yes ;;
3230 esac
3231     CC=$ac_ct_CC
3232   fi
3233 fi
3234
3235 fi
3236
3237
3238 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error "no acceptable C compiler found in \$PATH
3241 See \`config.log' for more details." "$LINENO" 5; }
3242
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3245 set X $ac_compile
3246 ac_compiler=$2
3247 for ac_option in --version -v -V -qversion; do
3248   { { ac_try="$ac_compiler $ac_option >&5"
3249 case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3256   ac_status=$?
3257   if test -s conftest.err; then
3258     sed '10a\
3259 ... rest of stderr output deleted ...
3260          10q' conftest.err >conftest.er1
3261     cat conftest.er1 >&5
3262     rm -f conftest.er1 conftest.err
3263   fi
3264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265   test $ac_status = 0; }
3266 done
3267
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h.  */
3270
3271 int
3272 main ()
3273 {
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 ac_clean_files_save=$ac_clean_files
3280 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3281 # Try to create an executable without -o first, disregard a.out.
3282 # It will help us diagnose broken compilers, and finding out an intuition
3283 # of exeext.
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3287
3288 # The possible output files:
3289 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3290
3291 ac_rmfiles=
3292 for ac_file in $ac_files
3293 do
3294   case $ac_file in
3295     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3297   esac
3298 done
3299 rm -f $ac_rmfiles
3300
3301 if { { ac_try="$ac_link_default"
3302 case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308   (eval "$ac_link_default") 2>&5
3309   ac_status=$?
3310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311   test $ac_status = 0; }; then :
3312   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3313 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3314 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3315 # so that the user can short-circuit this test for compilers unknown to
3316 # Autoconf.
3317 for ac_file in $ac_files ''
3318 do
3319   test -f "$ac_file" || continue
3320   case $ac_file in
3321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3322         ;;
3323     [ab].out )
3324         # We found the default executable, but exeext='' is most
3325         # certainly right.
3326         break;;
3327     *.* )
3328         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3329         then :; else
3330            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331         fi
3332         # We set ac_cv_exeext here because the later test for it is not
3333         # safe: cross compilers may not add the suffix if given an `-o'
3334         # argument, so we may need to know it at that point already.
3335         # Even if this section looks crufty: it has the advantage of
3336         # actually working.
3337         break;;
3338     * )
3339         break;;
3340   esac
3341 done
3342 test "$ac_cv_exeext" = no && ac_cv_exeext=
3343
3344 else
3345   ac_file=''
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3348 $as_echo "$ac_file" >&6; }
3349 if test -z "$ac_file"; then :
3350   $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { as_fn_set_status 77
3356 as_fn_error "C compiler cannot create executables
3357 See \`config.log' for more details." "$LINENO" 5; }; }
3358 fi
3359 ac_exeext=$ac_cv_exeext
3360
3361 # Check that the compiler produces executables we can run.  If not, either
3362 # the compiler is broken, or we cross compile.
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3364 $as_echo_n "checking whether the C compiler works... " >&6; }
3365 # If not cross compiling, check that we can run a simple program.
3366 if test "$cross_compiling" != yes; then
3367   if { ac_try='./$ac_file'
3368   { { case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374   (eval "$ac_try") 2>&5
3375   ac_status=$?
3376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377   test $ac_status = 0; }; }; then
3378     cross_compiling=no
3379   else
3380     if test "$cross_compiling" = maybe; then
3381         cross_compiling=yes
3382     else
3383         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error "cannot run C compiled programs.
3386 If you meant to cross compile, use \`--host'.
3387 See \`config.log' for more details." "$LINENO" 5; }
3388     fi
3389   fi
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392 $as_echo "yes" >&6; }
3393
3394 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3395 ac_clean_files=$ac_clean_files_save
3396 # Check that the compiler produces executables we can run.  If not, either
3397 # the compiler is broken, or we cross compile.
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3399 $as_echo_n "checking whether we are cross compiling... " >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3401 $as_echo "$cross_compiling" >&6; }
3402
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3404 $as_echo_n "checking for suffix of executables... " >&6; }
3405 if { { ac_try="$ac_link"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412   (eval "$ac_link") 2>&5
3413   ac_status=$?
3414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415   test $ac_status = 0; }; then :
3416   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3417 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3418 # work properly (i.e., refer to `conftest.exe'), while it won't with
3419 # `rm'.
3420 for ac_file in conftest.exe conftest conftest.*; do
3421   test -f "$ac_file" || continue
3422   case $ac_file in
3423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425           break;;
3426     * ) break;;
3427   esac
3428 done
3429 else
3430   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error "cannot compute suffix of executables: cannot compile and link
3433 See \`config.log' for more details." "$LINENO" 5; }
3434 fi
3435 rm -f conftest$ac_cv_exeext
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3437 $as_echo "$ac_cv_exeext" >&6; }
3438
3439 rm -f conftest.$ac_ext
3440 EXEEXT=$ac_cv_exeext
3441 ac_exeext=$EXEEXT
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3443 $as_echo_n "checking for suffix of object files... " >&6; }
3444 if test "${ac_cv_objext+set}" = set; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h.  */
3449
3450 int
3451 main ()
3452 {
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.o conftest.obj
3459 if { { ac_try="$ac_compile"
3460 case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466   (eval "$ac_compile") 2>&5
3467   ac_status=$?
3468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469   test $ac_status = 0; }; then :
3470   for ac_file in conftest.o conftest.obj conftest.*; do
3471   test -f "$ac_file" || continue;
3472   case $ac_file in
3473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475        break;;
3476   esac
3477 done
3478 else
3479   $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error "cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details." "$LINENO" 5; }
3486 fi
3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3490 $as_echo "$ac_cv_objext" >&6; }
3491 OBJEXT=$ac_cv_objext
3492 ac_objext=$OBJEXT
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3495 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504 #ifndef __GNUC__
3505        choke me
3506 #endif
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513   ac_compiler_gnu=yes
3514 else
3515   ac_compiler_gnu=no
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3519
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523 if test $ac_compiler_gnu = yes; then
3524   GCC=yes
3525 else
3526   GCC=
3527 fi
3528 ac_test_CFLAGS=${CFLAGS+set}
3529 ac_save_CFLAGS=$CFLAGS
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3532 if test "${ac_cv_prog_cc_g+set}" = set; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   ac_save_c_werror_flag=$ac_c_werror_flag
3536    ac_c_werror_flag=yes
3537    ac_cv_prog_cc_g=no
3538    CFLAGS="-g"
3539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551   ac_cv_prog_cc_g=yes
3552 else
3553   CFLAGS=""
3554       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h.  */
3556
3557 int
3558 main ()
3559 {
3560
3561   ;
3562   return 0;
3563 }
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566
3567 else
3568   ac_c_werror_flag=$ac_save_c_werror_flag
3569          CFLAGS="-g"
3570          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582   ac_cv_prog_cc_g=yes
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589    ac_c_werror_flag=$ac_save_c_werror_flag
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592 $as_echo "$ac_cv_prog_cc_g" >&6; }
3593 if test "$ac_test_CFLAGS" = set; then
3594   CFLAGS=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596   if test "$GCC" = yes; then
3597     CFLAGS="-g -O2"
3598   else
3599     CFLAGS="-g"
3600   fi
3601 else
3602   if test "$GCC" = yes; then
3603     CFLAGS="-O2"
3604   else
3605     CFLAGS=
3606   fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3610 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   ac_cv_prog_cc_c89=no
3614 ac_save_CC=$CC
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h.  */
3617 #include <stdarg.h>
3618 #include <stdio.h>
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3625      char **p;
3626      int i;
3627 {
3628   return p[i];
3629 }
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3631 {
3632   char *s;
3633   va_list v;
3634   va_start (v,p);
3635   s = g (p, va_arg (v,int));
3636   va_end (v);
3637   return s;
3638 }
3639
3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3641    function prototypes and stuff, but not '\xHH' hex character constants.
3642    These don't provoke an error unfortunately, instead are silently treated
3643    as 'x'.  The following induces an error, until -std is added to get
3644    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3645    array size at least.  It's necessary to write '\x00'==0 to get something
3646    that's true only with -std.  */
3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3648
3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650    inside strings and character constants.  */
3651 #define FOO(x) 'x'
3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3653
3654 int test (int i, double x);
3655 struct s1 {int (*f) (int a);};
3656 struct s2 {int (*f) (double a);};
3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3658 int argc;
3659 char **argv;
3660 int
3661 main ()
3662 {
3663 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3664   ;
3665   return 0;
3666 }
3667 _ACEOF
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670 do
3671   CC="$ac_save_CC $ac_arg"
3672   if ac_fn_c_try_compile "$LINENO"; then :
3673   ac_cv_prog_cc_c89=$ac_arg
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext
3676   test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC
3680
3681 fi
3682 # AC_CACHE_VAL
3683 case "x$ac_cv_prog_cc_c89" in
3684   x)
3685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;;
3687   xno)
3688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3689 $as_echo "unsupported" >&6; } ;;
3690   *)
3691     CC="$CC $ac_cv_prog_cc_c89"
3692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694 esac
3695 if test "x$ac_cv_prog_cc_c89" != xno; then :
3696
3697 fi
3698
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 DEPDIR="${am__leading_dot}deps"
3705
3706 ac_config_commands="$ac_config_commands depfiles"
3707
3708
3709 am_make=${MAKE-make}
3710 cat > confinc << 'END'
3711 am__doit:
3712         @echo this is the am__doit target
3713 .PHONY: am__doit
3714 END
3715 # If we don't find an include directive, just comment out the code.
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3717 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3718 am__include="#"
3719 am__quote=
3720 _am_result=none
3721 # First try GNU make style include.
3722 echo "include confinc" > confmf
3723 # Ignore all kinds of additional output from `make'.
3724 case `$am_make -s -f confmf 2> /dev/null` in #(
3725 *the\ am__doit\ target*)
3726   am__include=include
3727   am__quote=
3728   _am_result=GNU
3729   ;;
3730 esac
3731 # Now try BSD make style include.
3732 if test "$am__include" = "#"; then
3733    echo '.include "confinc"' > confmf
3734    case `$am_make -s -f confmf 2> /dev/null` in #(
3735    *the\ am__doit\ target*)
3736      am__include=.include
3737      am__quote="\""
3738      _am_result=BSD
3739      ;;
3740    esac
3741 fi
3742
3743
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3745 $as_echo "$_am_result" >&6; }
3746 rm -f confinc confmf
3747
3748 # Check whether --enable-dependency-tracking was given.
3749 if test "${enable_dependency_tracking+set}" = set; then :
3750   enableval=$enable_dependency_tracking;
3751 fi
3752
3753 if test "x$enable_dependency_tracking" != xno; then
3754   am_depcomp="$ac_aux_dir/depcomp"
3755   AMDEPBACKSLASH='\'
3756 fi
3757  if test "x$enable_dependency_tracking" != xno; then
3758   AMDEP_TRUE=
3759   AMDEP_FALSE='#'
3760 else
3761   AMDEP_TRUE='#'
3762   AMDEP_FALSE=
3763 fi
3764
3765
3766
3767 depcc="$CC"   am_compiler_list=
3768
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3770 $as_echo_n "checking dependency style of $depcc... " >&6; }
3771 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3775   # We make a subdir and do the tests there.  Otherwise we can end up
3776   # making bogus files that we don't know about and never remove.  For
3777   # instance it was reported that on HP-UX the gcc test will end up
3778   # making a dummy file named `D' -- because `-MD' means `put the output
3779   # in D'.
3780   mkdir conftest.dir
3781   # Copy depcomp to subdir because otherwise we won't find it if we're
3782   # using a relative directory.
3783   cp "$am_depcomp" conftest.dir
3784   cd conftest.dir
3785   # We will build objects and dependencies in a subdirectory because
3786   # it helps to detect inapplicable dependency modes.  For instance
3787   # both Tru64's cc and ICC support -MD to output dependencies as a
3788   # side effect of compilation, but ICC will put the dependencies in
3789   # the current directory while Tru64 will put them in the object
3790   # directory.
3791   mkdir sub
3792
3793   am_cv_CC_dependencies_compiler_type=none
3794   if test "$am_compiler_list" = ""; then
3795      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3796   fi
3797   am__universal=false
3798   case " $depcc " in #(
3799      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3800      esac
3801
3802   for depmode in $am_compiler_list; do
3803     # Setup a source with many dependencies, because some compilers
3804     # like to wrap large dependency lists on column 80 (with \), and
3805     # we should not choose a depcomp mode which is confused by this.
3806     #
3807     # We need to recreate these files for each test, as the compiler may
3808     # overwrite some of them when testing with obscure command lines.
3809     # This happens at least with the AIX C compiler.
3810     : > sub/conftest.c
3811     for i in 1 2 3 4 5 6; do
3812       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3813       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3814       # Solaris 8's {/usr,}/bin/sh.
3815       touch sub/conftst$i.h
3816     done
3817     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3818
3819     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820     # mode.  It turns out that the SunPro C++ compiler does not properly
3821     # handle `-M -o', and we need to detect this.  Also, some Intel
3822     # versions had trouble with output in subdirs
3823     am__obj=sub/conftest.${OBJEXT-o}
3824     am__minus_obj="-o $am__obj"
3825     case $depmode in
3826     gcc)
3827       # This depmode causes a compiler race in universal mode.
3828       test "$am__universal" = false || continue
3829       ;;
3830     nosideeffect)
3831       # after this tag, mechanisms are not by side-effect, so they'll
3832       # only be used when explicitly requested
3833       if test "x$enable_dependency_tracking" = xyes; then
3834         continue
3835       else
3836         break
3837       fi
3838       ;;
3839     msvisualcpp | msvcmsys)
3840       # This compiler won't grok `-c -o', but also, the minuso test has
3841       # not run yet.  These depmodes are late enough in the game, and
3842       # so weak that their functioning should not be impacted.
3843       am__obj=conftest.${OBJEXT-o}
3844       am__minus_obj=
3845       ;;
3846     none) break ;;
3847     esac
3848     if depmode=$depmode \
3849        source=sub/conftest.c object=$am__obj \
3850        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3851        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3852          >/dev/null 2>conftest.err &&
3853        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3854        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3855        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3856        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3857       # icc doesn't choke on unknown options, it will just issue warnings
3858       # or remarks (even with -Werror).  So we grep stderr for any message
3859       # that says an option was ignored or not supported.
3860       # When given -MP, icc 7.0 and 7.1 complain thusly:
3861       #   icc: Command line warning: ignoring option '-M'; no argument required
3862       # The diagnosis changed in icc 8.0:
3863       #   icc: Command line remark: option '-MP' not supported
3864       if (grep 'ignoring option' conftest.err ||
3865           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3866         am_cv_CC_dependencies_compiler_type=$depmode
3867         break
3868       fi
3869     fi
3870   done
3871
3872   cd ..
3873   rm -rf conftest.dir
3874 else
3875   am_cv_CC_dependencies_compiler_type=none
3876 fi
3877
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3881 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3882
3883  if
3884   test "x$enable_dependency_tracking" != xno \
3885   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886   am__fastdepCC_TRUE=
3887   am__fastdepCC_FALSE='#'
3888 else
3889   am__fastdepCC_TRUE='#'
3890   am__fastdepCC_FALSE=
3891 fi
3892
3893
3894 ac_ext=go
3895 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3896 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compile_gnu=yes
3898 if test -n "$ac_tool_prefix"; then
3899   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if test "${ac_cv_prog_GOC+set}" = set; then :
3904   $as_echo_n "(cached) " >&6
3905 else
3906   if test -n "$GOC"; then
3907   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914     for ac_exec_ext in '' $ac_executable_extensions; do
3915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918     break 2
3919   fi
3920 done
3921   done
3922 IFS=$as_save_IFS
3923
3924 fi
3925 fi
3926 GOC=$ac_cv_prog_GOC
3927 if test -n "$GOC"; then
3928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3929 $as_echo "$GOC" >&6; }
3930 else
3931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 fi
3934
3935
3936 fi
3937 if test -z "$ac_cv_prog_GOC"; then
3938   ac_ct_GOC=$GOC
3939   # Extract the first word of "gccgo", so it can be a program name with args.
3940 set dummy gccgo; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   if test -n "$ac_ct_GOC"; then
3947   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952   IFS=$as_save_IFS
3953   test -z "$as_dir" && as_dir=.
3954     for ac_exec_ext in '' $ac_executable_extensions; do
3955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956     ac_cv_prog_ac_ct_GOC="gccgo"
3957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958     break 2
3959   fi
3960 done
3961   done
3962 IFS=$as_save_IFS
3963
3964 fi
3965 fi
3966 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3967 if test -n "$ac_ct_GOC"; then
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3969 $as_echo "$ac_ct_GOC" >&6; }
3970 else
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3973 fi
3974
3975   if test "x$ac_ct_GOC" = x; then
3976     GOC=""
3977   else
3978     case $cross_compiling:$ac_tool_warned in
3979 yes:)
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3982 ac_tool_warned=yes ;;
3983 esac
3984     GOC=$ac_ct_GOC
3985   fi
3986 else
3987   GOC="$ac_cv_prog_GOC"
3988 fi
3989
3990 if test -z "$GOC"; then
3991   if test -n "$ac_tool_prefix"; then
3992     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if test "${ac_cv_prog_GOC+set}" = set; then :
3997   $as_echo_n "(cached) " >&6
3998 else
3999   if test -n "$GOC"; then
4000   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007     for ac_exec_ext in '' $ac_executable_extensions; do
4008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014   done
4015 IFS=$as_save_IFS
4016
4017 fi
4018 fi
4019 GOC=$ac_cv_prog_GOC
4020 if test -n "$GOC"; then
4021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4022 $as_echo "$GOC" >&6; }
4023 else
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4026 fi
4027
4028
4029   fi
4030 fi
4031 if test -z "$GOC"; then
4032   # Extract the first word of "gccgo", so it can be a program name with args.
4033 set dummy gccgo; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_GOC+set}" = set; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   if test -n "$GOC"; then
4040   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4041 else
4042   ac_prog_rejected=no
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046   IFS=$as_save_IFS
4047   test -z "$as_dir" && as_dir=.
4048     for ac_exec_ext in '' $ac_executable_extensions; do
4049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4051        ac_prog_rejected=yes
4052        continue
4053      fi
4054     ac_cv_prog_GOC="gccgo"
4055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059   done
4060 IFS=$as_save_IFS
4061
4062 if test $ac_prog_rejected = yes; then
4063   # We found a bogon in the path, so make sure we never use it.
4064   set dummy $ac_cv_prog_GOC
4065   shift
4066   if test $# != 0; then
4067     # We chose a different compiler from the bogus one.
4068     # However, it has the same basename, so the bogon will be chosen
4069     # first if we set GOC to just the basename; use the full file name.
4070     shift
4071     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4072   fi
4073 fi
4074 fi
4075 fi
4076 GOC=$ac_cv_prog_GOC
4077 if test -n "$GOC"; then
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4079 $as_echo "$GOC" >&6; }
4080 else
4081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 $as_echo "no" >&6; }
4083 fi
4084
4085
4086 fi
4087
4088
4089 # Provide some information about the compiler.
4090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4091 set X $ac_compile
4092 ac_compiler=$2
4093 { { ac_try="$ac_compiler --version >&5"
4094 case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100   (eval "$ac_compiler --version >&5") 2>conftest.err
4101   ac_status=$?
4102   if test -s conftest.err; then
4103     sed '10a\
4104 ... rest of stderr output deleted ...
4105          10q' conftest.err >conftest.er1
4106     cat conftest.er1 >&5
4107     rm -f conftest.er1 conftest.err
4108   fi
4109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110   test $ac_status = 0; }
4111 GOCFLAGS="-g -O2"
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117
4118
4119
4120
4121
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4124 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4125     # Check whether --enable-maintainer-mode was given.
4126 if test "${enable_maintainer_mode+set}" = set; then :
4127   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4128 else
4129   USE_MAINTAINER_MODE=no
4130 fi
4131
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4133 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4134    if test $USE_MAINTAINER_MODE = yes; then
4135   MAINTAINER_MODE_TRUE=
4136   MAINTAINER_MODE_FALSE='#'
4137 else
4138   MAINTAINER_MODE_TRUE='#'
4139   MAINTAINER_MODE_FALSE=
4140 fi
4141
4142   MAINT=$MAINTAINER_MODE_TRUE
4143
4144
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4147 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4148 if test "${ac_cv_path_SED+set}" = set; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4152      for ac_i in 1 2 3 4 5 6 7; do
4153        ac_script="$ac_script$as_nl$ac_script"
4154      done
4155      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4156      { ac_script=; unset ac_script;}
4157      if test -z "$SED"; then
4158   ac_path_SED_found=false
4159   # Loop through the user's path and test for each of PROGNAME-LIST
4160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165     for ac_prog in sed gsed; do
4166     for ac_exec_ext in '' $ac_executable_extensions; do
4167       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4168       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4169 # Check for GNU ac_path_SED and select it if it is found.
4170   # Check for GNU $ac_path_SED
4171 case `"$ac_path_SED" --version 2>&1` in
4172 *GNU*)
4173   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4174 *)
4175   ac_count=0
4176   $as_echo_n 0123456789 >"conftest.in"
4177   while :
4178   do
4179     cat "conftest.in" "conftest.in" >"conftest.tmp"
4180     mv "conftest.tmp" "conftest.in"
4181     cp "conftest.in" "conftest.nl"
4182     $as_echo '' >> "conftest.nl"
4183     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185     as_fn_arith $ac_count + 1 && ac_count=$as_val
4186     if test $ac_count -gt ${ac_path_SED_max-0}; then
4187       # Best one so far, save it but keep looking for a better one
4188       ac_cv_path_SED="$ac_path_SED"
4189       ac_path_SED_max=$ac_count
4190     fi
4191     # 10*(2^10) chars as input seems more than enough
4192     test $ac_count -gt 10 && break
4193   done
4194   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 esac
4196
4197       $ac_path_SED_found && break 3
4198     done
4199   done
4200   done
4201 IFS=$as_save_IFS
4202   if test -z "$ac_cv_path_SED"; then
4203     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4204   fi
4205 else
4206   ac_cv_path_SED=$SED
4207 fi
4208
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4211 $as_echo "$ac_cv_path_SED" >&6; }
4212  SED="$ac_cv_path_SED"
4213   rm -f conftest.sed
4214
4215 test -z "$SED" && SED=sed
4216 Xsed="$SED -e 1s/^X//"
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4229 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4230 if test "${ac_cv_path_GREP+set}" = set; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -z "$GREP"; then
4234   ac_path_GREP_found=false
4235   # Loop through the user's path and test for each of PROGNAME-LIST
4236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_prog in grep ggrep; do
4242     for ac_exec_ext in '' $ac_executable_extensions; do
4243       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4244       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4245 # Check for GNU ac_path_GREP and select it if it is found.
4246   # Check for GNU $ac_path_GREP
4247 case `"$ac_path_GREP" --version 2>&1` in
4248 *GNU*)
4249   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4250 *)
4251   ac_count=0
4252   $as_echo_n 0123456789 >"conftest.in"
4253   while :
4254   do
4255     cat "conftest.in" "conftest.in" >"conftest.tmp"
4256     mv "conftest.tmp" "conftest.in"
4257     cp "conftest.in" "conftest.nl"
4258     $as_echo 'GREP' >> "conftest.nl"
4259     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4260     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4261     as_fn_arith $ac_count + 1 && ac_count=$as_val
4262     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4263       # Best one so far, save it but keep looking for a better one
4264       ac_cv_path_GREP="$ac_path_GREP"
4265       ac_path_GREP_max=$ac_count
4266     fi
4267     # 10*(2^10) chars as input seems more than enough
4268     test $ac_count -gt 10 && break
4269   done
4270   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271 esac
4272
4273       $ac_path_GREP_found && break 3
4274     done
4275   done
4276   done
4277 IFS=$as_save_IFS
4278   if test -z "$ac_cv_path_GREP"; then
4279     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4280   fi
4281 else
4282   ac_cv_path_GREP=$GREP
4283 fi
4284
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4287 $as_echo "$ac_cv_path_GREP" >&6; }
4288  GREP="$ac_cv_path_GREP"
4289
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4292 $as_echo_n "checking for egrep... " >&6; }
4293 if test "${ac_cv_path_EGREP+set}" = set; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4297    then ac_cv_path_EGREP="$GREP -E"
4298    else
4299      if test -z "$EGREP"; then
4300   ac_path_EGREP_found=false
4301   # Loop through the user's path and test for each of PROGNAME-LIST
4302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307     for ac_prog in egrep; do
4308     for ac_exec_ext in '' $ac_executable_extensions; do
4309       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4310       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4311 # Check for GNU ac_path_EGREP and select it if it is found.
4312   # Check for GNU $ac_path_EGREP
4313 case `"$ac_path_EGREP" --version 2>&1` in
4314 *GNU*)
4315   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4316 *)
4317   ac_count=0
4318   $as_echo_n 0123456789 >"conftest.in"
4319   while :
4320   do
4321     cat "conftest.in" "conftest.in" >"conftest.tmp"
4322     mv "conftest.tmp" "conftest.in"
4323     cp "conftest.in" "conftest.nl"
4324     $as_echo 'EGREP' >> "conftest.nl"
4325     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4326     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4327     as_fn_arith $ac_count + 1 && ac_count=$as_val
4328     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4329       # Best one so far, save it but keep looking for a better one
4330       ac_cv_path_EGREP="$ac_path_EGREP"
4331       ac_path_EGREP_max=$ac_count
4332     fi
4333     # 10*(2^10) chars as input seems more than enough
4334     test $ac_count -gt 10 && break
4335   done
4336   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4337 esac
4338
4339       $ac_path_EGREP_found && break 3
4340     done
4341   done
4342   done
4343 IFS=$as_save_IFS
4344   if test -z "$ac_cv_path_EGREP"; then
4345     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4346   fi
4347 else
4348   ac_cv_path_EGREP=$EGREP
4349 fi
4350
4351    fi
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4354 $as_echo "$ac_cv_path_EGREP" >&6; }
4355  EGREP="$ac_cv_path_EGREP"
4356
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4359 $as_echo_n "checking for fgrep... " >&6; }
4360 if test "${ac_cv_path_FGREP+set}" = set; then :
4361   $as_echo_n "(cached) " >&6
4362 else
4363   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4364    then ac_cv_path_FGREP="$GREP -F"
4365    else
4366      if test -z "$FGREP"; then
4367   ac_path_FGREP_found=false
4368   # Loop through the user's path and test for each of PROGNAME-LIST
4369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374     for ac_prog in fgrep; do
4375     for ac_exec_ext in '' $ac_executable_extensions; do
4376       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4377       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4378 # Check for GNU ac_path_FGREP and select it if it is found.
4379   # Check for GNU $ac_path_FGREP
4380 case `"$ac_path_FGREP" --version 2>&1` in
4381 *GNU*)
4382   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4383 *)
4384   ac_count=0
4385   $as_echo_n 0123456789 >"conftest.in"
4386   while :
4387   do
4388     cat "conftest.in" "conftest.in" >"conftest.tmp"
4389     mv "conftest.tmp" "conftest.in"
4390     cp "conftest.in" "conftest.nl"
4391     $as_echo 'FGREP' >> "conftest.nl"
4392     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394     as_fn_arith $ac_count + 1 && ac_count=$as_val
4395     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4396       # Best one so far, save it but keep looking for a better one
4397       ac_cv_path_FGREP="$ac_path_FGREP"
4398       ac_path_FGREP_max=$ac_count
4399     fi
4400     # 10*(2^10) chars as input seems more than enough
4401     test $ac_count -gt 10 && break
4402   done
4403   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4405
4406       $ac_path_FGREP_found && break 3
4407     done
4408   done
4409   done
4410 IFS=$as_save_IFS
4411   if test -z "$ac_cv_path_FGREP"; then
4412     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4413   fi
4414 else
4415   ac_cv_path_FGREP=$FGREP
4416 fi
4417
4418    fi
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4421 $as_echo "$ac_cv_path_FGREP" >&6; }
4422  FGREP="$ac_cv_path_FGREP"
4423
4424
4425 test -z "$GREP" && GREP=grep
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4444 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4445 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4448 $as_echo_n "checking how to print strings... " >&6; }
4449 # Test print first, because it will be a builtin if present.
4450 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4451    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4452   ECHO='print -r --'
4453 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4454   ECHO='printf %s\n'
4455 else
4456   # Use this function as a fallback that always works.
4457   func_fallback_echo ()
4458   {
4459     eval 'cat <<_LTECHO_EOF
4460 $1
4461 _LTECHO_EOF'
4462   }
4463   ECHO='func_fallback_echo'
4464 fi
4465
4466 # func_echo_all arg...
4467 # Invoke $ECHO with all args, space-separated.
4468 func_echo_all ()
4469 {
4470     $ECHO ""
4471 }
4472
4473 case "$ECHO" in
4474   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4475 $as_echo "printf" >&6; } ;;
4476   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4477 $as_echo "print -r" >&6; } ;;
4478   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4479 $as_echo "cat" >&6; } ;;
4480 esac
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497 # Check whether --with-gnu-ld was given.
4498 if test "${with_gnu_ld+set}" = set; then :
4499   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4500 else
4501   with_gnu_ld=no
4502 fi
4503
4504 ac_prog=ld
4505 if test "$GCC" = yes; then
4506   # Check if gcc -print-prog-name=ld gives a path.
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4508 $as_echo_n "checking for ld used by $CC... " >&6; }
4509   case $host in
4510   *-*-mingw*)
4511     # gcc leaves a trailing carriage return which upsets mingw
4512     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4513   *)
4514     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4515   esac
4516   case $ac_prog in
4517     # Accept absolute paths.
4518     [\\/]* | ?:[\\/]*)
4519       re_direlt='/[^/][^/]*/\.\./'
4520       # Canonicalize the pathname of ld
4521       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4522       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4523         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4524       done
4525       test -z "$LD" && LD="$ac_prog"
4526       ;;
4527   "")
4528     # If it fails, then pretend we aren't using GCC.
4529     ac_prog=ld
4530     ;;
4531   *)
4532     # If it is relative, then search for the first ld in PATH.
4533     with_gnu_ld=unknown
4534     ;;
4535   esac
4536 elif test "$with_gnu_ld" = yes; then
4537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4538 $as_echo_n "checking for GNU ld... " >&6; }
4539 else
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4541 $as_echo_n "checking for non-GNU ld... " >&6; }
4542 fi
4543 if test "${lt_cv_path_LD+set}" = set; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546   if test -z "$LD"; then
4547   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4548   for ac_dir in $PATH; do
4549     IFS="$lt_save_ifs"
4550     test -z "$ac_dir" && ac_dir=.
4551     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4552       lt_cv_path_LD="$ac_dir/$ac_prog"
4553       # Check to see if the program is GNU ld.  I'd rather use --version,
4554       # but apparently some variants of GNU ld only accept -v.
4555       # Break only if it was the GNU/non-GNU ld that we prefer.
4556       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4557       *GNU* | *'with BFD'*)
4558         test "$with_gnu_ld" != no && break
4559         ;;
4560       *)
4561         test "$with_gnu_ld" != yes && break
4562         ;;
4563       esac
4564     fi
4565   done
4566   IFS="$lt_save_ifs"
4567 else
4568   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4569 fi
4570 fi
4571
4572 LD="$lt_cv_path_LD"
4573 if test -n "$LD"; then
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4575 $as_echo "$LD" >&6; }
4576 else
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4582 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4583 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4587 case `$LD -v 2>&1 </dev/null` in
4588 *GNU* | *'with BFD'*)
4589   lt_cv_prog_gnu_ld=yes
4590   ;;
4591 *)
4592   lt_cv_prog_gnu_ld=no
4593   ;;
4594 esac
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4597 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4598 with_gnu_ld=$lt_cv_prog_gnu_ld
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608 if test -n "$ac_tool_prefix"; then
4609   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   if test -n "$RANLIB"; then
4617   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624     for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631   done
4632 IFS=$as_save_IFS
4633
4634 fi
4635 fi
4636 RANLIB=$ac_cv_prog_RANLIB
4637 if test -n "$RANLIB"; then
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4639 $as_echo "$RANLIB" >&6; }
4640 else
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4643 fi
4644
4645
4646 fi
4647 if test -z "$ac_cv_prog_RANLIB"; then
4648   ac_ct_RANLIB=$RANLIB
4649   # Extract the first word of "ranlib", so it can be a program name with args.
4650 set dummy ranlib; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   if test -n "$ac_ct_RANLIB"; then
4657   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664     for ac_exec_ext in '' $ac_executable_extensions; do
4665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666     ac_cv_prog_ac_ct_RANLIB="ranlib"
4667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671   done
4672 IFS=$as_save_IFS
4673
4674 fi
4675 fi
4676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4677 if test -n "$ac_ct_RANLIB"; then
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4679 $as_echo "$ac_ct_RANLIB" >&6; }
4680 else
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 fi
4684
4685   if test "x$ac_ct_RANLIB" = x; then
4686     RANLIB=":"
4687   else
4688     case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694     RANLIB=$ac_ct_RANLIB
4695   fi
4696 else
4697   RANLIB="$ac_cv_prog_RANLIB"
4698 fi
4699
4700 if test -n "$ac_tool_prefix"; then
4701   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   if test -n "$OBJCOPY"; then
4709   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716     for ac_exec_ext in '' $ac_executable_extensions; do
4717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723   done
4724 IFS=$as_save_IFS
4725
4726 fi
4727 fi
4728 OBJCOPY=$ac_cv_prog_OBJCOPY
4729 if test -n "$OBJCOPY"; then
4730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4731 $as_echo "$OBJCOPY" >&6; }
4732 else
4733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 fi
4736
4737
4738 fi
4739 if test -z "$ac_cv_prog_OBJCOPY"; then
4740   ac_ct_OBJCOPY=$OBJCOPY
4741   # Extract the first word of "objcopy", so it can be a program name with args.
4742 set dummy objcopy; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   if test -n "$ac_ct_OBJCOPY"; then
4749   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756     for ac_exec_ext in '' $ac_executable_extensions; do
4757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763   done
4764 IFS=$as_save_IFS
4765
4766 fi
4767 fi
4768 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4769 if test -n "$ac_ct_OBJCOPY"; then
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4771 $as_echo "$ac_ct_OBJCOPY" >&6; }
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777   if test "x$ac_ct_OBJCOPY" = x; then
4778     OBJCOPY="missing-objcopy"
4779   else
4780     case $cross_compiling:$ac_tool_warned in
4781 yes:)
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4784 ac_tool_warned=yes ;;
4785 esac
4786     OBJCOPY=$ac_ct_OBJCOPY
4787   fi
4788 else
4789   OBJCOPY="$ac_cv_prog_OBJCOPY"
4790 fi
4791
4792
4793 enable_dlopen=yes
4794
4795
4796
4797 case `pwd` in
4798   *\ * | *\     *)
4799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4800 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4801 esac
4802
4803
4804
4805 macro_version='2.2.7a'
4806 macro_revision='1.3134'
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820 ltmain="$ac_aux_dir/ltmain.sh"
4821
4822 # Backslashify metacharacters that are still active within
4823 # double-quoted strings.
4824 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4825
4826 # Same as above, but do not quote variable references.
4827 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4828
4829 # Sed substitution to delay expansion of an escaped shell variable in a
4830 # double_quote_subst'ed string.
4831 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4832
4833 # Sed substitution to delay expansion of an escaped single quote.
4834 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4835
4836 # Sed substitution to avoid accidental globbing in evaled expressions
4837 no_glob_subst='s/\*/\\\*/g'
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4840 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4841 if test "${lt_cv_path_NM+set}" = set; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   if test -n "$NM"; then
4845   # Let the user override the test.
4846   lt_cv_path_NM="$NM"
4847 else
4848   lt_nm_to_check="${ac_tool_prefix}nm"
4849   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4850     lt_nm_to_check="$lt_nm_to_check nm"
4851   fi
4852   for lt_tmp_nm in $lt_nm_to_check; do
4853     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4854     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4855       IFS="$lt_save_ifs"
4856       test -z "$ac_dir" && ac_dir=.
4857       tmp_nm="$ac_dir/$lt_tmp_nm"
4858       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4859         # Check to see if the nm accepts a BSD-compat flag.
4860         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4861         #   nm: unknown option "B" ignored
4862         # Tru64's nm complains that /dev/null is an invalid object file
4863         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4864         */dev/null* | *'Invalid file or object type'*)
4865           lt_cv_path_NM="$tmp_nm -B"
4866           break
4867           ;;
4868         *)
4869           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4870           */dev/null*)
4871             lt_cv_path_NM="$tmp_nm -p"
4872             break
4873             ;;
4874           *)
4875             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4876             continue # so that we can try to find one that supports BSD flags
4877             ;;
4878           esac
4879           ;;
4880         esac
4881       fi
4882     done
4883     IFS="$lt_save_ifs"
4884   done
4885   : ${lt_cv_path_NM=no}
4886 fi
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4889 $as_echo "$lt_cv_path_NM" >&6; }
4890 if test "$lt_cv_path_NM" != "no"; then
4891   NM="$lt_cv_path_NM"
4892 else
4893   # Didn't find any BSD compatible name lister, look for dumpbin.
4894   if test -n "$DUMPBIN"; then :
4895     # Let the user override the test.
4896   else
4897     if test -n "$ac_tool_prefix"; then
4898   for ac_prog in dumpbin "link -dump"
4899   do
4900     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4905   $as_echo_n "(cached) " >&6
4906 else
4907   if test -n "$DUMPBIN"; then
4908   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915     for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922   done
4923 IFS=$as_save_IFS
4924
4925 fi
4926 fi
4927 DUMPBIN=$ac_cv_prog_DUMPBIN
4928 if test -n "$DUMPBIN"; then
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4930 $as_echo "$DUMPBIN" >&6; }
4931 else
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4934 fi
4935
4936
4937     test -n "$DUMPBIN" && break
4938   done
4939 fi
4940 if test -z "$DUMPBIN"; then
4941   ac_ct_DUMPBIN=$DUMPBIN
4942   for ac_prog in dumpbin "link -dump"
4943 do
4944   # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy $ac_prog; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   if test -n "$ac_ct_DUMPBIN"; then
4952   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959     for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966   done
4967 IFS=$as_save_IFS
4968
4969 fi
4970 fi
4971 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4972 if test -n "$ac_ct_DUMPBIN"; then
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4974 $as_echo "$ac_ct_DUMPBIN" >&6; }
4975 else
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4978 fi
4979
4980
4981   test -n "$ac_ct_DUMPBIN" && break
4982 done
4983
4984   if test "x$ac_ct_DUMPBIN" = x; then
4985     DUMPBIN=":"
4986   else
4987     case $cross_compiling:$ac_tool_warned in
4988 yes:)
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991 ac_tool_warned=yes ;;
4992 esac
4993     DUMPBIN=$ac_ct_DUMPBIN
4994   fi
4995 fi
4996
4997     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4998     *COFF*)
4999       DUMPBIN="$DUMPBIN -symbols"
5000       ;;
5001     *)
5002       DUMPBIN=:
5003       ;;
5004     esac
5005   fi
5006
5007   if test "$DUMPBIN" != ":"; then
5008     NM="$DUMPBIN"
5009   fi
5010 fi
5011 test -z "$NM" && NM=nm
5012
5013
5014
5015
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5019 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5020 if test "${lt_cv_nm_interface+set}" = set; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   lt_cv_nm_interface="BSD nm"
5024   echo "int some_variable = 0;" > conftest.$ac_ext
5025   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5026   (eval "$ac_compile" 2>conftest.err)
5027   cat conftest.err >&5
5028   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5029   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5030   cat conftest.err >&5
5031   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5032   cat conftest.out >&5
5033   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5034     lt_cv_nm_interface="MS dumpbin"
5035   fi
5036   rm -f conftest*
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5039 $as_echo "$lt_cv_nm_interface" >&6; }
5040
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5042 $as_echo_n "checking whether ln -s works... " >&6; }
5043 LN_S=$as_ln_s
5044 if test "$LN_S" = "ln -s"; then
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046 $as_echo "yes" >&6; }
5047 else
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5049 $as_echo "no, using $LN_S" >&6; }
5050 fi
5051
5052 # find the maximum length of command line arguments
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5054 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5055 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5056   $as_echo_n "(cached) " >&6
5057 else
5058     i=0
5059   teststring="ABCD"
5060
5061   case $build_os in
5062   msdosdjgpp*)
5063     # On DJGPP, this test can blow up pretty badly due to problems in libc
5064     # (any single argument exceeding 2000 bytes causes a buffer overrun
5065     # during glob expansion).  Even if it were fixed, the result of this
5066     # check would be larger than it should be.
5067     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5068     ;;
5069
5070   gnu*)
5071     # Under GNU Hurd, this test is not required because there is
5072     # no limit to the length of command line arguments.
5073     # Libtool will interpret -1 as no limit whatsoever
5074     lt_cv_sys_max_cmd_len=-1;
5075     ;;
5076
5077   cygwin* | mingw* | cegcc*)
5078     # On Win9x/ME, this test blows up -- it succeeds, but takes
5079     # about 5 minutes as the teststring grows exponentially.
5080     # Worse, since 9x/ME are not pre-emptively multitasking,
5081     # you end up with a "frozen" computer, even though with patience
5082     # the test eventually succeeds (with a max line length of 256k).
5083     # Instead, let's just punt: use the minimum linelength reported by
5084     # all of the supported platforms: 8192 (on NT/2K/XP).
5085     lt_cv_sys_max_cmd_len=8192;
5086     ;;
5087
5088   mint*)
5089     # On MiNT this can take a long time and run out of memory.
5090     lt_cv_sys_max_cmd_len=8192;
5091     ;;
5092
5093   amigaos*)
5094     # On AmigaOS with pdksh, this test takes hours, literally.
5095     # So we just punt and use a minimum line length of 8192.
5096     lt_cv_sys_max_cmd_len=8192;
5097     ;;
5098
5099   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5100     # This has been around since 386BSD, at least.  Likely further.
5101     if test -x /sbin/sysctl; then
5102       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5103     elif test -x /usr/sbin/sysctl; then
5104       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5105     else
5106       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5107     fi
5108     # And add a safety zone
5109     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5110     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5111     ;;
5112
5113   interix*)
5114     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5115     lt_cv_sys_max_cmd_len=196608
5116     ;;
5117
5118   osf*)
5119     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5120     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5121     # nice to cause kernel panics so lets avoid the loop below.
5122     # First set a reasonable default.
5123     lt_cv_sys_max_cmd_len=16384
5124     #
5125     if test -x /sbin/sysconfig; then
5126       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5127         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5128       esac
5129     fi
5130     ;;
5131   sco3.2v5*)
5132     lt_cv_sys_max_cmd_len=102400
5133     ;;
5134   sysv5* | sco5v6* | sysv4.2uw2*)
5135     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5136     if test -n "$kargmax"; then
5137       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5138     else
5139       lt_cv_sys_max_cmd_len=32768
5140     fi
5141     ;;
5142   *)
5143     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5144     if test -n "$lt_cv_sys_max_cmd_len"; then
5145       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5146       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5147     else
5148       # Make teststring a little bigger before we do anything with it.
5149       # a 1K string should be a reasonable start.
5150       for i in 1 2 3 4 5 6 7 8 ; do
5151         teststring=$teststring$teststring
5152       done
5153       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5154       # If test is not a shell built-in, we'll probably end up computing a
5155       # maximum length that is only half of the actual maximum length, but
5156       # we can't tell.
5157       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5158                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5159               test $i != 17 # 1/2 MB should be enough
5160       do
5161         i=`expr $i + 1`
5162         teststring=$teststring$teststring
5163       done
5164       # Only check the string length outside the loop.
5165       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5166       teststring=
5167       # Add a significant safety factor because C++ compilers can tack on
5168       # massive amounts of additional arguments before passing them to the
5169       # linker.  It appears as though 1/2 is a usable value.
5170       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5171     fi
5172     ;;
5173   esac
5174
5175 fi
5176
5177 if test -n $lt_cv_sys_max_cmd_len ; then
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5179 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5180 else
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5182 $as_echo "none" >&6; }
5183 fi
5184 max_cmd_len=$lt_cv_sys_max_cmd_len
5185
5186
5187
5188
5189
5190
5191 : ${CP="cp -f"}
5192 : ${MV="mv -f"}
5193 : ${RM="rm -f"}
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5196 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5197 # Try some XSI features
5198 xsi_shell=no
5199 ( _lt_dummy="a/b/c"
5200   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5201       = c,a/b,, \
5202     && eval 'test $(( 1 + 1 )) -eq 2 \
5203     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5204   && xsi_shell=yes
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5206 $as_echo "$xsi_shell" >&6; }
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5210 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5211 lt_shell_append=no
5212 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5213     >/dev/null 2>&1 \
5214   && lt_shell_append=yes
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5216 $as_echo "$lt_shell_append" >&6; }
5217
5218
5219 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5220   lt_unset=unset
5221 else
5222   lt_unset=false
5223 fi
5224
5225
5226
5227
5228
5229 # test EBCDIC or ASCII
5230 case `echo X|tr X '\101'` in
5231  A) # ASCII based system
5232     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5233   lt_SP2NL='tr \040 \012'
5234   lt_NL2SP='tr \015\012 \040\040'
5235   ;;
5236  *) # EBCDIC based system
5237   lt_SP2NL='tr \100 \n'
5238   lt_NL2SP='tr \r\n \100\100'
5239   ;;
5240 esac
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5251 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5252 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   lt_cv_ld_reload_flag='-r'
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5258 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5259 reload_flag=$lt_cv_ld_reload_flag
5260 case $reload_flag in
5261 "" | " "*) ;;
5262 *) reload_flag=" $reload_flag" ;;
5263 esac
5264 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5265 case $host_os in
5266   darwin*)
5267     if test "$GCC" = yes; then
5268       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5269     else
5270       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5271     fi
5272     ;;
5273 esac
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283 if test -n "$ac_tool_prefix"; then
5284   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5285 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291   if test -n "$OBJDUMP"; then
5292   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297   IFS=$as_save_IFS
5298   test -z "$as_dir" && as_dir=.
5299     for ac_exec_ext in '' $ac_executable_extensions; do
5300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303     break 2
5304   fi
5305 done
5306   done
5307 IFS=$as_save_IFS
5308
5309 fi
5310 fi
5311 OBJDUMP=$ac_cv_prog_OBJDUMP
5312 if test -n "$OBJDUMP"; then
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5314 $as_echo "$OBJDUMP" >&6; }
5315 else
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 fi
5319
5320
5321 fi
5322 if test -z "$ac_cv_prog_OBJDUMP"; then
5323   ac_ct_OBJDUMP=$OBJDUMP
5324   # Extract the first word of "objdump", so it can be a program name with args.
5325 set dummy objdump; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5329   $as_echo_n "(cached) " >&6
5330 else
5331   if test -n "$ac_ct_OBJDUMP"; then
5332   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339     for ac_exec_ext in '' $ac_executable_extensions; do
5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346   done
5347 IFS=$as_save_IFS
5348
5349 fi
5350 fi
5351 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5352 if test -n "$ac_ct_OBJDUMP"; then
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5354 $as_echo "$ac_ct_OBJDUMP" >&6; }
5355 else
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360   if test "x$ac_ct_OBJDUMP" = x; then
5361     OBJDUMP="false"
5362   else
5363     case $cross_compiling:$ac_tool_warned in
5364 yes:)
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5367 ac_tool_warned=yes ;;
5368 esac
5369     OBJDUMP=$ac_ct_OBJDUMP
5370   fi
5371 else
5372   OBJDUMP="$ac_cv_prog_OBJDUMP"
5373 fi
5374
5375 test -z "$OBJDUMP" && OBJDUMP=objdump
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5386 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5387 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   lt_cv_file_magic_cmd='$MAGIC_CMD'
5391 lt_cv_file_magic_test_file=
5392 lt_cv_deplibs_check_method='unknown'
5393 # Need to set the preceding variable on all platforms that support
5394 # interlibrary dependencies.
5395 # 'none' -- dependencies not supported.
5396 # `unknown' -- same as none, but documents that we really don't know.
5397 # 'pass_all' -- all dependencies passed with no checks.
5398 # 'test_compile' -- check by making test program.
5399 # 'file_magic [[regex]]' -- check by looking for files in library path
5400 # which responds to the $file_magic_cmd with a given extended regex.
5401 # If you have `file' or equivalent on your system and you're not sure
5402 # whether `pass_all' will *always* work, you probably want this one.
5403
5404 case $host_os in
5405 aix[4-9]*)
5406   lt_cv_deplibs_check_method=pass_all
5407   ;;
5408
5409 beos*)
5410   lt_cv_deplibs_check_method=pass_all
5411   ;;
5412
5413 bsdi[45]*)
5414   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5415   lt_cv_file_magic_cmd='/usr/bin/file -L'
5416   lt_cv_file_magic_test_file=/shlib/libc.so
5417   ;;
5418
5419 cygwin*)
5420   # func_win32_libid is a shell function defined in ltmain.sh
5421   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5422   lt_cv_file_magic_cmd='func_win32_libid'
5423   ;;
5424
5425 mingw* | pw32*)
5426   # Base MSYS/MinGW do not provide the 'file' command needed by
5427   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5428   # unless we find 'file', for example because we are cross-compiling.
5429   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5430   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5431     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5432     lt_cv_file_magic_cmd='func_win32_libid'
5433   else
5434     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5435     lt_cv_file_magic_cmd='$OBJDUMP -f'
5436   fi
5437   ;;
5438
5439 cegcc*)
5440   # use the weaker test based on 'objdump'. See mingw*.
5441   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5442   lt_cv_file_magic_cmd='$OBJDUMP -f'
5443   ;;
5444
5445 darwin* | rhapsody*)
5446   lt_cv_deplibs_check_method=pass_all
5447   ;;
5448
5449 freebsd* | dragonfly*)
5450   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5451     case $host_cpu in
5452     i*86 )
5453       # Not sure whether the presence of OpenBSD here was a mistake.
5454       # Let's accept both of them until this is cleared up.
5455       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5456       lt_cv_file_magic_cmd=/usr/bin/file
5457       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5458       ;;
5459     esac
5460   else
5461     lt_cv_deplibs_check_method=pass_all
5462   fi
5463   ;;
5464
5465 gnu*)
5466   lt_cv_deplibs_check_method=pass_all
5467   ;;
5468
5469 haiku*)
5470   lt_cv_deplibs_check_method=pass_all
5471   ;;
5472
5473 hpux10.20* | hpux11*)
5474   lt_cv_file_magic_cmd=/usr/bin/file
5475   case $host_cpu in
5476   ia64*)
5477     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5478     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5479     ;;
5480   hppa*64*)
5481     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5482     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5483     ;;
5484   *)
5485     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5486     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5487     ;;
5488   esac
5489   ;;
5490
5491 interix[3-9]*)
5492   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5493   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5494   ;;
5495
5496 irix5* | irix6* | nonstopux*)
5497   case $LD in
5498   *-32|*"-32 ") libmagic=32-bit;;
5499   *-n32|*"-n32 ") libmagic=N32;;
5500   *-64|*"-64 ") libmagic=64-bit;;
5501   *) libmagic=never-match;;
5502   esac
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505
5506 # This must be Linux ELF.
5507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 netbsd*)
5512   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5514   else
5515     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5516   fi
5517   ;;
5518
5519 newos6*)
5520   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5521   lt_cv_file_magic_cmd=/usr/bin/file
5522   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5523   ;;
5524
5525 *nto* | *qnx*)
5526   lt_cv_deplibs_check_method=pass_all
5527   ;;
5528
5529 openbsd*)
5530   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5532   else
5533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5534   fi
5535   ;;
5536
5537 osf3* | osf4* | osf5*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 rdos*)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 solaris*)
5546   lt_cv_deplibs_check_method=pass_all
5547   ;;
5548
5549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 sysv4 | sysv4.3*)
5554   case $host_vendor in
5555   motorola)
5556     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5557     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5558     ;;
5559   ncr)
5560     lt_cv_deplibs_check_method=pass_all
5561     ;;
5562   sequent)
5563     lt_cv_file_magic_cmd='/bin/file'
5564     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5565     ;;
5566   sni)
5567     lt_cv_file_magic_cmd='/bin/file'
5568     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5569     lt_cv_file_magic_test_file=/lib/libc.so
5570     ;;
5571   siemens)
5572     lt_cv_deplibs_check_method=pass_all
5573     ;;
5574   pc)
5575     lt_cv_deplibs_check_method=pass_all
5576     ;;
5577   esac
5578   ;;
5579
5580 tpf*)
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583 esac
5584
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5587 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5588 file_magic_cmd=$lt_cv_file_magic_cmd
5589 deplibs_check_method=$lt_cv_deplibs_check_method
5590 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 if test -n "$ac_tool_prefix"; then
5604   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}ar; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_prog_AR+set}" = set; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if test -n "$AR"; then
5612   ac_cv_prog_AR="$AR" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619     for ac_exec_ext in '' $ac_executable_extensions; do
5620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621     ac_cv_prog_AR="${ac_tool_prefix}ar"
5622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626   done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 AR=$ac_cv_prog_AR
5632 if test -n "$AR"; then
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5634 $as_echo "$AR" >&6; }
5635 else
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641 fi
5642 if test -z "$ac_cv_prog_AR"; then
5643   ac_ct_AR=$AR
5644   # Extract the first word of "ar", so it can be a program name with args.
5645 set dummy ar; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   if test -n "$ac_ct_AR"; then
5652   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_exec_ext in '' $ac_executable_extensions; do
5660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661     ac_cv_prog_ac_ct_AR="ar"
5662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666   done
5667 IFS=$as_save_IFS
5668
5669 fi
5670 fi
5671 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5672 if test -n "$ac_ct_AR"; then
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5674 $as_echo "$ac_ct_AR" >&6; }
5675 else
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680   if test "x$ac_ct_AR" = x; then
5681     AR="false"
5682   else
5683     case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689     AR=$ac_ct_AR
5690   fi
5691 else
5692   AR="$ac_cv_prog_AR"
5693 fi
5694
5695 test -z "$AR" && AR=ar
5696 test -z "$AR_FLAGS" && AR_FLAGS=cru
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 if test -n "$ac_tool_prefix"; then
5709   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5710 set dummy ${ac_tool_prefix}strip; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if test "${ac_cv_prog_STRIP+set}" = set; then :
5714   $as_echo_n "(cached) " >&6
5715 else
5716   if test -n "$STRIP"; then
5717   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724     for ac_exec_ext in '' $ac_executable_extensions; do
5725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728     break 2
5729   fi
5730 done
5731   done
5732 IFS=$as_save_IFS
5733
5734 fi
5735 fi
5736 STRIP=$ac_cv_prog_STRIP
5737 if test -n "$STRIP"; then
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5739 $as_echo "$STRIP" >&6; }
5740 else
5741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5743 fi
5744
5745
5746 fi
5747 if test -z "$ac_cv_prog_STRIP"; then
5748   ac_ct_STRIP=$STRIP
5749   # Extract the first word of "strip", so it can be a program name with args.
5750 set dummy strip; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   if test -n "$ac_ct_STRIP"; then
5757   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762   IFS=$as_save_IFS
5763   test -z "$as_dir" && as_dir=.
5764     for ac_exec_ext in '' $ac_executable_extensions; do
5765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5766     ac_cv_prog_ac_ct_STRIP="strip"
5767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768     break 2
5769   fi
5770 done
5771   done
5772 IFS=$as_save_IFS
5773
5774 fi
5775 fi
5776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5777 if test -n "$ac_ct_STRIP"; then
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5779 $as_echo "$ac_ct_STRIP" >&6; }
5780 else
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5783 fi
5784
5785   if test "x$ac_ct_STRIP" = x; then
5786     STRIP=":"
5787   else
5788     case $cross_compiling:$ac_tool_warned in
5789 yes:)
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5792 ac_tool_warned=yes ;;
5793 esac
5794     STRIP=$ac_ct_STRIP
5795   fi
5796 else
5797   STRIP="$ac_cv_prog_STRIP"
5798 fi
5799
5800 test -z "$STRIP" && STRIP=:
5801
5802
5803
5804
5805
5806
5807 if test -n "$ac_tool_prefix"; then
5808   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5813   $as_echo_n "(cached) " >&6
5814 else
5815   if test -n "$RANLIB"; then
5816   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 RANLIB=$ac_cv_prog_RANLIB
5836 if test -n "$RANLIB"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5838 $as_echo "$RANLIB" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844
5845 fi
5846 if test -z "$ac_cv_prog_RANLIB"; then
5847   ac_ct_RANLIB=$RANLIB
5848   # Extract the first word of "ranlib", so it can be a program name with args.
5849 set dummy ranlib; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5853   $as_echo_n "(cached) " >&6
5854 else
5855   if test -n "$ac_ct_RANLIB"; then
5856   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863     for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_prog_ac_ct_RANLIB="ranlib"
5866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870   done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5876 if test -n "$ac_ct_RANLIB"; then
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5878 $as_echo "$ac_ct_RANLIB" >&6; }
5879 else
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5882 fi
5883
5884   if test "x$ac_ct_RANLIB" = x; then
5885     RANLIB=":"
5886   else
5887     case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893     RANLIB=$ac_ct_RANLIB
5894   fi
5895 else
5896   RANLIB="$ac_cv_prog_RANLIB"
5897 fi
5898
5899 test -z "$RANLIB" && RANLIB=:
5900
5901
5902
5903
5904
5905
5906 # Determine commands to create old-style static archives.
5907 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5908 old_postinstall_cmds='chmod 644 $oldlib'
5909 old_postuninstall_cmds=
5910
5911 if test -n "$RANLIB"; then
5912   case $host_os in
5913   openbsd*)
5914     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5915     ;;
5916   *)
5917     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5918     ;;
5919   esac
5920   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5921 fi
5922
5923 case $host_os in
5924   darwin*)
5925     lock_old_archive_extraction=yes ;;
5926   *)
5927     lock_old_archive_extraction=no ;;
5928 esac
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968 # If no C compiler was specified, use CC.
5969 LTCC=${LTCC-"$CC"}
5970
5971 # If no C compiler flags were specified, use CFLAGS.
5972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5973
5974 # Allow CC to be a program name with arguments.
5975 compiler=$CC
5976
5977
5978 # Check for command to grab the raw symbol name followed by C symbol from nm.
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5980 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5981 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984
5985 # These are sane defaults that work on at least a few old systems.
5986 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5987
5988 # Character class describing NM global symbol codes.
5989 symcode='[BCDEGRST]'
5990
5991 # Regexp to match symbols that can be accessed directly from C.
5992 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5993
5994 # Define system-specific variables.
5995 case $host_os in
5996 aix*)
5997   symcode='[BCDT]'
5998   ;;
5999 cygwin* | mingw* | pw32* | cegcc*)
6000   symcode='[ABCDGISTW]'
6001   ;;
6002 hpux*)
6003   if test "$host_cpu" = ia64; then
6004     symcode='[ABCDEGRST]'
6005   fi
6006   ;;
6007 irix* | nonstopux*)
6008   symcode='[BCDEGRST]'
6009   ;;
6010 osf*)
6011   symcode='[BCDEGQRST]'
6012   ;;
6013 solaris*)
6014   symcode='[BDRT]'
6015   ;;
6016 sco3.2v5*)
6017   symcode='[DT]'
6018   ;;
6019 sysv4.2uw2*)
6020   symcode='[DT]'
6021   ;;
6022 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6023   symcode='[ABDT]'
6024   ;;
6025 sysv4)
6026   symcode='[DFNSTU]'
6027   ;;
6028 esac
6029
6030 # If we're using GNU nm, then use its standard symbol codes.
6031 case `$NM -V 2>&1` in
6032 *GNU* | *'with BFD'*)
6033   symcode='[ABCDGIRSTW]' ;;
6034 esac
6035
6036 # Transform an extracted symbol line into a proper C declaration.
6037 # Some systems (esp. on ia64) link data and code symbols differently,
6038 # so use this general approach.
6039 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6040
6041 # Transform an extracted symbol line into symbol name and symbol address
6042 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6043 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6044
6045 # Handle CRLF in mingw tool chain
6046 opt_cr=
6047 case $build_os in
6048 mingw*)
6049   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6050   ;;
6051 esac
6052
6053 # Try without a prefix underscore, then with it.
6054 for ac_symprfx in "" "_"; do
6055
6056   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6057   symxfrm="\\1 $ac_symprfx\\2 \\2"
6058
6059   # Write the raw and C identifiers.
6060   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061     # Fake it for dumpbin and say T for any non-static function
6062     # and D for any global variable.
6063     # Also find C++ and __fastcall symbols from MSVC++,
6064     # which start with @ or ?.
6065     lt_cv_sys_global_symbol_pipe="$AWK '"\
6066 "     {last_section=section; section=\$ 3};"\
6067 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6068 "     \$ 0!~/External *\|/{next};"\
6069 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6070 "     {if(hide[section]) next};"\
6071 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6072 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6073 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6074 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6075 "     ' prfx=^$ac_symprfx"
6076   else
6077     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6078   fi
6079
6080   # Check to see that the pipe works correctly.
6081   pipe_works=no
6082
6083   rm -f conftest*
6084   cat > conftest.$ac_ext <<_LT_EOF
6085 #ifdef __cplusplus
6086 extern "C" {
6087 #endif
6088 char nm_test_var;
6089 void nm_test_func(void);
6090 void nm_test_func(void){}
6091 #ifdef __cplusplus
6092 }
6093 #endif
6094 int main(){nm_test_var='a';nm_test_func();return(0);}
6095 _LT_EOF
6096
6097   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6098   (eval $ac_compile) 2>&5
6099   ac_status=$?
6100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101   test $ac_status = 0; }; then
6102     # Now try to grab the symbols.
6103     nlist=conftest.nm
6104     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6105   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6106   ac_status=$?
6107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108   test $ac_status = 0; } && test -s "$nlist"; then
6109       # Try sorting and uniquifying the output.
6110       if sort "$nlist" | uniq > "$nlist"T; then
6111         mv -f "$nlist"T "$nlist"
6112       else
6113         rm -f "$nlist"T
6114       fi
6115
6116       # Make sure that we snagged all the symbols we need.
6117       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6118         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6119           cat <<_LT_EOF > conftest.$ac_ext
6120 #ifdef __cplusplus
6121 extern "C" {
6122 #endif
6123
6124 _LT_EOF
6125           # Now generate the symbol file.
6126           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6127
6128           cat <<_LT_EOF >> conftest.$ac_ext
6129
6130 /* The mapping between symbol names and symbols.  */
6131 const struct {
6132   const char *name;
6133   void       *address;
6134 }
6135 lt__PROGRAM__LTX_preloaded_symbols[] =
6136 {
6137   { "@PROGRAM@", (void *) 0 },
6138 _LT_EOF
6139           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6140           cat <<\_LT_EOF >> conftest.$ac_ext
6141   {0, (void *) 0}
6142 };
6143
6144 /* This works around a problem in FreeBSD linker */
6145 #ifdef FREEBSD_WORKAROUND
6146 static const void *lt_preloaded_setup() {
6147   return lt__PROGRAM__LTX_preloaded_symbols;
6148 }
6149 #endif
6150
6151 #ifdef __cplusplus
6152 }
6153 #endif
6154 _LT_EOF
6155           # Now try linking the two files.
6156           mv conftest.$ac_objext conftstm.$ac_objext
6157           lt_save_LIBS="$LIBS"
6158           lt_save_CFLAGS="$CFLAGS"
6159           LIBS="conftstm.$ac_objext"
6160           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6161           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6162   (eval $ac_link) 2>&5
6163   ac_status=$?
6164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6166             pipe_works=yes
6167           fi
6168           LIBS="$lt_save_LIBS"
6169           CFLAGS="$lt_save_CFLAGS"
6170         else
6171           echo "cannot find nm_test_func in $nlist" >&5
6172         fi
6173       else
6174         echo "cannot find nm_test_var in $nlist" >&5
6175       fi
6176     else
6177       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6178     fi
6179   else
6180     echo "$progname: failed program was:" >&5
6181     cat conftest.$ac_ext >&5
6182   fi
6183   rm -rf conftest* conftst*
6184
6185   # Do not use the global_symbol_pipe unless it works.
6186   if test "$pipe_works" = yes; then
6187     break
6188   else
6189     lt_cv_sys_global_symbol_pipe=
6190   fi
6191 done
6192
6193 fi
6194
6195 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6196   lt_cv_sys_global_symbol_to_cdecl=
6197 fi
6198 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6200 $as_echo "failed" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6203 $as_echo "ok" >&6; }
6204 fi
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 # Check whether --enable-libtool-lock was given.
6229 if test "${enable_libtool_lock+set}" = set; then :
6230   enableval=$enable_libtool_lock;
6231 fi
6232
6233 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6234
6235 # Some flags need to be propagated to the compiler or linker for good
6236 # libtool support.
6237 case $host in
6238 ia64-*-hpux*)
6239   # Find out which ABI we are using.
6240   echo 'int i;' > conftest.$ac_ext
6241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242   (eval $ac_compile) 2>&5
6243   ac_status=$?
6244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245   test $ac_status = 0; }; then
6246     case `/usr/bin/file conftest.$ac_objext` in
6247       *ELF-32*)
6248         HPUX_IA64_MODE="32"
6249         ;;
6250       *ELF-64*)
6251         HPUX_IA64_MODE="64"
6252         ;;
6253     esac
6254   fi
6255   rm -rf conftest*
6256   ;;
6257 *-*-irix6*)
6258   # Find out which ABI we are using.
6259   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6260   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261   (eval $ac_compile) 2>&5
6262   ac_status=$?
6263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264   test $ac_status = 0; }; then
6265     if test "$lt_cv_prog_gnu_ld" = yes; then
6266       case `/usr/bin/file conftest.$ac_objext` in
6267         *32-bit*)
6268           LD="${LD-ld} -melf32bsmip"
6269           ;;
6270         *N32*)
6271           LD="${LD-ld} -melf32bmipn32"
6272           ;;
6273         *64-bit*)
6274           LD="${LD-ld} -melf64bmip"
6275         ;;
6276       esac
6277     else
6278       case `/usr/bin/file conftest.$ac_objext` in
6279         *32-bit*)
6280           LD="${LD-ld} -32"
6281           ;;
6282         *N32*)
6283           LD="${LD-ld} -n32"
6284           ;;
6285         *64-bit*)
6286           LD="${LD-ld} -64"
6287           ;;
6288       esac
6289     fi
6290   fi
6291   rm -rf conftest*
6292   ;;
6293
6294 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6295 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6296   # Find out which ABI we are using.
6297   echo 'int i;' > conftest.$ac_ext
6298   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6299   (eval $ac_compile) 2>&5
6300   ac_status=$?
6301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302   test $ac_status = 0; }; then
6303     case `/usr/bin/file conftest.o` in
6304       *32-bit*)
6305         case $host in
6306           x86_64-*kfreebsd*-gnu)
6307             LD="${LD-ld} -m elf_i386_fbsd"
6308             ;;
6309           x86_64-*linux*)
6310             LD="${LD-ld} -m elf_i386"
6311             ;;
6312           ppc64-*linux*|powerpc64-*linux*)
6313             LD="${LD-ld} -m elf32ppclinux"
6314             ;;
6315           s390x-*linux*)
6316             LD="${LD-ld} -m elf_s390"
6317             ;;
6318           sparc64-*linux*)
6319             LD="${LD-ld} -m elf32_sparc"
6320             ;;
6321         esac
6322         ;;
6323       *64-bit*)
6324         case $host in
6325           x86_64-*kfreebsd*-gnu)
6326             LD="${LD-ld} -m elf_x86_64_fbsd"
6327             ;;
6328           x86_64-*linux*)
6329             LD="${LD-ld} -m elf_x86_64"
6330             ;;
6331           ppc*-*linux*|powerpc*-*linux*)
6332             LD="${LD-ld} -m elf64ppc"
6333             ;;
6334           s390*-*linux*|s390*-*tpf*)
6335             LD="${LD-ld} -m elf64_s390"
6336             ;;
6337           sparc*-*linux*)
6338             LD="${LD-ld} -m elf64_sparc"
6339             ;;
6340         esac
6341         ;;
6342     esac
6343   fi
6344   rm -rf conftest*
6345   ;;
6346
6347 *-*-sco3.2v5*)
6348   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6349   SAVE_CFLAGS="$CFLAGS"
6350   CFLAGS="$CFLAGS -belf"
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6352 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6353 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   ac_ext=c
6357 ac_cpp='$CPP $CPPFLAGS'
6358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361
6362      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h.  */
6364
6365 int
6366 main ()
6367 {
6368
6369   ;
6370   return 0;
6371 }
6372 _ACEOF
6373 if ac_fn_c_try_link "$LINENO"; then :
6374   lt_cv_cc_needs_belf=yes
6375 else
6376   lt_cv_cc_needs_belf=no
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext \
6379     conftest$ac_exeext conftest.$ac_ext
6380      ac_ext=c
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6388 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6389   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6390     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6391     CFLAGS="$SAVE_CFLAGS"
6392   fi
6393   ;;
6394 *-*solaris*)
6395   # Find out which ABI we are using.
6396   echo 'int i;' > conftest.$ac_ext
6397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6398   (eval $ac_compile) 2>&5
6399   ac_status=$?
6400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401   test $ac_status = 0; }; then
6402     case `/usr/bin/file conftest.o` in
6403     *64-bit*)
6404       case $lt_cv_prog_gnu_ld in
6405       yes*)
6406         case $host in
6407         i?86-*-solaris*)
6408           LD="${LD-ld} -m elf_x86_64"
6409           ;;
6410         sparc*-*-solaris*)
6411           LD="${LD-ld} -m elf64_sparc"
6412           ;;
6413         esac
6414         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6415         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6416           LD="${LD-ld}_sol2"
6417         fi
6418         ;;
6419       *)
6420         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6421           LD="${LD-ld} -64"
6422         fi
6423         ;;
6424       esac
6425       ;;
6426     esac
6427   fi
6428   rm -rf conftest*
6429   ;;
6430 esac
6431
6432 need_locks="$enable_libtool_lock"
6433
6434
6435   case $host_os in
6436     rhapsody* | darwin*)
6437     if test -n "$ac_tool_prefix"; then
6438   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$DSYMUTIL"; then
6446   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453     for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460   done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6466 if test -n "$DSYMUTIL"; then
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6468 $as_echo "$DSYMUTIL" >&6; }
6469 else
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474
6475 fi
6476 if test -z "$ac_cv_prog_DSYMUTIL"; then
6477   ac_ct_DSYMUTIL=$DSYMUTIL
6478   # Extract the first word of "dsymutil", so it can be a program name with args.
6479 set dummy dsymutil; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   if test -n "$ac_ct_DSYMUTIL"; then
6486   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493     for ac_exec_ext in '' $ac_executable_extensions; do
6494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500   done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6506 if test -n "$ac_ct_DSYMUTIL"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6508 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6509 else
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514   if test "x$ac_ct_DSYMUTIL" = x; then
6515     DSYMUTIL=":"
6516   else
6517     case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523     DSYMUTIL=$ac_ct_DSYMUTIL
6524   fi
6525 else
6526   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6527 fi
6528
6529     if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6535   $as_echo_n "(cached) " >&6
6536 else
6537   if test -n "$NMEDIT"; then
6538   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545     for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552   done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 NMEDIT=$ac_cv_prog_NMEDIT
6558 if test -n "$NMEDIT"; then
6559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6560 $as_echo "$NMEDIT" >&6; }
6561 else
6562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_NMEDIT"; then
6569   ac_ct_NMEDIT=$NMEDIT
6570   # Extract the first word of "nmedit", so it can be a program name with args.
6571 set dummy nmedit; ac_word=$2
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6573 $as_echo_n "checking for $ac_word... " >&6; }
6574 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6575   $as_echo_n "(cached) " >&6
6576 else
6577   if test -n "$ac_ct_NMEDIT"; then
6578   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585     for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592   done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6598 if test -n "$ac_ct_NMEDIT"; then
6599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6600 $as_echo "$ac_ct_NMEDIT" >&6; }
6601 else
6602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6603 $as_echo "no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_NMEDIT" = x; then
6607     NMEDIT=":"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6613 ac_tool_warned=yes ;;
6614 esac
6615     NMEDIT=$ac_ct_NMEDIT
6616   fi
6617 else
6618   NMEDIT="$ac_cv_prog_NMEDIT"
6619 fi
6620
6621     if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if test "${ac_cv_prog_LIPO+set}" = set; then :
6627   $as_echo_n "(cached) " >&6
6628 else
6629   if test -n "$LIPO"; then
6630   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637     for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644   done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 LIPO=$ac_cv_prog_LIPO
6650 if test -n "$LIPO"; then
6651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6652 $as_echo "$LIPO" >&6; }
6653 else
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_LIPO"; then
6661   ac_ct_LIPO=$LIPO
6662   # Extract the first word of "lipo", so it can be a program name with args.
6663 set dummy lipo; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if test -n "$ac_ct_LIPO"; then
6670   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677     for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_ac_ct_LIPO="lipo"
6680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684   done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6690 if test -n "$ac_ct_LIPO"; then
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6692 $as_echo "$ac_ct_LIPO" >&6; }
6693 else
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698   if test "x$ac_ct_LIPO" = x; then
6699     LIPO=":"
6700   else
6701     case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6705 ac_tool_warned=yes ;;
6706 esac
6707     LIPO=$ac_ct_LIPO
6708   fi
6709 else
6710   LIPO="$ac_cv_prog_LIPO"
6711 fi
6712
6713     if test -n "$ac_tool_prefix"; then
6714   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}otool; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   if test -n "$OTOOL"; then
6722   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 OTOOL=$ac_cv_prog_OTOOL
6742 if test -n "$OTOOL"; then
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6744 $as_echo "$OTOOL" >&6; }
6745 else
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_OTOOL"; then
6753   ac_ct_OTOOL=$OTOOL
6754   # Extract the first word of "otool", so it can be a program name with args.
6755 set dummy otool; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   if test -n "$ac_ct_OTOOL"; then
6762   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_prog_ac_ct_OTOOL="otool"
6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776   done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6782 if test -n "$ac_ct_OTOOL"; then
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6784 $as_echo "$ac_ct_OTOOL" >&6; }
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790   if test "x$ac_ct_OTOOL" = x; then
6791     OTOOL=":"
6792   else
6793     case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799     OTOOL=$ac_ct_OTOOL
6800   fi
6801 else
6802   OTOOL="$ac_cv_prog_OTOOL"
6803 fi
6804
6805     if test -n "$ac_tool_prefix"; then
6806   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6807 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   if test -n "$OTOOL64"; then
6814   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6815 else
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 for as_dir in $PATH
6818 do
6819   IFS=$as_save_IFS
6820   test -z "$as_dir" && as_dir=.
6821     for ac_exec_ext in '' $ac_executable_extensions; do
6822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825     break 2
6826   fi
6827 done
6828   done
6829 IFS=$as_save_IFS
6830
6831 fi
6832 fi
6833 OTOOL64=$ac_cv_prog_OTOOL64
6834 if test -n "$OTOOL64"; then
6835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6836 $as_echo "$OTOOL64" >&6; }
6837 else
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6840 fi
6841
6842
6843 fi
6844 if test -z "$ac_cv_prog_OTOOL64"; then
6845   ac_ct_OTOOL64=$OTOOL64
6846   # Extract the first word of "otool64", so it can be a program name with args.
6847 set dummy otool64; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   if test -n "$ac_ct_OTOOL64"; then
6854   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861     for ac_exec_ext in '' $ac_executable_extensions; do
6862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863     ac_cv_prog_ac_ct_OTOOL64="otool64"
6864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868   done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6874 if test -n "$ac_ct_OTOOL64"; then
6875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6876 $as_echo "$ac_ct_OTOOL64" >&6; }
6877 else
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882   if test "x$ac_ct_OTOOL64" = x; then
6883     OTOOL64=":"
6884   else
6885     case $cross_compiling:$ac_tool_warned in
6886 yes:)
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned=yes ;;
6890 esac
6891     OTOOL64=$ac_ct_OTOOL64
6892   fi
6893 else
6894   OTOOL64="$ac_cv_prog_OTOOL64"
6895 fi
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6924 $as_echo_n "checking for -single_module linker flag... " >&6; }
6925 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6926   $as_echo_n "(cached) " >&6
6927 else
6928   lt_cv_apple_cc_single_mod=no
6929       if test -z "${LT_MULTI_MODULE}"; then
6930         # By default we will add the -single_module flag. You can override
6931         # by either setting the environment variable LT_MULTI_MODULE
6932         # non-empty at configure time, or by adding -multi_module to the
6933         # link flags.
6934         rm -rf libconftest.dylib*
6935         echo "int foo(void){return 1;}" > conftest.c
6936         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6937 -dynamiclib -Wl,-single_module conftest.c" >&5
6938         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6939           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6940         _lt_result=$?
6941         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6942           lt_cv_apple_cc_single_mod=yes
6943         else
6944           cat conftest.err >&5
6945         fi
6946         rm -rf libconftest.dylib*
6947         rm -f conftest.*
6948       fi
6949 fi
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6951 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6953 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6954 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6955   $as_echo_n "(cached) " >&6
6956 else
6957   lt_cv_ld_exported_symbols_list=no
6958       save_LDFLAGS=$LDFLAGS
6959       echo "_main" > conftest.sym
6960       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6961       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h.  */
6963
6964 int
6965 main ()
6966 {
6967
6968   ;
6969   return 0;
6970 }
6971 _ACEOF
6972 if ac_fn_c_try_link "$LINENO"; then :
6973   lt_cv_ld_exported_symbols_list=yes
6974 else
6975   lt_cv_ld_exported_symbols_list=no
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext \
6978     conftest$ac_exeext conftest.$ac_ext
6979         LDFLAGS="$save_LDFLAGS"
6980
6981 fi
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6983 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6985 $as_echo_n "checking for -force_load linker flag... " >&6; }
6986 if test "${lt_cv_ld_force_load+set}" = set; then :
6987   $as_echo_n "(cached) " >&6
6988 else
6989   lt_cv_ld_force_load=no
6990       cat > conftest.c << _LT_EOF
6991 int forced_loaded() { return 2;}
6992 _LT_EOF
6993       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6994       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6995       echo "$AR cru libconftest.a conftest.o" >&5
6996       $AR cru libconftest.a conftest.o 2>&5
6997       cat > conftest.c << _LT_EOF
6998 int main() { return 0;}
6999 _LT_EOF
7000       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7001       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7002       _lt_result=$?
7003       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7004         lt_cv_ld_force_load=yes
7005       else
7006         cat conftest.err >&5
7007       fi
7008         rm -f conftest.err libconftest.a conftest conftest.c
7009         rm -rf conftest.dSYM
7010
7011 fi
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7013 $as_echo "$lt_cv_ld_force_load" >&6; }
7014     case $host_os in
7015     rhapsody* | darwin1.[012])
7016       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7017     darwin1.*)
7018       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7019     darwin*) # darwin 5.x on
7020       # if running on 10.5 or later, the deployment target defaults
7021       # to the OS version, if on x86, and 10.4, the deployment
7022       # target defaults to 10.4. Don't you love it?
7023       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7024         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7025           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7026         10.[012]*)
7027           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7028         10.*)
7029           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7030       esac
7031     ;;
7032   esac
7033     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7034       _lt_dar_single_mod='$single_module'
7035     fi
7036     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7037       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7038     else
7039       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7040     fi
7041     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7042       _lt_dsymutil='~$DSYMUTIL $lib || :'
7043     else
7044       _lt_dsymutil=
7045     fi
7046     ;;
7047   esac
7048
7049 ac_ext=c
7050 ac_cpp='$CPP $CPPFLAGS'
7051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7055 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7056 # On Suns, sometimes $CPP names a directory.
7057 if test -n "$CPP" && test -d "$CPP"; then
7058   CPP=
7059 fi
7060 if test -z "$CPP"; then
7061   if test "${ac_cv_prog_CPP+set}" = set; then :
7062   $as_echo_n "(cached) " >&6
7063 else
7064       # Double quotes because CPP needs to be expanded
7065     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7066     do
7067       ac_preproc_ok=false
7068 for ac_c_preproc_warn_flag in '' yes
7069 do
7070   # Use a header file that comes with gcc, so configuring glibc
7071   # with a fresh cross-compiler works.
7072   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7073   # <limits.h> exists even on freestanding compilers.
7074   # On the NeXT, cc -E runs the code through the compiler's parser,
7075   # not just through cpp. "Syntax error" is here to catch this case.
7076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h.  */
7078 #ifdef __STDC__
7079 # include <limits.h>
7080 #else
7081 # include <assert.h>
7082 #endif
7083                      Syntax error
7084 _ACEOF
7085 if ac_fn_c_try_cpp "$LINENO"; then :
7086
7087 else
7088   # Broken: fails on valid input.
7089 continue
7090 fi
7091 rm -f conftest.err conftest.$ac_ext
7092
7093   # OK, works on sane cases.  Now check whether nonexistent headers
7094   # can be detected and how.
7095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h.  */
7097 #include <ac_nonexistent.h>
7098 _ACEOF
7099 if ac_fn_c_try_cpp "$LINENO"; then :
7100   # Broken: success on invalid input.
7101 continue
7102 else
7103   # Passes both tests.
7104 ac_preproc_ok=:
7105 break
7106 fi
7107 rm -f conftest.err conftest.$ac_ext
7108
7109 done
7110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7111 rm -f conftest.err conftest.$ac_ext
7112 if $ac_preproc_ok; then :
7113   break
7114 fi
7115
7116     done
7117     ac_cv_prog_CPP=$CPP
7118
7119 fi
7120   CPP=$ac_cv_prog_CPP
7121 else
7122   ac_cv_prog_CPP=$CPP
7123 fi
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7125 $as_echo "$CPP" >&6; }
7126 ac_preproc_ok=false
7127 for ac_c_preproc_warn_flag in '' yes
7128 do
7129   # Use a header file that comes with gcc, so configuring glibc
7130   # with a fresh cross-compiler works.
7131   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7132   # <limits.h> exists even on freestanding compilers.
7133   # On the NeXT, cc -E runs the code through the compiler's parser,
7134   # not just through cpp. "Syntax error" is here to catch this case.
7135   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h.  */
7137 #ifdef __STDC__
7138 # include <limits.h>
7139 #else
7140 # include <assert.h>
7141 #endif
7142                      Syntax error
7143 _ACEOF
7144 if ac_fn_c_try_cpp "$LINENO"; then :
7145
7146 else
7147   # Broken: fails on valid input.
7148 continue
7149 fi
7150 rm -f conftest.err conftest.$ac_ext
7151
7152   # OK, works on sane cases.  Now check whether nonexistent headers
7153   # can be detected and how.
7154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h.  */
7156 #include <ac_nonexistent.h>
7157 _ACEOF
7158 if ac_fn_c_try_cpp "$LINENO"; then :
7159   # Broken: success on invalid input.
7160 continue
7161 else
7162   # Passes both tests.
7163 ac_preproc_ok=:
7164 break
7165 fi
7166 rm -f conftest.err conftest.$ac_ext
7167
7168 done
7169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7170 rm -f conftest.err conftest.$ac_ext
7171 if $ac_preproc_ok; then :
7172
7173 else
7174   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7176 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7177 See \`config.log' for more details." "$LINENO" 5; }
7178 fi
7179
7180 ac_ext=c
7181 ac_cpp='$CPP $CPPFLAGS'
7182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7185
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7188 $as_echo_n "checking for ANSI C header files... " >&6; }
7189 if test "${ac_cv_header_stdc+set}" = set; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h.  */
7194 #include <stdlib.h>
7195 #include <stdarg.h>
7196 #include <string.h>
7197 #include <float.h>
7198
7199 int
7200 main ()
7201 {
7202
7203   ;
7204   return 0;
7205 }
7206 _ACEOF
7207 if ac_fn_c_try_compile "$LINENO"; then :
7208   ac_cv_header_stdc=yes
7209 else
7210   ac_cv_header_stdc=no
7211 fi
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213
7214 if test $ac_cv_header_stdc = yes; then
7215   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h.  */
7218 #include <string.h>
7219
7220 _ACEOF
7221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7222   $EGREP "memchr" >/dev/null 2>&1; then :
7223
7224 else
7225   ac_cv_header_stdc=no
7226 fi
7227 rm -f conftest*
7228
7229 fi
7230
7231 if test $ac_cv_header_stdc = yes; then
7232   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h.  */
7235 #include <stdlib.h>
7236
7237 _ACEOF
7238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7239   $EGREP "free" >/dev/null 2>&1; then :
7240
7241 else
7242   ac_cv_header_stdc=no
7243 fi
7244 rm -f conftest*
7245
7246 fi
7247
7248 if test $ac_cv_header_stdc = yes; then
7249   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7250   if test "$cross_compiling" = yes; then :
7251   :
7252 else
7253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h.  */
7255 #include <ctype.h>
7256 #include <stdlib.h>
7257 #if ((' ' & 0x0FF) == 0x020)
7258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7260 #else
7261 # define ISLOWER(c) \
7262                    (('a' <= (c) && (c) <= 'i') \
7263                      || ('j' <= (c) && (c) <= 'r') \
7264                      || ('s' <= (c) && (c) <= 'z'))
7265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7266 #endif
7267
7268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7269 int
7270 main ()
7271 {
7272   int i;
7273   for (i = 0; i < 256; i++)
7274     if (XOR (islower (i), ISLOWER (i))
7275         || toupper (i) != TOUPPER (i))
7276       return 2;
7277   return 0;
7278 }
7279 _ACEOF
7280 if ac_fn_c_try_run "$LINENO"; then :
7281
7282 else
7283   ac_cv_header_stdc=no
7284 fi
7285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7286   conftest.$ac_objext conftest.beam conftest.$ac_ext
7287 fi
7288
7289 fi
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7292 $as_echo "$ac_cv_header_stdc" >&6; }
7293 if test $ac_cv_header_stdc = yes; then
7294
7295 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7296
7297 fi
7298
7299 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7300 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7301                   inttypes.h stdint.h unistd.h
7302 do :
7303   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7304 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7305 "
7306 eval as_val=\$$as_ac_Header
7307    if test "x$as_val" = x""yes; then :
7308   cat >>confdefs.h <<_ACEOF
7309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7310 _ACEOF
7311
7312 fi
7313
7314 done
7315
7316
7317 for ac_header in dlfcn.h
7318 do :
7319   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7320 "
7321 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7322   cat >>confdefs.h <<_ACEOF
7323 #define HAVE_DLFCN_H 1
7324 _ACEOF
7325
7326 fi
7327
7328 done
7329
7330 if test -n "$ac_tool_prefix"; then
7331   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7332 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if test "${ac_cv_prog_GOC+set}" = set; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if test -n "$GOC"; then
7339   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 GOC=$ac_cv_prog_GOC
7359 if test -n "$GOC"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7361 $as_echo "$GOC" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367
7368 fi
7369 if test -z "$ac_cv_prog_GOC"; then
7370   ac_ct_GOC=$GOC
7371   # Extract the first word of "gccgo", so it can be a program name with args.
7372 set dummy gccgo; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7376   $as_echo_n "(cached) " >&6
7377 else
7378   if test -n "$ac_ct_GOC"; then
7379   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384   IFS=$as_save_IFS
7385   test -z "$as_dir" && as_dir=.
7386     for ac_exec_ext in '' $ac_executable_extensions; do
7387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388     ac_cv_prog_ac_ct_GOC="gccgo"
7389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390     break 2
7391   fi
7392 done
7393   done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7399 if test -n "$ac_ct_GOC"; then
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7401 $as_echo "$ac_ct_GOC" >&6; }
7402 else
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407   if test "x$ac_ct_GOC" = x; then
7408     GOC=""
7409   else
7410     case $cross_compiling:$ac_tool_warned in
7411 yes:)
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414 ac_tool_warned=yes ;;
7415 esac
7416     GOC=$ac_ct_GOC
7417   fi
7418 else
7419   GOC="$ac_cv_prog_GOC"
7420 fi
7421
7422
7423
7424
7425
7426
7427 # Set options
7428
7429
7430
7431
7432   enable_win32_dll=no
7433
7434
7435             # Check whether --enable-shared was given.
7436 if test "${enable_shared+set}" = set; then :
7437   enableval=$enable_shared; p=${PACKAGE-default}
7438     case $enableval in
7439     yes) enable_shared=yes ;;
7440     no) enable_shared=no ;;
7441     *)
7442       enable_shared=no
7443       # Look at the argument we got.  We use all the common list separators.
7444       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7445       for pkg in $enableval; do
7446         IFS="$lt_save_ifs"
7447         if test "X$pkg" = "X$p"; then
7448           enable_shared=yes
7449         fi
7450       done
7451       IFS="$lt_save_ifs"
7452       ;;
7453     esac
7454 else
7455   enable_shared=yes
7456 fi
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466   # Check whether --enable-static was given.
7467 if test "${enable_static+set}" = set; then :
7468   enableval=$enable_static; p=${PACKAGE-default}
7469     case $enableval in
7470     yes) enable_static=yes ;;
7471     no) enable_static=no ;;
7472     *)
7473      enable_static=no
7474       # Look at the argument we got.  We use all the common list separators.
7475       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7476       for pkg in $enableval; do
7477         IFS="$lt_save_ifs"
7478         if test "X$pkg" = "X$p"; then
7479           enable_static=yes
7480         fi
7481       done
7482       IFS="$lt_save_ifs"
7483       ;;
7484     esac
7485 else
7486   enable_static=yes
7487 fi
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 # Check whether --with-pic was given.
7499 if test "${with_pic+set}" = set; then :
7500   withval=$with_pic; pic_mode="$withval"
7501 else
7502   pic_mode=default
7503 fi
7504
7505
7506 test -z "$pic_mode" && pic_mode=default
7507
7508
7509
7510
7511
7512
7513
7514   # Check whether --enable-fast-install was given.
7515 if test "${enable_fast_install+set}" = set; then :
7516   enableval=$enable_fast_install; p=${PACKAGE-default}
7517     case $enableval in
7518     yes) enable_fast_install=yes ;;
7519     no) enable_fast_install=no ;;
7520     *)
7521       enable_fast_install=no
7522       # Look at the argument we got.  We use all the common list separators.
7523       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7524       for pkg in $enableval; do
7525         IFS="$lt_save_ifs"
7526         if test "X$pkg" = "X$p"; then
7527           enable_fast_install=yes
7528         fi
7529       done
7530       IFS="$lt_save_ifs"
7531       ;;
7532     esac
7533 else
7534   enable_fast_install=yes
7535 fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547 # This can be used to rebuild libtool when needed
7548 LIBTOOL_DEPS="$ltmain"
7549
7550 # Always use our own libtool.
7551 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578 test -z "$LN_S" && LN_S="ln -s"
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593 if test -n "${ZSH_VERSION+set}" ; then
7594    setopt NO_GLOB_SUBST
7595 fi
7596
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7598 $as_echo_n "checking for objdir... " >&6; }
7599 if test "${lt_cv_objdir+set}" = set; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   rm -f .libs 2>/dev/null
7603 mkdir .libs 2>/dev/null
7604 if test -d .libs; then
7605   lt_cv_objdir=.libs
7606 else
7607   # MS-DOS does not allow filenames that begin with a dot.
7608   lt_cv_objdir=_libs
7609 fi
7610 rmdir .libs 2>/dev/null
7611 fi
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7613 $as_echo "$lt_cv_objdir" >&6; }
7614 objdir=$lt_cv_objdir
7615
7616
7617
7618
7619
7620 cat >>confdefs.h <<_ACEOF
7621 #define LT_OBJDIR "$lt_cv_objdir/"
7622 _ACEOF
7623
7624
7625
7626
7627 case $host_os in
7628 aix3*)
7629   # AIX sometimes has problems with the GCC collect2 program.  For some
7630   # reason, if we set the COLLECT_NAMES environment variable, the problems
7631   # vanish in a puff of smoke.
7632   if test "X${COLLECT_NAMES+set}" != Xset; then
7633     COLLECT_NAMES=
7634     export COLLECT_NAMES
7635   fi
7636   ;;
7637 esac
7638
7639 # Global variables:
7640 ofile=libtool
7641 can_build_shared=yes
7642
7643 # All known linkers require a `.a' archive for static linking (except MSVC,
7644 # which needs '.lib').
7645 libext=a
7646
7647 with_gnu_ld="$lt_cv_prog_gnu_ld"
7648
7649 old_CC="$CC"
7650 old_CFLAGS="$CFLAGS"
7651
7652 # Set sane defaults for various variables
7653 test -z "$CC" && CC=cc
7654 test -z "$LTCC" && LTCC=$CC
7655 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7656 test -z "$LD" && LD=ld
7657 test -z "$ac_objext" && ac_objext=o
7658
7659 for cc_temp in $compiler""; do
7660   case $cc_temp in
7661     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7662     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7663     \-*) ;;
7664     *) break;;
7665   esac
7666 done
7667 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7668
7669
7670 # Only perform the check for file, if the check method requires it
7671 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7672 case $deplibs_check_method in
7673 file_magic*)
7674   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7676 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7677 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7678   $as_echo_n "(cached) " >&6
7679 else
7680   case $MAGIC_CMD in
7681 [\\/*] |  ?:[\\/]*)
7682   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7683   ;;
7684 *)
7685   lt_save_MAGIC_CMD="$MAGIC_CMD"
7686   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7687   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7688   for ac_dir in $ac_dummy; do
7689     IFS="$lt_save_ifs"
7690     test -z "$ac_dir" && ac_dir=.
7691     if test -f $ac_dir/${ac_tool_prefix}file; then
7692       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7693       if test -n "$file_magic_test_file"; then
7694         case $deplibs_check_method in
7695         "file_magic "*)
7696           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7697           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7698           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7699             $EGREP "$file_magic_regex" > /dev/null; then
7700             :
7701           else
7702             cat <<_LT_EOF 1>&2
7703
7704 *** Warning: the command libtool uses to detect shared libraries,
7705 *** $file_magic_cmd, produces output that libtool cannot recognize.
7706 *** The result is that libtool may fail to recognize shared libraries
7707 *** as such.  This will affect the creation of libtool libraries that
7708 *** depend on shared libraries, but programs linked with such libtool
7709 *** libraries will work regardless of this problem.  Nevertheless, you
7710 *** may want to report the problem to your system manager and/or to
7711 *** bug-libtool@gnu.org
7712
7713 _LT_EOF
7714           fi ;;
7715         esac
7716       fi
7717       break
7718     fi
7719   done
7720   IFS="$lt_save_ifs"
7721   MAGIC_CMD="$lt_save_MAGIC_CMD"
7722   ;;
7723 esac
7724 fi
7725
7726 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7727 if test -n "$MAGIC_CMD"; then
7728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7729 $as_echo "$MAGIC_CMD" >&6; }
7730 else
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735
7736
7737
7738
7739 if test -z "$lt_cv_path_MAGIC_CMD"; then
7740   if test -n "$ac_tool_prefix"; then
7741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7742 $as_echo_n "checking for file... " >&6; }
7743 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   case $MAGIC_CMD in
7747 [\\/*] |  ?:[\\/]*)
7748   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7749   ;;
7750 *)
7751   lt_save_MAGIC_CMD="$MAGIC_CMD"
7752   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7753   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7754   for ac_dir in $ac_dummy; do
7755     IFS="$lt_save_ifs"
7756     test -z "$ac_dir" && ac_dir=.
7757     if test -f $ac_dir/file; then
7758       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7759       if test -n "$file_magic_test_file"; then
7760         case $deplibs_check_method in
7761         "file_magic "*)
7762           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7763           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7765             $EGREP "$file_magic_regex" > /dev/null; then
7766             :
7767           else
7768             cat <<_LT_EOF 1>&2
7769
7770 *** Warning: the command libtool uses to detect shared libraries,
7771 *** $file_magic_cmd, produces output that libtool cannot recognize.
7772 *** The result is that libtool may fail to recognize shared libraries
7773 *** as such.  This will affect the creation of libtool libraries that
7774 *** depend on shared libraries, but programs linked with such libtool
7775 *** libraries will work regardless of this problem.  Nevertheless, you
7776 *** may want to report the problem to your system manager and/or to
7777 *** bug-libtool@gnu.org
7778
7779 _LT_EOF
7780           fi ;;
7781         esac
7782       fi
7783       break
7784     fi
7785   done
7786   IFS="$lt_save_ifs"
7787   MAGIC_CMD="$lt_save_MAGIC_CMD"
7788   ;;
7789 esac
7790 fi
7791
7792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7793 if test -n "$MAGIC_CMD"; then
7794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7795 $as_echo "$MAGIC_CMD" >&6; }
7796 else
7797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798 $as_echo "no" >&6; }
7799 fi
7800
7801
7802   else
7803     MAGIC_CMD=:
7804   fi
7805 fi
7806
7807   fi
7808   ;;
7809 esac
7810
7811 # Use C for the default configuration in the libtool script
7812
7813 lt_save_CC="$CC"
7814 ac_ext=c
7815 ac_cpp='$CPP $CPPFLAGS'
7816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819
7820
7821 # Source file extension for C test sources.
7822 ac_ext=c
7823
7824 # Object file extension for compiled C test sources.
7825 objext=o
7826 objext=$objext
7827
7828 # Code to be used in simple compile tests
7829 lt_simple_compile_test_code="int some_variable = 0;"
7830
7831 # Code to be used in simple link tests
7832 lt_simple_link_test_code='int main(){return(0);}'
7833
7834
7835
7836
7837
7838
7839
7840 # If no C compiler was specified, use CC.
7841 LTCC=${LTCC-"$CC"}
7842
7843 # If no C compiler flags were specified, use CFLAGS.
7844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7845
7846 # Allow CC to be a program name with arguments.
7847 compiler=$CC
7848
7849 # Save the default compiler, since it gets overwritten when the other
7850 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7851 compiler_DEFAULT=$CC
7852
7853 # save warnings/boilerplate of simple test code
7854 ac_outfile=conftest.$ac_objext
7855 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7856 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7857 _lt_compiler_boilerplate=`cat conftest.err`
7858 $RM conftest*
7859
7860 ac_outfile=conftest.$ac_objext
7861 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7862 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7863 _lt_linker_boilerplate=`cat conftest.err`
7864 $RM -r conftest*
7865
7866
7867 ## CAVEAT EMPTOR:
7868 ## There is no encapsulation within the following macros, do not change
7869 ## the running order or otherwise move them around unless you know exactly
7870 ## what you are doing...
7871 if test -n "$compiler"; then
7872
7873 lt_prog_compiler_no_builtin_flag=
7874
7875 if test "$GCC" = yes; then
7876   case $cc_basename in
7877   nvcc*)
7878     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7879   *)
7880     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7881   esac
7882
7883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7884 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7885 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7886   $as_echo_n "(cached) " >&6
7887 else
7888   lt_cv_prog_compiler_rtti_exceptions=no
7889    ac_outfile=conftest.$ac_objext
7890    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7891    lt_compiler_flag="-fno-rtti -fno-exceptions"
7892    # Insert the option either (1) after the last *FLAGS variable, or
7893    # (2) before a word containing "conftest.", or (3) at the end.
7894    # Note that $ac_compile itself does not contain backslashes and begins
7895    # with a dollar sign (not a hyphen), so the echo should work correctly.
7896    # The option is referenced via a variable to avoid confusing sed.
7897    lt_compile=`echo "$ac_compile" | $SED \
7898    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7899    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7900    -e 's:$: $lt_compiler_flag:'`
7901    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7902    (eval "$lt_compile" 2>conftest.err)
7903    ac_status=$?
7904    cat conftest.err >&5
7905    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906    if (exit $ac_status) && test -s "$ac_outfile"; then
7907      # The compiler can only warn and ignore the option if not recognized
7908      # So say no if there are warnings other than the usual output.
7909      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7910      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7911      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7912        lt_cv_prog_compiler_rtti_exceptions=yes
7913      fi
7914    fi
7915    $RM conftest*
7916
7917 fi
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7919 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7920
7921 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7922     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7923 else
7924     :
7925 fi
7926
7927 fi
7928
7929
7930
7931
7932
7933
7934   lt_prog_compiler_wl=
7935 lt_prog_compiler_pic=
7936 lt_prog_compiler_static=
7937
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7939 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7940
7941   if test "$GCC" = yes; then
7942     lt_prog_compiler_wl='-Wl,'
7943     lt_prog_compiler_static='-static'
7944
7945     case $host_os in
7946       aix*)
7947       # All AIX code is PIC.
7948       if test "$host_cpu" = ia64; then
7949         # AIX 5 now supports IA64 processor
7950         lt_prog_compiler_static='-Bstatic'
7951       fi
7952       ;;
7953
7954     amigaos*)
7955       case $host_cpu in
7956       powerpc)
7957             # see comment about AmigaOS4 .so support
7958             lt_prog_compiler_pic='-fPIC'
7959         ;;
7960       m68k)
7961             # FIXME: we need at least 68020 code to build shared libraries, but
7962             # adding the `-m68020' flag to GCC prevents building anything better,
7963             # like `-m68040'.
7964             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7965         ;;
7966       esac
7967       ;;
7968
7969     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7970       # PIC is the default for these OSes.
7971       ;;
7972
7973     mingw* | cygwin* | pw32* | os2* | cegcc*)
7974       # This hack is so that the source file can tell whether it is being
7975       # built for inclusion in a dll (and should export symbols for example).
7976       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7977       # (--disable-auto-import) libraries
7978       lt_prog_compiler_pic='-DDLL_EXPORT'
7979       ;;
7980
7981     darwin* | rhapsody*)
7982       # PIC is the default on this platform
7983       # Common symbols not allowed in MH_DYLIB files
7984       lt_prog_compiler_pic='-fno-common'
7985       ;;
7986
7987     haiku*)
7988       # PIC is the default for Haiku.
7989       # The "-static" flag exists, but is broken.
7990       lt_prog_compiler_static=
7991       ;;
7992
7993     hpux*)
7994       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7995       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7996       # sets the default TLS model and affects inlining.
7997       case $host_cpu in
7998       hppa*64*)
7999         # +Z the default
8000         ;;
8001       *)
8002         lt_prog_compiler_pic='-fPIC'
8003         ;;
8004       esac
8005       ;;
8006
8007     interix[3-9]*)
8008       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8009       # Instead, we relocate shared libraries at runtime.
8010       ;;
8011
8012     msdosdjgpp*)
8013       # Just because we use GCC doesn't mean we suddenly get shared libraries
8014       # on systems that don't support them.
8015       lt_prog_compiler_can_build_shared=no
8016       enable_shared=no
8017       ;;
8018
8019     *nto* | *qnx*)
8020       # QNX uses GNU C++, but need to define -shared option too, otherwise
8021       # it will coredump.
8022       lt_prog_compiler_pic='-fPIC -shared'
8023       ;;
8024
8025     sysv4*MP*)
8026       if test -d /usr/nec; then
8027         lt_prog_compiler_pic=-Kconform_pic
8028       fi
8029       ;;
8030
8031     *)
8032       lt_prog_compiler_pic='-fPIC'
8033       ;;
8034     esac
8035
8036     case $cc_basename in
8037     nvcc*) # Cuda Compiler Driver 2.2
8038       lt_prog_compiler_wl='-Xlinker '
8039       lt_prog_compiler_pic='-Xcompiler -fPIC'
8040       ;;
8041     esac
8042   else
8043     # PORTME Check for flag to pass linker flags through the system compiler.
8044     case $host_os in
8045     aix*)
8046       lt_prog_compiler_wl='-Wl,'
8047       if test "$host_cpu" = ia64; then
8048         # AIX 5 now supports IA64 processor
8049         lt_prog_compiler_static='-Bstatic'
8050       else
8051         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8052       fi
8053       ;;
8054
8055     mingw* | cygwin* | pw32* | os2* | cegcc*)
8056       # This hack is so that the source file can tell whether it is being
8057       # built for inclusion in a dll (and should export symbols for example).
8058       lt_prog_compiler_pic='-DDLL_EXPORT'
8059       ;;
8060
8061     hpux9* | hpux10* | hpux11*)
8062       lt_prog_compiler_wl='-Wl,'
8063       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8064       # not for PA HP-UX.
8065       case $host_cpu in
8066       hppa*64*|ia64*)
8067         # +Z the default
8068         ;;
8069       *)
8070         lt_prog_compiler_pic='+Z'
8071         ;;
8072       esac
8073       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8074       lt_prog_compiler_static='${wl}-a ${wl}archive'
8075       ;;
8076
8077     irix5* | irix6* | nonstopux*)
8078       lt_prog_compiler_wl='-Wl,'
8079       # PIC (with -KPIC) is the default.
8080       lt_prog_compiler_static='-non_shared'
8081       ;;
8082
8083     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8084       case $cc_basename in
8085       # old Intel for x86_64 which still supported -KPIC.
8086       ecc*)
8087         lt_prog_compiler_wl='-Wl,'
8088         lt_prog_compiler_pic='-KPIC'
8089         lt_prog_compiler_static='-static'
8090         ;;
8091       # icc used to be incompatible with GCC.
8092       # ICC 10 doesn't accept -KPIC any more.
8093       icc* | ifort*)
8094         lt_prog_compiler_wl='-Wl,'
8095         lt_prog_compiler_pic='-fPIC'
8096         lt_prog_compiler_static='-static'
8097         ;;
8098       # Lahey Fortran 8.1.
8099       lf95*)
8100         lt_prog_compiler_wl='-Wl,'
8101         lt_prog_compiler_pic='--shared'
8102         lt_prog_compiler_static='--static'
8103         ;;
8104       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8105         # Portland Group compilers (*not* the Pentium gcc compiler,
8106         # which looks to be a dead project)
8107         lt_prog_compiler_wl='-Wl,'
8108         lt_prog_compiler_pic='-fpic'
8109         lt_prog_compiler_static='-Bstatic'
8110         ;;
8111       ccc*)
8112         lt_prog_compiler_wl='-Wl,'
8113         # All Alpha code is PIC.
8114         lt_prog_compiler_static='-non_shared'
8115         ;;
8116       xl* | bgxl* | bgf* | mpixl*)
8117         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8118         lt_prog_compiler_wl='-Wl,'
8119         lt_prog_compiler_pic='-qpic'
8120         lt_prog_compiler_static='-qstaticlink'
8121         ;;
8122       *)
8123         case `$CC -V 2>&1 | sed 5q` in
8124         *Sun\ F* | *Sun*Fortran*)
8125           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8126           lt_prog_compiler_pic='-KPIC'
8127           lt_prog_compiler_static='-Bstatic'
8128           lt_prog_compiler_wl=''
8129           ;;
8130         *Sun\ C*)
8131           # Sun C 5.9
8132           lt_prog_compiler_pic='-KPIC'
8133           lt_prog_compiler_static='-Bstatic'
8134           lt_prog_compiler_wl='-Wl,'
8135           ;;
8136         esac
8137         ;;
8138       esac
8139       ;;
8140
8141     newsos6)
8142       lt_prog_compiler_pic='-KPIC'
8143       lt_prog_compiler_static='-Bstatic'
8144       ;;
8145
8146     *nto* | *qnx*)
8147       # QNX uses GNU C++, but need to define -shared option too, otherwise
8148       # it will coredump.
8149       lt_prog_compiler_pic='-fPIC -shared'
8150       ;;
8151
8152     osf3* | osf4* | osf5*)
8153       lt_prog_compiler_wl='-Wl,'
8154       # All OSF/1 code is PIC.
8155       lt_prog_compiler_static='-non_shared'
8156       ;;
8157
8158     rdos*)
8159       lt_prog_compiler_static='-non_shared'
8160       ;;
8161
8162     solaris*)
8163       lt_prog_compiler_pic='-KPIC'
8164       lt_prog_compiler_static='-Bstatic'
8165       case $cc_basename in
8166       f77* | f90* | f95*)
8167         lt_prog_compiler_wl='-Qoption ld ';;
8168       *)
8169         lt_prog_compiler_wl='-Wl,';;
8170       esac
8171       ;;
8172
8173     sunos4*)
8174       lt_prog_compiler_wl='-Qoption ld '
8175       lt_prog_compiler_pic='-PIC'
8176       lt_prog_compiler_static='-Bstatic'
8177       ;;
8178
8179     sysv4 | sysv4.2uw2* | sysv4.3*)
8180       lt_prog_compiler_wl='-Wl,'
8181       lt_prog_compiler_pic='-KPIC'
8182       lt_prog_compiler_static='-Bstatic'
8183       ;;
8184
8185     sysv4*MP*)
8186       if test -d /usr/nec ;then
8187         lt_prog_compiler_pic='-Kconform_pic'
8188         lt_prog_compiler_static='-Bstatic'
8189       fi
8190       ;;
8191
8192     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8193       lt_prog_compiler_wl='-Wl,'
8194       lt_prog_compiler_pic='-KPIC'
8195       lt_prog_compiler_static='-Bstatic'
8196       ;;
8197
8198     unicos*)
8199       lt_prog_compiler_wl='-Wl,'
8200       lt_prog_compiler_can_build_shared=no
8201       ;;
8202
8203     uts4*)
8204       lt_prog_compiler_pic='-pic'
8205       lt_prog_compiler_static='-Bstatic'
8206       ;;
8207
8208     *)
8209       lt_prog_compiler_can_build_shared=no
8210       ;;
8211     esac
8212   fi
8213
8214 case $host_os in
8215   # For platforms which do not support PIC, -DPIC is meaningless:
8216   *djgpp*)
8217     lt_prog_compiler_pic=
8218     ;;
8219   *)
8220     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8221     ;;
8222 esac
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8224 $as_echo "$lt_prog_compiler_pic" >&6; }
8225
8226
8227
8228
8229
8230
8231 #
8232 # Check to make sure the PIC flag actually works.
8233 #
8234 if test -n "$lt_prog_compiler_pic"; then
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8236 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8237 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   lt_cv_prog_compiler_pic_works=no
8241    ac_outfile=conftest.$ac_objext
8242    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8243    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8244    # Insert the option either (1) after the last *FLAGS variable, or
8245    # (2) before a word containing "conftest.", or (3) at the end.
8246    # Note that $ac_compile itself does not contain backslashes and begins
8247    # with a dollar sign (not a hyphen), so the echo should work correctly.
8248    # The option is referenced via a variable to avoid confusing sed.
8249    lt_compile=`echo "$ac_compile" | $SED \
8250    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8251    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8252    -e 's:$: $lt_compiler_flag:'`
8253    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8254    (eval "$lt_compile" 2>conftest.err)
8255    ac_status=$?
8256    cat conftest.err >&5
8257    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258    if (exit $ac_status) && test -s "$ac_outfile"; then
8259      # The compiler can only warn and ignore the option if not recognized
8260      # So say no if there are warnings other than the usual output.
8261      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8262      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8263      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8264        lt_cv_prog_compiler_pic_works=yes
8265      fi
8266    fi
8267    $RM conftest*
8268
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8271 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8272
8273 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8274     case $lt_prog_compiler_pic in
8275      "" | " "*) ;;
8276      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8277      esac
8278 else
8279     lt_prog_compiler_pic=
8280      lt_prog_compiler_can_build_shared=no
8281 fi
8282
8283 fi
8284
8285
8286
8287
8288
8289
8290 #
8291 # Check to make sure the static flag actually works.
8292 #
8293 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8295 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8296 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8297   $as_echo_n "(cached) " >&6
8298 else
8299   lt_cv_prog_compiler_static_works=no
8300    save_LDFLAGS="$LDFLAGS"
8301    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8302    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8303    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8304      # The linker can only warn and ignore the option if not recognized
8305      # So say no if there are warnings
8306      if test -s conftest.err; then
8307        # Append any errors to the config.log.
8308        cat conftest.err 1>&5
8309        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8310        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8311        if diff conftest.exp conftest.er2 >/dev/null; then
8312          lt_cv_prog_compiler_static_works=yes
8313        fi
8314      else
8315        lt_cv_prog_compiler_static_works=yes
8316      fi
8317    fi
8318    $RM -r conftest*
8319    LDFLAGS="$save_LDFLAGS"
8320
8321 fi
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8323 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8324
8325 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8326     :
8327 else
8328     lt_prog_compiler_static=
8329 fi
8330
8331
8332
8333
8334
8335
8336
8337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8338 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8339 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8340   $as_echo_n "(cached) " >&6
8341 else
8342   lt_cv_prog_compiler_c_o=no
8343    $RM -r conftest 2>/dev/null
8344    mkdir conftest
8345    cd conftest
8346    mkdir out
8347    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8348
8349    lt_compiler_flag="-o out/conftest2.$ac_objext"
8350    # Insert the option either (1) after the last *FLAGS variable, or
8351    # (2) before a word containing "conftest.", or (3) at the end.
8352    # Note that $ac_compile itself does not contain backslashes and begins
8353    # with a dollar sign (not a hyphen), so the echo should work correctly.
8354    lt_compile=`echo "$ac_compile" | $SED \
8355    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8356    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8357    -e 's:$: $lt_compiler_flag:'`
8358    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8359    (eval "$lt_compile" 2>out/conftest.err)
8360    ac_status=$?
8361    cat out/conftest.err >&5
8362    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8364    then
8365      # The compiler can only warn and ignore the option if not recognized
8366      # So say no if there are warnings
8367      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8368      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8369      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8370        lt_cv_prog_compiler_c_o=yes
8371      fi
8372    fi
8373    chmod u+w . 2>&5
8374    $RM conftest*
8375    # SGI C++ compiler will create directory out/ii_files/ for
8376    # template instantiation
8377    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8378    $RM out/* && rmdir out
8379    cd ..
8380    $RM -r conftest
8381    $RM conftest*
8382
8383 fi
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8385 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8386
8387
8388
8389
8390
8391
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8393 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8394 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8395   $as_echo_n "(cached) " >&6
8396 else
8397   lt_cv_prog_compiler_c_o=no
8398    $RM -r conftest 2>/dev/null
8399    mkdir conftest
8400    cd conftest
8401    mkdir out
8402    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8403
8404    lt_compiler_flag="-o out/conftest2.$ac_objext"
8405    # Insert the option either (1) after the last *FLAGS variable, or
8406    # (2) before a word containing "conftest.", or (3) at the end.
8407    # Note that $ac_compile itself does not contain backslashes and begins
8408    # with a dollar sign (not a hyphen), so the echo should work correctly.
8409    lt_compile=`echo "$ac_compile" | $SED \
8410    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8411    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8412    -e 's:$: $lt_compiler_flag:'`
8413    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8414    (eval "$lt_compile" 2>out/conftest.err)
8415    ac_status=$?
8416    cat out/conftest.err >&5
8417    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8419    then
8420      # The compiler can only warn and ignore the option if not recognized
8421      # So say no if there are warnings
8422      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8423      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8424      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8425        lt_cv_prog_compiler_c_o=yes
8426      fi
8427    fi
8428    chmod u+w . 2>&5
8429    $RM conftest*
8430    # SGI C++ compiler will create directory out/ii_files/ for
8431    # template instantiation
8432    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8433    $RM out/* && rmdir out
8434    cd ..
8435    $RM -r conftest
8436    $RM conftest*
8437
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8440 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8441
8442
8443
8444
8445 hard_links="nottested"
8446 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8447   # do not overwrite the value of need_locks provided by the user
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8449 $as_echo_n "checking if we can lock with hard links... " >&6; }
8450   hard_links=yes
8451   $RM conftest*
8452   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8453   touch conftest.a
8454   ln conftest.a conftest.b 2>&5 || hard_links=no
8455   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8457 $as_echo "$hard_links" >&6; }
8458   if test "$hard_links" = no; then
8459     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8460 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8461     need_locks=warn
8462   fi
8463 else
8464   need_locks=no
8465 fi
8466
8467
8468
8469
8470
8471
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8473 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8474
8475   runpath_var=
8476   allow_undefined_flag=
8477   always_export_symbols=no
8478   archive_cmds=
8479   archive_expsym_cmds=
8480   compiler_needs_object=no
8481   enable_shared_with_static_runtimes=no
8482   export_dynamic_flag_spec=
8483   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8484   hardcode_automatic=no
8485   hardcode_direct=no
8486   hardcode_direct_absolute=no
8487   hardcode_libdir_flag_spec=
8488   hardcode_libdir_flag_spec_ld=
8489   hardcode_libdir_separator=
8490   hardcode_minus_L=no
8491   hardcode_shlibpath_var=unsupported
8492   inherit_rpath=no
8493   link_all_deplibs=unknown
8494   module_cmds=
8495   module_expsym_cmds=
8496   old_archive_from_new_cmds=
8497   old_archive_from_expsyms_cmds=
8498   thread_safe_flag_spec=
8499   whole_archive_flag_spec=
8500   # include_expsyms should be a list of space-separated symbols to be *always*
8501   # included in the symbol list
8502   include_expsyms=
8503   # exclude_expsyms can be an extended regexp of symbols to exclude
8504   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8505   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8506   # as well as any symbol that contains `d'.
8507   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8508   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8509   # platforms (ab)use it in PIC code, but their linkers get confused if
8510   # the symbol is explicitly referenced.  Since portable code cannot
8511   # rely on this symbol name, it's probably fine to never include it in
8512   # preloaded symbol tables.
8513   # Exclude shared library initialization/finalization symbols.
8514   extract_expsyms_cmds=
8515
8516   case $host_os in
8517   cygwin* | mingw* | pw32* | cegcc*)
8518     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8519     # When not using gcc, we currently assume that we are using
8520     # Microsoft Visual C++.
8521     if test "$GCC" != yes; then
8522       with_gnu_ld=no
8523     fi
8524     ;;
8525   interix*)
8526     # we just hope/assume this is gcc and not c89 (= MSVC++)
8527     with_gnu_ld=yes
8528     ;;
8529   openbsd*)
8530     with_gnu_ld=no
8531     ;;
8532   esac
8533
8534   ld_shlibs=yes
8535
8536   # On some targets, GNU ld is compatible enough with the native linker
8537   # that we're better off using the native interface for both.
8538   lt_use_gnu_ld_interface=no
8539   if test "$with_gnu_ld" = yes; then
8540     case $host_os in
8541       aix*)
8542         # The AIX port of GNU ld has always aspired to compatibility
8543         # with the native linker.  However, as the warning in the GNU ld
8544         # block says, versions before 2.19.5* couldn't really create working
8545         # shared libraries, regardless of the interface used.
8546         case `$LD -v 2>&1` in
8547           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8548           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8549           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8550           *)
8551             lt_use_gnu_ld_interface=yes
8552             ;;
8553         esac
8554         ;;
8555       *)
8556         lt_use_gnu_ld_interface=yes
8557         ;;
8558     esac
8559   fi
8560
8561   if test "$lt_use_gnu_ld_interface" = yes; then
8562     # If archive_cmds runs LD, not CC, wlarc should be empty
8563     wlarc='${wl}'
8564
8565     # Set some defaults for GNU ld with shared library support. These
8566     # are reset later if shared libraries are not supported. Putting them
8567     # here allows them to be overridden if necessary.
8568     runpath_var=LD_RUN_PATH
8569     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8570     export_dynamic_flag_spec='${wl}--export-dynamic'
8571     # ancient GNU ld didn't support --whole-archive et. al.
8572     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8573       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8574     else
8575       whole_archive_flag_spec=
8576     fi
8577     supports_anon_versioning=no
8578     case `$LD -v 2>&1` in
8579       *GNU\ gold*) supports_anon_versioning=yes ;;
8580       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8581       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8582       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8583       *\ 2.11.*) ;; # other 2.11 versions
8584       *) supports_anon_versioning=yes ;;
8585     esac
8586
8587     # See if GNU ld supports shared libraries.
8588     case $host_os in
8589     aix[3-9]*)
8590       # On AIX/PPC, the GNU linker is very broken
8591       if test "$host_cpu" != ia64; then
8592         ld_shlibs=no
8593         cat <<_LT_EOF 1>&2
8594
8595 *** Warning: the GNU linker, at least up to release 2.19, is reported
8596 *** to be unable to reliably create shared libraries on AIX.
8597 *** Therefore, libtool is disabling shared libraries support.  If you
8598 *** really care for shared libraries, you may want to install binutils
8599 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8600 *** You will then need to restart the configuration process.
8601
8602 _LT_EOF
8603       fi
8604       ;;
8605
8606     amigaos*)
8607       case $host_cpu in
8608       powerpc)
8609             # see comment about AmigaOS4 .so support
8610             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8611             archive_expsym_cmds=''
8612         ;;
8613       m68k)
8614             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)'
8615             hardcode_libdir_flag_spec='-L$libdir'
8616             hardcode_minus_L=yes
8617         ;;
8618       esac
8619       ;;
8620
8621     beos*)
8622       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8623         allow_undefined_flag=unsupported
8624         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8625         # support --undefined.  This deserves some investigation.  FIXME
8626         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627       else
8628         ld_shlibs=no
8629       fi
8630       ;;
8631
8632     cygwin* | mingw* | pw32* | cegcc*)
8633       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8634       # as there is no search path for DLLs.
8635       hardcode_libdir_flag_spec='-L$libdir'
8636       export_dynamic_flag_spec='${wl}--export-all-symbols'
8637       allow_undefined_flag=unsupported
8638       always_export_symbols=no
8639       enable_shared_with_static_runtimes=yes
8640       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8641
8642       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8643         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8644         # If the export-symbols file already is a .def file (1st line
8645         # is EXPORTS), use it as is; otherwise, prepend...
8646         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8647           cp $export_symbols $output_objdir/$soname.def;
8648         else
8649           echo EXPORTS > $output_objdir/$soname.def;
8650           cat $export_symbols >> $output_objdir/$soname.def;
8651         fi~
8652         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8653       else
8654         ld_shlibs=no
8655       fi
8656       ;;
8657
8658     haiku*)
8659       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660       link_all_deplibs=yes
8661       ;;
8662
8663     interix[3-9]*)
8664       hardcode_direct=no
8665       hardcode_shlibpath_var=no
8666       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8667       export_dynamic_flag_spec='${wl}-E'
8668       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8669       # Instead, shared libraries are loaded at an image base (0x10000000 by
8670       # default) and relocated if they conflict, which is a slow very memory
8671       # consuming and fragmenting process.  To avoid this, we pick a random,
8672       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8673       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8674       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8675       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'
8676       ;;
8677
8678     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8679       tmp_diet=no
8680       if test "$host_os" = linux-dietlibc; then
8681         case $cc_basename in
8682           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8683         esac
8684       fi
8685       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8686          && test "$tmp_diet" = no
8687       then
8688         tmp_addflag=
8689         tmp_sharedflag='-shared'
8690         case $cc_basename,$host_cpu in
8691         pgcc*)                          # Portland Group C compiler
8692           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'
8693           tmp_addflag=' $pic_flag'
8694           ;;
8695         pgf77* | pgf90* | pgf95* | pgfortran*)
8696                                         # Portland Group f77 and f90 compilers
8697           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'
8698           tmp_addflag=' $pic_flag -Mnomain' ;;
8699         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8700           tmp_addflag=' -i_dynamic' ;;
8701         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8702           tmp_addflag=' -i_dynamic -nofor_main' ;;
8703         ifc* | ifort*)                  # Intel Fortran compiler
8704           tmp_addflag=' -nofor_main' ;;
8705         lf95*)                          # Lahey Fortran 8.1
8706           whole_archive_flag_spec=
8707           tmp_sharedflag='--shared' ;;
8708         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8709           tmp_sharedflag='-qmkshrobj'
8710           tmp_addflag= ;;
8711         nvcc*)  # Cuda Compiler Driver 2.2
8712           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'
8713           compiler_needs_object=yes
8714           ;;
8715         esac
8716         case `$CC -V 2>&1 | sed 5q` in
8717         *Sun\ C*)                       # Sun C 5.9
8718           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'
8719           compiler_needs_object=yes
8720           tmp_sharedflag='-G' ;;
8721         *Sun\ F*)                       # Sun Fortran 8.3
8722           tmp_sharedflag='-G' ;;
8723         esac
8724         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725
8726         if test "x$supports_anon_versioning" = xyes; then
8727           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8728             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8729             echo "local: *; };" >> $output_objdir/$libname.ver~
8730             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8731         fi
8732
8733         case $cc_basename in
8734         xlf* | bgf* | bgxlf* | mpixlf*)
8735           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8736           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8737           hardcode_libdir_flag_spec=
8738           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8739           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8740           if test "x$supports_anon_versioning" = xyes; then
8741             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8742               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8743               echo "local: *; };" >> $output_objdir/$libname.ver~
8744               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8745           fi
8746           ;;
8747         esac
8748       else
8749         ld_shlibs=no
8750       fi
8751       ;;
8752
8753     netbsd*)
8754       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8755         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8756         wlarc=
8757       else
8758         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8759         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760       fi
8761       ;;
8762
8763     solaris*)
8764       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8765         ld_shlibs=no
8766         cat <<_LT_EOF 1>&2
8767
8768 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8769 *** create shared libraries on Solaris systems.  Therefore, libtool
8770 *** is disabling shared libraries support.  We urge you to upgrade GNU
8771 *** binutils to release 2.9.1 or newer.  Another option is to modify
8772 *** your PATH or compiler configuration so that the native linker is
8773 *** used, and then restart.
8774
8775 _LT_EOF
8776       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8777         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8778         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8779       else
8780         ld_shlibs=no
8781       fi
8782       ;;
8783
8784     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8785       case `$LD -v 2>&1` in
8786         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8787         ld_shlibs=no
8788         cat <<_LT_EOF 1>&2
8789
8790 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8791 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8792 *** is disabling shared libraries support.  We urge you to upgrade GNU
8793 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8794 *** your PATH or compiler configuration so that the native linker is
8795 *** used, and then restart.
8796
8797 _LT_EOF
8798         ;;
8799         *)
8800           # For security reasons, it is highly recommended that you always
8801           # use absolute paths for naming shared libraries, and exclude the
8802           # DT_RUNPATH tag from executables and libraries.  But doing so
8803           # requires that you compile everything twice, which is a pain.
8804           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8805             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8806             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8807             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8808           else
8809             ld_shlibs=no
8810           fi
8811         ;;
8812       esac
8813       ;;
8814
8815     sunos4*)
8816       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8817       wlarc=
8818       hardcode_direct=yes
8819       hardcode_shlibpath_var=no
8820       ;;
8821
8822     *)
8823       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8824         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8825         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8826       else
8827         ld_shlibs=no
8828       fi
8829       ;;
8830     esac
8831
8832     if test "$ld_shlibs" = no; then
8833       runpath_var=
8834       hardcode_libdir_flag_spec=
8835       export_dynamic_flag_spec=
8836       whole_archive_flag_spec=
8837     fi
8838   else
8839     # PORTME fill in a description of your system's linker (not GNU ld)
8840     case $host_os in
8841     aix3*)
8842       allow_undefined_flag=unsupported
8843       always_export_symbols=yes
8844       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'
8845       # Note: this linker hardcodes the directories in LIBPATH if there
8846       # are no directories specified by -L.
8847       hardcode_minus_L=yes
8848       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8849         # Neither direct hardcoding nor static linking is supported with a
8850         # broken collect2.
8851         hardcode_direct=unsupported
8852       fi
8853       ;;
8854
8855     aix[4-9]*)
8856       if test "$host_cpu" = ia64; then
8857         # On IA64, the linker does run time linking by default, so we don't
8858         # have to do anything special.
8859         aix_use_runtimelinking=no
8860         exp_sym_flag='-Bexport'
8861         no_entry_flag=""
8862       else
8863         # If we're using GNU nm, then we don't want the "-C" option.
8864         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8865         # Also, AIX nm treats weak defined symbols like other global
8866         # defined symbols, whereas GNU nm marks them as "W".
8867         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8868           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'
8869         else
8870           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'
8871         fi
8872         aix_use_runtimelinking=no
8873
8874         # Test if we are trying to use run time linking or normal
8875         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8876         # need to do runtime linking.
8877         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8878           for ld_flag in $LDFLAGS; do
8879           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8880             aix_use_runtimelinking=yes
8881             break
8882           fi
8883           done
8884           ;;
8885         esac
8886
8887         exp_sym_flag='-bexport'
8888         no_entry_flag='-bnoentry'
8889       fi
8890
8891       # When large executables or shared objects are built, AIX ld can
8892       # have problems creating the table of contents.  If linking a library
8893       # or program results in "error TOC overflow" add -mminimal-toc to
8894       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8895       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8896
8897       archive_cmds=''
8898       hardcode_direct=yes
8899       hardcode_direct_absolute=yes
8900       hardcode_libdir_separator=':'
8901       link_all_deplibs=yes
8902       file_list_spec='${wl}-f,'
8903
8904       if test "$GCC" = yes; then
8905         case $host_os in aix4.[012]|aix4.[012].*)
8906         # We only want to do this on AIX 4.2 and lower, the check
8907         # below for broken collect2 doesn't work under 4.3+
8908           collect2name=`${CC} -print-prog-name=collect2`
8909           if test -f "$collect2name" &&
8910            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8911           then
8912           # We have reworked collect2
8913           :
8914           else
8915           # We have old collect2
8916           hardcode_direct=unsupported
8917           # It fails to find uninstalled libraries when the uninstalled
8918           # path is not listed in the libpath.  Setting hardcode_minus_L
8919           # to unsupported forces relinking
8920           hardcode_minus_L=yes
8921           hardcode_libdir_flag_spec='-L$libdir'
8922           hardcode_libdir_separator=
8923           fi
8924           ;;
8925         esac
8926         shared_flag='-shared'
8927         if test "$aix_use_runtimelinking" = yes; then
8928           shared_flag="$shared_flag "'${wl}-G'
8929         fi
8930       else
8931         # not using gcc
8932         if test "$host_cpu" = ia64; then
8933         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8934         # chokes on -Wl,-G. The following line is correct:
8935           shared_flag='-G'
8936         else
8937           if test "$aix_use_runtimelinking" = yes; then
8938             shared_flag='${wl}-G'
8939           else
8940             shared_flag='${wl}-bM:SRE'
8941           fi
8942         fi
8943       fi
8944
8945       export_dynamic_flag_spec='${wl}-bexpall'
8946       # It seems that -bexpall does not export symbols beginning with
8947       # underscore (_), so it is better to generate a list of symbols to export.
8948       always_export_symbols=yes
8949       if test "$aix_use_runtimelinking" = yes; then
8950         # Warning - without using the other runtime loading flags (-brtl),
8951         # -berok will link without error, but may produce a broken library.
8952         allow_undefined_flag='-berok'
8953         # Determine the default libpath from the value encoded in an
8954         # empty executable.
8955         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h.  */
8957
8958 int
8959 main ()
8960 {
8961
8962   ;
8963   return 0;
8964 }
8965 _ACEOF
8966 if ac_fn_c_try_link "$LINENO"; then :
8967
8968 lt_aix_libpath_sed='
8969     /Import File Strings/,/^$/ {
8970         /^0/ {
8971             s/^0  *\(.*\)$/\1/
8972             p
8973         }
8974     }'
8975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8976 # Check for a 64-bit object if we didn't find anything.
8977 if test -z "$aix_libpath"; then
8978   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979 fi
8980 fi
8981 rm -f core conftest.err conftest.$ac_objext \
8982     conftest$ac_exeext conftest.$ac_ext
8983 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8984
8985         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8986         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"
8987       else
8988         if test "$host_cpu" = ia64; then
8989           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8990           allow_undefined_flag="-z nodefs"
8991           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"
8992         else
8993          # Determine the default libpath from the value encoded in an
8994          # empty executable.
8995          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h.  */
8997
8998 int
8999 main ()
9000 {
9001
9002   ;
9003   return 0;
9004 }
9005 _ACEOF
9006 if ac_fn_c_try_link "$LINENO"; then :
9007
9008 lt_aix_libpath_sed='
9009     /Import File Strings/,/^$/ {
9010         /^0/ {
9011             s/^0  *\(.*\)$/\1/
9012             p
9013         }
9014     }'
9015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9016 # Check for a 64-bit object if we didn't find anything.
9017 if test -z "$aix_libpath"; then
9018   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019 fi
9020 fi
9021 rm -f core conftest.err conftest.$ac_objext \
9022     conftest$ac_exeext conftest.$ac_ext
9023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9024
9025          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9026           # Warning - without using the other run time loading flags,
9027           # -berok will link without error, but may produce a broken library.
9028           no_undefined_flag=' ${wl}-bernotok'
9029           allow_undefined_flag=' ${wl}-berok'
9030           if test "$with_gnu_ld" = yes; then
9031             # We only use this code for GNU lds that support --whole-archive.
9032             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9033           else
9034             # Exported symbols can be pulled into shared objects from archives
9035             whole_archive_flag_spec='$convenience'
9036           fi
9037           archive_cmds_need_lc=yes
9038           # This is similar to how AIX traditionally builds its shared libraries.
9039           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'
9040         fi
9041       fi
9042       ;;
9043
9044     amigaos*)
9045       case $host_cpu in
9046       powerpc)
9047             # see comment about AmigaOS4 .so support
9048             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049             archive_expsym_cmds=''
9050         ;;
9051       m68k)
9052             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)'
9053             hardcode_libdir_flag_spec='-L$libdir'
9054             hardcode_minus_L=yes
9055         ;;
9056       esac
9057       ;;
9058
9059     bsdi[45]*)
9060       export_dynamic_flag_spec=-rdynamic
9061       ;;
9062
9063     cygwin* | mingw* | pw32* | cegcc*)
9064       # When not using gcc, we currently assume that we are using
9065       # Microsoft Visual C++.
9066       # hardcode_libdir_flag_spec is actually meaningless, as there is
9067       # no search path for DLLs.
9068       hardcode_libdir_flag_spec=' '
9069       allow_undefined_flag=unsupported
9070       # Tell ltmain to make .lib files, not .a files.
9071       libext=lib
9072       # Tell ltmain to make .dll files, not .so files.
9073       shrext_cmds=".dll"
9074       # FIXME: Setting linknames here is a bad hack.
9075       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9076       # The linker will automatically build a .lib file if we build a DLL.
9077       old_archive_from_new_cmds='true'
9078       # FIXME: Should let the user specify the lib program.
9079       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9080       fix_srcfile_path='`cygpath -w "$srcfile"`'
9081       enable_shared_with_static_runtimes=yes
9082       ;;
9083
9084     darwin* | rhapsody*)
9085
9086
9087   archive_cmds_need_lc=no
9088   hardcode_direct=no
9089   hardcode_automatic=yes
9090   hardcode_shlibpath_var=unsupported
9091   if test "$lt_cv_ld_force_load" = "yes"; then
9092     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\"`'
9093   else
9094     whole_archive_flag_spec=''
9095   fi
9096   link_all_deplibs=yes
9097   allow_undefined_flag="$_lt_dar_allow_undefined"
9098   case $cc_basename in
9099      ifort*) _lt_dar_can_shared=yes ;;
9100      *) _lt_dar_can_shared=$GCC ;;
9101   esac
9102   if test "$_lt_dar_can_shared" = "yes"; then
9103     output_verbose_link_cmd=func_echo_all
9104     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9105     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9106     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}"
9107     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}"
9108
9109   else
9110   ld_shlibs=no
9111   fi
9112
9113       ;;
9114
9115     dgux*)
9116       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9117       hardcode_libdir_flag_spec='-L$libdir'
9118       hardcode_shlibpath_var=no
9119       ;;
9120
9121     freebsd1*)
9122       ld_shlibs=no
9123       ;;
9124
9125     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9126     # support.  Future versions do this automatically, but an explicit c++rt0.o
9127     # does not break anything, and helps significantly (at the cost of a little
9128     # extra space).
9129     freebsd2.2*)
9130       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9131       hardcode_libdir_flag_spec='-R$libdir'
9132       hardcode_direct=yes
9133       hardcode_shlibpath_var=no
9134       ;;
9135
9136     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9137     freebsd2*)
9138       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9139       hardcode_direct=yes
9140       hardcode_minus_L=yes
9141       hardcode_shlibpath_var=no
9142       ;;
9143
9144     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9145     freebsd* | dragonfly*)
9146       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9147       hardcode_libdir_flag_spec='-R$libdir'
9148       hardcode_direct=yes
9149       hardcode_shlibpath_var=no
9150       ;;
9151
9152     hpux9*)
9153       if test "$GCC" = yes; then
9154         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'
9155       else
9156         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'
9157       fi
9158       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9159       hardcode_libdir_separator=:
9160       hardcode_direct=yes
9161
9162       # hardcode_minus_L: Not really in the search PATH,
9163       # but as the default location of the library.
9164       hardcode_minus_L=yes
9165       export_dynamic_flag_spec='${wl}-E'
9166       ;;
9167
9168     hpux10*)
9169       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9170         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9171       else
9172         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9173       fi
9174       if test "$with_gnu_ld" = no; then
9175         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9176         hardcode_libdir_flag_spec_ld='+b $libdir'
9177         hardcode_libdir_separator=:
9178         hardcode_direct=yes
9179         hardcode_direct_absolute=yes
9180         export_dynamic_flag_spec='${wl}-E'
9181         # hardcode_minus_L: Not really in the search PATH,
9182         # but as the default location of the library.
9183         hardcode_minus_L=yes
9184       fi
9185       ;;
9186
9187     hpux11*)
9188       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9189         case $host_cpu in
9190         hppa*64*)
9191           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9192           ;;
9193         ia64*)
9194           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9195           ;;
9196         *)
9197           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198           ;;
9199         esac
9200       else
9201         case $host_cpu in
9202         hppa*64*)
9203           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204           ;;
9205         ia64*)
9206           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207           ;;
9208         *)
9209
9210           # Older versions of the 11.00 compiler do not understand -b yet
9211           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9212           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9213 $as_echo_n "checking if $CC understands -b... " >&6; }
9214 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9215   $as_echo_n "(cached) " >&6
9216 else
9217   lt_cv_prog_compiler__b=no
9218    save_LDFLAGS="$LDFLAGS"
9219    LDFLAGS="$LDFLAGS -b"
9220    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9221    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9222      # The linker can only warn and ignore the option if not recognized
9223      # So say no if there are warnings
9224      if test -s conftest.err; then
9225        # Append any errors to the config.log.
9226        cat conftest.err 1>&5
9227        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9228        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9229        if diff conftest.exp conftest.er2 >/dev/null; then
9230          lt_cv_prog_compiler__b=yes
9231        fi
9232      else
9233        lt_cv_prog_compiler__b=yes
9234      fi
9235    fi
9236    $RM -r conftest*
9237    LDFLAGS="$save_LDFLAGS"
9238
9239 fi
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9241 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9242
9243 if test x"$lt_cv_prog_compiler__b" = xyes; then
9244     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9245 else
9246     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9247 fi
9248
9249           ;;
9250         esac
9251       fi
9252       if test "$with_gnu_ld" = no; then
9253         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254         hardcode_libdir_separator=:
9255
9256         case $host_cpu in
9257         hppa*64*|ia64*)
9258           hardcode_direct=no
9259           hardcode_shlibpath_var=no
9260           ;;
9261         *)
9262           hardcode_direct=yes
9263           hardcode_direct_absolute=yes
9264           export_dynamic_flag_spec='${wl}-E'
9265
9266           # hardcode_minus_L: Not really in the search PATH,
9267           # but as the default location of the library.
9268           hardcode_minus_L=yes
9269           ;;
9270         esac
9271       fi
9272       ;;
9273
9274     irix5* | irix6* | nonstopux*)
9275       if test "$GCC" = yes; then
9276         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'
9277         # Try to use the -exported_symbol ld option, if it does not
9278         # work, assume that -exports_file does not work either and
9279         # implicitly export all symbols.
9280         save_LDFLAGS="$LDFLAGS"
9281         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9282         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h.  */
9284 int foo(void) {}
9285 _ACEOF
9286 if ac_fn_c_try_link "$LINENO"; then :
9287   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'
9288
9289 fi
9290 rm -f core conftest.err conftest.$ac_objext \
9291     conftest$ac_exeext conftest.$ac_ext
9292         LDFLAGS="$save_LDFLAGS"
9293       else
9294         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'
9295         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'
9296       fi
9297       archive_cmds_need_lc='no'
9298       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9299       hardcode_libdir_separator=:
9300       inherit_rpath=yes
9301       link_all_deplibs=yes
9302       ;;
9303
9304     netbsd*)
9305       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9306         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9307       else
9308         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9309       fi
9310       hardcode_libdir_flag_spec='-R$libdir'
9311       hardcode_direct=yes
9312       hardcode_shlibpath_var=no
9313       ;;
9314
9315     newsos6)
9316       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317       hardcode_direct=yes
9318       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319       hardcode_libdir_separator=:
9320       hardcode_shlibpath_var=no
9321       ;;
9322
9323     *nto* | *qnx*)
9324       ;;
9325
9326     openbsd*)
9327       if test -f /usr/libexec/ld.so; then
9328         hardcode_direct=yes
9329         hardcode_shlibpath_var=no
9330         hardcode_direct_absolute=yes
9331         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9332           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9333           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9334           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9335           export_dynamic_flag_spec='${wl}-E'
9336         else
9337           case $host_os in
9338            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9339              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9340              hardcode_libdir_flag_spec='-R$libdir'
9341              ;;
9342            *)
9343              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9344              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9345              ;;
9346           esac
9347         fi
9348       else
9349         ld_shlibs=no
9350       fi
9351       ;;
9352
9353     os2*)
9354       hardcode_libdir_flag_spec='-L$libdir'
9355       hardcode_minus_L=yes
9356       allow_undefined_flag=unsupported
9357       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'
9358       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9359       ;;
9360
9361     osf3*)
9362       if test "$GCC" = yes; then
9363         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9364         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9365       else
9366         allow_undefined_flag=' -expect_unresolved \*'
9367         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'
9368       fi
9369       archive_cmds_need_lc='no'
9370       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9371       hardcode_libdir_separator=:
9372       ;;
9373
9374     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9375       if test "$GCC" = yes; then
9376         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9377         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'
9378         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9379       else
9380         allow_undefined_flag=' -expect_unresolved \*'
9381         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'
9382         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~
9383         $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'
9384
9385         # Both c and cxx compiler support -rpath directly
9386         hardcode_libdir_flag_spec='-rpath $libdir'
9387       fi
9388       archive_cmds_need_lc='no'
9389       hardcode_libdir_separator=:
9390       ;;
9391
9392     solaris*)
9393       no_undefined_flag=' -z defs'
9394       if test "$GCC" = yes; then
9395         wlarc='${wl}'
9396         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9397         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9398           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9399       else
9400         case `$CC -V 2>&1` in
9401         *"Compilers 5.0"*)
9402           wlarc=''
9403           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9404           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9405           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9406           ;;
9407         *)
9408           wlarc='${wl}'
9409           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9410           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9411           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9412           ;;
9413         esac
9414       fi
9415       hardcode_libdir_flag_spec='-R$libdir'
9416       hardcode_shlibpath_var=no
9417       case $host_os in
9418       solaris2.[0-5] | solaris2.[0-5].*) ;;
9419       *)
9420         # The compiler driver will combine and reorder linker options,
9421         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9422         # but is careful enough not to reorder.
9423         # Supported since Solaris 2.6 (maybe 2.5.1?)
9424         if test "$GCC" = yes; then
9425           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9426         else
9427           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9428         fi
9429         ;;
9430       esac
9431       link_all_deplibs=yes
9432       ;;
9433
9434     sunos4*)
9435       if test "x$host_vendor" = xsequent; then
9436         # Use $CC to link under sequent, because it throws in some extra .o
9437         # files that make .init and .fini sections work.
9438         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9439       else
9440         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9441       fi
9442       hardcode_libdir_flag_spec='-L$libdir'
9443       hardcode_direct=yes
9444       hardcode_minus_L=yes
9445       hardcode_shlibpath_var=no
9446       ;;
9447
9448     sysv4)
9449       case $host_vendor in
9450         sni)
9451           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9452           hardcode_direct=yes # is this really true???
9453         ;;
9454         siemens)
9455           ## LD is ld it makes a PLAMLIB
9456           ## CC just makes a GrossModule.
9457           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9458           reload_cmds='$CC -r -o $output$reload_objs'
9459           hardcode_direct=no
9460         ;;
9461         motorola)
9462           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9463           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9464         ;;
9465       esac
9466       runpath_var='LD_RUN_PATH'
9467       hardcode_shlibpath_var=no
9468       ;;
9469
9470     sysv4.3*)
9471       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472       hardcode_shlibpath_var=no
9473       export_dynamic_flag_spec='-Bexport'
9474       ;;
9475
9476     sysv4*MP*)
9477       if test -d /usr/nec; then
9478         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9479         hardcode_shlibpath_var=no
9480         runpath_var=LD_RUN_PATH
9481         hardcode_runpath_var=yes
9482         ld_shlibs=yes
9483       fi
9484       ;;
9485
9486     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9487       no_undefined_flag='${wl}-z,text'
9488       archive_cmds_need_lc=no
9489       hardcode_shlibpath_var=no
9490       runpath_var='LD_RUN_PATH'
9491
9492       if test "$GCC" = yes; then
9493         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495       else
9496         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498       fi
9499       ;;
9500
9501     sysv5* | sco3.2v5* | sco5v6*)
9502       # Note: We can NOT use -z defs as we might desire, because we do not
9503       # link with -lc, and that would cause any symbols used from libc to
9504       # always be unresolved, which means just about no library would
9505       # ever link correctly.  If we're not using GNU ld we use -z text
9506       # though, which does catch some bad symbols but isn't as heavy-handed
9507       # as -z defs.
9508       no_undefined_flag='${wl}-z,text'
9509       allow_undefined_flag='${wl}-z,nodefs'
9510       archive_cmds_need_lc=no
9511       hardcode_shlibpath_var=no
9512       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9513       hardcode_libdir_separator=':'
9514       link_all_deplibs=yes
9515       export_dynamic_flag_spec='${wl}-Bexport'
9516       runpath_var='LD_RUN_PATH'
9517
9518       if test "$GCC" = yes; then
9519         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9520         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521       else
9522         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9524       fi
9525       ;;
9526
9527     uts4*)
9528       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529       hardcode_libdir_flag_spec='-L$libdir'
9530       hardcode_shlibpath_var=no
9531       ;;
9532
9533     *)
9534       ld_shlibs=no
9535       ;;
9536     esac
9537
9538     if test x$host_vendor = xsni; then
9539       case $host in
9540       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9541         export_dynamic_flag_spec='${wl}-Blargedynsym'
9542         ;;
9543       esac
9544     fi
9545   fi
9546
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9548 $as_echo "$ld_shlibs" >&6; }
9549 test "$ld_shlibs" = no && can_build_shared=no
9550
9551 with_gnu_ld=$with_gnu_ld
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567 #
9568 # Do we need to explicitly link libc?
9569 #
9570 case "x$archive_cmds_need_lc" in
9571 x|xyes)
9572   # Assume -lc should be added
9573   archive_cmds_need_lc=yes
9574
9575   if test "$enable_shared" = yes && test "$GCC" = yes; then
9576     case $archive_cmds in
9577     *'~'*)
9578       # FIXME: we may have to deal with multi-command sequences.
9579       ;;
9580     '$CC '*)
9581       # Test whether the compiler implicitly links with -lc since on some
9582       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9583       # to ld, don't add -lc before -lgcc.
9584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9585 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9586 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9587   $as_echo_n "(cached) " >&6
9588 else
9589   $RM conftest*
9590         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9591
9592         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9593   (eval $ac_compile) 2>&5
9594   ac_status=$?
9595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9596   test $ac_status = 0; } 2>conftest.err; then
9597           soname=conftest
9598           lib=conftest
9599           libobjs=conftest.$ac_objext
9600           deplibs=
9601           wl=$lt_prog_compiler_wl
9602           pic_flag=$lt_prog_compiler_pic
9603           compiler_flags=-v
9604           linker_flags=-v
9605           verstring=
9606           output_objdir=.
9607           libname=conftest
9608           lt_save_allow_undefined_flag=$allow_undefined_flag
9609           allow_undefined_flag=
9610           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9611   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9612   ac_status=$?
9613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9614   test $ac_status = 0; }
9615           then
9616             lt_cv_archive_cmds_need_lc=no
9617           else
9618             lt_cv_archive_cmds_need_lc=yes
9619           fi
9620           allow_undefined_flag=$lt_save_allow_undefined_flag
9621         else
9622           cat conftest.err 1>&5
9623         fi
9624         $RM conftest*
9625
9626 fi
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9628 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9629       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9630       ;;
9631     esac
9632   fi
9633   ;;
9634 esac
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9793 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9794
9795 if test "$GCC" = yes; then
9796   case $host_os in
9797     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9798     *) lt_awk_arg="/^libraries:/" ;;
9799   esac
9800   case $host_os in
9801     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9802     *) lt_sed_strip_eq="s,=/,/,g" ;;
9803   esac
9804   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9805   case $lt_search_path_spec in
9806   *\;*)
9807     # if the path contains ";" then we assume it to be the separator
9808     # otherwise default to the standard path separator (i.e. ":") - it is
9809     # assumed that no part of a normal pathname contains ";" but that should
9810     # okay in the real world where ";" in dirpaths is itself problematic.
9811     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9812     ;;
9813   *)
9814     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9815     ;;
9816   esac
9817   # Ok, now we have the path, separated by spaces, we can step through it
9818   # and add multilib dir if necessary.
9819   lt_tmp_lt_search_path_spec=
9820   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9821   for lt_sys_path in $lt_search_path_spec; do
9822     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9823       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9824     else
9825       test -d "$lt_sys_path" && \
9826         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9827     fi
9828   done
9829   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9830 BEGIN {RS=" "; FS="/|\n";} {
9831   lt_foo="";
9832   lt_count=0;
9833   for (lt_i = NF; lt_i > 0; lt_i--) {
9834     if ($lt_i != "" && $lt_i != ".") {
9835       if ($lt_i == "..") {
9836         lt_count++;
9837       } else {
9838         if (lt_count == 0) {
9839           lt_foo="/" $lt_i lt_foo;
9840         } else {
9841           lt_count--;
9842         }
9843       }
9844     }
9845   }
9846   if (lt_foo != "") { lt_freq[lt_foo]++; }
9847   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9848 }'`
9849   # AWK program above erroneously prepends '/' to C:/dos/paths
9850   # for these hosts.
9851   case $host_os in
9852     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9853       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9854   esac
9855   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9856 else
9857   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9858 fi
9859 library_names_spec=
9860 libname_spec='lib$name'
9861 soname_spec=
9862 shrext_cmds=".so"
9863 postinstall_cmds=
9864 postuninstall_cmds=
9865 finish_cmds=
9866 finish_eval=
9867 shlibpath_var=
9868 shlibpath_overrides_runpath=unknown
9869 version_type=none
9870 dynamic_linker="$host_os ld.so"
9871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9872 need_lib_prefix=unknown
9873 hardcode_into_libs=no
9874
9875 # when you set need_version to no, make sure it does not cause -set_version
9876 # flags to be left without arguments
9877 need_version=unknown
9878
9879 case $host_os in
9880 aix3*)
9881   version_type=linux
9882   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9883   shlibpath_var=LIBPATH
9884
9885   # AIX 3 has no versioning support, so we append a major version to the name.
9886   soname_spec='${libname}${release}${shared_ext}$major'
9887   ;;
9888
9889 aix[4-9]*)
9890   version_type=linux
9891   need_lib_prefix=no
9892   need_version=no
9893   hardcode_into_libs=yes
9894   if test "$host_cpu" = ia64; then
9895     # AIX 5 supports IA64
9896     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9897     shlibpath_var=LD_LIBRARY_PATH
9898   else
9899     # With GCC up to 2.95.x, collect2 would create an import file
9900     # for dependence libraries.  The import file would start with
9901     # the line `#! .'.  This would cause the generated library to
9902     # depend on `.', always an invalid library.  This was fixed in
9903     # development snapshots of GCC prior to 3.0.
9904     case $host_os in
9905       aix4 | aix4.[01] | aix4.[01].*)
9906       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9907            echo ' yes '
9908            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9909         :
9910       else
9911         can_build_shared=no
9912       fi
9913       ;;
9914     esac
9915     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9916     # soname into executable. Probably we can add versioning support to
9917     # collect2, so additional links can be useful in future.
9918     if test "$aix_use_runtimelinking" = yes; then
9919       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9920       # instead of lib<name>.a to let people know that these are not
9921       # typical AIX shared libraries.
9922       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9923     else
9924       # We preserve .a as extension for shared libraries through AIX4.2
9925       # and later when we are not doing run time linking.
9926       library_names_spec='${libname}${release}.a $libname.a'
9927       soname_spec='${libname}${release}${shared_ext}$major'
9928     fi
9929     shlibpath_var=LIBPATH
9930   fi
9931   ;;
9932
9933 amigaos*)
9934   case $host_cpu in
9935   powerpc)
9936     # Since July 2007 AmigaOS4 officially supports .so libraries.
9937     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9938     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939     ;;
9940   m68k)
9941     library_names_spec='$libname.ixlibrary $libname.a'
9942     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9943     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'
9944     ;;
9945   esac
9946   ;;
9947
9948 beos*)
9949   library_names_spec='${libname}${shared_ext}'
9950   dynamic_linker="$host_os ld.so"
9951   shlibpath_var=LIBRARY_PATH
9952   ;;
9953
9954 bsdi[45]*)
9955   version_type=linux
9956   need_version=no
9957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958   soname_spec='${libname}${release}${shared_ext}$major'
9959   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9960   shlibpath_var=LD_LIBRARY_PATH
9961   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9962   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9963   # the default ld.so.conf also contains /usr/contrib/lib and
9964   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9965   # libtool to hard-code these into programs
9966   ;;
9967
9968 cygwin* | mingw* | pw32* | cegcc*)
9969   version_type=windows
9970   shrext_cmds=".dll"
9971   need_version=no
9972   need_lib_prefix=no
9973
9974   case $GCC,$host_os in
9975   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9976     library_names_spec='$libname.dll.a'
9977     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9978     postinstall_cmds='base_file=`basename \${file}`~
9979       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9980       dldir=$destdir/`dirname \$dlpath`~
9981       test -d \$dldir || mkdir -p \$dldir~
9982       $install_prog $dir/$dlname \$dldir/$dlname~
9983       chmod a+x \$dldir/$dlname~
9984       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9985         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9986       fi'
9987     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9988       dlpath=$dir/\$dldll~
9989        $RM \$dlpath'
9990     shlibpath_overrides_runpath=yes
9991
9992     case $host_os in
9993     cygwin*)
9994       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9995       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9996
9997       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9998       ;;
9999     mingw* | cegcc*)
10000       # MinGW DLLs use traditional 'lib' prefix
10001       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10002       ;;
10003     pw32*)
10004       # pw32 DLLs use 'pw' prefix rather than 'lib'
10005       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10006       ;;
10007     esac
10008     ;;
10009
10010   *)
10011     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10012     ;;
10013   esac
10014   dynamic_linker='Win32 ld.exe'
10015   # FIXME: first we should search . and the directory the executable is in
10016   shlibpath_var=PATH
10017   ;;
10018
10019 darwin* | rhapsody*)
10020   dynamic_linker="$host_os dyld"
10021   version_type=darwin
10022   need_lib_prefix=no
10023   need_version=no
10024   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10025   soname_spec='${libname}${release}${major}$shared_ext'
10026   shlibpath_overrides_runpath=yes
10027   shlibpath_var=DYLD_LIBRARY_PATH
10028   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10029
10030   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10031   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10032   ;;
10033
10034 dgux*)
10035   version_type=linux
10036   need_lib_prefix=no
10037   need_version=no
10038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10039   soname_spec='${libname}${release}${shared_ext}$major'
10040   shlibpath_var=LD_LIBRARY_PATH
10041   ;;
10042
10043 freebsd1*)
10044   dynamic_linker=no
10045   ;;
10046
10047 freebsd* | dragonfly*)
10048   # DragonFly does not have aout.  When/if they implement a new
10049   # versioning mechanism, adjust this.
10050   if test -x /usr/bin/objformat; then
10051     objformat=`/usr/bin/objformat`
10052   else
10053     case $host_os in
10054     freebsd[123]*) objformat=aout ;;
10055     *) objformat=elf ;;
10056     esac
10057   fi
10058   version_type=freebsd-$objformat
10059   case $version_type in
10060     freebsd-elf*)
10061       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10062       need_version=no
10063       need_lib_prefix=no
10064       ;;
10065     freebsd-*)
10066       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10067       need_version=yes
10068       ;;
10069   esac
10070   shlibpath_var=LD_LIBRARY_PATH
10071   case $host_os in
10072   freebsd2*)
10073     shlibpath_overrides_runpath=yes
10074     ;;
10075   freebsd3.[01]* | freebsdelf3.[01]*)
10076     shlibpath_overrides_runpath=yes
10077     hardcode_into_libs=yes
10078     ;;
10079   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10080   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10081     shlibpath_overrides_runpath=no
10082     hardcode_into_libs=yes
10083     ;;
10084   *) # from 4.6 on, and DragonFly
10085     shlibpath_overrides_runpath=yes
10086     hardcode_into_libs=yes
10087     ;;
10088   esac
10089   ;;
10090
10091 gnu*)
10092   version_type=linux
10093   need_lib_prefix=no
10094   need_version=no
10095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10096   soname_spec='${libname}${release}${shared_ext}$major'
10097   shlibpath_var=LD_LIBRARY_PATH
10098   hardcode_into_libs=yes
10099   ;;
10100
10101 haiku*)
10102   version_type=linux
10103   need_lib_prefix=no
10104   need_version=no
10105   dynamic_linker="$host_os runtime_loader"
10106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10107   soname_spec='${libname}${release}${shared_ext}$major'
10108   shlibpath_var=LIBRARY_PATH
10109   shlibpath_overrides_runpath=yes
10110   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10111   hardcode_into_libs=yes
10112   ;;
10113
10114 hpux9* | hpux10* | hpux11*)
10115   # Give a soname corresponding to the major version so that dld.sl refuses to
10116   # link against other versions.
10117   version_type=sunos
10118   need_lib_prefix=no
10119   need_version=no
10120   case $host_cpu in
10121   ia64*)
10122     shrext_cmds='.so'
10123     hardcode_into_libs=yes
10124     dynamic_linker="$host_os dld.so"
10125     shlibpath_var=LD_LIBRARY_PATH
10126     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10127     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128     soname_spec='${libname}${release}${shared_ext}$major'
10129     if test "X$HPUX_IA64_MODE" = X32; then
10130       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10131     else
10132       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10133     fi
10134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10135     ;;
10136   hppa*64*)
10137     shrext_cmds='.sl'
10138     hardcode_into_libs=yes
10139     dynamic_linker="$host_os dld.sl"
10140     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10141     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10142     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143     soname_spec='${libname}${release}${shared_ext}$major'
10144     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10145     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10146     ;;
10147   *)
10148     shrext_cmds='.sl'
10149     dynamic_linker="$host_os dld.sl"
10150     shlibpath_var=SHLIB_PATH
10151     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153     soname_spec='${libname}${release}${shared_ext}$major'
10154     ;;
10155   esac
10156   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10157   postinstall_cmds='chmod 555 $lib'
10158   # or fails outright, so override atomically:
10159   install_override_mode=555
10160   ;;
10161
10162 interix[3-9]*)
10163   version_type=linux
10164   need_lib_prefix=no
10165   need_version=no
10166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10167   soname_spec='${libname}${release}${shared_ext}$major'
10168   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10169   shlibpath_var=LD_LIBRARY_PATH
10170   shlibpath_overrides_runpath=no
10171   hardcode_into_libs=yes
10172   ;;
10173
10174 irix5* | irix6* | nonstopux*)
10175   case $host_os in
10176     nonstopux*) version_type=nonstopux ;;
10177     *)
10178         if test "$lt_cv_prog_gnu_ld" = yes; then
10179                 version_type=linux
10180         else
10181                 version_type=irix
10182         fi ;;
10183   esac
10184   need_lib_prefix=no
10185   need_version=no
10186   soname_spec='${libname}${release}${shared_ext}$major'
10187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10188   case $host_os in
10189   irix5* | nonstopux*)
10190     libsuff= shlibsuff=
10191     ;;
10192   *)
10193     case $LD in # libtool.m4 will add one of these switches to LD
10194     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10195       libsuff= shlibsuff= libmagic=32-bit;;
10196     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10197       libsuff=32 shlibsuff=N32 libmagic=N32;;
10198     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10199       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10200     *) libsuff= shlibsuff= libmagic=never-match;;
10201     esac
10202     ;;
10203   esac
10204   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10205   shlibpath_overrides_runpath=no
10206   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10207   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10208   hardcode_into_libs=yes
10209   ;;
10210
10211 # No shared lib support for Linux oldld, aout, or coff.
10212 linux*oldld* | linux*aout* | linux*coff*)
10213   dynamic_linker=no
10214   ;;
10215
10216 # This must be Linux ELF.
10217 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10218   version_type=linux
10219   need_lib_prefix=no
10220   need_version=no
10221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222   soname_spec='${libname}${release}${shared_ext}$major'
10223   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10224   shlibpath_var=LD_LIBRARY_PATH
10225   shlibpath_overrides_runpath=no
10226
10227   # Some binutils ld are patched to set DT_RUNPATH
10228   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10229   $as_echo_n "(cached) " >&6
10230 else
10231   lt_cv_shlibpath_overrides_runpath=no
10232     save_LDFLAGS=$LDFLAGS
10233     save_libdir=$libdir
10234     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10235          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10236     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h.  */
10238
10239 int
10240 main ()
10241 {
10242
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 if ac_fn_c_try_link "$LINENO"; then :
10248   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10249   lt_cv_shlibpath_overrides_runpath=yes
10250 fi
10251 fi
10252 rm -f core conftest.err conftest.$ac_objext \
10253     conftest$ac_exeext conftest.$ac_ext
10254     LDFLAGS=$save_LDFLAGS
10255     libdir=$save_libdir
10256
10257 fi
10258
10259   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10260
10261   # This implies no fast_install, which is unacceptable.
10262   # Some rework will be needed to allow for fast_install
10263   # before this can be enabled.
10264   hardcode_into_libs=yes
10265
10266   # Append ld.so.conf contents to the search path
10267   if test -f /etc/ld.so.conf; then
10268     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' ' '`
10269     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10270   fi
10271
10272   # We used to test for /lib/ld.so.1 and disable shared libraries on
10273   # powerpc, because MkLinux only supported shared libraries with the
10274   # GNU dynamic linker.  Since this was broken with cross compilers,
10275   # most powerpc-linux boxes support dynamic linking these days and
10276   # people can always --disable-shared, the test was removed, and we
10277   # assume the GNU/Linux dynamic linker is in use.
10278   dynamic_linker='GNU/Linux ld.so'
10279   ;;
10280
10281 netbsd*)
10282   version_type=sunos
10283   need_lib_prefix=no
10284   need_version=no
10285   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10286     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10287     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10288     dynamic_linker='NetBSD (a.out) ld.so'
10289   else
10290     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10291     soname_spec='${libname}${release}${shared_ext}$major'
10292     dynamic_linker='NetBSD ld.elf_so'
10293   fi
10294   shlibpath_var=LD_LIBRARY_PATH
10295   shlibpath_overrides_runpath=yes
10296   hardcode_into_libs=yes
10297   ;;
10298
10299 newsos6)
10300   version_type=linux
10301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   shlibpath_overrides_runpath=yes
10304   ;;
10305
10306 *nto* | *qnx*)
10307   version_type=qnx
10308   need_lib_prefix=no
10309   need_version=no
10310   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311   soname_spec='${libname}${release}${shared_ext}$major'
10312   shlibpath_var=LD_LIBRARY_PATH
10313   shlibpath_overrides_runpath=no
10314   hardcode_into_libs=yes
10315   dynamic_linker='ldqnx.so'
10316   ;;
10317
10318 openbsd*)
10319   version_type=sunos
10320   sys_lib_dlsearch_path_spec="/usr/lib"
10321   need_lib_prefix=no
10322   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10323   case $host_os in
10324     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10325     *)                          need_version=no  ;;
10326   esac
10327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10328   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10329   shlibpath_var=LD_LIBRARY_PATH
10330   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10331     case $host_os in
10332       openbsd2.[89] | openbsd2.[89].*)
10333         shlibpath_overrides_runpath=no
10334         ;;
10335       *)
10336         shlibpath_overrides_runpath=yes
10337         ;;
10338       esac
10339   else
10340     shlibpath_overrides_runpath=yes
10341   fi
10342   ;;
10343
10344 os2*)
10345   libname_spec='$name'
10346   shrext_cmds=".dll"
10347   need_lib_prefix=no
10348   library_names_spec='$libname${shared_ext} $libname.a'
10349   dynamic_linker='OS/2 ld.exe'
10350   shlibpath_var=LIBPATH
10351   ;;
10352
10353 osf3* | osf4* | osf5*)
10354   version_type=osf
10355   need_lib_prefix=no
10356   need_version=no
10357   soname_spec='${libname}${release}${shared_ext}$major'
10358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359   shlibpath_var=LD_LIBRARY_PATH
10360   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10361   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10362   ;;
10363
10364 rdos*)
10365   dynamic_linker=no
10366   ;;
10367
10368 solaris*)
10369   version_type=linux
10370   need_lib_prefix=no
10371   need_version=no
10372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373   soname_spec='${libname}${release}${shared_ext}$major'
10374   shlibpath_var=LD_LIBRARY_PATH
10375   shlibpath_overrides_runpath=yes
10376   hardcode_into_libs=yes
10377   # ldd complains unless libraries are executable
10378   postinstall_cmds='chmod +x $lib'
10379   ;;
10380
10381 sunos4*)
10382   version_type=sunos
10383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10384   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10385   shlibpath_var=LD_LIBRARY_PATH
10386   shlibpath_overrides_runpath=yes
10387   if test "$with_gnu_ld" = yes; then
10388     need_lib_prefix=no
10389   fi
10390   need_version=yes
10391   ;;
10392
10393 sysv4 | sysv4.3*)
10394   version_type=linux
10395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396   soname_spec='${libname}${release}${shared_ext}$major'
10397   shlibpath_var=LD_LIBRARY_PATH
10398   case $host_vendor in
10399     sni)
10400       shlibpath_overrides_runpath=no
10401       need_lib_prefix=no
10402       runpath_var=LD_RUN_PATH
10403       ;;
10404     siemens)
10405       need_lib_prefix=no
10406       ;;
10407     motorola)
10408       need_lib_prefix=no
10409       need_version=no
10410       shlibpath_overrides_runpath=no
10411       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10412       ;;
10413   esac
10414   ;;
10415
10416 sysv4*MP*)
10417   if test -d /usr/nec ;then
10418     version_type=linux
10419     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10420     soname_spec='$libname${shared_ext}.$major'
10421     shlibpath_var=LD_LIBRARY_PATH
10422   fi
10423   ;;
10424
10425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10426   version_type=freebsd-elf
10427   need_lib_prefix=no
10428   need_version=no
10429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10430   soname_spec='${libname}${release}${shared_ext}$major'
10431   shlibpath_var=LD_LIBRARY_PATH
10432   shlibpath_overrides_runpath=yes
10433   hardcode_into_libs=yes
10434   if test "$with_gnu_ld" = yes; then
10435     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10436   else
10437     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10438     case $host_os in
10439       sco3.2v5*)
10440         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10441         ;;
10442     esac
10443   fi
10444   sys_lib_dlsearch_path_spec='/usr/lib'
10445   ;;
10446
10447 tpf*)
10448   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10449   version_type=linux
10450   need_lib_prefix=no
10451   need_version=no
10452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453   shlibpath_var=LD_LIBRARY_PATH
10454   shlibpath_overrides_runpath=no
10455   hardcode_into_libs=yes
10456   ;;
10457
10458 uts4*)
10459   version_type=linux
10460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461   soname_spec='${libname}${release}${shared_ext}$major'
10462   shlibpath_var=LD_LIBRARY_PATH
10463   ;;
10464
10465 *)
10466   dynamic_linker=no
10467   ;;
10468 esac
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10470 $as_echo "$dynamic_linker" >&6; }
10471 test "$dynamic_linker" = no && can_build_shared=no
10472
10473 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10474 if test "$GCC" = yes; then
10475   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10476 fi
10477
10478 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10479   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10480 fi
10481 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10482   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10483 fi
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10577 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10578 hardcode_action=
10579 if test -n "$hardcode_libdir_flag_spec" ||
10580    test -n "$runpath_var" ||
10581    test "X$hardcode_automatic" = "Xyes" ; then
10582
10583   # We can hardcode non-existent directories.
10584   if test "$hardcode_direct" != no &&
10585      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10586      # have to relink, otherwise we might link with an installed library
10587      # when we should be linking with a yet-to-be-installed one
10588      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10589      test "$hardcode_minus_L" != no; then
10590     # Linking always hardcodes the temporary library directory.
10591     hardcode_action=relink
10592   else
10593     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10594     hardcode_action=immediate
10595   fi
10596 else
10597   # We cannot hardcode anything, or else we can only hardcode existing
10598   # directories.
10599   hardcode_action=unsupported
10600 fi
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10602 $as_echo "$hardcode_action" >&6; }
10603
10604 if test "$hardcode_action" = relink ||
10605    test "$inherit_rpath" = yes; then
10606   # Fast installation is not supported
10607   enable_fast_install=no
10608 elif test "$shlibpath_overrides_runpath" = yes ||
10609      test "$enable_shared" = no; then
10610   # Fast installation is not necessary
10611   enable_fast_install=needless
10612 fi
10613
10614
10615
10616
10617
10618
10619   if test "x$enable_dlopen" != xyes; then
10620   enable_dlopen=unknown
10621   enable_dlopen_self=unknown
10622   enable_dlopen_self_static=unknown
10623 else
10624   lt_cv_dlopen=no
10625   lt_cv_dlopen_libs=
10626
10627   case $host_os in
10628   beos*)
10629     lt_cv_dlopen="load_add_on"
10630     lt_cv_dlopen_libs=
10631     lt_cv_dlopen_self=yes
10632     ;;
10633
10634   mingw* | pw32* | cegcc*)
10635     lt_cv_dlopen="LoadLibrary"
10636     lt_cv_dlopen_libs=
10637     ;;
10638
10639   cygwin*)
10640     lt_cv_dlopen="dlopen"
10641     lt_cv_dlopen_libs=
10642     ;;
10643
10644   darwin*)
10645   # if libdl is installed we need to link against it
10646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10647 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10648 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10649   $as_echo_n "(cached) " >&6
10650 else
10651   ac_check_lib_save_LIBS=$LIBS
10652 LIBS="-ldl  $LIBS"
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h.  */
10655
10656 /* Override any GCC internal prototype to avoid an error.
10657    Use char because int might match the return type of a GCC
10658    builtin and then its argument prototype would still apply.  */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 char dlopen ();
10663 int
10664 main ()
10665 {
10666 return dlopen ();
10667   ;
10668   return 0;
10669 }
10670 _ACEOF
10671 if ac_fn_c_try_link "$LINENO"; then :
10672   ac_cv_lib_dl_dlopen=yes
10673 else
10674   ac_cv_lib_dl_dlopen=no
10675 fi
10676 rm -f core conftest.err conftest.$ac_objext \
10677     conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10679 fi
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10681 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10682 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10683   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10684 else
10685
10686     lt_cv_dlopen="dyld"
10687     lt_cv_dlopen_libs=
10688     lt_cv_dlopen_self=yes
10689
10690 fi
10691
10692     ;;
10693
10694   *)
10695     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10696 if test "x$ac_cv_func_shl_load" = x""yes; then :
10697   lt_cv_dlopen="shl_load"
10698 else
10699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10700 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10701 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10702   $as_echo_n "(cached) " >&6
10703 else
10704   ac_check_lib_save_LIBS=$LIBS
10705 LIBS="-ldld  $LIBS"
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h.  */
10708
10709 /* Override any GCC internal prototype to avoid an error.
10710    Use char because int might match the return type of a GCC
10711    builtin and then its argument prototype would still apply.  */
10712 #ifdef __cplusplus
10713 extern "C"
10714 #endif
10715 char shl_load ();
10716 int
10717 main ()
10718 {
10719 return shl_load ();
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_link "$LINENO"; then :
10725   ac_cv_lib_dld_shl_load=yes
10726 else
10727   ac_cv_lib_dld_shl_load=no
10728 fi
10729 rm -f core conftest.err conftest.$ac_objext \
10730     conftest$ac_exeext conftest.$ac_ext
10731 LIBS=$ac_check_lib_save_LIBS
10732 fi
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10734 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10735 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10736   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10737 else
10738   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10739 if test "x$ac_cv_func_dlopen" = x""yes; then :
10740   lt_cv_dlopen="dlopen"
10741 else
10742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10743 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10744 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10745   $as_echo_n "(cached) " >&6
10746 else
10747   ac_check_lib_save_LIBS=$LIBS
10748 LIBS="-ldl  $LIBS"
10749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10750 /* end confdefs.h.  */
10751
10752 /* Override any GCC internal prototype to avoid an error.
10753    Use char because int might match the return type of a GCC
10754    builtin and then its argument prototype would still apply.  */
10755 #ifdef __cplusplus
10756 extern "C"
10757 #endif
10758 char dlopen ();
10759 int
10760 main ()
10761 {
10762 return dlopen ();
10763   ;
10764   return 0;
10765 }
10766 _ACEOF
10767 if ac_fn_c_try_link "$LINENO"; then :
10768   ac_cv_lib_dl_dlopen=yes
10769 else
10770   ac_cv_lib_dl_dlopen=no
10771 fi
10772 rm -f core conftest.err conftest.$ac_objext \
10773     conftest$ac_exeext conftest.$ac_ext
10774 LIBS=$ac_check_lib_save_LIBS
10775 fi
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10777 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10778 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10779   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10780 else
10781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10782 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10783 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   ac_check_lib_save_LIBS=$LIBS
10787 LIBS="-lsvld  $LIBS"
10788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10789 /* end confdefs.h.  */
10790
10791 /* Override any GCC internal prototype to avoid an error.
10792    Use char because int might match the return type of a GCC
10793    builtin and then its argument prototype would still apply.  */
10794 #ifdef __cplusplus
10795 extern "C"
10796 #endif
10797 char dlopen ();
10798 int
10799 main ()
10800 {
10801 return dlopen ();
10802   ;
10803   return 0;
10804 }
10805 _ACEOF
10806 if ac_fn_c_try_link "$LINENO"; then :
10807   ac_cv_lib_svld_dlopen=yes
10808 else
10809   ac_cv_lib_svld_dlopen=no
10810 fi
10811 rm -f core conftest.err conftest.$ac_objext \
10812     conftest$ac_exeext conftest.$ac_ext
10813 LIBS=$ac_check_lib_save_LIBS
10814 fi
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10816 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10817 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10818   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10819 else
10820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10821 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10822 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10823   $as_echo_n "(cached) " >&6
10824 else
10825   ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-ldld  $LIBS"
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829
10830 /* Override any GCC internal prototype to avoid an error.
10831    Use char because int might match the return type of a GCC
10832    builtin and then its argument prototype would still apply.  */
10833 #ifdef __cplusplus
10834 extern "C"
10835 #endif
10836 char dld_link ();
10837 int
10838 main ()
10839 {
10840 return dld_link ();
10841   ;
10842   return 0;
10843 }
10844 _ACEOF
10845 if ac_fn_c_try_link "$LINENO"; then :
10846   ac_cv_lib_dld_dld_link=yes
10847 else
10848   ac_cv_lib_dld_dld_link=no
10849 fi
10850 rm -f core conftest.err conftest.$ac_objext \
10851     conftest$ac_exeext conftest.$ac_ext
10852 LIBS=$ac_check_lib_save_LIBS
10853 fi
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10855 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10856 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10857   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10858 fi
10859
10860
10861 fi
10862
10863
10864 fi
10865
10866
10867 fi
10868
10869
10870 fi
10871
10872
10873 fi
10874
10875     ;;
10876   esac
10877
10878   if test "x$lt_cv_dlopen" != xno; then
10879     enable_dlopen=yes
10880   else
10881     enable_dlopen=no
10882   fi
10883
10884   case $lt_cv_dlopen in
10885   dlopen)
10886     save_CPPFLAGS="$CPPFLAGS"
10887     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10888
10889     save_LDFLAGS="$LDFLAGS"
10890     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10891
10892     save_LIBS="$LIBS"
10893     LIBS="$lt_cv_dlopen_libs $LIBS"
10894
10895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10896 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10897 if test "${lt_cv_dlopen_self+set}" = set; then :
10898   $as_echo_n "(cached) " >&6
10899 else
10900           if test "$cross_compiling" = yes; then :
10901   lt_cv_dlopen_self=cross
10902 else
10903   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10904   lt_status=$lt_dlunknown
10905   cat > conftest.$ac_ext <<_LT_EOF
10906 #line 10906 "configure"
10907 #include "confdefs.h"
10908
10909 #if HAVE_DLFCN_H
10910 #include <dlfcn.h>
10911 #endif
10912
10913 #include <stdio.h>
10914
10915 #ifdef RTLD_GLOBAL
10916 #  define LT_DLGLOBAL           RTLD_GLOBAL
10917 #else
10918 #  ifdef DL_GLOBAL
10919 #    define LT_DLGLOBAL         DL_GLOBAL
10920 #  else
10921 #    define LT_DLGLOBAL         0
10922 #  endif
10923 #endif
10924
10925 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10926    find out it does not work in some platform. */
10927 #ifndef LT_DLLAZY_OR_NOW
10928 #  ifdef RTLD_LAZY
10929 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10930 #  else
10931 #    ifdef DL_LAZY
10932 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10933 #    else
10934 #      ifdef RTLD_NOW
10935 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10936 #      else
10937 #        ifdef DL_NOW
10938 #          define LT_DLLAZY_OR_NOW      DL_NOW
10939 #        else
10940 #          define LT_DLLAZY_OR_NOW      0
10941 #        endif
10942 #      endif
10943 #    endif
10944 #  endif
10945 #endif
10946
10947 /* When -fvisbility=hidden is used, assume the code has been annotated
10948    correspondingly for the symbols needed.  */
10949 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10950 void fnord () __attribute__((visibility("default")));
10951 #endif
10952
10953 void fnord () { int i=42; }
10954 int main ()
10955 {
10956   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10957   int status = $lt_dlunknown;
10958
10959   if (self)
10960     {
10961       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10962       else
10963         {
10964           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10965           else puts (dlerror ());
10966         }
10967       /* dlclose (self); */
10968     }
10969   else
10970     puts (dlerror ());
10971
10972   return status;
10973 }
10974 _LT_EOF
10975   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10976   (eval $ac_link) 2>&5
10977   ac_status=$?
10978   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10979   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10980     (./conftest; exit; ) >&5 2>/dev/null
10981     lt_status=$?
10982     case x$lt_status in
10983       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10984       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10985       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10986     esac
10987   else :
10988     # compilation failed
10989     lt_cv_dlopen_self=no
10990   fi
10991 fi
10992 rm -fr conftest*
10993
10994
10995 fi
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10997 $as_echo "$lt_cv_dlopen_self" >&6; }
10998
10999     if test "x$lt_cv_dlopen_self" = xyes; then
11000       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11001       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11002 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11003 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11004   $as_echo_n "(cached) " >&6
11005 else
11006           if test "$cross_compiling" = yes; then :
11007   lt_cv_dlopen_self_static=cross
11008 else
11009   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11010   lt_status=$lt_dlunknown
11011   cat > conftest.$ac_ext <<_LT_EOF
11012 #line 11012 "configure"
11013 #include "confdefs.h"
11014
11015 #if HAVE_DLFCN_H
11016 #include <dlfcn.h>
11017 #endif
11018
11019 #include <stdio.h>
11020
11021 #ifdef RTLD_GLOBAL
11022 #  define LT_DLGLOBAL           RTLD_GLOBAL
11023 #else
11024 #  ifdef DL_GLOBAL
11025 #    define LT_DLGLOBAL         DL_GLOBAL
11026 #  else
11027 #    define LT_DLGLOBAL         0
11028 #  endif
11029 #endif
11030
11031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11032    find out it does not work in some platform. */
11033 #ifndef LT_DLLAZY_OR_NOW
11034 #  ifdef RTLD_LAZY
11035 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11036 #  else
11037 #    ifdef DL_LAZY
11038 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11039 #    else
11040 #      ifdef RTLD_NOW
11041 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11042 #      else
11043 #        ifdef DL_NOW
11044 #          define LT_DLLAZY_OR_NOW      DL_NOW
11045 #        else
11046 #          define LT_DLLAZY_OR_NOW      0
11047 #        endif
11048 #      endif
11049 #    endif
11050 #  endif
11051 #endif
11052
11053 /* When -fvisbility=hidden is used, assume the code has been annotated
11054    correspondingly for the symbols needed.  */
11055 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11056 void fnord () __attribute__((visibility("default")));
11057 #endif
11058
11059 void fnord () { int i=42; }
11060 int main ()
11061 {
11062   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11063   int status = $lt_dlunknown;
11064
11065   if (self)
11066     {
11067       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11068       else
11069         {
11070           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11071           else puts (dlerror ());
11072         }
11073       /* dlclose (self); */
11074     }
11075   else
11076     puts (dlerror ());
11077
11078   return status;
11079 }
11080 _LT_EOF
11081   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11082   (eval $ac_link) 2>&5
11083   ac_status=$?
11084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11085   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11086     (./conftest; exit; ) >&5 2>/dev/null
11087     lt_status=$?
11088     case x$lt_status in
11089       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11090       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11091       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11092     esac
11093   else :
11094     # compilation failed
11095     lt_cv_dlopen_self_static=no
11096   fi
11097 fi
11098 rm -fr conftest*
11099
11100
11101 fi
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11103 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11104     fi
11105
11106     CPPFLAGS="$save_CPPFLAGS"
11107     LDFLAGS="$save_LDFLAGS"
11108     LIBS="$save_LIBS"
11109     ;;
11110   esac
11111
11112   case $lt_cv_dlopen_self in
11113   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11114   *) enable_dlopen_self=unknown ;;
11115   esac
11116
11117   case $lt_cv_dlopen_self_static in
11118   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11119   *) enable_dlopen_self_static=unknown ;;
11120   esac
11121 fi
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139 striplib=
11140 old_striplib=
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11142 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11143 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11144   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11145   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11147 $as_echo "yes" >&6; }
11148 else
11149 # FIXME - insert some real tests, host_os isn't really good enough
11150   case $host_os in
11151   darwin*)
11152     if test -n "$STRIP" ; then
11153       striplib="$STRIP -x"
11154       old_striplib="$STRIP -S"
11155       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11156 $as_echo "yes" >&6; }
11157     else
11158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159 $as_echo "no" >&6; }
11160     fi
11161     ;;
11162   *)
11163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11164 $as_echo "no" >&6; }
11165     ;;
11166   esac
11167 fi
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180   # Report which library types will actually be built
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11182 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11184 $as_echo "$can_build_shared" >&6; }
11185
11186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11187 $as_echo_n "checking whether to build shared libraries... " >&6; }
11188   test "$can_build_shared" = "no" && enable_shared=no
11189
11190   # On AIX, shared libraries and static libraries use the same namespace, and
11191   # are all built from PIC.
11192   case $host_os in
11193   aix3*)
11194     test "$enable_shared" = yes && enable_static=no
11195     if test -n "$RANLIB"; then
11196       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11197       postinstall_cmds='$RANLIB $lib'
11198     fi
11199     ;;
11200
11201   aix[4-9]*)
11202     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11203       test "$enable_shared" = yes && enable_static=no
11204     fi
11205     ;;
11206   esac
11207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11208 $as_echo "$enable_shared" >&6; }
11209
11210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11211 $as_echo_n "checking whether to build static libraries... " >&6; }
11212   # Make sure either enable_shared or enable_static is yes.
11213   test "$enable_shared" = yes || enable_static=yes
11214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11215 $as_echo "$enable_static" >&6; }
11216
11217
11218
11219
11220 fi
11221 ac_ext=c
11222 ac_cpp='$CPP $CPPFLAGS'
11223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11226
11227 CC="$lt_save_CC"
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241 # Source file extension for Go test sources.
11242 ac_ext=go
11243
11244 # Object file extension for compiled Go test sources.
11245 objext=o
11246 objext_GO=$objext
11247
11248 # Code to be used in simple compile tests
11249 lt_simple_compile_test_code="package main; func main() { }"
11250
11251 # Code to be used in simple link tests
11252 lt_simple_link_test_code='package main; func main() { }'
11253
11254 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11255
11256
11257
11258
11259
11260
11261 # If no C compiler was specified, use CC.
11262 LTCC=${LTCC-"$CC"}
11263
11264 # If no C compiler flags were specified, use CFLAGS.
11265 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11266
11267 # Allow CC to be a program name with arguments.
11268 compiler=$CC
11269
11270
11271 # save warnings/boilerplate of simple test code
11272 ac_outfile=conftest.$ac_objext
11273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11275 _lt_compiler_boilerplate=`cat conftest.err`
11276 $RM conftest*
11277
11278 ac_outfile=conftest.$ac_objext
11279 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11281 _lt_linker_boilerplate=`cat conftest.err`
11282 $RM -r conftest*
11283
11284
11285 # Allow CC to be a program name with arguments.
11286 lt_save_CC="$CC"
11287 lt_save_GCC="$GCC"
11288 GCC=yes
11289 CC=${GOC-"gccgo"}
11290 compiler=$CC
11291 compiler_GO=$CC
11292 LD_GO="$LD"
11293 for cc_temp in $compiler""; do
11294   case $cc_temp in
11295     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11296     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11297     \-*) ;;
11298     *) break;;
11299   esac
11300 done
11301 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11302
11303
11304 # Go did not exist at the time GCC didn't implicitly link libc in.
11305 archive_cmds_need_lc_GO=no
11306
11307 old_archive_cmds_GO=$old_archive_cmds
11308
11309 ## CAVEAT EMPTOR:
11310 ## There is no encapsulation within the following macros, do not change
11311 ## the running order or otherwise move them around unless you know exactly
11312 ## what you are doing...
11313 if test -n "$compiler"; then
11314
11315 lt_prog_compiler_no_builtin_flag_GO=
11316
11317 if test "$GCC" = yes; then
11318   case $cc_basename in
11319   nvcc*)
11320     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11321   *)
11322     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11323   esac
11324
11325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11326 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11327 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11328   $as_echo_n "(cached) " >&6
11329 else
11330   lt_cv_prog_compiler_rtti_exceptions=no
11331    ac_outfile=conftest.$ac_objext
11332    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11333    lt_compiler_flag="-fno-rtti -fno-exceptions"
11334    # Insert the option either (1) after the last *FLAGS variable, or
11335    # (2) before a word containing "conftest.", or (3) at the end.
11336    # Note that $ac_compile itself does not contain backslashes and begins
11337    # with a dollar sign (not a hyphen), so the echo should work correctly.
11338    # The option is referenced via a variable to avoid confusing sed.
11339    lt_compile=`echo "$ac_compile" | $SED \
11340    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11341    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11342    -e 's:$: $lt_compiler_flag:'`
11343    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11344    (eval "$lt_compile" 2>conftest.err)
11345    ac_status=$?
11346    cat conftest.err >&5
11347    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348    if (exit $ac_status) && test -s "$ac_outfile"; then
11349      # The compiler can only warn and ignore the option if not recognized
11350      # So say no if there are warnings other than the usual output.
11351      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11352      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11353      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11354        lt_cv_prog_compiler_rtti_exceptions=yes
11355      fi
11356    fi
11357    $RM conftest*
11358
11359 fi
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11361 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11362
11363 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11364     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11365 else
11366     :
11367 fi
11368
11369 fi
11370
11371
11372
11373   lt_prog_compiler_wl_GO=
11374 lt_prog_compiler_pic_GO=
11375 lt_prog_compiler_static_GO=
11376
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11378 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11379
11380   if test "$GCC" = yes; then
11381     lt_prog_compiler_wl_GO='-Wl,'
11382     lt_prog_compiler_static_GO='-static'
11383
11384     case $host_os in
11385       aix*)
11386       # All AIX code is PIC.
11387       if test "$host_cpu" = ia64; then
11388         # AIX 5 now supports IA64 processor
11389         lt_prog_compiler_static_GO='-Bstatic'
11390       fi
11391       ;;
11392
11393     amigaos*)
11394       case $host_cpu in
11395       powerpc)
11396             # see comment about AmigaOS4 .so support
11397             lt_prog_compiler_pic_GO='-fPIC'
11398         ;;
11399       m68k)
11400             # FIXME: we need at least 68020 code to build shared libraries, but
11401             # adding the `-m68020' flag to GCC prevents building anything better,
11402             # like `-m68040'.
11403             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11404         ;;
11405       esac
11406       ;;
11407
11408     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11409       # PIC is the default for these OSes.
11410       ;;
11411
11412     mingw* | cygwin* | pw32* | os2* | cegcc*)
11413       # This hack is so that the source file can tell whether it is being
11414       # built for inclusion in a dll (and should export symbols for example).
11415       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11416       # (--disable-auto-import) libraries
11417       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11418       ;;
11419
11420     darwin* | rhapsody*)
11421       # PIC is the default on this platform
11422       # Common symbols not allowed in MH_DYLIB files
11423       lt_prog_compiler_pic_GO='-fno-common'
11424       ;;
11425
11426     haiku*)
11427       # PIC is the default for Haiku.
11428       # The "-static" flag exists, but is broken.
11429       lt_prog_compiler_static_GO=
11430       ;;
11431
11432     hpux*)
11433       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11434       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11435       # sets the default TLS model and affects inlining.
11436       case $host_cpu in
11437       hppa*64*)
11438         # +Z the default
11439         ;;
11440       *)
11441         lt_prog_compiler_pic_GO='-fPIC'
11442         ;;
11443       esac
11444       ;;
11445
11446     interix[3-9]*)
11447       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11448       # Instead, we relocate shared libraries at runtime.
11449       ;;
11450
11451     msdosdjgpp*)
11452       # Just because we use GCC doesn't mean we suddenly get shared libraries
11453       # on systems that don't support them.
11454       lt_prog_compiler_can_build_shared_GO=no
11455       enable_shared=no
11456       ;;
11457
11458     *nto* | *qnx*)
11459       # QNX uses GNU C++, but need to define -shared option too, otherwise
11460       # it will coredump.
11461       lt_prog_compiler_pic_GO='-fPIC -shared'
11462       ;;
11463
11464     sysv4*MP*)
11465       if test -d /usr/nec; then
11466         lt_prog_compiler_pic_GO=-Kconform_pic
11467       fi
11468       ;;
11469
11470     *)
11471       lt_prog_compiler_pic_GO='-fPIC'
11472       ;;
11473     esac
11474
11475     case $cc_basename in
11476     nvcc*) # Cuda Compiler Driver 2.2
11477       lt_prog_compiler_wl_GO='-Xlinker '
11478       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11479       ;;
11480     esac
11481   else
11482     # PORTME Check for flag to pass linker flags through the system compiler.
11483     case $host_os in
11484     aix*)
11485       lt_prog_compiler_wl_GO='-Wl,'
11486       if test "$host_cpu" = ia64; then
11487         # AIX 5 now supports IA64 processor
11488         lt_prog_compiler_static_GO='-Bstatic'
11489       else
11490         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11491       fi
11492       ;;
11493
11494     mingw* | cygwin* | pw32* | os2* | cegcc*)
11495       # This hack is so that the source file can tell whether it is being
11496       # built for inclusion in a dll (and should export symbols for example).
11497       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11498       ;;
11499
11500     hpux9* | hpux10* | hpux11*)
11501       lt_prog_compiler_wl_GO='-Wl,'
11502       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11503       # not for PA HP-UX.
11504       case $host_cpu in
11505       hppa*64*|ia64*)
11506         # +Z the default
11507         ;;
11508       *)
11509         lt_prog_compiler_pic_GO='+Z'
11510         ;;
11511       esac
11512       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11513       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11514       ;;
11515
11516     irix5* | irix6* | nonstopux*)
11517       lt_prog_compiler_wl_GO='-Wl,'
11518       # PIC (with -KPIC) is the default.
11519       lt_prog_compiler_static_GO='-non_shared'
11520       ;;
11521
11522     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11523       case $cc_basename in
11524       # old Intel for x86_64 which still supported -KPIC.
11525       ecc*)
11526         lt_prog_compiler_wl_GO='-Wl,'
11527         lt_prog_compiler_pic_GO='-KPIC'
11528         lt_prog_compiler_static_GO='-static'
11529         ;;
11530       # icc used to be incompatible with GCC.
11531       # ICC 10 doesn't accept -KPIC any more.
11532       icc* | ifort*)
11533         lt_prog_compiler_wl_GO='-Wl,'
11534         lt_prog_compiler_pic_GO='-fPIC'
11535         lt_prog_compiler_static_GO='-static'
11536         ;;
11537       # Lahey Fortran 8.1.
11538       lf95*)
11539         lt_prog_compiler_wl_GO='-Wl,'
11540         lt_prog_compiler_pic_GO='--shared'
11541         lt_prog_compiler_static_GO='--static'
11542         ;;
11543       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11544         # Portland Group compilers (*not* the Pentium gcc compiler,
11545         # which looks to be a dead project)
11546         lt_prog_compiler_wl_GO='-Wl,'
11547         lt_prog_compiler_pic_GO='-fpic'
11548         lt_prog_compiler_static_GO='-Bstatic'
11549         ;;
11550       ccc*)
11551         lt_prog_compiler_wl_GO='-Wl,'
11552         # All Alpha code is PIC.
11553         lt_prog_compiler_static_GO='-non_shared'
11554         ;;
11555       xl* | bgxl* | bgf* | mpixl*)
11556         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11557         lt_prog_compiler_wl_GO='-Wl,'
11558         lt_prog_compiler_pic_GO='-qpic'
11559         lt_prog_compiler_static_GO='-qstaticlink'
11560         ;;
11561       *)
11562         case `$CC -V 2>&1 | sed 5q` in
11563         *Sun\ F* | *Sun*Fortran*)
11564           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11565           lt_prog_compiler_pic_GO='-KPIC'
11566           lt_prog_compiler_static_GO='-Bstatic'
11567           lt_prog_compiler_wl_GO=''
11568           ;;
11569         *Sun\ C*)
11570           # Sun C 5.9
11571           lt_prog_compiler_pic_GO='-KPIC'
11572           lt_prog_compiler_static_GO='-Bstatic'
11573           lt_prog_compiler_wl_GO='-Wl,'
11574           ;;
11575         esac
11576         ;;
11577       esac
11578       ;;
11579
11580     newsos6)
11581       lt_prog_compiler_pic_GO='-KPIC'
11582       lt_prog_compiler_static_GO='-Bstatic'
11583       ;;
11584
11585     *nto* | *qnx*)
11586       # QNX uses GNU C++, but need to define -shared option too, otherwise
11587       # it will coredump.
11588       lt_prog_compiler_pic_GO='-fPIC -shared'
11589       ;;
11590
11591     osf3* | osf4* | osf5*)
11592       lt_prog_compiler_wl_GO='-Wl,'
11593       # All OSF/1 code is PIC.
11594       lt_prog_compiler_static_GO='-non_shared'
11595       ;;
11596
11597     rdos*)
11598       lt_prog_compiler_static_GO='-non_shared'
11599       ;;
11600
11601     solaris*)
11602       lt_prog_compiler_pic_GO='-KPIC'
11603       lt_prog_compiler_static_GO='-Bstatic'
11604       case $cc_basename in
11605       f77* | f90* | f95*)
11606         lt_prog_compiler_wl_GO='-Qoption ld ';;
11607       *)
11608         lt_prog_compiler_wl_GO='-Wl,';;
11609       esac
11610       ;;
11611
11612     sunos4*)
11613       lt_prog_compiler_wl_GO='-Qoption ld '
11614       lt_prog_compiler_pic_GO='-PIC'
11615       lt_prog_compiler_static_GO='-Bstatic'
11616       ;;
11617
11618     sysv4 | sysv4.2uw2* | sysv4.3*)
11619       lt_prog_compiler_wl_GO='-Wl,'
11620       lt_prog_compiler_pic_GO='-KPIC'
11621       lt_prog_compiler_static_GO='-Bstatic'
11622       ;;
11623
11624     sysv4*MP*)
11625       if test -d /usr/nec ;then
11626         lt_prog_compiler_pic_GO='-Kconform_pic'
11627         lt_prog_compiler_static_GO='-Bstatic'
11628       fi
11629       ;;
11630
11631     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11632       lt_prog_compiler_wl_GO='-Wl,'
11633       lt_prog_compiler_pic_GO='-KPIC'
11634       lt_prog_compiler_static_GO='-Bstatic'
11635       ;;
11636
11637     unicos*)
11638       lt_prog_compiler_wl_GO='-Wl,'
11639       lt_prog_compiler_can_build_shared_GO=no
11640       ;;
11641
11642     uts4*)
11643       lt_prog_compiler_pic_GO='-pic'
11644       lt_prog_compiler_static_GO='-Bstatic'
11645       ;;
11646
11647     *)
11648       lt_prog_compiler_can_build_shared_GO=no
11649       ;;
11650     esac
11651   fi
11652
11653 case $host_os in
11654   # For platforms which do not support PIC, -DPIC is meaningless:
11655   *djgpp*)
11656     lt_prog_compiler_pic_GO=
11657     ;;
11658   *)
11659     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11660     ;;
11661 esac
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11663 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11664
11665
11666
11667 #
11668 # Check to make sure the PIC flag actually works.
11669 #
11670 if test -n "$lt_prog_compiler_pic_GO"; then
11671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11672 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11673 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11674   $as_echo_n "(cached) " >&6
11675 else
11676   lt_cv_prog_compiler_pic_works_GO=no
11677    ac_outfile=conftest.$ac_objext
11678    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11679    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11680    # Insert the option either (1) after the last *FLAGS variable, or
11681    # (2) before a word containing "conftest.", or (3) at the end.
11682    # Note that $ac_compile itself does not contain backslashes and begins
11683    # with a dollar sign (not a hyphen), so the echo should work correctly.
11684    # The option is referenced via a variable to avoid confusing sed.
11685    lt_compile=`echo "$ac_compile" | $SED \
11686    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11688    -e 's:$: $lt_compiler_flag:'`
11689    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11690    (eval "$lt_compile" 2>conftest.err)
11691    ac_status=$?
11692    cat conftest.err >&5
11693    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694    if (exit $ac_status) && test -s "$ac_outfile"; then
11695      # The compiler can only warn and ignore the option if not recognized
11696      # So say no if there are warnings other than the usual output.
11697      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11698      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11699      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11700        lt_cv_prog_compiler_pic_works_GO=yes
11701      fi
11702    fi
11703    $RM conftest*
11704
11705 fi
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11707 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11708
11709 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11710     case $lt_prog_compiler_pic_GO in
11711      "" | " "*) ;;
11712      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11713      esac
11714 else
11715     lt_prog_compiler_pic_GO=
11716      lt_prog_compiler_can_build_shared_GO=no
11717 fi
11718
11719 fi
11720
11721
11722
11723 #
11724 # Check to make sure the static flag actually works.
11725 #
11726 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11728 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11729 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11730   $as_echo_n "(cached) " >&6
11731 else
11732   lt_cv_prog_compiler_static_works_GO=no
11733    save_LDFLAGS="$LDFLAGS"
11734    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11735    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11736    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11737      # The linker can only warn and ignore the option if not recognized
11738      # So say no if there are warnings
11739      if test -s conftest.err; then
11740        # Append any errors to the config.log.
11741        cat conftest.err 1>&5
11742        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11743        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11744        if diff conftest.exp conftest.er2 >/dev/null; then
11745          lt_cv_prog_compiler_static_works_GO=yes
11746        fi
11747      else
11748        lt_cv_prog_compiler_static_works_GO=yes
11749      fi
11750    fi
11751    $RM -r conftest*
11752    LDFLAGS="$save_LDFLAGS"
11753
11754 fi
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11756 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11757
11758 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11759     :
11760 else
11761     lt_prog_compiler_static_GO=
11762 fi
11763
11764
11765
11766
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11768 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11769 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11770   $as_echo_n "(cached) " >&6
11771 else
11772   lt_cv_prog_compiler_c_o_GO=no
11773    $RM -r conftest 2>/dev/null
11774    mkdir conftest
11775    cd conftest
11776    mkdir out
11777    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11778
11779    lt_compiler_flag="-o out/conftest2.$ac_objext"
11780    # Insert the option either (1) after the last *FLAGS variable, or
11781    # (2) before a word containing "conftest.", or (3) at the end.
11782    # Note that $ac_compile itself does not contain backslashes and begins
11783    # with a dollar sign (not a hyphen), so the echo should work correctly.
11784    lt_compile=`echo "$ac_compile" | $SED \
11785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11787    -e 's:$: $lt_compiler_flag:'`
11788    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11789    (eval "$lt_compile" 2>out/conftest.err)
11790    ac_status=$?
11791    cat out/conftest.err >&5
11792    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11794    then
11795      # The compiler can only warn and ignore the option if not recognized
11796      # So say no if there are warnings
11797      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11798      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11799      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11800        lt_cv_prog_compiler_c_o_GO=yes
11801      fi
11802    fi
11803    chmod u+w . 2>&5
11804    $RM conftest*
11805    # SGI C++ compiler will create directory out/ii_files/ for
11806    # template instantiation
11807    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11808    $RM out/* && rmdir out
11809    cd ..
11810    $RM -r conftest
11811    $RM conftest*
11812
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11815 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11816
11817
11818
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11820 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11821 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11822   $as_echo_n "(cached) " >&6
11823 else
11824   lt_cv_prog_compiler_c_o_GO=no
11825    $RM -r conftest 2>/dev/null
11826    mkdir conftest
11827    cd conftest
11828    mkdir out
11829    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11830
11831    lt_compiler_flag="-o out/conftest2.$ac_objext"
11832    # Insert the option either (1) after the last *FLAGS variable, or
11833    # (2) before a word containing "conftest.", or (3) at the end.
11834    # Note that $ac_compile itself does not contain backslashes and begins
11835    # with a dollar sign (not a hyphen), so the echo should work correctly.
11836    lt_compile=`echo "$ac_compile" | $SED \
11837    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11838    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11839    -e 's:$: $lt_compiler_flag:'`
11840    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11841    (eval "$lt_compile" 2>out/conftest.err)
11842    ac_status=$?
11843    cat out/conftest.err >&5
11844    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11846    then
11847      # The compiler can only warn and ignore the option if not recognized
11848      # So say no if there are warnings
11849      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11850      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11851      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11852        lt_cv_prog_compiler_c_o_GO=yes
11853      fi
11854    fi
11855    chmod u+w . 2>&5
11856    $RM conftest*
11857    # SGI C++ compiler will create directory out/ii_files/ for
11858    # template instantiation
11859    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11860    $RM out/* && rmdir out
11861    cd ..
11862    $RM -r conftest
11863    $RM conftest*
11864
11865 fi
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11867 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11868
11869
11870
11871
11872 hard_links="nottested"
11873 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11874   # do not overwrite the value of need_locks provided by the user
11875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11876 $as_echo_n "checking if we can lock with hard links... " >&6; }
11877   hard_links=yes
11878   $RM conftest*
11879   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11880   touch conftest.a
11881   ln conftest.a conftest.b 2>&5 || hard_links=no
11882   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11884 $as_echo "$hard_links" >&6; }
11885   if test "$hard_links" = no; then
11886     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11887 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11888     need_locks=warn
11889   fi
11890 else
11891   need_locks=no
11892 fi
11893
11894
11895
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11897 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11898
11899   runpath_var=
11900   allow_undefined_flag_GO=
11901   always_export_symbols_GO=no
11902   archive_cmds_GO=
11903   archive_expsym_cmds_GO=
11904   compiler_needs_object_GO=no
11905   enable_shared_with_static_runtimes_GO=no
11906   export_dynamic_flag_spec_GO=
11907   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11908   hardcode_automatic_GO=no
11909   hardcode_direct_GO=no
11910   hardcode_direct_absolute_GO=no
11911   hardcode_libdir_flag_spec_GO=
11912   hardcode_libdir_flag_spec_ld_GO=
11913   hardcode_libdir_separator_GO=
11914   hardcode_minus_L_GO=no
11915   hardcode_shlibpath_var_GO=unsupported
11916   inherit_rpath_GO=no
11917   link_all_deplibs_GO=unknown
11918   module_cmds_GO=
11919   module_expsym_cmds_GO=
11920   old_archive_from_new_cmds_GO=
11921   old_archive_from_expsyms_cmds_GO=
11922   thread_safe_flag_spec_GO=
11923   whole_archive_flag_spec_GO=
11924   # include_expsyms should be a list of space-separated symbols to be *always*
11925   # included in the symbol list
11926   include_expsyms_GO=
11927   # exclude_expsyms can be an extended regexp of symbols to exclude
11928   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11929   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11930   # as well as any symbol that contains `d'.
11931   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11932   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11933   # platforms (ab)use it in PIC code, but their linkers get confused if
11934   # the symbol is explicitly referenced.  Since portable code cannot
11935   # rely on this symbol name, it's probably fine to never include it in
11936   # preloaded symbol tables.
11937   # Exclude shared library initialization/finalization symbols.
11938   extract_expsyms_cmds=
11939
11940   case $host_os in
11941   cygwin* | mingw* | pw32* | cegcc*)
11942     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11943     # When not using gcc, we currently assume that we are using
11944     # Microsoft Visual C++.
11945     if test "$GCC" != yes; then
11946       with_gnu_ld=no
11947     fi
11948     ;;
11949   interix*)
11950     # we just hope/assume this is gcc and not c89 (= MSVC++)
11951     with_gnu_ld=yes
11952     ;;
11953   openbsd*)
11954     with_gnu_ld=no
11955     ;;
11956   esac
11957
11958   ld_shlibs_GO=yes
11959
11960   # On some targets, GNU ld is compatible enough with the native linker
11961   # that we're better off using the native interface for both.
11962   lt_use_gnu_ld_interface=no
11963   if test "$with_gnu_ld" = yes; then
11964     case $host_os in
11965       aix*)
11966         # The AIX port of GNU ld has always aspired to compatibility
11967         # with the native linker.  However, as the warning in the GNU ld
11968         # block says, versions before 2.19.5* couldn't really create working
11969         # shared libraries, regardless of the interface used.
11970         case `$LD -v 2>&1` in
11971           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11972           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11973           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11974           *)
11975             lt_use_gnu_ld_interface=yes
11976             ;;
11977         esac
11978         ;;
11979       *)
11980         lt_use_gnu_ld_interface=yes
11981         ;;
11982     esac
11983   fi
11984
11985   if test "$lt_use_gnu_ld_interface" = yes; then
11986     # If archive_cmds runs LD, not CC, wlarc should be empty
11987     wlarc='${wl}'
11988
11989     # Set some defaults for GNU ld with shared library support. These
11990     # are reset later if shared libraries are not supported. Putting them
11991     # here allows them to be overridden if necessary.
11992     runpath_var=LD_RUN_PATH
11993     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11994     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11995     # ancient GNU ld didn't support --whole-archive et. al.
11996     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11997       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11998     else
11999       whole_archive_flag_spec_GO=
12000     fi
12001     supports_anon_versioning=no
12002     case `$LD -v 2>&1` in
12003       *GNU\ gold*) supports_anon_versioning=yes ;;
12004       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12005       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12006       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12007       *\ 2.11.*) ;; # other 2.11 versions
12008       *) supports_anon_versioning=yes ;;
12009     esac
12010
12011     # See if GNU ld supports shared libraries.
12012     case $host_os in
12013     aix[3-9]*)
12014       # On AIX/PPC, the GNU linker is very broken
12015       if test "$host_cpu" != ia64; then
12016         ld_shlibs_GO=no
12017         cat <<_LT_EOF 1>&2
12018
12019 *** Warning: the GNU linker, at least up to release 2.19, is reported
12020 *** to be unable to reliably create shared libraries on AIX.
12021 *** Therefore, libtool is disabling shared libraries support.  If you
12022 *** really care for shared libraries, you may want to install binutils
12023 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12024 *** You will then need to restart the configuration process.
12025
12026 _LT_EOF
12027       fi
12028       ;;
12029
12030     amigaos*)
12031       case $host_cpu in
12032       powerpc)
12033             # see comment about AmigaOS4 .so support
12034             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12035             archive_expsym_cmds_GO=''
12036         ;;
12037       m68k)
12038             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)'
12039             hardcode_libdir_flag_spec_GO='-L$libdir'
12040             hardcode_minus_L_GO=yes
12041         ;;
12042       esac
12043       ;;
12044
12045     beos*)
12046       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12047         allow_undefined_flag_GO=unsupported
12048         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12049         # support --undefined.  This deserves some investigation.  FIXME
12050         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12051       else
12052         ld_shlibs_GO=no
12053       fi
12054       ;;
12055
12056     cygwin* | mingw* | pw32* | cegcc*)
12057       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12058       # as there is no search path for DLLs.
12059       hardcode_libdir_flag_spec_GO='-L$libdir'
12060       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12061       allow_undefined_flag_GO=unsupported
12062       always_export_symbols_GO=no
12063       enable_shared_with_static_runtimes_GO=yes
12064       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12065
12066       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12067         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12068         # If the export-symbols file already is a .def file (1st line
12069         # is EXPORTS), use it as is; otherwise, prepend...
12070         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12071           cp $export_symbols $output_objdir/$soname.def;
12072         else
12073           echo EXPORTS > $output_objdir/$soname.def;
12074           cat $export_symbols >> $output_objdir/$soname.def;
12075         fi~
12076         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12077       else
12078         ld_shlibs_GO=no
12079       fi
12080       ;;
12081
12082     haiku*)
12083       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12084       link_all_deplibs_GO=yes
12085       ;;
12086
12087     interix[3-9]*)
12088       hardcode_direct_GO=no
12089       hardcode_shlibpath_var_GO=no
12090       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12091       export_dynamic_flag_spec_GO='${wl}-E'
12092       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12093       # Instead, shared libraries are loaded at an image base (0x10000000 by
12094       # default) and relocated if they conflict, which is a slow very memory
12095       # consuming and fragmenting process.  To avoid this, we pick a random,
12096       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12097       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12098       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'
12099       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'
12100       ;;
12101
12102     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12103       tmp_diet=no
12104       if test "$host_os" = linux-dietlibc; then
12105         case $cc_basename in
12106           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12107         esac
12108       fi
12109       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12110          && test "$tmp_diet" = no
12111       then
12112         tmp_addflag=
12113         tmp_sharedflag='-shared'
12114         case $cc_basename,$host_cpu in
12115         pgcc*)                          # Portland Group C compiler
12116           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'
12117           tmp_addflag=' $pic_flag'
12118           ;;
12119         pgf77* | pgf90* | pgf95* | pgfortran*)
12120                                         # Portland Group f77 and f90 compilers
12121           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'
12122           tmp_addflag=' $pic_flag -Mnomain' ;;
12123         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12124           tmp_addflag=' -i_dynamic' ;;
12125         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12126           tmp_addflag=' -i_dynamic -nofor_main' ;;
12127         ifc* | ifort*)                  # Intel Fortran compiler
12128           tmp_addflag=' -nofor_main' ;;
12129         lf95*)                          # Lahey Fortran 8.1
12130           whole_archive_flag_spec_GO=
12131           tmp_sharedflag='--shared' ;;
12132         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12133           tmp_sharedflag='-qmkshrobj'
12134           tmp_addflag= ;;
12135         nvcc*)  # Cuda Compiler Driver 2.2
12136           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'
12137           compiler_needs_object_GO=yes
12138           ;;
12139         esac
12140         case `$CC -V 2>&1 | sed 5q` in
12141         *Sun\ C*)                       # Sun C 5.9
12142           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'
12143           compiler_needs_object_GO=yes
12144           tmp_sharedflag='-G' ;;
12145         *Sun\ F*)                       # Sun Fortran 8.3
12146           tmp_sharedflag='-G' ;;
12147         esac
12148         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12149
12150         if test "x$supports_anon_versioning" = xyes; then
12151           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12152             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12153             echo "local: *; };" >> $output_objdir/$libname.ver~
12154             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12155         fi
12156
12157         case $cc_basename in
12158         xlf* | bgf* | bgxlf* | mpixlf*)
12159           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12160           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12161           hardcode_libdir_flag_spec_GO=
12162           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12163           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12164           if test "x$supports_anon_versioning" = xyes; then
12165             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12166               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12167               echo "local: *; };" >> $output_objdir/$libname.ver~
12168               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12169           fi
12170           ;;
12171         esac
12172       else
12173         ld_shlibs_GO=no
12174       fi
12175       ;;
12176
12177     netbsd*)
12178       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12179         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12180         wlarc=
12181       else
12182         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12183         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12184       fi
12185       ;;
12186
12187     solaris*)
12188       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12189         ld_shlibs_GO=no
12190         cat <<_LT_EOF 1>&2
12191
12192 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12193 *** create shared libraries on Solaris systems.  Therefore, libtool
12194 *** is disabling shared libraries support.  We urge you to upgrade GNU
12195 *** binutils to release 2.9.1 or newer.  Another option is to modify
12196 *** your PATH or compiler configuration so that the native linker is
12197 *** used, and then restart.
12198
12199 _LT_EOF
12200       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12201         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12202         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12203       else
12204         ld_shlibs_GO=no
12205       fi
12206       ;;
12207
12208     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12209       case `$LD -v 2>&1` in
12210         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12211         ld_shlibs_GO=no
12212         cat <<_LT_EOF 1>&2
12213
12214 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12215 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12216 *** is disabling shared libraries support.  We urge you to upgrade GNU
12217 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12218 *** your PATH or compiler configuration so that the native linker is
12219 *** used, and then restart.
12220
12221 _LT_EOF
12222         ;;
12223         *)
12224           # For security reasons, it is highly recommended that you always
12225           # use absolute paths for naming shared libraries, and exclude the
12226           # DT_RUNPATH tag from executables and libraries.  But doing so
12227           # requires that you compile everything twice, which is a pain.
12228           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12229             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12230             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12231             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12232           else
12233             ld_shlibs_GO=no
12234           fi
12235         ;;
12236       esac
12237       ;;
12238
12239     sunos4*)
12240       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12241       wlarc=
12242       hardcode_direct_GO=yes
12243       hardcode_shlibpath_var_GO=no
12244       ;;
12245
12246     *)
12247       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12248         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12249         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12250       else
12251         ld_shlibs_GO=no
12252       fi
12253       ;;
12254     esac
12255
12256     if test "$ld_shlibs_GO" = no; then
12257       runpath_var=
12258       hardcode_libdir_flag_spec_GO=
12259       export_dynamic_flag_spec_GO=
12260       whole_archive_flag_spec_GO=
12261     fi
12262   else
12263     # PORTME fill in a description of your system's linker (not GNU ld)
12264     case $host_os in
12265     aix3*)
12266       allow_undefined_flag_GO=unsupported
12267       always_export_symbols_GO=yes
12268       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'
12269       # Note: this linker hardcodes the directories in LIBPATH if there
12270       # are no directories specified by -L.
12271       hardcode_minus_L_GO=yes
12272       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12273         # Neither direct hardcoding nor static linking is supported with a
12274         # broken collect2.
12275         hardcode_direct_GO=unsupported
12276       fi
12277       ;;
12278
12279     aix[4-9]*)
12280       if test "$host_cpu" = ia64; then
12281         # On IA64, the linker does run time linking by default, so we don't
12282         # have to do anything special.
12283         aix_use_runtimelinking=no
12284         exp_sym_flag='-Bexport'
12285         no_entry_flag=""
12286       else
12287         # If we're using GNU nm, then we don't want the "-C" option.
12288         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12289         # Also, AIX nm treats weak defined symbols like other global
12290         # defined symbols, whereas GNU nm marks them as "W".
12291         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12292           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'
12293         else
12294           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'
12295         fi
12296         aix_use_runtimelinking=no
12297
12298         # Test if we are trying to use run time linking or normal
12299         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12300         # need to do runtime linking.
12301         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12302           for ld_flag in $LDFLAGS; do
12303           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12304             aix_use_runtimelinking=yes
12305             break
12306           fi
12307           done
12308           ;;
12309         esac
12310
12311         exp_sym_flag='-bexport'
12312         no_entry_flag='-bnoentry'
12313       fi
12314
12315       # When large executables or shared objects are built, AIX ld can
12316       # have problems creating the table of contents.  If linking a library
12317       # or program results in "error TOC overflow" add -mminimal-toc to
12318       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12319       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12320
12321       archive_cmds_GO=''
12322       hardcode_direct_GO=yes
12323       hardcode_direct_absolute_GO=yes
12324       hardcode_libdir_separator_GO=':'
12325       link_all_deplibs_GO=yes
12326       file_list_spec_GO='${wl}-f,'
12327
12328       if test "$GCC" = yes; then
12329         case $host_os in aix4.[012]|aix4.[012].*)
12330         # We only want to do this on AIX 4.2 and lower, the check
12331         # below for broken collect2 doesn't work under 4.3+
12332           collect2name=`${CC} -print-prog-name=collect2`
12333           if test -f "$collect2name" &&
12334            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12335           then
12336           # We have reworked collect2
12337           :
12338           else
12339           # We have old collect2
12340           hardcode_direct_GO=unsupported
12341           # It fails to find uninstalled libraries when the uninstalled
12342           # path is not listed in the libpath.  Setting hardcode_minus_L
12343           # to unsupported forces relinking
12344           hardcode_minus_L_GO=yes
12345           hardcode_libdir_flag_spec_GO='-L$libdir'
12346           hardcode_libdir_separator_GO=
12347           fi
12348           ;;
12349         esac
12350         shared_flag='-shared'
12351         if test "$aix_use_runtimelinking" = yes; then
12352           shared_flag="$shared_flag "'${wl}-G'
12353         fi
12354       else
12355         # not using gcc
12356         if test "$host_cpu" = ia64; then
12357         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12358         # chokes on -Wl,-G. The following line is correct:
12359           shared_flag='-G'
12360         else
12361           if test "$aix_use_runtimelinking" = yes; then
12362             shared_flag='${wl}-G'
12363           else
12364             shared_flag='${wl}-bM:SRE'
12365           fi
12366         fi
12367       fi
12368
12369       export_dynamic_flag_spec_GO='${wl}-bexpall'
12370       # It seems that -bexpall does not export symbols beginning with
12371       # underscore (_), so it is better to generate a list of symbols to export.
12372       always_export_symbols_GO=yes
12373       if test "$aix_use_runtimelinking" = yes; then
12374         # Warning - without using the other runtime loading flags (-brtl),
12375         # -berok will link without error, but may produce a broken library.
12376         allow_undefined_flag_GO='-berok'
12377         # Determine the default libpath from the value encoded in an
12378         # empty executable.
12379         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12380 /* end confdefs.h.  */
12381
12382 int
12383 main ()
12384 {
12385
12386   ;
12387   return 0;
12388 }
12389 _ACEOF
12390 if ac_fn_c_try_link "$LINENO"; then :
12391
12392 lt_aix_libpath_sed='
12393     /Import File Strings/,/^$/ {
12394         /^0/ {
12395             s/^0  *\(.*\)$/\1/
12396             p
12397         }
12398     }'
12399 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12400 # Check for a 64-bit object if we didn't find anything.
12401 if test -z "$aix_libpath"; then
12402   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12403 fi
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext \
12406     conftest$ac_exeext conftest.$ac_ext
12407 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12408
12409         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12410         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"
12411       else
12412         if test "$host_cpu" = ia64; then
12413           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12414           allow_undefined_flag_GO="-z nodefs"
12415           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"
12416         else
12417          # Determine the default libpath from the value encoded in an
12418          # empty executable.
12419          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12420 /* end confdefs.h.  */
12421
12422 int
12423 main ()
12424 {
12425
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 if ac_fn_c_try_link "$LINENO"; then :
12431
12432 lt_aix_libpath_sed='
12433     /Import File Strings/,/^$/ {
12434         /^0/ {
12435             s/^0  *\(.*\)$/\1/
12436             p
12437         }
12438     }'
12439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12440 # Check for a 64-bit object if we didn't find anything.
12441 if test -z "$aix_libpath"; then
12442   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12443 fi
12444 fi
12445 rm -f core conftest.err conftest.$ac_objext \
12446     conftest$ac_exeext conftest.$ac_ext
12447 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12448
12449          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12450           # Warning - without using the other run time loading flags,
12451           # -berok will link without error, but may produce a broken library.
12452           no_undefined_flag_GO=' ${wl}-bernotok'
12453           allow_undefined_flag_GO=' ${wl}-berok'
12454           if test "$with_gnu_ld" = yes; then
12455             # We only use this code for GNU lds that support --whole-archive.
12456             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12457           else
12458             # Exported symbols can be pulled into shared objects from archives
12459             whole_archive_flag_spec_GO='$convenience'
12460           fi
12461           archive_cmds_need_lc_GO=yes
12462           # This is similar to how AIX traditionally builds its shared libraries.
12463           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'
12464         fi
12465       fi
12466       ;;
12467
12468     amigaos*)
12469       case $host_cpu in
12470       powerpc)
12471             # see comment about AmigaOS4 .so support
12472             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12473             archive_expsym_cmds_GO=''
12474         ;;
12475       m68k)
12476             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)'
12477             hardcode_libdir_flag_spec_GO='-L$libdir'
12478             hardcode_minus_L_GO=yes
12479         ;;
12480       esac
12481       ;;
12482
12483     bsdi[45]*)
12484       export_dynamic_flag_spec_GO=-rdynamic
12485       ;;
12486
12487     cygwin* | mingw* | pw32* | cegcc*)
12488       # When not using gcc, we currently assume that we are using
12489       # Microsoft Visual C++.
12490       # hardcode_libdir_flag_spec is actually meaningless, as there is
12491       # no search path for DLLs.
12492       hardcode_libdir_flag_spec_GO=' '
12493       allow_undefined_flag_GO=unsupported
12494       # Tell ltmain to make .lib files, not .a files.
12495       libext=lib
12496       # Tell ltmain to make .dll files, not .so files.
12497       shrext_cmds=".dll"
12498       # FIXME: Setting linknames here is a bad hack.
12499       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12500       # The linker will automatically build a .lib file if we build a DLL.
12501       old_archive_from_new_cmds_GO='true'
12502       # FIXME: Should let the user specify the lib program.
12503       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12504       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12505       enable_shared_with_static_runtimes_GO=yes
12506       ;;
12507
12508     darwin* | rhapsody*)
12509
12510
12511   archive_cmds_need_lc_GO=no
12512   hardcode_direct_GO=no
12513   hardcode_automatic_GO=yes
12514   hardcode_shlibpath_var_GO=unsupported
12515   if test "$lt_cv_ld_force_load" = "yes"; then
12516     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\"`'
12517   else
12518     whole_archive_flag_spec_GO=''
12519   fi
12520   link_all_deplibs_GO=yes
12521   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12522   case $cc_basename in
12523      ifort*) _lt_dar_can_shared=yes ;;
12524      *) _lt_dar_can_shared=$GCC ;;
12525   esac
12526   if test "$_lt_dar_can_shared" = "yes"; then
12527     output_verbose_link_cmd=func_echo_all
12528     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}"
12529     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12530     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}"
12531     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}"
12532
12533   else
12534   ld_shlibs_GO=no
12535   fi
12536
12537       ;;
12538
12539     dgux*)
12540       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12541       hardcode_libdir_flag_spec_GO='-L$libdir'
12542       hardcode_shlibpath_var_GO=no
12543       ;;
12544
12545     freebsd1*)
12546       ld_shlibs_GO=no
12547       ;;
12548
12549     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12550     # support.  Future versions do this automatically, but an explicit c++rt0.o
12551     # does not break anything, and helps significantly (at the cost of a little
12552     # extra space).
12553     freebsd2.2*)
12554       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12555       hardcode_libdir_flag_spec_GO='-R$libdir'
12556       hardcode_direct_GO=yes
12557       hardcode_shlibpath_var_GO=no
12558       ;;
12559
12560     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12561     freebsd2*)
12562       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12563       hardcode_direct_GO=yes
12564       hardcode_minus_L_GO=yes
12565       hardcode_shlibpath_var_GO=no
12566       ;;
12567
12568     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12569     freebsd* | dragonfly*)
12570       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12571       hardcode_libdir_flag_spec_GO='-R$libdir'
12572       hardcode_direct_GO=yes
12573       hardcode_shlibpath_var_GO=no
12574       ;;
12575
12576     hpux9*)
12577       if test "$GCC" = yes; then
12578         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'
12579       else
12580         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'
12581       fi
12582       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12583       hardcode_libdir_separator_GO=:
12584       hardcode_direct_GO=yes
12585
12586       # hardcode_minus_L: Not really in the search PATH,
12587       # but as the default location of the library.
12588       hardcode_minus_L_GO=yes
12589       export_dynamic_flag_spec_GO='${wl}-E'
12590       ;;
12591
12592     hpux10*)
12593       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12594         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12595       else
12596         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12597       fi
12598       if test "$with_gnu_ld" = no; then
12599         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12600         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12601         hardcode_libdir_separator_GO=:
12602         hardcode_direct_GO=yes
12603         hardcode_direct_absolute_GO=yes
12604         export_dynamic_flag_spec_GO='${wl}-E'
12605         # hardcode_minus_L: Not really in the search PATH,
12606         # but as the default location of the library.
12607         hardcode_minus_L_GO=yes
12608       fi
12609       ;;
12610
12611     hpux11*)
12612       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12613         case $host_cpu in
12614         hppa*64*)
12615           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12616           ;;
12617         ia64*)
12618           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12619           ;;
12620         *)
12621           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12622           ;;
12623         esac
12624       else
12625         case $host_cpu in
12626         hppa*64*)
12627           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12628           ;;
12629         ia64*)
12630           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12631           ;;
12632         *)
12633         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12634           ;;
12635         esac
12636       fi
12637       if test "$with_gnu_ld" = no; then
12638         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12639         hardcode_libdir_separator_GO=:
12640
12641         case $host_cpu in
12642         hppa*64*|ia64*)
12643           hardcode_direct_GO=no
12644           hardcode_shlibpath_var_GO=no
12645           ;;
12646         *)
12647           hardcode_direct_GO=yes
12648           hardcode_direct_absolute_GO=yes
12649           export_dynamic_flag_spec_GO='${wl}-E'
12650
12651           # hardcode_minus_L: Not really in the search PATH,
12652           # but as the default location of the library.
12653           hardcode_minus_L_GO=yes
12654           ;;
12655         esac
12656       fi
12657       ;;
12658
12659     irix5* | irix6* | nonstopux*)
12660       if test "$GCC" = yes; then
12661         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'
12662         # Try to use the -exported_symbol ld option, if it does not
12663         # work, assume that -exports_file does not work either and
12664         # implicitly export all symbols.
12665         save_LDFLAGS="$LDFLAGS"
12666         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12667         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h.  */
12669 int foo(void) {}
12670 _ACEOF
12671 if ac_fn_c_try_link "$LINENO"; then :
12672   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'
12673
12674 fi
12675 rm -f core conftest.err conftest.$ac_objext \
12676     conftest$ac_exeext conftest.$ac_ext
12677         LDFLAGS="$save_LDFLAGS"
12678       else
12679         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'
12680         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'
12681       fi
12682       archive_cmds_need_lc_GO='no'
12683       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12684       hardcode_libdir_separator_GO=:
12685       inherit_rpath_GO=yes
12686       link_all_deplibs_GO=yes
12687       ;;
12688
12689     netbsd*)
12690       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12691         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12692       else
12693         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12694       fi
12695       hardcode_libdir_flag_spec_GO='-R$libdir'
12696       hardcode_direct_GO=yes
12697       hardcode_shlibpath_var_GO=no
12698       ;;
12699
12700     newsos6)
12701       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12702       hardcode_direct_GO=yes
12703       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12704       hardcode_libdir_separator_GO=:
12705       hardcode_shlibpath_var_GO=no
12706       ;;
12707
12708     *nto* | *qnx*)
12709       ;;
12710
12711     openbsd*)
12712       if test -f /usr/libexec/ld.so; then
12713         hardcode_direct_GO=yes
12714         hardcode_shlibpath_var_GO=no
12715         hardcode_direct_absolute_GO=yes
12716         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12717           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12718           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12719           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12720           export_dynamic_flag_spec_GO='${wl}-E'
12721         else
12722           case $host_os in
12723            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12724              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12725              hardcode_libdir_flag_spec_GO='-R$libdir'
12726              ;;
12727            *)
12728              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12729              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12730              ;;
12731           esac
12732         fi
12733       else
12734         ld_shlibs_GO=no
12735       fi
12736       ;;
12737
12738     os2*)
12739       hardcode_libdir_flag_spec_GO='-L$libdir'
12740       hardcode_minus_L_GO=yes
12741       allow_undefined_flag_GO=unsupported
12742       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'
12743       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12744       ;;
12745
12746     osf3*)
12747       if test "$GCC" = yes; then
12748         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12749         archive_cmds_GO='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12750       else
12751         allow_undefined_flag_GO=' -expect_unresolved \*'
12752         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'
12753       fi
12754       archive_cmds_need_lc_GO='no'
12755       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12756       hardcode_libdir_separator_GO=:
12757       ;;
12758
12759     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12760       if test "$GCC" = yes; then
12761         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12762         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'
12763         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12764       else
12765         allow_undefined_flag_GO=' -expect_unresolved \*'
12766         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'
12767         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~
12768         $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'
12769
12770         # Both c and cxx compiler support -rpath directly
12771         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12772       fi
12773       archive_cmds_need_lc_GO='no'
12774       hardcode_libdir_separator_GO=:
12775       ;;
12776
12777     solaris*)
12778       no_undefined_flag_GO=' -z defs'
12779       if test "$GCC" = yes; then
12780         wlarc='${wl}'
12781         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12782         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12783           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12784       else
12785         case `$CC -V 2>&1` in
12786         *"Compilers 5.0"*)
12787           wlarc=''
12788           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12789           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12790           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12791           ;;
12792         *)
12793           wlarc='${wl}'
12794           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12795           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12796           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12797           ;;
12798         esac
12799       fi
12800       hardcode_libdir_flag_spec_GO='-R$libdir'
12801       hardcode_shlibpath_var_GO=no
12802       case $host_os in
12803       solaris2.[0-5] | solaris2.[0-5].*) ;;
12804       *)
12805         # The compiler driver will combine and reorder linker options,
12806         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12807         # but is careful enough not to reorder.
12808         # Supported since Solaris 2.6 (maybe 2.5.1?)
12809         if test "$GCC" = yes; then
12810           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12811         else
12812           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12813         fi
12814         ;;
12815       esac
12816       link_all_deplibs_GO=yes
12817       ;;
12818
12819     sunos4*)
12820       if test "x$host_vendor" = xsequent; then
12821         # Use $CC to link under sequent, because it throws in some extra .o
12822         # files that make .init and .fini sections work.
12823         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12824       else
12825         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12826       fi
12827       hardcode_libdir_flag_spec_GO='-L$libdir'
12828       hardcode_direct_GO=yes
12829       hardcode_minus_L_GO=yes
12830       hardcode_shlibpath_var_GO=no
12831       ;;
12832
12833     sysv4)
12834       case $host_vendor in
12835         sni)
12836           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12837           hardcode_direct_GO=yes # is this really true???
12838         ;;
12839         siemens)
12840           ## LD is ld it makes a PLAMLIB
12841           ## CC just makes a GrossModule.
12842           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12843           reload_cmds_GO='$CC -r -o $output$reload_objs'
12844           hardcode_direct_GO=no
12845         ;;
12846         motorola)
12847           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12848           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12849         ;;
12850       esac
12851       runpath_var='LD_RUN_PATH'
12852       hardcode_shlibpath_var_GO=no
12853       ;;
12854
12855     sysv4.3*)
12856       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12857       hardcode_shlibpath_var_GO=no
12858       export_dynamic_flag_spec_GO='-Bexport'
12859       ;;
12860
12861     sysv4*MP*)
12862       if test -d /usr/nec; then
12863         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12864         hardcode_shlibpath_var_GO=no
12865         runpath_var=LD_RUN_PATH
12866         hardcode_runpath_var=yes
12867         ld_shlibs_GO=yes
12868       fi
12869       ;;
12870
12871     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12872       no_undefined_flag_GO='${wl}-z,text'
12873       archive_cmds_need_lc_GO=no
12874       hardcode_shlibpath_var_GO=no
12875       runpath_var='LD_RUN_PATH'
12876
12877       if test "$GCC" = yes; then
12878         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12879         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880       else
12881         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12882         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12883       fi
12884       ;;
12885
12886     sysv5* | sco3.2v5* | sco5v6*)
12887       # Note: We can NOT use -z defs as we might desire, because we do not
12888       # link with -lc, and that would cause any symbols used from libc to
12889       # always be unresolved, which means just about no library would
12890       # ever link correctly.  If we're not using GNU ld we use -z text
12891       # though, which does catch some bad symbols but isn't as heavy-handed
12892       # as -z defs.
12893       no_undefined_flag_GO='${wl}-z,text'
12894       allow_undefined_flag_GO='${wl}-z,nodefs'
12895       archive_cmds_need_lc_GO=no
12896       hardcode_shlibpath_var_GO=no
12897       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12898       hardcode_libdir_separator_GO=':'
12899       link_all_deplibs_GO=yes
12900       export_dynamic_flag_spec_GO='${wl}-Bexport'
12901       runpath_var='LD_RUN_PATH'
12902
12903       if test "$GCC" = yes; then
12904         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12905         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12906       else
12907         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12908         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12909       fi
12910       ;;
12911
12912     uts4*)
12913       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12914       hardcode_libdir_flag_spec_GO='-L$libdir'
12915       hardcode_shlibpath_var_GO=no
12916       ;;
12917
12918     *)
12919       ld_shlibs_GO=no
12920       ;;
12921     esac
12922
12923     if test x$host_vendor = xsni; then
12924       case $host in
12925       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12926         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12927         ;;
12928       esac
12929     fi
12930   fi
12931
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12933 $as_echo "$ld_shlibs_GO" >&6; }
12934 test "$ld_shlibs_GO" = no && can_build_shared=no
12935
12936 with_gnu_ld_GO=$with_gnu_ld
12937
12938
12939
12940
12941
12942
12943 #
12944 # Do we need to explicitly link libc?
12945 #
12946 case "x$archive_cmds_need_lc_GO" in
12947 x|xyes)
12948   # Assume -lc should be added
12949   archive_cmds_need_lc_GO=yes
12950
12951   if test "$enable_shared" = yes && test "$GCC" = yes; then
12952     case $archive_cmds_GO in
12953     *'~'*)
12954       # FIXME: we may have to deal with multi-command sequences.
12955       ;;
12956     '$CC '*)
12957       # Test whether the compiler implicitly links with -lc since on some
12958       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12959       # to ld, don't add -lc before -lgcc.
12960       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12961 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12962 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12963   $as_echo_n "(cached) " >&6
12964 else
12965   $RM conftest*
12966         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12967
12968         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12969   (eval $ac_compile) 2>&5
12970   ac_status=$?
12971   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12972   test $ac_status = 0; } 2>conftest.err; then
12973           soname=conftest
12974           lib=conftest
12975           libobjs=conftest.$ac_objext
12976           deplibs=
12977           wl=$lt_prog_compiler_wl_GO
12978           pic_flag=$lt_prog_compiler_pic_GO
12979           compiler_flags=-v
12980           linker_flags=-v
12981           verstring=
12982           output_objdir=.
12983           libname=conftest
12984           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12985           allow_undefined_flag_GO=
12986           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12987   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12988   ac_status=$?
12989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12990   test $ac_status = 0; }
12991           then
12992             lt_cv_archive_cmds_need_lc_GO=no
12993           else
12994             lt_cv_archive_cmds_need_lc_GO=yes
12995           fi
12996           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12997         else
12998           cat conftest.err 1>&5
12999         fi
13000         $RM conftest*
13001
13002 fi
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13004 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13005       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13006       ;;
13007     esac
13008   fi
13009   ;;
13010 esac
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13076 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13077 hardcode_action_GO=
13078 if test -n "$hardcode_libdir_flag_spec_GO" ||
13079    test -n "$runpath_var_GO" ||
13080    test "X$hardcode_automatic_GO" = "Xyes" ; then
13081
13082   # We can hardcode non-existent directories.
13083   if test "$hardcode_direct_GO" != no &&
13084      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13085      # have to relink, otherwise we might link with an installed library
13086      # when we should be linking with a yet-to-be-installed one
13087      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13088      test "$hardcode_minus_L_GO" != no; then
13089     # Linking always hardcodes the temporary library directory.
13090     hardcode_action_GO=relink
13091   else
13092     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13093     hardcode_action_GO=immediate
13094   fi
13095 else
13096   # We cannot hardcode anything, or else we can only hardcode existing
13097   # directories.
13098   hardcode_action_GO=unsupported
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13101 $as_echo "$hardcode_action_GO" >&6; }
13102
13103 if test "$hardcode_action_GO" = relink ||
13104    test "$inherit_rpath_GO" = yes; then
13105   # Fast installation is not supported
13106   enable_fast_install=no
13107 elif test "$shlibpath_overrides_runpath" = yes ||
13108      test "$enable_shared" = no; then
13109   # Fast installation is not necessary
13110   enable_fast_install=needless
13111 fi
13112
13113
13114
13115
13116
13117
13118
13119 fi
13120
13121 ac_ext=c
13122 ac_cpp='$CPP $CPPFLAGS'
13123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13126
13127
13128 GCC=$lt_save_GCC
13129 CC="$lt_save_CC"
13130
13131
13132
13133
13134         ac_config_commands="$ac_config_commands libtool"
13135
13136
13137
13138
13139 # Only expand once:
13140
13141
13142
13143
13144
13145 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13146
13147
13148 WERROR="-Werror"
13149
13150
13151 glibgo_toolexecdir=no
13152 glibgo_toolexeclibdir=no
13153 glibgo_prefixdir=$prefix
13154
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13156 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13157 # Check whether --enable-version-specific-runtime-libs was given.
13158 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13159   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13160     yes) version_specific_libs=yes ;;
13161     no)  version_specific_libs=no ;;
13162     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13163    esac
13164 else
13165   version_specific_libs=no
13166 fi
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13169 $as_echo "$version_specific_libs" >&6; }
13170
13171 # Version-specific runtime libs processing.
13172 if test $version_specific_libs = yes; then
13173   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13174   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13175 fi
13176
13177 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13178 # Install a library built with a cross compiler in tooldir, not libdir.
13179 if test x"$glibgo_toolexecdir" = x"no"; then
13180   if test -n "$with_cross_host" &&
13181      test x"$with_cross_host" != x"no"; then
13182     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13183     glibgo_toolexeclibdir='${toolexecdir}/lib'
13184   else
13185     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13186     glibgo_toolexeclibdir='${libdir}'
13187   fi
13188   multi_os_directory=`$CC -print-multi-os-directory`
13189   case $multi_os_directory in
13190     .) ;; # Avoid trailing /.
13191     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13192   esac
13193 fi
13194
13195
13196
13197
13198
13199 # See if the user wants to configure without libffi.  Some
13200 # architectures don't support it.  FIXME: We should set a default
13201 # based on the host.
13202
13203 # Check whether --with-libffi was given.
13204 if test "${with_libffi+set}" = set; then :
13205   withval=$with_libffi; :
13206 else
13207   with_libffi=${with_libffi_default-yes}
13208 fi
13209
13210
13211 LIBFFI=
13212 LIBFFIINCS=
13213 if test "$with_libffi" != no; then
13214
13215 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13216
13217    LIBFFI=../libffi/libffi_convenience.la
13218    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13219 fi
13220
13221
13222
13223 is_darwin=no
13224 is_freebsd=no
13225 is_linux=no
13226 is_rtems=no
13227 is_solaris=no
13228 GOOS=unknown
13229 case ${host} in
13230   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13231   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13232   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13233   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13234   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13235 esac
13236  if test $is_darwin = yes; then
13237   LIBGO_IS_DARWIN_TRUE=
13238   LIBGO_IS_DARWIN_FALSE='#'
13239 else
13240   LIBGO_IS_DARWIN_TRUE='#'
13241   LIBGO_IS_DARWIN_FALSE=
13242 fi
13243
13244  if test $is_freebsd = yes; then
13245   LIBGO_IS_FREEBSD_TRUE=
13246   LIBGO_IS_FREEBSD_FALSE='#'
13247 else
13248   LIBGO_IS_FREEBSD_TRUE='#'
13249   LIBGO_IS_FREEBSD_FALSE=
13250 fi
13251
13252  if test $is_linux = yes; then
13253   LIBGO_IS_LINUX_TRUE=
13254   LIBGO_IS_LINUX_FALSE='#'
13255 else
13256   LIBGO_IS_LINUX_TRUE='#'
13257   LIBGO_IS_LINUX_FALSE=
13258 fi
13259
13260  if test $is_rtems = yes; then
13261   LIBGO_IS_RTEMS_TRUE=
13262   LIBGO_IS_RTEMS_FALSE='#'
13263 else
13264   LIBGO_IS_RTEMS_TRUE='#'
13265   LIBGO_IS_RTEMS_FALSE=
13266 fi
13267
13268  if test $is_solaris = yes; then
13269   LIBGO_IS_SOLARIS_TRUE=
13270   LIBGO_IS_SOLARIS_FALSE='#'
13271 else
13272   LIBGO_IS_SOLARIS_TRUE='#'
13273   LIBGO_IS_SOLARIS_FALSE=
13274 fi
13275
13276
13277
13278 is_386=no
13279 is_arm=no
13280 is_m68k=no
13281 is_mips=no
13282 is_mips64=no
13283 is_ppc=no
13284 is_ppc64=no
13285 is_sparc=no
13286 is_sparc64=no
13287 is_x86_64=no
13288 GOARCH=unknown
13289 case ${host} in
13290   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13291     is_arm=yes
13292     GOARCH=arm
13293     ;;
13294   i[34567]86-*-* | x86_64-*-*)
13295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13296 /* end confdefs.h.  */
13297
13298 #ifdef __x86_64__
13299 #error 64-bit
13300 #endif
13301 _ACEOF
13302 if ac_fn_c_try_cpp "$LINENO"; then :
13303   is_386=yes
13304 else
13305   is_x86_64=yes
13306 fi
13307 rm -f conftest.err conftest.$ac_ext
13308     if test "$is_386" = "yes"; then
13309       GOARCH=386
13310     else
13311       GOARCH=amd64
13312     fi
13313     ;;
13314   m68k*-*-*)
13315     is_m68k=yes
13316     GOARCH=m68k
13317     ;;
13318   mips*-*-*)
13319     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h.  */
13321
13322 #ifdef __mips64
13323 #error 64-bit
13324 #endif
13325 _ACEOF
13326 if ac_fn_c_try_cpp "$LINENO"; then :
13327   is_mips=yes
13328 else
13329   is_mips64=yes
13330 fi
13331 rm -f conftest.err conftest.$ac_ext
13332     if test "$is_mips" = "yes"; then
13333       GOARCH=mips
13334     else
13335       GOARCH=mips64
13336     fi
13337     ;;
13338   rs6000*-*-* | powerpc*-*-*)
13339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h.  */
13341
13342 #ifdef _ARCH_PPC64
13343 #error 64-bit
13344 #endif
13345 _ACEOF
13346 if ac_fn_c_try_cpp "$LINENO"; then :
13347   is_ppc=yes
13348 else
13349   is_ppc64=yes
13350 fi
13351 rm -f conftest.err conftest.$ac_ext
13352     if test "$is_ppc" = "yes"; then
13353       GOARCH=ppc
13354     else
13355       GOARCH=ppc64
13356     fi
13357     ;;
13358   sparc*-*-*)
13359     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h.  */
13361
13362 #if defined(__sparcv9) || defined(__arch64__)
13363 #error 64-bit
13364 #endif
13365 _ACEOF
13366 if ac_fn_c_try_cpp "$LINENO"; then :
13367   is_sparc=yes
13368 else
13369   is_sparc64=yes
13370 fi
13371 rm -f conftest.err conftest.$ac_ext
13372     if test "$is_sparc" = "yes"; then
13373       GOARCH=sparc
13374     else
13375       GOARCH=sparc64
13376     fi
13377     ;;
13378 esac
13379  if test $is_386 = yes; then
13380   LIBGO_IS_386_TRUE=
13381   LIBGO_IS_386_FALSE='#'
13382 else
13383   LIBGO_IS_386_TRUE='#'
13384   LIBGO_IS_386_FALSE=
13385 fi
13386
13387  if test $is_arm = yes; then
13388   LIBGO_IS_ARM_TRUE=
13389   LIBGO_IS_ARM_FALSE='#'
13390 else
13391   LIBGO_IS_ARM_TRUE='#'
13392   LIBGO_IS_ARM_FALSE=
13393 fi
13394
13395  if test $is_m68k = yes; then
13396   LIBGO_IS_M68K_TRUE=
13397   LIBGO_IS_M68K_FALSE='#'
13398 else
13399   LIBGO_IS_M68K_TRUE='#'
13400   LIBGO_IS_M68K_FALSE=
13401 fi
13402
13403  if test $is_mips = yes; then
13404   LIBGO_IS_MIPS_TRUE=
13405   LIBGO_IS_MIPS_FALSE='#'
13406 else
13407   LIBGO_IS_MIPS_TRUE='#'
13408   LIBGO_IS_MIPS_FALSE=
13409 fi
13410
13411  if test $is_mips64 = yes; then
13412   LIBGO_IS_MIPS64_TRUE=
13413   LIBGO_IS_MIPS64_FALSE='#'
13414 else
13415   LIBGO_IS_MIPS64_TRUE='#'
13416   LIBGO_IS_MIPS64_FALSE=
13417 fi
13418
13419  if test $is_ppc = yes; then
13420   LIBGO_IS_PPC_TRUE=
13421   LIBGO_IS_PPC_FALSE='#'
13422 else
13423   LIBGO_IS_PPC_TRUE='#'
13424   LIBGO_IS_PPC_FALSE=
13425 fi
13426
13427  if test $is_ppc64 = yes; then
13428   LIBGO_IS_PPC64_TRUE=
13429   LIBGO_IS_PPC64_FALSE='#'
13430 else
13431   LIBGO_IS_PPC64_TRUE='#'
13432   LIBGO_IS_PPC64_FALSE=
13433 fi
13434
13435  if test $is_sparc = yes; then
13436   LIBGO_IS_SPARC_TRUE=
13437   LIBGO_IS_SPARC_FALSE='#'
13438 else
13439   LIBGO_IS_SPARC_TRUE='#'
13440   LIBGO_IS_SPARC_FALSE=
13441 fi
13442
13443  if test $is_sparc64 = yes; then
13444   LIBGO_IS_SPARC64_TRUE=
13445   LIBGO_IS_SPARC64_FALSE='#'
13446 else
13447   LIBGO_IS_SPARC64_TRUE='#'
13448   LIBGO_IS_SPARC64_FALSE=
13449 fi
13450
13451  if test $is_x86_64 = yes; then
13452   LIBGO_IS_X86_64_TRUE=
13453   LIBGO_IS_X86_64_FALSE='#'
13454 else
13455   LIBGO_IS_X86_64_TRUE='#'
13456   LIBGO_IS_X86_64_FALSE=
13457 fi
13458
13459
13460
13461 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13462 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13463   GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13464 fi
13465
13466
13467 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13468 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13469   GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13470 fi
13471
13472
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13474 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13475 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13476   $as_echo_n "(cached) " >&6
13477 else
13478   CFLAGS_hold=$CFLAGS
13479 CFLAGS="$CFLAGS -fsplit-stack"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h.  */
13482 int i;
13483 _ACEOF
13484 if ac_fn_c_try_compile "$LINENO"; then :
13485   libgo_cv_c_split_stack_supported=yes
13486 else
13487   libgo_cv_c_split_stack_supported=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 CFLAGS=$CFLAGS_hold
13491 fi
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13493 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13494 if test "$libgo_cv_c_split_stack_supported" = yes; then
13495   SPLIT_STACK=-fsplit-stack
13496
13497 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13498
13499 else
13500   SPLIT_STACK=
13501 fi
13502
13503  if test "$libgo_cv_c_split_stack_supported" = yes; then
13504   USING_SPLIT_STACK_TRUE=
13505   USING_SPLIT_STACK_FALSE='#'
13506 else
13507   USING_SPLIT_STACK_TRUE='#'
13508   USING_SPLIT_STACK_FALSE=
13509 fi
13510
13511
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13513 $as_echo_n "checking whether linker supports split stack... " >&6; }
13514 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13515   $as_echo_n "(cached) " >&6
13516 else
13517   libgo_cv_c_linker_supports_split_stack=no
13518 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13519   libgo_cv_c_linker_supports_split_stack=yes
13520 fi
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13523 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13524 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13525
13526 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13527
13528 fi
13529
13530 MATH_LIBS=
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13532 $as_echo_n "checking for sqrt in -lm... " >&6; }
13533 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13534   $as_echo_n "(cached) " >&6
13535 else
13536   ac_check_lib_save_LIBS=$LIBS
13537 LIBS="-lm  $LIBS"
13538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h.  */
13540
13541 /* Override any GCC internal prototype to avoid an error.
13542    Use char because int might match the return type of a GCC
13543    builtin and then its argument prototype would still apply.  */
13544 #ifdef __cplusplus
13545 extern "C"
13546 #endif
13547 char sqrt ();
13548 int
13549 main ()
13550 {
13551 return sqrt ();
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 if ac_fn_c_try_link "$LINENO"; then :
13557   ac_cv_lib_m_sqrt=yes
13558 else
13559   ac_cv_lib_m_sqrt=no
13560 fi
13561 rm -f core conftest.err conftest.$ac_objext \
13562     conftest$ac_exeext conftest.$ac_ext
13563 LIBS=$ac_check_lib_save_LIBS
13564 fi
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13566 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13567 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13568   MATH_LIBS=-lm
13569 fi
13570
13571
13572
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13574 $as_echo_n "checking for socket libraries... " >&6; }
13575 if test "${libgo_cv_lib_sockets+set}" = set; then :
13576   $as_echo_n "(cached) " >&6
13577 else
13578   libgo_cv_lib_sockets=
13579    libgo_check_both=no
13580    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13581 if test "x$ac_cv_func_connect" = x""yes; then :
13582   libgo_check_socket=no
13583 else
13584   libgo_check_socket=yes
13585 fi
13586
13587    if test "$libgo_check_socket" = "yes"; then
13588      unset ac_cv_func_connect
13589      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13590 $as_echo_n "checking for main in -lsocket... " >&6; }
13591 if test "${ac_cv_lib_socket_main+set}" = set; then :
13592   $as_echo_n "(cached) " >&6
13593 else
13594   ac_check_lib_save_LIBS=$LIBS
13595 LIBS="-lsocket  $LIBS"
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h.  */
13598
13599
13600 int
13601 main ()
13602 {
13603 return main ();
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 if ac_fn_c_try_link "$LINENO"; then :
13609   ac_cv_lib_socket_main=yes
13610 else
13611   ac_cv_lib_socket_main=no
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext \
13614     conftest$ac_exeext conftest.$ac_ext
13615 LIBS=$ac_check_lib_save_LIBS
13616 fi
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13618 $as_echo "$ac_cv_lib_socket_main" >&6; }
13619 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13620   libgo_cv_lib_sockets="-lsocket"
13621 else
13622   libgo_check_both=yes
13623 fi
13624
13625    fi
13626    if test "$libgo_check_both" = "yes"; then
13627      libgo_old_libs=$LIBS
13628      LIBS="$LIBS -lsocket -lnsl"
13629      unset ac_cv_func_accept
13630      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13631 if test "x$ac_cv_func_accept" = x""yes; then :
13632   libgo_check_nsl=no
13633                     libgo_cv_lib_sockets="-lsocket -lnsl"
13634 fi
13635
13636      unset ac_cv_func_accept
13637      LIBS=$libgo_old_libs
13638    fi
13639    unset ac_cv_func_gethostbyname
13640    libgo_old_libs="$LIBS"
13641    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13642 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13643
13644 else
13645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13646 $as_echo_n "checking for main in -lnsl... " >&6; }
13647 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13648   $as_echo_n "(cached) " >&6
13649 else
13650   ac_check_lib_save_LIBS=$LIBS
13651 LIBS="-lnsl  $LIBS"
13652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h.  */
13654
13655
13656 int
13657 main ()
13658 {
13659 return main ();
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 if ac_fn_c_try_link "$LINENO"; then :
13665   ac_cv_lib_nsl_main=yes
13666 else
13667   ac_cv_lib_nsl_main=no
13668 fi
13669 rm -f core conftest.err conftest.$ac_objext \
13670     conftest$ac_exeext conftest.$ac_ext
13671 LIBS=$ac_check_lib_save_LIBS
13672 fi
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13674 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13675 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13676   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13677 fi
13678
13679 fi
13680
13681    unset ac_cv_func_gethostbyname
13682    LIBS=$libgo_old_libs
13683
13684 fi
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13686 $as_echo "$libgo_cv_lib_sockets" >&6; }
13687 NET_LIBS="$libgo_cv_lib_sockets"
13688
13689
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13691 $as_echo_n "checking whether -pthread is supported... " >&6; }
13692 if test "${libgo_cv_lib_pthread+set}" = set; then :
13693   $as_echo_n "(cached) " >&6
13694 else
13695   CFLAGS_hold=$CFLAGS
13696 CFLAGS="$CFLAGS -pthread"
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h.  */
13699 int i;
13700 _ACEOF
13701 if ac_fn_c_try_compile "$LINENO"; then :
13702   libgo_cv_lib_pthread=yes
13703 else
13704   libgo_cv_lib_pthread=no
13705 fi
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 CFLAGS=$CFLAGS_hold
13708 fi
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13710 $as_echo "$libgo_cv_lib_pthread" >&6; }
13711 PTHREAD_CFLAGS=
13712 if test "$libgo_cv_lib_pthread" = yes; then
13713   PTHREAD_CFLAGS=-pthread
13714 fi
13715
13716
13717 PTHREAD_LIBS=
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13719 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13720 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13721   $as_echo_n "(cached) " >&6
13722 else
13723   ac_check_lib_save_LIBS=$LIBS
13724 LIBS="-lpthread  $LIBS"
13725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13726 /* end confdefs.h.  */
13727
13728 /* Override any GCC internal prototype to avoid an error.
13729    Use char because int might match the return type of a GCC
13730    builtin and then its argument prototype would still apply.  */
13731 #ifdef __cplusplus
13732 extern "C"
13733 #endif
13734 char pthread_create ();
13735 int
13736 main ()
13737 {
13738 return pthread_create ();
13739   ;
13740   return 0;
13741 }
13742 _ACEOF
13743 if ac_fn_c_try_link "$LINENO"; then :
13744   ac_cv_lib_pthread_pthread_create=yes
13745 else
13746   ac_cv_lib_pthread_pthread_create=no
13747 fi
13748 rm -f core conftest.err conftest.$ac_objext \
13749     conftest$ac_exeext conftest.$ac_ext
13750 LIBS=$ac_check_lib_save_LIBS
13751 fi
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13753 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13754 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13755   PTHREAD_LIBS=-lpthread
13756 fi
13757
13758
13759
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13761 $as_echo_n "checking for library containing sched_yield... " >&6; }
13762 if test "${ac_cv_search_sched_yield+set}" = set; then :
13763   $as_echo_n "(cached) " >&6
13764 else
13765   ac_func_search_save_LIBS=$LIBS
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h.  */
13768
13769 /* Override any GCC internal prototype to avoid an error.
13770    Use char because int might match the return type of a GCC
13771    builtin and then its argument prototype would still apply.  */
13772 #ifdef __cplusplus
13773 extern "C"
13774 #endif
13775 char sched_yield ();
13776 int
13777 main ()
13778 {
13779 return sched_yield ();
13780   ;
13781   return 0;
13782 }
13783 _ACEOF
13784 for ac_lib in '' rt; do
13785   if test -z "$ac_lib"; then
13786     ac_res="none required"
13787   else
13788     ac_res=-l$ac_lib
13789     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13790   fi
13791   if ac_fn_c_try_link "$LINENO"; then :
13792   ac_cv_search_sched_yield=$ac_res
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext \
13795     conftest$ac_exeext
13796   if test "${ac_cv_search_sched_yield+set}" = set; then :
13797   break
13798 fi
13799 done
13800 if test "${ac_cv_search_sched_yield+set}" = set; then :
13801
13802 else
13803   ac_cv_search_sched_yield=no
13804 fi
13805 rm conftest.$ac_ext
13806 LIBS=$ac_func_search_save_LIBS
13807 fi
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13809 $as_echo "$ac_cv_search_sched_yield" >&6; }
13810 ac_res=$ac_cv_search_sched_yield
13811 if test "$ac_res" != no; then :
13812   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13813
13814 fi
13815
13816
13817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13818 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13819 if test "${ac_cv_c_bigendian+set}" = set; then :
13820   $as_echo_n "(cached) " >&6
13821 else
13822   ac_cv_c_bigendian=unknown
13823     # See if we're dealing with a universal compiler.
13824     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h.  */
13826 #ifndef __APPLE_CC__
13827                not a universal capable compiler
13828              #endif
13829              typedef int dummy;
13830
13831 _ACEOF
13832 if ac_fn_c_try_compile "$LINENO"; then :
13833
13834         # Check for potential -arch flags.  It is not universal unless
13835         # there are at least two -arch flags with different values.
13836         ac_arch=
13837         ac_prev=
13838         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13839          if test -n "$ac_prev"; then
13840            case $ac_word in
13841              i?86 | x86_64 | ppc | ppc64)
13842                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13843                  ac_arch=$ac_word
13844                else
13845                  ac_cv_c_bigendian=universal
13846                  break
13847                fi
13848                ;;
13849            esac
13850            ac_prev=
13851          elif test "x$ac_word" = "x-arch"; then
13852            ac_prev=arch
13853          fi
13854        done
13855 fi
13856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13857     if test $ac_cv_c_bigendian = unknown; then
13858       # See if sys/param.h defines the BYTE_ORDER macro.
13859       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13860 /* end confdefs.h.  */
13861 #include <sys/types.h>
13862              #include <sys/param.h>
13863
13864 int
13865 main ()
13866 {
13867 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13868                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13869                      && LITTLE_ENDIAN)
13870               bogus endian macros
13871              #endif
13872
13873   ;
13874   return 0;
13875 }
13876 _ACEOF
13877 if ac_fn_c_try_compile "$LINENO"; then :
13878   # It does; now see whether it defined to BIG_ENDIAN or not.
13879          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13880 /* end confdefs.h.  */
13881 #include <sys/types.h>
13882                 #include <sys/param.h>
13883
13884 int
13885 main ()
13886 {
13887 #if BYTE_ORDER != BIG_ENDIAN
13888                  not big endian
13889                 #endif
13890
13891   ;
13892   return 0;
13893 }
13894 _ACEOF
13895 if ac_fn_c_try_compile "$LINENO"; then :
13896   ac_cv_c_bigendian=yes
13897 else
13898   ac_cv_c_bigendian=no
13899 fi
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901 fi
13902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13903     fi
13904     if test $ac_cv_c_bigendian = unknown; then
13905       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13906       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h.  */
13908 #include <limits.h>
13909
13910 int
13911 main ()
13912 {
13913 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13914               bogus endian macros
13915              #endif
13916
13917   ;
13918   return 0;
13919 }
13920 _ACEOF
13921 if ac_fn_c_try_compile "$LINENO"; then :
13922   # It does; now see whether it defined to _BIG_ENDIAN or not.
13923          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13924 /* end confdefs.h.  */
13925 #include <limits.h>
13926
13927 int
13928 main ()
13929 {
13930 #ifndef _BIG_ENDIAN
13931                  not big endian
13932                 #endif
13933
13934   ;
13935   return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_compile "$LINENO"; then :
13939   ac_cv_c_bigendian=yes
13940 else
13941   ac_cv_c_bigendian=no
13942 fi
13943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13944 fi
13945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13946     fi
13947     if test $ac_cv_c_bigendian = unknown; then
13948       # Compile a test program.
13949       if test "$cross_compiling" = yes; then :
13950   # Try to guess by grepping values from an object file.
13951          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13952 /* end confdefs.h.  */
13953 short int ascii_mm[] =
13954                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13955                 short int ascii_ii[] =
13956                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13957                 int use_ascii (int i) {
13958                   return ascii_mm[i] + ascii_ii[i];
13959                 }
13960                 short int ebcdic_ii[] =
13961                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13962                 short int ebcdic_mm[] =
13963                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13964                 int use_ebcdic (int i) {
13965                   return ebcdic_mm[i] + ebcdic_ii[i];
13966                 }
13967                 extern int foo;
13968
13969 int
13970 main ()
13971 {
13972 return use_ascii (foo) == use_ebcdic (foo);
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 if ac_fn_c_try_compile "$LINENO"; then :
13978   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13979               ac_cv_c_bigendian=yes
13980             fi
13981             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13982               if test "$ac_cv_c_bigendian" = unknown; then
13983                 ac_cv_c_bigendian=no
13984               else
13985                 # finding both strings is unlikely to happen, but who knows?
13986                 ac_cv_c_bigendian=unknown
13987               fi
13988             fi
13989 fi
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991 else
13992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993 /* end confdefs.h.  */
13994 $ac_includes_default
13995 int
13996 main ()
13997 {
13998
13999              /* Are we little or big endian?  From Harbison&Steele.  */
14000              union
14001              {
14002                long int l;
14003                char c[sizeof (long int)];
14004              } u;
14005              u.l = 1;
14006              return u.c[sizeof (long int) - 1] == 1;
14007
14008   ;
14009   return 0;
14010 }
14011 _ACEOF
14012 if ac_fn_c_try_run "$LINENO"; then :
14013   ac_cv_c_bigendian=no
14014 else
14015   ac_cv_c_bigendian=yes
14016 fi
14017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14018   conftest.$ac_objext conftest.beam conftest.$ac_ext
14019 fi
14020
14021     fi
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14024 $as_echo "$ac_cv_c_bigendian" >&6; }
14025  case $ac_cv_c_bigendian in #(
14026    yes)
14027      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14028 ;; #(
14029    no)
14030       ;; #(
14031    universal)
14032
14033 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14034
14035      ;; #(
14036    *)
14037      as_fn_error "unknown endianness
14038  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14039  esac
14040
14041
14042
14043
14044 # Check whether --with-system-libunwind was given.
14045 if test "${with_system_libunwind+set}" = set; then :
14046   withval=$with_system_libunwind;
14047 fi
14048
14049   # If system-libunwind was not specifically set, pick a default setting.
14050   if test x$with_system_libunwind = x; then
14051     case ${target} in
14052       ia64-*-hpux*) with_system_libunwind=yes ;;
14053       *) with_system_libunwind=no ;;
14054     esac
14055   fi
14056   # Based on system-libunwind and target, do we have ipinfo?
14057   if  test x$with_system_libunwind = xyes; then
14058     case ${target} in
14059       ia64-*-*) have_unwind_getipinfo=no ;;
14060       *) have_unwind_getipinfo=yes ;;
14061     esac
14062   else
14063     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14064
14065     case ${target} in
14066       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14067       *) have_unwind_getipinfo=yes ;;
14068     esac
14069
14070   fi
14071
14072   if test x$have_unwind_getipinfo = xyes; then
14073
14074 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14075
14076   fi
14077
14078
14079 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
14080 do :
14081   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14082 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14083 eval as_val=\$$as_ac_Header
14084    if test "x$as_val" = x""yes; then :
14085   cat >>confdefs.h <<_ACEOF
14086 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14087 _ACEOF
14088
14089 fi
14090
14091 done
14092
14093  if test "$ac_cv_header_sys_mman_h" = yes; then
14094   HAVE_SYS_MMAN_H_TRUE=
14095   HAVE_SYS_MMAN_H_FALSE='#'
14096 else
14097   HAVE_SYS_MMAN_H_TRUE='#'
14098   HAVE_SYS_MMAN_H_FALSE=
14099 fi
14100
14101 for ac_func in srandom random strsignal
14102 do :
14103   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14104 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14105 eval as_val=\$$as_ac_var
14106    if test "x$as_val" = x""yes; then :
14107   cat >>confdefs.h <<_ACEOF
14108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14109 _ACEOF
14110
14111 fi
14112 done
14113
14114
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14116 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14117 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14118   $as_echo_n "(cached) " >&6
14119 else
14120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h.  */
14122
14123 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14124 uint32 i;
14125 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14126
14127 _ACEOF
14128 if ac_fn_c_try_link "$LINENO"; then :
14129   libgo_cv_func___sync_bool_compare_and_swap_4=yes
14130 else
14131   libgo_cv_func___sync_bool_compare_and_swap_4=no
14132 fi
14133 rm -f core conftest.err conftest.$ac_objext \
14134     conftest$ac_exeext conftest.$ac_ext
14135 fi
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14137 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14138 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14139
14140 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14141
14142 fi
14143
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14145 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14146 if test "${libgo_cv_c_stringops+set}" = set; then :
14147   $as_echo_n "(cached) " >&6
14148 else
14149   CFLAGS_hold=$CFLAGS
14150 CFLAGS="$CFLAGS -minline-all-stringops"
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h.  */
14153 int i;
14154 _ACEOF
14155 if ac_fn_c_try_compile "$LINENO"; then :
14156   libgo_cv_c_stringops=yes
14157 else
14158   libgo_cv_c_stringops=no
14159 fi
14160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161 CFLAGS=$CFLAGS_hold
14162 fi
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14164 $as_echo "$libgo_cv_c_stringops" >&6; }
14165 STRINGOPS_FLAG=
14166 if test "$libgo_cv_c_stringops" = yes; then
14167   STRINGOPS_FLAG=-minline-all-stringops
14168 fi
14169
14170
14171 CFLAGS_hold=$CFLAGS
14172 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14173 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14174 if test "x$ac_cv_type_off64_t" = x""yes; then :
14175
14176 cat >>confdefs.h <<_ACEOF
14177 #define HAVE_OFF64_T 1
14178 _ACEOF
14179
14180
14181 fi
14182
14183 CFLAGS=$CFLAGS_hold
14184
14185 cat >confcache <<\_ACEOF
14186 # This file is a shell script that caches the results of configure
14187 # tests run on this system so they can be shared between configure
14188 # scripts and configure runs, see configure's option --config-cache.
14189 # It is not useful on other systems.  If it contains results you don't
14190 # want to keep, you may remove or edit it.
14191 #
14192 # config.status only pays attention to the cache file if you give it
14193 # the --recheck option to rerun configure.
14194 #
14195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14197 # following values.
14198
14199 _ACEOF
14200
14201 # The following way of writing the cache mishandles newlines in values,
14202 # but we know of no workaround that is simple, portable, and efficient.
14203 # So, we kill variables containing newlines.
14204 # Ultrix sh set writes to stderr and can't be redirected directly,
14205 # and sets the high bit in the cache file unless we assign to the vars.
14206 (
14207   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14208     eval ac_val=\$$ac_var
14209     case $ac_val in #(
14210     *${as_nl}*)
14211       case $ac_var in #(
14212       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14213 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14214       esac
14215       case $ac_var in #(
14216       _ | IFS | as_nl) ;; #(
14217       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14218       *) { eval $ac_var=; unset $ac_var;} ;;
14219       esac ;;
14220     esac
14221   done
14222
14223   (set) 2>&1 |
14224     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14225     *${as_nl}ac_space=\ *)
14226       # `set' does not quote correctly, so add quotes: double-quote
14227       # substitution turns \\\\ into \\, and sed turns \\ into \.
14228       sed -n \
14229         "s/'/'\\\\''/g;
14230           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14231       ;; #(
14232     *)
14233       # `set' quotes correctly as required by POSIX, so do not add quotes.
14234       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14235       ;;
14236     esac |
14237     sort
14238 ) |
14239   sed '
14240      /^ac_cv_env_/b end
14241      t clear
14242      :clear
14243      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14244      t end
14245      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14246      :end' >>confcache
14247 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14248   if test -w "$cache_file"; then
14249     test "x$cache_file" != "x/dev/null" &&
14250       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14251 $as_echo "$as_me: updating cache $cache_file" >&6;}
14252     cat confcache >$cache_file
14253   else
14254     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14255 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14256   fi
14257 fi
14258 rm -f confcache
14259
14260 if test ${multilib} = yes; then
14261   multilib_arg="--enable-multilib"
14262 else
14263   multilib_arg=
14264 fi
14265
14266 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14267
14268
14269 ac_config_commands="$ac_config_commands default"
14270
14271
14272 cat >confcache <<\_ACEOF
14273 # This file is a shell script that caches the results of configure
14274 # tests run on this system so they can be shared between configure
14275 # scripts and configure runs, see configure's option --config-cache.
14276 # It is not useful on other systems.  If it contains results you don't
14277 # want to keep, you may remove or edit it.
14278 #
14279 # config.status only pays attention to the cache file if you give it
14280 # the --recheck option to rerun configure.
14281 #
14282 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14283 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14284 # following values.
14285
14286 _ACEOF
14287
14288 # The following way of writing the cache mishandles newlines in values,
14289 # but we know of no workaround that is simple, portable, and efficient.
14290 # So, we kill variables containing newlines.
14291 # Ultrix sh set writes to stderr and can't be redirected directly,
14292 # and sets the high bit in the cache file unless we assign to the vars.
14293 (
14294   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14295     eval ac_val=\$$ac_var
14296     case $ac_val in #(
14297     *${as_nl}*)
14298       case $ac_var in #(
14299       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14300 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14301       esac
14302       case $ac_var in #(
14303       _ | IFS | as_nl) ;; #(
14304       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14305       *) { eval $ac_var=; unset $ac_var;} ;;
14306       esac ;;
14307     esac
14308   done
14309
14310   (set) 2>&1 |
14311     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14312     *${as_nl}ac_space=\ *)
14313       # `set' does not quote correctly, so add quotes: double-quote
14314       # substitution turns \\\\ into \\, and sed turns \\ into \.
14315       sed -n \
14316         "s/'/'\\\\''/g;
14317           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14318       ;; #(
14319     *)
14320       # `set' quotes correctly as required by POSIX, so do not add quotes.
14321       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14322       ;;
14323     esac |
14324     sort
14325 ) |
14326   sed '
14327      /^ac_cv_env_/b end
14328      t clear
14329      :clear
14330      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14331      t end
14332      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14333      :end' >>confcache
14334 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14335   if test -w "$cache_file"; then
14336     test "x$cache_file" != "x/dev/null" &&
14337       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14338 $as_echo "$as_me: updating cache $cache_file" >&6;}
14339     cat confcache >$cache_file
14340   else
14341     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14342 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14343   fi
14344 fi
14345 rm -f confcache
14346
14347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14348 # Let make expand exec_prefix.
14349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14350
14351 DEFS=-DHAVE_CONFIG_H
14352
14353 ac_libobjs=
14354 ac_ltlibobjs=
14355 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14356   # 1. Remove the extension, and $U if already installed.
14357   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14358   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14359   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14360   #    will be set to the directory where LIBOBJS objects are built.
14361   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14362   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14363 done
14364 LIBOBJS=$ac_libobjs
14365
14366 LTLIBOBJS=$ac_ltlibobjs
14367
14368
14369  if test -n "$EXEEXT"; then
14370   am__EXEEXT_TRUE=
14371   am__EXEEXT_FALSE='#'
14372 else
14373   am__EXEEXT_TRUE='#'
14374   am__EXEEXT_FALSE=
14375 fi
14376
14377 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14378   as_fn_error "conditional \"AMDEP\" was never defined.
14379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14380 fi
14381 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14382   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14384 fi
14385 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14386   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14388 fi
14389 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14390   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14392 fi
14393 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14394   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14396 fi
14397 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14398   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14400 fi
14401 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14402   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14404 fi
14405 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14406   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14408 fi
14409 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14410   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14412 fi
14413 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14414   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14416 fi
14417 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14418   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14420 fi
14421 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14422   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14424 fi
14425 if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
14426   as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
14427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14428 fi
14429 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14430   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14432 fi
14433 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14434   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14436 fi
14437 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14438   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14440 fi
14441 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14442   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14444 fi
14445 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14446   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14448 fi
14449 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14450   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14452 fi
14453
14454 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14455   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14457 fi
14458
14459 : ${CONFIG_STATUS=./config.status}
14460 ac_write_fail=0
14461 ac_clean_files_save=$ac_clean_files
14462 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14464 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14465 as_write_fail=0
14466 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14467 #! $SHELL
14468 # Generated by $as_me.
14469 # Run this file to recreate the current configuration.
14470 # Compiler output produced by configure, useful for debugging
14471 # configure, is in config.log if it exists.
14472
14473 debug=false
14474 ac_cs_recheck=false
14475 ac_cs_silent=false
14476
14477 SHELL=\${CONFIG_SHELL-$SHELL}
14478 export SHELL
14479 _ASEOF
14480 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14481 ## -------------------- ##
14482 ## M4sh Initialization. ##
14483 ## -------------------- ##
14484
14485 # Be more Bourne compatible
14486 DUALCASE=1; export DUALCASE # for MKS sh
14487 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14488   emulate sh
14489   NULLCMD=:
14490   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14491   # is contrary to our usage.  Disable this feature.
14492   alias -g '${1+"$@"}'='"$@"'
14493   setopt NO_GLOB_SUBST
14494 else
14495   case `(set -o) 2>/dev/null` in #(
14496   *posix*) :
14497     set -o posix ;; #(
14498   *) :
14499      ;;
14500 esac
14501 fi
14502
14503
14504 as_nl='
14505 '
14506 export as_nl
14507 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14508 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14509 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14510 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14511 # Prefer a ksh shell builtin over an external printf program on Solaris,
14512 # but without wasting forks for bash or zsh.
14513 if test -z "$BASH_VERSION$ZSH_VERSION" \
14514     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14515   as_echo='print -r --'
14516   as_echo_n='print -rn --'
14517 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14518   as_echo='printf %s\n'
14519   as_echo_n='printf %s'
14520 else
14521   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14522     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14523     as_echo_n='/usr/ucb/echo -n'
14524   else
14525     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14526     as_echo_n_body='eval
14527       arg=$1;
14528       case $arg in #(
14529       *"$as_nl"*)
14530         expr "X$arg" : "X\\(.*\\)$as_nl";
14531         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14532       esac;
14533       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14534     '
14535     export as_echo_n_body
14536     as_echo_n='sh -c $as_echo_n_body as_echo'
14537   fi
14538   export as_echo_body
14539   as_echo='sh -c $as_echo_body as_echo'
14540 fi
14541
14542 # The user is always right.
14543 if test "${PATH_SEPARATOR+set}" != set; then
14544   PATH_SEPARATOR=:
14545   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14546     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14547       PATH_SEPARATOR=';'
14548   }
14549 fi
14550
14551
14552 # IFS
14553 # We need space, tab and new line, in precisely that order.  Quoting is
14554 # there to prevent editors from complaining about space-tab.
14555 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14556 # splitting by setting IFS to empty value.)
14557 IFS=" ""        $as_nl"
14558
14559 # Find who we are.  Look in the path if we contain no directory separator.
14560 case $0 in #((
14561   *[\\/]* ) as_myself=$0 ;;
14562   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14563 for as_dir in $PATH
14564 do
14565   IFS=$as_save_IFS
14566   test -z "$as_dir" && as_dir=.
14567     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14568   done
14569 IFS=$as_save_IFS
14570
14571      ;;
14572 esac
14573 # We did not find ourselves, most probably we were run as `sh COMMAND'
14574 # in which case we are not to be found in the path.
14575 if test "x$as_myself" = x; then
14576   as_myself=$0
14577 fi
14578 if test ! -f "$as_myself"; then
14579   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14580   exit 1
14581 fi
14582
14583 # Unset variables that we do not need and which cause bugs (e.g. in
14584 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14585 # suppresses any "Segmentation fault" message there.  '((' could
14586 # trigger a bug in pdksh 5.2.14.
14587 for as_var in BASH_ENV ENV MAIL MAILPATH
14588 do eval test x\${$as_var+set} = xset \
14589   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14590 done
14591 PS1='$ '
14592 PS2='> '
14593 PS4='+ '
14594
14595 # NLS nuisances.
14596 LC_ALL=C
14597 export LC_ALL
14598 LANGUAGE=C
14599 export LANGUAGE
14600
14601 # CDPATH.
14602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14603
14604
14605 # as_fn_error ERROR [LINENO LOG_FD]
14606 # ---------------------------------
14607 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14608 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14609 # script with status $?, using 1 if that was 0.
14610 as_fn_error ()
14611 {
14612   as_status=$?; test $as_status -eq 0 && as_status=1
14613   if test "$3"; then
14614     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14615     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14616   fi
14617   $as_echo "$as_me: error: $1" >&2
14618   as_fn_exit $as_status
14619 } # as_fn_error
14620
14621
14622 # as_fn_set_status STATUS
14623 # -----------------------
14624 # Set $? to STATUS, without forking.
14625 as_fn_set_status ()
14626 {
14627   return $1
14628 } # as_fn_set_status
14629
14630 # as_fn_exit STATUS
14631 # -----------------
14632 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14633 as_fn_exit ()
14634 {
14635   set +e
14636   as_fn_set_status $1
14637   exit $1
14638 } # as_fn_exit
14639
14640 # as_fn_unset VAR
14641 # ---------------
14642 # Portably unset VAR.
14643 as_fn_unset ()
14644 {
14645   { eval $1=; unset $1;}
14646 }
14647 as_unset=as_fn_unset
14648 # as_fn_append VAR VALUE
14649 # ----------------------
14650 # Append the text in VALUE to the end of the definition contained in VAR. Take
14651 # advantage of any shell optimizations that allow amortized linear growth over
14652 # repeated appends, instead of the typical quadratic growth present in naive
14653 # implementations.
14654 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14655   eval 'as_fn_append ()
14656   {
14657     eval $1+=\$2
14658   }'
14659 else
14660   as_fn_append ()
14661   {
14662     eval $1=\$$1\$2
14663   }
14664 fi # as_fn_append
14665
14666 # as_fn_arith ARG...
14667 # ------------------
14668 # Perform arithmetic evaluation on the ARGs, and store the result in the
14669 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14670 # must be portable across $(()) and expr.
14671 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14672   eval 'as_fn_arith ()
14673   {
14674     as_val=$(( $* ))
14675   }'
14676 else
14677   as_fn_arith ()
14678   {
14679     as_val=`expr "$@" || test $? -eq 1`
14680   }
14681 fi # as_fn_arith
14682
14683
14684 if expr a : '\(a\)' >/dev/null 2>&1 &&
14685    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14686   as_expr=expr
14687 else
14688   as_expr=false
14689 fi
14690
14691 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14692   as_basename=basename
14693 else
14694   as_basename=false
14695 fi
14696
14697 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14698   as_dirname=dirname
14699 else
14700   as_dirname=false
14701 fi
14702
14703 as_me=`$as_basename -- "$0" ||
14704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14705          X"$0" : 'X\(//\)$' \| \
14706          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14707 $as_echo X/"$0" |
14708     sed '/^.*\/\([^/][^/]*\)\/*$/{
14709             s//\1/
14710             q
14711           }
14712           /^X\/\(\/\/\)$/{
14713             s//\1/
14714             q
14715           }
14716           /^X\/\(\/\).*/{
14717             s//\1/
14718             q
14719           }
14720           s/.*/./; q'`
14721
14722 # Avoid depending upon Character Ranges.
14723 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14724 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14725 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14726 as_cr_digits='0123456789'
14727 as_cr_alnum=$as_cr_Letters$as_cr_digits
14728
14729 ECHO_C= ECHO_N= ECHO_T=
14730 case `echo -n x` in #(((((
14731 -n*)
14732   case `echo 'xy\c'` in
14733   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14734   xy)  ECHO_C='\c';;
14735   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14736        ECHO_T=' ';;
14737   esac;;
14738 *)
14739   ECHO_N='-n';;
14740 esac
14741
14742 rm -f conf$$ conf$$.exe conf$$.file
14743 if test -d conf$$.dir; then
14744   rm -f conf$$.dir/conf$$.file
14745 else
14746   rm -f conf$$.dir
14747   mkdir conf$$.dir 2>/dev/null
14748 fi
14749 if (echo >conf$$.file) 2>/dev/null; then
14750   if ln -s conf$$.file conf$$ 2>/dev/null; then
14751     as_ln_s='ln -s'
14752     # ... but there are two gotchas:
14753     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14754     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14755     # In both cases, we have to default to `cp -p'.
14756     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14757       as_ln_s='cp -p'
14758   elif ln conf$$.file conf$$ 2>/dev/null; then
14759     as_ln_s=ln
14760   else
14761     as_ln_s='cp -p'
14762   fi
14763 else
14764   as_ln_s='cp -p'
14765 fi
14766 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14767 rmdir conf$$.dir 2>/dev/null
14768
14769
14770 # as_fn_mkdir_p
14771 # -------------
14772 # Create "$as_dir" as a directory, including parents if necessary.
14773 as_fn_mkdir_p ()
14774 {
14775
14776   case $as_dir in #(
14777   -*) as_dir=./$as_dir;;
14778   esac
14779   test -d "$as_dir" || eval $as_mkdir_p || {
14780     as_dirs=
14781     while :; do
14782       case $as_dir in #(
14783       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14784       *) as_qdir=$as_dir;;
14785       esac
14786       as_dirs="'$as_qdir' $as_dirs"
14787       as_dir=`$as_dirname -- "$as_dir" ||
14788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14789          X"$as_dir" : 'X\(//\)[^/]' \| \
14790          X"$as_dir" : 'X\(//\)$' \| \
14791          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14792 $as_echo X"$as_dir" |
14793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14794             s//\1/
14795             q
14796           }
14797           /^X\(\/\/\)[^/].*/{
14798             s//\1/
14799             q
14800           }
14801           /^X\(\/\/\)$/{
14802             s//\1/
14803             q
14804           }
14805           /^X\(\/\).*/{
14806             s//\1/
14807             q
14808           }
14809           s/.*/./; q'`
14810       test -d "$as_dir" && break
14811     done
14812     test -z "$as_dirs" || eval "mkdir $as_dirs"
14813   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14814
14815
14816 } # as_fn_mkdir_p
14817 if mkdir -p . 2>/dev/null; then
14818   as_mkdir_p='mkdir -p "$as_dir"'
14819 else
14820   test -d ./-p && rmdir ./-p
14821   as_mkdir_p=false
14822 fi
14823
14824 if test -x / >/dev/null 2>&1; then
14825   as_test_x='test -x'
14826 else
14827   if ls -dL / >/dev/null 2>&1; then
14828     as_ls_L_option=L
14829   else
14830     as_ls_L_option=
14831   fi
14832   as_test_x='
14833     eval sh -c '\''
14834       if test -d "$1"; then
14835         test -d "$1/.";
14836       else
14837         case $1 in #(
14838         -*)set "./$1";;
14839         esac;
14840         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14841         ???[sx]*):;;*)false;;esac;fi
14842     '\'' sh
14843   '
14844 fi
14845 as_executable_p=$as_test_x
14846
14847 # Sed expression to map a string onto a valid CPP name.
14848 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14849
14850 # Sed expression to map a string onto a valid variable name.
14851 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14852
14853
14854 exec 6>&1
14855 ## ----------------------------------- ##
14856 ## Main body of $CONFIG_STATUS script. ##
14857 ## ----------------------------------- ##
14858 _ASEOF
14859 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14860
14861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862 # Save the log message, to keep $0 and so on meaningful, and to
14863 # report actual input values of CONFIG_FILES etc. instead of their
14864 # values after options handling.
14865 ac_log="
14866 This file was extended by package-unused $as_me version-unused, which was
14867 generated by GNU Autoconf 2.64.  Invocation command line was
14868
14869   CONFIG_FILES    = $CONFIG_FILES
14870   CONFIG_HEADERS  = $CONFIG_HEADERS
14871   CONFIG_LINKS    = $CONFIG_LINKS
14872   CONFIG_COMMANDS = $CONFIG_COMMANDS
14873   $ $0 $@
14874
14875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14876 "
14877
14878 _ACEOF
14879
14880 case $ac_config_files in *"
14881 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14882 esac
14883
14884 case $ac_config_headers in *"
14885 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14886 esac
14887
14888
14889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14890 # Files that config.status was made for.
14891 config_files="$ac_config_files"
14892 config_headers="$ac_config_headers"
14893 config_commands="$ac_config_commands"
14894
14895 _ACEOF
14896
14897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14898 ac_cs_usage="\
14899 \`$as_me' instantiates files and other configuration actions
14900 from templates according to the current configuration.  Unless the files
14901 and actions are specified as TAGs, all are instantiated by default.
14902
14903 Usage: $0 [OPTION]... [TAG]...
14904
14905   -h, --help       print this help, then exit
14906   -V, --version    print version number and configuration settings, then exit
14907   -q, --quiet, --silent
14908                    do not print progress messages
14909   -d, --debug      don't remove temporary files
14910       --recheck    update $as_me by reconfiguring in the same conditions
14911       --file=FILE[:TEMPLATE]
14912                    instantiate the configuration file FILE
14913       --header=FILE[:TEMPLATE]
14914                    instantiate the configuration header FILE
14915
14916 Configuration files:
14917 $config_files
14918
14919 Configuration headers:
14920 $config_headers
14921
14922 Configuration commands:
14923 $config_commands
14924
14925 Report bugs to the package provider."
14926
14927 _ACEOF
14928 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14929 ac_cs_version="\\
14930 package-unused config.status version-unused
14931 configured by $0, generated by GNU Autoconf 2.64,
14932   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14933
14934 Copyright (C) 2009 Free Software Foundation, Inc.
14935 This config.status script is free software; the Free Software Foundation
14936 gives unlimited permission to copy, distribute and modify it."
14937
14938 ac_pwd='$ac_pwd'
14939 srcdir='$srcdir'
14940 INSTALL='$INSTALL'
14941 MKDIR_P='$MKDIR_P'
14942 AWK='$AWK'
14943 test -n "\$AWK" || AWK=awk
14944 _ACEOF
14945
14946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14947 # The default lists apply if the user does not specify any file.
14948 ac_need_defaults=:
14949 while test $# != 0
14950 do
14951   case $1 in
14952   --*=*)
14953     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14954     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14955     ac_shift=:
14956     ;;
14957   *)
14958     ac_option=$1
14959     ac_optarg=$2
14960     ac_shift=shift
14961     ;;
14962   esac
14963
14964   case $ac_option in
14965   # Handling of the options.
14966   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14967     ac_cs_recheck=: ;;
14968   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14969     $as_echo "$ac_cs_version"; exit ;;
14970   --debug | --debu | --deb | --de | --d | -d )
14971     debug=: ;;
14972   --file | --fil | --fi | --f )
14973     $ac_shift
14974     case $ac_optarg in
14975     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14976     esac
14977     as_fn_append CONFIG_FILES " '$ac_optarg'"
14978     ac_need_defaults=false;;
14979   --header | --heade | --head | --hea )
14980     $ac_shift
14981     case $ac_optarg in
14982     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14983     esac
14984     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14985     ac_need_defaults=false;;
14986   --he | --h)
14987     # Conflict between --help and --header
14988     as_fn_error "ambiguous option: \`$1'
14989 Try \`$0 --help' for more information.";;
14990   --help | --hel | -h )
14991     $as_echo "$ac_cs_usage"; exit ;;
14992   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14993   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14994     ac_cs_silent=: ;;
14995
14996   # This is an error.
14997   -*) as_fn_error "unrecognized option: \`$1'
14998 Try \`$0 --help' for more information." ;;
14999
15000   *) as_fn_append ac_config_targets " $1"
15001      ac_need_defaults=false ;;
15002
15003   esac
15004   shift
15005 done
15006
15007 ac_configure_extra_args=
15008
15009 if $ac_cs_silent; then
15010   exec 6>/dev/null
15011   ac_configure_extra_args="$ac_configure_extra_args --silent"
15012 fi
15013
15014 _ACEOF
15015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15016 if \$ac_cs_recheck; then
15017   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15018   shift
15019   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15020   CONFIG_SHELL='$SHELL'
15021   export CONFIG_SHELL
15022   exec "\$@"
15023 fi
15024
15025 _ACEOF
15026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15027 exec 5>>config.log
15028 {
15029   echo
15030   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15031 ## Running $as_me. ##
15032 _ASBOX
15033   $as_echo "$ac_log"
15034 } >&5
15035
15036 _ACEOF
15037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15038 #
15039 # INIT-COMMANDS
15040 #
15041
15042 srcdir="$srcdir"
15043 host="$host"
15044 target="$target"
15045 with_multisubdir="$with_multisubdir"
15046 with_multisrctop="$with_multisrctop"
15047 with_target_subdir="$with_target_subdir"
15048 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15049 multi_basedir="$multi_basedir"
15050 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15051 CC="$CC"
15052 CXX="$CXX"
15053 GFORTRAN="$GFORTRAN"
15054 GCJ="$GCJ"
15055 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15056
15057
15058 # The HP-UX ksh and POSIX shell print the target directory to stdout
15059 # if CDPATH is set.
15060 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15061
15062 sed_quote_subst='$sed_quote_subst'
15063 double_quote_subst='$double_quote_subst'
15064 delay_variable_subst='$delay_variable_subst'
15065 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15066 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15067 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15068 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15069 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15070 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15071 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15072 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15073 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15074 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15075 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15076 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15077 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15078 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15079 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15080 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15081 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15082 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15083 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15084 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15085 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15086 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15087 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15088 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15089 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15090 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15091 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15092 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15093 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15094 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15095 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15096 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15097 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15098 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15099 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15100 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15101 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15102 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15103 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15104 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15105 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15106 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15107 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15108 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15109 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15110 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15111 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15112 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15113 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"`'
15114 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15115 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15116 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15117 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15118 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15119 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15120 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15121 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15122 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15123 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15124 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15125 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15126 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15127 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15128 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15129 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15130 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15131 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15132 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15133 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15134 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15135 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15136 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15137 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15138 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15139 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15140 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15141 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15142 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15143 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15144 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15145 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15146 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15147 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15148 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15149 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15150 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15151 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15152 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15153 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15154 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15155 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15156 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15157 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15158 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15159 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15160 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15161 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15162 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15163 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15164 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15165 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15166 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15167 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15168 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15169 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15170 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15171 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15172 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15173 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15174 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15175 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15176 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15177 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15178 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15179 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15180 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15181 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15182 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15183 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15184 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15185 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15186 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15187 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15188 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15189 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15190 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15191 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15192 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15193 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15194 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15195 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15196 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15197 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15198 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15199 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15200 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15201 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15202 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15203 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15204 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15205 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15206 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15207 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15208 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15209 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15210 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15211 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15212 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15213 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15214 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15215 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15216 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15217 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15218 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15219 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15220 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15221 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15222 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15223 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15224 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15225 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15226 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15227 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15228
15229 LTCC='$LTCC'
15230 LTCFLAGS='$LTCFLAGS'
15231 compiler='$compiler_DEFAULT'
15232
15233 # A function that is used when there is no print builtin or printf.
15234 func_fallback_echo ()
15235 {
15236   eval 'cat <<_LTECHO_EOF
15237 \$1
15238 _LTECHO_EOF'
15239 }
15240
15241 # Quote evaled strings.
15242 for var in SED \
15243 GREP \
15244 EGREP \
15245 FGREP \
15246 SHELL \
15247 ECHO \
15248 LD \
15249 NM \
15250 LN_S \
15251 lt_SP2NL \
15252 lt_NL2SP \
15253 reload_flag \
15254 OBJDUMP \
15255 deplibs_check_method \
15256 file_magic_cmd \
15257 AR \
15258 AR_FLAGS \
15259 STRIP \
15260 RANLIB \
15261 CC \
15262 CFLAGS \
15263 compiler \
15264 lt_cv_sys_global_symbol_pipe \
15265 lt_cv_sys_global_symbol_to_cdecl \
15266 lt_cv_sys_global_symbol_to_c_name_address \
15267 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15268 lt_prog_compiler_no_builtin_flag \
15269 lt_prog_compiler_wl \
15270 lt_prog_compiler_pic \
15271 lt_prog_compiler_static \
15272 lt_cv_prog_compiler_c_o \
15273 need_locks \
15274 DSYMUTIL \
15275 NMEDIT \
15276 LIPO \
15277 OTOOL \
15278 OTOOL64 \
15279 shrext_cmds \
15280 export_dynamic_flag_spec \
15281 whole_archive_flag_spec \
15282 compiler_needs_object \
15283 with_gnu_ld \
15284 allow_undefined_flag \
15285 no_undefined_flag \
15286 hardcode_libdir_flag_spec \
15287 hardcode_libdir_flag_spec_ld \
15288 hardcode_libdir_separator \
15289 fix_srcfile_path \
15290 exclude_expsyms \
15291 include_expsyms \
15292 file_list_spec \
15293 variables_saved_for_relink \
15294 libname_spec \
15295 library_names_spec \
15296 soname_spec \
15297 install_override_mode \
15298 finish_eval \
15299 old_striplib \
15300 striplib \
15301 LD_GO \
15302 reload_flag_GO \
15303 compiler_GO \
15304 lt_prog_compiler_no_builtin_flag_GO \
15305 lt_prog_compiler_wl_GO \
15306 lt_prog_compiler_pic_GO \
15307 lt_prog_compiler_static_GO \
15308 lt_cv_prog_compiler_c_o_GO \
15309 export_dynamic_flag_spec_GO \
15310 whole_archive_flag_spec_GO \
15311 compiler_needs_object_GO \
15312 with_gnu_ld_GO \
15313 allow_undefined_flag_GO \
15314 no_undefined_flag_GO \
15315 hardcode_libdir_flag_spec_GO \
15316 hardcode_libdir_flag_spec_ld_GO \
15317 hardcode_libdir_separator_GO \
15318 fix_srcfile_path_GO \
15319 exclude_expsyms_GO \
15320 include_expsyms_GO \
15321 file_list_spec_GO; do
15322     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15323     *[\\\\\\\`\\"\\\$]*)
15324       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15325       ;;
15326     *)
15327       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15328       ;;
15329     esac
15330 done
15331
15332 # Double-quote double-evaled strings.
15333 for var in reload_cmds \
15334 old_postinstall_cmds \
15335 old_postuninstall_cmds \
15336 old_archive_cmds \
15337 extract_expsyms_cmds \
15338 old_archive_from_new_cmds \
15339 old_archive_from_expsyms_cmds \
15340 archive_cmds \
15341 archive_expsym_cmds \
15342 module_cmds \
15343 module_expsym_cmds \
15344 export_symbols_cmds \
15345 prelink_cmds \
15346 postinstall_cmds \
15347 postuninstall_cmds \
15348 finish_cmds \
15349 sys_lib_search_path_spec \
15350 sys_lib_dlsearch_path_spec \
15351 reload_cmds_GO \
15352 old_archive_cmds_GO \
15353 old_archive_from_new_cmds_GO \
15354 old_archive_from_expsyms_cmds_GO \
15355 archive_cmds_GO \
15356 archive_expsym_cmds_GO \
15357 module_cmds_GO \
15358 module_expsym_cmds_GO \
15359 export_symbols_cmds_GO \
15360 prelink_cmds_GO; do
15361     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15362     *[\\\\\\\`\\"\\\$]*)
15363       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15364       ;;
15365     *)
15366       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15367       ;;
15368     esac
15369 done
15370
15371 ac_aux_dir='$ac_aux_dir'
15372 xsi_shell='$xsi_shell'
15373 lt_shell_append='$lt_shell_append'
15374
15375 # See if we are running on zsh, and set the options which allow our
15376 # commands through without removal of \ escapes INIT.
15377 if test -n "\${ZSH_VERSION+set}" ; then
15378    setopt NO_GLOB_SUBST
15379 fi
15380
15381
15382     PACKAGE='$PACKAGE'
15383     VERSION='$VERSION'
15384     TIMESTAMP='$TIMESTAMP'
15385     RM='$RM'
15386     ofile='$ofile'
15387
15388
15389
15390
15391
15392
15393 # Variables needed in config.status (file generation) which aren't already
15394 # passed by autoconf.
15395 SUBDIRS="$SUBDIRS"
15396
15397
15398 _ACEOF
15399
15400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15401
15402 # Handling of arguments.
15403 for ac_config_target in $ac_config_targets
15404 do
15405   case $ac_config_target in
15406     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15407     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15408     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15409     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15410     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15411     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15412     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15413
15414   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15415   esac
15416 done
15417
15418
15419 # If the user did not use the arguments to specify the items to instantiate,
15420 # then the envvar interface is used.  Set only those that are not.
15421 # We use the long form for the default assignment because of an extremely
15422 # bizarre bug on SunOS 4.1.3.
15423 if $ac_need_defaults; then
15424   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15425   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15426   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15427 fi
15428
15429 # Have a temporary directory for convenience.  Make it in the build tree
15430 # simply because there is no reason against having it here, and in addition,
15431 # creating and moving files from /tmp can sometimes cause problems.
15432 # Hook for its removal unless debugging.
15433 # Note that there is a small window in which the directory will not be cleaned:
15434 # after its creation but before its name has been assigned to `$tmp'.
15435 $debug ||
15436 {
15437   tmp=
15438   trap 'exit_status=$?
15439   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15440 ' 0
15441   trap 'as_fn_exit 1' 1 2 13 15
15442 }
15443 # Create a (secure) tmp directory for tmp files.
15444
15445 {
15446   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15447   test -n "$tmp" && test -d "$tmp"
15448 }  ||
15449 {
15450   tmp=./conf$$-$RANDOM
15451   (umask 077 && mkdir "$tmp")
15452 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15453
15454 # Set up the scripts for CONFIG_FILES section.
15455 # No need to generate them if there are no CONFIG_FILES.
15456 # This happens for instance with `./config.status config.h'.
15457 if test -n "$CONFIG_FILES"; then
15458
15459
15460 ac_cr=`echo X | tr X '\015'`
15461 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15462 # But we know of no other shell where ac_cr would be empty at this
15463 # point, so we can use a bashism as a fallback.
15464 if test "x$ac_cr" = x; then
15465   eval ac_cr=\$\'\\r\'
15466 fi
15467 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15468 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15469   ac_cs_awk_cr='\r'
15470 else
15471   ac_cs_awk_cr=$ac_cr
15472 fi
15473
15474 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15475 _ACEOF
15476
15477
15478 {
15479   echo "cat >conf$$subs.awk <<_ACEOF" &&
15480   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15481   echo "_ACEOF"
15482 } >conf$$subs.sh ||
15483   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15484 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15485 ac_delim='%!_!# '
15486 for ac_last_try in false false false false false :; do
15487   . ./conf$$subs.sh ||
15488     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15489
15490   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15491   if test $ac_delim_n = $ac_delim_num; then
15492     break
15493   elif $ac_last_try; then
15494     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15495   else
15496     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15497   fi
15498 done
15499 rm -f conf$$subs.sh
15500
15501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15502 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15503 _ACEOF
15504 sed -n '
15505 h
15506 s/^/S["/; s/!.*/"]=/
15507 p
15508 g
15509 s/^[^!]*!//
15510 :repl
15511 t repl
15512 s/'"$ac_delim"'$//
15513 t delim
15514 :nl
15515 h
15516 s/\(.\{148\}\).*/\1/
15517 t more1
15518 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15519 p
15520 n
15521 b repl
15522 :more1
15523 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15524 p
15525 g
15526 s/.\{148\}//
15527 t nl
15528 :delim
15529 h
15530 s/\(.\{148\}\).*/\1/
15531 t more2
15532 s/["\\]/\\&/g; s/^/"/; s/$/"/
15533 p
15534 b
15535 :more2
15536 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15537 p
15538 g
15539 s/.\{148\}//
15540 t delim
15541 ' <conf$$subs.awk | sed '
15542 /^[^""]/{
15543   N
15544   s/\n//
15545 }
15546 ' >>$CONFIG_STATUS || ac_write_fail=1
15547 rm -f conf$$subs.awk
15548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15549 _ACAWK
15550 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15551   for (key in S) S_is_set[key] = 1
15552   FS = "\a"
15553
15554 }
15555 {
15556   line = $ 0
15557   nfields = split(line, field, "@")
15558   substed = 0
15559   len = length(field[1])
15560   for (i = 2; i < nfields; i++) {
15561     key = field[i]
15562     keylen = length(key)
15563     if (S_is_set[key]) {
15564       value = S[key]
15565       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15566       len += length(value) + length(field[++i])
15567       substed = 1
15568     } else
15569       len += 1 + keylen
15570   }
15571
15572   print line
15573 }
15574
15575 _ACAWK
15576 _ACEOF
15577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15578 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15579   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15580 else
15581   cat
15582 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15583   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15584 _ACEOF
15585
15586 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15587 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15588 # trailing colons and then remove the whole line if VPATH becomes empty
15589 # (actually we leave an empty line to preserve line numbers).
15590 if test "x$srcdir" = x.; then
15591   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15592 s/:*\$(srcdir):*/:/
15593 s/:*\${srcdir}:*/:/
15594 s/:*@srcdir@:*/:/
15595 s/^\([^=]*=[     ]*\):*/\1/
15596 s/:*$//
15597 s/^[^=]*=[       ]*$//
15598 }'
15599 fi
15600
15601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15602 fi # test -n "$CONFIG_FILES"
15603
15604 # Set up the scripts for CONFIG_HEADERS section.
15605 # No need to generate them if there are no CONFIG_HEADERS.
15606 # This happens for instance with `./config.status Makefile'.
15607 if test -n "$CONFIG_HEADERS"; then
15608 cat >"$tmp/defines.awk" <<\_ACAWK ||
15609 BEGIN {
15610 _ACEOF
15611
15612 # Transform confdefs.h into an awk script `defines.awk', embedded as
15613 # here-document in config.status, that substitutes the proper values into
15614 # config.h.in to produce config.h.
15615
15616 # Create a delimiter string that does not exist in confdefs.h, to ease
15617 # handling of long lines.
15618 ac_delim='%!_!# '
15619 for ac_last_try in false false :; do
15620   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15621   if test -z "$ac_t"; then
15622     break
15623   elif $ac_last_try; then
15624     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15625   else
15626     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15627   fi
15628 done
15629
15630 # For the awk script, D is an array of macro values keyed by name,
15631 # likewise P contains macro parameters if any.  Preserve backslash
15632 # newline sequences.
15633
15634 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15635 sed -n '
15636 s/.\{148\}/&'"$ac_delim"'/g
15637 t rset
15638 :rset
15639 s/^[     ]*#[    ]*define[       ][      ]*/ /
15640 t def
15641 d
15642 :def
15643 s/\\$//
15644 t bsnl
15645 s/["\\]/\\&/g
15646 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15647 D["\1"]=" \3"/p
15648 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15649 d
15650 :bsnl
15651 s/["\\]/\\&/g
15652 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15653 D["\1"]=" \3\\\\\\n"\\/p
15654 t cont
15655 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15656 t cont
15657 d
15658 :cont
15659 n
15660 s/.\{148\}/&'"$ac_delim"'/g
15661 t clear
15662 :clear
15663 s/\\$//
15664 t bsnlc
15665 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15666 d
15667 :bsnlc
15668 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15669 b cont
15670 ' <confdefs.h | sed '
15671 s/'"$ac_delim"'/"\\\
15672 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15673
15674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15675   for (key in D) D_is_set[key] = 1
15676   FS = "\a"
15677 }
15678 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15679   line = \$ 0
15680   split(line, arg, " ")
15681   if (arg[1] == "#") {
15682     defundef = arg[2]
15683     mac1 = arg[3]
15684   } else {
15685     defundef = substr(arg[1], 2)
15686     mac1 = arg[2]
15687   }
15688   split(mac1, mac2, "(") #)
15689   macro = mac2[1]
15690   prefix = substr(line, 1, index(line, defundef) - 1)
15691   if (D_is_set[macro]) {
15692     # Preserve the white space surrounding the "#".
15693     print prefix "define", macro P[macro] D[macro]
15694     next
15695   } else {
15696     # Replace #undef with comments.  This is necessary, for example,
15697     # in the case of _POSIX_SOURCE, which is predefined and required
15698     # on some systems where configure will not decide to define it.
15699     if (defundef == "undef") {
15700       print "/*", prefix defundef, macro, "*/"
15701       next
15702     }
15703   }
15704 }
15705 { print }
15706 _ACAWK
15707 _ACEOF
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15710 fi # test -n "$CONFIG_HEADERS"
15711
15712
15713 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15714 shift
15715 for ac_tag
15716 do
15717   case $ac_tag in
15718   :[FHLC]) ac_mode=$ac_tag; continue;;
15719   esac
15720   case $ac_mode$ac_tag in
15721   :[FHL]*:*);;
15722   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15723   :[FH]-) ac_tag=-:-;;
15724   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15725   esac
15726   ac_save_IFS=$IFS
15727   IFS=:
15728   set x $ac_tag
15729   IFS=$ac_save_IFS
15730   shift
15731   ac_file=$1
15732   shift
15733
15734   case $ac_mode in
15735   :L) ac_source=$1;;
15736   :[FH])
15737     ac_file_inputs=
15738     for ac_f
15739     do
15740       case $ac_f in
15741       -) ac_f="$tmp/stdin";;
15742       *) # Look for the file first in the build tree, then in the source tree
15743          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15744          # because $ac_f cannot contain `:'.
15745          test -f "$ac_f" ||
15746            case $ac_f in
15747            [\\/$]*) false;;
15748            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15749            esac ||
15750            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15751       esac
15752       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15753       as_fn_append ac_file_inputs " '$ac_f'"
15754     done
15755
15756     # Let's still pretend it is `configure' which instantiates (i.e., don't
15757     # use $as_me), people would be surprised to read:
15758     #    /* config.h.  Generated by config.status.  */
15759     configure_input='Generated from '`
15760           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15761         `' by configure.'
15762     if test x"$ac_file" != x-; then
15763       configure_input="$ac_file.  $configure_input"
15764       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15765 $as_echo "$as_me: creating $ac_file" >&6;}
15766     fi
15767     # Neutralize special characters interpreted by sed in replacement strings.
15768     case $configure_input in #(
15769     *\&* | *\|* | *\\* )
15770        ac_sed_conf_input=`$as_echo "$configure_input" |
15771        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15772     *) ac_sed_conf_input=$configure_input;;
15773     esac
15774
15775     case $ac_tag in
15776     *:-:* | *:-) cat >"$tmp/stdin" \
15777       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15778     esac
15779     ;;
15780   esac
15781
15782   ac_dir=`$as_dirname -- "$ac_file" ||
15783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15784          X"$ac_file" : 'X\(//\)[^/]' \| \
15785          X"$ac_file" : 'X\(//\)$' \| \
15786          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15787 $as_echo X"$ac_file" |
15788     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15789             s//\1/
15790             q
15791           }
15792           /^X\(\/\/\)[^/].*/{
15793             s//\1/
15794             q
15795           }
15796           /^X\(\/\/\)$/{
15797             s//\1/
15798             q
15799           }
15800           /^X\(\/\).*/{
15801             s//\1/
15802             q
15803           }
15804           s/.*/./; q'`
15805   as_dir="$ac_dir"; as_fn_mkdir_p
15806   ac_builddir=.
15807
15808 case "$ac_dir" in
15809 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15810 *)
15811   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15812   # A ".." for each directory in $ac_dir_suffix.
15813   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15814   case $ac_top_builddir_sub in
15815   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15816   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15817   esac ;;
15818 esac
15819 ac_abs_top_builddir=$ac_pwd
15820 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15821 # for backward compatibility:
15822 ac_top_builddir=$ac_top_build_prefix
15823
15824 case $srcdir in
15825   .)  # We are building in place.
15826     ac_srcdir=.
15827     ac_top_srcdir=$ac_top_builddir_sub
15828     ac_abs_top_srcdir=$ac_pwd ;;
15829   [\\/]* | ?:[\\/]* )  # Absolute name.
15830     ac_srcdir=$srcdir$ac_dir_suffix;
15831     ac_top_srcdir=$srcdir
15832     ac_abs_top_srcdir=$srcdir ;;
15833   *) # Relative name.
15834     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15835     ac_top_srcdir=$ac_top_build_prefix$srcdir
15836     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15837 esac
15838 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15839
15840
15841   case $ac_mode in
15842   :F)
15843   #
15844   # CONFIG_FILE
15845   #
15846
15847   case $INSTALL in
15848   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15849   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15850   esac
15851   ac_MKDIR_P=$MKDIR_P
15852   case $MKDIR_P in
15853   [\\/$]* | ?:[\\/]* ) ;;
15854   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15855   esac
15856 _ACEOF
15857
15858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15859 # If the template does not know about datarootdir, expand it.
15860 # FIXME: This hack should be removed a few years after 2.60.
15861 ac_datarootdir_hack=; ac_datarootdir_seen=
15862 ac_sed_dataroot='
15863 /datarootdir/ {
15864   p
15865   q
15866 }
15867 /@datadir@/p
15868 /@docdir@/p
15869 /@infodir@/p
15870 /@localedir@/p
15871 /@mandir@/p'
15872 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15873 *datarootdir*) ac_datarootdir_seen=yes;;
15874 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15875   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15876 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15877 _ACEOF
15878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15879   ac_datarootdir_hack='
15880   s&@datadir@&$datadir&g
15881   s&@docdir@&$docdir&g
15882   s&@infodir@&$infodir&g
15883   s&@localedir@&$localedir&g
15884   s&@mandir@&$mandir&g
15885   s&\\\${datarootdir}&$datarootdir&g' ;;
15886 esac
15887 _ACEOF
15888
15889 # Neutralize VPATH when `$srcdir' = `.'.
15890 # Shell code in configure.ac might set extrasub.
15891 # FIXME: do we really want to maintain this feature?
15892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15893 ac_sed_extra="$ac_vpsub
15894 $extrasub
15895 _ACEOF
15896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15897 :t
15898 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15899 s|@configure_input@|$ac_sed_conf_input|;t t
15900 s&@top_builddir@&$ac_top_builddir_sub&;t t
15901 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15902 s&@srcdir@&$ac_srcdir&;t t
15903 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15904 s&@top_srcdir@&$ac_top_srcdir&;t t
15905 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15906 s&@builddir@&$ac_builddir&;t t
15907 s&@abs_builddir@&$ac_abs_builddir&;t t
15908 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15909 s&@INSTALL@&$ac_INSTALL&;t t
15910 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15911 $ac_datarootdir_hack
15912 "
15913 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15914   || as_fn_error "could not create $ac_file" "$LINENO" 5
15915
15916 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15917   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15918   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15919   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15920 which seems to be undefined.  Please make sure it is defined." >&5
15921 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15922 which seems to be undefined.  Please make sure it is defined." >&2;}
15923
15924   rm -f "$tmp/stdin"
15925   case $ac_file in
15926   -) cat "$tmp/out" && rm -f "$tmp/out";;
15927   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15928   esac \
15929   || as_fn_error "could not create $ac_file" "$LINENO" 5
15930  ;;
15931   :H)
15932   #
15933   # CONFIG_HEADER
15934   #
15935   if test x"$ac_file" != x-; then
15936     {
15937       $as_echo "/* $configure_input  */" \
15938       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15939     } >"$tmp/config.h" \
15940       || as_fn_error "could not create $ac_file" "$LINENO" 5
15941     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15942       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15943 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15944     else
15945       rm -f "$ac_file"
15946       mv "$tmp/config.h" "$ac_file" \
15947         || as_fn_error "could not create $ac_file" "$LINENO" 5
15948     fi
15949   else
15950     $as_echo "/* $configure_input  */" \
15951       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15952       || as_fn_error "could not create -" "$LINENO" 5
15953   fi
15954 # Compute "$ac_file"'s index in $config_headers.
15955 _am_arg="$ac_file"
15956 _am_stamp_count=1
15957 for _am_header in $config_headers :; do
15958   case $_am_header in
15959     $_am_arg | $_am_arg:* )
15960       break ;;
15961     * )
15962       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15963   esac
15964 done
15965 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15966 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15967          X"$_am_arg" : 'X\(//\)[^/]' \| \
15968          X"$_am_arg" : 'X\(//\)$' \| \
15969          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15970 $as_echo X"$_am_arg" |
15971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15972             s//\1/
15973             q
15974           }
15975           /^X\(\/\/\)[^/].*/{
15976             s//\1/
15977             q
15978           }
15979           /^X\(\/\/\)$/{
15980             s//\1/
15981             q
15982           }
15983           /^X\(\/\).*/{
15984             s//\1/
15985             q
15986           }
15987           s/.*/./; q'`/stamp-h$_am_stamp_count
15988  ;;
15989
15990   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15991 $as_echo "$as_me: executing $ac_file commands" >&6;}
15992  ;;
15993   esac
15994
15995
15996   case $ac_file$ac_mode in
15997     "default-1":C)
15998 # Only add multilib support code if we just rebuilt the top-level
15999 # Makefile.
16000 case " $CONFIG_FILES " in
16001  *" Makefile "*)
16002    ac_file=Makefile . ${multi_basedir}/config-ml.in
16003    ;;
16004 esac ;;
16005     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16006   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16007   # are listed without --file.  Let's play safe and only enable the eval
16008   # if we detect the quoting.
16009   case $CONFIG_FILES in
16010   *\'*) eval set x "$CONFIG_FILES" ;;
16011   *)   set x $CONFIG_FILES ;;
16012   esac
16013   shift
16014   for mf
16015   do
16016     # Strip MF so we end up with the name of the file.
16017     mf=`echo "$mf" | sed -e 's/:.*$//'`
16018     # Check whether this is an Automake generated Makefile or not.
16019     # We used to match only the files named `Makefile.in', but
16020     # some people rename them; so instead we look at the file content.
16021     # Grep'ing the first line is not enough: some people post-process
16022     # each Makefile.in and add a new line on top of each file to say so.
16023     # Grep'ing the whole file is not good either: AIX grep has a line
16024     # limit of 2048, but all sed's we know have understand at least 4000.
16025     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16026       dirpart=`$as_dirname -- "$mf" ||
16027 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16028          X"$mf" : 'X\(//\)[^/]' \| \
16029          X"$mf" : 'X\(//\)$' \| \
16030          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16031 $as_echo X"$mf" |
16032     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16033             s//\1/
16034             q
16035           }
16036           /^X\(\/\/\)[^/].*/{
16037             s//\1/
16038             q
16039           }
16040           /^X\(\/\/\)$/{
16041             s//\1/
16042             q
16043           }
16044           /^X\(\/\).*/{
16045             s//\1/
16046             q
16047           }
16048           s/.*/./; q'`
16049     else
16050       continue
16051     fi
16052     # Extract the definition of DEPDIR, am__include, and am__quote
16053     # from the Makefile without running `make'.
16054     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16055     test -z "$DEPDIR" && continue
16056     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16057     test -z "am__include" && continue
16058     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16059     # When using ansi2knr, U may be empty or an underscore; expand it
16060     U=`sed -n 's/^U = //p' < "$mf"`
16061     # Find all dependency output files, they are included files with
16062     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16063     # simplest approach to changing $(DEPDIR) to its actual value in the
16064     # expansion.
16065     for file in `sed -n "
16066       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16067          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16068       # Make sure the directory exists.
16069       test -f "$dirpart/$file" && continue
16070       fdir=`$as_dirname -- "$file" ||
16071 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16072          X"$file" : 'X\(//\)[^/]' \| \
16073          X"$file" : 'X\(//\)$' \| \
16074          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16075 $as_echo X"$file" |
16076     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16077             s//\1/
16078             q
16079           }
16080           /^X\(\/\/\)[^/].*/{
16081             s//\1/
16082             q
16083           }
16084           /^X\(\/\/\)$/{
16085             s//\1/
16086             q
16087           }
16088           /^X\(\/\).*/{
16089             s//\1/
16090             q
16091           }
16092           s/.*/./; q'`
16093       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16094       # echo "creating $dirpart/$file"
16095       echo '# dummy' > "$dirpart/$file"
16096     done
16097   done
16098 }
16099  ;;
16100     "libtool":C)
16101
16102     # See if we are running on zsh, and set the options which allow our
16103     # commands through without removal of \ escapes.
16104     if test -n "${ZSH_VERSION+set}" ; then
16105       setopt NO_GLOB_SUBST
16106     fi
16107
16108     cfgfile="${ofile}T"
16109     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16110     $RM "$cfgfile"
16111
16112     cat <<_LT_EOF >> "$cfgfile"
16113 #! $SHELL
16114
16115 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16116 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16117 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16118 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16119 #
16120 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16121 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16122 #   Written by Gordon Matzigkeit, 1996
16123 #
16124 #   This file is part of GNU Libtool.
16125 #
16126 # GNU Libtool is free software; you can redistribute it and/or
16127 # modify it under the terms of the GNU General Public License as
16128 # published by the Free Software Foundation; either version 2 of
16129 # the License, or (at your option) any later version.
16130 #
16131 # As a special exception to the GNU General Public License,
16132 # if you distribute this file as part of a program or library that
16133 # is built using GNU Libtool, you may include this file under the
16134 # same distribution terms that you use for the rest of that program.
16135 #
16136 # GNU Libtool is distributed in the hope that it will be useful,
16137 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16138 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16139 # GNU General Public License for more details.
16140 #
16141 # You should have received a copy of the GNU General Public License
16142 # along with GNU Libtool; see the file COPYING.  If not, a copy
16143 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16144 # obtained by writing to the Free Software Foundation, Inc.,
16145 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16146
16147
16148 # The names of the tagged configurations supported by this script.
16149 available_tags="GO "
16150
16151 # ### BEGIN LIBTOOL CONFIG
16152
16153 # A sed program that does not truncate output.
16154 SED=$lt_SED
16155
16156 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16157 Xsed="\$SED -e 1s/^X//"
16158
16159 # A grep program that handles long lines.
16160 GREP=$lt_GREP
16161
16162 # An ERE matcher.
16163 EGREP=$lt_EGREP
16164
16165 # A literal string matcher.
16166 FGREP=$lt_FGREP
16167
16168 # Shell to use when invoking shell scripts.
16169 SHELL=$lt_SHELL
16170
16171 # An echo program that protects backslashes.
16172 ECHO=$lt_ECHO
16173
16174 # Which release of libtool.m4 was used?
16175 macro_version=$macro_version
16176 macro_revision=$macro_revision
16177
16178 # Whether or not to build shared libraries.
16179 build_libtool_libs=$enable_shared
16180
16181 # Whether or not to build static libraries.
16182 build_old_libs=$enable_static
16183
16184 # What type of objects to build.
16185 pic_mode=$pic_mode
16186
16187 # Whether or not to optimize for fast installation.
16188 fast_install=$enable_fast_install
16189
16190 # The host system.
16191 host_alias=$host_alias
16192 host=$host
16193 host_os=$host_os
16194
16195 # The build system.
16196 build_alias=$build_alias
16197 build=$build
16198 build_os=$build_os
16199
16200 # A BSD- or MS-compatible name lister.
16201 NM=$lt_NM
16202
16203 # Whether we need soft or hard links.
16204 LN_S=$lt_LN_S
16205
16206 # What is the maximum length of a command?
16207 max_cmd_len=$max_cmd_len
16208
16209 # Object file suffix (normally "o").
16210 objext=$ac_objext
16211
16212 # Executable file suffix (normally "").
16213 exeext=$exeext
16214
16215 # whether the shell understands "unset".
16216 lt_unset=$lt_unset
16217
16218 # turn spaces into newlines.
16219 SP2NL=$lt_lt_SP2NL
16220
16221 # turn newlines into spaces.
16222 NL2SP=$lt_lt_NL2SP
16223
16224 # An object symbol dumper.
16225 OBJDUMP=$lt_OBJDUMP
16226
16227 # Method to check whether dependent libraries are shared objects.
16228 deplibs_check_method=$lt_deplibs_check_method
16229
16230 # Command to use when deplibs_check_method == "file_magic".
16231 file_magic_cmd=$lt_file_magic_cmd
16232
16233 # The archiver.
16234 AR=$lt_AR
16235 AR_FLAGS=$lt_AR_FLAGS
16236
16237 # A symbol stripping program.
16238 STRIP=$lt_STRIP
16239
16240 # Commands used to install an old-style archive.
16241 RANLIB=$lt_RANLIB
16242 old_postinstall_cmds=$lt_old_postinstall_cmds
16243 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16244
16245 # Whether to use a lock for old archive extraction.
16246 lock_old_archive_extraction=$lock_old_archive_extraction
16247
16248 # A C compiler.
16249 LTCC=$lt_CC
16250
16251 # LTCC compiler flags.
16252 LTCFLAGS=$lt_CFLAGS
16253
16254 # Take the output of nm and produce a listing of raw symbols and C names.
16255 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16256
16257 # Transform the output of nm in a proper C declaration.
16258 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16259
16260 # Transform the output of nm in a C name address pair.
16261 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16262
16263 # Transform the output of nm in a C name address pair when lib prefix is needed.
16264 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16265
16266 # The name of the directory that contains temporary libtool files.
16267 objdir=$objdir
16268
16269 # Used to examine libraries when file_magic_cmd begins with "file".
16270 MAGIC_CMD=$MAGIC_CMD
16271
16272 # Must we lock files when doing compilation?
16273 need_locks=$lt_need_locks
16274
16275 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16276 DSYMUTIL=$lt_DSYMUTIL
16277
16278 # Tool to change global to local symbols on Mac OS X.
16279 NMEDIT=$lt_NMEDIT
16280
16281 # Tool to manipulate fat objects and archives on Mac OS X.
16282 LIPO=$lt_LIPO
16283
16284 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16285 OTOOL=$lt_OTOOL
16286
16287 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16288 OTOOL64=$lt_OTOOL64
16289
16290 # Old archive suffix (normally "a").
16291 libext=$libext
16292
16293 # Shared library suffix (normally ".so").
16294 shrext_cmds=$lt_shrext_cmds
16295
16296 # The commands to extract the exported symbol list from a shared archive.
16297 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16298
16299 # Variables whose values should be saved in libtool wrapper scripts and
16300 # restored at link time.
16301 variables_saved_for_relink=$lt_variables_saved_for_relink
16302
16303 # Do we need the "lib" prefix for modules?
16304 need_lib_prefix=$need_lib_prefix
16305
16306 # Do we need a version for libraries?
16307 need_version=$need_version
16308
16309 # Library versioning type.
16310 version_type=$version_type
16311
16312 # Shared library runtime path variable.
16313 runpath_var=$runpath_var
16314
16315 # Shared library path variable.
16316 shlibpath_var=$shlibpath_var
16317
16318 # Is shlibpath searched before the hard-coded library search path?
16319 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16320
16321 # Format of library name prefix.
16322 libname_spec=$lt_libname_spec
16323
16324 # List of archive names.  First name is the real one, the rest are links.
16325 # The last name is the one that the linker finds with -lNAME
16326 library_names_spec=$lt_library_names_spec
16327
16328 # The coded name of the library, if different from the real name.
16329 soname_spec=$lt_soname_spec
16330
16331 # Permission mode override for installation of shared libraries.
16332 install_override_mode=$lt_install_override_mode
16333
16334 # Command to use after installation of a shared archive.
16335 postinstall_cmds=$lt_postinstall_cmds
16336
16337 # Command to use after uninstallation of a shared archive.
16338 postuninstall_cmds=$lt_postuninstall_cmds
16339
16340 # Commands used to finish a libtool library installation in a directory.
16341 finish_cmds=$lt_finish_cmds
16342
16343 # As "finish_cmds", except a single script fragment to be evaled but
16344 # not shown.
16345 finish_eval=$lt_finish_eval
16346
16347 # Whether we should hardcode library paths into libraries.
16348 hardcode_into_libs=$hardcode_into_libs
16349
16350 # Compile-time system search path for libraries.
16351 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16352
16353 # Run-time system search path for libraries.
16354 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16355
16356 # Whether dlopen is supported.
16357 dlopen_support=$enable_dlopen
16358
16359 # Whether dlopen of programs is supported.
16360 dlopen_self=$enable_dlopen_self
16361
16362 # Whether dlopen of statically linked programs is supported.
16363 dlopen_self_static=$enable_dlopen_self_static
16364
16365 # Commands to strip libraries.
16366 old_striplib=$lt_old_striplib
16367 striplib=$lt_striplib
16368
16369
16370 # The linker used to build libraries.
16371 LD=$lt_LD
16372
16373 # How to create reloadable object files.
16374 reload_flag=$lt_reload_flag
16375 reload_cmds=$lt_reload_cmds
16376
16377 # Commands used to build an old-style archive.
16378 old_archive_cmds=$lt_old_archive_cmds
16379
16380 # A language specific compiler.
16381 CC=$lt_compiler
16382
16383 # Is the compiler the GNU compiler?
16384 with_gcc=$GCC
16385
16386 # Compiler flag to turn off builtin functions.
16387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16388
16389 # How to pass a linker flag through the compiler.
16390 wl=$lt_lt_prog_compiler_wl
16391
16392 # Additional compiler flags for building library objects.
16393 pic_flag=$lt_lt_prog_compiler_pic
16394
16395 # Compiler flag to prevent dynamic linking.
16396 link_static_flag=$lt_lt_prog_compiler_static
16397
16398 # Does compiler simultaneously support -c and -o options?
16399 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16400
16401 # Whether or not to add -lc for building shared libraries.
16402 build_libtool_need_lc=$archive_cmds_need_lc
16403
16404 # Whether or not to disallow shared libs when runtime libs are static.
16405 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16406
16407 # Compiler flag to allow reflexive dlopens.
16408 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16409
16410 # Compiler flag to generate shared objects directly from archives.
16411 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16412
16413 # Whether the compiler copes with passing no objects directly.
16414 compiler_needs_object=$lt_compiler_needs_object
16415
16416 # Create an old-style archive from a shared archive.
16417 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16418
16419 # Create a temporary old-style archive to link instead of a shared archive.
16420 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16421
16422 # Commands used to build a shared archive.
16423 archive_cmds=$lt_archive_cmds
16424 archive_expsym_cmds=$lt_archive_expsym_cmds
16425
16426 # Commands used to build a loadable module if different from building
16427 # a shared archive.
16428 module_cmds=$lt_module_cmds
16429 module_expsym_cmds=$lt_module_expsym_cmds
16430
16431 # Whether we are building with GNU ld or not.
16432 with_gnu_ld=$lt_with_gnu_ld
16433
16434 # Flag that allows shared libraries with undefined symbols to be built.
16435 allow_undefined_flag=$lt_allow_undefined_flag
16436
16437 # Flag that enforces no undefined symbols.
16438 no_undefined_flag=$lt_no_undefined_flag
16439
16440 # Flag to hardcode \$libdir into a binary during linking.
16441 # This must work even if \$libdir does not exist
16442 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16443
16444 # If ld is used when linking, flag to hardcode \$libdir into a binary
16445 # during linking.  This must work even if \$libdir does not exist.
16446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16447
16448 # Whether we need a single "-rpath" flag with a separated argument.
16449 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16450
16451 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16452 # DIR into the resulting binary.
16453 hardcode_direct=$hardcode_direct
16454
16455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16456 # DIR into the resulting binary and the resulting library dependency is
16457 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16458 # library is relocated.
16459 hardcode_direct_absolute=$hardcode_direct_absolute
16460
16461 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16462 # into the resulting binary.
16463 hardcode_minus_L=$hardcode_minus_L
16464
16465 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16466 # into the resulting binary.
16467 hardcode_shlibpath_var=$hardcode_shlibpath_var
16468
16469 # Set to "yes" if building a shared library automatically hardcodes DIR
16470 # into the library and all subsequent libraries and executables linked
16471 # against it.
16472 hardcode_automatic=$hardcode_automatic
16473
16474 # Set to yes if linker adds runtime paths of dependent libraries
16475 # to runtime path list.
16476 inherit_rpath=$inherit_rpath
16477
16478 # Whether libtool must link a program against all its dependency libraries.
16479 link_all_deplibs=$link_all_deplibs
16480
16481 # Fix the shell variable \$srcfile for the compiler.
16482 fix_srcfile_path=$lt_fix_srcfile_path
16483
16484 # Set to "yes" if exported symbols are required.
16485 always_export_symbols=$always_export_symbols
16486
16487 # The commands to list exported symbols.
16488 export_symbols_cmds=$lt_export_symbols_cmds
16489
16490 # Symbols that should not be listed in the preloaded symbols.
16491 exclude_expsyms=$lt_exclude_expsyms
16492
16493 # Symbols that must always be exported.
16494 include_expsyms=$lt_include_expsyms
16495
16496 # Commands necessary for linking programs (against libraries) with templates.
16497 prelink_cmds=$lt_prelink_cmds
16498
16499 # Specify filename containing input files.
16500 file_list_spec=$lt_file_list_spec
16501
16502 # How to hardcode a shared library path into an executable.
16503 hardcode_action=$hardcode_action
16504
16505 # ### END LIBTOOL CONFIG
16506
16507 _LT_EOF
16508
16509   case $host_os in
16510   aix3*)
16511     cat <<\_LT_EOF >> "$cfgfile"
16512 # AIX sometimes has problems with the GCC collect2 program.  For some
16513 # reason, if we set the COLLECT_NAMES environment variable, the problems
16514 # vanish in a puff of smoke.
16515 if test "X${COLLECT_NAMES+set}" != Xset; then
16516   COLLECT_NAMES=
16517   export COLLECT_NAMES
16518 fi
16519 _LT_EOF
16520     ;;
16521   esac
16522
16523
16524 ltmain="$ac_aux_dir/ltmain.sh"
16525
16526
16527   # We use sed instead of cat because bash on DJGPP gets confused if
16528   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16529   # text mode, it properly converts lines to CR/LF.  This bash problem
16530   # is reportedly fixed, but why not run on old versions too?
16531   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16532     || (rm -f "$cfgfile"; exit 1)
16533
16534   case $xsi_shell in
16535   yes)
16536     cat << \_LT_EOF >> "$cfgfile"
16537
16538 # func_dirname file append nondir_replacement
16539 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16540 # otherwise set result to NONDIR_REPLACEMENT.
16541 func_dirname ()
16542 {
16543   case ${1} in
16544     */*) func_dirname_result="${1%/*}${2}" ;;
16545     *  ) func_dirname_result="${3}" ;;
16546   esac
16547 }
16548
16549 # func_basename file
16550 func_basename ()
16551 {
16552   func_basename_result="${1##*/}"
16553 }
16554
16555 # func_dirname_and_basename file append nondir_replacement
16556 # perform func_basename and func_dirname in a single function
16557 # call:
16558 #   dirname:  Compute the dirname of FILE.  If nonempty,
16559 #             add APPEND to the result, otherwise set result
16560 #             to NONDIR_REPLACEMENT.
16561 #             value returned in "$func_dirname_result"
16562 #   basename: Compute filename of FILE.
16563 #             value retuned in "$func_basename_result"
16564 # Implementation must be kept synchronized with func_dirname
16565 # and func_basename. For efficiency, we do not delegate to
16566 # those functions but instead duplicate the functionality here.
16567 func_dirname_and_basename ()
16568 {
16569   case ${1} in
16570     */*) func_dirname_result="${1%/*}${2}" ;;
16571     *  ) func_dirname_result="${3}" ;;
16572   esac
16573   func_basename_result="${1##*/}"
16574 }
16575
16576 # func_stripname prefix suffix name
16577 # strip PREFIX and SUFFIX off of NAME.
16578 # PREFIX and SUFFIX must not contain globbing or regex special
16579 # characters, hashes, percent signs, but SUFFIX may contain a leading
16580 # dot (in which case that matches only a dot).
16581 func_stripname ()
16582 {
16583   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16584   # positional parameters, so assign one to ordinary parameter first.
16585   func_stripname_result=${3}
16586   func_stripname_result=${func_stripname_result#"${1}"}
16587   func_stripname_result=${func_stripname_result%"${2}"}
16588 }
16589
16590 # func_opt_split
16591 func_opt_split ()
16592 {
16593   func_opt_split_opt=${1%%=*}
16594   func_opt_split_arg=${1#*=}
16595 }
16596
16597 # func_lo2o object
16598 func_lo2o ()
16599 {
16600   case ${1} in
16601     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16602     *)    func_lo2o_result=${1} ;;
16603   esac
16604 }
16605
16606 # func_xform libobj-or-source
16607 func_xform ()
16608 {
16609   func_xform_result=${1%.*}.lo
16610 }
16611
16612 # func_arith arithmetic-term...
16613 func_arith ()
16614 {
16615   func_arith_result=$(( $* ))
16616 }
16617
16618 # func_len string
16619 # STRING may not start with a hyphen.
16620 func_len ()
16621 {
16622   func_len_result=${#1}
16623 }
16624
16625 _LT_EOF
16626     ;;
16627   *) # Bourne compatible functions.
16628     cat << \_LT_EOF >> "$cfgfile"
16629
16630 # func_dirname file append nondir_replacement
16631 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16632 # otherwise set result to NONDIR_REPLACEMENT.
16633 func_dirname ()
16634 {
16635   # Extract subdirectory from the argument.
16636   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16637   if test "X$func_dirname_result" = "X${1}"; then
16638     func_dirname_result="${3}"
16639   else
16640     func_dirname_result="$func_dirname_result${2}"
16641   fi
16642 }
16643
16644 # func_basename file
16645 func_basename ()
16646 {
16647   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16648 }
16649
16650
16651 # func_stripname prefix suffix name
16652 # strip PREFIX and SUFFIX off of NAME.
16653 # PREFIX and SUFFIX must not contain globbing or regex special
16654 # characters, hashes, percent signs, but SUFFIX may contain a leading
16655 # dot (in which case that matches only a dot).
16656 # func_strip_suffix prefix name
16657 func_stripname ()
16658 {
16659   case ${2} in
16660     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16661     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16662   esac
16663 }
16664
16665 # sed scripts:
16666 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16667 my_sed_long_arg='1s/^-[^=]*=//'
16668
16669 # func_opt_split
16670 func_opt_split ()
16671 {
16672   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16673   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16674 }
16675
16676 # func_lo2o object
16677 func_lo2o ()
16678 {
16679   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16680 }
16681
16682 # func_xform libobj-or-source
16683 func_xform ()
16684 {
16685   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16686 }
16687
16688 # func_arith arithmetic-term...
16689 func_arith ()
16690 {
16691   func_arith_result=`expr "$@"`
16692 }
16693
16694 # func_len string
16695 # STRING may not start with a hyphen.
16696 func_len ()
16697 {
16698   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16699 }
16700
16701 _LT_EOF
16702 esac
16703
16704 case $lt_shell_append in
16705   yes)
16706     cat << \_LT_EOF >> "$cfgfile"
16707
16708 # func_append var value
16709 # Append VALUE to the end of shell variable VAR.
16710 func_append ()
16711 {
16712   eval "$1+=\$2"
16713 }
16714 _LT_EOF
16715     ;;
16716   *)
16717     cat << \_LT_EOF >> "$cfgfile"
16718
16719 # func_append var value
16720 # Append VALUE to the end of shell variable VAR.
16721 func_append ()
16722 {
16723   eval "$1=\$$1\$2"
16724 }
16725
16726 _LT_EOF
16727     ;;
16728   esac
16729
16730
16731   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16732     || (rm -f "$cfgfile"; exit 1)
16733
16734   mv -f "$cfgfile" "$ofile" ||
16735     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16736   chmod +x "$ofile"
16737
16738
16739     cat <<_LT_EOF >> "$ofile"
16740
16741 # ### BEGIN LIBTOOL TAG CONFIG: GO
16742
16743 # The linker used to build libraries.
16744 LD=$lt_LD_GO
16745
16746 # How to create reloadable object files.
16747 reload_flag=$lt_reload_flag_GO
16748 reload_cmds=$lt_reload_cmds_GO
16749
16750 # Commands used to build an old-style archive.
16751 old_archive_cmds=$lt_old_archive_cmds_GO
16752
16753 # A language specific compiler.
16754 CC=$lt_compiler_GO
16755
16756 # Is the compiler the GNU compiler?
16757 with_gcc=$GCC_GO
16758
16759 # Compiler flag to turn off builtin functions.
16760 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16761
16762 # How to pass a linker flag through the compiler.
16763 wl=$lt_lt_prog_compiler_wl_GO
16764
16765 # Additional compiler flags for building library objects.
16766 pic_flag=$lt_lt_prog_compiler_pic_GO
16767
16768 # Compiler flag to prevent dynamic linking.
16769 link_static_flag=$lt_lt_prog_compiler_static_GO
16770
16771 # Does compiler simultaneously support -c and -o options?
16772 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16773
16774 # Whether or not to add -lc for building shared libraries.
16775 build_libtool_need_lc=$archive_cmds_need_lc_GO
16776
16777 # Whether or not to disallow shared libs when runtime libs are static.
16778 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16779
16780 # Compiler flag to allow reflexive dlopens.
16781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16782
16783 # Compiler flag to generate shared objects directly from archives.
16784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16785
16786 # Whether the compiler copes with passing no objects directly.
16787 compiler_needs_object=$lt_compiler_needs_object_GO
16788
16789 # Create an old-style archive from a shared archive.
16790 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16791
16792 # Create a temporary old-style archive to link instead of a shared archive.
16793 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16794
16795 # Commands used to build a shared archive.
16796 archive_cmds=$lt_archive_cmds_GO
16797 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16798
16799 # Commands used to build a loadable module if different from building
16800 # a shared archive.
16801 module_cmds=$lt_module_cmds_GO
16802 module_expsym_cmds=$lt_module_expsym_cmds_GO
16803
16804 # Whether we are building with GNU ld or not.
16805 with_gnu_ld=$lt_with_gnu_ld_GO
16806
16807 # Flag that allows shared libraries with undefined symbols to be built.
16808 allow_undefined_flag=$lt_allow_undefined_flag_GO
16809
16810 # Flag that enforces no undefined symbols.
16811 no_undefined_flag=$lt_no_undefined_flag_GO
16812
16813 # Flag to hardcode \$libdir into a binary during linking.
16814 # This must work even if \$libdir does not exist
16815 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16816
16817 # If ld is used when linking, flag to hardcode \$libdir into a binary
16818 # during linking.  This must work even if \$libdir does not exist.
16819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16820
16821 # Whether we need a single "-rpath" flag with a separated argument.
16822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16823
16824 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16825 # DIR into the resulting binary.
16826 hardcode_direct=$hardcode_direct_GO
16827
16828 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16829 # DIR into the resulting binary and the resulting library dependency is
16830 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16831 # library is relocated.
16832 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16833
16834 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16835 # into the resulting binary.
16836 hardcode_minus_L=$hardcode_minus_L_GO
16837
16838 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16839 # into the resulting binary.
16840 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16841
16842 # Set to "yes" if building a shared library automatically hardcodes DIR
16843 # into the library and all subsequent libraries and executables linked
16844 # against it.
16845 hardcode_automatic=$hardcode_automatic_GO
16846
16847 # Set to yes if linker adds runtime paths of dependent libraries
16848 # to runtime path list.
16849 inherit_rpath=$inherit_rpath_GO
16850
16851 # Whether libtool must link a program against all its dependency libraries.
16852 link_all_deplibs=$link_all_deplibs_GO
16853
16854 # Fix the shell variable \$srcfile for the compiler.
16855 fix_srcfile_path=$lt_fix_srcfile_path_GO
16856
16857 # Set to "yes" if exported symbols are required.
16858 always_export_symbols=$always_export_symbols_GO
16859
16860 # The commands to list exported symbols.
16861 export_symbols_cmds=$lt_export_symbols_cmds_GO
16862
16863 # Symbols that should not be listed in the preloaded symbols.
16864 exclude_expsyms=$lt_exclude_expsyms_GO
16865
16866 # Symbols that must always be exported.
16867 include_expsyms=$lt_include_expsyms_GO
16868
16869 # Commands necessary for linking programs (against libraries) with templates.
16870 prelink_cmds=$lt_prelink_cmds_GO
16871
16872 # Specify filename containing input files.
16873 file_list_spec=$lt_file_list_spec_GO
16874
16875 # How to hardcode a shared library path into an executable.
16876 hardcode_action=$hardcode_action_GO
16877
16878 # ### END LIBTOOL TAG CONFIG: GO
16879 _LT_EOF
16880
16881  ;;
16882     "default":C) if test -n "$CONFIG_FILES"; then
16883    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16884    # that multilib installs will end up installed in the correct place.
16885    # The testsuite needs it for multilib-aware ABI baseline files.
16886    # To work around this not being passed down from config-ml.in ->
16887    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16888    # append it here.  Only modify Makefiles that have just been created.
16889    #
16890    # Also, get rid of this simulated-VPATH thing that automake does.
16891    cat > vpsed << \_EOF
16892 s!`test -f '$<' || echo '$(srcdir)/'`!!
16893 _EOF
16894    for i in $SUBDIRS; do
16895     case $CONFIG_FILES in
16896      *${i}/Makefile*)
16897        #echo "Adding MULTISUBDIR to $i/Makefile"
16898        sed -f vpsed $i/Makefile > tmp
16899        grep '^MULTISUBDIR =' Makefile >> tmp
16900        mv tmp $i/Makefile
16901        ;;
16902     esac
16903    done
16904    rm vpsed
16905  fi
16906  ;;
16907
16908   esac
16909 done # for ac_tag
16910
16911
16912 as_fn_exit 0
16913 _ACEOF
16914 ac_clean_files=$ac_clean_files_save
16915
16916 test $ac_write_fail = 0 ||
16917   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16918
16919
16920 # configure is writing to config.log, and then calls config.status.
16921 # config.status does its own redirection, appending to config.log.
16922 # Unfortunately, on DOS this fails, as config.log is still kept open
16923 # by configure, so config.status won't be able to write to it; its
16924 # output is simply discarded.  So we exec the FD to /dev/null,
16925 # effectively closing config.log, so it can be properly (re)opened and
16926 # appended to by config.status.  When coming back to configure, we
16927 # need to make the FD available again.
16928 if test "$no_create" != yes; then
16929   ac_cs_success=:
16930   ac_config_status_args=
16931   test "$silent" = yes &&
16932     ac_config_status_args="$ac_config_status_args --quiet"
16933   exec 5>/dev/null
16934   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16935   exec 5>>config.log
16936   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16937   # would make configure fail if this is the last instruction.
16938   $ac_cs_success || as_fn_exit $?
16939 fi
16940 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16941   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16943 fi
16944