OSDN Git Service

2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
[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 OSCFLAGS
620 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
621 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
622 GOARCH
623 LIBGO_IS_X86_64_FALSE
624 LIBGO_IS_X86_64_TRUE
625 LIBGO_IS_SPARC64_FALSE
626 LIBGO_IS_SPARC64_TRUE
627 LIBGO_IS_SPARC_FALSE
628 LIBGO_IS_SPARC_TRUE
629 LIBGO_IS_PPC64_FALSE
630 LIBGO_IS_PPC64_TRUE
631 LIBGO_IS_PPC_FALSE
632 LIBGO_IS_PPC_TRUE
633 LIBGO_IS_MIPSO64_FALSE
634 LIBGO_IS_MIPSO64_TRUE
635 LIBGO_IS_MIPSN64_FALSE
636 LIBGO_IS_MIPSN64_TRUE
637 LIBGO_IS_MIPSN32_FALSE
638 LIBGO_IS_MIPSN32_TRUE
639 LIBGO_IS_MIPSO32_FALSE
640 LIBGO_IS_MIPSO32_TRUE
641 LIBGO_IS_MIPS_FALSE
642 LIBGO_IS_MIPS_TRUE
643 LIBGO_IS_M68K_FALSE
644 LIBGO_IS_M68K_TRUE
645 LIBGO_IS_ARM_FALSE
646 LIBGO_IS_ARM_TRUE
647 LIBGO_IS_ALPHA_FALSE
648 LIBGO_IS_ALPHA_TRUE
649 LIBGO_IS_386_FALSE
650 LIBGO_IS_386_TRUE
651 GOOS
652 LIBGO_IS_SOLARIS_FALSE
653 LIBGO_IS_SOLARIS_TRUE
654 LIBGO_IS_RTEMS_FALSE
655 LIBGO_IS_RTEMS_TRUE
656 LIBGO_IS_LINUX_FALSE
657 LIBGO_IS_LINUX_TRUE
658 LIBGO_IS_IRIX_FALSE
659 LIBGO_IS_IRIX_TRUE
660 LIBGO_IS_FREEBSD_FALSE
661 LIBGO_IS_FREEBSD_TRUE
662 LIBGO_IS_DARWIN_FALSE
663 LIBGO_IS_DARWIN_TRUE
664 LIBFFIINCS
665 LIBFFI
666 glibgo_toolexeclibdir
667 glibgo_toolexecdir
668 glibgo_prefixdir
669 WERROR
670 WARN_FLAGS
671 enable_static
672 enable_shared
673 CPP
674 OTOOL64
675 OTOOL
676 LIPO
677 NMEDIT
678 DSYMUTIL
679 AR
680 OBJDUMP
681 LN_S
682 NM
683 ac_ct_DUMPBIN
684 DUMPBIN
685 LIBTOOL
686 OBJCOPY
687 RANLIB
688 LD
689 FGREP
690 EGREP
691 GREP
692 SED
693 MAINT
694 MAINTAINER_MODE_FALSE
695 MAINTAINER_MODE_TRUE
696 GOCFLAGS
697 GOC
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 OBJEXT
708 EXEEXT
709 ac_ct_CC
710 CPPFLAGS
711 LDFLAGS
712 CFLAGS
713 CC
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 multi_basedir
750 libtool_VERSION
751 target_alias
752 host_alias
753 build_alias
754 LIBS
755 ECHO_T
756 ECHO_N
757 ECHO_C
758 DEFS
759 mandir
760 localedir
761 libdir
762 psdir
763 pdfdir
764 dvidir
765 htmldir
766 infodir
767 docdir
768 oldincludedir
769 includedir
770 localstatedir
771 sharedstatedir
772 sysconfdir
773 datadir
774 datarootdir
775 libexecdir
776 sbindir
777 bindir
778 program_transform_name
779 prefix
780 exec_prefix
781 PACKAGE_URL
782 PACKAGE_BUGREPORT
783 PACKAGE_STRING
784 PACKAGE_VERSION
785 PACKAGE_TARNAME
786 PACKAGE_NAME
787 PATH_SEPARATOR
788 SHELL'
789 ac_subst_files=''
790 ac_user_opts='
791 enable_option_checking
792 enable_multilib
793 enable_dependency_tracking
794 enable_maintainer_mode
795 with_gnu_ld
796 enable_shared
797 enable_static
798 with_pic
799 enable_fast_install
800 enable_libtool_lock
801 enable_version_specific_runtime_libs
802 with_libffi
803 with_system_libunwind
804 enable_sjlj_exceptions
805 '
806       ac_precious_vars='build_alias
807 host_alias
808 target_alias
809 CPP
810 CPPFLAGS'
811
812
813 # Initialize some variables set by options.
814 ac_init_help=
815 ac_init_version=false
816 ac_unrecognized_opts=
817 ac_unrecognized_sep=
818 # The variables have the same names as the options, with
819 # dashes changed to underlines.
820 cache_file=/dev/null
821 exec_prefix=NONE
822 no_create=
823 no_recursion=
824 prefix=NONE
825 program_prefix=NONE
826 program_suffix=NONE
827 program_transform_name=s,x,x,
828 silent=
829 site=
830 srcdir=
831 verbose=
832 x_includes=NONE
833 x_libraries=NONE
834
835 # Installation directory options.
836 # These are left unexpanded so users can "make install exec_prefix=/foo"
837 # and all the variables that are supposed to be based on exec_prefix
838 # by default will actually change.
839 # Use braces instead of parens because sh, perl, etc. also accept them.
840 # (The list follows the same order as the GNU Coding Standards.)
841 bindir='${exec_prefix}/bin'
842 sbindir='${exec_prefix}/sbin'
843 libexecdir='${exec_prefix}/libexec'
844 datarootdir='${prefix}/share'
845 datadir='${datarootdir}'
846 sysconfdir='${prefix}/etc'
847 sharedstatedir='${prefix}/com'
848 localstatedir='${prefix}/var'
849 includedir='${prefix}/include'
850 oldincludedir='/usr/include'
851 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
852 infodir='${datarootdir}/info'
853 htmldir='${docdir}'
854 dvidir='${docdir}'
855 pdfdir='${docdir}'
856 psdir='${docdir}'
857 libdir='${exec_prefix}/lib'
858 localedir='${datarootdir}/locale'
859 mandir='${datarootdir}/man'
860
861 ac_prev=
862 ac_dashdash=
863 for ac_option
864 do
865   # If the previous option needs an argument, assign it.
866   if test -n "$ac_prev"; then
867     eval $ac_prev=\$ac_option
868     ac_prev=
869     continue
870   fi
871
872   case $ac_option in
873   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874   *)    ac_optarg=yes ;;
875   esac
876
877   # Accept the important Cygnus configure options, so we can diagnose typos.
878
879   case $ac_dashdash$ac_option in
880   --)
881     ac_dashdash=yes ;;
882
883   -bindir | --bindir | --bindi | --bind | --bin | --bi)
884     ac_prev=bindir ;;
885   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886     bindir=$ac_optarg ;;
887
888   -build | --build | --buil | --bui | --bu)
889     ac_prev=build_alias ;;
890   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
891     build_alias=$ac_optarg ;;
892
893   -cache-file | --cache-file | --cache-fil | --cache-fi \
894   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
895     ac_prev=cache_file ;;
896   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
897   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
898     cache_file=$ac_optarg ;;
899
900   --config-cache | -C)
901     cache_file=config.cache ;;
902
903   -datadir | --datadir | --datadi | --datad)
904     ac_prev=datadir ;;
905   -datadir=* | --datadir=* | --datadi=* | --datad=*)
906     datadir=$ac_optarg ;;
907
908   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
909   | --dataroo | --dataro | --datar)
910     ac_prev=datarootdir ;;
911   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
912   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
913     datarootdir=$ac_optarg ;;
914
915   -disable-* | --disable-*)
916     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
917     # Reject names that are not valid shell variable names.
918     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919       as_fn_error "invalid feature name: $ac_useropt"
920     ac_useropt_orig=$ac_useropt
921     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922     case $ac_user_opts in
923       *"
924 "enable_$ac_useropt"
925 "*) ;;
926       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
927          ac_unrecognized_sep=', ';;
928     esac
929     eval enable_$ac_useropt=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945       as_fn_error "invalid feature name: $ac_useropt"
946     ac_useropt_orig=$ac_useropt
947     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948     case $ac_user_opts in
949       *"
950 "enable_$ac_useropt"
951 "*) ;;
952       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
953          ac_unrecognized_sep=', ';;
954     esac
955     eval enable_$ac_useropt=\$ac_optarg ;;
956
957   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959   | --exec | --exe | --ex)
960     ac_prev=exec_prefix ;;
961   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963   | --exec=* | --exe=* | --ex=*)
964     exec_prefix=$ac_optarg ;;
965
966   -gas | --gas | --ga | --g)
967     # Obsolete; use --with-gas.
968     with_gas=yes ;;
969
970   -help | --help | --hel | --he | -h)
971     ac_init_help=long ;;
972   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973     ac_init_help=recursive ;;
974   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975     ac_init_help=short ;;
976
977   -host | --host | --hos | --ho)
978     ac_prev=host_alias ;;
979   -host=* | --host=* | --hos=* | --ho=*)
980     host_alias=$ac_optarg ;;
981
982   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983     ac_prev=htmldir ;;
984   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985   | --ht=*)
986     htmldir=$ac_optarg ;;
987
988   -includedir | --includedir | --includedi | --included | --include \
989   | --includ | --inclu | --incl | --inc)
990     ac_prev=includedir ;;
991   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992   | --includ=* | --inclu=* | --incl=* | --inc=*)
993     includedir=$ac_optarg ;;
994
995   -infodir | --infodir | --infodi | --infod | --info | --inf)
996     ac_prev=infodir ;;
997   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998     infodir=$ac_optarg ;;
999
1000   -libdir | --libdir | --libdi | --libd)
1001     ac_prev=libdir ;;
1002   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003     libdir=$ac_optarg ;;
1004
1005   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006   | --libexe | --libex | --libe)
1007     ac_prev=libexecdir ;;
1008   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009   | --libexe=* | --libex=* | --libe=*)
1010     libexecdir=$ac_optarg ;;
1011
1012   -localedir | --localedir | --localedi | --localed | --locale)
1013     ac_prev=localedir ;;
1014   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015     localedir=$ac_optarg ;;
1016
1017   -localstatedir | --localstatedir | --localstatedi | --localstated \
1018   | --localstate | --localstat | --localsta | --localst | --locals)
1019     ac_prev=localstatedir ;;
1020   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022     localstatedir=$ac_optarg ;;
1023
1024   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025     ac_prev=mandir ;;
1026   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027     mandir=$ac_optarg ;;
1028
1029   -nfp | --nfp | --nf)
1030     # Obsolete; use --without-fp.
1031     with_fp=no ;;
1032
1033   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034   | --no-cr | --no-c | -n)
1035     no_create=yes ;;
1036
1037   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039     no_recursion=yes ;;
1040
1041   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043   | --oldin | --oldi | --old | --ol | --o)
1044     ac_prev=oldincludedir ;;
1045   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048     oldincludedir=$ac_optarg ;;
1049
1050   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051     ac_prev=prefix ;;
1052   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053     prefix=$ac_optarg ;;
1054
1055   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056   | --program-pre | --program-pr | --program-p)
1057     ac_prev=program_prefix ;;
1058   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060     program_prefix=$ac_optarg ;;
1061
1062   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063   | --program-suf | --program-su | --program-s)
1064     ac_prev=program_suffix ;;
1065   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067     program_suffix=$ac_optarg ;;
1068
1069   -program-transform-name | --program-transform-name \
1070   | --program-transform-nam | --program-transform-na \
1071   | --program-transform-n | --program-transform- \
1072   | --program-transform | --program-transfor \
1073   | --program-transfo | --program-transf \
1074   | --program-trans | --program-tran \
1075   | --progr-tra | --program-tr | --program-t)
1076     ac_prev=program_transform_name ;;
1077   -program-transform-name=* | --program-transform-name=* \
1078   | --program-transform-nam=* | --program-transform-na=* \
1079   | --program-transform-n=* | --program-transform-=* \
1080   | --program-transform=* | --program-transfor=* \
1081   | --program-transfo=* | --program-transf=* \
1082   | --program-trans=* | --program-tran=* \
1083   | --progr-tra=* | --program-tr=* | --program-t=*)
1084     program_transform_name=$ac_optarg ;;
1085
1086   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087     ac_prev=pdfdir ;;
1088   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089     pdfdir=$ac_optarg ;;
1090
1091   -psdir | --psdir | --psdi | --psd | --ps)
1092     ac_prev=psdir ;;
1093   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094     psdir=$ac_optarg ;;
1095
1096   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097   | -silent | --silent | --silen | --sile | --sil)
1098     silent=yes ;;
1099
1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101     ac_prev=sbindir ;;
1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103   | --sbi=* | --sb=*)
1104     sbindir=$ac_optarg ;;
1105
1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108   | --sharedst | --shareds | --shared | --share | --shar \
1109   | --sha | --sh)
1110     ac_prev=sharedstatedir ;;
1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114   | --sha=* | --sh=*)
1115     sharedstatedir=$ac_optarg ;;
1116
1117   -site | --site | --sit)
1118     ac_prev=site ;;
1119   -site=* | --site=* | --sit=*)
1120     site=$ac_optarg ;;
1121
1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123     ac_prev=srcdir ;;
1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125     srcdir=$ac_optarg ;;
1126
1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128   | --syscon | --sysco | --sysc | --sys | --sy)
1129     ac_prev=sysconfdir ;;
1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132     sysconfdir=$ac_optarg ;;
1133
1134   -target | --target | --targe | --targ | --tar | --ta | --t)
1135     ac_prev=target_alias ;;
1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137     target_alias=$ac_optarg ;;
1138
1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140     verbose=yes ;;
1141
1142   -version | --version | --versio | --versi | --vers | -V)
1143     ac_init_version=: ;;
1144
1145   -with-* | --with-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error "invalid package name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval with_$ac_useropt=\$ac_optarg ;;
1160
1161   -without-* | --without-*)
1162     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165       as_fn_error "invalid package name: $ac_useropt"
1166     ac_useropt_orig=$ac_useropt
1167     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168     case $ac_user_opts in
1169       *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173          ac_unrecognized_sep=', ';;
1174     esac
1175     eval with_$ac_useropt=no ;;
1176
1177   --x)
1178     # Obsolete; use --with-x.
1179     with_x=yes ;;
1180
1181   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182   | --x-incl | --x-inc | --x-in | --x-i)
1183     ac_prev=x_includes ;;
1184   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186     x_includes=$ac_optarg ;;
1187
1188   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190     ac_prev=x_libraries ;;
1191   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193     x_libraries=$ac_optarg ;;
1194
1195   -*) as_fn_error "unrecognized option: \`$ac_option'
1196 Try \`$0 --help' for more information."
1197     ;;
1198
1199   *=*)
1200     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201     # Reject names that are not valid shell variable names.
1202     case $ac_envvar in #(
1203       '' | [0-9]* | *[!_$as_cr_alnum]* )
1204       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1205     esac
1206     eval $ac_envvar=\$ac_optarg
1207     export $ac_envvar ;;
1208
1209   *)
1210     # FIXME: should be removed in autoconf 3.0.
1211     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1212     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1214     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1215     ;;
1216
1217   esac
1218 done
1219
1220 if test -n "$ac_prev"; then
1221   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222   as_fn_error "missing argument to $ac_option"
1223 fi
1224
1225 if test -n "$ac_unrecognized_opts"; then
1226   case $enable_option_checking in
1227     no) ;;
1228     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1229     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230   esac
1231 fi
1232
1233 # Check all directory arguments for consistency.
1234 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235                 datadir sysconfdir sharedstatedir localstatedir includedir \
1236                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237                 libdir localedir mandir
1238 do
1239   eval ac_val=\$$ac_var
1240   # Remove trailing slashes.
1241   case $ac_val in
1242     */ )
1243       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244       eval $ac_var=\$ac_val;;
1245   esac
1246   # Be sure to have absolute directory names.
1247   case $ac_val in
1248     [\\/$]* | ?:[\\/]* )  continue;;
1249     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250   esac
1251   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1253
1254 # There might be people who depend on the old broken behavior: `$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1260
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263   if test "x$build_alias" = x; then
1264     cross_compiling=maybe
1265     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1266     If a cross compiler is detected then cross compile mode will be used." >&2
1267   elif test "x$build_alias" != "x$host_alias"; then
1268     cross_compiling=yes
1269   fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281   as_fn_error "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283   as_fn_error "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288   ac_srcdir_defaulted=yes
1289   # Try the directory containing this script, then the parent directory.
1290   ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292          X"$as_myself" : 'X\(//\)[^/]' \| \
1293          X"$as_myself" : 'X\(//\)$' \| \
1294          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 $as_echo X"$as_myself" |
1296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)[^/].*/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\).*/{
1309             s//\1/
1310             q
1311           }
1312           s/.*/./; q'`
1313   srcdir=$ac_confdir
1314   if test ! -r "$srcdir/$ac_unique_file"; then
1315     srcdir=..
1316   fi
1317 else
1318   ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1327         pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330   srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_env_${ac_var}_value=\$${ac_var}
1341   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349   # Omit some internal or obsolete options to make the list less imposing.
1350   # This message is too long to be a string in the A/UX 3.1 sh.
1351   cat <<_ACEOF
1352 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE.  See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362   -h, --help              display this help and exit
1363       --help=short        display options specific to this package
1364       --help=recursive    display the short help of all the included packages
1365   -V, --version           display version information and exit
1366   -q, --quiet, --silent   do not print \`checking...' messages
1367       --cache-file=FILE   cache test results in FILE [disabled]
1368   -C, --config-cache      alias for \`--cache-file=config.cache'
1369   -n, --no-create         do not create output files
1370       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1371
1372 Installation directories:
1373   --prefix=PREFIX         install architecture-independent files in PREFIX
1374                           [$ac_default_prefix]
1375   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1376                           [PREFIX]
1377
1378 By default, \`make install' will install all the files in
1379 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1380 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1381 for instance \`--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386   --bindir=DIR            user executables [EPREFIX/bin]
1387   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1388   --libexecdir=DIR        program executables [EPREFIX/libexec]
1389   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1390   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1391   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1392   --libdir=DIR            object code libraries [EPREFIX/lib]
1393   --includedir=DIR        C header files [PREFIX/include]
1394   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1395   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1396   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1397   --infodir=DIR           info documentation [DATAROOTDIR/info]
1398   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1399   --mandir=DIR            man documentation [DATAROOTDIR/man]
1400   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1401   --htmldir=DIR           html documentation [DOCDIR]
1402   --dvidir=DIR            dvi documentation [DOCDIR]
1403   --pdfdir=DIR            pdf documentation [DOCDIR]
1404   --psdir=DIR             ps documentation [DOCDIR]
1405 _ACEOF
1406
1407   cat <<\_ACEOF
1408
1409 Program names:
1410   --program-prefix=PREFIX            prepend PREFIX to installed program names
1411   --program-suffix=SUFFIX            append SUFFIX to installed program names
1412   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1413
1414 System types:
1415   --build=BUILD     configure for building on BUILD [guessed]
1416   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1417   --target=TARGET   configure for building compilers for TARGET [HOST]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422   case $ac_init_help in
1423      short | recursive ) echo "Configuration of package-unused version-unused:";;
1424    esac
1425   cat <<\_ACEOF
1426
1427 Optional Features:
1428   --disable-option-checking  ignore unrecognized --enable/--with options
1429   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431   --enable-multilib       build many library versions (default)
1432   --disable-dependency-tracking  speeds up one-time build
1433   --enable-dependency-tracking   do not reject slow dependency extractors
1434   --enable-maintainer-mode  enable make rules and dependencies not useful
1435                           (and sometimes confusing) to the casual installer
1436   --enable-shared[=PKGS]  build shared libraries [default=yes]
1437   --enable-static[=PKGS]  build static libraries [default=yes]
1438   --enable-fast-install[=PKGS]
1439                           optimize for fast installation [default=yes]
1440   --disable-libtool-lock  avoid locking (might break parallel builds)
1441   --enable-version-specific-runtime-libs
1442                           Specify that runtime libraries should be installed
1443                           in a compiler-specific directory
1444   --enable-sjlj-exceptions
1445                           force use of builtin_setjmp for exceptions
1446
1447 Optional Packages:
1448   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1449   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1450   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1451   --with-pic              try to use only PIC/non-PIC objects [default=use
1452                           both]
1453   --without-libffi        don't use libffi
1454   --with-system-libunwind use installed libunwind
1455
1456 Some influential environment variables:
1457   CC          C compiler command
1458   CFLAGS      C compiler flags
1459   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1460               nonstandard directory <lib dir>
1461   LIBS        libraries to pass to the linker, e.g. -l<library>
1462   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463               you have headers in a nonstandard directory <include dir>
1464   GOC         Go compiler command
1465   GOCFLAGS    Go compiler flags
1466   CPP         C preprocessor
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to the package provider.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477   # If there are subdirs, report their specific --help.
1478   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479     test -d "$ac_dir" ||
1480       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481       continue
1482     ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488   # A ".." for each directory in $ac_dir_suffix.
1489   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490   case $ac_top_builddir_sub in
1491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493   esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501   .)  # We are building in place.
1502     ac_srcdir=.
1503     ac_top_srcdir=$ac_top_builddir_sub
1504     ac_abs_top_srcdir=$ac_pwd ;;
1505   [\\/]* | ?:[\\/]* )  # Absolute name.
1506     ac_srcdir=$srcdir$ac_dir_suffix;
1507     ac_top_srcdir=$srcdir
1508     ac_abs_top_srcdir=$srcdir ;;
1509   *) # Relative name.
1510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511     ac_top_srcdir=$ac_top_build_prefix$srcdir
1512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516     cd "$ac_dir" || { ac_status=$?; continue; }
1517     # Check for guested configure.
1518     if test -f "$ac_srcdir/configure.gnu"; then
1519       echo &&
1520       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521     elif test -f "$ac_srcdir/configure"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure" --help=recursive
1524     else
1525       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526     fi || ac_status=$?
1527     cd "$ac_pwd" || { ac_status=$?; break; }
1528   done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533   cat <<\_ACEOF
1534 package-unused configure version-unused
1535 generated by GNU Autoconf 2.64
1536
1537 Copyright (C) 2009 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541   exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554   rm -f conftest.$ac_objext
1555   if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558   *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562   (eval "$ac_compile") 2>conftest.err
1563   ac_status=$?
1564   if test -s conftest.err; then
1565     grep -v '^ *+' conftest.err >conftest.er1
1566     cat conftest.er1 >&5
1567     mv -f conftest.er1 conftest.err
1568   fi
1569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570   test $ac_status = 0; } && {
1571          test -z "$ac_c_werror_flag" ||
1572          test ! -s conftest.err
1573        } && test -s conftest.$ac_objext; then :
1574   ac_retval=0
1575 else
1576   $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579         ac_retval=1
1580 fi
1581   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1582   return $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_c_try_link LINENO
1587 # -----------------------
1588 # Try to link conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_link ()
1590 {
1591   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592   rm -f conftest.$ac_objext conftest$ac_exeext
1593   if { { ac_try="$ac_link"
1594 case "(($ac_try" in
1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596   *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600   (eval "$ac_link") 2>conftest.err
1601   ac_status=$?
1602   if test -s conftest.err; then
1603     grep -v '^ *+' conftest.err >conftest.er1
1604     cat conftest.er1 >&5
1605     mv -f conftest.er1 conftest.err
1606   fi
1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608   test $ac_status = 0; } && {
1609          test -z "$ac_c_werror_flag" ||
1610          test ! -s conftest.err
1611        } && test -s conftest$ac_exeext && {
1612          test "$cross_compiling" = yes ||
1613          $as_test_x conftest$ac_exeext
1614        }; then :
1615   ac_retval=0
1616 else
1617   $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620         ac_retval=1
1621 fi
1622   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1623   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1624   # interfere with the next link command; also delete a directory that is
1625   # left behind by Apple's compiler.  We do this before executing the actions.
1626   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628   return $ac_retval
1629
1630 } # ac_fn_c_try_link
1631
1632 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists and can be compiled using the include files in
1635 # INCLUDES, setting the cache variable VAR accordingly.
1636 ac_fn_c_check_header_compile ()
1637 {
1638   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1642   $as_echo_n "(cached) " >&6
1643 else
1644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h.  */
1646 $4
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650   eval "$3=yes"
1651 else
1652   eval "$3=no"
1653 fi
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 fi
1656 eval ac_res=\$$3
1657                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1660
1661 } # ac_fn_c_check_header_compile
1662
1663 # ac_fn_c_try_cpp LINENO
1664 # ----------------------
1665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_cpp ()
1667 {
1668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669   if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 case "(($ac_try" in
1671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672   *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677   ac_status=$?
1678   if test -s conftest.err; then
1679     grep -v '^ *+' conftest.err >conftest.er1
1680     cat conftest.er1 >&5
1681     mv -f conftest.er1 conftest.err
1682   fi
1683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684   test $ac_status = 0; } >/dev/null && {
1685          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686          test ! -s conftest.err
1687        }; then :
1688   ac_retval=0
1689 else
1690   $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693     ac_retval=1
1694 fi
1695   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696   return $ac_retval
1697
1698 } # ac_fn_c_try_cpp
1699
1700 # ac_fn_c_try_run LINENO
1701 # ----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703 # that executables *can* be run.
1704 ac_fn_c_try_run ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   if { { ac_try="$ac_link"
1708 case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_link") 2>&5
1715   ac_status=$?
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718   { { case "(($ac_try" in
1719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720   *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724   (eval "$ac_try") 2>&5
1725   ac_status=$?
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; }; }; then :
1728   ac_retval=0
1729 else
1730   $as_echo "$as_me: program exited with status $ac_status" >&5
1731        $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734        ac_retval=$ac_status
1735 fi
1736   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738   return $ac_retval
1739
1740 } # ac_fn_c_try_run
1741
1742 # ac_fn_c_check_func LINENO FUNC VAR
1743 # ----------------------------------
1744 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1745 ac_fn_c_check_func ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1751   $as_echo_n "(cached) " >&6
1752 else
1753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h.  */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1757 #define $2 innocuous_$2
1758
1759 /* System header to define __stub macros and hopefully few prototypes,
1760     which can conflict with char $2 (); below.
1761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762     <limits.h> exists even on freestanding compilers.  */
1763
1764 #ifdef __STDC__
1765 # include <limits.h>
1766 #else
1767 # include <assert.h>
1768 #endif
1769
1770 #undef $2
1771
1772 /* Override any GCC internal prototype to avoid an error.
1773    Use char because int might match the return type of a GCC
1774    builtin and then its argument prototype would still apply.  */
1775 #ifdef __cplusplus
1776 extern "C"
1777 #endif
1778 char $2 ();
1779 /* The GNU C library defines this for functions which it implements
1780     to always fail with ENOSYS.  Some functions are actually named
1781     something starting with __ and the normal name is an alias.  */
1782 #if defined __stub_$2 || defined __stub___$2
1783 choke me
1784 #endif
1785
1786 int
1787 main ()
1788 {
1789 return $2 ();
1790   ;
1791   return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_link "$LINENO"; then :
1795   eval "$3=yes"
1796 else
1797   eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext \
1800     conftest$ac_exeext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807 } # ac_fn_c_check_func
1808
1809 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1810 # -------------------------------------------------------
1811 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1812 # the include files in INCLUDES and setting the cache variable VAR
1813 # accordingly.
1814 ac_fn_c_check_header_mongrel ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1821   $as_echo_n "(cached) " >&6
1822 fi
1823 eval ac_res=\$$3
1824                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 else
1827   # Is the header compilable?
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1829 $as_echo_n "checking $2 usability... " >&6; }
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831 /* end confdefs.h.  */
1832 $4
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_compile "$LINENO"; then :
1836   ac_header_compiler=yes
1837 else
1838   ac_header_compiler=no
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1842 $as_echo "$ac_header_compiler" >&6; }
1843
1844 # Is the header present?
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1846 $as_echo_n "checking $2 presence... " >&6; }
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h.  */
1849 #include <$2>
1850 _ACEOF
1851 if ac_fn_c_try_cpp "$LINENO"; then :
1852   ac_header_preproc=yes
1853 else
1854   ac_header_preproc=no
1855 fi
1856 rm -f conftest.err conftest.$ac_ext
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1858 $as_echo "$ac_header_preproc" >&6; }
1859
1860 # So?  What about this header?
1861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1862   yes:no: )
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1864 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1865     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1866 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867     ;;
1868   no:yes:* )
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1870 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1872 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1874 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1876 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1878 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879     ;;
1880 esac
1881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884   $as_echo_n "(cached) " >&6
1885 else
1886   eval "$3=\$ac_header_compiler"
1887 fi
1888 eval ac_res=\$$3
1889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 fi
1892   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893
1894 } # ac_fn_c_check_header_mongrel
1895
1896 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1897 # -------------------------------------------
1898 # Tests whether TYPE exists after having included INCLUDES, setting cache
1899 # variable VAR accordingly.
1900 ac_fn_c_check_type ()
1901 {
1902   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904 $as_echo_n "checking for $2... " >&6; }
1905 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906   $as_echo_n "(cached) " >&6
1907 else
1908   eval "$3=no"
1909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h.  */
1911 $4
1912 int
1913 main ()
1914 {
1915 if (sizeof ($2))
1916          return 0;
1917   ;
1918   return 0;
1919 }
1920 _ACEOF
1921 if ac_fn_c_try_compile "$LINENO"; then :
1922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h.  */
1924 $4
1925 int
1926 main ()
1927 {
1928 if (sizeof (($2)))
1929             return 0;
1930   ;
1931   return 0;
1932 }
1933 _ACEOF
1934 if ac_fn_c_try_compile "$LINENO"; then :
1935
1936 else
1937   eval "$3=yes"
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 eval ac_res=\$$3
1944                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1946   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1947
1948 } # ac_fn_c_check_type
1949 cat >config.log <<_ACEOF
1950 This file contains any messages produced by compilers while
1951 running configure, to aid debugging if configure makes a mistake.
1952
1953 It was created by package-unused $as_me version-unused, which was
1954 generated by GNU Autoconf 2.64.  Invocation command line was
1955
1956   $ $0 $@
1957
1958 _ACEOF
1959 exec 5>>config.log
1960 {
1961 cat <<_ASUNAME
1962 ## --------- ##
1963 ## Platform. ##
1964 ## --------- ##
1965
1966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1971
1972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1973 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1974
1975 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1976 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1978 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1979 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1980 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1981 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1982
1983 _ASUNAME
1984
1985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 for as_dir in $PATH
1987 do
1988   IFS=$as_save_IFS
1989   test -z "$as_dir" && as_dir=.
1990     $as_echo "PATH: $as_dir"
1991   done
1992 IFS=$as_save_IFS
1993
1994 } >&5
1995
1996 cat >&5 <<_ACEOF
1997
1998
1999 ## ----------- ##
2000 ## Core tests. ##
2001 ## ----------- ##
2002
2003 _ACEOF
2004
2005
2006 # Keep a trace of the command line.
2007 # Strip out --no-create and --no-recursion so they do not pile up.
2008 # Strip out --silent because we don't want to record it for future runs.
2009 # Also quote any args containing shell meta-characters.
2010 # Make two passes to allow for proper duplicate-argument suppression.
2011 ac_configure_args=
2012 ac_configure_args0=
2013 ac_configure_args1=
2014 ac_must_keep_next=false
2015 for ac_pass in 1 2
2016 do
2017   for ac_arg
2018   do
2019     case $ac_arg in
2020     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2021     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2022     | -silent | --silent | --silen | --sile | --sil)
2023       continue ;;
2024     *\'*)
2025       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2026     esac
2027     case $ac_pass in
2028     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2029     2)
2030       as_fn_append ac_configure_args1 " '$ac_arg'"
2031       if test $ac_must_keep_next = true; then
2032         ac_must_keep_next=false # Got value, back to normal.
2033       else
2034         case $ac_arg in
2035           *=* | --config-cache | -C | -disable-* | --disable-* \
2036           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2037           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2038           | -with-* | --with-* | -without-* | --without-* | --x)
2039             case "$ac_configure_args0 " in
2040               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2041             esac
2042             ;;
2043           -* ) ac_must_keep_next=true ;;
2044         esac
2045       fi
2046       as_fn_append ac_configure_args " '$ac_arg'"
2047       ;;
2048     esac
2049   done
2050 done
2051 { ac_configure_args0=; unset ac_configure_args0;}
2052 { ac_configure_args1=; unset ac_configure_args1;}
2053
2054 # When interrupted or exit'd, cleanup temporary files, and complete
2055 # config.log.  We remove comments because anyway the quotes in there
2056 # would cause problems or look ugly.
2057 # WARNING: Use '\'' to represent an apostrophe within the trap.
2058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2059 trap 'exit_status=$?
2060   # Save into config.log some information that might help in debugging.
2061   {
2062     echo
2063
2064     cat <<\_ASBOX
2065 ## ---------------- ##
2066 ## Cache variables. ##
2067 ## ---------------- ##
2068 _ASBOX
2069     echo
2070     # The following way of writing the cache mishandles newlines in values,
2071 (
2072   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2073     eval ac_val=\$$ac_var
2074     case $ac_val in #(
2075     *${as_nl}*)
2076       case $ac_var in #(
2077       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2079       esac
2080       case $ac_var in #(
2081       _ | IFS | as_nl) ;; #(
2082       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2083       *) { eval $ac_var=; unset $ac_var;} ;;
2084       esac ;;
2085     esac
2086   done
2087   (set) 2>&1 |
2088     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2089     *${as_nl}ac_space=\ *)
2090       sed -n \
2091         "s/'\''/'\''\\\\'\'''\''/g;
2092           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2093       ;; #(
2094     *)
2095       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2096       ;;
2097     esac |
2098     sort
2099 )
2100     echo
2101
2102     cat <<\_ASBOX
2103 ## ----------------- ##
2104 ## Output variables. ##
2105 ## ----------------- ##
2106 _ASBOX
2107     echo
2108     for ac_var in $ac_subst_vars
2109     do
2110       eval ac_val=\$$ac_var
2111       case $ac_val in
2112       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113       esac
2114       $as_echo "$ac_var='\''$ac_val'\''"
2115     done | sort
2116     echo
2117
2118     if test -n "$ac_subst_files"; then
2119       cat <<\_ASBOX
2120 ## ------------------- ##
2121 ## File substitutions. ##
2122 ## ------------------- ##
2123 _ASBOX
2124       echo
2125       for ac_var in $ac_subst_files
2126       do
2127         eval ac_val=\$$ac_var
2128         case $ac_val in
2129         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2130         esac
2131         $as_echo "$ac_var='\''$ac_val'\''"
2132       done | sort
2133       echo
2134     fi
2135
2136     if test -s confdefs.h; then
2137       cat <<\_ASBOX
2138 ## ----------- ##
2139 ## confdefs.h. ##
2140 ## ----------- ##
2141 _ASBOX
2142       echo
2143       cat confdefs.h
2144       echo
2145     fi
2146     test "$ac_signal" != 0 &&
2147       $as_echo "$as_me: caught signal $ac_signal"
2148     $as_echo "$as_me: exit $exit_status"
2149   } >&5
2150   rm -f core *.core core.conftest.* &&
2151     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2152     exit $exit_status
2153 ' 0
2154 for ac_signal in 1 2 13 15; do
2155   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2156 done
2157 ac_signal=0
2158
2159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2160 rm -f -r conftest* confdefs.h
2161
2162 $as_echo "/* confdefs.h */" > confdefs.h
2163
2164 # Predefined preprocessor variables.
2165
2166 cat >>confdefs.h <<_ACEOF
2167 #define PACKAGE_NAME "$PACKAGE_NAME"
2168 _ACEOF
2169
2170 cat >>confdefs.h <<_ACEOF
2171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2172 _ACEOF
2173
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2176 _ACEOF
2177
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_STRING "$PACKAGE_STRING"
2180 _ACEOF
2181
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2184 _ACEOF
2185
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_URL "$PACKAGE_URL"
2188 _ACEOF
2189
2190
2191 # Let the site file select an alternate cache file if it wants to.
2192 # Prefer an explicitly selected file to automatically selected ones.
2193 ac_site_file1=NONE
2194 ac_site_file2=NONE
2195 if test -n "$CONFIG_SITE"; then
2196   ac_site_file1=$CONFIG_SITE
2197 elif test "x$prefix" != xNONE; then
2198   ac_site_file1=$prefix/share/config.site
2199   ac_site_file2=$prefix/etc/config.site
2200 else
2201   ac_site_file1=$ac_default_prefix/share/config.site
2202   ac_site_file2=$ac_default_prefix/etc/config.site
2203 fi
2204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2205 do
2206   test "x$ac_site_file" = xNONE && continue
2207   if test -r "$ac_site_file"; then
2208     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210     sed 's/^/| /' "$ac_site_file" >&5
2211     . "$ac_site_file"
2212   fi
2213 done
2214
2215 if test -r "$cache_file"; then
2216   # Some versions of bash will fail to source /dev/null (special
2217   # files actually), so we avoid doing that.
2218   if test -f "$cache_file"; then
2219     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2220 $as_echo "$as_me: loading cache $cache_file" >&6;}
2221     case $cache_file in
2222       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2223       *)                      . "./$cache_file";;
2224     esac
2225   fi
2226 else
2227   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2228 $as_echo "$as_me: creating cache $cache_file" >&6;}
2229   >$cache_file
2230 fi
2231
2232 # Check that the precious variables saved in the cache have kept the same
2233 # value.
2234 ac_cache_corrupted=false
2235 for ac_var in $ac_precious_vars; do
2236   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2237   eval ac_new_set=\$ac_env_${ac_var}_set
2238   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2239   eval ac_new_val=\$ac_env_${ac_var}_value
2240   case $ac_old_set,$ac_new_set in
2241     set,)
2242       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2244       ac_cache_corrupted=: ;;
2245     ,set)
2246       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2248       ac_cache_corrupted=: ;;
2249     ,);;
2250     *)
2251       if test "x$ac_old_val" != "x$ac_new_val"; then
2252         # differences in whitespace do not lead to failure.
2253         ac_old_val_w=`echo x $ac_old_val`
2254         ac_new_val_w=`echo x $ac_new_val`
2255         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2256           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2257 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2258           ac_cache_corrupted=:
2259         else
2260           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2261 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2262           eval $ac_var=\$ac_old_val
2263         fi
2264         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2265 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2266         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2267 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2268       fi;;
2269   esac
2270   # Pass precious variables to config.status.
2271   if test "$ac_new_set" = set; then
2272     case $ac_new_val in
2273     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2274     *) ac_arg=$ac_var=$ac_new_val ;;
2275     esac
2276     case " $ac_configure_args " in
2277       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2278       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2279     esac
2280   fi
2281 done
2282 if $ac_cache_corrupted; then
2283   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2284 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2286 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2287   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2288 fi
2289 ## -------------------- ##
2290 ## Main body of script. ##
2291 ## -------------------- ##
2292
2293 ac_ext=c
2294 ac_cpp='$CPP $CPPFLAGS'
2295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2298
2299
2300
2301
2302
2303
2304 ac_config_headers="$ac_config_headers config.h"
2305
2306
2307 libtool_VERSION=1:0:0
2308
2309
2310 # Default to --enable-multilib
2311 # Check whether --enable-multilib was given.
2312 if test "${enable_multilib+set}" = set; then :
2313   enableval=$enable_multilib; case "$enableval" in
2314   yes) multilib=yes ;;
2315   no)  multilib=no ;;
2316   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2317  esac
2318 else
2319   multilib=yes
2320 fi
2321
2322
2323 # We may get other options which we leave undocumented:
2324 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2325 # See config-ml.in if you want the gory details.
2326
2327 if test "$srcdir" = "."; then
2328   if test "$with_target_subdir" != "."; then
2329     multi_basedir="$srcdir/$with_multisrctop../.."
2330   else
2331     multi_basedir="$srcdir/$with_multisrctop.."
2332   fi
2333 else
2334   multi_basedir="$srcdir/.."
2335 fi
2336
2337
2338 # Even if the default multilib is not a cross compilation,
2339 # it may be that some of the other multilibs are.
2340 if test $cross_compiling = no && test $multilib = yes \
2341    && test "x${with_multisubdir}" != x ; then
2342    cross_compiling=maybe
2343 fi
2344
2345 ac_config_commands="$ac_config_commands default-1"
2346
2347
2348 ac_aux_dir=
2349 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2350   for ac_t in install-sh install.sh shtool; do
2351     if test -f "$ac_dir/$ac_t"; then
2352       ac_aux_dir=$ac_dir
2353       ac_install_sh="$ac_aux_dir/$ac_t -c"
2354       break 2
2355     fi
2356   done
2357 done
2358 if test -z "$ac_aux_dir"; then
2359   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2360 fi
2361
2362 # These three variables are undocumented and unsupported,
2363 # and are intended to be withdrawn in a future Autoconf release.
2364 # They can cause serious problems if a builder's source tree is in a directory
2365 # whose full name contains unusual characters.
2366 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2367 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2368 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2369
2370
2371 # Make sure we can run config.sub.
2372 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2373   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2374
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2376 $as_echo_n "checking build system type... " >&6; }
2377 if test "${ac_cv_build+set}" = set; then :
2378   $as_echo_n "(cached) " >&6
2379 else
2380   ac_build_alias=$build_alias
2381 test "x$ac_build_alias" = x &&
2382   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2383 test "x$ac_build_alias" = x &&
2384   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2385 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2386   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2387
2388 fi
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2390 $as_echo "$ac_cv_build" >&6; }
2391 case $ac_cv_build in
2392 *-*-*) ;;
2393 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2394 esac
2395 build=$ac_cv_build
2396 ac_save_IFS=$IFS; IFS='-'
2397 set x $ac_cv_build
2398 shift
2399 build_cpu=$1
2400 build_vendor=$2
2401 shift; shift
2402 # Remember, the first character of IFS is used to create $*,
2403 # except with old shells:
2404 build_os=$*
2405 IFS=$ac_save_IFS
2406 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2407
2408
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2410 $as_echo_n "checking host system type... " >&6; }
2411 if test "${ac_cv_host+set}" = set; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   if test "x$host_alias" = x; then
2415   ac_cv_host=$ac_cv_build
2416 else
2417   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2418     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2419 fi
2420
2421 fi
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2423 $as_echo "$ac_cv_host" >&6; }
2424 case $ac_cv_host in
2425 *-*-*) ;;
2426 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2427 esac
2428 host=$ac_cv_host
2429 ac_save_IFS=$IFS; IFS='-'
2430 set x $ac_cv_host
2431 shift
2432 host_cpu=$1
2433 host_vendor=$2
2434 shift; shift
2435 # Remember, the first character of IFS is used to create $*,
2436 # except with old shells:
2437 host_os=$*
2438 IFS=$ac_save_IFS
2439 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2440
2441
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2443 $as_echo_n "checking target system type... " >&6; }
2444 if test "${ac_cv_target+set}" = set; then :
2445   $as_echo_n "(cached) " >&6
2446 else
2447   if test "x$target_alias" = x; then
2448   ac_cv_target=$ac_cv_host
2449 else
2450   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2451     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2452 fi
2453
2454 fi
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2456 $as_echo "$ac_cv_target" >&6; }
2457 case $ac_cv_target in
2458 *-*-*) ;;
2459 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2460 esac
2461 target=$ac_cv_target
2462 ac_save_IFS=$IFS; IFS='-'
2463 set x $ac_cv_target
2464 shift
2465 target_cpu=$1
2466 target_vendor=$2
2467 shift; shift
2468 # Remember, the first character of IFS is used to create $*,
2469 # except with old shells:
2470 target_os=$*
2471 IFS=$ac_save_IFS
2472 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2473
2474
2475 # The aliases save the names the user supplied, while $host etc.
2476 # will get canonicalized.
2477 test -n "$target_alias" &&
2478   test "$program_prefix$program_suffix$program_transform_name" = \
2479     NONENONEs,x,x, &&
2480   program_prefix=${target_alias}-
2481
2482 target_alias=${target_alias-$host_alias}
2483
2484 am__api_version='1.11'
2485
2486 # Find a good install program.  We prefer a C program (faster),
2487 # so one script is as good as another.  But avoid the broken or
2488 # incompatible versions:
2489 # SysV /etc/install, /usr/sbin/install
2490 # SunOS /usr/etc/install
2491 # IRIX /sbin/install
2492 # AIX /bin/install
2493 # AmigaOS /C/install, which installs bootblocks on floppy discs
2494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2497 # OS/2's system install, which has a completely different semantic
2498 # ./install, which can be erroneously created by make from ./install.sh.
2499 # Reject install programs that cannot install multiple files.
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2502 if test -z "$INSTALL"; then
2503 if test "${ac_cv_path_install+set}" = set; then :
2504   $as_echo_n "(cached) " >&6
2505 else
2506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 for as_dir in $PATH
2508 do
2509   IFS=$as_save_IFS
2510   test -z "$as_dir" && as_dir=.
2511     # Account for people who put trailing slashes in PATH elements.
2512 case $as_dir/ in #((
2513   ./ | .// | /[cC]/* | \
2514   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2515   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2516   /usr/ucb/* ) ;;
2517   *)
2518     # OSF1 and SCO ODT 3.0 have their own names for install.
2519     # Don't use installbsd from OSF since it installs stuff as root
2520     # by default.
2521     for ac_prog in ginstall scoinst install; do
2522       for ac_exec_ext in '' $ac_executable_extensions; do
2523         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2524           if test $ac_prog = install &&
2525             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2526             # AIX install.  It has an incompatible calling convention.
2527             :
2528           elif test $ac_prog = install &&
2529             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2530             # program-specific install script used by HP pwplus--don't use.
2531             :
2532           else
2533             rm -rf conftest.one conftest.two conftest.dir
2534             echo one > conftest.one
2535             echo two > conftest.two
2536             mkdir conftest.dir
2537             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2538               test -s conftest.one && test -s conftest.two &&
2539               test -s conftest.dir/conftest.one &&
2540               test -s conftest.dir/conftest.two
2541             then
2542               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2543               break 3
2544             fi
2545           fi
2546         fi
2547       done
2548     done
2549     ;;
2550 esac
2551
2552   done
2553 IFS=$as_save_IFS
2554
2555 rm -rf conftest.one conftest.two conftest.dir
2556
2557 fi
2558   if test "${ac_cv_path_install+set}" = set; then
2559     INSTALL=$ac_cv_path_install
2560   else
2561     # As a last resort, use the slow shell script.  Don't cache a
2562     # value for INSTALL within a source directory, because that will
2563     # break other packages using the cache if that directory is
2564     # removed, or if the value is a relative name.
2565     INSTALL=$ac_install_sh
2566   fi
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2569 $as_echo "$INSTALL" >&6; }
2570
2571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2572 # It thinks the first close brace ends the variable substitution.
2573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2574
2575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2576
2577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2578
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2580 $as_echo_n "checking whether build environment is sane... " >&6; }
2581 # Just in case
2582 sleep 1
2583 echo timestamp > conftest.file
2584 # Reject unsafe characters in $srcdir or the absolute working directory
2585 # name.  Accept space and tab only in the latter.
2586 am_lf='
2587 '
2588 case `pwd` in
2589   *[\\\"\#\$\&\'\`$am_lf]*)
2590     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2591 esac
2592 case $srcdir in
2593   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2594     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2595 esac
2596
2597 # Do `set' in a subshell so we don't clobber the current shell's
2598 # arguments.  Must try -L first in case configure is actually a
2599 # symlink; some systems play weird games with the mod time of symlinks
2600 # (eg FreeBSD returns the mod time of the symlink's containing
2601 # directory).
2602 if (
2603    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2604    if test "$*" = "X"; then
2605       # -L didn't work.
2606       set X `ls -t "$srcdir/configure" conftest.file`
2607    fi
2608    rm -f conftest.file
2609    if test "$*" != "X $srcdir/configure conftest.file" \
2610       && test "$*" != "X conftest.file $srcdir/configure"; then
2611
2612       # If neither matched, then we have a broken ls.  This can happen
2613       # if, for instance, CONFIG_SHELL is bash and it inherits a
2614       # broken ls alias from the environment.  This has actually
2615       # happened.  Such a system could not be considered "sane".
2616       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2617 alias in your environment" "$LINENO" 5
2618    fi
2619
2620    test "$2" = conftest.file
2621    )
2622 then
2623    # Ok.
2624    :
2625 else
2626    as_fn_error "newly created file is older than distributed files!
2627 Check your system clock" "$LINENO" 5
2628 fi
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2630 $as_echo "yes" >&6; }
2631 test "$program_prefix" != NONE &&
2632   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2633 # Use a double $ so make ignores it.
2634 test "$program_suffix" != NONE &&
2635   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2636 # Double any \ or $.
2637 # By default was `s,x,x', remove it if useless.
2638 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2639 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2640
2641 # expand $ac_aux_dir to an absolute path
2642 am_aux_dir=`cd $ac_aux_dir && pwd`
2643
2644 if test x"${MISSING+set}" != xset; then
2645   case $am_aux_dir in
2646   *\ * | *\     *)
2647     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2648   *)
2649     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2650   esac
2651 fi
2652 # Use eval to expand $SHELL
2653 if eval "$MISSING --run true"; then
2654   am_missing_run="$MISSING --run "
2655 else
2656   am_missing_run=
2657   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2658 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2659 fi
2660
2661 if test x"${install_sh}" != xset; then
2662   case $am_aux_dir in
2663   *\ * | *\     *)
2664     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2665   *)
2666     install_sh="\${SHELL} $am_aux_dir/install-sh"
2667   esac
2668 fi
2669
2670 # Installed binaries are usually stripped using `strip' when the user
2671 # run `make install-strip'.  However `strip' might not be the right
2672 # tool to use in cross-compilation environments, therefore Automake
2673 # will honor the `STRIP' environment variable to overrule this program.
2674 if test "$cross_compiling" != no; then
2675   if test -n "$ac_tool_prefix"; then
2676   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2677 set dummy ${ac_tool_prefix}strip; ac_word=$2
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2679 $as_echo_n "checking for $ac_word... " >&6; }
2680 if test "${ac_cv_prog_STRIP+set}" = set; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   if test -n "$STRIP"; then
2684   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2685 else
2686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2687 for as_dir in $PATH
2688 do
2689   IFS=$as_save_IFS
2690   test -z "$as_dir" && as_dir=.
2691     for ac_exec_ext in '' $ac_executable_extensions; do
2692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2693     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695     break 2
2696   fi
2697 done
2698   done
2699 IFS=$as_save_IFS
2700
2701 fi
2702 fi
2703 STRIP=$ac_cv_prog_STRIP
2704 if test -n "$STRIP"; then
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2706 $as_echo "$STRIP" >&6; }
2707 else
2708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2709 $as_echo "no" >&6; }
2710 fi
2711
2712
2713 fi
2714 if test -z "$ac_cv_prog_STRIP"; then
2715   ac_ct_STRIP=$STRIP
2716   # Extract the first word of "strip", so it can be a program name with args.
2717 set dummy strip; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2721   $as_echo_n "(cached) " >&6
2722 else
2723   if test -n "$ac_ct_STRIP"; then
2724   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729   IFS=$as_save_IFS
2730   test -z "$as_dir" && as_dir=.
2731     for ac_exec_ext in '' $ac_executable_extensions; do
2732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733     ac_cv_prog_ac_ct_STRIP="strip"
2734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735     break 2
2736   fi
2737 done
2738   done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2744 if test -n "$ac_ct_STRIP"; then
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2746 $as_echo "$ac_ct_STRIP" >&6; }
2747 else
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2750 fi
2751
2752   if test "x$ac_ct_STRIP" = x; then
2753     STRIP=":"
2754   else
2755     case $cross_compiling:$ac_tool_warned in
2756 yes:)
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2759 ac_tool_warned=yes ;;
2760 esac
2761     STRIP=$ac_ct_STRIP
2762   fi
2763 else
2764   STRIP="$ac_cv_prog_STRIP"
2765 fi
2766
2767 fi
2768 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2771 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2772 if test -z "$MKDIR_P"; then
2773   if test "${ac_cv_path_mkdir+set}" = set; then :
2774   $as_echo_n "(cached) " >&6
2775 else
2776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2778 do
2779   IFS=$as_save_IFS
2780   test -z "$as_dir" && as_dir=.
2781     for ac_prog in mkdir gmkdir; do
2782          for ac_exec_ext in '' $ac_executable_extensions; do
2783            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2784            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2785              'mkdir (GNU coreutils) '* | \
2786              'mkdir (coreutils) '* | \
2787              'mkdir (fileutils) '4.1*)
2788                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2789                break 3;;
2790            esac
2791          done
2792        done
2793   done
2794 IFS=$as_save_IFS
2795
2796 fi
2797
2798   if test "${ac_cv_path_mkdir+set}" = set; then
2799     MKDIR_P="$ac_cv_path_mkdir -p"
2800   else
2801     # As a last resort, use the slow shell script.  Don't cache a
2802     # value for MKDIR_P within a source directory, because that will
2803     # break other packages using the cache if that directory is
2804     # removed, or if the value is a relative name.
2805     test -d ./--version && rmdir ./--version
2806     MKDIR_P="$ac_install_sh -d"
2807   fi
2808 fi
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2810 $as_echo "$MKDIR_P" >&6; }
2811
2812 mkdir_p="$MKDIR_P"
2813 case $mkdir_p in
2814   [\\/$]* | ?:[\\/]*) ;;
2815   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2816 esac
2817
2818 for ac_prog in gawk mawk nawk awk
2819 do
2820   # Extract the first word of "$ac_prog", so it can be a program name with args.
2821 set dummy $ac_prog; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_AWK+set}" = set; then :
2825   $as_echo_n "(cached) " >&6
2826 else
2827   if test -n "$AWK"; then
2828   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2829 else
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833   IFS=$as_save_IFS
2834   test -z "$as_dir" && as_dir=.
2835     for ac_exec_ext in '' $ac_executable_extensions; do
2836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837     ac_cv_prog_AWK="$ac_prog"
2838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839     break 2
2840   fi
2841 done
2842   done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 AWK=$ac_cv_prog_AWK
2848 if test -n "$AWK"; then
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2850 $as_echo "$AWK" >&6; }
2851 else
2852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2854 fi
2855
2856
2857   test -n "$AWK" && break
2858 done
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2861 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2862 set x ${MAKE-make}
2863 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2864 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2865   $as_echo_n "(cached) " >&6
2866 else
2867   cat >conftest.make <<\_ACEOF
2868 SHELL = /bin/sh
2869 all:
2870         @echo '@@@%%%=$(MAKE)=@@@%%%'
2871 _ACEOF
2872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2874   *@@@%%%=?*=@@@%%%*)
2875     eval ac_cv_prog_make_${ac_make}_set=yes;;
2876   *)
2877     eval ac_cv_prog_make_${ac_make}_set=no;;
2878 esac
2879 rm -f conftest.make
2880 fi
2881 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2883 $as_echo "yes" >&6; }
2884   SET_MAKE=
2885 else
2886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2888   SET_MAKE="MAKE=${MAKE-make}"
2889 fi
2890
2891 rm -rf .tst 2>/dev/null
2892 mkdir .tst 2>/dev/null
2893 if test -d .tst; then
2894   am__leading_dot=.
2895 else
2896   am__leading_dot=_
2897 fi
2898 rmdir .tst 2>/dev/null
2899
2900 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2901   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2902   # is not polluted with repeated "-I."
2903   am__isrc=' -I$(srcdir)'
2904   # test to see if srcdir already configured
2905   if test -f $srcdir/config.status; then
2906     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2907   fi
2908 fi
2909
2910 # test whether we have cygpath
2911 if test -z "$CYGPATH_W"; then
2912   if (cygpath --version) >/dev/null 2>/dev/null; then
2913     CYGPATH_W='cygpath -w'
2914   else
2915     CYGPATH_W=echo
2916   fi
2917 fi
2918
2919
2920 # Define the identity of the package.
2921  PACKAGE='libgo'
2922  VERSION='version-unused'
2923
2924
2925 # Some tools Automake needs.
2926
2927 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2928
2929
2930 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2931
2932
2933 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2934
2935
2936 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2937
2938
2939 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2940
2941 # We need awk for the "check" target.  The system "awk" is bad on
2942 # some platforms.
2943 # Always define AMTAR for backward compatibility.
2944
2945 AMTAR=${AMTAR-"${am_missing_run}tar"}
2946
2947 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963 if test -n "$ac_tool_prefix"; then
2964   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2965 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_CC+set}" = set; then :
2969   $as_echo_n "(cached) " >&6
2970 else
2971   if test -n "$CC"; then
2972   ac_cv_prog_CC="$CC" # Let the user override the test.
2973 else
2974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975 for as_dir in $PATH
2976 do
2977   IFS=$as_save_IFS
2978   test -z "$as_dir" && as_dir=.
2979     for ac_exec_ext in '' $ac_executable_extensions; do
2980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2983     break 2
2984   fi
2985 done
2986   done
2987 IFS=$as_save_IFS
2988
2989 fi
2990 fi
2991 CC=$ac_cv_prog_CC
2992 if test -n "$CC"; then
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2995 else
2996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
2998 fi
2999
3000
3001 fi
3002 if test -z "$ac_cv_prog_CC"; then
3003   ac_ct_CC=$CC
3004   # Extract the first word of "gcc", so it can be a program name with args.
3005 set dummy gcc; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   if test -n "$ac_ct_CC"; then
3012   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017   IFS=$as_save_IFS
3018   test -z "$as_dir" && as_dir=.
3019     for ac_exec_ext in '' $ac_executable_extensions; do
3020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021     ac_cv_prog_ac_ct_CC="gcc"
3022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023     break 2
3024   fi
3025 done
3026   done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3035 else
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040   if test "x$ac_ct_CC" = x; then
3041     CC=""
3042   else
3043     case $cross_compiling:$ac_tool_warned in
3044 yes:)
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned=yes ;;
3048 esac
3049     CC=$ac_ct_CC
3050   fi
3051 else
3052   CC="$ac_cv_prog_CC"
3053 fi
3054
3055 if test -z "$CC"; then
3056           if test -n "$ac_tool_prefix"; then
3057     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3058 set dummy ${ac_tool_prefix}cc; ac_word=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if test "${ac_cv_prog_CC+set}" = set; then :
3062   $as_echo_n "(cached) " >&6
3063 else
3064   if test -n "$CC"; then
3065   ac_cv_prog_CC="$CC" # Let the user override the test.
3066 else
3067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 for as_dir in $PATH
3069 do
3070   IFS=$as_save_IFS
3071   test -z "$as_dir" && as_dir=.
3072     for ac_exec_ext in '' $ac_executable_extensions; do
3073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074     ac_cv_prog_CC="${ac_tool_prefix}cc"
3075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3076     break 2
3077   fi
3078 done
3079   done
3080 IFS=$as_save_IFS
3081
3082 fi
3083 fi
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3088 else
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094   fi
3095 fi
3096 if test -z "$CC"; then
3097   # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_CC+set}" = set; then :
3102   $as_echo_n "(cached) " >&6
3103 else
3104   if test -n "$CC"; then
3105   ac_cv_prog_CC="$CC" # Let the user override the test.
3106 else
3107   ac_prog_rejected=no
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113     for ac_exec_ext in '' $ac_executable_extensions; do
3114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3116        ac_prog_rejected=yes
3117        continue
3118      fi
3119     ac_cv_prog_CC="cc"
3120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121     break 2
3122   fi
3123 done
3124   done
3125 IFS=$as_save_IFS
3126
3127 if test $ac_prog_rejected = yes; then
3128   # We found a bogon in the path, so make sure we never use it.
3129   set dummy $ac_cv_prog_CC
3130   shift
3131   if test $# != 0; then
3132     # We chose a different compiler from the bogus one.
3133     # However, it has the same basename, so the bogon will be chosen
3134     # first if we set CC to just the basename; use the full file name.
3135     shift
3136     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3137   fi
3138 fi
3139 fi
3140 fi
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150
3151 fi
3152 if test -z "$CC"; then
3153   if test -n "$ac_tool_prefix"; then
3154   for ac_prog in cl.exe
3155   do
3156     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3157 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_CC+set}" = set; then :
3161   $as_echo_n "(cached) " >&6
3162 else
3163   if test -n "$CC"; then
3164   ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169   IFS=$as_save_IFS
3170   test -z "$as_dir" && as_dir=.
3171     for ac_exec_ext in '' $ac_executable_extensions; do
3172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175     break 2
3176   fi
3177 done
3178   done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3187 else
3188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192
3193     test -n "$CC" && break
3194   done
3195 fi
3196 if test -z "$CC"; then
3197   ac_ct_CC=$CC
3198   for ac_prog in cl.exe
3199 do
3200   # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy $ac_prog; ac_word=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3205   $as_echo_n "(cached) " >&6
3206 else
3207   if test -n "$ac_ct_CC"; then
3208   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213   IFS=$as_save_IFS
3214   test -z "$as_dir" && as_dir=.
3215     for ac_exec_ext in '' $ac_executable_extensions; do
3216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217     ac_cv_prog_ac_ct_CC="$ac_prog"
3218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219     break 2
3220   fi
3221 done
3222   done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3231 else
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3234 fi
3235
3236
3237   test -n "$ac_ct_CC" && break
3238 done
3239
3240   if test "x$ac_ct_CC" = x; then
3241     CC=""
3242   else
3243     case $cross_compiling:$ac_tool_warned in
3244 yes:)
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned=yes ;;
3248 esac
3249     CC=$ac_ct_CC
3250   fi
3251 fi
3252
3253 fi
3254
3255
3256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error "no acceptable C compiler found in \$PATH
3259 See \`config.log' for more details." "$LINENO" 5; }
3260
3261 # Provide some information about the compiler.
3262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3263 set X $ac_compile
3264 ac_compiler=$2
3265 for ac_option in --version -v -V -qversion; do
3266   { { ac_try="$ac_compiler $ac_option >&5"
3267 case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3274   ac_status=$?
3275   if test -s conftest.err; then
3276     sed '10a\
3277 ... rest of stderr output deleted ...
3278          10q' conftest.err >conftest.er1
3279     cat conftest.er1 >&5
3280     rm -f conftest.er1 conftest.err
3281   fi
3282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283   test $ac_status = 0; }
3284 done
3285
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h.  */
3288
3289 int
3290 main ()
3291 {
3292
3293   ;
3294   return 0;
3295 }
3296 _ACEOF
3297 ac_clean_files_save=$ac_clean_files
3298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3301 # of exeext.
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3303 $as_echo_n "checking for C compiler default output file name... " >&6; }
3304 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3305
3306 # The possible output files:
3307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3308
3309 ac_rmfiles=
3310 for ac_file in $ac_files
3311 do
3312   case $ac_file in
3313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3315   esac
3316 done
3317 rm -f $ac_rmfiles
3318
3319 if { { ac_try="$ac_link_default"
3320 case "(($ac_try" in
3321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322   *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326   (eval "$ac_link_default") 2>&5
3327   ac_status=$?
3328   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329   test $ac_status = 0; }; then :
3330   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3334 # Autoconf.
3335 for ac_file in $ac_files ''
3336 do
3337   test -f "$ac_file" || continue
3338   case $ac_file in
3339     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3340         ;;
3341     [ab].out )
3342         # We found the default executable, but exeext='' is most
3343         # certainly right.
3344         break;;
3345     *.* )
3346         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3347         then :; else
3348            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349         fi
3350         # We set ac_cv_exeext here because the later test for it is not
3351         # safe: cross compilers may not add the suffix if given an `-o'
3352         # argument, so we may need to know it at that point already.
3353         # Even if this section looks crufty: it has the advantage of
3354         # actually working.
3355         break;;
3356     * )
3357         break;;
3358   esac
3359 done
3360 test "$ac_cv_exeext" = no && ac_cv_exeext=
3361
3362 else
3363   ac_file=''
3364 fi
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3366 $as_echo "$ac_file" >&6; }
3367 if test -z "$ac_file"; then :
3368   $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { as_fn_set_status 77
3374 as_fn_error "C compiler cannot create executables
3375 See \`config.log' for more details." "$LINENO" 5; }; }
3376 fi
3377 ac_exeext=$ac_cv_exeext
3378
3379 # Check that the compiler produces executables we can run.  If not, either
3380 # the compiler is broken, or we cross compile.
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3382 $as_echo_n "checking whether the C compiler works... " >&6; }
3383 # If not cross compiling, check that we can run a simple program.
3384 if test "$cross_compiling" != yes; then
3385   if { ac_try='./$ac_file'
3386   { { case "(($ac_try" in
3387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388   *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 $as_echo "$ac_try_echo"; } >&5
3392   (eval "$ac_try") 2>&5
3393   ac_status=$?
3394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395   test $ac_status = 0; }; }; then
3396     cross_compiling=no
3397   else
3398     if test "$cross_compiling" = maybe; then
3399         cross_compiling=yes
3400     else
3401         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3402 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3403 as_fn_error "cannot run C compiled programs.
3404 If you meant to cross compile, use \`--host'.
3405 See \`config.log' for more details." "$LINENO" 5; }
3406     fi
3407   fi
3408 fi
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3410 $as_echo "yes" >&6; }
3411
3412 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3413 ac_clean_files=$ac_clean_files_save
3414 # Check that the compiler produces executables we can run.  If not, either
3415 # the compiler is broken, or we cross compile.
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3417 $as_echo_n "checking whether we are cross compiling... " >&6; }
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3419 $as_echo "$cross_compiling" >&6; }
3420
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3422 $as_echo_n "checking for suffix of executables... " >&6; }
3423 if { { ac_try="$ac_link"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430   (eval "$ac_link") 2>&5
3431   ac_status=$?
3432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433   test $ac_status = 0; }; then :
3434   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3435 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3436 # work properly (i.e., refer to `conftest.exe'), while it won't with
3437 # `rm'.
3438 for ac_file in conftest.exe conftest conftest.*; do
3439   test -f "$ac_file" || continue
3440   case $ac_file in
3441     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3442     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3443           break;;
3444     * ) break;;
3445   esac
3446 done
3447 else
3448   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error "cannot compute suffix of executables: cannot compile and link
3451 See \`config.log' for more details." "$LINENO" 5; }
3452 fi
3453 rm -f conftest$ac_cv_exeext
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3455 $as_echo "$ac_cv_exeext" >&6; }
3456
3457 rm -f conftest.$ac_ext
3458 EXEEXT=$ac_cv_exeext
3459 ac_exeext=$EXEEXT
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3461 $as_echo_n "checking for suffix of object files... " >&6; }
3462 if test "${ac_cv_objext+set}" = set; then :
3463   $as_echo_n "(cached) " >&6
3464 else
3465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h.  */
3467
3468 int
3469 main ()
3470 {
3471
3472   ;
3473   return 0;
3474 }
3475 _ACEOF
3476 rm -f conftest.o conftest.obj
3477 if { { ac_try="$ac_compile"
3478 case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484   (eval "$ac_compile") 2>&5
3485   ac_status=$?
3486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487   test $ac_status = 0; }; then :
3488   for ac_file in conftest.o conftest.obj conftest.*; do
3489   test -f "$ac_file" || continue;
3490   case $ac_file in
3491     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3492     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3493        break;;
3494   esac
3495 done
3496 else
3497   $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 as_fn_error "cannot compute suffix of object files: cannot compile
3503 See \`config.log' for more details." "$LINENO" 5; }
3504 fi
3505 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3508 $as_echo "$ac_cv_objext" >&6; }
3509 OBJEXT=$ac_cv_objext
3510 ac_objext=$OBJEXT
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3513 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3514   $as_echo_n "(cached) " >&6
3515 else
3516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3517 /* end confdefs.h.  */
3518
3519 int
3520 main ()
3521 {
3522 #ifndef __GNUC__
3523        choke me
3524 #endif
3525
3526   ;
3527   return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531   ac_compiler_gnu=yes
3532 else
3533   ac_compiler_gnu=no
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3540 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3541 if test $ac_compiler_gnu = yes; then
3542   GCC=yes
3543 else
3544   GCC=
3545 fi
3546 ac_test_CFLAGS=${CFLAGS+set}
3547 ac_save_CFLAGS=$CFLAGS
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3549 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3550 if test "${ac_cv_prog_cc_g+set}" = set; then :
3551   $as_echo_n "(cached) " >&6
3552 else
3553   ac_save_c_werror_flag=$ac_c_werror_flag
3554    ac_c_werror_flag=yes
3555    ac_cv_prog_cc_g=no
3556    CFLAGS="-g"
3557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h.  */
3559
3560 int
3561 main ()
3562 {
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569   ac_cv_prog_cc_g=yes
3570 else
3571   CFLAGS=""
3572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h.  */
3574
3575 int
3576 main ()
3577 {
3578
3579   ;
3580   return 0;
3581 }
3582 _ACEOF
3583 if ac_fn_c_try_compile "$LINENO"; then :
3584
3585 else
3586   ac_c_werror_flag=$ac_save_c_werror_flag
3587          CFLAGS="-g"
3588          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h.  */
3590
3591 int
3592 main ()
3593 {
3594
3595   ;
3596   return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_compile "$LINENO"; then :
3600   ac_cv_prog_cc_g=yes
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603 fi
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607    ac_c_werror_flag=$ac_save_c_werror_flag
3608 fi
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3610 $as_echo "$ac_cv_prog_cc_g" >&6; }
3611 if test "$ac_test_CFLAGS" = set; then
3612   CFLAGS=$ac_save_CFLAGS
3613 elif test $ac_cv_prog_cc_g = yes; then
3614   if test "$GCC" = yes; then
3615     CFLAGS="-g -O2"
3616   else
3617     CFLAGS="-g"
3618   fi
3619 else
3620   if test "$GCC" = yes; then
3621     CFLAGS="-O2"
3622   else
3623     CFLAGS=
3624   fi
3625 fi
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3628 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3629   $as_echo_n "(cached) " >&6
3630 else
3631   ac_cv_prog_cc_c89=no
3632 ac_save_CC=$CC
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635 #include <stdarg.h>
3636 #include <stdio.h>
3637 #include <sys/types.h>
3638 #include <sys/stat.h>
3639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3640 struct buf { int x; };
3641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642 static char *e (p, i)
3643      char **p;
3644      int i;
3645 {
3646   return p[i];
3647 }
3648 static char *f (char * (*g) (char **, int), char **p, ...)
3649 {
3650   char *s;
3651   va_list v;
3652   va_start (v,p);
3653   s = g (p, va_arg (v,int));
3654   va_end (v);
3655   return s;
3656 }
3657
3658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3659    function prototypes and stuff, but not '\xHH' hex character constants.
3660    These don't provoke an error unfortunately, instead are silently treated
3661    as 'x'.  The following induces an error, until -std is added to get
3662    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3663    array size at least.  It's necessary to write '\x00'==0 to get something
3664    that's true only with -std.  */
3665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3666
3667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668    inside strings and character constants.  */
3669 #define FOO(x) 'x'
3670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3671
3672 int test (int i, double x);
3673 struct s1 {int (*f) (int a);};
3674 struct s2 {int (*f) (double a);};
3675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3676 int argc;
3677 char **argv;
3678 int
3679 main ()
3680 {
3681 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3682   ;
3683   return 0;
3684 }
3685 _ACEOF
3686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3688 do
3689   CC="$ac_save_CC $ac_arg"
3690   if ac_fn_c_try_compile "$LINENO"; then :
3691   ac_cv_prog_cc_c89=$ac_arg
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext
3694   test "x$ac_cv_prog_cc_c89" != "xno" && break
3695 done
3696 rm -f conftest.$ac_ext
3697 CC=$ac_save_CC
3698
3699 fi
3700 # AC_CACHE_VAL
3701 case "x$ac_cv_prog_cc_c89" in
3702   x)
3703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704 $as_echo "none needed" >&6; } ;;
3705   xno)
3706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 $as_echo "unsupported" >&6; } ;;
3708   *)
3709     CC="$CC $ac_cv_prog_cc_c89"
3710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3712 esac
3713 if test "x$ac_cv_prog_cc_c89" != xno; then :
3714
3715 fi
3716
3717 ac_ext=c
3718 ac_cpp='$CPP $CPPFLAGS'
3719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722 DEPDIR="${am__leading_dot}deps"
3723
3724 ac_config_commands="$ac_config_commands depfiles"
3725
3726
3727 am_make=${MAKE-make}
3728 cat > confinc << 'END'
3729 am__doit:
3730         @echo this is the am__doit target
3731 .PHONY: am__doit
3732 END
3733 # If we don't find an include directive, just comment out the code.
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3735 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3736 am__include="#"
3737 am__quote=
3738 _am_result=none
3739 # First try GNU make style include.
3740 echo "include confinc" > confmf
3741 # Ignore all kinds of additional output from `make'.
3742 case `$am_make -s -f confmf 2> /dev/null` in #(
3743 *the\ am__doit\ target*)
3744   am__include=include
3745   am__quote=
3746   _am_result=GNU
3747   ;;
3748 esac
3749 # Now try BSD make style include.
3750 if test "$am__include" = "#"; then
3751    echo '.include "confinc"' > confmf
3752    case `$am_make -s -f confmf 2> /dev/null` in #(
3753    *the\ am__doit\ target*)
3754      am__include=.include
3755      am__quote="\""
3756      _am_result=BSD
3757      ;;
3758    esac
3759 fi
3760
3761
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3763 $as_echo "$_am_result" >&6; }
3764 rm -f confinc confmf
3765
3766 # Check whether --enable-dependency-tracking was given.
3767 if test "${enable_dependency_tracking+set}" = set; then :
3768   enableval=$enable_dependency_tracking;
3769 fi
3770
3771 if test "x$enable_dependency_tracking" != xno; then
3772   am_depcomp="$ac_aux_dir/depcomp"
3773   AMDEPBACKSLASH='\'
3774 fi
3775  if test "x$enable_dependency_tracking" != xno; then
3776   AMDEP_TRUE=
3777   AMDEP_FALSE='#'
3778 else
3779   AMDEP_TRUE='#'
3780   AMDEP_FALSE=
3781 fi
3782
3783
3784
3785 depcc="$CC"   am_compiler_list=
3786
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3788 $as_echo_n "checking dependency style of $depcc... " >&6; }
3789 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3793   # We make a subdir and do the tests there.  Otherwise we can end up
3794   # making bogus files that we don't know about and never remove.  For
3795   # instance it was reported that on HP-UX the gcc test will end up
3796   # making a dummy file named `D' -- because `-MD' means `put the output
3797   # in D'.
3798   mkdir conftest.dir
3799   # Copy depcomp to subdir because otherwise we won't find it if we're
3800   # using a relative directory.
3801   cp "$am_depcomp" conftest.dir
3802   cd conftest.dir
3803   # We will build objects and dependencies in a subdirectory because
3804   # it helps to detect inapplicable dependency modes.  For instance
3805   # both Tru64's cc and ICC support -MD to output dependencies as a
3806   # side effect of compilation, but ICC will put the dependencies in
3807   # the current directory while Tru64 will put them in the object
3808   # directory.
3809   mkdir sub
3810
3811   am_cv_CC_dependencies_compiler_type=none
3812   if test "$am_compiler_list" = ""; then
3813      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3814   fi
3815   am__universal=false
3816   case " $depcc " in #(
3817      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3818      esac
3819
3820   for depmode in $am_compiler_list; do
3821     # Setup a source with many dependencies, because some compilers
3822     # like to wrap large dependency lists on column 80 (with \), and
3823     # we should not choose a depcomp mode which is confused by this.
3824     #
3825     # We need to recreate these files for each test, as the compiler may
3826     # overwrite some of them when testing with obscure command lines.
3827     # This happens at least with the AIX C compiler.
3828     : > sub/conftest.c
3829     for i in 1 2 3 4 5 6; do
3830       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3831       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3832       # Solaris 8's {/usr,}/bin/sh.
3833       touch sub/conftst$i.h
3834     done
3835     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3836
3837     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3838     # mode.  It turns out that the SunPro C++ compiler does not properly
3839     # handle `-M -o', and we need to detect this.  Also, some Intel
3840     # versions had trouble with output in subdirs
3841     am__obj=sub/conftest.${OBJEXT-o}
3842     am__minus_obj="-o $am__obj"
3843     case $depmode in
3844     gcc)
3845       # This depmode causes a compiler race in universal mode.
3846       test "$am__universal" = false || continue
3847       ;;
3848     nosideeffect)
3849       # after this tag, mechanisms are not by side-effect, so they'll
3850       # only be used when explicitly requested
3851       if test "x$enable_dependency_tracking" = xyes; then
3852         continue
3853       else
3854         break
3855       fi
3856       ;;
3857     msvisualcpp | msvcmsys)
3858       # This compiler won't grok `-c -o', but also, the minuso test has
3859       # not run yet.  These depmodes are late enough in the game, and
3860       # so weak that their functioning should not be impacted.
3861       am__obj=conftest.${OBJEXT-o}
3862       am__minus_obj=
3863       ;;
3864     none) break ;;
3865     esac
3866     if depmode=$depmode \
3867        source=sub/conftest.c object=$am__obj \
3868        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3869        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3870          >/dev/null 2>conftest.err &&
3871        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3872        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3873        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3874        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3875       # icc doesn't choke on unknown options, it will just issue warnings
3876       # or remarks (even with -Werror).  So we grep stderr for any message
3877       # that says an option was ignored or not supported.
3878       # When given -MP, icc 7.0 and 7.1 complain thusly:
3879       #   icc: Command line warning: ignoring option '-M'; no argument required
3880       # The diagnosis changed in icc 8.0:
3881       #   icc: Command line remark: option '-MP' not supported
3882       if (grep 'ignoring option' conftest.err ||
3883           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3884         am_cv_CC_dependencies_compiler_type=$depmode
3885         break
3886       fi
3887     fi
3888   done
3889
3890   cd ..
3891   rm -rf conftest.dir
3892 else
3893   am_cv_CC_dependencies_compiler_type=none
3894 fi
3895
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3898 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3899 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3900
3901  if
3902   test "x$enable_dependency_tracking" != xno \
3903   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3904   am__fastdepCC_TRUE=
3905   am__fastdepCC_FALSE='#'
3906 else
3907   am__fastdepCC_TRUE='#'
3908   am__fastdepCC_FALSE=
3909 fi
3910
3911
3912 ac_ext=go
3913 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3914 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915 ac_compile_gnu=yes
3916 if test -n "$ac_tool_prefix"; then
3917   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if test "${ac_cv_prog_GOC+set}" = set; then :
3922   $as_echo_n "(cached) " >&6
3923 else
3924   if test -n "$GOC"; then
3925   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932     for ac_exec_ext in '' $ac_executable_extensions; do
3933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939   done
3940 IFS=$as_save_IFS
3941
3942 fi
3943 fi
3944 GOC=$ac_cv_prog_GOC
3945 if test -n "$GOC"; then
3946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3947 $as_echo "$GOC" >&6; }
3948 else
3949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950 $as_echo "no" >&6; }
3951 fi
3952
3953
3954 fi
3955 if test -z "$ac_cv_prog_GOC"; then
3956   ac_ct_GOC=$GOC
3957   # Extract the first word of "gccgo", so it can be a program name with args.
3958 set dummy gccgo; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3962   $as_echo_n "(cached) " >&6
3963 else
3964   if test -n "$ac_ct_GOC"; then
3965   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3966 else
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH
3969 do
3970   IFS=$as_save_IFS
3971   test -z "$as_dir" && as_dir=.
3972     for ac_exec_ext in '' $ac_executable_extensions; do
3973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974     ac_cv_prog_ac_ct_GOC="gccgo"
3975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3976     break 2
3977   fi
3978 done
3979   done
3980 IFS=$as_save_IFS
3981
3982 fi
3983 fi
3984 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3985 if test -n "$ac_ct_GOC"; then
3986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3987 $as_echo "$ac_ct_GOC" >&6; }
3988 else
3989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990 $as_echo "no" >&6; }
3991 fi
3992
3993   if test "x$ac_ct_GOC" = x; then
3994     GOC=""
3995   else
3996     case $cross_compiling:$ac_tool_warned in
3997 yes:)
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000 ac_tool_warned=yes ;;
4001 esac
4002     GOC=$ac_ct_GOC
4003   fi
4004 else
4005   GOC="$ac_cv_prog_GOC"
4006 fi
4007
4008 if test -z "$GOC"; then
4009   if test -n "$ac_tool_prefix"; then
4010     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4011 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013 $as_echo_n "checking for $ac_word... " >&6; }
4014 if test "${ac_cv_prog_GOC+set}" = set; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017   if test -n "$GOC"; then
4018   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4019 else
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 for as_dir in $PATH
4022 do
4023   IFS=$as_save_IFS
4024   test -z "$as_dir" && as_dir=.
4025     for ac_exec_ext in '' $ac_executable_extensions; do
4026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4027     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4029     break 2
4030   fi
4031 done
4032   done
4033 IFS=$as_save_IFS
4034
4035 fi
4036 fi
4037 GOC=$ac_cv_prog_GOC
4038 if test -n "$GOC"; then
4039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4040 $as_echo "$GOC" >&6; }
4041 else
4042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4043 $as_echo "no" >&6; }
4044 fi
4045
4046
4047   fi
4048 fi
4049 if test -z "$GOC"; then
4050   # Extract the first word of "gccgo", so it can be a program name with args.
4051 set dummy gccgo; ac_word=$2
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053 $as_echo_n "checking for $ac_word... " >&6; }
4054 if test "${ac_cv_prog_GOC+set}" = set; then :
4055   $as_echo_n "(cached) " >&6
4056 else
4057   if test -n "$GOC"; then
4058   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4059 else
4060   ac_prog_rejected=no
4061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062 for as_dir in $PATH
4063 do
4064   IFS=$as_save_IFS
4065   test -z "$as_dir" && as_dir=.
4066     for ac_exec_ext in '' $ac_executable_extensions; do
4067   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4068     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4069        ac_prog_rejected=yes
4070        continue
4071      fi
4072     ac_cv_prog_GOC="gccgo"
4073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077   done
4078 IFS=$as_save_IFS
4079
4080 if test $ac_prog_rejected = yes; then
4081   # We found a bogon in the path, so make sure we never use it.
4082   set dummy $ac_cv_prog_GOC
4083   shift
4084   if test $# != 0; then
4085     # We chose a different compiler from the bogus one.
4086     # However, it has the same basename, so the bogon will be chosen
4087     # first if we set GOC to just the basename; use the full file name.
4088     shift
4089     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4090   fi
4091 fi
4092 fi
4093 fi
4094 GOC=$ac_cv_prog_GOC
4095 if test -n "$GOC"; then
4096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4097 $as_echo "$GOC" >&6; }
4098 else
4099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4101 fi
4102
4103
4104 fi
4105
4106
4107 # Provide some information about the compiler.
4108 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4109 set X $ac_compile
4110 ac_compiler=$2
4111 { { ac_try="$ac_compiler --version >&5"
4112 case "(($ac_try" in
4113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114   *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4117 $as_echo "$ac_try_echo"; } >&5
4118   (eval "$ac_compiler --version >&5") 2>conftest.err
4119   ac_status=$?
4120   if test -s conftest.err; then
4121     sed '10a\
4122 ... rest of stderr output deleted ...
4123          10q' conftest.err >conftest.er1
4124     cat conftest.er1 >&5
4125     rm -f conftest.er1 conftest.err
4126   fi
4127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128   test $ac_status = 0; }
4129 GOCFLAGS="-g -O2"
4130 ac_ext=c
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135
4136
4137
4138
4139
4140
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4142 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4143     # Check whether --enable-maintainer-mode was given.
4144 if test "${enable_maintainer_mode+set}" = set; then :
4145   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4146 else
4147   USE_MAINTAINER_MODE=no
4148 fi
4149
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4151 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4152    if test $USE_MAINTAINER_MODE = yes; then
4153   MAINTAINER_MODE_TRUE=
4154   MAINTAINER_MODE_FALSE='#'
4155 else
4156   MAINTAINER_MODE_TRUE='#'
4157   MAINTAINER_MODE_FALSE=
4158 fi
4159
4160   MAINT=$MAINTAINER_MODE_TRUE
4161
4162
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4165 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4166 if test "${ac_cv_path_SED+set}" = set; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4170      for ac_i in 1 2 3 4 5 6 7; do
4171        ac_script="$ac_script$as_nl$ac_script"
4172      done
4173      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4174      { ac_script=; unset ac_script;}
4175      if test -z "$SED"; then
4176   ac_path_SED_found=false
4177   # Loop through the user's path and test for each of PROGNAME-LIST
4178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4180 do
4181   IFS=$as_save_IFS
4182   test -z "$as_dir" && as_dir=.
4183     for ac_prog in sed gsed; do
4184     for ac_exec_ext in '' $ac_executable_extensions; do
4185       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4186       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4187 # Check for GNU ac_path_SED and select it if it is found.
4188   # Check for GNU $ac_path_SED
4189 case `"$ac_path_SED" --version 2>&1` in
4190 *GNU*)
4191   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4192 *)
4193   ac_count=0
4194   $as_echo_n 0123456789 >"conftest.in"
4195   while :
4196   do
4197     cat "conftest.in" "conftest.in" >"conftest.tmp"
4198     mv "conftest.tmp" "conftest.in"
4199     cp "conftest.in" "conftest.nl"
4200     $as_echo '' >> "conftest.nl"
4201     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4202     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4203     as_fn_arith $ac_count + 1 && ac_count=$as_val
4204     if test $ac_count -gt ${ac_path_SED_max-0}; then
4205       # Best one so far, save it but keep looking for a better one
4206       ac_cv_path_SED="$ac_path_SED"
4207       ac_path_SED_max=$ac_count
4208     fi
4209     # 10*(2^10) chars as input seems more than enough
4210     test $ac_count -gt 10 && break
4211   done
4212   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4213 esac
4214
4215       $ac_path_SED_found && break 3
4216     done
4217   done
4218   done
4219 IFS=$as_save_IFS
4220   if test -z "$ac_cv_path_SED"; then
4221     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4222   fi
4223 else
4224   ac_cv_path_SED=$SED
4225 fi
4226
4227 fi
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4229 $as_echo "$ac_cv_path_SED" >&6; }
4230  SED="$ac_cv_path_SED"
4231   rm -f conftest.sed
4232
4233 test -z "$SED" && SED=sed
4234 Xsed="$SED -e 1s/^X//"
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4247 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4248 if test "${ac_cv_path_GREP+set}" = set; then :
4249   $as_echo_n "(cached) " >&6
4250 else
4251   if test -z "$GREP"; then
4252   ac_path_GREP_found=false
4253   # Loop through the user's path and test for each of PROGNAME-LIST
4254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256 do
4257   IFS=$as_save_IFS
4258   test -z "$as_dir" && as_dir=.
4259     for ac_prog in grep ggrep; do
4260     for ac_exec_ext in '' $ac_executable_extensions; do
4261       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4262       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4263 # Check for GNU ac_path_GREP and select it if it is found.
4264   # Check for GNU $ac_path_GREP
4265 case `"$ac_path_GREP" --version 2>&1` in
4266 *GNU*)
4267   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4268 *)
4269   ac_count=0
4270   $as_echo_n 0123456789 >"conftest.in"
4271   while :
4272   do
4273     cat "conftest.in" "conftest.in" >"conftest.tmp"
4274     mv "conftest.tmp" "conftest.in"
4275     cp "conftest.in" "conftest.nl"
4276     $as_echo 'GREP' >> "conftest.nl"
4277     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4278     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4279     as_fn_arith $ac_count + 1 && ac_count=$as_val
4280     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4281       # Best one so far, save it but keep looking for a better one
4282       ac_cv_path_GREP="$ac_path_GREP"
4283       ac_path_GREP_max=$ac_count
4284     fi
4285     # 10*(2^10) chars as input seems more than enough
4286     test $ac_count -gt 10 && break
4287   done
4288   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 esac
4290
4291       $ac_path_GREP_found && break 3
4292     done
4293   done
4294   done
4295 IFS=$as_save_IFS
4296   if test -z "$ac_cv_path_GREP"; then
4297     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298   fi
4299 else
4300   ac_cv_path_GREP=$GREP
4301 fi
4302
4303 fi
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4305 $as_echo "$ac_cv_path_GREP" >&6; }
4306  GREP="$ac_cv_path_GREP"
4307
4308
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4310 $as_echo_n "checking for egrep... " >&6; }
4311 if test "${ac_cv_path_EGREP+set}" = set; then :
4312   $as_echo_n "(cached) " >&6
4313 else
4314   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4315    then ac_cv_path_EGREP="$GREP -E"
4316    else
4317      if test -z "$EGREP"; then
4318   ac_path_EGREP_found=false
4319   # Loop through the user's path and test for each of PROGNAME-LIST
4320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 do
4323   IFS=$as_save_IFS
4324   test -z "$as_dir" && as_dir=.
4325     for ac_prog in egrep; do
4326     for ac_exec_ext in '' $ac_executable_extensions; do
4327       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4328       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4329 # Check for GNU ac_path_EGREP and select it if it is found.
4330   # Check for GNU $ac_path_EGREP
4331 case `"$ac_path_EGREP" --version 2>&1` in
4332 *GNU*)
4333   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4334 *)
4335   ac_count=0
4336   $as_echo_n 0123456789 >"conftest.in"
4337   while :
4338   do
4339     cat "conftest.in" "conftest.in" >"conftest.tmp"
4340     mv "conftest.tmp" "conftest.in"
4341     cp "conftest.in" "conftest.nl"
4342     $as_echo 'EGREP' >> "conftest.nl"
4343     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345     as_fn_arith $ac_count + 1 && ac_count=$as_val
4346     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4347       # Best one so far, save it but keep looking for a better one
4348       ac_cv_path_EGREP="$ac_path_EGREP"
4349       ac_path_EGREP_max=$ac_count
4350     fi
4351     # 10*(2^10) chars as input seems more than enough
4352     test $ac_count -gt 10 && break
4353   done
4354   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4356
4357       $ac_path_EGREP_found && break 3
4358     done
4359   done
4360   done
4361 IFS=$as_save_IFS
4362   if test -z "$ac_cv_path_EGREP"; then
4363     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364   fi
4365 else
4366   ac_cv_path_EGREP=$EGREP
4367 fi
4368
4369    fi
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4372 $as_echo "$ac_cv_path_EGREP" >&6; }
4373  EGREP="$ac_cv_path_EGREP"
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4377 $as_echo_n "checking for fgrep... " >&6; }
4378 if test "${ac_cv_path_FGREP+set}" = set; then :
4379   $as_echo_n "(cached) " >&6
4380 else
4381   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4382    then ac_cv_path_FGREP="$GREP -F"
4383    else
4384      if test -z "$FGREP"; then
4385   ac_path_FGREP_found=false
4386   # Loop through the user's path and test for each of PROGNAME-LIST
4387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 do
4390   IFS=$as_save_IFS
4391   test -z "$as_dir" && as_dir=.
4392     for ac_prog in fgrep; do
4393     for ac_exec_ext in '' $ac_executable_extensions; do
4394       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4395       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4396 # Check for GNU ac_path_FGREP and select it if it is found.
4397   # Check for GNU $ac_path_FGREP
4398 case `"$ac_path_FGREP" --version 2>&1` in
4399 *GNU*)
4400   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4401 *)
4402   ac_count=0
4403   $as_echo_n 0123456789 >"conftest.in"
4404   while :
4405   do
4406     cat "conftest.in" "conftest.in" >"conftest.tmp"
4407     mv "conftest.tmp" "conftest.in"
4408     cp "conftest.in" "conftest.nl"
4409     $as_echo 'FGREP' >> "conftest.nl"
4410     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412     as_fn_arith $ac_count + 1 && ac_count=$as_val
4413     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4414       # Best one so far, save it but keep looking for a better one
4415       ac_cv_path_FGREP="$ac_path_FGREP"
4416       ac_path_FGREP_max=$ac_count
4417     fi
4418     # 10*(2^10) chars as input seems more than enough
4419     test $ac_count -gt 10 && break
4420   done
4421   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422 esac
4423
4424       $ac_path_FGREP_found && break 3
4425     done
4426   done
4427   done
4428 IFS=$as_save_IFS
4429   if test -z "$ac_cv_path_FGREP"; then
4430     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431   fi
4432 else
4433   ac_cv_path_FGREP=$FGREP
4434 fi
4435
4436    fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4439 $as_echo "$ac_cv_path_FGREP" >&6; }
4440  FGREP="$ac_cv_path_FGREP"
4441
4442
4443 test -z "$GREP" && GREP=grep
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4462 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4463 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4464
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4466 $as_echo_n "checking how to print strings... " >&6; }
4467 # Test print first, because it will be a builtin if present.
4468 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4469    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4470   ECHO='print -r --'
4471 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4472   ECHO='printf %s\n'
4473 else
4474   # Use this function as a fallback that always works.
4475   func_fallback_echo ()
4476   {
4477     eval 'cat <<_LTECHO_EOF
4478 $1
4479 _LTECHO_EOF'
4480   }
4481   ECHO='func_fallback_echo'
4482 fi
4483
4484 # func_echo_all arg...
4485 # Invoke $ECHO with all args, space-separated.
4486 func_echo_all ()
4487 {
4488     $ECHO ""
4489 }
4490
4491 case "$ECHO" in
4492   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4493 $as_echo "printf" >&6; } ;;
4494   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4495 $as_echo "print -r" >&6; } ;;
4496   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4497 $as_echo "cat" >&6; } ;;
4498 esac
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515 # Check whether --with-gnu-ld was given.
4516 if test "${with_gnu_ld+set}" = set; then :
4517   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4518 else
4519   with_gnu_ld=no
4520 fi
4521
4522 ac_prog=ld
4523 if test "$GCC" = yes; then
4524   # Check if gcc -print-prog-name=ld gives a path.
4525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4526 $as_echo_n "checking for ld used by $CC... " >&6; }
4527   case $host in
4528   *-*-mingw*)
4529     # gcc leaves a trailing carriage return which upsets mingw
4530     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4531   *)
4532     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4533   esac
4534   case $ac_prog in
4535     # Accept absolute paths.
4536     [\\/]* | ?:[\\/]*)
4537       re_direlt='/[^/][^/]*/\.\./'
4538       # Canonicalize the pathname of ld
4539       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4540       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4541         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4542       done
4543       test -z "$LD" && LD="$ac_prog"
4544       ;;
4545   "")
4546     # If it fails, then pretend we aren't using GCC.
4547     ac_prog=ld
4548     ;;
4549   *)
4550     # If it is relative, then search for the first ld in PATH.
4551     with_gnu_ld=unknown
4552     ;;
4553   esac
4554 elif test "$with_gnu_ld" = yes; then
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4556 $as_echo_n "checking for GNU ld... " >&6; }
4557 else
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4559 $as_echo_n "checking for non-GNU ld... " >&6; }
4560 fi
4561 if test "${lt_cv_path_LD+set}" = set; then :
4562   $as_echo_n "(cached) " >&6
4563 else
4564   if test -z "$LD"; then
4565   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4566   for ac_dir in $PATH; do
4567     IFS="$lt_save_ifs"
4568     test -z "$ac_dir" && ac_dir=.
4569     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4570       lt_cv_path_LD="$ac_dir/$ac_prog"
4571       # Check to see if the program is GNU ld.  I'd rather use --version,
4572       # but apparently some variants of GNU ld only accept -v.
4573       # Break only if it was the GNU/non-GNU ld that we prefer.
4574       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4575       *GNU* | *'with BFD'*)
4576         test "$with_gnu_ld" != no && break
4577         ;;
4578       *)
4579         test "$with_gnu_ld" != yes && break
4580         ;;
4581       esac
4582     fi
4583   done
4584   IFS="$lt_save_ifs"
4585 else
4586   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4587 fi
4588 fi
4589
4590 LD="$lt_cv_path_LD"
4591 if test -n "$LD"; then
4592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4593 $as_echo "$LD" >&6; }
4594 else
4595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4597 fi
4598 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4600 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4601 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4602   $as_echo_n "(cached) " >&6
4603 else
4604   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4605 case `$LD -v 2>&1 </dev/null` in
4606 *GNU* | *'with BFD'*)
4607   lt_cv_prog_gnu_ld=yes
4608   ;;
4609 *)
4610   lt_cv_prog_gnu_ld=no
4611   ;;
4612 esac
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4615 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4616 with_gnu_ld=$lt_cv_prog_gnu_ld
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626 if test -n "$ac_tool_prefix"; then
4627   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4628 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   if test -n "$RANLIB"; then
4635   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642     for ac_exec_ext in '' $ac_executable_extensions; do
4643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4644     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649   done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 RANLIB=$ac_cv_prog_RANLIB
4655 if test -n "$RANLIB"; then
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4657 $as_echo "$RANLIB" >&6; }
4658 else
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664 fi
4665 if test -z "$ac_cv_prog_RANLIB"; then
4666   ac_ct_RANLIB=$RANLIB
4667   # Extract the first word of "ranlib", so it can be a program name with args.
4668 set dummy ranlib; ac_word=$2
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670 $as_echo_n "checking for $ac_word... " >&6; }
4671 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4672   $as_echo_n "(cached) " >&6
4673 else
4674   if test -n "$ac_ct_RANLIB"; then
4675   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4676 else
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678 for as_dir in $PATH
4679 do
4680   IFS=$as_save_IFS
4681   test -z "$as_dir" && as_dir=.
4682     for ac_exec_ext in '' $ac_executable_extensions; do
4683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4684     ac_cv_prog_ac_ct_RANLIB="ranlib"
4685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686     break 2
4687   fi
4688 done
4689   done
4690 IFS=$as_save_IFS
4691
4692 fi
4693 fi
4694 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4695 if test -n "$ac_ct_RANLIB"; then
4696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4697 $as_echo "$ac_ct_RANLIB" >&6; }
4698 else
4699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700 $as_echo "no" >&6; }
4701 fi
4702
4703   if test "x$ac_ct_RANLIB" = x; then
4704     RANLIB=":"
4705   else
4706     case $cross_compiling:$ac_tool_warned in
4707 yes:)
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4710 ac_tool_warned=yes ;;
4711 esac
4712     RANLIB=$ac_ct_RANLIB
4713   fi
4714 else
4715   RANLIB="$ac_cv_prog_RANLIB"
4716 fi
4717
4718 if test -n "$ac_tool_prefix"; then
4719   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4720 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726   if test -n "$OBJCOPY"; then
4727   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4728 else
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730 for as_dir in $PATH
4731 do
4732   IFS=$as_save_IFS
4733   test -z "$as_dir" && as_dir=.
4734     for ac_exec_ext in '' $ac_executable_extensions; do
4735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4738     break 2
4739   fi
4740 done
4741   done
4742 IFS=$as_save_IFS
4743
4744 fi
4745 fi
4746 OBJCOPY=$ac_cv_prog_OBJCOPY
4747 if test -n "$OBJCOPY"; then
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4749 $as_echo "$OBJCOPY" >&6; }
4750 else
4751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4752 $as_echo "no" >&6; }
4753 fi
4754
4755
4756 fi
4757 if test -z "$ac_cv_prog_OBJCOPY"; then
4758   ac_ct_OBJCOPY=$OBJCOPY
4759   # Extract the first word of "objcopy", so it can be a program name with args.
4760 set dummy objcopy; ac_word=$2
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4762 $as_echo_n "checking for $ac_word... " >&6; }
4763 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4764   $as_echo_n "(cached) " >&6
4765 else
4766   if test -n "$ac_ct_OBJCOPY"; then
4767   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4768 else
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH
4771 do
4772   IFS=$as_save_IFS
4773   test -z "$as_dir" && as_dir=.
4774     for ac_exec_ext in '' $ac_executable_extensions; do
4775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4776     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778     break 2
4779   fi
4780 done
4781   done
4782 IFS=$as_save_IFS
4783
4784 fi
4785 fi
4786 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4787 if test -n "$ac_ct_OBJCOPY"; then
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4789 $as_echo "$ac_ct_OBJCOPY" >&6; }
4790 else
4791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 $as_echo "no" >&6; }
4793 fi
4794
4795   if test "x$ac_ct_OBJCOPY" = x; then
4796     OBJCOPY="missing-objcopy"
4797   else
4798     case $cross_compiling:$ac_tool_warned in
4799 yes:)
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4802 ac_tool_warned=yes ;;
4803 esac
4804     OBJCOPY=$ac_ct_OBJCOPY
4805   fi
4806 else
4807   OBJCOPY="$ac_cv_prog_OBJCOPY"
4808 fi
4809
4810
4811 enable_dlopen=yes
4812
4813
4814
4815 case `pwd` in
4816   *\ * | *\     *)
4817     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4818 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4819 esac
4820
4821
4822
4823 macro_version='2.2.7a'
4824 macro_revision='1.3134'
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 ltmain="$ac_aux_dir/ltmain.sh"
4839
4840 # Backslashify metacharacters that are still active within
4841 # double-quoted strings.
4842 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4843
4844 # Same as above, but do not quote variable references.
4845 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4846
4847 # Sed substitution to delay expansion of an escaped shell variable in a
4848 # double_quote_subst'ed string.
4849 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4850
4851 # Sed substitution to delay expansion of an escaped single quote.
4852 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4853
4854 # Sed substitution to avoid accidental globbing in evaled expressions
4855 no_glob_subst='s/\*/\\\*/g'
4856
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4858 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4859 if test "${lt_cv_path_NM+set}" = set; then :
4860   $as_echo_n "(cached) " >&6
4861 else
4862   if test -n "$NM"; then
4863   # Let the user override the test.
4864   lt_cv_path_NM="$NM"
4865 else
4866   lt_nm_to_check="${ac_tool_prefix}nm"
4867   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4868     lt_nm_to_check="$lt_nm_to_check nm"
4869   fi
4870   for lt_tmp_nm in $lt_nm_to_check; do
4871     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4872     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4873       IFS="$lt_save_ifs"
4874       test -z "$ac_dir" && ac_dir=.
4875       tmp_nm="$ac_dir/$lt_tmp_nm"
4876       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4877         # Check to see if the nm accepts a BSD-compat flag.
4878         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4879         #   nm: unknown option "B" ignored
4880         # Tru64's nm complains that /dev/null is an invalid object file
4881         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4882         */dev/null* | *'Invalid file or object type'*)
4883           lt_cv_path_NM="$tmp_nm -B"
4884           break
4885           ;;
4886         *)
4887           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4888           */dev/null*)
4889             lt_cv_path_NM="$tmp_nm -p"
4890             break
4891             ;;
4892           *)
4893             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4894             continue # so that we can try to find one that supports BSD flags
4895             ;;
4896           esac
4897           ;;
4898         esac
4899       fi
4900     done
4901     IFS="$lt_save_ifs"
4902   done
4903   : ${lt_cv_path_NM=no}
4904 fi
4905 fi
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4907 $as_echo "$lt_cv_path_NM" >&6; }
4908 if test "$lt_cv_path_NM" != "no"; then
4909   NM="$lt_cv_path_NM"
4910 else
4911   # Didn't find any BSD compatible name lister, look for dumpbin.
4912   if test -n "$DUMPBIN"; then :
4913     # Let the user override the test.
4914   else
4915     if test -n "$ac_tool_prefix"; then
4916   for ac_prog in dumpbin "link -dump"
4917   do
4918     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4919 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4923   $as_echo_n "(cached) " >&6
4924 else
4925   if test -n "$DUMPBIN"; then
4926   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933     for ac_exec_ext in '' $ac_executable_extensions; do
4934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937     break 2
4938   fi
4939 done
4940   done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 DUMPBIN=$ac_cv_prog_DUMPBIN
4946 if test -n "$DUMPBIN"; then
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4948 $as_echo "$DUMPBIN" >&6; }
4949 else
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954
4955     test -n "$DUMPBIN" && break
4956   done
4957 fi
4958 if test -z "$DUMPBIN"; then
4959   ac_ct_DUMPBIN=$DUMPBIN
4960   for ac_prog in dumpbin "link -dump"
4961 do
4962   # Extract the first word of "$ac_prog", so it can be a program name with args.
4963 set dummy $ac_prog; ac_word=$2
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965 $as_echo_n "checking for $ac_word... " >&6; }
4966 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   if test -n "$ac_ct_DUMPBIN"; then
4970   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4971 else
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975   IFS=$as_save_IFS
4976   test -z "$as_dir" && as_dir=.
4977     for ac_exec_ext in '' $ac_executable_extensions; do
4978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4979     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4981     break 2
4982   fi
4983 done
4984   done
4985 IFS=$as_save_IFS
4986
4987 fi
4988 fi
4989 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4990 if test -n "$ac_ct_DUMPBIN"; then
4991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4992 $as_echo "$ac_ct_DUMPBIN" >&6; }
4993 else
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995 $as_echo "no" >&6; }
4996 fi
4997
4998
4999   test -n "$ac_ct_DUMPBIN" && break
5000 done
5001
5002   if test "x$ac_ct_DUMPBIN" = x; then
5003     DUMPBIN=":"
5004   else
5005     case $cross_compiling:$ac_tool_warned in
5006 yes:)
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5009 ac_tool_warned=yes ;;
5010 esac
5011     DUMPBIN=$ac_ct_DUMPBIN
5012   fi
5013 fi
5014
5015     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5016     *COFF*)
5017       DUMPBIN="$DUMPBIN -symbols"
5018       ;;
5019     *)
5020       DUMPBIN=:
5021       ;;
5022     esac
5023   fi
5024
5025   if test "$DUMPBIN" != ":"; then
5026     NM="$DUMPBIN"
5027   fi
5028 fi
5029 test -z "$NM" && NM=nm
5030
5031
5032
5033
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5037 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5038 if test "${lt_cv_nm_interface+set}" = set; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041   lt_cv_nm_interface="BSD nm"
5042   echo "int some_variable = 0;" > conftest.$ac_ext
5043   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5044   (eval "$ac_compile" 2>conftest.err)
5045   cat conftest.err >&5
5046   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5047   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5048   cat conftest.err >&5
5049   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5050   cat conftest.out >&5
5051   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5052     lt_cv_nm_interface="MS dumpbin"
5053   fi
5054   rm -f conftest*
5055 fi
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5057 $as_echo "$lt_cv_nm_interface" >&6; }
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5060 $as_echo_n "checking whether ln -s works... " >&6; }
5061 LN_S=$as_ln_s
5062 if test "$LN_S" = "ln -s"; then
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5064 $as_echo "yes" >&6; }
5065 else
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5067 $as_echo "no, using $LN_S" >&6; }
5068 fi
5069
5070 # find the maximum length of command line arguments
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5072 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5073 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076     i=0
5077   teststring="ABCD"
5078
5079   case $build_os in
5080   msdosdjgpp*)
5081     # On DJGPP, this test can blow up pretty badly due to problems in libc
5082     # (any single argument exceeding 2000 bytes causes a buffer overrun
5083     # during glob expansion).  Even if it were fixed, the result of this
5084     # check would be larger than it should be.
5085     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5086     ;;
5087
5088   gnu*)
5089     # Under GNU Hurd, this test is not required because there is
5090     # no limit to the length of command line arguments.
5091     # Libtool will interpret -1 as no limit whatsoever
5092     lt_cv_sys_max_cmd_len=-1;
5093     ;;
5094
5095   cygwin* | mingw* | cegcc*)
5096     # On Win9x/ME, this test blows up -- it succeeds, but takes
5097     # about 5 minutes as the teststring grows exponentially.
5098     # Worse, since 9x/ME are not pre-emptively multitasking,
5099     # you end up with a "frozen" computer, even though with patience
5100     # the test eventually succeeds (with a max line length of 256k).
5101     # Instead, let's just punt: use the minimum linelength reported by
5102     # all of the supported platforms: 8192 (on NT/2K/XP).
5103     lt_cv_sys_max_cmd_len=8192;
5104     ;;
5105
5106   mint*)
5107     # On MiNT this can take a long time and run out of memory.
5108     lt_cv_sys_max_cmd_len=8192;
5109     ;;
5110
5111   amigaos*)
5112     # On AmigaOS with pdksh, this test takes hours, literally.
5113     # So we just punt and use a minimum line length of 8192.
5114     lt_cv_sys_max_cmd_len=8192;
5115     ;;
5116
5117   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5118     # This has been around since 386BSD, at least.  Likely further.
5119     if test -x /sbin/sysctl; then
5120       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5121     elif test -x /usr/sbin/sysctl; then
5122       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5123     else
5124       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5125     fi
5126     # And add a safety zone
5127     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5128     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5129     ;;
5130
5131   interix*)
5132     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5133     lt_cv_sys_max_cmd_len=196608
5134     ;;
5135
5136   osf*)
5137     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5138     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5139     # nice to cause kernel panics so lets avoid the loop below.
5140     # First set a reasonable default.
5141     lt_cv_sys_max_cmd_len=16384
5142     #
5143     if test -x /sbin/sysconfig; then
5144       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5145         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5146       esac
5147     fi
5148     ;;
5149   sco3.2v5*)
5150     lt_cv_sys_max_cmd_len=102400
5151     ;;
5152   sysv5* | sco5v6* | sysv4.2uw2*)
5153     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5154     if test -n "$kargmax"; then
5155       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5156     else
5157       lt_cv_sys_max_cmd_len=32768
5158     fi
5159     ;;
5160   *)
5161     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5162     if test -n "$lt_cv_sys_max_cmd_len"; then
5163       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5164       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5165     else
5166       # Make teststring a little bigger before we do anything with it.
5167       # a 1K string should be a reasonable start.
5168       for i in 1 2 3 4 5 6 7 8 ; do
5169         teststring=$teststring$teststring
5170       done
5171       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5172       # If test is not a shell built-in, we'll probably end up computing a
5173       # maximum length that is only half of the actual maximum length, but
5174       # we can't tell.
5175       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5176                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5177               test $i != 17 # 1/2 MB should be enough
5178       do
5179         i=`expr $i + 1`
5180         teststring=$teststring$teststring
5181       done
5182       # Only check the string length outside the loop.
5183       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5184       teststring=
5185       # Add a significant safety factor because C++ compilers can tack on
5186       # massive amounts of additional arguments before passing them to the
5187       # linker.  It appears as though 1/2 is a usable value.
5188       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5189     fi
5190     ;;
5191   esac
5192
5193 fi
5194
5195 if test -n $lt_cv_sys_max_cmd_len ; then
5196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5197 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5198 else
5199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5200 $as_echo "none" >&6; }
5201 fi
5202 max_cmd_len=$lt_cv_sys_max_cmd_len
5203
5204
5205
5206
5207
5208
5209 : ${CP="cp -f"}
5210 : ${MV="mv -f"}
5211 : ${RM="rm -f"}
5212
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5214 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5215 # Try some XSI features
5216 xsi_shell=no
5217 ( _lt_dummy="a/b/c"
5218   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5219       = c,a/b,, \
5220     && eval 'test $(( 1 + 1 )) -eq 2 \
5221     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5222   && xsi_shell=yes
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5224 $as_echo "$xsi_shell" >&6; }
5225
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5228 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5229 lt_shell_append=no
5230 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5231     >/dev/null 2>&1 \
5232   && lt_shell_append=yes
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5234 $as_echo "$lt_shell_append" >&6; }
5235
5236
5237 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5238   lt_unset=unset
5239 else
5240   lt_unset=false
5241 fi
5242
5243
5244
5245
5246
5247 # test EBCDIC or ASCII
5248 case `echo X|tr X '\101'` in
5249  A) # ASCII based system
5250     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5251   lt_SP2NL='tr \040 \012'
5252   lt_NL2SP='tr \015\012 \040\040'
5253   ;;
5254  *) # EBCDIC based system
5255   lt_SP2NL='tr \100 \n'
5256   lt_NL2SP='tr \r\n \100\100'
5257   ;;
5258 esac
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5269 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5270 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   lt_cv_ld_reload_flag='-r'
5274 fi
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5276 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5277 reload_flag=$lt_cv_ld_reload_flag
5278 case $reload_flag in
5279 "" | " "*) ;;
5280 *) reload_flag=" $reload_flag" ;;
5281 esac
5282 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5283 case $host_os in
5284   darwin*)
5285     if test "$GCC" = yes; then
5286       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5287     else
5288       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5289     fi
5290     ;;
5291 esac
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301 if test -n "$ac_tool_prefix"; then
5302   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5303 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5305 $as_echo_n "checking for $ac_word... " >&6; }
5306 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5307   $as_echo_n "(cached) " >&6
5308 else
5309   if test -n "$OBJDUMP"; then
5310   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315   IFS=$as_save_IFS
5316   test -z "$as_dir" && as_dir=.
5317     for ac_exec_ext in '' $ac_executable_extensions; do
5318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5319     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321     break 2
5322   fi
5323 done
5324   done
5325 IFS=$as_save_IFS
5326
5327 fi
5328 fi
5329 OBJDUMP=$ac_cv_prog_OBJDUMP
5330 if test -n "$OBJDUMP"; then
5331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5332 $as_echo "$OBJDUMP" >&6; }
5333 else
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5335 $as_echo "no" >&6; }
5336 fi
5337
5338
5339 fi
5340 if test -z "$ac_cv_prog_OBJDUMP"; then
5341   ac_ct_OBJDUMP=$OBJDUMP
5342   # Extract the first word of "objdump", so it can be a program name with args.
5343 set dummy objdump; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   if test -n "$ac_ct_OBJDUMP"; then
5350   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355   IFS=$as_save_IFS
5356   test -z "$as_dir" && as_dir=.
5357     for ac_exec_ext in '' $ac_executable_extensions; do
5358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361     break 2
5362   fi
5363 done
5364   done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5370 if test -n "$ac_ct_OBJDUMP"; then
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5372 $as_echo "$ac_ct_OBJDUMP" >&6; }
5373 else
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378   if test "x$ac_ct_OBJDUMP" = x; then
5379     OBJDUMP="false"
5380   else
5381     case $cross_compiling:$ac_tool_warned in
5382 yes:)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5385 ac_tool_warned=yes ;;
5386 esac
5387     OBJDUMP=$ac_ct_OBJDUMP
5388   fi
5389 else
5390   OBJDUMP="$ac_cv_prog_OBJDUMP"
5391 fi
5392
5393 test -z "$OBJDUMP" && OBJDUMP=objdump
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5404 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5405 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408   lt_cv_file_magic_cmd='$MAGIC_CMD'
5409 lt_cv_file_magic_test_file=
5410 lt_cv_deplibs_check_method='unknown'
5411 # Need to set the preceding variable on all platforms that support
5412 # interlibrary dependencies.
5413 # 'none' -- dependencies not supported.
5414 # `unknown' -- same as none, but documents that we really don't know.
5415 # 'pass_all' -- all dependencies passed with no checks.
5416 # 'test_compile' -- check by making test program.
5417 # 'file_magic [[regex]]' -- check by looking for files in library path
5418 # which responds to the $file_magic_cmd with a given extended regex.
5419 # If you have `file' or equivalent on your system and you're not sure
5420 # whether `pass_all' will *always* work, you probably want this one.
5421
5422 case $host_os in
5423 aix[4-9]*)
5424   lt_cv_deplibs_check_method=pass_all
5425   ;;
5426
5427 beos*)
5428   lt_cv_deplibs_check_method=pass_all
5429   ;;
5430
5431 bsdi[45]*)
5432   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5433   lt_cv_file_magic_cmd='/usr/bin/file -L'
5434   lt_cv_file_magic_test_file=/shlib/libc.so
5435   ;;
5436
5437 cygwin*)
5438   # func_win32_libid is a shell function defined in ltmain.sh
5439   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5440   lt_cv_file_magic_cmd='func_win32_libid'
5441   ;;
5442
5443 mingw* | pw32*)
5444   # Base MSYS/MinGW do not provide the 'file' command needed by
5445   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5446   # unless we find 'file', for example because we are cross-compiling.
5447   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5448   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5449     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5450     lt_cv_file_magic_cmd='func_win32_libid'
5451   else
5452     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5453     lt_cv_file_magic_cmd='$OBJDUMP -f'
5454   fi
5455   ;;
5456
5457 cegcc*)
5458   # use the weaker test based on 'objdump'. See mingw*.
5459   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5460   lt_cv_file_magic_cmd='$OBJDUMP -f'
5461   ;;
5462
5463 darwin* | rhapsody*)
5464   lt_cv_deplibs_check_method=pass_all
5465   ;;
5466
5467 freebsd* | dragonfly*)
5468   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5469     case $host_cpu in
5470     i*86 )
5471       # Not sure whether the presence of OpenBSD here was a mistake.
5472       # Let's accept both of them until this is cleared up.
5473       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5474       lt_cv_file_magic_cmd=/usr/bin/file
5475       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5476       ;;
5477     esac
5478   else
5479     lt_cv_deplibs_check_method=pass_all
5480   fi
5481   ;;
5482
5483 gnu*)
5484   lt_cv_deplibs_check_method=pass_all
5485   ;;
5486
5487 haiku*)
5488   lt_cv_deplibs_check_method=pass_all
5489   ;;
5490
5491 hpux10.20* | hpux11*)
5492   lt_cv_file_magic_cmd=/usr/bin/file
5493   case $host_cpu in
5494   ia64*)
5495     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5496     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5497     ;;
5498   hppa*64*)
5499     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]'
5500     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5501     ;;
5502   *)
5503     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5504     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5505     ;;
5506   esac
5507   ;;
5508
5509 interix[3-9]*)
5510   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5511   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5512   ;;
5513
5514 irix5* | irix6* | nonstopux*)
5515   case $LD in
5516   *-32|*"-32 ") libmagic=32-bit;;
5517   *-n32|*"-n32 ") libmagic=N32;;
5518   *-64|*"-64 ") libmagic=64-bit;;
5519   *) libmagic=never-match;;
5520   esac
5521   lt_cv_deplibs_check_method=pass_all
5522   ;;
5523
5524 # This must be Linux ELF.
5525 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5526   lt_cv_deplibs_check_method=pass_all
5527   ;;
5528
5529 netbsd*)
5530   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5532   else
5533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5534   fi
5535   ;;
5536
5537 newos6*)
5538   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5539   lt_cv_file_magic_cmd=/usr/bin/file
5540   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5541   ;;
5542
5543 *nto* | *qnx*)
5544   lt_cv_deplibs_check_method=pass_all
5545   ;;
5546
5547 openbsd*)
5548   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5549     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5550   else
5551     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5552   fi
5553   ;;
5554
5555 osf3* | osf4* | osf5*)
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558
5559 rdos*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562
5563 solaris*)
5564   lt_cv_deplibs_check_method=pass_all
5565   ;;
5566
5567 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570
5571 sysv4 | sysv4.3*)
5572   case $host_vendor in
5573   motorola)
5574     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]'
5575     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5576     ;;
5577   ncr)
5578     lt_cv_deplibs_check_method=pass_all
5579     ;;
5580   sequent)
5581     lt_cv_file_magic_cmd='/bin/file'
5582     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5583     ;;
5584   sni)
5585     lt_cv_file_magic_cmd='/bin/file'
5586     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5587     lt_cv_file_magic_test_file=/lib/libc.so
5588     ;;
5589   siemens)
5590     lt_cv_deplibs_check_method=pass_all
5591     ;;
5592   pc)
5593     lt_cv_deplibs_check_method=pass_all
5594     ;;
5595   esac
5596   ;;
5597
5598 tpf*)
5599   lt_cv_deplibs_check_method=pass_all
5600   ;;
5601 esac
5602
5603 fi
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5605 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5606 file_magic_cmd=$lt_cv_file_magic_cmd
5607 deplibs_check_method=$lt_cv_deplibs_check_method
5608 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621 if test -n "$ac_tool_prefix"; then
5622   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5623 set dummy ${ac_tool_prefix}ar; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if test "${ac_cv_prog_AR+set}" = set; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   if test -n "$AR"; then
5630   ac_cv_prog_AR="$AR" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637     for ac_exec_ext in '' $ac_executable_extensions; do
5638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639     ac_cv_prog_AR="${ac_tool_prefix}ar"
5640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641     break 2
5642   fi
5643 done
5644   done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 AR=$ac_cv_prog_AR
5650 if test -n "$AR"; then
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5652 $as_echo "$AR" >&6; }
5653 else
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658
5659 fi
5660 if test -z "$ac_cv_prog_AR"; then
5661   ac_ct_AR=$AR
5662   # Extract the first word of "ar", so it can be a program name with args.
5663 set dummy ar; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5667   $as_echo_n "(cached) " >&6
5668 else
5669   if test -n "$ac_ct_AR"; then
5670   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675   IFS=$as_save_IFS
5676   test -z "$as_dir" && as_dir=.
5677     for ac_exec_ext in '' $ac_executable_extensions; do
5678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679     ac_cv_prog_ac_ct_AR="ar"
5680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681     break 2
5682   fi
5683 done
5684   done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5690 if test -n "$ac_ct_AR"; then
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5692 $as_echo "$ac_ct_AR" >&6; }
5693 else
5694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698   if test "x$ac_ct_AR" = x; then
5699     AR="false"
5700   else
5701     case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707     AR=$ac_ct_AR
5708   fi
5709 else
5710   AR="$ac_cv_prog_AR"
5711 fi
5712
5713 test -z "$AR" && AR=ar
5714 test -z "$AR_FLAGS" && AR_FLAGS=cru
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726 if test -n "$ac_tool_prefix"; then
5727   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728 set dummy ${ac_tool_prefix}strip; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if test "${ac_cv_prog_STRIP+set}" = set; then :
5732   $as_echo_n "(cached) " >&6
5733 else
5734   if test -n "$STRIP"; then
5735   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740   IFS=$as_save_IFS
5741   test -z "$as_dir" && as_dir=.
5742     for ac_exec_ext in '' $ac_executable_extensions; do
5743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746     break 2
5747   fi
5748 done
5749   done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 STRIP=$ac_cv_prog_STRIP
5755 if test -n "$STRIP"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5757 $as_echo "$STRIP" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764 fi
5765 if test -z "$ac_cv_prog_STRIP"; then
5766   ac_ct_STRIP=$STRIP
5767   # Extract the first word of "strip", so it can be a program name with args.
5768 set dummy strip; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774   if test -n "$ac_ct_STRIP"; then
5775   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5776 else
5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5778 for as_dir in $PATH
5779 do
5780   IFS=$as_save_IFS
5781   test -z "$as_dir" && as_dir=.
5782     for ac_exec_ext in '' $ac_executable_extensions; do
5783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5784     ac_cv_prog_ac_ct_STRIP="strip"
5785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5786     break 2
5787   fi
5788 done
5789   done
5790 IFS=$as_save_IFS
5791
5792 fi
5793 fi
5794 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5795 if test -n "$ac_ct_STRIP"; then
5796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5797 $as_echo "$ac_ct_STRIP" >&6; }
5798 else
5799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5800 $as_echo "no" >&6; }
5801 fi
5802
5803   if test "x$ac_ct_STRIP" = x; then
5804     STRIP=":"
5805   else
5806     case $cross_compiling:$ac_tool_warned in
5807 yes:)
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810 ac_tool_warned=yes ;;
5811 esac
5812     STRIP=$ac_ct_STRIP
5813   fi
5814 else
5815   STRIP="$ac_cv_prog_STRIP"
5816 fi
5817
5818 test -z "$STRIP" && STRIP=:
5819
5820
5821
5822
5823
5824
5825 if test -n "$ac_tool_prefix"; then
5826   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5827 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5831   $as_echo_n "(cached) " >&6
5832 else
5833   if test -n "$RANLIB"; then
5834   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839   IFS=$as_save_IFS
5840   test -z "$as_dir" && as_dir=.
5841     for ac_exec_ext in '' $ac_executable_extensions; do
5842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5843     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845     break 2
5846   fi
5847 done
5848   done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 RANLIB=$ac_cv_prog_RANLIB
5854 if test -n "$RANLIB"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5856 $as_echo "$RANLIB" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862
5863 fi
5864 if test -z "$ac_cv_prog_RANLIB"; then
5865   ac_ct_RANLIB=$RANLIB
5866   # Extract the first word of "ranlib", so it can be a program name with args.
5867 set dummy ranlib; ac_word=$2
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5869 $as_echo_n "checking for $ac_word... " >&6; }
5870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5871   $as_echo_n "(cached) " >&6
5872 else
5873   if test -n "$ac_ct_RANLIB"; then
5874   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5875 else
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_prog_ac_ct_RANLIB="ranlib"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890
5891 fi
5892 fi
5893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5894 if test -n "$ac_ct_RANLIB"; then
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5896 $as_echo "$ac_ct_RANLIB" >&6; }
5897 else
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5899 $as_echo "no" >&6; }
5900 fi
5901
5902   if test "x$ac_ct_RANLIB" = x; then
5903     RANLIB=":"
5904   else
5905     case $cross_compiling:$ac_tool_warned in
5906 yes:)
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5909 ac_tool_warned=yes ;;
5910 esac
5911     RANLIB=$ac_ct_RANLIB
5912   fi
5913 else
5914   RANLIB="$ac_cv_prog_RANLIB"
5915 fi
5916
5917 test -z "$RANLIB" && RANLIB=:
5918
5919
5920
5921
5922
5923
5924 # Determine commands to create old-style static archives.
5925 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5926 old_postinstall_cmds='chmod 644 $oldlib'
5927 old_postuninstall_cmds=
5928
5929 if test -n "$RANLIB"; then
5930   case $host_os in
5931   openbsd*)
5932     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5933     ;;
5934   *)
5935     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5936     ;;
5937   esac
5938   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5939 fi
5940
5941 case $host_os in
5942   darwin*)
5943     lock_old_archive_extraction=yes ;;
5944   *)
5945     lock_old_archive_extraction=no ;;
5946 esac
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
5978
5979
5980
5981
5982
5983
5984
5985
5986 # If no C compiler was specified, use CC.
5987 LTCC=${LTCC-"$CC"}
5988
5989 # If no C compiler flags were specified, use CFLAGS.
5990 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5991
5992 # Allow CC to be a program name with arguments.
5993 compiler=$CC
5994
5995
5996 # Check for command to grab the raw symbol name followed by C symbol from nm.
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5998 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5999 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6000   $as_echo_n "(cached) " >&6
6001 else
6002
6003 # These are sane defaults that work on at least a few old systems.
6004 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6005
6006 # Character class describing NM global symbol codes.
6007 symcode='[BCDEGRST]'
6008
6009 # Regexp to match symbols that can be accessed directly from C.
6010 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6011
6012 # Define system-specific variables.
6013 case $host_os in
6014 aix*)
6015   symcode='[BCDT]'
6016   ;;
6017 cygwin* | mingw* | pw32* | cegcc*)
6018   symcode='[ABCDGISTW]'
6019   ;;
6020 hpux*)
6021   if test "$host_cpu" = ia64; then
6022     symcode='[ABCDEGRST]'
6023   fi
6024   ;;
6025 irix* | nonstopux*)
6026   symcode='[BCDEGRST]'
6027   ;;
6028 osf*)
6029   symcode='[BCDEGQRST]'
6030   ;;
6031 solaris*)
6032   symcode='[BDRT]'
6033   ;;
6034 sco3.2v5*)
6035   symcode='[DT]'
6036   ;;
6037 sysv4.2uw2*)
6038   symcode='[DT]'
6039   ;;
6040 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6041   symcode='[ABDT]'
6042   ;;
6043 sysv4)
6044   symcode='[DFNSTU]'
6045   ;;
6046 esac
6047
6048 # If we're using GNU nm, then use its standard symbol codes.
6049 case `$NM -V 2>&1` in
6050 *GNU* | *'with BFD'*)
6051   symcode='[ABCDGIRSTW]' ;;
6052 esac
6053
6054 # Transform an extracted symbol line into a proper C declaration.
6055 # Some systems (esp. on ia64) link data and code symbols differently,
6056 # so use this general approach.
6057 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6058
6059 # Transform an extracted symbol line into symbol name and symbol address
6060 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6061 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'"
6062
6063 # Handle CRLF in mingw tool chain
6064 opt_cr=
6065 case $build_os in
6066 mingw*)
6067   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6068   ;;
6069 esac
6070
6071 # Try without a prefix underscore, then with it.
6072 for ac_symprfx in "" "_"; do
6073
6074   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6075   symxfrm="\\1 $ac_symprfx\\2 \\2"
6076
6077   # Write the raw and C identifiers.
6078   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6079     # Fake it for dumpbin and say T for any non-static function
6080     # and D for any global variable.
6081     # Also find C++ and __fastcall symbols from MSVC++,
6082     # which start with @ or ?.
6083     lt_cv_sys_global_symbol_pipe="$AWK '"\
6084 "     {last_section=section; section=\$ 3};"\
6085 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6086 "     \$ 0!~/External *\|/{next};"\
6087 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6088 "     {if(hide[section]) next};"\
6089 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6090 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6091 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6092 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6093 "     ' prfx=^$ac_symprfx"
6094   else
6095     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6096   fi
6097
6098   # Check to see that the pipe works correctly.
6099   pipe_works=no
6100
6101   rm -f conftest*
6102   cat > conftest.$ac_ext <<_LT_EOF
6103 #ifdef __cplusplus
6104 extern "C" {
6105 #endif
6106 char nm_test_var;
6107 void nm_test_func(void);
6108 void nm_test_func(void){}
6109 #ifdef __cplusplus
6110 }
6111 #endif
6112 int main(){nm_test_var='a';nm_test_func();return(0);}
6113 _LT_EOF
6114
6115   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6116   (eval $ac_compile) 2>&5
6117   ac_status=$?
6118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6119   test $ac_status = 0; }; then
6120     # Now try to grab the symbols.
6121     nlist=conftest.nm
6122     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6123   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6124   ac_status=$?
6125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6126   test $ac_status = 0; } && test -s "$nlist"; then
6127       # Try sorting and uniquifying the output.
6128       if sort "$nlist" | uniq > "$nlist"T; then
6129         mv -f "$nlist"T "$nlist"
6130       else
6131         rm -f "$nlist"T
6132       fi
6133
6134       # Make sure that we snagged all the symbols we need.
6135       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6136         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6137           cat <<_LT_EOF > conftest.$ac_ext
6138 #ifdef __cplusplus
6139 extern "C" {
6140 #endif
6141
6142 _LT_EOF
6143           # Now generate the symbol file.
6144           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6145
6146           cat <<_LT_EOF >> conftest.$ac_ext
6147
6148 /* The mapping between symbol names and symbols.  */
6149 const struct {
6150   const char *name;
6151   void       *address;
6152 }
6153 lt__PROGRAM__LTX_preloaded_symbols[] =
6154 {
6155   { "@PROGRAM@", (void *) 0 },
6156 _LT_EOF
6157           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6158           cat <<\_LT_EOF >> conftest.$ac_ext
6159   {0, (void *) 0}
6160 };
6161
6162 /* This works around a problem in FreeBSD linker */
6163 #ifdef FREEBSD_WORKAROUND
6164 static const void *lt_preloaded_setup() {
6165   return lt__PROGRAM__LTX_preloaded_symbols;
6166 }
6167 #endif
6168
6169 #ifdef __cplusplus
6170 }
6171 #endif
6172 _LT_EOF
6173           # Now try linking the two files.
6174           mv conftest.$ac_objext conftstm.$ac_objext
6175           lt_save_LIBS="$LIBS"
6176           lt_save_CFLAGS="$CFLAGS"
6177           LIBS="conftstm.$ac_objext"
6178           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6179           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6180   (eval $ac_link) 2>&5
6181   ac_status=$?
6182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6183   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6184             pipe_works=yes
6185           fi
6186           LIBS="$lt_save_LIBS"
6187           CFLAGS="$lt_save_CFLAGS"
6188         else
6189           echo "cannot find nm_test_func in $nlist" >&5
6190         fi
6191       else
6192         echo "cannot find nm_test_var in $nlist" >&5
6193       fi
6194     else
6195       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6196     fi
6197   else
6198     echo "$progname: failed program was:" >&5
6199     cat conftest.$ac_ext >&5
6200   fi
6201   rm -rf conftest* conftst*
6202
6203   # Do not use the global_symbol_pipe unless it works.
6204   if test "$pipe_works" = yes; then
6205     break
6206   else
6207     lt_cv_sys_global_symbol_pipe=
6208   fi
6209 done
6210
6211 fi
6212
6213 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6214   lt_cv_sys_global_symbol_to_cdecl=
6215 fi
6216 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6218 $as_echo "failed" >&6; }
6219 else
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6221 $as_echo "ok" >&6; }
6222 fi
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246 # Check whether --enable-libtool-lock was given.
6247 if test "${enable_libtool_lock+set}" = set; then :
6248   enableval=$enable_libtool_lock;
6249 fi
6250
6251 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6252
6253 # Some flags need to be propagated to the compiler or linker for good
6254 # libtool support.
6255 case $host in
6256 ia64-*-hpux*)
6257   # Find out which ABI we are using.
6258   echo 'int i;' > conftest.$ac_ext
6259   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6260   (eval $ac_compile) 2>&5
6261   ac_status=$?
6262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263   test $ac_status = 0; }; then
6264     case `/usr/bin/file conftest.$ac_objext` in
6265       *ELF-32*)
6266         HPUX_IA64_MODE="32"
6267         ;;
6268       *ELF-64*)
6269         HPUX_IA64_MODE="64"
6270         ;;
6271     esac
6272   fi
6273   rm -rf conftest*
6274   ;;
6275 *-*-irix6*)
6276   # Find out which ABI we are using.
6277   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6278   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6279   (eval $ac_compile) 2>&5
6280   ac_status=$?
6281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6282   test $ac_status = 0; }; then
6283     if test "$lt_cv_prog_gnu_ld" = yes; then
6284       case `/usr/bin/file conftest.$ac_objext` in
6285         *32-bit*)
6286           LD="${LD-ld} -melf32bsmip"
6287           ;;
6288         *N32*)
6289           LD="${LD-ld} -melf32bmipn32"
6290           ;;
6291         *64-bit*)
6292           LD="${LD-ld} -melf64bmip"
6293         ;;
6294       esac
6295     else
6296       case `/usr/bin/file conftest.$ac_objext` in
6297         *32-bit*)
6298           LD="${LD-ld} -32"
6299           ;;
6300         *N32*)
6301           LD="${LD-ld} -n32"
6302           ;;
6303         *64-bit*)
6304           LD="${LD-ld} -64"
6305           ;;
6306       esac
6307     fi
6308   fi
6309   rm -rf conftest*
6310   ;;
6311
6312 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6313 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6314   # Find out which ABI we are using.
6315   echo 'int i;' > conftest.$ac_ext
6316   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6317   (eval $ac_compile) 2>&5
6318   ac_status=$?
6319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320   test $ac_status = 0; }; then
6321     case `/usr/bin/file conftest.o` in
6322       *32-bit*)
6323         case $host in
6324           x86_64-*kfreebsd*-gnu)
6325             LD="${LD-ld} -m elf_i386_fbsd"
6326             ;;
6327           x86_64-*linux*)
6328             LD="${LD-ld} -m elf_i386"
6329             ;;
6330           ppc64-*linux*|powerpc64-*linux*)
6331             LD="${LD-ld} -m elf32ppclinux"
6332             ;;
6333           s390x-*linux*)
6334             LD="${LD-ld} -m elf_s390"
6335             ;;
6336           sparc64-*linux*)
6337             LD="${LD-ld} -m elf32_sparc"
6338             ;;
6339         esac
6340         ;;
6341       *64-bit*)
6342         case $host in
6343           x86_64-*kfreebsd*-gnu)
6344             LD="${LD-ld} -m elf_x86_64_fbsd"
6345             ;;
6346           x86_64-*linux*)
6347             LD="${LD-ld} -m elf_x86_64"
6348             ;;
6349           ppc*-*linux*|powerpc*-*linux*)
6350             LD="${LD-ld} -m elf64ppc"
6351             ;;
6352           s390*-*linux*|s390*-*tpf*)
6353             LD="${LD-ld} -m elf64_s390"
6354             ;;
6355           sparc*-*linux*)
6356             LD="${LD-ld} -m elf64_sparc"
6357             ;;
6358         esac
6359         ;;
6360     esac
6361   fi
6362   rm -rf conftest*
6363   ;;
6364
6365 *-*-sco3.2v5*)
6366   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6367   SAVE_CFLAGS="$CFLAGS"
6368   CFLAGS="$CFLAGS -belf"
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6370 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6371 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   ac_ext=c
6375 ac_cpp='$CPP $CPPFLAGS'
6376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6379
6380      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h.  */
6382
6383 int
6384 main ()
6385 {
6386
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 if ac_fn_c_try_link "$LINENO"; then :
6392   lt_cv_cc_needs_belf=yes
6393 else
6394   lt_cv_cc_needs_belf=no
6395 fi
6396 rm -f core conftest.err conftest.$ac_objext \
6397     conftest$ac_exeext conftest.$ac_ext
6398      ac_ext=c
6399 ac_cpp='$CPP $CPPFLAGS'
6400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403
6404 fi
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6406 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6407   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6408     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6409     CFLAGS="$SAVE_CFLAGS"
6410   fi
6411   ;;
6412 *-*solaris*)
6413   # Find out which ABI we are using.
6414   echo 'int i;' > conftest.$ac_ext
6415   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6416   (eval $ac_compile) 2>&5
6417   ac_status=$?
6418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419   test $ac_status = 0; }; then
6420     case `/usr/bin/file conftest.o` in
6421     *64-bit*)
6422       case $lt_cv_prog_gnu_ld in
6423       yes*)
6424         case $host in
6425         i?86-*-solaris*)
6426           LD="${LD-ld} -m elf_x86_64"
6427           ;;
6428         sparc*-*-solaris*)
6429           LD="${LD-ld} -m elf64_sparc"
6430           ;;
6431         esac
6432         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6433         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6434           LD="${LD-ld}_sol2"
6435         fi
6436         ;;
6437       *)
6438         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6439           LD="${LD-ld} -64"
6440         fi
6441         ;;
6442       esac
6443       ;;
6444     esac
6445   fi
6446   rm -rf conftest*
6447   ;;
6448 esac
6449
6450 need_locks="$enable_libtool_lock"
6451
6452
6453   case $host_os in
6454     rhapsody* | darwin*)
6455     if test -n "$ac_tool_prefix"; then
6456   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6457 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459 $as_echo_n "checking for $ac_word... " >&6; }
6460 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6461   $as_echo_n "(cached) " >&6
6462 else
6463   if test -n "$DSYMUTIL"; then
6464   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471     for ac_exec_ext in '' $ac_executable_extensions; do
6472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6473     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478   done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6484 if test -n "$DSYMUTIL"; then
6485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6486 $as_echo "$DSYMUTIL" >&6; }
6487 else
6488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489 $as_echo "no" >&6; }
6490 fi
6491
6492
6493 fi
6494 if test -z "$ac_cv_prog_DSYMUTIL"; then
6495   ac_ct_DSYMUTIL=$DSYMUTIL
6496   # Extract the first word of "dsymutil", so it can be a program name with args.
6497 set dummy dsymutil; ac_word=$2
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6499 $as_echo_n "checking for $ac_word... " >&6; }
6500 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6501   $as_echo_n "(cached) " >&6
6502 else
6503   if test -n "$ac_ct_DSYMUTIL"; then
6504   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6505 else
6506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6507 for as_dir in $PATH
6508 do
6509   IFS=$as_save_IFS
6510   test -z "$as_dir" && as_dir=.
6511     for ac_exec_ext in '' $ac_executable_extensions; do
6512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6513     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6515     break 2
6516   fi
6517 done
6518   done
6519 IFS=$as_save_IFS
6520
6521 fi
6522 fi
6523 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6524 if test -n "$ac_ct_DSYMUTIL"; then
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6526 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6527 else
6528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6529 $as_echo "no" >&6; }
6530 fi
6531
6532   if test "x$ac_ct_DSYMUTIL" = x; then
6533     DSYMUTIL=":"
6534   else
6535     case $cross_compiling:$ac_tool_warned in
6536 yes:)
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6539 ac_tool_warned=yes ;;
6540 esac
6541     DSYMUTIL=$ac_ct_DSYMUTIL
6542   fi
6543 else
6544   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6545 fi
6546
6547     if test -n "$ac_tool_prefix"; then
6548   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6549 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6551 $as_echo_n "checking for $ac_word... " >&6; }
6552 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6553   $as_echo_n "(cached) " >&6
6554 else
6555   if test -n "$NMEDIT"; then
6556   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6557 else
6558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559 for as_dir in $PATH
6560 do
6561   IFS=$as_save_IFS
6562   test -z "$as_dir" && as_dir=.
6563     for ac_exec_ext in '' $ac_executable_extensions; do
6564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6565     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6567     break 2
6568   fi
6569 done
6570   done
6571 IFS=$as_save_IFS
6572
6573 fi
6574 fi
6575 NMEDIT=$ac_cv_prog_NMEDIT
6576 if test -n "$NMEDIT"; then
6577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6578 $as_echo "$NMEDIT" >&6; }
6579 else
6580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6581 $as_echo "no" >&6; }
6582 fi
6583
6584
6585 fi
6586 if test -z "$ac_cv_prog_NMEDIT"; then
6587   ac_ct_NMEDIT=$NMEDIT
6588   # Extract the first word of "nmedit", so it can be a program name with args.
6589 set dummy nmedit; ac_word=$2
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591 $as_echo_n "checking for $ac_word... " >&6; }
6592 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6593   $as_echo_n "(cached) " >&6
6594 else
6595   if test -n "$ac_ct_NMEDIT"; then
6596   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6597 else
6598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599 for as_dir in $PATH
6600 do
6601   IFS=$as_save_IFS
6602   test -z "$as_dir" && as_dir=.
6603     for ac_exec_ext in '' $ac_executable_extensions; do
6604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607     break 2
6608   fi
6609 done
6610   done
6611 IFS=$as_save_IFS
6612
6613 fi
6614 fi
6615 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6616 if test -n "$ac_ct_NMEDIT"; then
6617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6618 $as_echo "$ac_ct_NMEDIT" >&6; }
6619 else
6620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6621 $as_echo "no" >&6; }
6622 fi
6623
6624   if test "x$ac_ct_NMEDIT" = x; then
6625     NMEDIT=":"
6626   else
6627     case $cross_compiling:$ac_tool_warned in
6628 yes:)
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6631 ac_tool_warned=yes ;;
6632 esac
6633     NMEDIT=$ac_ct_NMEDIT
6634   fi
6635 else
6636   NMEDIT="$ac_cv_prog_NMEDIT"
6637 fi
6638
6639     if test -n "$ac_tool_prefix"; then
6640   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6641 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6643 $as_echo_n "checking for $ac_word... " >&6; }
6644 if test "${ac_cv_prog_LIPO+set}" = set; then :
6645   $as_echo_n "(cached) " >&6
6646 else
6647   if test -n "$LIPO"; then
6648   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6649 else
6650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6651 for as_dir in $PATH
6652 do
6653   IFS=$as_save_IFS
6654   test -z "$as_dir" && as_dir=.
6655     for ac_exec_ext in '' $ac_executable_extensions; do
6656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6657     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6659     break 2
6660   fi
6661 done
6662   done
6663 IFS=$as_save_IFS
6664
6665 fi
6666 fi
6667 LIPO=$ac_cv_prog_LIPO
6668 if test -n "$LIPO"; then
6669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6670 $as_echo "$LIPO" >&6; }
6671 else
6672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6673 $as_echo "no" >&6; }
6674 fi
6675
6676
6677 fi
6678 if test -z "$ac_cv_prog_LIPO"; then
6679   ac_ct_LIPO=$LIPO
6680   # Extract the first word of "lipo", so it can be a program name with args.
6681 set dummy lipo; ac_word=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6685   $as_echo_n "(cached) " >&6
6686 else
6687   if test -n "$ac_ct_LIPO"; then
6688   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6689 else
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6692 do
6693   IFS=$as_save_IFS
6694   test -z "$as_dir" && as_dir=.
6695     for ac_exec_ext in '' $ac_executable_extensions; do
6696   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697     ac_cv_prog_ac_ct_LIPO="lipo"
6698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6699     break 2
6700   fi
6701 done
6702   done
6703 IFS=$as_save_IFS
6704
6705 fi
6706 fi
6707 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6708 if test -n "$ac_ct_LIPO"; then
6709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6710 $as_echo "$ac_ct_LIPO" >&6; }
6711 else
6712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6713 $as_echo "no" >&6; }
6714 fi
6715
6716   if test "x$ac_ct_LIPO" = x; then
6717     LIPO=":"
6718   else
6719     case $cross_compiling:$ac_tool_warned in
6720 yes:)
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725     LIPO=$ac_ct_LIPO
6726   fi
6727 else
6728   LIPO="$ac_cv_prog_LIPO"
6729 fi
6730
6731     if test -n "$ac_tool_prefix"; then
6732   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}otool; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6737   $as_echo_n "(cached) " >&6
6738 else
6739   if test -n "$OTOOL"; then
6740   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747     for ac_exec_ext in '' $ac_executable_extensions; do
6748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754   done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 OTOOL=$ac_cv_prog_OTOOL
6760 if test -n "$OTOOL"; then
6761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6762 $as_echo "$OTOOL" >&6; }
6763 else
6764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768
6769 fi
6770 if test -z "$ac_cv_prog_OTOOL"; then
6771   ac_ct_OTOOL=$OTOOL
6772   # Extract the first word of "otool", so it can be a program name with args.
6773 set dummy otool; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6777   $as_echo_n "(cached) " >&6
6778 else
6779   if test -n "$ac_ct_OTOOL"; then
6780   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785   IFS=$as_save_IFS
6786   test -z "$as_dir" && as_dir=.
6787     for ac_exec_ext in '' $ac_executable_extensions; do
6788   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789     ac_cv_prog_ac_ct_OTOOL="otool"
6790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791     break 2
6792   fi
6793 done
6794   done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6800 if test -n "$ac_ct_OTOOL"; then
6801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6802 $as_echo "$ac_ct_OTOOL" >&6; }
6803 else
6804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808   if test "x$ac_ct_OTOOL" = x; then
6809     OTOOL=":"
6810   else
6811     case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817     OTOOL=$ac_ct_OTOOL
6818   fi
6819 else
6820   OTOOL="$ac_cv_prog_OTOOL"
6821 fi
6822
6823     if test -n "$ac_tool_prefix"; then
6824   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6825 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827 $as_echo_n "checking for $ac_word... " >&6; }
6828 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6829   $as_echo_n "(cached) " >&6
6830 else
6831   if test -n "$OTOOL64"; then
6832   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6833 else
6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839     for ac_exec_ext in '' $ac_executable_extensions; do
6840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846   done
6847 IFS=$as_save_IFS
6848
6849 fi
6850 fi
6851 OTOOL64=$ac_cv_prog_OTOOL64
6852 if test -n "$OTOOL64"; then
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6854 $as_echo "$OTOOL64" >&6; }
6855 else
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857 $as_echo "no" >&6; }
6858 fi
6859
6860
6861 fi
6862 if test -z "$ac_cv_prog_OTOOL64"; then
6863   ac_ct_OTOOL64=$OTOOL64
6864   # Extract the first word of "otool64", so it can be a program name with args.
6865 set dummy otool64; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6869   $as_echo_n "(cached) " >&6
6870 else
6871   if test -n "$ac_ct_OTOOL64"; then
6872   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877   IFS=$as_save_IFS
6878   test -z "$as_dir" && as_dir=.
6879     for ac_exec_ext in '' $ac_executable_extensions; do
6880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881     ac_cv_prog_ac_ct_OTOOL64="otool64"
6882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883     break 2
6884   fi
6885 done
6886   done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6892 if test -n "$ac_ct_OTOOL64"; then
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6894 $as_echo "$ac_ct_OTOOL64" >&6; }
6895 else
6896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899
6900   if test "x$ac_ct_OTOOL64" = x; then
6901     OTOOL64=":"
6902   else
6903     case $cross_compiling:$ac_tool_warned in
6904 yes:)
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6907 ac_tool_warned=yes ;;
6908 esac
6909     OTOOL64=$ac_ct_OTOOL64
6910   fi
6911 else
6912   OTOOL64="$ac_cv_prog_OTOOL64"
6913 fi
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6942 $as_echo_n "checking for -single_module linker flag... " >&6; }
6943 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6944   $as_echo_n "(cached) " >&6
6945 else
6946   lt_cv_apple_cc_single_mod=no
6947       if test -z "${LT_MULTI_MODULE}"; then
6948         # By default we will add the -single_module flag. You can override
6949         # by either setting the environment variable LT_MULTI_MODULE
6950         # non-empty at configure time, or by adding -multi_module to the
6951         # link flags.
6952         rm -rf libconftest.dylib*
6953         echo "int foo(void){return 1;}" > conftest.c
6954         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6955 -dynamiclib -Wl,-single_module conftest.c" >&5
6956         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6957           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6958         _lt_result=$?
6959         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6960           lt_cv_apple_cc_single_mod=yes
6961         else
6962           cat conftest.err >&5
6963         fi
6964         rm -rf libconftest.dylib*
6965         rm -f conftest.*
6966       fi
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6969 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6971 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6972 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6973   $as_echo_n "(cached) " >&6
6974 else
6975   lt_cv_ld_exported_symbols_list=no
6976       save_LDFLAGS=$LDFLAGS
6977       echo "_main" > conftest.sym
6978       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6979       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h.  */
6981
6982 int
6983 main ()
6984 {
6985
6986   ;
6987   return 0;
6988 }
6989 _ACEOF
6990 if ac_fn_c_try_link "$LINENO"; then :
6991   lt_cv_ld_exported_symbols_list=yes
6992 else
6993   lt_cv_ld_exported_symbols_list=no
6994 fi
6995 rm -f core conftest.err conftest.$ac_objext \
6996     conftest$ac_exeext conftest.$ac_ext
6997         LDFLAGS="$save_LDFLAGS"
6998
6999 fi
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7001 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7003 $as_echo_n "checking for -force_load linker flag... " >&6; }
7004 if test "${lt_cv_ld_force_load+set}" = set; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   lt_cv_ld_force_load=no
7008       cat > conftest.c << _LT_EOF
7009 int forced_loaded() { return 2;}
7010 _LT_EOF
7011       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7012       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7013       echo "$AR cru libconftest.a conftest.o" >&5
7014       $AR cru libconftest.a conftest.o 2>&5
7015       cat > conftest.c << _LT_EOF
7016 int main() { return 0;}
7017 _LT_EOF
7018       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7019       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7020       _lt_result=$?
7021       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7022         lt_cv_ld_force_load=yes
7023       else
7024         cat conftest.err >&5
7025       fi
7026         rm -f conftest.err libconftest.a conftest conftest.c
7027         rm -rf conftest.dSYM
7028
7029 fi
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7031 $as_echo "$lt_cv_ld_force_load" >&6; }
7032     case $host_os in
7033     rhapsody* | darwin1.[012])
7034       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7035     darwin1.*)
7036       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7037     darwin*) # darwin 5.x on
7038       # if running on 10.5 or later, the deployment target defaults
7039       # to the OS version, if on x86, and 10.4, the deployment
7040       # target defaults to 10.4. Don't you love it?
7041       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7042         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7043           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7044         10.[012]*)
7045           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7046         10.*)
7047           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7048       esac
7049     ;;
7050   esac
7051     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7052       _lt_dar_single_mod='$single_module'
7053     fi
7054     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7055       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7056     else
7057       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7058     fi
7059     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7060       _lt_dsymutil='~$DSYMUTIL $lib || :'
7061     else
7062       _lt_dsymutil=
7063     fi
7064     ;;
7065   esac
7066
7067 ac_ext=c
7068 ac_cpp='$CPP $CPPFLAGS'
7069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7073 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7074 # On Suns, sometimes $CPP names a directory.
7075 if test -n "$CPP" && test -d "$CPP"; then
7076   CPP=
7077 fi
7078 if test -z "$CPP"; then
7079   if test "${ac_cv_prog_CPP+set}" = set; then :
7080   $as_echo_n "(cached) " >&6
7081 else
7082       # Double quotes because CPP needs to be expanded
7083     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7084     do
7085       ac_preproc_ok=false
7086 for ac_c_preproc_warn_flag in '' yes
7087 do
7088   # Use a header file that comes with gcc, so configuring glibc
7089   # with a fresh cross-compiler works.
7090   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7091   # <limits.h> exists even on freestanding compilers.
7092   # On the NeXT, cc -E runs the code through the compiler's parser,
7093   # not just through cpp. "Syntax error" is here to catch this case.
7094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h.  */
7096 #ifdef __STDC__
7097 # include <limits.h>
7098 #else
7099 # include <assert.h>
7100 #endif
7101                      Syntax error
7102 _ACEOF
7103 if ac_fn_c_try_cpp "$LINENO"; then :
7104
7105 else
7106   # Broken: fails on valid input.
7107 continue
7108 fi
7109 rm -f conftest.err conftest.$ac_ext
7110
7111   # OK, works on sane cases.  Now check whether nonexistent headers
7112   # can be detected and how.
7113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* end confdefs.h.  */
7115 #include <ac_nonexistent.h>
7116 _ACEOF
7117 if ac_fn_c_try_cpp "$LINENO"; then :
7118   # Broken: success on invalid input.
7119 continue
7120 else
7121   # Passes both tests.
7122 ac_preproc_ok=:
7123 break
7124 fi
7125 rm -f conftest.err conftest.$ac_ext
7126
7127 done
7128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7129 rm -f conftest.err conftest.$ac_ext
7130 if $ac_preproc_ok; then :
7131   break
7132 fi
7133
7134     done
7135     ac_cv_prog_CPP=$CPP
7136
7137 fi
7138   CPP=$ac_cv_prog_CPP
7139 else
7140   ac_cv_prog_CPP=$CPP
7141 fi
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7143 $as_echo "$CPP" >&6; }
7144 ac_preproc_ok=false
7145 for ac_c_preproc_warn_flag in '' yes
7146 do
7147   # Use a header file that comes with gcc, so configuring glibc
7148   # with a fresh cross-compiler works.
7149   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7150   # <limits.h> exists even on freestanding compilers.
7151   # On the NeXT, cc -E runs the code through the compiler's parser,
7152   # not just through cpp. "Syntax error" is here to catch this case.
7153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h.  */
7155 #ifdef __STDC__
7156 # include <limits.h>
7157 #else
7158 # include <assert.h>
7159 #endif
7160                      Syntax error
7161 _ACEOF
7162 if ac_fn_c_try_cpp "$LINENO"; then :
7163
7164 else
7165   # Broken: fails on valid input.
7166 continue
7167 fi
7168 rm -f conftest.err conftest.$ac_ext
7169
7170   # OK, works on sane cases.  Now check whether nonexistent headers
7171   # can be detected and how.
7172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173 /* end confdefs.h.  */
7174 #include <ac_nonexistent.h>
7175 _ACEOF
7176 if ac_fn_c_try_cpp "$LINENO"; then :
7177   # Broken: success on invalid input.
7178 continue
7179 else
7180   # Passes both tests.
7181 ac_preproc_ok=:
7182 break
7183 fi
7184 rm -f conftest.err conftest.$ac_ext
7185
7186 done
7187 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7188 rm -f conftest.err conftest.$ac_ext
7189 if $ac_preproc_ok; then :
7190
7191 else
7192   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7194 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7195 See \`config.log' for more details." "$LINENO" 5; }
7196 fi
7197
7198 ac_ext=c
7199 ac_cpp='$CPP $CPPFLAGS'
7200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7203
7204
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7206 $as_echo_n "checking for ANSI C header files... " >&6; }
7207 if test "${ac_cv_header_stdc+set}" = set; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h.  */
7212 #include <stdlib.h>
7213 #include <stdarg.h>
7214 #include <string.h>
7215 #include <float.h>
7216
7217 int
7218 main ()
7219 {
7220
7221   ;
7222   return 0;
7223 }
7224 _ACEOF
7225 if ac_fn_c_try_compile "$LINENO"; then :
7226   ac_cv_header_stdc=yes
7227 else
7228   ac_cv_header_stdc=no
7229 fi
7230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7231
7232 if test $ac_cv_header_stdc = yes; then
7233   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h.  */
7236 #include <string.h>
7237
7238 _ACEOF
7239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7240   $EGREP "memchr" >/dev/null 2>&1; then :
7241
7242 else
7243   ac_cv_header_stdc=no
7244 fi
7245 rm -f conftest*
7246
7247 fi
7248
7249 if test $ac_cv_header_stdc = yes; then
7250   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252 /* end confdefs.h.  */
7253 #include <stdlib.h>
7254
7255 _ACEOF
7256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7257   $EGREP "free" >/dev/null 2>&1; then :
7258
7259 else
7260   ac_cv_header_stdc=no
7261 fi
7262 rm -f conftest*
7263
7264 fi
7265
7266 if test $ac_cv_header_stdc = yes; then
7267   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7268   if test "$cross_compiling" = yes; then :
7269   :
7270 else
7271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h.  */
7273 #include <ctype.h>
7274 #include <stdlib.h>
7275 #if ((' ' & 0x0FF) == 0x020)
7276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7278 #else
7279 # define ISLOWER(c) \
7280                    (('a' <= (c) && (c) <= 'i') \
7281                      || ('j' <= (c) && (c) <= 'r') \
7282                      || ('s' <= (c) && (c) <= 'z'))
7283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7284 #endif
7285
7286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7287 int
7288 main ()
7289 {
7290   int i;
7291   for (i = 0; i < 256; i++)
7292     if (XOR (islower (i), ISLOWER (i))
7293         || toupper (i) != TOUPPER (i))
7294       return 2;
7295   return 0;
7296 }
7297 _ACEOF
7298 if ac_fn_c_try_run "$LINENO"; then :
7299
7300 else
7301   ac_cv_header_stdc=no
7302 fi
7303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7304   conftest.$ac_objext conftest.beam conftest.$ac_ext
7305 fi
7306
7307 fi
7308 fi
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7310 $as_echo "$ac_cv_header_stdc" >&6; }
7311 if test $ac_cv_header_stdc = yes; then
7312
7313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7314
7315 fi
7316
7317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7319                   inttypes.h stdint.h unistd.h
7320 do :
7321   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7323 "
7324 eval as_val=\$$as_ac_Header
7325    if test "x$as_val" = x""yes; then :
7326   cat >>confdefs.h <<_ACEOF
7327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7328 _ACEOF
7329
7330 fi
7331
7332 done
7333
7334
7335 for ac_header in dlfcn.h
7336 do :
7337   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7338 "
7339 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7340   cat >>confdefs.h <<_ACEOF
7341 #define HAVE_DLFCN_H 1
7342 _ACEOF
7343
7344 fi
7345
7346 done
7347
7348 if test -n "$ac_tool_prefix"; then
7349   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7350 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if test "${ac_cv_prog_GOC+set}" = set; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if test -n "$GOC"; then
7357   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7366     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 GOC=$ac_cv_prog_GOC
7377 if test -n "$GOC"; then
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7379 $as_echo "$GOC" >&6; }
7380 else
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385
7386 fi
7387 if test -z "$ac_cv_prog_GOC"; then
7388   ac_ct_GOC=$GOC
7389   # Extract the first word of "gccgo", so it can be a program name with args.
7390 set dummy gccgo; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   if test -n "$ac_ct_GOC"; then
7397   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7398 else
7399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404     for ac_exec_ext in '' $ac_executable_extensions; do
7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7406     ac_cv_prog_ac_ct_GOC="gccgo"
7407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411   done
7412 IFS=$as_save_IFS
7413
7414 fi
7415 fi
7416 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7417 if test -n "$ac_ct_GOC"; then
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7419 $as_echo "$ac_ct_GOC" >&6; }
7420 else
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7423 fi
7424
7425   if test "x$ac_ct_GOC" = x; then
7426     GOC=""
7427   else
7428     case $cross_compiling:$ac_tool_warned in
7429 yes:)
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7432 ac_tool_warned=yes ;;
7433 esac
7434     GOC=$ac_ct_GOC
7435   fi
7436 else
7437   GOC="$ac_cv_prog_GOC"
7438 fi
7439
7440
7441
7442
7443
7444
7445 # Set options
7446
7447
7448
7449
7450   enable_win32_dll=no
7451
7452
7453             # Check whether --enable-shared was given.
7454 if test "${enable_shared+set}" = set; then :
7455   enableval=$enable_shared; p=${PACKAGE-default}
7456     case $enableval in
7457     yes) enable_shared=yes ;;
7458     no) enable_shared=no ;;
7459     *)
7460       enable_shared=no
7461       # Look at the argument we got.  We use all the common list separators.
7462       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7463       for pkg in $enableval; do
7464         IFS="$lt_save_ifs"
7465         if test "X$pkg" = "X$p"; then
7466           enable_shared=yes
7467         fi
7468       done
7469       IFS="$lt_save_ifs"
7470       ;;
7471     esac
7472 else
7473   enable_shared=yes
7474 fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484   # Check whether --enable-static was given.
7485 if test "${enable_static+set}" = set; then :
7486   enableval=$enable_static; p=${PACKAGE-default}
7487     case $enableval in
7488     yes) enable_static=yes ;;
7489     no) enable_static=no ;;
7490     *)
7491      enable_static=no
7492       # Look at the argument we got.  We use all the common list separators.
7493       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7494       for pkg in $enableval; do
7495         IFS="$lt_save_ifs"
7496         if test "X$pkg" = "X$p"; then
7497           enable_static=yes
7498         fi
7499       done
7500       IFS="$lt_save_ifs"
7501       ;;
7502     esac
7503 else
7504   enable_static=yes
7505 fi
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516 # Check whether --with-pic was given.
7517 if test "${with_pic+set}" = set; then :
7518   withval=$with_pic; pic_mode="$withval"
7519 else
7520   pic_mode=default
7521 fi
7522
7523
7524 test -z "$pic_mode" && pic_mode=default
7525
7526
7527
7528
7529
7530
7531
7532   # Check whether --enable-fast-install was given.
7533 if test "${enable_fast_install+set}" = set; then :
7534   enableval=$enable_fast_install; p=${PACKAGE-default}
7535     case $enableval in
7536     yes) enable_fast_install=yes ;;
7537     no) enable_fast_install=no ;;
7538     *)
7539       enable_fast_install=no
7540       # Look at the argument we got.  We use all the common list separators.
7541       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7542       for pkg in $enableval; do
7543         IFS="$lt_save_ifs"
7544         if test "X$pkg" = "X$p"; then
7545           enable_fast_install=yes
7546         fi
7547       done
7548       IFS="$lt_save_ifs"
7549       ;;
7550     esac
7551 else
7552   enable_fast_install=yes
7553 fi
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565 # This can be used to rebuild libtool when needed
7566 LIBTOOL_DEPS="$ltmain"
7567
7568 # Always use our own libtool.
7569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596 test -z "$LN_S" && LN_S="ln -s"
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611 if test -n "${ZSH_VERSION+set}" ; then
7612    setopt NO_GLOB_SUBST
7613 fi
7614
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7616 $as_echo_n "checking for objdir... " >&6; }
7617 if test "${lt_cv_objdir+set}" = set; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   rm -f .libs 2>/dev/null
7621 mkdir .libs 2>/dev/null
7622 if test -d .libs; then
7623   lt_cv_objdir=.libs
7624 else
7625   # MS-DOS does not allow filenames that begin with a dot.
7626   lt_cv_objdir=_libs
7627 fi
7628 rmdir .libs 2>/dev/null
7629 fi
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7631 $as_echo "$lt_cv_objdir" >&6; }
7632 objdir=$lt_cv_objdir
7633
7634
7635
7636
7637
7638 cat >>confdefs.h <<_ACEOF
7639 #define LT_OBJDIR "$lt_cv_objdir/"
7640 _ACEOF
7641
7642
7643
7644
7645 case $host_os in
7646 aix3*)
7647   # AIX sometimes has problems with the GCC collect2 program.  For some
7648   # reason, if we set the COLLECT_NAMES environment variable, the problems
7649   # vanish in a puff of smoke.
7650   if test "X${COLLECT_NAMES+set}" != Xset; then
7651     COLLECT_NAMES=
7652     export COLLECT_NAMES
7653   fi
7654   ;;
7655 esac
7656
7657 # Global variables:
7658 ofile=libtool
7659 can_build_shared=yes
7660
7661 # All known linkers require a `.a' archive for static linking (except MSVC,
7662 # which needs '.lib').
7663 libext=a
7664
7665 with_gnu_ld="$lt_cv_prog_gnu_ld"
7666
7667 old_CC="$CC"
7668 old_CFLAGS="$CFLAGS"
7669
7670 # Set sane defaults for various variables
7671 test -z "$CC" && CC=cc
7672 test -z "$LTCC" && LTCC=$CC
7673 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7674 test -z "$LD" && LD=ld
7675 test -z "$ac_objext" && ac_objext=o
7676
7677 for cc_temp in $compiler""; do
7678   case $cc_temp in
7679     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7680     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7681     \-*) ;;
7682     *) break;;
7683   esac
7684 done
7685 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7686
7687
7688 # Only perform the check for file, if the check method requires it
7689 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7690 case $deplibs_check_method in
7691 file_magic*)
7692   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7693     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7694 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7695 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   case $MAGIC_CMD in
7699 [\\/*] |  ?:[\\/]*)
7700   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701   ;;
7702 *)
7703   lt_save_MAGIC_CMD="$MAGIC_CMD"
7704   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7705   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7706   for ac_dir in $ac_dummy; do
7707     IFS="$lt_save_ifs"
7708     test -z "$ac_dir" && ac_dir=.
7709     if test -f $ac_dir/${ac_tool_prefix}file; then
7710       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7711       if test -n "$file_magic_test_file"; then
7712         case $deplibs_check_method in
7713         "file_magic "*)
7714           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7715           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7716           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7717             $EGREP "$file_magic_regex" > /dev/null; then
7718             :
7719           else
7720             cat <<_LT_EOF 1>&2
7721
7722 *** Warning: the command libtool uses to detect shared libraries,
7723 *** $file_magic_cmd, produces output that libtool cannot recognize.
7724 *** The result is that libtool may fail to recognize shared libraries
7725 *** as such.  This will affect the creation of libtool libraries that
7726 *** depend on shared libraries, but programs linked with such libtool
7727 *** libraries will work regardless of this problem.  Nevertheless, you
7728 *** may want to report the problem to your system manager and/or to
7729 *** bug-libtool@gnu.org
7730
7731 _LT_EOF
7732           fi ;;
7733         esac
7734       fi
7735       break
7736     fi
7737   done
7738   IFS="$lt_save_ifs"
7739   MAGIC_CMD="$lt_save_MAGIC_CMD"
7740   ;;
7741 esac
7742 fi
7743
7744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7745 if test -n "$MAGIC_CMD"; then
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7747 $as_echo "$MAGIC_CMD" >&6; }
7748 else
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754
7755
7756
7757 if test -z "$lt_cv_path_MAGIC_CMD"; then
7758   if test -n "$ac_tool_prefix"; then
7759     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7760 $as_echo_n "checking for file... " >&6; }
7761 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7762   $as_echo_n "(cached) " >&6
7763 else
7764   case $MAGIC_CMD in
7765 [\\/*] |  ?:[\\/]*)
7766   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7767   ;;
7768 *)
7769   lt_save_MAGIC_CMD="$MAGIC_CMD"
7770   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7771   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7772   for ac_dir in $ac_dummy; do
7773     IFS="$lt_save_ifs"
7774     test -z "$ac_dir" && ac_dir=.
7775     if test -f $ac_dir/file; then
7776       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7777       if test -n "$file_magic_test_file"; then
7778         case $deplibs_check_method in
7779         "file_magic "*)
7780           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7781           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7782           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7783             $EGREP "$file_magic_regex" > /dev/null; then
7784             :
7785           else
7786             cat <<_LT_EOF 1>&2
7787
7788 *** Warning: the command libtool uses to detect shared libraries,
7789 *** $file_magic_cmd, produces output that libtool cannot recognize.
7790 *** The result is that libtool may fail to recognize shared libraries
7791 *** as such.  This will affect the creation of libtool libraries that
7792 *** depend on shared libraries, but programs linked with such libtool
7793 *** libraries will work regardless of this problem.  Nevertheless, you
7794 *** may want to report the problem to your system manager and/or to
7795 *** bug-libtool@gnu.org
7796
7797 _LT_EOF
7798           fi ;;
7799         esac
7800       fi
7801       break
7802     fi
7803   done
7804   IFS="$lt_save_ifs"
7805   MAGIC_CMD="$lt_save_MAGIC_CMD"
7806   ;;
7807 esac
7808 fi
7809
7810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7811 if test -n "$MAGIC_CMD"; then
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7813 $as_echo "$MAGIC_CMD" >&6; }
7814 else
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7817 fi
7818
7819
7820   else
7821     MAGIC_CMD=:
7822   fi
7823 fi
7824
7825   fi
7826   ;;
7827 esac
7828
7829 # Use C for the default configuration in the libtool script
7830
7831 lt_save_CC="$CC"
7832 ac_ext=c
7833 ac_cpp='$CPP $CPPFLAGS'
7834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7837
7838
7839 # Source file extension for C test sources.
7840 ac_ext=c
7841
7842 # Object file extension for compiled C test sources.
7843 objext=o
7844 objext=$objext
7845
7846 # Code to be used in simple compile tests
7847 lt_simple_compile_test_code="int some_variable = 0;"
7848
7849 # Code to be used in simple link tests
7850 lt_simple_link_test_code='int main(){return(0);}'
7851
7852
7853
7854
7855
7856
7857
7858 # If no C compiler was specified, use CC.
7859 LTCC=${LTCC-"$CC"}
7860
7861 # If no C compiler flags were specified, use CFLAGS.
7862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7863
7864 # Allow CC to be a program name with arguments.
7865 compiler=$CC
7866
7867 # Save the default compiler, since it gets overwritten when the other
7868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7869 compiler_DEFAULT=$CC
7870
7871 # save warnings/boilerplate of simple test code
7872 ac_outfile=conftest.$ac_objext
7873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7875 _lt_compiler_boilerplate=`cat conftest.err`
7876 $RM conftest*
7877
7878 ac_outfile=conftest.$ac_objext
7879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7881 _lt_linker_boilerplate=`cat conftest.err`
7882 $RM -r conftest*
7883
7884
7885 ## CAVEAT EMPTOR:
7886 ## There is no encapsulation within the following macros, do not change
7887 ## the running order or otherwise move them around unless you know exactly
7888 ## what you are doing...
7889 if test -n "$compiler"; then
7890
7891 lt_prog_compiler_no_builtin_flag=
7892
7893 if test "$GCC" = yes; then
7894   case $cc_basename in
7895   nvcc*)
7896     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7897   *)
7898     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7899   esac
7900
7901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7902 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7903 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7904   $as_echo_n "(cached) " >&6
7905 else
7906   lt_cv_prog_compiler_rtti_exceptions=no
7907    ac_outfile=conftest.$ac_objext
7908    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7909    lt_compiler_flag="-fno-rtti -fno-exceptions"
7910    # Insert the option either (1) after the last *FLAGS variable, or
7911    # (2) before a word containing "conftest.", or (3) at the end.
7912    # Note that $ac_compile itself does not contain backslashes and begins
7913    # with a dollar sign (not a hyphen), so the echo should work correctly.
7914    # The option is referenced via a variable to avoid confusing sed.
7915    lt_compile=`echo "$ac_compile" | $SED \
7916    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7917    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7918    -e 's:$: $lt_compiler_flag:'`
7919    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7920    (eval "$lt_compile" 2>conftest.err)
7921    ac_status=$?
7922    cat conftest.err >&5
7923    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924    if (exit $ac_status) && test -s "$ac_outfile"; then
7925      # The compiler can only warn and ignore the option if not recognized
7926      # So say no if there are warnings other than the usual output.
7927      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7928      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7929      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7930        lt_cv_prog_compiler_rtti_exceptions=yes
7931      fi
7932    fi
7933    $RM conftest*
7934
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7937 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7938
7939 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7940     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7941 else
7942     :
7943 fi
7944
7945 fi
7946
7947
7948
7949
7950
7951
7952   lt_prog_compiler_wl=
7953 lt_prog_compiler_pic=
7954 lt_prog_compiler_static=
7955
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7957 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7958
7959   if test "$GCC" = yes; then
7960     lt_prog_compiler_wl='-Wl,'
7961     lt_prog_compiler_static='-static'
7962
7963     case $host_os in
7964       aix*)
7965       # All AIX code is PIC.
7966       if test "$host_cpu" = ia64; then
7967         # AIX 5 now supports IA64 processor
7968         lt_prog_compiler_static='-Bstatic'
7969       fi
7970       ;;
7971
7972     amigaos*)
7973       case $host_cpu in
7974       powerpc)
7975             # see comment about AmigaOS4 .so support
7976             lt_prog_compiler_pic='-fPIC'
7977         ;;
7978       m68k)
7979             # FIXME: we need at least 68020 code to build shared libraries, but
7980             # adding the `-m68020' flag to GCC prevents building anything better,
7981             # like `-m68040'.
7982             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7983         ;;
7984       esac
7985       ;;
7986
7987     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7988       # PIC is the default for these OSes.
7989       ;;
7990
7991     mingw* | cygwin* | pw32* | os2* | cegcc*)
7992       # This hack is so that the source file can tell whether it is being
7993       # built for inclusion in a dll (and should export symbols for example).
7994       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7995       # (--disable-auto-import) libraries
7996       lt_prog_compiler_pic='-DDLL_EXPORT'
7997       ;;
7998
7999     darwin* | rhapsody*)
8000       # PIC is the default on this platform
8001       # Common symbols not allowed in MH_DYLIB files
8002       lt_prog_compiler_pic='-fno-common'
8003       ;;
8004
8005     haiku*)
8006       # PIC is the default for Haiku.
8007       # The "-static" flag exists, but is broken.
8008       lt_prog_compiler_static=
8009       ;;
8010
8011     hpux*)
8012       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8013       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8014       # sets the default TLS model and affects inlining.
8015       case $host_cpu in
8016       hppa*64*)
8017         # +Z the default
8018         ;;
8019       *)
8020         lt_prog_compiler_pic='-fPIC'
8021         ;;
8022       esac
8023       ;;
8024
8025     interix[3-9]*)
8026       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8027       # Instead, we relocate shared libraries at runtime.
8028       ;;
8029
8030     msdosdjgpp*)
8031       # Just because we use GCC doesn't mean we suddenly get shared libraries
8032       # on systems that don't support them.
8033       lt_prog_compiler_can_build_shared=no
8034       enable_shared=no
8035       ;;
8036
8037     *nto* | *qnx*)
8038       # QNX uses GNU C++, but need to define -shared option too, otherwise
8039       # it will coredump.
8040       lt_prog_compiler_pic='-fPIC -shared'
8041       ;;
8042
8043     sysv4*MP*)
8044       if test -d /usr/nec; then
8045         lt_prog_compiler_pic=-Kconform_pic
8046       fi
8047       ;;
8048
8049     *)
8050       lt_prog_compiler_pic='-fPIC'
8051       ;;
8052     esac
8053
8054     case $cc_basename in
8055     nvcc*) # Cuda Compiler Driver 2.2
8056       lt_prog_compiler_wl='-Xlinker '
8057       lt_prog_compiler_pic='-Xcompiler -fPIC'
8058       ;;
8059     esac
8060   else
8061     # PORTME Check for flag to pass linker flags through the system compiler.
8062     case $host_os in
8063     aix*)
8064       lt_prog_compiler_wl='-Wl,'
8065       if test "$host_cpu" = ia64; then
8066         # AIX 5 now supports IA64 processor
8067         lt_prog_compiler_static='-Bstatic'
8068       else
8069         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8070       fi
8071       ;;
8072
8073     mingw* | cygwin* | pw32* | os2* | cegcc*)
8074       # This hack is so that the source file can tell whether it is being
8075       # built for inclusion in a dll (and should export symbols for example).
8076       lt_prog_compiler_pic='-DDLL_EXPORT'
8077       ;;
8078
8079     hpux9* | hpux10* | hpux11*)
8080       lt_prog_compiler_wl='-Wl,'
8081       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8082       # not for PA HP-UX.
8083       case $host_cpu in
8084       hppa*64*|ia64*)
8085         # +Z the default
8086         ;;
8087       *)
8088         lt_prog_compiler_pic='+Z'
8089         ;;
8090       esac
8091       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8092       lt_prog_compiler_static='${wl}-a ${wl}archive'
8093       ;;
8094
8095     irix5* | irix6* | nonstopux*)
8096       lt_prog_compiler_wl='-Wl,'
8097       # PIC (with -KPIC) is the default.
8098       lt_prog_compiler_static='-non_shared'
8099       ;;
8100
8101     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8102       case $cc_basename in
8103       # old Intel for x86_64 which still supported -KPIC.
8104       ecc*)
8105         lt_prog_compiler_wl='-Wl,'
8106         lt_prog_compiler_pic='-KPIC'
8107         lt_prog_compiler_static='-static'
8108         ;;
8109       # icc used to be incompatible with GCC.
8110       # ICC 10 doesn't accept -KPIC any more.
8111       icc* | ifort*)
8112         lt_prog_compiler_wl='-Wl,'
8113         lt_prog_compiler_pic='-fPIC'
8114         lt_prog_compiler_static='-static'
8115         ;;
8116       # Lahey Fortran 8.1.
8117       lf95*)
8118         lt_prog_compiler_wl='-Wl,'
8119         lt_prog_compiler_pic='--shared'
8120         lt_prog_compiler_static='--static'
8121         ;;
8122       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8123         # Portland Group compilers (*not* the Pentium gcc compiler,
8124         # which looks to be a dead project)
8125         lt_prog_compiler_wl='-Wl,'
8126         lt_prog_compiler_pic='-fpic'
8127         lt_prog_compiler_static='-Bstatic'
8128         ;;
8129       ccc*)
8130         lt_prog_compiler_wl='-Wl,'
8131         # All Alpha code is PIC.
8132         lt_prog_compiler_static='-non_shared'
8133         ;;
8134       xl* | bgxl* | bgf* | mpixl*)
8135         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8136         lt_prog_compiler_wl='-Wl,'
8137         lt_prog_compiler_pic='-qpic'
8138         lt_prog_compiler_static='-qstaticlink'
8139         ;;
8140       *)
8141         case `$CC -V 2>&1 | sed 5q` in
8142         *Sun\ F* | *Sun*Fortran*)
8143           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8144           lt_prog_compiler_pic='-KPIC'
8145           lt_prog_compiler_static='-Bstatic'
8146           lt_prog_compiler_wl=''
8147           ;;
8148         *Sun\ C*)
8149           # Sun C 5.9
8150           lt_prog_compiler_pic='-KPIC'
8151           lt_prog_compiler_static='-Bstatic'
8152           lt_prog_compiler_wl='-Wl,'
8153           ;;
8154         esac
8155         ;;
8156       esac
8157       ;;
8158
8159     newsos6)
8160       lt_prog_compiler_pic='-KPIC'
8161       lt_prog_compiler_static='-Bstatic'
8162       ;;
8163
8164     *nto* | *qnx*)
8165       # QNX uses GNU C++, but need to define -shared option too, otherwise
8166       # it will coredump.
8167       lt_prog_compiler_pic='-fPIC -shared'
8168       ;;
8169
8170     osf3* | osf4* | osf5*)
8171       lt_prog_compiler_wl='-Wl,'
8172       # All OSF/1 code is PIC.
8173       lt_prog_compiler_static='-non_shared'
8174       ;;
8175
8176     rdos*)
8177       lt_prog_compiler_static='-non_shared'
8178       ;;
8179
8180     solaris*)
8181       lt_prog_compiler_pic='-KPIC'
8182       lt_prog_compiler_static='-Bstatic'
8183       case $cc_basename in
8184       f77* | f90* | f95*)
8185         lt_prog_compiler_wl='-Qoption ld ';;
8186       *)
8187         lt_prog_compiler_wl='-Wl,';;
8188       esac
8189       ;;
8190
8191     sunos4*)
8192       lt_prog_compiler_wl='-Qoption ld '
8193       lt_prog_compiler_pic='-PIC'
8194       lt_prog_compiler_static='-Bstatic'
8195       ;;
8196
8197     sysv4 | sysv4.2uw2* | sysv4.3*)
8198       lt_prog_compiler_wl='-Wl,'
8199       lt_prog_compiler_pic='-KPIC'
8200       lt_prog_compiler_static='-Bstatic'
8201       ;;
8202
8203     sysv4*MP*)
8204       if test -d /usr/nec ;then
8205         lt_prog_compiler_pic='-Kconform_pic'
8206         lt_prog_compiler_static='-Bstatic'
8207       fi
8208       ;;
8209
8210     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8211       lt_prog_compiler_wl='-Wl,'
8212       lt_prog_compiler_pic='-KPIC'
8213       lt_prog_compiler_static='-Bstatic'
8214       ;;
8215
8216     unicos*)
8217       lt_prog_compiler_wl='-Wl,'
8218       lt_prog_compiler_can_build_shared=no
8219       ;;
8220
8221     uts4*)
8222       lt_prog_compiler_pic='-pic'
8223       lt_prog_compiler_static='-Bstatic'
8224       ;;
8225
8226     *)
8227       lt_prog_compiler_can_build_shared=no
8228       ;;
8229     esac
8230   fi
8231
8232 case $host_os in
8233   # For platforms which do not support PIC, -DPIC is meaningless:
8234   *djgpp*)
8235     lt_prog_compiler_pic=
8236     ;;
8237   *)
8238     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8239     ;;
8240 esac
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8242 $as_echo "$lt_prog_compiler_pic" >&6; }
8243
8244
8245
8246
8247
8248
8249 #
8250 # Check to make sure the PIC flag actually works.
8251 #
8252 if test -n "$lt_prog_compiler_pic"; then
8253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8254 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8255 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8256   $as_echo_n "(cached) " >&6
8257 else
8258   lt_cv_prog_compiler_pic_works=no
8259    ac_outfile=conftest.$ac_objext
8260    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8261    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8262    # Insert the option either (1) after the last *FLAGS variable, or
8263    # (2) before a word containing "conftest.", or (3) at the end.
8264    # Note that $ac_compile itself does not contain backslashes and begins
8265    # with a dollar sign (not a hyphen), so the echo should work correctly.
8266    # The option is referenced via a variable to avoid confusing sed.
8267    lt_compile=`echo "$ac_compile" | $SED \
8268    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8269    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8270    -e 's:$: $lt_compiler_flag:'`
8271    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8272    (eval "$lt_compile" 2>conftest.err)
8273    ac_status=$?
8274    cat conftest.err >&5
8275    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276    if (exit $ac_status) && test -s "$ac_outfile"; then
8277      # The compiler can only warn and ignore the option if not recognized
8278      # So say no if there are warnings other than the usual output.
8279      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8280      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8281      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8282        lt_cv_prog_compiler_pic_works=yes
8283      fi
8284    fi
8285    $RM conftest*
8286
8287 fi
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8289 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8290
8291 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8292     case $lt_prog_compiler_pic in
8293      "" | " "*) ;;
8294      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8295      esac
8296 else
8297     lt_prog_compiler_pic=
8298      lt_prog_compiler_can_build_shared=no
8299 fi
8300
8301 fi
8302
8303
8304
8305
8306
8307
8308 #
8309 # Check to make sure the static flag actually works.
8310 #
8311 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8313 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8314 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   lt_cv_prog_compiler_static_works=no
8318    save_LDFLAGS="$LDFLAGS"
8319    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8320    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8321    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8322      # The linker can only warn and ignore the option if not recognized
8323      # So say no if there are warnings
8324      if test -s conftest.err; then
8325        # Append any errors to the config.log.
8326        cat conftest.err 1>&5
8327        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8328        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8329        if diff conftest.exp conftest.er2 >/dev/null; then
8330          lt_cv_prog_compiler_static_works=yes
8331        fi
8332      else
8333        lt_cv_prog_compiler_static_works=yes
8334      fi
8335    fi
8336    $RM -r conftest*
8337    LDFLAGS="$save_LDFLAGS"
8338
8339 fi
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8341 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8342
8343 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8344     :
8345 else
8346     lt_prog_compiler_static=
8347 fi
8348
8349
8350
8351
8352
8353
8354
8355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8356 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8357 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8358   $as_echo_n "(cached) " >&6
8359 else
8360   lt_cv_prog_compiler_c_o=no
8361    $RM -r conftest 2>/dev/null
8362    mkdir conftest
8363    cd conftest
8364    mkdir out
8365    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8366
8367    lt_compiler_flag="-o out/conftest2.$ac_objext"
8368    # Insert the option either (1) after the last *FLAGS variable, or
8369    # (2) before a word containing "conftest.", or (3) at the end.
8370    # Note that $ac_compile itself does not contain backslashes and begins
8371    # with a dollar sign (not a hyphen), so the echo should work correctly.
8372    lt_compile=`echo "$ac_compile" | $SED \
8373    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375    -e 's:$: $lt_compiler_flag:'`
8376    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8377    (eval "$lt_compile" 2>out/conftest.err)
8378    ac_status=$?
8379    cat out/conftest.err >&5
8380    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8382    then
8383      # The compiler can only warn and ignore the option if not recognized
8384      # So say no if there are warnings
8385      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8386      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8387      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8388        lt_cv_prog_compiler_c_o=yes
8389      fi
8390    fi
8391    chmod u+w . 2>&5
8392    $RM conftest*
8393    # SGI C++ compiler will create directory out/ii_files/ for
8394    # template instantiation
8395    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8396    $RM out/* && rmdir out
8397    cd ..
8398    $RM -r conftest
8399    $RM conftest*
8400
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8403 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8404
8405
8406
8407
8408
8409
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8412 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   lt_cv_prog_compiler_c_o=no
8416    $RM -r conftest 2>/dev/null
8417    mkdir conftest
8418    cd conftest
8419    mkdir out
8420    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8421
8422    lt_compiler_flag="-o out/conftest2.$ac_objext"
8423    # Insert the option either (1) after the last *FLAGS variable, or
8424    # (2) before a word containing "conftest.", or (3) at the end.
8425    # Note that $ac_compile itself does not contain backslashes and begins
8426    # with a dollar sign (not a hyphen), so the echo should work correctly.
8427    lt_compile=`echo "$ac_compile" | $SED \
8428    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8429    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8430    -e 's:$: $lt_compiler_flag:'`
8431    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8432    (eval "$lt_compile" 2>out/conftest.err)
8433    ac_status=$?
8434    cat out/conftest.err >&5
8435    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8437    then
8438      # The compiler can only warn and ignore the option if not recognized
8439      # So say no if there are warnings
8440      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8441      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8442      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8443        lt_cv_prog_compiler_c_o=yes
8444      fi
8445    fi
8446    chmod u+w . 2>&5
8447    $RM conftest*
8448    # SGI C++ compiler will create directory out/ii_files/ for
8449    # template instantiation
8450    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8451    $RM out/* && rmdir out
8452    cd ..
8453    $RM -r conftest
8454    $RM conftest*
8455
8456 fi
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8458 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8459
8460
8461
8462
8463 hard_links="nottested"
8464 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8465   # do not overwrite the value of need_locks provided by the user
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8467 $as_echo_n "checking if we can lock with hard links... " >&6; }
8468   hard_links=yes
8469   $RM conftest*
8470   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8471   touch conftest.a
8472   ln conftest.a conftest.b 2>&5 || hard_links=no
8473   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8475 $as_echo "$hard_links" >&6; }
8476   if test "$hard_links" = no; then
8477     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8478 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8479     need_locks=warn
8480   fi
8481 else
8482   need_locks=no
8483 fi
8484
8485
8486
8487
8488
8489
8490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8491 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8492
8493   runpath_var=
8494   allow_undefined_flag=
8495   always_export_symbols=no
8496   archive_cmds=
8497   archive_expsym_cmds=
8498   compiler_needs_object=no
8499   enable_shared_with_static_runtimes=no
8500   export_dynamic_flag_spec=
8501   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8502   hardcode_automatic=no
8503   hardcode_direct=no
8504   hardcode_direct_absolute=no
8505   hardcode_libdir_flag_spec=
8506   hardcode_libdir_flag_spec_ld=
8507   hardcode_libdir_separator=
8508   hardcode_minus_L=no
8509   hardcode_shlibpath_var=unsupported
8510   inherit_rpath=no
8511   link_all_deplibs=unknown
8512   module_cmds=
8513   module_expsym_cmds=
8514   old_archive_from_new_cmds=
8515   old_archive_from_expsyms_cmds=
8516   thread_safe_flag_spec=
8517   whole_archive_flag_spec=
8518   # include_expsyms should be a list of space-separated symbols to be *always*
8519   # included in the symbol list
8520   include_expsyms=
8521   # exclude_expsyms can be an extended regexp of symbols to exclude
8522   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8523   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8524   # as well as any symbol that contains `d'.
8525   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8526   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8527   # platforms (ab)use it in PIC code, but their linkers get confused if
8528   # the symbol is explicitly referenced.  Since portable code cannot
8529   # rely on this symbol name, it's probably fine to never include it in
8530   # preloaded symbol tables.
8531   # Exclude shared library initialization/finalization symbols.
8532   extract_expsyms_cmds=
8533
8534   case $host_os in
8535   cygwin* | mingw* | pw32* | cegcc*)
8536     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8537     # When not using gcc, we currently assume that we are using
8538     # Microsoft Visual C++.
8539     if test "$GCC" != yes; then
8540       with_gnu_ld=no
8541     fi
8542     ;;
8543   interix*)
8544     # we just hope/assume this is gcc and not c89 (= MSVC++)
8545     with_gnu_ld=yes
8546     ;;
8547   openbsd*)
8548     with_gnu_ld=no
8549     ;;
8550   esac
8551
8552   ld_shlibs=yes
8553
8554   # On some targets, GNU ld is compatible enough with the native linker
8555   # that we're better off using the native interface for both.
8556   lt_use_gnu_ld_interface=no
8557   if test "$with_gnu_ld" = yes; then
8558     case $host_os in
8559       aix*)
8560         # The AIX port of GNU ld has always aspired to compatibility
8561         # with the native linker.  However, as the warning in the GNU ld
8562         # block says, versions before 2.19.5* couldn't really create working
8563         # shared libraries, regardless of the interface used.
8564         case `$LD -v 2>&1` in
8565           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8566           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8567           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8568           *)
8569             lt_use_gnu_ld_interface=yes
8570             ;;
8571         esac
8572         ;;
8573       *)
8574         lt_use_gnu_ld_interface=yes
8575         ;;
8576     esac
8577   fi
8578
8579   if test "$lt_use_gnu_ld_interface" = yes; then
8580     # If archive_cmds runs LD, not CC, wlarc should be empty
8581     wlarc='${wl}'
8582
8583     # Set some defaults for GNU ld with shared library support. These
8584     # are reset later if shared libraries are not supported. Putting them
8585     # here allows them to be overridden if necessary.
8586     runpath_var=LD_RUN_PATH
8587     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8588     export_dynamic_flag_spec='${wl}--export-dynamic'
8589     # ancient GNU ld didn't support --whole-archive et. al.
8590     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8591       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8592     else
8593       whole_archive_flag_spec=
8594     fi
8595     supports_anon_versioning=no
8596     case `$LD -v 2>&1` in
8597       *GNU\ gold*) supports_anon_versioning=yes ;;
8598       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8599       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8600       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8601       *\ 2.11.*) ;; # other 2.11 versions
8602       *) supports_anon_versioning=yes ;;
8603     esac
8604
8605     # See if GNU ld supports shared libraries.
8606     case $host_os in
8607     aix[3-9]*)
8608       # On AIX/PPC, the GNU linker is very broken
8609       if test "$host_cpu" != ia64; then
8610         ld_shlibs=no
8611         cat <<_LT_EOF 1>&2
8612
8613 *** Warning: the GNU linker, at least up to release 2.19, is reported
8614 *** to be unable to reliably create shared libraries on AIX.
8615 *** Therefore, libtool is disabling shared libraries support.  If you
8616 *** really care for shared libraries, you may want to install binutils
8617 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8618 *** You will then need to restart the configuration process.
8619
8620 _LT_EOF
8621       fi
8622       ;;
8623
8624     amigaos*)
8625       case $host_cpu in
8626       powerpc)
8627             # see comment about AmigaOS4 .so support
8628             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8629             archive_expsym_cmds=''
8630         ;;
8631       m68k)
8632             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)'
8633             hardcode_libdir_flag_spec='-L$libdir'
8634             hardcode_minus_L=yes
8635         ;;
8636       esac
8637       ;;
8638
8639     beos*)
8640       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8641         allow_undefined_flag=unsupported
8642         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8643         # support --undefined.  This deserves some investigation.  FIXME
8644         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645       else
8646         ld_shlibs=no
8647       fi
8648       ;;
8649
8650     cygwin* | mingw* | pw32* | cegcc*)
8651       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8652       # as there is no search path for DLLs.
8653       hardcode_libdir_flag_spec='-L$libdir'
8654       export_dynamic_flag_spec='${wl}--export-all-symbols'
8655       allow_undefined_flag=unsupported
8656       always_export_symbols=no
8657       enable_shared_with_static_runtimes=yes
8658       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8659
8660       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8661         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8662         # If the export-symbols file already is a .def file (1st line
8663         # is EXPORTS), use it as is; otherwise, prepend...
8664         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8665           cp $export_symbols $output_objdir/$soname.def;
8666         else
8667           echo EXPORTS > $output_objdir/$soname.def;
8668           cat $export_symbols >> $output_objdir/$soname.def;
8669         fi~
8670         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8671       else
8672         ld_shlibs=no
8673       fi
8674       ;;
8675
8676     haiku*)
8677       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8678       link_all_deplibs=yes
8679       ;;
8680
8681     interix[3-9]*)
8682       hardcode_direct=no
8683       hardcode_shlibpath_var=no
8684       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8685       export_dynamic_flag_spec='${wl}-E'
8686       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8687       # Instead, shared libraries are loaded at an image base (0x10000000 by
8688       # default) and relocated if they conflict, which is a slow very memory
8689       # consuming and fragmenting process.  To avoid this, we pick a random,
8690       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8691       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8692       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8693       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'
8694       ;;
8695
8696     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8697       tmp_diet=no
8698       if test "$host_os" = linux-dietlibc; then
8699         case $cc_basename in
8700           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8701         esac
8702       fi
8703       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8704          && test "$tmp_diet" = no
8705       then
8706         tmp_addflag=
8707         tmp_sharedflag='-shared'
8708         case $cc_basename,$host_cpu in
8709         pgcc*)                          # Portland Group C compiler
8710           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'
8711           tmp_addflag=' $pic_flag'
8712           ;;
8713         pgf77* | pgf90* | pgf95* | pgfortran*)
8714                                         # Portland Group f77 and f90 compilers
8715           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'
8716           tmp_addflag=' $pic_flag -Mnomain' ;;
8717         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8718           tmp_addflag=' -i_dynamic' ;;
8719         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8720           tmp_addflag=' -i_dynamic -nofor_main' ;;
8721         ifc* | ifort*)                  # Intel Fortran compiler
8722           tmp_addflag=' -nofor_main' ;;
8723         lf95*)                          # Lahey Fortran 8.1
8724           whole_archive_flag_spec=
8725           tmp_sharedflag='--shared' ;;
8726         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8727           tmp_sharedflag='-qmkshrobj'
8728           tmp_addflag= ;;
8729         nvcc*)  # Cuda Compiler Driver 2.2
8730           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'
8731           compiler_needs_object=yes
8732           ;;
8733         esac
8734         case `$CC -V 2>&1 | sed 5q` in
8735         *Sun\ C*)                       # Sun C 5.9
8736           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'
8737           compiler_needs_object=yes
8738           tmp_sharedflag='-G' ;;
8739         *Sun\ F*)                       # Sun Fortran 8.3
8740           tmp_sharedflag='-G' ;;
8741         esac
8742         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8743
8744         if test "x$supports_anon_versioning" = xyes; then
8745           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8746             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8747             echo "local: *; };" >> $output_objdir/$libname.ver~
8748             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8749         fi
8750
8751         case $cc_basename in
8752         xlf* | bgf* | bgxlf* | mpixlf*)
8753           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8754           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8755           hardcode_libdir_flag_spec=
8756           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8757           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8758           if test "x$supports_anon_versioning" = xyes; then
8759             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8760               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8761               echo "local: *; };" >> $output_objdir/$libname.ver~
8762               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8763           fi
8764           ;;
8765         esac
8766       else
8767         ld_shlibs=no
8768       fi
8769       ;;
8770
8771     netbsd*)
8772       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8773         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8774         wlarc=
8775       else
8776         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8777         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8778       fi
8779       ;;
8780
8781     solaris*)
8782       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8783         ld_shlibs=no
8784         cat <<_LT_EOF 1>&2
8785
8786 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8787 *** create shared libraries on Solaris systems.  Therefore, libtool
8788 *** is disabling shared libraries support.  We urge you to upgrade GNU
8789 *** binutils to release 2.9.1 or newer.  Another option is to modify
8790 *** your PATH or compiler configuration so that the native linker is
8791 *** used, and then restart.
8792
8793 _LT_EOF
8794       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8795         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8796         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8797       else
8798         ld_shlibs=no
8799       fi
8800       ;;
8801
8802     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8803       case `$LD -v 2>&1` in
8804         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8805         ld_shlibs=no
8806         cat <<_LT_EOF 1>&2
8807
8808 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8809 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8810 *** is disabling shared libraries support.  We urge you to upgrade GNU
8811 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8812 *** your PATH or compiler configuration so that the native linker is
8813 *** used, and then restart.
8814
8815 _LT_EOF
8816         ;;
8817         *)
8818           # For security reasons, it is highly recommended that you always
8819           # use absolute paths for naming shared libraries, and exclude the
8820           # DT_RUNPATH tag from executables and libraries.  But doing so
8821           # requires that you compile everything twice, which is a pain.
8822           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8823             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8824             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8825             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8826           else
8827             ld_shlibs=no
8828           fi
8829         ;;
8830       esac
8831       ;;
8832
8833     sunos4*)
8834       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8835       wlarc=
8836       hardcode_direct=yes
8837       hardcode_shlibpath_var=no
8838       ;;
8839
8840     *)
8841       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8842         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8844       else
8845         ld_shlibs=no
8846       fi
8847       ;;
8848     esac
8849
8850     if test "$ld_shlibs" = no; then
8851       runpath_var=
8852       hardcode_libdir_flag_spec=
8853       export_dynamic_flag_spec=
8854       whole_archive_flag_spec=
8855     fi
8856   else
8857     # PORTME fill in a description of your system's linker (not GNU ld)
8858     case $host_os in
8859     aix3*)
8860       allow_undefined_flag=unsupported
8861       always_export_symbols=yes
8862       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'
8863       # Note: this linker hardcodes the directories in LIBPATH if there
8864       # are no directories specified by -L.
8865       hardcode_minus_L=yes
8866       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8867         # Neither direct hardcoding nor static linking is supported with a
8868         # broken collect2.
8869         hardcode_direct=unsupported
8870       fi
8871       ;;
8872
8873     aix[4-9]*)
8874       if test "$host_cpu" = ia64; then
8875         # On IA64, the linker does run time linking by default, so we don't
8876         # have to do anything special.
8877         aix_use_runtimelinking=no
8878         exp_sym_flag='-Bexport'
8879         no_entry_flag=""
8880       else
8881         # If we're using GNU nm, then we don't want the "-C" option.
8882         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8883         # Also, AIX nm treats weak defined symbols like other global
8884         # defined symbols, whereas GNU nm marks them as "W".
8885         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8886           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'
8887         else
8888           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'
8889         fi
8890         aix_use_runtimelinking=no
8891
8892         # Test if we are trying to use run time linking or normal
8893         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8894         # need to do runtime linking.
8895         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8896           for ld_flag in $LDFLAGS; do
8897           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8898             aix_use_runtimelinking=yes
8899             break
8900           fi
8901           done
8902           ;;
8903         esac
8904
8905         exp_sym_flag='-bexport'
8906         no_entry_flag='-bnoentry'
8907       fi
8908
8909       # When large executables or shared objects are built, AIX ld can
8910       # have problems creating the table of contents.  If linking a library
8911       # or program results in "error TOC overflow" add -mminimal-toc to
8912       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8913       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8914
8915       archive_cmds=''
8916       hardcode_direct=yes
8917       hardcode_direct_absolute=yes
8918       hardcode_libdir_separator=':'
8919       link_all_deplibs=yes
8920       file_list_spec='${wl}-f,'
8921
8922       if test "$GCC" = yes; then
8923         case $host_os in aix4.[012]|aix4.[012].*)
8924         # We only want to do this on AIX 4.2 and lower, the check
8925         # below for broken collect2 doesn't work under 4.3+
8926           collect2name=`${CC} -print-prog-name=collect2`
8927           if test -f "$collect2name" &&
8928            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8929           then
8930           # We have reworked collect2
8931           :
8932           else
8933           # We have old collect2
8934           hardcode_direct=unsupported
8935           # It fails to find uninstalled libraries when the uninstalled
8936           # path is not listed in the libpath.  Setting hardcode_minus_L
8937           # to unsupported forces relinking
8938           hardcode_minus_L=yes
8939           hardcode_libdir_flag_spec='-L$libdir'
8940           hardcode_libdir_separator=
8941           fi
8942           ;;
8943         esac
8944         shared_flag='-shared'
8945         if test "$aix_use_runtimelinking" = yes; then
8946           shared_flag="$shared_flag "'${wl}-G'
8947         fi
8948       else
8949         # not using gcc
8950         if test "$host_cpu" = ia64; then
8951         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8952         # chokes on -Wl,-G. The following line is correct:
8953           shared_flag='-G'
8954         else
8955           if test "$aix_use_runtimelinking" = yes; then
8956             shared_flag='${wl}-G'
8957           else
8958             shared_flag='${wl}-bM:SRE'
8959           fi
8960         fi
8961       fi
8962
8963       export_dynamic_flag_spec='${wl}-bexpall'
8964       # It seems that -bexpall does not export symbols beginning with
8965       # underscore (_), so it is better to generate a list of symbols to export.
8966       always_export_symbols=yes
8967       if test "$aix_use_runtimelinking" = yes; then
8968         # Warning - without using the other runtime loading flags (-brtl),
8969         # -berok will link without error, but may produce a broken library.
8970         allow_undefined_flag='-berok'
8971         # Determine the default libpath from the value encoded in an
8972         # empty executable.
8973         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h.  */
8975
8976 int
8977 main ()
8978 {
8979
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 if ac_fn_c_try_link "$LINENO"; then :
8985
8986 lt_aix_libpath_sed='
8987     /Import File Strings/,/^$/ {
8988         /^0/ {
8989             s/^0  *\(.*\)$/\1/
8990             p
8991         }
8992     }'
8993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8994 # Check for a 64-bit object if we didn't find anything.
8995 if test -z "$aix_libpath"; then
8996   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8997 fi
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext \
9000     conftest$ac_exeext conftest.$ac_ext
9001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9002
9003         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9004         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"
9005       else
9006         if test "$host_cpu" = ia64; then
9007           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9008           allow_undefined_flag="-z nodefs"
9009           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"
9010         else
9011          # Determine the default libpath from the value encoded in an
9012          # empty executable.
9013          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h.  */
9015
9016 int
9017 main ()
9018 {
9019
9020   ;
9021   return 0;
9022 }
9023 _ACEOF
9024 if ac_fn_c_try_link "$LINENO"; then :
9025
9026 lt_aix_libpath_sed='
9027     /Import File Strings/,/^$/ {
9028         /^0/ {
9029             s/^0  *\(.*\)$/\1/
9030             p
9031         }
9032     }'
9033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9034 # Check for a 64-bit object if we didn't find anything.
9035 if test -z "$aix_libpath"; then
9036   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9037 fi
9038 fi
9039 rm -f core conftest.err conftest.$ac_objext \
9040     conftest$ac_exeext conftest.$ac_ext
9041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9042
9043          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9044           # Warning - without using the other run time loading flags,
9045           # -berok will link without error, but may produce a broken library.
9046           no_undefined_flag=' ${wl}-bernotok'
9047           allow_undefined_flag=' ${wl}-berok'
9048           if test "$with_gnu_ld" = yes; then
9049             # We only use this code for GNU lds that support --whole-archive.
9050             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9051           else
9052             # Exported symbols can be pulled into shared objects from archives
9053             whole_archive_flag_spec='$convenience'
9054           fi
9055           archive_cmds_need_lc=yes
9056           # This is similar to how AIX traditionally builds its shared libraries.
9057           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'
9058         fi
9059       fi
9060       ;;
9061
9062     amigaos*)
9063       case $host_cpu in
9064       powerpc)
9065             # see comment about AmigaOS4 .so support
9066             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9067             archive_expsym_cmds=''
9068         ;;
9069       m68k)
9070             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)'
9071             hardcode_libdir_flag_spec='-L$libdir'
9072             hardcode_minus_L=yes
9073         ;;
9074       esac
9075       ;;
9076
9077     bsdi[45]*)
9078       export_dynamic_flag_spec=-rdynamic
9079       ;;
9080
9081     cygwin* | mingw* | pw32* | cegcc*)
9082       # When not using gcc, we currently assume that we are using
9083       # Microsoft Visual C++.
9084       # hardcode_libdir_flag_spec is actually meaningless, as there is
9085       # no search path for DLLs.
9086       hardcode_libdir_flag_spec=' '
9087       allow_undefined_flag=unsupported
9088       # Tell ltmain to make .lib files, not .a files.
9089       libext=lib
9090       # Tell ltmain to make .dll files, not .so files.
9091       shrext_cmds=".dll"
9092       # FIXME: Setting linknames here is a bad hack.
9093       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9094       # The linker will automatically build a .lib file if we build a DLL.
9095       old_archive_from_new_cmds='true'
9096       # FIXME: Should let the user specify the lib program.
9097       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9098       fix_srcfile_path='`cygpath -w "$srcfile"`'
9099       enable_shared_with_static_runtimes=yes
9100       ;;
9101
9102     darwin* | rhapsody*)
9103
9104
9105   archive_cmds_need_lc=no
9106   hardcode_direct=no
9107   hardcode_automatic=yes
9108   hardcode_shlibpath_var=unsupported
9109   if test "$lt_cv_ld_force_load" = "yes"; then
9110     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\"`'
9111   else
9112     whole_archive_flag_spec=''
9113   fi
9114   link_all_deplibs=yes
9115   allow_undefined_flag="$_lt_dar_allow_undefined"
9116   case $cc_basename in
9117      ifort*) _lt_dar_can_shared=yes ;;
9118      *) _lt_dar_can_shared=$GCC ;;
9119   esac
9120   if test "$_lt_dar_can_shared" = "yes"; then
9121     output_verbose_link_cmd=func_echo_all
9122     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9123     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9124     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}"
9125     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}"
9126
9127   else
9128   ld_shlibs=no
9129   fi
9130
9131       ;;
9132
9133     dgux*)
9134       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9135       hardcode_libdir_flag_spec='-L$libdir'
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9140     # support.  Future versions do this automatically, but an explicit c++rt0.o
9141     # does not break anything, and helps significantly (at the cost of a little
9142     # extra space).
9143     freebsd2.2*)
9144       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9145       hardcode_libdir_flag_spec='-R$libdir'
9146       hardcode_direct=yes
9147       hardcode_shlibpath_var=no
9148       ;;
9149
9150     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9151     freebsd2*)
9152       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9153       hardcode_direct=yes
9154       hardcode_minus_L=yes
9155       hardcode_shlibpath_var=no
9156       ;;
9157
9158     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9159     freebsd* | dragonfly*)
9160       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9161       hardcode_libdir_flag_spec='-R$libdir'
9162       hardcode_direct=yes
9163       hardcode_shlibpath_var=no
9164       ;;
9165
9166     hpux9*)
9167       if test "$GCC" = yes; then
9168         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'
9169       else
9170         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'
9171       fi
9172       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9173       hardcode_libdir_separator=:
9174       hardcode_direct=yes
9175
9176       # hardcode_minus_L: Not really in the search PATH,
9177       # but as the default location of the library.
9178       hardcode_minus_L=yes
9179       export_dynamic_flag_spec='${wl}-E'
9180       ;;
9181
9182     hpux10*)
9183       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9184         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9185       else
9186         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9187       fi
9188       if test "$with_gnu_ld" = no; then
9189         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9190         hardcode_libdir_flag_spec_ld='+b $libdir'
9191         hardcode_libdir_separator=:
9192         hardcode_direct=yes
9193         hardcode_direct_absolute=yes
9194         export_dynamic_flag_spec='${wl}-E'
9195         # hardcode_minus_L: Not really in the search PATH,
9196         # but as the default location of the library.
9197         hardcode_minus_L=yes
9198       fi
9199       ;;
9200
9201     hpux11*)
9202       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9203         case $host_cpu in
9204         hppa*64*)
9205           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9206           ;;
9207         ia64*)
9208           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9209           ;;
9210         *)
9211           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9212           ;;
9213         esac
9214       else
9215         case $host_cpu in
9216         hppa*64*)
9217           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9218           ;;
9219         ia64*)
9220           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9221           ;;
9222         *)
9223
9224           # Older versions of the 11.00 compiler do not understand -b yet
9225           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9226           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9227 $as_echo_n "checking if $CC understands -b... " >&6; }
9228 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9229   $as_echo_n "(cached) " >&6
9230 else
9231   lt_cv_prog_compiler__b=no
9232    save_LDFLAGS="$LDFLAGS"
9233    LDFLAGS="$LDFLAGS -b"
9234    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9235    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9236      # The linker can only warn and ignore the option if not recognized
9237      # So say no if there are warnings
9238      if test -s conftest.err; then
9239        # Append any errors to the config.log.
9240        cat conftest.err 1>&5
9241        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9242        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9243        if diff conftest.exp conftest.er2 >/dev/null; then
9244          lt_cv_prog_compiler__b=yes
9245        fi
9246      else
9247        lt_cv_prog_compiler__b=yes
9248      fi
9249    fi
9250    $RM -r conftest*
9251    LDFLAGS="$save_LDFLAGS"
9252
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9255 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9256
9257 if test x"$lt_cv_prog_compiler__b" = xyes; then
9258     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9259 else
9260     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9261 fi
9262
9263           ;;
9264         esac
9265       fi
9266       if test "$with_gnu_ld" = no; then
9267         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9268         hardcode_libdir_separator=:
9269
9270         case $host_cpu in
9271         hppa*64*|ia64*)
9272           hardcode_direct=no
9273           hardcode_shlibpath_var=no
9274           ;;
9275         *)
9276           hardcode_direct=yes
9277           hardcode_direct_absolute=yes
9278           export_dynamic_flag_spec='${wl}-E'
9279
9280           # hardcode_minus_L: Not really in the search PATH,
9281           # but as the default location of the library.
9282           hardcode_minus_L=yes
9283           ;;
9284         esac
9285       fi
9286       ;;
9287
9288     irix5* | irix6* | nonstopux*)
9289       if test "$GCC" = yes; then
9290         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'
9291         # Try to use the -exported_symbol ld option, if it does not
9292         # work, assume that -exports_file does not work either and
9293         # implicitly export all symbols.
9294         save_LDFLAGS="$LDFLAGS"
9295         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9296         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h.  */
9298 int foo(void) {}
9299 _ACEOF
9300 if ac_fn_c_try_link "$LINENO"; then :
9301   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'
9302
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext \
9305     conftest$ac_exeext conftest.$ac_ext
9306         LDFLAGS="$save_LDFLAGS"
9307       else
9308         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'
9309         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'
9310       fi
9311       archive_cmds_need_lc='no'
9312       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9313       hardcode_libdir_separator=:
9314       inherit_rpath=yes
9315       link_all_deplibs=yes
9316       ;;
9317
9318     netbsd*)
9319       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9320         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9321       else
9322         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9323       fi
9324       hardcode_libdir_flag_spec='-R$libdir'
9325       hardcode_direct=yes
9326       hardcode_shlibpath_var=no
9327       ;;
9328
9329     newsos6)
9330       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9331       hardcode_direct=yes
9332       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9333       hardcode_libdir_separator=:
9334       hardcode_shlibpath_var=no
9335       ;;
9336
9337     *nto* | *qnx*)
9338       ;;
9339
9340     openbsd*)
9341       if test -f /usr/libexec/ld.so; then
9342         hardcode_direct=yes
9343         hardcode_shlibpath_var=no
9344         hardcode_direct_absolute=yes
9345         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9346           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9347           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9348           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9349           export_dynamic_flag_spec='${wl}-E'
9350         else
9351           case $host_os in
9352            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9353              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9354              hardcode_libdir_flag_spec='-R$libdir'
9355              ;;
9356            *)
9357              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9358              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9359              ;;
9360           esac
9361         fi
9362       else
9363         ld_shlibs=no
9364       fi
9365       ;;
9366
9367     os2*)
9368       hardcode_libdir_flag_spec='-L$libdir'
9369       hardcode_minus_L=yes
9370       allow_undefined_flag=unsupported
9371       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'
9372       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9373       ;;
9374
9375     osf3*)
9376       if test "$GCC" = yes; then
9377         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9378         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'
9379       else
9380         allow_undefined_flag=' -expect_unresolved \*'
9381         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'
9382       fi
9383       archive_cmds_need_lc='no'
9384       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9385       hardcode_libdir_separator=:
9386       ;;
9387
9388     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9389       if test "$GCC" = yes; then
9390         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9391         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'
9392         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9393       else
9394         allow_undefined_flag=' -expect_unresolved \*'
9395         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'
9396         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~
9397         $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'
9398
9399         # Both c and cxx compiler support -rpath directly
9400         hardcode_libdir_flag_spec='-rpath $libdir'
9401       fi
9402       archive_cmds_need_lc='no'
9403       hardcode_libdir_separator=:
9404       ;;
9405
9406     solaris*)
9407       no_undefined_flag=' -z defs'
9408       if test "$GCC" = yes; then
9409         wlarc='${wl}'
9410         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9411         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9412           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9413       else
9414         case `$CC -V 2>&1` in
9415         *"Compilers 5.0"*)
9416           wlarc=''
9417           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9418           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9419           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9420           ;;
9421         *)
9422           wlarc='${wl}'
9423           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9424           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9425           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9426           ;;
9427         esac
9428       fi
9429       hardcode_libdir_flag_spec='-R$libdir'
9430       hardcode_shlibpath_var=no
9431       case $host_os in
9432       solaris2.[0-5] | solaris2.[0-5].*) ;;
9433       *)
9434         # The compiler driver will combine and reorder linker options,
9435         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9436         # but is careful enough not to reorder.
9437         # Supported since Solaris 2.6 (maybe 2.5.1?)
9438         if test "$GCC" = yes; then
9439           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9440         else
9441           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9442         fi
9443         ;;
9444       esac
9445       link_all_deplibs=yes
9446       ;;
9447
9448     sunos4*)
9449       if test "x$host_vendor" = xsequent; then
9450         # Use $CC to link under sequent, because it throws in some extra .o
9451         # files that make .init and .fini sections work.
9452         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9453       else
9454         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9455       fi
9456       hardcode_libdir_flag_spec='-L$libdir'
9457       hardcode_direct=yes
9458       hardcode_minus_L=yes
9459       hardcode_shlibpath_var=no
9460       ;;
9461
9462     sysv4)
9463       case $host_vendor in
9464         sni)
9465           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466           hardcode_direct=yes # is this really true???
9467         ;;
9468         siemens)
9469           ## LD is ld it makes a PLAMLIB
9470           ## CC just makes a GrossModule.
9471           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9472           reload_cmds='$CC -r -o $output$reload_objs'
9473           hardcode_direct=no
9474         ;;
9475         motorola)
9476           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9477           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9478         ;;
9479       esac
9480       runpath_var='LD_RUN_PATH'
9481       hardcode_shlibpath_var=no
9482       ;;
9483
9484     sysv4.3*)
9485       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486       hardcode_shlibpath_var=no
9487       export_dynamic_flag_spec='-Bexport'
9488       ;;
9489
9490     sysv4*MP*)
9491       if test -d /usr/nec; then
9492         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9493         hardcode_shlibpath_var=no
9494         runpath_var=LD_RUN_PATH
9495         hardcode_runpath_var=yes
9496         ld_shlibs=yes
9497       fi
9498       ;;
9499
9500     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9501       no_undefined_flag='${wl}-z,text'
9502       archive_cmds_need_lc=no
9503       hardcode_shlibpath_var=no
9504       runpath_var='LD_RUN_PATH'
9505
9506       if test "$GCC" = yes; then
9507         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509       else
9510         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9512       fi
9513       ;;
9514
9515     sysv5* | sco3.2v5* | sco5v6*)
9516       # Note: We can NOT use -z defs as we might desire, because we do not
9517       # link with -lc, and that would cause any symbols used from libc to
9518       # always be unresolved, which means just about no library would
9519       # ever link correctly.  If we're not using GNU ld we use -z text
9520       # though, which does catch some bad symbols but isn't as heavy-handed
9521       # as -z defs.
9522       no_undefined_flag='${wl}-z,text'
9523       allow_undefined_flag='${wl}-z,nodefs'
9524       archive_cmds_need_lc=no
9525       hardcode_shlibpath_var=no
9526       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9527       hardcode_libdir_separator=':'
9528       link_all_deplibs=yes
9529       export_dynamic_flag_spec='${wl}-Bexport'
9530       runpath_var='LD_RUN_PATH'
9531
9532       if test "$GCC" = yes; then
9533         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535       else
9536         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9537         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9538       fi
9539       ;;
9540
9541     uts4*)
9542       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543       hardcode_libdir_flag_spec='-L$libdir'
9544       hardcode_shlibpath_var=no
9545       ;;
9546
9547     *)
9548       ld_shlibs=no
9549       ;;
9550     esac
9551
9552     if test x$host_vendor = xsni; then
9553       case $host in
9554       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9555         export_dynamic_flag_spec='${wl}-Blargedynsym'
9556         ;;
9557       esac
9558     fi
9559   fi
9560
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9562 $as_echo "$ld_shlibs" >&6; }
9563 test "$ld_shlibs" = no && can_build_shared=no
9564
9565 with_gnu_ld=$with_gnu_ld
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581 #
9582 # Do we need to explicitly link libc?
9583 #
9584 case "x$archive_cmds_need_lc" in
9585 x|xyes)
9586   # Assume -lc should be added
9587   archive_cmds_need_lc=yes
9588
9589   if test "$enable_shared" = yes && test "$GCC" = yes; then
9590     case $archive_cmds in
9591     *'~'*)
9592       # FIXME: we may have to deal with multi-command sequences.
9593       ;;
9594     '$CC '*)
9595       # Test whether the compiler implicitly links with -lc since on some
9596       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9597       # to ld, don't add -lc before -lgcc.
9598       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9600 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9601   $as_echo_n "(cached) " >&6
9602 else
9603   $RM conftest*
9604         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9605
9606         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9607   (eval $ac_compile) 2>&5
9608   ac_status=$?
9609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9610   test $ac_status = 0; } 2>conftest.err; then
9611           soname=conftest
9612           lib=conftest
9613           libobjs=conftest.$ac_objext
9614           deplibs=
9615           wl=$lt_prog_compiler_wl
9616           pic_flag=$lt_prog_compiler_pic
9617           compiler_flags=-v
9618           linker_flags=-v
9619           verstring=
9620           output_objdir=.
9621           libname=conftest
9622           lt_save_allow_undefined_flag=$allow_undefined_flag
9623           allow_undefined_flag=
9624           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9625   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9626   ac_status=$?
9627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9628   test $ac_status = 0; }
9629           then
9630             lt_cv_archive_cmds_need_lc=no
9631           else
9632             lt_cv_archive_cmds_need_lc=yes
9633           fi
9634           allow_undefined_flag=$lt_save_allow_undefined_flag
9635         else
9636           cat conftest.err 1>&5
9637         fi
9638         $RM conftest*
9639
9640 fi
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9642 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9643       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9644       ;;
9645     esac
9646   fi
9647   ;;
9648 esac
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
9798
9799
9800
9801
9802
9803
9804
9805
9806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9807 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9808
9809 if test "$GCC" = yes; then
9810   case $host_os in
9811     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9812     *) lt_awk_arg="/^libraries:/" ;;
9813   esac
9814   case $host_os in
9815     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9816     *) lt_sed_strip_eq="s,=/,/,g" ;;
9817   esac
9818   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9819   case $lt_search_path_spec in
9820   *\;*)
9821     # if the path contains ";" then we assume it to be the separator
9822     # otherwise default to the standard path separator (i.e. ":") - it is
9823     # assumed that no part of a normal pathname contains ";" but that should
9824     # okay in the real world where ";" in dirpaths is itself problematic.
9825     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9826     ;;
9827   *)
9828     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9829     ;;
9830   esac
9831   # Ok, now we have the path, separated by spaces, we can step through it
9832   # and add multilib dir if necessary.
9833   lt_tmp_lt_search_path_spec=
9834   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9835   for lt_sys_path in $lt_search_path_spec; do
9836     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9837       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9838     else
9839       test -d "$lt_sys_path" && \
9840         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9841     fi
9842   done
9843   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9844 BEGIN {RS=" "; FS="/|\n";} {
9845   lt_foo="";
9846   lt_count=0;
9847   for (lt_i = NF; lt_i > 0; lt_i--) {
9848     if ($lt_i != "" && $lt_i != ".") {
9849       if ($lt_i == "..") {
9850         lt_count++;
9851       } else {
9852         if (lt_count == 0) {
9853           lt_foo="/" $lt_i lt_foo;
9854         } else {
9855           lt_count--;
9856         }
9857       }
9858     }
9859   }
9860   if (lt_foo != "") { lt_freq[lt_foo]++; }
9861   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9862 }'`
9863   # AWK program above erroneously prepends '/' to C:/dos/paths
9864   # for these hosts.
9865   case $host_os in
9866     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9867       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9868   esac
9869   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9870 else
9871   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9872 fi
9873 library_names_spec=
9874 libname_spec='lib$name'
9875 soname_spec=
9876 shrext_cmds=".so"
9877 postinstall_cmds=
9878 postuninstall_cmds=
9879 finish_cmds=
9880 finish_eval=
9881 shlibpath_var=
9882 shlibpath_overrides_runpath=unknown
9883 version_type=none
9884 dynamic_linker="$host_os ld.so"
9885 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9886 need_lib_prefix=unknown
9887 hardcode_into_libs=no
9888
9889 # when you set need_version to no, make sure it does not cause -set_version
9890 # flags to be left without arguments
9891 need_version=unknown
9892
9893 case $host_os in
9894 aix3*)
9895   version_type=linux
9896   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9897   shlibpath_var=LIBPATH
9898
9899   # AIX 3 has no versioning support, so we append a major version to the name.
9900   soname_spec='${libname}${release}${shared_ext}$major'
9901   ;;
9902
9903 aix[4-9]*)
9904   version_type=linux
9905   need_lib_prefix=no
9906   need_version=no
9907   hardcode_into_libs=yes
9908   if test "$host_cpu" = ia64; then
9909     # AIX 5 supports IA64
9910     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9911     shlibpath_var=LD_LIBRARY_PATH
9912   else
9913     # With GCC up to 2.95.x, collect2 would create an import file
9914     # for dependence libraries.  The import file would start with
9915     # the line `#! .'.  This would cause the generated library to
9916     # depend on `.', always an invalid library.  This was fixed in
9917     # development snapshots of GCC prior to 3.0.
9918     case $host_os in
9919       aix4 | aix4.[01] | aix4.[01].*)
9920       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9921            echo ' yes '
9922            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9923         :
9924       else
9925         can_build_shared=no
9926       fi
9927       ;;
9928     esac
9929     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9930     # soname into executable. Probably we can add versioning support to
9931     # collect2, so additional links can be useful in future.
9932     if test "$aix_use_runtimelinking" = yes; then
9933       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9934       # instead of lib<name>.a to let people know that these are not
9935       # typical AIX shared libraries.
9936       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937     else
9938       # We preserve .a as extension for shared libraries through AIX4.2
9939       # and later when we are not doing run time linking.
9940       library_names_spec='${libname}${release}.a $libname.a'
9941       soname_spec='${libname}${release}${shared_ext}$major'
9942     fi
9943     shlibpath_var=LIBPATH
9944   fi
9945   ;;
9946
9947 amigaos*)
9948   case $host_cpu in
9949   powerpc)
9950     # Since July 2007 AmigaOS4 officially supports .so libraries.
9951     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9952     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953     ;;
9954   m68k)
9955     library_names_spec='$libname.ixlibrary $libname.a'
9956     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9957     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'
9958     ;;
9959   esac
9960   ;;
9961
9962 beos*)
9963   library_names_spec='${libname}${shared_ext}'
9964   dynamic_linker="$host_os ld.so"
9965   shlibpath_var=LIBRARY_PATH
9966   ;;
9967
9968 bsdi[45]*)
9969   version_type=linux
9970   need_version=no
9971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972   soname_spec='${libname}${release}${shared_ext}$major'
9973   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9974   shlibpath_var=LD_LIBRARY_PATH
9975   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9976   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9977   # the default ld.so.conf also contains /usr/contrib/lib and
9978   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9979   # libtool to hard-code these into programs
9980   ;;
9981
9982 cygwin* | mingw* | pw32* | cegcc*)
9983   version_type=windows
9984   shrext_cmds=".dll"
9985   need_version=no
9986   need_lib_prefix=no
9987
9988   case $GCC,$host_os in
9989   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9990     library_names_spec='$libname.dll.a'
9991     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9992     postinstall_cmds='base_file=`basename \${file}`~
9993       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9994       dldir=$destdir/`dirname \$dlpath`~
9995       test -d \$dldir || mkdir -p \$dldir~
9996       $install_prog $dir/$dlname \$dldir/$dlname~
9997       chmod a+x \$dldir/$dlname~
9998       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9999         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10000       fi'
10001     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10002       dlpath=$dir/\$dldll~
10003        $RM \$dlpath'
10004     shlibpath_overrides_runpath=yes
10005
10006     case $host_os in
10007     cygwin*)
10008       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10009       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10010
10011       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10012       ;;
10013     mingw* | cegcc*)
10014       # MinGW DLLs use traditional 'lib' prefix
10015       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016       ;;
10017     pw32*)
10018       # pw32 DLLs use 'pw' prefix rather than 'lib'
10019       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10020       ;;
10021     esac
10022     ;;
10023
10024   *)
10025     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10026     ;;
10027   esac
10028   dynamic_linker='Win32 ld.exe'
10029   # FIXME: first we should search . and the directory the executable is in
10030   shlibpath_var=PATH
10031   ;;
10032
10033 darwin* | rhapsody*)
10034   dynamic_linker="$host_os dyld"
10035   version_type=darwin
10036   need_lib_prefix=no
10037   need_version=no
10038   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10039   soname_spec='${libname}${release}${major}$shared_ext'
10040   shlibpath_overrides_runpath=yes
10041   shlibpath_var=DYLD_LIBRARY_PATH
10042   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10043
10044   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10045   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10046   ;;
10047
10048 dgux*)
10049   version_type=linux
10050   need_lib_prefix=no
10051   need_version=no
10052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10053   soname_spec='${libname}${release}${shared_ext}$major'
10054   shlibpath_var=LD_LIBRARY_PATH
10055   ;;
10056
10057 freebsd* | dragonfly*)
10058   # DragonFly does not have aout.  When/if they implement a new
10059   # versioning mechanism, adjust this.
10060   if test -x /usr/bin/objformat; then
10061     objformat=`/usr/bin/objformat`
10062   else
10063     case $host_os in
10064     freebsd[123]*) objformat=aout ;;
10065     *) objformat=elf ;;
10066     esac
10067   fi
10068   version_type=freebsd-$objformat
10069   case $version_type in
10070     freebsd-elf*)
10071       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10072       need_version=no
10073       need_lib_prefix=no
10074       ;;
10075     freebsd-*)
10076       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10077       need_version=yes
10078       ;;
10079   esac
10080   shlibpath_var=LD_LIBRARY_PATH
10081   case $host_os in
10082   freebsd2*)
10083     shlibpath_overrides_runpath=yes
10084     ;;
10085   freebsd3.[01]* | freebsdelf3.[01]*)
10086     shlibpath_overrides_runpath=yes
10087     hardcode_into_libs=yes
10088     ;;
10089   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10090   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10091     shlibpath_overrides_runpath=no
10092     hardcode_into_libs=yes
10093     ;;
10094   *) # from 4.6 on, and DragonFly
10095     shlibpath_overrides_runpath=yes
10096     hardcode_into_libs=yes
10097     ;;
10098   esac
10099   ;;
10100
10101 gnu*)
10102   version_type=linux
10103   need_lib_prefix=no
10104   need_version=no
10105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10106   soname_spec='${libname}${release}${shared_ext}$major'
10107   shlibpath_var=LD_LIBRARY_PATH
10108   hardcode_into_libs=yes
10109   ;;
10110
10111 haiku*)
10112   version_type=linux
10113   need_lib_prefix=no
10114   need_version=no
10115   dynamic_linker="$host_os runtime_loader"
10116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10117   soname_spec='${libname}${release}${shared_ext}$major'
10118   shlibpath_var=LIBRARY_PATH
10119   shlibpath_overrides_runpath=yes
10120   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10121   hardcode_into_libs=yes
10122   ;;
10123
10124 hpux9* | hpux10* | hpux11*)
10125   # Give a soname corresponding to the major version so that dld.sl refuses to
10126   # link against other versions.
10127   version_type=sunos
10128   need_lib_prefix=no
10129   need_version=no
10130   case $host_cpu in
10131   ia64*)
10132     shrext_cmds='.so'
10133     hardcode_into_libs=yes
10134     dynamic_linker="$host_os dld.so"
10135     shlibpath_var=LD_LIBRARY_PATH
10136     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10137     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10138     soname_spec='${libname}${release}${shared_ext}$major'
10139     if test "X$HPUX_IA64_MODE" = X32; then
10140       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10141     else
10142       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10143     fi
10144     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10145     ;;
10146   hppa*64*)
10147     shrext_cmds='.sl'
10148     hardcode_into_libs=yes
10149     dynamic_linker="$host_os dld.sl"
10150     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10151     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153     soname_spec='${libname}${release}${shared_ext}$major'
10154     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10155     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10156     ;;
10157   *)
10158     shrext_cmds='.sl'
10159     dynamic_linker="$host_os dld.sl"
10160     shlibpath_var=SHLIB_PATH
10161     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10162     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163     soname_spec='${libname}${release}${shared_ext}$major'
10164     ;;
10165   esac
10166   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10167   postinstall_cmds='chmod 555 $lib'
10168   # or fails outright, so override atomically:
10169   install_override_mode=555
10170   ;;
10171
10172 interix[3-9]*)
10173   version_type=linux
10174   need_lib_prefix=no
10175   need_version=no
10176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10177   soname_spec='${libname}${release}${shared_ext}$major'
10178   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10179   shlibpath_var=LD_LIBRARY_PATH
10180   shlibpath_overrides_runpath=no
10181   hardcode_into_libs=yes
10182   ;;
10183
10184 irix5* | irix6* | nonstopux*)
10185   case $host_os in
10186     nonstopux*) version_type=nonstopux ;;
10187     *)
10188         if test "$lt_cv_prog_gnu_ld" = yes; then
10189                 version_type=linux
10190         else
10191                 version_type=irix
10192         fi ;;
10193   esac
10194   need_lib_prefix=no
10195   need_version=no
10196   soname_spec='${libname}${release}${shared_ext}$major'
10197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10198   case $host_os in
10199   irix5* | nonstopux*)
10200     libsuff= shlibsuff=
10201     ;;
10202   *)
10203     case $LD in # libtool.m4 will add one of these switches to LD
10204     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10205       libsuff= shlibsuff= libmagic=32-bit;;
10206     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10207       libsuff=32 shlibsuff=N32 libmagic=N32;;
10208     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10209       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10210     *) libsuff= shlibsuff= libmagic=never-match;;
10211     esac
10212     ;;
10213   esac
10214   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10215   shlibpath_overrides_runpath=no
10216   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10217   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10218   hardcode_into_libs=yes
10219   ;;
10220
10221 # No shared lib support for Linux oldld, aout, or coff.
10222 linux*oldld* | linux*aout* | linux*coff*)
10223   dynamic_linker=no
10224   ;;
10225
10226 # This must be Linux ELF.
10227 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10228   version_type=linux
10229   need_lib_prefix=no
10230   need_version=no
10231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10232   soname_spec='${libname}${release}${shared_ext}$major'
10233   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10234   shlibpath_var=LD_LIBRARY_PATH
10235   shlibpath_overrides_runpath=no
10236
10237   # Some binutils ld are patched to set DT_RUNPATH
10238   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10239   $as_echo_n "(cached) " >&6
10240 else
10241   lt_cv_shlibpath_overrides_runpath=no
10242     save_LDFLAGS=$LDFLAGS
10243     save_libdir=$libdir
10244     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10245          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10247 /* end confdefs.h.  */
10248
10249 int
10250 main ()
10251 {
10252
10253   ;
10254   return 0;
10255 }
10256 _ACEOF
10257 if ac_fn_c_try_link "$LINENO"; then :
10258   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10259   lt_cv_shlibpath_overrides_runpath=yes
10260 fi
10261 fi
10262 rm -f core conftest.err conftest.$ac_objext \
10263     conftest$ac_exeext conftest.$ac_ext
10264     LDFLAGS=$save_LDFLAGS
10265     libdir=$save_libdir
10266
10267 fi
10268
10269   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10270
10271   # This implies no fast_install, which is unacceptable.
10272   # Some rework will be needed to allow for fast_install
10273   # before this can be enabled.
10274   hardcode_into_libs=yes
10275
10276   # Append ld.so.conf contents to the search path
10277   if test -f /etc/ld.so.conf; then
10278     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' ' '`
10279     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10280   fi
10281
10282   # We used to test for /lib/ld.so.1 and disable shared libraries on
10283   # powerpc, because MkLinux only supported shared libraries with the
10284   # GNU dynamic linker.  Since this was broken with cross compilers,
10285   # most powerpc-linux boxes support dynamic linking these days and
10286   # people can always --disable-shared, the test was removed, and we
10287   # assume the GNU/Linux dynamic linker is in use.
10288   dynamic_linker='GNU/Linux ld.so'
10289   ;;
10290
10291 netbsd*)
10292   version_type=sunos
10293   need_lib_prefix=no
10294   need_version=no
10295   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10297     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10298     dynamic_linker='NetBSD (a.out) ld.so'
10299   else
10300     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10301     soname_spec='${libname}${release}${shared_ext}$major'
10302     dynamic_linker='NetBSD ld.elf_so'
10303   fi
10304   shlibpath_var=LD_LIBRARY_PATH
10305   shlibpath_overrides_runpath=yes
10306   hardcode_into_libs=yes
10307   ;;
10308
10309 newsos6)
10310   version_type=linux
10311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10312   shlibpath_var=LD_LIBRARY_PATH
10313   shlibpath_overrides_runpath=yes
10314   ;;
10315
10316 *nto* | *qnx*)
10317   version_type=qnx
10318   need_lib_prefix=no
10319   need_version=no
10320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321   soname_spec='${libname}${release}${shared_ext}$major'
10322   shlibpath_var=LD_LIBRARY_PATH
10323   shlibpath_overrides_runpath=no
10324   hardcode_into_libs=yes
10325   dynamic_linker='ldqnx.so'
10326   ;;
10327
10328 openbsd*)
10329   version_type=sunos
10330   sys_lib_dlsearch_path_spec="/usr/lib"
10331   need_lib_prefix=no
10332   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10333   case $host_os in
10334     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10335     *)                          need_version=no  ;;
10336   esac
10337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10339   shlibpath_var=LD_LIBRARY_PATH
10340   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10341     case $host_os in
10342       openbsd2.[89] | openbsd2.[89].*)
10343         shlibpath_overrides_runpath=no
10344         ;;
10345       *)
10346         shlibpath_overrides_runpath=yes
10347         ;;
10348       esac
10349   else
10350     shlibpath_overrides_runpath=yes
10351   fi
10352   ;;
10353
10354 os2*)
10355   libname_spec='$name'
10356   shrext_cmds=".dll"
10357   need_lib_prefix=no
10358   library_names_spec='$libname${shared_ext} $libname.a'
10359   dynamic_linker='OS/2 ld.exe'
10360   shlibpath_var=LIBPATH
10361   ;;
10362
10363 osf3* | osf4* | osf5*)
10364   version_type=osf
10365   need_lib_prefix=no
10366   need_version=no
10367   soname_spec='${libname}${release}${shared_ext}$major'
10368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369   shlibpath_var=LD_LIBRARY_PATH
10370   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10371   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10372   ;;
10373
10374 rdos*)
10375   dynamic_linker=no
10376   ;;
10377
10378 solaris*)
10379   version_type=linux
10380   need_lib_prefix=no
10381   need_version=no
10382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383   soname_spec='${libname}${release}${shared_ext}$major'
10384   shlibpath_var=LD_LIBRARY_PATH
10385   shlibpath_overrides_runpath=yes
10386   hardcode_into_libs=yes
10387   # ldd complains unless libraries are executable
10388   postinstall_cmds='chmod +x $lib'
10389   ;;
10390
10391 sunos4*)
10392   version_type=sunos
10393   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10394   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10395   shlibpath_var=LD_LIBRARY_PATH
10396   shlibpath_overrides_runpath=yes
10397   if test "$with_gnu_ld" = yes; then
10398     need_lib_prefix=no
10399   fi
10400   need_version=yes
10401   ;;
10402
10403 sysv4 | sysv4.3*)
10404   version_type=linux
10405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10406   soname_spec='${libname}${release}${shared_ext}$major'
10407   shlibpath_var=LD_LIBRARY_PATH
10408   case $host_vendor in
10409     sni)
10410       shlibpath_overrides_runpath=no
10411       need_lib_prefix=no
10412       runpath_var=LD_RUN_PATH
10413       ;;
10414     siemens)
10415       need_lib_prefix=no
10416       ;;
10417     motorola)
10418       need_lib_prefix=no
10419       need_version=no
10420       shlibpath_overrides_runpath=no
10421       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10422       ;;
10423   esac
10424   ;;
10425
10426 sysv4*MP*)
10427   if test -d /usr/nec ;then
10428     version_type=linux
10429     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10430     soname_spec='$libname${shared_ext}.$major'
10431     shlibpath_var=LD_LIBRARY_PATH
10432   fi
10433   ;;
10434
10435 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10436   version_type=freebsd-elf
10437   need_lib_prefix=no
10438   need_version=no
10439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10440   soname_spec='${libname}${release}${shared_ext}$major'
10441   shlibpath_var=LD_LIBRARY_PATH
10442   shlibpath_overrides_runpath=yes
10443   hardcode_into_libs=yes
10444   if test "$with_gnu_ld" = yes; then
10445     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10446   else
10447     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10448     case $host_os in
10449       sco3.2v5*)
10450         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10451         ;;
10452     esac
10453   fi
10454   sys_lib_dlsearch_path_spec='/usr/lib'
10455   ;;
10456
10457 tpf*)
10458   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10459   version_type=linux
10460   need_lib_prefix=no
10461   need_version=no
10462   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10463   shlibpath_var=LD_LIBRARY_PATH
10464   shlibpath_overrides_runpath=no
10465   hardcode_into_libs=yes
10466   ;;
10467
10468 uts4*)
10469   version_type=linux
10470   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471   soname_spec='${libname}${release}${shared_ext}$major'
10472   shlibpath_var=LD_LIBRARY_PATH
10473   ;;
10474
10475 *)
10476   dynamic_linker=no
10477   ;;
10478 esac
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10480 $as_echo "$dynamic_linker" >&6; }
10481 test "$dynamic_linker" = no && can_build_shared=no
10482
10483 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10484 if test "$GCC" = yes; then
10485   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10486 fi
10487
10488 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10489   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10490 fi
10491 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10492   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10493 fi
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
10578
10579
10580
10581
10582
10583
10584
10585
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10587 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10588 hardcode_action=
10589 if test -n "$hardcode_libdir_flag_spec" ||
10590    test -n "$runpath_var" ||
10591    test "X$hardcode_automatic" = "Xyes" ; then
10592
10593   # We can hardcode non-existent directories.
10594   if test "$hardcode_direct" != no &&
10595      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10596      # have to relink, otherwise we might link with an installed library
10597      # when we should be linking with a yet-to-be-installed one
10598      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10599      test "$hardcode_minus_L" != no; then
10600     # Linking always hardcodes the temporary library directory.
10601     hardcode_action=relink
10602   else
10603     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10604     hardcode_action=immediate
10605   fi
10606 else
10607   # We cannot hardcode anything, or else we can only hardcode existing
10608   # directories.
10609   hardcode_action=unsupported
10610 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10612 $as_echo "$hardcode_action" >&6; }
10613
10614 if test "$hardcode_action" = relink ||
10615    test "$inherit_rpath" = yes; then
10616   # Fast installation is not supported
10617   enable_fast_install=no
10618 elif test "$shlibpath_overrides_runpath" = yes ||
10619      test "$enable_shared" = no; then
10620   # Fast installation is not necessary
10621   enable_fast_install=needless
10622 fi
10623
10624
10625
10626
10627
10628
10629   if test "x$enable_dlopen" != xyes; then
10630   enable_dlopen=unknown
10631   enable_dlopen_self=unknown
10632   enable_dlopen_self_static=unknown
10633 else
10634   lt_cv_dlopen=no
10635   lt_cv_dlopen_libs=
10636
10637   case $host_os in
10638   beos*)
10639     lt_cv_dlopen="load_add_on"
10640     lt_cv_dlopen_libs=
10641     lt_cv_dlopen_self=yes
10642     ;;
10643
10644   mingw* | pw32* | cegcc*)
10645     lt_cv_dlopen="LoadLibrary"
10646     lt_cv_dlopen_libs=
10647     ;;
10648
10649   cygwin*)
10650     lt_cv_dlopen="dlopen"
10651     lt_cv_dlopen_libs=
10652     ;;
10653
10654   darwin*)
10655   # if libdl is installed we need to link against it
10656     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10658 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10659   $as_echo_n "(cached) " >&6
10660 else
10661   ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-ldl  $LIBS"
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h.  */
10665
10666 /* Override any GCC internal prototype to avoid an error.
10667    Use char because int might match the return type of a GCC
10668    builtin and then its argument prototype would still apply.  */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char dlopen ();
10673 int
10674 main ()
10675 {
10676 return dlopen ();
10677   ;
10678   return 0;
10679 }
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682   ac_cv_lib_dl_dlopen=yes
10683 else
10684   ac_cv_lib_dl_dlopen=no
10685 fi
10686 rm -f core conftest.err conftest.$ac_objext \
10687     conftest$ac_exeext conftest.$ac_ext
10688 LIBS=$ac_check_lib_save_LIBS
10689 fi
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10692 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10693   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10694 else
10695
10696     lt_cv_dlopen="dyld"
10697     lt_cv_dlopen_libs=
10698     lt_cv_dlopen_self=yes
10699
10700 fi
10701
10702     ;;
10703
10704   *)
10705     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10706 if test "x$ac_cv_func_shl_load" = x""yes; then :
10707   lt_cv_dlopen="shl_load"
10708 else
10709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10710 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10711 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10712   $as_echo_n "(cached) " >&6
10713 else
10714   ac_check_lib_save_LIBS=$LIBS
10715 LIBS="-ldld  $LIBS"
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h.  */
10718
10719 /* Override any GCC internal prototype to avoid an error.
10720    Use char because int might match the return type of a GCC
10721    builtin and then its argument prototype would still apply.  */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char shl_load ();
10726 int
10727 main ()
10728 {
10729 return shl_load ();
10730   ;
10731   return 0;
10732 }
10733 _ACEOF
10734 if ac_fn_c_try_link "$LINENO"; then :
10735   ac_cv_lib_dld_shl_load=yes
10736 else
10737   ac_cv_lib_dld_shl_load=no
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext \
10740     conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10742 fi
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10744 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10745 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10746   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10747 else
10748   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10749 if test "x$ac_cv_func_dlopen" = x""yes; then :
10750   lt_cv_dlopen="dlopen"
10751 else
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10753 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   ac_check_lib_save_LIBS=$LIBS
10758 LIBS="-ldl  $LIBS"
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h.  */
10761
10762 /* Override any GCC internal prototype to avoid an error.
10763    Use char because int might match the return type of a GCC
10764    builtin and then its argument prototype would still apply.  */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 char dlopen ();
10769 int
10770 main ()
10771 {
10772 return dlopen ();
10773   ;
10774   return 0;
10775 }
10776 _ACEOF
10777 if ac_fn_c_try_link "$LINENO"; then :
10778   ac_cv_lib_dl_dlopen=yes
10779 else
10780   ac_cv_lib_dl_dlopen=no
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext \
10783     conftest$ac_exeext conftest.$ac_ext
10784 LIBS=$ac_check_lib_save_LIBS
10785 fi
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10787 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10788 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10789   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10790 else
10791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10792 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10793 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10794   $as_echo_n "(cached) " >&6
10795 else
10796   ac_check_lib_save_LIBS=$LIBS
10797 LIBS="-lsvld  $LIBS"
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h.  */
10800
10801 /* Override any GCC internal prototype to avoid an error.
10802    Use char because int might match the return type of a GCC
10803    builtin and then its argument prototype would still apply.  */
10804 #ifdef __cplusplus
10805 extern "C"
10806 #endif
10807 char dlopen ();
10808 int
10809 main ()
10810 {
10811 return dlopen ();
10812   ;
10813   return 0;
10814 }
10815 _ACEOF
10816 if ac_fn_c_try_link "$LINENO"; then :
10817   ac_cv_lib_svld_dlopen=yes
10818 else
10819   ac_cv_lib_svld_dlopen=no
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext \
10822     conftest$ac_exeext conftest.$ac_ext
10823 LIBS=$ac_check_lib_save_LIBS
10824 fi
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10826 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10827 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10828   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10829 else
10830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10831 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10832 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10833   $as_echo_n "(cached) " >&6
10834 else
10835   ac_check_lib_save_LIBS=$LIBS
10836 LIBS="-ldld  $LIBS"
10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10838 /* end confdefs.h.  */
10839
10840 /* Override any GCC internal prototype to avoid an error.
10841    Use char because int might match the return type of a GCC
10842    builtin and then its argument prototype would still apply.  */
10843 #ifdef __cplusplus
10844 extern "C"
10845 #endif
10846 char dld_link ();
10847 int
10848 main ()
10849 {
10850 return dld_link ();
10851   ;
10852   return 0;
10853 }
10854 _ACEOF
10855 if ac_fn_c_try_link "$LINENO"; then :
10856   ac_cv_lib_dld_dld_link=yes
10857 else
10858   ac_cv_lib_dld_dld_link=no
10859 fi
10860 rm -f core conftest.err conftest.$ac_objext \
10861     conftest$ac_exeext conftest.$ac_ext
10862 LIBS=$ac_check_lib_save_LIBS
10863 fi
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10865 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10866 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10867   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10868 fi
10869
10870
10871 fi
10872
10873
10874 fi
10875
10876
10877 fi
10878
10879
10880 fi
10881
10882
10883 fi
10884
10885     ;;
10886   esac
10887
10888   if test "x$lt_cv_dlopen" != xno; then
10889     enable_dlopen=yes
10890   else
10891     enable_dlopen=no
10892   fi
10893
10894   case $lt_cv_dlopen in
10895   dlopen)
10896     save_CPPFLAGS="$CPPFLAGS"
10897     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10898
10899     save_LDFLAGS="$LDFLAGS"
10900     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10901
10902     save_LIBS="$LIBS"
10903     LIBS="$lt_cv_dlopen_libs $LIBS"
10904
10905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10906 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10907 if test "${lt_cv_dlopen_self+set}" = set; then :
10908   $as_echo_n "(cached) " >&6
10909 else
10910           if test "$cross_compiling" = yes; then :
10911   lt_cv_dlopen_self=cross
10912 else
10913   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10914   lt_status=$lt_dlunknown
10915   cat > conftest.$ac_ext <<_LT_EOF
10916 #line 10916 "configure"
10917 #include "confdefs.h"
10918
10919 #if HAVE_DLFCN_H
10920 #include <dlfcn.h>
10921 #endif
10922
10923 #include <stdio.h>
10924
10925 #ifdef RTLD_GLOBAL
10926 #  define LT_DLGLOBAL           RTLD_GLOBAL
10927 #else
10928 #  ifdef DL_GLOBAL
10929 #    define LT_DLGLOBAL         DL_GLOBAL
10930 #  else
10931 #    define LT_DLGLOBAL         0
10932 #  endif
10933 #endif
10934
10935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10936    find out it does not work in some platform. */
10937 #ifndef LT_DLLAZY_OR_NOW
10938 #  ifdef RTLD_LAZY
10939 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10940 #  else
10941 #    ifdef DL_LAZY
10942 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10943 #    else
10944 #      ifdef RTLD_NOW
10945 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10946 #      else
10947 #        ifdef DL_NOW
10948 #          define LT_DLLAZY_OR_NOW      DL_NOW
10949 #        else
10950 #          define LT_DLLAZY_OR_NOW      0
10951 #        endif
10952 #      endif
10953 #    endif
10954 #  endif
10955 #endif
10956
10957 /* When -fvisbility=hidden is used, assume the code has been annotated
10958    correspondingly for the symbols needed.  */
10959 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10960 void fnord () __attribute__((visibility("default")));
10961 #endif
10962
10963 void fnord () { int i=42; }
10964 int main ()
10965 {
10966   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10967   int status = $lt_dlunknown;
10968
10969   if (self)
10970     {
10971       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10972       else
10973         {
10974           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10975           else puts (dlerror ());
10976         }
10977       /* dlclose (self); */
10978     }
10979   else
10980     puts (dlerror ());
10981
10982   return status;
10983 }
10984 _LT_EOF
10985   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10986   (eval $ac_link) 2>&5
10987   ac_status=$?
10988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10990     (./conftest; exit; ) >&5 2>/dev/null
10991     lt_status=$?
10992     case x$lt_status in
10993       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10994       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10995       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10996     esac
10997   else :
10998     # compilation failed
10999     lt_cv_dlopen_self=no
11000   fi
11001 fi
11002 rm -fr conftest*
11003
11004
11005 fi
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11007 $as_echo "$lt_cv_dlopen_self" >&6; }
11008
11009     if test "x$lt_cv_dlopen_self" = xyes; then
11010       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11011       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11012 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11013 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11014   $as_echo_n "(cached) " >&6
11015 else
11016           if test "$cross_compiling" = yes; then :
11017   lt_cv_dlopen_self_static=cross
11018 else
11019   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11020   lt_status=$lt_dlunknown
11021   cat > conftest.$ac_ext <<_LT_EOF
11022 #line 11022 "configure"
11023 #include "confdefs.h"
11024
11025 #if HAVE_DLFCN_H
11026 #include <dlfcn.h>
11027 #endif
11028
11029 #include <stdio.h>
11030
11031 #ifdef RTLD_GLOBAL
11032 #  define LT_DLGLOBAL           RTLD_GLOBAL
11033 #else
11034 #  ifdef DL_GLOBAL
11035 #    define LT_DLGLOBAL         DL_GLOBAL
11036 #  else
11037 #    define LT_DLGLOBAL         0
11038 #  endif
11039 #endif
11040
11041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11042    find out it does not work in some platform. */
11043 #ifndef LT_DLLAZY_OR_NOW
11044 #  ifdef RTLD_LAZY
11045 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11046 #  else
11047 #    ifdef DL_LAZY
11048 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11049 #    else
11050 #      ifdef RTLD_NOW
11051 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11052 #      else
11053 #        ifdef DL_NOW
11054 #          define LT_DLLAZY_OR_NOW      DL_NOW
11055 #        else
11056 #          define LT_DLLAZY_OR_NOW      0
11057 #        endif
11058 #      endif
11059 #    endif
11060 #  endif
11061 #endif
11062
11063 /* When -fvisbility=hidden is used, assume the code has been annotated
11064    correspondingly for the symbols needed.  */
11065 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11066 void fnord () __attribute__((visibility("default")));
11067 #endif
11068
11069 void fnord () { int i=42; }
11070 int main ()
11071 {
11072   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11073   int status = $lt_dlunknown;
11074
11075   if (self)
11076     {
11077       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11078       else
11079         {
11080           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11081           else puts (dlerror ());
11082         }
11083       /* dlclose (self); */
11084     }
11085   else
11086     puts (dlerror ());
11087
11088   return status;
11089 }
11090 _LT_EOF
11091   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11092   (eval $ac_link) 2>&5
11093   ac_status=$?
11094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11095   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11096     (./conftest; exit; ) >&5 2>/dev/null
11097     lt_status=$?
11098     case x$lt_status in
11099       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11100       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11101       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11102     esac
11103   else :
11104     # compilation failed
11105     lt_cv_dlopen_self_static=no
11106   fi
11107 fi
11108 rm -fr conftest*
11109
11110
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11113 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11114     fi
11115
11116     CPPFLAGS="$save_CPPFLAGS"
11117     LDFLAGS="$save_LDFLAGS"
11118     LIBS="$save_LIBS"
11119     ;;
11120   esac
11121
11122   case $lt_cv_dlopen_self in
11123   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11124   *) enable_dlopen_self=unknown ;;
11125   esac
11126
11127   case $lt_cv_dlopen_self_static in
11128   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11129   *) enable_dlopen_self_static=unknown ;;
11130   esac
11131 fi
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149 striplib=
11150 old_striplib=
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11152 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11153 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11154   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11155   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11157 $as_echo "yes" >&6; }
11158 else
11159 # FIXME - insert some real tests, host_os isn't really good enough
11160   case $host_os in
11161   darwin*)
11162     if test -n "$STRIP" ; then
11163       striplib="$STRIP -x"
11164       old_striplib="$STRIP -S"
11165       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11166 $as_echo "yes" >&6; }
11167     else
11168       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170     fi
11171     ;;
11172   *)
11173     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11175     ;;
11176   esac
11177 fi
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190   # Report which library types will actually be built
11191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11192 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11194 $as_echo "$can_build_shared" >&6; }
11195
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11197 $as_echo_n "checking whether to build shared libraries... " >&6; }
11198   test "$can_build_shared" = "no" && enable_shared=no
11199
11200   # On AIX, shared libraries and static libraries use the same namespace, and
11201   # are all built from PIC.
11202   case $host_os in
11203   aix3*)
11204     test "$enable_shared" = yes && enable_static=no
11205     if test -n "$RANLIB"; then
11206       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11207       postinstall_cmds='$RANLIB $lib'
11208     fi
11209     ;;
11210
11211   aix[4-9]*)
11212     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11213       test "$enable_shared" = yes && enable_static=no
11214     fi
11215     ;;
11216   esac
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11218 $as_echo "$enable_shared" >&6; }
11219
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11221 $as_echo_n "checking whether to build static libraries... " >&6; }
11222   # Make sure either enable_shared or enable_static is yes.
11223   test "$enable_shared" = yes || enable_static=yes
11224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11225 $as_echo "$enable_static" >&6; }
11226
11227
11228
11229
11230 fi
11231 ac_ext=c
11232 ac_cpp='$CPP $CPPFLAGS'
11233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11236
11237 CC="$lt_save_CC"
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251 # Source file extension for Go test sources.
11252 ac_ext=go
11253
11254 # Object file extension for compiled Go test sources.
11255 objext=o
11256 objext_GO=$objext
11257
11258 # Code to be used in simple compile tests
11259 lt_simple_compile_test_code="package main; func main() { }"
11260
11261 # Code to be used in simple link tests
11262 lt_simple_link_test_code='package main; func main() { }'
11263
11264 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11265
11266
11267
11268
11269
11270
11271 # If no C compiler was specified, use CC.
11272 LTCC=${LTCC-"$CC"}
11273
11274 # If no C compiler flags were specified, use CFLAGS.
11275 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11276
11277 # Allow CC to be a program name with arguments.
11278 compiler=$CC
11279
11280
11281 # save warnings/boilerplate of simple test code
11282 ac_outfile=conftest.$ac_objext
11283 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11284 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11285 _lt_compiler_boilerplate=`cat conftest.err`
11286 $RM conftest*
11287
11288 ac_outfile=conftest.$ac_objext
11289 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11290 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11291 _lt_linker_boilerplate=`cat conftest.err`
11292 $RM -r conftest*
11293
11294
11295 # Allow CC to be a program name with arguments.
11296 lt_save_CC="$CC"
11297 lt_save_GCC="$GCC"
11298 GCC=yes
11299 CC=${GOC-"gccgo"}
11300 compiler=$CC
11301 compiler_GO=$CC
11302 LD_GO="$LD"
11303 for cc_temp in $compiler""; do
11304   case $cc_temp in
11305     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11306     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11307     \-*) ;;
11308     *) break;;
11309   esac
11310 done
11311 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11312
11313
11314 # Go did not exist at the time GCC didn't implicitly link libc in.
11315 archive_cmds_need_lc_GO=no
11316
11317 old_archive_cmds_GO=$old_archive_cmds
11318
11319 ## CAVEAT EMPTOR:
11320 ## There is no encapsulation within the following macros, do not change
11321 ## the running order or otherwise move them around unless you know exactly
11322 ## what you are doing...
11323 if test -n "$compiler"; then
11324
11325 lt_prog_compiler_no_builtin_flag_GO=
11326
11327 if test "$GCC" = yes; then
11328   case $cc_basename in
11329   nvcc*)
11330     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11331   *)
11332     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11333   esac
11334
11335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11336 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11337 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11338   $as_echo_n "(cached) " >&6
11339 else
11340   lt_cv_prog_compiler_rtti_exceptions=no
11341    ac_outfile=conftest.$ac_objext
11342    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11343    lt_compiler_flag="-fno-rtti -fno-exceptions"
11344    # Insert the option either (1) after the last *FLAGS variable, or
11345    # (2) before a word containing "conftest.", or (3) at the end.
11346    # Note that $ac_compile itself does not contain backslashes and begins
11347    # with a dollar sign (not a hyphen), so the echo should work correctly.
11348    # The option is referenced via a variable to avoid confusing sed.
11349    lt_compile=`echo "$ac_compile" | $SED \
11350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11352    -e 's:$: $lt_compiler_flag:'`
11353    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11354    (eval "$lt_compile" 2>conftest.err)
11355    ac_status=$?
11356    cat conftest.err >&5
11357    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358    if (exit $ac_status) && test -s "$ac_outfile"; then
11359      # The compiler can only warn and ignore the option if not recognized
11360      # So say no if there are warnings other than the usual output.
11361      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11362      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11363      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11364        lt_cv_prog_compiler_rtti_exceptions=yes
11365      fi
11366    fi
11367    $RM conftest*
11368
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11371 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11372
11373 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11374     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11375 else
11376     :
11377 fi
11378
11379 fi
11380
11381
11382
11383   lt_prog_compiler_wl_GO=
11384 lt_prog_compiler_pic_GO=
11385 lt_prog_compiler_static_GO=
11386
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11388 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11389
11390   if test "$GCC" = yes; then
11391     lt_prog_compiler_wl_GO='-Wl,'
11392     lt_prog_compiler_static_GO='-static'
11393
11394     case $host_os in
11395       aix*)
11396       # All AIX code is PIC.
11397       if test "$host_cpu" = ia64; then
11398         # AIX 5 now supports IA64 processor
11399         lt_prog_compiler_static_GO='-Bstatic'
11400       fi
11401       ;;
11402
11403     amigaos*)
11404       case $host_cpu in
11405       powerpc)
11406             # see comment about AmigaOS4 .so support
11407             lt_prog_compiler_pic_GO='-fPIC'
11408         ;;
11409       m68k)
11410             # FIXME: we need at least 68020 code to build shared libraries, but
11411             # adding the `-m68020' flag to GCC prevents building anything better,
11412             # like `-m68040'.
11413             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11414         ;;
11415       esac
11416       ;;
11417
11418     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11419       # PIC is the default for these OSes.
11420       ;;
11421
11422     mingw* | cygwin* | pw32* | os2* | cegcc*)
11423       # This hack is so that the source file can tell whether it is being
11424       # built for inclusion in a dll (and should export symbols for example).
11425       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11426       # (--disable-auto-import) libraries
11427       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11428       ;;
11429
11430     darwin* | rhapsody*)
11431       # PIC is the default on this platform
11432       # Common symbols not allowed in MH_DYLIB files
11433       lt_prog_compiler_pic_GO='-fno-common'
11434       ;;
11435
11436     haiku*)
11437       # PIC is the default for Haiku.
11438       # The "-static" flag exists, but is broken.
11439       lt_prog_compiler_static_GO=
11440       ;;
11441
11442     hpux*)
11443       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11444       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11445       # sets the default TLS model and affects inlining.
11446       case $host_cpu in
11447       hppa*64*)
11448         # +Z the default
11449         ;;
11450       *)
11451         lt_prog_compiler_pic_GO='-fPIC'
11452         ;;
11453       esac
11454       ;;
11455
11456     interix[3-9]*)
11457       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11458       # Instead, we relocate shared libraries at runtime.
11459       ;;
11460
11461     msdosdjgpp*)
11462       # Just because we use GCC doesn't mean we suddenly get shared libraries
11463       # on systems that don't support them.
11464       lt_prog_compiler_can_build_shared_GO=no
11465       enable_shared=no
11466       ;;
11467
11468     *nto* | *qnx*)
11469       # QNX uses GNU C++, but need to define -shared option too, otherwise
11470       # it will coredump.
11471       lt_prog_compiler_pic_GO='-fPIC -shared'
11472       ;;
11473
11474     sysv4*MP*)
11475       if test -d /usr/nec; then
11476         lt_prog_compiler_pic_GO=-Kconform_pic
11477       fi
11478       ;;
11479
11480     *)
11481       lt_prog_compiler_pic_GO='-fPIC'
11482       ;;
11483     esac
11484
11485     case $cc_basename in
11486     nvcc*) # Cuda Compiler Driver 2.2
11487       lt_prog_compiler_wl_GO='-Xlinker '
11488       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11489       ;;
11490     esac
11491   else
11492     # PORTME Check for flag to pass linker flags through the system compiler.
11493     case $host_os in
11494     aix*)
11495       lt_prog_compiler_wl_GO='-Wl,'
11496       if test "$host_cpu" = ia64; then
11497         # AIX 5 now supports IA64 processor
11498         lt_prog_compiler_static_GO='-Bstatic'
11499       else
11500         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11501       fi
11502       ;;
11503
11504     mingw* | cygwin* | pw32* | os2* | cegcc*)
11505       # This hack is so that the source file can tell whether it is being
11506       # built for inclusion in a dll (and should export symbols for example).
11507       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11508       ;;
11509
11510     hpux9* | hpux10* | hpux11*)
11511       lt_prog_compiler_wl_GO='-Wl,'
11512       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11513       # not for PA HP-UX.
11514       case $host_cpu in
11515       hppa*64*|ia64*)
11516         # +Z the default
11517         ;;
11518       *)
11519         lt_prog_compiler_pic_GO='+Z'
11520         ;;
11521       esac
11522       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11523       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11524       ;;
11525
11526     irix5* | irix6* | nonstopux*)
11527       lt_prog_compiler_wl_GO='-Wl,'
11528       # PIC (with -KPIC) is the default.
11529       lt_prog_compiler_static_GO='-non_shared'
11530       ;;
11531
11532     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11533       case $cc_basename in
11534       # old Intel for x86_64 which still supported -KPIC.
11535       ecc*)
11536         lt_prog_compiler_wl_GO='-Wl,'
11537         lt_prog_compiler_pic_GO='-KPIC'
11538         lt_prog_compiler_static_GO='-static'
11539         ;;
11540       # icc used to be incompatible with GCC.
11541       # ICC 10 doesn't accept -KPIC any more.
11542       icc* | ifort*)
11543         lt_prog_compiler_wl_GO='-Wl,'
11544         lt_prog_compiler_pic_GO='-fPIC'
11545         lt_prog_compiler_static_GO='-static'
11546         ;;
11547       # Lahey Fortran 8.1.
11548       lf95*)
11549         lt_prog_compiler_wl_GO='-Wl,'
11550         lt_prog_compiler_pic_GO='--shared'
11551         lt_prog_compiler_static_GO='--static'
11552         ;;
11553       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11554         # Portland Group compilers (*not* the Pentium gcc compiler,
11555         # which looks to be a dead project)
11556         lt_prog_compiler_wl_GO='-Wl,'
11557         lt_prog_compiler_pic_GO='-fpic'
11558         lt_prog_compiler_static_GO='-Bstatic'
11559         ;;
11560       ccc*)
11561         lt_prog_compiler_wl_GO='-Wl,'
11562         # All Alpha code is PIC.
11563         lt_prog_compiler_static_GO='-non_shared'
11564         ;;
11565       xl* | bgxl* | bgf* | mpixl*)
11566         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11567         lt_prog_compiler_wl_GO='-Wl,'
11568         lt_prog_compiler_pic_GO='-qpic'
11569         lt_prog_compiler_static_GO='-qstaticlink'
11570         ;;
11571       *)
11572         case `$CC -V 2>&1 | sed 5q` in
11573         *Sun\ F* | *Sun*Fortran*)
11574           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11575           lt_prog_compiler_pic_GO='-KPIC'
11576           lt_prog_compiler_static_GO='-Bstatic'
11577           lt_prog_compiler_wl_GO=''
11578           ;;
11579         *Sun\ C*)
11580           # Sun C 5.9
11581           lt_prog_compiler_pic_GO='-KPIC'
11582           lt_prog_compiler_static_GO='-Bstatic'
11583           lt_prog_compiler_wl_GO='-Wl,'
11584           ;;
11585         esac
11586         ;;
11587       esac
11588       ;;
11589
11590     newsos6)
11591       lt_prog_compiler_pic_GO='-KPIC'
11592       lt_prog_compiler_static_GO='-Bstatic'
11593       ;;
11594
11595     *nto* | *qnx*)
11596       # QNX uses GNU C++, but need to define -shared option too, otherwise
11597       # it will coredump.
11598       lt_prog_compiler_pic_GO='-fPIC -shared'
11599       ;;
11600
11601     osf3* | osf4* | osf5*)
11602       lt_prog_compiler_wl_GO='-Wl,'
11603       # All OSF/1 code is PIC.
11604       lt_prog_compiler_static_GO='-non_shared'
11605       ;;
11606
11607     rdos*)
11608       lt_prog_compiler_static_GO='-non_shared'
11609       ;;
11610
11611     solaris*)
11612       lt_prog_compiler_pic_GO='-KPIC'
11613       lt_prog_compiler_static_GO='-Bstatic'
11614       case $cc_basename in
11615       f77* | f90* | f95*)
11616         lt_prog_compiler_wl_GO='-Qoption ld ';;
11617       *)
11618         lt_prog_compiler_wl_GO='-Wl,';;
11619       esac
11620       ;;
11621
11622     sunos4*)
11623       lt_prog_compiler_wl_GO='-Qoption ld '
11624       lt_prog_compiler_pic_GO='-PIC'
11625       lt_prog_compiler_static_GO='-Bstatic'
11626       ;;
11627
11628     sysv4 | sysv4.2uw2* | sysv4.3*)
11629       lt_prog_compiler_wl_GO='-Wl,'
11630       lt_prog_compiler_pic_GO='-KPIC'
11631       lt_prog_compiler_static_GO='-Bstatic'
11632       ;;
11633
11634     sysv4*MP*)
11635       if test -d /usr/nec ;then
11636         lt_prog_compiler_pic_GO='-Kconform_pic'
11637         lt_prog_compiler_static_GO='-Bstatic'
11638       fi
11639       ;;
11640
11641     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11642       lt_prog_compiler_wl_GO='-Wl,'
11643       lt_prog_compiler_pic_GO='-KPIC'
11644       lt_prog_compiler_static_GO='-Bstatic'
11645       ;;
11646
11647     unicos*)
11648       lt_prog_compiler_wl_GO='-Wl,'
11649       lt_prog_compiler_can_build_shared_GO=no
11650       ;;
11651
11652     uts4*)
11653       lt_prog_compiler_pic_GO='-pic'
11654       lt_prog_compiler_static_GO='-Bstatic'
11655       ;;
11656
11657     *)
11658       lt_prog_compiler_can_build_shared_GO=no
11659       ;;
11660     esac
11661   fi
11662
11663 case $host_os in
11664   # For platforms which do not support PIC, -DPIC is meaningless:
11665   *djgpp*)
11666     lt_prog_compiler_pic_GO=
11667     ;;
11668   *)
11669     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11670     ;;
11671 esac
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11673 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11674
11675
11676
11677 #
11678 # Check to make sure the PIC flag actually works.
11679 #
11680 if test -n "$lt_prog_compiler_pic_GO"; then
11681   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11682 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11683 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11684   $as_echo_n "(cached) " >&6
11685 else
11686   lt_cv_prog_compiler_pic_works_GO=no
11687    ac_outfile=conftest.$ac_objext
11688    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11689    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11690    # Insert the option either (1) after the last *FLAGS variable, or
11691    # (2) before a word containing "conftest.", or (3) at the end.
11692    # Note that $ac_compile itself does not contain backslashes and begins
11693    # with a dollar sign (not a hyphen), so the echo should work correctly.
11694    # The option is referenced via a variable to avoid confusing sed.
11695    lt_compile=`echo "$ac_compile" | $SED \
11696    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11697    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11698    -e 's:$: $lt_compiler_flag:'`
11699    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11700    (eval "$lt_compile" 2>conftest.err)
11701    ac_status=$?
11702    cat conftest.err >&5
11703    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704    if (exit $ac_status) && test -s "$ac_outfile"; then
11705      # The compiler can only warn and ignore the option if not recognized
11706      # So say no if there are warnings other than the usual output.
11707      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11708      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11709      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11710        lt_cv_prog_compiler_pic_works_GO=yes
11711      fi
11712    fi
11713    $RM conftest*
11714
11715 fi
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11717 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11718
11719 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11720     case $lt_prog_compiler_pic_GO in
11721      "" | " "*) ;;
11722      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11723      esac
11724 else
11725     lt_prog_compiler_pic_GO=
11726      lt_prog_compiler_can_build_shared_GO=no
11727 fi
11728
11729 fi
11730
11731
11732
11733 #
11734 # Check to make sure the static flag actually works.
11735 #
11736 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11738 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11739 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11740   $as_echo_n "(cached) " >&6
11741 else
11742   lt_cv_prog_compiler_static_works_GO=no
11743    save_LDFLAGS="$LDFLAGS"
11744    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11745    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11746    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11747      # The linker can only warn and ignore the option if not recognized
11748      # So say no if there are warnings
11749      if test -s conftest.err; then
11750        # Append any errors to the config.log.
11751        cat conftest.err 1>&5
11752        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11753        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11754        if diff conftest.exp conftest.er2 >/dev/null; then
11755          lt_cv_prog_compiler_static_works_GO=yes
11756        fi
11757      else
11758        lt_cv_prog_compiler_static_works_GO=yes
11759      fi
11760    fi
11761    $RM -r conftest*
11762    LDFLAGS="$save_LDFLAGS"
11763
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11766 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11767
11768 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11769     :
11770 else
11771     lt_prog_compiler_static_GO=
11772 fi
11773
11774
11775
11776
11777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11778 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11779 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11780   $as_echo_n "(cached) " >&6
11781 else
11782   lt_cv_prog_compiler_c_o_GO=no
11783    $RM -r conftest 2>/dev/null
11784    mkdir conftest
11785    cd conftest
11786    mkdir out
11787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11788
11789    lt_compiler_flag="-o out/conftest2.$ac_objext"
11790    # Insert the option either (1) after the last *FLAGS variable, or
11791    # (2) before a word containing "conftest.", or (3) at the end.
11792    # Note that $ac_compile itself does not contain backslashes and begins
11793    # with a dollar sign (not a hyphen), so the echo should work correctly.
11794    lt_compile=`echo "$ac_compile" | $SED \
11795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11797    -e 's:$: $lt_compiler_flag:'`
11798    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11799    (eval "$lt_compile" 2>out/conftest.err)
11800    ac_status=$?
11801    cat out/conftest.err >&5
11802    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11804    then
11805      # The compiler can only warn and ignore the option if not recognized
11806      # So say no if there are warnings
11807      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11808      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11809      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11810        lt_cv_prog_compiler_c_o_GO=yes
11811      fi
11812    fi
11813    chmod u+w . 2>&5
11814    $RM conftest*
11815    # SGI C++ compiler will create directory out/ii_files/ for
11816    # template instantiation
11817    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11818    $RM out/* && rmdir out
11819    cd ..
11820    $RM -r conftest
11821    $RM conftest*
11822
11823 fi
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11825 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11826
11827
11828
11829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11830 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11831 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11832   $as_echo_n "(cached) " >&6
11833 else
11834   lt_cv_prog_compiler_c_o_GO=no
11835    $RM -r conftest 2>/dev/null
11836    mkdir conftest
11837    cd conftest
11838    mkdir out
11839    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11840
11841    lt_compiler_flag="-o out/conftest2.$ac_objext"
11842    # Insert the option either (1) after the last *FLAGS variable, or
11843    # (2) before a word containing "conftest.", or (3) at the end.
11844    # Note that $ac_compile itself does not contain backslashes and begins
11845    # with a dollar sign (not a hyphen), so the echo should work correctly.
11846    lt_compile=`echo "$ac_compile" | $SED \
11847    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11848    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11849    -e 's:$: $lt_compiler_flag:'`
11850    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11851    (eval "$lt_compile" 2>out/conftest.err)
11852    ac_status=$?
11853    cat out/conftest.err >&5
11854    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11856    then
11857      # The compiler can only warn and ignore the option if not recognized
11858      # So say no if there are warnings
11859      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11860      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11861      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11862        lt_cv_prog_compiler_c_o_GO=yes
11863      fi
11864    fi
11865    chmod u+w . 2>&5
11866    $RM conftest*
11867    # SGI C++ compiler will create directory out/ii_files/ for
11868    # template instantiation
11869    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11870    $RM out/* && rmdir out
11871    cd ..
11872    $RM -r conftest
11873    $RM conftest*
11874
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11877 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11878
11879
11880
11881
11882 hard_links="nottested"
11883 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11884   # do not overwrite the value of need_locks provided by the user
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11886 $as_echo_n "checking if we can lock with hard links... " >&6; }
11887   hard_links=yes
11888   $RM conftest*
11889   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11890   touch conftest.a
11891   ln conftest.a conftest.b 2>&5 || hard_links=no
11892   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11894 $as_echo "$hard_links" >&6; }
11895   if test "$hard_links" = no; then
11896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11897 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11898     need_locks=warn
11899   fi
11900 else
11901   need_locks=no
11902 fi
11903
11904
11905
11906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11907 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11908
11909   runpath_var=
11910   allow_undefined_flag_GO=
11911   always_export_symbols_GO=no
11912   archive_cmds_GO=
11913   archive_expsym_cmds_GO=
11914   compiler_needs_object_GO=no
11915   enable_shared_with_static_runtimes_GO=no
11916   export_dynamic_flag_spec_GO=
11917   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11918   hardcode_automatic_GO=no
11919   hardcode_direct_GO=no
11920   hardcode_direct_absolute_GO=no
11921   hardcode_libdir_flag_spec_GO=
11922   hardcode_libdir_flag_spec_ld_GO=
11923   hardcode_libdir_separator_GO=
11924   hardcode_minus_L_GO=no
11925   hardcode_shlibpath_var_GO=unsupported
11926   inherit_rpath_GO=no
11927   link_all_deplibs_GO=unknown
11928   module_cmds_GO=
11929   module_expsym_cmds_GO=
11930   old_archive_from_new_cmds_GO=
11931   old_archive_from_expsyms_cmds_GO=
11932   thread_safe_flag_spec_GO=
11933   whole_archive_flag_spec_GO=
11934   # include_expsyms should be a list of space-separated symbols to be *always*
11935   # included in the symbol list
11936   include_expsyms_GO=
11937   # exclude_expsyms can be an extended regexp of symbols to exclude
11938   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11939   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11940   # as well as any symbol that contains `d'.
11941   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11942   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11943   # platforms (ab)use it in PIC code, but their linkers get confused if
11944   # the symbol is explicitly referenced.  Since portable code cannot
11945   # rely on this symbol name, it's probably fine to never include it in
11946   # preloaded symbol tables.
11947   # Exclude shared library initialization/finalization symbols.
11948   extract_expsyms_cmds=
11949
11950   case $host_os in
11951   cygwin* | mingw* | pw32* | cegcc*)
11952     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11953     # When not using gcc, we currently assume that we are using
11954     # Microsoft Visual C++.
11955     if test "$GCC" != yes; then
11956       with_gnu_ld=no
11957     fi
11958     ;;
11959   interix*)
11960     # we just hope/assume this is gcc and not c89 (= MSVC++)
11961     with_gnu_ld=yes
11962     ;;
11963   openbsd*)
11964     with_gnu_ld=no
11965     ;;
11966   esac
11967
11968   ld_shlibs_GO=yes
11969
11970   # On some targets, GNU ld is compatible enough with the native linker
11971   # that we're better off using the native interface for both.
11972   lt_use_gnu_ld_interface=no
11973   if test "$with_gnu_ld" = yes; then
11974     case $host_os in
11975       aix*)
11976         # The AIX port of GNU ld has always aspired to compatibility
11977         # with the native linker.  However, as the warning in the GNU ld
11978         # block says, versions before 2.19.5* couldn't really create working
11979         # shared libraries, regardless of the interface used.
11980         case `$LD -v 2>&1` in
11981           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11982           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11983           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11984           *)
11985             lt_use_gnu_ld_interface=yes
11986             ;;
11987         esac
11988         ;;
11989       *)
11990         lt_use_gnu_ld_interface=yes
11991         ;;
11992     esac
11993   fi
11994
11995   if test "$lt_use_gnu_ld_interface" = yes; then
11996     # If archive_cmds runs LD, not CC, wlarc should be empty
11997     wlarc='${wl}'
11998
11999     # Set some defaults for GNU ld with shared library support. These
12000     # are reset later if shared libraries are not supported. Putting them
12001     # here allows them to be overridden if necessary.
12002     runpath_var=LD_RUN_PATH
12003     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12004     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12005     # ancient GNU ld didn't support --whole-archive et. al.
12006     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12007       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12008     else
12009       whole_archive_flag_spec_GO=
12010     fi
12011     supports_anon_versioning=no
12012     case `$LD -v 2>&1` in
12013       *GNU\ gold*) supports_anon_versioning=yes ;;
12014       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12015       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12016       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12017       *\ 2.11.*) ;; # other 2.11 versions
12018       *) supports_anon_versioning=yes ;;
12019     esac
12020
12021     # See if GNU ld supports shared libraries.
12022     case $host_os in
12023     aix[3-9]*)
12024       # On AIX/PPC, the GNU linker is very broken
12025       if test "$host_cpu" != ia64; then
12026         ld_shlibs_GO=no
12027         cat <<_LT_EOF 1>&2
12028
12029 *** Warning: the GNU linker, at least up to release 2.19, is reported
12030 *** to be unable to reliably create shared libraries on AIX.
12031 *** Therefore, libtool is disabling shared libraries support.  If you
12032 *** really care for shared libraries, you may want to install binutils
12033 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12034 *** You will then need to restart the configuration process.
12035
12036 _LT_EOF
12037       fi
12038       ;;
12039
12040     amigaos*)
12041       case $host_cpu in
12042       powerpc)
12043             # see comment about AmigaOS4 .so support
12044             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12045             archive_expsym_cmds_GO=''
12046         ;;
12047       m68k)
12048             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)'
12049             hardcode_libdir_flag_spec_GO='-L$libdir'
12050             hardcode_minus_L_GO=yes
12051         ;;
12052       esac
12053       ;;
12054
12055     beos*)
12056       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12057         allow_undefined_flag_GO=unsupported
12058         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12059         # support --undefined.  This deserves some investigation.  FIXME
12060         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12061       else
12062         ld_shlibs_GO=no
12063       fi
12064       ;;
12065
12066     cygwin* | mingw* | pw32* | cegcc*)
12067       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12068       # as there is no search path for DLLs.
12069       hardcode_libdir_flag_spec_GO='-L$libdir'
12070       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12071       allow_undefined_flag_GO=unsupported
12072       always_export_symbols_GO=no
12073       enable_shared_with_static_runtimes_GO=yes
12074       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12075
12076       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12077         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12078         # If the export-symbols file already is a .def file (1st line
12079         # is EXPORTS), use it as is; otherwise, prepend...
12080         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12081           cp $export_symbols $output_objdir/$soname.def;
12082         else
12083           echo EXPORTS > $output_objdir/$soname.def;
12084           cat $export_symbols >> $output_objdir/$soname.def;
12085         fi~
12086         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12087       else
12088         ld_shlibs_GO=no
12089       fi
12090       ;;
12091
12092     haiku*)
12093       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12094       link_all_deplibs_GO=yes
12095       ;;
12096
12097     interix[3-9]*)
12098       hardcode_direct_GO=no
12099       hardcode_shlibpath_var_GO=no
12100       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12101       export_dynamic_flag_spec_GO='${wl}-E'
12102       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12103       # Instead, shared libraries are loaded at an image base (0x10000000 by
12104       # default) and relocated if they conflict, which is a slow very memory
12105       # consuming and fragmenting process.  To avoid this, we pick a random,
12106       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12107       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12108       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'
12109       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'
12110       ;;
12111
12112     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12113       tmp_diet=no
12114       if test "$host_os" = linux-dietlibc; then
12115         case $cc_basename in
12116           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12117         esac
12118       fi
12119       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12120          && test "$tmp_diet" = no
12121       then
12122         tmp_addflag=
12123         tmp_sharedflag='-shared'
12124         case $cc_basename,$host_cpu in
12125         pgcc*)                          # Portland Group C compiler
12126           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'
12127           tmp_addflag=' $pic_flag'
12128           ;;
12129         pgf77* | pgf90* | pgf95* | pgfortran*)
12130                                         # Portland Group f77 and f90 compilers
12131           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'
12132           tmp_addflag=' $pic_flag -Mnomain' ;;
12133         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12134           tmp_addflag=' -i_dynamic' ;;
12135         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12136           tmp_addflag=' -i_dynamic -nofor_main' ;;
12137         ifc* | ifort*)                  # Intel Fortran compiler
12138           tmp_addflag=' -nofor_main' ;;
12139         lf95*)                          # Lahey Fortran 8.1
12140           whole_archive_flag_spec_GO=
12141           tmp_sharedflag='--shared' ;;
12142         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12143           tmp_sharedflag='-qmkshrobj'
12144           tmp_addflag= ;;
12145         nvcc*)  # Cuda Compiler Driver 2.2
12146           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'
12147           compiler_needs_object_GO=yes
12148           ;;
12149         esac
12150         case `$CC -V 2>&1 | sed 5q` in
12151         *Sun\ C*)                       # Sun C 5.9
12152           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'
12153           compiler_needs_object_GO=yes
12154           tmp_sharedflag='-G' ;;
12155         *Sun\ F*)                       # Sun Fortran 8.3
12156           tmp_sharedflag='-G' ;;
12157         esac
12158         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12159
12160         if test "x$supports_anon_versioning" = xyes; then
12161           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12162             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12163             echo "local: *; };" >> $output_objdir/$libname.ver~
12164             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12165         fi
12166
12167         case $cc_basename in
12168         xlf* | bgf* | bgxlf* | mpixlf*)
12169           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12170           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12171           hardcode_libdir_flag_spec_GO=
12172           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12173           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12174           if test "x$supports_anon_versioning" = xyes; then
12175             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12176               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12177               echo "local: *; };" >> $output_objdir/$libname.ver~
12178               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12179           fi
12180           ;;
12181         esac
12182       else
12183         ld_shlibs_GO=no
12184       fi
12185       ;;
12186
12187     netbsd*)
12188       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12189         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12190         wlarc=
12191       else
12192         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12193         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12194       fi
12195       ;;
12196
12197     solaris*)
12198       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12199         ld_shlibs_GO=no
12200         cat <<_LT_EOF 1>&2
12201
12202 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12203 *** create shared libraries on Solaris systems.  Therefore, libtool
12204 *** is disabling shared libraries support.  We urge you to upgrade GNU
12205 *** binutils to release 2.9.1 or newer.  Another option is to modify
12206 *** your PATH or compiler configuration so that the native linker is
12207 *** used, and then restart.
12208
12209 _LT_EOF
12210       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12211         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12212         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12213       else
12214         ld_shlibs_GO=no
12215       fi
12216       ;;
12217
12218     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12219       case `$LD -v 2>&1` in
12220         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12221         ld_shlibs_GO=no
12222         cat <<_LT_EOF 1>&2
12223
12224 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12225 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12226 *** is disabling shared libraries support.  We urge you to upgrade GNU
12227 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12228 *** your PATH or compiler configuration so that the native linker is
12229 *** used, and then restart.
12230
12231 _LT_EOF
12232         ;;
12233         *)
12234           # For security reasons, it is highly recommended that you always
12235           # use absolute paths for naming shared libraries, and exclude the
12236           # DT_RUNPATH tag from executables and libraries.  But doing so
12237           # requires that you compile everything twice, which is a pain.
12238           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12239             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12240             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12241             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12242           else
12243             ld_shlibs_GO=no
12244           fi
12245         ;;
12246       esac
12247       ;;
12248
12249     sunos4*)
12250       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12251       wlarc=
12252       hardcode_direct_GO=yes
12253       hardcode_shlibpath_var_GO=no
12254       ;;
12255
12256     *)
12257       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12258         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12259         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12260       else
12261         ld_shlibs_GO=no
12262       fi
12263       ;;
12264     esac
12265
12266     if test "$ld_shlibs_GO" = no; then
12267       runpath_var=
12268       hardcode_libdir_flag_spec_GO=
12269       export_dynamic_flag_spec_GO=
12270       whole_archive_flag_spec_GO=
12271     fi
12272   else
12273     # PORTME fill in a description of your system's linker (not GNU ld)
12274     case $host_os in
12275     aix3*)
12276       allow_undefined_flag_GO=unsupported
12277       always_export_symbols_GO=yes
12278       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'
12279       # Note: this linker hardcodes the directories in LIBPATH if there
12280       # are no directories specified by -L.
12281       hardcode_minus_L_GO=yes
12282       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12283         # Neither direct hardcoding nor static linking is supported with a
12284         # broken collect2.
12285         hardcode_direct_GO=unsupported
12286       fi
12287       ;;
12288
12289     aix[4-9]*)
12290       if test "$host_cpu" = ia64; then
12291         # On IA64, the linker does run time linking by default, so we don't
12292         # have to do anything special.
12293         aix_use_runtimelinking=no
12294         exp_sym_flag='-Bexport'
12295         no_entry_flag=""
12296       else
12297         # If we're using GNU nm, then we don't want the "-C" option.
12298         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12299         # Also, AIX nm treats weak defined symbols like other global
12300         # defined symbols, whereas GNU nm marks them as "W".
12301         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12302           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'
12303         else
12304           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'
12305         fi
12306         aix_use_runtimelinking=no
12307
12308         # Test if we are trying to use run time linking or normal
12309         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12310         # need to do runtime linking.
12311         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12312           for ld_flag in $LDFLAGS; do
12313           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12314             aix_use_runtimelinking=yes
12315             break
12316           fi
12317           done
12318           ;;
12319         esac
12320
12321         exp_sym_flag='-bexport'
12322         no_entry_flag='-bnoentry'
12323       fi
12324
12325       # When large executables or shared objects are built, AIX ld can
12326       # have problems creating the table of contents.  If linking a library
12327       # or program results in "error TOC overflow" add -mminimal-toc to
12328       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12329       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12330
12331       archive_cmds_GO=''
12332       hardcode_direct_GO=yes
12333       hardcode_direct_absolute_GO=yes
12334       hardcode_libdir_separator_GO=':'
12335       link_all_deplibs_GO=yes
12336       file_list_spec_GO='${wl}-f,'
12337
12338       if test "$GCC" = yes; then
12339         case $host_os in aix4.[012]|aix4.[012].*)
12340         # We only want to do this on AIX 4.2 and lower, the check
12341         # below for broken collect2 doesn't work under 4.3+
12342           collect2name=`${CC} -print-prog-name=collect2`
12343           if test -f "$collect2name" &&
12344            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12345           then
12346           # We have reworked collect2
12347           :
12348           else
12349           # We have old collect2
12350           hardcode_direct_GO=unsupported
12351           # It fails to find uninstalled libraries when the uninstalled
12352           # path is not listed in the libpath.  Setting hardcode_minus_L
12353           # to unsupported forces relinking
12354           hardcode_minus_L_GO=yes
12355           hardcode_libdir_flag_spec_GO='-L$libdir'
12356           hardcode_libdir_separator_GO=
12357           fi
12358           ;;
12359         esac
12360         shared_flag='-shared'
12361         if test "$aix_use_runtimelinking" = yes; then
12362           shared_flag="$shared_flag "'${wl}-G'
12363         fi
12364       else
12365         # not using gcc
12366         if test "$host_cpu" = ia64; then
12367         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12368         # chokes on -Wl,-G. The following line is correct:
12369           shared_flag='-G'
12370         else
12371           if test "$aix_use_runtimelinking" = yes; then
12372             shared_flag='${wl}-G'
12373           else
12374             shared_flag='${wl}-bM:SRE'
12375           fi
12376         fi
12377       fi
12378
12379       export_dynamic_flag_spec_GO='${wl}-bexpall'
12380       # It seems that -bexpall does not export symbols beginning with
12381       # underscore (_), so it is better to generate a list of symbols to export.
12382       always_export_symbols_GO=yes
12383       if test "$aix_use_runtimelinking" = yes; then
12384         # Warning - without using the other runtime loading flags (-brtl),
12385         # -berok will link without error, but may produce a broken library.
12386         allow_undefined_flag_GO='-berok'
12387         # Determine the default libpath from the value encoded in an
12388         # empty executable.
12389         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h.  */
12391
12392 int
12393 main ()
12394 {
12395
12396   ;
12397   return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_c_try_link "$LINENO"; then :
12401
12402 lt_aix_libpath_sed='
12403     /Import File Strings/,/^$/ {
12404         /^0/ {
12405             s/^0  *\(.*\)$/\1/
12406             p
12407         }
12408     }'
12409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12410 # Check for a 64-bit object if we didn't find anything.
12411 if test -z "$aix_libpath"; then
12412   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12413 fi
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext \
12416     conftest$ac_exeext conftest.$ac_ext
12417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12418
12419         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12420         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"
12421       else
12422         if test "$host_cpu" = ia64; then
12423           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12424           allow_undefined_flag_GO="-z nodefs"
12425           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"
12426         else
12427          # Determine the default libpath from the value encoded in an
12428          # empty executable.
12429          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12430 /* end confdefs.h.  */
12431
12432 int
12433 main ()
12434 {
12435
12436   ;
12437   return 0;
12438 }
12439 _ACEOF
12440 if ac_fn_c_try_link "$LINENO"; then :
12441
12442 lt_aix_libpath_sed='
12443     /Import File Strings/,/^$/ {
12444         /^0/ {
12445             s/^0  *\(.*\)$/\1/
12446             p
12447         }
12448     }'
12449 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12450 # Check for a 64-bit object if we didn't find anything.
12451 if test -z "$aix_libpath"; then
12452   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12453 fi
12454 fi
12455 rm -f core conftest.err conftest.$ac_objext \
12456     conftest$ac_exeext conftest.$ac_ext
12457 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12458
12459          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12460           # Warning - without using the other run time loading flags,
12461           # -berok will link without error, but may produce a broken library.
12462           no_undefined_flag_GO=' ${wl}-bernotok'
12463           allow_undefined_flag_GO=' ${wl}-berok'
12464           if test "$with_gnu_ld" = yes; then
12465             # We only use this code for GNU lds that support --whole-archive.
12466             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12467           else
12468             # Exported symbols can be pulled into shared objects from archives
12469             whole_archive_flag_spec_GO='$convenience'
12470           fi
12471           archive_cmds_need_lc_GO=yes
12472           # This is similar to how AIX traditionally builds its shared libraries.
12473           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'
12474         fi
12475       fi
12476       ;;
12477
12478     amigaos*)
12479       case $host_cpu in
12480       powerpc)
12481             # see comment about AmigaOS4 .so support
12482             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12483             archive_expsym_cmds_GO=''
12484         ;;
12485       m68k)
12486             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)'
12487             hardcode_libdir_flag_spec_GO='-L$libdir'
12488             hardcode_minus_L_GO=yes
12489         ;;
12490       esac
12491       ;;
12492
12493     bsdi[45]*)
12494       export_dynamic_flag_spec_GO=-rdynamic
12495       ;;
12496
12497     cygwin* | mingw* | pw32* | cegcc*)
12498       # When not using gcc, we currently assume that we are using
12499       # Microsoft Visual C++.
12500       # hardcode_libdir_flag_spec is actually meaningless, as there is
12501       # no search path for DLLs.
12502       hardcode_libdir_flag_spec_GO=' '
12503       allow_undefined_flag_GO=unsupported
12504       # Tell ltmain to make .lib files, not .a files.
12505       libext=lib
12506       # Tell ltmain to make .dll files, not .so files.
12507       shrext_cmds=".dll"
12508       # FIXME: Setting linknames here is a bad hack.
12509       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12510       # The linker will automatically build a .lib file if we build a DLL.
12511       old_archive_from_new_cmds_GO='true'
12512       # FIXME: Should let the user specify the lib program.
12513       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12514       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12515       enable_shared_with_static_runtimes_GO=yes
12516       ;;
12517
12518     darwin* | rhapsody*)
12519
12520
12521   archive_cmds_need_lc_GO=no
12522   hardcode_direct_GO=no
12523   hardcode_automatic_GO=yes
12524   hardcode_shlibpath_var_GO=unsupported
12525   if test "$lt_cv_ld_force_load" = "yes"; then
12526     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\"`'
12527   else
12528     whole_archive_flag_spec_GO=''
12529   fi
12530   link_all_deplibs_GO=yes
12531   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12532   case $cc_basename in
12533      ifort*) _lt_dar_can_shared=yes ;;
12534      *) _lt_dar_can_shared=$GCC ;;
12535   esac
12536   if test "$_lt_dar_can_shared" = "yes"; then
12537     output_verbose_link_cmd=func_echo_all
12538     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}"
12539     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12540     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}"
12541     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}"
12542
12543   else
12544   ld_shlibs_GO=no
12545   fi
12546
12547       ;;
12548
12549     dgux*)
12550       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12551       hardcode_libdir_flag_spec_GO='-L$libdir'
12552       hardcode_shlibpath_var_GO=no
12553       ;;
12554
12555     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12556     # support.  Future versions do this automatically, but an explicit c++rt0.o
12557     # does not break anything, and helps significantly (at the cost of a little
12558     # extra space).
12559     freebsd2.2*)
12560       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12561       hardcode_libdir_flag_spec_GO='-R$libdir'
12562       hardcode_direct_GO=yes
12563       hardcode_shlibpath_var_GO=no
12564       ;;
12565
12566     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12567     freebsd2*)
12568       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12569       hardcode_direct_GO=yes
12570       hardcode_minus_L_GO=yes
12571       hardcode_shlibpath_var_GO=no
12572       ;;
12573
12574     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12575     freebsd* | dragonfly*)
12576       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12577       hardcode_libdir_flag_spec_GO='-R$libdir'
12578       hardcode_direct_GO=yes
12579       hardcode_shlibpath_var_GO=no
12580       ;;
12581
12582     hpux9*)
12583       if test "$GCC" = yes; then
12584         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'
12585       else
12586         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'
12587       fi
12588       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12589       hardcode_libdir_separator_GO=:
12590       hardcode_direct_GO=yes
12591
12592       # hardcode_minus_L: Not really in the search PATH,
12593       # but as the default location of the library.
12594       hardcode_minus_L_GO=yes
12595       export_dynamic_flag_spec_GO='${wl}-E'
12596       ;;
12597
12598     hpux10*)
12599       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12600         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12601       else
12602         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12603       fi
12604       if test "$with_gnu_ld" = no; then
12605         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12606         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12607         hardcode_libdir_separator_GO=:
12608         hardcode_direct_GO=yes
12609         hardcode_direct_absolute_GO=yes
12610         export_dynamic_flag_spec_GO='${wl}-E'
12611         # hardcode_minus_L: Not really in the search PATH,
12612         # but as the default location of the library.
12613         hardcode_minus_L_GO=yes
12614       fi
12615       ;;
12616
12617     hpux11*)
12618       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12619         case $host_cpu in
12620         hppa*64*)
12621           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12622           ;;
12623         ia64*)
12624           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12625           ;;
12626         *)
12627           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12628           ;;
12629         esac
12630       else
12631         case $host_cpu in
12632         hppa*64*)
12633           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12634           ;;
12635         ia64*)
12636           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12637           ;;
12638         *)
12639         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12640           ;;
12641         esac
12642       fi
12643       if test "$with_gnu_ld" = no; then
12644         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12645         hardcode_libdir_separator_GO=:
12646
12647         case $host_cpu in
12648         hppa*64*|ia64*)
12649           hardcode_direct_GO=no
12650           hardcode_shlibpath_var_GO=no
12651           ;;
12652         *)
12653           hardcode_direct_GO=yes
12654           hardcode_direct_absolute_GO=yes
12655           export_dynamic_flag_spec_GO='${wl}-E'
12656
12657           # hardcode_minus_L: Not really in the search PATH,
12658           # but as the default location of the library.
12659           hardcode_minus_L_GO=yes
12660           ;;
12661         esac
12662       fi
12663       ;;
12664
12665     irix5* | irix6* | nonstopux*)
12666       if test "$GCC" = yes; then
12667         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'
12668         # Try to use the -exported_symbol ld option, if it does not
12669         # work, assume that -exports_file does not work either and
12670         # implicitly export all symbols.
12671         save_LDFLAGS="$LDFLAGS"
12672         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12673         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674 /* end confdefs.h.  */
12675 int foo(void) {}
12676 _ACEOF
12677 if ac_fn_c_try_link "$LINENO"; then :
12678   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'
12679
12680 fi
12681 rm -f core conftest.err conftest.$ac_objext \
12682     conftest$ac_exeext conftest.$ac_ext
12683         LDFLAGS="$save_LDFLAGS"
12684       else
12685         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'
12686         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'
12687       fi
12688       archive_cmds_need_lc_GO='no'
12689       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12690       hardcode_libdir_separator_GO=:
12691       inherit_rpath_GO=yes
12692       link_all_deplibs_GO=yes
12693       ;;
12694
12695     netbsd*)
12696       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12697         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12698       else
12699         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12700       fi
12701       hardcode_libdir_flag_spec_GO='-R$libdir'
12702       hardcode_direct_GO=yes
12703       hardcode_shlibpath_var_GO=no
12704       ;;
12705
12706     newsos6)
12707       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12708       hardcode_direct_GO=yes
12709       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12710       hardcode_libdir_separator_GO=:
12711       hardcode_shlibpath_var_GO=no
12712       ;;
12713
12714     *nto* | *qnx*)
12715       ;;
12716
12717     openbsd*)
12718       if test -f /usr/libexec/ld.so; then
12719         hardcode_direct_GO=yes
12720         hardcode_shlibpath_var_GO=no
12721         hardcode_direct_absolute_GO=yes
12722         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12723           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12724           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12725           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12726           export_dynamic_flag_spec_GO='${wl}-E'
12727         else
12728           case $host_os in
12729            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12730              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12731              hardcode_libdir_flag_spec_GO='-R$libdir'
12732              ;;
12733            *)
12734              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12735              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12736              ;;
12737           esac
12738         fi
12739       else
12740         ld_shlibs_GO=no
12741       fi
12742       ;;
12743
12744     os2*)
12745       hardcode_libdir_flag_spec_GO='-L$libdir'
12746       hardcode_minus_L_GO=yes
12747       allow_undefined_flag_GO=unsupported
12748       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'
12749       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12750       ;;
12751
12752     osf3*)
12753       if test "$GCC" = yes; then
12754         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12755         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'
12756       else
12757         allow_undefined_flag_GO=' -expect_unresolved \*'
12758         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'
12759       fi
12760       archive_cmds_need_lc_GO='no'
12761       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12762       hardcode_libdir_separator_GO=:
12763       ;;
12764
12765     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12766       if test "$GCC" = yes; then
12767         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12768         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'
12769         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12770       else
12771         allow_undefined_flag_GO=' -expect_unresolved \*'
12772         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'
12773         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~
12774         $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'
12775
12776         # Both c and cxx compiler support -rpath directly
12777         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12778       fi
12779       archive_cmds_need_lc_GO='no'
12780       hardcode_libdir_separator_GO=:
12781       ;;
12782
12783     solaris*)
12784       no_undefined_flag_GO=' -z defs'
12785       if test "$GCC" = yes; then
12786         wlarc='${wl}'
12787         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12788         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12789           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12790       else
12791         case `$CC -V 2>&1` in
12792         *"Compilers 5.0"*)
12793           wlarc=''
12794           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12795           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12796           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12797           ;;
12798         *)
12799           wlarc='${wl}'
12800           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12801           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12802           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12803           ;;
12804         esac
12805       fi
12806       hardcode_libdir_flag_spec_GO='-R$libdir'
12807       hardcode_shlibpath_var_GO=no
12808       case $host_os in
12809       solaris2.[0-5] | solaris2.[0-5].*) ;;
12810       *)
12811         # The compiler driver will combine and reorder linker options,
12812         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12813         # but is careful enough not to reorder.
12814         # Supported since Solaris 2.6 (maybe 2.5.1?)
12815         if test "$GCC" = yes; then
12816           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12817         else
12818           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12819         fi
12820         ;;
12821       esac
12822       link_all_deplibs_GO=yes
12823       ;;
12824
12825     sunos4*)
12826       if test "x$host_vendor" = xsequent; then
12827         # Use $CC to link under sequent, because it throws in some extra .o
12828         # files that make .init and .fini sections work.
12829         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12830       else
12831         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12832       fi
12833       hardcode_libdir_flag_spec_GO='-L$libdir'
12834       hardcode_direct_GO=yes
12835       hardcode_minus_L_GO=yes
12836       hardcode_shlibpath_var_GO=no
12837       ;;
12838
12839     sysv4)
12840       case $host_vendor in
12841         sni)
12842           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12843           hardcode_direct_GO=yes # is this really true???
12844         ;;
12845         siemens)
12846           ## LD is ld it makes a PLAMLIB
12847           ## CC just makes a GrossModule.
12848           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12849           reload_cmds_GO='$CC -r -o $output$reload_objs'
12850           hardcode_direct_GO=no
12851         ;;
12852         motorola)
12853           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12854           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12855         ;;
12856       esac
12857       runpath_var='LD_RUN_PATH'
12858       hardcode_shlibpath_var_GO=no
12859       ;;
12860
12861     sysv4.3*)
12862       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12863       hardcode_shlibpath_var_GO=no
12864       export_dynamic_flag_spec_GO='-Bexport'
12865       ;;
12866
12867     sysv4*MP*)
12868       if test -d /usr/nec; then
12869         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12870         hardcode_shlibpath_var_GO=no
12871         runpath_var=LD_RUN_PATH
12872         hardcode_runpath_var=yes
12873         ld_shlibs_GO=yes
12874       fi
12875       ;;
12876
12877     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12878       no_undefined_flag_GO='${wl}-z,text'
12879       archive_cmds_need_lc_GO=no
12880       hardcode_shlibpath_var_GO=no
12881       runpath_var='LD_RUN_PATH'
12882
12883       if test "$GCC" = yes; then
12884         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12885         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12886       else
12887         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12888         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12889       fi
12890       ;;
12891
12892     sysv5* | sco3.2v5* | sco5v6*)
12893       # Note: We can NOT use -z defs as we might desire, because we do not
12894       # link with -lc, and that would cause any symbols used from libc to
12895       # always be unresolved, which means just about no library would
12896       # ever link correctly.  If we're not using GNU ld we use -z text
12897       # though, which does catch some bad symbols but isn't as heavy-handed
12898       # as -z defs.
12899       no_undefined_flag_GO='${wl}-z,text'
12900       allow_undefined_flag_GO='${wl}-z,nodefs'
12901       archive_cmds_need_lc_GO=no
12902       hardcode_shlibpath_var_GO=no
12903       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12904       hardcode_libdir_separator_GO=':'
12905       link_all_deplibs_GO=yes
12906       export_dynamic_flag_spec_GO='${wl}-Bexport'
12907       runpath_var='LD_RUN_PATH'
12908
12909       if test "$GCC" = yes; then
12910         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12911         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12912       else
12913         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12914         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12915       fi
12916       ;;
12917
12918     uts4*)
12919       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12920       hardcode_libdir_flag_spec_GO='-L$libdir'
12921       hardcode_shlibpath_var_GO=no
12922       ;;
12923
12924     *)
12925       ld_shlibs_GO=no
12926       ;;
12927     esac
12928
12929     if test x$host_vendor = xsni; then
12930       case $host in
12931       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12932         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12933         ;;
12934       esac
12935     fi
12936   fi
12937
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12939 $as_echo "$ld_shlibs_GO" >&6; }
12940 test "$ld_shlibs_GO" = no && can_build_shared=no
12941
12942 with_gnu_ld_GO=$with_gnu_ld
12943
12944
12945
12946
12947
12948
12949 #
12950 # Do we need to explicitly link libc?
12951 #
12952 case "x$archive_cmds_need_lc_GO" in
12953 x|xyes)
12954   # Assume -lc should be added
12955   archive_cmds_need_lc_GO=yes
12956
12957   if test "$enable_shared" = yes && test "$GCC" = yes; then
12958     case $archive_cmds_GO in
12959     *'~'*)
12960       # FIXME: we may have to deal with multi-command sequences.
12961       ;;
12962     '$CC '*)
12963       # Test whether the compiler implicitly links with -lc since on some
12964       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12965       # to ld, don't add -lc before -lgcc.
12966       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12967 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12968 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12969   $as_echo_n "(cached) " >&6
12970 else
12971   $RM conftest*
12972         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12973
12974         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12975   (eval $ac_compile) 2>&5
12976   ac_status=$?
12977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12978   test $ac_status = 0; } 2>conftest.err; then
12979           soname=conftest
12980           lib=conftest
12981           libobjs=conftest.$ac_objext
12982           deplibs=
12983           wl=$lt_prog_compiler_wl_GO
12984           pic_flag=$lt_prog_compiler_pic_GO
12985           compiler_flags=-v
12986           linker_flags=-v
12987           verstring=
12988           output_objdir=.
12989           libname=conftest
12990           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12991           allow_undefined_flag_GO=
12992           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12993   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12994   ac_status=$?
12995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12996   test $ac_status = 0; }
12997           then
12998             lt_cv_archive_cmds_need_lc_GO=no
12999           else
13000             lt_cv_archive_cmds_need_lc_GO=yes
13001           fi
13002           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13003         else
13004           cat conftest.err 1>&5
13005         fi
13006         $RM conftest*
13007
13008 fi
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13010 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13011       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13012       ;;
13013     esac
13014   fi
13015   ;;
13016 esac
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13082 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13083 hardcode_action_GO=
13084 if test -n "$hardcode_libdir_flag_spec_GO" ||
13085    test -n "$runpath_var_GO" ||
13086    test "X$hardcode_automatic_GO" = "Xyes" ; then
13087
13088   # We can hardcode non-existent directories.
13089   if test "$hardcode_direct_GO" != no &&
13090      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13091      # have to relink, otherwise we might link with an installed library
13092      # when we should be linking with a yet-to-be-installed one
13093      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13094      test "$hardcode_minus_L_GO" != no; then
13095     # Linking always hardcodes the temporary library directory.
13096     hardcode_action_GO=relink
13097   else
13098     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13099     hardcode_action_GO=immediate
13100   fi
13101 else
13102   # We cannot hardcode anything, or else we can only hardcode existing
13103   # directories.
13104   hardcode_action_GO=unsupported
13105 fi
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13107 $as_echo "$hardcode_action_GO" >&6; }
13108
13109 if test "$hardcode_action_GO" = relink ||
13110    test "$inherit_rpath_GO" = yes; then
13111   # Fast installation is not supported
13112   enable_fast_install=no
13113 elif test "$shlibpath_overrides_runpath" = yes ||
13114      test "$enable_shared" = no; then
13115   # Fast installation is not necessary
13116   enable_fast_install=needless
13117 fi
13118
13119
13120
13121
13122
13123
13124
13125 fi
13126
13127 ac_ext=c
13128 ac_cpp='$CPP $CPPFLAGS'
13129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13132
13133
13134 GCC=$lt_save_GCC
13135 CC="$lt_save_CC"
13136
13137
13138
13139
13140         ac_config_commands="$ac_config_commands libtool"
13141
13142
13143
13144
13145 # Only expand once:
13146
13147
13148
13149
13150
13151 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13152
13153
13154 WERROR="-Werror"
13155
13156
13157 glibgo_toolexecdir=no
13158 glibgo_toolexeclibdir=no
13159 glibgo_prefixdir=$prefix
13160
13161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13162 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13163 # Check whether --enable-version-specific-runtime-libs was given.
13164 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13165   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13166     yes) version_specific_libs=yes ;;
13167     no)  version_specific_libs=no ;;
13168     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13169    esac
13170 else
13171   version_specific_libs=no
13172 fi
13173
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13175 $as_echo "$version_specific_libs" >&6; }
13176
13177 # Version-specific runtime libs processing.
13178 if test $version_specific_libs = yes; then
13179   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13180   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13181 fi
13182
13183 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13184 # Install a library built with a cross compiler in tooldir, not libdir.
13185 if test x"$glibgo_toolexecdir" = x"no"; then
13186   if test -n "$with_cross_host" &&
13187      test x"$with_cross_host" != x"no"; then
13188     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13189     glibgo_toolexeclibdir='${toolexecdir}/lib'
13190   else
13191     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13192     glibgo_toolexeclibdir='${libdir}'
13193   fi
13194   multi_os_directory=`$CC -print-multi-os-directory`
13195   case $multi_os_directory in
13196     .) ;; # Avoid trailing /.
13197     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13198   esac
13199 fi
13200
13201
13202
13203
13204
13205 # See if the user wants to configure without libffi.  Some
13206 # architectures don't support it.  FIXME: We should set a default
13207 # based on the host.
13208
13209 # Check whether --with-libffi was given.
13210 if test "${with_libffi+set}" = set; then :
13211   withval=$with_libffi; :
13212 else
13213   with_libffi=${with_libffi_default-yes}
13214 fi
13215
13216
13217 LIBFFI=
13218 LIBFFIINCS=
13219 if test "$with_libffi" != no; then
13220
13221 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13222
13223    LIBFFI=../libffi/libffi_convenience.la
13224    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13225 fi
13226
13227
13228
13229 is_darwin=no
13230 is_freebsd=no
13231 is_irix=no
13232 is_linux=no
13233 is_rtems=no
13234 is_solaris=no
13235 GOOS=unknown
13236 case ${host} in
13237   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13238   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13239   *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13240   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13241   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13242   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13243 esac
13244  if test $is_darwin = yes; then
13245   LIBGO_IS_DARWIN_TRUE=
13246   LIBGO_IS_DARWIN_FALSE='#'
13247 else
13248   LIBGO_IS_DARWIN_TRUE='#'
13249   LIBGO_IS_DARWIN_FALSE=
13250 fi
13251
13252  if test $is_freebsd = yes; then
13253   LIBGO_IS_FREEBSD_TRUE=
13254   LIBGO_IS_FREEBSD_FALSE='#'
13255 else
13256   LIBGO_IS_FREEBSD_TRUE='#'
13257   LIBGO_IS_FREEBSD_FALSE=
13258 fi
13259
13260  if test $is_irix = yes; then
13261   LIBGO_IS_IRIX_TRUE=
13262   LIBGO_IS_IRIX_FALSE='#'
13263 else
13264   LIBGO_IS_IRIX_TRUE='#'
13265   LIBGO_IS_IRIX_FALSE=
13266 fi
13267
13268  if test $is_linux = yes; then
13269   LIBGO_IS_LINUX_TRUE=
13270   LIBGO_IS_LINUX_FALSE='#'
13271 else
13272   LIBGO_IS_LINUX_TRUE='#'
13273   LIBGO_IS_LINUX_FALSE=
13274 fi
13275
13276  if test $is_rtems = yes; then
13277   LIBGO_IS_RTEMS_TRUE=
13278   LIBGO_IS_RTEMS_FALSE='#'
13279 else
13280   LIBGO_IS_RTEMS_TRUE='#'
13281   LIBGO_IS_RTEMS_FALSE=
13282 fi
13283
13284  if test $is_solaris = yes; then
13285   LIBGO_IS_SOLARIS_TRUE=
13286   LIBGO_IS_SOLARIS_FALSE='#'
13287 else
13288   LIBGO_IS_SOLARIS_TRUE='#'
13289   LIBGO_IS_SOLARIS_FALSE=
13290 fi
13291
13292
13293
13294 is_386=no
13295 is_alpha=no
13296 is_arm=no
13297 is_m68k=no
13298 mips_abi=""
13299 is_ppc=no
13300 is_ppc64=no
13301 is_sparc=no
13302 is_sparc64=no
13303 is_x86_64=no
13304 GOARCH=unknown
13305 case ${host} in
13306   alpha*-*-*)
13307     is_alpha=yes
13308     GOARCH=alpha
13309     ;;
13310   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13311     is_arm=yes
13312     GOARCH=arm
13313     ;;
13314   i[34567]86-*-* | x86_64-*-*)
13315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13316 /* end confdefs.h.  */
13317
13318 #ifdef __x86_64__
13319 #error 64-bit
13320 #endif
13321 _ACEOF
13322 if ac_fn_c_try_compile "$LINENO"; then :
13323   is_386=yes
13324 else
13325   is_x86_64=yes
13326 fi
13327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13328     if test "$is_386" = "yes"; then
13329       GOARCH=386
13330     else
13331       GOARCH=amd64
13332     fi
13333     ;;
13334   m68k*-*-*)
13335     is_m68k=yes
13336     GOARCH=m68k
13337     ;;
13338   mips*-*-*)
13339     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h.  */
13341
13342 #if _MIPS_SIM != _ABIO32
13343 #error not o32
13344 #endif
13345 _ACEOF
13346 if ac_fn_c_try_compile "$LINENO"; then :
13347   mips_abi="o32"
13348 else
13349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13350 /* end confdefs.h.  */
13351
13352 #if _MIPS_SIM != _ABIN32
13353 #error not n32
13354 #endif
13355 _ACEOF
13356 if ac_fn_c_try_compile "$LINENO"; then :
13357   mips_abi="n32"
13358 else
13359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h.  */
13361
13362 #if _MIPS_SIM != _ABI64
13363 #error not n64
13364 #endif
13365 _ACEOF
13366 if ac_fn_c_try_compile "$LINENO"; then :
13367   mips_abi="n64"
13368 else
13369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h.  */
13371
13372 #if _MIPS_SIM != _ABIO64
13373 #error not o64
13374 #endif
13375 _ACEOF
13376 if ac_fn_c_try_compile "$LINENO"; then :
13377   mips_abi="o64"
13378 else
13379   as_fn_error "unknown MIPS ABI" "$LINENO" 5
13380 mips_abi="n32"
13381 fi
13382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13383 fi
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 fi
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 fi
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389     case "$mips_abi" in
13390     "o32") GOARCH=mipso32 ;;
13391     "n32") GOARCH=mipsn32 ;;
13392     "n64") GOARCH=mipsn64 ;;
13393     "o64") GOARCH=mipso64 ;;
13394     esac
13395     ;;
13396   rs6000*-*-* | powerpc*-*-*)
13397     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h.  */
13399
13400 #ifdef _ARCH_PPC64
13401 #error 64-bit
13402 #endif
13403 _ACEOF
13404 if ac_fn_c_try_compile "$LINENO"; then :
13405   is_ppc=yes
13406 else
13407   is_ppc64=yes
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410     if test "$is_ppc" = "yes"; then
13411       GOARCH=ppc
13412     else
13413       GOARCH=ppc64
13414     fi
13415     ;;
13416   sparc*-*-*)
13417     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h.  */
13419
13420 #if defined(__sparcv9) || defined(__arch64__)
13421 #error 64-bit
13422 #endif
13423 _ACEOF
13424 if ac_fn_c_try_compile "$LINENO"; then :
13425   is_sparc=yes
13426 else
13427   is_sparc64=yes
13428 fi
13429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430     if test "$is_sparc" = "yes"; then
13431       GOARCH=sparc
13432     else
13433       GOARCH=sparc64
13434     fi
13435     ;;
13436 esac
13437  if test $is_386 = yes; then
13438   LIBGO_IS_386_TRUE=
13439   LIBGO_IS_386_FALSE='#'
13440 else
13441   LIBGO_IS_386_TRUE='#'
13442   LIBGO_IS_386_FALSE=
13443 fi
13444
13445  if test $is_alpha = yes; then
13446   LIBGO_IS_ALPHA_TRUE=
13447   LIBGO_IS_ALPHA_FALSE='#'
13448 else
13449   LIBGO_IS_ALPHA_TRUE='#'
13450   LIBGO_IS_ALPHA_FALSE=
13451 fi
13452
13453  if test $is_arm = yes; then
13454   LIBGO_IS_ARM_TRUE=
13455   LIBGO_IS_ARM_FALSE='#'
13456 else
13457   LIBGO_IS_ARM_TRUE='#'
13458   LIBGO_IS_ARM_FALSE=
13459 fi
13460
13461  if test $is_m68k = yes; then
13462   LIBGO_IS_M68K_TRUE=
13463   LIBGO_IS_M68K_FALSE='#'
13464 else
13465   LIBGO_IS_M68K_TRUE='#'
13466   LIBGO_IS_M68K_FALSE=
13467 fi
13468
13469  if test $mips_abi != ""; then
13470   LIBGO_IS_MIPS_TRUE=
13471   LIBGO_IS_MIPS_FALSE='#'
13472 else
13473   LIBGO_IS_MIPS_TRUE='#'
13474   LIBGO_IS_MIPS_FALSE=
13475 fi
13476
13477  if test $mips_abi = o32; then
13478   LIBGO_IS_MIPSO32_TRUE=
13479   LIBGO_IS_MIPSO32_FALSE='#'
13480 else
13481   LIBGO_IS_MIPSO32_TRUE='#'
13482   LIBGO_IS_MIPSO32_FALSE=
13483 fi
13484
13485  if test $mips_abi = n32; then
13486   LIBGO_IS_MIPSN32_TRUE=
13487   LIBGO_IS_MIPSN32_FALSE='#'
13488 else
13489   LIBGO_IS_MIPSN32_TRUE='#'
13490   LIBGO_IS_MIPSN32_FALSE=
13491 fi
13492
13493  if test $mips_abi = n64; then
13494   LIBGO_IS_MIPSN64_TRUE=
13495   LIBGO_IS_MIPSN64_FALSE='#'
13496 else
13497   LIBGO_IS_MIPSN64_TRUE='#'
13498   LIBGO_IS_MIPSN64_FALSE=
13499 fi
13500
13501  if test $mips_abi = o64; then
13502   LIBGO_IS_MIPSO64_TRUE=
13503   LIBGO_IS_MIPSO64_FALSE='#'
13504 else
13505   LIBGO_IS_MIPSO64_TRUE='#'
13506   LIBGO_IS_MIPSO64_FALSE=
13507 fi
13508
13509  if test $is_ppc = yes; then
13510   LIBGO_IS_PPC_TRUE=
13511   LIBGO_IS_PPC_FALSE='#'
13512 else
13513   LIBGO_IS_PPC_TRUE='#'
13514   LIBGO_IS_PPC_FALSE=
13515 fi
13516
13517  if test $is_ppc64 = yes; then
13518   LIBGO_IS_PPC64_TRUE=
13519   LIBGO_IS_PPC64_FALSE='#'
13520 else
13521   LIBGO_IS_PPC64_TRUE='#'
13522   LIBGO_IS_PPC64_FALSE=
13523 fi
13524
13525  if test $is_sparc = yes; then
13526   LIBGO_IS_SPARC_TRUE=
13527   LIBGO_IS_SPARC_FALSE='#'
13528 else
13529   LIBGO_IS_SPARC_TRUE='#'
13530   LIBGO_IS_SPARC_FALSE=
13531 fi
13532
13533  if test $is_sparc64 = yes; then
13534   LIBGO_IS_SPARC64_TRUE=
13535   LIBGO_IS_SPARC64_FALSE='#'
13536 else
13537   LIBGO_IS_SPARC64_TRUE='#'
13538   LIBGO_IS_SPARC64_FALSE=
13539 fi
13540
13541  if test $is_x86_64 = yes; then
13542   LIBGO_IS_X86_64_TRUE=
13543   LIBGO_IS_X86_64_FALSE='#'
13544 else
13545   LIBGO_IS_X86_64_TRUE='#'
13546   LIBGO_IS_X86_64_FALSE=
13547 fi
13548
13549
13550
13551 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13552 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13553   GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13554 fi
13555
13556
13557 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13558 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13559   GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13560 fi
13561
13562
13563 case "$target" in
13564     *-*-solaris2.[89])
13565         # Solaris 8/9 need this so struct msghdr gets the msg_control
13566         # etc. fields in <sys/socket.h> (_XPG4_2).
13567         OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
13568         ;;
13569     *-*-solaris2.1[01])
13570         # Solaris 10+ needs this so struct msghdr gets the msg_control
13571         # etc. fields in <sys/socket.h> (_XPG4_2).  _XOPEN_SOURCE=500 as
13572         # above doesn't work with C99.
13573         OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
13574         ;;
13575 esac
13576
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13579 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13580 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13581   $as_echo_n "(cached) " >&6
13582 else
13583   CFLAGS_hold=$CFLAGS
13584 CFLAGS="$CFLAGS -fsplit-stack"
13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13586 /* end confdefs.h.  */
13587 int i;
13588 _ACEOF
13589 if ac_fn_c_try_compile "$LINENO"; then :
13590   libgo_cv_c_split_stack_supported=yes
13591 else
13592   libgo_cv_c_split_stack_supported=no
13593 fi
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 CFLAGS=$CFLAGS_hold
13596 fi
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13598 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13599 if test "$libgo_cv_c_split_stack_supported" = yes; then
13600   SPLIT_STACK=-fsplit-stack
13601
13602 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13603
13604 else
13605   SPLIT_STACK=
13606 fi
13607
13608  if test "$libgo_cv_c_split_stack_supported" = yes; then
13609   USING_SPLIT_STACK_TRUE=
13610   USING_SPLIT_STACK_FALSE='#'
13611 else
13612   USING_SPLIT_STACK_TRUE='#'
13613   USING_SPLIT_STACK_FALSE=
13614 fi
13615
13616
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13618 $as_echo_n "checking whether linker supports split stack... " >&6; }
13619 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13620   $as_echo_n "(cached) " >&6
13621 else
13622   libgo_cv_c_linker_supports_split_stack=no
13623 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13624   libgo_cv_c_linker_supports_split_stack=yes
13625 fi
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13628 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13629 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13630
13631 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13632
13633 fi
13634
13635 MATH_LIBS=
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13637 $as_echo_n "checking for sqrt in -lm... " >&6; }
13638 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13639   $as_echo_n "(cached) " >&6
13640 else
13641   ac_check_lib_save_LIBS=$LIBS
13642 LIBS="-lm  $LIBS"
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h.  */
13645
13646 /* Override any GCC internal prototype to avoid an error.
13647    Use char because int might match the return type of a GCC
13648    builtin and then its argument prototype would still apply.  */
13649 #ifdef __cplusplus
13650 extern "C"
13651 #endif
13652 char sqrt ();
13653 int
13654 main ()
13655 {
13656 return sqrt ();
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13662   ac_cv_lib_m_sqrt=yes
13663 else
13664   ac_cv_lib_m_sqrt=no
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext \
13667     conftest$ac_exeext conftest.$ac_ext
13668 LIBS=$ac_check_lib_save_LIBS
13669 fi
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13671 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13672 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13673   MATH_LIBS=-lm
13674 fi
13675
13676
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13679 $as_echo_n "checking for socket libraries... " >&6; }
13680 if test "${libgo_cv_lib_sockets+set}" = set; then :
13681   $as_echo_n "(cached) " >&6
13682 else
13683   libgo_cv_lib_sockets=
13684    libgo_check_both=no
13685    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13686 if test "x$ac_cv_func_connect" = x""yes; then :
13687   libgo_check_socket=no
13688 else
13689   libgo_check_socket=yes
13690 fi
13691
13692    if test "$libgo_check_socket" = "yes"; then
13693      unset ac_cv_func_connect
13694      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13695 $as_echo_n "checking for main in -lsocket... " >&6; }
13696 if test "${ac_cv_lib_socket_main+set}" = set; then :
13697   $as_echo_n "(cached) " >&6
13698 else
13699   ac_check_lib_save_LIBS=$LIBS
13700 LIBS="-lsocket  $LIBS"
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h.  */
13703
13704
13705 int
13706 main ()
13707 {
13708 return main ();
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_link "$LINENO"; then :
13714   ac_cv_lib_socket_main=yes
13715 else
13716   ac_cv_lib_socket_main=no
13717 fi
13718 rm -f core conftest.err conftest.$ac_objext \
13719     conftest$ac_exeext conftest.$ac_ext
13720 LIBS=$ac_check_lib_save_LIBS
13721 fi
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13723 $as_echo "$ac_cv_lib_socket_main" >&6; }
13724 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13725   libgo_cv_lib_sockets="-lsocket"
13726 else
13727   libgo_check_both=yes
13728 fi
13729
13730    fi
13731    if test "$libgo_check_both" = "yes"; then
13732      libgo_old_libs=$LIBS
13733      LIBS="$LIBS -lsocket -lnsl"
13734      unset ac_cv_func_accept
13735      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13736 if test "x$ac_cv_func_accept" = x""yes; then :
13737   libgo_check_nsl=no
13738                     libgo_cv_lib_sockets="-lsocket -lnsl"
13739 fi
13740
13741      unset ac_cv_func_accept
13742      LIBS=$libgo_old_libs
13743    fi
13744    unset ac_cv_func_gethostbyname
13745    libgo_old_libs="$LIBS"
13746    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13747 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13748
13749 else
13750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13751 $as_echo_n "checking for main in -lnsl... " >&6; }
13752 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13753   $as_echo_n "(cached) " >&6
13754 else
13755   ac_check_lib_save_LIBS=$LIBS
13756 LIBS="-lnsl  $LIBS"
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h.  */
13759
13760
13761 int
13762 main ()
13763 {
13764 return main ();
13765   ;
13766   return 0;
13767 }
13768 _ACEOF
13769 if ac_fn_c_try_link "$LINENO"; then :
13770   ac_cv_lib_nsl_main=yes
13771 else
13772   ac_cv_lib_nsl_main=no
13773 fi
13774 rm -f core conftest.err conftest.$ac_objext \
13775     conftest$ac_exeext conftest.$ac_ext
13776 LIBS=$ac_check_lib_save_LIBS
13777 fi
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13779 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13780 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13781   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13782 fi
13783
13784 fi
13785
13786    unset ac_cv_func_gethostbyname
13787    LIBS=$libgo_old_libs
13788
13789 fi
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13791 $as_echo "$libgo_cv_lib_sockets" >&6; }
13792 NET_LIBS="$libgo_cv_lib_sockets"
13793
13794
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13796 $as_echo_n "checking whether -pthread is supported... " >&6; }
13797 if test "${libgo_cv_lib_pthread+set}" = set; then :
13798   $as_echo_n "(cached) " >&6
13799 else
13800   CFLAGS_hold=$CFLAGS
13801 CFLAGS="$CFLAGS -pthread"
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h.  */
13804 int i;
13805 _ACEOF
13806 if ac_fn_c_try_compile "$LINENO"; then :
13807   libgo_cv_lib_pthread=yes
13808 else
13809   libgo_cv_lib_pthread=no
13810 fi
13811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13812 CFLAGS=$CFLAGS_hold
13813 fi
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13815 $as_echo "$libgo_cv_lib_pthread" >&6; }
13816 PTHREAD_CFLAGS=
13817 if test "$libgo_cv_lib_pthread" = yes; then
13818   PTHREAD_CFLAGS=-pthread
13819 fi
13820
13821
13822 PTHREAD_LIBS=
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13824 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13825 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13826   $as_echo_n "(cached) " >&6
13827 else
13828   ac_check_lib_save_LIBS=$LIBS
13829 LIBS="-lpthread  $LIBS"
13830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13831 /* end confdefs.h.  */
13832
13833 /* Override any GCC internal prototype to avoid an error.
13834    Use char because int might match the return type of a GCC
13835    builtin and then its argument prototype would still apply.  */
13836 #ifdef __cplusplus
13837 extern "C"
13838 #endif
13839 char pthread_create ();
13840 int
13841 main ()
13842 {
13843 return pthread_create ();
13844   ;
13845   return 0;
13846 }
13847 _ACEOF
13848 if ac_fn_c_try_link "$LINENO"; then :
13849   ac_cv_lib_pthread_pthread_create=yes
13850 else
13851   ac_cv_lib_pthread_pthread_create=no
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext \
13854     conftest$ac_exeext conftest.$ac_ext
13855 LIBS=$ac_check_lib_save_LIBS
13856 fi
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13858 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13859 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13860   PTHREAD_LIBS=-lpthread
13861 fi
13862
13863
13864
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13866 $as_echo_n "checking for library containing sched_yield... " >&6; }
13867 if test "${ac_cv_search_sched_yield+set}" = set; then :
13868   $as_echo_n "(cached) " >&6
13869 else
13870   ac_func_search_save_LIBS=$LIBS
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873
13874 /* Override any GCC internal prototype to avoid an error.
13875    Use char because int might match the return type of a GCC
13876    builtin and then its argument prototype would still apply.  */
13877 #ifdef __cplusplus
13878 extern "C"
13879 #endif
13880 char sched_yield ();
13881 int
13882 main ()
13883 {
13884 return sched_yield ();
13885   ;
13886   return 0;
13887 }
13888 _ACEOF
13889 for ac_lib in '' rt; do
13890   if test -z "$ac_lib"; then
13891     ac_res="none required"
13892   else
13893     ac_res=-l$ac_lib
13894     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13895   fi
13896   if ac_fn_c_try_link "$LINENO"; then :
13897   ac_cv_search_sched_yield=$ac_res
13898 fi
13899 rm -f core conftest.err conftest.$ac_objext \
13900     conftest$ac_exeext
13901   if test "${ac_cv_search_sched_yield+set}" = set; then :
13902   break
13903 fi
13904 done
13905 if test "${ac_cv_search_sched_yield+set}" = set; then :
13906
13907 else
13908   ac_cv_search_sched_yield=no
13909 fi
13910 rm conftest.$ac_ext
13911 LIBS=$ac_func_search_save_LIBS
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13914 $as_echo "$ac_cv_search_sched_yield" >&6; }
13915 ac_res=$ac_cv_search_sched_yield
13916 if test "$ac_res" != no; then :
13917   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13918
13919 fi
13920
13921
13922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13923 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13924 if test "${ac_cv_c_bigendian+set}" = set; then :
13925   $as_echo_n "(cached) " >&6
13926 else
13927   ac_cv_c_bigendian=unknown
13928     # See if we're dealing with a universal compiler.
13929     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h.  */
13931 #ifndef __APPLE_CC__
13932                not a universal capable compiler
13933              #endif
13934              typedef int dummy;
13935
13936 _ACEOF
13937 if ac_fn_c_try_compile "$LINENO"; then :
13938
13939         # Check for potential -arch flags.  It is not universal unless
13940         # there are at least two -arch flags with different values.
13941         ac_arch=
13942         ac_prev=
13943         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13944          if test -n "$ac_prev"; then
13945            case $ac_word in
13946              i?86 | x86_64 | ppc | ppc64)
13947                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13948                  ac_arch=$ac_word
13949                else
13950                  ac_cv_c_bigendian=universal
13951                  break
13952                fi
13953                ;;
13954            esac
13955            ac_prev=
13956          elif test "x$ac_word" = "x-arch"; then
13957            ac_prev=arch
13958          fi
13959        done
13960 fi
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962     if test $ac_cv_c_bigendian = unknown; then
13963       # See if sys/param.h defines the BYTE_ORDER macro.
13964       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13965 /* end confdefs.h.  */
13966 #include <sys/types.h>
13967              #include <sys/param.h>
13968
13969 int
13970 main ()
13971 {
13972 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13973                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13974                      && LITTLE_ENDIAN)
13975               bogus endian macros
13976              #endif
13977
13978   ;
13979   return 0;
13980 }
13981 _ACEOF
13982 if ac_fn_c_try_compile "$LINENO"; then :
13983   # It does; now see whether it defined to BIG_ENDIAN or not.
13984          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h.  */
13986 #include <sys/types.h>
13987                 #include <sys/param.h>
13988
13989 int
13990 main ()
13991 {
13992 #if BYTE_ORDER != BIG_ENDIAN
13993                  not big endian
13994                 #endif
13995
13996   ;
13997   return 0;
13998 }
13999 _ACEOF
14000 if ac_fn_c_try_compile "$LINENO"; then :
14001   ac_cv_c_bigendian=yes
14002 else
14003   ac_cv_c_bigendian=no
14004 fi
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006 fi
14007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14008     fi
14009     if test $ac_cv_c_bigendian = unknown; then
14010       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14011       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h.  */
14013 #include <limits.h>
14014
14015 int
14016 main ()
14017 {
14018 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14019               bogus endian macros
14020              #endif
14021
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027   # It does; now see whether it defined to _BIG_ENDIAN or not.
14028          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h.  */
14030 #include <limits.h>
14031
14032 int
14033 main ()
14034 {
14035 #ifndef _BIG_ENDIAN
14036                  not big endian
14037                 #endif
14038
14039   ;
14040   return 0;
14041 }
14042 _ACEOF
14043 if ac_fn_c_try_compile "$LINENO"; then :
14044   ac_cv_c_bigendian=yes
14045 else
14046   ac_cv_c_bigendian=no
14047 fi
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049 fi
14050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051     fi
14052     if test $ac_cv_c_bigendian = unknown; then
14053       # Compile a test program.
14054       if test "$cross_compiling" = yes; then :
14055   # Try to guess by grepping values from an object file.
14056          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14057 /* end confdefs.h.  */
14058 short int ascii_mm[] =
14059                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14060                 short int ascii_ii[] =
14061                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14062                 int use_ascii (int i) {
14063                   return ascii_mm[i] + ascii_ii[i];
14064                 }
14065                 short int ebcdic_ii[] =
14066                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14067                 short int ebcdic_mm[] =
14068                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14069                 int use_ebcdic (int i) {
14070                   return ebcdic_mm[i] + ebcdic_ii[i];
14071                 }
14072                 extern int foo;
14073
14074 int
14075 main ()
14076 {
14077 return use_ascii (foo) == use_ebcdic (foo);
14078   ;
14079   return 0;
14080 }
14081 _ACEOF
14082 if ac_fn_c_try_compile "$LINENO"; then :
14083   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14084               ac_cv_c_bigendian=yes
14085             fi
14086             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14087               if test "$ac_cv_c_bigendian" = unknown; then
14088                 ac_cv_c_bigendian=no
14089               else
14090                 # finding both strings is unlikely to happen, but who knows?
14091                 ac_cv_c_bigendian=unknown
14092               fi
14093             fi
14094 fi
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 else
14097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098 /* end confdefs.h.  */
14099 $ac_includes_default
14100 int
14101 main ()
14102 {
14103
14104              /* Are we little or big endian?  From Harbison&Steele.  */
14105              union
14106              {
14107                long int l;
14108                char c[sizeof (long int)];
14109              } u;
14110              u.l = 1;
14111              return u.c[sizeof (long int) - 1] == 1;
14112
14113   ;
14114   return 0;
14115 }
14116 _ACEOF
14117 if ac_fn_c_try_run "$LINENO"; then :
14118   ac_cv_c_bigendian=no
14119 else
14120   ac_cv_c_bigendian=yes
14121 fi
14122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14123   conftest.$ac_objext conftest.beam conftest.$ac_ext
14124 fi
14125
14126     fi
14127 fi
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14129 $as_echo "$ac_cv_c_bigendian" >&6; }
14130  case $ac_cv_c_bigendian in #(
14131    yes)
14132      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14133 ;; #(
14134    no)
14135       ;; #(
14136    universal)
14137
14138 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14139
14140      ;; #(
14141    *)
14142      as_fn_error "unknown endianness
14143  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14144  esac
14145
14146
14147
14148
14149 # Check whether --with-system-libunwind was given.
14150 if test "${with_system_libunwind+set}" = set; then :
14151   withval=$with_system_libunwind;
14152 fi
14153
14154   # If system-libunwind was not specifically set, pick a default setting.
14155   if test x$with_system_libunwind = x; then
14156     case ${target} in
14157       ia64-*-hpux*) with_system_libunwind=yes ;;
14158       *) with_system_libunwind=no ;;
14159     esac
14160   fi
14161   # Based on system-libunwind and target, do we have ipinfo?
14162   if  test x$with_system_libunwind = xyes; then
14163     case ${target} in
14164       ia64-*-*) have_unwind_getipinfo=no ;;
14165       *) have_unwind_getipinfo=yes ;;
14166     esac
14167   else
14168     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14169
14170     case ${target} in
14171       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14172       *) have_unwind_getipinfo=yes ;;
14173     esac
14174
14175   fi
14176
14177   if test x$have_unwind_getipinfo = xyes; then
14178
14179 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14180
14181   fi
14182
14183
14184 # Check whether --enable-sjlj-exceptions was given.
14185 if test "${enable_sjlj_exceptions+set}" = set; then :
14186   enableval=$enable_sjlj_exceptions; case "$enableval" in
14187    yes|no|auto) ;;
14188    *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14189    esac
14190 else
14191   enable_sjlj_exceptions=auto
14192 fi
14193
14194
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14196 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14197 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14198   $as_echo_n "(cached) " >&6
14199 else
14200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14201 /* end confdefs.h.  */
14202
14203 void bar ();
14204 void clean (int *);
14205 void foo ()
14206 {
14207   int i __attribute__ ((cleanup (clean)));
14208   bar();
14209 }
14210
14211 _ACEOF
14212 CFLAGS_hold=$CFLAGS
14213 CFLAGS="--save-temps -fexceptions"
14214 libgo_cv_lib_sjlj_exceptions=unknown
14215 if ac_fn_c_try_compile; then :
14216   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14217     libgo_cv_lib_sjlj_exceptions=yes
14218   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14219     libgo_cv_lib_sjlj_exceptions=no
14220   fi
14221 fi
14222 CFLAGS=$CFLAGS_hold
14223 rm -f conftest*
14224
14225 fi
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14227 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14228
14229 if test "$enable_sjlj_exceptions" = "auto"; then
14230   enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14231 fi
14232
14233 case $enable_sjlj_exceptions in
14234 yes)
14235
14236 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14237
14238   ;;
14239 no)
14240   ;;
14241 *)
14242   as_fn_error "unable to detect exception model" "$LINENO" 5
14243   ;;
14244 esac
14245
14246 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h
14247 do :
14248   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14249 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14250 eval as_val=\$$as_ac_Header
14251    if test "x$as_val" = x""yes; then :
14252   cat >>confdefs.h <<_ACEOF
14253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14254 _ACEOF
14255
14256 fi
14257
14258 done
14259
14260  if test "$ac_cv_header_sys_mman_h" = yes; then
14261   HAVE_SYS_MMAN_H_TRUE=
14262   HAVE_SYS_MMAN_H_FALSE='#'
14263 else
14264   HAVE_SYS_MMAN_H_TRUE='#'
14265   HAVE_SYS_MMAN_H_FALSE=
14266 fi
14267
14268
14269 for ac_func in srandom random strerror_r strsignal wait4 mincore
14270 do :
14271   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14272 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14273 eval as_val=\$$as_ac_var
14274    if test "x$as_val" = x""yes; then :
14275   cat >>confdefs.h <<_ACEOF
14276 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14277 _ACEOF
14278
14279 fi
14280 done
14281
14282  if test "$ac_cv_func_strerror_r" = yes; then
14283   HAVE_STRERROR_R_TRUE=
14284   HAVE_STRERROR_R_FALSE='#'
14285 else
14286   HAVE_STRERROR_R_TRUE='#'
14287   HAVE_STRERROR_R_FALSE=
14288 fi
14289
14290  if test "$ac_cv_func_wait4" = yes; then
14291   HAVE_WAIT4_TRUE=
14292   HAVE_WAIT4_FALSE='#'
14293 else
14294   HAVE_WAIT4_TRUE='#'
14295   HAVE_WAIT4_FALSE=
14296 fi
14297
14298
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14300 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14301 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14302   $as_echo_n "(cached) " >&6
14303 else
14304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h.  */
14306
14307 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14308 uint32 i;
14309 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14310
14311 _ACEOF
14312 if ac_fn_c_try_link "$LINENO"; then :
14313   libgo_cv_func___sync_bool_compare_and_swap_4=yes
14314 else
14315   libgo_cv_func___sync_bool_compare_and_swap_4=no
14316 fi
14317 rm -f core conftest.err conftest.$ac_objext \
14318     conftest$ac_exeext conftest.$ac_ext
14319 fi
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14321 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14322 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14323
14324 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14325
14326 fi
14327
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14329 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14330 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14331   $as_echo_n "(cached) " >&6
14332 else
14333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h.  */
14335
14336 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14337 uint32 i;
14338 int main() { return __sync_fetch_and_add (&i, 1); }
14339
14340 _ACEOF
14341 if ac_fn_c_try_link "$LINENO"; then :
14342   libgo_cv_func___sync_fetch_and_add_4=yes
14343 else
14344   libgo_cv_func___sync_fetch_and_add_4=no
14345 fi
14346 rm -f core conftest.err conftest.$ac_objext \
14347     conftest$ac_exeext conftest.$ac_ext
14348 fi
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14350 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14351 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14352
14353 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14354
14355 fi
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14358 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14359 if test "${libgo_cv_c_stringops+set}" = set; then :
14360   $as_echo_n "(cached) " >&6
14361 else
14362   CFLAGS_hold=$CFLAGS
14363 CFLAGS="$CFLAGS -minline-all-stringops"
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h.  */
14366 int i;
14367 _ACEOF
14368 if ac_fn_c_try_compile "$LINENO"; then :
14369   libgo_cv_c_stringops=yes
14370 else
14371   libgo_cv_c_stringops=no
14372 fi
14373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14374 CFLAGS=$CFLAGS_hold
14375 fi
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14377 $as_echo "$libgo_cv_c_stringops" >&6; }
14378 STRINGOPS_FLAG=
14379 if test "$libgo_cv_c_stringops" = yes; then
14380   STRINGOPS_FLAG=-minline-all-stringops
14381 fi
14382
14383
14384 CFLAGS_hold=$CFLAGS
14385 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14386 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14387 if test "x$ac_cv_type_off64_t" = x""yes; then :
14388
14389 cat >>confdefs.h <<_ACEOF
14390 #define HAVE_OFF64_T 1
14391 _ACEOF
14392
14393
14394 fi
14395
14396 CFLAGS=$CFLAGS_hold
14397
14398 cat >confcache <<\_ACEOF
14399 # This file is a shell script that caches the results of configure
14400 # tests run on this system so they can be shared between configure
14401 # scripts and configure runs, see configure's option --config-cache.
14402 # It is not useful on other systems.  If it contains results you don't
14403 # want to keep, you may remove or edit it.
14404 #
14405 # config.status only pays attention to the cache file if you give it
14406 # the --recheck option to rerun configure.
14407 #
14408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14410 # following values.
14411
14412 _ACEOF
14413
14414 # The following way of writing the cache mishandles newlines in values,
14415 # but we know of no workaround that is simple, portable, and efficient.
14416 # So, we kill variables containing newlines.
14417 # Ultrix sh set writes to stderr and can't be redirected directly,
14418 # and sets the high bit in the cache file unless we assign to the vars.
14419 (
14420   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14421     eval ac_val=\$$ac_var
14422     case $ac_val in #(
14423     *${as_nl}*)
14424       case $ac_var in #(
14425       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14426 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14427       esac
14428       case $ac_var in #(
14429       _ | IFS | as_nl) ;; #(
14430       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14431       *) { eval $ac_var=; unset $ac_var;} ;;
14432       esac ;;
14433     esac
14434   done
14435
14436   (set) 2>&1 |
14437     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14438     *${as_nl}ac_space=\ *)
14439       # `set' does not quote correctly, so add quotes: double-quote
14440       # substitution turns \\\\ into \\, and sed turns \\ into \.
14441       sed -n \
14442         "s/'/'\\\\''/g;
14443           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14444       ;; #(
14445     *)
14446       # `set' quotes correctly as required by POSIX, so do not add quotes.
14447       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14448       ;;
14449     esac |
14450     sort
14451 ) |
14452   sed '
14453      /^ac_cv_env_/b end
14454      t clear
14455      :clear
14456      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14457      t end
14458      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14459      :end' >>confcache
14460 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14461   if test -w "$cache_file"; then
14462     test "x$cache_file" != "x/dev/null" &&
14463       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14464 $as_echo "$as_me: updating cache $cache_file" >&6;}
14465     cat confcache >$cache_file
14466   else
14467     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14468 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14469   fi
14470 fi
14471 rm -f confcache
14472
14473 if test ${multilib} = yes; then
14474   multilib_arg="--enable-multilib"
14475 else
14476   multilib_arg=
14477 fi
14478
14479 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14480
14481
14482 ac_config_commands="$ac_config_commands default"
14483
14484
14485 cat >confcache <<\_ACEOF
14486 # This file is a shell script that caches the results of configure
14487 # tests run on this system so they can be shared between configure
14488 # scripts and configure runs, see configure's option --config-cache.
14489 # It is not useful on other systems.  If it contains results you don't
14490 # want to keep, you may remove or edit it.
14491 #
14492 # config.status only pays attention to the cache file if you give it
14493 # the --recheck option to rerun configure.
14494 #
14495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14497 # following values.
14498
14499 _ACEOF
14500
14501 # The following way of writing the cache mishandles newlines in values,
14502 # but we know of no workaround that is simple, portable, and efficient.
14503 # So, we kill variables containing newlines.
14504 # Ultrix sh set writes to stderr and can't be redirected directly,
14505 # and sets the high bit in the cache file unless we assign to the vars.
14506 (
14507   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14508     eval ac_val=\$$ac_var
14509     case $ac_val in #(
14510     *${as_nl}*)
14511       case $ac_var in #(
14512       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14514       esac
14515       case $ac_var in #(
14516       _ | IFS | as_nl) ;; #(
14517       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14518       *) { eval $ac_var=; unset $ac_var;} ;;
14519       esac ;;
14520     esac
14521   done
14522
14523   (set) 2>&1 |
14524     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14525     *${as_nl}ac_space=\ *)
14526       # `set' does not quote correctly, so add quotes: double-quote
14527       # substitution turns \\\\ into \\, and sed turns \\ into \.
14528       sed -n \
14529         "s/'/'\\\\''/g;
14530           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14531       ;; #(
14532     *)
14533       # `set' quotes correctly as required by POSIX, so do not add quotes.
14534       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14535       ;;
14536     esac |
14537     sort
14538 ) |
14539   sed '
14540      /^ac_cv_env_/b end
14541      t clear
14542      :clear
14543      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14544      t end
14545      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14546      :end' >>confcache
14547 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14548   if test -w "$cache_file"; then
14549     test "x$cache_file" != "x/dev/null" &&
14550       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14551 $as_echo "$as_me: updating cache $cache_file" >&6;}
14552     cat confcache >$cache_file
14553   else
14554     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14555 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14556   fi
14557 fi
14558 rm -f confcache
14559
14560 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14561 # Let make expand exec_prefix.
14562 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14563
14564 DEFS=-DHAVE_CONFIG_H
14565
14566 ac_libobjs=
14567 ac_ltlibobjs=
14568 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14569   # 1. Remove the extension, and $U if already installed.
14570   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14571   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14572   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14573   #    will be set to the directory where LIBOBJS objects are built.
14574   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14575   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14576 done
14577 LIBOBJS=$ac_libobjs
14578
14579 LTLIBOBJS=$ac_ltlibobjs
14580
14581
14582  if test -n "$EXEEXT"; then
14583   am__EXEEXT_TRUE=
14584   am__EXEEXT_FALSE='#'
14585 else
14586   am__EXEEXT_TRUE='#'
14587   am__EXEEXT_FALSE=
14588 fi
14589
14590 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14591   as_fn_error "conditional \"AMDEP\" was never defined.
14592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14593 fi
14594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14595   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14597 fi
14598 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14599   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14601 fi
14602 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14603   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14605 fi
14606 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14607   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14609 fi
14610 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14611   as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14613 fi
14614 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14615   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14617 fi
14618 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14619   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14621 fi
14622 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14623   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14625 fi
14626 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14627   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14629 fi
14630 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
14631   as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
14632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14633 fi
14634 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14635   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14637 fi
14638 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14639   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14641 fi
14642 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14643   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14645 fi
14646 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14647   as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14649 fi
14650 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14651   as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14653 fi
14654 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14655   as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14657 fi
14658 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14659   as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14661 fi
14662 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14663   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14665 fi
14666 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14667   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14669 fi
14670 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14671   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14673 fi
14674 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14675   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14677 fi
14678 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14679   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14681 fi
14682 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14683   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14685 fi
14686
14687 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14688   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14690 fi
14691 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14692   as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14694 fi
14695 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14696   as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14698 fi
14699
14700 : ${CONFIG_STATUS=./config.status}
14701 ac_write_fail=0
14702 ac_clean_files_save=$ac_clean_files
14703 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14705 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14706 as_write_fail=0
14707 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14708 #! $SHELL
14709 # Generated by $as_me.
14710 # Run this file to recreate the current configuration.
14711 # Compiler output produced by configure, useful for debugging
14712 # configure, is in config.log if it exists.
14713
14714 debug=false
14715 ac_cs_recheck=false
14716 ac_cs_silent=false
14717
14718 SHELL=\${CONFIG_SHELL-$SHELL}
14719 export SHELL
14720 _ASEOF
14721 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14722 ## -------------------- ##
14723 ## M4sh Initialization. ##
14724 ## -------------------- ##
14725
14726 # Be more Bourne compatible
14727 DUALCASE=1; export DUALCASE # for MKS sh
14728 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14729   emulate sh
14730   NULLCMD=:
14731   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14732   # is contrary to our usage.  Disable this feature.
14733   alias -g '${1+"$@"}'='"$@"'
14734   setopt NO_GLOB_SUBST
14735 else
14736   case `(set -o) 2>/dev/null` in #(
14737   *posix*) :
14738     set -o posix ;; #(
14739   *) :
14740      ;;
14741 esac
14742 fi
14743
14744
14745 as_nl='
14746 '
14747 export as_nl
14748 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14749 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14752 # Prefer a ksh shell builtin over an external printf program on Solaris,
14753 # but without wasting forks for bash or zsh.
14754 if test -z "$BASH_VERSION$ZSH_VERSION" \
14755     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14756   as_echo='print -r --'
14757   as_echo_n='print -rn --'
14758 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14759   as_echo='printf %s\n'
14760   as_echo_n='printf %s'
14761 else
14762   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14763     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14764     as_echo_n='/usr/ucb/echo -n'
14765   else
14766     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14767     as_echo_n_body='eval
14768       arg=$1;
14769       case $arg in #(
14770       *"$as_nl"*)
14771         expr "X$arg" : "X\\(.*\\)$as_nl";
14772         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14773       esac;
14774       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14775     '
14776     export as_echo_n_body
14777     as_echo_n='sh -c $as_echo_n_body as_echo'
14778   fi
14779   export as_echo_body
14780   as_echo='sh -c $as_echo_body as_echo'
14781 fi
14782
14783 # The user is always right.
14784 if test "${PATH_SEPARATOR+set}" != set; then
14785   PATH_SEPARATOR=:
14786   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14787     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14788       PATH_SEPARATOR=';'
14789   }
14790 fi
14791
14792
14793 # IFS
14794 # We need space, tab and new line, in precisely that order.  Quoting is
14795 # there to prevent editors from complaining about space-tab.
14796 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14797 # splitting by setting IFS to empty value.)
14798 IFS=" ""        $as_nl"
14799
14800 # Find who we are.  Look in the path if we contain no directory separator.
14801 case $0 in #((
14802   *[\\/]* ) as_myself=$0 ;;
14803   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804 for as_dir in $PATH
14805 do
14806   IFS=$as_save_IFS
14807   test -z "$as_dir" && as_dir=.
14808     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14809   done
14810 IFS=$as_save_IFS
14811
14812      ;;
14813 esac
14814 # We did not find ourselves, most probably we were run as `sh COMMAND'
14815 # in which case we are not to be found in the path.
14816 if test "x$as_myself" = x; then
14817   as_myself=$0
14818 fi
14819 if test ! -f "$as_myself"; then
14820   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14821   exit 1
14822 fi
14823
14824 # Unset variables that we do not need and which cause bugs (e.g. in
14825 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14826 # suppresses any "Segmentation fault" message there.  '((' could
14827 # trigger a bug in pdksh 5.2.14.
14828 for as_var in BASH_ENV ENV MAIL MAILPATH
14829 do eval test x\${$as_var+set} = xset \
14830   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14831 done
14832 PS1='$ '
14833 PS2='> '
14834 PS4='+ '
14835
14836 # NLS nuisances.
14837 LC_ALL=C
14838 export LC_ALL
14839 LANGUAGE=C
14840 export LANGUAGE
14841
14842 # CDPATH.
14843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14844
14845
14846 # as_fn_error ERROR [LINENO LOG_FD]
14847 # ---------------------------------
14848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14850 # script with status $?, using 1 if that was 0.
14851 as_fn_error ()
14852 {
14853   as_status=$?; test $as_status -eq 0 && as_status=1
14854   if test "$3"; then
14855     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14856     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14857   fi
14858   $as_echo "$as_me: error: $1" >&2
14859   as_fn_exit $as_status
14860 } # as_fn_error
14861
14862
14863 # as_fn_set_status STATUS
14864 # -----------------------
14865 # Set $? to STATUS, without forking.
14866 as_fn_set_status ()
14867 {
14868   return $1
14869 } # as_fn_set_status
14870
14871 # as_fn_exit STATUS
14872 # -----------------
14873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14874 as_fn_exit ()
14875 {
14876   set +e
14877   as_fn_set_status $1
14878   exit $1
14879 } # as_fn_exit
14880
14881 # as_fn_unset VAR
14882 # ---------------
14883 # Portably unset VAR.
14884 as_fn_unset ()
14885 {
14886   { eval $1=; unset $1;}
14887 }
14888 as_unset=as_fn_unset
14889 # as_fn_append VAR VALUE
14890 # ----------------------
14891 # Append the text in VALUE to the end of the definition contained in VAR. Take
14892 # advantage of any shell optimizations that allow amortized linear growth over
14893 # repeated appends, instead of the typical quadratic growth present in naive
14894 # implementations.
14895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14896   eval 'as_fn_append ()
14897   {
14898     eval $1+=\$2
14899   }'
14900 else
14901   as_fn_append ()
14902   {
14903     eval $1=\$$1\$2
14904   }
14905 fi # as_fn_append
14906
14907 # as_fn_arith ARG...
14908 # ------------------
14909 # Perform arithmetic evaluation on the ARGs, and store the result in the
14910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14911 # must be portable across $(()) and expr.
14912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14913   eval 'as_fn_arith ()
14914   {
14915     as_val=$(( $* ))
14916   }'
14917 else
14918   as_fn_arith ()
14919   {
14920     as_val=`expr "$@" || test $? -eq 1`
14921   }
14922 fi # as_fn_arith
14923
14924
14925 if expr a : '\(a\)' >/dev/null 2>&1 &&
14926    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14927   as_expr=expr
14928 else
14929   as_expr=false
14930 fi
14931
14932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14933   as_basename=basename
14934 else
14935   as_basename=false
14936 fi
14937
14938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14939   as_dirname=dirname
14940 else
14941   as_dirname=false
14942 fi
14943
14944 as_me=`$as_basename -- "$0" ||
14945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14946          X"$0" : 'X\(//\)$' \| \
14947          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14948 $as_echo X/"$0" |
14949     sed '/^.*\/\([^/][^/]*\)\/*$/{
14950             s//\1/
14951             q
14952           }
14953           /^X\/\(\/\/\)$/{
14954             s//\1/
14955             q
14956           }
14957           /^X\/\(\/\).*/{
14958             s//\1/
14959             q
14960           }
14961           s/.*/./; q'`
14962
14963 # Avoid depending upon Character Ranges.
14964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14967 as_cr_digits='0123456789'
14968 as_cr_alnum=$as_cr_Letters$as_cr_digits
14969
14970 ECHO_C= ECHO_N= ECHO_T=
14971 case `echo -n x` in #(((((
14972 -n*)
14973   case `echo 'xy\c'` in
14974   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14975   xy)  ECHO_C='\c';;
14976   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14977        ECHO_T=' ';;
14978   esac;;
14979 *)
14980   ECHO_N='-n';;
14981 esac
14982
14983 rm -f conf$$ conf$$.exe conf$$.file
14984 if test -d conf$$.dir; then
14985   rm -f conf$$.dir/conf$$.file
14986 else
14987   rm -f conf$$.dir
14988   mkdir conf$$.dir 2>/dev/null
14989 fi
14990 if (echo >conf$$.file) 2>/dev/null; then
14991   if ln -s conf$$.file conf$$ 2>/dev/null; then
14992     as_ln_s='ln -s'
14993     # ... but there are two gotchas:
14994     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14995     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14996     # In both cases, we have to default to `cp -p'.
14997     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14998       as_ln_s='cp -p'
14999   elif ln conf$$.file conf$$ 2>/dev/null; then
15000     as_ln_s=ln
15001   else
15002     as_ln_s='cp -p'
15003   fi
15004 else
15005   as_ln_s='cp -p'
15006 fi
15007 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15008 rmdir conf$$.dir 2>/dev/null
15009
15010
15011 # as_fn_mkdir_p
15012 # -------------
15013 # Create "$as_dir" as a directory, including parents if necessary.
15014 as_fn_mkdir_p ()
15015 {
15016
15017   case $as_dir in #(
15018   -*) as_dir=./$as_dir;;
15019   esac
15020   test -d "$as_dir" || eval $as_mkdir_p || {
15021     as_dirs=
15022     while :; do
15023       case $as_dir in #(
15024       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15025       *) as_qdir=$as_dir;;
15026       esac
15027       as_dirs="'$as_qdir' $as_dirs"
15028       as_dir=`$as_dirname -- "$as_dir" ||
15029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15030          X"$as_dir" : 'X\(//\)[^/]' \| \
15031          X"$as_dir" : 'X\(//\)$' \| \
15032          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15033 $as_echo X"$as_dir" |
15034     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15035             s//\1/
15036             q
15037           }
15038           /^X\(\/\/\)[^/].*/{
15039             s//\1/
15040             q
15041           }
15042           /^X\(\/\/\)$/{
15043             s//\1/
15044             q
15045           }
15046           /^X\(\/\).*/{
15047             s//\1/
15048             q
15049           }
15050           s/.*/./; q'`
15051       test -d "$as_dir" && break
15052     done
15053     test -z "$as_dirs" || eval "mkdir $as_dirs"
15054   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15055
15056
15057 } # as_fn_mkdir_p
15058 if mkdir -p . 2>/dev/null; then
15059   as_mkdir_p='mkdir -p "$as_dir"'
15060 else
15061   test -d ./-p && rmdir ./-p
15062   as_mkdir_p=false
15063 fi
15064
15065 if test -x / >/dev/null 2>&1; then
15066   as_test_x='test -x'
15067 else
15068   if ls -dL / >/dev/null 2>&1; then
15069     as_ls_L_option=L
15070   else
15071     as_ls_L_option=
15072   fi
15073   as_test_x='
15074     eval sh -c '\''
15075       if test -d "$1"; then
15076         test -d "$1/.";
15077       else
15078         case $1 in #(
15079         -*)set "./$1";;
15080         esac;
15081         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15082         ???[sx]*):;;*)false;;esac;fi
15083     '\'' sh
15084   '
15085 fi
15086 as_executable_p=$as_test_x
15087
15088 # Sed expression to map a string onto a valid CPP name.
15089 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15090
15091 # Sed expression to map a string onto a valid variable name.
15092 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15093
15094
15095 exec 6>&1
15096 ## ----------------------------------- ##
15097 ## Main body of $CONFIG_STATUS script. ##
15098 ## ----------------------------------- ##
15099 _ASEOF
15100 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15101
15102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15103 # Save the log message, to keep $0 and so on meaningful, and to
15104 # report actual input values of CONFIG_FILES etc. instead of their
15105 # values after options handling.
15106 ac_log="
15107 This file was extended by package-unused $as_me version-unused, which was
15108 generated by GNU Autoconf 2.64.  Invocation command line was
15109
15110   CONFIG_FILES    = $CONFIG_FILES
15111   CONFIG_HEADERS  = $CONFIG_HEADERS
15112   CONFIG_LINKS    = $CONFIG_LINKS
15113   CONFIG_COMMANDS = $CONFIG_COMMANDS
15114   $ $0 $@
15115
15116 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15117 "
15118
15119 _ACEOF
15120
15121 case $ac_config_files in *"
15122 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15123 esac
15124
15125 case $ac_config_headers in *"
15126 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15127 esac
15128
15129
15130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15131 # Files that config.status was made for.
15132 config_files="$ac_config_files"
15133 config_headers="$ac_config_headers"
15134 config_commands="$ac_config_commands"
15135
15136 _ACEOF
15137
15138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15139 ac_cs_usage="\
15140 \`$as_me' instantiates files and other configuration actions
15141 from templates according to the current configuration.  Unless the files
15142 and actions are specified as TAGs, all are instantiated by default.
15143
15144 Usage: $0 [OPTION]... [TAG]...
15145
15146   -h, --help       print this help, then exit
15147   -V, --version    print version number and configuration settings, then exit
15148   -q, --quiet, --silent
15149                    do not print progress messages
15150   -d, --debug      don't remove temporary files
15151       --recheck    update $as_me by reconfiguring in the same conditions
15152       --file=FILE[:TEMPLATE]
15153                    instantiate the configuration file FILE
15154       --header=FILE[:TEMPLATE]
15155                    instantiate the configuration header FILE
15156
15157 Configuration files:
15158 $config_files
15159
15160 Configuration headers:
15161 $config_headers
15162
15163 Configuration commands:
15164 $config_commands
15165
15166 Report bugs to the package provider."
15167
15168 _ACEOF
15169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15170 ac_cs_version="\\
15171 package-unused config.status version-unused
15172 configured by $0, generated by GNU Autoconf 2.64,
15173   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15174
15175 Copyright (C) 2009 Free Software Foundation, Inc.
15176 This config.status script is free software; the Free Software Foundation
15177 gives unlimited permission to copy, distribute and modify it."
15178
15179 ac_pwd='$ac_pwd'
15180 srcdir='$srcdir'
15181 INSTALL='$INSTALL'
15182 MKDIR_P='$MKDIR_P'
15183 AWK='$AWK'
15184 test -n "\$AWK" || AWK=awk
15185 _ACEOF
15186
15187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15188 # The default lists apply if the user does not specify any file.
15189 ac_need_defaults=:
15190 while test $# != 0
15191 do
15192   case $1 in
15193   --*=*)
15194     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15195     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15196     ac_shift=:
15197     ;;
15198   *)
15199     ac_option=$1
15200     ac_optarg=$2
15201     ac_shift=shift
15202     ;;
15203   esac
15204
15205   case $ac_option in
15206   # Handling of the options.
15207   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15208     ac_cs_recheck=: ;;
15209   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15210     $as_echo "$ac_cs_version"; exit ;;
15211   --debug | --debu | --deb | --de | --d | -d )
15212     debug=: ;;
15213   --file | --fil | --fi | --f )
15214     $ac_shift
15215     case $ac_optarg in
15216     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15217     esac
15218     as_fn_append CONFIG_FILES " '$ac_optarg'"
15219     ac_need_defaults=false;;
15220   --header | --heade | --head | --hea )
15221     $ac_shift
15222     case $ac_optarg in
15223     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15224     esac
15225     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15226     ac_need_defaults=false;;
15227   --he | --h)
15228     # Conflict between --help and --header
15229     as_fn_error "ambiguous option: \`$1'
15230 Try \`$0 --help' for more information.";;
15231   --help | --hel | -h )
15232     $as_echo "$ac_cs_usage"; exit ;;
15233   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15234   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15235     ac_cs_silent=: ;;
15236
15237   # This is an error.
15238   -*) as_fn_error "unrecognized option: \`$1'
15239 Try \`$0 --help' for more information." ;;
15240
15241   *) as_fn_append ac_config_targets " $1"
15242      ac_need_defaults=false ;;
15243
15244   esac
15245   shift
15246 done
15247
15248 ac_configure_extra_args=
15249
15250 if $ac_cs_silent; then
15251   exec 6>/dev/null
15252   ac_configure_extra_args="$ac_configure_extra_args --silent"
15253 fi
15254
15255 _ACEOF
15256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15257 if \$ac_cs_recheck; then
15258   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15259   shift
15260   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15261   CONFIG_SHELL='$SHELL'
15262   export CONFIG_SHELL
15263   exec "\$@"
15264 fi
15265
15266 _ACEOF
15267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15268 exec 5>>config.log
15269 {
15270   echo
15271   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15272 ## Running $as_me. ##
15273 _ASBOX
15274   $as_echo "$ac_log"
15275 } >&5
15276
15277 _ACEOF
15278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15279 #
15280 # INIT-COMMANDS
15281 #
15282
15283 srcdir="$srcdir"
15284 host="$host"
15285 target="$target"
15286 with_multisubdir="$with_multisubdir"
15287 with_multisrctop="$with_multisrctop"
15288 with_target_subdir="$with_target_subdir"
15289 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15290 multi_basedir="$multi_basedir"
15291 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15292 CC="$CC"
15293 CXX="$CXX"
15294 GFORTRAN="$GFORTRAN"
15295 GCJ="$GCJ"
15296 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15297
15298
15299 # The HP-UX ksh and POSIX shell print the target directory to stdout
15300 # if CDPATH is set.
15301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15302
15303 sed_quote_subst='$sed_quote_subst'
15304 double_quote_subst='$double_quote_subst'
15305 delay_variable_subst='$delay_variable_subst'
15306 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15307 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15308 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15309 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15310 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15311 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15312 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15313 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15314 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15315 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15316 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15317 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15318 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15319 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15320 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15321 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15322 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15323 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15324 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15325 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15326 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15327 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15328 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15329 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15330 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15331 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15332 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15333 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15334 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15335 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15336 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15337 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15338 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15339 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15340 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15341 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15342 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15343 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15344 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15345 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15346 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15347 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15348 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15349 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15350 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15351 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15352 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15353 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15354 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"`'
15355 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15356 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15357 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15358 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15359 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15360 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15361 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15362 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15363 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15364 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15365 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15366 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15367 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15368 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15369 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15370 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15371 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15372 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15373 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15374 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15375 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15376 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15377 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15378 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15379 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15380 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15381 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15382 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15383 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15384 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15385 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15386 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15387 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15388 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15389 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15390 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15391 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15392 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15393 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15394 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15395 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15396 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15397 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15398 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15399 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15400 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15401 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15402 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15403 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15404 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15405 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15406 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15407 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15408 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15409 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15410 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15411 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15412 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15413 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15414 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15415 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15416 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15417 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15418 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15419 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15420 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15421 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15422 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15423 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15424 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15425 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15426 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15427 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15428 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15429 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15430 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15431 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15432 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15433 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15434 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15435 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15436 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15437 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15438 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15439 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15440 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15441 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15442 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15443 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15444 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15445 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15446 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15447 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15448 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15449 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15450 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15451 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15452 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15453 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15454 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15455 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15456 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15457 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15458 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15459 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15460 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15461 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15462 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15463 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15464 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15465 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15466 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15467 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15468 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15469
15470 LTCC='$LTCC'
15471 LTCFLAGS='$LTCFLAGS'
15472 compiler='$compiler_DEFAULT'
15473
15474 # A function that is used when there is no print builtin or printf.
15475 func_fallback_echo ()
15476 {
15477   eval 'cat <<_LTECHO_EOF
15478 \$1
15479 _LTECHO_EOF'
15480 }
15481
15482 # Quote evaled strings.
15483 for var in SED \
15484 GREP \
15485 EGREP \
15486 FGREP \
15487 SHELL \
15488 ECHO \
15489 LD \
15490 NM \
15491 LN_S \
15492 lt_SP2NL \
15493 lt_NL2SP \
15494 reload_flag \
15495 OBJDUMP \
15496 deplibs_check_method \
15497 file_magic_cmd \
15498 AR \
15499 AR_FLAGS \
15500 STRIP \
15501 RANLIB \
15502 CC \
15503 CFLAGS \
15504 compiler \
15505 lt_cv_sys_global_symbol_pipe \
15506 lt_cv_sys_global_symbol_to_cdecl \
15507 lt_cv_sys_global_symbol_to_c_name_address \
15508 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15509 lt_prog_compiler_no_builtin_flag \
15510 lt_prog_compiler_wl \
15511 lt_prog_compiler_pic \
15512 lt_prog_compiler_static \
15513 lt_cv_prog_compiler_c_o \
15514 need_locks \
15515 DSYMUTIL \
15516 NMEDIT \
15517 LIPO \
15518 OTOOL \
15519 OTOOL64 \
15520 shrext_cmds \
15521 export_dynamic_flag_spec \
15522 whole_archive_flag_spec \
15523 compiler_needs_object \
15524 with_gnu_ld \
15525 allow_undefined_flag \
15526 no_undefined_flag \
15527 hardcode_libdir_flag_spec \
15528 hardcode_libdir_flag_spec_ld \
15529 hardcode_libdir_separator \
15530 fix_srcfile_path \
15531 exclude_expsyms \
15532 include_expsyms \
15533 file_list_spec \
15534 variables_saved_for_relink \
15535 libname_spec \
15536 library_names_spec \
15537 soname_spec \
15538 install_override_mode \
15539 finish_eval \
15540 old_striplib \
15541 striplib \
15542 LD_GO \
15543 reload_flag_GO \
15544 compiler_GO \
15545 lt_prog_compiler_no_builtin_flag_GO \
15546 lt_prog_compiler_wl_GO \
15547 lt_prog_compiler_pic_GO \
15548 lt_prog_compiler_static_GO \
15549 lt_cv_prog_compiler_c_o_GO \
15550 export_dynamic_flag_spec_GO \
15551 whole_archive_flag_spec_GO \
15552 compiler_needs_object_GO \
15553 with_gnu_ld_GO \
15554 allow_undefined_flag_GO \
15555 no_undefined_flag_GO \
15556 hardcode_libdir_flag_spec_GO \
15557 hardcode_libdir_flag_spec_ld_GO \
15558 hardcode_libdir_separator_GO \
15559 fix_srcfile_path_GO \
15560 exclude_expsyms_GO \
15561 include_expsyms_GO \
15562 file_list_spec_GO; do
15563     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15564     *[\\\\\\\`\\"\\\$]*)
15565       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15566       ;;
15567     *)
15568       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15569       ;;
15570     esac
15571 done
15572
15573 # Double-quote double-evaled strings.
15574 for var in reload_cmds \
15575 old_postinstall_cmds \
15576 old_postuninstall_cmds \
15577 old_archive_cmds \
15578 extract_expsyms_cmds \
15579 old_archive_from_new_cmds \
15580 old_archive_from_expsyms_cmds \
15581 archive_cmds \
15582 archive_expsym_cmds \
15583 module_cmds \
15584 module_expsym_cmds \
15585 export_symbols_cmds \
15586 prelink_cmds \
15587 postinstall_cmds \
15588 postuninstall_cmds \
15589 finish_cmds \
15590 sys_lib_search_path_spec \
15591 sys_lib_dlsearch_path_spec \
15592 reload_cmds_GO \
15593 old_archive_cmds_GO \
15594 old_archive_from_new_cmds_GO \
15595 old_archive_from_expsyms_cmds_GO \
15596 archive_cmds_GO \
15597 archive_expsym_cmds_GO \
15598 module_cmds_GO \
15599 module_expsym_cmds_GO \
15600 export_symbols_cmds_GO \
15601 prelink_cmds_GO; do
15602     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15603     *[\\\\\\\`\\"\\\$]*)
15604       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15605       ;;
15606     *)
15607       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15608       ;;
15609     esac
15610 done
15611
15612 ac_aux_dir='$ac_aux_dir'
15613 xsi_shell='$xsi_shell'
15614 lt_shell_append='$lt_shell_append'
15615
15616 # See if we are running on zsh, and set the options which allow our
15617 # commands through without removal of \ escapes INIT.
15618 if test -n "\${ZSH_VERSION+set}" ; then
15619    setopt NO_GLOB_SUBST
15620 fi
15621
15622
15623     PACKAGE='$PACKAGE'
15624     VERSION='$VERSION'
15625     TIMESTAMP='$TIMESTAMP'
15626     RM='$RM'
15627     ofile='$ofile'
15628
15629
15630
15631
15632
15633
15634 # Variables needed in config.status (file generation) which aren't already
15635 # passed by autoconf.
15636 SUBDIRS="$SUBDIRS"
15637
15638
15639 _ACEOF
15640
15641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15642
15643 # Handling of arguments.
15644 for ac_config_target in $ac_config_targets
15645 do
15646   case $ac_config_target in
15647     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15648     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15649     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15650     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15651     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15652     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15653     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15654
15655   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15656   esac
15657 done
15658
15659
15660 # If the user did not use the arguments to specify the items to instantiate,
15661 # then the envvar interface is used.  Set only those that are not.
15662 # We use the long form for the default assignment because of an extremely
15663 # bizarre bug on SunOS 4.1.3.
15664 if $ac_need_defaults; then
15665   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15666   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15667   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15668 fi
15669
15670 # Have a temporary directory for convenience.  Make it in the build tree
15671 # simply because there is no reason against having it here, and in addition,
15672 # creating and moving files from /tmp can sometimes cause problems.
15673 # Hook for its removal unless debugging.
15674 # Note that there is a small window in which the directory will not be cleaned:
15675 # after its creation but before its name has been assigned to `$tmp'.
15676 $debug ||
15677 {
15678   tmp=
15679   trap 'exit_status=$?
15680   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15681 ' 0
15682   trap 'as_fn_exit 1' 1 2 13 15
15683 }
15684 # Create a (secure) tmp directory for tmp files.
15685
15686 {
15687   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15688   test -n "$tmp" && test -d "$tmp"
15689 }  ||
15690 {
15691   tmp=./conf$$-$RANDOM
15692   (umask 077 && mkdir "$tmp")
15693 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15694
15695 # Set up the scripts for CONFIG_FILES section.
15696 # No need to generate them if there are no CONFIG_FILES.
15697 # This happens for instance with `./config.status config.h'.
15698 if test -n "$CONFIG_FILES"; then
15699
15700
15701 ac_cr=`echo X | tr X '\015'`
15702 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15703 # But we know of no other shell where ac_cr would be empty at this
15704 # point, so we can use a bashism as a fallback.
15705 if test "x$ac_cr" = x; then
15706   eval ac_cr=\$\'\\r\'
15707 fi
15708 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15709 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15710   ac_cs_awk_cr='\r'
15711 else
15712   ac_cs_awk_cr=$ac_cr
15713 fi
15714
15715 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15716 _ACEOF
15717
15718
15719 {
15720   echo "cat >conf$$subs.awk <<_ACEOF" &&
15721   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15722   echo "_ACEOF"
15723 } >conf$$subs.sh ||
15724   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15725 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15726 ac_delim='%!_!# '
15727 for ac_last_try in false false false false false :; do
15728   . ./conf$$subs.sh ||
15729     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15730
15731   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15732   if test $ac_delim_n = $ac_delim_num; then
15733     break
15734   elif $ac_last_try; then
15735     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15736   else
15737     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15738   fi
15739 done
15740 rm -f conf$$subs.sh
15741
15742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15743 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15744 _ACEOF
15745 sed -n '
15746 h
15747 s/^/S["/; s/!.*/"]=/
15748 p
15749 g
15750 s/^[^!]*!//
15751 :repl
15752 t repl
15753 s/'"$ac_delim"'$//
15754 t delim
15755 :nl
15756 h
15757 s/\(.\{148\}\).*/\1/
15758 t more1
15759 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15760 p
15761 n
15762 b repl
15763 :more1
15764 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15765 p
15766 g
15767 s/.\{148\}//
15768 t nl
15769 :delim
15770 h
15771 s/\(.\{148\}\).*/\1/
15772 t more2
15773 s/["\\]/\\&/g; s/^/"/; s/$/"/
15774 p
15775 b
15776 :more2
15777 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15778 p
15779 g
15780 s/.\{148\}//
15781 t delim
15782 ' <conf$$subs.awk | sed '
15783 /^[^""]/{
15784   N
15785   s/\n//
15786 }
15787 ' >>$CONFIG_STATUS || ac_write_fail=1
15788 rm -f conf$$subs.awk
15789 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15790 _ACAWK
15791 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15792   for (key in S) S_is_set[key] = 1
15793   FS = "\a"
15794
15795 }
15796 {
15797   line = $ 0
15798   nfields = split(line, field, "@")
15799   substed = 0
15800   len = length(field[1])
15801   for (i = 2; i < nfields; i++) {
15802     key = field[i]
15803     keylen = length(key)
15804     if (S_is_set[key]) {
15805       value = S[key]
15806       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15807       len += length(value) + length(field[++i])
15808       substed = 1
15809     } else
15810       len += 1 + keylen
15811   }
15812
15813   print line
15814 }
15815
15816 _ACAWK
15817 _ACEOF
15818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15819 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15820   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15821 else
15822   cat
15823 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15824   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15825 _ACEOF
15826
15827 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15828 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15829 # trailing colons and then remove the whole line if VPATH becomes empty
15830 # (actually we leave an empty line to preserve line numbers).
15831 if test "x$srcdir" = x.; then
15832   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15833 s/:*\$(srcdir):*/:/
15834 s/:*\${srcdir}:*/:/
15835 s/:*@srcdir@:*/:/
15836 s/^\([^=]*=[     ]*\):*/\1/
15837 s/:*$//
15838 s/^[^=]*=[       ]*$//
15839 }'
15840 fi
15841
15842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15843 fi # test -n "$CONFIG_FILES"
15844
15845 # Set up the scripts for CONFIG_HEADERS section.
15846 # No need to generate them if there are no CONFIG_HEADERS.
15847 # This happens for instance with `./config.status Makefile'.
15848 if test -n "$CONFIG_HEADERS"; then
15849 cat >"$tmp/defines.awk" <<\_ACAWK ||
15850 BEGIN {
15851 _ACEOF
15852
15853 # Transform confdefs.h into an awk script `defines.awk', embedded as
15854 # here-document in config.status, that substitutes the proper values into
15855 # config.h.in to produce config.h.
15856
15857 # Create a delimiter string that does not exist in confdefs.h, to ease
15858 # handling of long lines.
15859 ac_delim='%!_!# '
15860 for ac_last_try in false false :; do
15861   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15862   if test -z "$ac_t"; then
15863     break
15864   elif $ac_last_try; then
15865     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15866   else
15867     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15868   fi
15869 done
15870
15871 # For the awk script, D is an array of macro values keyed by name,
15872 # likewise P contains macro parameters if any.  Preserve backslash
15873 # newline sequences.
15874
15875 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15876 sed -n '
15877 s/.\{148\}/&'"$ac_delim"'/g
15878 t rset
15879 :rset
15880 s/^[     ]*#[    ]*define[       ][      ]*/ /
15881 t def
15882 d
15883 :def
15884 s/\\$//
15885 t bsnl
15886 s/["\\]/\\&/g
15887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15888 D["\1"]=" \3"/p
15889 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15890 d
15891 :bsnl
15892 s/["\\]/\\&/g
15893 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15894 D["\1"]=" \3\\\\\\n"\\/p
15895 t cont
15896 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15897 t cont
15898 d
15899 :cont
15900 n
15901 s/.\{148\}/&'"$ac_delim"'/g
15902 t clear
15903 :clear
15904 s/\\$//
15905 t bsnlc
15906 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15907 d
15908 :bsnlc
15909 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15910 b cont
15911 ' <confdefs.h | sed '
15912 s/'"$ac_delim"'/"\\\
15913 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15914
15915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15916   for (key in D) D_is_set[key] = 1
15917   FS = "\a"
15918 }
15919 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15920   line = \$ 0
15921   split(line, arg, " ")
15922   if (arg[1] == "#") {
15923     defundef = arg[2]
15924     mac1 = arg[3]
15925   } else {
15926     defundef = substr(arg[1], 2)
15927     mac1 = arg[2]
15928   }
15929   split(mac1, mac2, "(") #)
15930   macro = mac2[1]
15931   prefix = substr(line, 1, index(line, defundef) - 1)
15932   if (D_is_set[macro]) {
15933     # Preserve the white space surrounding the "#".
15934     print prefix "define", macro P[macro] D[macro]
15935     next
15936   } else {
15937     # Replace #undef with comments.  This is necessary, for example,
15938     # in the case of _POSIX_SOURCE, which is predefined and required
15939     # on some systems where configure will not decide to define it.
15940     if (defundef == "undef") {
15941       print "/*", prefix defundef, macro, "*/"
15942       next
15943     }
15944   }
15945 }
15946 { print }
15947 _ACAWK
15948 _ACEOF
15949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15950   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15951 fi # test -n "$CONFIG_HEADERS"
15952
15953
15954 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15955 shift
15956 for ac_tag
15957 do
15958   case $ac_tag in
15959   :[FHLC]) ac_mode=$ac_tag; continue;;
15960   esac
15961   case $ac_mode$ac_tag in
15962   :[FHL]*:*);;
15963   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15964   :[FH]-) ac_tag=-:-;;
15965   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15966   esac
15967   ac_save_IFS=$IFS
15968   IFS=:
15969   set x $ac_tag
15970   IFS=$ac_save_IFS
15971   shift
15972   ac_file=$1
15973   shift
15974
15975   case $ac_mode in
15976   :L) ac_source=$1;;
15977   :[FH])
15978     ac_file_inputs=
15979     for ac_f
15980     do
15981       case $ac_f in
15982       -) ac_f="$tmp/stdin";;
15983       *) # Look for the file first in the build tree, then in the source tree
15984          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15985          # because $ac_f cannot contain `:'.
15986          test -f "$ac_f" ||
15987            case $ac_f in
15988            [\\/$]*) false;;
15989            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15990            esac ||
15991            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15992       esac
15993       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15994       as_fn_append ac_file_inputs " '$ac_f'"
15995     done
15996
15997     # Let's still pretend it is `configure' which instantiates (i.e., don't
15998     # use $as_me), people would be surprised to read:
15999     #    /* config.h.  Generated by config.status.  */
16000     configure_input='Generated from '`
16001           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16002         `' by configure.'
16003     if test x"$ac_file" != x-; then
16004       configure_input="$ac_file.  $configure_input"
16005       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16006 $as_echo "$as_me: creating $ac_file" >&6;}
16007     fi
16008     # Neutralize special characters interpreted by sed in replacement strings.
16009     case $configure_input in #(
16010     *\&* | *\|* | *\\* )
16011        ac_sed_conf_input=`$as_echo "$configure_input" |
16012        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16013     *) ac_sed_conf_input=$configure_input;;
16014     esac
16015
16016     case $ac_tag in
16017     *:-:* | *:-) cat >"$tmp/stdin" \
16018       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16019     esac
16020     ;;
16021   esac
16022
16023   ac_dir=`$as_dirname -- "$ac_file" ||
16024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16025          X"$ac_file" : 'X\(//\)[^/]' \| \
16026          X"$ac_file" : 'X\(//\)$' \| \
16027          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16028 $as_echo X"$ac_file" |
16029     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16030             s//\1/
16031             q
16032           }
16033           /^X\(\/\/\)[^/].*/{
16034             s//\1/
16035             q
16036           }
16037           /^X\(\/\/\)$/{
16038             s//\1/
16039             q
16040           }
16041           /^X\(\/\).*/{
16042             s//\1/
16043             q
16044           }
16045           s/.*/./; q'`
16046   as_dir="$ac_dir"; as_fn_mkdir_p
16047   ac_builddir=.
16048
16049 case "$ac_dir" in
16050 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16051 *)
16052   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16053   # A ".." for each directory in $ac_dir_suffix.
16054   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16055   case $ac_top_builddir_sub in
16056   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16057   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16058   esac ;;
16059 esac
16060 ac_abs_top_builddir=$ac_pwd
16061 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16062 # for backward compatibility:
16063 ac_top_builddir=$ac_top_build_prefix
16064
16065 case $srcdir in
16066   .)  # We are building in place.
16067     ac_srcdir=.
16068     ac_top_srcdir=$ac_top_builddir_sub
16069     ac_abs_top_srcdir=$ac_pwd ;;
16070   [\\/]* | ?:[\\/]* )  # Absolute name.
16071     ac_srcdir=$srcdir$ac_dir_suffix;
16072     ac_top_srcdir=$srcdir
16073     ac_abs_top_srcdir=$srcdir ;;
16074   *) # Relative name.
16075     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16076     ac_top_srcdir=$ac_top_build_prefix$srcdir
16077     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16078 esac
16079 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16080
16081
16082   case $ac_mode in
16083   :F)
16084   #
16085   # CONFIG_FILE
16086   #
16087
16088   case $INSTALL in
16089   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16090   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16091   esac
16092   ac_MKDIR_P=$MKDIR_P
16093   case $MKDIR_P in
16094   [\\/$]* | ?:[\\/]* ) ;;
16095   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16096   esac
16097 _ACEOF
16098
16099 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16100 # If the template does not know about datarootdir, expand it.
16101 # FIXME: This hack should be removed a few years after 2.60.
16102 ac_datarootdir_hack=; ac_datarootdir_seen=
16103 ac_sed_dataroot='
16104 /datarootdir/ {
16105   p
16106   q
16107 }
16108 /@datadir@/p
16109 /@docdir@/p
16110 /@infodir@/p
16111 /@localedir@/p
16112 /@mandir@/p'
16113 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16114 *datarootdir*) ac_datarootdir_seen=yes;;
16115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16116   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16117 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16118 _ACEOF
16119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16120   ac_datarootdir_hack='
16121   s&@datadir@&$datadir&g
16122   s&@docdir@&$docdir&g
16123   s&@infodir@&$infodir&g
16124   s&@localedir@&$localedir&g
16125   s&@mandir@&$mandir&g
16126   s&\\\${datarootdir}&$datarootdir&g' ;;
16127 esac
16128 _ACEOF
16129
16130 # Neutralize VPATH when `$srcdir' = `.'.
16131 # Shell code in configure.ac might set extrasub.
16132 # FIXME: do we really want to maintain this feature?
16133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16134 ac_sed_extra="$ac_vpsub
16135 $extrasub
16136 _ACEOF
16137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16138 :t
16139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16140 s|@configure_input@|$ac_sed_conf_input|;t t
16141 s&@top_builddir@&$ac_top_builddir_sub&;t t
16142 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16143 s&@srcdir@&$ac_srcdir&;t t
16144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16145 s&@top_srcdir@&$ac_top_srcdir&;t t
16146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16147 s&@builddir@&$ac_builddir&;t t
16148 s&@abs_builddir@&$ac_abs_builddir&;t t
16149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16150 s&@INSTALL@&$ac_INSTALL&;t t
16151 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16152 $ac_datarootdir_hack
16153 "
16154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16155   || as_fn_error "could not create $ac_file" "$LINENO" 5
16156
16157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16158   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16159   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16160   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16161 which seems to be undefined.  Please make sure it is defined." >&5
16162 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16163 which seems to be undefined.  Please make sure it is defined." >&2;}
16164
16165   rm -f "$tmp/stdin"
16166   case $ac_file in
16167   -) cat "$tmp/out" && rm -f "$tmp/out";;
16168   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16169   esac \
16170   || as_fn_error "could not create $ac_file" "$LINENO" 5
16171  ;;
16172   :H)
16173   #
16174   # CONFIG_HEADER
16175   #
16176   if test x"$ac_file" != x-; then
16177     {
16178       $as_echo "/* $configure_input  */" \
16179       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16180     } >"$tmp/config.h" \
16181       || as_fn_error "could not create $ac_file" "$LINENO" 5
16182     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16183       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16184 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16185     else
16186       rm -f "$ac_file"
16187       mv "$tmp/config.h" "$ac_file" \
16188         || as_fn_error "could not create $ac_file" "$LINENO" 5
16189     fi
16190   else
16191     $as_echo "/* $configure_input  */" \
16192       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16193       || as_fn_error "could not create -" "$LINENO" 5
16194   fi
16195 # Compute "$ac_file"'s index in $config_headers.
16196 _am_arg="$ac_file"
16197 _am_stamp_count=1
16198 for _am_header in $config_headers :; do
16199   case $_am_header in
16200     $_am_arg | $_am_arg:* )
16201       break ;;
16202     * )
16203       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16204   esac
16205 done
16206 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16207 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208          X"$_am_arg" : 'X\(//\)[^/]' \| \
16209          X"$_am_arg" : 'X\(//\)$' \| \
16210          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16211 $as_echo X"$_am_arg" |
16212     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16213             s//\1/
16214             q
16215           }
16216           /^X\(\/\/\)[^/].*/{
16217             s//\1/
16218             q
16219           }
16220           /^X\(\/\/\)$/{
16221             s//\1/
16222             q
16223           }
16224           /^X\(\/\).*/{
16225             s//\1/
16226             q
16227           }
16228           s/.*/./; q'`/stamp-h$_am_stamp_count
16229  ;;
16230
16231   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16232 $as_echo "$as_me: executing $ac_file commands" >&6;}
16233  ;;
16234   esac
16235
16236
16237   case $ac_file$ac_mode in
16238     "default-1":C)
16239 # Only add multilib support code if we just rebuilt the top-level
16240 # Makefile.
16241 case " $CONFIG_FILES " in
16242  *" Makefile "*)
16243    ac_file=Makefile . ${multi_basedir}/config-ml.in
16244    ;;
16245 esac ;;
16246     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16247   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16248   # are listed without --file.  Let's play safe and only enable the eval
16249   # if we detect the quoting.
16250   case $CONFIG_FILES in
16251   *\'*) eval set x "$CONFIG_FILES" ;;
16252   *)   set x $CONFIG_FILES ;;
16253   esac
16254   shift
16255   for mf
16256   do
16257     # Strip MF so we end up with the name of the file.
16258     mf=`echo "$mf" | sed -e 's/:.*$//'`
16259     # Check whether this is an Automake generated Makefile or not.
16260     # We used to match only the files named `Makefile.in', but
16261     # some people rename them; so instead we look at the file content.
16262     # Grep'ing the first line is not enough: some people post-process
16263     # each Makefile.in and add a new line on top of each file to say so.
16264     # Grep'ing the whole file is not good either: AIX grep has a line
16265     # limit of 2048, but all sed's we know have understand at least 4000.
16266     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16267       dirpart=`$as_dirname -- "$mf" ||
16268 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16269          X"$mf" : 'X\(//\)[^/]' \| \
16270          X"$mf" : 'X\(//\)$' \| \
16271          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16272 $as_echo X"$mf" |
16273     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16274             s//\1/
16275             q
16276           }
16277           /^X\(\/\/\)[^/].*/{
16278             s//\1/
16279             q
16280           }
16281           /^X\(\/\/\)$/{
16282             s//\1/
16283             q
16284           }
16285           /^X\(\/\).*/{
16286             s//\1/
16287             q
16288           }
16289           s/.*/./; q'`
16290     else
16291       continue
16292     fi
16293     # Extract the definition of DEPDIR, am__include, and am__quote
16294     # from the Makefile without running `make'.
16295     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16296     test -z "$DEPDIR" && continue
16297     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16298     test -z "am__include" && continue
16299     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16300     # When using ansi2knr, U may be empty or an underscore; expand it
16301     U=`sed -n 's/^U = //p' < "$mf"`
16302     # Find all dependency output files, they are included files with
16303     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16304     # simplest approach to changing $(DEPDIR) to its actual value in the
16305     # expansion.
16306     for file in `sed -n "
16307       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16308          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16309       # Make sure the directory exists.
16310       test -f "$dirpart/$file" && continue
16311       fdir=`$as_dirname -- "$file" ||
16312 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16313          X"$file" : 'X\(//\)[^/]' \| \
16314          X"$file" : 'X\(//\)$' \| \
16315          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16316 $as_echo X"$file" |
16317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16318             s//\1/
16319             q
16320           }
16321           /^X\(\/\/\)[^/].*/{
16322             s//\1/
16323             q
16324           }
16325           /^X\(\/\/\)$/{
16326             s//\1/
16327             q
16328           }
16329           /^X\(\/\).*/{
16330             s//\1/
16331             q
16332           }
16333           s/.*/./; q'`
16334       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16335       # echo "creating $dirpart/$file"
16336       echo '# dummy' > "$dirpart/$file"
16337     done
16338   done
16339 }
16340  ;;
16341     "libtool":C)
16342
16343     # See if we are running on zsh, and set the options which allow our
16344     # commands through without removal of \ escapes.
16345     if test -n "${ZSH_VERSION+set}" ; then
16346       setopt NO_GLOB_SUBST
16347     fi
16348
16349     cfgfile="${ofile}T"
16350     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16351     $RM "$cfgfile"
16352
16353     cat <<_LT_EOF >> "$cfgfile"
16354 #! $SHELL
16355
16356 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16357 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16358 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16359 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16360 #
16361 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16362 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16363 #   Written by Gordon Matzigkeit, 1996
16364 #
16365 #   This file is part of GNU Libtool.
16366 #
16367 # GNU Libtool is free software; you can redistribute it and/or
16368 # modify it under the terms of the GNU General Public License as
16369 # published by the Free Software Foundation; either version 2 of
16370 # the License, or (at your option) any later version.
16371 #
16372 # As a special exception to the GNU General Public License,
16373 # if you distribute this file as part of a program or library that
16374 # is built using GNU Libtool, you may include this file under the
16375 # same distribution terms that you use for the rest of that program.
16376 #
16377 # GNU Libtool is distributed in the hope that it will be useful,
16378 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16379 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16380 # GNU General Public License for more details.
16381 #
16382 # You should have received a copy of the GNU General Public License
16383 # along with GNU Libtool; see the file COPYING.  If not, a copy
16384 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16385 # obtained by writing to the Free Software Foundation, Inc.,
16386 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16387
16388
16389 # The names of the tagged configurations supported by this script.
16390 available_tags="GO "
16391
16392 # ### BEGIN LIBTOOL CONFIG
16393
16394 # A sed program that does not truncate output.
16395 SED=$lt_SED
16396
16397 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16398 Xsed="\$SED -e 1s/^X//"
16399
16400 # A grep program that handles long lines.
16401 GREP=$lt_GREP
16402
16403 # An ERE matcher.
16404 EGREP=$lt_EGREP
16405
16406 # A literal string matcher.
16407 FGREP=$lt_FGREP
16408
16409 # Shell to use when invoking shell scripts.
16410 SHELL=$lt_SHELL
16411
16412 # An echo program that protects backslashes.
16413 ECHO=$lt_ECHO
16414
16415 # Which release of libtool.m4 was used?
16416 macro_version=$macro_version
16417 macro_revision=$macro_revision
16418
16419 # Whether or not to build shared libraries.
16420 build_libtool_libs=$enable_shared
16421
16422 # Whether or not to build static libraries.
16423 build_old_libs=$enable_static
16424
16425 # What type of objects to build.
16426 pic_mode=$pic_mode
16427
16428 # Whether or not to optimize for fast installation.
16429 fast_install=$enable_fast_install
16430
16431 # The host system.
16432 host_alias=$host_alias
16433 host=$host
16434 host_os=$host_os
16435
16436 # The build system.
16437 build_alias=$build_alias
16438 build=$build
16439 build_os=$build_os
16440
16441 # A BSD- or MS-compatible name lister.
16442 NM=$lt_NM
16443
16444 # Whether we need soft or hard links.
16445 LN_S=$lt_LN_S
16446
16447 # What is the maximum length of a command?
16448 max_cmd_len=$max_cmd_len
16449
16450 # Object file suffix (normally "o").
16451 objext=$ac_objext
16452
16453 # Executable file suffix (normally "").
16454 exeext=$exeext
16455
16456 # whether the shell understands "unset".
16457 lt_unset=$lt_unset
16458
16459 # turn spaces into newlines.
16460 SP2NL=$lt_lt_SP2NL
16461
16462 # turn newlines into spaces.
16463 NL2SP=$lt_lt_NL2SP
16464
16465 # An object symbol dumper.
16466 OBJDUMP=$lt_OBJDUMP
16467
16468 # Method to check whether dependent libraries are shared objects.
16469 deplibs_check_method=$lt_deplibs_check_method
16470
16471 # Command to use when deplibs_check_method == "file_magic".
16472 file_magic_cmd=$lt_file_magic_cmd
16473
16474 # The archiver.
16475 AR=$lt_AR
16476 AR_FLAGS=$lt_AR_FLAGS
16477
16478 # A symbol stripping program.
16479 STRIP=$lt_STRIP
16480
16481 # Commands used to install an old-style archive.
16482 RANLIB=$lt_RANLIB
16483 old_postinstall_cmds=$lt_old_postinstall_cmds
16484 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16485
16486 # Whether to use a lock for old archive extraction.
16487 lock_old_archive_extraction=$lock_old_archive_extraction
16488
16489 # A C compiler.
16490 LTCC=$lt_CC
16491
16492 # LTCC compiler flags.
16493 LTCFLAGS=$lt_CFLAGS
16494
16495 # Take the output of nm and produce a listing of raw symbols and C names.
16496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16497
16498 # Transform the output of nm in a proper C declaration.
16499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16500
16501 # Transform the output of nm in a C name address pair.
16502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16503
16504 # Transform the output of nm in a C name address pair when lib prefix is needed.
16505 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16506
16507 # The name of the directory that contains temporary libtool files.
16508 objdir=$objdir
16509
16510 # Used to examine libraries when file_magic_cmd begins with "file".
16511 MAGIC_CMD=$MAGIC_CMD
16512
16513 # Must we lock files when doing compilation?
16514 need_locks=$lt_need_locks
16515
16516 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16517 DSYMUTIL=$lt_DSYMUTIL
16518
16519 # Tool to change global to local symbols on Mac OS X.
16520 NMEDIT=$lt_NMEDIT
16521
16522 # Tool to manipulate fat objects and archives on Mac OS X.
16523 LIPO=$lt_LIPO
16524
16525 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16526 OTOOL=$lt_OTOOL
16527
16528 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16529 OTOOL64=$lt_OTOOL64
16530
16531 # Old archive suffix (normally "a").
16532 libext=$libext
16533
16534 # Shared library suffix (normally ".so").
16535 shrext_cmds=$lt_shrext_cmds
16536
16537 # The commands to extract the exported symbol list from a shared archive.
16538 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16539
16540 # Variables whose values should be saved in libtool wrapper scripts and
16541 # restored at link time.
16542 variables_saved_for_relink=$lt_variables_saved_for_relink
16543
16544 # Do we need the "lib" prefix for modules?
16545 need_lib_prefix=$need_lib_prefix
16546
16547 # Do we need a version for libraries?
16548 need_version=$need_version
16549
16550 # Library versioning type.
16551 version_type=$version_type
16552
16553 # Shared library runtime path variable.
16554 runpath_var=$runpath_var
16555
16556 # Shared library path variable.
16557 shlibpath_var=$shlibpath_var
16558
16559 # Is shlibpath searched before the hard-coded library search path?
16560 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16561
16562 # Format of library name prefix.
16563 libname_spec=$lt_libname_spec
16564
16565 # List of archive names.  First name is the real one, the rest are links.
16566 # The last name is the one that the linker finds with -lNAME
16567 library_names_spec=$lt_library_names_spec
16568
16569 # The coded name of the library, if different from the real name.
16570 soname_spec=$lt_soname_spec
16571
16572 # Permission mode override for installation of shared libraries.
16573 install_override_mode=$lt_install_override_mode
16574
16575 # Command to use after installation of a shared archive.
16576 postinstall_cmds=$lt_postinstall_cmds
16577
16578 # Command to use after uninstallation of a shared archive.
16579 postuninstall_cmds=$lt_postuninstall_cmds
16580
16581 # Commands used to finish a libtool library installation in a directory.
16582 finish_cmds=$lt_finish_cmds
16583
16584 # As "finish_cmds", except a single script fragment to be evaled but
16585 # not shown.
16586 finish_eval=$lt_finish_eval
16587
16588 # Whether we should hardcode library paths into libraries.
16589 hardcode_into_libs=$hardcode_into_libs
16590
16591 # Compile-time system search path for libraries.
16592 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16593
16594 # Run-time system search path for libraries.
16595 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16596
16597 # Whether dlopen is supported.
16598 dlopen_support=$enable_dlopen
16599
16600 # Whether dlopen of programs is supported.
16601 dlopen_self=$enable_dlopen_self
16602
16603 # Whether dlopen of statically linked programs is supported.
16604 dlopen_self_static=$enable_dlopen_self_static
16605
16606 # Commands to strip libraries.
16607 old_striplib=$lt_old_striplib
16608 striplib=$lt_striplib
16609
16610
16611 # The linker used to build libraries.
16612 LD=$lt_LD
16613
16614 # How to create reloadable object files.
16615 reload_flag=$lt_reload_flag
16616 reload_cmds=$lt_reload_cmds
16617
16618 # Commands used to build an old-style archive.
16619 old_archive_cmds=$lt_old_archive_cmds
16620
16621 # A language specific compiler.
16622 CC=$lt_compiler
16623
16624 # Is the compiler the GNU compiler?
16625 with_gcc=$GCC
16626
16627 # Compiler flag to turn off builtin functions.
16628 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16629
16630 # How to pass a linker flag through the compiler.
16631 wl=$lt_lt_prog_compiler_wl
16632
16633 # Additional compiler flags for building library objects.
16634 pic_flag=$lt_lt_prog_compiler_pic
16635
16636 # Compiler flag to prevent dynamic linking.
16637 link_static_flag=$lt_lt_prog_compiler_static
16638
16639 # Does compiler simultaneously support -c and -o options?
16640 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16641
16642 # Whether or not to add -lc for building shared libraries.
16643 build_libtool_need_lc=$archive_cmds_need_lc
16644
16645 # Whether or not to disallow shared libs when runtime libs are static.
16646 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16647
16648 # Compiler flag to allow reflexive dlopens.
16649 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16650
16651 # Compiler flag to generate shared objects directly from archives.
16652 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16653
16654 # Whether the compiler copes with passing no objects directly.
16655 compiler_needs_object=$lt_compiler_needs_object
16656
16657 # Create an old-style archive from a shared archive.
16658 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16659
16660 # Create a temporary old-style archive to link instead of a shared archive.
16661 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16662
16663 # Commands used to build a shared archive.
16664 archive_cmds=$lt_archive_cmds
16665 archive_expsym_cmds=$lt_archive_expsym_cmds
16666
16667 # Commands used to build a loadable module if different from building
16668 # a shared archive.
16669 module_cmds=$lt_module_cmds
16670 module_expsym_cmds=$lt_module_expsym_cmds
16671
16672 # Whether we are building with GNU ld or not.
16673 with_gnu_ld=$lt_with_gnu_ld
16674
16675 # Flag that allows shared libraries with undefined symbols to be built.
16676 allow_undefined_flag=$lt_allow_undefined_flag
16677
16678 # Flag that enforces no undefined symbols.
16679 no_undefined_flag=$lt_no_undefined_flag
16680
16681 # Flag to hardcode \$libdir into a binary during linking.
16682 # This must work even if \$libdir does not exist
16683 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16684
16685 # If ld is used when linking, flag to hardcode \$libdir into a binary
16686 # during linking.  This must work even if \$libdir does not exist.
16687 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16688
16689 # Whether we need a single "-rpath" flag with a separated argument.
16690 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16691
16692 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16693 # DIR into the resulting binary.
16694 hardcode_direct=$hardcode_direct
16695
16696 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16697 # DIR into the resulting binary and the resulting library dependency is
16698 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16699 # library is relocated.
16700 hardcode_direct_absolute=$hardcode_direct_absolute
16701
16702 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16703 # into the resulting binary.
16704 hardcode_minus_L=$hardcode_minus_L
16705
16706 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16707 # into the resulting binary.
16708 hardcode_shlibpath_var=$hardcode_shlibpath_var
16709
16710 # Set to "yes" if building a shared library automatically hardcodes DIR
16711 # into the library and all subsequent libraries and executables linked
16712 # against it.
16713 hardcode_automatic=$hardcode_automatic
16714
16715 # Set to yes if linker adds runtime paths of dependent libraries
16716 # to runtime path list.
16717 inherit_rpath=$inherit_rpath
16718
16719 # Whether libtool must link a program against all its dependency libraries.
16720 link_all_deplibs=$link_all_deplibs
16721
16722 # Fix the shell variable \$srcfile for the compiler.
16723 fix_srcfile_path=$lt_fix_srcfile_path
16724
16725 # Set to "yes" if exported symbols are required.
16726 always_export_symbols=$always_export_symbols
16727
16728 # The commands to list exported symbols.
16729 export_symbols_cmds=$lt_export_symbols_cmds
16730
16731 # Symbols that should not be listed in the preloaded symbols.
16732 exclude_expsyms=$lt_exclude_expsyms
16733
16734 # Symbols that must always be exported.
16735 include_expsyms=$lt_include_expsyms
16736
16737 # Commands necessary for linking programs (against libraries) with templates.
16738 prelink_cmds=$lt_prelink_cmds
16739
16740 # Specify filename containing input files.
16741 file_list_spec=$lt_file_list_spec
16742
16743 # How to hardcode a shared library path into an executable.
16744 hardcode_action=$hardcode_action
16745
16746 # ### END LIBTOOL CONFIG
16747
16748 _LT_EOF
16749
16750   case $host_os in
16751   aix3*)
16752     cat <<\_LT_EOF >> "$cfgfile"
16753 # AIX sometimes has problems with the GCC collect2 program.  For some
16754 # reason, if we set the COLLECT_NAMES environment variable, the problems
16755 # vanish in a puff of smoke.
16756 if test "X${COLLECT_NAMES+set}" != Xset; then
16757   COLLECT_NAMES=
16758   export COLLECT_NAMES
16759 fi
16760 _LT_EOF
16761     ;;
16762   esac
16763
16764
16765 ltmain="$ac_aux_dir/ltmain.sh"
16766
16767
16768   # We use sed instead of cat because bash on DJGPP gets confused if
16769   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16770   # text mode, it properly converts lines to CR/LF.  This bash problem
16771   # is reportedly fixed, but why not run on old versions too?
16772   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16773     || (rm -f "$cfgfile"; exit 1)
16774
16775   case $xsi_shell in
16776   yes)
16777     cat << \_LT_EOF >> "$cfgfile"
16778
16779 # func_dirname file append nondir_replacement
16780 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16781 # otherwise set result to NONDIR_REPLACEMENT.
16782 func_dirname ()
16783 {
16784   case ${1} in
16785     */*) func_dirname_result="${1%/*}${2}" ;;
16786     *  ) func_dirname_result="${3}" ;;
16787   esac
16788 }
16789
16790 # func_basename file
16791 func_basename ()
16792 {
16793   func_basename_result="${1##*/}"
16794 }
16795
16796 # func_dirname_and_basename file append nondir_replacement
16797 # perform func_basename and func_dirname in a single function
16798 # call:
16799 #   dirname:  Compute the dirname of FILE.  If nonempty,
16800 #             add APPEND to the result, otherwise set result
16801 #             to NONDIR_REPLACEMENT.
16802 #             value returned in "$func_dirname_result"
16803 #   basename: Compute filename of FILE.
16804 #             value retuned in "$func_basename_result"
16805 # Implementation must be kept synchronized with func_dirname
16806 # and func_basename. For efficiency, we do not delegate to
16807 # those functions but instead duplicate the functionality here.
16808 func_dirname_and_basename ()
16809 {
16810   case ${1} in
16811     */*) func_dirname_result="${1%/*}${2}" ;;
16812     *  ) func_dirname_result="${3}" ;;
16813   esac
16814   func_basename_result="${1##*/}"
16815 }
16816
16817 # func_stripname prefix suffix name
16818 # strip PREFIX and SUFFIX off of NAME.
16819 # PREFIX and SUFFIX must not contain globbing or regex special
16820 # characters, hashes, percent signs, but SUFFIX may contain a leading
16821 # dot (in which case that matches only a dot).
16822 func_stripname ()
16823 {
16824   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16825   # positional parameters, so assign one to ordinary parameter first.
16826   func_stripname_result=${3}
16827   func_stripname_result=${func_stripname_result#"${1}"}
16828   func_stripname_result=${func_stripname_result%"${2}"}
16829 }
16830
16831 # func_opt_split
16832 func_opt_split ()
16833 {
16834   func_opt_split_opt=${1%%=*}
16835   func_opt_split_arg=${1#*=}
16836 }
16837
16838 # func_lo2o object
16839 func_lo2o ()
16840 {
16841   case ${1} in
16842     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16843     *)    func_lo2o_result=${1} ;;
16844   esac
16845 }
16846
16847 # func_xform libobj-or-source
16848 func_xform ()
16849 {
16850   func_xform_result=${1%.*}.lo
16851 }
16852
16853 # func_arith arithmetic-term...
16854 func_arith ()
16855 {
16856   func_arith_result=$(( $* ))
16857 }
16858
16859 # func_len string
16860 # STRING may not start with a hyphen.
16861 func_len ()
16862 {
16863   func_len_result=${#1}
16864 }
16865
16866 _LT_EOF
16867     ;;
16868   *) # Bourne compatible functions.
16869     cat << \_LT_EOF >> "$cfgfile"
16870
16871 # func_dirname file append nondir_replacement
16872 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16873 # otherwise set result to NONDIR_REPLACEMENT.
16874 func_dirname ()
16875 {
16876   # Extract subdirectory from the argument.
16877   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16878   if test "X$func_dirname_result" = "X${1}"; then
16879     func_dirname_result="${3}"
16880   else
16881     func_dirname_result="$func_dirname_result${2}"
16882   fi
16883 }
16884
16885 # func_basename file
16886 func_basename ()
16887 {
16888   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16889 }
16890
16891
16892 # func_stripname prefix suffix name
16893 # strip PREFIX and SUFFIX off of NAME.
16894 # PREFIX and SUFFIX must not contain globbing or regex special
16895 # characters, hashes, percent signs, but SUFFIX may contain a leading
16896 # dot (in which case that matches only a dot).
16897 # func_strip_suffix prefix name
16898 func_stripname ()
16899 {
16900   case ${2} in
16901     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16902     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16903   esac
16904 }
16905
16906 # sed scripts:
16907 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16908 my_sed_long_arg='1s/^-[^=]*=//'
16909
16910 # func_opt_split
16911 func_opt_split ()
16912 {
16913   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16914   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16915 }
16916
16917 # func_lo2o object
16918 func_lo2o ()
16919 {
16920   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16921 }
16922
16923 # func_xform libobj-or-source
16924 func_xform ()
16925 {
16926   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16927 }
16928
16929 # func_arith arithmetic-term...
16930 func_arith ()
16931 {
16932   func_arith_result=`expr "$@"`
16933 }
16934
16935 # func_len string
16936 # STRING may not start with a hyphen.
16937 func_len ()
16938 {
16939   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16940 }
16941
16942 _LT_EOF
16943 esac
16944
16945 case $lt_shell_append in
16946   yes)
16947     cat << \_LT_EOF >> "$cfgfile"
16948
16949 # func_append var value
16950 # Append VALUE to the end of shell variable VAR.
16951 func_append ()
16952 {
16953   eval "$1+=\$2"
16954 }
16955 _LT_EOF
16956     ;;
16957   *)
16958     cat << \_LT_EOF >> "$cfgfile"
16959
16960 # func_append var value
16961 # Append VALUE to the end of shell variable VAR.
16962 func_append ()
16963 {
16964   eval "$1=\$$1\$2"
16965 }
16966
16967 _LT_EOF
16968     ;;
16969   esac
16970
16971
16972   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16973     || (rm -f "$cfgfile"; exit 1)
16974
16975   mv -f "$cfgfile" "$ofile" ||
16976     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16977   chmod +x "$ofile"
16978
16979
16980     cat <<_LT_EOF >> "$ofile"
16981
16982 # ### BEGIN LIBTOOL TAG CONFIG: GO
16983
16984 # The linker used to build libraries.
16985 LD=$lt_LD_GO
16986
16987 # How to create reloadable object files.
16988 reload_flag=$lt_reload_flag_GO
16989 reload_cmds=$lt_reload_cmds_GO
16990
16991 # Commands used to build an old-style archive.
16992 old_archive_cmds=$lt_old_archive_cmds_GO
16993
16994 # A language specific compiler.
16995 CC=$lt_compiler_GO
16996
16997 # Is the compiler the GNU compiler?
16998 with_gcc=$GCC_GO
16999
17000 # Compiler flag to turn off builtin functions.
17001 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17002
17003 # How to pass a linker flag through the compiler.
17004 wl=$lt_lt_prog_compiler_wl_GO
17005
17006 # Additional compiler flags for building library objects.
17007 pic_flag=$lt_lt_prog_compiler_pic_GO
17008
17009 # Compiler flag to prevent dynamic linking.
17010 link_static_flag=$lt_lt_prog_compiler_static_GO
17011
17012 # Does compiler simultaneously support -c and -o options?
17013 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17014
17015 # Whether or not to add -lc for building shared libraries.
17016 build_libtool_need_lc=$archive_cmds_need_lc_GO
17017
17018 # Whether or not to disallow shared libs when runtime libs are static.
17019 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17020
17021 # Compiler flag to allow reflexive dlopens.
17022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17023
17024 # Compiler flag to generate shared objects directly from archives.
17025 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17026
17027 # Whether the compiler copes with passing no objects directly.
17028 compiler_needs_object=$lt_compiler_needs_object_GO
17029
17030 # Create an old-style archive from a shared archive.
17031 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17032
17033 # Create a temporary old-style archive to link instead of a shared archive.
17034 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17035
17036 # Commands used to build a shared archive.
17037 archive_cmds=$lt_archive_cmds_GO
17038 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17039
17040 # Commands used to build a loadable module if different from building
17041 # a shared archive.
17042 module_cmds=$lt_module_cmds_GO
17043 module_expsym_cmds=$lt_module_expsym_cmds_GO
17044
17045 # Whether we are building with GNU ld or not.
17046 with_gnu_ld=$lt_with_gnu_ld_GO
17047
17048 # Flag that allows shared libraries with undefined symbols to be built.
17049 allow_undefined_flag=$lt_allow_undefined_flag_GO
17050
17051 # Flag that enforces no undefined symbols.
17052 no_undefined_flag=$lt_no_undefined_flag_GO
17053
17054 # Flag to hardcode \$libdir into a binary during linking.
17055 # This must work even if \$libdir does not exist
17056 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17057
17058 # If ld is used when linking, flag to hardcode \$libdir into a binary
17059 # during linking.  This must work even if \$libdir does not exist.
17060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17061
17062 # Whether we need a single "-rpath" flag with a separated argument.
17063 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17064
17065 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17066 # DIR into the resulting binary.
17067 hardcode_direct=$hardcode_direct_GO
17068
17069 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17070 # DIR into the resulting binary and the resulting library dependency is
17071 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17072 # library is relocated.
17073 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17074
17075 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17076 # into the resulting binary.
17077 hardcode_minus_L=$hardcode_minus_L_GO
17078
17079 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17080 # into the resulting binary.
17081 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17082
17083 # Set to "yes" if building a shared library automatically hardcodes DIR
17084 # into the library and all subsequent libraries and executables linked
17085 # against it.
17086 hardcode_automatic=$hardcode_automatic_GO
17087
17088 # Set to yes if linker adds runtime paths of dependent libraries
17089 # to runtime path list.
17090 inherit_rpath=$inherit_rpath_GO
17091
17092 # Whether libtool must link a program against all its dependency libraries.
17093 link_all_deplibs=$link_all_deplibs_GO
17094
17095 # Fix the shell variable \$srcfile for the compiler.
17096 fix_srcfile_path=$lt_fix_srcfile_path_GO
17097
17098 # Set to "yes" if exported symbols are required.
17099 always_export_symbols=$always_export_symbols_GO
17100
17101 # The commands to list exported symbols.
17102 export_symbols_cmds=$lt_export_symbols_cmds_GO
17103
17104 # Symbols that should not be listed in the preloaded symbols.
17105 exclude_expsyms=$lt_exclude_expsyms_GO
17106
17107 # Symbols that must always be exported.
17108 include_expsyms=$lt_include_expsyms_GO
17109
17110 # Commands necessary for linking programs (against libraries) with templates.
17111 prelink_cmds=$lt_prelink_cmds_GO
17112
17113 # Specify filename containing input files.
17114 file_list_spec=$lt_file_list_spec_GO
17115
17116 # How to hardcode a shared library path into an executable.
17117 hardcode_action=$hardcode_action_GO
17118
17119 # ### END LIBTOOL TAG CONFIG: GO
17120 _LT_EOF
17121
17122  ;;
17123     "default":C) if test -n "$CONFIG_FILES"; then
17124    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17125    # that multilib installs will end up installed in the correct place.
17126    # The testsuite needs it for multilib-aware ABI baseline files.
17127    # To work around this not being passed down from config-ml.in ->
17128    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17129    # append it here.  Only modify Makefiles that have just been created.
17130    #
17131    # Also, get rid of this simulated-VPATH thing that automake does.
17132    cat > vpsed << \_EOF
17133 s!`test -f '$<' || echo '$(srcdir)/'`!!
17134 _EOF
17135    for i in $SUBDIRS; do
17136     case $CONFIG_FILES in
17137      *${i}/Makefile*)
17138        #echo "Adding MULTISUBDIR to $i/Makefile"
17139        sed -f vpsed $i/Makefile > tmp
17140        grep '^MULTISUBDIR =' Makefile >> tmp
17141        mv tmp $i/Makefile
17142        ;;
17143     esac
17144    done
17145    rm vpsed
17146  fi
17147  ;;
17148
17149   esac
17150 done # for ac_tag
17151
17152
17153 as_fn_exit 0
17154 _ACEOF
17155 ac_clean_files=$ac_clean_files_save
17156
17157 test $ac_write_fail = 0 ||
17158   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17159
17160
17161 # configure is writing to config.log, and then calls config.status.
17162 # config.status does its own redirection, appending to config.log.
17163 # Unfortunately, on DOS this fails, as config.log is still kept open
17164 # by configure, so config.status won't be able to write to it; its
17165 # output is simply discarded.  So we exec the FD to /dev/null,
17166 # effectively closing config.log, so it can be properly (re)opened and
17167 # appended to by config.status.  When coming back to configure, we
17168 # need to make the FD available again.
17169 if test "$no_create" != yes; then
17170   ac_cs_success=:
17171   ac_config_status_args=
17172   test "$silent" = yes &&
17173     ac_config_status_args="$ac_config_status_args --quiet"
17174   exec 5>/dev/null
17175   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17176   exec 5>>config.log
17177   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17178   # would make configure fail if this is the last instruction.
17179   $ac_cs_success || as_fn_exit $?
17180 fi
17181 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17182   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17183 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17184 fi
17185