OSDN Git Service

PR go/47515
[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_WAIT4_FALSE
607 HAVE_WAIT4_TRUE
608 HAVE_STRERROR_R_FALSE
609 HAVE_STRERROR_R_TRUE
610 HAVE_SYS_MMAN_H_FALSE
611 HAVE_SYS_MMAN_H_TRUE
612 PTHREAD_LIBS
613 PTHREAD_CFLAGS
614 NET_LIBS
615 MATH_LIBS
616 USING_SPLIT_STACK_FALSE
617 USING_SPLIT_STACK_TRUE
618 SPLIT_STACK
619 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
620 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
621 GOARCH
622 LIBGO_IS_X86_64_FALSE
623 LIBGO_IS_X86_64_TRUE
624 LIBGO_IS_SPARC64_FALSE
625 LIBGO_IS_SPARC64_TRUE
626 LIBGO_IS_SPARC_FALSE
627 LIBGO_IS_SPARC_TRUE
628 LIBGO_IS_PPC64_FALSE
629 LIBGO_IS_PPC64_TRUE
630 LIBGO_IS_PPC_FALSE
631 LIBGO_IS_PPC_TRUE
632 LIBGO_IS_MIPS64_FALSE
633 LIBGO_IS_MIPS64_TRUE
634 LIBGO_IS_MIPS_FALSE
635 LIBGO_IS_MIPS_TRUE
636 LIBGO_IS_M68K_FALSE
637 LIBGO_IS_M68K_TRUE
638 LIBGO_IS_ARM_FALSE
639 LIBGO_IS_ARM_TRUE
640 LIBGO_IS_386_FALSE
641 LIBGO_IS_386_TRUE
642 GOOS
643 LIBGO_IS_SOLARIS_FALSE
644 LIBGO_IS_SOLARIS_TRUE
645 LIBGO_IS_RTEMS_FALSE
646 LIBGO_IS_RTEMS_TRUE
647 LIBGO_IS_LINUX_FALSE
648 LIBGO_IS_LINUX_TRUE
649 LIBGO_IS_IRIX_FALSE
650 LIBGO_IS_IRIX_TRUE
651 LIBGO_IS_FREEBSD_FALSE
652 LIBGO_IS_FREEBSD_TRUE
653 LIBGO_IS_DARWIN_FALSE
654 LIBGO_IS_DARWIN_TRUE
655 LIBFFIINCS
656 LIBFFI
657 glibgo_toolexeclibdir
658 glibgo_toolexecdir
659 glibgo_prefixdir
660 WERROR
661 WARN_FLAGS
662 enable_static
663 enable_shared
664 CPP
665 OTOOL64
666 OTOOL
667 LIPO
668 NMEDIT
669 DSYMUTIL
670 AR
671 OBJDUMP
672 LN_S
673 NM
674 ac_ct_DUMPBIN
675 DUMPBIN
676 LIBTOOL
677 OBJCOPY
678 RANLIB
679 LD
680 FGREP
681 EGREP
682 GREP
683 SED
684 MAINT
685 MAINTAINER_MODE_FALSE
686 MAINTAINER_MODE_TRUE
687 GOCFLAGS
688 GOC
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_os
729 target_vendor
730 target_cpu
731 target
732 host_os
733 host_vendor
734 host_cpu
735 host
736 build_os
737 build_vendor
738 build_cpu
739 build
740 multi_basedir
741 libtool_VERSION
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_multilib
784 enable_dependency_tracking
785 enable_maintainer_mode
786 with_gnu_ld
787 enable_shared
788 enable_static
789 with_pic
790 enable_fast_install
791 enable_libtool_lock
792 enable_version_specific_runtime_libs
793 with_libffi
794 with_system_libunwind
795 enable_sjlj_exceptions
796 '
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CPP
801 CPPFLAGS'
802
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 ac_unrecognized_opts=
808 ac_unrecognized_sep=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
825
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 includedir='${prefix}/include'
841 oldincludedir='/usr/include'
842 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
843 infodir='${datarootdir}/info'
844 htmldir='${docdir}'
845 dvidir='${docdir}'
846 pdfdir='${docdir}'
847 psdir='${docdir}'
848 libdir='${exec_prefix}/lib'
849 localedir='${datarootdir}/locale'
850 mandir='${datarootdir}/man'
851
852 ac_prev=
853 ac_dashdash=
854 for ac_option
855 do
856   # If the previous option needs an argument, assign it.
857   if test -n "$ac_prev"; then
858     eval $ac_prev=\$ac_option
859     ac_prev=
860     continue
861   fi
862
863   case $ac_option in
864   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
865   *)    ac_optarg=yes ;;
866   esac
867
868   # Accept the important Cygnus configure options, so we can diagnose typos.
869
870   case $ac_dashdash$ac_option in
871   --)
872     ac_dashdash=yes ;;
873
874   -bindir | --bindir | --bindi | --bind | --bin | --bi)
875     ac_prev=bindir ;;
876   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877     bindir=$ac_optarg ;;
878
879   -build | --build | --buil | --bui | --bu)
880     ac_prev=build_alias ;;
881   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882     build_alias=$ac_optarg ;;
883
884   -cache-file | --cache-file | --cache-fil | --cache-fi \
885   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886     ac_prev=cache_file ;;
887   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889     cache_file=$ac_optarg ;;
890
891   --config-cache | -C)
892     cache_file=config.cache ;;
893
894   -datadir | --datadir | --datadi | --datad)
895     ac_prev=datadir ;;
896   -datadir=* | --datadir=* | --datadi=* | --datad=*)
897     datadir=$ac_optarg ;;
898
899   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900   | --dataroo | --dataro | --datar)
901     ac_prev=datarootdir ;;
902   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904     datarootdir=$ac_optarg ;;
905
906   -disable-* | --disable-*)
907     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908     # Reject names that are not valid shell variable names.
909     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910       as_fn_error "invalid feature name: $ac_useropt"
911     ac_useropt_orig=$ac_useropt
912     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913     case $ac_user_opts in
914       *"
915 "enable_$ac_useropt"
916 "*) ;;
917       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918          ac_unrecognized_sep=', ';;
919     esac
920     eval enable_$ac_useropt=no ;;
921
922   -docdir | --docdir | --docdi | --doc | --do)
923     ac_prev=docdir ;;
924   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925     docdir=$ac_optarg ;;
926
927   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928     ac_prev=dvidir ;;
929   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930     dvidir=$ac_optarg ;;
931
932   -enable-* | --enable-*)
933     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934     # Reject names that are not valid shell variable names.
935     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936       as_fn_error "invalid feature name: $ac_useropt"
937     ac_useropt_orig=$ac_useropt
938     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939     case $ac_user_opts in
940       *"
941 "enable_$ac_useropt"
942 "*) ;;
943       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944          ac_unrecognized_sep=', ';;
945     esac
946     eval enable_$ac_useropt=\$ac_optarg ;;
947
948   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950   | --exec | --exe | --ex)
951     ac_prev=exec_prefix ;;
952   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954   | --exec=* | --exe=* | --ex=*)
955     exec_prefix=$ac_optarg ;;
956
957   -gas | --gas | --ga | --g)
958     # Obsolete; use --with-gas.
959     with_gas=yes ;;
960
961   -help | --help | --hel | --he | -h)
962     ac_init_help=long ;;
963   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964     ac_init_help=recursive ;;
965   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966     ac_init_help=short ;;
967
968   -host | --host | --hos | --ho)
969     ac_prev=host_alias ;;
970   -host=* | --host=* | --hos=* | --ho=*)
971     host_alias=$ac_optarg ;;
972
973   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974     ac_prev=htmldir ;;
975   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976   | --ht=*)
977     htmldir=$ac_optarg ;;
978
979   -includedir | --includedir | --includedi | --included | --include \
980   | --includ | --inclu | --incl | --inc)
981     ac_prev=includedir ;;
982   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983   | --includ=* | --inclu=* | --incl=* | --inc=*)
984     includedir=$ac_optarg ;;
985
986   -infodir | --infodir | --infodi | --infod | --info | --inf)
987     ac_prev=infodir ;;
988   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989     infodir=$ac_optarg ;;
990
991   -libdir | --libdir | --libdi | --libd)
992     ac_prev=libdir ;;
993   -libdir=* | --libdir=* | --libdi=* | --libd=*)
994     libdir=$ac_optarg ;;
995
996   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997   | --libexe | --libex | --libe)
998     ac_prev=libexecdir ;;
999   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000   | --libexe=* | --libex=* | --libe=*)
1001     libexecdir=$ac_optarg ;;
1002
1003   -localedir | --localedir | --localedi | --localed | --locale)
1004     ac_prev=localedir ;;
1005   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006     localedir=$ac_optarg ;;
1007
1008   -localstatedir | --localstatedir | --localstatedi | --localstated \
1009   | --localstate | --localstat | --localsta | --localst | --locals)
1010     ac_prev=localstatedir ;;
1011   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013     localstatedir=$ac_optarg ;;
1014
1015   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016     ac_prev=mandir ;;
1017   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018     mandir=$ac_optarg ;;
1019
1020   -nfp | --nfp | --nf)
1021     # Obsolete; use --without-fp.
1022     with_fp=no ;;
1023
1024   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025   | --no-cr | --no-c | -n)
1026     no_create=yes ;;
1027
1028   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030     no_recursion=yes ;;
1031
1032   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034   | --oldin | --oldi | --old | --ol | --o)
1035     ac_prev=oldincludedir ;;
1036   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039     oldincludedir=$ac_optarg ;;
1040
1041   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042     ac_prev=prefix ;;
1043   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044     prefix=$ac_optarg ;;
1045
1046   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047   | --program-pre | --program-pr | --program-p)
1048     ac_prev=program_prefix ;;
1049   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051     program_prefix=$ac_optarg ;;
1052
1053   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054   | --program-suf | --program-su | --program-s)
1055     ac_prev=program_suffix ;;
1056   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058     program_suffix=$ac_optarg ;;
1059
1060   -program-transform-name | --program-transform-name \
1061   | --program-transform-nam | --program-transform-na \
1062   | --program-transform-n | --program-transform- \
1063   | --program-transform | --program-transfor \
1064   | --program-transfo | --program-transf \
1065   | --program-trans | --program-tran \
1066   | --progr-tra | --program-tr | --program-t)
1067     ac_prev=program_transform_name ;;
1068   -program-transform-name=* | --program-transform-name=* \
1069   | --program-transform-nam=* | --program-transform-na=* \
1070   | --program-transform-n=* | --program-transform-=* \
1071   | --program-transform=* | --program-transfor=* \
1072   | --program-transfo=* | --program-transf=* \
1073   | --program-trans=* | --program-tran=* \
1074   | --progr-tra=* | --program-tr=* | --program-t=*)
1075     program_transform_name=$ac_optarg ;;
1076
1077   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078     ac_prev=pdfdir ;;
1079   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080     pdfdir=$ac_optarg ;;
1081
1082   -psdir | --psdir | --psdi | --psd | --ps)
1083     ac_prev=psdir ;;
1084   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085     psdir=$ac_optarg ;;
1086
1087   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088   | -silent | --silent | --silen | --sile | --sil)
1089     silent=yes ;;
1090
1091   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092     ac_prev=sbindir ;;
1093   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094   | --sbi=* | --sb=*)
1095     sbindir=$ac_optarg ;;
1096
1097   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099   | --sharedst | --shareds | --shared | --share | --shar \
1100   | --sha | --sh)
1101     ac_prev=sharedstatedir ;;
1102   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105   | --sha=* | --sh=*)
1106     sharedstatedir=$ac_optarg ;;
1107
1108   -site | --site | --sit)
1109     ac_prev=site ;;
1110   -site=* | --site=* | --sit=*)
1111     site=$ac_optarg ;;
1112
1113   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114     ac_prev=srcdir ;;
1115   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116     srcdir=$ac_optarg ;;
1117
1118   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119   | --syscon | --sysco | --sysc | --sys | --sy)
1120     ac_prev=sysconfdir ;;
1121   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123     sysconfdir=$ac_optarg ;;
1124
1125   -target | --target | --targe | --targ | --tar | --ta | --t)
1126     ac_prev=target_alias ;;
1127   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128     target_alias=$ac_optarg ;;
1129
1130   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131     verbose=yes ;;
1132
1133   -version | --version | --versio | --versi | --vers | -V)
1134     ac_init_version=: ;;
1135
1136   -with-* | --with-*)
1137     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138     # Reject names that are not valid shell variable names.
1139     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140       as_fn_error "invalid package name: $ac_useropt"
1141     ac_useropt_orig=$ac_useropt
1142     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143     case $ac_user_opts in
1144       *"
1145 "with_$ac_useropt"
1146 "*) ;;
1147       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148          ac_unrecognized_sep=', ';;
1149     esac
1150     eval with_$ac_useropt=\$ac_optarg ;;
1151
1152   -without-* | --without-*)
1153     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156       as_fn_error "invalid package name: $ac_useropt"
1157     ac_useropt_orig=$ac_useropt
1158     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159     case $ac_user_opts in
1160       *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164          ac_unrecognized_sep=', ';;
1165     esac
1166     eval with_$ac_useropt=no ;;
1167
1168   --x)
1169     # Obsolete; use --with-x.
1170     with_x=yes ;;
1171
1172   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173   | --x-incl | --x-inc | --x-in | --x-i)
1174     ac_prev=x_includes ;;
1175   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177     x_includes=$ac_optarg ;;
1178
1179   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181     ac_prev=x_libraries ;;
1182   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184     x_libraries=$ac_optarg ;;
1185
1186   -*) as_fn_error "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information."
1188     ;;
1189
1190   *=*)
1191     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192     # Reject names that are not valid shell variable names.
1193     case $ac_envvar in #(
1194       '' | [0-9]* | *[!_$as_cr_alnum]* )
1195       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1196     esac
1197     eval $ac_envvar=\$ac_optarg
1198     export $ac_envvar ;;
1199
1200   *)
1201     # FIXME: should be removed in autoconf 3.0.
1202     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206     ;;
1207
1208   esac
1209 done
1210
1211 if test -n "$ac_prev"; then
1212   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213   as_fn_error "missing argument to $ac_option"
1214 fi
1215
1216 if test -n "$ac_unrecognized_opts"; then
1217   case $enable_option_checking in
1218     no) ;;
1219     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1220     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221   esac
1222 fi
1223
1224 # Check all directory arguments for consistency.
1225 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226                 datadir sysconfdir sharedstatedir localstatedir includedir \
1227                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228                 libdir localedir mandir
1229 do
1230   eval ac_val=\$$ac_var
1231   # Remove trailing slashes.
1232   case $ac_val in
1233     */ )
1234       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235       eval $ac_var=\$ac_val;;
1236   esac
1237   # Be sure to have absolute directory names.
1238   case $ac_val in
1239     [\\/$]* | ?:[\\/]* )  continue;;
1240     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241   esac
1242   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1244
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1251
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254   if test "x$build_alias" = x; then
1255     cross_compiling=maybe
1256     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1257     If a cross compiler is detected then cross compile mode will be used." >&2
1258   elif test "x$build_alias" != "x$host_alias"; then
1259     cross_compiling=yes
1260   fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272   as_fn_error "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274   as_fn_error "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279   ac_srcdir_defaulted=yes
1280   # Try the directory containing this script, then the parent directory.
1281   ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283          X"$as_myself" : 'X\(//\)[^/]' \| \
1284          X"$as_myself" : 'X\(//\)$' \| \
1285          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288             s//\1/
1289             q
1290           }
1291           /^X\(\/\/\)[^/].*/{
1292             s//\1/
1293             q
1294           }
1295           /^X\(\/\/\)$/{
1296             s//\1/
1297             q
1298           }
1299           /^X\(\/\).*/{
1300             s//\1/
1301             q
1302           }
1303           s/.*/./; q'`
1304   srcdir=$ac_confdir
1305   if test ! -r "$srcdir/$ac_unique_file"; then
1306     srcdir=..
1307   fi
1308 else
1309   ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1318         pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321   srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331   eval ac_env_${ac_var}_value=\$${ac_var}
1332   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340   # Omit some internal or obsolete options to make the list less imposing.
1341   # This message is too long to be a string in the A/UX 3.1 sh.
1342   cat <<_ACEOF
1343 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353   -h, --help              display this help and exit
1354       --help=short        display options specific to this package
1355       --help=recursive    display the short help of all the included packages
1356   -V, --version           display version information and exit
1357   -q, --quiet, --silent   do not print \`checking...' messages
1358       --cache-file=FILE   cache test results in FILE [disabled]
1359   -C, --config-cache      alias for \`--cache-file=config.cache'
1360   -n, --no-create         do not create output files
1361       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364   --prefix=PREFIX         install architecture-independent files in PREFIX
1365                           [$ac_default_prefix]
1366   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                           [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377   --bindir=DIR            user executables [EPREFIX/bin]
1378   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379   --libexecdir=DIR        program executables [EPREFIX/libexec]
1380   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383   --libdir=DIR            object code libraries [EPREFIX/lib]
1384   --includedir=DIR        C header files [PREFIX/include]
1385   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388   --infodir=DIR           info documentation [DATAROOTDIR/info]
1389   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390   --mandir=DIR            man documentation [DATAROOTDIR/man]
1391   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1392   --htmldir=DIR           html documentation [DOCDIR]
1393   --dvidir=DIR            dvi documentation [DOCDIR]
1394   --pdfdir=DIR            pdf documentation [DOCDIR]
1395   --psdir=DIR             ps documentation [DOCDIR]
1396 _ACEOF
1397
1398   cat <<\_ACEOF
1399
1400 Program names:
1401   --program-prefix=PREFIX            prepend PREFIX to installed program names
1402   --program-suffix=SUFFIX            append SUFFIX to installed program names
1403   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1404
1405 System types:
1406   --build=BUILD     configure for building on BUILD [guessed]
1407   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1408   --target=TARGET   configure for building compilers for TARGET [HOST]
1409 _ACEOF
1410 fi
1411
1412 if test -n "$ac_init_help"; then
1413   case $ac_init_help in
1414      short | recursive ) echo "Configuration of package-unused version-unused:";;
1415    esac
1416   cat <<\_ACEOF
1417
1418 Optional Features:
1419   --disable-option-checking  ignore unrecognized --enable/--with options
1420   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1421   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1422   --enable-multilib       build many library versions (default)
1423   --disable-dependency-tracking  speeds up one-time build
1424   --enable-dependency-tracking   do not reject slow dependency extractors
1425   --enable-maintainer-mode  enable make rules and dependencies not useful
1426                           (and sometimes confusing) to the casual installer
1427   --enable-shared[=PKGS]  build shared libraries [default=yes]
1428   --enable-static[=PKGS]  build static libraries [default=yes]
1429   --enable-fast-install[=PKGS]
1430                           optimize for fast installation [default=yes]
1431   --disable-libtool-lock  avoid locking (might break parallel builds)
1432   --enable-version-specific-runtime-libs
1433                           Specify that runtime libraries should be installed
1434                           in a compiler-specific directory
1435   --enable-sjlj-exceptions
1436                           force use of builtin_setjmp for exceptions
1437
1438 Optional Packages:
1439   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1440   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1441   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1442   --with-pic              try to use only PIC/non-PIC objects [default=use
1443                           both]
1444   --without-libffi        don't use libffi
1445   --with-system-libunwind use installed libunwind
1446
1447 Some influential environment variables:
1448   CC          C compiler command
1449   CFLAGS      C compiler flags
1450   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1451               nonstandard directory <lib dir>
1452   LIBS        libraries to pass to the linker, e.g. -l<library>
1453   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1454               you have headers in a nonstandard directory <include dir>
1455   GOC         Go compiler command
1456   GOCFLAGS    Go compiler flags
1457   CPP         C preprocessor
1458
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1461
1462 Report bugs to the package provider.
1463 _ACEOF
1464 ac_status=$?
1465 fi
1466
1467 if test "$ac_init_help" = "recursive"; then
1468   # If there are subdirs, report their specific --help.
1469   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470     test -d "$ac_dir" ||
1471       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472       continue
1473     ac_builddir=.
1474
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *)
1478   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479   # A ".." for each directory in $ac_dir_suffix.
1480   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481   case $ac_top_builddir_sub in
1482   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484   esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1490
1491 case $srcdir in
1492   .)  # We are building in place.
1493     ac_srcdir=.
1494     ac_top_srcdir=$ac_top_builddir_sub
1495     ac_abs_top_srcdir=$ac_pwd ;;
1496   [\\/]* | ?:[\\/]* )  # Absolute name.
1497     ac_srcdir=$srcdir$ac_dir_suffix;
1498     ac_top_srcdir=$srcdir
1499     ac_abs_top_srcdir=$srcdir ;;
1500   *) # Relative name.
1501     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502     ac_top_srcdir=$ac_top_build_prefix$srcdir
1503     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1506
1507     cd "$ac_dir" || { ac_status=$?; continue; }
1508     # Check for guested configure.
1509     if test -f "$ac_srcdir/configure.gnu"; then
1510       echo &&
1511       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512     elif test -f "$ac_srcdir/configure"; then
1513       echo &&
1514       $SHELL "$ac_srcdir/configure" --help=recursive
1515     else
1516       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517     fi || ac_status=$?
1518     cd "$ac_pwd" || { ac_status=$?; break; }
1519   done
1520 fi
1521
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524   cat <<\_ACEOF
1525 package-unused configure version-unused
1526 generated by GNU Autoconf 2.64
1527
1528 Copyright (C) 2009 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532   exit
1533 fi
1534
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1538
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1543 {
1544   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545   rm -f conftest.$ac_objext
1546   if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549   *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553   (eval "$ac_compile") 2>conftest.err
1554   ac_status=$?
1555   if test -s conftest.err; then
1556     grep -v '^ *+' conftest.err >conftest.er1
1557     cat conftest.er1 >&5
1558     mv -f conftest.er1 conftest.err
1559   fi
1560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561   test $ac_status = 0; } && {
1562          test -z "$ac_c_werror_flag" ||
1563          test ! -s conftest.err
1564        } && test -s conftest.$ac_objext; then :
1565   ac_retval=0
1566 else
1567   $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1569
1570         ac_retval=1
1571 fi
1572   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1573   return $ac_retval
1574
1575 } # ac_fn_c_try_compile
1576
1577 # ac_fn_c_try_link LINENO
1578 # -----------------------
1579 # Try to link conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_c_try_link ()
1581 {
1582   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583   rm -f conftest.$ac_objext conftest$ac_exeext
1584   if { { ac_try="$ac_link"
1585 case "(($ac_try" in
1586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587   *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591   (eval "$ac_link") 2>conftest.err
1592   ac_status=$?
1593   if test -s conftest.err; then
1594     grep -v '^ *+' conftest.err >conftest.er1
1595     cat conftest.er1 >&5
1596     mv -f conftest.er1 conftest.err
1597   fi
1598   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599   test $ac_status = 0; } && {
1600          test -z "$ac_c_werror_flag" ||
1601          test ! -s conftest.err
1602        } && test -s conftest$ac_exeext && {
1603          test "$cross_compiling" = yes ||
1604          $as_test_x conftest$ac_exeext
1605        }; then :
1606   ac_retval=0
1607 else
1608   $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611         ac_retval=1
1612 fi
1613   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1614   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1615   # interfere with the next link command; also delete a directory that is
1616   # left behind by Apple's compiler.  We do this before executing the actions.
1617   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1618   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1619   return $ac_retval
1620
1621 } # ac_fn_c_try_link
1622
1623 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists and can be compiled using the include files in
1626 # INCLUDES, setting the cache variable VAR accordingly.
1627 ac_fn_c_check_header_compile ()
1628 {
1629   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1631 $as_echo_n "checking for $2... " >&6; }
1632 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1633   $as_echo_n "(cached) " >&6
1634 else
1635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h.  */
1637 $4
1638 #include <$2>
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641   eval "$3=yes"
1642 else
1643   eval "$3=no"
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1646 fi
1647 eval ac_res=\$$3
1648                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1649 $as_echo "$ac_res" >&6; }
1650   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651
1652 } # ac_fn_c_check_header_compile
1653
1654 # ac_fn_c_try_cpp LINENO
1655 # ----------------------
1656 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_cpp ()
1658 {
1659   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660   if { { ac_try="$ac_cpp conftest.$ac_ext"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1668   ac_status=$?
1669   if test -s conftest.err; then
1670     grep -v '^ *+' conftest.err >conftest.er1
1671     cat conftest.er1 >&5
1672     mv -f conftest.er1 conftest.err
1673   fi
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } >/dev/null && {
1676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1677          test ! -s conftest.err
1678        }; then :
1679   ac_retval=0
1680 else
1681   $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684     ac_retval=1
1685 fi
1686   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1687   return $ac_retval
1688
1689 } # ac_fn_c_try_cpp
1690
1691 # ac_fn_c_try_run LINENO
1692 # ----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1694 # that executables *can* be run.
1695 ac_fn_c_try_run ()
1696 {
1697   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698   if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701   *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705   (eval "$ac_link") 2>&5
1706   ac_status=$?
1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1709   { { case "(($ac_try" in
1710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711   *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715   (eval "$ac_try") 2>&5
1716   ac_status=$?
1717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718   test $ac_status = 0; }; }; then :
1719   ac_retval=0
1720 else
1721   $as_echo "$as_me: program exited with status $ac_status" >&5
1722        $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725        ac_retval=$ac_status
1726 fi
1727   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1728   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729   return $ac_retval
1730
1731 } # ac_fn_c_try_run
1732
1733 # ac_fn_c_check_func LINENO FUNC VAR
1734 # ----------------------------------
1735 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1736 ac_fn_c_check_func ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742   $as_echo_n "(cached) " >&6
1743 else
1744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h.  */
1746 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1748 #define $2 innocuous_$2
1749
1750 /* System header to define __stub macros and hopefully few prototypes,
1751     which can conflict with char $2 (); below.
1752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1753     <limits.h> exists even on freestanding compilers.  */
1754
1755 #ifdef __STDC__
1756 # include <limits.h>
1757 #else
1758 # include <assert.h>
1759 #endif
1760
1761 #undef $2
1762
1763 /* Override any GCC internal prototype to avoid an error.
1764    Use char because int might match the return type of a GCC
1765    builtin and then its argument prototype would still apply.  */
1766 #ifdef __cplusplus
1767 extern "C"
1768 #endif
1769 char $2 ();
1770 /* The GNU C library defines this for functions which it implements
1771     to always fail with ENOSYS.  Some functions are actually named
1772     something starting with __ and the normal name is an alias.  */
1773 #if defined __stub_$2 || defined __stub___$2
1774 choke me
1775 #endif
1776
1777 int
1778 main ()
1779 {
1780 return $2 ();
1781   ;
1782   return 0;
1783 }
1784 _ACEOF
1785 if ac_fn_c_try_link "$LINENO"; then :
1786   eval "$3=yes"
1787 else
1788   eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext \
1791     conftest$ac_exeext conftest.$ac_ext
1792 fi
1793 eval ac_res=\$$3
1794                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1797
1798 } # ac_fn_c_check_func
1799
1800 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801 # -------------------------------------------------------
1802 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803 # the include files in INCLUDES and setting the cache variable VAR
1804 # accordingly.
1805 ac_fn_c_check_header_mongrel ()
1806 {
1807   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1812   $as_echo_n "(cached) " >&6
1813 fi
1814 eval ac_res=\$$3
1815                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816 $as_echo "$ac_res" >&6; }
1817 else
1818   # Is the header compilable?
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820 $as_echo_n "checking $2 usability... " >&6; }
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h.  */
1823 $4
1824 #include <$2>
1825 _ACEOF
1826 if ac_fn_c_try_compile "$LINENO"; then :
1827   ac_header_compiler=yes
1828 else
1829   ac_header_compiler=no
1830 fi
1831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833 $as_echo "$ac_header_compiler" >&6; }
1834
1835 # Is the header present?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837 $as_echo_n "checking $2 presence... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h.  */
1840 #include <$2>
1841 _ACEOF
1842 if ac_fn_c_try_cpp "$LINENO"; then :
1843   ac_header_preproc=yes
1844 else
1845   ac_header_preproc=no
1846 fi
1847 rm -f conftest.err conftest.$ac_ext
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849 $as_echo "$ac_header_preproc" >&6; }
1850
1851 # So?  What about this header?
1852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853   yes:no: )
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858     ;;
1859   no:yes:* )
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1863 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1867 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870     ;;
1871 esac
1872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873 $as_echo_n "checking for $2... " >&6; }
1874 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1875   $as_echo_n "(cached) " >&6
1876 else
1877   eval "$3=\$ac_header_compiler"
1878 fi
1879 eval ac_res=\$$3
1880                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 fi
1883   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884
1885 } # ac_fn_c_check_header_mongrel
1886
1887 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1888 # -------------------------------------------
1889 # Tests whether TYPE exists after having included INCLUDES, setting cache
1890 # variable VAR accordingly.
1891 ac_fn_c_check_type ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895 $as_echo_n "checking for $2... " >&6; }
1896 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897   $as_echo_n "(cached) " >&6
1898 else
1899   eval "$3=no"
1900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h.  */
1902 $4
1903 int
1904 main ()
1905 {
1906 if (sizeof ($2))
1907          return 0;
1908   ;
1909   return 0;
1910 }
1911 _ACEOF
1912 if ac_fn_c_try_compile "$LINENO"; then :
1913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h.  */
1915 $4
1916 int
1917 main ()
1918 {
1919 if (sizeof (($2)))
1920             return 0;
1921   ;
1922   return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926
1927 else
1928   eval "$3=yes"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 fi
1932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1933 fi
1934 eval ac_res=\$$3
1935                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1937   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939 } # ac_fn_c_check_type
1940 cat >config.log <<_ACEOF
1941 This file contains any messages produced by compilers while
1942 running configure, to aid debugging if configure makes a mistake.
1943
1944 It was created by package-unused $as_me version-unused, which was
1945 generated by GNU Autoconf 2.64.  Invocation command line was
1946
1947   $ $0 $@
1948
1949 _ACEOF
1950 exec 5>>config.log
1951 {
1952 cat <<_ASUNAME
1953 ## --------- ##
1954 ## Platform. ##
1955 ## --------- ##
1956
1957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1962
1963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1964 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1965
1966 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1967 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1969 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1970 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1971 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1972 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1973
1974 _ASUNAME
1975
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981     $as_echo "PATH: $as_dir"
1982   done
1983 IFS=$as_save_IFS
1984
1985 } >&5
1986
1987 cat >&5 <<_ACEOF
1988
1989
1990 ## ----------- ##
1991 ## Core tests. ##
1992 ## ----------- ##
1993
1994 _ACEOF
1995
1996
1997 # Keep a trace of the command line.
1998 # Strip out --no-create and --no-recursion so they do not pile up.
1999 # Strip out --silent because we don't want to record it for future runs.
2000 # Also quote any args containing shell meta-characters.
2001 # Make two passes to allow for proper duplicate-argument suppression.
2002 ac_configure_args=
2003 ac_configure_args0=
2004 ac_configure_args1=
2005 ac_must_keep_next=false
2006 for ac_pass in 1 2
2007 do
2008   for ac_arg
2009   do
2010     case $ac_arg in
2011     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2012     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2013     | -silent | --silent | --silen | --sile | --sil)
2014       continue ;;
2015     *\'*)
2016       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2017     esac
2018     case $ac_pass in
2019     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2020     2)
2021       as_fn_append ac_configure_args1 " '$ac_arg'"
2022       if test $ac_must_keep_next = true; then
2023         ac_must_keep_next=false # Got value, back to normal.
2024       else
2025         case $ac_arg in
2026           *=* | --config-cache | -C | -disable-* | --disable-* \
2027           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2028           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2029           | -with-* | --with-* | -without-* | --without-* | --x)
2030             case "$ac_configure_args0 " in
2031               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2032             esac
2033             ;;
2034           -* ) ac_must_keep_next=true ;;
2035         esac
2036       fi
2037       as_fn_append ac_configure_args " '$ac_arg'"
2038       ;;
2039     esac
2040   done
2041 done
2042 { ac_configure_args0=; unset ac_configure_args0;}
2043 { ac_configure_args1=; unset ac_configure_args1;}
2044
2045 # When interrupted or exit'd, cleanup temporary files, and complete
2046 # config.log.  We remove comments because anyway the quotes in there
2047 # would cause problems or look ugly.
2048 # WARNING: Use '\'' to represent an apostrophe within the trap.
2049 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2050 trap 'exit_status=$?
2051   # Save into config.log some information that might help in debugging.
2052   {
2053     echo
2054
2055     cat <<\_ASBOX
2056 ## ---------------- ##
2057 ## Cache variables. ##
2058 ## ---------------- ##
2059 _ASBOX
2060     echo
2061     # The following way of writing the cache mishandles newlines in values,
2062 (
2063   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2064     eval ac_val=\$$ac_var
2065     case $ac_val in #(
2066     *${as_nl}*)
2067       case $ac_var in #(
2068       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2069 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2070       esac
2071       case $ac_var in #(
2072       _ | IFS | as_nl) ;; #(
2073       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2074       *) { eval $ac_var=; unset $ac_var;} ;;
2075       esac ;;
2076     esac
2077   done
2078   (set) 2>&1 |
2079     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2080     *${as_nl}ac_space=\ *)
2081       sed -n \
2082         "s/'\''/'\''\\\\'\'''\''/g;
2083           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2084       ;; #(
2085     *)
2086       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2087       ;;
2088     esac |
2089     sort
2090 )
2091     echo
2092
2093     cat <<\_ASBOX
2094 ## ----------------- ##
2095 ## Output variables. ##
2096 ## ----------------- ##
2097 _ASBOX
2098     echo
2099     for ac_var in $ac_subst_vars
2100     do
2101       eval ac_val=\$$ac_var
2102       case $ac_val in
2103       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104       esac
2105       $as_echo "$ac_var='\''$ac_val'\''"
2106     done | sort
2107     echo
2108
2109     if test -n "$ac_subst_files"; then
2110       cat <<\_ASBOX
2111 ## ------------------- ##
2112 ## File substitutions. ##
2113 ## ------------------- ##
2114 _ASBOX
2115       echo
2116       for ac_var in $ac_subst_files
2117       do
2118         eval ac_val=\$$ac_var
2119         case $ac_val in
2120         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121         esac
2122         $as_echo "$ac_var='\''$ac_val'\''"
2123       done | sort
2124       echo
2125     fi
2126
2127     if test -s confdefs.h; then
2128       cat <<\_ASBOX
2129 ## ----------- ##
2130 ## confdefs.h. ##
2131 ## ----------- ##
2132 _ASBOX
2133       echo
2134       cat confdefs.h
2135       echo
2136     fi
2137     test "$ac_signal" != 0 &&
2138       $as_echo "$as_me: caught signal $ac_signal"
2139     $as_echo "$as_me: exit $exit_status"
2140   } >&5
2141   rm -f core *.core core.conftest.* &&
2142     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2143     exit $exit_status
2144 ' 0
2145 for ac_signal in 1 2 13 15; do
2146   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2147 done
2148 ac_signal=0
2149
2150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2151 rm -f -r conftest* confdefs.h
2152
2153 $as_echo "/* confdefs.h */" > confdefs.h
2154
2155 # Predefined preprocessor variables.
2156
2157 cat >>confdefs.h <<_ACEOF
2158 #define PACKAGE_NAME "$PACKAGE_NAME"
2159 _ACEOF
2160
2161 cat >>confdefs.h <<_ACEOF
2162 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2163 _ACEOF
2164
2165 cat >>confdefs.h <<_ACEOF
2166 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2167 _ACEOF
2168
2169 cat >>confdefs.h <<_ACEOF
2170 #define PACKAGE_STRING "$PACKAGE_STRING"
2171 _ACEOF
2172
2173 cat >>confdefs.h <<_ACEOF
2174 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2175 _ACEOF
2176
2177 cat >>confdefs.h <<_ACEOF
2178 #define PACKAGE_URL "$PACKAGE_URL"
2179 _ACEOF
2180
2181
2182 # Let the site file select an alternate cache file if it wants to.
2183 # Prefer an explicitly selected file to automatically selected ones.
2184 ac_site_file1=NONE
2185 ac_site_file2=NONE
2186 if test -n "$CONFIG_SITE"; then
2187   ac_site_file1=$CONFIG_SITE
2188 elif test "x$prefix" != xNONE; then
2189   ac_site_file1=$prefix/share/config.site
2190   ac_site_file2=$prefix/etc/config.site
2191 else
2192   ac_site_file1=$ac_default_prefix/share/config.site
2193   ac_site_file2=$ac_default_prefix/etc/config.site
2194 fi
2195 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2196 do
2197   test "x$ac_site_file" = xNONE && continue
2198   if test -r "$ac_site_file"; then
2199     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2200 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2201     sed 's/^/| /' "$ac_site_file" >&5
2202     . "$ac_site_file"
2203   fi
2204 done
2205
2206 if test -r "$cache_file"; then
2207   # Some versions of bash will fail to source /dev/null (special
2208   # files actually), so we avoid doing that.
2209   if test -f "$cache_file"; then
2210     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2211 $as_echo "$as_me: loading cache $cache_file" >&6;}
2212     case $cache_file in
2213       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2214       *)                      . "./$cache_file";;
2215     esac
2216   fi
2217 else
2218   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2219 $as_echo "$as_me: creating cache $cache_file" >&6;}
2220   >$cache_file
2221 fi
2222
2223 # Check that the precious variables saved in the cache have kept the same
2224 # value.
2225 ac_cache_corrupted=false
2226 for ac_var in $ac_precious_vars; do
2227   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2228   eval ac_new_set=\$ac_env_${ac_var}_set
2229   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2230   eval ac_new_val=\$ac_env_${ac_var}_value
2231   case $ac_old_set,$ac_new_set in
2232     set,)
2233       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2234 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2235       ac_cache_corrupted=: ;;
2236     ,set)
2237       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2238 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2239       ac_cache_corrupted=: ;;
2240     ,);;
2241     *)
2242       if test "x$ac_old_val" != "x$ac_new_val"; then
2243         # differences in whitespace do not lead to failure.
2244         ac_old_val_w=`echo x $ac_old_val`
2245         ac_new_val_w=`echo x $ac_new_val`
2246         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2247           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2248 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2249           ac_cache_corrupted=:
2250         else
2251           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2252 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2253           eval $ac_var=\$ac_old_val
2254         fi
2255         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2256 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2257         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2258 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2259       fi;;
2260   esac
2261   # Pass precious variables to config.status.
2262   if test "$ac_new_set" = set; then
2263     case $ac_new_val in
2264     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2265     *) ac_arg=$ac_var=$ac_new_val ;;
2266     esac
2267     case " $ac_configure_args " in
2268       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2269       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2270     esac
2271   fi
2272 done
2273 if $ac_cache_corrupted; then
2274   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2276   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2277 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2278   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2279 fi
2280 ## -------------------- ##
2281 ## Main body of script. ##
2282 ## -------------------- ##
2283
2284 ac_ext=c
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289
2290
2291
2292
2293
2294
2295 ac_config_headers="$ac_config_headers config.h"
2296
2297
2298 libtool_VERSION=1:0:0
2299
2300
2301 # Default to --enable-multilib
2302 # Check whether --enable-multilib was given.
2303 if test "${enable_multilib+set}" = set; then :
2304   enableval=$enable_multilib; case "$enableval" in
2305   yes) multilib=yes ;;
2306   no)  multilib=no ;;
2307   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2308  esac
2309 else
2310   multilib=yes
2311 fi
2312
2313
2314 # We may get other options which we leave undocumented:
2315 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2316 # See config-ml.in if you want the gory details.
2317
2318 if test "$srcdir" = "."; then
2319   if test "$with_target_subdir" != "."; then
2320     multi_basedir="$srcdir/$with_multisrctop../.."
2321   else
2322     multi_basedir="$srcdir/$with_multisrctop.."
2323   fi
2324 else
2325   multi_basedir="$srcdir/.."
2326 fi
2327
2328
2329 # Even if the default multilib is not a cross compilation,
2330 # it may be that some of the other multilibs are.
2331 if test $cross_compiling = no && test $multilib = yes \
2332    && test "x${with_multisubdir}" != x ; then
2333    cross_compiling=maybe
2334 fi
2335
2336 ac_config_commands="$ac_config_commands default-1"
2337
2338
2339 ac_aux_dir=
2340 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2341   for ac_t in install-sh install.sh shtool; do
2342     if test -f "$ac_dir/$ac_t"; then
2343       ac_aux_dir=$ac_dir
2344       ac_install_sh="$ac_aux_dir/$ac_t -c"
2345       break 2
2346     fi
2347   done
2348 done
2349 if test -z "$ac_aux_dir"; then
2350   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351 fi
2352
2353 # These three variables are undocumented and unsupported,
2354 # and are intended to be withdrawn in a future Autoconf release.
2355 # They can cause serious problems if a builder's source tree is in a directory
2356 # whose full name contains unusual characters.
2357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2359 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2360
2361
2362 # Make sure we can run config.sub.
2363 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2364   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2365
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2367 $as_echo_n "checking build system type... " >&6; }
2368 if test "${ac_cv_build+set}" = set; then :
2369   $as_echo_n "(cached) " >&6
2370 else
2371   ac_build_alias=$build_alias
2372 test "x$ac_build_alias" = x &&
2373   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2374 test "x$ac_build_alias" = x &&
2375   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2376 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2377   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2378
2379 fi
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2381 $as_echo "$ac_cv_build" >&6; }
2382 case $ac_cv_build in
2383 *-*-*) ;;
2384 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2385 esac
2386 build=$ac_cv_build
2387 ac_save_IFS=$IFS; IFS='-'
2388 set x $ac_cv_build
2389 shift
2390 build_cpu=$1
2391 build_vendor=$2
2392 shift; shift
2393 # Remember, the first character of IFS is used to create $*,
2394 # except with old shells:
2395 build_os=$*
2396 IFS=$ac_save_IFS
2397 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2398
2399
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2401 $as_echo_n "checking host system type... " >&6; }
2402 if test "${ac_cv_host+set}" = set; then :
2403   $as_echo_n "(cached) " >&6
2404 else
2405   if test "x$host_alias" = x; then
2406   ac_cv_host=$ac_cv_build
2407 else
2408   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2409     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2410 fi
2411
2412 fi
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2414 $as_echo "$ac_cv_host" >&6; }
2415 case $ac_cv_host in
2416 *-*-*) ;;
2417 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2418 esac
2419 host=$ac_cv_host
2420 ac_save_IFS=$IFS; IFS='-'
2421 set x $ac_cv_host
2422 shift
2423 host_cpu=$1
2424 host_vendor=$2
2425 shift; shift
2426 # Remember, the first character of IFS is used to create $*,
2427 # except with old shells:
2428 host_os=$*
2429 IFS=$ac_save_IFS
2430 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2431
2432
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2434 $as_echo_n "checking target system type... " >&6; }
2435 if test "${ac_cv_target+set}" = set; then :
2436   $as_echo_n "(cached) " >&6
2437 else
2438   if test "x$target_alias" = x; then
2439   ac_cv_target=$ac_cv_host
2440 else
2441   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2442     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2443 fi
2444
2445 fi
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2447 $as_echo "$ac_cv_target" >&6; }
2448 case $ac_cv_target in
2449 *-*-*) ;;
2450 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2451 esac
2452 target=$ac_cv_target
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_target
2455 shift
2456 target_cpu=$1
2457 target_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 target_os=$*
2462 IFS=$ac_save_IFS
2463 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2464
2465
2466 # The aliases save the names the user supplied, while $host etc.
2467 # will get canonicalized.
2468 test -n "$target_alias" &&
2469   test "$program_prefix$program_suffix$program_transform_name" = \
2470     NONENONEs,x,x, &&
2471   program_prefix=${target_alias}-
2472
2473 target_alias=${target_alias-$host_alias}
2474
2475 am__api_version='1.11'
2476
2477 # Find a good install program.  We prefer a C program (faster),
2478 # so one script is as good as another.  But avoid the broken or
2479 # incompatible versions:
2480 # SysV /etc/install, /usr/sbin/install
2481 # SunOS /usr/etc/install
2482 # IRIX /sbin/install
2483 # AIX /bin/install
2484 # AmigaOS /C/install, which installs bootblocks on floppy discs
2485 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2486 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2487 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2488 # OS/2's system install, which has a completely different semantic
2489 # ./install, which can be erroneously created by make from ./install.sh.
2490 # Reject install programs that cannot install multiple files.
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2492 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2493 if test -z "$INSTALL"; then
2494 if test "${ac_cv_path_install+set}" = set; then :
2495   $as_echo_n "(cached) " >&6
2496 else
2497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498 for as_dir in $PATH
2499 do
2500   IFS=$as_save_IFS
2501   test -z "$as_dir" && as_dir=.
2502     # Account for people who put trailing slashes in PATH elements.
2503 case $as_dir/ in #((
2504   ./ | .// | /[cC]/* | \
2505   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2506   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2507   /usr/ucb/* ) ;;
2508   *)
2509     # OSF1 and SCO ODT 3.0 have their own names for install.
2510     # Don't use installbsd from OSF since it installs stuff as root
2511     # by default.
2512     for ac_prog in ginstall scoinst install; do
2513       for ac_exec_ext in '' $ac_executable_extensions; do
2514         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2515           if test $ac_prog = install &&
2516             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2517             # AIX install.  It has an incompatible calling convention.
2518             :
2519           elif test $ac_prog = install &&
2520             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2521             # program-specific install script used by HP pwplus--don't use.
2522             :
2523           else
2524             rm -rf conftest.one conftest.two conftest.dir
2525             echo one > conftest.one
2526             echo two > conftest.two
2527             mkdir conftest.dir
2528             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2529               test -s conftest.one && test -s conftest.two &&
2530               test -s conftest.dir/conftest.one &&
2531               test -s conftest.dir/conftest.two
2532             then
2533               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2534               break 3
2535             fi
2536           fi
2537         fi
2538       done
2539     done
2540     ;;
2541 esac
2542
2543   done
2544 IFS=$as_save_IFS
2545
2546 rm -rf conftest.one conftest.two conftest.dir
2547
2548 fi
2549   if test "${ac_cv_path_install+set}" = set; then
2550     INSTALL=$ac_cv_path_install
2551   else
2552     # As a last resort, use the slow shell script.  Don't cache a
2553     # value for INSTALL within a source directory, because that will
2554     # break other packages using the cache if that directory is
2555     # removed, or if the value is a relative name.
2556     INSTALL=$ac_install_sh
2557   fi
2558 fi
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2560 $as_echo "$INSTALL" >&6; }
2561
2562 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2563 # It thinks the first close brace ends the variable substitution.
2564 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2565
2566 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2567
2568 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2569
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2571 $as_echo_n "checking whether build environment is sane... " >&6; }
2572 # Just in case
2573 sleep 1
2574 echo timestamp > conftest.file
2575 # Reject unsafe characters in $srcdir or the absolute working directory
2576 # name.  Accept space and tab only in the latter.
2577 am_lf='
2578 '
2579 case `pwd` in
2580   *[\\\"\#\$\&\'\`$am_lf]*)
2581     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2582 esac
2583 case $srcdir in
2584   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2585     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2586 esac
2587
2588 # Do `set' in a subshell so we don't clobber the current shell's
2589 # arguments.  Must try -L first in case configure is actually a
2590 # symlink; some systems play weird games with the mod time of symlinks
2591 # (eg FreeBSD returns the mod time of the symlink's containing
2592 # directory).
2593 if (
2594    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2595    if test "$*" = "X"; then
2596       # -L didn't work.
2597       set X `ls -t "$srcdir/configure" conftest.file`
2598    fi
2599    rm -f conftest.file
2600    if test "$*" != "X $srcdir/configure conftest.file" \
2601       && test "$*" != "X conftest.file $srcdir/configure"; then
2602
2603       # If neither matched, then we have a broken ls.  This can happen
2604       # if, for instance, CONFIG_SHELL is bash and it inherits a
2605       # broken ls alias from the environment.  This has actually
2606       # happened.  Such a system could not be considered "sane".
2607       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2608 alias in your environment" "$LINENO" 5
2609    fi
2610
2611    test "$2" = conftest.file
2612    )
2613 then
2614    # Ok.
2615    :
2616 else
2617    as_fn_error "newly created file is older than distributed files!
2618 Check your system clock" "$LINENO" 5
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2621 $as_echo "yes" >&6; }
2622 test "$program_prefix" != NONE &&
2623   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2624 # Use a double $ so make ignores it.
2625 test "$program_suffix" != NONE &&
2626   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2627 # Double any \ or $.
2628 # By default was `s,x,x', remove it if useless.
2629 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2630 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2631
2632 # expand $ac_aux_dir to an absolute path
2633 am_aux_dir=`cd $ac_aux_dir && pwd`
2634
2635 if test x"${MISSING+set}" != xset; then
2636   case $am_aux_dir in
2637   *\ * | *\     *)
2638     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2639   *)
2640     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2641   esac
2642 fi
2643 # Use eval to expand $SHELL
2644 if eval "$MISSING --run true"; then
2645   am_missing_run="$MISSING --run "
2646 else
2647   am_missing_run=
2648   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2649 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2650 fi
2651
2652 if test x"${install_sh}" != xset; then
2653   case $am_aux_dir in
2654   *\ * | *\     *)
2655     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2656   *)
2657     install_sh="\${SHELL} $am_aux_dir/install-sh"
2658   esac
2659 fi
2660
2661 # Installed binaries are usually stripped using `strip' when the user
2662 # run `make install-strip'.  However `strip' might not be the right
2663 # tool to use in cross-compilation environments, therefore Automake
2664 # will honor the `STRIP' environment variable to overrule this program.
2665 if test "$cross_compiling" != no; then
2666   if test -n "$ac_tool_prefix"; then
2667   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}strip; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_prog_STRIP+set}" = set; then :
2672   $as_echo_n "(cached) " >&6
2673 else
2674   if test -n "$STRIP"; then
2675   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682     for ac_exec_ext in '' $ac_executable_extensions; do
2683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689   done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 STRIP=$ac_cv_prog_STRIP
2695 if test -n "$STRIP"; then
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2697 $as_echo "$STRIP" >&6; }
2698 else
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704 fi
2705 if test -z "$ac_cv_prog_STRIP"; then
2706   ac_ct_STRIP=$STRIP
2707   # Extract the first word of "strip", so it can be a program name with args.
2708 set dummy strip; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2712   $as_echo_n "(cached) " >&6
2713 else
2714   if test -n "$ac_ct_STRIP"; then
2715   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720   IFS=$as_save_IFS
2721   test -z "$as_dir" && as_dir=.
2722     for ac_exec_ext in '' $ac_executable_extensions; do
2723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724     ac_cv_prog_ac_ct_STRIP="strip"
2725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726     break 2
2727   fi
2728 done
2729   done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2735 if test -n "$ac_ct_STRIP"; then
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2737 $as_echo "$ac_ct_STRIP" >&6; }
2738 else
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743   if test "x$ac_ct_STRIP" = x; then
2744     STRIP=":"
2745   else
2746     case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750 ac_tool_warned=yes ;;
2751 esac
2752     STRIP=$ac_ct_STRIP
2753   fi
2754 else
2755   STRIP="$ac_cv_prog_STRIP"
2756 fi
2757
2758 fi
2759 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2762 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2763 if test -z "$MKDIR_P"; then
2764   if test "${ac_cv_path_mkdir+set}" = set; then :
2765   $as_echo_n "(cached) " >&6
2766 else
2767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772     for ac_prog in mkdir gmkdir; do
2773          for ac_exec_ext in '' $ac_executable_extensions; do
2774            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2775            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2776              'mkdir (GNU coreutils) '* | \
2777              'mkdir (coreutils) '* | \
2778              'mkdir (fileutils) '4.1*)
2779                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2780                break 3;;
2781            esac
2782          done
2783        done
2784   done
2785 IFS=$as_save_IFS
2786
2787 fi
2788
2789   if test "${ac_cv_path_mkdir+set}" = set; then
2790     MKDIR_P="$ac_cv_path_mkdir -p"
2791   else
2792     # As a last resort, use the slow shell script.  Don't cache a
2793     # value for MKDIR_P within a source directory, because that will
2794     # break other packages using the cache if that directory is
2795     # removed, or if the value is a relative name.
2796     test -d ./--version && rmdir ./--version
2797     MKDIR_P="$ac_install_sh -d"
2798   fi
2799 fi
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2801 $as_echo "$MKDIR_P" >&6; }
2802
2803 mkdir_p="$MKDIR_P"
2804 case $mkdir_p in
2805   [\\/$]* | ?:[\\/]*) ;;
2806   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2807 esac
2808
2809 for ac_prog in gawk mawk nawk awk
2810 do
2811   # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if test "${ac_cv_prog_AWK+set}" = set; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$AWK"; then
2819   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828     ac_cv_prog_AWK="$ac_prog"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 AWK=$ac_cv_prog_AWK
2839 if test -n "$AWK"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2841 $as_echo "$AWK" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848   test -n "$AWK" && break
2849 done
2850
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2853 set x ${MAKE-make}
2854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2855 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   cat >conftest.make <<\_ACEOF
2859 SHELL = /bin/sh
2860 all:
2861         @echo '@@@%%%=$(MAKE)=@@@%%%'
2862 _ACEOF
2863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2865   *@@@%%%=?*=@@@%%%*)
2866     eval ac_cv_prog_make_${ac_make}_set=yes;;
2867   *)
2868     eval ac_cv_prog_make_${ac_make}_set=no;;
2869 esac
2870 rm -f conftest.make
2871 fi
2872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2874 $as_echo "yes" >&6; }
2875   SET_MAKE=
2876 else
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879   SET_MAKE="MAKE=${MAKE-make}"
2880 fi
2881
2882 rm -rf .tst 2>/dev/null
2883 mkdir .tst 2>/dev/null
2884 if test -d .tst; then
2885   am__leading_dot=.
2886 else
2887   am__leading_dot=_
2888 fi
2889 rmdir .tst 2>/dev/null
2890
2891 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2892   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2893   # is not polluted with repeated "-I."
2894   am__isrc=' -I$(srcdir)'
2895   # test to see if srcdir already configured
2896   if test -f $srcdir/config.status; then
2897     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2898   fi
2899 fi
2900
2901 # test whether we have cygpath
2902 if test -z "$CYGPATH_W"; then
2903   if (cygpath --version) >/dev/null 2>/dev/null; then
2904     CYGPATH_W='cygpath -w'
2905   else
2906     CYGPATH_W=echo
2907   fi
2908 fi
2909
2910
2911 # Define the identity of the package.
2912  PACKAGE='libgo'
2913  VERSION='version-unused'
2914
2915
2916 # Some tools Automake needs.
2917
2918 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2919
2920
2921 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2922
2923
2924 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2925
2926
2927 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2928
2929
2930 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2931
2932 # We need awk for the "check" target.  The system "awk" is bad on
2933 # some platforms.
2934 # Always define AMTAR for backward compatibility.
2935
2936 AMTAR=${AMTAR-"${am_missing_run}tar"}
2937
2938 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949 ac_ext=c
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 if test -n "$ac_tool_prefix"; then
2955   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2956 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 $as_echo_n "checking for $ac_word... " >&6; }
2959 if test "${ac_cv_prog_CC+set}" = set; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   if test -n "$CC"; then
2963   ac_cv_prog_CC="$CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968   IFS=$as_save_IFS
2969   test -z "$as_dir" && as_dir=.
2970     for ac_exec_ext in '' $ac_executable_extensions; do
2971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974     break 2
2975   fi
2976 done
2977   done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 CC=$ac_cv_prog_CC
2983 if test -n "$CC"; then
2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2985 $as_echo "$CC" >&6; }
2986 else
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 fi
2990
2991
2992 fi
2993 if test -z "$ac_cv_prog_CC"; then
2994   ac_ct_CC=$CC
2995   # Extract the first word of "gcc", so it can be a program name with args.
2996 set dummy gcc; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3000   $as_echo_n "(cached) " >&6
3001 else
3002   if test -n "$ac_ct_CC"; then
3003   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3007 do
3008   IFS=$as_save_IFS
3009   test -z "$as_dir" && as_dir=.
3010     for ac_exec_ext in '' $ac_executable_extensions; do
3011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012     ac_cv_prog_ac_ct_CC="gcc"
3013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014     break 2
3015   fi
3016 done
3017   done
3018 IFS=$as_save_IFS
3019
3020 fi
3021 fi
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031   if test "x$ac_ct_CC" = x; then
3032     CC=""
3033   else
3034     case $cross_compiling:$ac_tool_warned in
3035 yes:)
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3038 ac_tool_warned=yes ;;
3039 esac
3040     CC=$ac_ct_CC
3041   fi
3042 else
3043   CC="$ac_cv_prog_CC"
3044 fi
3045
3046 if test -z "$CC"; then
3047           if test -n "$ac_tool_prefix"; then
3048     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}cc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   if test -n "$CC"; then
3056   ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061   IFS=$as_save_IFS
3062   test -z "$as_dir" && as_dir=.
3063     for ac_exec_ext in '' $ac_executable_extensions; do
3064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065     ac_cv_prog_CC="${ac_tool_prefix}cc"
3066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070   done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3079 else
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085   fi
3086 fi
3087 if test -z "$CC"; then
3088   # Extract the first word of "cc", so it can be a program name with args.
3089 set dummy cc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then :
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$CC"; then
3096   ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098   ac_prog_rejected=no
3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100 for as_dir in $PATH
3101 do
3102   IFS=$as_save_IFS
3103   test -z "$as_dir" && as_dir=.
3104     for ac_exec_ext in '' $ac_executable_extensions; do
3105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3106     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3107        ac_prog_rejected=yes
3108        continue
3109      fi
3110     ac_cv_prog_CC="cc"
3111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112     break 2
3113   fi
3114 done
3115   done
3116 IFS=$as_save_IFS
3117
3118 if test $ac_prog_rejected = yes; then
3119   # We found a bogon in the path, so make sure we never use it.
3120   set dummy $ac_cv_prog_CC
3121   shift
3122   if test $# != 0; then
3123     # We chose a different compiler from the bogus one.
3124     # However, it has the same basename, so the bogon will be chosen
3125     # first if we set CC to just the basename; use the full file name.
3126     shift
3127     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3128   fi
3129 fi
3130 fi
3131 fi
3132 CC=$ac_cv_prog_CC
3133 if test -n "$CC"; then
3134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3135 $as_echo "$CC" >&6; }
3136 else
3137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142 fi
3143 if test -z "$CC"; then
3144   if test -n "$ac_tool_prefix"; then
3145   for ac_prog in cl.exe
3146   do
3147     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3148 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_CC+set}" = set; then :
3152   $as_echo_n "(cached) " >&6
3153 else
3154   if test -n "$CC"; then
3155   ac_cv_prog_CC="$CC" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160   IFS=$as_save_IFS
3161   test -z "$as_dir" && as_dir=.
3162     for ac_exec_ext in '' $ac_executable_extensions; do
3163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166     break 2
3167   fi
3168 done
3169   done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 CC=$ac_cv_prog_CC
3175 if test -n "$CC"; then
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3177 $as_echo "$CC" >&6; }
3178 else
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3181 fi
3182
3183
3184     test -n "$CC" && break
3185   done
3186 fi
3187 if test -z "$CC"; then
3188   ac_ct_CC=$CC
3189   for ac_prog in cl.exe
3190 do
3191   # Extract the first word of "$ac_prog", so it can be a program name with args.
3192 set dummy $ac_prog; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3196   $as_echo_n "(cached) " >&6
3197 else
3198   if test -n "$ac_ct_CC"; then
3199   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3200 else
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 for as_dir in $PATH
3203 do
3204   IFS=$as_save_IFS
3205   test -z "$as_dir" && as_dir=.
3206     for ac_exec_ext in '' $ac_executable_extensions; do
3207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208     ac_cv_prog_ac_ct_CC="$ac_prog"
3209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3210     break 2
3211   fi
3212 done
3213   done
3214 IFS=$as_save_IFS
3215
3216 fi
3217 fi
3218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3219 if test -n "$ac_ct_CC"; then
3220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3221 $as_echo "$ac_ct_CC" >&6; }
3222 else
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3225 fi
3226
3227
3228   test -n "$ac_ct_CC" && break
3229 done
3230
3231   if test "x$ac_ct_CC" = x; then
3232     CC=""
3233   else
3234     case $cross_compiling:$ac_tool_warned in
3235 yes:)
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3238 ac_tool_warned=yes ;;
3239 esac
3240     CC=$ac_ct_CC
3241   fi
3242 fi
3243
3244 fi
3245
3246
3247 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error "no acceptable C compiler found in \$PATH
3250 See \`config.log' for more details." "$LINENO" 5; }
3251
3252 # Provide some information about the compiler.
3253 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3254 set X $ac_compile
3255 ac_compiler=$2
3256 for ac_option in --version -v -V -qversion; do
3257   { { ac_try="$ac_compiler $ac_option >&5"
3258 case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3265   ac_status=$?
3266   if test -s conftest.err; then
3267     sed '10a\
3268 ... rest of stderr output deleted ...
3269          10q' conftest.err >conftest.er1
3270     cat conftest.er1 >&5
3271     rm -f conftest.er1 conftest.err
3272   fi
3273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274   test $ac_status = 0; }
3275 done
3276
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h.  */
3279
3280 int
3281 main ()
3282 {
3283
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 ac_clean_files_save=$ac_clean_files
3289 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3290 # Try to create an executable without -o first, disregard a.out.
3291 # It will help us diagnose broken compilers, and finding out an intuition
3292 # of exeext.
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3294 $as_echo_n "checking for C compiler default output file name... " >&6; }
3295 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3296
3297 # The possible output files:
3298 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3299
3300 ac_rmfiles=
3301 for ac_file in $ac_files
3302 do
3303   case $ac_file in
3304     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3305     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3306   esac
3307 done
3308 rm -f $ac_rmfiles
3309
3310 if { { ac_try="$ac_link_default"
3311 case "(($ac_try" in
3312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313   *) ac_try_echo=$ac_try;;
3314 esac
3315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3316 $as_echo "$ac_try_echo"; } >&5
3317   (eval "$ac_link_default") 2>&5
3318   ac_status=$?
3319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3320   test $ac_status = 0; }; then :
3321   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3322 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3323 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3324 # so that the user can short-circuit this test for compilers unknown to
3325 # Autoconf.
3326 for ac_file in $ac_files ''
3327 do
3328   test -f "$ac_file" || continue
3329   case $ac_file in
3330     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3331         ;;
3332     [ab].out )
3333         # We found the default executable, but exeext='' is most
3334         # certainly right.
3335         break;;
3336     *.* )
3337         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3338         then :; else
3339            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3340         fi
3341         # We set ac_cv_exeext here because the later test for it is not
3342         # safe: cross compilers may not add the suffix if given an `-o'
3343         # argument, so we may need to know it at that point already.
3344         # Even if this section looks crufty: it has the advantage of
3345         # actually working.
3346         break;;
3347     * )
3348         break;;
3349   esac
3350 done
3351 test "$ac_cv_exeext" = no && ac_cv_exeext=
3352
3353 else
3354   ac_file=''
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3357 $as_echo "$ac_file" >&6; }
3358 if test -z "$ac_file"; then :
3359   $as_echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3363 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3364 { as_fn_set_status 77
3365 as_fn_error "C compiler cannot create executables
3366 See \`config.log' for more details." "$LINENO" 5; }; }
3367 fi
3368 ac_exeext=$ac_cv_exeext
3369
3370 # Check that the compiler produces executables we can run.  If not, either
3371 # the compiler is broken, or we cross compile.
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3373 $as_echo_n "checking whether the C compiler works... " >&6; }
3374 # If not cross compiling, check that we can run a simple program.
3375 if test "$cross_compiling" != yes; then
3376   if { ac_try='./$ac_file'
3377   { { case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383   (eval "$ac_try") 2>&5
3384   ac_status=$?
3385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386   test $ac_status = 0; }; }; then
3387     cross_compiling=no
3388   else
3389     if test "$cross_compiling" = maybe; then
3390         cross_compiling=yes
3391     else
3392         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error "cannot run C compiled programs.
3395 If you meant to cross compile, use \`--host'.
3396 See \`config.log' for more details." "$LINENO" 5; }
3397     fi
3398   fi
3399 fi
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401 $as_echo "yes" >&6; }
3402
3403 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3404 ac_clean_files=$ac_clean_files_save
3405 # Check that the compiler produces executables we can run.  If not, either
3406 # the compiler is broken, or we cross compile.
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3408 $as_echo_n "checking whether we are cross compiling... " >&6; }
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3410 $as_echo "$cross_compiling" >&6; }
3411
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3413 $as_echo_n "checking for suffix of executables... " >&6; }
3414 if { { ac_try="$ac_link"
3415 case "(($ac_try" in
3416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417   *) ac_try_echo=$ac_try;;
3418 esac
3419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420 $as_echo "$ac_try_echo"; } >&5
3421   (eval "$ac_link") 2>&5
3422   ac_status=$?
3423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424   test $ac_status = 0; }; then :
3425   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3426 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3427 # work properly (i.e., refer to `conftest.exe'), while it won't with
3428 # `rm'.
3429 for ac_file in conftest.exe conftest conftest.*; do
3430   test -f "$ac_file" || continue
3431   case $ac_file in
3432     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3433     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3434           break;;
3435     * ) break;;
3436   esac
3437 done
3438 else
3439   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441 as_fn_error "cannot compute suffix of executables: cannot compile and link
3442 See \`config.log' for more details." "$LINENO" 5; }
3443 fi
3444 rm -f conftest$ac_cv_exeext
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3446 $as_echo "$ac_cv_exeext" >&6; }
3447
3448 rm -f conftest.$ac_ext
3449 EXEEXT=$ac_cv_exeext
3450 ac_exeext=$EXEEXT
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3452 $as_echo_n "checking for suffix of object files... " >&6; }
3453 if test "${ac_cv_objext+set}" = set; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h.  */
3458
3459 int
3460 main ()
3461 {
3462
3463   ;
3464   return 0;
3465 }
3466 _ACEOF
3467 rm -f conftest.o conftest.obj
3468 if { { ac_try="$ac_compile"
3469 case "(($ac_try" in
3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471   *) ac_try_echo=$ac_try;;
3472 esac
3473 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3474 $as_echo "$ac_try_echo"; } >&5
3475   (eval "$ac_compile") 2>&5
3476   ac_status=$?
3477   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3478   test $ac_status = 0; }; then :
3479   for ac_file in conftest.o conftest.obj conftest.*; do
3480   test -f "$ac_file" || continue;
3481   case $ac_file in
3482     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3483     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3484        break;;
3485   esac
3486 done
3487 else
3488   $as_echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error "cannot compute suffix of object files: cannot compile
3494 See \`config.log' for more details." "$LINENO" 5; }
3495 fi
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3499 $as_echo "$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3501 ac_objext=$OBJEXT
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3503 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3505   $as_echo_n "(cached) " >&6
3506 else
3507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513 #ifndef __GNUC__
3514        choke me
3515 #endif
3516
3517   ;
3518   return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522   ac_compiler_gnu=yes
3523 else
3524   ac_compiler_gnu=no
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3528
3529 fi
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3531 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3532 if test $ac_compiler_gnu = yes; then
3533   GCC=yes
3534 else
3535   GCC=
3536 fi
3537 ac_test_CFLAGS=${CFLAGS+set}
3538 ac_save_CFLAGS=$CFLAGS
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3540 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3541 if test "${ac_cv_prog_cc_g+set}" = set; then :
3542   $as_echo_n "(cached) " >&6
3543 else
3544   ac_save_c_werror_flag=$ac_c_werror_flag
3545    ac_c_werror_flag=yes
3546    ac_cv_prog_cc_g=no
3547    CFLAGS="-g"
3548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h.  */
3550
3551 int
3552 main ()
3553 {
3554
3555   ;
3556   return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"; then :
3560   ac_cv_prog_cc_g=yes
3561 else
3562   CFLAGS=""
3563       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h.  */
3565
3566 int
3567 main ()
3568 {
3569
3570   ;
3571   return 0;
3572 }
3573 _ACEOF
3574 if ac_fn_c_try_compile "$LINENO"; then :
3575
3576 else
3577   ac_c_werror_flag=$ac_save_c_werror_flag
3578          CFLAGS="-g"
3579          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h.  */
3581
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591   ac_cv_prog_cc_g=yes
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594 fi
3595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3596 fi
3597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3598    ac_c_werror_flag=$ac_save_c_werror_flag
3599 fi
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3601 $as_echo "$ac_cv_prog_cc_g" >&6; }
3602 if test "$ac_test_CFLAGS" = set; then
3603   CFLAGS=$ac_save_CFLAGS
3604 elif test $ac_cv_prog_cc_g = yes; then
3605   if test "$GCC" = yes; then
3606     CFLAGS="-g -O2"
3607   else
3608     CFLAGS="-g"
3609   fi
3610 else
3611   if test "$GCC" = yes; then
3612     CFLAGS="-O2"
3613   else
3614     CFLAGS=
3615   fi
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3618 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3619 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3620   $as_echo_n "(cached) " >&6
3621 else
3622   ac_cv_prog_cc_c89=no
3623 ac_save_CC=$CC
3624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3625 /* end confdefs.h.  */
3626 #include <stdarg.h>
3627 #include <stdio.h>
3628 #include <sys/types.h>
3629 #include <sys/stat.h>
3630 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3631 struct buf { int x; };
3632 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3633 static char *e (p, i)
3634      char **p;
3635      int i;
3636 {
3637   return p[i];
3638 }
3639 static char *f (char * (*g) (char **, int), char **p, ...)
3640 {
3641   char *s;
3642   va_list v;
3643   va_start (v,p);
3644   s = g (p, va_arg (v,int));
3645   va_end (v);
3646   return s;
3647 }
3648
3649 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3650    function prototypes and stuff, but not '\xHH' hex character constants.
3651    These don't provoke an error unfortunately, instead are silently treated
3652    as 'x'.  The following induces an error, until -std is added to get
3653    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3654    array size at least.  It's necessary to write '\x00'==0 to get something
3655    that's true only with -std.  */
3656 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3657
3658 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3659    inside strings and character constants.  */
3660 #define FOO(x) 'x'
3661 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3662
3663 int test (int i, double x);
3664 struct s1 {int (*f) (int a);};
3665 struct s2 {int (*f) (double a);};
3666 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3667 int argc;
3668 char **argv;
3669 int
3670 main ()
3671 {
3672 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3678         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3679 do
3680   CC="$ac_save_CC $ac_arg"
3681   if ac_fn_c_try_compile "$LINENO"; then :
3682   ac_cv_prog_cc_c89=$ac_arg
3683 fi
3684 rm -f core conftest.err conftest.$ac_objext
3685   test "x$ac_cv_prog_cc_c89" != "xno" && break
3686 done
3687 rm -f conftest.$ac_ext
3688 CC=$ac_save_CC
3689
3690 fi
3691 # AC_CACHE_VAL
3692 case "x$ac_cv_prog_cc_c89" in
3693   x)
3694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3695 $as_echo "none needed" >&6; } ;;
3696   xno)
3697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3698 $as_echo "unsupported" >&6; } ;;
3699   *)
3700     CC="$CC $ac_cv_prog_cc_c89"
3701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3702 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3703 esac
3704 if test "x$ac_cv_prog_cc_c89" != xno; then :
3705
3706 fi
3707
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 DEPDIR="${am__leading_dot}deps"
3714
3715 ac_config_commands="$ac_config_commands depfiles"
3716
3717
3718 am_make=${MAKE-make}
3719 cat > confinc << 'END'
3720 am__doit:
3721         @echo this is the am__doit target
3722 .PHONY: am__doit
3723 END
3724 # If we don't find an include directive, just comment out the code.
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3726 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3727 am__include="#"
3728 am__quote=
3729 _am_result=none
3730 # First try GNU make style include.
3731 echo "include confinc" > confmf
3732 # Ignore all kinds of additional output from `make'.
3733 case `$am_make -s -f confmf 2> /dev/null` in #(
3734 *the\ am__doit\ target*)
3735   am__include=include
3736   am__quote=
3737   _am_result=GNU
3738   ;;
3739 esac
3740 # Now try BSD make style include.
3741 if test "$am__include" = "#"; then
3742    echo '.include "confinc"' > confmf
3743    case `$am_make -s -f confmf 2> /dev/null` in #(
3744    *the\ am__doit\ target*)
3745      am__include=.include
3746      am__quote="\""
3747      _am_result=BSD
3748      ;;
3749    esac
3750 fi
3751
3752
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3754 $as_echo "$_am_result" >&6; }
3755 rm -f confinc confmf
3756
3757 # Check whether --enable-dependency-tracking was given.
3758 if test "${enable_dependency_tracking+set}" = set; then :
3759   enableval=$enable_dependency_tracking;
3760 fi
3761
3762 if test "x$enable_dependency_tracking" != xno; then
3763   am_depcomp="$ac_aux_dir/depcomp"
3764   AMDEPBACKSLASH='\'
3765 fi
3766  if test "x$enable_dependency_tracking" != xno; then
3767   AMDEP_TRUE=
3768   AMDEP_FALSE='#'
3769 else
3770   AMDEP_TRUE='#'
3771   AMDEP_FALSE=
3772 fi
3773
3774
3775
3776 depcc="$CC"   am_compiler_list=
3777
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779 $as_echo_n "checking dependency style of $depcc... " >&6; }
3780 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784   # We make a subdir and do the tests there.  Otherwise we can end up
3785   # making bogus files that we don't know about and never remove.  For
3786   # instance it was reported that on HP-UX the gcc test will end up
3787   # making a dummy file named `D' -- because `-MD' means `put the output
3788   # in D'.
3789   mkdir conftest.dir
3790   # Copy depcomp to subdir because otherwise we won't find it if we're
3791   # using a relative directory.
3792   cp "$am_depcomp" conftest.dir
3793   cd conftest.dir
3794   # We will build objects and dependencies in a subdirectory because
3795   # it helps to detect inapplicable dependency modes.  For instance
3796   # both Tru64's cc and ICC support -MD to output dependencies as a
3797   # side effect of compilation, but ICC will put the dependencies in
3798   # the current directory while Tru64 will put them in the object
3799   # directory.
3800   mkdir sub
3801
3802   am_cv_CC_dependencies_compiler_type=none
3803   if test "$am_compiler_list" = ""; then
3804      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3805   fi
3806   am__universal=false
3807   case " $depcc " in #(
3808      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3809      esac
3810
3811   for depmode in $am_compiler_list; do
3812     # Setup a source with many dependencies, because some compilers
3813     # like to wrap large dependency lists on column 80 (with \), and
3814     # we should not choose a depcomp mode which is confused by this.
3815     #
3816     # We need to recreate these files for each test, as the compiler may
3817     # overwrite some of them when testing with obscure command lines.
3818     # This happens at least with the AIX C compiler.
3819     : > sub/conftest.c
3820     for i in 1 2 3 4 5 6; do
3821       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3822       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3823       # Solaris 8's {/usr,}/bin/sh.
3824       touch sub/conftst$i.h
3825     done
3826     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3827
3828     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3829     # mode.  It turns out that the SunPro C++ compiler does not properly
3830     # handle `-M -o', and we need to detect this.  Also, some Intel
3831     # versions had trouble with output in subdirs
3832     am__obj=sub/conftest.${OBJEXT-o}
3833     am__minus_obj="-o $am__obj"
3834     case $depmode in
3835     gcc)
3836       # This depmode causes a compiler race in universal mode.
3837       test "$am__universal" = false || continue
3838       ;;
3839     nosideeffect)
3840       # after this tag, mechanisms are not by side-effect, so they'll
3841       # only be used when explicitly requested
3842       if test "x$enable_dependency_tracking" = xyes; then
3843         continue
3844       else
3845         break
3846       fi
3847       ;;
3848     msvisualcpp | msvcmsys)
3849       # This compiler won't grok `-c -o', but also, the minuso test has
3850       # not run yet.  These depmodes are late enough in the game, and
3851       # so weak that their functioning should not be impacted.
3852       am__obj=conftest.${OBJEXT-o}
3853       am__minus_obj=
3854       ;;
3855     none) break ;;
3856     esac
3857     if depmode=$depmode \
3858        source=sub/conftest.c object=$am__obj \
3859        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3860        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3861          >/dev/null 2>conftest.err &&
3862        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3863        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3864        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3865        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3866       # icc doesn't choke on unknown options, it will just issue warnings
3867       # or remarks (even with -Werror).  So we grep stderr for any message
3868       # that says an option was ignored or not supported.
3869       # When given -MP, icc 7.0 and 7.1 complain thusly:
3870       #   icc: Command line warning: ignoring option '-M'; no argument required
3871       # The diagnosis changed in icc 8.0:
3872       #   icc: Command line remark: option '-MP' not supported
3873       if (grep 'ignoring option' conftest.err ||
3874           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3875         am_cv_CC_dependencies_compiler_type=$depmode
3876         break
3877       fi
3878     fi
3879   done
3880
3881   cd ..
3882   rm -rf conftest.dir
3883 else
3884   am_cv_CC_dependencies_compiler_type=none
3885 fi
3886
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3889 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3890 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3891
3892  if
3893   test "x$enable_dependency_tracking" != xno \
3894   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3895   am__fastdepCC_TRUE=
3896   am__fastdepCC_FALSE='#'
3897 else
3898   am__fastdepCC_TRUE='#'
3899   am__fastdepCC_FALSE=
3900 fi
3901
3902
3903 ac_ext=go
3904 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3905 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3906 ac_compile_gnu=yes
3907 if test -n "$ac_tool_prefix"; then
3908   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3909 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if test "${ac_cv_prog_GOC+set}" = set; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   if test -n "$GOC"; then
3916   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921   IFS=$as_save_IFS
3922   test -z "$as_dir" && as_dir=.
3923     for ac_exec_ext in '' $ac_executable_extensions; do
3924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3925     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927     break 2
3928   fi
3929 done
3930   done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 GOC=$ac_cv_prog_GOC
3936 if test -n "$GOC"; then
3937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3938 $as_echo "$GOC" >&6; }
3939 else
3940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 fi
3943
3944
3945 fi
3946 if test -z "$ac_cv_prog_GOC"; then
3947   ac_ct_GOC=$GOC
3948   # Extract the first word of "gccgo", so it can be a program name with args.
3949 set dummy gccgo; ac_word=$2
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951 $as_echo_n "checking for $ac_word... " >&6; }
3952 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955   if test -n "$ac_ct_GOC"; then
3956   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3957 else
3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959 for as_dir in $PATH
3960 do
3961   IFS=$as_save_IFS
3962   test -z "$as_dir" && as_dir=.
3963     for ac_exec_ext in '' $ac_executable_extensions; do
3964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3965     ac_cv_prog_ac_ct_GOC="gccgo"
3966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3967     break 2
3968   fi
3969 done
3970   done
3971 IFS=$as_save_IFS
3972
3973 fi
3974 fi
3975 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3976 if test -n "$ac_ct_GOC"; then
3977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3978 $as_echo "$ac_ct_GOC" >&6; }
3979 else
3980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981 $as_echo "no" >&6; }
3982 fi
3983
3984   if test "x$ac_ct_GOC" = x; then
3985     GOC=""
3986   else
3987     case $cross_compiling:$ac_tool_warned in
3988 yes:)
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3991 ac_tool_warned=yes ;;
3992 esac
3993     GOC=$ac_ct_GOC
3994   fi
3995 else
3996   GOC="$ac_cv_prog_GOC"
3997 fi
3998
3999 if test -z "$GOC"; then
4000   if test -n "$ac_tool_prefix"; then
4001     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4002 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4004 $as_echo_n "checking for $ac_word... " >&6; }
4005 if test "${ac_cv_prog_GOC+set}" = set; then :
4006   $as_echo_n "(cached) " >&6
4007 else
4008   if test -n "$GOC"; then
4009   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4010 else
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012 for as_dir in $PATH
4013 do
4014   IFS=$as_save_IFS
4015   test -z "$as_dir" && as_dir=.
4016     for ac_exec_ext in '' $ac_executable_extensions; do
4017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4018     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4020     break 2
4021   fi
4022 done
4023   done
4024 IFS=$as_save_IFS
4025
4026 fi
4027 fi
4028 GOC=$ac_cv_prog_GOC
4029 if test -n "$GOC"; then
4030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4031 $as_echo "$GOC" >&6; }
4032 else
4033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034 $as_echo "no" >&6; }
4035 fi
4036
4037
4038   fi
4039 fi
4040 if test -z "$GOC"; then
4041   # Extract the first word of "gccgo", so it can be a program name with args.
4042 set dummy gccgo; ac_word=$2
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4044 $as_echo_n "checking for $ac_word... " >&6; }
4045 if test "${ac_cv_prog_GOC+set}" = set; then :
4046   $as_echo_n "(cached) " >&6
4047 else
4048   if test -n "$GOC"; then
4049   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4050 else
4051   ac_prog_rejected=no
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4054 do
4055   IFS=$as_save_IFS
4056   test -z "$as_dir" && as_dir=.
4057     for ac_exec_ext in '' $ac_executable_extensions; do
4058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4059     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4060        ac_prog_rejected=yes
4061        continue
4062      fi
4063     ac_cv_prog_GOC="gccgo"
4064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068   done
4069 IFS=$as_save_IFS
4070
4071 if test $ac_prog_rejected = yes; then
4072   # We found a bogon in the path, so make sure we never use it.
4073   set dummy $ac_cv_prog_GOC
4074   shift
4075   if test $# != 0; then
4076     # We chose a different compiler from the bogus one.
4077     # However, it has the same basename, so the bogon will be chosen
4078     # first if we set GOC to just the basename; use the full file name.
4079     shift
4080     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4081   fi
4082 fi
4083 fi
4084 fi
4085 GOC=$ac_cv_prog_GOC
4086 if test -n "$GOC"; then
4087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4088 $as_echo "$GOC" >&6; }
4089 else
4090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091 $as_echo "no" >&6; }
4092 fi
4093
4094
4095 fi
4096
4097
4098 # Provide some information about the compiler.
4099 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4100 set X $ac_compile
4101 ac_compiler=$2
4102 { { ac_try="$ac_compiler --version >&5"
4103 case "(($ac_try" in
4104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105   *) ac_try_echo=$ac_try;;
4106 esac
4107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4108 $as_echo "$ac_try_echo"; } >&5
4109   (eval "$ac_compiler --version >&5") 2>conftest.err
4110   ac_status=$?
4111   if test -s conftest.err; then
4112     sed '10a\
4113 ... rest of stderr output deleted ...
4114          10q' conftest.err >conftest.er1
4115     cat conftest.er1 >&5
4116     rm -f conftest.er1 conftest.err
4117   fi
4118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4119   test $ac_status = 0; }
4120 GOCFLAGS="-g -O2"
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126
4127
4128
4129
4130
4131
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4133 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4134     # Check whether --enable-maintainer-mode was given.
4135 if test "${enable_maintainer_mode+set}" = set; then :
4136   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4137 else
4138   USE_MAINTAINER_MODE=no
4139 fi
4140
4141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4142 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4143    if test $USE_MAINTAINER_MODE = yes; then
4144   MAINTAINER_MODE_TRUE=
4145   MAINTAINER_MODE_FALSE='#'
4146 else
4147   MAINTAINER_MODE_TRUE='#'
4148   MAINTAINER_MODE_FALSE=
4149 fi
4150
4151   MAINT=$MAINTAINER_MODE_TRUE
4152
4153
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4156 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4157 if test "${ac_cv_path_SED+set}" = set; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4161      for ac_i in 1 2 3 4 5 6 7; do
4162        ac_script="$ac_script$as_nl$ac_script"
4163      done
4164      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4165      { ac_script=; unset ac_script;}
4166      if test -z "$SED"; then
4167   ac_path_SED_found=false
4168   # Loop through the user's path and test for each of PROGNAME-LIST
4169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4171 do
4172   IFS=$as_save_IFS
4173   test -z "$as_dir" && as_dir=.
4174     for ac_prog in sed gsed; do
4175     for ac_exec_ext in '' $ac_executable_extensions; do
4176       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4177       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4178 # Check for GNU ac_path_SED and select it if it is found.
4179   # Check for GNU $ac_path_SED
4180 case `"$ac_path_SED" --version 2>&1` in
4181 *GNU*)
4182   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4183 *)
4184   ac_count=0
4185   $as_echo_n 0123456789 >"conftest.in"
4186   while :
4187   do
4188     cat "conftest.in" "conftest.in" >"conftest.tmp"
4189     mv "conftest.tmp" "conftest.in"
4190     cp "conftest.in" "conftest.nl"
4191     $as_echo '' >> "conftest.nl"
4192     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4193     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4194     as_fn_arith $ac_count + 1 && ac_count=$as_val
4195     if test $ac_count -gt ${ac_path_SED_max-0}; then
4196       # Best one so far, save it but keep looking for a better one
4197       ac_cv_path_SED="$ac_path_SED"
4198       ac_path_SED_max=$ac_count
4199     fi
4200     # 10*(2^10) chars as input seems more than enough
4201     test $ac_count -gt 10 && break
4202   done
4203   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4204 esac
4205
4206       $ac_path_SED_found && break 3
4207     done
4208   done
4209   done
4210 IFS=$as_save_IFS
4211   if test -z "$ac_cv_path_SED"; then
4212     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4213   fi
4214 else
4215   ac_cv_path_SED=$SED
4216 fi
4217
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4220 $as_echo "$ac_cv_path_SED" >&6; }
4221  SED="$ac_cv_path_SED"
4222   rm -f conftest.sed
4223
4224 test -z "$SED" && SED=sed
4225 Xsed="$SED -e 1s/^X//"
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4238 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4239 if test "${ac_cv_path_GREP+set}" = set; then :
4240   $as_echo_n "(cached) " >&6
4241 else
4242   if test -z "$GREP"; then
4243   ac_path_GREP_found=false
4244   # Loop through the user's path and test for each of PROGNAME-LIST
4245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 do
4248   IFS=$as_save_IFS
4249   test -z "$as_dir" && as_dir=.
4250     for ac_prog in grep ggrep; do
4251     for ac_exec_ext in '' $ac_executable_extensions; do
4252       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4253       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4254 # Check for GNU ac_path_GREP and select it if it is found.
4255   # Check for GNU $ac_path_GREP
4256 case `"$ac_path_GREP" --version 2>&1` in
4257 *GNU*)
4258   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4259 *)
4260   ac_count=0
4261   $as_echo_n 0123456789 >"conftest.in"
4262   while :
4263   do
4264     cat "conftest.in" "conftest.in" >"conftest.tmp"
4265     mv "conftest.tmp" "conftest.in"
4266     cp "conftest.in" "conftest.nl"
4267     $as_echo 'GREP' >> "conftest.nl"
4268     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4269     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4270     as_fn_arith $ac_count + 1 && ac_count=$as_val
4271     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4272       # Best one so far, save it but keep looking for a better one
4273       ac_cv_path_GREP="$ac_path_GREP"
4274       ac_path_GREP_max=$ac_count
4275     fi
4276     # 10*(2^10) chars as input seems more than enough
4277     test $ac_count -gt 10 && break
4278   done
4279   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280 esac
4281
4282       $ac_path_GREP_found && break 3
4283     done
4284   done
4285   done
4286 IFS=$as_save_IFS
4287   if test -z "$ac_cv_path_GREP"; then
4288     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289   fi
4290 else
4291   ac_cv_path_GREP=$GREP
4292 fi
4293
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4296 $as_echo "$ac_cv_path_GREP" >&6; }
4297  GREP="$ac_cv_path_GREP"
4298
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4301 $as_echo_n "checking for egrep... " >&6; }
4302 if test "${ac_cv_path_EGREP+set}" = set; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4306    then ac_cv_path_EGREP="$GREP -E"
4307    else
4308      if test -z "$EGREP"; then
4309   ac_path_EGREP_found=false
4310   # Loop through the user's path and test for each of PROGNAME-LIST
4311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316     for ac_prog in egrep; do
4317     for ac_exec_ext in '' $ac_executable_extensions; do
4318       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4319       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4320 # Check for GNU ac_path_EGREP and select it if it is found.
4321   # Check for GNU $ac_path_EGREP
4322 case `"$ac_path_EGREP" --version 2>&1` in
4323 *GNU*)
4324   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4325 *)
4326   ac_count=0
4327   $as_echo_n 0123456789 >"conftest.in"
4328   while :
4329   do
4330     cat "conftest.in" "conftest.in" >"conftest.tmp"
4331     mv "conftest.tmp" "conftest.in"
4332     cp "conftest.in" "conftest.nl"
4333     $as_echo 'EGREP' >> "conftest.nl"
4334     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4335     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4336     as_fn_arith $ac_count + 1 && ac_count=$as_val
4337     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4338       # Best one so far, save it but keep looking for a better one
4339       ac_cv_path_EGREP="$ac_path_EGREP"
4340       ac_path_EGREP_max=$ac_count
4341     fi
4342     # 10*(2^10) chars as input seems more than enough
4343     test $ac_count -gt 10 && break
4344   done
4345   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346 esac
4347
4348       $ac_path_EGREP_found && break 3
4349     done
4350   done
4351   done
4352 IFS=$as_save_IFS
4353   if test -z "$ac_cv_path_EGREP"; then
4354     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4355   fi
4356 else
4357   ac_cv_path_EGREP=$EGREP
4358 fi
4359
4360    fi
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4363 $as_echo "$ac_cv_path_EGREP" >&6; }
4364  EGREP="$ac_cv_path_EGREP"
4365
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4368 $as_echo_n "checking for fgrep... " >&6; }
4369 if test "${ac_cv_path_FGREP+set}" = set; then :
4370   $as_echo_n "(cached) " >&6
4371 else
4372   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4373    then ac_cv_path_FGREP="$GREP -F"
4374    else
4375      if test -z "$FGREP"; then
4376   ac_path_FGREP_found=false
4377   # Loop through the user's path and test for each of PROGNAME-LIST
4378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4380 do
4381   IFS=$as_save_IFS
4382   test -z "$as_dir" && as_dir=.
4383     for ac_prog in fgrep; do
4384     for ac_exec_ext in '' $ac_executable_extensions; do
4385       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4386       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4387 # Check for GNU ac_path_FGREP and select it if it is found.
4388   # Check for GNU $ac_path_FGREP
4389 case `"$ac_path_FGREP" --version 2>&1` in
4390 *GNU*)
4391   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4392 *)
4393   ac_count=0
4394   $as_echo_n 0123456789 >"conftest.in"
4395   while :
4396   do
4397     cat "conftest.in" "conftest.in" >"conftest.tmp"
4398     mv "conftest.tmp" "conftest.in"
4399     cp "conftest.in" "conftest.nl"
4400     $as_echo 'FGREP' >> "conftest.nl"
4401     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4402     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4403     as_fn_arith $ac_count + 1 && ac_count=$as_val
4404     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4405       # Best one so far, save it but keep looking for a better one
4406       ac_cv_path_FGREP="$ac_path_FGREP"
4407       ac_path_FGREP_max=$ac_count
4408     fi
4409     # 10*(2^10) chars as input seems more than enough
4410     test $ac_count -gt 10 && break
4411   done
4412   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4413 esac
4414
4415       $ac_path_FGREP_found && break 3
4416     done
4417   done
4418   done
4419 IFS=$as_save_IFS
4420   if test -z "$ac_cv_path_FGREP"; then
4421     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4422   fi
4423 else
4424   ac_cv_path_FGREP=$FGREP
4425 fi
4426
4427    fi
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4430 $as_echo "$ac_cv_path_FGREP" >&6; }
4431  FGREP="$ac_cv_path_FGREP"
4432
4433
4434 test -z "$GREP" && GREP=grep
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4453 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4454 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4457 $as_echo_n "checking how to print strings... " >&6; }
4458 # Test print first, because it will be a builtin if present.
4459 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4460    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4461   ECHO='print -r --'
4462 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4463   ECHO='printf %s\n'
4464 else
4465   # Use this function as a fallback that always works.
4466   func_fallback_echo ()
4467   {
4468     eval 'cat <<_LTECHO_EOF
4469 $1
4470 _LTECHO_EOF'
4471   }
4472   ECHO='func_fallback_echo'
4473 fi
4474
4475 # func_echo_all arg...
4476 # Invoke $ECHO with all args, space-separated.
4477 func_echo_all ()
4478 {
4479     $ECHO ""
4480 }
4481
4482 case "$ECHO" in
4483   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4484 $as_echo "printf" >&6; } ;;
4485   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4486 $as_echo "print -r" >&6; } ;;
4487   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4488 $as_echo "cat" >&6; } ;;
4489 esac
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506 # Check whether --with-gnu-ld was given.
4507 if test "${with_gnu_ld+set}" = set; then :
4508   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4509 else
4510   with_gnu_ld=no
4511 fi
4512
4513 ac_prog=ld
4514 if test "$GCC" = yes; then
4515   # Check if gcc -print-prog-name=ld gives a path.
4516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4517 $as_echo_n "checking for ld used by $CC... " >&6; }
4518   case $host in
4519   *-*-mingw*)
4520     # gcc leaves a trailing carriage return which upsets mingw
4521     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4522   *)
4523     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4524   esac
4525   case $ac_prog in
4526     # Accept absolute paths.
4527     [\\/]* | ?:[\\/]*)
4528       re_direlt='/[^/][^/]*/\.\./'
4529       # Canonicalize the pathname of ld
4530       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4531       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4532         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4533       done
4534       test -z "$LD" && LD="$ac_prog"
4535       ;;
4536   "")
4537     # If it fails, then pretend we aren't using GCC.
4538     ac_prog=ld
4539     ;;
4540   *)
4541     # If it is relative, then search for the first ld in PATH.
4542     with_gnu_ld=unknown
4543     ;;
4544   esac
4545 elif test "$with_gnu_ld" = yes; then
4546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4547 $as_echo_n "checking for GNU ld... " >&6; }
4548 else
4549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4550 $as_echo_n "checking for non-GNU ld... " >&6; }
4551 fi
4552 if test "${lt_cv_path_LD+set}" = set; then :
4553   $as_echo_n "(cached) " >&6
4554 else
4555   if test -z "$LD"; then
4556   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4557   for ac_dir in $PATH; do
4558     IFS="$lt_save_ifs"
4559     test -z "$ac_dir" && ac_dir=.
4560     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4561       lt_cv_path_LD="$ac_dir/$ac_prog"
4562       # Check to see if the program is GNU ld.  I'd rather use --version,
4563       # but apparently some variants of GNU ld only accept -v.
4564       # Break only if it was the GNU/non-GNU ld that we prefer.
4565       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4566       *GNU* | *'with BFD'*)
4567         test "$with_gnu_ld" != no && break
4568         ;;
4569       *)
4570         test "$with_gnu_ld" != yes && break
4571         ;;
4572       esac
4573     fi
4574   done
4575   IFS="$lt_save_ifs"
4576 else
4577   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4578 fi
4579 fi
4580
4581 LD="$lt_cv_path_LD"
4582 if test -n "$LD"; then
4583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4584 $as_echo "$LD" >&6; }
4585 else
4586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4588 fi
4589 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4591 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4592 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4593   $as_echo_n "(cached) " >&6
4594 else
4595   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4596 case `$LD -v 2>&1 </dev/null` in
4597 *GNU* | *'with BFD'*)
4598   lt_cv_prog_gnu_ld=yes
4599   ;;
4600 *)
4601   lt_cv_prog_gnu_ld=no
4602   ;;
4603 esac
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4606 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4607 with_gnu_ld=$lt_cv_prog_gnu_ld
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617 if test -n "$ac_tool_prefix"; then
4618   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   if test -n "$RANLIB"; then
4626   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633     for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640   done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 RANLIB=$ac_cv_prog_RANLIB
4646 if test -n "$RANLIB"; then
4647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4648 $as_echo "$RANLIB" >&6; }
4649 else
4650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4653
4654
4655 fi
4656 if test -z "$ac_cv_prog_RANLIB"; then
4657   ac_ct_RANLIB=$RANLIB
4658   # Extract the first word of "ranlib", so it can be a program name with args.
4659 set dummy ranlib; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4663   $as_echo_n "(cached) " >&6
4664 else
4665   if test -n "$ac_ct_RANLIB"; then
4666   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4670 do
4671   IFS=$as_save_IFS
4672   test -z "$as_dir" && as_dir=.
4673     for ac_exec_ext in '' $ac_executable_extensions; do
4674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675     ac_cv_prog_ac_ct_RANLIB="ranlib"
4676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677     break 2
4678   fi
4679 done
4680   done
4681 IFS=$as_save_IFS
4682
4683 fi
4684 fi
4685 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4686 if test -n "$ac_ct_RANLIB"; then
4687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4688 $as_echo "$ac_ct_RANLIB" >&6; }
4689 else
4690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4692 fi
4693
4694   if test "x$ac_ct_RANLIB" = x; then
4695     RANLIB=":"
4696   else
4697     case $cross_compiling:$ac_tool_warned in
4698 yes:)
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4701 ac_tool_warned=yes ;;
4702 esac
4703     RANLIB=$ac_ct_RANLIB
4704   fi
4705 else
4706   RANLIB="$ac_cv_prog_RANLIB"
4707 fi
4708
4709 if test -n "$ac_tool_prefix"; then
4710   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4711 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713 $as_echo_n "checking for $ac_word... " >&6; }
4714 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   if test -n "$OBJCOPY"; then
4718   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4719 else
4720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721 for as_dir in $PATH
4722 do
4723   IFS=$as_save_IFS
4724   test -z "$as_dir" && as_dir=.
4725     for ac_exec_ext in '' $ac_executable_extensions; do
4726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4727     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4729     break 2
4730   fi
4731 done
4732   done
4733 IFS=$as_save_IFS
4734
4735 fi
4736 fi
4737 OBJCOPY=$ac_cv_prog_OBJCOPY
4738 if test -n "$OBJCOPY"; then
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4740 $as_echo "$OBJCOPY" >&6; }
4741 else
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4744 fi
4745
4746
4747 fi
4748 if test -z "$ac_cv_prog_OBJCOPY"; then
4749   ac_ct_OBJCOPY=$OBJCOPY
4750   # Extract the first word of "objcopy", so it can be a program name with args.
4751 set dummy objcopy; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4755   $as_echo_n "(cached) " >&6
4756 else
4757   if test -n "$ac_ct_OBJCOPY"; then
4758   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765     for ac_exec_ext in '' $ac_executable_extensions; do
4766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4769     break 2
4770   fi
4771 done
4772   done
4773 IFS=$as_save_IFS
4774
4775 fi
4776 fi
4777 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4778 if test -n "$ac_ct_OBJCOPY"; then
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4780 $as_echo "$ac_ct_OBJCOPY" >&6; }
4781 else
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785
4786   if test "x$ac_ct_OBJCOPY" = x; then
4787     OBJCOPY="missing-objcopy"
4788   else
4789     case $cross_compiling:$ac_tool_warned in
4790 yes:)
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4793 ac_tool_warned=yes ;;
4794 esac
4795     OBJCOPY=$ac_ct_OBJCOPY
4796   fi
4797 else
4798   OBJCOPY="$ac_cv_prog_OBJCOPY"
4799 fi
4800
4801
4802 enable_dlopen=yes
4803
4804
4805
4806 case `pwd` in
4807   *\ * | *\     *)
4808     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4809 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4810 esac
4811
4812
4813
4814 macro_version='2.2.7a'
4815 macro_revision='1.3134'
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829 ltmain="$ac_aux_dir/ltmain.sh"
4830
4831 # Backslashify metacharacters that are still active within
4832 # double-quoted strings.
4833 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4834
4835 # Same as above, but do not quote variable references.
4836 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4837
4838 # Sed substitution to delay expansion of an escaped shell variable in a
4839 # double_quote_subst'ed string.
4840 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4841
4842 # Sed substitution to delay expansion of an escaped single quote.
4843 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4844
4845 # Sed substitution to avoid accidental globbing in evaled expressions
4846 no_glob_subst='s/\*/\\\*/g'
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4849 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4850 if test "${lt_cv_path_NM+set}" = set; then :
4851   $as_echo_n "(cached) " >&6
4852 else
4853   if test -n "$NM"; then
4854   # Let the user override the test.
4855   lt_cv_path_NM="$NM"
4856 else
4857   lt_nm_to_check="${ac_tool_prefix}nm"
4858   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4859     lt_nm_to_check="$lt_nm_to_check nm"
4860   fi
4861   for lt_tmp_nm in $lt_nm_to_check; do
4862     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4863     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4864       IFS="$lt_save_ifs"
4865       test -z "$ac_dir" && ac_dir=.
4866       tmp_nm="$ac_dir/$lt_tmp_nm"
4867       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4868         # Check to see if the nm accepts a BSD-compat flag.
4869         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4870         #   nm: unknown option "B" ignored
4871         # Tru64's nm complains that /dev/null is an invalid object file
4872         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4873         */dev/null* | *'Invalid file or object type'*)
4874           lt_cv_path_NM="$tmp_nm -B"
4875           break
4876           ;;
4877         *)
4878           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4879           */dev/null*)
4880             lt_cv_path_NM="$tmp_nm -p"
4881             break
4882             ;;
4883           *)
4884             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4885             continue # so that we can try to find one that supports BSD flags
4886             ;;
4887           esac
4888           ;;
4889         esac
4890       fi
4891     done
4892     IFS="$lt_save_ifs"
4893   done
4894   : ${lt_cv_path_NM=no}
4895 fi
4896 fi
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4898 $as_echo "$lt_cv_path_NM" >&6; }
4899 if test "$lt_cv_path_NM" != "no"; then
4900   NM="$lt_cv_path_NM"
4901 else
4902   # Didn't find any BSD compatible name lister, look for dumpbin.
4903   if test -n "$DUMPBIN"; then :
4904     # Let the user override the test.
4905   else
4906     if test -n "$ac_tool_prefix"; then
4907   for ac_prog in dumpbin "link -dump"
4908   do
4909     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912 $as_echo_n "checking for $ac_word... " >&6; }
4913 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4914   $as_echo_n "(cached) " >&6
4915 else
4916   if test -n "$DUMPBIN"; then
4917   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4918 else
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924     for ac_exec_ext in '' $ac_executable_extensions; do
4925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928     break 2
4929   fi
4930 done
4931   done
4932 IFS=$as_save_IFS
4933
4934 fi
4935 fi
4936 DUMPBIN=$ac_cv_prog_DUMPBIN
4937 if test -n "$DUMPBIN"; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4939 $as_echo "$DUMPBIN" >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944
4945
4946     test -n "$DUMPBIN" && break
4947   done
4948 fi
4949 if test -z "$DUMPBIN"; then
4950   ac_ct_DUMPBIN=$DUMPBIN
4951   for ac_prog in dumpbin "link -dump"
4952 do
4953   # Extract the first word of "$ac_prog", so it can be a program name with args.
4954 set dummy $ac_prog; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956 $as_echo_n "checking for $ac_word... " >&6; }
4957 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4958   $as_echo_n "(cached) " >&6
4959 else
4960   if test -n "$ac_ct_DUMPBIN"; then
4961   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4962 else
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972     break 2
4973   fi
4974 done
4975   done
4976 IFS=$as_save_IFS
4977
4978 fi
4979 fi
4980 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4981 if test -n "$ac_ct_DUMPBIN"; then
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4983 $as_echo "$ac_ct_DUMPBIN" >&6; }
4984 else
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4986 $as_echo "no" >&6; }
4987 fi
4988
4989
4990   test -n "$ac_ct_DUMPBIN" && break
4991 done
4992
4993   if test "x$ac_ct_DUMPBIN" = x; then
4994     DUMPBIN=":"
4995   else
4996     case $cross_compiling:$ac_tool_warned in
4997 yes:)
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000 ac_tool_warned=yes ;;
5001 esac
5002     DUMPBIN=$ac_ct_DUMPBIN
5003   fi
5004 fi
5005
5006     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5007     *COFF*)
5008       DUMPBIN="$DUMPBIN -symbols"
5009       ;;
5010     *)
5011       DUMPBIN=:
5012       ;;
5013     esac
5014   fi
5015
5016   if test "$DUMPBIN" != ":"; then
5017     NM="$DUMPBIN"
5018   fi
5019 fi
5020 test -z "$NM" && NM=nm
5021
5022
5023
5024
5025
5026
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5028 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5029 if test "${lt_cv_nm_interface+set}" = set; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032   lt_cv_nm_interface="BSD nm"
5033   echo "int some_variable = 0;" > conftest.$ac_ext
5034   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5035   (eval "$ac_compile" 2>conftest.err)
5036   cat conftest.err >&5
5037   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5038   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5039   cat conftest.err >&5
5040   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5041   cat conftest.out >&5
5042   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5043     lt_cv_nm_interface="MS dumpbin"
5044   fi
5045   rm -f conftest*
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5048 $as_echo "$lt_cv_nm_interface" >&6; }
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5051 $as_echo_n "checking whether ln -s works... " >&6; }
5052 LN_S=$as_ln_s
5053 if test "$LN_S" = "ln -s"; then
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5055 $as_echo "yes" >&6; }
5056 else
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5058 $as_echo "no, using $LN_S" >&6; }
5059 fi
5060
5061 # find the maximum length of command line arguments
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5063 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5064 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5065   $as_echo_n "(cached) " >&6
5066 else
5067     i=0
5068   teststring="ABCD"
5069
5070   case $build_os in
5071   msdosdjgpp*)
5072     # On DJGPP, this test can blow up pretty badly due to problems in libc
5073     # (any single argument exceeding 2000 bytes causes a buffer overrun
5074     # during glob expansion).  Even if it were fixed, the result of this
5075     # check would be larger than it should be.
5076     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5077     ;;
5078
5079   gnu*)
5080     # Under GNU Hurd, this test is not required because there is
5081     # no limit to the length of command line arguments.
5082     # Libtool will interpret -1 as no limit whatsoever
5083     lt_cv_sys_max_cmd_len=-1;
5084     ;;
5085
5086   cygwin* | mingw* | cegcc*)
5087     # On Win9x/ME, this test blows up -- it succeeds, but takes
5088     # about 5 minutes as the teststring grows exponentially.
5089     # Worse, since 9x/ME are not pre-emptively multitasking,
5090     # you end up with a "frozen" computer, even though with patience
5091     # the test eventually succeeds (with a max line length of 256k).
5092     # Instead, let's just punt: use the minimum linelength reported by
5093     # all of the supported platforms: 8192 (on NT/2K/XP).
5094     lt_cv_sys_max_cmd_len=8192;
5095     ;;
5096
5097   mint*)
5098     # On MiNT this can take a long time and run out of memory.
5099     lt_cv_sys_max_cmd_len=8192;
5100     ;;
5101
5102   amigaos*)
5103     # On AmigaOS with pdksh, this test takes hours, literally.
5104     # So we just punt and use a minimum line length of 8192.
5105     lt_cv_sys_max_cmd_len=8192;
5106     ;;
5107
5108   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5109     # This has been around since 386BSD, at least.  Likely further.
5110     if test -x /sbin/sysctl; then
5111       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5112     elif test -x /usr/sbin/sysctl; then
5113       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5114     else
5115       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5116     fi
5117     # And add a safety zone
5118     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5119     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5120     ;;
5121
5122   interix*)
5123     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5124     lt_cv_sys_max_cmd_len=196608
5125     ;;
5126
5127   osf*)
5128     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5129     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5130     # nice to cause kernel panics so lets avoid the loop below.
5131     # First set a reasonable default.
5132     lt_cv_sys_max_cmd_len=16384
5133     #
5134     if test -x /sbin/sysconfig; then
5135       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5136         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5137       esac
5138     fi
5139     ;;
5140   sco3.2v5*)
5141     lt_cv_sys_max_cmd_len=102400
5142     ;;
5143   sysv5* | sco5v6* | sysv4.2uw2*)
5144     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5145     if test -n "$kargmax"; then
5146       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5147     else
5148       lt_cv_sys_max_cmd_len=32768
5149     fi
5150     ;;
5151   *)
5152     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5153     if test -n "$lt_cv_sys_max_cmd_len"; then
5154       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5156     else
5157       # Make teststring a little bigger before we do anything with it.
5158       # a 1K string should be a reasonable start.
5159       for i in 1 2 3 4 5 6 7 8 ; do
5160         teststring=$teststring$teststring
5161       done
5162       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5163       # If test is not a shell built-in, we'll probably end up computing a
5164       # maximum length that is only half of the actual maximum length, but
5165       # we can't tell.
5166       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5167                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5168               test $i != 17 # 1/2 MB should be enough
5169       do
5170         i=`expr $i + 1`
5171         teststring=$teststring$teststring
5172       done
5173       # Only check the string length outside the loop.
5174       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5175       teststring=
5176       # Add a significant safety factor because C++ compilers can tack on
5177       # massive amounts of additional arguments before passing them to the
5178       # linker.  It appears as though 1/2 is a usable value.
5179       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5180     fi
5181     ;;
5182   esac
5183
5184 fi
5185
5186 if test -n $lt_cv_sys_max_cmd_len ; then
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5188 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5189 else
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5191 $as_echo "none" >&6; }
5192 fi
5193 max_cmd_len=$lt_cv_sys_max_cmd_len
5194
5195
5196
5197
5198
5199
5200 : ${CP="cp -f"}
5201 : ${MV="mv -f"}
5202 : ${RM="rm -f"}
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5205 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5206 # Try some XSI features
5207 xsi_shell=no
5208 ( _lt_dummy="a/b/c"
5209   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5210       = c,a/b,, \
5211     && eval 'test $(( 1 + 1 )) -eq 2 \
5212     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5213   && xsi_shell=yes
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5215 $as_echo "$xsi_shell" >&6; }
5216
5217
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5219 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5220 lt_shell_append=no
5221 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5222     >/dev/null 2>&1 \
5223   && lt_shell_append=yes
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5225 $as_echo "$lt_shell_append" >&6; }
5226
5227
5228 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5229   lt_unset=unset
5230 else
5231   lt_unset=false
5232 fi
5233
5234
5235
5236
5237
5238 # test EBCDIC or ASCII
5239 case `echo X|tr X '\101'` in
5240  A) # ASCII based system
5241     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5242   lt_SP2NL='tr \040 \012'
5243   lt_NL2SP='tr \015\012 \040\040'
5244   ;;
5245  *) # EBCDIC based system
5246   lt_SP2NL='tr \100 \n'
5247   lt_NL2SP='tr \r\n \100\100'
5248   ;;
5249 esac
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5260 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5261 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   lt_cv_ld_reload_flag='-r'
5265 fi
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5267 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5268 reload_flag=$lt_cv_ld_reload_flag
5269 case $reload_flag in
5270 "" | " "*) ;;
5271 *) reload_flag=" $reload_flag" ;;
5272 esac
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5274 case $host_os in
5275   darwin*)
5276     if test "$GCC" = yes; then
5277       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5278     else
5279       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5280     fi
5281     ;;
5282 esac
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292 if test -n "$ac_tool_prefix"; then
5293   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5294 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5298   $as_echo_n "(cached) " >&6
5299 else
5300   if test -n "$OBJDUMP"; then
5301   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306   IFS=$as_save_IFS
5307   test -z "$as_dir" && as_dir=.
5308     for ac_exec_ext in '' $ac_executable_extensions; do
5309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312     break 2
5313   fi
5314 done
5315   done
5316 IFS=$as_save_IFS
5317
5318 fi
5319 fi
5320 OBJDUMP=$ac_cv_prog_OBJDUMP
5321 if test -n "$OBJDUMP"; then
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5323 $as_echo "$OBJDUMP" >&6; }
5324 else
5325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328
5329
5330 fi
5331 if test -z "$ac_cv_prog_OBJDUMP"; then
5332   ac_ct_OBJDUMP=$OBJDUMP
5333   # Extract the first word of "objdump", so it can be a program name with args.
5334 set dummy objdump; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5338   $as_echo_n "(cached) " >&6
5339 else
5340   if test -n "$ac_ct_OBJDUMP"; then
5341   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5345 do
5346   IFS=$as_save_IFS
5347   test -z "$as_dir" && as_dir=.
5348     for ac_exec_ext in '' $ac_executable_extensions; do
5349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352     break 2
5353   fi
5354 done
5355   done
5356 IFS=$as_save_IFS
5357
5358 fi
5359 fi
5360 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5361 if test -n "$ac_ct_OBJDUMP"; then
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5363 $as_echo "$ac_ct_OBJDUMP" >&6; }
5364 else
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5367 fi
5368
5369   if test "x$ac_ct_OBJDUMP" = x; then
5370     OBJDUMP="false"
5371   else
5372     case $cross_compiling:$ac_tool_warned in
5373 yes:)
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376 ac_tool_warned=yes ;;
5377 esac
5378     OBJDUMP=$ac_ct_OBJDUMP
5379   fi
5380 else
5381   OBJDUMP="$ac_cv_prog_OBJDUMP"
5382 fi
5383
5384 test -z "$OBJDUMP" && OBJDUMP=objdump
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5395 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5396 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5397   $as_echo_n "(cached) " >&6
5398 else
5399   lt_cv_file_magic_cmd='$MAGIC_CMD'
5400 lt_cv_file_magic_test_file=
5401 lt_cv_deplibs_check_method='unknown'
5402 # Need to set the preceding variable on all platforms that support
5403 # interlibrary dependencies.
5404 # 'none' -- dependencies not supported.
5405 # `unknown' -- same as none, but documents that we really don't know.
5406 # 'pass_all' -- all dependencies passed with no checks.
5407 # 'test_compile' -- check by making test program.
5408 # 'file_magic [[regex]]' -- check by looking for files in library path
5409 # which responds to the $file_magic_cmd with a given extended regex.
5410 # If you have `file' or equivalent on your system and you're not sure
5411 # whether `pass_all' will *always* work, you probably want this one.
5412
5413 case $host_os in
5414 aix[4-9]*)
5415   lt_cv_deplibs_check_method=pass_all
5416   ;;
5417
5418 beos*)
5419   lt_cv_deplibs_check_method=pass_all
5420   ;;
5421
5422 bsdi[45]*)
5423   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5424   lt_cv_file_magic_cmd='/usr/bin/file -L'
5425   lt_cv_file_magic_test_file=/shlib/libc.so
5426   ;;
5427
5428 cygwin*)
5429   # func_win32_libid is a shell function defined in ltmain.sh
5430   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5431   lt_cv_file_magic_cmd='func_win32_libid'
5432   ;;
5433
5434 mingw* | pw32*)
5435   # Base MSYS/MinGW do not provide the 'file' command needed by
5436   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5437   # unless we find 'file', for example because we are cross-compiling.
5438   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5439   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5440     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5441     lt_cv_file_magic_cmd='func_win32_libid'
5442   else
5443     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5444     lt_cv_file_magic_cmd='$OBJDUMP -f'
5445   fi
5446   ;;
5447
5448 cegcc*)
5449   # use the weaker test based on 'objdump'. See mingw*.
5450   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5451   lt_cv_file_magic_cmd='$OBJDUMP -f'
5452   ;;
5453
5454 darwin* | rhapsody*)
5455   lt_cv_deplibs_check_method=pass_all
5456   ;;
5457
5458 freebsd* | dragonfly*)
5459   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5460     case $host_cpu in
5461     i*86 )
5462       # Not sure whether the presence of OpenBSD here was a mistake.
5463       # Let's accept both of them until this is cleared up.
5464       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5465       lt_cv_file_magic_cmd=/usr/bin/file
5466       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5467       ;;
5468     esac
5469   else
5470     lt_cv_deplibs_check_method=pass_all
5471   fi
5472   ;;
5473
5474 gnu*)
5475   lt_cv_deplibs_check_method=pass_all
5476   ;;
5477
5478 haiku*)
5479   lt_cv_deplibs_check_method=pass_all
5480   ;;
5481
5482 hpux10.20* | hpux11*)
5483   lt_cv_file_magic_cmd=/usr/bin/file
5484   case $host_cpu in
5485   ia64*)
5486     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5487     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5488     ;;
5489   hppa*64*)
5490     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]'
5491     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5492     ;;
5493   *)
5494     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5495     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5496     ;;
5497   esac
5498   ;;
5499
5500 interix[3-9]*)
5501   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5502   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5503   ;;
5504
5505 irix5* | irix6* | nonstopux*)
5506   case $LD in
5507   *-32|*"-32 ") libmagic=32-bit;;
5508   *-n32|*"-n32 ") libmagic=N32;;
5509   *-64|*"-64 ") libmagic=64-bit;;
5510   *) libmagic=never-match;;
5511   esac
5512   lt_cv_deplibs_check_method=pass_all
5513   ;;
5514
5515 # This must be Linux ELF.
5516 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5517   lt_cv_deplibs_check_method=pass_all
5518   ;;
5519
5520 netbsd*)
5521   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5522     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5523   else
5524     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5525   fi
5526   ;;
5527
5528 newos6*)
5529   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5530   lt_cv_file_magic_cmd=/usr/bin/file
5531   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5532   ;;
5533
5534 *nto* | *qnx*)
5535   lt_cv_deplibs_check_method=pass_all
5536   ;;
5537
5538 openbsd*)
5539   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5540     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5541   else
5542     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5543   fi
5544   ;;
5545
5546 osf3* | osf4* | osf5*)
5547   lt_cv_deplibs_check_method=pass_all
5548   ;;
5549
5550 rdos*)
5551   lt_cv_deplibs_check_method=pass_all
5552   ;;
5553
5554 solaris*)
5555   lt_cv_deplibs_check_method=pass_all
5556   ;;
5557
5558 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5559   lt_cv_deplibs_check_method=pass_all
5560   ;;
5561
5562 sysv4 | sysv4.3*)
5563   case $host_vendor in
5564   motorola)
5565     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]'
5566     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5567     ;;
5568   ncr)
5569     lt_cv_deplibs_check_method=pass_all
5570     ;;
5571   sequent)
5572     lt_cv_file_magic_cmd='/bin/file'
5573     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5574     ;;
5575   sni)
5576     lt_cv_file_magic_cmd='/bin/file'
5577     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5578     lt_cv_file_magic_test_file=/lib/libc.so
5579     ;;
5580   siemens)
5581     lt_cv_deplibs_check_method=pass_all
5582     ;;
5583   pc)
5584     lt_cv_deplibs_check_method=pass_all
5585     ;;
5586   esac
5587   ;;
5588
5589 tpf*)
5590   lt_cv_deplibs_check_method=pass_all
5591   ;;
5592 esac
5593
5594 fi
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5596 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5597 file_magic_cmd=$lt_cv_file_magic_cmd
5598 deplibs_check_method=$lt_cv_deplibs_check_method
5599 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612 if test -n "$ac_tool_prefix"; then
5613   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5614 set dummy ${ac_tool_prefix}ar; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if test "${ac_cv_prog_AR+set}" = set; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   if test -n "$AR"; then
5621   ac_cv_prog_AR="$AR" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5625 do
5626   IFS=$as_save_IFS
5627   test -z "$as_dir" && as_dir=.
5628     for ac_exec_ext in '' $ac_executable_extensions; do
5629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630     ac_cv_prog_AR="${ac_tool_prefix}ar"
5631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632     break 2
5633   fi
5634 done
5635   done
5636 IFS=$as_save_IFS
5637
5638 fi
5639 fi
5640 AR=$ac_cv_prog_AR
5641 if test -n "$AR"; then
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5643 $as_echo "$AR" >&6; }
5644 else
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5647 fi
5648
5649
5650 fi
5651 if test -z "$ac_cv_prog_AR"; then
5652   ac_ct_AR=$AR
5653   # Extract the first word of "ar", so it can be a program name with args.
5654 set dummy ar; ac_word=$2
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 $as_echo_n "checking for $ac_word... " >&6; }
5657 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5658   $as_echo_n "(cached) " >&6
5659 else
5660   if test -n "$ac_ct_AR"; then
5661   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5662 else
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5665 do
5666   IFS=$as_save_IFS
5667   test -z "$as_dir" && as_dir=.
5668     for ac_exec_ext in '' $ac_executable_extensions; do
5669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670     ac_cv_prog_ac_ct_AR="ar"
5671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672     break 2
5673   fi
5674 done
5675   done
5676 IFS=$as_save_IFS
5677
5678 fi
5679 fi
5680 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5681 if test -n "$ac_ct_AR"; then
5682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5683 $as_echo "$ac_ct_AR" >&6; }
5684 else
5685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5686 $as_echo "no" >&6; }
5687 fi
5688
5689   if test "x$ac_ct_AR" = x; then
5690     AR="false"
5691   else
5692     case $cross_compiling:$ac_tool_warned in
5693 yes:)
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5696 ac_tool_warned=yes ;;
5697 esac
5698     AR=$ac_ct_AR
5699   fi
5700 else
5701   AR="$ac_cv_prog_AR"
5702 fi
5703
5704 test -z "$AR" && AR=ar
5705 test -z "$AR_FLAGS" && AR_FLAGS=cru
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717 if test -n "$ac_tool_prefix"; then
5718   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5719 set dummy ${ac_tool_prefix}strip; ac_word=$2
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 $as_echo_n "checking for $ac_word... " >&6; }
5722 if test "${ac_cv_prog_STRIP+set}" = set; then :
5723   $as_echo_n "(cached) " >&6
5724 else
5725   if test -n "$STRIP"; then
5726   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5727 else
5728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729 for as_dir in $PATH
5730 do
5731   IFS=$as_save_IFS
5732   test -z "$as_dir" && as_dir=.
5733     for ac_exec_ext in '' $ac_executable_extensions; do
5734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5735     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737     break 2
5738   fi
5739 done
5740   done
5741 IFS=$as_save_IFS
5742
5743 fi
5744 fi
5745 STRIP=$ac_cv_prog_STRIP
5746 if test -n "$STRIP"; then
5747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5748 $as_echo "$STRIP" >&6; }
5749 else
5750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751 $as_echo "no" >&6; }
5752 fi
5753
5754
5755 fi
5756 if test -z "$ac_cv_prog_STRIP"; then
5757   ac_ct_STRIP=$STRIP
5758   # Extract the first word of "strip", so it can be a program name with args.
5759 set dummy strip; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   if test -n "$ac_ct_STRIP"; then
5766   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5767 else
5768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773     for ac_exec_ext in '' $ac_executable_extensions; do
5774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5775     ac_cv_prog_ac_ct_STRIP="strip"
5776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777     break 2
5778   fi
5779 done
5780   done
5781 IFS=$as_save_IFS
5782
5783 fi
5784 fi
5785 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5786 if test -n "$ac_ct_STRIP"; then
5787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5788 $as_echo "$ac_ct_STRIP" >&6; }
5789 else
5790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5791 $as_echo "no" >&6; }
5792 fi
5793
5794   if test "x$ac_ct_STRIP" = x; then
5795     STRIP=":"
5796   else
5797     case $cross_compiling:$ac_tool_warned in
5798 yes:)
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5801 ac_tool_warned=yes ;;
5802 esac
5803     STRIP=$ac_ct_STRIP
5804   fi
5805 else
5806   STRIP="$ac_cv_prog_STRIP"
5807 fi
5808
5809 test -z "$STRIP" && STRIP=:
5810
5811
5812
5813
5814
5815
5816 if test -n "$ac_tool_prefix"; then
5817   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5818 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5820 $as_echo_n "checking for $ac_word... " >&6; }
5821 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5822   $as_echo_n "(cached) " >&6
5823 else
5824   if test -n "$RANLIB"; then
5825   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5826 else
5827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5828 for as_dir in $PATH
5829 do
5830   IFS=$as_save_IFS
5831   test -z "$as_dir" && as_dir=.
5832     for ac_exec_ext in '' $ac_executable_extensions; do
5833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5834     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5836     break 2
5837   fi
5838 done
5839   done
5840 IFS=$as_save_IFS
5841
5842 fi
5843 fi
5844 RANLIB=$ac_cv_prog_RANLIB
5845 if test -n "$RANLIB"; then
5846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5847 $as_echo "$RANLIB" >&6; }
5848 else
5849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5850 $as_echo "no" >&6; }
5851 fi
5852
5853
5854 fi
5855 if test -z "$ac_cv_prog_RANLIB"; then
5856   ac_ct_RANLIB=$RANLIB
5857   # Extract the first word of "ranlib", so it can be a program name with args.
5858 set dummy ranlib; ac_word=$2
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5860 $as_echo_n "checking for $ac_word... " >&6; }
5861 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   if test -n "$ac_ct_RANLIB"; then
5865   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5866 else
5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 for as_dir in $PATH
5869 do
5870   IFS=$as_save_IFS
5871   test -z "$as_dir" && as_dir=.
5872     for ac_exec_ext in '' $ac_executable_extensions; do
5873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874     ac_cv_prog_ac_ct_RANLIB="ranlib"
5875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5876     break 2
5877   fi
5878 done
5879   done
5880 IFS=$as_save_IFS
5881
5882 fi
5883 fi
5884 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5885 if test -n "$ac_ct_RANLIB"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5887 $as_echo "$ac_ct_RANLIB" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 fi
5892
5893   if test "x$ac_ct_RANLIB" = x; then
5894     RANLIB=":"
5895   else
5896     case $cross_compiling:$ac_tool_warned in
5897 yes:)
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5900 ac_tool_warned=yes ;;
5901 esac
5902     RANLIB=$ac_ct_RANLIB
5903   fi
5904 else
5905   RANLIB="$ac_cv_prog_RANLIB"
5906 fi
5907
5908 test -z "$RANLIB" && RANLIB=:
5909
5910
5911
5912
5913
5914
5915 # Determine commands to create old-style static archives.
5916 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5917 old_postinstall_cmds='chmod 644 $oldlib'
5918 old_postuninstall_cmds=
5919
5920 if test -n "$RANLIB"; then
5921   case $host_os in
5922   openbsd*)
5923     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5924     ;;
5925   *)
5926     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5927     ;;
5928   esac
5929   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5930 fi
5931
5932 case $host_os in
5933   darwin*)
5934     lock_old_archive_extraction=yes ;;
5935   *)
5936     lock_old_archive_extraction=no ;;
5937 esac
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
5969
5970
5971
5972
5973
5974
5975
5976
5977 # If no C compiler was specified, use CC.
5978 LTCC=${LTCC-"$CC"}
5979
5980 # If no C compiler flags were specified, use CFLAGS.
5981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5982
5983 # Allow CC to be a program name with arguments.
5984 compiler=$CC
5985
5986
5987 # Check for command to grab the raw symbol name followed by C symbol from nm.
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5989 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5990 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5991   $as_echo_n "(cached) " >&6
5992 else
5993
5994 # These are sane defaults that work on at least a few old systems.
5995 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5996
5997 # Character class describing NM global symbol codes.
5998 symcode='[BCDEGRST]'
5999
6000 # Regexp to match symbols that can be accessed directly from C.
6001 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6002
6003 # Define system-specific variables.
6004 case $host_os in
6005 aix*)
6006   symcode='[BCDT]'
6007   ;;
6008 cygwin* | mingw* | pw32* | cegcc*)
6009   symcode='[ABCDGISTW]'
6010   ;;
6011 hpux*)
6012   if test "$host_cpu" = ia64; then
6013     symcode='[ABCDEGRST]'
6014   fi
6015   ;;
6016 irix* | nonstopux*)
6017   symcode='[BCDEGRST]'
6018   ;;
6019 osf*)
6020   symcode='[BCDEGQRST]'
6021   ;;
6022 solaris*)
6023   symcode='[BDRT]'
6024   ;;
6025 sco3.2v5*)
6026   symcode='[DT]'
6027   ;;
6028 sysv4.2uw2*)
6029   symcode='[DT]'
6030   ;;
6031 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6032   symcode='[ABDT]'
6033   ;;
6034 sysv4)
6035   symcode='[DFNSTU]'
6036   ;;
6037 esac
6038
6039 # If we're using GNU nm, then use its standard symbol codes.
6040 case `$NM -V 2>&1` in
6041 *GNU* | *'with BFD'*)
6042   symcode='[ABCDGIRSTW]' ;;
6043 esac
6044
6045 # Transform an extracted symbol line into a proper C declaration.
6046 # Some systems (esp. on ia64) link data and code symbols differently,
6047 # so use this general approach.
6048 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6049
6050 # Transform an extracted symbol line into symbol name and symbol address
6051 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6052 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'"
6053
6054 # Handle CRLF in mingw tool chain
6055 opt_cr=
6056 case $build_os in
6057 mingw*)
6058   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6059   ;;
6060 esac
6061
6062 # Try without a prefix underscore, then with it.
6063 for ac_symprfx in "" "_"; do
6064
6065   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6066   symxfrm="\\1 $ac_symprfx\\2 \\2"
6067
6068   # Write the raw and C identifiers.
6069   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6070     # Fake it for dumpbin and say T for any non-static function
6071     # and D for any global variable.
6072     # Also find C++ and __fastcall symbols from MSVC++,
6073     # which start with @ or ?.
6074     lt_cv_sys_global_symbol_pipe="$AWK '"\
6075 "     {last_section=section; section=\$ 3};"\
6076 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6077 "     \$ 0!~/External *\|/{next};"\
6078 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6079 "     {if(hide[section]) next};"\
6080 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6081 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6082 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6083 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6084 "     ' prfx=^$ac_symprfx"
6085   else
6086     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6087   fi
6088
6089   # Check to see that the pipe works correctly.
6090   pipe_works=no
6091
6092   rm -f conftest*
6093   cat > conftest.$ac_ext <<_LT_EOF
6094 #ifdef __cplusplus
6095 extern "C" {
6096 #endif
6097 char nm_test_var;
6098 void nm_test_func(void);
6099 void nm_test_func(void){}
6100 #ifdef __cplusplus
6101 }
6102 #endif
6103 int main(){nm_test_var='a';nm_test_func();return(0);}
6104 _LT_EOF
6105
6106   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6107   (eval $ac_compile) 2>&5
6108   ac_status=$?
6109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6110   test $ac_status = 0; }; then
6111     # Now try to grab the symbols.
6112     nlist=conftest.nm
6113     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6114   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6115   ac_status=$?
6116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117   test $ac_status = 0; } && test -s "$nlist"; then
6118       # Try sorting and uniquifying the output.
6119       if sort "$nlist" | uniq > "$nlist"T; then
6120         mv -f "$nlist"T "$nlist"
6121       else
6122         rm -f "$nlist"T
6123       fi
6124
6125       # Make sure that we snagged all the symbols we need.
6126       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6127         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6128           cat <<_LT_EOF > conftest.$ac_ext
6129 #ifdef __cplusplus
6130 extern "C" {
6131 #endif
6132
6133 _LT_EOF
6134           # Now generate the symbol file.
6135           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6136
6137           cat <<_LT_EOF >> conftest.$ac_ext
6138
6139 /* The mapping between symbol names and symbols.  */
6140 const struct {
6141   const char *name;
6142   void       *address;
6143 }
6144 lt__PROGRAM__LTX_preloaded_symbols[] =
6145 {
6146   { "@PROGRAM@", (void *) 0 },
6147 _LT_EOF
6148           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6149           cat <<\_LT_EOF >> conftest.$ac_ext
6150   {0, (void *) 0}
6151 };
6152
6153 /* This works around a problem in FreeBSD linker */
6154 #ifdef FREEBSD_WORKAROUND
6155 static const void *lt_preloaded_setup() {
6156   return lt__PROGRAM__LTX_preloaded_symbols;
6157 }
6158 #endif
6159
6160 #ifdef __cplusplus
6161 }
6162 #endif
6163 _LT_EOF
6164           # Now try linking the two files.
6165           mv conftest.$ac_objext conftstm.$ac_objext
6166           lt_save_LIBS="$LIBS"
6167           lt_save_CFLAGS="$CFLAGS"
6168           LIBS="conftstm.$ac_objext"
6169           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6170           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6171   (eval $ac_link) 2>&5
6172   ac_status=$?
6173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6174   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6175             pipe_works=yes
6176           fi
6177           LIBS="$lt_save_LIBS"
6178           CFLAGS="$lt_save_CFLAGS"
6179         else
6180           echo "cannot find nm_test_func in $nlist" >&5
6181         fi
6182       else
6183         echo "cannot find nm_test_var in $nlist" >&5
6184       fi
6185     else
6186       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6187     fi
6188   else
6189     echo "$progname: failed program was:" >&5
6190     cat conftest.$ac_ext >&5
6191   fi
6192   rm -rf conftest* conftst*
6193
6194   # Do not use the global_symbol_pipe unless it works.
6195   if test "$pipe_works" = yes; then
6196     break
6197   else
6198     lt_cv_sys_global_symbol_pipe=
6199   fi
6200 done
6201
6202 fi
6203
6204 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6205   lt_cv_sys_global_symbol_to_cdecl=
6206 fi
6207 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6209 $as_echo "failed" >&6; }
6210 else
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6212 $as_echo "ok" >&6; }
6213 fi
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237 # Check whether --enable-libtool-lock was given.
6238 if test "${enable_libtool_lock+set}" = set; then :
6239   enableval=$enable_libtool_lock;
6240 fi
6241
6242 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6243
6244 # Some flags need to be propagated to the compiler or linker for good
6245 # libtool support.
6246 case $host in
6247 ia64-*-hpux*)
6248   # Find out which ABI we are using.
6249   echo 'int i;' > conftest.$ac_ext
6250   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6251   (eval $ac_compile) 2>&5
6252   ac_status=$?
6253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254   test $ac_status = 0; }; then
6255     case `/usr/bin/file conftest.$ac_objext` in
6256       *ELF-32*)
6257         HPUX_IA64_MODE="32"
6258         ;;
6259       *ELF-64*)
6260         HPUX_IA64_MODE="64"
6261         ;;
6262     esac
6263   fi
6264   rm -rf conftest*
6265   ;;
6266 *-*-irix6*)
6267   # Find out which ABI we are using.
6268   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6269   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6270   (eval $ac_compile) 2>&5
6271   ac_status=$?
6272   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6273   test $ac_status = 0; }; then
6274     if test "$lt_cv_prog_gnu_ld" = yes; then
6275       case `/usr/bin/file conftest.$ac_objext` in
6276         *32-bit*)
6277           LD="${LD-ld} -melf32bsmip"
6278           ;;
6279         *N32*)
6280           LD="${LD-ld} -melf32bmipn32"
6281           ;;
6282         *64-bit*)
6283           LD="${LD-ld} -melf64bmip"
6284         ;;
6285       esac
6286     else
6287       case `/usr/bin/file conftest.$ac_objext` in
6288         *32-bit*)
6289           LD="${LD-ld} -32"
6290           ;;
6291         *N32*)
6292           LD="${LD-ld} -n32"
6293           ;;
6294         *64-bit*)
6295           LD="${LD-ld} -64"
6296           ;;
6297       esac
6298     fi
6299   fi
6300   rm -rf conftest*
6301   ;;
6302
6303 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6304 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6305   # Find out which ABI we are using.
6306   echo 'int i;' > conftest.$ac_ext
6307   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6308   (eval $ac_compile) 2>&5
6309   ac_status=$?
6310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6311   test $ac_status = 0; }; then
6312     case `/usr/bin/file conftest.o` in
6313       *32-bit*)
6314         case $host in
6315           x86_64-*kfreebsd*-gnu)
6316             LD="${LD-ld} -m elf_i386_fbsd"
6317             ;;
6318           x86_64-*linux*)
6319             LD="${LD-ld} -m elf_i386"
6320             ;;
6321           ppc64-*linux*|powerpc64-*linux*)
6322             LD="${LD-ld} -m elf32ppclinux"
6323             ;;
6324           s390x-*linux*)
6325             LD="${LD-ld} -m elf_s390"
6326             ;;
6327           sparc64-*linux*)
6328             LD="${LD-ld} -m elf32_sparc"
6329             ;;
6330         esac
6331         ;;
6332       *64-bit*)
6333         case $host in
6334           x86_64-*kfreebsd*-gnu)
6335             LD="${LD-ld} -m elf_x86_64_fbsd"
6336             ;;
6337           x86_64-*linux*)
6338             LD="${LD-ld} -m elf_x86_64"
6339             ;;
6340           ppc*-*linux*|powerpc*-*linux*)
6341             LD="${LD-ld} -m elf64ppc"
6342             ;;
6343           s390*-*linux*|s390*-*tpf*)
6344             LD="${LD-ld} -m elf64_s390"
6345             ;;
6346           sparc*-*linux*)
6347             LD="${LD-ld} -m elf64_sparc"
6348             ;;
6349         esac
6350         ;;
6351     esac
6352   fi
6353   rm -rf conftest*
6354   ;;
6355
6356 *-*-sco3.2v5*)
6357   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6358   SAVE_CFLAGS="$CFLAGS"
6359   CFLAGS="$CFLAGS -belf"
6360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6361 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6362 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6363   $as_echo_n "(cached) " >&6
6364 else
6365   ac_ext=c
6366 ac_cpp='$CPP $CPPFLAGS'
6367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6370
6371      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h.  */
6373
6374 int
6375 main ()
6376 {
6377
6378   ;
6379   return 0;
6380 }
6381 _ACEOF
6382 if ac_fn_c_try_link "$LINENO"; then :
6383   lt_cv_cc_needs_belf=yes
6384 else
6385   lt_cv_cc_needs_belf=no
6386 fi
6387 rm -f core conftest.err conftest.$ac_objext \
6388     conftest$ac_exeext conftest.$ac_ext
6389      ac_ext=c
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6394
6395 fi
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6397 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6398   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6399     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6400     CFLAGS="$SAVE_CFLAGS"
6401   fi
6402   ;;
6403 *-*solaris*)
6404   # Find out which ABI we are using.
6405   echo 'int i;' > conftest.$ac_ext
6406   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6407   (eval $ac_compile) 2>&5
6408   ac_status=$?
6409   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6410   test $ac_status = 0; }; then
6411     case `/usr/bin/file conftest.o` in
6412     *64-bit*)
6413       case $lt_cv_prog_gnu_ld in
6414       yes*)
6415         case $host in
6416         i?86-*-solaris*)
6417           LD="${LD-ld} -m elf_x86_64"
6418           ;;
6419         sparc*-*-solaris*)
6420           LD="${LD-ld} -m elf64_sparc"
6421           ;;
6422         esac
6423         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6424         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6425           LD="${LD-ld}_sol2"
6426         fi
6427         ;;
6428       *)
6429         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6430           LD="${LD-ld} -64"
6431         fi
6432         ;;
6433       esac
6434       ;;
6435     esac
6436   fi
6437   rm -rf conftest*
6438   ;;
6439 esac
6440
6441 need_locks="$enable_libtool_lock"
6442
6443
6444   case $host_os in
6445     rhapsody* | darwin*)
6446     if test -n "$ac_tool_prefix"; then
6447   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6448 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6450 $as_echo_n "checking for $ac_word... " >&6; }
6451 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6452   $as_echo_n "(cached) " >&6
6453 else
6454   if test -n "$DSYMUTIL"; then
6455   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6456 else
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6458 for as_dir in $PATH
6459 do
6460   IFS=$as_save_IFS
6461   test -z "$as_dir" && as_dir=.
6462     for ac_exec_ext in '' $ac_executable_extensions; do
6463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6464     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466     break 2
6467   fi
6468 done
6469   done
6470 IFS=$as_save_IFS
6471
6472 fi
6473 fi
6474 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6475 if test -n "$DSYMUTIL"; then
6476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6477 $as_echo "$DSYMUTIL" >&6; }
6478 else
6479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6480 $as_echo "no" >&6; }
6481 fi
6482
6483
6484 fi
6485 if test -z "$ac_cv_prog_DSYMUTIL"; then
6486   ac_ct_DSYMUTIL=$DSYMUTIL
6487   # Extract the first word of "dsymutil", so it can be a program name with args.
6488 set dummy dsymutil; ac_word=$2
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490 $as_echo_n "checking for $ac_word... " >&6; }
6491 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6492   $as_echo_n "(cached) " >&6
6493 else
6494   if test -n "$ac_ct_DSYMUTIL"; then
6495   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6496 else
6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498 for as_dir in $PATH
6499 do
6500   IFS=$as_save_IFS
6501   test -z "$as_dir" && as_dir=.
6502     for ac_exec_ext in '' $ac_executable_extensions; do
6503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6504     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506     break 2
6507   fi
6508 done
6509   done
6510 IFS=$as_save_IFS
6511
6512 fi
6513 fi
6514 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6515 if test -n "$ac_ct_DSYMUTIL"; then
6516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6517 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6518 else
6519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520 $as_echo "no" >&6; }
6521 fi
6522
6523   if test "x$ac_ct_DSYMUTIL" = x; then
6524     DSYMUTIL=":"
6525   else
6526     case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532     DSYMUTIL=$ac_ct_DSYMUTIL
6533   fi
6534 else
6535   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6536 fi
6537
6538     if test -n "$ac_tool_prefix"; then
6539   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 $as_echo_n "checking for $ac_word... " >&6; }
6543 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6544   $as_echo_n "(cached) " >&6
6545 else
6546   if test -n "$NMEDIT"; then
6547   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6548 else
6549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550 for as_dir in $PATH
6551 do
6552   IFS=$as_save_IFS
6553   test -z "$as_dir" && as_dir=.
6554     for ac_exec_ext in '' $ac_executable_extensions; do
6555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558     break 2
6559   fi
6560 done
6561   done
6562 IFS=$as_save_IFS
6563
6564 fi
6565 fi
6566 NMEDIT=$ac_cv_prog_NMEDIT
6567 if test -n "$NMEDIT"; then
6568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6569 $as_echo "$NMEDIT" >&6; }
6570 else
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 fi
6574
6575
6576 fi
6577 if test -z "$ac_cv_prog_NMEDIT"; then
6578   ac_ct_NMEDIT=$NMEDIT
6579   # Extract the first word of "nmedit", so it can be a program name with args.
6580 set dummy nmedit; ac_word=$2
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582 $as_echo_n "checking for $ac_word... " >&6; }
6583 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6584   $as_echo_n "(cached) " >&6
6585 else
6586   if test -n "$ac_ct_NMEDIT"; then
6587   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6588 else
6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590 for as_dir in $PATH
6591 do
6592   IFS=$as_save_IFS
6593   test -z "$as_dir" && as_dir=.
6594     for ac_exec_ext in '' $ac_executable_extensions; do
6595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6596     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598     break 2
6599   fi
6600 done
6601   done
6602 IFS=$as_save_IFS
6603
6604 fi
6605 fi
6606 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6607 if test -n "$ac_ct_NMEDIT"; then
6608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6609 $as_echo "$ac_ct_NMEDIT" >&6; }
6610 else
6611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612 $as_echo "no" >&6; }
6613 fi
6614
6615   if test "x$ac_ct_NMEDIT" = x; then
6616     NMEDIT=":"
6617   else
6618     case $cross_compiling:$ac_tool_warned in
6619 yes:)
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622 ac_tool_warned=yes ;;
6623 esac
6624     NMEDIT=$ac_ct_NMEDIT
6625   fi
6626 else
6627   NMEDIT="$ac_cv_prog_NMEDIT"
6628 fi
6629
6630     if test -n "$ac_tool_prefix"; then
6631   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_LIPO+set}" = set; then :
6636   $as_echo_n "(cached) " >&6
6637 else
6638   if test -n "$LIPO"; then
6639   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6643 do
6644   IFS=$as_save_IFS
6645   test -z "$as_dir" && as_dir=.
6646     for ac_exec_ext in '' $ac_executable_extensions; do
6647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650     break 2
6651   fi
6652 done
6653   done
6654 IFS=$as_save_IFS
6655
6656 fi
6657 fi
6658 LIPO=$ac_cv_prog_LIPO
6659 if test -n "$LIPO"; then
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6661 $as_echo "$LIPO" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6665 fi
6666
6667
6668 fi
6669 if test -z "$ac_cv_prog_LIPO"; then
6670   ac_ct_LIPO=$LIPO
6671   # Extract the first word of "lipo", so it can be a program name with args.
6672 set dummy lipo; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6676   $as_echo_n "(cached) " >&6
6677 else
6678   if test -n "$ac_ct_LIPO"; then
6679   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6683 do
6684   IFS=$as_save_IFS
6685   test -z "$as_dir" && as_dir=.
6686     for ac_exec_ext in '' $ac_executable_extensions; do
6687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688     ac_cv_prog_ac_ct_LIPO="lipo"
6689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690     break 2
6691   fi
6692 done
6693   done
6694 IFS=$as_save_IFS
6695
6696 fi
6697 fi
6698 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6699 if test -n "$ac_ct_LIPO"; then
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6701 $as_echo "$ac_ct_LIPO" >&6; }
6702 else
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6705 fi
6706
6707   if test "x$ac_ct_LIPO" = x; then
6708     LIPO=":"
6709   else
6710     case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714 ac_tool_warned=yes ;;
6715 esac
6716     LIPO=$ac_ct_LIPO
6717   fi
6718 else
6719   LIPO="$ac_cv_prog_LIPO"
6720 fi
6721
6722     if test -n "$ac_tool_prefix"; then
6723   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}otool; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   if test -n "$OTOOL"; then
6731   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738     for ac_exec_ext in '' $ac_executable_extensions; do
6739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745   done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 OTOOL=$ac_cv_prog_OTOOL
6751 if test -n "$OTOOL"; then
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6753 $as_echo "$OTOOL" >&6; }
6754 else
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_OTOOL"; then
6762   ac_ct_OTOOL=$OTOOL
6763   # Extract the first word of "otool", so it can be a program name with args.
6764 set dummy otool; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6768   $as_echo_n "(cached) " >&6
6769 else
6770   if test -n "$ac_ct_OTOOL"; then
6771   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6775 do
6776   IFS=$as_save_IFS
6777   test -z "$as_dir" && as_dir=.
6778     for ac_exec_ext in '' $ac_executable_extensions; do
6779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780     ac_cv_prog_ac_ct_OTOOL="otool"
6781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782     break 2
6783   fi
6784 done
6785   done
6786 IFS=$as_save_IFS
6787
6788 fi
6789 fi
6790 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6791 if test -n "$ac_ct_OTOOL"; then
6792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6793 $as_echo "$ac_ct_OTOOL" >&6; }
6794 else
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6797 fi
6798
6799   if test "x$ac_ct_OTOOL" = x; then
6800     OTOOL=":"
6801   else
6802     case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808     OTOOL=$ac_ct_OTOOL
6809   fi
6810 else
6811   OTOOL="$ac_cv_prog_OTOOL"
6812 fi
6813
6814     if test -n "$ac_tool_prefix"; then
6815   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822   if test -n "$OTOOL64"; then
6823   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6827 do
6828   IFS=$as_save_IFS
6829   test -z "$as_dir" && as_dir=.
6830     for ac_exec_ext in '' $ac_executable_extensions; do
6831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834     break 2
6835   fi
6836 done
6837   done
6838 IFS=$as_save_IFS
6839
6840 fi
6841 fi
6842 OTOOL64=$ac_cv_prog_OTOOL64
6843 if test -n "$OTOOL64"; then
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6845 $as_echo "$OTOOL64" >&6; }
6846 else
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6849 fi
6850
6851
6852 fi
6853 if test -z "$ac_cv_prog_OTOOL64"; then
6854   ac_ct_OTOOL64=$OTOOL64
6855   # Extract the first word of "otool64", so it can be a program name with args.
6856 set dummy otool64; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6860   $as_echo_n "(cached) " >&6
6861 else
6862   if test -n "$ac_ct_OTOOL64"; then
6863   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870     for ac_exec_ext in '' $ac_executable_extensions; do
6871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872     ac_cv_prog_ac_ct_OTOOL64="otool64"
6873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874     break 2
6875   fi
6876 done
6877   done
6878 IFS=$as_save_IFS
6879
6880 fi
6881 fi
6882 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6883 if test -n "$ac_ct_OTOOL64"; then
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6885 $as_echo "$ac_ct_OTOOL64" >&6; }
6886 else
6887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6889 fi
6890
6891   if test "x$ac_ct_OTOOL64" = x; then
6892     OTOOL64=":"
6893   else
6894     case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6899 esac
6900     OTOOL64=$ac_ct_OTOOL64
6901   fi
6902 else
6903   OTOOL64="$ac_cv_prog_OTOOL64"
6904 fi
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6933 $as_echo_n "checking for -single_module linker flag... " >&6; }
6934 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937   lt_cv_apple_cc_single_mod=no
6938       if test -z "${LT_MULTI_MODULE}"; then
6939         # By default we will add the -single_module flag. You can override
6940         # by either setting the environment variable LT_MULTI_MODULE
6941         # non-empty at configure time, or by adding -multi_module to the
6942         # link flags.
6943         rm -rf libconftest.dylib*
6944         echo "int foo(void){return 1;}" > conftest.c
6945         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6946 -dynamiclib -Wl,-single_module conftest.c" >&5
6947         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6948           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6949         _lt_result=$?
6950         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6951           lt_cv_apple_cc_single_mod=yes
6952         else
6953           cat conftest.err >&5
6954         fi
6955         rm -rf libconftest.dylib*
6956         rm -f conftest.*
6957       fi
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6960 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6962 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6963 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   lt_cv_ld_exported_symbols_list=no
6967       save_LDFLAGS=$LDFLAGS
6968       echo "_main" > conftest.sym
6969       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6970       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6971 /* end confdefs.h.  */
6972
6973 int
6974 main ()
6975 {
6976
6977   ;
6978   return 0;
6979 }
6980 _ACEOF
6981 if ac_fn_c_try_link "$LINENO"; then :
6982   lt_cv_ld_exported_symbols_list=yes
6983 else
6984   lt_cv_ld_exported_symbols_list=no
6985 fi
6986 rm -f core conftest.err conftest.$ac_objext \
6987     conftest$ac_exeext conftest.$ac_ext
6988         LDFLAGS="$save_LDFLAGS"
6989
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6992 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6994 $as_echo_n "checking for -force_load linker flag... " >&6; }
6995 if test "${lt_cv_ld_force_load+set}" = set; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998   lt_cv_ld_force_load=no
6999       cat > conftest.c << _LT_EOF
7000 int forced_loaded() { return 2;}
7001 _LT_EOF
7002       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7003       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7004       echo "$AR cru libconftest.a conftest.o" >&5
7005       $AR cru libconftest.a conftest.o 2>&5
7006       cat > conftest.c << _LT_EOF
7007 int main() { return 0;}
7008 _LT_EOF
7009       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7010       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7011       _lt_result=$?
7012       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7013         lt_cv_ld_force_load=yes
7014       else
7015         cat conftest.err >&5
7016       fi
7017         rm -f conftest.err libconftest.a conftest conftest.c
7018         rm -rf conftest.dSYM
7019
7020 fi
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7022 $as_echo "$lt_cv_ld_force_load" >&6; }
7023     case $host_os in
7024     rhapsody* | darwin1.[012])
7025       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7026     darwin1.*)
7027       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7028     darwin*) # darwin 5.x on
7029       # if running on 10.5 or later, the deployment target defaults
7030       # to the OS version, if on x86, and 10.4, the deployment
7031       # target defaults to 10.4. Don't you love it?
7032       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7033         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7034           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7035         10.[012]*)
7036           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7037         10.*)
7038           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7039       esac
7040     ;;
7041   esac
7042     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7043       _lt_dar_single_mod='$single_module'
7044     fi
7045     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7046       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7047     else
7048       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7049     fi
7050     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7051       _lt_dsymutil='~$DSYMUTIL $lib || :'
7052     else
7053       _lt_dsymutil=
7054     fi
7055     ;;
7056   esac
7057
7058 ac_ext=c
7059 ac_cpp='$CPP $CPPFLAGS'
7060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7064 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7065 # On Suns, sometimes $CPP names a directory.
7066 if test -n "$CPP" && test -d "$CPP"; then
7067   CPP=
7068 fi
7069 if test -z "$CPP"; then
7070   if test "${ac_cv_prog_CPP+set}" = set; then :
7071   $as_echo_n "(cached) " >&6
7072 else
7073       # Double quotes because CPP needs to be expanded
7074     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7075     do
7076       ac_preproc_ok=false
7077 for ac_c_preproc_warn_flag in '' yes
7078 do
7079   # Use a header file that comes with gcc, so configuring glibc
7080   # with a fresh cross-compiler works.
7081   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082   # <limits.h> exists even on freestanding compilers.
7083   # On the NeXT, cc -E runs the code through the compiler's parser,
7084   # not just through cpp. "Syntax error" is here to catch this case.
7085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7086 /* end confdefs.h.  */
7087 #ifdef __STDC__
7088 # include <limits.h>
7089 #else
7090 # include <assert.h>
7091 #endif
7092                      Syntax error
7093 _ACEOF
7094 if ac_fn_c_try_cpp "$LINENO"; then :
7095
7096 else
7097   # Broken: fails on valid input.
7098 continue
7099 fi
7100 rm -f conftest.err conftest.$ac_ext
7101
7102   # OK, works on sane cases.  Now check whether nonexistent headers
7103   # can be detected and how.
7104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h.  */
7106 #include <ac_nonexistent.h>
7107 _ACEOF
7108 if ac_fn_c_try_cpp "$LINENO"; then :
7109   # Broken: success on invalid input.
7110 continue
7111 else
7112   # Passes both tests.
7113 ac_preproc_ok=:
7114 break
7115 fi
7116 rm -f conftest.err conftest.$ac_ext
7117
7118 done
7119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7120 rm -f conftest.err conftest.$ac_ext
7121 if $ac_preproc_ok; then :
7122   break
7123 fi
7124
7125     done
7126     ac_cv_prog_CPP=$CPP
7127
7128 fi
7129   CPP=$ac_cv_prog_CPP
7130 else
7131   ac_cv_prog_CPP=$CPP
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7134 $as_echo "$CPP" >&6; }
7135 ac_preproc_ok=false
7136 for ac_c_preproc_warn_flag in '' yes
7137 do
7138   # Use a header file that comes with gcc, so configuring glibc
7139   # with a fresh cross-compiler works.
7140   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7141   # <limits.h> exists even on freestanding compilers.
7142   # On the NeXT, cc -E runs the code through the compiler's parser,
7143   # not just through cpp. "Syntax error" is here to catch this case.
7144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h.  */
7146 #ifdef __STDC__
7147 # include <limits.h>
7148 #else
7149 # include <assert.h>
7150 #endif
7151                      Syntax error
7152 _ACEOF
7153 if ac_fn_c_try_cpp "$LINENO"; then :
7154
7155 else
7156   # Broken: fails on valid input.
7157 continue
7158 fi
7159 rm -f conftest.err conftest.$ac_ext
7160
7161   # OK, works on sane cases.  Now check whether nonexistent headers
7162   # can be detected and how.
7163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h.  */
7165 #include <ac_nonexistent.h>
7166 _ACEOF
7167 if ac_fn_c_try_cpp "$LINENO"; then :
7168   # Broken: success on invalid input.
7169 continue
7170 else
7171   # Passes both tests.
7172 ac_preproc_ok=:
7173 break
7174 fi
7175 rm -f conftest.err conftest.$ac_ext
7176
7177 done
7178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7179 rm -f conftest.err conftest.$ac_ext
7180 if $ac_preproc_ok; then :
7181
7182 else
7183   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7185 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7186 See \`config.log' for more details." "$LINENO" 5; }
7187 fi
7188
7189 ac_ext=c
7190 ac_cpp='$CPP $CPPFLAGS'
7191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7194
7195
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7197 $as_echo_n "checking for ANSI C header files... " >&6; }
7198 if test "${ac_cv_header_stdc+set}" = set; then :
7199   $as_echo_n "(cached) " >&6
7200 else
7201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7202 /* end confdefs.h.  */
7203 #include <stdlib.h>
7204 #include <stdarg.h>
7205 #include <string.h>
7206 #include <float.h>
7207
7208 int
7209 main ()
7210 {
7211
7212   ;
7213   return 0;
7214 }
7215 _ACEOF
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217   ac_cv_header_stdc=yes
7218 else
7219   ac_cv_header_stdc=no
7220 fi
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222
7223 if test $ac_cv_header_stdc = yes; then
7224   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7226 /* end confdefs.h.  */
7227 #include <string.h>
7228
7229 _ACEOF
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231   $EGREP "memchr" >/dev/null 2>&1; then :
7232
7233 else
7234   ac_cv_header_stdc=no
7235 fi
7236 rm -f conftest*
7237
7238 fi
7239
7240 if test $ac_cv_header_stdc = yes; then
7241   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h.  */
7244 #include <stdlib.h>
7245
7246 _ACEOF
7247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7248   $EGREP "free" >/dev/null 2>&1; then :
7249
7250 else
7251   ac_cv_header_stdc=no
7252 fi
7253 rm -f conftest*
7254
7255 fi
7256
7257 if test $ac_cv_header_stdc = yes; then
7258   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7259   if test "$cross_compiling" = yes; then :
7260   :
7261 else
7262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h.  */
7264 #include <ctype.h>
7265 #include <stdlib.h>
7266 #if ((' ' & 0x0FF) == 0x020)
7267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7269 #else
7270 # define ISLOWER(c) \
7271                    (('a' <= (c) && (c) <= 'i') \
7272                      || ('j' <= (c) && (c) <= 'r') \
7273                      || ('s' <= (c) && (c) <= 'z'))
7274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7275 #endif
7276
7277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7278 int
7279 main ()
7280 {
7281   int i;
7282   for (i = 0; i < 256; i++)
7283     if (XOR (islower (i), ISLOWER (i))
7284         || toupper (i) != TOUPPER (i))
7285       return 2;
7286   return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_run "$LINENO"; then :
7290
7291 else
7292   ac_cv_header_stdc=no
7293 fi
7294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7295   conftest.$ac_objext conftest.beam conftest.$ac_ext
7296 fi
7297
7298 fi
7299 fi
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7301 $as_echo "$ac_cv_header_stdc" >&6; }
7302 if test $ac_cv_header_stdc = yes; then
7303
7304 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7305
7306 fi
7307
7308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7309 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7310                   inttypes.h stdint.h unistd.h
7311 do :
7312   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7314 "
7315 eval as_val=\$$as_ac_Header
7316    if test "x$as_val" = x""yes; then :
7317   cat >>confdefs.h <<_ACEOF
7318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7319 _ACEOF
7320
7321 fi
7322
7323 done
7324
7325
7326 for ac_header in dlfcn.h
7327 do :
7328   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7329 "
7330 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7331   cat >>confdefs.h <<_ACEOF
7332 #define HAVE_DLFCN_H 1
7333 _ACEOF
7334
7335 fi
7336
7337 done
7338
7339 if test -n "$ac_tool_prefix"; then
7340   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_GOC+set}" = set; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$GOC"; then
7348   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 GOC=$ac_cv_prog_GOC
7368 if test -n "$GOC"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7370 $as_echo "$GOC" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376
7377 fi
7378 if test -z "$ac_cv_prog_GOC"; then
7379   ac_ct_GOC=$GOC
7380   # Extract the first word of "gccgo", so it can be a program name with args.
7381 set dummy gccgo; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   if test -n "$ac_ct_GOC"; then
7388   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393   IFS=$as_save_IFS
7394   test -z "$as_dir" && as_dir=.
7395     for ac_exec_ext in '' $ac_executable_extensions; do
7396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397     ac_cv_prog_ac_ct_GOC="gccgo"
7398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399     break 2
7400   fi
7401 done
7402   done
7403 IFS=$as_save_IFS
7404
7405 fi
7406 fi
7407 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7408 if test -n "$ac_ct_GOC"; then
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7410 $as_echo "$ac_ct_GOC" >&6; }
7411 else
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414 fi
7415
7416   if test "x$ac_ct_GOC" = x; then
7417     GOC=""
7418   else
7419     case $cross_compiling:$ac_tool_warned in
7420 yes:)
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423 ac_tool_warned=yes ;;
7424 esac
7425     GOC=$ac_ct_GOC
7426   fi
7427 else
7428   GOC="$ac_cv_prog_GOC"
7429 fi
7430
7431
7432
7433
7434
7435
7436 # Set options
7437
7438
7439
7440
7441   enable_win32_dll=no
7442
7443
7444             # Check whether --enable-shared was given.
7445 if test "${enable_shared+set}" = set; then :
7446   enableval=$enable_shared; p=${PACKAGE-default}
7447     case $enableval in
7448     yes) enable_shared=yes ;;
7449     no) enable_shared=no ;;
7450     *)
7451       enable_shared=no
7452       # Look at the argument we got.  We use all the common list separators.
7453       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7454       for pkg in $enableval; do
7455         IFS="$lt_save_ifs"
7456         if test "X$pkg" = "X$p"; then
7457           enable_shared=yes
7458         fi
7459       done
7460       IFS="$lt_save_ifs"
7461       ;;
7462     esac
7463 else
7464   enable_shared=yes
7465 fi
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475   # Check whether --enable-static was given.
7476 if test "${enable_static+set}" = set; then :
7477   enableval=$enable_static; p=${PACKAGE-default}
7478     case $enableval in
7479     yes) enable_static=yes ;;
7480     no) enable_static=no ;;
7481     *)
7482      enable_static=no
7483       # Look at the argument we got.  We use all the common list separators.
7484       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7485       for pkg in $enableval; do
7486         IFS="$lt_save_ifs"
7487         if test "X$pkg" = "X$p"; then
7488           enable_static=yes
7489         fi
7490       done
7491       IFS="$lt_save_ifs"
7492       ;;
7493     esac
7494 else
7495   enable_static=yes
7496 fi
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507 # Check whether --with-pic was given.
7508 if test "${with_pic+set}" = set; then :
7509   withval=$with_pic; pic_mode="$withval"
7510 else
7511   pic_mode=default
7512 fi
7513
7514
7515 test -z "$pic_mode" && pic_mode=default
7516
7517
7518
7519
7520
7521
7522
7523   # Check whether --enable-fast-install was given.
7524 if test "${enable_fast_install+set}" = set; then :
7525   enableval=$enable_fast_install; p=${PACKAGE-default}
7526     case $enableval in
7527     yes) enable_fast_install=yes ;;
7528     no) enable_fast_install=no ;;
7529     *)
7530       enable_fast_install=no
7531       # Look at the argument we got.  We use all the common list separators.
7532       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7533       for pkg in $enableval; do
7534         IFS="$lt_save_ifs"
7535         if test "X$pkg" = "X$p"; then
7536           enable_fast_install=yes
7537         fi
7538       done
7539       IFS="$lt_save_ifs"
7540       ;;
7541     esac
7542 else
7543   enable_fast_install=yes
7544 fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556 # This can be used to rebuild libtool when needed
7557 LIBTOOL_DEPS="$ltmain"
7558
7559 # Always use our own libtool.
7560 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 test -z "$LN_S" && LN_S="ln -s"
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602 if test -n "${ZSH_VERSION+set}" ; then
7603    setopt NO_GLOB_SUBST
7604 fi
7605
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7607 $as_echo_n "checking for objdir... " >&6; }
7608 if test "${lt_cv_objdir+set}" = set; then :
7609   $as_echo_n "(cached) " >&6
7610 else
7611   rm -f .libs 2>/dev/null
7612 mkdir .libs 2>/dev/null
7613 if test -d .libs; then
7614   lt_cv_objdir=.libs
7615 else
7616   # MS-DOS does not allow filenames that begin with a dot.
7617   lt_cv_objdir=_libs
7618 fi
7619 rmdir .libs 2>/dev/null
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7622 $as_echo "$lt_cv_objdir" >&6; }
7623 objdir=$lt_cv_objdir
7624
7625
7626
7627
7628
7629 cat >>confdefs.h <<_ACEOF
7630 #define LT_OBJDIR "$lt_cv_objdir/"
7631 _ACEOF
7632
7633
7634
7635
7636 case $host_os in
7637 aix3*)
7638   # AIX sometimes has problems with the GCC collect2 program.  For some
7639   # reason, if we set the COLLECT_NAMES environment variable, the problems
7640   # vanish in a puff of smoke.
7641   if test "X${COLLECT_NAMES+set}" != Xset; then
7642     COLLECT_NAMES=
7643     export COLLECT_NAMES
7644   fi
7645   ;;
7646 esac
7647
7648 # Global variables:
7649 ofile=libtool
7650 can_build_shared=yes
7651
7652 # All known linkers require a `.a' archive for static linking (except MSVC,
7653 # which needs '.lib').
7654 libext=a
7655
7656 with_gnu_ld="$lt_cv_prog_gnu_ld"
7657
7658 old_CC="$CC"
7659 old_CFLAGS="$CFLAGS"
7660
7661 # Set sane defaults for various variables
7662 test -z "$CC" && CC=cc
7663 test -z "$LTCC" && LTCC=$CC
7664 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7665 test -z "$LD" && LD=ld
7666 test -z "$ac_objext" && ac_objext=o
7667
7668 for cc_temp in $compiler""; do
7669   case $cc_temp in
7670     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7671     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7672     \-*) ;;
7673     *) break;;
7674   esac
7675 done
7676 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7677
7678
7679 # Only perform the check for file, if the check method requires it
7680 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7681 case $deplibs_check_method in
7682 file_magic*)
7683   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7684     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7685 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7686 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7687   $as_echo_n "(cached) " >&6
7688 else
7689   case $MAGIC_CMD in
7690 [\\/*] |  ?:[\\/]*)
7691   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7692   ;;
7693 *)
7694   lt_save_MAGIC_CMD="$MAGIC_CMD"
7695   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7696   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7697   for ac_dir in $ac_dummy; do
7698     IFS="$lt_save_ifs"
7699     test -z "$ac_dir" && ac_dir=.
7700     if test -f $ac_dir/${ac_tool_prefix}file; then
7701       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7702       if test -n "$file_magic_test_file"; then
7703         case $deplibs_check_method in
7704         "file_magic "*)
7705           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7706           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7707           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7708             $EGREP "$file_magic_regex" > /dev/null; then
7709             :
7710           else
7711             cat <<_LT_EOF 1>&2
7712
7713 *** Warning: the command libtool uses to detect shared libraries,
7714 *** $file_magic_cmd, produces output that libtool cannot recognize.
7715 *** The result is that libtool may fail to recognize shared libraries
7716 *** as such.  This will affect the creation of libtool libraries that
7717 *** depend on shared libraries, but programs linked with such libtool
7718 *** libraries will work regardless of this problem.  Nevertheless, you
7719 *** may want to report the problem to your system manager and/or to
7720 *** bug-libtool@gnu.org
7721
7722 _LT_EOF
7723           fi ;;
7724         esac
7725       fi
7726       break
7727     fi
7728   done
7729   IFS="$lt_save_ifs"
7730   MAGIC_CMD="$lt_save_MAGIC_CMD"
7731   ;;
7732 esac
7733 fi
7734
7735 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7736 if test -n "$MAGIC_CMD"; then
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7738 $as_echo "$MAGIC_CMD" >&6; }
7739 else
7740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7742 fi
7743
7744
7745
7746
7747
7748 if test -z "$lt_cv_path_MAGIC_CMD"; then
7749   if test -n "$ac_tool_prefix"; then
7750     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7751 $as_echo_n "checking for file... " >&6; }
7752 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7753   $as_echo_n "(cached) " >&6
7754 else
7755   case $MAGIC_CMD in
7756 [\\/*] |  ?:[\\/]*)
7757   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7758   ;;
7759 *)
7760   lt_save_MAGIC_CMD="$MAGIC_CMD"
7761   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7762   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7763   for ac_dir in $ac_dummy; do
7764     IFS="$lt_save_ifs"
7765     test -z "$ac_dir" && ac_dir=.
7766     if test -f $ac_dir/file; then
7767       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7768       if test -n "$file_magic_test_file"; then
7769         case $deplibs_check_method in
7770         "file_magic "*)
7771           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7772           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7773           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7774             $EGREP "$file_magic_regex" > /dev/null; then
7775             :
7776           else
7777             cat <<_LT_EOF 1>&2
7778
7779 *** Warning: the command libtool uses to detect shared libraries,
7780 *** $file_magic_cmd, produces output that libtool cannot recognize.
7781 *** The result is that libtool may fail to recognize shared libraries
7782 *** as such.  This will affect the creation of libtool libraries that
7783 *** depend on shared libraries, but programs linked with such libtool
7784 *** libraries will work regardless of this problem.  Nevertheless, you
7785 *** may want to report the problem to your system manager and/or to
7786 *** bug-libtool@gnu.org
7787
7788 _LT_EOF
7789           fi ;;
7790         esac
7791       fi
7792       break
7793     fi
7794   done
7795   IFS="$lt_save_ifs"
7796   MAGIC_CMD="$lt_save_MAGIC_CMD"
7797   ;;
7798 esac
7799 fi
7800
7801 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7802 if test -n "$MAGIC_CMD"; then
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7804 $as_echo "$MAGIC_CMD" >&6; }
7805 else
7806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7808 fi
7809
7810
7811   else
7812     MAGIC_CMD=:
7813   fi
7814 fi
7815
7816   fi
7817   ;;
7818 esac
7819
7820 # Use C for the default configuration in the libtool script
7821
7822 lt_save_CC="$CC"
7823 ac_ext=c
7824 ac_cpp='$CPP $CPPFLAGS'
7825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7828
7829
7830 # Source file extension for C test sources.
7831 ac_ext=c
7832
7833 # Object file extension for compiled C test sources.
7834 objext=o
7835 objext=$objext
7836
7837 # Code to be used in simple compile tests
7838 lt_simple_compile_test_code="int some_variable = 0;"
7839
7840 # Code to be used in simple link tests
7841 lt_simple_link_test_code='int main(){return(0);}'
7842
7843
7844
7845
7846
7847
7848
7849 # If no C compiler was specified, use CC.
7850 LTCC=${LTCC-"$CC"}
7851
7852 # If no C compiler flags were specified, use CFLAGS.
7853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7854
7855 # Allow CC to be a program name with arguments.
7856 compiler=$CC
7857
7858 # Save the default compiler, since it gets overwritten when the other
7859 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7860 compiler_DEFAULT=$CC
7861
7862 # save warnings/boilerplate of simple test code
7863 ac_outfile=conftest.$ac_objext
7864 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7865 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7866 _lt_compiler_boilerplate=`cat conftest.err`
7867 $RM conftest*
7868
7869 ac_outfile=conftest.$ac_objext
7870 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7871 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7872 _lt_linker_boilerplate=`cat conftest.err`
7873 $RM -r conftest*
7874
7875
7876 ## CAVEAT EMPTOR:
7877 ## There is no encapsulation within the following macros, do not change
7878 ## the running order or otherwise move them around unless you know exactly
7879 ## what you are doing...
7880 if test -n "$compiler"; then
7881
7882 lt_prog_compiler_no_builtin_flag=
7883
7884 if test "$GCC" = yes; then
7885   case $cc_basename in
7886   nvcc*)
7887     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7888   *)
7889     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7890   esac
7891
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7893 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7894 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7895   $as_echo_n "(cached) " >&6
7896 else
7897   lt_cv_prog_compiler_rtti_exceptions=no
7898    ac_outfile=conftest.$ac_objext
7899    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7900    lt_compiler_flag="-fno-rtti -fno-exceptions"
7901    # Insert the option either (1) after the last *FLAGS variable, or
7902    # (2) before a word containing "conftest.", or (3) at the end.
7903    # Note that $ac_compile itself does not contain backslashes and begins
7904    # with a dollar sign (not a hyphen), so the echo should work correctly.
7905    # The option is referenced via a variable to avoid confusing sed.
7906    lt_compile=`echo "$ac_compile" | $SED \
7907    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7908    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7909    -e 's:$: $lt_compiler_flag:'`
7910    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7911    (eval "$lt_compile" 2>conftest.err)
7912    ac_status=$?
7913    cat conftest.err >&5
7914    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915    if (exit $ac_status) && test -s "$ac_outfile"; then
7916      # The compiler can only warn and ignore the option if not recognized
7917      # So say no if there are warnings other than the usual output.
7918      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7919      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7920      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7921        lt_cv_prog_compiler_rtti_exceptions=yes
7922      fi
7923    fi
7924    $RM conftest*
7925
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7928 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7929
7930 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7931     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7932 else
7933     :
7934 fi
7935
7936 fi
7937
7938
7939
7940
7941
7942
7943   lt_prog_compiler_wl=
7944 lt_prog_compiler_pic=
7945 lt_prog_compiler_static=
7946
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7948 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7949
7950   if test "$GCC" = yes; then
7951     lt_prog_compiler_wl='-Wl,'
7952     lt_prog_compiler_static='-static'
7953
7954     case $host_os in
7955       aix*)
7956       # All AIX code is PIC.
7957       if test "$host_cpu" = ia64; then
7958         # AIX 5 now supports IA64 processor
7959         lt_prog_compiler_static='-Bstatic'
7960       fi
7961       ;;
7962
7963     amigaos*)
7964       case $host_cpu in
7965       powerpc)
7966             # see comment about AmigaOS4 .so support
7967             lt_prog_compiler_pic='-fPIC'
7968         ;;
7969       m68k)
7970             # FIXME: we need at least 68020 code to build shared libraries, but
7971             # adding the `-m68020' flag to GCC prevents building anything better,
7972             # like `-m68040'.
7973             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7974         ;;
7975       esac
7976       ;;
7977
7978     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7979       # PIC is the default for these OSes.
7980       ;;
7981
7982     mingw* | cygwin* | pw32* | os2* | cegcc*)
7983       # This hack is so that the source file can tell whether it is being
7984       # built for inclusion in a dll (and should export symbols for example).
7985       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7986       # (--disable-auto-import) libraries
7987       lt_prog_compiler_pic='-DDLL_EXPORT'
7988       ;;
7989
7990     darwin* | rhapsody*)
7991       # PIC is the default on this platform
7992       # Common symbols not allowed in MH_DYLIB files
7993       lt_prog_compiler_pic='-fno-common'
7994       ;;
7995
7996     haiku*)
7997       # PIC is the default for Haiku.
7998       # The "-static" flag exists, but is broken.
7999       lt_prog_compiler_static=
8000       ;;
8001
8002     hpux*)
8003       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8004       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8005       # sets the default TLS model and affects inlining.
8006       case $host_cpu in
8007       hppa*64*)
8008         # +Z the default
8009         ;;
8010       *)
8011         lt_prog_compiler_pic='-fPIC'
8012         ;;
8013       esac
8014       ;;
8015
8016     interix[3-9]*)
8017       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8018       # Instead, we relocate shared libraries at runtime.
8019       ;;
8020
8021     msdosdjgpp*)
8022       # Just because we use GCC doesn't mean we suddenly get shared libraries
8023       # on systems that don't support them.
8024       lt_prog_compiler_can_build_shared=no
8025       enable_shared=no
8026       ;;
8027
8028     *nto* | *qnx*)
8029       # QNX uses GNU C++, but need to define -shared option too, otherwise
8030       # it will coredump.
8031       lt_prog_compiler_pic='-fPIC -shared'
8032       ;;
8033
8034     sysv4*MP*)
8035       if test -d /usr/nec; then
8036         lt_prog_compiler_pic=-Kconform_pic
8037       fi
8038       ;;
8039
8040     *)
8041       lt_prog_compiler_pic='-fPIC'
8042       ;;
8043     esac
8044
8045     case $cc_basename in
8046     nvcc*) # Cuda Compiler Driver 2.2
8047       lt_prog_compiler_wl='-Xlinker '
8048       lt_prog_compiler_pic='-Xcompiler -fPIC'
8049       ;;
8050     esac
8051   else
8052     # PORTME Check for flag to pass linker flags through the system compiler.
8053     case $host_os in
8054     aix*)
8055       lt_prog_compiler_wl='-Wl,'
8056       if test "$host_cpu" = ia64; then
8057         # AIX 5 now supports IA64 processor
8058         lt_prog_compiler_static='-Bstatic'
8059       else
8060         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8061       fi
8062       ;;
8063
8064     mingw* | cygwin* | pw32* | os2* | cegcc*)
8065       # This hack is so that the source file can tell whether it is being
8066       # built for inclusion in a dll (and should export symbols for example).
8067       lt_prog_compiler_pic='-DDLL_EXPORT'
8068       ;;
8069
8070     hpux9* | hpux10* | hpux11*)
8071       lt_prog_compiler_wl='-Wl,'
8072       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8073       # not for PA HP-UX.
8074       case $host_cpu in
8075       hppa*64*|ia64*)
8076         # +Z the default
8077         ;;
8078       *)
8079         lt_prog_compiler_pic='+Z'
8080         ;;
8081       esac
8082       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8083       lt_prog_compiler_static='${wl}-a ${wl}archive'
8084       ;;
8085
8086     irix5* | irix6* | nonstopux*)
8087       lt_prog_compiler_wl='-Wl,'
8088       # PIC (with -KPIC) is the default.
8089       lt_prog_compiler_static='-non_shared'
8090       ;;
8091
8092     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8093       case $cc_basename in
8094       # old Intel for x86_64 which still supported -KPIC.
8095       ecc*)
8096         lt_prog_compiler_wl='-Wl,'
8097         lt_prog_compiler_pic='-KPIC'
8098         lt_prog_compiler_static='-static'
8099         ;;
8100       # icc used to be incompatible with GCC.
8101       # ICC 10 doesn't accept -KPIC any more.
8102       icc* | ifort*)
8103         lt_prog_compiler_wl='-Wl,'
8104         lt_prog_compiler_pic='-fPIC'
8105         lt_prog_compiler_static='-static'
8106         ;;
8107       # Lahey Fortran 8.1.
8108       lf95*)
8109         lt_prog_compiler_wl='-Wl,'
8110         lt_prog_compiler_pic='--shared'
8111         lt_prog_compiler_static='--static'
8112         ;;
8113       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8114         # Portland Group compilers (*not* the Pentium gcc compiler,
8115         # which looks to be a dead project)
8116         lt_prog_compiler_wl='-Wl,'
8117         lt_prog_compiler_pic='-fpic'
8118         lt_prog_compiler_static='-Bstatic'
8119         ;;
8120       ccc*)
8121         lt_prog_compiler_wl='-Wl,'
8122         # All Alpha code is PIC.
8123         lt_prog_compiler_static='-non_shared'
8124         ;;
8125       xl* | bgxl* | bgf* | mpixl*)
8126         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8127         lt_prog_compiler_wl='-Wl,'
8128         lt_prog_compiler_pic='-qpic'
8129         lt_prog_compiler_static='-qstaticlink'
8130         ;;
8131       *)
8132         case `$CC -V 2>&1 | sed 5q` in
8133         *Sun\ F* | *Sun*Fortran*)
8134           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8135           lt_prog_compiler_pic='-KPIC'
8136           lt_prog_compiler_static='-Bstatic'
8137           lt_prog_compiler_wl=''
8138           ;;
8139         *Sun\ C*)
8140           # Sun C 5.9
8141           lt_prog_compiler_pic='-KPIC'
8142           lt_prog_compiler_static='-Bstatic'
8143           lt_prog_compiler_wl='-Wl,'
8144           ;;
8145         esac
8146         ;;
8147       esac
8148       ;;
8149
8150     newsos6)
8151       lt_prog_compiler_pic='-KPIC'
8152       lt_prog_compiler_static='-Bstatic'
8153       ;;
8154
8155     *nto* | *qnx*)
8156       # QNX uses GNU C++, but need to define -shared option too, otherwise
8157       # it will coredump.
8158       lt_prog_compiler_pic='-fPIC -shared'
8159       ;;
8160
8161     osf3* | osf4* | osf5*)
8162       lt_prog_compiler_wl='-Wl,'
8163       # All OSF/1 code is PIC.
8164       lt_prog_compiler_static='-non_shared'
8165       ;;
8166
8167     rdos*)
8168       lt_prog_compiler_static='-non_shared'
8169       ;;
8170
8171     solaris*)
8172       lt_prog_compiler_pic='-KPIC'
8173       lt_prog_compiler_static='-Bstatic'
8174       case $cc_basename in
8175       f77* | f90* | f95*)
8176         lt_prog_compiler_wl='-Qoption ld ';;
8177       *)
8178         lt_prog_compiler_wl='-Wl,';;
8179       esac
8180       ;;
8181
8182     sunos4*)
8183       lt_prog_compiler_wl='-Qoption ld '
8184       lt_prog_compiler_pic='-PIC'
8185       lt_prog_compiler_static='-Bstatic'
8186       ;;
8187
8188     sysv4 | sysv4.2uw2* | sysv4.3*)
8189       lt_prog_compiler_wl='-Wl,'
8190       lt_prog_compiler_pic='-KPIC'
8191       lt_prog_compiler_static='-Bstatic'
8192       ;;
8193
8194     sysv4*MP*)
8195       if test -d /usr/nec ;then
8196         lt_prog_compiler_pic='-Kconform_pic'
8197         lt_prog_compiler_static='-Bstatic'
8198       fi
8199       ;;
8200
8201     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8202       lt_prog_compiler_wl='-Wl,'
8203       lt_prog_compiler_pic='-KPIC'
8204       lt_prog_compiler_static='-Bstatic'
8205       ;;
8206
8207     unicos*)
8208       lt_prog_compiler_wl='-Wl,'
8209       lt_prog_compiler_can_build_shared=no
8210       ;;
8211
8212     uts4*)
8213       lt_prog_compiler_pic='-pic'
8214       lt_prog_compiler_static='-Bstatic'
8215       ;;
8216
8217     *)
8218       lt_prog_compiler_can_build_shared=no
8219       ;;
8220     esac
8221   fi
8222
8223 case $host_os in
8224   # For platforms which do not support PIC, -DPIC is meaningless:
8225   *djgpp*)
8226     lt_prog_compiler_pic=
8227     ;;
8228   *)
8229     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8230     ;;
8231 esac
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8233 $as_echo "$lt_prog_compiler_pic" >&6; }
8234
8235
8236
8237
8238
8239
8240 #
8241 # Check to make sure the PIC flag actually works.
8242 #
8243 if test -n "$lt_prog_compiler_pic"; then
8244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8245 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8246 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8247   $as_echo_n "(cached) " >&6
8248 else
8249   lt_cv_prog_compiler_pic_works=no
8250    ac_outfile=conftest.$ac_objext
8251    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8252    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8253    # Insert the option either (1) after the last *FLAGS variable, or
8254    # (2) before a word containing "conftest.", or (3) at the end.
8255    # Note that $ac_compile itself does not contain backslashes and begins
8256    # with a dollar sign (not a hyphen), so the echo should work correctly.
8257    # The option is referenced via a variable to avoid confusing sed.
8258    lt_compile=`echo "$ac_compile" | $SED \
8259    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8260    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8261    -e 's:$: $lt_compiler_flag:'`
8262    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8263    (eval "$lt_compile" 2>conftest.err)
8264    ac_status=$?
8265    cat conftest.err >&5
8266    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267    if (exit $ac_status) && test -s "$ac_outfile"; then
8268      # The compiler can only warn and ignore the option if not recognized
8269      # So say no if there are warnings other than the usual output.
8270      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8271      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8272      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8273        lt_cv_prog_compiler_pic_works=yes
8274      fi
8275    fi
8276    $RM conftest*
8277
8278 fi
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8280 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8281
8282 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8283     case $lt_prog_compiler_pic in
8284      "" | " "*) ;;
8285      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8286      esac
8287 else
8288     lt_prog_compiler_pic=
8289      lt_prog_compiler_can_build_shared=no
8290 fi
8291
8292 fi
8293
8294
8295
8296
8297
8298
8299 #
8300 # Check to make sure the static flag actually works.
8301 #
8302 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8304 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8305 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   lt_cv_prog_compiler_static_works=no
8309    save_LDFLAGS="$LDFLAGS"
8310    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8311    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8312    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8313      # The linker can only warn and ignore the option if not recognized
8314      # So say no if there are warnings
8315      if test -s conftest.err; then
8316        # Append any errors to the config.log.
8317        cat conftest.err 1>&5
8318        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8319        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8320        if diff conftest.exp conftest.er2 >/dev/null; then
8321          lt_cv_prog_compiler_static_works=yes
8322        fi
8323      else
8324        lt_cv_prog_compiler_static_works=yes
8325      fi
8326    fi
8327    $RM -r conftest*
8328    LDFLAGS="$save_LDFLAGS"
8329
8330 fi
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8332 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8333
8334 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8335     :
8336 else
8337     lt_prog_compiler_static=
8338 fi
8339
8340
8341
8342
8343
8344
8345
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8347 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8348 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   lt_cv_prog_compiler_c_o=no
8352    $RM -r conftest 2>/dev/null
8353    mkdir conftest
8354    cd conftest
8355    mkdir out
8356    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8357
8358    lt_compiler_flag="-o out/conftest2.$ac_objext"
8359    # Insert the option either (1) after the last *FLAGS variable, or
8360    # (2) before a word containing "conftest.", or (3) at the end.
8361    # Note that $ac_compile itself does not contain backslashes and begins
8362    # with a dollar sign (not a hyphen), so the echo should work correctly.
8363    lt_compile=`echo "$ac_compile" | $SED \
8364    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8365    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8366    -e 's:$: $lt_compiler_flag:'`
8367    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8368    (eval "$lt_compile" 2>out/conftest.err)
8369    ac_status=$?
8370    cat out/conftest.err >&5
8371    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8373    then
8374      # The compiler can only warn and ignore the option if not recognized
8375      # So say no if there are warnings
8376      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8377      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8378      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8379        lt_cv_prog_compiler_c_o=yes
8380      fi
8381    fi
8382    chmod u+w . 2>&5
8383    $RM conftest*
8384    # SGI C++ compiler will create directory out/ii_files/ for
8385    # template instantiation
8386    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8387    $RM out/* && rmdir out
8388    cd ..
8389    $RM -r conftest
8390    $RM conftest*
8391
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8394 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8395
8396
8397
8398
8399
8400
8401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8402 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8403 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8404   $as_echo_n "(cached) " >&6
8405 else
8406   lt_cv_prog_compiler_c_o=no
8407    $RM -r conftest 2>/dev/null
8408    mkdir conftest
8409    cd conftest
8410    mkdir out
8411    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8412
8413    lt_compiler_flag="-o out/conftest2.$ac_objext"
8414    # Insert the option either (1) after the last *FLAGS variable, or
8415    # (2) before a word containing "conftest.", or (3) at the end.
8416    # Note that $ac_compile itself does not contain backslashes and begins
8417    # with a dollar sign (not a hyphen), so the echo should work correctly.
8418    lt_compile=`echo "$ac_compile" | $SED \
8419    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8420    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8421    -e 's:$: $lt_compiler_flag:'`
8422    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8423    (eval "$lt_compile" 2>out/conftest.err)
8424    ac_status=$?
8425    cat out/conftest.err >&5
8426    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8428    then
8429      # The compiler can only warn and ignore the option if not recognized
8430      # So say no if there are warnings
8431      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8432      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8433      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8434        lt_cv_prog_compiler_c_o=yes
8435      fi
8436    fi
8437    chmod u+w . 2>&5
8438    $RM conftest*
8439    # SGI C++ compiler will create directory out/ii_files/ for
8440    # template instantiation
8441    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8442    $RM out/* && rmdir out
8443    cd ..
8444    $RM -r conftest
8445    $RM conftest*
8446
8447 fi
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8449 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8450
8451
8452
8453
8454 hard_links="nottested"
8455 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8456   # do not overwrite the value of need_locks provided by the user
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8458 $as_echo_n "checking if we can lock with hard links... " >&6; }
8459   hard_links=yes
8460   $RM conftest*
8461   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8462   touch conftest.a
8463   ln conftest.a conftest.b 2>&5 || hard_links=no
8464   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8466 $as_echo "$hard_links" >&6; }
8467   if test "$hard_links" = no; then
8468     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8469 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8470     need_locks=warn
8471   fi
8472 else
8473   need_locks=no
8474 fi
8475
8476
8477
8478
8479
8480
8481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8482 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8483
8484   runpath_var=
8485   allow_undefined_flag=
8486   always_export_symbols=no
8487   archive_cmds=
8488   archive_expsym_cmds=
8489   compiler_needs_object=no
8490   enable_shared_with_static_runtimes=no
8491   export_dynamic_flag_spec=
8492   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8493   hardcode_automatic=no
8494   hardcode_direct=no
8495   hardcode_direct_absolute=no
8496   hardcode_libdir_flag_spec=
8497   hardcode_libdir_flag_spec_ld=
8498   hardcode_libdir_separator=
8499   hardcode_minus_L=no
8500   hardcode_shlibpath_var=unsupported
8501   inherit_rpath=no
8502   link_all_deplibs=unknown
8503   module_cmds=
8504   module_expsym_cmds=
8505   old_archive_from_new_cmds=
8506   old_archive_from_expsyms_cmds=
8507   thread_safe_flag_spec=
8508   whole_archive_flag_spec=
8509   # include_expsyms should be a list of space-separated symbols to be *always*
8510   # included in the symbol list
8511   include_expsyms=
8512   # exclude_expsyms can be an extended regexp of symbols to exclude
8513   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8514   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8515   # as well as any symbol that contains `d'.
8516   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8517   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8518   # platforms (ab)use it in PIC code, but their linkers get confused if
8519   # the symbol is explicitly referenced.  Since portable code cannot
8520   # rely on this symbol name, it's probably fine to never include it in
8521   # preloaded symbol tables.
8522   # Exclude shared library initialization/finalization symbols.
8523   extract_expsyms_cmds=
8524
8525   case $host_os in
8526   cygwin* | mingw* | pw32* | cegcc*)
8527     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8528     # When not using gcc, we currently assume that we are using
8529     # Microsoft Visual C++.
8530     if test "$GCC" != yes; then
8531       with_gnu_ld=no
8532     fi
8533     ;;
8534   interix*)
8535     # we just hope/assume this is gcc and not c89 (= MSVC++)
8536     with_gnu_ld=yes
8537     ;;
8538   openbsd*)
8539     with_gnu_ld=no
8540     ;;
8541   esac
8542
8543   ld_shlibs=yes
8544
8545   # On some targets, GNU ld is compatible enough with the native linker
8546   # that we're better off using the native interface for both.
8547   lt_use_gnu_ld_interface=no
8548   if test "$with_gnu_ld" = yes; then
8549     case $host_os in
8550       aix*)
8551         # The AIX port of GNU ld has always aspired to compatibility
8552         # with the native linker.  However, as the warning in the GNU ld
8553         # block says, versions before 2.19.5* couldn't really create working
8554         # shared libraries, regardless of the interface used.
8555         case `$LD -v 2>&1` in
8556           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8557           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8558           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8559           *)
8560             lt_use_gnu_ld_interface=yes
8561             ;;
8562         esac
8563         ;;
8564       *)
8565         lt_use_gnu_ld_interface=yes
8566         ;;
8567     esac
8568   fi
8569
8570   if test "$lt_use_gnu_ld_interface" = yes; then
8571     # If archive_cmds runs LD, not CC, wlarc should be empty
8572     wlarc='${wl}'
8573
8574     # Set some defaults for GNU ld with shared library support. These
8575     # are reset later if shared libraries are not supported. Putting them
8576     # here allows them to be overridden if necessary.
8577     runpath_var=LD_RUN_PATH
8578     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8579     export_dynamic_flag_spec='${wl}--export-dynamic'
8580     # ancient GNU ld didn't support --whole-archive et. al.
8581     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8582       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8583     else
8584       whole_archive_flag_spec=
8585     fi
8586     supports_anon_versioning=no
8587     case `$LD -v 2>&1` in
8588       *GNU\ gold*) supports_anon_versioning=yes ;;
8589       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8590       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8591       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8592       *\ 2.11.*) ;; # other 2.11 versions
8593       *) supports_anon_versioning=yes ;;
8594     esac
8595
8596     # See if GNU ld supports shared libraries.
8597     case $host_os in
8598     aix[3-9]*)
8599       # On AIX/PPC, the GNU linker is very broken
8600       if test "$host_cpu" != ia64; then
8601         ld_shlibs=no
8602         cat <<_LT_EOF 1>&2
8603
8604 *** Warning: the GNU linker, at least up to release 2.19, is reported
8605 *** to be unable to reliably create shared libraries on AIX.
8606 *** Therefore, libtool is disabling shared libraries support.  If you
8607 *** really care for shared libraries, you may want to install binutils
8608 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8609 *** You will then need to restart the configuration process.
8610
8611 _LT_EOF
8612       fi
8613       ;;
8614
8615     amigaos*)
8616       case $host_cpu in
8617       powerpc)
8618             # see comment about AmigaOS4 .so support
8619             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8620             archive_expsym_cmds=''
8621         ;;
8622       m68k)
8623             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)'
8624             hardcode_libdir_flag_spec='-L$libdir'
8625             hardcode_minus_L=yes
8626         ;;
8627       esac
8628       ;;
8629
8630     beos*)
8631       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8632         allow_undefined_flag=unsupported
8633         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8634         # support --undefined.  This deserves some investigation.  FIXME
8635         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8636       else
8637         ld_shlibs=no
8638       fi
8639       ;;
8640
8641     cygwin* | mingw* | pw32* | cegcc*)
8642       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8643       # as there is no search path for DLLs.
8644       hardcode_libdir_flag_spec='-L$libdir'
8645       export_dynamic_flag_spec='${wl}--export-all-symbols'
8646       allow_undefined_flag=unsupported
8647       always_export_symbols=no
8648       enable_shared_with_static_runtimes=yes
8649       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8650
8651       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8652         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8653         # If the export-symbols file already is a .def file (1st line
8654         # is EXPORTS), use it as is; otherwise, prepend...
8655         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8656           cp $export_symbols $output_objdir/$soname.def;
8657         else
8658           echo EXPORTS > $output_objdir/$soname.def;
8659           cat $export_symbols >> $output_objdir/$soname.def;
8660         fi~
8661         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8662       else
8663         ld_shlibs=no
8664       fi
8665       ;;
8666
8667     haiku*)
8668       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669       link_all_deplibs=yes
8670       ;;
8671
8672     interix[3-9]*)
8673       hardcode_direct=no
8674       hardcode_shlibpath_var=no
8675       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8676       export_dynamic_flag_spec='${wl}-E'
8677       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8678       # Instead, shared libraries are loaded at an image base (0x10000000 by
8679       # default) and relocated if they conflict, which is a slow very memory
8680       # consuming and fragmenting process.  To avoid this, we pick a random,
8681       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8682       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8683       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8684       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'
8685       ;;
8686
8687     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8688       tmp_diet=no
8689       if test "$host_os" = linux-dietlibc; then
8690         case $cc_basename in
8691           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8692         esac
8693       fi
8694       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8695          && test "$tmp_diet" = no
8696       then
8697         tmp_addflag=
8698         tmp_sharedflag='-shared'
8699         case $cc_basename,$host_cpu in
8700         pgcc*)                          # Portland Group C compiler
8701           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'
8702           tmp_addflag=' $pic_flag'
8703           ;;
8704         pgf77* | pgf90* | pgf95* | pgfortran*)
8705                                         # Portland Group f77 and f90 compilers
8706           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'
8707           tmp_addflag=' $pic_flag -Mnomain' ;;
8708         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8709           tmp_addflag=' -i_dynamic' ;;
8710         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8711           tmp_addflag=' -i_dynamic -nofor_main' ;;
8712         ifc* | ifort*)                  # Intel Fortran compiler
8713           tmp_addflag=' -nofor_main' ;;
8714         lf95*)                          # Lahey Fortran 8.1
8715           whole_archive_flag_spec=
8716           tmp_sharedflag='--shared' ;;
8717         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8718           tmp_sharedflag='-qmkshrobj'
8719           tmp_addflag= ;;
8720         nvcc*)  # Cuda Compiler Driver 2.2
8721           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'
8722           compiler_needs_object=yes
8723           ;;
8724         esac
8725         case `$CC -V 2>&1 | sed 5q` in
8726         *Sun\ C*)                       # Sun C 5.9
8727           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'
8728           compiler_needs_object=yes
8729           tmp_sharedflag='-G' ;;
8730         *Sun\ F*)                       # Sun Fortran 8.3
8731           tmp_sharedflag='-G' ;;
8732         esac
8733         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8734
8735         if test "x$supports_anon_versioning" = xyes; then
8736           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8737             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8738             echo "local: *; };" >> $output_objdir/$libname.ver~
8739             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8740         fi
8741
8742         case $cc_basename in
8743         xlf* | bgf* | bgxlf* | mpixlf*)
8744           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8745           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8746           hardcode_libdir_flag_spec=
8747           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8748           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8749           if test "x$supports_anon_versioning" = xyes; then
8750             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8751               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8752               echo "local: *; };" >> $output_objdir/$libname.ver~
8753               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8754           fi
8755           ;;
8756         esac
8757       else
8758         ld_shlibs=no
8759       fi
8760       ;;
8761
8762     netbsd*)
8763       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8764         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8765         wlarc=
8766       else
8767         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8769       fi
8770       ;;
8771
8772     solaris*)
8773       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8774         ld_shlibs=no
8775         cat <<_LT_EOF 1>&2
8776
8777 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8778 *** create shared libraries on Solaris systems.  Therefore, libtool
8779 *** is disabling shared libraries support.  We urge you to upgrade GNU
8780 *** binutils to release 2.9.1 or newer.  Another option is to modify
8781 *** your PATH or compiler configuration so that the native linker is
8782 *** used, and then restart.
8783
8784 _LT_EOF
8785       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8786         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8787         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8788       else
8789         ld_shlibs=no
8790       fi
8791       ;;
8792
8793     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8794       case `$LD -v 2>&1` in
8795         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8796         ld_shlibs=no
8797         cat <<_LT_EOF 1>&2
8798
8799 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8800 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8801 *** is disabling shared libraries support.  We urge you to upgrade GNU
8802 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8803 *** your PATH or compiler configuration so that the native linker is
8804 *** used, and then restart.
8805
8806 _LT_EOF
8807         ;;
8808         *)
8809           # For security reasons, it is highly recommended that you always
8810           # use absolute paths for naming shared libraries, and exclude the
8811           # DT_RUNPATH tag from executables and libraries.  But doing so
8812           # requires that you compile everything twice, which is a pain.
8813           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8814             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8815             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8817           else
8818             ld_shlibs=no
8819           fi
8820         ;;
8821       esac
8822       ;;
8823
8824     sunos4*)
8825       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8826       wlarc=
8827       hardcode_direct=yes
8828       hardcode_shlibpath_var=no
8829       ;;
8830
8831     *)
8832       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8833         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8835       else
8836         ld_shlibs=no
8837       fi
8838       ;;
8839     esac
8840
8841     if test "$ld_shlibs" = no; then
8842       runpath_var=
8843       hardcode_libdir_flag_spec=
8844       export_dynamic_flag_spec=
8845       whole_archive_flag_spec=
8846     fi
8847   else
8848     # PORTME fill in a description of your system's linker (not GNU ld)
8849     case $host_os in
8850     aix3*)
8851       allow_undefined_flag=unsupported
8852       always_export_symbols=yes
8853       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'
8854       # Note: this linker hardcodes the directories in LIBPATH if there
8855       # are no directories specified by -L.
8856       hardcode_minus_L=yes
8857       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8858         # Neither direct hardcoding nor static linking is supported with a
8859         # broken collect2.
8860         hardcode_direct=unsupported
8861       fi
8862       ;;
8863
8864     aix[4-9]*)
8865       if test "$host_cpu" = ia64; then
8866         # On IA64, the linker does run time linking by default, so we don't
8867         # have to do anything special.
8868         aix_use_runtimelinking=no
8869         exp_sym_flag='-Bexport'
8870         no_entry_flag=""
8871       else
8872         # If we're using GNU nm, then we don't want the "-C" option.
8873         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8874         # Also, AIX nm treats weak defined symbols like other global
8875         # defined symbols, whereas GNU nm marks them as "W".
8876         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8877           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'
8878         else
8879           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'
8880         fi
8881         aix_use_runtimelinking=no
8882
8883         # Test if we are trying to use run time linking or normal
8884         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8885         # need to do runtime linking.
8886         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8887           for ld_flag in $LDFLAGS; do
8888           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8889             aix_use_runtimelinking=yes
8890             break
8891           fi
8892           done
8893           ;;
8894         esac
8895
8896         exp_sym_flag='-bexport'
8897         no_entry_flag='-bnoentry'
8898       fi
8899
8900       # When large executables or shared objects are built, AIX ld can
8901       # have problems creating the table of contents.  If linking a library
8902       # or program results in "error TOC overflow" add -mminimal-toc to
8903       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8904       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8905
8906       archive_cmds=''
8907       hardcode_direct=yes
8908       hardcode_direct_absolute=yes
8909       hardcode_libdir_separator=':'
8910       link_all_deplibs=yes
8911       file_list_spec='${wl}-f,'
8912
8913       if test "$GCC" = yes; then
8914         case $host_os in aix4.[012]|aix4.[012].*)
8915         # We only want to do this on AIX 4.2 and lower, the check
8916         # below for broken collect2 doesn't work under 4.3+
8917           collect2name=`${CC} -print-prog-name=collect2`
8918           if test -f "$collect2name" &&
8919            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8920           then
8921           # We have reworked collect2
8922           :
8923           else
8924           # We have old collect2
8925           hardcode_direct=unsupported
8926           # It fails to find uninstalled libraries when the uninstalled
8927           # path is not listed in the libpath.  Setting hardcode_minus_L
8928           # to unsupported forces relinking
8929           hardcode_minus_L=yes
8930           hardcode_libdir_flag_spec='-L$libdir'
8931           hardcode_libdir_separator=
8932           fi
8933           ;;
8934         esac
8935         shared_flag='-shared'
8936         if test "$aix_use_runtimelinking" = yes; then
8937           shared_flag="$shared_flag "'${wl}-G'
8938         fi
8939       else
8940         # not using gcc
8941         if test "$host_cpu" = ia64; then
8942         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8943         # chokes on -Wl,-G. The following line is correct:
8944           shared_flag='-G'
8945         else
8946           if test "$aix_use_runtimelinking" = yes; then
8947             shared_flag='${wl}-G'
8948           else
8949             shared_flag='${wl}-bM:SRE'
8950           fi
8951         fi
8952       fi
8953
8954       export_dynamic_flag_spec='${wl}-bexpall'
8955       # It seems that -bexpall does not export symbols beginning with
8956       # underscore (_), so it is better to generate a list of symbols to export.
8957       always_export_symbols=yes
8958       if test "$aix_use_runtimelinking" = yes; then
8959         # Warning - without using the other runtime loading flags (-brtl),
8960         # -berok will link without error, but may produce a broken library.
8961         allow_undefined_flag='-berok'
8962         # Determine the default libpath from the value encoded in an
8963         # empty executable.
8964         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8965 /* end confdefs.h.  */
8966
8967 int
8968 main ()
8969 {
8970
8971   ;
8972   return 0;
8973 }
8974 _ACEOF
8975 if ac_fn_c_try_link "$LINENO"; then :
8976
8977 lt_aix_libpath_sed='
8978     /Import File Strings/,/^$/ {
8979         /^0/ {
8980             s/^0  *\(.*\)$/\1/
8981             p
8982         }
8983     }'
8984 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8985 # Check for a 64-bit object if we didn't find anything.
8986 if test -z "$aix_libpath"; then
8987   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8988 fi
8989 fi
8990 rm -f core conftest.err conftest.$ac_objext \
8991     conftest$ac_exeext conftest.$ac_ext
8992 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8993
8994         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8995         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"
8996       else
8997         if test "$host_cpu" = ia64; then
8998           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8999           allow_undefined_flag="-z nodefs"
9000           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"
9001         else
9002          # Determine the default libpath from the value encoded in an
9003          # empty executable.
9004          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005 /* end confdefs.h.  */
9006
9007 int
9008 main ()
9009 {
9010
9011   ;
9012   return 0;
9013 }
9014 _ACEOF
9015 if ac_fn_c_try_link "$LINENO"; then :
9016
9017 lt_aix_libpath_sed='
9018     /Import File Strings/,/^$/ {
9019         /^0/ {
9020             s/^0  *\(.*\)$/\1/
9021             p
9022         }
9023     }'
9024 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9025 # Check for a 64-bit object if we didn't find anything.
9026 if test -z "$aix_libpath"; then
9027   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9028 fi
9029 fi
9030 rm -f core conftest.err conftest.$ac_objext \
9031     conftest$ac_exeext conftest.$ac_ext
9032 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9033
9034          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9035           # Warning - without using the other run time loading flags,
9036           # -berok will link without error, but may produce a broken library.
9037           no_undefined_flag=' ${wl}-bernotok'
9038           allow_undefined_flag=' ${wl}-berok'
9039           if test "$with_gnu_ld" = yes; then
9040             # We only use this code for GNU lds that support --whole-archive.
9041             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9042           else
9043             # Exported symbols can be pulled into shared objects from archives
9044             whole_archive_flag_spec='$convenience'
9045           fi
9046           archive_cmds_need_lc=yes
9047           # This is similar to how AIX traditionally builds its shared libraries.
9048           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'
9049         fi
9050       fi
9051       ;;
9052
9053     amigaos*)
9054       case $host_cpu in
9055       powerpc)
9056             # see comment about AmigaOS4 .so support
9057             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058             archive_expsym_cmds=''
9059         ;;
9060       m68k)
9061             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)'
9062             hardcode_libdir_flag_spec='-L$libdir'
9063             hardcode_minus_L=yes
9064         ;;
9065       esac
9066       ;;
9067
9068     bsdi[45]*)
9069       export_dynamic_flag_spec=-rdynamic
9070       ;;
9071
9072     cygwin* | mingw* | pw32* | cegcc*)
9073       # When not using gcc, we currently assume that we are using
9074       # Microsoft Visual C++.
9075       # hardcode_libdir_flag_spec is actually meaningless, as there is
9076       # no search path for DLLs.
9077       hardcode_libdir_flag_spec=' '
9078       allow_undefined_flag=unsupported
9079       # Tell ltmain to make .lib files, not .a files.
9080       libext=lib
9081       # Tell ltmain to make .dll files, not .so files.
9082       shrext_cmds=".dll"
9083       # FIXME: Setting linknames here is a bad hack.
9084       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9085       # The linker will automatically build a .lib file if we build a DLL.
9086       old_archive_from_new_cmds='true'
9087       # FIXME: Should let the user specify the lib program.
9088       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9089       fix_srcfile_path='`cygpath -w "$srcfile"`'
9090       enable_shared_with_static_runtimes=yes
9091       ;;
9092
9093     darwin* | rhapsody*)
9094
9095
9096   archive_cmds_need_lc=no
9097   hardcode_direct=no
9098   hardcode_automatic=yes
9099   hardcode_shlibpath_var=unsupported
9100   if test "$lt_cv_ld_force_load" = "yes"; then
9101     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\"`'
9102   else
9103     whole_archive_flag_spec=''
9104   fi
9105   link_all_deplibs=yes
9106   allow_undefined_flag="$_lt_dar_allow_undefined"
9107   case $cc_basename in
9108      ifort*) _lt_dar_can_shared=yes ;;
9109      *) _lt_dar_can_shared=$GCC ;;
9110   esac
9111   if test "$_lt_dar_can_shared" = "yes"; then
9112     output_verbose_link_cmd=func_echo_all
9113     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9114     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9115     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}"
9116     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}"
9117
9118   else
9119   ld_shlibs=no
9120   fi
9121
9122       ;;
9123
9124     dgux*)
9125       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126       hardcode_libdir_flag_spec='-L$libdir'
9127       hardcode_shlibpath_var=no
9128       ;;
9129
9130     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9131     # support.  Future versions do this automatically, but an explicit c++rt0.o
9132     # does not break anything, and helps significantly (at the cost of a little
9133     # extra space).
9134     freebsd2.2*)
9135       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9136       hardcode_libdir_flag_spec='-R$libdir'
9137       hardcode_direct=yes
9138       hardcode_shlibpath_var=no
9139       ;;
9140
9141     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9142     freebsd2*)
9143       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9144       hardcode_direct=yes
9145       hardcode_minus_L=yes
9146       hardcode_shlibpath_var=no
9147       ;;
9148
9149     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9150     freebsd* | dragonfly*)
9151       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9152       hardcode_libdir_flag_spec='-R$libdir'
9153       hardcode_direct=yes
9154       hardcode_shlibpath_var=no
9155       ;;
9156
9157     hpux9*)
9158       if test "$GCC" = yes; then
9159         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'
9160       else
9161         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'
9162       fi
9163       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9164       hardcode_libdir_separator=:
9165       hardcode_direct=yes
9166
9167       # hardcode_minus_L: Not really in the search PATH,
9168       # but as the default location of the library.
9169       hardcode_minus_L=yes
9170       export_dynamic_flag_spec='${wl}-E'
9171       ;;
9172
9173     hpux10*)
9174       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9175         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9176       else
9177         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9178       fi
9179       if test "$with_gnu_ld" = no; then
9180         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9181         hardcode_libdir_flag_spec_ld='+b $libdir'
9182         hardcode_libdir_separator=:
9183         hardcode_direct=yes
9184         hardcode_direct_absolute=yes
9185         export_dynamic_flag_spec='${wl}-E'
9186         # hardcode_minus_L: Not really in the search PATH,
9187         # but as the default location of the library.
9188         hardcode_minus_L=yes
9189       fi
9190       ;;
9191
9192     hpux11*)
9193       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9194         case $host_cpu in
9195         hppa*64*)
9196           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9197           ;;
9198         ia64*)
9199           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9200           ;;
9201         *)
9202           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9203           ;;
9204         esac
9205       else
9206         case $host_cpu in
9207         hppa*64*)
9208           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209           ;;
9210         ia64*)
9211           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9212           ;;
9213         *)
9214
9215           # Older versions of the 11.00 compiler do not understand -b yet
9216           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9217           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9218 $as_echo_n "checking if $CC understands -b... " >&6; }
9219 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9220   $as_echo_n "(cached) " >&6
9221 else
9222   lt_cv_prog_compiler__b=no
9223    save_LDFLAGS="$LDFLAGS"
9224    LDFLAGS="$LDFLAGS -b"
9225    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9226    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9227      # The linker can only warn and ignore the option if not recognized
9228      # So say no if there are warnings
9229      if test -s conftest.err; then
9230        # Append any errors to the config.log.
9231        cat conftest.err 1>&5
9232        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9233        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9234        if diff conftest.exp conftest.er2 >/dev/null; then
9235          lt_cv_prog_compiler__b=yes
9236        fi
9237      else
9238        lt_cv_prog_compiler__b=yes
9239      fi
9240    fi
9241    $RM -r conftest*
9242    LDFLAGS="$save_LDFLAGS"
9243
9244 fi
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9246 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9247
9248 if test x"$lt_cv_prog_compiler__b" = xyes; then
9249     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9250 else
9251     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9252 fi
9253
9254           ;;
9255         esac
9256       fi
9257       if test "$with_gnu_ld" = no; then
9258         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9259         hardcode_libdir_separator=:
9260
9261         case $host_cpu in
9262         hppa*64*|ia64*)
9263           hardcode_direct=no
9264           hardcode_shlibpath_var=no
9265           ;;
9266         *)
9267           hardcode_direct=yes
9268           hardcode_direct_absolute=yes
9269           export_dynamic_flag_spec='${wl}-E'
9270
9271           # hardcode_minus_L: Not really in the search PATH,
9272           # but as the default location of the library.
9273           hardcode_minus_L=yes
9274           ;;
9275         esac
9276       fi
9277       ;;
9278
9279     irix5* | irix6* | nonstopux*)
9280       if test "$GCC" = yes; then
9281         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'
9282         # Try to use the -exported_symbol ld option, if it does not
9283         # work, assume that -exports_file does not work either and
9284         # implicitly export all symbols.
9285         save_LDFLAGS="$LDFLAGS"
9286         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9287         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h.  */
9289 int foo(void) {}
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"; then :
9292   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'
9293
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext \
9296     conftest$ac_exeext conftest.$ac_ext
9297         LDFLAGS="$save_LDFLAGS"
9298       else
9299         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'
9300         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'
9301       fi
9302       archive_cmds_need_lc='no'
9303       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304       hardcode_libdir_separator=:
9305       inherit_rpath=yes
9306       link_all_deplibs=yes
9307       ;;
9308
9309     netbsd*)
9310       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9311         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9312       else
9313         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9314       fi
9315       hardcode_libdir_flag_spec='-R$libdir'
9316       hardcode_direct=yes
9317       hardcode_shlibpath_var=no
9318       ;;
9319
9320     newsos6)
9321       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322       hardcode_direct=yes
9323       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9324       hardcode_libdir_separator=:
9325       hardcode_shlibpath_var=no
9326       ;;
9327
9328     *nto* | *qnx*)
9329       ;;
9330
9331     openbsd*)
9332       if test -f /usr/libexec/ld.so; then
9333         hardcode_direct=yes
9334         hardcode_shlibpath_var=no
9335         hardcode_direct_absolute=yes
9336         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9337           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9338           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9339           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9340           export_dynamic_flag_spec='${wl}-E'
9341         else
9342           case $host_os in
9343            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9344              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9345              hardcode_libdir_flag_spec='-R$libdir'
9346              ;;
9347            *)
9348              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9349              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9350              ;;
9351           esac
9352         fi
9353       else
9354         ld_shlibs=no
9355       fi
9356       ;;
9357
9358     os2*)
9359       hardcode_libdir_flag_spec='-L$libdir'
9360       hardcode_minus_L=yes
9361       allow_undefined_flag=unsupported
9362       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'
9363       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9364       ;;
9365
9366     osf3*)
9367       if test "$GCC" = yes; then
9368         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9369         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'
9370       else
9371         allow_undefined_flag=' -expect_unresolved \*'
9372         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'
9373       fi
9374       archive_cmds_need_lc='no'
9375       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9376       hardcode_libdir_separator=:
9377       ;;
9378
9379     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9380       if test "$GCC" = yes; then
9381         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9382         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'
9383         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9384       else
9385         allow_undefined_flag=' -expect_unresolved \*'
9386         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'
9387         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~
9388         $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'
9389
9390         # Both c and cxx compiler support -rpath directly
9391         hardcode_libdir_flag_spec='-rpath $libdir'
9392       fi
9393       archive_cmds_need_lc='no'
9394       hardcode_libdir_separator=:
9395       ;;
9396
9397     solaris*)
9398       no_undefined_flag=' -z defs'
9399       if test "$GCC" = yes; then
9400         wlarc='${wl}'
9401         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9402         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9403           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9404       else
9405         case `$CC -V 2>&1` in
9406         *"Compilers 5.0"*)
9407           wlarc=''
9408           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9410           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9411           ;;
9412         *)
9413           wlarc='${wl}'
9414           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9415           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9416           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9417           ;;
9418         esac
9419       fi
9420       hardcode_libdir_flag_spec='-R$libdir'
9421       hardcode_shlibpath_var=no
9422       case $host_os in
9423       solaris2.[0-5] | solaris2.[0-5].*) ;;
9424       *)
9425         # The compiler driver will combine and reorder linker options,
9426         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9427         # but is careful enough not to reorder.
9428         # Supported since Solaris 2.6 (maybe 2.5.1?)
9429         if test "$GCC" = yes; then
9430           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9431         else
9432           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9433         fi
9434         ;;
9435       esac
9436       link_all_deplibs=yes
9437       ;;
9438
9439     sunos4*)
9440       if test "x$host_vendor" = xsequent; then
9441         # Use $CC to link under sequent, because it throws in some extra .o
9442         # files that make .init and .fini sections work.
9443         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9444       else
9445         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9446       fi
9447       hardcode_libdir_flag_spec='-L$libdir'
9448       hardcode_direct=yes
9449       hardcode_minus_L=yes
9450       hardcode_shlibpath_var=no
9451       ;;
9452
9453     sysv4)
9454       case $host_vendor in
9455         sni)
9456           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9457           hardcode_direct=yes # is this really true???
9458         ;;
9459         siemens)
9460           ## LD is ld it makes a PLAMLIB
9461           ## CC just makes a GrossModule.
9462           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9463           reload_cmds='$CC -r -o $output$reload_objs'
9464           hardcode_direct=no
9465         ;;
9466         motorola)
9467           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9468           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9469         ;;
9470       esac
9471       runpath_var='LD_RUN_PATH'
9472       hardcode_shlibpath_var=no
9473       ;;
9474
9475     sysv4.3*)
9476       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9477       hardcode_shlibpath_var=no
9478       export_dynamic_flag_spec='-Bexport'
9479       ;;
9480
9481     sysv4*MP*)
9482       if test -d /usr/nec; then
9483         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9484         hardcode_shlibpath_var=no
9485         runpath_var=LD_RUN_PATH
9486         hardcode_runpath_var=yes
9487         ld_shlibs=yes
9488       fi
9489       ;;
9490
9491     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9492       no_undefined_flag='${wl}-z,text'
9493       archive_cmds_need_lc=no
9494       hardcode_shlibpath_var=no
9495       runpath_var='LD_RUN_PATH'
9496
9497       if test "$GCC" = yes; then
9498         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9500       else
9501         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9503       fi
9504       ;;
9505
9506     sysv5* | sco3.2v5* | sco5v6*)
9507       # Note: We can NOT use -z defs as we might desire, because we do not
9508       # link with -lc, and that would cause any symbols used from libc to
9509       # always be unresolved, which means just about no library would
9510       # ever link correctly.  If we're not using GNU ld we use -z text
9511       # though, which does catch some bad symbols but isn't as heavy-handed
9512       # as -z defs.
9513       no_undefined_flag='${wl}-z,text'
9514       allow_undefined_flag='${wl}-z,nodefs'
9515       archive_cmds_need_lc=no
9516       hardcode_shlibpath_var=no
9517       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9518       hardcode_libdir_separator=':'
9519       link_all_deplibs=yes
9520       export_dynamic_flag_spec='${wl}-Bexport'
9521       runpath_var='LD_RUN_PATH'
9522
9523       if test "$GCC" = yes; then
9524         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9525         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526       else
9527         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529       fi
9530       ;;
9531
9532     uts4*)
9533       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534       hardcode_libdir_flag_spec='-L$libdir'
9535       hardcode_shlibpath_var=no
9536       ;;
9537
9538     *)
9539       ld_shlibs=no
9540       ;;
9541     esac
9542
9543     if test x$host_vendor = xsni; then
9544       case $host in
9545       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9546         export_dynamic_flag_spec='${wl}-Blargedynsym'
9547         ;;
9548       esac
9549     fi
9550   fi
9551
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9553 $as_echo "$ld_shlibs" >&6; }
9554 test "$ld_shlibs" = no && can_build_shared=no
9555
9556 with_gnu_ld=$with_gnu_ld
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572 #
9573 # Do we need to explicitly link libc?
9574 #
9575 case "x$archive_cmds_need_lc" in
9576 x|xyes)
9577   # Assume -lc should be added
9578   archive_cmds_need_lc=yes
9579
9580   if test "$enable_shared" = yes && test "$GCC" = yes; then
9581     case $archive_cmds in
9582     *'~'*)
9583       # FIXME: we may have to deal with multi-command sequences.
9584       ;;
9585     '$CC '*)
9586       # Test whether the compiler implicitly links with -lc since on some
9587       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9588       # to ld, don't add -lc before -lgcc.
9589       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9590 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9591 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9592   $as_echo_n "(cached) " >&6
9593 else
9594   $RM conftest*
9595         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9596
9597         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9598   (eval $ac_compile) 2>&5
9599   ac_status=$?
9600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9601   test $ac_status = 0; } 2>conftest.err; then
9602           soname=conftest
9603           lib=conftest
9604           libobjs=conftest.$ac_objext
9605           deplibs=
9606           wl=$lt_prog_compiler_wl
9607           pic_flag=$lt_prog_compiler_pic
9608           compiler_flags=-v
9609           linker_flags=-v
9610           verstring=
9611           output_objdir=.
9612           libname=conftest
9613           lt_save_allow_undefined_flag=$allow_undefined_flag
9614           allow_undefined_flag=
9615           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9616   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9617   ac_status=$?
9618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619   test $ac_status = 0; }
9620           then
9621             lt_cv_archive_cmds_need_lc=no
9622           else
9623             lt_cv_archive_cmds_need_lc=yes
9624           fi
9625           allow_undefined_flag=$lt_save_allow_undefined_flag
9626         else
9627           cat conftest.err 1>&5
9628         fi
9629         $RM conftest*
9630
9631 fi
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9633 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9634       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9635       ;;
9636     esac
9637   fi
9638   ;;
9639 esac
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
9793
9794
9795
9796
9797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9798 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9799
9800 if test "$GCC" = yes; then
9801   case $host_os in
9802     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9803     *) lt_awk_arg="/^libraries:/" ;;
9804   esac
9805   case $host_os in
9806     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9807     *) lt_sed_strip_eq="s,=/,/,g" ;;
9808   esac
9809   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9810   case $lt_search_path_spec in
9811   *\;*)
9812     # if the path contains ";" then we assume it to be the separator
9813     # otherwise default to the standard path separator (i.e. ":") - it is
9814     # assumed that no part of a normal pathname contains ";" but that should
9815     # okay in the real world where ";" in dirpaths is itself problematic.
9816     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9817     ;;
9818   *)
9819     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9820     ;;
9821   esac
9822   # Ok, now we have the path, separated by spaces, we can step through it
9823   # and add multilib dir if necessary.
9824   lt_tmp_lt_search_path_spec=
9825   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9826   for lt_sys_path in $lt_search_path_spec; do
9827     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9828       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9829     else
9830       test -d "$lt_sys_path" && \
9831         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9832     fi
9833   done
9834   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9835 BEGIN {RS=" "; FS="/|\n";} {
9836   lt_foo="";
9837   lt_count=0;
9838   for (lt_i = NF; lt_i > 0; lt_i--) {
9839     if ($lt_i != "" && $lt_i != ".") {
9840       if ($lt_i == "..") {
9841         lt_count++;
9842       } else {
9843         if (lt_count == 0) {
9844           lt_foo="/" $lt_i lt_foo;
9845         } else {
9846           lt_count--;
9847         }
9848       }
9849     }
9850   }
9851   if (lt_foo != "") { lt_freq[lt_foo]++; }
9852   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9853 }'`
9854   # AWK program above erroneously prepends '/' to C:/dos/paths
9855   # for these hosts.
9856   case $host_os in
9857     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9858       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9859   esac
9860   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9861 else
9862   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9863 fi
9864 library_names_spec=
9865 libname_spec='lib$name'
9866 soname_spec=
9867 shrext_cmds=".so"
9868 postinstall_cmds=
9869 postuninstall_cmds=
9870 finish_cmds=
9871 finish_eval=
9872 shlibpath_var=
9873 shlibpath_overrides_runpath=unknown
9874 version_type=none
9875 dynamic_linker="$host_os ld.so"
9876 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9877 need_lib_prefix=unknown
9878 hardcode_into_libs=no
9879
9880 # when you set need_version to no, make sure it does not cause -set_version
9881 # flags to be left without arguments
9882 need_version=unknown
9883
9884 case $host_os in
9885 aix3*)
9886   version_type=linux
9887   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9888   shlibpath_var=LIBPATH
9889
9890   # AIX 3 has no versioning support, so we append a major version to the name.
9891   soname_spec='${libname}${release}${shared_ext}$major'
9892   ;;
9893
9894 aix[4-9]*)
9895   version_type=linux
9896   need_lib_prefix=no
9897   need_version=no
9898   hardcode_into_libs=yes
9899   if test "$host_cpu" = ia64; then
9900     # AIX 5 supports IA64
9901     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9902     shlibpath_var=LD_LIBRARY_PATH
9903   else
9904     # With GCC up to 2.95.x, collect2 would create an import file
9905     # for dependence libraries.  The import file would start with
9906     # the line `#! .'.  This would cause the generated library to
9907     # depend on `.', always an invalid library.  This was fixed in
9908     # development snapshots of GCC prior to 3.0.
9909     case $host_os in
9910       aix4 | aix4.[01] | aix4.[01].*)
9911       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9912            echo ' yes '
9913            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9914         :
9915       else
9916         can_build_shared=no
9917       fi
9918       ;;
9919     esac
9920     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9921     # soname into executable. Probably we can add versioning support to
9922     # collect2, so additional links can be useful in future.
9923     if test "$aix_use_runtimelinking" = yes; then
9924       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9925       # instead of lib<name>.a to let people know that these are not
9926       # typical AIX shared libraries.
9927       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928     else
9929       # We preserve .a as extension for shared libraries through AIX4.2
9930       # and later when we are not doing run time linking.
9931       library_names_spec='${libname}${release}.a $libname.a'
9932       soname_spec='${libname}${release}${shared_ext}$major'
9933     fi
9934     shlibpath_var=LIBPATH
9935   fi
9936   ;;
9937
9938 amigaos*)
9939   case $host_cpu in
9940   powerpc)
9941     # Since July 2007 AmigaOS4 officially supports .so libraries.
9942     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944     ;;
9945   m68k)
9946     library_names_spec='$libname.ixlibrary $libname.a'
9947     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9948     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'
9949     ;;
9950   esac
9951   ;;
9952
9953 beos*)
9954   library_names_spec='${libname}${shared_ext}'
9955   dynamic_linker="$host_os ld.so"
9956   shlibpath_var=LIBRARY_PATH
9957   ;;
9958
9959 bsdi[45]*)
9960   version_type=linux
9961   need_version=no
9962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963   soname_spec='${libname}${release}${shared_ext}$major'
9964   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9965   shlibpath_var=LD_LIBRARY_PATH
9966   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9967   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9968   # the default ld.so.conf also contains /usr/contrib/lib and
9969   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9970   # libtool to hard-code these into programs
9971   ;;
9972
9973 cygwin* | mingw* | pw32* | cegcc*)
9974   version_type=windows
9975   shrext_cmds=".dll"
9976   need_version=no
9977   need_lib_prefix=no
9978
9979   case $GCC,$host_os in
9980   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9981     library_names_spec='$libname.dll.a'
9982     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9983     postinstall_cmds='base_file=`basename \${file}`~
9984       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9985       dldir=$destdir/`dirname \$dlpath`~
9986       test -d \$dldir || mkdir -p \$dldir~
9987       $install_prog $dir/$dlname \$dldir/$dlname~
9988       chmod a+x \$dldir/$dlname~
9989       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9990         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9991       fi'
9992     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9993       dlpath=$dir/\$dldll~
9994        $RM \$dlpath'
9995     shlibpath_overrides_runpath=yes
9996
9997     case $host_os in
9998     cygwin*)
9999       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10000       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10001
10002       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10003       ;;
10004     mingw* | cegcc*)
10005       # MinGW DLLs use traditional 'lib' prefix
10006       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10007       ;;
10008     pw32*)
10009       # pw32 DLLs use 'pw' prefix rather than 'lib'
10010       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10011       ;;
10012     esac
10013     ;;
10014
10015   *)
10016     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10017     ;;
10018   esac
10019   dynamic_linker='Win32 ld.exe'
10020   # FIXME: first we should search . and the directory the executable is in
10021   shlibpath_var=PATH
10022   ;;
10023
10024 darwin* | rhapsody*)
10025   dynamic_linker="$host_os dyld"
10026   version_type=darwin
10027   need_lib_prefix=no
10028   need_version=no
10029   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10030   soname_spec='${libname}${release}${major}$shared_ext'
10031   shlibpath_overrides_runpath=yes
10032   shlibpath_var=DYLD_LIBRARY_PATH
10033   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10034
10035   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10036   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10037   ;;
10038
10039 dgux*)
10040   version_type=linux
10041   need_lib_prefix=no
10042   need_version=no
10043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10044   soname_spec='${libname}${release}${shared_ext}$major'
10045   shlibpath_var=LD_LIBRARY_PATH
10046   ;;
10047
10048 freebsd* | dragonfly*)
10049   # DragonFly does not have aout.  When/if they implement a new
10050   # versioning mechanism, adjust this.
10051   if test -x /usr/bin/objformat; then
10052     objformat=`/usr/bin/objformat`
10053   else
10054     case $host_os in
10055     freebsd[123]*) objformat=aout ;;
10056     *) objformat=elf ;;
10057     esac
10058   fi
10059   version_type=freebsd-$objformat
10060   case $version_type in
10061     freebsd-elf*)
10062       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10063       need_version=no
10064       need_lib_prefix=no
10065       ;;
10066     freebsd-*)
10067       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10068       need_version=yes
10069       ;;
10070   esac
10071   shlibpath_var=LD_LIBRARY_PATH
10072   case $host_os in
10073   freebsd2*)
10074     shlibpath_overrides_runpath=yes
10075     ;;
10076   freebsd3.[01]* | freebsdelf3.[01]*)
10077     shlibpath_overrides_runpath=yes
10078     hardcode_into_libs=yes
10079     ;;
10080   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10081   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10082     shlibpath_overrides_runpath=no
10083     hardcode_into_libs=yes
10084     ;;
10085   *) # from 4.6 on, and DragonFly
10086     shlibpath_overrides_runpath=yes
10087     hardcode_into_libs=yes
10088     ;;
10089   esac
10090   ;;
10091
10092 gnu*)
10093   version_type=linux
10094   need_lib_prefix=no
10095   need_version=no
10096   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10097   soname_spec='${libname}${release}${shared_ext}$major'
10098   shlibpath_var=LD_LIBRARY_PATH
10099   hardcode_into_libs=yes
10100   ;;
10101
10102 haiku*)
10103   version_type=linux
10104   need_lib_prefix=no
10105   need_version=no
10106   dynamic_linker="$host_os runtime_loader"
10107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10108   soname_spec='${libname}${release}${shared_ext}$major'
10109   shlibpath_var=LIBRARY_PATH
10110   shlibpath_overrides_runpath=yes
10111   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10112   hardcode_into_libs=yes
10113   ;;
10114
10115 hpux9* | hpux10* | hpux11*)
10116   # Give a soname corresponding to the major version so that dld.sl refuses to
10117   # link against other versions.
10118   version_type=sunos
10119   need_lib_prefix=no
10120   need_version=no
10121   case $host_cpu in
10122   ia64*)
10123     shrext_cmds='.so'
10124     hardcode_into_libs=yes
10125     dynamic_linker="$host_os dld.so"
10126     shlibpath_var=LD_LIBRARY_PATH
10127     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10128     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129     soname_spec='${libname}${release}${shared_ext}$major'
10130     if test "X$HPUX_IA64_MODE" = X32; then
10131       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10132     else
10133       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10134     fi
10135     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10136     ;;
10137   hppa*64*)
10138     shrext_cmds='.sl'
10139     hardcode_into_libs=yes
10140     dynamic_linker="$host_os dld.sl"
10141     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10142     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144     soname_spec='${libname}${release}${shared_ext}$major'
10145     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10146     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10147     ;;
10148   *)
10149     shrext_cmds='.sl'
10150     dynamic_linker="$host_os dld.sl"
10151     shlibpath_var=SHLIB_PATH
10152     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10153     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154     soname_spec='${libname}${release}${shared_ext}$major'
10155     ;;
10156   esac
10157   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10158   postinstall_cmds='chmod 555 $lib'
10159   # or fails outright, so override atomically:
10160   install_override_mode=555
10161   ;;
10162
10163 interix[3-9]*)
10164   version_type=linux
10165   need_lib_prefix=no
10166   need_version=no
10167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10168   soname_spec='${libname}${release}${shared_ext}$major'
10169   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10170   shlibpath_var=LD_LIBRARY_PATH
10171   shlibpath_overrides_runpath=no
10172   hardcode_into_libs=yes
10173   ;;
10174
10175 irix5* | irix6* | nonstopux*)
10176   case $host_os in
10177     nonstopux*) version_type=nonstopux ;;
10178     *)
10179         if test "$lt_cv_prog_gnu_ld" = yes; then
10180                 version_type=linux
10181         else
10182                 version_type=irix
10183         fi ;;
10184   esac
10185   need_lib_prefix=no
10186   need_version=no
10187   soname_spec='${libname}${release}${shared_ext}$major'
10188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10189   case $host_os in
10190   irix5* | nonstopux*)
10191     libsuff= shlibsuff=
10192     ;;
10193   *)
10194     case $LD in # libtool.m4 will add one of these switches to LD
10195     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10196       libsuff= shlibsuff= libmagic=32-bit;;
10197     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10198       libsuff=32 shlibsuff=N32 libmagic=N32;;
10199     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10200       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10201     *) libsuff= shlibsuff= libmagic=never-match;;
10202     esac
10203     ;;
10204   esac
10205   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10206   shlibpath_overrides_runpath=no
10207   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10208   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10209   hardcode_into_libs=yes
10210   ;;
10211
10212 # No shared lib support for Linux oldld, aout, or coff.
10213 linux*oldld* | linux*aout* | linux*coff*)
10214   dynamic_linker=no
10215   ;;
10216
10217 # This must be Linux ELF.
10218 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10219   version_type=linux
10220   need_lib_prefix=no
10221   need_version=no
10222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223   soname_spec='${libname}${release}${shared_ext}$major'
10224   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10225   shlibpath_var=LD_LIBRARY_PATH
10226   shlibpath_overrides_runpath=no
10227
10228   # Some binutils ld are patched to set DT_RUNPATH
10229   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10230   $as_echo_n "(cached) " >&6
10231 else
10232   lt_cv_shlibpath_overrides_runpath=no
10233     save_LDFLAGS=$LDFLAGS
10234     save_libdir=$libdir
10235     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10236          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10237     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h.  */
10239
10240 int
10241 main ()
10242 {
10243
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 if ac_fn_c_try_link "$LINENO"; then :
10249   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10250   lt_cv_shlibpath_overrides_runpath=yes
10251 fi
10252 fi
10253 rm -f core conftest.err conftest.$ac_objext \
10254     conftest$ac_exeext conftest.$ac_ext
10255     LDFLAGS=$save_LDFLAGS
10256     libdir=$save_libdir
10257
10258 fi
10259
10260   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10261
10262   # This implies no fast_install, which is unacceptable.
10263   # Some rework will be needed to allow for fast_install
10264   # before this can be enabled.
10265   hardcode_into_libs=yes
10266
10267   # Append ld.so.conf contents to the search path
10268   if test -f /etc/ld.so.conf; then
10269     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' ' '`
10270     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10271   fi
10272
10273   # We used to test for /lib/ld.so.1 and disable shared libraries on
10274   # powerpc, because MkLinux only supported shared libraries with the
10275   # GNU dynamic linker.  Since this was broken with cross compilers,
10276   # most powerpc-linux boxes support dynamic linking these days and
10277   # people can always --disable-shared, the test was removed, and we
10278   # assume the GNU/Linux dynamic linker is in use.
10279   dynamic_linker='GNU/Linux ld.so'
10280   ;;
10281
10282 netbsd*)
10283   version_type=sunos
10284   need_lib_prefix=no
10285   need_version=no
10286   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10287     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10288     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10289     dynamic_linker='NetBSD (a.out) ld.so'
10290   else
10291     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10292     soname_spec='${libname}${release}${shared_ext}$major'
10293     dynamic_linker='NetBSD ld.elf_so'
10294   fi
10295   shlibpath_var=LD_LIBRARY_PATH
10296   shlibpath_overrides_runpath=yes
10297   hardcode_into_libs=yes
10298   ;;
10299
10300 newsos6)
10301   version_type=linux
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   shlibpath_var=LD_LIBRARY_PATH
10304   shlibpath_overrides_runpath=yes
10305   ;;
10306
10307 *nto* | *qnx*)
10308   version_type=qnx
10309   need_lib_prefix=no
10310   need_version=no
10311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312   soname_spec='${libname}${release}${shared_ext}$major'
10313   shlibpath_var=LD_LIBRARY_PATH
10314   shlibpath_overrides_runpath=no
10315   hardcode_into_libs=yes
10316   dynamic_linker='ldqnx.so'
10317   ;;
10318
10319 openbsd*)
10320   version_type=sunos
10321   sys_lib_dlsearch_path_spec="/usr/lib"
10322   need_lib_prefix=no
10323   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10324   case $host_os in
10325     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10326     *)                          need_version=no  ;;
10327   esac
10328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10329   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10330   shlibpath_var=LD_LIBRARY_PATH
10331   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10332     case $host_os in
10333       openbsd2.[89] | openbsd2.[89].*)
10334         shlibpath_overrides_runpath=no
10335         ;;
10336       *)
10337         shlibpath_overrides_runpath=yes
10338         ;;
10339       esac
10340   else
10341     shlibpath_overrides_runpath=yes
10342   fi
10343   ;;
10344
10345 os2*)
10346   libname_spec='$name'
10347   shrext_cmds=".dll"
10348   need_lib_prefix=no
10349   library_names_spec='$libname${shared_ext} $libname.a'
10350   dynamic_linker='OS/2 ld.exe'
10351   shlibpath_var=LIBPATH
10352   ;;
10353
10354 osf3* | osf4* | osf5*)
10355   version_type=osf
10356   need_lib_prefix=no
10357   need_version=no
10358   soname_spec='${libname}${release}${shared_ext}$major'
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360   shlibpath_var=LD_LIBRARY_PATH
10361   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10362   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10363   ;;
10364
10365 rdos*)
10366   dynamic_linker=no
10367   ;;
10368
10369 solaris*)
10370   version_type=linux
10371   need_lib_prefix=no
10372   need_version=no
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10374   soname_spec='${libname}${release}${shared_ext}$major'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   shlibpath_overrides_runpath=yes
10377   hardcode_into_libs=yes
10378   # ldd complains unless libraries are executable
10379   postinstall_cmds='chmod +x $lib'
10380   ;;
10381
10382 sunos4*)
10383   version_type=sunos
10384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10385   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10386   shlibpath_var=LD_LIBRARY_PATH
10387   shlibpath_overrides_runpath=yes
10388   if test "$with_gnu_ld" = yes; then
10389     need_lib_prefix=no
10390   fi
10391   need_version=yes
10392   ;;
10393
10394 sysv4 | sysv4.3*)
10395   version_type=linux
10396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397   soname_spec='${libname}${release}${shared_ext}$major'
10398   shlibpath_var=LD_LIBRARY_PATH
10399   case $host_vendor in
10400     sni)
10401       shlibpath_overrides_runpath=no
10402       need_lib_prefix=no
10403       runpath_var=LD_RUN_PATH
10404       ;;
10405     siemens)
10406       need_lib_prefix=no
10407       ;;
10408     motorola)
10409       need_lib_prefix=no
10410       need_version=no
10411       shlibpath_overrides_runpath=no
10412       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10413       ;;
10414   esac
10415   ;;
10416
10417 sysv4*MP*)
10418   if test -d /usr/nec ;then
10419     version_type=linux
10420     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10421     soname_spec='$libname${shared_ext}.$major'
10422     shlibpath_var=LD_LIBRARY_PATH
10423   fi
10424   ;;
10425
10426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10427   version_type=freebsd-elf
10428   need_lib_prefix=no
10429   need_version=no
10430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10431   soname_spec='${libname}${release}${shared_ext}$major'
10432   shlibpath_var=LD_LIBRARY_PATH
10433   shlibpath_overrides_runpath=yes
10434   hardcode_into_libs=yes
10435   if test "$with_gnu_ld" = yes; then
10436     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10437   else
10438     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10439     case $host_os in
10440       sco3.2v5*)
10441         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10442         ;;
10443     esac
10444   fi
10445   sys_lib_dlsearch_path_spec='/usr/lib'
10446   ;;
10447
10448 tpf*)
10449   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10450   version_type=linux
10451   need_lib_prefix=no
10452   need_version=no
10453   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454   shlibpath_var=LD_LIBRARY_PATH
10455   shlibpath_overrides_runpath=no
10456   hardcode_into_libs=yes
10457   ;;
10458
10459 uts4*)
10460   version_type=linux
10461   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10462   soname_spec='${libname}${release}${shared_ext}$major'
10463   shlibpath_var=LD_LIBRARY_PATH
10464   ;;
10465
10466 *)
10467   dynamic_linker=no
10468   ;;
10469 esac
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10471 $as_echo "$dynamic_linker" >&6; }
10472 test "$dynamic_linker" = no && can_build_shared=no
10473
10474 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10475 if test "$GCC" = yes; then
10476   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10477 fi
10478
10479 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10480   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10481 fi
10482 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10483   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10484 fi
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
10577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10578 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10579 hardcode_action=
10580 if test -n "$hardcode_libdir_flag_spec" ||
10581    test -n "$runpath_var" ||
10582    test "X$hardcode_automatic" = "Xyes" ; then
10583
10584   # We can hardcode non-existent directories.
10585   if test "$hardcode_direct" != no &&
10586      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10587      # have to relink, otherwise we might link with an installed library
10588      # when we should be linking with a yet-to-be-installed one
10589      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10590      test "$hardcode_minus_L" != no; then
10591     # Linking always hardcodes the temporary library directory.
10592     hardcode_action=relink
10593   else
10594     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10595     hardcode_action=immediate
10596   fi
10597 else
10598   # We cannot hardcode anything, or else we can only hardcode existing
10599   # directories.
10600   hardcode_action=unsupported
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10603 $as_echo "$hardcode_action" >&6; }
10604
10605 if test "$hardcode_action" = relink ||
10606    test "$inherit_rpath" = yes; then
10607   # Fast installation is not supported
10608   enable_fast_install=no
10609 elif test "$shlibpath_overrides_runpath" = yes ||
10610      test "$enable_shared" = no; then
10611   # Fast installation is not necessary
10612   enable_fast_install=needless
10613 fi
10614
10615
10616
10617
10618
10619
10620   if test "x$enable_dlopen" != xyes; then
10621   enable_dlopen=unknown
10622   enable_dlopen_self=unknown
10623   enable_dlopen_self_static=unknown
10624 else
10625   lt_cv_dlopen=no
10626   lt_cv_dlopen_libs=
10627
10628   case $host_os in
10629   beos*)
10630     lt_cv_dlopen="load_add_on"
10631     lt_cv_dlopen_libs=
10632     lt_cv_dlopen_self=yes
10633     ;;
10634
10635   mingw* | pw32* | cegcc*)
10636     lt_cv_dlopen="LoadLibrary"
10637     lt_cv_dlopen_libs=
10638     ;;
10639
10640   cygwin*)
10641     lt_cv_dlopen="dlopen"
10642     lt_cv_dlopen_libs=
10643     ;;
10644
10645   darwin*)
10646   # if libdl is installed we need to link against it
10647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10648 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10649 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10650   $as_echo_n "(cached) " >&6
10651 else
10652   ac_check_lib_save_LIBS=$LIBS
10653 LIBS="-ldl  $LIBS"
10654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10655 /* end confdefs.h.  */
10656
10657 /* Override any GCC internal prototype to avoid an error.
10658    Use char because int might match the return type of a GCC
10659    builtin and then its argument prototype would still apply.  */
10660 #ifdef __cplusplus
10661 extern "C"
10662 #endif
10663 char dlopen ();
10664 int
10665 main ()
10666 {
10667 return dlopen ();
10668   ;
10669   return 0;
10670 }
10671 _ACEOF
10672 if ac_fn_c_try_link "$LINENO"; then :
10673   ac_cv_lib_dl_dlopen=yes
10674 else
10675   ac_cv_lib_dl_dlopen=no
10676 fi
10677 rm -f core conftest.err conftest.$ac_objext \
10678     conftest$ac_exeext conftest.$ac_ext
10679 LIBS=$ac_check_lib_save_LIBS
10680 fi
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10682 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10683 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10684   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10685 else
10686
10687     lt_cv_dlopen="dyld"
10688     lt_cv_dlopen_libs=
10689     lt_cv_dlopen_self=yes
10690
10691 fi
10692
10693     ;;
10694
10695   *)
10696     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10697 if test "x$ac_cv_func_shl_load" = x""yes; then :
10698   lt_cv_dlopen="shl_load"
10699 else
10700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10701 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10702 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10703   $as_echo_n "(cached) " >&6
10704 else
10705   ac_check_lib_save_LIBS=$LIBS
10706 LIBS="-ldld  $LIBS"
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h.  */
10709
10710 /* Override any GCC internal prototype to avoid an error.
10711    Use char because int might match the return type of a GCC
10712    builtin and then its argument prototype would still apply.  */
10713 #ifdef __cplusplus
10714 extern "C"
10715 #endif
10716 char shl_load ();
10717 int
10718 main ()
10719 {
10720 return shl_load ();
10721   ;
10722   return 0;
10723 }
10724 _ACEOF
10725 if ac_fn_c_try_link "$LINENO"; then :
10726   ac_cv_lib_dld_shl_load=yes
10727 else
10728   ac_cv_lib_dld_shl_load=no
10729 fi
10730 rm -f core conftest.err conftest.$ac_objext \
10731     conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10733 fi
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10735 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10736 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10737   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10738 else
10739   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10740 if test "x$ac_cv_func_dlopen" = x""yes; then :
10741   lt_cv_dlopen="dlopen"
10742 else
10743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10744 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10745 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   ac_check_lib_save_LIBS=$LIBS
10749 LIBS="-ldl  $LIBS"
10750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h.  */
10752
10753 /* Override any GCC internal prototype to avoid an error.
10754    Use char because int might match the return type of a GCC
10755    builtin and then its argument prototype would still apply.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 char dlopen ();
10760 int
10761 main ()
10762 {
10763 return dlopen ();
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769   ac_cv_lib_dl_dlopen=yes
10770 else
10771   ac_cv_lib_dl_dlopen=no
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext \
10774     conftest$ac_exeext conftest.$ac_ext
10775 LIBS=$ac_check_lib_save_LIBS
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10778 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10779 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10780   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10781 else
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10783 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10784 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   ac_check_lib_save_LIBS=$LIBS
10788 LIBS="-lsvld  $LIBS"
10789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10790 /* end confdefs.h.  */
10791
10792 /* Override any GCC internal prototype to avoid an error.
10793    Use char because int might match the return type of a GCC
10794    builtin and then its argument prototype would still apply.  */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char dlopen ();
10799 int
10800 main ()
10801 {
10802 return dlopen ();
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 if ac_fn_c_try_link "$LINENO"; then :
10808   ac_cv_lib_svld_dlopen=yes
10809 else
10810   ac_cv_lib_svld_dlopen=no
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813     conftest$ac_exeext conftest.$ac_ext
10814 LIBS=$ac_check_lib_save_LIBS
10815 fi
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10817 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10818 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10819   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10820 else
10821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10822 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10823 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10824   $as_echo_n "(cached) " >&6
10825 else
10826   ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-ldld  $LIBS"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h.  */
10830
10831 /* Override any GCC internal prototype to avoid an error.
10832    Use char because int might match the return type of a GCC
10833    builtin and then its argument prototype would still apply.  */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char dld_link ();
10838 int
10839 main ()
10840 {
10841 return dld_link ();
10842   ;
10843   return 0;
10844 }
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847   ac_cv_lib_dld_dld_link=yes
10848 else
10849   ac_cv_lib_dld_dld_link=no
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext \
10852     conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10854 fi
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10856 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10857 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10858   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10859 fi
10860
10861
10862 fi
10863
10864
10865 fi
10866
10867
10868 fi
10869
10870
10871 fi
10872
10873
10874 fi
10875
10876     ;;
10877   esac
10878
10879   if test "x$lt_cv_dlopen" != xno; then
10880     enable_dlopen=yes
10881   else
10882     enable_dlopen=no
10883   fi
10884
10885   case $lt_cv_dlopen in
10886   dlopen)
10887     save_CPPFLAGS="$CPPFLAGS"
10888     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10889
10890     save_LDFLAGS="$LDFLAGS"
10891     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10892
10893     save_LIBS="$LIBS"
10894     LIBS="$lt_cv_dlopen_libs $LIBS"
10895
10896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10897 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10898 if test "${lt_cv_dlopen_self+set}" = set; then :
10899   $as_echo_n "(cached) " >&6
10900 else
10901           if test "$cross_compiling" = yes; then :
10902   lt_cv_dlopen_self=cross
10903 else
10904   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10905   lt_status=$lt_dlunknown
10906   cat > conftest.$ac_ext <<_LT_EOF
10907 #line 10907 "configure"
10908 #include "confdefs.h"
10909
10910 #if HAVE_DLFCN_H
10911 #include <dlfcn.h>
10912 #endif
10913
10914 #include <stdio.h>
10915
10916 #ifdef RTLD_GLOBAL
10917 #  define LT_DLGLOBAL           RTLD_GLOBAL
10918 #else
10919 #  ifdef DL_GLOBAL
10920 #    define LT_DLGLOBAL         DL_GLOBAL
10921 #  else
10922 #    define LT_DLGLOBAL         0
10923 #  endif
10924 #endif
10925
10926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10927    find out it does not work in some platform. */
10928 #ifndef LT_DLLAZY_OR_NOW
10929 #  ifdef RTLD_LAZY
10930 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10931 #  else
10932 #    ifdef DL_LAZY
10933 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10934 #    else
10935 #      ifdef RTLD_NOW
10936 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10937 #      else
10938 #        ifdef DL_NOW
10939 #          define LT_DLLAZY_OR_NOW      DL_NOW
10940 #        else
10941 #          define LT_DLLAZY_OR_NOW      0
10942 #        endif
10943 #      endif
10944 #    endif
10945 #  endif
10946 #endif
10947
10948 /* When -fvisbility=hidden is used, assume the code has been annotated
10949    correspondingly for the symbols needed.  */
10950 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10951 void fnord () __attribute__((visibility("default")));
10952 #endif
10953
10954 void fnord () { int i=42; }
10955 int main ()
10956 {
10957   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10958   int status = $lt_dlunknown;
10959
10960   if (self)
10961     {
10962       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10963       else
10964         {
10965           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10966           else puts (dlerror ());
10967         }
10968       /* dlclose (self); */
10969     }
10970   else
10971     puts (dlerror ());
10972
10973   return status;
10974 }
10975 _LT_EOF
10976   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10977   (eval $ac_link) 2>&5
10978   ac_status=$?
10979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10980   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10981     (./conftest; exit; ) >&5 2>/dev/null
10982     lt_status=$?
10983     case x$lt_status in
10984       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10985       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10986       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10987     esac
10988   else :
10989     # compilation failed
10990     lt_cv_dlopen_self=no
10991   fi
10992 fi
10993 rm -fr conftest*
10994
10995
10996 fi
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10998 $as_echo "$lt_cv_dlopen_self" >&6; }
10999
11000     if test "x$lt_cv_dlopen_self" = xyes; then
11001       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11002       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11003 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11004 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11005   $as_echo_n "(cached) " >&6
11006 else
11007           if test "$cross_compiling" = yes; then :
11008   lt_cv_dlopen_self_static=cross
11009 else
11010   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11011   lt_status=$lt_dlunknown
11012   cat > conftest.$ac_ext <<_LT_EOF
11013 #line 11013 "configure"
11014 #include "confdefs.h"
11015
11016 #if HAVE_DLFCN_H
11017 #include <dlfcn.h>
11018 #endif
11019
11020 #include <stdio.h>
11021
11022 #ifdef RTLD_GLOBAL
11023 #  define LT_DLGLOBAL           RTLD_GLOBAL
11024 #else
11025 #  ifdef DL_GLOBAL
11026 #    define LT_DLGLOBAL         DL_GLOBAL
11027 #  else
11028 #    define LT_DLGLOBAL         0
11029 #  endif
11030 #endif
11031
11032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11033    find out it does not work in some platform. */
11034 #ifndef LT_DLLAZY_OR_NOW
11035 #  ifdef RTLD_LAZY
11036 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11037 #  else
11038 #    ifdef DL_LAZY
11039 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11040 #    else
11041 #      ifdef RTLD_NOW
11042 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11043 #      else
11044 #        ifdef DL_NOW
11045 #          define LT_DLLAZY_OR_NOW      DL_NOW
11046 #        else
11047 #          define LT_DLLAZY_OR_NOW      0
11048 #        endif
11049 #      endif
11050 #    endif
11051 #  endif
11052 #endif
11053
11054 /* When -fvisbility=hidden is used, assume the code has been annotated
11055    correspondingly for the symbols needed.  */
11056 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11057 void fnord () __attribute__((visibility("default")));
11058 #endif
11059
11060 void fnord () { int i=42; }
11061 int main ()
11062 {
11063   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11064   int status = $lt_dlunknown;
11065
11066   if (self)
11067     {
11068       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11069       else
11070         {
11071           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11072           else puts (dlerror ());
11073         }
11074       /* dlclose (self); */
11075     }
11076   else
11077     puts (dlerror ());
11078
11079   return status;
11080 }
11081 _LT_EOF
11082   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11083   (eval $ac_link) 2>&5
11084   ac_status=$?
11085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11086   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11087     (./conftest; exit; ) >&5 2>/dev/null
11088     lt_status=$?
11089     case x$lt_status in
11090       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11091       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11092       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11093     esac
11094   else :
11095     # compilation failed
11096     lt_cv_dlopen_self_static=no
11097   fi
11098 fi
11099 rm -fr conftest*
11100
11101
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11104 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11105     fi
11106
11107     CPPFLAGS="$save_CPPFLAGS"
11108     LDFLAGS="$save_LDFLAGS"
11109     LIBS="$save_LIBS"
11110     ;;
11111   esac
11112
11113   case $lt_cv_dlopen_self in
11114   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11115   *) enable_dlopen_self=unknown ;;
11116   esac
11117
11118   case $lt_cv_dlopen_self_static in
11119   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11120   *) enable_dlopen_self_static=unknown ;;
11121   esac
11122 fi
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140 striplib=
11141 old_striplib=
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11143 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11144 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11145   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11146   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11148 $as_echo "yes" >&6; }
11149 else
11150 # FIXME - insert some real tests, host_os isn't really good enough
11151   case $host_os in
11152   darwin*)
11153     if test -n "$STRIP" ; then
11154       striplib="$STRIP -x"
11155       old_striplib="$STRIP -S"
11156       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11157 $as_echo "yes" >&6; }
11158     else
11159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11161     fi
11162     ;;
11163   *)
11164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11165 $as_echo "no" >&6; }
11166     ;;
11167   esac
11168 fi
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181   # Report which library types will actually be built
11182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11183 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11185 $as_echo "$can_build_shared" >&6; }
11186
11187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11188 $as_echo_n "checking whether to build shared libraries... " >&6; }
11189   test "$can_build_shared" = "no" && enable_shared=no
11190
11191   # On AIX, shared libraries and static libraries use the same namespace, and
11192   # are all built from PIC.
11193   case $host_os in
11194   aix3*)
11195     test "$enable_shared" = yes && enable_static=no
11196     if test -n "$RANLIB"; then
11197       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11198       postinstall_cmds='$RANLIB $lib'
11199     fi
11200     ;;
11201
11202   aix[4-9]*)
11203     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11204       test "$enable_shared" = yes && enable_static=no
11205     fi
11206     ;;
11207   esac
11208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11209 $as_echo "$enable_shared" >&6; }
11210
11211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11212 $as_echo_n "checking whether to build static libraries... " >&6; }
11213   # Make sure either enable_shared or enable_static is yes.
11214   test "$enable_shared" = yes || enable_static=yes
11215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11216 $as_echo "$enable_static" >&6; }
11217
11218
11219
11220
11221 fi
11222 ac_ext=c
11223 ac_cpp='$CPP $CPPFLAGS'
11224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11227
11228 CC="$lt_save_CC"
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242 # Source file extension for Go test sources.
11243 ac_ext=go
11244
11245 # Object file extension for compiled Go test sources.
11246 objext=o
11247 objext_GO=$objext
11248
11249 # Code to be used in simple compile tests
11250 lt_simple_compile_test_code="package main; func main() { }"
11251
11252 # Code to be used in simple link tests
11253 lt_simple_link_test_code='package main; func main() { }'
11254
11255 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11256
11257
11258
11259
11260
11261
11262 # If no C compiler was specified, use CC.
11263 LTCC=${LTCC-"$CC"}
11264
11265 # If no C compiler flags were specified, use CFLAGS.
11266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11267
11268 # Allow CC to be a program name with arguments.
11269 compiler=$CC
11270
11271
11272 # save warnings/boilerplate of simple test code
11273 ac_outfile=conftest.$ac_objext
11274 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11275 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11276 _lt_compiler_boilerplate=`cat conftest.err`
11277 $RM conftest*
11278
11279 ac_outfile=conftest.$ac_objext
11280 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11282 _lt_linker_boilerplate=`cat conftest.err`
11283 $RM -r conftest*
11284
11285
11286 # Allow CC to be a program name with arguments.
11287 lt_save_CC="$CC"
11288 lt_save_GCC="$GCC"
11289 GCC=yes
11290 CC=${GOC-"gccgo"}
11291 compiler=$CC
11292 compiler_GO=$CC
11293 LD_GO="$LD"
11294 for cc_temp in $compiler""; do
11295   case $cc_temp in
11296     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11297     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11298     \-*) ;;
11299     *) break;;
11300   esac
11301 done
11302 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11303
11304
11305 # Go did not exist at the time GCC didn't implicitly link libc in.
11306 archive_cmds_need_lc_GO=no
11307
11308 old_archive_cmds_GO=$old_archive_cmds
11309
11310 ## CAVEAT EMPTOR:
11311 ## There is no encapsulation within the following macros, do not change
11312 ## the running order or otherwise move them around unless you know exactly
11313 ## what you are doing...
11314 if test -n "$compiler"; then
11315
11316 lt_prog_compiler_no_builtin_flag_GO=
11317
11318 if test "$GCC" = yes; then
11319   case $cc_basename in
11320   nvcc*)
11321     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11322   *)
11323     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11324   esac
11325
11326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11327 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11328 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11329   $as_echo_n "(cached) " >&6
11330 else
11331   lt_cv_prog_compiler_rtti_exceptions=no
11332    ac_outfile=conftest.$ac_objext
11333    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11334    lt_compiler_flag="-fno-rtti -fno-exceptions"
11335    # Insert the option either (1) after the last *FLAGS variable, or
11336    # (2) before a word containing "conftest.", or (3) at the end.
11337    # Note that $ac_compile itself does not contain backslashes and begins
11338    # with a dollar sign (not a hyphen), so the echo should work correctly.
11339    # The option is referenced via a variable to avoid confusing sed.
11340    lt_compile=`echo "$ac_compile" | $SED \
11341    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11342    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11343    -e 's:$: $lt_compiler_flag:'`
11344    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11345    (eval "$lt_compile" 2>conftest.err)
11346    ac_status=$?
11347    cat conftest.err >&5
11348    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349    if (exit $ac_status) && test -s "$ac_outfile"; then
11350      # The compiler can only warn and ignore the option if not recognized
11351      # So say no if there are warnings other than the usual output.
11352      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11353      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11354      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11355        lt_cv_prog_compiler_rtti_exceptions=yes
11356      fi
11357    fi
11358    $RM conftest*
11359
11360 fi
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11362 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11363
11364 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11365     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11366 else
11367     :
11368 fi
11369
11370 fi
11371
11372
11373
11374   lt_prog_compiler_wl_GO=
11375 lt_prog_compiler_pic_GO=
11376 lt_prog_compiler_static_GO=
11377
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11379 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11380
11381   if test "$GCC" = yes; then
11382     lt_prog_compiler_wl_GO='-Wl,'
11383     lt_prog_compiler_static_GO='-static'
11384
11385     case $host_os in
11386       aix*)
11387       # All AIX code is PIC.
11388       if test "$host_cpu" = ia64; then
11389         # AIX 5 now supports IA64 processor
11390         lt_prog_compiler_static_GO='-Bstatic'
11391       fi
11392       ;;
11393
11394     amigaos*)
11395       case $host_cpu in
11396       powerpc)
11397             # see comment about AmigaOS4 .so support
11398             lt_prog_compiler_pic_GO='-fPIC'
11399         ;;
11400       m68k)
11401             # FIXME: we need at least 68020 code to build shared libraries, but
11402             # adding the `-m68020' flag to GCC prevents building anything better,
11403             # like `-m68040'.
11404             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11405         ;;
11406       esac
11407       ;;
11408
11409     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11410       # PIC is the default for these OSes.
11411       ;;
11412
11413     mingw* | cygwin* | pw32* | os2* | cegcc*)
11414       # This hack is so that the source file can tell whether it is being
11415       # built for inclusion in a dll (and should export symbols for example).
11416       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11417       # (--disable-auto-import) libraries
11418       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11419       ;;
11420
11421     darwin* | rhapsody*)
11422       # PIC is the default on this platform
11423       # Common symbols not allowed in MH_DYLIB files
11424       lt_prog_compiler_pic_GO='-fno-common'
11425       ;;
11426
11427     haiku*)
11428       # PIC is the default for Haiku.
11429       # The "-static" flag exists, but is broken.
11430       lt_prog_compiler_static_GO=
11431       ;;
11432
11433     hpux*)
11434       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11435       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11436       # sets the default TLS model and affects inlining.
11437       case $host_cpu in
11438       hppa*64*)
11439         # +Z the default
11440         ;;
11441       *)
11442         lt_prog_compiler_pic_GO='-fPIC'
11443         ;;
11444       esac
11445       ;;
11446
11447     interix[3-9]*)
11448       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11449       # Instead, we relocate shared libraries at runtime.
11450       ;;
11451
11452     msdosdjgpp*)
11453       # Just because we use GCC doesn't mean we suddenly get shared libraries
11454       # on systems that don't support them.
11455       lt_prog_compiler_can_build_shared_GO=no
11456       enable_shared=no
11457       ;;
11458
11459     *nto* | *qnx*)
11460       # QNX uses GNU C++, but need to define -shared option too, otherwise
11461       # it will coredump.
11462       lt_prog_compiler_pic_GO='-fPIC -shared'
11463       ;;
11464
11465     sysv4*MP*)
11466       if test -d /usr/nec; then
11467         lt_prog_compiler_pic_GO=-Kconform_pic
11468       fi
11469       ;;
11470
11471     *)
11472       lt_prog_compiler_pic_GO='-fPIC'
11473       ;;
11474     esac
11475
11476     case $cc_basename in
11477     nvcc*) # Cuda Compiler Driver 2.2
11478       lt_prog_compiler_wl_GO='-Xlinker '
11479       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11480       ;;
11481     esac
11482   else
11483     # PORTME Check for flag to pass linker flags through the system compiler.
11484     case $host_os in
11485     aix*)
11486       lt_prog_compiler_wl_GO='-Wl,'
11487       if test "$host_cpu" = ia64; then
11488         # AIX 5 now supports IA64 processor
11489         lt_prog_compiler_static_GO='-Bstatic'
11490       else
11491         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11492       fi
11493       ;;
11494
11495     mingw* | cygwin* | pw32* | os2* | cegcc*)
11496       # This hack is so that the source file can tell whether it is being
11497       # built for inclusion in a dll (and should export symbols for example).
11498       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11499       ;;
11500
11501     hpux9* | hpux10* | hpux11*)
11502       lt_prog_compiler_wl_GO='-Wl,'
11503       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11504       # not for PA HP-UX.
11505       case $host_cpu in
11506       hppa*64*|ia64*)
11507         # +Z the default
11508         ;;
11509       *)
11510         lt_prog_compiler_pic_GO='+Z'
11511         ;;
11512       esac
11513       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11514       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11515       ;;
11516
11517     irix5* | irix6* | nonstopux*)
11518       lt_prog_compiler_wl_GO='-Wl,'
11519       # PIC (with -KPIC) is the default.
11520       lt_prog_compiler_static_GO='-non_shared'
11521       ;;
11522
11523     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11524       case $cc_basename in
11525       # old Intel for x86_64 which still supported -KPIC.
11526       ecc*)
11527         lt_prog_compiler_wl_GO='-Wl,'
11528         lt_prog_compiler_pic_GO='-KPIC'
11529         lt_prog_compiler_static_GO='-static'
11530         ;;
11531       # icc used to be incompatible with GCC.
11532       # ICC 10 doesn't accept -KPIC any more.
11533       icc* | ifort*)
11534         lt_prog_compiler_wl_GO='-Wl,'
11535         lt_prog_compiler_pic_GO='-fPIC'
11536         lt_prog_compiler_static_GO='-static'
11537         ;;
11538       # Lahey Fortran 8.1.
11539       lf95*)
11540         lt_prog_compiler_wl_GO='-Wl,'
11541         lt_prog_compiler_pic_GO='--shared'
11542         lt_prog_compiler_static_GO='--static'
11543         ;;
11544       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11545         # Portland Group compilers (*not* the Pentium gcc compiler,
11546         # which looks to be a dead project)
11547         lt_prog_compiler_wl_GO='-Wl,'
11548         lt_prog_compiler_pic_GO='-fpic'
11549         lt_prog_compiler_static_GO='-Bstatic'
11550         ;;
11551       ccc*)
11552         lt_prog_compiler_wl_GO='-Wl,'
11553         # All Alpha code is PIC.
11554         lt_prog_compiler_static_GO='-non_shared'
11555         ;;
11556       xl* | bgxl* | bgf* | mpixl*)
11557         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11558         lt_prog_compiler_wl_GO='-Wl,'
11559         lt_prog_compiler_pic_GO='-qpic'
11560         lt_prog_compiler_static_GO='-qstaticlink'
11561         ;;
11562       *)
11563         case `$CC -V 2>&1 | sed 5q` in
11564         *Sun\ F* | *Sun*Fortran*)
11565           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11566           lt_prog_compiler_pic_GO='-KPIC'
11567           lt_prog_compiler_static_GO='-Bstatic'
11568           lt_prog_compiler_wl_GO=''
11569           ;;
11570         *Sun\ C*)
11571           # Sun C 5.9
11572           lt_prog_compiler_pic_GO='-KPIC'
11573           lt_prog_compiler_static_GO='-Bstatic'
11574           lt_prog_compiler_wl_GO='-Wl,'
11575           ;;
11576         esac
11577         ;;
11578       esac
11579       ;;
11580
11581     newsos6)
11582       lt_prog_compiler_pic_GO='-KPIC'
11583       lt_prog_compiler_static_GO='-Bstatic'
11584       ;;
11585
11586     *nto* | *qnx*)
11587       # QNX uses GNU C++, but need to define -shared option too, otherwise
11588       # it will coredump.
11589       lt_prog_compiler_pic_GO='-fPIC -shared'
11590       ;;
11591
11592     osf3* | osf4* | osf5*)
11593       lt_prog_compiler_wl_GO='-Wl,'
11594       # All OSF/1 code is PIC.
11595       lt_prog_compiler_static_GO='-non_shared'
11596       ;;
11597
11598     rdos*)
11599       lt_prog_compiler_static_GO='-non_shared'
11600       ;;
11601
11602     solaris*)
11603       lt_prog_compiler_pic_GO='-KPIC'
11604       lt_prog_compiler_static_GO='-Bstatic'
11605       case $cc_basename in
11606       f77* | f90* | f95*)
11607         lt_prog_compiler_wl_GO='-Qoption ld ';;
11608       *)
11609         lt_prog_compiler_wl_GO='-Wl,';;
11610       esac
11611       ;;
11612
11613     sunos4*)
11614       lt_prog_compiler_wl_GO='-Qoption ld '
11615       lt_prog_compiler_pic_GO='-PIC'
11616       lt_prog_compiler_static_GO='-Bstatic'
11617       ;;
11618
11619     sysv4 | sysv4.2uw2* | sysv4.3*)
11620       lt_prog_compiler_wl_GO='-Wl,'
11621       lt_prog_compiler_pic_GO='-KPIC'
11622       lt_prog_compiler_static_GO='-Bstatic'
11623       ;;
11624
11625     sysv4*MP*)
11626       if test -d /usr/nec ;then
11627         lt_prog_compiler_pic_GO='-Kconform_pic'
11628         lt_prog_compiler_static_GO='-Bstatic'
11629       fi
11630       ;;
11631
11632     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11633       lt_prog_compiler_wl_GO='-Wl,'
11634       lt_prog_compiler_pic_GO='-KPIC'
11635       lt_prog_compiler_static_GO='-Bstatic'
11636       ;;
11637
11638     unicos*)
11639       lt_prog_compiler_wl_GO='-Wl,'
11640       lt_prog_compiler_can_build_shared_GO=no
11641       ;;
11642
11643     uts4*)
11644       lt_prog_compiler_pic_GO='-pic'
11645       lt_prog_compiler_static_GO='-Bstatic'
11646       ;;
11647
11648     *)
11649       lt_prog_compiler_can_build_shared_GO=no
11650       ;;
11651     esac
11652   fi
11653
11654 case $host_os in
11655   # For platforms which do not support PIC, -DPIC is meaningless:
11656   *djgpp*)
11657     lt_prog_compiler_pic_GO=
11658     ;;
11659   *)
11660     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11661     ;;
11662 esac
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11664 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11665
11666
11667
11668 #
11669 # Check to make sure the PIC flag actually works.
11670 #
11671 if test -n "$lt_prog_compiler_pic_GO"; then
11672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11673 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11674 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11675   $as_echo_n "(cached) " >&6
11676 else
11677   lt_cv_prog_compiler_pic_works_GO=no
11678    ac_outfile=conftest.$ac_objext
11679    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11680    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11681    # Insert the option either (1) after the last *FLAGS variable, or
11682    # (2) before a word containing "conftest.", or (3) at the end.
11683    # Note that $ac_compile itself does not contain backslashes and begins
11684    # with a dollar sign (not a hyphen), so the echo should work correctly.
11685    # The option is referenced via a variable to avoid confusing sed.
11686    lt_compile=`echo "$ac_compile" | $SED \
11687    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11688    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11689    -e 's:$: $lt_compiler_flag:'`
11690    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11691    (eval "$lt_compile" 2>conftest.err)
11692    ac_status=$?
11693    cat conftest.err >&5
11694    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695    if (exit $ac_status) && test -s "$ac_outfile"; then
11696      # The compiler can only warn and ignore the option if not recognized
11697      # So say no if there are warnings other than the usual output.
11698      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11699      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11700      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11701        lt_cv_prog_compiler_pic_works_GO=yes
11702      fi
11703    fi
11704    $RM conftest*
11705
11706 fi
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11708 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11709
11710 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11711     case $lt_prog_compiler_pic_GO in
11712      "" | " "*) ;;
11713      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11714      esac
11715 else
11716     lt_prog_compiler_pic_GO=
11717      lt_prog_compiler_can_build_shared_GO=no
11718 fi
11719
11720 fi
11721
11722
11723
11724 #
11725 # Check to make sure the static flag actually works.
11726 #
11727 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11729 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11730 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   lt_cv_prog_compiler_static_works_GO=no
11734    save_LDFLAGS="$LDFLAGS"
11735    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11736    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11737    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11738      # The linker can only warn and ignore the option if not recognized
11739      # So say no if there are warnings
11740      if test -s conftest.err; then
11741        # Append any errors to the config.log.
11742        cat conftest.err 1>&5
11743        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11744        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11745        if diff conftest.exp conftest.er2 >/dev/null; then
11746          lt_cv_prog_compiler_static_works_GO=yes
11747        fi
11748      else
11749        lt_cv_prog_compiler_static_works_GO=yes
11750      fi
11751    fi
11752    $RM -r conftest*
11753    LDFLAGS="$save_LDFLAGS"
11754
11755 fi
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11757 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11758
11759 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11760     :
11761 else
11762     lt_prog_compiler_static_GO=
11763 fi
11764
11765
11766
11767
11768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11769 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11770 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11771   $as_echo_n "(cached) " >&6
11772 else
11773   lt_cv_prog_compiler_c_o_GO=no
11774    $RM -r conftest 2>/dev/null
11775    mkdir conftest
11776    cd conftest
11777    mkdir out
11778    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11779
11780    lt_compiler_flag="-o out/conftest2.$ac_objext"
11781    # Insert the option either (1) after the last *FLAGS variable, or
11782    # (2) before a word containing "conftest.", or (3) at the end.
11783    # Note that $ac_compile itself does not contain backslashes and begins
11784    # with a dollar sign (not a hyphen), so the echo should work correctly.
11785    lt_compile=`echo "$ac_compile" | $SED \
11786    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11787    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11788    -e 's:$: $lt_compiler_flag:'`
11789    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11790    (eval "$lt_compile" 2>out/conftest.err)
11791    ac_status=$?
11792    cat out/conftest.err >&5
11793    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11795    then
11796      # The compiler can only warn and ignore the option if not recognized
11797      # So say no if there are warnings
11798      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11799      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11800      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11801        lt_cv_prog_compiler_c_o_GO=yes
11802      fi
11803    fi
11804    chmod u+w . 2>&5
11805    $RM conftest*
11806    # SGI C++ compiler will create directory out/ii_files/ for
11807    # template instantiation
11808    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11809    $RM out/* && rmdir out
11810    cd ..
11811    $RM -r conftest
11812    $RM conftest*
11813
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11816 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11817
11818
11819
11820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11821 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11822 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825   lt_cv_prog_compiler_c_o_GO=no
11826    $RM -r conftest 2>/dev/null
11827    mkdir conftest
11828    cd conftest
11829    mkdir out
11830    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11831
11832    lt_compiler_flag="-o out/conftest2.$ac_objext"
11833    # Insert the option either (1) after the last *FLAGS variable, or
11834    # (2) before a word containing "conftest.", or (3) at the end.
11835    # Note that $ac_compile itself does not contain backslashes and begins
11836    # with a dollar sign (not a hyphen), so the echo should work correctly.
11837    lt_compile=`echo "$ac_compile" | $SED \
11838    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11839    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11840    -e 's:$: $lt_compiler_flag:'`
11841    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11842    (eval "$lt_compile" 2>out/conftest.err)
11843    ac_status=$?
11844    cat out/conftest.err >&5
11845    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11847    then
11848      # The compiler can only warn and ignore the option if not recognized
11849      # So say no if there are warnings
11850      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11851      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11852      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11853        lt_cv_prog_compiler_c_o_GO=yes
11854      fi
11855    fi
11856    chmod u+w . 2>&5
11857    $RM conftest*
11858    # SGI C++ compiler will create directory out/ii_files/ for
11859    # template instantiation
11860    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11861    $RM out/* && rmdir out
11862    cd ..
11863    $RM -r conftest
11864    $RM conftest*
11865
11866 fi
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11868 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11869
11870
11871
11872
11873 hard_links="nottested"
11874 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11875   # do not overwrite the value of need_locks provided by the user
11876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11877 $as_echo_n "checking if we can lock with hard links... " >&6; }
11878   hard_links=yes
11879   $RM conftest*
11880   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11881   touch conftest.a
11882   ln conftest.a conftest.b 2>&5 || hard_links=no
11883   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11885 $as_echo "$hard_links" >&6; }
11886   if test "$hard_links" = no; then
11887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11888 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11889     need_locks=warn
11890   fi
11891 else
11892   need_locks=no
11893 fi
11894
11895
11896
11897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11898 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11899
11900   runpath_var=
11901   allow_undefined_flag_GO=
11902   always_export_symbols_GO=no
11903   archive_cmds_GO=
11904   archive_expsym_cmds_GO=
11905   compiler_needs_object_GO=no
11906   enable_shared_with_static_runtimes_GO=no
11907   export_dynamic_flag_spec_GO=
11908   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11909   hardcode_automatic_GO=no
11910   hardcode_direct_GO=no
11911   hardcode_direct_absolute_GO=no
11912   hardcode_libdir_flag_spec_GO=
11913   hardcode_libdir_flag_spec_ld_GO=
11914   hardcode_libdir_separator_GO=
11915   hardcode_minus_L_GO=no
11916   hardcode_shlibpath_var_GO=unsupported
11917   inherit_rpath_GO=no
11918   link_all_deplibs_GO=unknown
11919   module_cmds_GO=
11920   module_expsym_cmds_GO=
11921   old_archive_from_new_cmds_GO=
11922   old_archive_from_expsyms_cmds_GO=
11923   thread_safe_flag_spec_GO=
11924   whole_archive_flag_spec_GO=
11925   # include_expsyms should be a list of space-separated symbols to be *always*
11926   # included in the symbol list
11927   include_expsyms_GO=
11928   # exclude_expsyms can be an extended regexp of symbols to exclude
11929   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11930   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11931   # as well as any symbol that contains `d'.
11932   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11933   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11934   # platforms (ab)use it in PIC code, but their linkers get confused if
11935   # the symbol is explicitly referenced.  Since portable code cannot
11936   # rely on this symbol name, it's probably fine to never include it in
11937   # preloaded symbol tables.
11938   # Exclude shared library initialization/finalization symbols.
11939   extract_expsyms_cmds=
11940
11941   case $host_os in
11942   cygwin* | mingw* | pw32* | cegcc*)
11943     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11944     # When not using gcc, we currently assume that we are using
11945     # Microsoft Visual C++.
11946     if test "$GCC" != yes; then
11947       with_gnu_ld=no
11948     fi
11949     ;;
11950   interix*)
11951     # we just hope/assume this is gcc and not c89 (= MSVC++)
11952     with_gnu_ld=yes
11953     ;;
11954   openbsd*)
11955     with_gnu_ld=no
11956     ;;
11957   esac
11958
11959   ld_shlibs_GO=yes
11960
11961   # On some targets, GNU ld is compatible enough with the native linker
11962   # that we're better off using the native interface for both.
11963   lt_use_gnu_ld_interface=no
11964   if test "$with_gnu_ld" = yes; then
11965     case $host_os in
11966       aix*)
11967         # The AIX port of GNU ld has always aspired to compatibility
11968         # with the native linker.  However, as the warning in the GNU ld
11969         # block says, versions before 2.19.5* couldn't really create working
11970         # shared libraries, regardless of the interface used.
11971         case `$LD -v 2>&1` in
11972           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11973           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11974           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11975           *)
11976             lt_use_gnu_ld_interface=yes
11977             ;;
11978         esac
11979         ;;
11980       *)
11981         lt_use_gnu_ld_interface=yes
11982         ;;
11983     esac
11984   fi
11985
11986   if test "$lt_use_gnu_ld_interface" = yes; then
11987     # If archive_cmds runs LD, not CC, wlarc should be empty
11988     wlarc='${wl}'
11989
11990     # Set some defaults for GNU ld with shared library support. These
11991     # are reset later if shared libraries are not supported. Putting them
11992     # here allows them to be overridden if necessary.
11993     runpath_var=LD_RUN_PATH
11994     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11995     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11996     # ancient GNU ld didn't support --whole-archive et. al.
11997     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11998       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11999     else
12000       whole_archive_flag_spec_GO=
12001     fi
12002     supports_anon_versioning=no
12003     case `$LD -v 2>&1` in
12004       *GNU\ gold*) supports_anon_versioning=yes ;;
12005       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12006       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12007       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12008       *\ 2.11.*) ;; # other 2.11 versions
12009       *) supports_anon_versioning=yes ;;
12010     esac
12011
12012     # See if GNU ld supports shared libraries.
12013     case $host_os in
12014     aix[3-9]*)
12015       # On AIX/PPC, the GNU linker is very broken
12016       if test "$host_cpu" != ia64; then
12017         ld_shlibs_GO=no
12018         cat <<_LT_EOF 1>&2
12019
12020 *** Warning: the GNU linker, at least up to release 2.19, is reported
12021 *** to be unable to reliably create shared libraries on AIX.
12022 *** Therefore, libtool is disabling shared libraries support.  If you
12023 *** really care for shared libraries, you may want to install binutils
12024 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12025 *** You will then need to restart the configuration process.
12026
12027 _LT_EOF
12028       fi
12029       ;;
12030
12031     amigaos*)
12032       case $host_cpu in
12033       powerpc)
12034             # see comment about AmigaOS4 .so support
12035             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12036             archive_expsym_cmds_GO=''
12037         ;;
12038       m68k)
12039             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)'
12040             hardcode_libdir_flag_spec_GO='-L$libdir'
12041             hardcode_minus_L_GO=yes
12042         ;;
12043       esac
12044       ;;
12045
12046     beos*)
12047       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12048         allow_undefined_flag_GO=unsupported
12049         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12050         # support --undefined.  This deserves some investigation.  FIXME
12051         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12052       else
12053         ld_shlibs_GO=no
12054       fi
12055       ;;
12056
12057     cygwin* | mingw* | pw32* | cegcc*)
12058       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12059       # as there is no search path for DLLs.
12060       hardcode_libdir_flag_spec_GO='-L$libdir'
12061       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12062       allow_undefined_flag_GO=unsupported
12063       always_export_symbols_GO=no
12064       enable_shared_with_static_runtimes_GO=yes
12065       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12066
12067       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12068         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12069         # If the export-symbols file already is a .def file (1st line
12070         # is EXPORTS), use it as is; otherwise, prepend...
12071         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12072           cp $export_symbols $output_objdir/$soname.def;
12073         else
12074           echo EXPORTS > $output_objdir/$soname.def;
12075           cat $export_symbols >> $output_objdir/$soname.def;
12076         fi~
12077         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12078       else
12079         ld_shlibs_GO=no
12080       fi
12081       ;;
12082
12083     haiku*)
12084       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12085       link_all_deplibs_GO=yes
12086       ;;
12087
12088     interix[3-9]*)
12089       hardcode_direct_GO=no
12090       hardcode_shlibpath_var_GO=no
12091       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12092       export_dynamic_flag_spec_GO='${wl}-E'
12093       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12094       # Instead, shared libraries are loaded at an image base (0x10000000 by
12095       # default) and relocated if they conflict, which is a slow very memory
12096       # consuming and fragmenting process.  To avoid this, we pick a random,
12097       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12098       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12099       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'
12100       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'
12101       ;;
12102
12103     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12104       tmp_diet=no
12105       if test "$host_os" = linux-dietlibc; then
12106         case $cc_basename in
12107           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12108         esac
12109       fi
12110       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12111          && test "$tmp_diet" = no
12112       then
12113         tmp_addflag=
12114         tmp_sharedflag='-shared'
12115         case $cc_basename,$host_cpu in
12116         pgcc*)                          # Portland Group C compiler
12117           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'
12118           tmp_addflag=' $pic_flag'
12119           ;;
12120         pgf77* | pgf90* | pgf95* | pgfortran*)
12121                                         # Portland Group f77 and f90 compilers
12122           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'
12123           tmp_addflag=' $pic_flag -Mnomain' ;;
12124         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12125           tmp_addflag=' -i_dynamic' ;;
12126         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12127           tmp_addflag=' -i_dynamic -nofor_main' ;;
12128         ifc* | ifort*)                  # Intel Fortran compiler
12129           tmp_addflag=' -nofor_main' ;;
12130         lf95*)                          # Lahey Fortran 8.1
12131           whole_archive_flag_spec_GO=
12132           tmp_sharedflag='--shared' ;;
12133         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12134           tmp_sharedflag='-qmkshrobj'
12135           tmp_addflag= ;;
12136         nvcc*)  # Cuda Compiler Driver 2.2
12137           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'
12138           compiler_needs_object_GO=yes
12139           ;;
12140         esac
12141         case `$CC -V 2>&1 | sed 5q` in
12142         *Sun\ C*)                       # Sun C 5.9
12143           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'
12144           compiler_needs_object_GO=yes
12145           tmp_sharedflag='-G' ;;
12146         *Sun\ F*)                       # Sun Fortran 8.3
12147           tmp_sharedflag='-G' ;;
12148         esac
12149         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12150
12151         if test "x$supports_anon_versioning" = xyes; then
12152           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12153             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12154             echo "local: *; };" >> $output_objdir/$libname.ver~
12155             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12156         fi
12157
12158         case $cc_basename in
12159         xlf* | bgf* | bgxlf* | mpixlf*)
12160           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12161           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12162           hardcode_libdir_flag_spec_GO=
12163           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12164           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12165           if test "x$supports_anon_versioning" = xyes; then
12166             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12167               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12168               echo "local: *; };" >> $output_objdir/$libname.ver~
12169               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12170           fi
12171           ;;
12172         esac
12173       else
12174         ld_shlibs_GO=no
12175       fi
12176       ;;
12177
12178     netbsd*)
12179       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12180         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12181         wlarc=
12182       else
12183         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12184         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12185       fi
12186       ;;
12187
12188     solaris*)
12189       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12190         ld_shlibs_GO=no
12191         cat <<_LT_EOF 1>&2
12192
12193 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12194 *** create shared libraries on Solaris systems.  Therefore, libtool
12195 *** is disabling shared libraries support.  We urge you to upgrade GNU
12196 *** binutils to release 2.9.1 or newer.  Another option is to modify
12197 *** your PATH or compiler configuration so that the native linker is
12198 *** used, and then restart.
12199
12200 _LT_EOF
12201       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12202         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12204       else
12205         ld_shlibs_GO=no
12206       fi
12207       ;;
12208
12209     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12210       case `$LD -v 2>&1` in
12211         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12212         ld_shlibs_GO=no
12213         cat <<_LT_EOF 1>&2
12214
12215 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12216 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12217 *** is disabling shared libraries support.  We urge you to upgrade GNU
12218 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12219 *** your PATH or compiler configuration so that the native linker is
12220 *** used, and then restart.
12221
12222 _LT_EOF
12223         ;;
12224         *)
12225           # For security reasons, it is highly recommended that you always
12226           # use absolute paths for naming shared libraries, and exclude the
12227           # DT_RUNPATH tag from executables and libraries.  But doing so
12228           # requires that you compile everything twice, which is a pain.
12229           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12230             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12231             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12232             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12233           else
12234             ld_shlibs_GO=no
12235           fi
12236         ;;
12237       esac
12238       ;;
12239
12240     sunos4*)
12241       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12242       wlarc=
12243       hardcode_direct_GO=yes
12244       hardcode_shlibpath_var_GO=no
12245       ;;
12246
12247     *)
12248       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12249         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12250         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12251       else
12252         ld_shlibs_GO=no
12253       fi
12254       ;;
12255     esac
12256
12257     if test "$ld_shlibs_GO" = no; then
12258       runpath_var=
12259       hardcode_libdir_flag_spec_GO=
12260       export_dynamic_flag_spec_GO=
12261       whole_archive_flag_spec_GO=
12262     fi
12263   else
12264     # PORTME fill in a description of your system's linker (not GNU ld)
12265     case $host_os in
12266     aix3*)
12267       allow_undefined_flag_GO=unsupported
12268       always_export_symbols_GO=yes
12269       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'
12270       # Note: this linker hardcodes the directories in LIBPATH if there
12271       # are no directories specified by -L.
12272       hardcode_minus_L_GO=yes
12273       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12274         # Neither direct hardcoding nor static linking is supported with a
12275         # broken collect2.
12276         hardcode_direct_GO=unsupported
12277       fi
12278       ;;
12279
12280     aix[4-9]*)
12281       if test "$host_cpu" = ia64; then
12282         # On IA64, the linker does run time linking by default, so we don't
12283         # have to do anything special.
12284         aix_use_runtimelinking=no
12285         exp_sym_flag='-Bexport'
12286         no_entry_flag=""
12287       else
12288         # If we're using GNU nm, then we don't want the "-C" option.
12289         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12290         # Also, AIX nm treats weak defined symbols like other global
12291         # defined symbols, whereas GNU nm marks them as "W".
12292         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12293           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'
12294         else
12295           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'
12296         fi
12297         aix_use_runtimelinking=no
12298
12299         # Test if we are trying to use run time linking or normal
12300         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12301         # need to do runtime linking.
12302         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12303           for ld_flag in $LDFLAGS; do
12304           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12305             aix_use_runtimelinking=yes
12306             break
12307           fi
12308           done
12309           ;;
12310         esac
12311
12312         exp_sym_flag='-bexport'
12313         no_entry_flag='-bnoentry'
12314       fi
12315
12316       # When large executables or shared objects are built, AIX ld can
12317       # have problems creating the table of contents.  If linking a library
12318       # or program results in "error TOC overflow" add -mminimal-toc to
12319       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12320       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12321
12322       archive_cmds_GO=''
12323       hardcode_direct_GO=yes
12324       hardcode_direct_absolute_GO=yes
12325       hardcode_libdir_separator_GO=':'
12326       link_all_deplibs_GO=yes
12327       file_list_spec_GO='${wl}-f,'
12328
12329       if test "$GCC" = yes; then
12330         case $host_os in aix4.[012]|aix4.[012].*)
12331         # We only want to do this on AIX 4.2 and lower, the check
12332         # below for broken collect2 doesn't work under 4.3+
12333           collect2name=`${CC} -print-prog-name=collect2`
12334           if test -f "$collect2name" &&
12335            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12336           then
12337           # We have reworked collect2
12338           :
12339           else
12340           # We have old collect2
12341           hardcode_direct_GO=unsupported
12342           # It fails to find uninstalled libraries when the uninstalled
12343           # path is not listed in the libpath.  Setting hardcode_minus_L
12344           # to unsupported forces relinking
12345           hardcode_minus_L_GO=yes
12346           hardcode_libdir_flag_spec_GO='-L$libdir'
12347           hardcode_libdir_separator_GO=
12348           fi
12349           ;;
12350         esac
12351         shared_flag='-shared'
12352         if test "$aix_use_runtimelinking" = yes; then
12353           shared_flag="$shared_flag "'${wl}-G'
12354         fi
12355       else
12356         # not using gcc
12357         if test "$host_cpu" = ia64; then
12358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12359         # chokes on -Wl,-G. The following line is correct:
12360           shared_flag='-G'
12361         else
12362           if test "$aix_use_runtimelinking" = yes; then
12363             shared_flag='${wl}-G'
12364           else
12365             shared_flag='${wl}-bM:SRE'
12366           fi
12367         fi
12368       fi
12369
12370       export_dynamic_flag_spec_GO='${wl}-bexpall'
12371       # It seems that -bexpall does not export symbols beginning with
12372       # underscore (_), so it is better to generate a list of symbols to export.
12373       always_export_symbols_GO=yes
12374       if test "$aix_use_runtimelinking" = yes; then
12375         # Warning - without using the other runtime loading flags (-brtl),
12376         # -berok will link without error, but may produce a broken library.
12377         allow_undefined_flag_GO='-berok'
12378         # Determine the default libpath from the value encoded in an
12379         # empty executable.
12380         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h.  */
12382
12383 int
12384 main ()
12385 {
12386
12387   ;
12388   return 0;
12389 }
12390 _ACEOF
12391 if ac_fn_c_try_link "$LINENO"; then :
12392
12393 lt_aix_libpath_sed='
12394     /Import File Strings/,/^$/ {
12395         /^0/ {
12396             s/^0  *\(.*\)$/\1/
12397             p
12398         }
12399     }'
12400 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12401 # Check for a 64-bit object if we didn't find anything.
12402 if test -z "$aix_libpath"; then
12403   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12404 fi
12405 fi
12406 rm -f core conftest.err conftest.$ac_objext \
12407     conftest$ac_exeext conftest.$ac_ext
12408 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12409
12410         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12411         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"
12412       else
12413         if test "$host_cpu" = ia64; then
12414           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12415           allow_undefined_flag_GO="-z nodefs"
12416           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"
12417         else
12418          # Determine the default libpath from the value encoded in an
12419          # empty executable.
12420          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12421 /* end confdefs.h.  */
12422
12423 int
12424 main ()
12425 {
12426
12427   ;
12428   return 0;
12429 }
12430 _ACEOF
12431 if ac_fn_c_try_link "$LINENO"; then :
12432
12433 lt_aix_libpath_sed='
12434     /Import File Strings/,/^$/ {
12435         /^0/ {
12436             s/^0  *\(.*\)$/\1/
12437             p
12438         }
12439     }'
12440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12441 # Check for a 64-bit object if we didn't find anything.
12442 if test -z "$aix_libpath"; then
12443   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12444 fi
12445 fi
12446 rm -f core conftest.err conftest.$ac_objext \
12447     conftest$ac_exeext conftest.$ac_ext
12448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12449
12450          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12451           # Warning - without using the other run time loading flags,
12452           # -berok will link without error, but may produce a broken library.
12453           no_undefined_flag_GO=' ${wl}-bernotok'
12454           allow_undefined_flag_GO=' ${wl}-berok'
12455           if test "$with_gnu_ld" = yes; then
12456             # We only use this code for GNU lds that support --whole-archive.
12457             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12458           else
12459             # Exported symbols can be pulled into shared objects from archives
12460             whole_archive_flag_spec_GO='$convenience'
12461           fi
12462           archive_cmds_need_lc_GO=yes
12463           # This is similar to how AIX traditionally builds its shared libraries.
12464           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'
12465         fi
12466       fi
12467       ;;
12468
12469     amigaos*)
12470       case $host_cpu in
12471       powerpc)
12472             # see comment about AmigaOS4 .so support
12473             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12474             archive_expsym_cmds_GO=''
12475         ;;
12476       m68k)
12477             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)'
12478             hardcode_libdir_flag_spec_GO='-L$libdir'
12479             hardcode_minus_L_GO=yes
12480         ;;
12481       esac
12482       ;;
12483
12484     bsdi[45]*)
12485       export_dynamic_flag_spec_GO=-rdynamic
12486       ;;
12487
12488     cygwin* | mingw* | pw32* | cegcc*)
12489       # When not using gcc, we currently assume that we are using
12490       # Microsoft Visual C++.
12491       # hardcode_libdir_flag_spec is actually meaningless, as there is
12492       # no search path for DLLs.
12493       hardcode_libdir_flag_spec_GO=' '
12494       allow_undefined_flag_GO=unsupported
12495       # Tell ltmain to make .lib files, not .a files.
12496       libext=lib
12497       # Tell ltmain to make .dll files, not .so files.
12498       shrext_cmds=".dll"
12499       # FIXME: Setting linknames here is a bad hack.
12500       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12501       # The linker will automatically build a .lib file if we build a DLL.
12502       old_archive_from_new_cmds_GO='true'
12503       # FIXME: Should let the user specify the lib program.
12504       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12505       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12506       enable_shared_with_static_runtimes_GO=yes
12507       ;;
12508
12509     darwin* | rhapsody*)
12510
12511
12512   archive_cmds_need_lc_GO=no
12513   hardcode_direct_GO=no
12514   hardcode_automatic_GO=yes
12515   hardcode_shlibpath_var_GO=unsupported
12516   if test "$lt_cv_ld_force_load" = "yes"; then
12517     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\"`'
12518   else
12519     whole_archive_flag_spec_GO=''
12520   fi
12521   link_all_deplibs_GO=yes
12522   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12523   case $cc_basename in
12524      ifort*) _lt_dar_can_shared=yes ;;
12525      *) _lt_dar_can_shared=$GCC ;;
12526   esac
12527   if test "$_lt_dar_can_shared" = "yes"; then
12528     output_verbose_link_cmd=func_echo_all
12529     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}"
12530     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12531     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}"
12532     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}"
12533
12534   else
12535   ld_shlibs_GO=no
12536   fi
12537
12538       ;;
12539
12540     dgux*)
12541       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12542       hardcode_libdir_flag_spec_GO='-L$libdir'
12543       hardcode_shlibpath_var_GO=no
12544       ;;
12545
12546     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12547     # support.  Future versions do this automatically, but an explicit c++rt0.o
12548     # does not break anything, and helps significantly (at the cost of a little
12549     # extra space).
12550     freebsd2.2*)
12551       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12552       hardcode_libdir_flag_spec_GO='-R$libdir'
12553       hardcode_direct_GO=yes
12554       hardcode_shlibpath_var_GO=no
12555       ;;
12556
12557     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12558     freebsd2*)
12559       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12560       hardcode_direct_GO=yes
12561       hardcode_minus_L_GO=yes
12562       hardcode_shlibpath_var_GO=no
12563       ;;
12564
12565     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12566     freebsd* | dragonfly*)
12567       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12568       hardcode_libdir_flag_spec_GO='-R$libdir'
12569       hardcode_direct_GO=yes
12570       hardcode_shlibpath_var_GO=no
12571       ;;
12572
12573     hpux9*)
12574       if test "$GCC" = yes; then
12575         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'
12576       else
12577         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'
12578       fi
12579       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12580       hardcode_libdir_separator_GO=:
12581       hardcode_direct_GO=yes
12582
12583       # hardcode_minus_L: Not really in the search PATH,
12584       # but as the default location of the library.
12585       hardcode_minus_L_GO=yes
12586       export_dynamic_flag_spec_GO='${wl}-E'
12587       ;;
12588
12589     hpux10*)
12590       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12591         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12592       else
12593         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12594       fi
12595       if test "$with_gnu_ld" = no; then
12596         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12597         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12598         hardcode_libdir_separator_GO=:
12599         hardcode_direct_GO=yes
12600         hardcode_direct_absolute_GO=yes
12601         export_dynamic_flag_spec_GO='${wl}-E'
12602         # hardcode_minus_L: Not really in the search PATH,
12603         # but as the default location of the library.
12604         hardcode_minus_L_GO=yes
12605       fi
12606       ;;
12607
12608     hpux11*)
12609       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12610         case $host_cpu in
12611         hppa*64*)
12612           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12613           ;;
12614         ia64*)
12615           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12616           ;;
12617         *)
12618           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12619           ;;
12620         esac
12621       else
12622         case $host_cpu in
12623         hppa*64*)
12624           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12625           ;;
12626         ia64*)
12627           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12628           ;;
12629         *)
12630         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12631           ;;
12632         esac
12633       fi
12634       if test "$with_gnu_ld" = no; then
12635         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12636         hardcode_libdir_separator_GO=:
12637
12638         case $host_cpu in
12639         hppa*64*|ia64*)
12640           hardcode_direct_GO=no
12641           hardcode_shlibpath_var_GO=no
12642           ;;
12643         *)
12644           hardcode_direct_GO=yes
12645           hardcode_direct_absolute_GO=yes
12646           export_dynamic_flag_spec_GO='${wl}-E'
12647
12648           # hardcode_minus_L: Not really in the search PATH,
12649           # but as the default location of the library.
12650           hardcode_minus_L_GO=yes
12651           ;;
12652         esac
12653       fi
12654       ;;
12655
12656     irix5* | irix6* | nonstopux*)
12657       if test "$GCC" = yes; then
12658         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'
12659         # Try to use the -exported_symbol ld option, if it does not
12660         # work, assume that -exports_file does not work either and
12661         # implicitly export all symbols.
12662         save_LDFLAGS="$LDFLAGS"
12663         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12664         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h.  */
12666 int foo(void) {}
12667 _ACEOF
12668 if ac_fn_c_try_link "$LINENO"; then :
12669   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'
12670
12671 fi
12672 rm -f core conftest.err conftest.$ac_objext \
12673     conftest$ac_exeext conftest.$ac_ext
12674         LDFLAGS="$save_LDFLAGS"
12675       else
12676         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'
12677         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'
12678       fi
12679       archive_cmds_need_lc_GO='no'
12680       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12681       hardcode_libdir_separator_GO=:
12682       inherit_rpath_GO=yes
12683       link_all_deplibs_GO=yes
12684       ;;
12685
12686     netbsd*)
12687       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12688         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12689       else
12690         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12691       fi
12692       hardcode_libdir_flag_spec_GO='-R$libdir'
12693       hardcode_direct_GO=yes
12694       hardcode_shlibpath_var_GO=no
12695       ;;
12696
12697     newsos6)
12698       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12699       hardcode_direct_GO=yes
12700       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12701       hardcode_libdir_separator_GO=:
12702       hardcode_shlibpath_var_GO=no
12703       ;;
12704
12705     *nto* | *qnx*)
12706       ;;
12707
12708     openbsd*)
12709       if test -f /usr/libexec/ld.so; then
12710         hardcode_direct_GO=yes
12711         hardcode_shlibpath_var_GO=no
12712         hardcode_direct_absolute_GO=yes
12713         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12714           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12715           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12716           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12717           export_dynamic_flag_spec_GO='${wl}-E'
12718         else
12719           case $host_os in
12720            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12721              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12722              hardcode_libdir_flag_spec_GO='-R$libdir'
12723              ;;
12724            *)
12725              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12726              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12727              ;;
12728           esac
12729         fi
12730       else
12731         ld_shlibs_GO=no
12732       fi
12733       ;;
12734
12735     os2*)
12736       hardcode_libdir_flag_spec_GO='-L$libdir'
12737       hardcode_minus_L_GO=yes
12738       allow_undefined_flag_GO=unsupported
12739       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'
12740       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12741       ;;
12742
12743     osf3*)
12744       if test "$GCC" = yes; then
12745         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12746         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'
12747       else
12748         allow_undefined_flag_GO=' -expect_unresolved \*'
12749         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'
12750       fi
12751       archive_cmds_need_lc_GO='no'
12752       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12753       hardcode_libdir_separator_GO=:
12754       ;;
12755
12756     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12757       if test "$GCC" = yes; then
12758         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12759         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'
12760         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12761       else
12762         allow_undefined_flag_GO=' -expect_unresolved \*'
12763         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'
12764         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~
12765         $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'
12766
12767         # Both c and cxx compiler support -rpath directly
12768         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12769       fi
12770       archive_cmds_need_lc_GO='no'
12771       hardcode_libdir_separator_GO=:
12772       ;;
12773
12774     solaris*)
12775       no_undefined_flag_GO=' -z defs'
12776       if test "$GCC" = yes; then
12777         wlarc='${wl}'
12778         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12779         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12780           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12781       else
12782         case `$CC -V 2>&1` in
12783         *"Compilers 5.0"*)
12784           wlarc=''
12785           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12786           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12787           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12788           ;;
12789         *)
12790           wlarc='${wl}'
12791           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12792           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12793           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12794           ;;
12795         esac
12796       fi
12797       hardcode_libdir_flag_spec_GO='-R$libdir'
12798       hardcode_shlibpath_var_GO=no
12799       case $host_os in
12800       solaris2.[0-5] | solaris2.[0-5].*) ;;
12801       *)
12802         # The compiler driver will combine and reorder linker options,
12803         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12804         # but is careful enough not to reorder.
12805         # Supported since Solaris 2.6 (maybe 2.5.1?)
12806         if test "$GCC" = yes; then
12807           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12808         else
12809           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12810         fi
12811         ;;
12812       esac
12813       link_all_deplibs_GO=yes
12814       ;;
12815
12816     sunos4*)
12817       if test "x$host_vendor" = xsequent; then
12818         # Use $CC to link under sequent, because it throws in some extra .o
12819         # files that make .init and .fini sections work.
12820         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12821       else
12822         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12823       fi
12824       hardcode_libdir_flag_spec_GO='-L$libdir'
12825       hardcode_direct_GO=yes
12826       hardcode_minus_L_GO=yes
12827       hardcode_shlibpath_var_GO=no
12828       ;;
12829
12830     sysv4)
12831       case $host_vendor in
12832         sni)
12833           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12834           hardcode_direct_GO=yes # is this really true???
12835         ;;
12836         siemens)
12837           ## LD is ld it makes a PLAMLIB
12838           ## CC just makes a GrossModule.
12839           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12840           reload_cmds_GO='$CC -r -o $output$reload_objs'
12841           hardcode_direct_GO=no
12842         ;;
12843         motorola)
12844           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12845           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12846         ;;
12847       esac
12848       runpath_var='LD_RUN_PATH'
12849       hardcode_shlibpath_var_GO=no
12850       ;;
12851
12852     sysv4.3*)
12853       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12854       hardcode_shlibpath_var_GO=no
12855       export_dynamic_flag_spec_GO='-Bexport'
12856       ;;
12857
12858     sysv4*MP*)
12859       if test -d /usr/nec; then
12860         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12861         hardcode_shlibpath_var_GO=no
12862         runpath_var=LD_RUN_PATH
12863         hardcode_runpath_var=yes
12864         ld_shlibs_GO=yes
12865       fi
12866       ;;
12867
12868     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12869       no_undefined_flag_GO='${wl}-z,text'
12870       archive_cmds_need_lc_GO=no
12871       hardcode_shlibpath_var_GO=no
12872       runpath_var='LD_RUN_PATH'
12873
12874       if test "$GCC" = yes; then
12875         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12876         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12877       else
12878         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12879         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12880       fi
12881       ;;
12882
12883     sysv5* | sco3.2v5* | sco5v6*)
12884       # Note: We can NOT use -z defs as we might desire, because we do not
12885       # link with -lc, and that would cause any symbols used from libc to
12886       # always be unresolved, which means just about no library would
12887       # ever link correctly.  If we're not using GNU ld we use -z text
12888       # though, which does catch some bad symbols but isn't as heavy-handed
12889       # as -z defs.
12890       no_undefined_flag_GO='${wl}-z,text'
12891       allow_undefined_flag_GO='${wl}-z,nodefs'
12892       archive_cmds_need_lc_GO=no
12893       hardcode_shlibpath_var_GO=no
12894       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12895       hardcode_libdir_separator_GO=':'
12896       link_all_deplibs_GO=yes
12897       export_dynamic_flag_spec_GO='${wl}-Bexport'
12898       runpath_var='LD_RUN_PATH'
12899
12900       if test "$GCC" = yes; then
12901         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12902         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12903       else
12904         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12905         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12906       fi
12907       ;;
12908
12909     uts4*)
12910       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12911       hardcode_libdir_flag_spec_GO='-L$libdir'
12912       hardcode_shlibpath_var_GO=no
12913       ;;
12914
12915     *)
12916       ld_shlibs_GO=no
12917       ;;
12918     esac
12919
12920     if test x$host_vendor = xsni; then
12921       case $host in
12922       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12923         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12924         ;;
12925       esac
12926     fi
12927   fi
12928
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12930 $as_echo "$ld_shlibs_GO" >&6; }
12931 test "$ld_shlibs_GO" = no && can_build_shared=no
12932
12933 with_gnu_ld_GO=$with_gnu_ld
12934
12935
12936
12937
12938
12939
12940 #
12941 # Do we need to explicitly link libc?
12942 #
12943 case "x$archive_cmds_need_lc_GO" in
12944 x|xyes)
12945   # Assume -lc should be added
12946   archive_cmds_need_lc_GO=yes
12947
12948   if test "$enable_shared" = yes && test "$GCC" = yes; then
12949     case $archive_cmds_GO in
12950     *'~'*)
12951       # FIXME: we may have to deal with multi-command sequences.
12952       ;;
12953     '$CC '*)
12954       # Test whether the compiler implicitly links with -lc since on some
12955       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12956       # to ld, don't add -lc before -lgcc.
12957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12958 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12959 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12960   $as_echo_n "(cached) " >&6
12961 else
12962   $RM conftest*
12963         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12964
12965         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12966   (eval $ac_compile) 2>&5
12967   ac_status=$?
12968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969   test $ac_status = 0; } 2>conftest.err; then
12970           soname=conftest
12971           lib=conftest
12972           libobjs=conftest.$ac_objext
12973           deplibs=
12974           wl=$lt_prog_compiler_wl_GO
12975           pic_flag=$lt_prog_compiler_pic_GO
12976           compiler_flags=-v
12977           linker_flags=-v
12978           verstring=
12979           output_objdir=.
12980           libname=conftest
12981           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12982           allow_undefined_flag_GO=
12983           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12984   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12985   ac_status=$?
12986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12987   test $ac_status = 0; }
12988           then
12989             lt_cv_archive_cmds_need_lc_GO=no
12990           else
12991             lt_cv_archive_cmds_need_lc_GO=yes
12992           fi
12993           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12994         else
12995           cat conftest.err 1>&5
12996         fi
12997         $RM conftest*
12998
12999 fi
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13001 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13002       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13003       ;;
13004     esac
13005   fi
13006   ;;
13007 esac
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13073 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13074 hardcode_action_GO=
13075 if test -n "$hardcode_libdir_flag_spec_GO" ||
13076    test -n "$runpath_var_GO" ||
13077    test "X$hardcode_automatic_GO" = "Xyes" ; then
13078
13079   # We can hardcode non-existent directories.
13080   if test "$hardcode_direct_GO" != no &&
13081      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13082      # have to relink, otherwise we might link with an installed library
13083      # when we should be linking with a yet-to-be-installed one
13084      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13085      test "$hardcode_minus_L_GO" != no; then
13086     # Linking always hardcodes the temporary library directory.
13087     hardcode_action_GO=relink
13088   else
13089     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13090     hardcode_action_GO=immediate
13091   fi
13092 else
13093   # We cannot hardcode anything, or else we can only hardcode existing
13094   # directories.
13095   hardcode_action_GO=unsupported
13096 fi
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13098 $as_echo "$hardcode_action_GO" >&6; }
13099
13100 if test "$hardcode_action_GO" = relink ||
13101    test "$inherit_rpath_GO" = yes; then
13102   # Fast installation is not supported
13103   enable_fast_install=no
13104 elif test "$shlibpath_overrides_runpath" = yes ||
13105      test "$enable_shared" = no; then
13106   # Fast installation is not necessary
13107   enable_fast_install=needless
13108 fi
13109
13110
13111
13112
13113
13114
13115
13116 fi
13117
13118 ac_ext=c
13119 ac_cpp='$CPP $CPPFLAGS'
13120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13123
13124
13125 GCC=$lt_save_GCC
13126 CC="$lt_save_CC"
13127
13128
13129
13130
13131         ac_config_commands="$ac_config_commands libtool"
13132
13133
13134
13135
13136 # Only expand once:
13137
13138
13139
13140
13141
13142 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13143
13144
13145 WERROR="-Werror"
13146
13147
13148 glibgo_toolexecdir=no
13149 glibgo_toolexeclibdir=no
13150 glibgo_prefixdir=$prefix
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13153 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13154 # Check whether --enable-version-specific-runtime-libs was given.
13155 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13156   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13157     yes) version_specific_libs=yes ;;
13158     no)  version_specific_libs=no ;;
13159     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13160    esac
13161 else
13162   version_specific_libs=no
13163 fi
13164
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13166 $as_echo "$version_specific_libs" >&6; }
13167
13168 # Version-specific runtime libs processing.
13169 if test $version_specific_libs = yes; then
13170   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13171   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13172 fi
13173
13174 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13175 # Install a library built with a cross compiler in tooldir, not libdir.
13176 if test x"$glibgo_toolexecdir" = x"no"; then
13177   if test -n "$with_cross_host" &&
13178      test x"$with_cross_host" != x"no"; then
13179     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13180     glibgo_toolexeclibdir='${toolexecdir}/lib'
13181   else
13182     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13183     glibgo_toolexeclibdir='${libdir}'
13184   fi
13185   multi_os_directory=`$CC -print-multi-os-directory`
13186   case $multi_os_directory in
13187     .) ;; # Avoid trailing /.
13188     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13189   esac
13190 fi
13191
13192
13193
13194
13195
13196 # See if the user wants to configure without libffi.  Some
13197 # architectures don't support it.  FIXME: We should set a default
13198 # based on the host.
13199
13200 # Check whether --with-libffi was given.
13201 if test "${with_libffi+set}" = set; then :
13202   withval=$with_libffi; :
13203 else
13204   with_libffi=${with_libffi_default-yes}
13205 fi
13206
13207
13208 LIBFFI=
13209 LIBFFIINCS=
13210 if test "$with_libffi" != no; then
13211
13212 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13213
13214    LIBFFI=../libffi/libffi_convenience.la
13215    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13216 fi
13217
13218
13219
13220 is_darwin=no
13221 is_freebsd=no
13222 is_irix=no
13223 is_linux=no
13224 is_rtems=no
13225 is_solaris=no
13226 GOOS=unknown
13227 case ${host} in
13228   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13229   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13230   *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13231   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13232   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13233   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13234 esac
13235  if test $is_darwin = yes; then
13236   LIBGO_IS_DARWIN_TRUE=
13237   LIBGO_IS_DARWIN_FALSE='#'
13238 else
13239   LIBGO_IS_DARWIN_TRUE='#'
13240   LIBGO_IS_DARWIN_FALSE=
13241 fi
13242
13243  if test $is_freebsd = yes; then
13244   LIBGO_IS_FREEBSD_TRUE=
13245   LIBGO_IS_FREEBSD_FALSE='#'
13246 else
13247   LIBGO_IS_FREEBSD_TRUE='#'
13248   LIBGO_IS_FREEBSD_FALSE=
13249 fi
13250
13251  if test $is_irix = yes; then
13252   LIBGO_IS_IRIX_TRUE=
13253   LIBGO_IS_IRIX_FALSE='#'
13254 else
13255   LIBGO_IS_IRIX_TRUE='#'
13256   LIBGO_IS_IRIX_FALSE=
13257 fi
13258
13259  if test $is_linux = yes; then
13260   LIBGO_IS_LINUX_TRUE=
13261   LIBGO_IS_LINUX_FALSE='#'
13262 else
13263   LIBGO_IS_LINUX_TRUE='#'
13264   LIBGO_IS_LINUX_FALSE=
13265 fi
13266
13267  if test $is_rtems = yes; then
13268   LIBGO_IS_RTEMS_TRUE=
13269   LIBGO_IS_RTEMS_FALSE='#'
13270 else
13271   LIBGO_IS_RTEMS_TRUE='#'
13272   LIBGO_IS_RTEMS_FALSE=
13273 fi
13274
13275  if test $is_solaris = yes; then
13276   LIBGO_IS_SOLARIS_TRUE=
13277   LIBGO_IS_SOLARIS_FALSE='#'
13278 else
13279   LIBGO_IS_SOLARIS_TRUE='#'
13280   LIBGO_IS_SOLARIS_FALSE=
13281 fi
13282
13283
13284
13285 is_386=no
13286 is_arm=no
13287 is_m68k=no
13288 is_mips=no
13289 is_mips64=no
13290 is_ppc=no
13291 is_ppc64=no
13292 is_sparc=no
13293 is_sparc64=no
13294 is_x86_64=no
13295 GOARCH=unknown
13296 case ${host} in
13297   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13298     is_arm=yes
13299     GOARCH=arm
13300     ;;
13301   i[34567]86-*-* | x86_64-*-*)
13302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13303 /* end confdefs.h.  */
13304
13305 #ifdef __x86_64__
13306 #error 64-bit
13307 #endif
13308 _ACEOF
13309 if ac_fn_c_try_compile "$LINENO"; then :
13310   is_386=yes
13311 else
13312   is_x86_64=yes
13313 fi
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13315     if test "$is_386" = "yes"; then
13316       GOARCH=386
13317     else
13318       GOARCH=amd64
13319     fi
13320     ;;
13321   m68k*-*-*)
13322     is_m68k=yes
13323     GOARCH=m68k
13324     ;;
13325   mips*-*-*)
13326     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h.  */
13328
13329 #ifdef __mips64
13330 #error 64-bit
13331 #endif
13332 _ACEOF
13333 if ac_fn_c_try_compile "$LINENO"; then :
13334   is_mips=yes
13335 else
13336   is_mips64=yes
13337 fi
13338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13339     if test "$is_mips" = "yes"; then
13340       GOARCH=mips
13341     else
13342       GOARCH=mips64
13343     fi
13344     ;;
13345   rs6000*-*-* | powerpc*-*-*)
13346     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h.  */
13348
13349 #ifdef _ARCH_PPC64
13350 #error 64-bit
13351 #endif
13352 _ACEOF
13353 if ac_fn_c_try_compile "$LINENO"; then :
13354   is_ppc=yes
13355 else
13356   is_ppc64=yes
13357 fi
13358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13359     if test "$is_ppc" = "yes"; then
13360       GOARCH=ppc
13361     else
13362       GOARCH=ppc64
13363     fi
13364     ;;
13365   sparc*-*-*)
13366     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13367 /* end confdefs.h.  */
13368
13369 #if defined(__sparcv9) || defined(__arch64__)
13370 #error 64-bit
13371 #endif
13372 _ACEOF
13373 if ac_fn_c_try_compile "$LINENO"; then :
13374   is_sparc=yes
13375 else
13376   is_sparc64=yes
13377 fi
13378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13379     if test "$is_sparc" = "yes"; then
13380       GOARCH=sparc
13381     else
13382       GOARCH=sparc64
13383     fi
13384     ;;
13385 esac
13386  if test $is_386 = yes; then
13387   LIBGO_IS_386_TRUE=
13388   LIBGO_IS_386_FALSE='#'
13389 else
13390   LIBGO_IS_386_TRUE='#'
13391   LIBGO_IS_386_FALSE=
13392 fi
13393
13394  if test $is_arm = yes; then
13395   LIBGO_IS_ARM_TRUE=
13396   LIBGO_IS_ARM_FALSE='#'
13397 else
13398   LIBGO_IS_ARM_TRUE='#'
13399   LIBGO_IS_ARM_FALSE=
13400 fi
13401
13402  if test $is_m68k = yes; then
13403   LIBGO_IS_M68K_TRUE=
13404   LIBGO_IS_M68K_FALSE='#'
13405 else
13406   LIBGO_IS_M68K_TRUE='#'
13407   LIBGO_IS_M68K_FALSE=
13408 fi
13409
13410  if test $is_mips = yes; then
13411   LIBGO_IS_MIPS_TRUE=
13412   LIBGO_IS_MIPS_FALSE='#'
13413 else
13414   LIBGO_IS_MIPS_TRUE='#'
13415   LIBGO_IS_MIPS_FALSE=
13416 fi
13417
13418  if test $is_mips64 = yes; then
13419   LIBGO_IS_MIPS64_TRUE=
13420   LIBGO_IS_MIPS64_FALSE='#'
13421 else
13422   LIBGO_IS_MIPS64_TRUE='#'
13423   LIBGO_IS_MIPS64_FALSE=
13424 fi
13425
13426  if test $is_ppc = yes; then
13427   LIBGO_IS_PPC_TRUE=
13428   LIBGO_IS_PPC_FALSE='#'
13429 else
13430   LIBGO_IS_PPC_TRUE='#'
13431   LIBGO_IS_PPC_FALSE=
13432 fi
13433
13434  if test $is_ppc64 = yes; then
13435   LIBGO_IS_PPC64_TRUE=
13436   LIBGO_IS_PPC64_FALSE='#'
13437 else
13438   LIBGO_IS_PPC64_TRUE='#'
13439   LIBGO_IS_PPC64_FALSE=
13440 fi
13441
13442  if test $is_sparc = yes; then
13443   LIBGO_IS_SPARC_TRUE=
13444   LIBGO_IS_SPARC_FALSE='#'
13445 else
13446   LIBGO_IS_SPARC_TRUE='#'
13447   LIBGO_IS_SPARC_FALSE=
13448 fi
13449
13450  if test $is_sparc64 = yes; then
13451   LIBGO_IS_SPARC64_TRUE=
13452   LIBGO_IS_SPARC64_FALSE='#'
13453 else
13454   LIBGO_IS_SPARC64_TRUE='#'
13455   LIBGO_IS_SPARC64_FALSE=
13456 fi
13457
13458  if test $is_x86_64 = yes; then
13459   LIBGO_IS_X86_64_TRUE=
13460   LIBGO_IS_X86_64_FALSE='#'
13461 else
13462   LIBGO_IS_X86_64_TRUE='#'
13463   LIBGO_IS_X86_64_FALSE=
13464 fi
13465
13466
13467
13468 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13469 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13470   GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13471 fi
13472
13473
13474 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13475 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13476   GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13477 fi
13478
13479
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13481 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13482 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13483   $as_echo_n "(cached) " >&6
13484 else
13485   CFLAGS_hold=$CFLAGS
13486 CFLAGS="$CFLAGS -fsplit-stack"
13487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13488 /* end confdefs.h.  */
13489 int i;
13490 _ACEOF
13491 if ac_fn_c_try_compile "$LINENO"; then :
13492   libgo_cv_c_split_stack_supported=yes
13493 else
13494   libgo_cv_c_split_stack_supported=no
13495 fi
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 CFLAGS=$CFLAGS_hold
13498 fi
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13500 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13501 if test "$libgo_cv_c_split_stack_supported" = yes; then
13502   SPLIT_STACK=-fsplit-stack
13503
13504 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13505
13506 else
13507   SPLIT_STACK=
13508 fi
13509
13510  if test "$libgo_cv_c_split_stack_supported" = yes; then
13511   USING_SPLIT_STACK_TRUE=
13512   USING_SPLIT_STACK_FALSE='#'
13513 else
13514   USING_SPLIT_STACK_TRUE='#'
13515   USING_SPLIT_STACK_FALSE=
13516 fi
13517
13518
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13520 $as_echo_n "checking whether linker supports split stack... " >&6; }
13521 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13522   $as_echo_n "(cached) " >&6
13523 else
13524   libgo_cv_c_linker_supports_split_stack=no
13525 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13526   libgo_cv_c_linker_supports_split_stack=yes
13527 fi
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13530 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13531 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13532
13533 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13534
13535 fi
13536
13537 MATH_LIBS=
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13539 $as_echo_n "checking for sqrt in -lm... " >&6; }
13540 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13541   $as_echo_n "(cached) " >&6
13542 else
13543   ac_check_lib_save_LIBS=$LIBS
13544 LIBS="-lm  $LIBS"
13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13546 /* end confdefs.h.  */
13547
13548 /* Override any GCC internal prototype to avoid an error.
13549    Use char because int might match the return type of a GCC
13550    builtin and then its argument prototype would still apply.  */
13551 #ifdef __cplusplus
13552 extern "C"
13553 #endif
13554 char sqrt ();
13555 int
13556 main ()
13557 {
13558 return sqrt ();
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 if ac_fn_c_try_link "$LINENO"; then :
13564   ac_cv_lib_m_sqrt=yes
13565 else
13566   ac_cv_lib_m_sqrt=no
13567 fi
13568 rm -f core conftest.err conftest.$ac_objext \
13569     conftest$ac_exeext conftest.$ac_ext
13570 LIBS=$ac_check_lib_save_LIBS
13571 fi
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13573 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13574 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13575   MATH_LIBS=-lm
13576 fi
13577
13578
13579
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13581 $as_echo_n "checking for socket libraries... " >&6; }
13582 if test "${libgo_cv_lib_sockets+set}" = set; then :
13583   $as_echo_n "(cached) " >&6
13584 else
13585   libgo_cv_lib_sockets=
13586    libgo_check_both=no
13587    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13588 if test "x$ac_cv_func_connect" = x""yes; then :
13589   libgo_check_socket=no
13590 else
13591   libgo_check_socket=yes
13592 fi
13593
13594    if test "$libgo_check_socket" = "yes"; then
13595      unset ac_cv_func_connect
13596      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13597 $as_echo_n "checking for main in -lsocket... " >&6; }
13598 if test "${ac_cv_lib_socket_main+set}" = set; then :
13599   $as_echo_n "(cached) " >&6
13600 else
13601   ac_check_lib_save_LIBS=$LIBS
13602 LIBS="-lsocket  $LIBS"
13603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13604 /* end confdefs.h.  */
13605
13606
13607 int
13608 main ()
13609 {
13610 return main ();
13611   ;
13612   return 0;
13613 }
13614 _ACEOF
13615 if ac_fn_c_try_link "$LINENO"; then :
13616   ac_cv_lib_socket_main=yes
13617 else
13618   ac_cv_lib_socket_main=no
13619 fi
13620 rm -f core conftest.err conftest.$ac_objext \
13621     conftest$ac_exeext conftest.$ac_ext
13622 LIBS=$ac_check_lib_save_LIBS
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13625 $as_echo "$ac_cv_lib_socket_main" >&6; }
13626 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13627   libgo_cv_lib_sockets="-lsocket"
13628 else
13629   libgo_check_both=yes
13630 fi
13631
13632    fi
13633    if test "$libgo_check_both" = "yes"; then
13634      libgo_old_libs=$LIBS
13635      LIBS="$LIBS -lsocket -lnsl"
13636      unset ac_cv_func_accept
13637      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13638 if test "x$ac_cv_func_accept" = x""yes; then :
13639   libgo_check_nsl=no
13640                     libgo_cv_lib_sockets="-lsocket -lnsl"
13641 fi
13642
13643      unset ac_cv_func_accept
13644      LIBS=$libgo_old_libs
13645    fi
13646    unset ac_cv_func_gethostbyname
13647    libgo_old_libs="$LIBS"
13648    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13649 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13650
13651 else
13652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13653 $as_echo_n "checking for main in -lnsl... " >&6; }
13654 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13655   $as_echo_n "(cached) " >&6
13656 else
13657   ac_check_lib_save_LIBS=$LIBS
13658 LIBS="-lnsl  $LIBS"
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h.  */
13661
13662
13663 int
13664 main ()
13665 {
13666 return main ();
13667   ;
13668   return 0;
13669 }
13670 _ACEOF
13671 if ac_fn_c_try_link "$LINENO"; then :
13672   ac_cv_lib_nsl_main=yes
13673 else
13674   ac_cv_lib_nsl_main=no
13675 fi
13676 rm -f core conftest.err conftest.$ac_objext \
13677     conftest$ac_exeext conftest.$ac_ext
13678 LIBS=$ac_check_lib_save_LIBS
13679 fi
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13681 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13682 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13683   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13684 fi
13685
13686 fi
13687
13688    unset ac_cv_func_gethostbyname
13689    LIBS=$libgo_old_libs
13690
13691 fi
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13693 $as_echo "$libgo_cv_lib_sockets" >&6; }
13694 NET_LIBS="$libgo_cv_lib_sockets"
13695
13696
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13698 $as_echo_n "checking whether -pthread is supported... " >&6; }
13699 if test "${libgo_cv_lib_pthread+set}" = set; then :
13700   $as_echo_n "(cached) " >&6
13701 else
13702   CFLAGS_hold=$CFLAGS
13703 CFLAGS="$CFLAGS -pthread"
13704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13705 /* end confdefs.h.  */
13706 int i;
13707 _ACEOF
13708 if ac_fn_c_try_compile "$LINENO"; then :
13709   libgo_cv_lib_pthread=yes
13710 else
13711   libgo_cv_lib_pthread=no
13712 fi
13713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13714 CFLAGS=$CFLAGS_hold
13715 fi
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13717 $as_echo "$libgo_cv_lib_pthread" >&6; }
13718 PTHREAD_CFLAGS=
13719 if test "$libgo_cv_lib_pthread" = yes; then
13720   PTHREAD_CFLAGS=-pthread
13721 fi
13722
13723
13724 PTHREAD_LIBS=
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13726 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13727 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13728   $as_echo_n "(cached) " >&6
13729 else
13730   ac_check_lib_save_LIBS=$LIBS
13731 LIBS="-lpthread  $LIBS"
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h.  */
13734
13735 /* Override any GCC internal prototype to avoid an error.
13736    Use char because int might match the return type of a GCC
13737    builtin and then its argument prototype would still apply.  */
13738 #ifdef __cplusplus
13739 extern "C"
13740 #endif
13741 char pthread_create ();
13742 int
13743 main ()
13744 {
13745 return pthread_create ();
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_link "$LINENO"; then :
13751   ac_cv_lib_pthread_pthread_create=yes
13752 else
13753   ac_cv_lib_pthread_pthread_create=no
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext \
13756     conftest$ac_exeext conftest.$ac_ext
13757 LIBS=$ac_check_lib_save_LIBS
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13760 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13761 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13762   PTHREAD_LIBS=-lpthread
13763 fi
13764
13765
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13768 $as_echo_n "checking for library containing sched_yield... " >&6; }
13769 if test "${ac_cv_search_sched_yield+set}" = set; then :
13770   $as_echo_n "(cached) " >&6
13771 else
13772   ac_func_search_save_LIBS=$LIBS
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h.  */
13775
13776 /* Override any GCC internal prototype to avoid an error.
13777    Use char because int might match the return type of a GCC
13778    builtin and then its argument prototype would still apply.  */
13779 #ifdef __cplusplus
13780 extern "C"
13781 #endif
13782 char sched_yield ();
13783 int
13784 main ()
13785 {
13786 return sched_yield ();
13787   ;
13788   return 0;
13789 }
13790 _ACEOF
13791 for ac_lib in '' rt; do
13792   if test -z "$ac_lib"; then
13793     ac_res="none required"
13794   else
13795     ac_res=-l$ac_lib
13796     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13797   fi
13798   if ac_fn_c_try_link "$LINENO"; then :
13799   ac_cv_search_sched_yield=$ac_res
13800 fi
13801 rm -f core conftest.err conftest.$ac_objext \
13802     conftest$ac_exeext
13803   if test "${ac_cv_search_sched_yield+set}" = set; then :
13804   break
13805 fi
13806 done
13807 if test "${ac_cv_search_sched_yield+set}" = set; then :
13808
13809 else
13810   ac_cv_search_sched_yield=no
13811 fi
13812 rm conftest.$ac_ext
13813 LIBS=$ac_func_search_save_LIBS
13814 fi
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13816 $as_echo "$ac_cv_search_sched_yield" >&6; }
13817 ac_res=$ac_cv_search_sched_yield
13818 if test "$ac_res" != no; then :
13819   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13820
13821 fi
13822
13823
13824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13825 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13826 if test "${ac_cv_c_bigendian+set}" = set; then :
13827   $as_echo_n "(cached) " >&6
13828 else
13829   ac_cv_c_bigendian=unknown
13830     # See if we're dealing with a universal compiler.
13831     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13832 /* end confdefs.h.  */
13833 #ifndef __APPLE_CC__
13834                not a universal capable compiler
13835              #endif
13836              typedef int dummy;
13837
13838 _ACEOF
13839 if ac_fn_c_try_compile "$LINENO"; then :
13840
13841         # Check for potential -arch flags.  It is not universal unless
13842         # there are at least two -arch flags with different values.
13843         ac_arch=
13844         ac_prev=
13845         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13846          if test -n "$ac_prev"; then
13847            case $ac_word in
13848              i?86 | x86_64 | ppc | ppc64)
13849                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13850                  ac_arch=$ac_word
13851                else
13852                  ac_cv_c_bigendian=universal
13853                  break
13854                fi
13855                ;;
13856            esac
13857            ac_prev=
13858          elif test "x$ac_word" = "x-arch"; then
13859            ac_prev=arch
13860          fi
13861        done
13862 fi
13863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864     if test $ac_cv_c_bigendian = unknown; then
13865       # See if sys/param.h defines the BYTE_ORDER macro.
13866       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h.  */
13868 #include <sys/types.h>
13869              #include <sys/param.h>
13870
13871 int
13872 main ()
13873 {
13874 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13875                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13876                      && LITTLE_ENDIAN)
13877               bogus endian macros
13878              #endif
13879
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 if ac_fn_c_try_compile "$LINENO"; then :
13885   # It does; now see whether it defined to BIG_ENDIAN or not.
13886          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h.  */
13888 #include <sys/types.h>
13889                 #include <sys/param.h>
13890
13891 int
13892 main ()
13893 {
13894 #if BYTE_ORDER != BIG_ENDIAN
13895                  not big endian
13896                 #endif
13897
13898   ;
13899   return 0;
13900 }
13901 _ACEOF
13902 if ac_fn_c_try_compile "$LINENO"; then :
13903   ac_cv_c_bigendian=yes
13904 else
13905   ac_cv_c_bigendian=no
13906 fi
13907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13908 fi
13909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13910     fi
13911     if test $ac_cv_c_bigendian = unknown; then
13912       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13913       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13914 /* end confdefs.h.  */
13915 #include <limits.h>
13916
13917 int
13918 main ()
13919 {
13920 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13921               bogus endian macros
13922              #endif
13923
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 if ac_fn_c_try_compile "$LINENO"; then :
13929   # It does; now see whether it defined to _BIG_ENDIAN or not.
13930          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h.  */
13932 #include <limits.h>
13933
13934 int
13935 main ()
13936 {
13937 #ifndef _BIG_ENDIAN
13938                  not big endian
13939                 #endif
13940
13941   ;
13942   return 0;
13943 }
13944 _ACEOF
13945 if ac_fn_c_try_compile "$LINENO"; then :
13946   ac_cv_c_bigendian=yes
13947 else
13948   ac_cv_c_bigendian=no
13949 fi
13950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13951 fi
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953     fi
13954     if test $ac_cv_c_bigendian = unknown; then
13955       # Compile a test program.
13956       if test "$cross_compiling" = yes; then :
13957   # Try to guess by grepping values from an object file.
13958          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h.  */
13960 short int ascii_mm[] =
13961                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13962                 short int ascii_ii[] =
13963                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13964                 int use_ascii (int i) {
13965                   return ascii_mm[i] + ascii_ii[i];
13966                 }
13967                 short int ebcdic_ii[] =
13968                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13969                 short int ebcdic_mm[] =
13970                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13971                 int use_ebcdic (int i) {
13972                   return ebcdic_mm[i] + ebcdic_ii[i];
13973                 }
13974                 extern int foo;
13975
13976 int
13977 main ()
13978 {
13979 return use_ascii (foo) == use_ebcdic (foo);
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 if ac_fn_c_try_compile "$LINENO"; then :
13985   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13986               ac_cv_c_bigendian=yes
13987             fi
13988             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13989               if test "$ac_cv_c_bigendian" = unknown; then
13990                 ac_cv_c_bigendian=no
13991               else
13992                 # finding both strings is unlikely to happen, but who knows?
13993                 ac_cv_c_bigendian=unknown
13994               fi
13995             fi
13996 fi
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 else
13999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h.  */
14001 $ac_includes_default
14002 int
14003 main ()
14004 {
14005
14006              /* Are we little or big endian?  From Harbison&Steele.  */
14007              union
14008              {
14009                long int l;
14010                char c[sizeof (long int)];
14011              } u;
14012              u.l = 1;
14013              return u.c[sizeof (long int) - 1] == 1;
14014
14015   ;
14016   return 0;
14017 }
14018 _ACEOF
14019 if ac_fn_c_try_run "$LINENO"; then :
14020   ac_cv_c_bigendian=no
14021 else
14022   ac_cv_c_bigendian=yes
14023 fi
14024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14025   conftest.$ac_objext conftest.beam conftest.$ac_ext
14026 fi
14027
14028     fi
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14031 $as_echo "$ac_cv_c_bigendian" >&6; }
14032  case $ac_cv_c_bigendian in #(
14033    yes)
14034      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14035 ;; #(
14036    no)
14037       ;; #(
14038    universal)
14039
14040 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14041
14042      ;; #(
14043    *)
14044      as_fn_error "unknown endianness
14045  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14046  esac
14047
14048
14049
14050
14051 # Check whether --with-system-libunwind was given.
14052 if test "${with_system_libunwind+set}" = set; then :
14053   withval=$with_system_libunwind;
14054 fi
14055
14056   # If system-libunwind was not specifically set, pick a default setting.
14057   if test x$with_system_libunwind = x; then
14058     case ${target} in
14059       ia64-*-hpux*) with_system_libunwind=yes ;;
14060       *) with_system_libunwind=no ;;
14061     esac
14062   fi
14063   # Based on system-libunwind and target, do we have ipinfo?
14064   if  test x$with_system_libunwind = xyes; then
14065     case ${target} in
14066       ia64-*-*) have_unwind_getipinfo=no ;;
14067       *) have_unwind_getipinfo=yes ;;
14068     esac
14069   else
14070     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14071
14072     case ${target} in
14073       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14074       *) have_unwind_getipinfo=yes ;;
14075     esac
14076
14077   fi
14078
14079   if test x$have_unwind_getipinfo = xyes; then
14080
14081 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14082
14083   fi
14084
14085
14086 # Check whether --enable-sjlj-exceptions was given.
14087 if test "${enable_sjlj_exceptions+set}" = set; then :
14088   enableval=$enable_sjlj_exceptions; case "$enableval" in
14089    yes|no|auto) ;;
14090    *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14091    esac
14092 else
14093   enable_sjlj_exceptions=auto
14094 fi
14095
14096
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14098 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14099 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14100   $as_echo_n "(cached) " >&6
14101 else
14102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h.  */
14104
14105 void bar ();
14106 void clean (int *);
14107 void foo ()
14108 {
14109   int i __attribute__ ((cleanup (clean)));
14110   bar();
14111 }
14112
14113 _ACEOF
14114 CFLAGS_hold=$CFLAGS
14115 CFLAGS="--save-temps -fexceptions"
14116 libgo_cv_lib_sjlj_exceptions=unknown
14117 if ac_fn_c_try_compile; then :
14118   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14119     libgo_cv_lib_sjlj_exceptions=yes
14120   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14121     libgo_cv_lib_sjlj_exceptions=no
14122   fi
14123 fi
14124 CFLAGS=$CFLAGS_hold
14125 rm -f conftest*
14126
14127 fi
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14129 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14130
14131 if test "$enable_sjlj_exceptions" = "auto"; then
14132   enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14133 fi
14134
14135 case $enable_sjlj_exceptions in
14136 yes)
14137
14138 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14139
14140   ;;
14141 no)
14142   ;;
14143 *)
14144   as_fn_error "unable to detect exception model" "$LINENO" 5
14145   ;;
14146 esac
14147
14148 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h
14149 do :
14150   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14152 eval as_val=\$$as_ac_Header
14153    if test "x$as_val" = x""yes; then :
14154   cat >>confdefs.h <<_ACEOF
14155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14156 _ACEOF
14157
14158 fi
14159
14160 done
14161
14162  if test "$ac_cv_header_sys_mman_h" = yes; then
14163   HAVE_SYS_MMAN_H_TRUE=
14164   HAVE_SYS_MMAN_H_FALSE='#'
14165 else
14166   HAVE_SYS_MMAN_H_TRUE='#'
14167   HAVE_SYS_MMAN_H_FALSE=
14168 fi
14169
14170
14171 for ac_func in srandom random strerror_r strsignal wait4
14172 do :
14173   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14174 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14175 eval as_val=\$$as_ac_var
14176    if test "x$as_val" = x""yes; then :
14177   cat >>confdefs.h <<_ACEOF
14178 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14179 _ACEOF
14180
14181 fi
14182 done
14183
14184  if test "$ac_cv_func_strerror_r" = yes; then
14185   HAVE_STRERROR_R_TRUE=
14186   HAVE_STRERROR_R_FALSE='#'
14187 else
14188   HAVE_STRERROR_R_TRUE='#'
14189   HAVE_STRERROR_R_FALSE=
14190 fi
14191
14192  if test "$ac_cv_func_wait4" = yes; then
14193   HAVE_WAIT4_TRUE=
14194   HAVE_WAIT4_FALSE='#'
14195 else
14196   HAVE_WAIT4_TRUE='#'
14197   HAVE_WAIT4_FALSE=
14198 fi
14199
14200
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14202 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14203 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14204   $as_echo_n "(cached) " >&6
14205 else
14206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14207 /* end confdefs.h.  */
14208
14209 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14210 uint32 i;
14211 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14212
14213 _ACEOF
14214 if ac_fn_c_try_link "$LINENO"; then :
14215   libgo_cv_func___sync_bool_compare_and_swap_4=yes
14216 else
14217   libgo_cv_func___sync_bool_compare_and_swap_4=no
14218 fi
14219 rm -f core conftest.err conftest.$ac_objext \
14220     conftest$ac_exeext conftest.$ac_ext
14221 fi
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14223 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14224 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14225
14226 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14227
14228 fi
14229
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14231 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14232 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14233   $as_echo_n "(cached) " >&6
14234 else
14235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14236 /* end confdefs.h.  */
14237
14238 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14239 uint32 i;
14240 int main() { return __sync_fetch_and_add (&i, 1); }
14241
14242 _ACEOF
14243 if ac_fn_c_try_link "$LINENO"; then :
14244   libgo_cv_func___sync_fetch_and_add_4=yes
14245 else
14246   libgo_cv_func___sync_fetch_and_add_4=no
14247 fi
14248 rm -f core conftest.err conftest.$ac_objext \
14249     conftest$ac_exeext conftest.$ac_ext
14250 fi
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14252 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14253 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14254
14255 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14256
14257 fi
14258
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14260 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14261 if test "${libgo_cv_c_stringops+set}" = set; then :
14262   $as_echo_n "(cached) " >&6
14263 else
14264   CFLAGS_hold=$CFLAGS
14265 CFLAGS="$CFLAGS -minline-all-stringops"
14266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14267 /* end confdefs.h.  */
14268 int i;
14269 _ACEOF
14270 if ac_fn_c_try_compile "$LINENO"; then :
14271   libgo_cv_c_stringops=yes
14272 else
14273   libgo_cv_c_stringops=no
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276 CFLAGS=$CFLAGS_hold
14277 fi
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14279 $as_echo "$libgo_cv_c_stringops" >&6; }
14280 STRINGOPS_FLAG=
14281 if test "$libgo_cv_c_stringops" = yes; then
14282   STRINGOPS_FLAG=-minline-all-stringops
14283 fi
14284
14285
14286 CFLAGS_hold=$CFLAGS
14287 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14288 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14289 if test "x$ac_cv_type_off64_t" = x""yes; then :
14290
14291 cat >>confdefs.h <<_ACEOF
14292 #define HAVE_OFF64_T 1
14293 _ACEOF
14294
14295
14296 fi
14297
14298 CFLAGS=$CFLAGS_hold
14299
14300 cat >confcache <<\_ACEOF
14301 # This file is a shell script that caches the results of configure
14302 # tests run on this system so they can be shared between configure
14303 # scripts and configure runs, see configure's option --config-cache.
14304 # It is not useful on other systems.  If it contains results you don't
14305 # want to keep, you may remove or edit it.
14306 #
14307 # config.status only pays attention to the cache file if you give it
14308 # the --recheck option to rerun configure.
14309 #
14310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14312 # following values.
14313
14314 _ACEOF
14315
14316 # The following way of writing the cache mishandles newlines in values,
14317 # but we know of no workaround that is simple, portable, and efficient.
14318 # So, we kill variables containing newlines.
14319 # Ultrix sh set writes to stderr and can't be redirected directly,
14320 # and sets the high bit in the cache file unless we assign to the vars.
14321 (
14322   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14323     eval ac_val=\$$ac_var
14324     case $ac_val in #(
14325     *${as_nl}*)
14326       case $ac_var in #(
14327       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14329       esac
14330       case $ac_var in #(
14331       _ | IFS | as_nl) ;; #(
14332       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14333       *) { eval $ac_var=; unset $ac_var;} ;;
14334       esac ;;
14335     esac
14336   done
14337
14338   (set) 2>&1 |
14339     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14340     *${as_nl}ac_space=\ *)
14341       # `set' does not quote correctly, so add quotes: double-quote
14342       # substitution turns \\\\ into \\, and sed turns \\ into \.
14343       sed -n \
14344         "s/'/'\\\\''/g;
14345           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14346       ;; #(
14347     *)
14348       # `set' quotes correctly as required by POSIX, so do not add quotes.
14349       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14350       ;;
14351     esac |
14352     sort
14353 ) |
14354   sed '
14355      /^ac_cv_env_/b end
14356      t clear
14357      :clear
14358      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14359      t end
14360      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14361      :end' >>confcache
14362 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14363   if test -w "$cache_file"; then
14364     test "x$cache_file" != "x/dev/null" &&
14365       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14366 $as_echo "$as_me: updating cache $cache_file" >&6;}
14367     cat confcache >$cache_file
14368   else
14369     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14370 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14371   fi
14372 fi
14373 rm -f confcache
14374
14375 if test ${multilib} = yes; then
14376   multilib_arg="--enable-multilib"
14377 else
14378   multilib_arg=
14379 fi
14380
14381 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14382
14383
14384 ac_config_commands="$ac_config_commands default"
14385
14386
14387 cat >confcache <<\_ACEOF
14388 # This file is a shell script that caches the results of configure
14389 # tests run on this system so they can be shared between configure
14390 # scripts and configure runs, see configure's option --config-cache.
14391 # It is not useful on other systems.  If it contains results you don't
14392 # want to keep, you may remove or edit it.
14393 #
14394 # config.status only pays attention to the cache file if you give it
14395 # the --recheck option to rerun configure.
14396 #
14397 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14398 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14399 # following values.
14400
14401 _ACEOF
14402
14403 # The following way of writing the cache mishandles newlines in values,
14404 # but we know of no workaround that is simple, portable, and efficient.
14405 # So, we kill variables containing newlines.
14406 # Ultrix sh set writes to stderr and can't be redirected directly,
14407 # and sets the high bit in the cache file unless we assign to the vars.
14408 (
14409   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14410     eval ac_val=\$$ac_var
14411     case $ac_val in #(
14412     *${as_nl}*)
14413       case $ac_var in #(
14414       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14416       esac
14417       case $ac_var in #(
14418       _ | IFS | as_nl) ;; #(
14419       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14420       *) { eval $ac_var=; unset $ac_var;} ;;
14421       esac ;;
14422     esac
14423   done
14424
14425   (set) 2>&1 |
14426     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14427     *${as_nl}ac_space=\ *)
14428       # `set' does not quote correctly, so add quotes: double-quote
14429       # substitution turns \\\\ into \\, and sed turns \\ into \.
14430       sed -n \
14431         "s/'/'\\\\''/g;
14432           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14433       ;; #(
14434     *)
14435       # `set' quotes correctly as required by POSIX, so do not add quotes.
14436       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14437       ;;
14438     esac |
14439     sort
14440 ) |
14441   sed '
14442      /^ac_cv_env_/b end
14443      t clear
14444      :clear
14445      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14446      t end
14447      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14448      :end' >>confcache
14449 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14450   if test -w "$cache_file"; then
14451     test "x$cache_file" != "x/dev/null" &&
14452       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14453 $as_echo "$as_me: updating cache $cache_file" >&6;}
14454     cat confcache >$cache_file
14455   else
14456     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14457 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14458   fi
14459 fi
14460 rm -f confcache
14461
14462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14463 # Let make expand exec_prefix.
14464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14465
14466 DEFS=-DHAVE_CONFIG_H
14467
14468 ac_libobjs=
14469 ac_ltlibobjs=
14470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14471   # 1. Remove the extension, and $U if already installed.
14472   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14473   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14474   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14475   #    will be set to the directory where LIBOBJS objects are built.
14476   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14477   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14478 done
14479 LIBOBJS=$ac_libobjs
14480
14481 LTLIBOBJS=$ac_ltlibobjs
14482
14483
14484  if test -n "$EXEEXT"; then
14485   am__EXEEXT_TRUE=
14486   am__EXEEXT_FALSE='#'
14487 else
14488   am__EXEEXT_TRUE='#'
14489   am__EXEEXT_FALSE=
14490 fi
14491
14492 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14493   as_fn_error "conditional \"AMDEP\" was never defined.
14494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14495 fi
14496 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14497   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14499 fi
14500 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14501   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14503 fi
14504 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14505   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14507 fi
14508 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14509   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14511 fi
14512 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14513   as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14515 fi
14516 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14517   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14519 fi
14520 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14521   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14523 fi
14524 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14525   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14527 fi
14528 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14529   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14531 fi
14532 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14533   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14535 fi
14536 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14537   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14539 fi
14540 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14541   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14543 fi
14544 if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
14545   as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
14546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14547 fi
14548 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14549   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14551 fi
14552 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14553   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14555 fi
14556 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14557   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14559 fi
14560 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14561   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14563 fi
14564 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14565   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14567 fi
14568 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14569   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14571 fi
14572
14573 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14574   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14576 fi
14577 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14578   as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14580 fi
14581 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14582   as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14584 fi
14585
14586 : ${CONFIG_STATUS=./config.status}
14587 ac_write_fail=0
14588 ac_clean_files_save=$ac_clean_files
14589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14591 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14592 as_write_fail=0
14593 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14594 #! $SHELL
14595 # Generated by $as_me.
14596 # Run this file to recreate the current configuration.
14597 # Compiler output produced by configure, useful for debugging
14598 # configure, is in config.log if it exists.
14599
14600 debug=false
14601 ac_cs_recheck=false
14602 ac_cs_silent=false
14603
14604 SHELL=\${CONFIG_SHELL-$SHELL}
14605 export SHELL
14606 _ASEOF
14607 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14608 ## -------------------- ##
14609 ## M4sh Initialization. ##
14610 ## -------------------- ##
14611
14612 # Be more Bourne compatible
14613 DUALCASE=1; export DUALCASE # for MKS sh
14614 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14615   emulate sh
14616   NULLCMD=:
14617   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14618   # is contrary to our usage.  Disable this feature.
14619   alias -g '${1+"$@"}'='"$@"'
14620   setopt NO_GLOB_SUBST
14621 else
14622   case `(set -o) 2>/dev/null` in #(
14623   *posix*) :
14624     set -o posix ;; #(
14625   *) :
14626      ;;
14627 esac
14628 fi
14629
14630
14631 as_nl='
14632 '
14633 export as_nl
14634 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14635 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14636 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14637 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14638 # Prefer a ksh shell builtin over an external printf program on Solaris,
14639 # but without wasting forks for bash or zsh.
14640 if test -z "$BASH_VERSION$ZSH_VERSION" \
14641     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14642   as_echo='print -r --'
14643   as_echo_n='print -rn --'
14644 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14645   as_echo='printf %s\n'
14646   as_echo_n='printf %s'
14647 else
14648   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14649     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14650     as_echo_n='/usr/ucb/echo -n'
14651   else
14652     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14653     as_echo_n_body='eval
14654       arg=$1;
14655       case $arg in #(
14656       *"$as_nl"*)
14657         expr "X$arg" : "X\\(.*\\)$as_nl";
14658         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14659       esac;
14660       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14661     '
14662     export as_echo_n_body
14663     as_echo_n='sh -c $as_echo_n_body as_echo'
14664   fi
14665   export as_echo_body
14666   as_echo='sh -c $as_echo_body as_echo'
14667 fi
14668
14669 # The user is always right.
14670 if test "${PATH_SEPARATOR+set}" != set; then
14671   PATH_SEPARATOR=:
14672   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14673     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14674       PATH_SEPARATOR=';'
14675   }
14676 fi
14677
14678
14679 # IFS
14680 # We need space, tab and new line, in precisely that order.  Quoting is
14681 # there to prevent editors from complaining about space-tab.
14682 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14683 # splitting by setting IFS to empty value.)
14684 IFS=" ""        $as_nl"
14685
14686 # Find who we are.  Look in the path if we contain no directory separator.
14687 case $0 in #((
14688   *[\\/]* ) as_myself=$0 ;;
14689   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14690 for as_dir in $PATH
14691 do
14692   IFS=$as_save_IFS
14693   test -z "$as_dir" && as_dir=.
14694     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14695   done
14696 IFS=$as_save_IFS
14697
14698      ;;
14699 esac
14700 # We did not find ourselves, most probably we were run as `sh COMMAND'
14701 # in which case we are not to be found in the path.
14702 if test "x$as_myself" = x; then
14703   as_myself=$0
14704 fi
14705 if test ! -f "$as_myself"; then
14706   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14707   exit 1
14708 fi
14709
14710 # Unset variables that we do not need and which cause bugs (e.g. in
14711 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14712 # suppresses any "Segmentation fault" message there.  '((' could
14713 # trigger a bug in pdksh 5.2.14.
14714 for as_var in BASH_ENV ENV MAIL MAILPATH
14715 do eval test x\${$as_var+set} = xset \
14716   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14717 done
14718 PS1='$ '
14719 PS2='> '
14720 PS4='+ '
14721
14722 # NLS nuisances.
14723 LC_ALL=C
14724 export LC_ALL
14725 LANGUAGE=C
14726 export LANGUAGE
14727
14728 # CDPATH.
14729 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14730
14731
14732 # as_fn_error ERROR [LINENO LOG_FD]
14733 # ---------------------------------
14734 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14735 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14736 # script with status $?, using 1 if that was 0.
14737 as_fn_error ()
14738 {
14739   as_status=$?; test $as_status -eq 0 && as_status=1
14740   if test "$3"; then
14741     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14742     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14743   fi
14744   $as_echo "$as_me: error: $1" >&2
14745   as_fn_exit $as_status
14746 } # as_fn_error
14747
14748
14749 # as_fn_set_status STATUS
14750 # -----------------------
14751 # Set $? to STATUS, without forking.
14752 as_fn_set_status ()
14753 {
14754   return $1
14755 } # as_fn_set_status
14756
14757 # as_fn_exit STATUS
14758 # -----------------
14759 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14760 as_fn_exit ()
14761 {
14762   set +e
14763   as_fn_set_status $1
14764   exit $1
14765 } # as_fn_exit
14766
14767 # as_fn_unset VAR
14768 # ---------------
14769 # Portably unset VAR.
14770 as_fn_unset ()
14771 {
14772   { eval $1=; unset $1;}
14773 }
14774 as_unset=as_fn_unset
14775 # as_fn_append VAR VALUE
14776 # ----------------------
14777 # Append the text in VALUE to the end of the definition contained in VAR. Take
14778 # advantage of any shell optimizations that allow amortized linear growth over
14779 # repeated appends, instead of the typical quadratic growth present in naive
14780 # implementations.
14781 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14782   eval 'as_fn_append ()
14783   {
14784     eval $1+=\$2
14785   }'
14786 else
14787   as_fn_append ()
14788   {
14789     eval $1=\$$1\$2
14790   }
14791 fi # as_fn_append
14792
14793 # as_fn_arith ARG...
14794 # ------------------
14795 # Perform arithmetic evaluation on the ARGs, and store the result in the
14796 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14797 # must be portable across $(()) and expr.
14798 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14799   eval 'as_fn_arith ()
14800   {
14801     as_val=$(( $* ))
14802   }'
14803 else
14804   as_fn_arith ()
14805   {
14806     as_val=`expr "$@" || test $? -eq 1`
14807   }
14808 fi # as_fn_arith
14809
14810
14811 if expr a : '\(a\)' >/dev/null 2>&1 &&
14812    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14813   as_expr=expr
14814 else
14815   as_expr=false
14816 fi
14817
14818 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14819   as_basename=basename
14820 else
14821   as_basename=false
14822 fi
14823
14824 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14825   as_dirname=dirname
14826 else
14827   as_dirname=false
14828 fi
14829
14830 as_me=`$as_basename -- "$0" ||
14831 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14832          X"$0" : 'X\(//\)$' \| \
14833          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14834 $as_echo X/"$0" |
14835     sed '/^.*\/\([^/][^/]*\)\/*$/{
14836             s//\1/
14837             q
14838           }
14839           /^X\/\(\/\/\)$/{
14840             s//\1/
14841             q
14842           }
14843           /^X\/\(\/\).*/{
14844             s//\1/
14845             q
14846           }
14847           s/.*/./; q'`
14848
14849 # Avoid depending upon Character Ranges.
14850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14853 as_cr_digits='0123456789'
14854 as_cr_alnum=$as_cr_Letters$as_cr_digits
14855
14856 ECHO_C= ECHO_N= ECHO_T=
14857 case `echo -n x` in #(((((
14858 -n*)
14859   case `echo 'xy\c'` in
14860   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14861   xy)  ECHO_C='\c';;
14862   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14863        ECHO_T=' ';;
14864   esac;;
14865 *)
14866   ECHO_N='-n';;
14867 esac
14868
14869 rm -f conf$$ conf$$.exe conf$$.file
14870 if test -d conf$$.dir; then
14871   rm -f conf$$.dir/conf$$.file
14872 else
14873   rm -f conf$$.dir
14874   mkdir conf$$.dir 2>/dev/null
14875 fi
14876 if (echo >conf$$.file) 2>/dev/null; then
14877   if ln -s conf$$.file conf$$ 2>/dev/null; then
14878     as_ln_s='ln -s'
14879     # ... but there are two gotchas:
14880     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14881     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14882     # In both cases, we have to default to `cp -p'.
14883     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14884       as_ln_s='cp -p'
14885   elif ln conf$$.file conf$$ 2>/dev/null; then
14886     as_ln_s=ln
14887   else
14888     as_ln_s='cp -p'
14889   fi
14890 else
14891   as_ln_s='cp -p'
14892 fi
14893 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14894 rmdir conf$$.dir 2>/dev/null
14895
14896
14897 # as_fn_mkdir_p
14898 # -------------
14899 # Create "$as_dir" as a directory, including parents if necessary.
14900 as_fn_mkdir_p ()
14901 {
14902
14903   case $as_dir in #(
14904   -*) as_dir=./$as_dir;;
14905   esac
14906   test -d "$as_dir" || eval $as_mkdir_p || {
14907     as_dirs=
14908     while :; do
14909       case $as_dir in #(
14910       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14911       *) as_qdir=$as_dir;;
14912       esac
14913       as_dirs="'$as_qdir' $as_dirs"
14914       as_dir=`$as_dirname -- "$as_dir" ||
14915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14916          X"$as_dir" : 'X\(//\)[^/]' \| \
14917          X"$as_dir" : 'X\(//\)$' \| \
14918          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14919 $as_echo X"$as_dir" |
14920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14921             s//\1/
14922             q
14923           }
14924           /^X\(\/\/\)[^/].*/{
14925             s//\1/
14926             q
14927           }
14928           /^X\(\/\/\)$/{
14929             s//\1/
14930             q
14931           }
14932           /^X\(\/\).*/{
14933             s//\1/
14934             q
14935           }
14936           s/.*/./; q'`
14937       test -d "$as_dir" && break
14938     done
14939     test -z "$as_dirs" || eval "mkdir $as_dirs"
14940   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14941
14942
14943 } # as_fn_mkdir_p
14944 if mkdir -p . 2>/dev/null; then
14945   as_mkdir_p='mkdir -p "$as_dir"'
14946 else
14947   test -d ./-p && rmdir ./-p
14948   as_mkdir_p=false
14949 fi
14950
14951 if test -x / >/dev/null 2>&1; then
14952   as_test_x='test -x'
14953 else
14954   if ls -dL / >/dev/null 2>&1; then
14955     as_ls_L_option=L
14956   else
14957     as_ls_L_option=
14958   fi
14959   as_test_x='
14960     eval sh -c '\''
14961       if test -d "$1"; then
14962         test -d "$1/.";
14963       else
14964         case $1 in #(
14965         -*)set "./$1";;
14966         esac;
14967         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14968         ???[sx]*):;;*)false;;esac;fi
14969     '\'' sh
14970   '
14971 fi
14972 as_executable_p=$as_test_x
14973
14974 # Sed expression to map a string onto a valid CPP name.
14975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14976
14977 # Sed expression to map a string onto a valid variable name.
14978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14979
14980
14981 exec 6>&1
14982 ## ----------------------------------- ##
14983 ## Main body of $CONFIG_STATUS script. ##
14984 ## ----------------------------------- ##
14985 _ASEOF
14986 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14987
14988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14989 # Save the log message, to keep $0 and so on meaningful, and to
14990 # report actual input values of CONFIG_FILES etc. instead of their
14991 # values after options handling.
14992 ac_log="
14993 This file was extended by package-unused $as_me version-unused, which was
14994 generated by GNU Autoconf 2.64.  Invocation command line was
14995
14996   CONFIG_FILES    = $CONFIG_FILES
14997   CONFIG_HEADERS  = $CONFIG_HEADERS
14998   CONFIG_LINKS    = $CONFIG_LINKS
14999   CONFIG_COMMANDS = $CONFIG_COMMANDS
15000   $ $0 $@
15001
15002 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15003 "
15004
15005 _ACEOF
15006
15007 case $ac_config_files in *"
15008 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15009 esac
15010
15011 case $ac_config_headers in *"
15012 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15013 esac
15014
15015
15016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15017 # Files that config.status was made for.
15018 config_files="$ac_config_files"
15019 config_headers="$ac_config_headers"
15020 config_commands="$ac_config_commands"
15021
15022 _ACEOF
15023
15024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025 ac_cs_usage="\
15026 \`$as_me' instantiates files and other configuration actions
15027 from templates according to the current configuration.  Unless the files
15028 and actions are specified as TAGs, all are instantiated by default.
15029
15030 Usage: $0 [OPTION]... [TAG]...
15031
15032   -h, --help       print this help, then exit
15033   -V, --version    print version number and configuration settings, then exit
15034   -q, --quiet, --silent
15035                    do not print progress messages
15036   -d, --debug      don't remove temporary files
15037       --recheck    update $as_me by reconfiguring in the same conditions
15038       --file=FILE[:TEMPLATE]
15039                    instantiate the configuration file FILE
15040       --header=FILE[:TEMPLATE]
15041                    instantiate the configuration header FILE
15042
15043 Configuration files:
15044 $config_files
15045
15046 Configuration headers:
15047 $config_headers
15048
15049 Configuration commands:
15050 $config_commands
15051
15052 Report bugs to the package provider."
15053
15054 _ACEOF
15055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15056 ac_cs_version="\\
15057 package-unused config.status version-unused
15058 configured by $0, generated by GNU Autoconf 2.64,
15059   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15060
15061 Copyright (C) 2009 Free Software Foundation, Inc.
15062 This config.status script is free software; the Free Software Foundation
15063 gives unlimited permission to copy, distribute and modify it."
15064
15065 ac_pwd='$ac_pwd'
15066 srcdir='$srcdir'
15067 INSTALL='$INSTALL'
15068 MKDIR_P='$MKDIR_P'
15069 AWK='$AWK'
15070 test -n "\$AWK" || AWK=awk
15071 _ACEOF
15072
15073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15074 # The default lists apply if the user does not specify any file.
15075 ac_need_defaults=:
15076 while test $# != 0
15077 do
15078   case $1 in
15079   --*=*)
15080     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15081     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15082     ac_shift=:
15083     ;;
15084   *)
15085     ac_option=$1
15086     ac_optarg=$2
15087     ac_shift=shift
15088     ;;
15089   esac
15090
15091   case $ac_option in
15092   # Handling of the options.
15093   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15094     ac_cs_recheck=: ;;
15095   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15096     $as_echo "$ac_cs_version"; exit ;;
15097   --debug | --debu | --deb | --de | --d | -d )
15098     debug=: ;;
15099   --file | --fil | --fi | --f )
15100     $ac_shift
15101     case $ac_optarg in
15102     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15103     esac
15104     as_fn_append CONFIG_FILES " '$ac_optarg'"
15105     ac_need_defaults=false;;
15106   --header | --heade | --head | --hea )
15107     $ac_shift
15108     case $ac_optarg in
15109     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15110     esac
15111     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15112     ac_need_defaults=false;;
15113   --he | --h)
15114     # Conflict between --help and --header
15115     as_fn_error "ambiguous option: \`$1'
15116 Try \`$0 --help' for more information.";;
15117   --help | --hel | -h )
15118     $as_echo "$ac_cs_usage"; exit ;;
15119   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15120   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15121     ac_cs_silent=: ;;
15122
15123   # This is an error.
15124   -*) as_fn_error "unrecognized option: \`$1'
15125 Try \`$0 --help' for more information." ;;
15126
15127   *) as_fn_append ac_config_targets " $1"
15128      ac_need_defaults=false ;;
15129
15130   esac
15131   shift
15132 done
15133
15134 ac_configure_extra_args=
15135
15136 if $ac_cs_silent; then
15137   exec 6>/dev/null
15138   ac_configure_extra_args="$ac_configure_extra_args --silent"
15139 fi
15140
15141 _ACEOF
15142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15143 if \$ac_cs_recheck; then
15144   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15145   shift
15146   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15147   CONFIG_SHELL='$SHELL'
15148   export CONFIG_SHELL
15149   exec "\$@"
15150 fi
15151
15152 _ACEOF
15153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15154 exec 5>>config.log
15155 {
15156   echo
15157   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15158 ## Running $as_me. ##
15159 _ASBOX
15160   $as_echo "$ac_log"
15161 } >&5
15162
15163 _ACEOF
15164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15165 #
15166 # INIT-COMMANDS
15167 #
15168
15169 srcdir="$srcdir"
15170 host="$host"
15171 target="$target"
15172 with_multisubdir="$with_multisubdir"
15173 with_multisrctop="$with_multisrctop"
15174 with_target_subdir="$with_target_subdir"
15175 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15176 multi_basedir="$multi_basedir"
15177 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15178 CC="$CC"
15179 CXX="$CXX"
15180 GFORTRAN="$GFORTRAN"
15181 GCJ="$GCJ"
15182 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15183
15184
15185 # The HP-UX ksh and POSIX shell print the target directory to stdout
15186 # if CDPATH is set.
15187 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15188
15189 sed_quote_subst='$sed_quote_subst'
15190 double_quote_subst='$double_quote_subst'
15191 delay_variable_subst='$delay_variable_subst'
15192 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15193 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15194 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15195 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15196 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15197 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15198 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15199 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15200 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15201 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15202 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15203 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15204 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15205 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15206 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15207 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15208 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15209 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15210 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15211 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15212 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15213 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15214 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15215 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15216 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15217 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15218 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15219 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15220 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15221 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15222 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15223 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15224 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15225 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15226 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15227 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15228 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15229 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15230 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15231 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15232 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15233 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15234 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15235 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15236 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15237 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15238 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15239 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15240 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"`'
15241 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15242 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15243 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15244 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15245 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15246 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15247 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15248 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15249 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15250 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15251 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15252 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15253 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15254 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15255 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15256 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15257 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15258 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15259 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15260 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15261 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15262 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15263 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15264 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15265 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15266 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15267 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15268 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15269 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15270 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15271 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15272 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15273 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15274 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15275 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15276 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15277 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15278 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15279 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15280 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15281 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15282 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15283 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15284 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15285 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15286 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15287 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15288 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15289 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15290 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15291 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15292 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15293 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15294 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15295 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15296 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15297 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15298 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15299 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15300 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15301 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15302 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15303 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15304 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15305 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15306 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15307 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15308 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15309 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15310 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15311 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15312 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15313 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15314 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15315 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15316 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15317 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15318 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15319 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15320 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15321 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15322 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15323 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15324 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15325 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15326 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15327 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15328 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15329 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15330 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15331 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15332 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15333 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15334 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15335 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15336 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15337 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15338 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15339 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15340 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15341 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15342 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15343 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15344 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15345 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15346 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15347 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15348 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15349 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15350 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15351 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15352 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15353 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15354 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15355
15356 LTCC='$LTCC'
15357 LTCFLAGS='$LTCFLAGS'
15358 compiler='$compiler_DEFAULT'
15359
15360 # A function that is used when there is no print builtin or printf.
15361 func_fallback_echo ()
15362 {
15363   eval 'cat <<_LTECHO_EOF
15364 \$1
15365 _LTECHO_EOF'
15366 }
15367
15368 # Quote evaled strings.
15369 for var in SED \
15370 GREP \
15371 EGREP \
15372 FGREP \
15373 SHELL \
15374 ECHO \
15375 LD \
15376 NM \
15377 LN_S \
15378 lt_SP2NL \
15379 lt_NL2SP \
15380 reload_flag \
15381 OBJDUMP \
15382 deplibs_check_method \
15383 file_magic_cmd \
15384 AR \
15385 AR_FLAGS \
15386 STRIP \
15387 RANLIB \
15388 CC \
15389 CFLAGS \
15390 compiler \
15391 lt_cv_sys_global_symbol_pipe \
15392 lt_cv_sys_global_symbol_to_cdecl \
15393 lt_cv_sys_global_symbol_to_c_name_address \
15394 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15395 lt_prog_compiler_no_builtin_flag \
15396 lt_prog_compiler_wl \
15397 lt_prog_compiler_pic \
15398 lt_prog_compiler_static \
15399 lt_cv_prog_compiler_c_o \
15400 need_locks \
15401 DSYMUTIL \
15402 NMEDIT \
15403 LIPO \
15404 OTOOL \
15405 OTOOL64 \
15406 shrext_cmds \
15407 export_dynamic_flag_spec \
15408 whole_archive_flag_spec \
15409 compiler_needs_object \
15410 with_gnu_ld \
15411 allow_undefined_flag \
15412 no_undefined_flag \
15413 hardcode_libdir_flag_spec \
15414 hardcode_libdir_flag_spec_ld \
15415 hardcode_libdir_separator \
15416 fix_srcfile_path \
15417 exclude_expsyms \
15418 include_expsyms \
15419 file_list_spec \
15420 variables_saved_for_relink \
15421 libname_spec \
15422 library_names_spec \
15423 soname_spec \
15424 install_override_mode \
15425 finish_eval \
15426 old_striplib \
15427 striplib \
15428 LD_GO \
15429 reload_flag_GO \
15430 compiler_GO \
15431 lt_prog_compiler_no_builtin_flag_GO \
15432 lt_prog_compiler_wl_GO \
15433 lt_prog_compiler_pic_GO \
15434 lt_prog_compiler_static_GO \
15435 lt_cv_prog_compiler_c_o_GO \
15436 export_dynamic_flag_spec_GO \
15437 whole_archive_flag_spec_GO \
15438 compiler_needs_object_GO \
15439 with_gnu_ld_GO \
15440 allow_undefined_flag_GO \
15441 no_undefined_flag_GO \
15442 hardcode_libdir_flag_spec_GO \
15443 hardcode_libdir_flag_spec_ld_GO \
15444 hardcode_libdir_separator_GO \
15445 fix_srcfile_path_GO \
15446 exclude_expsyms_GO \
15447 include_expsyms_GO \
15448 file_list_spec_GO; do
15449     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15450     *[\\\\\\\`\\"\\\$]*)
15451       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15452       ;;
15453     *)
15454       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15455       ;;
15456     esac
15457 done
15458
15459 # Double-quote double-evaled strings.
15460 for var in reload_cmds \
15461 old_postinstall_cmds \
15462 old_postuninstall_cmds \
15463 old_archive_cmds \
15464 extract_expsyms_cmds \
15465 old_archive_from_new_cmds \
15466 old_archive_from_expsyms_cmds \
15467 archive_cmds \
15468 archive_expsym_cmds \
15469 module_cmds \
15470 module_expsym_cmds \
15471 export_symbols_cmds \
15472 prelink_cmds \
15473 postinstall_cmds \
15474 postuninstall_cmds \
15475 finish_cmds \
15476 sys_lib_search_path_spec \
15477 sys_lib_dlsearch_path_spec \
15478 reload_cmds_GO \
15479 old_archive_cmds_GO \
15480 old_archive_from_new_cmds_GO \
15481 old_archive_from_expsyms_cmds_GO \
15482 archive_cmds_GO \
15483 archive_expsym_cmds_GO \
15484 module_cmds_GO \
15485 module_expsym_cmds_GO \
15486 export_symbols_cmds_GO \
15487 prelink_cmds_GO; do
15488     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15489     *[\\\\\\\`\\"\\\$]*)
15490       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15491       ;;
15492     *)
15493       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15494       ;;
15495     esac
15496 done
15497
15498 ac_aux_dir='$ac_aux_dir'
15499 xsi_shell='$xsi_shell'
15500 lt_shell_append='$lt_shell_append'
15501
15502 # See if we are running on zsh, and set the options which allow our
15503 # commands through without removal of \ escapes INIT.
15504 if test -n "\${ZSH_VERSION+set}" ; then
15505    setopt NO_GLOB_SUBST
15506 fi
15507
15508
15509     PACKAGE='$PACKAGE'
15510     VERSION='$VERSION'
15511     TIMESTAMP='$TIMESTAMP'
15512     RM='$RM'
15513     ofile='$ofile'
15514
15515
15516
15517
15518
15519
15520 # Variables needed in config.status (file generation) which aren't already
15521 # passed by autoconf.
15522 SUBDIRS="$SUBDIRS"
15523
15524
15525 _ACEOF
15526
15527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15528
15529 # Handling of arguments.
15530 for ac_config_target in $ac_config_targets
15531 do
15532   case $ac_config_target in
15533     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15534     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15535     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15536     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15537     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15538     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15539     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15540
15541   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15542   esac
15543 done
15544
15545
15546 # If the user did not use the arguments to specify the items to instantiate,
15547 # then the envvar interface is used.  Set only those that are not.
15548 # We use the long form for the default assignment because of an extremely
15549 # bizarre bug on SunOS 4.1.3.
15550 if $ac_need_defaults; then
15551   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15552   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15553   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15554 fi
15555
15556 # Have a temporary directory for convenience.  Make it in the build tree
15557 # simply because there is no reason against having it here, and in addition,
15558 # creating and moving files from /tmp can sometimes cause problems.
15559 # Hook for its removal unless debugging.
15560 # Note that there is a small window in which the directory will not be cleaned:
15561 # after its creation but before its name has been assigned to `$tmp'.
15562 $debug ||
15563 {
15564   tmp=
15565   trap 'exit_status=$?
15566   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15567 ' 0
15568   trap 'as_fn_exit 1' 1 2 13 15
15569 }
15570 # Create a (secure) tmp directory for tmp files.
15571
15572 {
15573   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15574   test -n "$tmp" && test -d "$tmp"
15575 }  ||
15576 {
15577   tmp=./conf$$-$RANDOM
15578   (umask 077 && mkdir "$tmp")
15579 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15580
15581 # Set up the scripts for CONFIG_FILES section.
15582 # No need to generate them if there are no CONFIG_FILES.
15583 # This happens for instance with `./config.status config.h'.
15584 if test -n "$CONFIG_FILES"; then
15585
15586
15587 ac_cr=`echo X | tr X '\015'`
15588 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15589 # But we know of no other shell where ac_cr would be empty at this
15590 # point, so we can use a bashism as a fallback.
15591 if test "x$ac_cr" = x; then
15592   eval ac_cr=\$\'\\r\'
15593 fi
15594 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15595 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15596   ac_cs_awk_cr='\r'
15597 else
15598   ac_cs_awk_cr=$ac_cr
15599 fi
15600
15601 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15602 _ACEOF
15603
15604
15605 {
15606   echo "cat >conf$$subs.awk <<_ACEOF" &&
15607   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15608   echo "_ACEOF"
15609 } >conf$$subs.sh ||
15610   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15611 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15612 ac_delim='%!_!# '
15613 for ac_last_try in false false false false false :; do
15614   . ./conf$$subs.sh ||
15615     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15616
15617   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15618   if test $ac_delim_n = $ac_delim_num; then
15619     break
15620   elif $ac_last_try; then
15621     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15622   else
15623     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15624   fi
15625 done
15626 rm -f conf$$subs.sh
15627
15628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15629 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15630 _ACEOF
15631 sed -n '
15632 h
15633 s/^/S["/; s/!.*/"]=/
15634 p
15635 g
15636 s/^[^!]*!//
15637 :repl
15638 t repl
15639 s/'"$ac_delim"'$//
15640 t delim
15641 :nl
15642 h
15643 s/\(.\{148\}\).*/\1/
15644 t more1
15645 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15646 p
15647 n
15648 b repl
15649 :more1
15650 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15651 p
15652 g
15653 s/.\{148\}//
15654 t nl
15655 :delim
15656 h
15657 s/\(.\{148\}\).*/\1/
15658 t more2
15659 s/["\\]/\\&/g; s/^/"/; s/$/"/
15660 p
15661 b
15662 :more2
15663 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15664 p
15665 g
15666 s/.\{148\}//
15667 t delim
15668 ' <conf$$subs.awk | sed '
15669 /^[^""]/{
15670   N
15671   s/\n//
15672 }
15673 ' >>$CONFIG_STATUS || ac_write_fail=1
15674 rm -f conf$$subs.awk
15675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15676 _ACAWK
15677 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15678   for (key in S) S_is_set[key] = 1
15679   FS = "\a"
15680
15681 }
15682 {
15683   line = $ 0
15684   nfields = split(line, field, "@")
15685   substed = 0
15686   len = length(field[1])
15687   for (i = 2; i < nfields; i++) {
15688     key = field[i]
15689     keylen = length(key)
15690     if (S_is_set[key]) {
15691       value = S[key]
15692       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15693       len += length(value) + length(field[++i])
15694       substed = 1
15695     } else
15696       len += 1 + keylen
15697   }
15698
15699   print line
15700 }
15701
15702 _ACAWK
15703 _ACEOF
15704 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15706   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15707 else
15708   cat
15709 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15710   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15711 _ACEOF
15712
15713 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15714 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15715 # trailing colons and then remove the whole line if VPATH becomes empty
15716 # (actually we leave an empty line to preserve line numbers).
15717 if test "x$srcdir" = x.; then
15718   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15719 s/:*\$(srcdir):*/:/
15720 s/:*\${srcdir}:*/:/
15721 s/:*@srcdir@:*/:/
15722 s/^\([^=]*=[     ]*\):*/\1/
15723 s/:*$//
15724 s/^[^=]*=[       ]*$//
15725 }'
15726 fi
15727
15728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15729 fi # test -n "$CONFIG_FILES"
15730
15731 # Set up the scripts for CONFIG_HEADERS section.
15732 # No need to generate them if there are no CONFIG_HEADERS.
15733 # This happens for instance with `./config.status Makefile'.
15734 if test -n "$CONFIG_HEADERS"; then
15735 cat >"$tmp/defines.awk" <<\_ACAWK ||
15736 BEGIN {
15737 _ACEOF
15738
15739 # Transform confdefs.h into an awk script `defines.awk', embedded as
15740 # here-document in config.status, that substitutes the proper values into
15741 # config.h.in to produce config.h.
15742
15743 # Create a delimiter string that does not exist in confdefs.h, to ease
15744 # handling of long lines.
15745 ac_delim='%!_!# '
15746 for ac_last_try in false false :; do
15747   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15748   if test -z "$ac_t"; then
15749     break
15750   elif $ac_last_try; then
15751     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15752   else
15753     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15754   fi
15755 done
15756
15757 # For the awk script, D is an array of macro values keyed by name,
15758 # likewise P contains macro parameters if any.  Preserve backslash
15759 # newline sequences.
15760
15761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15762 sed -n '
15763 s/.\{148\}/&'"$ac_delim"'/g
15764 t rset
15765 :rset
15766 s/^[     ]*#[    ]*define[       ][      ]*/ /
15767 t def
15768 d
15769 :def
15770 s/\\$//
15771 t bsnl
15772 s/["\\]/\\&/g
15773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15774 D["\1"]=" \3"/p
15775 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15776 d
15777 :bsnl
15778 s/["\\]/\\&/g
15779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15780 D["\1"]=" \3\\\\\\n"\\/p
15781 t cont
15782 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15783 t cont
15784 d
15785 :cont
15786 n
15787 s/.\{148\}/&'"$ac_delim"'/g
15788 t clear
15789 :clear
15790 s/\\$//
15791 t bsnlc
15792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15793 d
15794 :bsnlc
15795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15796 b cont
15797 ' <confdefs.h | sed '
15798 s/'"$ac_delim"'/"\\\
15799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15800
15801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15802   for (key in D) D_is_set[key] = 1
15803   FS = "\a"
15804 }
15805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15806   line = \$ 0
15807   split(line, arg, " ")
15808   if (arg[1] == "#") {
15809     defundef = arg[2]
15810     mac1 = arg[3]
15811   } else {
15812     defundef = substr(arg[1], 2)
15813     mac1 = arg[2]
15814   }
15815   split(mac1, mac2, "(") #)
15816   macro = mac2[1]
15817   prefix = substr(line, 1, index(line, defundef) - 1)
15818   if (D_is_set[macro]) {
15819     # Preserve the white space surrounding the "#".
15820     print prefix "define", macro P[macro] D[macro]
15821     next
15822   } else {
15823     # Replace #undef with comments.  This is necessary, for example,
15824     # in the case of _POSIX_SOURCE, which is predefined and required
15825     # on some systems where configure will not decide to define it.
15826     if (defundef == "undef") {
15827       print "/*", prefix defundef, macro, "*/"
15828       next
15829     }
15830   }
15831 }
15832 { print }
15833 _ACAWK
15834 _ACEOF
15835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15836   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15837 fi # test -n "$CONFIG_HEADERS"
15838
15839
15840 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15841 shift
15842 for ac_tag
15843 do
15844   case $ac_tag in
15845   :[FHLC]) ac_mode=$ac_tag; continue;;
15846   esac
15847   case $ac_mode$ac_tag in
15848   :[FHL]*:*);;
15849   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15850   :[FH]-) ac_tag=-:-;;
15851   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15852   esac
15853   ac_save_IFS=$IFS
15854   IFS=:
15855   set x $ac_tag
15856   IFS=$ac_save_IFS
15857   shift
15858   ac_file=$1
15859   shift
15860
15861   case $ac_mode in
15862   :L) ac_source=$1;;
15863   :[FH])
15864     ac_file_inputs=
15865     for ac_f
15866     do
15867       case $ac_f in
15868       -) ac_f="$tmp/stdin";;
15869       *) # Look for the file first in the build tree, then in the source tree
15870          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15871          # because $ac_f cannot contain `:'.
15872          test -f "$ac_f" ||
15873            case $ac_f in
15874            [\\/$]*) false;;
15875            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15876            esac ||
15877            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15878       esac
15879       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15880       as_fn_append ac_file_inputs " '$ac_f'"
15881     done
15882
15883     # Let's still pretend it is `configure' which instantiates (i.e., don't
15884     # use $as_me), people would be surprised to read:
15885     #    /* config.h.  Generated by config.status.  */
15886     configure_input='Generated from '`
15887           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15888         `' by configure.'
15889     if test x"$ac_file" != x-; then
15890       configure_input="$ac_file.  $configure_input"
15891       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15892 $as_echo "$as_me: creating $ac_file" >&6;}
15893     fi
15894     # Neutralize special characters interpreted by sed in replacement strings.
15895     case $configure_input in #(
15896     *\&* | *\|* | *\\* )
15897        ac_sed_conf_input=`$as_echo "$configure_input" |
15898        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15899     *) ac_sed_conf_input=$configure_input;;
15900     esac
15901
15902     case $ac_tag in
15903     *:-:* | *:-) cat >"$tmp/stdin" \
15904       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15905     esac
15906     ;;
15907   esac
15908
15909   ac_dir=`$as_dirname -- "$ac_file" ||
15910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15911          X"$ac_file" : 'X\(//\)[^/]' \| \
15912          X"$ac_file" : 'X\(//\)$' \| \
15913          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15914 $as_echo X"$ac_file" |
15915     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15916             s//\1/
15917             q
15918           }
15919           /^X\(\/\/\)[^/].*/{
15920             s//\1/
15921             q
15922           }
15923           /^X\(\/\/\)$/{
15924             s//\1/
15925             q
15926           }
15927           /^X\(\/\).*/{
15928             s//\1/
15929             q
15930           }
15931           s/.*/./; q'`
15932   as_dir="$ac_dir"; as_fn_mkdir_p
15933   ac_builddir=.
15934
15935 case "$ac_dir" in
15936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15937 *)
15938   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15939   # A ".." for each directory in $ac_dir_suffix.
15940   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15941   case $ac_top_builddir_sub in
15942   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15943   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15944   esac ;;
15945 esac
15946 ac_abs_top_builddir=$ac_pwd
15947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15948 # for backward compatibility:
15949 ac_top_builddir=$ac_top_build_prefix
15950
15951 case $srcdir in
15952   .)  # We are building in place.
15953     ac_srcdir=.
15954     ac_top_srcdir=$ac_top_builddir_sub
15955     ac_abs_top_srcdir=$ac_pwd ;;
15956   [\\/]* | ?:[\\/]* )  # Absolute name.
15957     ac_srcdir=$srcdir$ac_dir_suffix;
15958     ac_top_srcdir=$srcdir
15959     ac_abs_top_srcdir=$srcdir ;;
15960   *) # Relative name.
15961     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15962     ac_top_srcdir=$ac_top_build_prefix$srcdir
15963     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15964 esac
15965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15966
15967
15968   case $ac_mode in
15969   :F)
15970   #
15971   # CONFIG_FILE
15972   #
15973
15974   case $INSTALL in
15975   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15976   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15977   esac
15978   ac_MKDIR_P=$MKDIR_P
15979   case $MKDIR_P in
15980   [\\/$]* | ?:[\\/]* ) ;;
15981   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15982   esac
15983 _ACEOF
15984
15985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15986 # If the template does not know about datarootdir, expand it.
15987 # FIXME: This hack should be removed a few years after 2.60.
15988 ac_datarootdir_hack=; ac_datarootdir_seen=
15989 ac_sed_dataroot='
15990 /datarootdir/ {
15991   p
15992   q
15993 }
15994 /@datadir@/p
15995 /@docdir@/p
15996 /@infodir@/p
15997 /@localedir@/p
15998 /@mandir@/p'
15999 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16000 *datarootdir*) ac_datarootdir_seen=yes;;
16001 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16002   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16003 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16004 _ACEOF
16005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16006   ac_datarootdir_hack='
16007   s&@datadir@&$datadir&g
16008   s&@docdir@&$docdir&g
16009   s&@infodir@&$infodir&g
16010   s&@localedir@&$localedir&g
16011   s&@mandir@&$mandir&g
16012   s&\\\${datarootdir}&$datarootdir&g' ;;
16013 esac
16014 _ACEOF
16015
16016 # Neutralize VPATH when `$srcdir' = `.'.
16017 # Shell code in configure.ac might set extrasub.
16018 # FIXME: do we really want to maintain this feature?
16019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16020 ac_sed_extra="$ac_vpsub
16021 $extrasub
16022 _ACEOF
16023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16024 :t
16025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16026 s|@configure_input@|$ac_sed_conf_input|;t t
16027 s&@top_builddir@&$ac_top_builddir_sub&;t t
16028 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16029 s&@srcdir@&$ac_srcdir&;t t
16030 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16031 s&@top_srcdir@&$ac_top_srcdir&;t t
16032 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16033 s&@builddir@&$ac_builddir&;t t
16034 s&@abs_builddir@&$ac_abs_builddir&;t t
16035 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16036 s&@INSTALL@&$ac_INSTALL&;t t
16037 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16038 $ac_datarootdir_hack
16039 "
16040 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16041   || as_fn_error "could not create $ac_file" "$LINENO" 5
16042
16043 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16044   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16045   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16046   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16047 which seems to be undefined.  Please make sure it is defined." >&5
16048 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16049 which seems to be undefined.  Please make sure it is defined." >&2;}
16050
16051   rm -f "$tmp/stdin"
16052   case $ac_file in
16053   -) cat "$tmp/out" && rm -f "$tmp/out";;
16054   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16055   esac \
16056   || as_fn_error "could not create $ac_file" "$LINENO" 5
16057  ;;
16058   :H)
16059   #
16060   # CONFIG_HEADER
16061   #
16062   if test x"$ac_file" != x-; then
16063     {
16064       $as_echo "/* $configure_input  */" \
16065       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16066     } >"$tmp/config.h" \
16067       || as_fn_error "could not create $ac_file" "$LINENO" 5
16068     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16069       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16070 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16071     else
16072       rm -f "$ac_file"
16073       mv "$tmp/config.h" "$ac_file" \
16074         || as_fn_error "could not create $ac_file" "$LINENO" 5
16075     fi
16076   else
16077     $as_echo "/* $configure_input  */" \
16078       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16079       || as_fn_error "could not create -" "$LINENO" 5
16080   fi
16081 # Compute "$ac_file"'s index in $config_headers.
16082 _am_arg="$ac_file"
16083 _am_stamp_count=1
16084 for _am_header in $config_headers :; do
16085   case $_am_header in
16086     $_am_arg | $_am_arg:* )
16087       break ;;
16088     * )
16089       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16090   esac
16091 done
16092 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16093 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16094          X"$_am_arg" : 'X\(//\)[^/]' \| \
16095          X"$_am_arg" : 'X\(//\)$' \| \
16096          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16097 $as_echo X"$_am_arg" |
16098     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16099             s//\1/
16100             q
16101           }
16102           /^X\(\/\/\)[^/].*/{
16103             s//\1/
16104             q
16105           }
16106           /^X\(\/\/\)$/{
16107             s//\1/
16108             q
16109           }
16110           /^X\(\/\).*/{
16111             s//\1/
16112             q
16113           }
16114           s/.*/./; q'`/stamp-h$_am_stamp_count
16115  ;;
16116
16117   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16118 $as_echo "$as_me: executing $ac_file commands" >&6;}
16119  ;;
16120   esac
16121
16122
16123   case $ac_file$ac_mode in
16124     "default-1":C)
16125 # Only add multilib support code if we just rebuilt the top-level
16126 # Makefile.
16127 case " $CONFIG_FILES " in
16128  *" Makefile "*)
16129    ac_file=Makefile . ${multi_basedir}/config-ml.in
16130    ;;
16131 esac ;;
16132     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16133   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16134   # are listed without --file.  Let's play safe and only enable the eval
16135   # if we detect the quoting.
16136   case $CONFIG_FILES in
16137   *\'*) eval set x "$CONFIG_FILES" ;;
16138   *)   set x $CONFIG_FILES ;;
16139   esac
16140   shift
16141   for mf
16142   do
16143     # Strip MF so we end up with the name of the file.
16144     mf=`echo "$mf" | sed -e 's/:.*$//'`
16145     # Check whether this is an Automake generated Makefile or not.
16146     # We used to match only the files named `Makefile.in', but
16147     # some people rename them; so instead we look at the file content.
16148     # Grep'ing the first line is not enough: some people post-process
16149     # each Makefile.in and add a new line on top of each file to say so.
16150     # Grep'ing the whole file is not good either: AIX grep has a line
16151     # limit of 2048, but all sed's we know have understand at least 4000.
16152     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16153       dirpart=`$as_dirname -- "$mf" ||
16154 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16155          X"$mf" : 'X\(//\)[^/]' \| \
16156          X"$mf" : 'X\(//\)$' \| \
16157          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16158 $as_echo X"$mf" |
16159     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16160             s//\1/
16161             q
16162           }
16163           /^X\(\/\/\)[^/].*/{
16164             s//\1/
16165             q
16166           }
16167           /^X\(\/\/\)$/{
16168             s//\1/
16169             q
16170           }
16171           /^X\(\/\).*/{
16172             s//\1/
16173             q
16174           }
16175           s/.*/./; q'`
16176     else
16177       continue
16178     fi
16179     # Extract the definition of DEPDIR, am__include, and am__quote
16180     # from the Makefile without running `make'.
16181     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16182     test -z "$DEPDIR" && continue
16183     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16184     test -z "am__include" && continue
16185     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16186     # When using ansi2knr, U may be empty or an underscore; expand it
16187     U=`sed -n 's/^U = //p' < "$mf"`
16188     # Find all dependency output files, they are included files with
16189     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16190     # simplest approach to changing $(DEPDIR) to its actual value in the
16191     # expansion.
16192     for file in `sed -n "
16193       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16194          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16195       # Make sure the directory exists.
16196       test -f "$dirpart/$file" && continue
16197       fdir=`$as_dirname -- "$file" ||
16198 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16199          X"$file" : 'X\(//\)[^/]' \| \
16200          X"$file" : 'X\(//\)$' \| \
16201          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16202 $as_echo X"$file" |
16203     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16204             s//\1/
16205             q
16206           }
16207           /^X\(\/\/\)[^/].*/{
16208             s//\1/
16209             q
16210           }
16211           /^X\(\/\/\)$/{
16212             s//\1/
16213             q
16214           }
16215           /^X\(\/\).*/{
16216             s//\1/
16217             q
16218           }
16219           s/.*/./; q'`
16220       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16221       # echo "creating $dirpart/$file"
16222       echo '# dummy' > "$dirpart/$file"
16223     done
16224   done
16225 }
16226  ;;
16227     "libtool":C)
16228
16229     # See if we are running on zsh, and set the options which allow our
16230     # commands through without removal of \ escapes.
16231     if test -n "${ZSH_VERSION+set}" ; then
16232       setopt NO_GLOB_SUBST
16233     fi
16234
16235     cfgfile="${ofile}T"
16236     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16237     $RM "$cfgfile"
16238
16239     cat <<_LT_EOF >> "$cfgfile"
16240 #! $SHELL
16241
16242 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16243 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16244 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16245 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16246 #
16247 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16248 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16249 #   Written by Gordon Matzigkeit, 1996
16250 #
16251 #   This file is part of GNU Libtool.
16252 #
16253 # GNU Libtool is free software; you can redistribute it and/or
16254 # modify it under the terms of the GNU General Public License as
16255 # published by the Free Software Foundation; either version 2 of
16256 # the License, or (at your option) any later version.
16257 #
16258 # As a special exception to the GNU General Public License,
16259 # if you distribute this file as part of a program or library that
16260 # is built using GNU Libtool, you may include this file under the
16261 # same distribution terms that you use for the rest of that program.
16262 #
16263 # GNU Libtool is distributed in the hope that it will be useful,
16264 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16266 # GNU General Public License for more details.
16267 #
16268 # You should have received a copy of the GNU General Public License
16269 # along with GNU Libtool; see the file COPYING.  If not, a copy
16270 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16271 # obtained by writing to the Free Software Foundation, Inc.,
16272 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16273
16274
16275 # The names of the tagged configurations supported by this script.
16276 available_tags="GO "
16277
16278 # ### BEGIN LIBTOOL CONFIG
16279
16280 # A sed program that does not truncate output.
16281 SED=$lt_SED
16282
16283 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16284 Xsed="\$SED -e 1s/^X//"
16285
16286 # A grep program that handles long lines.
16287 GREP=$lt_GREP
16288
16289 # An ERE matcher.
16290 EGREP=$lt_EGREP
16291
16292 # A literal string matcher.
16293 FGREP=$lt_FGREP
16294
16295 # Shell to use when invoking shell scripts.
16296 SHELL=$lt_SHELL
16297
16298 # An echo program that protects backslashes.
16299 ECHO=$lt_ECHO
16300
16301 # Which release of libtool.m4 was used?
16302 macro_version=$macro_version
16303 macro_revision=$macro_revision
16304
16305 # Whether or not to build shared libraries.
16306 build_libtool_libs=$enable_shared
16307
16308 # Whether or not to build static libraries.
16309 build_old_libs=$enable_static
16310
16311 # What type of objects to build.
16312 pic_mode=$pic_mode
16313
16314 # Whether or not to optimize for fast installation.
16315 fast_install=$enable_fast_install
16316
16317 # The host system.
16318 host_alias=$host_alias
16319 host=$host
16320 host_os=$host_os
16321
16322 # The build system.
16323 build_alias=$build_alias
16324 build=$build
16325 build_os=$build_os
16326
16327 # A BSD- or MS-compatible name lister.
16328 NM=$lt_NM
16329
16330 # Whether we need soft or hard links.
16331 LN_S=$lt_LN_S
16332
16333 # What is the maximum length of a command?
16334 max_cmd_len=$max_cmd_len
16335
16336 # Object file suffix (normally "o").
16337 objext=$ac_objext
16338
16339 # Executable file suffix (normally "").
16340 exeext=$exeext
16341
16342 # whether the shell understands "unset".
16343 lt_unset=$lt_unset
16344
16345 # turn spaces into newlines.
16346 SP2NL=$lt_lt_SP2NL
16347
16348 # turn newlines into spaces.
16349 NL2SP=$lt_lt_NL2SP
16350
16351 # An object symbol dumper.
16352 OBJDUMP=$lt_OBJDUMP
16353
16354 # Method to check whether dependent libraries are shared objects.
16355 deplibs_check_method=$lt_deplibs_check_method
16356
16357 # Command to use when deplibs_check_method == "file_magic".
16358 file_magic_cmd=$lt_file_magic_cmd
16359
16360 # The archiver.
16361 AR=$lt_AR
16362 AR_FLAGS=$lt_AR_FLAGS
16363
16364 # A symbol stripping program.
16365 STRIP=$lt_STRIP
16366
16367 # Commands used to install an old-style archive.
16368 RANLIB=$lt_RANLIB
16369 old_postinstall_cmds=$lt_old_postinstall_cmds
16370 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16371
16372 # Whether to use a lock for old archive extraction.
16373 lock_old_archive_extraction=$lock_old_archive_extraction
16374
16375 # A C compiler.
16376 LTCC=$lt_CC
16377
16378 # LTCC compiler flags.
16379 LTCFLAGS=$lt_CFLAGS
16380
16381 # Take the output of nm and produce a listing of raw symbols and C names.
16382 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16383
16384 # Transform the output of nm in a proper C declaration.
16385 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16386
16387 # Transform the output of nm in a C name address pair.
16388 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16389
16390 # Transform the output of nm in a C name address pair when lib prefix is needed.
16391 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16392
16393 # The name of the directory that contains temporary libtool files.
16394 objdir=$objdir
16395
16396 # Used to examine libraries when file_magic_cmd begins with "file".
16397 MAGIC_CMD=$MAGIC_CMD
16398
16399 # Must we lock files when doing compilation?
16400 need_locks=$lt_need_locks
16401
16402 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16403 DSYMUTIL=$lt_DSYMUTIL
16404
16405 # Tool to change global to local symbols on Mac OS X.
16406 NMEDIT=$lt_NMEDIT
16407
16408 # Tool to manipulate fat objects and archives on Mac OS X.
16409 LIPO=$lt_LIPO
16410
16411 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16412 OTOOL=$lt_OTOOL
16413
16414 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16415 OTOOL64=$lt_OTOOL64
16416
16417 # Old archive suffix (normally "a").
16418 libext=$libext
16419
16420 # Shared library suffix (normally ".so").
16421 shrext_cmds=$lt_shrext_cmds
16422
16423 # The commands to extract the exported symbol list from a shared archive.
16424 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16425
16426 # Variables whose values should be saved in libtool wrapper scripts and
16427 # restored at link time.
16428 variables_saved_for_relink=$lt_variables_saved_for_relink
16429
16430 # Do we need the "lib" prefix for modules?
16431 need_lib_prefix=$need_lib_prefix
16432
16433 # Do we need a version for libraries?
16434 need_version=$need_version
16435
16436 # Library versioning type.
16437 version_type=$version_type
16438
16439 # Shared library runtime path variable.
16440 runpath_var=$runpath_var
16441
16442 # Shared library path variable.
16443 shlibpath_var=$shlibpath_var
16444
16445 # Is shlibpath searched before the hard-coded library search path?
16446 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16447
16448 # Format of library name prefix.
16449 libname_spec=$lt_libname_spec
16450
16451 # List of archive names.  First name is the real one, the rest are links.
16452 # The last name is the one that the linker finds with -lNAME
16453 library_names_spec=$lt_library_names_spec
16454
16455 # The coded name of the library, if different from the real name.
16456 soname_spec=$lt_soname_spec
16457
16458 # Permission mode override for installation of shared libraries.
16459 install_override_mode=$lt_install_override_mode
16460
16461 # Command to use after installation of a shared archive.
16462 postinstall_cmds=$lt_postinstall_cmds
16463
16464 # Command to use after uninstallation of a shared archive.
16465 postuninstall_cmds=$lt_postuninstall_cmds
16466
16467 # Commands used to finish a libtool library installation in a directory.
16468 finish_cmds=$lt_finish_cmds
16469
16470 # As "finish_cmds", except a single script fragment to be evaled but
16471 # not shown.
16472 finish_eval=$lt_finish_eval
16473
16474 # Whether we should hardcode library paths into libraries.
16475 hardcode_into_libs=$hardcode_into_libs
16476
16477 # Compile-time system search path for libraries.
16478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16479
16480 # Run-time system search path for libraries.
16481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16482
16483 # Whether dlopen is supported.
16484 dlopen_support=$enable_dlopen
16485
16486 # Whether dlopen of programs is supported.
16487 dlopen_self=$enable_dlopen_self
16488
16489 # Whether dlopen of statically linked programs is supported.
16490 dlopen_self_static=$enable_dlopen_self_static
16491
16492 # Commands to strip libraries.
16493 old_striplib=$lt_old_striplib
16494 striplib=$lt_striplib
16495
16496
16497 # The linker used to build libraries.
16498 LD=$lt_LD
16499
16500 # How to create reloadable object files.
16501 reload_flag=$lt_reload_flag
16502 reload_cmds=$lt_reload_cmds
16503
16504 # Commands used to build an old-style archive.
16505 old_archive_cmds=$lt_old_archive_cmds
16506
16507 # A language specific compiler.
16508 CC=$lt_compiler
16509
16510 # Is the compiler the GNU compiler?
16511 with_gcc=$GCC
16512
16513 # Compiler flag to turn off builtin functions.
16514 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16515
16516 # How to pass a linker flag through the compiler.
16517 wl=$lt_lt_prog_compiler_wl
16518
16519 # Additional compiler flags for building library objects.
16520 pic_flag=$lt_lt_prog_compiler_pic
16521
16522 # Compiler flag to prevent dynamic linking.
16523 link_static_flag=$lt_lt_prog_compiler_static
16524
16525 # Does compiler simultaneously support -c and -o options?
16526 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16527
16528 # Whether or not to add -lc for building shared libraries.
16529 build_libtool_need_lc=$archive_cmds_need_lc
16530
16531 # Whether or not to disallow shared libs when runtime libs are static.
16532 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16533
16534 # Compiler flag to allow reflexive dlopens.
16535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16536
16537 # Compiler flag to generate shared objects directly from archives.
16538 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16539
16540 # Whether the compiler copes with passing no objects directly.
16541 compiler_needs_object=$lt_compiler_needs_object
16542
16543 # Create an old-style archive from a shared archive.
16544 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16545
16546 # Create a temporary old-style archive to link instead of a shared archive.
16547 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16548
16549 # Commands used to build a shared archive.
16550 archive_cmds=$lt_archive_cmds
16551 archive_expsym_cmds=$lt_archive_expsym_cmds
16552
16553 # Commands used to build a loadable module if different from building
16554 # a shared archive.
16555 module_cmds=$lt_module_cmds
16556 module_expsym_cmds=$lt_module_expsym_cmds
16557
16558 # Whether we are building with GNU ld or not.
16559 with_gnu_ld=$lt_with_gnu_ld
16560
16561 # Flag that allows shared libraries with undefined symbols to be built.
16562 allow_undefined_flag=$lt_allow_undefined_flag
16563
16564 # Flag that enforces no undefined symbols.
16565 no_undefined_flag=$lt_no_undefined_flag
16566
16567 # Flag to hardcode \$libdir into a binary during linking.
16568 # This must work even if \$libdir does not exist
16569 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16570
16571 # If ld is used when linking, flag to hardcode \$libdir into a binary
16572 # during linking.  This must work even if \$libdir does not exist.
16573 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16574
16575 # Whether we need a single "-rpath" flag with a separated argument.
16576 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16577
16578 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16579 # DIR into the resulting binary.
16580 hardcode_direct=$hardcode_direct
16581
16582 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16583 # DIR into the resulting binary and the resulting library dependency is
16584 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16585 # library is relocated.
16586 hardcode_direct_absolute=$hardcode_direct_absolute
16587
16588 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16589 # into the resulting binary.
16590 hardcode_minus_L=$hardcode_minus_L
16591
16592 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16593 # into the resulting binary.
16594 hardcode_shlibpath_var=$hardcode_shlibpath_var
16595
16596 # Set to "yes" if building a shared library automatically hardcodes DIR
16597 # into the library and all subsequent libraries and executables linked
16598 # against it.
16599 hardcode_automatic=$hardcode_automatic
16600
16601 # Set to yes if linker adds runtime paths of dependent libraries
16602 # to runtime path list.
16603 inherit_rpath=$inherit_rpath
16604
16605 # Whether libtool must link a program against all its dependency libraries.
16606 link_all_deplibs=$link_all_deplibs
16607
16608 # Fix the shell variable \$srcfile for the compiler.
16609 fix_srcfile_path=$lt_fix_srcfile_path
16610
16611 # Set to "yes" if exported symbols are required.
16612 always_export_symbols=$always_export_symbols
16613
16614 # The commands to list exported symbols.
16615 export_symbols_cmds=$lt_export_symbols_cmds
16616
16617 # Symbols that should not be listed in the preloaded symbols.
16618 exclude_expsyms=$lt_exclude_expsyms
16619
16620 # Symbols that must always be exported.
16621 include_expsyms=$lt_include_expsyms
16622
16623 # Commands necessary for linking programs (against libraries) with templates.
16624 prelink_cmds=$lt_prelink_cmds
16625
16626 # Specify filename containing input files.
16627 file_list_spec=$lt_file_list_spec
16628
16629 # How to hardcode a shared library path into an executable.
16630 hardcode_action=$hardcode_action
16631
16632 # ### END LIBTOOL CONFIG
16633
16634 _LT_EOF
16635
16636   case $host_os in
16637   aix3*)
16638     cat <<\_LT_EOF >> "$cfgfile"
16639 # AIX sometimes has problems with the GCC collect2 program.  For some
16640 # reason, if we set the COLLECT_NAMES environment variable, the problems
16641 # vanish in a puff of smoke.
16642 if test "X${COLLECT_NAMES+set}" != Xset; then
16643   COLLECT_NAMES=
16644   export COLLECT_NAMES
16645 fi
16646 _LT_EOF
16647     ;;
16648   esac
16649
16650
16651 ltmain="$ac_aux_dir/ltmain.sh"
16652
16653
16654   # We use sed instead of cat because bash on DJGPP gets confused if
16655   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16656   # text mode, it properly converts lines to CR/LF.  This bash problem
16657   # is reportedly fixed, but why not run on old versions too?
16658   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16659     || (rm -f "$cfgfile"; exit 1)
16660
16661   case $xsi_shell in
16662   yes)
16663     cat << \_LT_EOF >> "$cfgfile"
16664
16665 # func_dirname file append nondir_replacement
16666 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16667 # otherwise set result to NONDIR_REPLACEMENT.
16668 func_dirname ()
16669 {
16670   case ${1} in
16671     */*) func_dirname_result="${1%/*}${2}" ;;
16672     *  ) func_dirname_result="${3}" ;;
16673   esac
16674 }
16675
16676 # func_basename file
16677 func_basename ()
16678 {
16679   func_basename_result="${1##*/}"
16680 }
16681
16682 # func_dirname_and_basename file append nondir_replacement
16683 # perform func_basename and func_dirname in a single function
16684 # call:
16685 #   dirname:  Compute the dirname of FILE.  If nonempty,
16686 #             add APPEND to the result, otherwise set result
16687 #             to NONDIR_REPLACEMENT.
16688 #             value returned in "$func_dirname_result"
16689 #   basename: Compute filename of FILE.
16690 #             value retuned in "$func_basename_result"
16691 # Implementation must be kept synchronized with func_dirname
16692 # and func_basename. For efficiency, we do not delegate to
16693 # those functions but instead duplicate the functionality here.
16694 func_dirname_and_basename ()
16695 {
16696   case ${1} in
16697     */*) func_dirname_result="${1%/*}${2}" ;;
16698     *  ) func_dirname_result="${3}" ;;
16699   esac
16700   func_basename_result="${1##*/}"
16701 }
16702
16703 # func_stripname prefix suffix name
16704 # strip PREFIX and SUFFIX off of NAME.
16705 # PREFIX and SUFFIX must not contain globbing or regex special
16706 # characters, hashes, percent signs, but SUFFIX may contain a leading
16707 # dot (in which case that matches only a dot).
16708 func_stripname ()
16709 {
16710   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16711   # positional parameters, so assign one to ordinary parameter first.
16712   func_stripname_result=${3}
16713   func_stripname_result=${func_stripname_result#"${1}"}
16714   func_stripname_result=${func_stripname_result%"${2}"}
16715 }
16716
16717 # func_opt_split
16718 func_opt_split ()
16719 {
16720   func_opt_split_opt=${1%%=*}
16721   func_opt_split_arg=${1#*=}
16722 }
16723
16724 # func_lo2o object
16725 func_lo2o ()
16726 {
16727   case ${1} in
16728     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16729     *)    func_lo2o_result=${1} ;;
16730   esac
16731 }
16732
16733 # func_xform libobj-or-source
16734 func_xform ()
16735 {
16736   func_xform_result=${1%.*}.lo
16737 }
16738
16739 # func_arith arithmetic-term...
16740 func_arith ()
16741 {
16742   func_arith_result=$(( $* ))
16743 }
16744
16745 # func_len string
16746 # STRING may not start with a hyphen.
16747 func_len ()
16748 {
16749   func_len_result=${#1}
16750 }
16751
16752 _LT_EOF
16753     ;;
16754   *) # Bourne compatible functions.
16755     cat << \_LT_EOF >> "$cfgfile"
16756
16757 # func_dirname file append nondir_replacement
16758 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16759 # otherwise set result to NONDIR_REPLACEMENT.
16760 func_dirname ()
16761 {
16762   # Extract subdirectory from the argument.
16763   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16764   if test "X$func_dirname_result" = "X${1}"; then
16765     func_dirname_result="${3}"
16766   else
16767     func_dirname_result="$func_dirname_result${2}"
16768   fi
16769 }
16770
16771 # func_basename file
16772 func_basename ()
16773 {
16774   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16775 }
16776
16777
16778 # func_stripname prefix suffix name
16779 # strip PREFIX and SUFFIX off of NAME.
16780 # PREFIX and SUFFIX must not contain globbing or regex special
16781 # characters, hashes, percent signs, but SUFFIX may contain a leading
16782 # dot (in which case that matches only a dot).
16783 # func_strip_suffix prefix name
16784 func_stripname ()
16785 {
16786   case ${2} in
16787     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16788     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16789   esac
16790 }
16791
16792 # sed scripts:
16793 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16794 my_sed_long_arg='1s/^-[^=]*=//'
16795
16796 # func_opt_split
16797 func_opt_split ()
16798 {
16799   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16800   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16801 }
16802
16803 # func_lo2o object
16804 func_lo2o ()
16805 {
16806   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16807 }
16808
16809 # func_xform libobj-or-source
16810 func_xform ()
16811 {
16812   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16813 }
16814
16815 # func_arith arithmetic-term...
16816 func_arith ()
16817 {
16818   func_arith_result=`expr "$@"`
16819 }
16820
16821 # func_len string
16822 # STRING may not start with a hyphen.
16823 func_len ()
16824 {
16825   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16826 }
16827
16828 _LT_EOF
16829 esac
16830
16831 case $lt_shell_append in
16832   yes)
16833     cat << \_LT_EOF >> "$cfgfile"
16834
16835 # func_append var value
16836 # Append VALUE to the end of shell variable VAR.
16837 func_append ()
16838 {
16839   eval "$1+=\$2"
16840 }
16841 _LT_EOF
16842     ;;
16843   *)
16844     cat << \_LT_EOF >> "$cfgfile"
16845
16846 # func_append var value
16847 # Append VALUE to the end of shell variable VAR.
16848 func_append ()
16849 {
16850   eval "$1=\$$1\$2"
16851 }
16852
16853 _LT_EOF
16854     ;;
16855   esac
16856
16857
16858   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16859     || (rm -f "$cfgfile"; exit 1)
16860
16861   mv -f "$cfgfile" "$ofile" ||
16862     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16863   chmod +x "$ofile"
16864
16865
16866     cat <<_LT_EOF >> "$ofile"
16867
16868 # ### BEGIN LIBTOOL TAG CONFIG: GO
16869
16870 # The linker used to build libraries.
16871 LD=$lt_LD_GO
16872
16873 # How to create reloadable object files.
16874 reload_flag=$lt_reload_flag_GO
16875 reload_cmds=$lt_reload_cmds_GO
16876
16877 # Commands used to build an old-style archive.
16878 old_archive_cmds=$lt_old_archive_cmds_GO
16879
16880 # A language specific compiler.
16881 CC=$lt_compiler_GO
16882
16883 # Is the compiler the GNU compiler?
16884 with_gcc=$GCC_GO
16885
16886 # Compiler flag to turn off builtin functions.
16887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16888
16889 # How to pass a linker flag through the compiler.
16890 wl=$lt_lt_prog_compiler_wl_GO
16891
16892 # Additional compiler flags for building library objects.
16893 pic_flag=$lt_lt_prog_compiler_pic_GO
16894
16895 # Compiler flag to prevent dynamic linking.
16896 link_static_flag=$lt_lt_prog_compiler_static_GO
16897
16898 # Does compiler simultaneously support -c and -o options?
16899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16900
16901 # Whether or not to add -lc for building shared libraries.
16902 build_libtool_need_lc=$archive_cmds_need_lc_GO
16903
16904 # Whether or not to disallow shared libs when runtime libs are static.
16905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16906
16907 # Compiler flag to allow reflexive dlopens.
16908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16909
16910 # Compiler flag to generate shared objects directly from archives.
16911 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16912
16913 # Whether the compiler copes with passing no objects directly.
16914 compiler_needs_object=$lt_compiler_needs_object_GO
16915
16916 # Create an old-style archive from a shared archive.
16917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16918
16919 # Create a temporary old-style archive to link instead of a shared archive.
16920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16921
16922 # Commands used to build a shared archive.
16923 archive_cmds=$lt_archive_cmds_GO
16924 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16925
16926 # Commands used to build a loadable module if different from building
16927 # a shared archive.
16928 module_cmds=$lt_module_cmds_GO
16929 module_expsym_cmds=$lt_module_expsym_cmds_GO
16930
16931 # Whether we are building with GNU ld or not.
16932 with_gnu_ld=$lt_with_gnu_ld_GO
16933
16934 # Flag that allows shared libraries with undefined symbols to be built.
16935 allow_undefined_flag=$lt_allow_undefined_flag_GO
16936
16937 # Flag that enforces no undefined symbols.
16938 no_undefined_flag=$lt_no_undefined_flag_GO
16939
16940 # Flag to hardcode \$libdir into a binary during linking.
16941 # This must work even if \$libdir does not exist
16942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16943
16944 # If ld is used when linking, flag to hardcode \$libdir into a binary
16945 # during linking.  This must work even if \$libdir does not exist.
16946 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16947
16948 # Whether we need a single "-rpath" flag with a separated argument.
16949 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16950
16951 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16952 # DIR into the resulting binary.
16953 hardcode_direct=$hardcode_direct_GO
16954
16955 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16956 # DIR into the resulting binary and the resulting library dependency is
16957 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16958 # library is relocated.
16959 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16960
16961 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16962 # into the resulting binary.
16963 hardcode_minus_L=$hardcode_minus_L_GO
16964
16965 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16966 # into the resulting binary.
16967 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16968
16969 # Set to "yes" if building a shared library automatically hardcodes DIR
16970 # into the library and all subsequent libraries and executables linked
16971 # against it.
16972 hardcode_automatic=$hardcode_automatic_GO
16973
16974 # Set to yes if linker adds runtime paths of dependent libraries
16975 # to runtime path list.
16976 inherit_rpath=$inherit_rpath_GO
16977
16978 # Whether libtool must link a program against all its dependency libraries.
16979 link_all_deplibs=$link_all_deplibs_GO
16980
16981 # Fix the shell variable \$srcfile for the compiler.
16982 fix_srcfile_path=$lt_fix_srcfile_path_GO
16983
16984 # Set to "yes" if exported symbols are required.
16985 always_export_symbols=$always_export_symbols_GO
16986
16987 # The commands to list exported symbols.
16988 export_symbols_cmds=$lt_export_symbols_cmds_GO
16989
16990 # Symbols that should not be listed in the preloaded symbols.
16991 exclude_expsyms=$lt_exclude_expsyms_GO
16992
16993 # Symbols that must always be exported.
16994 include_expsyms=$lt_include_expsyms_GO
16995
16996 # Commands necessary for linking programs (against libraries) with templates.
16997 prelink_cmds=$lt_prelink_cmds_GO
16998
16999 # Specify filename containing input files.
17000 file_list_spec=$lt_file_list_spec_GO
17001
17002 # How to hardcode a shared library path into an executable.
17003 hardcode_action=$hardcode_action_GO
17004
17005 # ### END LIBTOOL TAG CONFIG: GO
17006 _LT_EOF
17007
17008  ;;
17009     "default":C) if test -n "$CONFIG_FILES"; then
17010    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17011    # that multilib installs will end up installed in the correct place.
17012    # The testsuite needs it for multilib-aware ABI baseline files.
17013    # To work around this not being passed down from config-ml.in ->
17014    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17015    # append it here.  Only modify Makefiles that have just been created.
17016    #
17017    # Also, get rid of this simulated-VPATH thing that automake does.
17018    cat > vpsed << \_EOF
17019 s!`test -f '$<' || echo '$(srcdir)/'`!!
17020 _EOF
17021    for i in $SUBDIRS; do
17022     case $CONFIG_FILES in
17023      *${i}/Makefile*)
17024        #echo "Adding MULTISUBDIR to $i/Makefile"
17025        sed -f vpsed $i/Makefile > tmp
17026        grep '^MULTISUBDIR =' Makefile >> tmp
17027        mv tmp $i/Makefile
17028        ;;
17029     esac
17030    done
17031    rm vpsed
17032  fi
17033  ;;
17034
17035   esac
17036 done # for ac_tag
17037
17038
17039 as_fn_exit 0
17040 _ACEOF
17041 ac_clean_files=$ac_clean_files_save
17042
17043 test $ac_write_fail = 0 ||
17044   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17045
17046
17047 # configure is writing to config.log, and then calls config.status.
17048 # config.status does its own redirection, appending to config.log.
17049 # Unfortunately, on DOS this fails, as config.log is still kept open
17050 # by configure, so config.status won't be able to write to it; its
17051 # output is simply discarded.  So we exec the FD to /dev/null,
17052 # effectively closing config.log, so it can be properly (re)opened and
17053 # appended to by config.status.  When coming back to configure, we
17054 # need to make the FD available again.
17055 if test "$no_create" != yes; then
17056   ac_cs_success=:
17057   ac_config_status_args=
17058   test "$silent" = yes &&
17059     ac_config_status_args="$ac_config_status_args --quiet"
17060   exec 5>/dev/null
17061   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17062   exec 5>>config.log
17063   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17064   # would make configure fail if this is the last instruction.
17065   $ac_cs_success || as_fn_exit $?
17066 fi
17067 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17068   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17069 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17070 fi
17071