OSDN Git Service

libgo: Support Solaris 8/9.
[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_386_FALSE
648 LIBGO_IS_386_TRUE
649 GOOS
650 LIBGO_IS_SOLARIS_FALSE
651 LIBGO_IS_SOLARIS_TRUE
652 LIBGO_IS_RTEMS_FALSE
653 LIBGO_IS_RTEMS_TRUE
654 LIBGO_IS_LINUX_FALSE
655 LIBGO_IS_LINUX_TRUE
656 LIBGO_IS_IRIX_FALSE
657 LIBGO_IS_IRIX_TRUE
658 LIBGO_IS_FREEBSD_FALSE
659 LIBGO_IS_FREEBSD_TRUE
660 LIBGO_IS_DARWIN_FALSE
661 LIBGO_IS_DARWIN_TRUE
662 LIBFFIINCS
663 LIBFFI
664 glibgo_toolexeclibdir
665 glibgo_toolexecdir
666 glibgo_prefixdir
667 WERROR
668 WARN_FLAGS
669 enable_static
670 enable_shared
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 AR
678 OBJDUMP
679 LN_S
680 NM
681 ac_ct_DUMPBIN
682 DUMPBIN
683 LIBTOOL
684 OBJCOPY
685 RANLIB
686 LD
687 FGREP
688 EGREP
689 GREP
690 SED
691 MAINT
692 MAINTAINER_MODE_FALSE
693 MAINTAINER_MODE_TRUE
694 GOCFLAGS
695 GOC
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_os
736 target_vendor
737 target_cpu
738 target
739 host_os
740 host_vendor
741 host_cpu
742 host
743 build_os
744 build_vendor
745 build_cpu
746 build
747 multi_basedir
748 libtool_VERSION
749 target_alias
750 host_alias
751 build_alias
752 LIBS
753 ECHO_T
754 ECHO_N
755 ECHO_C
756 DEFS
757 mandir
758 localedir
759 libdir
760 psdir
761 pdfdir
762 dvidir
763 htmldir
764 infodir
765 docdir
766 oldincludedir
767 includedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL'
787 ac_subst_files=''
788 ac_user_opts='
789 enable_option_checking
790 enable_multilib
791 enable_dependency_tracking
792 enable_maintainer_mode
793 with_gnu_ld
794 enable_shared
795 enable_static
796 with_pic
797 enable_fast_install
798 enable_libtool_lock
799 enable_version_specific_runtime_libs
800 with_libffi
801 with_system_libunwind
802 enable_sjlj_exceptions
803 '
804       ac_precious_vars='build_alias
805 host_alias
806 target_alias
807 CPP
808 CPPFLAGS'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863   # If the previous option needs an argument, assign it.
864   if test -n "$ac_prev"; then
865     eval $ac_prev=\$ac_option
866     ac_prev=
867     continue
868   fi
869
870   case $ac_option in
871   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872   *)    ac_optarg=yes ;;
873   esac
874
875   # Accept the important Cygnus configure options, so we can diagnose typos.
876
877   case $ac_dashdash$ac_option in
878   --)
879     ac_dashdash=yes ;;
880
881   -bindir | --bindir | --bindi | --bind | --bin | --bi)
882     ac_prev=bindir ;;
883   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884     bindir=$ac_optarg ;;
885
886   -build | --build | --buil | --bui | --bu)
887     ac_prev=build_alias ;;
888   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889     build_alias=$ac_optarg ;;
890
891   -cache-file | --cache-file | --cache-fil | --cache-fi \
892   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893     ac_prev=cache_file ;;
894   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896     cache_file=$ac_optarg ;;
897
898   --config-cache | -C)
899     cache_file=config.cache ;;
900
901   -datadir | --datadir | --datadi | --datad)
902     ac_prev=datadir ;;
903   -datadir=* | --datadir=* | --datadi=* | --datad=*)
904     datadir=$ac_optarg ;;
905
906   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907   | --dataroo | --dataro | --datar)
908     ac_prev=datarootdir ;;
909   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911     datarootdir=$ac_optarg ;;
912
913   -disable-* | --disable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       as_fn_error "invalid feature name: $ac_useropt"
918     ac_useropt_orig=$ac_useropt
919     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920     case $ac_user_opts in
921       *"
922 "enable_$ac_useropt"
923 "*) ;;
924       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925          ac_unrecognized_sep=', ';;
926     esac
927     eval enable_$ac_useropt=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=\$ac_optarg ;;
954
955   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957   | --exec | --exe | --ex)
958     ac_prev=exec_prefix ;;
959   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961   | --exec=* | --exe=* | --ex=*)
962     exec_prefix=$ac_optarg ;;
963
964   -gas | --gas | --ga | --g)
965     # Obsolete; use --with-gas.
966     with_gas=yes ;;
967
968   -help | --help | --hel | --he | -h)
969     ac_init_help=long ;;
970   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971     ac_init_help=recursive ;;
972   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973     ac_init_help=short ;;
974
975   -host | --host | --hos | --ho)
976     ac_prev=host_alias ;;
977   -host=* | --host=* | --hos=* | --ho=*)
978     host_alias=$ac_optarg ;;
979
980   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981     ac_prev=htmldir ;;
982   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983   | --ht=*)
984     htmldir=$ac_optarg ;;
985
986   -includedir | --includedir | --includedi | --included | --include \
987   | --includ | --inclu | --incl | --inc)
988     ac_prev=includedir ;;
989   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990   | --includ=* | --inclu=* | --incl=* | --inc=*)
991     includedir=$ac_optarg ;;
992
993   -infodir | --infodir | --infodi | --infod | --info | --inf)
994     ac_prev=infodir ;;
995   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996     infodir=$ac_optarg ;;
997
998   -libdir | --libdir | --libdi | --libd)
999     ac_prev=libdir ;;
1000   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001     libdir=$ac_optarg ;;
1002
1003   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004   | --libexe | --libex | --libe)
1005     ac_prev=libexecdir ;;
1006   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007   | --libexe=* | --libex=* | --libe=*)
1008     libexecdir=$ac_optarg ;;
1009
1010   -localedir | --localedir | --localedi | --localed | --locale)
1011     ac_prev=localedir ;;
1012   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013     localedir=$ac_optarg ;;
1014
1015   -localstatedir | --localstatedir | --localstatedi | --localstated \
1016   | --localstate | --localstat | --localsta | --localst | --locals)
1017     ac_prev=localstatedir ;;
1018   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020     localstatedir=$ac_optarg ;;
1021
1022   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023     ac_prev=mandir ;;
1024   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025     mandir=$ac_optarg ;;
1026
1027   -nfp | --nfp | --nf)
1028     # Obsolete; use --without-fp.
1029     with_fp=no ;;
1030
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n)
1033     no_create=yes ;;
1034
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     no_recursion=yes ;;
1038
1039   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041   | --oldin | --oldi | --old | --ol | --o)
1042     ac_prev=oldincludedir ;;
1043   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046     oldincludedir=$ac_optarg ;;
1047
1048   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049     ac_prev=prefix ;;
1050   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051     prefix=$ac_optarg ;;
1052
1053   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054   | --program-pre | --program-pr | --program-p)
1055     ac_prev=program_prefix ;;
1056   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058     program_prefix=$ac_optarg ;;
1059
1060   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061   | --program-suf | --program-su | --program-s)
1062     ac_prev=program_suffix ;;
1063   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065     program_suffix=$ac_optarg ;;
1066
1067   -program-transform-name | --program-transform-name \
1068   | --program-transform-nam | --program-transform-na \
1069   | --program-transform-n | --program-transform- \
1070   | --program-transform | --program-transfor \
1071   | --program-transfo | --program-transf \
1072   | --program-trans | --program-tran \
1073   | --progr-tra | --program-tr | --program-t)
1074     ac_prev=program_transform_name ;;
1075   -program-transform-name=* | --program-transform-name=* \
1076   | --program-transform-nam=* | --program-transform-na=* \
1077   | --program-transform-n=* | --program-transform-=* \
1078   | --program-transform=* | --program-transfor=* \
1079   | --program-transfo=* | --program-transf=* \
1080   | --program-trans=* | --program-tran=* \
1081   | --progr-tra=* | --program-tr=* | --program-t=*)
1082     program_transform_name=$ac_optarg ;;
1083
1084   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085     ac_prev=pdfdir ;;
1086   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087     pdfdir=$ac_optarg ;;
1088
1089   -psdir | --psdir | --psdi | --psd | --ps)
1090     ac_prev=psdir ;;
1091   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092     psdir=$ac_optarg ;;
1093
1094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095   | -silent | --silent | --silen | --sile | --sil)
1096     silent=yes ;;
1097
1098   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099     ac_prev=sbindir ;;
1100   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101   | --sbi=* | --sb=*)
1102     sbindir=$ac_optarg ;;
1103
1104   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106   | --sharedst | --shareds | --shared | --share | --shar \
1107   | --sha | --sh)
1108     ac_prev=sharedstatedir ;;
1109   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112   | --sha=* | --sh=*)
1113     sharedstatedir=$ac_optarg ;;
1114
1115   -site | --site | --sit)
1116     ac_prev=site ;;
1117   -site=* | --site=* | --sit=*)
1118     site=$ac_optarg ;;
1119
1120   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121     ac_prev=srcdir ;;
1122   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123     srcdir=$ac_optarg ;;
1124
1125   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126   | --syscon | --sysco | --sysc | --sys | --sy)
1127     ac_prev=sysconfdir ;;
1128   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130     sysconfdir=$ac_optarg ;;
1131
1132   -target | --target | --targe | --targ | --tar | --ta | --t)
1133     ac_prev=target_alias ;;
1134   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135     target_alias=$ac_optarg ;;
1136
1137   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138     verbose=yes ;;
1139
1140   -version | --version | --versio | --versi | --vers | -V)
1141     ac_init_version=: ;;
1142
1143   -with-* | --with-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163       as_fn_error "invalid package name: $ac_useropt"
1164     ac_useropt_orig=$ac_useropt
1165     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166     case $ac_user_opts in
1167       *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171          ac_unrecognized_sep=', ';;
1172     esac
1173     eval with_$ac_useropt=no ;;
1174
1175   --x)
1176     # Obsolete; use --with-x.
1177     with_x=yes ;;
1178
1179   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180   | --x-incl | --x-inc | --x-in | --x-i)
1181     ac_prev=x_includes ;;
1182   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184     x_includes=$ac_optarg ;;
1185
1186   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188     ac_prev=x_libraries ;;
1189   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191     x_libraries=$ac_optarg ;;
1192
1193   -*) as_fn_error "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information."
1195     ;;
1196
1197   *=*)
1198     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199     # Reject names that are not valid shell variable names.
1200     case $ac_envvar in #(
1201       '' | [0-9]* | *[!_$as_cr_alnum]* )
1202       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1203     esac
1204     eval $ac_envvar=\$ac_optarg
1205     export $ac_envvar ;;
1206
1207   *)
1208     # FIXME: should be removed in autoconf 3.0.
1209     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213     ;;
1214
1215   esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220   as_fn_error "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224   case $enable_option_checking in
1225     no) ;;
1226     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228   esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233                 datadir sysconfdir sharedstatedir localstatedir includedir \
1234                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235                 libdir localedir mandir
1236 do
1237   eval ac_val=\$$ac_var
1238   # Remove trailing slashes.
1239   case $ac_val in
1240     */ )
1241       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242       eval $ac_var=\$ac_val;;
1243   esac
1244   # Be sure to have absolute directory names.
1245   case $ac_val in
1246     [\\/$]* | ?:[\\/]* )  continue;;
1247     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248   esac
1249   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264     If a cross compiler is detected then cross compile mode will be used." >&2
1265   elif test "x$build_alias" != "x$host_alias"; then
1266     cross_compiling=yes
1267   fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279   as_fn_error "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281   as_fn_error "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286   ac_srcdir_defaulted=yes
1287   # Try the directory containing this script, then the parent directory.
1288   ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290          X"$as_myself" : 'X\(//\)[^/]' \| \
1291          X"$as_myself" : 'X\(//\)$' \| \
1292          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\/\)[^/].*/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\/\)$/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\).*/{
1307             s//\1/
1308             q
1309           }
1310           s/.*/./; q'`
1311   srcdir=$ac_confdir
1312   if test ! -r "$srcdir/$ac_unique_file"; then
1313     srcdir=..
1314   fi
1315 else
1316   ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1325         pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328   srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_env_${ac_var}_value=\$${ac_var}
1339   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347   # Omit some internal or obsolete options to make the list less imposing.
1348   # This message is too long to be a string in the A/UX 3.1 sh.
1349   cat <<_ACEOF
1350 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE.  See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360   -h, --help              display this help and exit
1361       --help=short        display options specific to this package
1362       --help=recursive    display the short help of all the included packages
1363   -V, --version           display version information and exit
1364   -q, --quiet, --silent   do not print \`checking...' messages
1365       --cache-file=FILE   cache test results in FILE [disabled]
1366   -C, --config-cache      alias for \`--cache-file=config.cache'
1367   -n, --no-create         do not create output files
1368       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371   --prefix=PREFIX         install architecture-independent files in PREFIX
1372                           [$ac_default_prefix]
1373   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374                           [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384   --bindir=DIR            user executables [EPREFIX/bin]
1385   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386   --libexecdir=DIR        program executables [EPREFIX/libexec]
1387   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390   --libdir=DIR            object code libraries [EPREFIX/lib]
1391   --includedir=DIR        C header files [PREFIX/include]
1392   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1393   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1394   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1395   --infodir=DIR           info documentation [DATAROOTDIR/info]
1396   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1397   --mandir=DIR            man documentation [DATAROOTDIR/man]
1398   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1399   --htmldir=DIR           html documentation [DOCDIR]
1400   --dvidir=DIR            dvi documentation [DOCDIR]
1401   --pdfdir=DIR            pdf documentation [DOCDIR]
1402   --psdir=DIR             ps documentation [DOCDIR]
1403 _ACEOF
1404
1405   cat <<\_ACEOF
1406
1407 Program names:
1408   --program-prefix=PREFIX            prepend PREFIX to installed program names
1409   --program-suffix=SUFFIX            append SUFFIX to installed program names
1410   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1411
1412 System types:
1413   --build=BUILD     configure for building on BUILD [guessed]
1414   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1415   --target=TARGET   configure for building compilers for TARGET [HOST]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420   case $ac_init_help in
1421      short | recursive ) echo "Configuration of package-unused version-unused:";;
1422    esac
1423   cat <<\_ACEOF
1424
1425 Optional Features:
1426   --disable-option-checking  ignore unrecognized --enable/--with options
1427   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1428   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1429   --enable-multilib       build many library versions (default)
1430   --disable-dependency-tracking  speeds up one-time build
1431   --enable-dependency-tracking   do not reject slow dependency extractors
1432   --enable-maintainer-mode  enable make rules and dependencies not useful
1433                           (and sometimes confusing) to the casual installer
1434   --enable-shared[=PKGS]  build shared libraries [default=yes]
1435   --enable-static[=PKGS]  build static libraries [default=yes]
1436   --enable-fast-install[=PKGS]
1437                           optimize for fast installation [default=yes]
1438   --disable-libtool-lock  avoid locking (might break parallel builds)
1439   --enable-version-specific-runtime-libs
1440                           Specify that runtime libraries should be installed
1441                           in a compiler-specific directory
1442   --enable-sjlj-exceptions
1443                           force use of builtin_setjmp for exceptions
1444
1445 Optional Packages:
1446   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1447   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1448   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1449   --with-pic              try to use only PIC/non-PIC objects [default=use
1450                           both]
1451   --without-libffi        don't use libffi
1452   --with-system-libunwind use installed libunwind
1453
1454 Some influential environment variables:
1455   CC          C compiler command
1456   CFLAGS      C compiler flags
1457   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1458               nonstandard directory <lib dir>
1459   LIBS        libraries to pass to the linker, e.g. -l<library>
1460   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461               you have headers in a nonstandard directory <include dir>
1462   GOC         Go compiler command
1463   GOCFLAGS    Go compiler flags
1464   CPP         C preprocessor
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to the package provider.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475   # If there are subdirs, report their specific --help.
1476   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477     test -d "$ac_dir" ||
1478       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479       continue
1480     ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486   # A ".." for each directory in $ac_dir_suffix.
1487   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488   case $ac_top_builddir_sub in
1489   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491   esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499   .)  # We are building in place.
1500     ac_srcdir=.
1501     ac_top_srcdir=$ac_top_builddir_sub
1502     ac_abs_top_srcdir=$ac_pwd ;;
1503   [\\/]* | ?:[\\/]* )  # Absolute name.
1504     ac_srcdir=$srcdir$ac_dir_suffix;
1505     ac_top_srcdir=$srcdir
1506     ac_abs_top_srcdir=$srcdir ;;
1507   *) # Relative name.
1508     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509     ac_top_srcdir=$ac_top_build_prefix$srcdir
1510     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514     cd "$ac_dir" || { ac_status=$?; continue; }
1515     # Check for guested configure.
1516     if test -f "$ac_srcdir/configure.gnu"; then
1517       echo &&
1518       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519     elif test -f "$ac_srcdir/configure"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure" --help=recursive
1522     else
1523       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524     fi || ac_status=$?
1525     cd "$ac_pwd" || { ac_status=$?; break; }
1526   done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531   cat <<\_ACEOF
1532 package-unused configure version-unused
1533 generated by GNU Autoconf 2.64
1534
1535 Copyright (C) 2009 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538 _ACEOF
1539   exit
1540 fi
1541
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1545
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1550 {
1551   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552   rm -f conftest.$ac_objext
1553   if { { ac_try="$ac_compile"
1554 case "(($ac_try" in
1555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556   *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560   (eval "$ac_compile") 2>conftest.err
1561   ac_status=$?
1562   if test -s conftest.err; then
1563     grep -v '^ *+' conftest.err >conftest.er1
1564     cat conftest.er1 >&5
1565     mv -f conftest.er1 conftest.err
1566   fi
1567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568   test $ac_status = 0; } && {
1569          test -z "$ac_c_werror_flag" ||
1570          test ! -s conftest.err
1571        } && test -s conftest.$ac_objext; then :
1572   ac_retval=0
1573 else
1574   $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577         ac_retval=1
1578 fi
1579   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1580   return $ac_retval
1581
1582 } # ac_fn_c_try_compile
1583
1584 # ac_fn_c_try_link LINENO
1585 # -----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_link ()
1588 {
1589   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590   rm -f conftest.$ac_objext conftest$ac_exeext
1591   if { { ac_try="$ac_link"
1592 case "(($ac_try" in
1593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594   *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598   (eval "$ac_link") 2>conftest.err
1599   ac_status=$?
1600   if test -s conftest.err; then
1601     grep -v '^ *+' conftest.err >conftest.er1
1602     cat conftest.er1 >&5
1603     mv -f conftest.er1 conftest.err
1604   fi
1605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606   test $ac_status = 0; } && {
1607          test -z "$ac_c_werror_flag" ||
1608          test ! -s conftest.err
1609        } && test -s conftest$ac_exeext && {
1610          test "$cross_compiling" = yes ||
1611          $as_test_x conftest$ac_exeext
1612        }; then :
1613   ac_retval=0
1614 else
1615   $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618         ac_retval=1
1619 fi
1620   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622   # interfere with the next link command; also delete a directory that is
1623   # left behind by Apple's compiler.  We do this before executing the actions.
1624   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626   return $ac_retval
1627
1628 } # ac_fn_c_try_link
1629
1630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists and can be compiled using the include files in
1633 # INCLUDES, setting the cache variable VAR accordingly.
1634 ac_fn_c_check_header_compile ()
1635 {
1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1640   $as_echo_n "(cached) " >&6
1641 else
1642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h.  */
1644 $4
1645 #include <$2>
1646 _ACEOF
1647 if ac_fn_c_try_compile "$LINENO"; then :
1648   eval "$3=yes"
1649 else
1650   eval "$3=no"
1651 fi
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 fi
1654 eval ac_res=\$$3
1655                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1657   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1658
1659 } # ac_fn_c_check_header_compile
1660
1661 # ac_fn_c_try_cpp LINENO
1662 # ----------------------
1663 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_cpp ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   if { { ac_try="$ac_cpp conftest.$ac_ext"
1668 case "(($ac_try" in
1669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670   *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675   ac_status=$?
1676   if test -s conftest.err; then
1677     grep -v '^ *+' conftest.err >conftest.er1
1678     cat conftest.er1 >&5
1679     mv -f conftest.er1 conftest.err
1680   fi
1681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682   test $ac_status = 0; } >/dev/null && {
1683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684          test ! -s conftest.err
1685        }; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691     ac_retval=1
1692 fi
1693   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694   return $ac_retval
1695
1696 } # ac_fn_c_try_cpp
1697
1698 # ac_fn_c_try_run LINENO
1699 # ----------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701 # that executables *can* be run.
1702 ac_fn_c_try_run ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   if { { ac_try="$ac_link"
1706 case "(($ac_try" in
1707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708   *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712   (eval "$ac_link") 2>&5
1713   ac_status=$?
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716   { { case "(($ac_try" in
1717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718   *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722   (eval "$ac_try") 2>&5
1723   ac_status=$?
1724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; }; }; then :
1726   ac_retval=0
1727 else
1728   $as_echo "$as_me: program exited with status $ac_status" >&5
1729        $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732        ac_retval=$ac_status
1733 fi
1734   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736   return $ac_retval
1737
1738 } # ac_fn_c_try_run
1739
1740 # ac_fn_c_check_func LINENO FUNC VAR
1741 # ----------------------------------
1742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1743 ac_fn_c_check_func ()
1744 {
1745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749   $as_echo_n "(cached) " >&6
1750 else
1751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h.  */
1753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1755 #define $2 innocuous_$2
1756
1757 /* System header to define __stub macros and hopefully few prototypes,
1758     which can conflict with char $2 (); below.
1759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760     <limits.h> exists even on freestanding compilers.  */
1761
1762 #ifdef __STDC__
1763 # include <limits.h>
1764 #else
1765 # include <assert.h>
1766 #endif
1767
1768 #undef $2
1769
1770 /* Override any GCC internal prototype to avoid an error.
1771    Use char because int might match the return type of a GCC
1772    builtin and then its argument prototype would still apply.  */
1773 #ifdef __cplusplus
1774 extern "C"
1775 #endif
1776 char $2 ();
1777 /* The GNU C library defines this for functions which it implements
1778     to always fail with ENOSYS.  Some functions are actually named
1779     something starting with __ and the normal name is an alias.  */
1780 #if defined __stub_$2 || defined __stub___$2
1781 choke me
1782 #endif
1783
1784 int
1785 main ()
1786 {
1787 return $2 ();
1788   ;
1789   return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_link "$LINENO"; then :
1793   eval "$3=yes"
1794 else
1795   eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext \
1798     conftest$ac_exeext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804
1805 } # ac_fn_c_check_func
1806
1807 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1810 # the include files in INCLUDES and setting the cache variable VAR
1811 # accordingly.
1812 ac_fn_c_check_header_mongrel ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1819   $as_echo_n "(cached) " >&6
1820 fi
1821 eval ac_res=\$$3
1822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 else
1825   # Is the header compilable?
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1827 $as_echo_n "checking $2 usability... " >&6; }
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h.  */
1830 $4
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834   ac_header_compiler=yes
1835 else
1836   ac_header_compiler=no
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1840 $as_echo "$ac_header_compiler" >&6; }
1841
1842 # Is the header present?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1844 $as_echo_n "checking $2 presence... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h.  */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_cpp "$LINENO"; then :
1850   ac_header_preproc=yes
1851 else
1852   ac_header_preproc=no
1853 fi
1854 rm -f conftest.err conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1856 $as_echo "$ac_header_preproc" >&6; }
1857
1858 # So?  What about this header?
1859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1860   yes:no: )
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1862 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865     ;;
1866   no:yes:* )
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1868 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1870 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1872 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1874 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877     ;;
1878 esac
1879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882   $as_echo_n "(cached) " >&6
1883 else
1884   eval "$3=\$ac_header_compiler"
1885 fi
1886 eval ac_res=\$$3
1887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 fi
1890   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1891
1892 } # ac_fn_c_check_header_mongrel
1893
1894 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1895 # -------------------------------------------
1896 # Tests whether TYPE exists after having included INCLUDES, setting cache
1897 # variable VAR accordingly.
1898 ac_fn_c_check_type ()
1899 {
1900   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904   $as_echo_n "(cached) " >&6
1905 else
1906   eval "$3=no"
1907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 int
1911 main ()
1912 {
1913 if (sizeof ($2))
1914          return 0;
1915   ;
1916   return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h.  */
1922 $4
1923 int
1924 main ()
1925 {
1926 if (sizeof (($2)))
1927             return 0;
1928   ;
1929   return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933
1934 else
1935   eval "$3=yes"
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940 fi
1941 eval ac_res=\$$3
1942                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1943 $as_echo "$ac_res" >&6; }
1944   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1945
1946 } # ac_fn_c_check_type
1947 cat >config.log <<_ACEOF
1948 This file contains any messages produced by compilers while
1949 running configure, to aid debugging if configure makes a mistake.
1950
1951 It was created by package-unused $as_me version-unused, which was
1952 generated by GNU Autoconf 2.64.  Invocation command line was
1953
1954   $ $0 $@
1955
1956 _ACEOF
1957 exec 5>>config.log
1958 {
1959 cat <<_ASUNAME
1960 ## --------- ##
1961 ## Platform. ##
1962 ## --------- ##
1963
1964 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1965 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1966 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1967 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1968 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1969
1970 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1971 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1972
1973 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1974 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1975 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1976 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1977 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1978 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1979 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1980
1981 _ASUNAME
1982
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 for as_dir in $PATH
1985 do
1986   IFS=$as_save_IFS
1987   test -z "$as_dir" && as_dir=.
1988     $as_echo "PATH: $as_dir"
1989   done
1990 IFS=$as_save_IFS
1991
1992 } >&5
1993
1994 cat >&5 <<_ACEOF
1995
1996
1997 ## ----------- ##
1998 ## Core tests. ##
1999 ## ----------- ##
2000
2001 _ACEOF
2002
2003
2004 # Keep a trace of the command line.
2005 # Strip out --no-create and --no-recursion so they do not pile up.
2006 # Strip out --silent because we don't want to record it for future runs.
2007 # Also quote any args containing shell meta-characters.
2008 # Make two passes to allow for proper duplicate-argument suppression.
2009 ac_configure_args=
2010 ac_configure_args0=
2011 ac_configure_args1=
2012 ac_must_keep_next=false
2013 for ac_pass in 1 2
2014 do
2015   for ac_arg
2016   do
2017     case $ac_arg in
2018     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2019     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2020     | -silent | --silent | --silen | --sile | --sil)
2021       continue ;;
2022     *\'*)
2023       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2024     esac
2025     case $ac_pass in
2026     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2027     2)
2028       as_fn_append ac_configure_args1 " '$ac_arg'"
2029       if test $ac_must_keep_next = true; then
2030         ac_must_keep_next=false # Got value, back to normal.
2031       else
2032         case $ac_arg in
2033           *=* | --config-cache | -C | -disable-* | --disable-* \
2034           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2035           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2036           | -with-* | --with-* | -without-* | --without-* | --x)
2037             case "$ac_configure_args0 " in
2038               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2039             esac
2040             ;;
2041           -* ) ac_must_keep_next=true ;;
2042         esac
2043       fi
2044       as_fn_append ac_configure_args " '$ac_arg'"
2045       ;;
2046     esac
2047   done
2048 done
2049 { ac_configure_args0=; unset ac_configure_args0;}
2050 { ac_configure_args1=; unset ac_configure_args1;}
2051
2052 # When interrupted or exit'd, cleanup temporary files, and complete
2053 # config.log.  We remove comments because anyway the quotes in there
2054 # would cause problems or look ugly.
2055 # WARNING: Use '\'' to represent an apostrophe within the trap.
2056 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2057 trap 'exit_status=$?
2058   # Save into config.log some information that might help in debugging.
2059   {
2060     echo
2061
2062     cat <<\_ASBOX
2063 ## ---------------- ##
2064 ## Cache variables. ##
2065 ## ---------------- ##
2066 _ASBOX
2067     echo
2068     # The following way of writing the cache mishandles newlines in values,
2069 (
2070   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2071     eval ac_val=\$$ac_var
2072     case $ac_val in #(
2073     *${as_nl}*)
2074       case $ac_var in #(
2075       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2076 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2077       esac
2078       case $ac_var in #(
2079       _ | IFS | as_nl) ;; #(
2080       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2081       *) { eval $ac_var=; unset $ac_var;} ;;
2082       esac ;;
2083     esac
2084   done
2085   (set) 2>&1 |
2086     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2087     *${as_nl}ac_space=\ *)
2088       sed -n \
2089         "s/'\''/'\''\\\\'\'''\''/g;
2090           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2091       ;; #(
2092     *)
2093       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2094       ;;
2095     esac |
2096     sort
2097 )
2098     echo
2099
2100     cat <<\_ASBOX
2101 ## ----------------- ##
2102 ## Output variables. ##
2103 ## ----------------- ##
2104 _ASBOX
2105     echo
2106     for ac_var in $ac_subst_vars
2107     do
2108       eval ac_val=\$$ac_var
2109       case $ac_val in
2110       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2111       esac
2112       $as_echo "$ac_var='\''$ac_val'\''"
2113     done | sort
2114     echo
2115
2116     if test -n "$ac_subst_files"; then
2117       cat <<\_ASBOX
2118 ## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##
2121 _ASBOX
2122       echo
2123       for ac_var in $ac_subst_files
2124       do
2125         eval ac_val=\$$ac_var
2126         case $ac_val in
2127         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128         esac
2129         $as_echo "$ac_var='\''$ac_val'\''"
2130       done | sort
2131       echo
2132     fi
2133
2134     if test -s confdefs.h; then
2135       cat <<\_ASBOX
2136 ## ----------- ##
2137 ## confdefs.h. ##
2138 ## ----------- ##
2139 _ASBOX
2140       echo
2141       cat confdefs.h
2142       echo
2143     fi
2144     test "$ac_signal" != 0 &&
2145       $as_echo "$as_me: caught signal $ac_signal"
2146     $as_echo "$as_me: exit $exit_status"
2147   } >&5
2148   rm -f core *.core core.conftest.* &&
2149     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2150     exit $exit_status
2151 ' 0
2152 for ac_signal in 1 2 13 15; do
2153   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 done
2155 ac_signal=0
2156
2157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2158 rm -f -r conftest* confdefs.h
2159
2160 $as_echo "/* confdefs.h */" > confdefs.h
2161
2162 # Predefined preprocessor variables.
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_NAME "$PACKAGE_NAME"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2170 _ACEOF
2171
2172 cat >>confdefs.h <<_ACEOF
2173 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2174 _ACEOF
2175
2176 cat >>confdefs.h <<_ACEOF
2177 #define PACKAGE_STRING "$PACKAGE_STRING"
2178 _ACEOF
2179
2180 cat >>confdefs.h <<_ACEOF
2181 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2182 _ACEOF
2183
2184 cat >>confdefs.h <<_ACEOF
2185 #define PACKAGE_URL "$PACKAGE_URL"
2186 _ACEOF
2187
2188
2189 # Let the site file select an alternate cache file if it wants to.
2190 # Prefer an explicitly selected file to automatically selected ones.
2191 ac_site_file1=NONE
2192 ac_site_file2=NONE
2193 if test -n "$CONFIG_SITE"; then
2194   ac_site_file1=$CONFIG_SITE
2195 elif test "x$prefix" != xNONE; then
2196   ac_site_file1=$prefix/share/config.site
2197   ac_site_file2=$prefix/etc/config.site
2198 else
2199   ac_site_file1=$ac_default_prefix/share/config.site
2200   ac_site_file2=$ac_default_prefix/etc/config.site
2201 fi
2202 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203 do
2204   test "x$ac_site_file" = xNONE && continue
2205   if test -r "$ac_site_file"; then
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208     sed 's/^/| /' "$ac_site_file" >&5
2209     . "$ac_site_file"
2210   fi
2211 done
2212
2213 if test -r "$cache_file"; then
2214   # Some versions of bash will fail to source /dev/null (special
2215   # files actually), so we avoid doing that.
2216   if test -f "$cache_file"; then
2217     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2218 $as_echo "$as_me: loading cache $cache_file" >&6;}
2219     case $cache_file in
2220       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2221       *)                      . "./$cache_file";;
2222     esac
2223   fi
2224 else
2225   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2226 $as_echo "$as_me: creating cache $cache_file" >&6;}
2227   >$cache_file
2228 fi
2229
2230 # Check that the precious variables saved in the cache have kept the same
2231 # value.
2232 ac_cache_corrupted=false
2233 for ac_var in $ac_precious_vars; do
2234   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2235   eval ac_new_set=\$ac_env_${ac_var}_set
2236   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2237   eval ac_new_val=\$ac_env_${ac_var}_value
2238   case $ac_old_set,$ac_new_set in
2239     set,)
2240       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2241 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2242       ac_cache_corrupted=: ;;
2243     ,set)
2244       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2245 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2246       ac_cache_corrupted=: ;;
2247     ,);;
2248     *)
2249       if test "x$ac_old_val" != "x$ac_new_val"; then
2250         # differences in whitespace do not lead to failure.
2251         ac_old_val_w=`echo x $ac_old_val`
2252         ac_new_val_w=`echo x $ac_new_val`
2253         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2254           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2255 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2256           ac_cache_corrupted=:
2257         else
2258           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2259 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2260           eval $ac_var=\$ac_old_val
2261         fi
2262         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2263 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2264         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2265 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2266       fi;;
2267   esac
2268   # Pass precious variables to config.status.
2269   if test "$ac_new_set" = set; then
2270     case $ac_new_val in
2271     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2272     *) ac_arg=$ac_var=$ac_new_val ;;
2273     esac
2274     case " $ac_configure_args " in
2275       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2276       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2277     esac
2278   fi
2279 done
2280 if $ac_cache_corrupted; then
2281   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2283   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2284 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2285   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2286 fi
2287 ## -------------------- ##
2288 ## Main body of script. ##
2289 ## -------------------- ##
2290
2291 ac_ext=c
2292 ac_cpp='$CPP $CPPFLAGS'
2293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2296
2297
2298
2299
2300
2301
2302 ac_config_headers="$ac_config_headers config.h"
2303
2304
2305 libtool_VERSION=1:0:0
2306
2307
2308 # Default to --enable-multilib
2309 # Check whether --enable-multilib was given.
2310 if test "${enable_multilib+set}" = set; then :
2311   enableval=$enable_multilib; case "$enableval" in
2312   yes) multilib=yes ;;
2313   no)  multilib=no ;;
2314   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2315  esac
2316 else
2317   multilib=yes
2318 fi
2319
2320
2321 # We may get other options which we leave undocumented:
2322 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2323 # See config-ml.in if you want the gory details.
2324
2325 if test "$srcdir" = "."; then
2326   if test "$with_target_subdir" != "."; then
2327     multi_basedir="$srcdir/$with_multisrctop../.."
2328   else
2329     multi_basedir="$srcdir/$with_multisrctop.."
2330   fi
2331 else
2332   multi_basedir="$srcdir/.."
2333 fi
2334
2335
2336 # Even if the default multilib is not a cross compilation,
2337 # it may be that some of the other multilibs are.
2338 if test $cross_compiling = no && test $multilib = yes \
2339    && test "x${with_multisubdir}" != x ; then
2340    cross_compiling=maybe
2341 fi
2342
2343 ac_config_commands="$ac_config_commands default-1"
2344
2345
2346 ac_aux_dir=
2347 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2348   for ac_t in install-sh install.sh shtool; do
2349     if test -f "$ac_dir/$ac_t"; then
2350       ac_aux_dir=$ac_dir
2351       ac_install_sh="$ac_aux_dir/$ac_t -c"
2352       break 2
2353     fi
2354   done
2355 done
2356 if test -z "$ac_aux_dir"; then
2357   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2358 fi
2359
2360 # These three variables are undocumented and unsupported,
2361 # and are intended to be withdrawn in a future Autoconf release.
2362 # They can cause serious problems if a builder's source tree is in a directory
2363 # whose full name contains unusual characters.
2364 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2365 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2366 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2367
2368
2369 # Make sure we can run config.sub.
2370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2371   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2372
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2374 $as_echo_n "checking build system type... " >&6; }
2375 if test "${ac_cv_build+set}" = set; then :
2376   $as_echo_n "(cached) " >&6
2377 else
2378   ac_build_alias=$build_alias
2379 test "x$ac_build_alias" = x &&
2380   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2381 test "x$ac_build_alias" = x &&
2382   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2383 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2384   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2385
2386 fi
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2388 $as_echo "$ac_cv_build" >&6; }
2389 case $ac_cv_build in
2390 *-*-*) ;;
2391 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2392 esac
2393 build=$ac_cv_build
2394 ac_save_IFS=$IFS; IFS='-'
2395 set x $ac_cv_build
2396 shift
2397 build_cpu=$1
2398 build_vendor=$2
2399 shift; shift
2400 # Remember, the first character of IFS is used to create $*,
2401 # except with old shells:
2402 build_os=$*
2403 IFS=$ac_save_IFS
2404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2405
2406
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2408 $as_echo_n "checking host system type... " >&6; }
2409 if test "${ac_cv_host+set}" = set; then :
2410   $as_echo_n "(cached) " >&6
2411 else
2412   if test "x$host_alias" = x; then
2413   ac_cv_host=$ac_cv_build
2414 else
2415   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2416     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2417 fi
2418
2419 fi
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2421 $as_echo "$ac_cv_host" >&6; }
2422 case $ac_cv_host in
2423 *-*-*) ;;
2424 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2425 esac
2426 host=$ac_cv_host
2427 ac_save_IFS=$IFS; IFS='-'
2428 set x $ac_cv_host
2429 shift
2430 host_cpu=$1
2431 host_vendor=$2
2432 shift; shift
2433 # Remember, the first character of IFS is used to create $*,
2434 # except with old shells:
2435 host_os=$*
2436 IFS=$ac_save_IFS
2437 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2438
2439
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2441 $as_echo_n "checking target system type... " >&6; }
2442 if test "${ac_cv_target+set}" = set; then :
2443   $as_echo_n "(cached) " >&6
2444 else
2445   if test "x$target_alias" = x; then
2446   ac_cv_target=$ac_cv_host
2447 else
2448   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2449     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2450 fi
2451
2452 fi
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2454 $as_echo "$ac_cv_target" >&6; }
2455 case $ac_cv_target in
2456 *-*-*) ;;
2457 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2458 esac
2459 target=$ac_cv_target
2460 ac_save_IFS=$IFS; IFS='-'
2461 set x $ac_cv_target
2462 shift
2463 target_cpu=$1
2464 target_vendor=$2
2465 shift; shift
2466 # Remember, the first character of IFS is used to create $*,
2467 # except with old shells:
2468 target_os=$*
2469 IFS=$ac_save_IFS
2470 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2471
2472
2473 # The aliases save the names the user supplied, while $host etc.
2474 # will get canonicalized.
2475 test -n "$target_alias" &&
2476   test "$program_prefix$program_suffix$program_transform_name" = \
2477     NONENONEs,x,x, &&
2478   program_prefix=${target_alias}-
2479
2480 target_alias=${target_alias-$host_alias}
2481
2482 am__api_version='1.11'
2483
2484 # Find a good install program.  We prefer a C program (faster),
2485 # so one script is as good as another.  But avoid the broken or
2486 # incompatible versions:
2487 # SysV /etc/install, /usr/sbin/install
2488 # SunOS /usr/etc/install
2489 # IRIX /sbin/install
2490 # AIX /bin/install
2491 # AmigaOS /C/install, which installs bootblocks on floppy discs
2492 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2493 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2494 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2495 # OS/2's system install, which has a completely different semantic
2496 # ./install, which can be erroneously created by make from ./install.sh.
2497 # Reject install programs that cannot install multiple files.
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2499 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2500 if test -z "$INSTALL"; then
2501 if test "${ac_cv_path_install+set}" = set; then :
2502   $as_echo_n "(cached) " >&6
2503 else
2504   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505 for as_dir in $PATH
2506 do
2507   IFS=$as_save_IFS
2508   test -z "$as_dir" && as_dir=.
2509     # Account for people who put trailing slashes in PATH elements.
2510 case $as_dir/ in #((
2511   ./ | .// | /[cC]/* | \
2512   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2513   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2514   /usr/ucb/* ) ;;
2515   *)
2516     # OSF1 and SCO ODT 3.0 have their own names for install.
2517     # Don't use installbsd from OSF since it installs stuff as root
2518     # by default.
2519     for ac_prog in ginstall scoinst install; do
2520       for ac_exec_ext in '' $ac_executable_extensions; do
2521         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2522           if test $ac_prog = install &&
2523             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2524             # AIX install.  It has an incompatible calling convention.
2525             :
2526           elif test $ac_prog = install &&
2527             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2528             # program-specific install script used by HP pwplus--don't use.
2529             :
2530           else
2531             rm -rf conftest.one conftest.two conftest.dir
2532             echo one > conftest.one
2533             echo two > conftest.two
2534             mkdir conftest.dir
2535             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2536               test -s conftest.one && test -s conftest.two &&
2537               test -s conftest.dir/conftest.one &&
2538               test -s conftest.dir/conftest.two
2539             then
2540               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2541               break 3
2542             fi
2543           fi
2544         fi
2545       done
2546     done
2547     ;;
2548 esac
2549
2550   done
2551 IFS=$as_save_IFS
2552
2553 rm -rf conftest.one conftest.two conftest.dir
2554
2555 fi
2556   if test "${ac_cv_path_install+set}" = set; then
2557     INSTALL=$ac_cv_path_install
2558   else
2559     # As a last resort, use the slow shell script.  Don't cache a
2560     # value for INSTALL within a source directory, because that will
2561     # break other packages using the cache if that directory is
2562     # removed, or if the value is a relative name.
2563     INSTALL=$ac_install_sh
2564   fi
2565 fi
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2567 $as_echo "$INSTALL" >&6; }
2568
2569 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2570 # It thinks the first close brace ends the variable substitution.
2571 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2572
2573 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2574
2575 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2576
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2578 $as_echo_n "checking whether build environment is sane... " >&6; }
2579 # Just in case
2580 sleep 1
2581 echo timestamp > conftest.file
2582 # Reject unsafe characters in $srcdir or the absolute working directory
2583 # name.  Accept space and tab only in the latter.
2584 am_lf='
2585 '
2586 case `pwd` in
2587   *[\\\"\#\$\&\'\`$am_lf]*)
2588     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2589 esac
2590 case $srcdir in
2591   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2592     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2593 esac
2594
2595 # Do `set' in a subshell so we don't clobber the current shell's
2596 # arguments.  Must try -L first in case configure is actually a
2597 # symlink; some systems play weird games with the mod time of symlinks
2598 # (eg FreeBSD returns the mod time of the symlink's containing
2599 # directory).
2600 if (
2601    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2602    if test "$*" = "X"; then
2603       # -L didn't work.
2604       set X `ls -t "$srcdir/configure" conftest.file`
2605    fi
2606    rm -f conftest.file
2607    if test "$*" != "X $srcdir/configure conftest.file" \
2608       && test "$*" != "X conftest.file $srcdir/configure"; then
2609
2610       # If neither matched, then we have a broken ls.  This can happen
2611       # if, for instance, CONFIG_SHELL is bash and it inherits a
2612       # broken ls alias from the environment.  This has actually
2613       # happened.  Such a system could not be considered "sane".
2614       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2615 alias in your environment" "$LINENO" 5
2616    fi
2617
2618    test "$2" = conftest.file
2619    )
2620 then
2621    # Ok.
2622    :
2623 else
2624    as_fn_error "newly created file is older than distributed files!
2625 Check your system clock" "$LINENO" 5
2626 fi
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2628 $as_echo "yes" >&6; }
2629 test "$program_prefix" != NONE &&
2630   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2631 # Use a double $ so make ignores it.
2632 test "$program_suffix" != NONE &&
2633   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2634 # Double any \ or $.
2635 # By default was `s,x,x', remove it if useless.
2636 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2637 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2638
2639 # expand $ac_aux_dir to an absolute path
2640 am_aux_dir=`cd $ac_aux_dir && pwd`
2641
2642 if test x"${MISSING+set}" != xset; then
2643   case $am_aux_dir in
2644   *\ * | *\     *)
2645     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2646   *)
2647     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2648   esac
2649 fi
2650 # Use eval to expand $SHELL
2651 if eval "$MISSING --run true"; then
2652   am_missing_run="$MISSING --run "
2653 else
2654   am_missing_run=
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2656 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2657 fi
2658
2659 if test x"${install_sh}" != xset; then
2660   case $am_aux_dir in
2661   *\ * | *\     *)
2662     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2663   *)
2664     install_sh="\${SHELL} $am_aux_dir/install-sh"
2665   esac
2666 fi
2667
2668 # Installed binaries are usually stripped using `strip' when the user
2669 # run `make install-strip'.  However `strip' might not be the right
2670 # tool to use in cross-compilation environments, therefore Automake
2671 # will honor the `STRIP' environment variable to overrule this program.
2672 if test "$cross_compiling" != no; then
2673   if test -n "$ac_tool_prefix"; then
2674   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2675 set dummy ${ac_tool_prefix}strip; ac_word=$2
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2677 $as_echo_n "checking for $ac_word... " >&6; }
2678 if test "${ac_cv_prog_STRIP+set}" = set; then :
2679   $as_echo_n "(cached) " >&6
2680 else
2681   if test -n "$STRIP"; then
2682   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2683 else
2684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 for as_dir in $PATH
2686 do
2687   IFS=$as_save_IFS
2688   test -z "$as_dir" && as_dir=.
2689     for ac_exec_ext in '' $ac_executable_extensions; do
2690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2693     break 2
2694   fi
2695 done
2696   done
2697 IFS=$as_save_IFS
2698
2699 fi
2700 fi
2701 STRIP=$ac_cv_prog_STRIP
2702 if test -n "$STRIP"; then
2703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2704 $as_echo "$STRIP" >&6; }
2705 else
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708 fi
2709
2710
2711 fi
2712 if test -z "$ac_cv_prog_STRIP"; then
2713   ac_ct_STRIP=$STRIP
2714   # Extract the first word of "strip", so it can be a program name with args.
2715 set dummy strip; ac_word=$2
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 $as_echo_n "checking for $ac_word... " >&6; }
2718 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2719   $as_echo_n "(cached) " >&6
2720 else
2721   if test -n "$ac_ct_STRIP"; then
2722   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727   IFS=$as_save_IFS
2728   test -z "$as_dir" && as_dir=.
2729     for ac_exec_ext in '' $ac_executable_extensions; do
2730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2731     ac_cv_prog_ac_ct_STRIP="strip"
2732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2733     break 2
2734   fi
2735 done
2736   done
2737 IFS=$as_save_IFS
2738
2739 fi
2740 fi
2741 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2742 if test -n "$ac_ct_STRIP"; then
2743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2744 $as_echo "$ac_ct_STRIP" >&6; }
2745 else
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2747 $as_echo "no" >&6; }
2748 fi
2749
2750   if test "x$ac_ct_STRIP" = x; then
2751     STRIP=":"
2752   else
2753     case $cross_compiling:$ac_tool_warned in
2754 yes:)
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2757 ac_tool_warned=yes ;;
2758 esac
2759     STRIP=$ac_ct_STRIP
2760   fi
2761 else
2762   STRIP="$ac_cv_prog_STRIP"
2763 fi
2764
2765 fi
2766 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2767
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2769 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2770 if test -z "$MKDIR_P"; then
2771   if test "${ac_cv_path_mkdir+set}" = set; then :
2772   $as_echo_n "(cached) " >&6
2773 else
2774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2776 do
2777   IFS=$as_save_IFS
2778   test -z "$as_dir" && as_dir=.
2779     for ac_prog in mkdir gmkdir; do
2780          for ac_exec_ext in '' $ac_executable_extensions; do
2781            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2782            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2783              'mkdir (GNU coreutils) '* | \
2784              'mkdir (coreutils) '* | \
2785              'mkdir (fileutils) '4.1*)
2786                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2787                break 3;;
2788            esac
2789          done
2790        done
2791   done
2792 IFS=$as_save_IFS
2793
2794 fi
2795
2796   if test "${ac_cv_path_mkdir+set}" = set; then
2797     MKDIR_P="$ac_cv_path_mkdir -p"
2798   else
2799     # As a last resort, use the slow shell script.  Don't cache a
2800     # value for MKDIR_P within a source directory, because that will
2801     # break other packages using the cache if that directory is
2802     # removed, or if the value is a relative name.
2803     test -d ./--version && rmdir ./--version
2804     MKDIR_P="$ac_install_sh -d"
2805   fi
2806 fi
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2808 $as_echo "$MKDIR_P" >&6; }
2809
2810 mkdir_p="$MKDIR_P"
2811 case $mkdir_p in
2812   [\\/$]* | ?:[\\/]*) ;;
2813   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2814 esac
2815
2816 for ac_prog in gawk mawk nawk awk
2817 do
2818   # Extract the first word of "$ac_prog", so it can be a program name with args.
2819 set dummy $ac_prog; ac_word=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if test "${ac_cv_prog_AWK+set}" = set; then :
2823   $as_echo_n "(cached) " >&6
2824 else
2825   if test -n "$AWK"; then
2826   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_AWK="$ac_prog"
2836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840   done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 AWK=$ac_cv_prog_AWK
2846 if test -n "$AWK"; then
2847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2848 $as_echo "$AWK" >&6; }
2849 else
2850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2852 fi
2853
2854
2855   test -n "$AWK" && break
2856 done
2857
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2859 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2860 set x ${MAKE-make}
2861 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2862 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2863   $as_echo_n "(cached) " >&6
2864 else
2865   cat >conftest.make <<\_ACEOF
2866 SHELL = /bin/sh
2867 all:
2868         @echo '@@@%%%=$(MAKE)=@@@%%%'
2869 _ACEOF
2870 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2871 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2872   *@@@%%%=?*=@@@%%%*)
2873     eval ac_cv_prog_make_${ac_make}_set=yes;;
2874   *)
2875     eval ac_cv_prog_make_${ac_make}_set=no;;
2876 esac
2877 rm -f conftest.make
2878 fi
2879 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882   SET_MAKE=
2883 else
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886   SET_MAKE="MAKE=${MAKE-make}"
2887 fi
2888
2889 rm -rf .tst 2>/dev/null
2890 mkdir .tst 2>/dev/null
2891 if test -d .tst; then
2892   am__leading_dot=.
2893 else
2894   am__leading_dot=_
2895 fi
2896 rmdir .tst 2>/dev/null
2897
2898 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2899   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2900   # is not polluted with repeated "-I."
2901   am__isrc=' -I$(srcdir)'
2902   # test to see if srcdir already configured
2903   if test -f $srcdir/config.status; then
2904     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2905   fi
2906 fi
2907
2908 # test whether we have cygpath
2909 if test -z "$CYGPATH_W"; then
2910   if (cygpath --version) >/dev/null 2>/dev/null; then
2911     CYGPATH_W='cygpath -w'
2912   else
2913     CYGPATH_W=echo
2914   fi
2915 fi
2916
2917
2918 # Define the identity of the package.
2919  PACKAGE='libgo'
2920  VERSION='version-unused'
2921
2922
2923 # Some tools Automake needs.
2924
2925 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2926
2927
2928 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2929
2930
2931 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2932
2933
2934 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2935
2936
2937 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2938
2939 # We need awk for the "check" target.  The system "awk" is bad on
2940 # some platforms.
2941 # Always define AMTAR for backward compatibility.
2942
2943 AMTAR=${AMTAR-"${am_missing_run}tar"}
2944
2945 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956 ac_ext=c
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 if test -n "$ac_tool_prefix"; then
2962   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_CC+set}" = set; then :
2967   $as_echo_n "(cached) " >&6
2968 else
2969   if test -n "$CC"; then
2970   ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977     for ac_exec_ext in '' $ac_executable_extensions; do
2978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984   done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999 fi
3000 if test -z "$ac_cv_prog_CC"; then
3001   ac_ct_CC=$CC
3002   # Extract the first word of "gcc", so it can be a program name with args.
3003 set dummy gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3007   $as_echo_n "(cached) " >&6
3008 else
3009   if test -n "$ac_ct_CC"; then
3010   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015   IFS=$as_save_IFS
3016   test -z "$as_dir" && as_dir=.
3017     for ac_exec_ext in '' $ac_executable_extensions; do
3018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019     ac_cv_prog_ac_ct_CC="gcc"
3020     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021     break 2
3022   fi
3023 done
3024   done
3025 IFS=$as_save_IFS
3026
3027 fi
3028 fi
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3033 else
3034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3036 fi
3037
3038   if test "x$ac_ct_CC" = x; then
3039     CC=""
3040   else
3041     case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047     CC=$ac_ct_CC
3048   fi
3049 else
3050   CC="$ac_cv_prog_CC"
3051 fi
3052
3053 if test -z "$CC"; then
3054           if test -n "$ac_tool_prefix"; then
3055     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_CC+set}" = set; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if test -n "$CC"; then
3063   ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070     for ac_exec_ext in '' $ac_executable_extensions; do
3071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072     ac_cv_prog_CC="${ac_tool_prefix}cc"
3073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074     break 2
3075   fi
3076 done
3077   done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 CC=$ac_cv_prog_CC
3083 if test -n "$CC"; then
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3086 else
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 fi
3090
3091
3092   fi
3093 fi
3094 if test -z "$CC"; then
3095   # Extract the first word of "cc", so it can be a program name with args.
3096 set dummy cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then :
3100   $as_echo_n "(cached) " >&6
3101 else
3102   if test -n "$CC"; then
3103   ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105   ac_prog_rejected=no
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3108 do
3109   IFS=$as_save_IFS
3110   test -z "$as_dir" && as_dir=.
3111     for ac_exec_ext in '' $ac_executable_extensions; do
3112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114        ac_prog_rejected=yes
3115        continue
3116      fi
3117     ac_cv_prog_CC="cc"
3118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119     break 2
3120   fi
3121 done
3122   done
3123 IFS=$as_save_IFS
3124
3125 if test $ac_prog_rejected = yes; then
3126   # We found a bogon in the path, so make sure we never use it.
3127   set dummy $ac_cv_prog_CC
3128   shift
3129   if test $# != 0; then
3130     # We chose a different compiler from the bogus one.
3131     # However, it has the same basename, so the bogon will be chosen
3132     # first if we set CC to just the basename; use the full file name.
3133     shift
3134     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3135   fi
3136 fi
3137 fi
3138 fi
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3146 fi
3147
3148
3149 fi
3150 if test -z "$CC"; then
3151   if test -n "$ac_tool_prefix"; then
3152   for ac_prog in cl.exe
3153   do
3154     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if test "${ac_cv_prog_CC+set}" = set; then :
3159   $as_echo_n "(cached) " >&6
3160 else
3161   if test -n "$CC"; then
3162   ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3166 do
3167   IFS=$as_save_IFS
3168   test -z "$as_dir" && as_dir=.
3169     for ac_exec_ext in '' $ac_executable_extensions; do
3170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173     break 2
3174   fi
3175 done
3176   done
3177 IFS=$as_save_IFS
3178
3179 fi
3180 fi
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3188 fi
3189
3190
3191     test -n "$CC" && break
3192   done
3193 fi
3194 if test -z "$CC"; then
3195   ac_ct_CC=$CC
3196   for ac_prog in cl.exe
3197 do
3198   # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3203   $as_echo_n "(cached) " >&6
3204 else
3205   if test -n "$ac_ct_CC"; then
3206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3210 do
3211   IFS=$as_save_IFS
3212   test -z "$as_dir" && as_dir=.
3213     for ac_exec_ext in '' $ac_executable_extensions; do
3214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215     ac_cv_prog_ac_ct_CC="$ac_prog"
3216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217     break 2
3218   fi
3219 done
3220   done
3221 IFS=$as_save_IFS
3222
3223 fi
3224 fi
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3229 else
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234
3235   test -n "$ac_ct_CC" && break
3236 done
3237
3238   if test "x$ac_ct_CC" = x; then
3239     CC=""
3240   else
3241     case $cross_compiling:$ac_tool_warned in
3242 yes:)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3246 esac
3247     CC=$ac_ct_CC
3248   fi
3249 fi
3250
3251 fi
3252
3253
3254 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error "no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details." "$LINENO" 5; }
3258
3259 # Provide some information about the compiler.
3260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3261 set X $ac_compile
3262 ac_compiler=$2
3263 for ac_option in --version -v -V -qversion; do
3264   { { ac_try="$ac_compiler $ac_option >&5"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3272   ac_status=$?
3273   if test -s conftest.err; then
3274     sed '10a\
3275 ... rest of stderr output deleted ...
3276          10q' conftest.err >conftest.er1
3277     cat conftest.er1 >&5
3278     rm -f conftest.er1 conftest.err
3279   fi
3280   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281   test $ac_status = 0; }
3282 done
3283
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h.  */
3286
3287 int
3288 main ()
3289 {
3290
3291   ;
3292   return 0;
3293 }
3294 _ACEOF
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3297 # Try to create an executable without -o first, disregard a.out.
3298 # It will help us diagnose broken compilers, and finding out an intuition
3299 # of exeext.
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3301 $as_echo_n "checking for C compiler default output file name... " >&6; }
3302 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3303
3304 # The possible output files:
3305 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3306
3307 ac_rmfiles=
3308 for ac_file in $ac_files
3309 do
3310   case $ac_file in
3311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313   esac
3314 done
3315 rm -f $ac_rmfiles
3316
3317 if { { ac_try="$ac_link_default"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324   (eval "$ac_link_default") 2>&5
3325   ac_status=$?
3326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327   test $ac_status = 0; }; then :
3328   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3331 # so that the user can short-circuit this test for compilers unknown to
3332 # Autoconf.
3333 for ac_file in $ac_files ''
3334 do
3335   test -f "$ac_file" || continue
3336   case $ac_file in
3337     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3338         ;;
3339     [ab].out )
3340         # We found the default executable, but exeext='' is most
3341         # certainly right.
3342         break;;
3343     *.* )
3344         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345         then :; else
3346            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3347         fi
3348         # We set ac_cv_exeext here because the later test for it is not
3349         # safe: cross compilers may not add the suffix if given an `-o'
3350         # argument, so we may need to know it at that point already.
3351         # Even if this section looks crufty: it has the advantage of
3352         # actually working.
3353         break;;
3354     * )
3355         break;;
3356   esac
3357 done
3358 test "$ac_cv_exeext" = no && ac_cv_exeext=
3359
3360 else
3361   ac_file=''
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3364 $as_echo "$ac_file" >&6; }
3365 if test -z "$ac_file"; then :
3366   $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3368
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 { as_fn_set_status 77
3372 as_fn_error "C compiler cannot create executables
3373 See \`config.log' for more details." "$LINENO" 5; }; }
3374 fi
3375 ac_exeext=$ac_cv_exeext
3376
3377 # Check that the compiler produces executables we can run.  If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380 $as_echo_n "checking whether the C compiler works... " >&6; }
3381 # If not cross compiling, check that we can run a simple program.
3382 if test "$cross_compiling" != yes; then
3383   if { ac_try='./$ac_file'
3384   { { case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390   (eval "$ac_try") 2>&5
3391   ac_status=$?
3392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393   test $ac_status = 0; }; }; then
3394     cross_compiling=no
3395   else
3396     if test "$cross_compiling" = maybe; then
3397         cross_compiling=yes
3398     else
3399         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error "cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details." "$LINENO" 5; }
3404     fi
3405   fi
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3409
3410 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3411 ac_clean_files=$ac_clean_files_save
3412 # Check that the compiler produces executables we can run.  If not, either
3413 # the compiler is broken, or we cross compile.
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3415 $as_echo_n "checking whether we are cross compiling... " >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3417 $as_echo "$cross_compiling" >&6; }
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3420 $as_echo_n "checking for suffix of executables... " >&6; }
3421 if { { ac_try="$ac_link"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428   (eval "$ac_link") 2>&5
3429   ac_status=$?
3430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431   test $ac_status = 0; }; then :
3432   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe'), while it won't with
3435 # `rm'.
3436 for ac_file in conftest.exe conftest conftest.*; do
3437   test -f "$ac_file" || continue
3438   case $ac_file in
3439     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441           break;;
3442     * ) break;;
3443   esac
3444 done
3445 else
3446   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error "cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details." "$LINENO" 5; }
3450 fi
3451 rm -f conftest$ac_cv_exeext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3453 $as_echo "$ac_cv_exeext" >&6; }
3454
3455 rm -f conftest.$ac_ext
3456 EXEEXT=$ac_cv_exeext
3457 ac_exeext=$EXEEXT
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459 $as_echo_n "checking for suffix of object files... " >&6; }
3460 if test "${ac_cv_objext+set}" = set; then :
3461   $as_echo_n "(cached) " >&6
3462 else
3463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h.  */
3465
3466 int
3467 main ()
3468 {
3469
3470   ;
3471   return 0;
3472 }
3473 _ACEOF
3474 rm -f conftest.o conftest.obj
3475 if { { ac_try="$ac_compile"
3476 case "(($ac_try" in
3477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478   *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482   (eval "$ac_compile") 2>&5
3483   ac_status=$?
3484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485   test $ac_status = 0; }; then :
3486   for ac_file in conftest.o conftest.obj conftest.*; do
3487   test -f "$ac_file" || continue;
3488   case $ac_file in
3489     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491        break;;
3492   esac
3493 done
3494 else
3495   $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error "cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details." "$LINENO" 5; }
3502 fi
3503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3504 fi
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506 $as_echo "$ac_cv_objext" >&6; }
3507 OBJEXT=$ac_cv_objext
3508 ac_objext=$OBJEXT
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3516
3517 int
3518 main ()
3519 {
3520 #ifndef __GNUC__
3521        choke me
3522 #endif
3523
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529   ac_compiler_gnu=yes
3530 else
3531   ac_compiler_gnu=no
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535
3536 fi
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539 if test $ac_compiler_gnu = yes; then
3540   GCC=yes
3541 else
3542   GCC=
3543 fi
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3548 if test "${ac_cv_prog_cc_g+set}" = set; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551   ac_save_c_werror_flag=$ac_c_werror_flag
3552    ac_c_werror_flag=yes
3553    ac_cv_prog_cc_g=no
3554    CFLAGS="-g"
3555    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h.  */
3557
3558 int
3559 main ()
3560 {
3561
3562   ;
3563   return 0;
3564 }
3565 _ACEOF
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567   ac_cv_prog_cc_g=yes
3568 else
3569   CFLAGS=""
3570       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582
3583 else
3584   ac_c_werror_flag=$ac_save_c_werror_flag
3585          CFLAGS="-g"
3586          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h.  */
3588
3589 int
3590 main ()
3591 {
3592
3593   ;
3594   return 0;
3595 }
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598   ac_cv_prog_cc_g=yes
3599 fi
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3606 fi
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608 $as_echo "$ac_cv_prog_cc_g" >&6; }
3609 if test "$ac_test_CFLAGS" = set; then
3610   CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612   if test "$GCC" = yes; then
3613     CFLAGS="-g -O2"
3614   else
3615     CFLAGS="-g"
3616   fi
3617 else
3618   if test "$GCC" = yes; then
3619     CFLAGS="-O2"
3620   else
3621     CFLAGS=
3622   fi
3623 fi
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   ac_cv_prog_cc_c89=no
3630 ac_save_CC=$CC
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3633 #include <stdarg.h>
3634 #include <stdio.h>
3635 #include <sys/types.h>
3636 #include <sys/stat.h>
3637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3638 struct buf { int x; };
3639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3640 static char *e (p, i)
3641      char **p;
3642      int i;
3643 {
3644   return p[i];
3645 }
3646 static char *f (char * (*g) (char **, int), char **p, ...)
3647 {
3648   char *s;
3649   va_list v;
3650   va_start (v,p);
3651   s = g (p, va_arg (v,int));
3652   va_end (v);
3653   return s;
3654 }
3655
3656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3657    function prototypes and stuff, but not '\xHH' hex character constants.
3658    These don't provoke an error unfortunately, instead are silently treated
3659    as 'x'.  The following induces an error, until -std is added to get
3660    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3661    array size at least.  It's necessary to write '\x00'==0 to get something
3662    that's true only with -std.  */
3663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3664
3665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3666    inside strings and character constants.  */
3667 #define FOO(x) 'x'
3668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3669
3670 int test (int i, double x);
3671 struct s1 {int (*f) (int a);};
3672 struct s2 {int (*f) (double a);};
3673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3674 int argc;
3675 char **argv;
3676 int
3677 main ()
3678 {
3679 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3680   ;
3681   return 0;
3682 }
3683 _ACEOF
3684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3685         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3686 do
3687   CC="$ac_save_CC $ac_arg"
3688   if ac_fn_c_try_compile "$LINENO"; then :
3689   ac_cv_prog_cc_c89=$ac_arg
3690 fi
3691 rm -f core conftest.err conftest.$ac_objext
3692   test "x$ac_cv_prog_cc_c89" != "xno" && break
3693 done
3694 rm -f conftest.$ac_ext
3695 CC=$ac_save_CC
3696
3697 fi
3698 # AC_CACHE_VAL
3699 case "x$ac_cv_prog_cc_c89" in
3700   x)
3701     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3702 $as_echo "none needed" >&6; } ;;
3703   xno)
3704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3705 $as_echo "unsupported" >&6; } ;;
3706   *)
3707     CC="$CC $ac_cv_prog_cc_c89"
3708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3709 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3710 esac
3711 if test "x$ac_cv_prog_cc_c89" != xno; then :
3712
3713 fi
3714
3715 ac_ext=c
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 DEPDIR="${am__leading_dot}deps"
3721
3722 ac_config_commands="$ac_config_commands depfiles"
3723
3724
3725 am_make=${MAKE-make}
3726 cat > confinc << 'END'
3727 am__doit:
3728         @echo this is the am__doit target
3729 .PHONY: am__doit
3730 END
3731 # If we don't find an include directive, just comment out the code.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3733 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3734 am__include="#"
3735 am__quote=
3736 _am_result=none
3737 # First try GNU make style include.
3738 echo "include confinc" > confmf
3739 # Ignore all kinds of additional output from `make'.
3740 case `$am_make -s -f confmf 2> /dev/null` in #(
3741 *the\ am__doit\ target*)
3742   am__include=include
3743   am__quote=
3744   _am_result=GNU
3745   ;;
3746 esac
3747 # Now try BSD make style include.
3748 if test "$am__include" = "#"; then
3749    echo '.include "confinc"' > confmf
3750    case `$am_make -s -f confmf 2> /dev/null` in #(
3751    *the\ am__doit\ target*)
3752      am__include=.include
3753      am__quote="\""
3754      _am_result=BSD
3755      ;;
3756    esac
3757 fi
3758
3759
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3761 $as_echo "$_am_result" >&6; }
3762 rm -f confinc confmf
3763
3764 # Check whether --enable-dependency-tracking was given.
3765 if test "${enable_dependency_tracking+set}" = set; then :
3766   enableval=$enable_dependency_tracking;
3767 fi
3768
3769 if test "x$enable_dependency_tracking" != xno; then
3770   am_depcomp="$ac_aux_dir/depcomp"
3771   AMDEPBACKSLASH='\'
3772 fi
3773  if test "x$enable_dependency_tracking" != xno; then
3774   AMDEP_TRUE=
3775   AMDEP_FALSE='#'
3776 else
3777   AMDEP_TRUE='#'
3778   AMDEP_FALSE=
3779 fi
3780
3781
3782
3783 depcc="$CC"   am_compiler_list=
3784
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3786 $as_echo_n "checking dependency style of $depcc... " >&6; }
3787 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3788   $as_echo_n "(cached) " >&6
3789 else
3790   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3791   # We make a subdir and do the tests there.  Otherwise we can end up
3792   # making bogus files that we don't know about and never remove.  For
3793   # instance it was reported that on HP-UX the gcc test will end up
3794   # making a dummy file named `D' -- because `-MD' means `put the output
3795   # in D'.
3796   mkdir conftest.dir
3797   # Copy depcomp to subdir because otherwise we won't find it if we're
3798   # using a relative directory.
3799   cp "$am_depcomp" conftest.dir
3800   cd conftest.dir
3801   # We will build objects and dependencies in a subdirectory because
3802   # it helps to detect inapplicable dependency modes.  For instance
3803   # both Tru64's cc and ICC support -MD to output dependencies as a
3804   # side effect of compilation, but ICC will put the dependencies in
3805   # the current directory while Tru64 will put them in the object
3806   # directory.
3807   mkdir sub
3808
3809   am_cv_CC_dependencies_compiler_type=none
3810   if test "$am_compiler_list" = ""; then
3811      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3812   fi
3813   am__universal=false
3814   case " $depcc " in #(
3815      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3816      esac
3817
3818   for depmode in $am_compiler_list; do
3819     # Setup a source with many dependencies, because some compilers
3820     # like to wrap large dependency lists on column 80 (with \), and
3821     # we should not choose a depcomp mode which is confused by this.
3822     #
3823     # We need to recreate these files for each test, as the compiler may
3824     # overwrite some of them when testing with obscure command lines.
3825     # This happens at least with the AIX C compiler.
3826     : > sub/conftest.c
3827     for i in 1 2 3 4 5 6; do
3828       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3829       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3830       # Solaris 8's {/usr,}/bin/sh.
3831       touch sub/conftst$i.h
3832     done
3833     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3834
3835     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3836     # mode.  It turns out that the SunPro C++ compiler does not properly
3837     # handle `-M -o', and we need to detect this.  Also, some Intel
3838     # versions had trouble with output in subdirs
3839     am__obj=sub/conftest.${OBJEXT-o}
3840     am__minus_obj="-o $am__obj"
3841     case $depmode in
3842     gcc)
3843       # This depmode causes a compiler race in universal mode.
3844       test "$am__universal" = false || continue
3845       ;;
3846     nosideeffect)
3847       # after this tag, mechanisms are not by side-effect, so they'll
3848       # only be used when explicitly requested
3849       if test "x$enable_dependency_tracking" = xyes; then
3850         continue
3851       else
3852         break
3853       fi
3854       ;;
3855     msvisualcpp | msvcmsys)
3856       # This compiler won't grok `-c -o', but also, the minuso test has
3857       # not run yet.  These depmodes are late enough in the game, and
3858       # so weak that their functioning should not be impacted.
3859       am__obj=conftest.${OBJEXT-o}
3860       am__minus_obj=
3861       ;;
3862     none) break ;;
3863     esac
3864     if depmode=$depmode \
3865        source=sub/conftest.c object=$am__obj \
3866        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3867        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3868          >/dev/null 2>conftest.err &&
3869        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3870        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3871        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3872        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3873       # icc doesn't choke on unknown options, it will just issue warnings
3874       # or remarks (even with -Werror).  So we grep stderr for any message
3875       # that says an option was ignored or not supported.
3876       # When given -MP, icc 7.0 and 7.1 complain thusly:
3877       #   icc: Command line warning: ignoring option '-M'; no argument required
3878       # The diagnosis changed in icc 8.0:
3879       #   icc: Command line remark: option '-MP' not supported
3880       if (grep 'ignoring option' conftest.err ||
3881           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3882         am_cv_CC_dependencies_compiler_type=$depmode
3883         break
3884       fi
3885     fi
3886   done
3887
3888   cd ..
3889   rm -rf conftest.dir
3890 else
3891   am_cv_CC_dependencies_compiler_type=none
3892 fi
3893
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3896 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3897 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3898
3899  if
3900   test "x$enable_dependency_tracking" != xno \
3901   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3902   am__fastdepCC_TRUE=
3903   am__fastdepCC_FALSE='#'
3904 else
3905   am__fastdepCC_TRUE='#'
3906   am__fastdepCC_FALSE=
3907 fi
3908
3909
3910 ac_ext=go
3911 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3912 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compile_gnu=yes
3914 if test -n "$ac_tool_prefix"; then
3915   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3916 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918 $as_echo_n "checking for $ac_word... " >&6; }
3919 if test "${ac_cv_prog_GOC+set}" = set; then :
3920   $as_echo_n "(cached) " >&6
3921 else
3922   if test -n "$GOC"; then
3923   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3924 else
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $PATH
3927 do
3928   IFS=$as_save_IFS
3929   test -z "$as_dir" && as_dir=.
3930     for ac_exec_ext in '' $ac_executable_extensions; do
3931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3934     break 2
3935   fi
3936 done
3937   done
3938 IFS=$as_save_IFS
3939
3940 fi
3941 fi
3942 GOC=$ac_cv_prog_GOC
3943 if test -n "$GOC"; then
3944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3945 $as_echo "$GOC" >&6; }
3946 else
3947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948 $as_echo "no" >&6; }
3949 fi
3950
3951
3952 fi
3953 if test -z "$ac_cv_prog_GOC"; then
3954   ac_ct_GOC=$GOC
3955   # Extract the first word of "gccgo", so it can be a program name with args.
3956 set dummy gccgo; ac_word=$2
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 $as_echo_n "checking for $ac_word... " >&6; }
3959 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3960   $as_echo_n "(cached) " >&6
3961 else
3962   if test -n "$ac_ct_GOC"; then
3963   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968   IFS=$as_save_IFS
3969   test -z "$as_dir" && as_dir=.
3970     for ac_exec_ext in '' $ac_executable_extensions; do
3971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972     ac_cv_prog_ac_ct_GOC="gccgo"
3973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3974     break 2
3975   fi
3976 done
3977   done
3978 IFS=$as_save_IFS
3979
3980 fi
3981 fi
3982 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3983 if test -n "$ac_ct_GOC"; then
3984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3985 $as_echo "$ac_ct_GOC" >&6; }
3986 else
3987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988 $as_echo "no" >&6; }
3989 fi
3990
3991   if test "x$ac_ct_GOC" = x; then
3992     GOC=""
3993   else
3994     case $cross_compiling:$ac_tool_warned in
3995 yes:)
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998 ac_tool_warned=yes ;;
3999 esac
4000     GOC=$ac_ct_GOC
4001   fi
4002 else
4003   GOC="$ac_cv_prog_GOC"
4004 fi
4005
4006 if test -z "$GOC"; then
4007   if test -n "$ac_tool_prefix"; then
4008     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4009 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011 $as_echo_n "checking for $ac_word... " >&6; }
4012 if test "${ac_cv_prog_GOC+set}" = set; then :
4013   $as_echo_n "(cached) " >&6
4014 else
4015   if test -n "$GOC"; then
4016   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4017 else
4018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023     for ac_exec_ext in '' $ac_executable_extensions; do
4024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4025     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4027     break 2
4028   fi
4029 done
4030   done
4031 IFS=$as_save_IFS
4032
4033 fi
4034 fi
4035 GOC=$ac_cv_prog_GOC
4036 if test -n "$GOC"; then
4037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4038 $as_echo "$GOC" >&6; }
4039 else
4040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4042 fi
4043
4044
4045   fi
4046 fi
4047 if test -z "$GOC"; then
4048   # Extract the first word of "gccgo", so it can be a program name with args.
4049 set dummy gccgo; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if test "${ac_cv_prog_GOC+set}" = set; then :
4053   $as_echo_n "(cached) " >&6
4054 else
4055   if test -n "$GOC"; then
4056   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4057 else
4058   ac_prog_rejected=no
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062   IFS=$as_save_IFS
4063   test -z "$as_dir" && as_dir=.
4064     for ac_exec_ext in '' $ac_executable_extensions; do
4065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4067        ac_prog_rejected=yes
4068        continue
4069      fi
4070     ac_cv_prog_GOC="gccgo"
4071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075   done
4076 IFS=$as_save_IFS
4077
4078 if test $ac_prog_rejected = yes; then
4079   # We found a bogon in the path, so make sure we never use it.
4080   set dummy $ac_cv_prog_GOC
4081   shift
4082   if test $# != 0; then
4083     # We chose a different compiler from the bogus one.
4084     # However, it has the same basename, so the bogon will be chosen
4085     # first if we set GOC to just the basename; use the full file name.
4086     shift
4087     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4088   fi
4089 fi
4090 fi
4091 fi
4092 GOC=$ac_cv_prog_GOC
4093 if test -n "$GOC"; then
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4095 $as_echo "$GOC" >&6; }
4096 else
4097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098 $as_echo "no" >&6; }
4099 fi
4100
4101
4102 fi
4103
4104
4105 # Provide some information about the compiler.
4106 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4107 set X $ac_compile
4108 ac_compiler=$2
4109 { { ac_try="$ac_compiler --version >&5"
4110 case "(($ac_try" in
4111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4112   *) ac_try_echo=$ac_try;;
4113 esac
4114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4115 $as_echo "$ac_try_echo"; } >&5
4116   (eval "$ac_compiler --version >&5") 2>conftest.err
4117   ac_status=$?
4118   if test -s conftest.err; then
4119     sed '10a\
4120 ... rest of stderr output deleted ...
4121          10q' conftest.err >conftest.er1
4122     cat conftest.er1 >&5
4123     rm -f conftest.er1 conftest.err
4124   fi
4125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126   test $ac_status = 0; }
4127 GOCFLAGS="-g -O2"
4128 ac_ext=c
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133
4134
4135
4136
4137
4138
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4140 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4141     # Check whether --enable-maintainer-mode was given.
4142 if test "${enable_maintainer_mode+set}" = set; then :
4143   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4144 else
4145   USE_MAINTAINER_MODE=no
4146 fi
4147
4148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4149 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4150    if test $USE_MAINTAINER_MODE = yes; then
4151   MAINTAINER_MODE_TRUE=
4152   MAINTAINER_MODE_FALSE='#'
4153 else
4154   MAINTAINER_MODE_TRUE='#'
4155   MAINTAINER_MODE_FALSE=
4156 fi
4157
4158   MAINT=$MAINTAINER_MODE_TRUE
4159
4160
4161
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4163 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4164 if test "${ac_cv_path_SED+set}" = set; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4168      for ac_i in 1 2 3 4 5 6 7; do
4169        ac_script="$ac_script$as_nl$ac_script"
4170      done
4171      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4172      { ac_script=; unset ac_script;}
4173      if test -z "$SED"; then
4174   ac_path_SED_found=false
4175   # Loop through the user's path and test for each of PROGNAME-LIST
4176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179   IFS=$as_save_IFS
4180   test -z "$as_dir" && as_dir=.
4181     for ac_prog in sed gsed; do
4182     for ac_exec_ext in '' $ac_executable_extensions; do
4183       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4184       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4185 # Check for GNU ac_path_SED and select it if it is found.
4186   # Check for GNU $ac_path_SED
4187 case `"$ac_path_SED" --version 2>&1` in
4188 *GNU*)
4189   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4190 *)
4191   ac_count=0
4192   $as_echo_n 0123456789 >"conftest.in"
4193   while :
4194   do
4195     cat "conftest.in" "conftest.in" >"conftest.tmp"
4196     mv "conftest.tmp" "conftest.in"
4197     cp "conftest.in" "conftest.nl"
4198     $as_echo '' >> "conftest.nl"
4199     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4200     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4201     as_fn_arith $ac_count + 1 && ac_count=$as_val
4202     if test $ac_count -gt ${ac_path_SED_max-0}; then
4203       # Best one so far, save it but keep looking for a better one
4204       ac_cv_path_SED="$ac_path_SED"
4205       ac_path_SED_max=$ac_count
4206     fi
4207     # 10*(2^10) chars as input seems more than enough
4208     test $ac_count -gt 10 && break
4209   done
4210   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4211 esac
4212
4213       $ac_path_SED_found && break 3
4214     done
4215   done
4216   done
4217 IFS=$as_save_IFS
4218   if test -z "$ac_cv_path_SED"; then
4219     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4220   fi
4221 else
4222   ac_cv_path_SED=$SED
4223 fi
4224
4225 fi
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4227 $as_echo "$ac_cv_path_SED" >&6; }
4228  SED="$ac_cv_path_SED"
4229   rm -f conftest.sed
4230
4231 test -z "$SED" && SED=sed
4232 Xsed="$SED -e 1s/^X//"
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4245 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4246 if test "${ac_cv_path_GREP+set}" = set; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   if test -z "$GREP"; then
4250   ac_path_GREP_found=false
4251   # Loop through the user's path and test for each of PROGNAME-LIST
4252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257     for ac_prog in grep ggrep; do
4258     for ac_exec_ext in '' $ac_executable_extensions; do
4259       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4260       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4261 # Check for GNU ac_path_GREP and select it if it is found.
4262   # Check for GNU $ac_path_GREP
4263 case `"$ac_path_GREP" --version 2>&1` in
4264 *GNU*)
4265   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4266 *)
4267   ac_count=0
4268   $as_echo_n 0123456789 >"conftest.in"
4269   while :
4270   do
4271     cat "conftest.in" "conftest.in" >"conftest.tmp"
4272     mv "conftest.tmp" "conftest.in"
4273     cp "conftest.in" "conftest.nl"
4274     $as_echo 'GREP' >> "conftest.nl"
4275     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277     as_fn_arith $ac_count + 1 && ac_count=$as_val
4278     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4279       # Best one so far, save it but keep looking for a better one
4280       ac_cv_path_GREP="$ac_path_GREP"
4281       ac_path_GREP_max=$ac_count
4282     fi
4283     # 10*(2^10) chars as input seems more than enough
4284     test $ac_count -gt 10 && break
4285   done
4286   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287 esac
4288
4289       $ac_path_GREP_found && break 3
4290     done
4291   done
4292   done
4293 IFS=$as_save_IFS
4294   if test -z "$ac_cv_path_GREP"; then
4295     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4296   fi
4297 else
4298   ac_cv_path_GREP=$GREP
4299 fi
4300
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4303 $as_echo "$ac_cv_path_GREP" >&6; }
4304  GREP="$ac_cv_path_GREP"
4305
4306
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4308 $as_echo_n "checking for egrep... " >&6; }
4309 if test "${ac_cv_path_EGREP+set}" = set; then :
4310   $as_echo_n "(cached) " >&6
4311 else
4312   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4313    then ac_cv_path_EGREP="$GREP -E"
4314    else
4315      if test -z "$EGREP"; then
4316   ac_path_EGREP_found=false
4317   # Loop through the user's path and test for each of PROGNAME-LIST
4318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4320 do
4321   IFS=$as_save_IFS
4322   test -z "$as_dir" && as_dir=.
4323     for ac_prog in egrep; do
4324     for ac_exec_ext in '' $ac_executable_extensions; do
4325       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4326       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4327 # Check for GNU ac_path_EGREP and select it if it is found.
4328   # Check for GNU $ac_path_EGREP
4329 case `"$ac_path_EGREP" --version 2>&1` in
4330 *GNU*)
4331   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4332 *)
4333   ac_count=0
4334   $as_echo_n 0123456789 >"conftest.in"
4335   while :
4336   do
4337     cat "conftest.in" "conftest.in" >"conftest.tmp"
4338     mv "conftest.tmp" "conftest.in"
4339     cp "conftest.in" "conftest.nl"
4340     $as_echo 'EGREP' >> "conftest.nl"
4341     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4342     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4343     as_fn_arith $ac_count + 1 && ac_count=$as_val
4344     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4345       # Best one so far, save it but keep looking for a better one
4346       ac_cv_path_EGREP="$ac_path_EGREP"
4347       ac_path_EGREP_max=$ac_count
4348     fi
4349     # 10*(2^10) chars as input seems more than enough
4350     test $ac_count -gt 10 && break
4351   done
4352   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4353 esac
4354
4355       $ac_path_EGREP_found && break 3
4356     done
4357   done
4358   done
4359 IFS=$as_save_IFS
4360   if test -z "$ac_cv_path_EGREP"; then
4361     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4362   fi
4363 else
4364   ac_cv_path_EGREP=$EGREP
4365 fi
4366
4367    fi
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4370 $as_echo "$ac_cv_path_EGREP" >&6; }
4371  EGREP="$ac_cv_path_EGREP"
4372
4373
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4375 $as_echo_n "checking for fgrep... " >&6; }
4376 if test "${ac_cv_path_FGREP+set}" = set; then :
4377   $as_echo_n "(cached) " >&6
4378 else
4379   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4380    then ac_cv_path_FGREP="$GREP -F"
4381    else
4382      if test -z "$FGREP"; then
4383   ac_path_FGREP_found=false
4384   # Loop through the user's path and test for each of PROGNAME-LIST
4385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4387 do
4388   IFS=$as_save_IFS
4389   test -z "$as_dir" && as_dir=.
4390     for ac_prog in fgrep; do
4391     for ac_exec_ext in '' $ac_executable_extensions; do
4392       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4393       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4394 # Check for GNU ac_path_FGREP and select it if it is found.
4395   # Check for GNU $ac_path_FGREP
4396 case `"$ac_path_FGREP" --version 2>&1` in
4397 *GNU*)
4398   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4399 *)
4400   ac_count=0
4401   $as_echo_n 0123456789 >"conftest.in"
4402   while :
4403   do
4404     cat "conftest.in" "conftest.in" >"conftest.tmp"
4405     mv "conftest.tmp" "conftest.in"
4406     cp "conftest.in" "conftest.nl"
4407     $as_echo 'FGREP' >> "conftest.nl"
4408     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4409     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4410     as_fn_arith $ac_count + 1 && ac_count=$as_val
4411     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4412       # Best one so far, save it but keep looking for a better one
4413       ac_cv_path_FGREP="$ac_path_FGREP"
4414       ac_path_FGREP_max=$ac_count
4415     fi
4416     # 10*(2^10) chars as input seems more than enough
4417     test $ac_count -gt 10 && break
4418   done
4419   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4420 esac
4421
4422       $ac_path_FGREP_found && break 3
4423     done
4424   done
4425   done
4426 IFS=$as_save_IFS
4427   if test -z "$ac_cv_path_FGREP"; then
4428     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4429   fi
4430 else
4431   ac_cv_path_FGREP=$FGREP
4432 fi
4433
4434    fi
4435 fi
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4437 $as_echo "$ac_cv_path_FGREP" >&6; }
4438  FGREP="$ac_cv_path_FGREP"
4439
4440
4441 test -z "$GREP" && GREP=grep
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4460 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4461 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4464 $as_echo_n "checking how to print strings... " >&6; }
4465 # Test print first, because it will be a builtin if present.
4466 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4467    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4468   ECHO='print -r --'
4469 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4470   ECHO='printf %s\n'
4471 else
4472   # Use this function as a fallback that always works.
4473   func_fallback_echo ()
4474   {
4475     eval 'cat <<_LTECHO_EOF
4476 $1
4477 _LTECHO_EOF'
4478   }
4479   ECHO='func_fallback_echo'
4480 fi
4481
4482 # func_echo_all arg...
4483 # Invoke $ECHO with all args, space-separated.
4484 func_echo_all ()
4485 {
4486     $ECHO ""
4487 }
4488
4489 case "$ECHO" in
4490   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4491 $as_echo "printf" >&6; } ;;
4492   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4493 $as_echo "print -r" >&6; } ;;
4494   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4495 $as_echo "cat" >&6; } ;;
4496 esac
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513 # Check whether --with-gnu-ld was given.
4514 if test "${with_gnu_ld+set}" = set; then :
4515   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4516 else
4517   with_gnu_ld=no
4518 fi
4519
4520 ac_prog=ld
4521 if test "$GCC" = yes; then
4522   # Check if gcc -print-prog-name=ld gives a path.
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4524 $as_echo_n "checking for ld used by $CC... " >&6; }
4525   case $host in
4526   *-*-mingw*)
4527     # gcc leaves a trailing carriage return which upsets mingw
4528     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4529   *)
4530     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4531   esac
4532   case $ac_prog in
4533     # Accept absolute paths.
4534     [\\/]* | ?:[\\/]*)
4535       re_direlt='/[^/][^/]*/\.\./'
4536       # Canonicalize the pathname of ld
4537       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4538       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4539         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4540       done
4541       test -z "$LD" && LD="$ac_prog"
4542       ;;
4543   "")
4544     # If it fails, then pretend we aren't using GCC.
4545     ac_prog=ld
4546     ;;
4547   *)
4548     # If it is relative, then search for the first ld in PATH.
4549     with_gnu_ld=unknown
4550     ;;
4551   esac
4552 elif test "$with_gnu_ld" = yes; then
4553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4554 $as_echo_n "checking for GNU ld... " >&6; }
4555 else
4556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4557 $as_echo_n "checking for non-GNU ld... " >&6; }
4558 fi
4559 if test "${lt_cv_path_LD+set}" = set; then :
4560   $as_echo_n "(cached) " >&6
4561 else
4562   if test -z "$LD"; then
4563   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4564   for ac_dir in $PATH; do
4565     IFS="$lt_save_ifs"
4566     test -z "$ac_dir" && ac_dir=.
4567     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4568       lt_cv_path_LD="$ac_dir/$ac_prog"
4569       # Check to see if the program is GNU ld.  I'd rather use --version,
4570       # but apparently some variants of GNU ld only accept -v.
4571       # Break only if it was the GNU/non-GNU ld that we prefer.
4572       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4573       *GNU* | *'with BFD'*)
4574         test "$with_gnu_ld" != no && break
4575         ;;
4576       *)
4577         test "$with_gnu_ld" != yes && break
4578         ;;
4579       esac
4580     fi
4581   done
4582   IFS="$lt_save_ifs"
4583 else
4584   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4585 fi
4586 fi
4587
4588 LD="$lt_cv_path_LD"
4589 if test -n "$LD"; then
4590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4591 $as_echo "$LD" >&6; }
4592 else
4593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4595 fi
4596 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4598 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4599 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4600   $as_echo_n "(cached) " >&6
4601 else
4602   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4603 case `$LD -v 2>&1 </dev/null` in
4604 *GNU* | *'with BFD'*)
4605   lt_cv_prog_gnu_ld=yes
4606   ;;
4607 *)
4608   lt_cv_prog_gnu_ld=no
4609   ;;
4610 esac
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4613 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4614 with_gnu_ld=$lt_cv_prog_gnu_ld
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624 if test -n "$ac_tool_prefix"; then
4625   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4626 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4630   $as_echo_n "(cached) " >&6
4631 else
4632   if test -n "$RANLIB"; then
4633   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4634 else
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_exec_ext in '' $ac_executable_extensions; do
4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4642     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647   done
4648 IFS=$as_save_IFS
4649
4650 fi
4651 fi
4652 RANLIB=$ac_cv_prog_RANLIB
4653 if test -n "$RANLIB"; then
4654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4655 $as_echo "$RANLIB" >&6; }
4656 else
4657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4659 fi
4660
4661
4662 fi
4663 if test -z "$ac_cv_prog_RANLIB"; then
4664   ac_ct_RANLIB=$RANLIB
4665   # Extract the first word of "ranlib", so it can be a program name with args.
4666 set dummy ranlib; ac_word=$2
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4668 $as_echo_n "checking for $ac_word... " >&6; }
4669 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4670   $as_echo_n "(cached) " >&6
4671 else
4672   if test -n "$ac_ct_RANLIB"; then
4673   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4674 else
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH
4677 do
4678   IFS=$as_save_IFS
4679   test -z "$as_dir" && as_dir=.
4680     for ac_exec_ext in '' $ac_executable_extensions; do
4681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4682     ac_cv_prog_ac_ct_RANLIB="ranlib"
4683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684     break 2
4685   fi
4686 done
4687   done
4688 IFS=$as_save_IFS
4689
4690 fi
4691 fi
4692 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4693 if test -n "$ac_ct_RANLIB"; then
4694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4695 $as_echo "$ac_ct_RANLIB" >&6; }
4696 else
4697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4699 fi
4700
4701   if test "x$ac_ct_RANLIB" = x; then
4702     RANLIB=":"
4703   else
4704     case $cross_compiling:$ac_tool_warned in
4705 yes:)
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4708 ac_tool_warned=yes ;;
4709 esac
4710     RANLIB=$ac_ct_RANLIB
4711   fi
4712 else
4713   RANLIB="$ac_cv_prog_RANLIB"
4714 fi
4715
4716 if test -n "$ac_tool_prefix"; then
4717   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4718 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 $as_echo_n "checking for $ac_word... " >&6; }
4721 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4722   $as_echo_n "(cached) " >&6
4723 else
4724   if test -n "$OBJCOPY"; then
4725   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4726 else
4727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732     for ac_exec_ext in '' $ac_executable_extensions; do
4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4735     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739   done
4740 IFS=$as_save_IFS
4741
4742 fi
4743 fi
4744 OBJCOPY=$ac_cv_prog_OBJCOPY
4745 if test -n "$OBJCOPY"; then
4746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4747 $as_echo "$OBJCOPY" >&6; }
4748 else
4749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4750 $as_echo "no" >&6; }
4751 fi
4752
4753
4754 fi
4755 if test -z "$ac_cv_prog_OBJCOPY"; then
4756   ac_ct_OBJCOPY=$OBJCOPY
4757   # Extract the first word of "objcopy", so it can be a program name with args.
4758 set dummy objcopy; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   if test -n "$ac_ct_OBJCOPY"; then
4765   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772     for ac_exec_ext in '' $ac_executable_extensions; do
4773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776     break 2
4777   fi
4778 done
4779   done
4780 IFS=$as_save_IFS
4781
4782 fi
4783 fi
4784 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4785 if test -n "$ac_ct_OBJCOPY"; then
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4787 $as_echo "$ac_ct_OBJCOPY" >&6; }
4788 else
4789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4791 fi
4792
4793   if test "x$ac_ct_OBJCOPY" = x; then
4794     OBJCOPY="missing-objcopy"
4795   else
4796     case $cross_compiling:$ac_tool_warned in
4797 yes:)
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802     OBJCOPY=$ac_ct_OBJCOPY
4803   fi
4804 else
4805   OBJCOPY="$ac_cv_prog_OBJCOPY"
4806 fi
4807
4808
4809 enable_dlopen=yes
4810
4811
4812
4813 case `pwd` in
4814   *\ * | *\     *)
4815     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4816 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4817 esac
4818
4819
4820
4821 macro_version='2.2.7a'
4822 macro_revision='1.3134'
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836 ltmain="$ac_aux_dir/ltmain.sh"
4837
4838 # Backslashify metacharacters that are still active within
4839 # double-quoted strings.
4840 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4841
4842 # Same as above, but do not quote variable references.
4843 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4844
4845 # Sed substitution to delay expansion of an escaped shell variable in a
4846 # double_quote_subst'ed string.
4847 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4848
4849 # Sed substitution to delay expansion of an escaped single quote.
4850 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4851
4852 # Sed substitution to avoid accidental globbing in evaled expressions
4853 no_glob_subst='s/\*/\\\*/g'
4854
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4856 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4857 if test "${lt_cv_path_NM+set}" = set; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860   if test -n "$NM"; then
4861   # Let the user override the test.
4862   lt_cv_path_NM="$NM"
4863 else
4864   lt_nm_to_check="${ac_tool_prefix}nm"
4865   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4866     lt_nm_to_check="$lt_nm_to_check nm"
4867   fi
4868   for lt_tmp_nm in $lt_nm_to_check; do
4869     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4870     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4871       IFS="$lt_save_ifs"
4872       test -z "$ac_dir" && ac_dir=.
4873       tmp_nm="$ac_dir/$lt_tmp_nm"
4874       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4875         # Check to see if the nm accepts a BSD-compat flag.
4876         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4877         #   nm: unknown option "B" ignored
4878         # Tru64's nm complains that /dev/null is an invalid object file
4879         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4880         */dev/null* | *'Invalid file or object type'*)
4881           lt_cv_path_NM="$tmp_nm -B"
4882           break
4883           ;;
4884         *)
4885           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4886           */dev/null*)
4887             lt_cv_path_NM="$tmp_nm -p"
4888             break
4889             ;;
4890           *)
4891             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4892             continue # so that we can try to find one that supports BSD flags
4893             ;;
4894           esac
4895           ;;
4896         esac
4897       fi
4898     done
4899     IFS="$lt_save_ifs"
4900   done
4901   : ${lt_cv_path_NM=no}
4902 fi
4903 fi
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4905 $as_echo "$lt_cv_path_NM" >&6; }
4906 if test "$lt_cv_path_NM" != "no"; then
4907   NM="$lt_cv_path_NM"
4908 else
4909   # Didn't find any BSD compatible name lister, look for dumpbin.
4910   if test -n "$DUMPBIN"; then :
4911     # Let the user override the test.
4912   else
4913     if test -n "$ac_tool_prefix"; then
4914   for ac_prog in dumpbin "link -dump"
4915   do
4916     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4919 $as_echo_n "checking for $ac_word... " >&6; }
4920 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4921   $as_echo_n "(cached) " >&6
4922 else
4923   if test -n "$DUMPBIN"; then
4924   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4925 else
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931     for ac_exec_ext in '' $ac_executable_extensions; do
4932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938   done
4939 IFS=$as_save_IFS
4940
4941 fi
4942 fi
4943 DUMPBIN=$ac_cv_prog_DUMPBIN
4944 if test -n "$DUMPBIN"; then
4945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4946 $as_echo "$DUMPBIN" >&6; }
4947 else
4948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4949 $as_echo "no" >&6; }
4950 fi
4951
4952
4953     test -n "$DUMPBIN" && break
4954   done
4955 fi
4956 if test -z "$DUMPBIN"; then
4957   ac_ct_DUMPBIN=$DUMPBIN
4958   for ac_prog in dumpbin "link -dump"
4959 do
4960   # Extract the first word of "$ac_prog", so it can be a program name with args.
4961 set dummy $ac_prog; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   if test -n "$ac_ct_DUMPBIN"; then
4968   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   test -z "$as_dir" && as_dir=.
4975     for ac_exec_ext in '' $ac_executable_extensions; do
4976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982   done
4983 IFS=$as_save_IFS
4984
4985 fi
4986 fi
4987 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4988 if test -n "$ac_ct_DUMPBIN"; then
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4990 $as_echo "$ac_ct_DUMPBIN" >&6; }
4991 else
4992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 fi
4995
4996
4997   test -n "$ac_ct_DUMPBIN" && break
4998 done
4999
5000   if test "x$ac_ct_DUMPBIN" = x; then
5001     DUMPBIN=":"
5002   else
5003     case $cross_compiling:$ac_tool_warned in
5004 yes:)
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5007 ac_tool_warned=yes ;;
5008 esac
5009     DUMPBIN=$ac_ct_DUMPBIN
5010   fi
5011 fi
5012
5013     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5014     *COFF*)
5015       DUMPBIN="$DUMPBIN -symbols"
5016       ;;
5017     *)
5018       DUMPBIN=:
5019       ;;
5020     esac
5021   fi
5022
5023   if test "$DUMPBIN" != ":"; then
5024     NM="$DUMPBIN"
5025   fi
5026 fi
5027 test -z "$NM" && NM=nm
5028
5029
5030
5031
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5035 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5036 if test "${lt_cv_nm_interface+set}" = set; then :
5037   $as_echo_n "(cached) " >&6
5038 else
5039   lt_cv_nm_interface="BSD nm"
5040   echo "int some_variable = 0;" > conftest.$ac_ext
5041   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5042   (eval "$ac_compile" 2>conftest.err)
5043   cat conftest.err >&5
5044   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5045   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5046   cat conftest.err >&5
5047   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5048   cat conftest.out >&5
5049   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5050     lt_cv_nm_interface="MS dumpbin"
5051   fi
5052   rm -f conftest*
5053 fi
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5055 $as_echo "$lt_cv_nm_interface" >&6; }
5056
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5058 $as_echo_n "checking whether ln -s works... " >&6; }
5059 LN_S=$as_ln_s
5060 if test "$LN_S" = "ln -s"; then
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5062 $as_echo "yes" >&6; }
5063 else
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5065 $as_echo "no, using $LN_S" >&6; }
5066 fi
5067
5068 # find the maximum length of command line arguments
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5070 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5071 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5072   $as_echo_n "(cached) " >&6
5073 else
5074     i=0
5075   teststring="ABCD"
5076
5077   case $build_os in
5078   msdosdjgpp*)
5079     # On DJGPP, this test can blow up pretty badly due to problems in libc
5080     # (any single argument exceeding 2000 bytes causes a buffer overrun
5081     # during glob expansion).  Even if it were fixed, the result of this
5082     # check would be larger than it should be.
5083     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5084     ;;
5085
5086   gnu*)
5087     # Under GNU Hurd, this test is not required because there is
5088     # no limit to the length of command line arguments.
5089     # Libtool will interpret -1 as no limit whatsoever
5090     lt_cv_sys_max_cmd_len=-1;
5091     ;;
5092
5093   cygwin* | mingw* | cegcc*)
5094     # On Win9x/ME, this test blows up -- it succeeds, but takes
5095     # about 5 minutes as the teststring grows exponentially.
5096     # Worse, since 9x/ME are not pre-emptively multitasking,
5097     # you end up with a "frozen" computer, even though with patience
5098     # the test eventually succeeds (with a max line length of 256k).
5099     # Instead, let's just punt: use the minimum linelength reported by
5100     # all of the supported platforms: 8192 (on NT/2K/XP).
5101     lt_cv_sys_max_cmd_len=8192;
5102     ;;
5103
5104   mint*)
5105     # On MiNT this can take a long time and run out of memory.
5106     lt_cv_sys_max_cmd_len=8192;
5107     ;;
5108
5109   amigaos*)
5110     # On AmigaOS with pdksh, this test takes hours, literally.
5111     # So we just punt and use a minimum line length of 8192.
5112     lt_cv_sys_max_cmd_len=8192;
5113     ;;
5114
5115   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5116     # This has been around since 386BSD, at least.  Likely further.
5117     if test -x /sbin/sysctl; then
5118       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5119     elif test -x /usr/sbin/sysctl; then
5120       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5121     else
5122       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5123     fi
5124     # And add a safety zone
5125     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5126     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5127     ;;
5128
5129   interix*)
5130     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5131     lt_cv_sys_max_cmd_len=196608
5132     ;;
5133
5134   osf*)
5135     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5136     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5137     # nice to cause kernel panics so lets avoid the loop below.
5138     # First set a reasonable default.
5139     lt_cv_sys_max_cmd_len=16384
5140     #
5141     if test -x /sbin/sysconfig; then
5142       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5143         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5144       esac
5145     fi
5146     ;;
5147   sco3.2v5*)
5148     lt_cv_sys_max_cmd_len=102400
5149     ;;
5150   sysv5* | sco5v6* | sysv4.2uw2*)
5151     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5152     if test -n "$kargmax"; then
5153       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5154     else
5155       lt_cv_sys_max_cmd_len=32768
5156     fi
5157     ;;
5158   *)
5159     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5160     if test -n "$lt_cv_sys_max_cmd_len"; then
5161       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5162       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5163     else
5164       # Make teststring a little bigger before we do anything with it.
5165       # a 1K string should be a reasonable start.
5166       for i in 1 2 3 4 5 6 7 8 ; do
5167         teststring=$teststring$teststring
5168       done
5169       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5170       # If test is not a shell built-in, we'll probably end up computing a
5171       # maximum length that is only half of the actual maximum length, but
5172       # we can't tell.
5173       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5174                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5175               test $i != 17 # 1/2 MB should be enough
5176       do
5177         i=`expr $i + 1`
5178         teststring=$teststring$teststring
5179       done
5180       # Only check the string length outside the loop.
5181       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5182       teststring=
5183       # Add a significant safety factor because C++ compilers can tack on
5184       # massive amounts of additional arguments before passing them to the
5185       # linker.  It appears as though 1/2 is a usable value.
5186       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5187     fi
5188     ;;
5189   esac
5190
5191 fi
5192
5193 if test -n $lt_cv_sys_max_cmd_len ; then
5194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5195 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5196 else
5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5198 $as_echo "none" >&6; }
5199 fi
5200 max_cmd_len=$lt_cv_sys_max_cmd_len
5201
5202
5203
5204
5205
5206
5207 : ${CP="cp -f"}
5208 : ${MV="mv -f"}
5209 : ${RM="rm -f"}
5210
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5212 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5213 # Try some XSI features
5214 xsi_shell=no
5215 ( _lt_dummy="a/b/c"
5216   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5217       = c,a/b,, \
5218     && eval 'test $(( 1 + 1 )) -eq 2 \
5219     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5220   && xsi_shell=yes
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5222 $as_echo "$xsi_shell" >&6; }
5223
5224
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5226 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5227 lt_shell_append=no
5228 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5229     >/dev/null 2>&1 \
5230   && lt_shell_append=yes
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5232 $as_echo "$lt_shell_append" >&6; }
5233
5234
5235 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5236   lt_unset=unset
5237 else
5238   lt_unset=false
5239 fi
5240
5241
5242
5243
5244
5245 # test EBCDIC or ASCII
5246 case `echo X|tr X '\101'` in
5247  A) # ASCII based system
5248     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5249   lt_SP2NL='tr \040 \012'
5250   lt_NL2SP='tr \015\012 \040\040'
5251   ;;
5252  *) # EBCDIC based system
5253   lt_SP2NL='tr \100 \n'
5254   lt_NL2SP='tr \r\n \100\100'
5255   ;;
5256 esac
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5267 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5268 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271   lt_cv_ld_reload_flag='-r'
5272 fi
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5274 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5275 reload_flag=$lt_cv_ld_reload_flag
5276 case $reload_flag in
5277 "" | " "*) ;;
5278 *) reload_flag=" $reload_flag" ;;
5279 esac
5280 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5281 case $host_os in
5282   darwin*)
5283     if test "$GCC" = yes; then
5284       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5285     else
5286       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5287     fi
5288     ;;
5289 esac
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299 if test -n "$ac_tool_prefix"; then
5300   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5301 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5305   $as_echo_n "(cached) " >&6
5306 else
5307   if test -n "$OBJDUMP"; then
5308   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315     for ac_exec_ext in '' $ac_executable_extensions; do
5316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322   done
5323 IFS=$as_save_IFS
5324
5325 fi
5326 fi
5327 OBJDUMP=$ac_cv_prog_OBJDUMP
5328 if test -n "$OBJDUMP"; then
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5330 $as_echo "$OBJDUMP" >&6; }
5331 else
5332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5334 fi
5335
5336
5337 fi
5338 if test -z "$ac_cv_prog_OBJDUMP"; then
5339   ac_ct_OBJDUMP=$OBJDUMP
5340   # Extract the first word of "objdump", so it can be a program name with args.
5341 set dummy objdump; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5345   $as_echo_n "(cached) " >&6
5346 else
5347   if test -n "$ac_ct_OBJDUMP"; then
5348   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5352 do
5353   IFS=$as_save_IFS
5354   test -z "$as_dir" && as_dir=.
5355     for ac_exec_ext in '' $ac_executable_extensions; do
5356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359     break 2
5360   fi
5361 done
5362   done
5363 IFS=$as_save_IFS
5364
5365 fi
5366 fi
5367 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5368 if test -n "$ac_ct_OBJDUMP"; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5370 $as_echo "$ac_ct_OBJDUMP" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375
5376   if test "x$ac_ct_OBJDUMP" = x; then
5377     OBJDUMP="false"
5378   else
5379     case $cross_compiling:$ac_tool_warned in
5380 yes:)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383 ac_tool_warned=yes ;;
5384 esac
5385     OBJDUMP=$ac_ct_OBJDUMP
5386   fi
5387 else
5388   OBJDUMP="$ac_cv_prog_OBJDUMP"
5389 fi
5390
5391 test -z "$OBJDUMP" && OBJDUMP=objdump
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5402 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5403 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   lt_cv_file_magic_cmd='$MAGIC_CMD'
5407 lt_cv_file_magic_test_file=
5408 lt_cv_deplibs_check_method='unknown'
5409 # Need to set the preceding variable on all platforms that support
5410 # interlibrary dependencies.
5411 # 'none' -- dependencies not supported.
5412 # `unknown' -- same as none, but documents that we really don't know.
5413 # 'pass_all' -- all dependencies passed with no checks.
5414 # 'test_compile' -- check by making test program.
5415 # 'file_magic [[regex]]' -- check by looking for files in library path
5416 # which responds to the $file_magic_cmd with a given extended regex.
5417 # If you have `file' or equivalent on your system and you're not sure
5418 # whether `pass_all' will *always* work, you probably want this one.
5419
5420 case $host_os in
5421 aix[4-9]*)
5422   lt_cv_deplibs_check_method=pass_all
5423   ;;
5424
5425 beos*)
5426   lt_cv_deplibs_check_method=pass_all
5427   ;;
5428
5429 bsdi[45]*)
5430   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5431   lt_cv_file_magic_cmd='/usr/bin/file -L'
5432   lt_cv_file_magic_test_file=/shlib/libc.so
5433   ;;
5434
5435 cygwin*)
5436   # func_win32_libid is a shell function defined in ltmain.sh
5437   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5438   lt_cv_file_magic_cmd='func_win32_libid'
5439   ;;
5440
5441 mingw* | pw32*)
5442   # Base MSYS/MinGW do not provide the 'file' command needed by
5443   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5444   # unless we find 'file', for example because we are cross-compiling.
5445   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5446   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5447     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5448     lt_cv_file_magic_cmd='func_win32_libid'
5449   else
5450     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5451     lt_cv_file_magic_cmd='$OBJDUMP -f'
5452   fi
5453   ;;
5454
5455 cegcc*)
5456   # use the weaker test based on 'objdump'. See mingw*.
5457   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5458   lt_cv_file_magic_cmd='$OBJDUMP -f'
5459   ;;
5460
5461 darwin* | rhapsody*)
5462   lt_cv_deplibs_check_method=pass_all
5463   ;;
5464
5465 freebsd* | dragonfly*)
5466   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5467     case $host_cpu in
5468     i*86 )
5469       # Not sure whether the presence of OpenBSD here was a mistake.
5470       # Let's accept both of them until this is cleared up.
5471       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5472       lt_cv_file_magic_cmd=/usr/bin/file
5473       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5474       ;;
5475     esac
5476   else
5477     lt_cv_deplibs_check_method=pass_all
5478   fi
5479   ;;
5480
5481 gnu*)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 haiku*)
5486   lt_cv_deplibs_check_method=pass_all
5487   ;;
5488
5489 hpux10.20* | hpux11*)
5490   lt_cv_file_magic_cmd=/usr/bin/file
5491   case $host_cpu in
5492   ia64*)
5493     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5494     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5495     ;;
5496   hppa*64*)
5497     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]'
5498     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5499     ;;
5500   *)
5501     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5502     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5503     ;;
5504   esac
5505   ;;
5506
5507 interix[3-9]*)
5508   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5509   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5510   ;;
5511
5512 irix5* | irix6* | nonstopux*)
5513   case $LD in
5514   *-32|*"-32 ") libmagic=32-bit;;
5515   *-n32|*"-n32 ") libmagic=N32;;
5516   *-64|*"-64 ") libmagic=64-bit;;
5517   *) libmagic=never-match;;
5518   esac
5519   lt_cv_deplibs_check_method=pass_all
5520   ;;
5521
5522 # This must be Linux ELF.
5523 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5524   lt_cv_deplibs_check_method=pass_all
5525   ;;
5526
5527 netbsd*)
5528   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5529     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5530   else
5531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5532   fi
5533   ;;
5534
5535 newos6*)
5536   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5537   lt_cv_file_magic_cmd=/usr/bin/file
5538   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5539   ;;
5540
5541 *nto* | *qnx*)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 openbsd*)
5546   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5547     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5548   else
5549     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5550   fi
5551   ;;
5552
5553 osf3* | osf4* | osf5*)
5554   lt_cv_deplibs_check_method=pass_all
5555   ;;
5556
5557 rdos*)
5558   lt_cv_deplibs_check_method=pass_all
5559   ;;
5560
5561 solaris*)
5562   lt_cv_deplibs_check_method=pass_all
5563   ;;
5564
5565 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5566   lt_cv_deplibs_check_method=pass_all
5567   ;;
5568
5569 sysv4 | sysv4.3*)
5570   case $host_vendor in
5571   motorola)
5572     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]'
5573     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5574     ;;
5575   ncr)
5576     lt_cv_deplibs_check_method=pass_all
5577     ;;
5578   sequent)
5579     lt_cv_file_magic_cmd='/bin/file'
5580     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5581     ;;
5582   sni)
5583     lt_cv_file_magic_cmd='/bin/file'
5584     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5585     lt_cv_file_magic_test_file=/lib/libc.so
5586     ;;
5587   siemens)
5588     lt_cv_deplibs_check_method=pass_all
5589     ;;
5590   pc)
5591     lt_cv_deplibs_check_method=pass_all
5592     ;;
5593   esac
5594   ;;
5595
5596 tpf*)
5597   lt_cv_deplibs_check_method=pass_all
5598   ;;
5599 esac
5600
5601 fi
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5603 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5604 file_magic_cmd=$lt_cv_file_magic_cmd
5605 deplibs_check_method=$lt_cv_deplibs_check_method
5606 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619 if test -n "$ac_tool_prefix"; then
5620   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5621 set dummy ${ac_tool_prefix}ar; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if test "${ac_cv_prog_AR+set}" = set; then :
5625   $as_echo_n "(cached) " >&6
5626 else
5627   if test -n "$AR"; then
5628   ac_cv_prog_AR="$AR" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635     for ac_exec_ext in '' $ac_executable_extensions; do
5636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5637     ac_cv_prog_AR="${ac_tool_prefix}ar"
5638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639     break 2
5640   fi
5641 done
5642   done
5643 IFS=$as_save_IFS
5644
5645 fi
5646 fi
5647 AR=$ac_cv_prog_AR
5648 if test -n "$AR"; then
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5650 $as_echo "$AR" >&6; }
5651 else
5652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5654 fi
5655
5656
5657 fi
5658 if test -z "$ac_cv_prog_AR"; then
5659   ac_ct_AR=$AR
5660   # Extract the first word of "ar", so it can be a program name with args.
5661 set dummy ar; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5665   $as_echo_n "(cached) " >&6
5666 else
5667   if test -n "$ac_ct_AR"; then
5668   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5672 do
5673   IFS=$as_save_IFS
5674   test -z "$as_dir" && as_dir=.
5675     for ac_exec_ext in '' $ac_executable_extensions; do
5676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677     ac_cv_prog_ac_ct_AR="ar"
5678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679     break 2
5680   fi
5681 done
5682   done
5683 IFS=$as_save_IFS
5684
5685 fi
5686 fi
5687 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5688 if test -n "$ac_ct_AR"; then
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5690 $as_echo "$ac_ct_AR" >&6; }
5691 else
5692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5694 fi
5695
5696   if test "x$ac_ct_AR" = x; then
5697     AR="false"
5698   else
5699     case $cross_compiling:$ac_tool_warned in
5700 yes:)
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5703 ac_tool_warned=yes ;;
5704 esac
5705     AR=$ac_ct_AR
5706   fi
5707 else
5708   AR="$ac_cv_prog_AR"
5709 fi
5710
5711 test -z "$AR" && AR=ar
5712 test -z "$AR_FLAGS" && AR_FLAGS=cru
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724 if test -n "$ac_tool_prefix"; then
5725   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5726 set dummy ${ac_tool_prefix}strip; ac_word=$2
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5728 $as_echo_n "checking for $ac_word... " >&6; }
5729 if test "${ac_cv_prog_STRIP+set}" = set; then :
5730   $as_echo_n "(cached) " >&6
5731 else
5732   if test -n "$STRIP"; then
5733   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5734 else
5735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749
5750 fi
5751 fi
5752 STRIP=$ac_cv_prog_STRIP
5753 if test -n "$STRIP"; then
5754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5755 $as_echo "$STRIP" >&6; }
5756 else
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5759 fi
5760
5761
5762 fi
5763 if test -z "$ac_cv_prog_STRIP"; then
5764   ac_ct_STRIP=$STRIP
5765   # Extract the first word of "strip", so it can be a program name with args.
5766 set dummy strip; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5770   $as_echo_n "(cached) " >&6
5771 else
5772   if test -n "$ac_ct_STRIP"; then
5773   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5774 else
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 for as_dir in $PATH
5777 do
5778   IFS=$as_save_IFS
5779   test -z "$as_dir" && as_dir=.
5780     for ac_exec_ext in '' $ac_executable_extensions; do
5781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782     ac_cv_prog_ac_ct_STRIP="strip"
5783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5784     break 2
5785   fi
5786 done
5787   done
5788 IFS=$as_save_IFS
5789
5790 fi
5791 fi
5792 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793 if test -n "$ac_ct_STRIP"; then
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5795 $as_echo "$ac_ct_STRIP" >&6; }
5796 else
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801   if test "x$ac_ct_STRIP" = x; then
5802     STRIP=":"
5803   else
5804     case $cross_compiling:$ac_tool_warned in
5805 yes:)
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5808 ac_tool_warned=yes ;;
5809 esac
5810     STRIP=$ac_ct_STRIP
5811   fi
5812 else
5813   STRIP="$ac_cv_prog_STRIP"
5814 fi
5815
5816 test -z "$STRIP" && STRIP=:
5817
5818
5819
5820
5821
5822
5823 if test -n "$ac_tool_prefix"; then
5824   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5825 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5829   $as_echo_n "(cached) " >&6
5830 else
5831   if test -n "$RANLIB"; then
5832   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837   IFS=$as_save_IFS
5838   test -z "$as_dir" && as_dir=.
5839     for ac_exec_ext in '' $ac_executable_extensions; do
5840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843     break 2
5844   fi
5845 done
5846   done
5847 IFS=$as_save_IFS
5848
5849 fi
5850 fi
5851 RANLIB=$ac_cv_prog_RANLIB
5852 if test -n "$RANLIB"; then
5853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5854 $as_echo "$RANLIB" >&6; }
5855 else
5856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5858 fi
5859
5860
5861 fi
5862 if test -z "$ac_cv_prog_RANLIB"; then
5863   ac_ct_RANLIB=$RANLIB
5864   # Extract the first word of "ranlib", so it can be a program name with args.
5865 set dummy ranlib; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   if test -n "$ac_ct_RANLIB"; then
5872   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877   IFS=$as_save_IFS
5878   test -z "$as_dir" && as_dir=.
5879     for ac_exec_ext in '' $ac_executable_extensions; do
5880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881     ac_cv_prog_ac_ct_RANLIB="ranlib"
5882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883     break 2
5884   fi
5885 done
5886   done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5892 if test -n "$ac_ct_RANLIB"; then
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5894 $as_echo "$ac_ct_RANLIB" >&6; }
5895 else
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 $as_echo "no" >&6; }
5898 fi
5899
5900   if test "x$ac_ct_RANLIB" = x; then
5901     RANLIB=":"
5902   else
5903     case $cross_compiling:$ac_tool_warned in
5904 yes:)
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907 ac_tool_warned=yes ;;
5908 esac
5909     RANLIB=$ac_ct_RANLIB
5910   fi
5911 else
5912   RANLIB="$ac_cv_prog_RANLIB"
5913 fi
5914
5915 test -z "$RANLIB" && RANLIB=:
5916
5917
5918
5919
5920
5921
5922 # Determine commands to create old-style static archives.
5923 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5924 old_postinstall_cmds='chmod 644 $oldlib'
5925 old_postuninstall_cmds=
5926
5927 if test -n "$RANLIB"; then
5928   case $host_os in
5929   openbsd*)
5930     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5931     ;;
5932   *)
5933     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5934     ;;
5935   esac
5936   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5937 fi
5938
5939 case $host_os in
5940   darwin*)
5941     lock_old_archive_extraction=yes ;;
5942   *)
5943     lock_old_archive_extraction=no ;;
5944 esac
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984 # If no C compiler was specified, use CC.
5985 LTCC=${LTCC-"$CC"}
5986
5987 # If no C compiler flags were specified, use CFLAGS.
5988 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5989
5990 # Allow CC to be a program name with arguments.
5991 compiler=$CC
5992
5993
5994 # Check for command to grab the raw symbol name followed by C symbol from nm.
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5996 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5997 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000
6001 # These are sane defaults that work on at least a few old systems.
6002 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6003
6004 # Character class describing NM global symbol codes.
6005 symcode='[BCDEGRST]'
6006
6007 # Regexp to match symbols that can be accessed directly from C.
6008 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6009
6010 # Define system-specific variables.
6011 case $host_os in
6012 aix*)
6013   symcode='[BCDT]'
6014   ;;
6015 cygwin* | mingw* | pw32* | cegcc*)
6016   symcode='[ABCDGISTW]'
6017   ;;
6018 hpux*)
6019   if test "$host_cpu" = ia64; then
6020     symcode='[ABCDEGRST]'
6021   fi
6022   ;;
6023 irix* | nonstopux*)
6024   symcode='[BCDEGRST]'
6025   ;;
6026 osf*)
6027   symcode='[BCDEGQRST]'
6028   ;;
6029 solaris*)
6030   symcode='[BDRT]'
6031   ;;
6032 sco3.2v5*)
6033   symcode='[DT]'
6034   ;;
6035 sysv4.2uw2*)
6036   symcode='[DT]'
6037   ;;
6038 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6039   symcode='[ABDT]'
6040   ;;
6041 sysv4)
6042   symcode='[DFNSTU]'
6043   ;;
6044 esac
6045
6046 # If we're using GNU nm, then use its standard symbol codes.
6047 case `$NM -V 2>&1` in
6048 *GNU* | *'with BFD'*)
6049   symcode='[ABCDGIRSTW]' ;;
6050 esac
6051
6052 # Transform an extracted symbol line into a proper C declaration.
6053 # Some systems (esp. on ia64) link data and code symbols differently,
6054 # so use this general approach.
6055 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6056
6057 # Transform an extracted symbol line into symbol name and symbol address
6058 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6059 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'"
6060
6061 # Handle CRLF in mingw tool chain
6062 opt_cr=
6063 case $build_os in
6064 mingw*)
6065   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6066   ;;
6067 esac
6068
6069 # Try without a prefix underscore, then with it.
6070 for ac_symprfx in "" "_"; do
6071
6072   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6073   symxfrm="\\1 $ac_symprfx\\2 \\2"
6074
6075   # Write the raw and C identifiers.
6076   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6077     # Fake it for dumpbin and say T for any non-static function
6078     # and D for any global variable.
6079     # Also find C++ and __fastcall symbols from MSVC++,
6080     # which start with @ or ?.
6081     lt_cv_sys_global_symbol_pipe="$AWK '"\
6082 "     {last_section=section; section=\$ 3};"\
6083 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6084 "     \$ 0!~/External *\|/{next};"\
6085 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6086 "     {if(hide[section]) next};"\
6087 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6088 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6089 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6090 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6091 "     ' prfx=^$ac_symprfx"
6092   else
6093     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6094   fi
6095
6096   # Check to see that the pipe works correctly.
6097   pipe_works=no
6098
6099   rm -f conftest*
6100   cat > conftest.$ac_ext <<_LT_EOF
6101 #ifdef __cplusplus
6102 extern "C" {
6103 #endif
6104 char nm_test_var;
6105 void nm_test_func(void);
6106 void nm_test_func(void){}
6107 #ifdef __cplusplus
6108 }
6109 #endif
6110 int main(){nm_test_var='a';nm_test_func();return(0);}
6111 _LT_EOF
6112
6113   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6114   (eval $ac_compile) 2>&5
6115   ac_status=$?
6116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117   test $ac_status = 0; }; then
6118     # Now try to grab the symbols.
6119     nlist=conftest.nm
6120     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6121   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6122   ac_status=$?
6123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6124   test $ac_status = 0; } && test -s "$nlist"; then
6125       # Try sorting and uniquifying the output.
6126       if sort "$nlist" | uniq > "$nlist"T; then
6127         mv -f "$nlist"T "$nlist"
6128       else
6129         rm -f "$nlist"T
6130       fi
6131
6132       # Make sure that we snagged all the symbols we need.
6133       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6134         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6135           cat <<_LT_EOF > conftest.$ac_ext
6136 #ifdef __cplusplus
6137 extern "C" {
6138 #endif
6139
6140 _LT_EOF
6141           # Now generate the symbol file.
6142           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6143
6144           cat <<_LT_EOF >> conftest.$ac_ext
6145
6146 /* The mapping between symbol names and symbols.  */
6147 const struct {
6148   const char *name;
6149   void       *address;
6150 }
6151 lt__PROGRAM__LTX_preloaded_symbols[] =
6152 {
6153   { "@PROGRAM@", (void *) 0 },
6154 _LT_EOF
6155           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6156           cat <<\_LT_EOF >> conftest.$ac_ext
6157   {0, (void *) 0}
6158 };
6159
6160 /* This works around a problem in FreeBSD linker */
6161 #ifdef FREEBSD_WORKAROUND
6162 static const void *lt_preloaded_setup() {
6163   return lt__PROGRAM__LTX_preloaded_symbols;
6164 }
6165 #endif
6166
6167 #ifdef __cplusplus
6168 }
6169 #endif
6170 _LT_EOF
6171           # Now try linking the two files.
6172           mv conftest.$ac_objext conftstm.$ac_objext
6173           lt_save_LIBS="$LIBS"
6174           lt_save_CFLAGS="$CFLAGS"
6175           LIBS="conftstm.$ac_objext"
6176           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6177           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6178   (eval $ac_link) 2>&5
6179   ac_status=$?
6180   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6181   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6182             pipe_works=yes
6183           fi
6184           LIBS="$lt_save_LIBS"
6185           CFLAGS="$lt_save_CFLAGS"
6186         else
6187           echo "cannot find nm_test_func in $nlist" >&5
6188         fi
6189       else
6190         echo "cannot find nm_test_var in $nlist" >&5
6191       fi
6192     else
6193       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6194     fi
6195   else
6196     echo "$progname: failed program was:" >&5
6197     cat conftest.$ac_ext >&5
6198   fi
6199   rm -rf conftest* conftst*
6200
6201   # Do not use the global_symbol_pipe unless it works.
6202   if test "$pipe_works" = yes; then
6203     break
6204   else
6205     lt_cv_sys_global_symbol_pipe=
6206   fi
6207 done
6208
6209 fi
6210
6211 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6212   lt_cv_sys_global_symbol_to_cdecl=
6213 fi
6214 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6216 $as_echo "failed" >&6; }
6217 else
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6219 $as_echo "ok" >&6; }
6220 fi
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244 # Check whether --enable-libtool-lock was given.
6245 if test "${enable_libtool_lock+set}" = set; then :
6246   enableval=$enable_libtool_lock;
6247 fi
6248
6249 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6250
6251 # Some flags need to be propagated to the compiler or linker for good
6252 # libtool support.
6253 case $host in
6254 ia64-*-hpux*)
6255   # Find out which ABI we are using.
6256   echo 'int i;' > conftest.$ac_ext
6257   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6258   (eval $ac_compile) 2>&5
6259   ac_status=$?
6260   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6261   test $ac_status = 0; }; then
6262     case `/usr/bin/file conftest.$ac_objext` in
6263       *ELF-32*)
6264         HPUX_IA64_MODE="32"
6265         ;;
6266       *ELF-64*)
6267         HPUX_IA64_MODE="64"
6268         ;;
6269     esac
6270   fi
6271   rm -rf conftest*
6272   ;;
6273 *-*-irix6*)
6274   # Find out which ABI we are using.
6275   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6276   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6277   (eval $ac_compile) 2>&5
6278   ac_status=$?
6279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6280   test $ac_status = 0; }; then
6281     if test "$lt_cv_prog_gnu_ld" = yes; then
6282       case `/usr/bin/file conftest.$ac_objext` in
6283         *32-bit*)
6284           LD="${LD-ld} -melf32bsmip"
6285           ;;
6286         *N32*)
6287           LD="${LD-ld} -melf32bmipn32"
6288           ;;
6289         *64-bit*)
6290           LD="${LD-ld} -melf64bmip"
6291         ;;
6292       esac
6293     else
6294       case `/usr/bin/file conftest.$ac_objext` in
6295         *32-bit*)
6296           LD="${LD-ld} -32"
6297           ;;
6298         *N32*)
6299           LD="${LD-ld} -n32"
6300           ;;
6301         *64-bit*)
6302           LD="${LD-ld} -64"
6303           ;;
6304       esac
6305     fi
6306   fi
6307   rm -rf conftest*
6308   ;;
6309
6310 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6311 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6312   # Find out which ABI we are using.
6313   echo 'int i;' > conftest.$ac_ext
6314   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6315   (eval $ac_compile) 2>&5
6316   ac_status=$?
6317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318   test $ac_status = 0; }; then
6319     case `/usr/bin/file conftest.o` in
6320       *32-bit*)
6321         case $host in
6322           x86_64-*kfreebsd*-gnu)
6323             LD="${LD-ld} -m elf_i386_fbsd"
6324             ;;
6325           x86_64-*linux*)
6326             LD="${LD-ld} -m elf_i386"
6327             ;;
6328           ppc64-*linux*|powerpc64-*linux*)
6329             LD="${LD-ld} -m elf32ppclinux"
6330             ;;
6331           s390x-*linux*)
6332             LD="${LD-ld} -m elf_s390"
6333             ;;
6334           sparc64-*linux*)
6335             LD="${LD-ld} -m elf32_sparc"
6336             ;;
6337         esac
6338         ;;
6339       *64-bit*)
6340         case $host in
6341           x86_64-*kfreebsd*-gnu)
6342             LD="${LD-ld} -m elf_x86_64_fbsd"
6343             ;;
6344           x86_64-*linux*)
6345             LD="${LD-ld} -m elf_x86_64"
6346             ;;
6347           ppc*-*linux*|powerpc*-*linux*)
6348             LD="${LD-ld} -m elf64ppc"
6349             ;;
6350           s390*-*linux*|s390*-*tpf*)
6351             LD="${LD-ld} -m elf64_s390"
6352             ;;
6353           sparc*-*linux*)
6354             LD="${LD-ld} -m elf64_sparc"
6355             ;;
6356         esac
6357         ;;
6358     esac
6359   fi
6360   rm -rf conftest*
6361   ;;
6362
6363 *-*-sco3.2v5*)
6364   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6365   SAVE_CFLAGS="$CFLAGS"
6366   CFLAGS="$CFLAGS -belf"
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6368 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6369 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6370   $as_echo_n "(cached) " >&6
6371 else
6372   ac_ext=c
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6377
6378      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h.  */
6380
6381 int
6382 main ()
6383 {
6384
6385   ;
6386   return 0;
6387 }
6388 _ACEOF
6389 if ac_fn_c_try_link "$LINENO"; then :
6390   lt_cv_cc_needs_belf=yes
6391 else
6392   lt_cv_cc_needs_belf=no
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext \
6395     conftest$ac_exeext conftest.$ac_ext
6396      ac_ext=c
6397 ac_cpp='$CPP $CPPFLAGS'
6398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6401
6402 fi
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6404 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6405   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6406     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6407     CFLAGS="$SAVE_CFLAGS"
6408   fi
6409   ;;
6410 *-*solaris*)
6411   # Find out which ABI we are using.
6412   echo 'int i;' > conftest.$ac_ext
6413   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414   (eval $ac_compile) 2>&5
6415   ac_status=$?
6416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417   test $ac_status = 0; }; then
6418     case `/usr/bin/file conftest.o` in
6419     *64-bit*)
6420       case $lt_cv_prog_gnu_ld in
6421       yes*)
6422         case $host in
6423         i?86-*-solaris*)
6424           LD="${LD-ld} -m elf_x86_64"
6425           ;;
6426         sparc*-*-solaris*)
6427           LD="${LD-ld} -m elf64_sparc"
6428           ;;
6429         esac
6430         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6431         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6432           LD="${LD-ld}_sol2"
6433         fi
6434         ;;
6435       *)
6436         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6437           LD="${LD-ld} -64"
6438         fi
6439         ;;
6440       esac
6441       ;;
6442     esac
6443   fi
6444   rm -rf conftest*
6445   ;;
6446 esac
6447
6448 need_locks="$enable_libtool_lock"
6449
6450
6451   case $host_os in
6452     rhapsody* | darwin*)
6453     if test -n "$ac_tool_prefix"; then
6454   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6455 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457 $as_echo_n "checking for $ac_word... " >&6; }
6458 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6459   $as_echo_n "(cached) " >&6
6460 else
6461   if test -n "$DSYMUTIL"; then
6462   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6463 else
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469     for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476   done
6477 IFS=$as_save_IFS
6478
6479 fi
6480 fi
6481 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6482 if test -n "$DSYMUTIL"; then
6483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6484 $as_echo "$DSYMUTIL" >&6; }
6485 else
6486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487 $as_echo "no" >&6; }
6488 fi
6489
6490
6491 fi
6492 if test -z "$ac_cv_prog_DSYMUTIL"; then
6493   ac_ct_DSYMUTIL=$DSYMUTIL
6494   # Extract the first word of "dsymutil", so it can be a program name with args.
6495 set dummy dsymutil; ac_word=$2
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6497 $as_echo_n "checking for $ac_word... " >&6; }
6498 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6499   $as_echo_n "(cached) " >&6
6500 else
6501   if test -n "$ac_ct_DSYMUTIL"; then
6502   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6503 else
6504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 for as_dir in $PATH
6506 do
6507   IFS=$as_save_IFS
6508   test -z "$as_dir" && as_dir=.
6509     for ac_exec_ext in '' $ac_executable_extensions; do
6510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6511     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6513     break 2
6514   fi
6515 done
6516   done
6517 IFS=$as_save_IFS
6518
6519 fi
6520 fi
6521 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6522 if test -n "$ac_ct_DSYMUTIL"; then
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6524 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6525 else
6526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6527 $as_echo "no" >&6; }
6528 fi
6529
6530   if test "x$ac_ct_DSYMUTIL" = x; then
6531     DSYMUTIL=":"
6532   else
6533     case $cross_compiling:$ac_tool_warned in
6534 yes:)
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6537 ac_tool_warned=yes ;;
6538 esac
6539     DSYMUTIL=$ac_ct_DSYMUTIL
6540   fi
6541 else
6542   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6543 fi
6544
6545     if test -n "$ac_tool_prefix"; then
6546   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6547 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6549 $as_echo_n "checking for $ac_word... " >&6; }
6550 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   if test -n "$NMEDIT"; then
6554   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6555 else
6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557 for as_dir in $PATH
6558 do
6559   IFS=$as_save_IFS
6560   test -z "$as_dir" && as_dir=.
6561     for ac_exec_ext in '' $ac_executable_extensions; do
6562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6563     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6565     break 2
6566   fi
6567 done
6568   done
6569 IFS=$as_save_IFS
6570
6571 fi
6572 fi
6573 NMEDIT=$ac_cv_prog_NMEDIT
6574 if test -n "$NMEDIT"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6576 $as_echo "$NMEDIT" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6580 fi
6581
6582
6583 fi
6584 if test -z "$ac_cv_prog_NMEDIT"; then
6585   ac_ct_NMEDIT=$NMEDIT
6586   # Extract the first word of "nmedit", so it can be a program name with args.
6587 set dummy nmedit; ac_word=$2
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589 $as_echo_n "checking for $ac_word... " >&6; }
6590 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6591   $as_echo_n "(cached) " >&6
6592 else
6593   if test -n "$ac_ct_NMEDIT"; then
6594   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6595 else
6596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 for as_dir in $PATH
6598 do
6599   IFS=$as_save_IFS
6600   test -z "$as_dir" && as_dir=.
6601     for ac_exec_ext in '' $ac_executable_extensions; do
6602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605     break 2
6606   fi
6607 done
6608   done
6609 IFS=$as_save_IFS
6610
6611 fi
6612 fi
6613 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6614 if test -n "$ac_ct_NMEDIT"; then
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6616 $as_echo "$ac_ct_NMEDIT" >&6; }
6617 else
6618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6619 $as_echo "no" >&6; }
6620 fi
6621
6622   if test "x$ac_ct_NMEDIT" = x; then
6623     NMEDIT=":"
6624   else
6625     case $cross_compiling:$ac_tool_warned in
6626 yes:)
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6629 ac_tool_warned=yes ;;
6630 esac
6631     NMEDIT=$ac_ct_NMEDIT
6632   fi
6633 else
6634   NMEDIT="$ac_cv_prog_NMEDIT"
6635 fi
6636
6637     if test -n "$ac_tool_prefix"; then
6638   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 $as_echo_n "checking for $ac_word... " >&6; }
6642 if test "${ac_cv_prog_LIPO+set}" = set; then :
6643   $as_echo_n "(cached) " >&6
6644 else
6645   if test -n "$LIPO"; then
6646   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6647 else
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653     for ac_exec_ext in '' $ac_executable_extensions; do
6654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6655     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660   done
6661 IFS=$as_save_IFS
6662
6663 fi
6664 fi
6665 LIPO=$ac_cv_prog_LIPO
6666 if test -n "$LIPO"; then
6667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6668 $as_echo "$LIPO" >&6; }
6669 else
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 fi
6673
6674
6675 fi
6676 if test -z "$ac_cv_prog_LIPO"; then
6677   ac_ct_LIPO=$LIPO
6678   # Extract the first word of "lipo", so it can be a program name with args.
6679 set dummy lipo; ac_word=$2
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681 $as_echo_n "checking for $ac_word... " >&6; }
6682 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6683   $as_echo_n "(cached) " >&6
6684 else
6685   if test -n "$ac_ct_LIPO"; then
6686   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6687 else
6688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 for as_dir in $PATH
6690 do
6691   IFS=$as_save_IFS
6692   test -z "$as_dir" && as_dir=.
6693     for ac_exec_ext in '' $ac_executable_extensions; do
6694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6695     ac_cv_prog_ac_ct_LIPO="lipo"
6696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6697     break 2
6698   fi
6699 done
6700   done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6706 if test -n "$ac_ct_LIPO"; then
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6708 $as_echo "$ac_ct_LIPO" >&6; }
6709 else
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713
6714   if test "x$ac_ct_LIPO" = x; then
6715     LIPO=":"
6716   else
6717     case $cross_compiling:$ac_tool_warned in
6718 yes:)
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6722 esac
6723     LIPO=$ac_ct_LIPO
6724   fi
6725 else
6726   LIPO="$ac_cv_prog_LIPO"
6727 fi
6728
6729     if test -n "$ac_tool_prefix"; then
6730   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6731 set dummy ${ac_tool_prefix}otool; ac_word=$2
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 $as_echo_n "checking for $ac_word... " >&6; }
6734 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6735   $as_echo_n "(cached) " >&6
6736 else
6737   if test -n "$OTOOL"; then
6738   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743   IFS=$as_save_IFS
6744   test -z "$as_dir" && as_dir=.
6745     for ac_exec_ext in '' $ac_executable_extensions; do
6746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6749     break 2
6750   fi
6751 done
6752   done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 OTOOL=$ac_cv_prog_OTOOL
6758 if test -n "$OTOOL"; then
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6760 $as_echo "$OTOOL" >&6; }
6761 else
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763 $as_echo "no" >&6; }
6764 fi
6765
6766
6767 fi
6768 if test -z "$ac_cv_prog_OTOOL"; then
6769   ac_ct_OTOOL=$OTOOL
6770   # Extract the first word of "otool", so it can be a program name with args.
6771 set dummy otool; ac_word=$2
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6773 $as_echo_n "checking for $ac_word... " >&6; }
6774 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6775   $as_echo_n "(cached) " >&6
6776 else
6777   if test -n "$ac_ct_OTOOL"; then
6778   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6779 else
6780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 for as_dir in $PATH
6782 do
6783   IFS=$as_save_IFS
6784   test -z "$as_dir" && as_dir=.
6785     for ac_exec_ext in '' $ac_executable_extensions; do
6786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6787     ac_cv_prog_ac_ct_OTOOL="otool"
6788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789     break 2
6790   fi
6791 done
6792   done
6793 IFS=$as_save_IFS
6794
6795 fi
6796 fi
6797 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6798 if test -n "$ac_ct_OTOOL"; then
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6800 $as_echo "$ac_ct_OTOOL" >&6; }
6801 else
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6803 $as_echo "no" >&6; }
6804 fi
6805
6806   if test "x$ac_ct_OTOOL" = x; then
6807     OTOOL=":"
6808   else
6809     case $cross_compiling:$ac_tool_warned in
6810 yes:)
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6813 ac_tool_warned=yes ;;
6814 esac
6815     OTOOL=$ac_ct_OTOOL
6816   fi
6817 else
6818   OTOOL="$ac_cv_prog_OTOOL"
6819 fi
6820
6821     if test -n "$ac_tool_prefix"; then
6822   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6823 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6827   $as_echo_n "(cached) " >&6
6828 else
6829   if test -n "$OTOOL64"; then
6830   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837     for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844   done
6845 IFS=$as_save_IFS
6846
6847 fi
6848 fi
6849 OTOOL64=$ac_cv_prog_OTOOL64
6850 if test -n "$OTOOL64"; then
6851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6852 $as_echo "$OTOOL64" >&6; }
6853 else
6854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6856 fi
6857
6858
6859 fi
6860 if test -z "$ac_cv_prog_OTOOL64"; then
6861   ac_ct_OTOOL64=$OTOOL64
6862   # Extract the first word of "otool64", so it can be a program name with args.
6863 set dummy otool64; ac_word=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6867   $as_echo_n "(cached) " >&6
6868 else
6869   if test -n "$ac_ct_OTOOL64"; then
6870   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877     for ac_exec_ext in '' $ac_executable_extensions; do
6878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879     ac_cv_prog_ac_ct_OTOOL64="otool64"
6880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884   done
6885 IFS=$as_save_IFS
6886
6887 fi
6888 fi
6889 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6890 if test -n "$ac_ct_OTOOL64"; then
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6892 $as_echo "$ac_ct_OTOOL64" >&6; }
6893 else
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897
6898   if test "x$ac_ct_OTOOL64" = x; then
6899     OTOOL64=":"
6900   else
6901     case $cross_compiling:$ac_tool_warned in
6902 yes:)
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned=yes ;;
6906 esac
6907     OTOOL64=$ac_ct_OTOOL64
6908   fi
6909 else
6910   OTOOL64="$ac_cv_prog_OTOOL64"
6911 fi
6912
6913
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6940 $as_echo_n "checking for -single_module linker flag... " >&6; }
6941 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   lt_cv_apple_cc_single_mod=no
6945       if test -z "${LT_MULTI_MODULE}"; then
6946         # By default we will add the -single_module flag. You can override
6947         # by either setting the environment variable LT_MULTI_MODULE
6948         # non-empty at configure time, or by adding -multi_module to the
6949         # link flags.
6950         rm -rf libconftest.dylib*
6951         echo "int foo(void){return 1;}" > conftest.c
6952         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6953 -dynamiclib -Wl,-single_module conftest.c" >&5
6954         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6955           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6956         _lt_result=$?
6957         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6958           lt_cv_apple_cc_single_mod=yes
6959         else
6960           cat conftest.err >&5
6961         fi
6962         rm -rf libconftest.dylib*
6963         rm -f conftest.*
6964       fi
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6967 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6969 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6970 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6971   $as_echo_n "(cached) " >&6
6972 else
6973   lt_cv_ld_exported_symbols_list=no
6974       save_LDFLAGS=$LDFLAGS
6975       echo "_main" > conftest.sym
6976       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6977       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h.  */
6979
6980 int
6981 main ()
6982 {
6983
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 if ac_fn_c_try_link "$LINENO"; then :
6989   lt_cv_ld_exported_symbols_list=yes
6990 else
6991   lt_cv_ld_exported_symbols_list=no
6992 fi
6993 rm -f core conftest.err conftest.$ac_objext \
6994     conftest$ac_exeext conftest.$ac_ext
6995         LDFLAGS="$save_LDFLAGS"
6996
6997 fi
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6999 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7001 $as_echo_n "checking for -force_load linker flag... " >&6; }
7002 if test "${lt_cv_ld_force_load+set}" = set; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   lt_cv_ld_force_load=no
7006       cat > conftest.c << _LT_EOF
7007 int forced_loaded() { return 2;}
7008 _LT_EOF
7009       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7010       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7011       echo "$AR cru libconftest.a conftest.o" >&5
7012       $AR cru libconftest.a conftest.o 2>&5
7013       cat > conftest.c << _LT_EOF
7014 int main() { return 0;}
7015 _LT_EOF
7016       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7017       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7018       _lt_result=$?
7019       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7020         lt_cv_ld_force_load=yes
7021       else
7022         cat conftest.err >&5
7023       fi
7024         rm -f conftest.err libconftest.a conftest conftest.c
7025         rm -rf conftest.dSYM
7026
7027 fi
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7029 $as_echo "$lt_cv_ld_force_load" >&6; }
7030     case $host_os in
7031     rhapsody* | darwin1.[012])
7032       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7033     darwin1.*)
7034       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7035     darwin*) # darwin 5.x on
7036       # if running on 10.5 or later, the deployment target defaults
7037       # to the OS version, if on x86, and 10.4, the deployment
7038       # target defaults to 10.4. Don't you love it?
7039       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7040         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7041           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7042         10.[012]*)
7043           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7044         10.*)
7045           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7046       esac
7047     ;;
7048   esac
7049     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7050       _lt_dar_single_mod='$single_module'
7051     fi
7052     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7053       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7054     else
7055       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7056     fi
7057     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7058       _lt_dsymutil='~$DSYMUTIL $lib || :'
7059     else
7060       _lt_dsymutil=
7061     fi
7062     ;;
7063   esac
7064
7065 ac_ext=c
7066 ac_cpp='$CPP $CPPFLAGS'
7067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7071 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7072 # On Suns, sometimes $CPP names a directory.
7073 if test -n "$CPP" && test -d "$CPP"; then
7074   CPP=
7075 fi
7076 if test -z "$CPP"; then
7077   if test "${ac_cv_prog_CPP+set}" = set; then :
7078   $as_echo_n "(cached) " >&6
7079 else
7080       # Double quotes because CPP needs to be expanded
7081     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7082     do
7083       ac_preproc_ok=false
7084 for ac_c_preproc_warn_flag in '' yes
7085 do
7086   # Use a header file that comes with gcc, so configuring glibc
7087   # with a fresh cross-compiler works.
7088   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7089   # <limits.h> exists even on freestanding compilers.
7090   # On the NeXT, cc -E runs the code through the compiler's parser,
7091   # not just through cpp. "Syntax error" is here to catch this case.
7092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h.  */
7094 #ifdef __STDC__
7095 # include <limits.h>
7096 #else
7097 # include <assert.h>
7098 #endif
7099                      Syntax error
7100 _ACEOF
7101 if ac_fn_c_try_cpp "$LINENO"; then :
7102
7103 else
7104   # Broken: fails on valid input.
7105 continue
7106 fi
7107 rm -f conftest.err conftest.$ac_ext
7108
7109   # OK, works on sane cases.  Now check whether nonexistent headers
7110   # can be detected and how.
7111   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h.  */
7113 #include <ac_nonexistent.h>
7114 _ACEOF
7115 if ac_fn_c_try_cpp "$LINENO"; then :
7116   # Broken: success on invalid input.
7117 continue
7118 else
7119   # Passes both tests.
7120 ac_preproc_ok=:
7121 break
7122 fi
7123 rm -f conftest.err conftest.$ac_ext
7124
7125 done
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then :
7129   break
7130 fi
7131
7132     done
7133     ac_cv_prog_CPP=$CPP
7134
7135 fi
7136   CPP=$ac_cv_prog_CPP
7137 else
7138   ac_cv_prog_CPP=$CPP
7139 fi
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7141 $as_echo "$CPP" >&6; }
7142 ac_preproc_ok=false
7143 for ac_c_preproc_warn_flag in '' yes
7144 do
7145   # Use a header file that comes with gcc, so configuring glibc
7146   # with a fresh cross-compiler works.
7147   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7148   # <limits.h> exists even on freestanding compilers.
7149   # On the NeXT, cc -E runs the code through the compiler's parser,
7150   # not just through cpp. "Syntax error" is here to catch this case.
7151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7152 /* end confdefs.h.  */
7153 #ifdef __STDC__
7154 # include <limits.h>
7155 #else
7156 # include <assert.h>
7157 #endif
7158                      Syntax error
7159 _ACEOF
7160 if ac_fn_c_try_cpp "$LINENO"; then :
7161
7162 else
7163   # Broken: fails on valid input.
7164 continue
7165 fi
7166 rm -f conftest.err conftest.$ac_ext
7167
7168   # OK, works on sane cases.  Now check whether nonexistent headers
7169   # can be detected and how.
7170   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h.  */
7172 #include <ac_nonexistent.h>
7173 _ACEOF
7174 if ac_fn_c_try_cpp "$LINENO"; then :
7175   # Broken: success on invalid input.
7176 continue
7177 else
7178   # Passes both tests.
7179 ac_preproc_ok=:
7180 break
7181 fi
7182 rm -f conftest.err conftest.$ac_ext
7183
7184 done
7185 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7186 rm -f conftest.err conftest.$ac_ext
7187 if $ac_preproc_ok; then :
7188
7189 else
7190   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7192 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7193 See \`config.log' for more details." "$LINENO" 5; }
7194 fi
7195
7196 ac_ext=c
7197 ac_cpp='$CPP $CPPFLAGS'
7198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7201
7202
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7204 $as_echo_n "checking for ANSI C header files... " >&6; }
7205 if test "${ac_cv_header_stdc+set}" = set; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h.  */
7210 #include <stdlib.h>
7211 #include <stdarg.h>
7212 #include <string.h>
7213 #include <float.h>
7214
7215 int
7216 main ()
7217 {
7218
7219   ;
7220   return 0;
7221 }
7222 _ACEOF
7223 if ac_fn_c_try_compile "$LINENO"; then :
7224   ac_cv_header_stdc=yes
7225 else
7226   ac_cv_header_stdc=no
7227 fi
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229
7230 if test $ac_cv_header_stdc = yes; then
7231   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h.  */
7234 #include <string.h>
7235
7236 _ACEOF
7237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7238   $EGREP "memchr" >/dev/null 2>&1; then :
7239
7240 else
7241   ac_cv_header_stdc=no
7242 fi
7243 rm -f conftest*
7244
7245 fi
7246
7247 if test $ac_cv_header_stdc = yes; then
7248   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h.  */
7251 #include <stdlib.h>
7252
7253 _ACEOF
7254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7255   $EGREP "free" >/dev/null 2>&1; then :
7256
7257 else
7258   ac_cv_header_stdc=no
7259 fi
7260 rm -f conftest*
7261
7262 fi
7263
7264 if test $ac_cv_header_stdc = yes; then
7265   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7266   if test "$cross_compiling" = yes; then :
7267   :
7268 else
7269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h.  */
7271 #include <ctype.h>
7272 #include <stdlib.h>
7273 #if ((' ' & 0x0FF) == 0x020)
7274 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7275 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7276 #else
7277 # define ISLOWER(c) \
7278                    (('a' <= (c) && (c) <= 'i') \
7279                      || ('j' <= (c) && (c) <= 'r') \
7280                      || ('s' <= (c) && (c) <= 'z'))
7281 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7282 #endif
7283
7284 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7285 int
7286 main ()
7287 {
7288   int i;
7289   for (i = 0; i < 256; i++)
7290     if (XOR (islower (i), ISLOWER (i))
7291         || toupper (i) != TOUPPER (i))
7292       return 2;
7293   return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_run "$LINENO"; then :
7297
7298 else
7299   ac_cv_header_stdc=no
7300 fi
7301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7302   conftest.$ac_objext conftest.beam conftest.$ac_ext
7303 fi
7304
7305 fi
7306 fi
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7308 $as_echo "$ac_cv_header_stdc" >&6; }
7309 if test $ac_cv_header_stdc = yes; then
7310
7311 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7312
7313 fi
7314
7315 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7316 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7317                   inttypes.h stdint.h unistd.h
7318 do :
7319   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7320 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7321 "
7322 eval as_val=\$$as_ac_Header
7323    if test "x$as_val" = x""yes; then :
7324   cat >>confdefs.h <<_ACEOF
7325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7326 _ACEOF
7327
7328 fi
7329
7330 done
7331
7332
7333 for ac_header in dlfcn.h
7334 do :
7335   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7336 "
7337 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7338   cat >>confdefs.h <<_ACEOF
7339 #define HAVE_DLFCN_H 1
7340 _ACEOF
7341
7342 fi
7343
7344 done
7345
7346 if test -n "$ac_tool_prefix"; then
7347   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if test "${ac_cv_prog_GOC+set}" = set; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$GOC"; then
7355   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7364     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 GOC=$ac_cv_prog_GOC
7375 if test -n "$GOC"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7377 $as_echo "$GOC" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_GOC"; then
7386   ac_ct_GOC=$GOC
7387   # Extract the first word of "gccgo", so it can be a program name with args.
7388 set dummy gccgo; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$ac_ct_GOC"; then
7395   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_prog_ac_ct_GOC="gccgo"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7415 if test -n "$ac_ct_GOC"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7417 $as_echo "$ac_ct_GOC" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423   if test "x$ac_ct_GOC" = x; then
7424     GOC=""
7425   else
7426     case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432     GOC=$ac_ct_GOC
7433   fi
7434 else
7435   GOC="$ac_cv_prog_GOC"
7436 fi
7437
7438
7439
7440
7441
7442
7443 # Set options
7444
7445
7446
7447
7448   enable_win32_dll=no
7449
7450
7451             # Check whether --enable-shared was given.
7452 if test "${enable_shared+set}" = set; then :
7453   enableval=$enable_shared; p=${PACKAGE-default}
7454     case $enableval in
7455     yes) enable_shared=yes ;;
7456     no) enable_shared=no ;;
7457     *)
7458       enable_shared=no
7459       # Look at the argument we got.  We use all the common list separators.
7460       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7461       for pkg in $enableval; do
7462         IFS="$lt_save_ifs"
7463         if test "X$pkg" = "X$p"; then
7464           enable_shared=yes
7465         fi
7466       done
7467       IFS="$lt_save_ifs"
7468       ;;
7469     esac
7470 else
7471   enable_shared=yes
7472 fi
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482   # Check whether --enable-static was given.
7483 if test "${enable_static+set}" = set; then :
7484   enableval=$enable_static; p=${PACKAGE-default}
7485     case $enableval in
7486     yes) enable_static=yes ;;
7487     no) enable_static=no ;;
7488     *)
7489      enable_static=no
7490       # Look at the argument we got.  We use all the common list separators.
7491       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7492       for pkg in $enableval; do
7493         IFS="$lt_save_ifs"
7494         if test "X$pkg" = "X$p"; then
7495           enable_static=yes
7496         fi
7497       done
7498       IFS="$lt_save_ifs"
7499       ;;
7500     esac
7501 else
7502   enable_static=yes
7503 fi
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514 # Check whether --with-pic was given.
7515 if test "${with_pic+set}" = set; then :
7516   withval=$with_pic; pic_mode="$withval"
7517 else
7518   pic_mode=default
7519 fi
7520
7521
7522 test -z "$pic_mode" && pic_mode=default
7523
7524
7525
7526
7527
7528
7529
7530   # Check whether --enable-fast-install was given.
7531 if test "${enable_fast_install+set}" = set; then :
7532   enableval=$enable_fast_install; p=${PACKAGE-default}
7533     case $enableval in
7534     yes) enable_fast_install=yes ;;
7535     no) enable_fast_install=no ;;
7536     *)
7537       enable_fast_install=no
7538       # Look at the argument we got.  We use all the common list separators.
7539       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7540       for pkg in $enableval; do
7541         IFS="$lt_save_ifs"
7542         if test "X$pkg" = "X$p"; then
7543           enable_fast_install=yes
7544         fi
7545       done
7546       IFS="$lt_save_ifs"
7547       ;;
7548     esac
7549 else
7550   enable_fast_install=yes
7551 fi
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563 # This can be used to rebuild libtool when needed
7564 LIBTOOL_DEPS="$ltmain"
7565
7566 # Always use our own libtool.
7567 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7568
7569
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 test -z "$LN_S" && LN_S="ln -s"
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609 if test -n "${ZSH_VERSION+set}" ; then
7610    setopt NO_GLOB_SUBST
7611 fi
7612
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7614 $as_echo_n "checking for objdir... " >&6; }
7615 if test "${lt_cv_objdir+set}" = set; then :
7616   $as_echo_n "(cached) " >&6
7617 else
7618   rm -f .libs 2>/dev/null
7619 mkdir .libs 2>/dev/null
7620 if test -d .libs; then
7621   lt_cv_objdir=.libs
7622 else
7623   # MS-DOS does not allow filenames that begin with a dot.
7624   lt_cv_objdir=_libs
7625 fi
7626 rmdir .libs 2>/dev/null
7627 fi
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7629 $as_echo "$lt_cv_objdir" >&6; }
7630 objdir=$lt_cv_objdir
7631
7632
7633
7634
7635
7636 cat >>confdefs.h <<_ACEOF
7637 #define LT_OBJDIR "$lt_cv_objdir/"
7638 _ACEOF
7639
7640
7641
7642
7643 case $host_os in
7644 aix3*)
7645   # AIX sometimes has problems with the GCC collect2 program.  For some
7646   # reason, if we set the COLLECT_NAMES environment variable, the problems
7647   # vanish in a puff of smoke.
7648   if test "X${COLLECT_NAMES+set}" != Xset; then
7649     COLLECT_NAMES=
7650     export COLLECT_NAMES
7651   fi
7652   ;;
7653 esac
7654
7655 # Global variables:
7656 ofile=libtool
7657 can_build_shared=yes
7658
7659 # All known linkers require a `.a' archive for static linking (except MSVC,
7660 # which needs '.lib').
7661 libext=a
7662
7663 with_gnu_ld="$lt_cv_prog_gnu_ld"
7664
7665 old_CC="$CC"
7666 old_CFLAGS="$CFLAGS"
7667
7668 # Set sane defaults for various variables
7669 test -z "$CC" && CC=cc
7670 test -z "$LTCC" && LTCC=$CC
7671 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7672 test -z "$LD" && LD=ld
7673 test -z "$ac_objext" && ac_objext=o
7674
7675 for cc_temp in $compiler""; do
7676   case $cc_temp in
7677     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7678     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7679     \-*) ;;
7680     *) break;;
7681   esac
7682 done
7683 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7684
7685
7686 # Only perform the check for file, if the check method requires it
7687 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7688 case $deplibs_check_method in
7689 file_magic*)
7690   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7692 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7693 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   case $MAGIC_CMD in
7697 [\\/*] |  ?:[\\/]*)
7698   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7699   ;;
7700 *)
7701   lt_save_MAGIC_CMD="$MAGIC_CMD"
7702   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7703   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7704   for ac_dir in $ac_dummy; do
7705     IFS="$lt_save_ifs"
7706     test -z "$ac_dir" && ac_dir=.
7707     if test -f $ac_dir/${ac_tool_prefix}file; then
7708       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7709       if test -n "$file_magic_test_file"; then
7710         case $deplibs_check_method in
7711         "file_magic "*)
7712           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7713           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7715             $EGREP "$file_magic_regex" > /dev/null; then
7716             :
7717           else
7718             cat <<_LT_EOF 1>&2
7719
7720 *** Warning: the command libtool uses to detect shared libraries,
7721 *** $file_magic_cmd, produces output that libtool cannot recognize.
7722 *** The result is that libtool may fail to recognize shared libraries
7723 *** as such.  This will affect the creation of libtool libraries that
7724 *** depend on shared libraries, but programs linked with such libtool
7725 *** libraries will work regardless of this problem.  Nevertheless, you
7726 *** may want to report the problem to your system manager and/or to
7727 *** bug-libtool@gnu.org
7728
7729 _LT_EOF
7730           fi ;;
7731         esac
7732       fi
7733       break
7734     fi
7735   done
7736   IFS="$lt_save_ifs"
7737   MAGIC_CMD="$lt_save_MAGIC_CMD"
7738   ;;
7739 esac
7740 fi
7741
7742 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7743 if test -n "$MAGIC_CMD"; then
7744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7745 $as_echo "$MAGIC_CMD" >&6; }
7746 else
7747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7748 $as_echo "no" >&6; }
7749 fi
7750
7751
7752
7753
7754
7755 if test -z "$lt_cv_path_MAGIC_CMD"; then
7756   if test -n "$ac_tool_prefix"; then
7757     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7758 $as_echo_n "checking for file... " >&6; }
7759 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7760   $as_echo_n "(cached) " >&6
7761 else
7762   case $MAGIC_CMD in
7763 [\\/*] |  ?:[\\/]*)
7764   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7765   ;;
7766 *)
7767   lt_save_MAGIC_CMD="$MAGIC_CMD"
7768   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7769   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7770   for ac_dir in $ac_dummy; do
7771     IFS="$lt_save_ifs"
7772     test -z "$ac_dir" && ac_dir=.
7773     if test -f $ac_dir/file; then
7774       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7775       if test -n "$file_magic_test_file"; then
7776         case $deplibs_check_method in
7777         "file_magic "*)
7778           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7779           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7781             $EGREP "$file_magic_regex" > /dev/null; then
7782             :
7783           else
7784             cat <<_LT_EOF 1>&2
7785
7786 *** Warning: the command libtool uses to detect shared libraries,
7787 *** $file_magic_cmd, produces output that libtool cannot recognize.
7788 *** The result is that libtool may fail to recognize shared libraries
7789 *** as such.  This will affect the creation of libtool libraries that
7790 *** depend on shared libraries, but programs linked with such libtool
7791 *** libraries will work regardless of this problem.  Nevertheless, you
7792 *** may want to report the problem to your system manager and/or to
7793 *** bug-libtool@gnu.org
7794
7795 _LT_EOF
7796           fi ;;
7797         esac
7798       fi
7799       break
7800     fi
7801   done
7802   IFS="$lt_save_ifs"
7803   MAGIC_CMD="$lt_save_MAGIC_CMD"
7804   ;;
7805 esac
7806 fi
7807
7808 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7809 if test -n "$MAGIC_CMD"; then
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7811 $as_echo "$MAGIC_CMD" >&6; }
7812 else
7813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7815 fi
7816
7817
7818   else
7819     MAGIC_CMD=:
7820   fi
7821 fi
7822
7823   fi
7824   ;;
7825 esac
7826
7827 # Use C for the default configuration in the libtool script
7828
7829 lt_save_CC="$CC"
7830 ac_ext=c
7831 ac_cpp='$CPP $CPPFLAGS'
7832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7835
7836
7837 # Source file extension for C test sources.
7838 ac_ext=c
7839
7840 # Object file extension for compiled C test sources.
7841 objext=o
7842 objext=$objext
7843
7844 # Code to be used in simple compile tests
7845 lt_simple_compile_test_code="int some_variable = 0;"
7846
7847 # Code to be used in simple link tests
7848 lt_simple_link_test_code='int main(){return(0);}'
7849
7850
7851
7852
7853
7854
7855
7856 # If no C compiler was specified, use CC.
7857 LTCC=${LTCC-"$CC"}
7858
7859 # If no C compiler flags were specified, use CFLAGS.
7860 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7861
7862 # Allow CC to be a program name with arguments.
7863 compiler=$CC
7864
7865 # Save the default compiler, since it gets overwritten when the other
7866 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7867 compiler_DEFAULT=$CC
7868
7869 # save warnings/boilerplate of simple test code
7870 ac_outfile=conftest.$ac_objext
7871 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7872 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7873 _lt_compiler_boilerplate=`cat conftest.err`
7874 $RM conftest*
7875
7876 ac_outfile=conftest.$ac_objext
7877 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7878 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7879 _lt_linker_boilerplate=`cat conftest.err`
7880 $RM -r conftest*
7881
7882
7883 ## CAVEAT EMPTOR:
7884 ## There is no encapsulation within the following macros, do not change
7885 ## the running order or otherwise move them around unless you know exactly
7886 ## what you are doing...
7887 if test -n "$compiler"; then
7888
7889 lt_prog_compiler_no_builtin_flag=
7890
7891 if test "$GCC" = yes; then
7892   case $cc_basename in
7893   nvcc*)
7894     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7895   *)
7896     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7897   esac
7898
7899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7900 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7901 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   lt_cv_prog_compiler_rtti_exceptions=no
7905    ac_outfile=conftest.$ac_objext
7906    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7907    lt_compiler_flag="-fno-rtti -fno-exceptions"
7908    # Insert the option either (1) after the last *FLAGS variable, or
7909    # (2) before a word containing "conftest.", or (3) at the end.
7910    # Note that $ac_compile itself does not contain backslashes and begins
7911    # with a dollar sign (not a hyphen), so the echo should work correctly.
7912    # The option is referenced via a variable to avoid confusing sed.
7913    lt_compile=`echo "$ac_compile" | $SED \
7914    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7915    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7916    -e 's:$: $lt_compiler_flag:'`
7917    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7918    (eval "$lt_compile" 2>conftest.err)
7919    ac_status=$?
7920    cat conftest.err >&5
7921    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922    if (exit $ac_status) && test -s "$ac_outfile"; then
7923      # The compiler can only warn and ignore the option if not recognized
7924      # So say no if there are warnings other than the usual output.
7925      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7926      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7927      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7928        lt_cv_prog_compiler_rtti_exceptions=yes
7929      fi
7930    fi
7931    $RM conftest*
7932
7933 fi
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7935 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7936
7937 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7938     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7939 else
7940     :
7941 fi
7942
7943 fi
7944
7945
7946
7947
7948
7949
7950   lt_prog_compiler_wl=
7951 lt_prog_compiler_pic=
7952 lt_prog_compiler_static=
7953
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7955 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7956
7957   if test "$GCC" = yes; then
7958     lt_prog_compiler_wl='-Wl,'
7959     lt_prog_compiler_static='-static'
7960
7961     case $host_os in
7962       aix*)
7963       # All AIX code is PIC.
7964       if test "$host_cpu" = ia64; then
7965         # AIX 5 now supports IA64 processor
7966         lt_prog_compiler_static='-Bstatic'
7967       fi
7968       ;;
7969
7970     amigaos*)
7971       case $host_cpu in
7972       powerpc)
7973             # see comment about AmigaOS4 .so support
7974             lt_prog_compiler_pic='-fPIC'
7975         ;;
7976       m68k)
7977             # FIXME: we need at least 68020 code to build shared libraries, but
7978             # adding the `-m68020' flag to GCC prevents building anything better,
7979             # like `-m68040'.
7980             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7981         ;;
7982       esac
7983       ;;
7984
7985     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7986       # PIC is the default for these OSes.
7987       ;;
7988
7989     mingw* | cygwin* | pw32* | os2* | cegcc*)
7990       # This hack is so that the source file can tell whether it is being
7991       # built for inclusion in a dll (and should export symbols for example).
7992       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7993       # (--disable-auto-import) libraries
7994       lt_prog_compiler_pic='-DDLL_EXPORT'
7995       ;;
7996
7997     darwin* | rhapsody*)
7998       # PIC is the default on this platform
7999       # Common symbols not allowed in MH_DYLIB files
8000       lt_prog_compiler_pic='-fno-common'
8001       ;;
8002
8003     haiku*)
8004       # PIC is the default for Haiku.
8005       # The "-static" flag exists, but is broken.
8006       lt_prog_compiler_static=
8007       ;;
8008
8009     hpux*)
8010       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8011       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8012       # sets the default TLS model and affects inlining.
8013       case $host_cpu in
8014       hppa*64*)
8015         # +Z the default
8016         ;;
8017       *)
8018         lt_prog_compiler_pic='-fPIC'
8019         ;;
8020       esac
8021       ;;
8022
8023     interix[3-9]*)
8024       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8025       # Instead, we relocate shared libraries at runtime.
8026       ;;
8027
8028     msdosdjgpp*)
8029       # Just because we use GCC doesn't mean we suddenly get shared libraries
8030       # on systems that don't support them.
8031       lt_prog_compiler_can_build_shared=no
8032       enable_shared=no
8033       ;;
8034
8035     *nto* | *qnx*)
8036       # QNX uses GNU C++, but need to define -shared option too, otherwise
8037       # it will coredump.
8038       lt_prog_compiler_pic='-fPIC -shared'
8039       ;;
8040
8041     sysv4*MP*)
8042       if test -d /usr/nec; then
8043         lt_prog_compiler_pic=-Kconform_pic
8044       fi
8045       ;;
8046
8047     *)
8048       lt_prog_compiler_pic='-fPIC'
8049       ;;
8050     esac
8051
8052     case $cc_basename in
8053     nvcc*) # Cuda Compiler Driver 2.2
8054       lt_prog_compiler_wl='-Xlinker '
8055       lt_prog_compiler_pic='-Xcompiler -fPIC'
8056       ;;
8057     esac
8058   else
8059     # PORTME Check for flag to pass linker flags through the system compiler.
8060     case $host_os in
8061     aix*)
8062       lt_prog_compiler_wl='-Wl,'
8063       if test "$host_cpu" = ia64; then
8064         # AIX 5 now supports IA64 processor
8065         lt_prog_compiler_static='-Bstatic'
8066       else
8067         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8068       fi
8069       ;;
8070
8071     mingw* | cygwin* | pw32* | os2* | cegcc*)
8072       # This hack is so that the source file can tell whether it is being
8073       # built for inclusion in a dll (and should export symbols for example).
8074       lt_prog_compiler_pic='-DDLL_EXPORT'
8075       ;;
8076
8077     hpux9* | hpux10* | hpux11*)
8078       lt_prog_compiler_wl='-Wl,'
8079       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8080       # not for PA HP-UX.
8081       case $host_cpu in
8082       hppa*64*|ia64*)
8083         # +Z the default
8084         ;;
8085       *)
8086         lt_prog_compiler_pic='+Z'
8087         ;;
8088       esac
8089       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8090       lt_prog_compiler_static='${wl}-a ${wl}archive'
8091       ;;
8092
8093     irix5* | irix6* | nonstopux*)
8094       lt_prog_compiler_wl='-Wl,'
8095       # PIC (with -KPIC) is the default.
8096       lt_prog_compiler_static='-non_shared'
8097       ;;
8098
8099     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8100       case $cc_basename in
8101       # old Intel for x86_64 which still supported -KPIC.
8102       ecc*)
8103         lt_prog_compiler_wl='-Wl,'
8104         lt_prog_compiler_pic='-KPIC'
8105         lt_prog_compiler_static='-static'
8106         ;;
8107       # icc used to be incompatible with GCC.
8108       # ICC 10 doesn't accept -KPIC any more.
8109       icc* | ifort*)
8110         lt_prog_compiler_wl='-Wl,'
8111         lt_prog_compiler_pic='-fPIC'
8112         lt_prog_compiler_static='-static'
8113         ;;
8114       # Lahey Fortran 8.1.
8115       lf95*)
8116         lt_prog_compiler_wl='-Wl,'
8117         lt_prog_compiler_pic='--shared'
8118         lt_prog_compiler_static='--static'
8119         ;;
8120       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8121         # Portland Group compilers (*not* the Pentium gcc compiler,
8122         # which looks to be a dead project)
8123         lt_prog_compiler_wl='-Wl,'
8124         lt_prog_compiler_pic='-fpic'
8125         lt_prog_compiler_static='-Bstatic'
8126         ;;
8127       ccc*)
8128         lt_prog_compiler_wl='-Wl,'
8129         # All Alpha code is PIC.
8130         lt_prog_compiler_static='-non_shared'
8131         ;;
8132       xl* | bgxl* | bgf* | mpixl*)
8133         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8134         lt_prog_compiler_wl='-Wl,'
8135         lt_prog_compiler_pic='-qpic'
8136         lt_prog_compiler_static='-qstaticlink'
8137         ;;
8138       *)
8139         case `$CC -V 2>&1 | sed 5q` in
8140         *Sun\ F* | *Sun*Fortran*)
8141           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8142           lt_prog_compiler_pic='-KPIC'
8143           lt_prog_compiler_static='-Bstatic'
8144           lt_prog_compiler_wl=''
8145           ;;
8146         *Sun\ C*)
8147           # Sun C 5.9
8148           lt_prog_compiler_pic='-KPIC'
8149           lt_prog_compiler_static='-Bstatic'
8150           lt_prog_compiler_wl='-Wl,'
8151           ;;
8152         esac
8153         ;;
8154       esac
8155       ;;
8156
8157     newsos6)
8158       lt_prog_compiler_pic='-KPIC'
8159       lt_prog_compiler_static='-Bstatic'
8160       ;;
8161
8162     *nto* | *qnx*)
8163       # QNX uses GNU C++, but need to define -shared option too, otherwise
8164       # it will coredump.
8165       lt_prog_compiler_pic='-fPIC -shared'
8166       ;;
8167
8168     osf3* | osf4* | osf5*)
8169       lt_prog_compiler_wl='-Wl,'
8170       # All OSF/1 code is PIC.
8171       lt_prog_compiler_static='-non_shared'
8172       ;;
8173
8174     rdos*)
8175       lt_prog_compiler_static='-non_shared'
8176       ;;
8177
8178     solaris*)
8179       lt_prog_compiler_pic='-KPIC'
8180       lt_prog_compiler_static='-Bstatic'
8181       case $cc_basename in
8182       f77* | f90* | f95*)
8183         lt_prog_compiler_wl='-Qoption ld ';;
8184       *)
8185         lt_prog_compiler_wl='-Wl,';;
8186       esac
8187       ;;
8188
8189     sunos4*)
8190       lt_prog_compiler_wl='-Qoption ld '
8191       lt_prog_compiler_pic='-PIC'
8192       lt_prog_compiler_static='-Bstatic'
8193       ;;
8194
8195     sysv4 | sysv4.2uw2* | sysv4.3*)
8196       lt_prog_compiler_wl='-Wl,'
8197       lt_prog_compiler_pic='-KPIC'
8198       lt_prog_compiler_static='-Bstatic'
8199       ;;
8200
8201     sysv4*MP*)
8202       if test -d /usr/nec ;then
8203         lt_prog_compiler_pic='-Kconform_pic'
8204         lt_prog_compiler_static='-Bstatic'
8205       fi
8206       ;;
8207
8208     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8209       lt_prog_compiler_wl='-Wl,'
8210       lt_prog_compiler_pic='-KPIC'
8211       lt_prog_compiler_static='-Bstatic'
8212       ;;
8213
8214     unicos*)
8215       lt_prog_compiler_wl='-Wl,'
8216       lt_prog_compiler_can_build_shared=no
8217       ;;
8218
8219     uts4*)
8220       lt_prog_compiler_pic='-pic'
8221       lt_prog_compiler_static='-Bstatic'
8222       ;;
8223
8224     *)
8225       lt_prog_compiler_can_build_shared=no
8226       ;;
8227     esac
8228   fi
8229
8230 case $host_os in
8231   # For platforms which do not support PIC, -DPIC is meaningless:
8232   *djgpp*)
8233     lt_prog_compiler_pic=
8234     ;;
8235   *)
8236     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8237     ;;
8238 esac
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8240 $as_echo "$lt_prog_compiler_pic" >&6; }
8241
8242
8243
8244
8245
8246
8247 #
8248 # Check to make sure the PIC flag actually works.
8249 #
8250 if test -n "$lt_prog_compiler_pic"; then
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8252 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8253 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8254   $as_echo_n "(cached) " >&6
8255 else
8256   lt_cv_prog_compiler_pic_works=no
8257    ac_outfile=conftest.$ac_objext
8258    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8259    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8260    # Insert the option either (1) after the last *FLAGS variable, or
8261    # (2) before a word containing "conftest.", or (3) at the end.
8262    # Note that $ac_compile itself does not contain backslashes and begins
8263    # with a dollar sign (not a hyphen), so the echo should work correctly.
8264    # The option is referenced via a variable to avoid confusing sed.
8265    lt_compile=`echo "$ac_compile" | $SED \
8266    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8267    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8268    -e 's:$: $lt_compiler_flag:'`
8269    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8270    (eval "$lt_compile" 2>conftest.err)
8271    ac_status=$?
8272    cat conftest.err >&5
8273    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274    if (exit $ac_status) && test -s "$ac_outfile"; then
8275      # The compiler can only warn and ignore the option if not recognized
8276      # So say no if there are warnings other than the usual output.
8277      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8278      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8279      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8280        lt_cv_prog_compiler_pic_works=yes
8281      fi
8282    fi
8283    $RM conftest*
8284
8285 fi
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8287 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8288
8289 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8290     case $lt_prog_compiler_pic in
8291      "" | " "*) ;;
8292      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8293      esac
8294 else
8295     lt_prog_compiler_pic=
8296      lt_prog_compiler_can_build_shared=no
8297 fi
8298
8299 fi
8300
8301
8302
8303
8304
8305
8306 #
8307 # Check to make sure the static flag actually works.
8308 #
8309 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8311 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8312 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8313   $as_echo_n "(cached) " >&6
8314 else
8315   lt_cv_prog_compiler_static_works=no
8316    save_LDFLAGS="$LDFLAGS"
8317    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8318    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8319    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8320      # The linker can only warn and ignore the option if not recognized
8321      # So say no if there are warnings
8322      if test -s conftest.err; then
8323        # Append any errors to the config.log.
8324        cat conftest.err 1>&5
8325        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8326        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8327        if diff conftest.exp conftest.er2 >/dev/null; then
8328          lt_cv_prog_compiler_static_works=yes
8329        fi
8330      else
8331        lt_cv_prog_compiler_static_works=yes
8332      fi
8333    fi
8334    $RM -r conftest*
8335    LDFLAGS="$save_LDFLAGS"
8336
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8339 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8340
8341 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8342     :
8343 else
8344     lt_prog_compiler_static=
8345 fi
8346
8347
8348
8349
8350
8351
8352
8353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8354 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8355 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8356   $as_echo_n "(cached) " >&6
8357 else
8358   lt_cv_prog_compiler_c_o=no
8359    $RM -r conftest 2>/dev/null
8360    mkdir conftest
8361    cd conftest
8362    mkdir out
8363    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8364
8365    lt_compiler_flag="-o out/conftest2.$ac_objext"
8366    # Insert the option either (1) after the last *FLAGS variable, or
8367    # (2) before a word containing "conftest.", or (3) at the end.
8368    # Note that $ac_compile itself does not contain backslashes and begins
8369    # with a dollar sign (not a hyphen), so the echo should work correctly.
8370    lt_compile=`echo "$ac_compile" | $SED \
8371    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8372    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8373    -e 's:$: $lt_compiler_flag:'`
8374    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8375    (eval "$lt_compile" 2>out/conftest.err)
8376    ac_status=$?
8377    cat out/conftest.err >&5
8378    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8380    then
8381      # The compiler can only warn and ignore the option if not recognized
8382      # So say no if there are warnings
8383      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8384      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8385      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8386        lt_cv_prog_compiler_c_o=yes
8387      fi
8388    fi
8389    chmod u+w . 2>&5
8390    $RM conftest*
8391    # SGI C++ compiler will create directory out/ii_files/ for
8392    # template instantiation
8393    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8394    $RM out/* && rmdir out
8395    cd ..
8396    $RM -r conftest
8397    $RM conftest*
8398
8399 fi
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8401 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8402
8403
8404
8405
8406
8407
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8409 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8410 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8411   $as_echo_n "(cached) " >&6
8412 else
8413   lt_cv_prog_compiler_c_o=no
8414    $RM -r conftest 2>/dev/null
8415    mkdir conftest
8416    cd conftest
8417    mkdir out
8418    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8419
8420    lt_compiler_flag="-o out/conftest2.$ac_objext"
8421    # Insert the option either (1) after the last *FLAGS variable, or
8422    # (2) before a word containing "conftest.", or (3) at the end.
8423    # Note that $ac_compile itself does not contain backslashes and begins
8424    # with a dollar sign (not a hyphen), so the echo should work correctly.
8425    lt_compile=`echo "$ac_compile" | $SED \
8426    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8427    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8428    -e 's:$: $lt_compiler_flag:'`
8429    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8430    (eval "$lt_compile" 2>out/conftest.err)
8431    ac_status=$?
8432    cat out/conftest.err >&5
8433    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8435    then
8436      # The compiler can only warn and ignore the option if not recognized
8437      # So say no if there are warnings
8438      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8439      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8440      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8441        lt_cv_prog_compiler_c_o=yes
8442      fi
8443    fi
8444    chmod u+w . 2>&5
8445    $RM conftest*
8446    # SGI C++ compiler will create directory out/ii_files/ for
8447    # template instantiation
8448    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8449    $RM out/* && rmdir out
8450    cd ..
8451    $RM -r conftest
8452    $RM conftest*
8453
8454 fi
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8456 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8457
8458
8459
8460
8461 hard_links="nottested"
8462 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8463   # do not overwrite the value of need_locks provided by the user
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8465 $as_echo_n "checking if we can lock with hard links... " >&6; }
8466   hard_links=yes
8467   $RM conftest*
8468   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8469   touch conftest.a
8470   ln conftest.a conftest.b 2>&5 || hard_links=no
8471   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8473 $as_echo "$hard_links" >&6; }
8474   if test "$hard_links" = no; then
8475     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8476 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8477     need_locks=warn
8478   fi
8479 else
8480   need_locks=no
8481 fi
8482
8483
8484
8485
8486
8487
8488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8489 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8490
8491   runpath_var=
8492   allow_undefined_flag=
8493   always_export_symbols=no
8494   archive_cmds=
8495   archive_expsym_cmds=
8496   compiler_needs_object=no
8497   enable_shared_with_static_runtimes=no
8498   export_dynamic_flag_spec=
8499   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8500   hardcode_automatic=no
8501   hardcode_direct=no
8502   hardcode_direct_absolute=no
8503   hardcode_libdir_flag_spec=
8504   hardcode_libdir_flag_spec_ld=
8505   hardcode_libdir_separator=
8506   hardcode_minus_L=no
8507   hardcode_shlibpath_var=unsupported
8508   inherit_rpath=no
8509   link_all_deplibs=unknown
8510   module_cmds=
8511   module_expsym_cmds=
8512   old_archive_from_new_cmds=
8513   old_archive_from_expsyms_cmds=
8514   thread_safe_flag_spec=
8515   whole_archive_flag_spec=
8516   # include_expsyms should be a list of space-separated symbols to be *always*
8517   # included in the symbol list
8518   include_expsyms=
8519   # exclude_expsyms can be an extended regexp of symbols to exclude
8520   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8521   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8522   # as well as any symbol that contains `d'.
8523   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8524   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8525   # platforms (ab)use it in PIC code, but their linkers get confused if
8526   # the symbol is explicitly referenced.  Since portable code cannot
8527   # rely on this symbol name, it's probably fine to never include it in
8528   # preloaded symbol tables.
8529   # Exclude shared library initialization/finalization symbols.
8530   extract_expsyms_cmds=
8531
8532   case $host_os in
8533   cygwin* | mingw* | pw32* | cegcc*)
8534     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8535     # When not using gcc, we currently assume that we are using
8536     # Microsoft Visual C++.
8537     if test "$GCC" != yes; then
8538       with_gnu_ld=no
8539     fi
8540     ;;
8541   interix*)
8542     # we just hope/assume this is gcc and not c89 (= MSVC++)
8543     with_gnu_ld=yes
8544     ;;
8545   openbsd*)
8546     with_gnu_ld=no
8547     ;;
8548   esac
8549
8550   ld_shlibs=yes
8551
8552   # On some targets, GNU ld is compatible enough with the native linker
8553   # that we're better off using the native interface for both.
8554   lt_use_gnu_ld_interface=no
8555   if test "$with_gnu_ld" = yes; then
8556     case $host_os in
8557       aix*)
8558         # The AIX port of GNU ld has always aspired to compatibility
8559         # with the native linker.  However, as the warning in the GNU ld
8560         # block says, versions before 2.19.5* couldn't really create working
8561         # shared libraries, regardless of the interface used.
8562         case `$LD -v 2>&1` in
8563           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8564           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8565           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8566           *)
8567             lt_use_gnu_ld_interface=yes
8568             ;;
8569         esac
8570         ;;
8571       *)
8572         lt_use_gnu_ld_interface=yes
8573         ;;
8574     esac
8575   fi
8576
8577   if test "$lt_use_gnu_ld_interface" = yes; then
8578     # If archive_cmds runs LD, not CC, wlarc should be empty
8579     wlarc='${wl}'
8580
8581     # Set some defaults for GNU ld with shared library support. These
8582     # are reset later if shared libraries are not supported. Putting them
8583     # here allows them to be overridden if necessary.
8584     runpath_var=LD_RUN_PATH
8585     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8586     export_dynamic_flag_spec='${wl}--export-dynamic'
8587     # ancient GNU ld didn't support --whole-archive et. al.
8588     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8589       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8590     else
8591       whole_archive_flag_spec=
8592     fi
8593     supports_anon_versioning=no
8594     case `$LD -v 2>&1` in
8595       *GNU\ gold*) supports_anon_versioning=yes ;;
8596       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8597       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8598       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8599       *\ 2.11.*) ;; # other 2.11 versions
8600       *) supports_anon_versioning=yes ;;
8601     esac
8602
8603     # See if GNU ld supports shared libraries.
8604     case $host_os in
8605     aix[3-9]*)
8606       # On AIX/PPC, the GNU linker is very broken
8607       if test "$host_cpu" != ia64; then
8608         ld_shlibs=no
8609         cat <<_LT_EOF 1>&2
8610
8611 *** Warning: the GNU linker, at least up to release 2.19, is reported
8612 *** to be unable to reliably create shared libraries on AIX.
8613 *** Therefore, libtool is disabling shared libraries support.  If you
8614 *** really care for shared libraries, you may want to install binutils
8615 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8616 *** You will then need to restart the configuration process.
8617
8618 _LT_EOF
8619       fi
8620       ;;
8621
8622     amigaos*)
8623       case $host_cpu in
8624       powerpc)
8625             # see comment about AmigaOS4 .so support
8626             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8627             archive_expsym_cmds=''
8628         ;;
8629       m68k)
8630             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)'
8631             hardcode_libdir_flag_spec='-L$libdir'
8632             hardcode_minus_L=yes
8633         ;;
8634       esac
8635       ;;
8636
8637     beos*)
8638       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8639         allow_undefined_flag=unsupported
8640         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8641         # support --undefined.  This deserves some investigation.  FIXME
8642         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643       else
8644         ld_shlibs=no
8645       fi
8646       ;;
8647
8648     cygwin* | mingw* | pw32* | cegcc*)
8649       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8650       # as there is no search path for DLLs.
8651       hardcode_libdir_flag_spec='-L$libdir'
8652       export_dynamic_flag_spec='${wl}--export-all-symbols'
8653       allow_undefined_flag=unsupported
8654       always_export_symbols=no
8655       enable_shared_with_static_runtimes=yes
8656       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8657
8658       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8659         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8660         # If the export-symbols file already is a .def file (1st line
8661         # is EXPORTS), use it as is; otherwise, prepend...
8662         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8663           cp $export_symbols $output_objdir/$soname.def;
8664         else
8665           echo EXPORTS > $output_objdir/$soname.def;
8666           cat $export_symbols >> $output_objdir/$soname.def;
8667         fi~
8668         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8669       else
8670         ld_shlibs=no
8671       fi
8672       ;;
8673
8674     haiku*)
8675       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676       link_all_deplibs=yes
8677       ;;
8678
8679     interix[3-9]*)
8680       hardcode_direct=no
8681       hardcode_shlibpath_var=no
8682       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8683       export_dynamic_flag_spec='${wl}-E'
8684       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8685       # Instead, shared libraries are loaded at an image base (0x10000000 by
8686       # default) and relocated if they conflict, which is a slow very memory
8687       # consuming and fragmenting process.  To avoid this, we pick a random,
8688       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8689       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8690       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8691       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'
8692       ;;
8693
8694     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8695       tmp_diet=no
8696       if test "$host_os" = linux-dietlibc; then
8697         case $cc_basename in
8698           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8699         esac
8700       fi
8701       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8702          && test "$tmp_diet" = no
8703       then
8704         tmp_addflag=
8705         tmp_sharedflag='-shared'
8706         case $cc_basename,$host_cpu in
8707         pgcc*)                          # Portland Group C compiler
8708           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'
8709           tmp_addflag=' $pic_flag'
8710           ;;
8711         pgf77* | pgf90* | pgf95* | pgfortran*)
8712                                         # Portland Group f77 and f90 compilers
8713           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'
8714           tmp_addflag=' $pic_flag -Mnomain' ;;
8715         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8716           tmp_addflag=' -i_dynamic' ;;
8717         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8718           tmp_addflag=' -i_dynamic -nofor_main' ;;
8719         ifc* | ifort*)                  # Intel Fortran compiler
8720           tmp_addflag=' -nofor_main' ;;
8721         lf95*)                          # Lahey Fortran 8.1
8722           whole_archive_flag_spec=
8723           tmp_sharedflag='--shared' ;;
8724         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8725           tmp_sharedflag='-qmkshrobj'
8726           tmp_addflag= ;;
8727         nvcc*)  # Cuda Compiler Driver 2.2
8728           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'
8729           compiler_needs_object=yes
8730           ;;
8731         esac
8732         case `$CC -V 2>&1 | sed 5q` in
8733         *Sun\ C*)                       # Sun C 5.9
8734           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'
8735           compiler_needs_object=yes
8736           tmp_sharedflag='-G' ;;
8737         *Sun\ F*)                       # Sun Fortran 8.3
8738           tmp_sharedflag='-G' ;;
8739         esac
8740         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741
8742         if test "x$supports_anon_versioning" = xyes; then
8743           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8744             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8745             echo "local: *; };" >> $output_objdir/$libname.ver~
8746             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8747         fi
8748
8749         case $cc_basename in
8750         xlf* | bgf* | bgxlf* | mpixlf*)
8751           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8752           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8753           hardcode_libdir_flag_spec=
8754           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8755           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8756           if test "x$supports_anon_versioning" = xyes; then
8757             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8758               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8759               echo "local: *; };" >> $output_objdir/$libname.ver~
8760               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8761           fi
8762           ;;
8763         esac
8764       else
8765         ld_shlibs=no
8766       fi
8767       ;;
8768
8769     netbsd*)
8770       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8771         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8772         wlarc=
8773       else
8774         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776       fi
8777       ;;
8778
8779     solaris*)
8780       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8781         ld_shlibs=no
8782         cat <<_LT_EOF 1>&2
8783
8784 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8785 *** create shared libraries on Solaris systems.  Therefore, libtool
8786 *** is disabling shared libraries support.  We urge you to upgrade GNU
8787 *** binutils to release 2.9.1 or newer.  Another option is to modify
8788 *** your PATH or compiler configuration so that the native linker is
8789 *** used, and then restart.
8790
8791 _LT_EOF
8792       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8793         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795       else
8796         ld_shlibs=no
8797       fi
8798       ;;
8799
8800     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8801       case `$LD -v 2>&1` in
8802         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8803         ld_shlibs=no
8804         cat <<_LT_EOF 1>&2
8805
8806 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8807 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8808 *** is disabling shared libraries support.  We urge you to upgrade GNU
8809 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8810 *** your PATH or compiler configuration so that the native linker is
8811 *** used, and then restart.
8812
8813 _LT_EOF
8814         ;;
8815         *)
8816           # For security reasons, it is highly recommended that you always
8817           # use absolute paths for naming shared libraries, and exclude the
8818           # DT_RUNPATH tag from executables and libraries.  But doing so
8819           # requires that you compile everything twice, which is a pain.
8820           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8821             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8822             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8823             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8824           else
8825             ld_shlibs=no
8826           fi
8827         ;;
8828       esac
8829       ;;
8830
8831     sunos4*)
8832       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8833       wlarc=
8834       hardcode_direct=yes
8835       hardcode_shlibpath_var=no
8836       ;;
8837
8838     *)
8839       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8840         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8841         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8842       else
8843         ld_shlibs=no
8844       fi
8845       ;;
8846     esac
8847
8848     if test "$ld_shlibs" = no; then
8849       runpath_var=
8850       hardcode_libdir_flag_spec=
8851       export_dynamic_flag_spec=
8852       whole_archive_flag_spec=
8853     fi
8854   else
8855     # PORTME fill in a description of your system's linker (not GNU ld)
8856     case $host_os in
8857     aix3*)
8858       allow_undefined_flag=unsupported
8859       always_export_symbols=yes
8860       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'
8861       # Note: this linker hardcodes the directories in LIBPATH if there
8862       # are no directories specified by -L.
8863       hardcode_minus_L=yes
8864       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8865         # Neither direct hardcoding nor static linking is supported with a
8866         # broken collect2.
8867         hardcode_direct=unsupported
8868       fi
8869       ;;
8870
8871     aix[4-9]*)
8872       if test "$host_cpu" = ia64; then
8873         # On IA64, the linker does run time linking by default, so we don't
8874         # have to do anything special.
8875         aix_use_runtimelinking=no
8876         exp_sym_flag='-Bexport'
8877         no_entry_flag=""
8878       else
8879         # If we're using GNU nm, then we don't want the "-C" option.
8880         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8881         # Also, AIX nm treats weak defined symbols like other global
8882         # defined symbols, whereas GNU nm marks them as "W".
8883         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8884           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'
8885         else
8886           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'
8887         fi
8888         aix_use_runtimelinking=no
8889
8890         # Test if we are trying to use run time linking or normal
8891         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8892         # need to do runtime linking.
8893         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8894           for ld_flag in $LDFLAGS; do
8895           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8896             aix_use_runtimelinking=yes
8897             break
8898           fi
8899           done
8900           ;;
8901         esac
8902
8903         exp_sym_flag='-bexport'
8904         no_entry_flag='-bnoentry'
8905       fi
8906
8907       # When large executables or shared objects are built, AIX ld can
8908       # have problems creating the table of contents.  If linking a library
8909       # or program results in "error TOC overflow" add -mminimal-toc to
8910       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8911       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8912
8913       archive_cmds=''
8914       hardcode_direct=yes
8915       hardcode_direct_absolute=yes
8916       hardcode_libdir_separator=':'
8917       link_all_deplibs=yes
8918       file_list_spec='${wl}-f,'
8919
8920       if test "$GCC" = yes; then
8921         case $host_os in aix4.[012]|aix4.[012].*)
8922         # We only want to do this on AIX 4.2 and lower, the check
8923         # below for broken collect2 doesn't work under 4.3+
8924           collect2name=`${CC} -print-prog-name=collect2`
8925           if test -f "$collect2name" &&
8926            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8927           then
8928           # We have reworked collect2
8929           :
8930           else
8931           # We have old collect2
8932           hardcode_direct=unsupported
8933           # It fails to find uninstalled libraries when the uninstalled
8934           # path is not listed in the libpath.  Setting hardcode_minus_L
8935           # to unsupported forces relinking
8936           hardcode_minus_L=yes
8937           hardcode_libdir_flag_spec='-L$libdir'
8938           hardcode_libdir_separator=
8939           fi
8940           ;;
8941         esac
8942         shared_flag='-shared'
8943         if test "$aix_use_runtimelinking" = yes; then
8944           shared_flag="$shared_flag "'${wl}-G'
8945         fi
8946       else
8947         # not using gcc
8948         if test "$host_cpu" = ia64; then
8949         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8950         # chokes on -Wl,-G. The following line is correct:
8951           shared_flag='-G'
8952         else
8953           if test "$aix_use_runtimelinking" = yes; then
8954             shared_flag='${wl}-G'
8955           else
8956             shared_flag='${wl}-bM:SRE'
8957           fi
8958         fi
8959       fi
8960
8961       export_dynamic_flag_spec='${wl}-bexpall'
8962       # It seems that -bexpall does not export symbols beginning with
8963       # underscore (_), so it is better to generate a list of symbols to export.
8964       always_export_symbols=yes
8965       if test "$aix_use_runtimelinking" = yes; then
8966         # Warning - without using the other runtime loading flags (-brtl),
8967         # -berok will link without error, but may produce a broken library.
8968         allow_undefined_flag='-berok'
8969         # Determine the default libpath from the value encoded in an
8970         # empty executable.
8971         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h.  */
8973
8974 int
8975 main ()
8976 {
8977
8978   ;
8979   return 0;
8980 }
8981 _ACEOF
8982 if ac_fn_c_try_link "$LINENO"; then :
8983
8984 lt_aix_libpath_sed='
8985     /Import File Strings/,/^$/ {
8986         /^0/ {
8987             s/^0  *\(.*\)$/\1/
8988             p
8989         }
8990     }'
8991 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8992 # Check for a 64-bit object if we didn't find anything.
8993 if test -z "$aix_libpath"; then
8994   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8995 fi
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext \
8998     conftest$ac_exeext conftest.$ac_ext
8999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9000
9001         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9002         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"
9003       else
9004         if test "$host_cpu" = ia64; then
9005           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9006           allow_undefined_flag="-z nodefs"
9007           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"
9008         else
9009          # Determine the default libpath from the value encoded in an
9010          # empty executable.
9011          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h.  */
9013
9014 int
9015 main ()
9016 {
9017
9018   ;
9019   return 0;
9020 }
9021 _ACEOF
9022 if ac_fn_c_try_link "$LINENO"; then :
9023
9024 lt_aix_libpath_sed='
9025     /Import File Strings/,/^$/ {
9026         /^0/ {
9027             s/^0  *\(.*\)$/\1/
9028             p
9029         }
9030     }'
9031 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9032 # Check for a 64-bit object if we didn't find anything.
9033 if test -z "$aix_libpath"; then
9034   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9035 fi
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext \
9038     conftest$ac_exeext conftest.$ac_ext
9039 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9040
9041          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9042           # Warning - without using the other run time loading flags,
9043           # -berok will link without error, but may produce a broken library.
9044           no_undefined_flag=' ${wl}-bernotok'
9045           allow_undefined_flag=' ${wl}-berok'
9046           if test "$with_gnu_ld" = yes; then
9047             # We only use this code for GNU lds that support --whole-archive.
9048             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9049           else
9050             # Exported symbols can be pulled into shared objects from archives
9051             whole_archive_flag_spec='$convenience'
9052           fi
9053           archive_cmds_need_lc=yes
9054           # This is similar to how AIX traditionally builds its shared libraries.
9055           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'
9056         fi
9057       fi
9058       ;;
9059
9060     amigaos*)
9061       case $host_cpu in
9062       powerpc)
9063             # see comment about AmigaOS4 .so support
9064             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9065             archive_expsym_cmds=''
9066         ;;
9067       m68k)
9068             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)'
9069             hardcode_libdir_flag_spec='-L$libdir'
9070             hardcode_minus_L=yes
9071         ;;
9072       esac
9073       ;;
9074
9075     bsdi[45]*)
9076       export_dynamic_flag_spec=-rdynamic
9077       ;;
9078
9079     cygwin* | mingw* | pw32* | cegcc*)
9080       # When not using gcc, we currently assume that we are using
9081       # Microsoft Visual C++.
9082       # hardcode_libdir_flag_spec is actually meaningless, as there is
9083       # no search path for DLLs.
9084       hardcode_libdir_flag_spec=' '
9085       allow_undefined_flag=unsupported
9086       # Tell ltmain to make .lib files, not .a files.
9087       libext=lib
9088       # Tell ltmain to make .dll files, not .so files.
9089       shrext_cmds=".dll"
9090       # FIXME: Setting linknames here is a bad hack.
9091       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9092       # The linker will automatically build a .lib file if we build a DLL.
9093       old_archive_from_new_cmds='true'
9094       # FIXME: Should let the user specify the lib program.
9095       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9096       fix_srcfile_path='`cygpath -w "$srcfile"`'
9097       enable_shared_with_static_runtimes=yes
9098       ;;
9099
9100     darwin* | rhapsody*)
9101
9102
9103   archive_cmds_need_lc=no
9104   hardcode_direct=no
9105   hardcode_automatic=yes
9106   hardcode_shlibpath_var=unsupported
9107   if test "$lt_cv_ld_force_load" = "yes"; then
9108     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\"`'
9109   else
9110     whole_archive_flag_spec=''
9111   fi
9112   link_all_deplibs=yes
9113   allow_undefined_flag="$_lt_dar_allow_undefined"
9114   case $cc_basename in
9115      ifort*) _lt_dar_can_shared=yes ;;
9116      *) _lt_dar_can_shared=$GCC ;;
9117   esac
9118   if test "$_lt_dar_can_shared" = "yes"; then
9119     output_verbose_link_cmd=func_echo_all
9120     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9121     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9122     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}"
9123     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}"
9124
9125   else
9126   ld_shlibs=no
9127   fi
9128
9129       ;;
9130
9131     dgux*)
9132       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9133       hardcode_libdir_flag_spec='-L$libdir'
9134       hardcode_shlibpath_var=no
9135       ;;
9136
9137     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9138     # support.  Future versions do this automatically, but an explicit c++rt0.o
9139     # does not break anything, and helps significantly (at the cost of a little
9140     # extra space).
9141     freebsd2.2*)
9142       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9143       hardcode_libdir_flag_spec='-R$libdir'
9144       hardcode_direct=yes
9145       hardcode_shlibpath_var=no
9146       ;;
9147
9148     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9149     freebsd2*)
9150       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9151       hardcode_direct=yes
9152       hardcode_minus_L=yes
9153       hardcode_shlibpath_var=no
9154       ;;
9155
9156     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9157     freebsd* | dragonfly*)
9158       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9159       hardcode_libdir_flag_spec='-R$libdir'
9160       hardcode_direct=yes
9161       hardcode_shlibpath_var=no
9162       ;;
9163
9164     hpux9*)
9165       if test "$GCC" = yes; then
9166         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'
9167       else
9168         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'
9169       fi
9170       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171       hardcode_libdir_separator=:
9172       hardcode_direct=yes
9173
9174       # hardcode_minus_L: Not really in the search PATH,
9175       # but as the default location of the library.
9176       hardcode_minus_L=yes
9177       export_dynamic_flag_spec='${wl}-E'
9178       ;;
9179
9180     hpux10*)
9181       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9182         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9183       else
9184         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9185       fi
9186       if test "$with_gnu_ld" = no; then
9187         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9188         hardcode_libdir_flag_spec_ld='+b $libdir'
9189         hardcode_libdir_separator=:
9190         hardcode_direct=yes
9191         hardcode_direct_absolute=yes
9192         export_dynamic_flag_spec='${wl}-E'
9193         # hardcode_minus_L: Not really in the search PATH,
9194         # but as the default location of the library.
9195         hardcode_minus_L=yes
9196       fi
9197       ;;
9198
9199     hpux11*)
9200       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9201         case $host_cpu in
9202         hppa*64*)
9203           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9204           ;;
9205         ia64*)
9206           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9207           ;;
9208         *)
9209           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9210           ;;
9211         esac
9212       else
9213         case $host_cpu in
9214         hppa*64*)
9215           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9216           ;;
9217         ia64*)
9218           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9219           ;;
9220         *)
9221
9222           # Older versions of the 11.00 compiler do not understand -b yet
9223           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9224           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9225 $as_echo_n "checking if $CC understands -b... " >&6; }
9226 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9227   $as_echo_n "(cached) " >&6
9228 else
9229   lt_cv_prog_compiler__b=no
9230    save_LDFLAGS="$LDFLAGS"
9231    LDFLAGS="$LDFLAGS -b"
9232    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9233    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9234      # The linker can only warn and ignore the option if not recognized
9235      # So say no if there are warnings
9236      if test -s conftest.err; then
9237        # Append any errors to the config.log.
9238        cat conftest.err 1>&5
9239        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9240        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9241        if diff conftest.exp conftest.er2 >/dev/null; then
9242          lt_cv_prog_compiler__b=yes
9243        fi
9244      else
9245        lt_cv_prog_compiler__b=yes
9246      fi
9247    fi
9248    $RM -r conftest*
9249    LDFLAGS="$save_LDFLAGS"
9250
9251 fi
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9253 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9254
9255 if test x"$lt_cv_prog_compiler__b" = xyes; then
9256     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9257 else
9258     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9259 fi
9260
9261           ;;
9262         esac
9263       fi
9264       if test "$with_gnu_ld" = no; then
9265         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9266         hardcode_libdir_separator=:
9267
9268         case $host_cpu in
9269         hppa*64*|ia64*)
9270           hardcode_direct=no
9271           hardcode_shlibpath_var=no
9272           ;;
9273         *)
9274           hardcode_direct=yes
9275           hardcode_direct_absolute=yes
9276           export_dynamic_flag_spec='${wl}-E'
9277
9278           # hardcode_minus_L: Not really in the search PATH,
9279           # but as the default location of the library.
9280           hardcode_minus_L=yes
9281           ;;
9282         esac
9283       fi
9284       ;;
9285
9286     irix5* | irix6* | nonstopux*)
9287       if test "$GCC" = yes; then
9288         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'
9289         # Try to use the -exported_symbol ld option, if it does not
9290         # work, assume that -exports_file does not work either and
9291         # implicitly export all symbols.
9292         save_LDFLAGS="$LDFLAGS"
9293         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9294         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9295 /* end confdefs.h.  */
9296 int foo(void) {}
9297 _ACEOF
9298 if ac_fn_c_try_link "$LINENO"; then :
9299   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'
9300
9301 fi
9302 rm -f core conftest.err conftest.$ac_objext \
9303     conftest$ac_exeext conftest.$ac_ext
9304         LDFLAGS="$save_LDFLAGS"
9305       else
9306         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'
9307         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'
9308       fi
9309       archive_cmds_need_lc='no'
9310       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9311       hardcode_libdir_separator=:
9312       inherit_rpath=yes
9313       link_all_deplibs=yes
9314       ;;
9315
9316     netbsd*)
9317       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9318         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9319       else
9320         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9321       fi
9322       hardcode_libdir_flag_spec='-R$libdir'
9323       hardcode_direct=yes
9324       hardcode_shlibpath_var=no
9325       ;;
9326
9327     newsos6)
9328       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329       hardcode_direct=yes
9330       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331       hardcode_libdir_separator=:
9332       hardcode_shlibpath_var=no
9333       ;;
9334
9335     *nto* | *qnx*)
9336       ;;
9337
9338     openbsd*)
9339       if test -f /usr/libexec/ld.so; then
9340         hardcode_direct=yes
9341         hardcode_shlibpath_var=no
9342         hardcode_direct_absolute=yes
9343         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9344           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9345           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9346           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347           export_dynamic_flag_spec='${wl}-E'
9348         else
9349           case $host_os in
9350            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9351              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9352              hardcode_libdir_flag_spec='-R$libdir'
9353              ;;
9354            *)
9355              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9356              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9357              ;;
9358           esac
9359         fi
9360       else
9361         ld_shlibs=no
9362       fi
9363       ;;
9364
9365     os2*)
9366       hardcode_libdir_flag_spec='-L$libdir'
9367       hardcode_minus_L=yes
9368       allow_undefined_flag=unsupported
9369       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'
9370       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9371       ;;
9372
9373     osf3*)
9374       if test "$GCC" = yes; then
9375         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9376         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'
9377       else
9378         allow_undefined_flag=' -expect_unresolved \*'
9379         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'
9380       fi
9381       archive_cmds_need_lc='no'
9382       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9383       hardcode_libdir_separator=:
9384       ;;
9385
9386     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9387       if test "$GCC" = yes; then
9388         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9389         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'
9390         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9391       else
9392         allow_undefined_flag=' -expect_unresolved \*'
9393         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'
9394         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~
9395         $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'
9396
9397         # Both c and cxx compiler support -rpath directly
9398         hardcode_libdir_flag_spec='-rpath $libdir'
9399       fi
9400       archive_cmds_need_lc='no'
9401       hardcode_libdir_separator=:
9402       ;;
9403
9404     solaris*)
9405       no_undefined_flag=' -z defs'
9406       if test "$GCC" = yes; then
9407         wlarc='${wl}'
9408         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9410           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9411       else
9412         case `$CC -V 2>&1` in
9413         *"Compilers 5.0"*)
9414           wlarc=''
9415           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9416           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9417           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9418           ;;
9419         *)
9420           wlarc='${wl}'
9421           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9422           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9423           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9424           ;;
9425         esac
9426       fi
9427       hardcode_libdir_flag_spec='-R$libdir'
9428       hardcode_shlibpath_var=no
9429       case $host_os in
9430       solaris2.[0-5] | solaris2.[0-5].*) ;;
9431       *)
9432         # The compiler driver will combine and reorder linker options,
9433         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9434         # but is careful enough not to reorder.
9435         # Supported since Solaris 2.6 (maybe 2.5.1?)
9436         if test "$GCC" = yes; then
9437           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9438         else
9439           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9440         fi
9441         ;;
9442       esac
9443       link_all_deplibs=yes
9444       ;;
9445
9446     sunos4*)
9447       if test "x$host_vendor" = xsequent; then
9448         # Use $CC to link under sequent, because it throws in some extra .o
9449         # files that make .init and .fini sections work.
9450         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9451       else
9452         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9453       fi
9454       hardcode_libdir_flag_spec='-L$libdir'
9455       hardcode_direct=yes
9456       hardcode_minus_L=yes
9457       hardcode_shlibpath_var=no
9458       ;;
9459
9460     sysv4)
9461       case $host_vendor in
9462         sni)
9463           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9464           hardcode_direct=yes # is this really true???
9465         ;;
9466         siemens)
9467           ## LD is ld it makes a PLAMLIB
9468           ## CC just makes a GrossModule.
9469           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9470           reload_cmds='$CC -r -o $output$reload_objs'
9471           hardcode_direct=no
9472         ;;
9473         motorola)
9474           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9476         ;;
9477       esac
9478       runpath_var='LD_RUN_PATH'
9479       hardcode_shlibpath_var=no
9480       ;;
9481
9482     sysv4.3*)
9483       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9484       hardcode_shlibpath_var=no
9485       export_dynamic_flag_spec='-Bexport'
9486       ;;
9487
9488     sysv4*MP*)
9489       if test -d /usr/nec; then
9490         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9491         hardcode_shlibpath_var=no
9492         runpath_var=LD_RUN_PATH
9493         hardcode_runpath_var=yes
9494         ld_shlibs=yes
9495       fi
9496       ;;
9497
9498     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9499       no_undefined_flag='${wl}-z,text'
9500       archive_cmds_need_lc=no
9501       hardcode_shlibpath_var=no
9502       runpath_var='LD_RUN_PATH'
9503
9504       if test "$GCC" = yes; then
9505         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9506         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507       else
9508         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9509         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510       fi
9511       ;;
9512
9513     sysv5* | sco3.2v5* | sco5v6*)
9514       # Note: We can NOT use -z defs as we might desire, because we do not
9515       # link with -lc, and that would cause any symbols used from libc to
9516       # always be unresolved, which means just about no library would
9517       # ever link correctly.  If we're not using GNU ld we use -z text
9518       # though, which does catch some bad symbols but isn't as heavy-handed
9519       # as -z defs.
9520       no_undefined_flag='${wl}-z,text'
9521       allow_undefined_flag='${wl}-z,nodefs'
9522       archive_cmds_need_lc=no
9523       hardcode_shlibpath_var=no
9524       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9525       hardcode_libdir_separator=':'
9526       link_all_deplibs=yes
9527       export_dynamic_flag_spec='${wl}-Bexport'
9528       runpath_var='LD_RUN_PATH'
9529
9530       if test "$GCC" = yes; then
9531         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533       else
9534         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9536       fi
9537       ;;
9538
9539     uts4*)
9540       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9541       hardcode_libdir_flag_spec='-L$libdir'
9542       hardcode_shlibpath_var=no
9543       ;;
9544
9545     *)
9546       ld_shlibs=no
9547       ;;
9548     esac
9549
9550     if test x$host_vendor = xsni; then
9551       case $host in
9552       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9553         export_dynamic_flag_spec='${wl}-Blargedynsym'
9554         ;;
9555       esac
9556     fi
9557   fi
9558
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9560 $as_echo "$ld_shlibs" >&6; }
9561 test "$ld_shlibs" = no && can_build_shared=no
9562
9563 with_gnu_ld=$with_gnu_ld
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579 #
9580 # Do we need to explicitly link libc?
9581 #
9582 case "x$archive_cmds_need_lc" in
9583 x|xyes)
9584   # Assume -lc should be added
9585   archive_cmds_need_lc=yes
9586
9587   if test "$enable_shared" = yes && test "$GCC" = yes; then
9588     case $archive_cmds in
9589     *'~'*)
9590       # FIXME: we may have to deal with multi-command sequences.
9591       ;;
9592     '$CC '*)
9593       # Test whether the compiler implicitly links with -lc since on some
9594       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9595       # to ld, don't add -lc before -lgcc.
9596       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9597 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9598 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9599   $as_echo_n "(cached) " >&6
9600 else
9601   $RM conftest*
9602         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9603
9604         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9605   (eval $ac_compile) 2>&5
9606   ac_status=$?
9607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9608   test $ac_status = 0; } 2>conftest.err; then
9609           soname=conftest
9610           lib=conftest
9611           libobjs=conftest.$ac_objext
9612           deplibs=
9613           wl=$lt_prog_compiler_wl
9614           pic_flag=$lt_prog_compiler_pic
9615           compiler_flags=-v
9616           linker_flags=-v
9617           verstring=
9618           output_objdir=.
9619           libname=conftest
9620           lt_save_allow_undefined_flag=$allow_undefined_flag
9621           allow_undefined_flag=
9622           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9623   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9624   ac_status=$?
9625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9626   test $ac_status = 0; }
9627           then
9628             lt_cv_archive_cmds_need_lc=no
9629           else
9630             lt_cv_archive_cmds_need_lc=yes
9631           fi
9632           allow_undefined_flag=$lt_save_allow_undefined_flag
9633         else
9634           cat conftest.err 1>&5
9635         fi
9636         $RM conftest*
9637
9638 fi
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9640 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9641       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9642       ;;
9643     esac
9644   fi
9645   ;;
9646 esac
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9805 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9806
9807 if test "$GCC" = yes; then
9808   case $host_os in
9809     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9810     *) lt_awk_arg="/^libraries:/" ;;
9811   esac
9812   case $host_os in
9813     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9814     *) lt_sed_strip_eq="s,=/,/,g" ;;
9815   esac
9816   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9817   case $lt_search_path_spec in
9818   *\;*)
9819     # if the path contains ";" then we assume it to be the separator
9820     # otherwise default to the standard path separator (i.e. ":") - it is
9821     # assumed that no part of a normal pathname contains ";" but that should
9822     # okay in the real world where ";" in dirpaths is itself problematic.
9823     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9824     ;;
9825   *)
9826     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9827     ;;
9828   esac
9829   # Ok, now we have the path, separated by spaces, we can step through it
9830   # and add multilib dir if necessary.
9831   lt_tmp_lt_search_path_spec=
9832   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9833   for lt_sys_path in $lt_search_path_spec; do
9834     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9835       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9836     else
9837       test -d "$lt_sys_path" && \
9838         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9839     fi
9840   done
9841   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9842 BEGIN {RS=" "; FS="/|\n";} {
9843   lt_foo="";
9844   lt_count=0;
9845   for (lt_i = NF; lt_i > 0; lt_i--) {
9846     if ($lt_i != "" && $lt_i != ".") {
9847       if ($lt_i == "..") {
9848         lt_count++;
9849       } else {
9850         if (lt_count == 0) {
9851           lt_foo="/" $lt_i lt_foo;
9852         } else {
9853           lt_count--;
9854         }
9855       }
9856     }
9857   }
9858   if (lt_foo != "") { lt_freq[lt_foo]++; }
9859   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9860 }'`
9861   # AWK program above erroneously prepends '/' to C:/dos/paths
9862   # for these hosts.
9863   case $host_os in
9864     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9865       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9866   esac
9867   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9868 else
9869   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9870 fi
9871 library_names_spec=
9872 libname_spec='lib$name'
9873 soname_spec=
9874 shrext_cmds=".so"
9875 postinstall_cmds=
9876 postuninstall_cmds=
9877 finish_cmds=
9878 finish_eval=
9879 shlibpath_var=
9880 shlibpath_overrides_runpath=unknown
9881 version_type=none
9882 dynamic_linker="$host_os ld.so"
9883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9884 need_lib_prefix=unknown
9885 hardcode_into_libs=no
9886
9887 # when you set need_version to no, make sure it does not cause -set_version
9888 # flags to be left without arguments
9889 need_version=unknown
9890
9891 case $host_os in
9892 aix3*)
9893   version_type=linux
9894   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9895   shlibpath_var=LIBPATH
9896
9897   # AIX 3 has no versioning support, so we append a major version to the name.
9898   soname_spec='${libname}${release}${shared_ext}$major'
9899   ;;
9900
9901 aix[4-9]*)
9902   version_type=linux
9903   need_lib_prefix=no
9904   need_version=no
9905   hardcode_into_libs=yes
9906   if test "$host_cpu" = ia64; then
9907     # AIX 5 supports IA64
9908     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9909     shlibpath_var=LD_LIBRARY_PATH
9910   else
9911     # With GCC up to 2.95.x, collect2 would create an import file
9912     # for dependence libraries.  The import file would start with
9913     # the line `#! .'.  This would cause the generated library to
9914     # depend on `.', always an invalid library.  This was fixed in
9915     # development snapshots of GCC prior to 3.0.
9916     case $host_os in
9917       aix4 | aix4.[01] | aix4.[01].*)
9918       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9919            echo ' yes '
9920            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9921         :
9922       else
9923         can_build_shared=no
9924       fi
9925       ;;
9926     esac
9927     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9928     # soname into executable. Probably we can add versioning support to
9929     # collect2, so additional links can be useful in future.
9930     if test "$aix_use_runtimelinking" = yes; then
9931       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9932       # instead of lib<name>.a to let people know that these are not
9933       # typical AIX shared libraries.
9934       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935     else
9936       # We preserve .a as extension for shared libraries through AIX4.2
9937       # and later when we are not doing run time linking.
9938       library_names_spec='${libname}${release}.a $libname.a'
9939       soname_spec='${libname}${release}${shared_ext}$major'
9940     fi
9941     shlibpath_var=LIBPATH
9942   fi
9943   ;;
9944
9945 amigaos*)
9946   case $host_cpu in
9947   powerpc)
9948     # Since July 2007 AmigaOS4 officially supports .so libraries.
9949     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9950     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9951     ;;
9952   m68k)
9953     library_names_spec='$libname.ixlibrary $libname.a'
9954     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9955     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'
9956     ;;
9957   esac
9958   ;;
9959
9960 beos*)
9961   library_names_spec='${libname}${shared_ext}'
9962   dynamic_linker="$host_os ld.so"
9963   shlibpath_var=LIBRARY_PATH
9964   ;;
9965
9966 bsdi[45]*)
9967   version_type=linux
9968   need_version=no
9969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9970   soname_spec='${libname}${release}${shared_ext}$major'
9971   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9972   shlibpath_var=LD_LIBRARY_PATH
9973   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9974   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9975   # the default ld.so.conf also contains /usr/contrib/lib and
9976   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9977   # libtool to hard-code these into programs
9978   ;;
9979
9980 cygwin* | mingw* | pw32* | cegcc*)
9981   version_type=windows
9982   shrext_cmds=".dll"
9983   need_version=no
9984   need_lib_prefix=no
9985
9986   case $GCC,$host_os in
9987   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9988     library_names_spec='$libname.dll.a'
9989     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9990     postinstall_cmds='base_file=`basename \${file}`~
9991       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9992       dldir=$destdir/`dirname \$dlpath`~
9993       test -d \$dldir || mkdir -p \$dldir~
9994       $install_prog $dir/$dlname \$dldir/$dlname~
9995       chmod a+x \$dldir/$dlname~
9996       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9997         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9998       fi'
9999     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10000       dlpath=$dir/\$dldll~
10001        $RM \$dlpath'
10002     shlibpath_overrides_runpath=yes
10003
10004     case $host_os in
10005     cygwin*)
10006       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10007       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10008
10009       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10010       ;;
10011     mingw* | cegcc*)
10012       # MinGW DLLs use traditional 'lib' prefix
10013       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014       ;;
10015     pw32*)
10016       # pw32 DLLs use 'pw' prefix rather than 'lib'
10017       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018       ;;
10019     esac
10020     ;;
10021
10022   *)
10023     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10024     ;;
10025   esac
10026   dynamic_linker='Win32 ld.exe'
10027   # FIXME: first we should search . and the directory the executable is in
10028   shlibpath_var=PATH
10029   ;;
10030
10031 darwin* | rhapsody*)
10032   dynamic_linker="$host_os dyld"
10033   version_type=darwin
10034   need_lib_prefix=no
10035   need_version=no
10036   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10037   soname_spec='${libname}${release}${major}$shared_ext'
10038   shlibpath_overrides_runpath=yes
10039   shlibpath_var=DYLD_LIBRARY_PATH
10040   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10041
10042   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10043   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10044   ;;
10045
10046 dgux*)
10047   version_type=linux
10048   need_lib_prefix=no
10049   need_version=no
10050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10051   soname_spec='${libname}${release}${shared_ext}$major'
10052   shlibpath_var=LD_LIBRARY_PATH
10053   ;;
10054
10055 freebsd* | dragonfly*)
10056   # DragonFly does not have aout.  When/if they implement a new
10057   # versioning mechanism, adjust this.
10058   if test -x /usr/bin/objformat; then
10059     objformat=`/usr/bin/objformat`
10060   else
10061     case $host_os in
10062     freebsd[123]*) objformat=aout ;;
10063     *) objformat=elf ;;
10064     esac
10065   fi
10066   version_type=freebsd-$objformat
10067   case $version_type in
10068     freebsd-elf*)
10069       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10070       need_version=no
10071       need_lib_prefix=no
10072       ;;
10073     freebsd-*)
10074       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10075       need_version=yes
10076       ;;
10077   esac
10078   shlibpath_var=LD_LIBRARY_PATH
10079   case $host_os in
10080   freebsd2*)
10081     shlibpath_overrides_runpath=yes
10082     ;;
10083   freebsd3.[01]* | freebsdelf3.[01]*)
10084     shlibpath_overrides_runpath=yes
10085     hardcode_into_libs=yes
10086     ;;
10087   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10088   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10089     shlibpath_overrides_runpath=no
10090     hardcode_into_libs=yes
10091     ;;
10092   *) # from 4.6 on, and DragonFly
10093     shlibpath_overrides_runpath=yes
10094     hardcode_into_libs=yes
10095     ;;
10096   esac
10097   ;;
10098
10099 gnu*)
10100   version_type=linux
10101   need_lib_prefix=no
10102   need_version=no
10103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10104   soname_spec='${libname}${release}${shared_ext}$major'
10105   shlibpath_var=LD_LIBRARY_PATH
10106   hardcode_into_libs=yes
10107   ;;
10108
10109 haiku*)
10110   version_type=linux
10111   need_lib_prefix=no
10112   need_version=no
10113   dynamic_linker="$host_os runtime_loader"
10114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10115   soname_spec='${libname}${release}${shared_ext}$major'
10116   shlibpath_var=LIBRARY_PATH
10117   shlibpath_overrides_runpath=yes
10118   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10119   hardcode_into_libs=yes
10120   ;;
10121
10122 hpux9* | hpux10* | hpux11*)
10123   # Give a soname corresponding to the major version so that dld.sl refuses to
10124   # link against other versions.
10125   version_type=sunos
10126   need_lib_prefix=no
10127   need_version=no
10128   case $host_cpu in
10129   ia64*)
10130     shrext_cmds='.so'
10131     hardcode_into_libs=yes
10132     dynamic_linker="$host_os dld.so"
10133     shlibpath_var=LD_LIBRARY_PATH
10134     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136     soname_spec='${libname}${release}${shared_ext}$major'
10137     if test "X$HPUX_IA64_MODE" = X32; then
10138       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10139     else
10140       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10141     fi
10142     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10143     ;;
10144   hppa*64*)
10145     shrext_cmds='.sl'
10146     hardcode_into_libs=yes
10147     dynamic_linker="$host_os dld.sl"
10148     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10149     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10150     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151     soname_spec='${libname}${release}${shared_ext}$major'
10152     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10153     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10154     ;;
10155   *)
10156     shrext_cmds='.sl'
10157     dynamic_linker="$host_os dld.sl"
10158     shlibpath_var=SHLIB_PATH
10159     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161     soname_spec='${libname}${release}${shared_ext}$major'
10162     ;;
10163   esac
10164   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10165   postinstall_cmds='chmod 555 $lib'
10166   # or fails outright, so override atomically:
10167   install_override_mode=555
10168   ;;
10169
10170 interix[3-9]*)
10171   version_type=linux
10172   need_lib_prefix=no
10173   need_version=no
10174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10175   soname_spec='${libname}${release}${shared_ext}$major'
10176   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10177   shlibpath_var=LD_LIBRARY_PATH
10178   shlibpath_overrides_runpath=no
10179   hardcode_into_libs=yes
10180   ;;
10181
10182 irix5* | irix6* | nonstopux*)
10183   case $host_os in
10184     nonstopux*) version_type=nonstopux ;;
10185     *)
10186         if test "$lt_cv_prog_gnu_ld" = yes; then
10187                 version_type=linux
10188         else
10189                 version_type=irix
10190         fi ;;
10191   esac
10192   need_lib_prefix=no
10193   need_version=no
10194   soname_spec='${libname}${release}${shared_ext}$major'
10195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10196   case $host_os in
10197   irix5* | nonstopux*)
10198     libsuff= shlibsuff=
10199     ;;
10200   *)
10201     case $LD in # libtool.m4 will add one of these switches to LD
10202     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10203       libsuff= shlibsuff= libmagic=32-bit;;
10204     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10205       libsuff=32 shlibsuff=N32 libmagic=N32;;
10206     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10207       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10208     *) libsuff= shlibsuff= libmagic=never-match;;
10209     esac
10210     ;;
10211   esac
10212   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10213   shlibpath_overrides_runpath=no
10214   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10215   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10216   hardcode_into_libs=yes
10217   ;;
10218
10219 # No shared lib support for Linux oldld, aout, or coff.
10220 linux*oldld* | linux*aout* | linux*coff*)
10221   dynamic_linker=no
10222   ;;
10223
10224 # This must be Linux ELF.
10225 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10226   version_type=linux
10227   need_lib_prefix=no
10228   need_version=no
10229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230   soname_spec='${libname}${release}${shared_ext}$major'
10231   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10232   shlibpath_var=LD_LIBRARY_PATH
10233   shlibpath_overrides_runpath=no
10234
10235   # Some binutils ld are patched to set DT_RUNPATH
10236   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10237   $as_echo_n "(cached) " >&6
10238 else
10239   lt_cv_shlibpath_overrides_runpath=no
10240     save_LDFLAGS=$LDFLAGS
10241     save_libdir=$libdir
10242     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10243          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10244     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245 /* end confdefs.h.  */
10246
10247 int
10248 main ()
10249 {
10250
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10257   lt_cv_shlibpath_overrides_runpath=yes
10258 fi
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext \
10261     conftest$ac_exeext conftest.$ac_ext
10262     LDFLAGS=$save_LDFLAGS
10263     libdir=$save_libdir
10264
10265 fi
10266
10267   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10268
10269   # This implies no fast_install, which is unacceptable.
10270   # Some rework will be needed to allow for fast_install
10271   # before this can be enabled.
10272   hardcode_into_libs=yes
10273
10274   # Append ld.so.conf contents to the search path
10275   if test -f /etc/ld.so.conf; then
10276     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' ' '`
10277     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10278   fi
10279
10280   # We used to test for /lib/ld.so.1 and disable shared libraries on
10281   # powerpc, because MkLinux only supported shared libraries with the
10282   # GNU dynamic linker.  Since this was broken with cross compilers,
10283   # most powerpc-linux boxes support dynamic linking these days and
10284   # people can always --disable-shared, the test was removed, and we
10285   # assume the GNU/Linux dynamic linker is in use.
10286   dynamic_linker='GNU/Linux ld.so'
10287   ;;
10288
10289 netbsd*)
10290   version_type=sunos
10291   need_lib_prefix=no
10292   need_version=no
10293   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10294     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10296     dynamic_linker='NetBSD (a.out) ld.so'
10297   else
10298     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10299     soname_spec='${libname}${release}${shared_ext}$major'
10300     dynamic_linker='NetBSD ld.elf_so'
10301   fi
10302   shlibpath_var=LD_LIBRARY_PATH
10303   shlibpath_overrides_runpath=yes
10304   hardcode_into_libs=yes
10305   ;;
10306
10307 newsos6)
10308   version_type=linux
10309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310   shlibpath_var=LD_LIBRARY_PATH
10311   shlibpath_overrides_runpath=yes
10312   ;;
10313
10314 *nto* | *qnx*)
10315   version_type=qnx
10316   need_lib_prefix=no
10317   need_version=no
10318   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319   soname_spec='${libname}${release}${shared_ext}$major'
10320   shlibpath_var=LD_LIBRARY_PATH
10321   shlibpath_overrides_runpath=no
10322   hardcode_into_libs=yes
10323   dynamic_linker='ldqnx.so'
10324   ;;
10325
10326 openbsd*)
10327   version_type=sunos
10328   sys_lib_dlsearch_path_spec="/usr/lib"
10329   need_lib_prefix=no
10330   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10331   case $host_os in
10332     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10333     *)                          need_version=no  ;;
10334   esac
10335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10336   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10337   shlibpath_var=LD_LIBRARY_PATH
10338   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10339     case $host_os in
10340       openbsd2.[89] | openbsd2.[89].*)
10341         shlibpath_overrides_runpath=no
10342         ;;
10343       *)
10344         shlibpath_overrides_runpath=yes
10345         ;;
10346       esac
10347   else
10348     shlibpath_overrides_runpath=yes
10349   fi
10350   ;;
10351
10352 os2*)
10353   libname_spec='$name'
10354   shrext_cmds=".dll"
10355   need_lib_prefix=no
10356   library_names_spec='$libname${shared_ext} $libname.a'
10357   dynamic_linker='OS/2 ld.exe'
10358   shlibpath_var=LIBPATH
10359   ;;
10360
10361 osf3* | osf4* | osf5*)
10362   version_type=osf
10363   need_lib_prefix=no
10364   need_version=no
10365   soname_spec='${libname}${release}${shared_ext}$major'
10366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367   shlibpath_var=LD_LIBRARY_PATH
10368   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10369   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10370   ;;
10371
10372 rdos*)
10373   dynamic_linker=no
10374   ;;
10375
10376 solaris*)
10377   version_type=linux
10378   need_lib_prefix=no
10379   need_version=no
10380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381   soname_spec='${libname}${release}${shared_ext}$major'
10382   shlibpath_var=LD_LIBRARY_PATH
10383   shlibpath_overrides_runpath=yes
10384   hardcode_into_libs=yes
10385   # ldd complains unless libraries are executable
10386   postinstall_cmds='chmod +x $lib'
10387   ;;
10388
10389 sunos4*)
10390   version_type=sunos
10391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10392   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10393   shlibpath_var=LD_LIBRARY_PATH
10394   shlibpath_overrides_runpath=yes
10395   if test "$with_gnu_ld" = yes; then
10396     need_lib_prefix=no
10397   fi
10398   need_version=yes
10399   ;;
10400
10401 sysv4 | sysv4.3*)
10402   version_type=linux
10403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404   soname_spec='${libname}${release}${shared_ext}$major'
10405   shlibpath_var=LD_LIBRARY_PATH
10406   case $host_vendor in
10407     sni)
10408       shlibpath_overrides_runpath=no
10409       need_lib_prefix=no
10410       runpath_var=LD_RUN_PATH
10411       ;;
10412     siemens)
10413       need_lib_prefix=no
10414       ;;
10415     motorola)
10416       need_lib_prefix=no
10417       need_version=no
10418       shlibpath_overrides_runpath=no
10419       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10420       ;;
10421   esac
10422   ;;
10423
10424 sysv4*MP*)
10425   if test -d /usr/nec ;then
10426     version_type=linux
10427     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10428     soname_spec='$libname${shared_ext}.$major'
10429     shlibpath_var=LD_LIBRARY_PATH
10430   fi
10431   ;;
10432
10433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10434   version_type=freebsd-elf
10435   need_lib_prefix=no
10436   need_version=no
10437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10438   soname_spec='${libname}${release}${shared_ext}$major'
10439   shlibpath_var=LD_LIBRARY_PATH
10440   shlibpath_overrides_runpath=yes
10441   hardcode_into_libs=yes
10442   if test "$with_gnu_ld" = yes; then
10443     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10444   else
10445     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10446     case $host_os in
10447       sco3.2v5*)
10448         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10449         ;;
10450     esac
10451   fi
10452   sys_lib_dlsearch_path_spec='/usr/lib'
10453   ;;
10454
10455 tpf*)
10456   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10457   version_type=linux
10458   need_lib_prefix=no
10459   need_version=no
10460   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461   shlibpath_var=LD_LIBRARY_PATH
10462   shlibpath_overrides_runpath=no
10463   hardcode_into_libs=yes
10464   ;;
10465
10466 uts4*)
10467   version_type=linux
10468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469   soname_spec='${libname}${release}${shared_ext}$major'
10470   shlibpath_var=LD_LIBRARY_PATH
10471   ;;
10472
10473 *)
10474   dynamic_linker=no
10475   ;;
10476 esac
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10478 $as_echo "$dynamic_linker" >&6; }
10479 test "$dynamic_linker" = no && can_build_shared=no
10480
10481 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10482 if test "$GCC" = yes; then
10483   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10484 fi
10485
10486 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10487   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10488 fi
10489 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10490   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10491 fi
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10585 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10586 hardcode_action=
10587 if test -n "$hardcode_libdir_flag_spec" ||
10588    test -n "$runpath_var" ||
10589    test "X$hardcode_automatic" = "Xyes" ; then
10590
10591   # We can hardcode non-existent directories.
10592   if test "$hardcode_direct" != no &&
10593      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10594      # have to relink, otherwise we might link with an installed library
10595      # when we should be linking with a yet-to-be-installed one
10596      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10597      test "$hardcode_minus_L" != no; then
10598     # Linking always hardcodes the temporary library directory.
10599     hardcode_action=relink
10600   else
10601     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10602     hardcode_action=immediate
10603   fi
10604 else
10605   # We cannot hardcode anything, or else we can only hardcode existing
10606   # directories.
10607   hardcode_action=unsupported
10608 fi
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10610 $as_echo "$hardcode_action" >&6; }
10611
10612 if test "$hardcode_action" = relink ||
10613    test "$inherit_rpath" = yes; then
10614   # Fast installation is not supported
10615   enable_fast_install=no
10616 elif test "$shlibpath_overrides_runpath" = yes ||
10617      test "$enable_shared" = no; then
10618   # Fast installation is not necessary
10619   enable_fast_install=needless
10620 fi
10621
10622
10623
10624
10625
10626
10627   if test "x$enable_dlopen" != xyes; then
10628   enable_dlopen=unknown
10629   enable_dlopen_self=unknown
10630   enable_dlopen_self_static=unknown
10631 else
10632   lt_cv_dlopen=no
10633   lt_cv_dlopen_libs=
10634
10635   case $host_os in
10636   beos*)
10637     lt_cv_dlopen="load_add_on"
10638     lt_cv_dlopen_libs=
10639     lt_cv_dlopen_self=yes
10640     ;;
10641
10642   mingw* | pw32* | cegcc*)
10643     lt_cv_dlopen="LoadLibrary"
10644     lt_cv_dlopen_libs=
10645     ;;
10646
10647   cygwin*)
10648     lt_cv_dlopen="dlopen"
10649     lt_cv_dlopen_libs=
10650     ;;
10651
10652   darwin*)
10653   # if libdl is installed we need to link against it
10654     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10655 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10657   $as_echo_n "(cached) " >&6
10658 else
10659   ac_check_lib_save_LIBS=$LIBS
10660 LIBS="-ldl  $LIBS"
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h.  */
10663
10664 /* Override any GCC internal prototype to avoid an error.
10665    Use char because int might match the return type of a GCC
10666    builtin and then its argument prototype would still apply.  */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 char dlopen ();
10671 int
10672 main ()
10673 {
10674 return dlopen ();
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 if ac_fn_c_try_link "$LINENO"; then :
10680   ac_cv_lib_dl_dlopen=yes
10681 else
10682   ac_cv_lib_dl_dlopen=no
10683 fi
10684 rm -f core conftest.err conftest.$ac_objext \
10685     conftest$ac_exeext conftest.$ac_ext
10686 LIBS=$ac_check_lib_save_LIBS
10687 fi
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10689 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10690 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10691   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10692 else
10693
10694     lt_cv_dlopen="dyld"
10695     lt_cv_dlopen_libs=
10696     lt_cv_dlopen_self=yes
10697
10698 fi
10699
10700     ;;
10701
10702   *)
10703     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10704 if test "x$ac_cv_func_shl_load" = x""yes; then :
10705   lt_cv_dlopen="shl_load"
10706 else
10707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10708 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10709 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10710   $as_echo_n "(cached) " >&6
10711 else
10712   ac_check_lib_save_LIBS=$LIBS
10713 LIBS="-ldld  $LIBS"
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h.  */
10716
10717 /* Override any GCC internal prototype to avoid an error.
10718    Use char because int might match the return type of a GCC
10719    builtin and then its argument prototype would still apply.  */
10720 #ifdef __cplusplus
10721 extern "C"
10722 #endif
10723 char shl_load ();
10724 int
10725 main ()
10726 {
10727 return shl_load ();
10728   ;
10729   return 0;
10730 }
10731 _ACEOF
10732 if ac_fn_c_try_link "$LINENO"; then :
10733   ac_cv_lib_dld_shl_load=yes
10734 else
10735   ac_cv_lib_dld_shl_load=no
10736 fi
10737 rm -f core conftest.err conftest.$ac_objext \
10738     conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10740 fi
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10742 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10743 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10744   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10745 else
10746   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10747 if test "x$ac_cv_func_dlopen" = x""yes; then :
10748   lt_cv_dlopen="dlopen"
10749 else
10750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10751 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10752 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10753   $as_echo_n "(cached) " >&6
10754 else
10755   ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-ldl  $LIBS"
10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h.  */
10759
10760 /* Override any GCC internal prototype to avoid an error.
10761    Use char because int might match the return type of a GCC
10762    builtin and then its argument prototype would still apply.  */
10763 #ifdef __cplusplus
10764 extern "C"
10765 #endif
10766 char dlopen ();
10767 int
10768 main ()
10769 {
10770 return dlopen ();
10771   ;
10772   return 0;
10773 }
10774 _ACEOF
10775 if ac_fn_c_try_link "$LINENO"; then :
10776   ac_cv_lib_dl_dlopen=yes
10777 else
10778   ac_cv_lib_dl_dlopen=no
10779 fi
10780 rm -f core conftest.err conftest.$ac_objext \
10781     conftest$ac_exeext conftest.$ac_ext
10782 LIBS=$ac_check_lib_save_LIBS
10783 fi
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10785 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10786 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10787   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10788 else
10789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10790 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10791 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10792   $as_echo_n "(cached) " >&6
10793 else
10794   ac_check_lib_save_LIBS=$LIBS
10795 LIBS="-lsvld  $LIBS"
10796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797 /* end confdefs.h.  */
10798
10799 /* Override any GCC internal prototype to avoid an error.
10800    Use char because int might match the return type of a GCC
10801    builtin and then its argument prototype would still apply.  */
10802 #ifdef __cplusplus
10803 extern "C"
10804 #endif
10805 char dlopen ();
10806 int
10807 main ()
10808 {
10809 return dlopen ();
10810   ;
10811   return 0;
10812 }
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"; then :
10815   ac_cv_lib_svld_dlopen=yes
10816 else
10817   ac_cv_lib_svld_dlopen=no
10818 fi
10819 rm -f core conftest.err conftest.$ac_objext \
10820     conftest$ac_exeext conftest.$ac_ext
10821 LIBS=$ac_check_lib_save_LIBS
10822 fi
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10824 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10825 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10826   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10827 else
10828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10829 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10830 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10831   $as_echo_n "(cached) " >&6
10832 else
10833   ac_check_lib_save_LIBS=$LIBS
10834 LIBS="-ldld  $LIBS"
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h.  */
10837
10838 /* Override any GCC internal prototype to avoid an error.
10839    Use char because int might match the return type of a GCC
10840    builtin and then its argument prototype would still apply.  */
10841 #ifdef __cplusplus
10842 extern "C"
10843 #endif
10844 char dld_link ();
10845 int
10846 main ()
10847 {
10848 return dld_link ();
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 if ac_fn_c_try_link "$LINENO"; then :
10854   ac_cv_lib_dld_dld_link=yes
10855 else
10856   ac_cv_lib_dld_dld_link=no
10857 fi
10858 rm -f core conftest.err conftest.$ac_objext \
10859     conftest$ac_exeext conftest.$ac_ext
10860 LIBS=$ac_check_lib_save_LIBS
10861 fi
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10863 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10864 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10865   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10866 fi
10867
10868
10869 fi
10870
10871
10872 fi
10873
10874
10875 fi
10876
10877
10878 fi
10879
10880
10881 fi
10882
10883     ;;
10884   esac
10885
10886   if test "x$lt_cv_dlopen" != xno; then
10887     enable_dlopen=yes
10888   else
10889     enable_dlopen=no
10890   fi
10891
10892   case $lt_cv_dlopen in
10893   dlopen)
10894     save_CPPFLAGS="$CPPFLAGS"
10895     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10896
10897     save_LDFLAGS="$LDFLAGS"
10898     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10899
10900     save_LIBS="$LIBS"
10901     LIBS="$lt_cv_dlopen_libs $LIBS"
10902
10903     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10904 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10905 if test "${lt_cv_dlopen_self+set}" = set; then :
10906   $as_echo_n "(cached) " >&6
10907 else
10908           if test "$cross_compiling" = yes; then :
10909   lt_cv_dlopen_self=cross
10910 else
10911   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10912   lt_status=$lt_dlunknown
10913   cat > conftest.$ac_ext <<_LT_EOF
10914 #line 10914 "configure"
10915 #include "confdefs.h"
10916
10917 #if HAVE_DLFCN_H
10918 #include <dlfcn.h>
10919 #endif
10920
10921 #include <stdio.h>
10922
10923 #ifdef RTLD_GLOBAL
10924 #  define LT_DLGLOBAL           RTLD_GLOBAL
10925 #else
10926 #  ifdef DL_GLOBAL
10927 #    define LT_DLGLOBAL         DL_GLOBAL
10928 #  else
10929 #    define LT_DLGLOBAL         0
10930 #  endif
10931 #endif
10932
10933 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10934    find out it does not work in some platform. */
10935 #ifndef LT_DLLAZY_OR_NOW
10936 #  ifdef RTLD_LAZY
10937 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10938 #  else
10939 #    ifdef DL_LAZY
10940 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10941 #    else
10942 #      ifdef RTLD_NOW
10943 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10944 #      else
10945 #        ifdef DL_NOW
10946 #          define LT_DLLAZY_OR_NOW      DL_NOW
10947 #        else
10948 #          define LT_DLLAZY_OR_NOW      0
10949 #        endif
10950 #      endif
10951 #    endif
10952 #  endif
10953 #endif
10954
10955 /* When -fvisbility=hidden is used, assume the code has been annotated
10956    correspondingly for the symbols needed.  */
10957 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10958 void fnord () __attribute__((visibility("default")));
10959 #endif
10960
10961 void fnord () { int i=42; }
10962 int main ()
10963 {
10964   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10965   int status = $lt_dlunknown;
10966
10967   if (self)
10968     {
10969       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10970       else
10971         {
10972           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10973           else puts (dlerror ());
10974         }
10975       /* dlclose (self); */
10976     }
10977   else
10978     puts (dlerror ());
10979
10980   return status;
10981 }
10982 _LT_EOF
10983   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10984   (eval $ac_link) 2>&5
10985   ac_status=$?
10986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10987   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10988     (./conftest; exit; ) >&5 2>/dev/null
10989     lt_status=$?
10990     case x$lt_status in
10991       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10992       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10993       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10994     esac
10995   else :
10996     # compilation failed
10997     lt_cv_dlopen_self=no
10998   fi
10999 fi
11000 rm -fr conftest*
11001
11002
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11005 $as_echo "$lt_cv_dlopen_self" >&6; }
11006
11007     if test "x$lt_cv_dlopen_self" = xyes; then
11008       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11009       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11010 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11011 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11012   $as_echo_n "(cached) " >&6
11013 else
11014           if test "$cross_compiling" = yes; then :
11015   lt_cv_dlopen_self_static=cross
11016 else
11017   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11018   lt_status=$lt_dlunknown
11019   cat > conftest.$ac_ext <<_LT_EOF
11020 #line 11020 "configure"
11021 #include "confdefs.h"
11022
11023 #if HAVE_DLFCN_H
11024 #include <dlfcn.h>
11025 #endif
11026
11027 #include <stdio.h>
11028
11029 #ifdef RTLD_GLOBAL
11030 #  define LT_DLGLOBAL           RTLD_GLOBAL
11031 #else
11032 #  ifdef DL_GLOBAL
11033 #    define LT_DLGLOBAL         DL_GLOBAL
11034 #  else
11035 #    define LT_DLGLOBAL         0
11036 #  endif
11037 #endif
11038
11039 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11040    find out it does not work in some platform. */
11041 #ifndef LT_DLLAZY_OR_NOW
11042 #  ifdef RTLD_LAZY
11043 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11044 #  else
11045 #    ifdef DL_LAZY
11046 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11047 #    else
11048 #      ifdef RTLD_NOW
11049 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11050 #      else
11051 #        ifdef DL_NOW
11052 #          define LT_DLLAZY_OR_NOW      DL_NOW
11053 #        else
11054 #          define LT_DLLAZY_OR_NOW      0
11055 #        endif
11056 #      endif
11057 #    endif
11058 #  endif
11059 #endif
11060
11061 /* When -fvisbility=hidden is used, assume the code has been annotated
11062    correspondingly for the symbols needed.  */
11063 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11064 void fnord () __attribute__((visibility("default")));
11065 #endif
11066
11067 void fnord () { int i=42; }
11068 int main ()
11069 {
11070   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11071   int status = $lt_dlunknown;
11072
11073   if (self)
11074     {
11075       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11076       else
11077         {
11078           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11079           else puts (dlerror ());
11080         }
11081       /* dlclose (self); */
11082     }
11083   else
11084     puts (dlerror ());
11085
11086   return status;
11087 }
11088 _LT_EOF
11089   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11090   (eval $ac_link) 2>&5
11091   ac_status=$?
11092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11093   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11094     (./conftest; exit; ) >&5 2>/dev/null
11095     lt_status=$?
11096     case x$lt_status in
11097       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11098       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11099       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11100     esac
11101   else :
11102     # compilation failed
11103     lt_cv_dlopen_self_static=no
11104   fi
11105 fi
11106 rm -fr conftest*
11107
11108
11109 fi
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11111 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11112     fi
11113
11114     CPPFLAGS="$save_CPPFLAGS"
11115     LDFLAGS="$save_LDFLAGS"
11116     LIBS="$save_LIBS"
11117     ;;
11118   esac
11119
11120   case $lt_cv_dlopen_self in
11121   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11122   *) enable_dlopen_self=unknown ;;
11123   esac
11124
11125   case $lt_cv_dlopen_self_static in
11126   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11127   *) enable_dlopen_self_static=unknown ;;
11128   esac
11129 fi
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147 striplib=
11148 old_striplib=
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11150 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11151 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11152   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11153   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11155 $as_echo "yes" >&6; }
11156 else
11157 # FIXME - insert some real tests, host_os isn't really good enough
11158   case $host_os in
11159   darwin*)
11160     if test -n "$STRIP" ; then
11161       striplib="$STRIP -x"
11162       old_striplib="$STRIP -S"
11163       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11164 $as_echo "yes" >&6; }
11165     else
11166       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11168     fi
11169     ;;
11170   *)
11171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11172 $as_echo "no" >&6; }
11173     ;;
11174   esac
11175 fi
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188   # Report which library types will actually be built
11189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11190 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11192 $as_echo "$can_build_shared" >&6; }
11193
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11195 $as_echo_n "checking whether to build shared libraries... " >&6; }
11196   test "$can_build_shared" = "no" && enable_shared=no
11197
11198   # On AIX, shared libraries and static libraries use the same namespace, and
11199   # are all built from PIC.
11200   case $host_os in
11201   aix3*)
11202     test "$enable_shared" = yes && enable_static=no
11203     if test -n "$RANLIB"; then
11204       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11205       postinstall_cmds='$RANLIB $lib'
11206     fi
11207     ;;
11208
11209   aix[4-9]*)
11210     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11211       test "$enable_shared" = yes && enable_static=no
11212     fi
11213     ;;
11214   esac
11215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11216 $as_echo "$enable_shared" >&6; }
11217
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11219 $as_echo_n "checking whether to build static libraries... " >&6; }
11220   # Make sure either enable_shared or enable_static is yes.
11221   test "$enable_shared" = yes || enable_static=yes
11222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11223 $as_echo "$enable_static" >&6; }
11224
11225
11226
11227
11228 fi
11229 ac_ext=c
11230 ac_cpp='$CPP $CPPFLAGS'
11231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11234
11235 CC="$lt_save_CC"
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249 # Source file extension for Go test sources.
11250 ac_ext=go
11251
11252 # Object file extension for compiled Go test sources.
11253 objext=o
11254 objext_GO=$objext
11255
11256 # Code to be used in simple compile tests
11257 lt_simple_compile_test_code="package main; func main() { }"
11258
11259 # Code to be used in simple link tests
11260 lt_simple_link_test_code='package main; func main() { }'
11261
11262 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11263
11264
11265
11266
11267
11268
11269 # If no C compiler was specified, use CC.
11270 LTCC=${LTCC-"$CC"}
11271
11272 # If no C compiler flags were specified, use CFLAGS.
11273 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11274
11275 # Allow CC to be a program name with arguments.
11276 compiler=$CC
11277
11278
11279 # save warnings/boilerplate of simple test code
11280 ac_outfile=conftest.$ac_objext
11281 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11282 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11283 _lt_compiler_boilerplate=`cat conftest.err`
11284 $RM conftest*
11285
11286 ac_outfile=conftest.$ac_objext
11287 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11289 _lt_linker_boilerplate=`cat conftest.err`
11290 $RM -r conftest*
11291
11292
11293 # Allow CC to be a program name with arguments.
11294 lt_save_CC="$CC"
11295 lt_save_GCC="$GCC"
11296 GCC=yes
11297 CC=${GOC-"gccgo"}
11298 compiler=$CC
11299 compiler_GO=$CC
11300 LD_GO="$LD"
11301 for cc_temp in $compiler""; do
11302   case $cc_temp in
11303     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11304     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11305     \-*) ;;
11306     *) break;;
11307   esac
11308 done
11309 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11310
11311
11312 # Go did not exist at the time GCC didn't implicitly link libc in.
11313 archive_cmds_need_lc_GO=no
11314
11315 old_archive_cmds_GO=$old_archive_cmds
11316
11317 ## CAVEAT EMPTOR:
11318 ## There is no encapsulation within the following macros, do not change
11319 ## the running order or otherwise move them around unless you know exactly
11320 ## what you are doing...
11321 if test -n "$compiler"; then
11322
11323 lt_prog_compiler_no_builtin_flag_GO=
11324
11325 if test "$GCC" = yes; then
11326   case $cc_basename in
11327   nvcc*)
11328     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11329   *)
11330     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11331   esac
11332
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11334 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11335 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11336   $as_echo_n "(cached) " >&6
11337 else
11338   lt_cv_prog_compiler_rtti_exceptions=no
11339    ac_outfile=conftest.$ac_objext
11340    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11341    lt_compiler_flag="-fno-rtti -fno-exceptions"
11342    # Insert the option either (1) after the last *FLAGS variable, or
11343    # (2) before a word containing "conftest.", or (3) at the end.
11344    # Note that $ac_compile itself does not contain backslashes and begins
11345    # with a dollar sign (not a hyphen), so the echo should work correctly.
11346    # The option is referenced via a variable to avoid confusing sed.
11347    lt_compile=`echo "$ac_compile" | $SED \
11348    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11349    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11350    -e 's:$: $lt_compiler_flag:'`
11351    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11352    (eval "$lt_compile" 2>conftest.err)
11353    ac_status=$?
11354    cat conftest.err >&5
11355    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11356    if (exit $ac_status) && test -s "$ac_outfile"; then
11357      # The compiler can only warn and ignore the option if not recognized
11358      # So say no if there are warnings other than the usual output.
11359      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11360      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11361      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11362        lt_cv_prog_compiler_rtti_exceptions=yes
11363      fi
11364    fi
11365    $RM conftest*
11366
11367 fi
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11369 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11370
11371 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11372     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11373 else
11374     :
11375 fi
11376
11377 fi
11378
11379
11380
11381   lt_prog_compiler_wl_GO=
11382 lt_prog_compiler_pic_GO=
11383 lt_prog_compiler_static_GO=
11384
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11386 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11387
11388   if test "$GCC" = yes; then
11389     lt_prog_compiler_wl_GO='-Wl,'
11390     lt_prog_compiler_static_GO='-static'
11391
11392     case $host_os in
11393       aix*)
11394       # All AIX code is PIC.
11395       if test "$host_cpu" = ia64; then
11396         # AIX 5 now supports IA64 processor
11397         lt_prog_compiler_static_GO='-Bstatic'
11398       fi
11399       ;;
11400
11401     amigaos*)
11402       case $host_cpu in
11403       powerpc)
11404             # see comment about AmigaOS4 .so support
11405             lt_prog_compiler_pic_GO='-fPIC'
11406         ;;
11407       m68k)
11408             # FIXME: we need at least 68020 code to build shared libraries, but
11409             # adding the `-m68020' flag to GCC prevents building anything better,
11410             # like `-m68040'.
11411             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11412         ;;
11413       esac
11414       ;;
11415
11416     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11417       # PIC is the default for these OSes.
11418       ;;
11419
11420     mingw* | cygwin* | pw32* | os2* | cegcc*)
11421       # This hack is so that the source file can tell whether it is being
11422       # built for inclusion in a dll (and should export symbols for example).
11423       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11424       # (--disable-auto-import) libraries
11425       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11426       ;;
11427
11428     darwin* | rhapsody*)
11429       # PIC is the default on this platform
11430       # Common symbols not allowed in MH_DYLIB files
11431       lt_prog_compiler_pic_GO='-fno-common'
11432       ;;
11433
11434     haiku*)
11435       # PIC is the default for Haiku.
11436       # The "-static" flag exists, but is broken.
11437       lt_prog_compiler_static_GO=
11438       ;;
11439
11440     hpux*)
11441       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11442       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11443       # sets the default TLS model and affects inlining.
11444       case $host_cpu in
11445       hppa*64*)
11446         # +Z the default
11447         ;;
11448       *)
11449         lt_prog_compiler_pic_GO='-fPIC'
11450         ;;
11451       esac
11452       ;;
11453
11454     interix[3-9]*)
11455       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11456       # Instead, we relocate shared libraries at runtime.
11457       ;;
11458
11459     msdosdjgpp*)
11460       # Just because we use GCC doesn't mean we suddenly get shared libraries
11461       # on systems that don't support them.
11462       lt_prog_compiler_can_build_shared_GO=no
11463       enable_shared=no
11464       ;;
11465
11466     *nto* | *qnx*)
11467       # QNX uses GNU C++, but need to define -shared option too, otherwise
11468       # it will coredump.
11469       lt_prog_compiler_pic_GO='-fPIC -shared'
11470       ;;
11471
11472     sysv4*MP*)
11473       if test -d /usr/nec; then
11474         lt_prog_compiler_pic_GO=-Kconform_pic
11475       fi
11476       ;;
11477
11478     *)
11479       lt_prog_compiler_pic_GO='-fPIC'
11480       ;;
11481     esac
11482
11483     case $cc_basename in
11484     nvcc*) # Cuda Compiler Driver 2.2
11485       lt_prog_compiler_wl_GO='-Xlinker '
11486       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11487       ;;
11488     esac
11489   else
11490     # PORTME Check for flag to pass linker flags through the system compiler.
11491     case $host_os in
11492     aix*)
11493       lt_prog_compiler_wl_GO='-Wl,'
11494       if test "$host_cpu" = ia64; then
11495         # AIX 5 now supports IA64 processor
11496         lt_prog_compiler_static_GO='-Bstatic'
11497       else
11498         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11499       fi
11500       ;;
11501
11502     mingw* | cygwin* | pw32* | os2* | cegcc*)
11503       # This hack is so that the source file can tell whether it is being
11504       # built for inclusion in a dll (and should export symbols for example).
11505       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11506       ;;
11507
11508     hpux9* | hpux10* | hpux11*)
11509       lt_prog_compiler_wl_GO='-Wl,'
11510       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11511       # not for PA HP-UX.
11512       case $host_cpu in
11513       hppa*64*|ia64*)
11514         # +Z the default
11515         ;;
11516       *)
11517         lt_prog_compiler_pic_GO='+Z'
11518         ;;
11519       esac
11520       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11521       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11522       ;;
11523
11524     irix5* | irix6* | nonstopux*)
11525       lt_prog_compiler_wl_GO='-Wl,'
11526       # PIC (with -KPIC) is the default.
11527       lt_prog_compiler_static_GO='-non_shared'
11528       ;;
11529
11530     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11531       case $cc_basename in
11532       # old Intel for x86_64 which still supported -KPIC.
11533       ecc*)
11534         lt_prog_compiler_wl_GO='-Wl,'
11535         lt_prog_compiler_pic_GO='-KPIC'
11536         lt_prog_compiler_static_GO='-static'
11537         ;;
11538       # icc used to be incompatible with GCC.
11539       # ICC 10 doesn't accept -KPIC any more.
11540       icc* | ifort*)
11541         lt_prog_compiler_wl_GO='-Wl,'
11542         lt_prog_compiler_pic_GO='-fPIC'
11543         lt_prog_compiler_static_GO='-static'
11544         ;;
11545       # Lahey Fortran 8.1.
11546       lf95*)
11547         lt_prog_compiler_wl_GO='-Wl,'
11548         lt_prog_compiler_pic_GO='--shared'
11549         lt_prog_compiler_static_GO='--static'
11550         ;;
11551       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11552         # Portland Group compilers (*not* the Pentium gcc compiler,
11553         # which looks to be a dead project)
11554         lt_prog_compiler_wl_GO='-Wl,'
11555         lt_prog_compiler_pic_GO='-fpic'
11556         lt_prog_compiler_static_GO='-Bstatic'
11557         ;;
11558       ccc*)
11559         lt_prog_compiler_wl_GO='-Wl,'
11560         # All Alpha code is PIC.
11561         lt_prog_compiler_static_GO='-non_shared'
11562         ;;
11563       xl* | bgxl* | bgf* | mpixl*)
11564         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11565         lt_prog_compiler_wl_GO='-Wl,'
11566         lt_prog_compiler_pic_GO='-qpic'
11567         lt_prog_compiler_static_GO='-qstaticlink'
11568         ;;
11569       *)
11570         case `$CC -V 2>&1 | sed 5q` in
11571         *Sun\ F* | *Sun*Fortran*)
11572           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11573           lt_prog_compiler_pic_GO='-KPIC'
11574           lt_prog_compiler_static_GO='-Bstatic'
11575           lt_prog_compiler_wl_GO=''
11576           ;;
11577         *Sun\ C*)
11578           # Sun C 5.9
11579           lt_prog_compiler_pic_GO='-KPIC'
11580           lt_prog_compiler_static_GO='-Bstatic'
11581           lt_prog_compiler_wl_GO='-Wl,'
11582           ;;
11583         esac
11584         ;;
11585       esac
11586       ;;
11587
11588     newsos6)
11589       lt_prog_compiler_pic_GO='-KPIC'
11590       lt_prog_compiler_static_GO='-Bstatic'
11591       ;;
11592
11593     *nto* | *qnx*)
11594       # QNX uses GNU C++, but need to define -shared option too, otherwise
11595       # it will coredump.
11596       lt_prog_compiler_pic_GO='-fPIC -shared'
11597       ;;
11598
11599     osf3* | osf4* | osf5*)
11600       lt_prog_compiler_wl_GO='-Wl,'
11601       # All OSF/1 code is PIC.
11602       lt_prog_compiler_static_GO='-non_shared'
11603       ;;
11604
11605     rdos*)
11606       lt_prog_compiler_static_GO='-non_shared'
11607       ;;
11608
11609     solaris*)
11610       lt_prog_compiler_pic_GO='-KPIC'
11611       lt_prog_compiler_static_GO='-Bstatic'
11612       case $cc_basename in
11613       f77* | f90* | f95*)
11614         lt_prog_compiler_wl_GO='-Qoption ld ';;
11615       *)
11616         lt_prog_compiler_wl_GO='-Wl,';;
11617       esac
11618       ;;
11619
11620     sunos4*)
11621       lt_prog_compiler_wl_GO='-Qoption ld '
11622       lt_prog_compiler_pic_GO='-PIC'
11623       lt_prog_compiler_static_GO='-Bstatic'
11624       ;;
11625
11626     sysv4 | sysv4.2uw2* | sysv4.3*)
11627       lt_prog_compiler_wl_GO='-Wl,'
11628       lt_prog_compiler_pic_GO='-KPIC'
11629       lt_prog_compiler_static_GO='-Bstatic'
11630       ;;
11631
11632     sysv4*MP*)
11633       if test -d /usr/nec ;then
11634         lt_prog_compiler_pic_GO='-Kconform_pic'
11635         lt_prog_compiler_static_GO='-Bstatic'
11636       fi
11637       ;;
11638
11639     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11640       lt_prog_compiler_wl_GO='-Wl,'
11641       lt_prog_compiler_pic_GO='-KPIC'
11642       lt_prog_compiler_static_GO='-Bstatic'
11643       ;;
11644
11645     unicos*)
11646       lt_prog_compiler_wl_GO='-Wl,'
11647       lt_prog_compiler_can_build_shared_GO=no
11648       ;;
11649
11650     uts4*)
11651       lt_prog_compiler_pic_GO='-pic'
11652       lt_prog_compiler_static_GO='-Bstatic'
11653       ;;
11654
11655     *)
11656       lt_prog_compiler_can_build_shared_GO=no
11657       ;;
11658     esac
11659   fi
11660
11661 case $host_os in
11662   # For platforms which do not support PIC, -DPIC is meaningless:
11663   *djgpp*)
11664     lt_prog_compiler_pic_GO=
11665     ;;
11666   *)
11667     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11668     ;;
11669 esac
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11671 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11672
11673
11674
11675 #
11676 # Check to make sure the PIC flag actually works.
11677 #
11678 if test -n "$lt_prog_compiler_pic_GO"; then
11679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11680 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11681 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11682   $as_echo_n "(cached) " >&6
11683 else
11684   lt_cv_prog_compiler_pic_works_GO=no
11685    ac_outfile=conftest.$ac_objext
11686    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11687    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11688    # Insert the option either (1) after the last *FLAGS variable, or
11689    # (2) before a word containing "conftest.", or (3) at the end.
11690    # Note that $ac_compile itself does not contain backslashes and begins
11691    # with a dollar sign (not a hyphen), so the echo should work correctly.
11692    # The option is referenced via a variable to avoid confusing sed.
11693    lt_compile=`echo "$ac_compile" | $SED \
11694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11696    -e 's:$: $lt_compiler_flag:'`
11697    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11698    (eval "$lt_compile" 2>conftest.err)
11699    ac_status=$?
11700    cat conftest.err >&5
11701    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702    if (exit $ac_status) && test -s "$ac_outfile"; then
11703      # The compiler can only warn and ignore the option if not recognized
11704      # So say no if there are warnings other than the usual output.
11705      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11706      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11707      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11708        lt_cv_prog_compiler_pic_works_GO=yes
11709      fi
11710    fi
11711    $RM conftest*
11712
11713 fi
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11715 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11716
11717 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11718     case $lt_prog_compiler_pic_GO in
11719      "" | " "*) ;;
11720      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11721      esac
11722 else
11723     lt_prog_compiler_pic_GO=
11724      lt_prog_compiler_can_build_shared_GO=no
11725 fi
11726
11727 fi
11728
11729
11730
11731 #
11732 # Check to make sure the static flag actually works.
11733 #
11734 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11736 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11737 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11738   $as_echo_n "(cached) " >&6
11739 else
11740   lt_cv_prog_compiler_static_works_GO=no
11741    save_LDFLAGS="$LDFLAGS"
11742    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11743    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11744    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11745      # The linker can only warn and ignore the option if not recognized
11746      # So say no if there are warnings
11747      if test -s conftest.err; then
11748        # Append any errors to the config.log.
11749        cat conftest.err 1>&5
11750        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11751        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11752        if diff conftest.exp conftest.er2 >/dev/null; then
11753          lt_cv_prog_compiler_static_works_GO=yes
11754        fi
11755      else
11756        lt_cv_prog_compiler_static_works_GO=yes
11757      fi
11758    fi
11759    $RM -r conftest*
11760    LDFLAGS="$save_LDFLAGS"
11761
11762 fi
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11764 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11765
11766 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11767     :
11768 else
11769     lt_prog_compiler_static_GO=
11770 fi
11771
11772
11773
11774
11775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11776 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11777 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11778   $as_echo_n "(cached) " >&6
11779 else
11780   lt_cv_prog_compiler_c_o_GO=no
11781    $RM -r conftest 2>/dev/null
11782    mkdir conftest
11783    cd conftest
11784    mkdir out
11785    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11786
11787    lt_compiler_flag="-o out/conftest2.$ac_objext"
11788    # Insert the option either (1) after the last *FLAGS variable, or
11789    # (2) before a word containing "conftest.", or (3) at the end.
11790    # Note that $ac_compile itself does not contain backslashes and begins
11791    # with a dollar sign (not a hyphen), so the echo should work correctly.
11792    lt_compile=`echo "$ac_compile" | $SED \
11793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11795    -e 's:$: $lt_compiler_flag:'`
11796    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11797    (eval "$lt_compile" 2>out/conftest.err)
11798    ac_status=$?
11799    cat out/conftest.err >&5
11800    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11802    then
11803      # The compiler can only warn and ignore the option if not recognized
11804      # So say no if there are warnings
11805      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11806      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11807      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11808        lt_cv_prog_compiler_c_o_GO=yes
11809      fi
11810    fi
11811    chmod u+w . 2>&5
11812    $RM conftest*
11813    # SGI C++ compiler will create directory out/ii_files/ for
11814    # template instantiation
11815    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11816    $RM out/* && rmdir out
11817    cd ..
11818    $RM -r conftest
11819    $RM conftest*
11820
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11823 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11824
11825
11826
11827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11829 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11830   $as_echo_n "(cached) " >&6
11831 else
11832   lt_cv_prog_compiler_c_o_GO=no
11833    $RM -r conftest 2>/dev/null
11834    mkdir conftest
11835    cd conftest
11836    mkdir out
11837    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11838
11839    lt_compiler_flag="-o out/conftest2.$ac_objext"
11840    # Insert the option either (1) after the last *FLAGS variable, or
11841    # (2) before a word containing "conftest.", or (3) at the end.
11842    # Note that $ac_compile itself does not contain backslashes and begins
11843    # with a dollar sign (not a hyphen), so the echo should work correctly.
11844    lt_compile=`echo "$ac_compile" | $SED \
11845    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11846    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11847    -e 's:$: $lt_compiler_flag:'`
11848    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11849    (eval "$lt_compile" 2>out/conftest.err)
11850    ac_status=$?
11851    cat out/conftest.err >&5
11852    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11854    then
11855      # The compiler can only warn and ignore the option if not recognized
11856      # So say no if there are warnings
11857      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11858      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11859      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11860        lt_cv_prog_compiler_c_o_GO=yes
11861      fi
11862    fi
11863    chmod u+w . 2>&5
11864    $RM conftest*
11865    # SGI C++ compiler will create directory out/ii_files/ for
11866    # template instantiation
11867    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11868    $RM out/* && rmdir out
11869    cd ..
11870    $RM -r conftest
11871    $RM conftest*
11872
11873 fi
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11875 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11876
11877
11878
11879
11880 hard_links="nottested"
11881 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11882   # do not overwrite the value of need_locks provided by the user
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11884 $as_echo_n "checking if we can lock with hard links... " >&6; }
11885   hard_links=yes
11886   $RM conftest*
11887   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11888   touch conftest.a
11889   ln conftest.a conftest.b 2>&5 || hard_links=no
11890   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11892 $as_echo "$hard_links" >&6; }
11893   if test "$hard_links" = no; then
11894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11895 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11896     need_locks=warn
11897   fi
11898 else
11899   need_locks=no
11900 fi
11901
11902
11903
11904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11905 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11906
11907   runpath_var=
11908   allow_undefined_flag_GO=
11909   always_export_symbols_GO=no
11910   archive_cmds_GO=
11911   archive_expsym_cmds_GO=
11912   compiler_needs_object_GO=no
11913   enable_shared_with_static_runtimes_GO=no
11914   export_dynamic_flag_spec_GO=
11915   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11916   hardcode_automatic_GO=no
11917   hardcode_direct_GO=no
11918   hardcode_direct_absolute_GO=no
11919   hardcode_libdir_flag_spec_GO=
11920   hardcode_libdir_flag_spec_ld_GO=
11921   hardcode_libdir_separator_GO=
11922   hardcode_minus_L_GO=no
11923   hardcode_shlibpath_var_GO=unsupported
11924   inherit_rpath_GO=no
11925   link_all_deplibs_GO=unknown
11926   module_cmds_GO=
11927   module_expsym_cmds_GO=
11928   old_archive_from_new_cmds_GO=
11929   old_archive_from_expsyms_cmds_GO=
11930   thread_safe_flag_spec_GO=
11931   whole_archive_flag_spec_GO=
11932   # include_expsyms should be a list of space-separated symbols to be *always*
11933   # included in the symbol list
11934   include_expsyms_GO=
11935   # exclude_expsyms can be an extended regexp of symbols to exclude
11936   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11937   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11938   # as well as any symbol that contains `d'.
11939   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11940   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11941   # platforms (ab)use it in PIC code, but their linkers get confused if
11942   # the symbol is explicitly referenced.  Since portable code cannot
11943   # rely on this symbol name, it's probably fine to never include it in
11944   # preloaded symbol tables.
11945   # Exclude shared library initialization/finalization symbols.
11946   extract_expsyms_cmds=
11947
11948   case $host_os in
11949   cygwin* | mingw* | pw32* | cegcc*)
11950     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11951     # When not using gcc, we currently assume that we are using
11952     # Microsoft Visual C++.
11953     if test "$GCC" != yes; then
11954       with_gnu_ld=no
11955     fi
11956     ;;
11957   interix*)
11958     # we just hope/assume this is gcc and not c89 (= MSVC++)
11959     with_gnu_ld=yes
11960     ;;
11961   openbsd*)
11962     with_gnu_ld=no
11963     ;;
11964   esac
11965
11966   ld_shlibs_GO=yes
11967
11968   # On some targets, GNU ld is compatible enough with the native linker
11969   # that we're better off using the native interface for both.
11970   lt_use_gnu_ld_interface=no
11971   if test "$with_gnu_ld" = yes; then
11972     case $host_os in
11973       aix*)
11974         # The AIX port of GNU ld has always aspired to compatibility
11975         # with the native linker.  However, as the warning in the GNU ld
11976         # block says, versions before 2.19.5* couldn't really create working
11977         # shared libraries, regardless of the interface used.
11978         case `$LD -v 2>&1` in
11979           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11980           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11981           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11982           *)
11983             lt_use_gnu_ld_interface=yes
11984             ;;
11985         esac
11986         ;;
11987       *)
11988         lt_use_gnu_ld_interface=yes
11989         ;;
11990     esac
11991   fi
11992
11993   if test "$lt_use_gnu_ld_interface" = yes; then
11994     # If archive_cmds runs LD, not CC, wlarc should be empty
11995     wlarc='${wl}'
11996
11997     # Set some defaults for GNU ld with shared library support. These
11998     # are reset later if shared libraries are not supported. Putting them
11999     # here allows them to be overridden if necessary.
12000     runpath_var=LD_RUN_PATH
12001     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12002     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12003     # ancient GNU ld didn't support --whole-archive et. al.
12004     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12005       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12006     else
12007       whole_archive_flag_spec_GO=
12008     fi
12009     supports_anon_versioning=no
12010     case `$LD -v 2>&1` in
12011       *GNU\ gold*) supports_anon_versioning=yes ;;
12012       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12013       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12014       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12015       *\ 2.11.*) ;; # other 2.11 versions
12016       *) supports_anon_versioning=yes ;;
12017     esac
12018
12019     # See if GNU ld supports shared libraries.
12020     case $host_os in
12021     aix[3-9]*)
12022       # On AIX/PPC, the GNU linker is very broken
12023       if test "$host_cpu" != ia64; then
12024         ld_shlibs_GO=no
12025         cat <<_LT_EOF 1>&2
12026
12027 *** Warning: the GNU linker, at least up to release 2.19, is reported
12028 *** to be unable to reliably create shared libraries on AIX.
12029 *** Therefore, libtool is disabling shared libraries support.  If you
12030 *** really care for shared libraries, you may want to install binutils
12031 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12032 *** You will then need to restart the configuration process.
12033
12034 _LT_EOF
12035       fi
12036       ;;
12037
12038     amigaos*)
12039       case $host_cpu in
12040       powerpc)
12041             # see comment about AmigaOS4 .so support
12042             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12043             archive_expsym_cmds_GO=''
12044         ;;
12045       m68k)
12046             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)'
12047             hardcode_libdir_flag_spec_GO='-L$libdir'
12048             hardcode_minus_L_GO=yes
12049         ;;
12050       esac
12051       ;;
12052
12053     beos*)
12054       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12055         allow_undefined_flag_GO=unsupported
12056         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12057         # support --undefined.  This deserves some investigation.  FIXME
12058         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12059       else
12060         ld_shlibs_GO=no
12061       fi
12062       ;;
12063
12064     cygwin* | mingw* | pw32* | cegcc*)
12065       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12066       # as there is no search path for DLLs.
12067       hardcode_libdir_flag_spec_GO='-L$libdir'
12068       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12069       allow_undefined_flag_GO=unsupported
12070       always_export_symbols_GO=no
12071       enable_shared_with_static_runtimes_GO=yes
12072       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12073
12074       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12075         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12076         # If the export-symbols file already is a .def file (1st line
12077         # is EXPORTS), use it as is; otherwise, prepend...
12078         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12079           cp $export_symbols $output_objdir/$soname.def;
12080         else
12081           echo EXPORTS > $output_objdir/$soname.def;
12082           cat $export_symbols >> $output_objdir/$soname.def;
12083         fi~
12084         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12085       else
12086         ld_shlibs_GO=no
12087       fi
12088       ;;
12089
12090     haiku*)
12091       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12092       link_all_deplibs_GO=yes
12093       ;;
12094
12095     interix[3-9]*)
12096       hardcode_direct_GO=no
12097       hardcode_shlibpath_var_GO=no
12098       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12099       export_dynamic_flag_spec_GO='${wl}-E'
12100       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12101       # Instead, shared libraries are loaded at an image base (0x10000000 by
12102       # default) and relocated if they conflict, which is a slow very memory
12103       # consuming and fragmenting process.  To avoid this, we pick a random,
12104       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12105       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12106       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'
12107       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'
12108       ;;
12109
12110     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12111       tmp_diet=no
12112       if test "$host_os" = linux-dietlibc; then
12113         case $cc_basename in
12114           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12115         esac
12116       fi
12117       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12118          && test "$tmp_diet" = no
12119       then
12120         tmp_addflag=
12121         tmp_sharedflag='-shared'
12122         case $cc_basename,$host_cpu in
12123         pgcc*)                          # Portland Group C compiler
12124           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'
12125           tmp_addflag=' $pic_flag'
12126           ;;
12127         pgf77* | pgf90* | pgf95* | pgfortran*)
12128                                         # Portland Group f77 and f90 compilers
12129           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'
12130           tmp_addflag=' $pic_flag -Mnomain' ;;
12131         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12132           tmp_addflag=' -i_dynamic' ;;
12133         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12134           tmp_addflag=' -i_dynamic -nofor_main' ;;
12135         ifc* | ifort*)                  # Intel Fortran compiler
12136           tmp_addflag=' -nofor_main' ;;
12137         lf95*)                          # Lahey Fortran 8.1
12138           whole_archive_flag_spec_GO=
12139           tmp_sharedflag='--shared' ;;
12140         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12141           tmp_sharedflag='-qmkshrobj'
12142           tmp_addflag= ;;
12143         nvcc*)  # Cuda Compiler Driver 2.2
12144           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'
12145           compiler_needs_object_GO=yes
12146           ;;
12147         esac
12148         case `$CC -V 2>&1 | sed 5q` in
12149         *Sun\ C*)                       # Sun C 5.9
12150           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'
12151           compiler_needs_object_GO=yes
12152           tmp_sharedflag='-G' ;;
12153         *Sun\ F*)                       # Sun Fortran 8.3
12154           tmp_sharedflag='-G' ;;
12155         esac
12156         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12157
12158         if test "x$supports_anon_versioning" = xyes; then
12159           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12160             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12161             echo "local: *; };" >> $output_objdir/$libname.ver~
12162             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12163         fi
12164
12165         case $cc_basename in
12166         xlf* | bgf* | bgxlf* | mpixlf*)
12167           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12168           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12169           hardcode_libdir_flag_spec_GO=
12170           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12171           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12172           if test "x$supports_anon_versioning" = xyes; then
12173             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12174               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12175               echo "local: *; };" >> $output_objdir/$libname.ver~
12176               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12177           fi
12178           ;;
12179         esac
12180       else
12181         ld_shlibs_GO=no
12182       fi
12183       ;;
12184
12185     netbsd*)
12186       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12187         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12188         wlarc=
12189       else
12190         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12191         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12192       fi
12193       ;;
12194
12195     solaris*)
12196       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12197         ld_shlibs_GO=no
12198         cat <<_LT_EOF 1>&2
12199
12200 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12201 *** create shared libraries on Solaris systems.  Therefore, libtool
12202 *** is disabling shared libraries support.  We urge you to upgrade GNU
12203 *** binutils to release 2.9.1 or newer.  Another option is to modify
12204 *** your PATH or compiler configuration so that the native linker is
12205 *** used, and then restart.
12206
12207 _LT_EOF
12208       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12209         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12210         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12211       else
12212         ld_shlibs_GO=no
12213       fi
12214       ;;
12215
12216     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12217       case `$LD -v 2>&1` in
12218         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12219         ld_shlibs_GO=no
12220         cat <<_LT_EOF 1>&2
12221
12222 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12223 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12224 *** is disabling shared libraries support.  We urge you to upgrade GNU
12225 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12226 *** your PATH or compiler configuration so that the native linker is
12227 *** used, and then restart.
12228
12229 _LT_EOF
12230         ;;
12231         *)
12232           # For security reasons, it is highly recommended that you always
12233           # use absolute paths for naming shared libraries, and exclude the
12234           # DT_RUNPATH tag from executables and libraries.  But doing so
12235           # requires that you compile everything twice, which is a pain.
12236           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12237             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12238             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12239             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12240           else
12241             ld_shlibs_GO=no
12242           fi
12243         ;;
12244       esac
12245       ;;
12246
12247     sunos4*)
12248       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12249       wlarc=
12250       hardcode_direct_GO=yes
12251       hardcode_shlibpath_var_GO=no
12252       ;;
12253
12254     *)
12255       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12256         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12257         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12258       else
12259         ld_shlibs_GO=no
12260       fi
12261       ;;
12262     esac
12263
12264     if test "$ld_shlibs_GO" = no; then
12265       runpath_var=
12266       hardcode_libdir_flag_spec_GO=
12267       export_dynamic_flag_spec_GO=
12268       whole_archive_flag_spec_GO=
12269     fi
12270   else
12271     # PORTME fill in a description of your system's linker (not GNU ld)
12272     case $host_os in
12273     aix3*)
12274       allow_undefined_flag_GO=unsupported
12275       always_export_symbols_GO=yes
12276       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'
12277       # Note: this linker hardcodes the directories in LIBPATH if there
12278       # are no directories specified by -L.
12279       hardcode_minus_L_GO=yes
12280       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12281         # Neither direct hardcoding nor static linking is supported with a
12282         # broken collect2.
12283         hardcode_direct_GO=unsupported
12284       fi
12285       ;;
12286
12287     aix[4-9]*)
12288       if test "$host_cpu" = ia64; then
12289         # On IA64, the linker does run time linking by default, so we don't
12290         # have to do anything special.
12291         aix_use_runtimelinking=no
12292         exp_sym_flag='-Bexport'
12293         no_entry_flag=""
12294       else
12295         # If we're using GNU nm, then we don't want the "-C" option.
12296         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12297         # Also, AIX nm treats weak defined symbols like other global
12298         # defined symbols, whereas GNU nm marks them as "W".
12299         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12300           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'
12301         else
12302           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'
12303         fi
12304         aix_use_runtimelinking=no
12305
12306         # Test if we are trying to use run time linking or normal
12307         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12308         # need to do runtime linking.
12309         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12310           for ld_flag in $LDFLAGS; do
12311           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12312             aix_use_runtimelinking=yes
12313             break
12314           fi
12315           done
12316           ;;
12317         esac
12318
12319         exp_sym_flag='-bexport'
12320         no_entry_flag='-bnoentry'
12321       fi
12322
12323       # When large executables or shared objects are built, AIX ld can
12324       # have problems creating the table of contents.  If linking a library
12325       # or program results in "error TOC overflow" add -mminimal-toc to
12326       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12327       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12328
12329       archive_cmds_GO=''
12330       hardcode_direct_GO=yes
12331       hardcode_direct_absolute_GO=yes
12332       hardcode_libdir_separator_GO=':'
12333       link_all_deplibs_GO=yes
12334       file_list_spec_GO='${wl}-f,'
12335
12336       if test "$GCC" = yes; then
12337         case $host_os in aix4.[012]|aix4.[012].*)
12338         # We only want to do this on AIX 4.2 and lower, the check
12339         # below for broken collect2 doesn't work under 4.3+
12340           collect2name=`${CC} -print-prog-name=collect2`
12341           if test -f "$collect2name" &&
12342            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12343           then
12344           # We have reworked collect2
12345           :
12346           else
12347           # We have old collect2
12348           hardcode_direct_GO=unsupported
12349           # It fails to find uninstalled libraries when the uninstalled
12350           # path is not listed in the libpath.  Setting hardcode_minus_L
12351           # to unsupported forces relinking
12352           hardcode_minus_L_GO=yes
12353           hardcode_libdir_flag_spec_GO='-L$libdir'
12354           hardcode_libdir_separator_GO=
12355           fi
12356           ;;
12357         esac
12358         shared_flag='-shared'
12359         if test "$aix_use_runtimelinking" = yes; then
12360           shared_flag="$shared_flag "'${wl}-G'
12361         fi
12362       else
12363         # not using gcc
12364         if test "$host_cpu" = ia64; then
12365         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12366         # chokes on -Wl,-G. The following line is correct:
12367           shared_flag='-G'
12368         else
12369           if test "$aix_use_runtimelinking" = yes; then
12370             shared_flag='${wl}-G'
12371           else
12372             shared_flag='${wl}-bM:SRE'
12373           fi
12374         fi
12375       fi
12376
12377       export_dynamic_flag_spec_GO='${wl}-bexpall'
12378       # It seems that -bexpall does not export symbols beginning with
12379       # underscore (_), so it is better to generate a list of symbols to export.
12380       always_export_symbols_GO=yes
12381       if test "$aix_use_runtimelinking" = yes; then
12382         # Warning - without using the other runtime loading flags (-brtl),
12383         # -berok will link without error, but may produce a broken library.
12384         allow_undefined_flag_GO='-berok'
12385         # Determine the default libpath from the value encoded in an
12386         # empty executable.
12387         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h.  */
12389
12390 int
12391 main ()
12392 {
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399
12400 lt_aix_libpath_sed='
12401     /Import File Strings/,/^$/ {
12402         /^0/ {
12403             s/^0  *\(.*\)$/\1/
12404             p
12405         }
12406     }'
12407 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12408 # Check for a 64-bit object if we didn't find anything.
12409 if test -z "$aix_libpath"; then
12410   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12411 fi
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext \
12414     conftest$ac_exeext conftest.$ac_ext
12415 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12416
12417         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12418         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"
12419       else
12420         if test "$host_cpu" = ia64; then
12421           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12422           allow_undefined_flag_GO="-z nodefs"
12423           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"
12424         else
12425          # Determine the default libpath from the value encoded in an
12426          # empty executable.
12427          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h.  */
12429
12430 int
12431 main ()
12432 {
12433
12434   ;
12435   return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_link "$LINENO"; then :
12439
12440 lt_aix_libpath_sed='
12441     /Import File Strings/,/^$/ {
12442         /^0/ {
12443             s/^0  *\(.*\)$/\1/
12444             p
12445         }
12446     }'
12447 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12448 # Check for a 64-bit object if we didn't find anything.
12449 if test -z "$aix_libpath"; then
12450   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12451 fi
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext \
12454     conftest$ac_exeext conftest.$ac_ext
12455 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12456
12457          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12458           # Warning - without using the other run time loading flags,
12459           # -berok will link without error, but may produce a broken library.
12460           no_undefined_flag_GO=' ${wl}-bernotok'
12461           allow_undefined_flag_GO=' ${wl}-berok'
12462           if test "$with_gnu_ld" = yes; then
12463             # We only use this code for GNU lds that support --whole-archive.
12464             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12465           else
12466             # Exported symbols can be pulled into shared objects from archives
12467             whole_archive_flag_spec_GO='$convenience'
12468           fi
12469           archive_cmds_need_lc_GO=yes
12470           # This is similar to how AIX traditionally builds its shared libraries.
12471           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'
12472         fi
12473       fi
12474       ;;
12475
12476     amigaos*)
12477       case $host_cpu in
12478       powerpc)
12479             # see comment about AmigaOS4 .so support
12480             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12481             archive_expsym_cmds_GO=''
12482         ;;
12483       m68k)
12484             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)'
12485             hardcode_libdir_flag_spec_GO='-L$libdir'
12486             hardcode_minus_L_GO=yes
12487         ;;
12488       esac
12489       ;;
12490
12491     bsdi[45]*)
12492       export_dynamic_flag_spec_GO=-rdynamic
12493       ;;
12494
12495     cygwin* | mingw* | pw32* | cegcc*)
12496       # When not using gcc, we currently assume that we are using
12497       # Microsoft Visual C++.
12498       # hardcode_libdir_flag_spec is actually meaningless, as there is
12499       # no search path for DLLs.
12500       hardcode_libdir_flag_spec_GO=' '
12501       allow_undefined_flag_GO=unsupported
12502       # Tell ltmain to make .lib files, not .a files.
12503       libext=lib
12504       # Tell ltmain to make .dll files, not .so files.
12505       shrext_cmds=".dll"
12506       # FIXME: Setting linknames here is a bad hack.
12507       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12508       # The linker will automatically build a .lib file if we build a DLL.
12509       old_archive_from_new_cmds_GO='true'
12510       # FIXME: Should let the user specify the lib program.
12511       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12512       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12513       enable_shared_with_static_runtimes_GO=yes
12514       ;;
12515
12516     darwin* | rhapsody*)
12517
12518
12519   archive_cmds_need_lc_GO=no
12520   hardcode_direct_GO=no
12521   hardcode_automatic_GO=yes
12522   hardcode_shlibpath_var_GO=unsupported
12523   if test "$lt_cv_ld_force_load" = "yes"; then
12524     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\"`'
12525   else
12526     whole_archive_flag_spec_GO=''
12527   fi
12528   link_all_deplibs_GO=yes
12529   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12530   case $cc_basename in
12531      ifort*) _lt_dar_can_shared=yes ;;
12532      *) _lt_dar_can_shared=$GCC ;;
12533   esac
12534   if test "$_lt_dar_can_shared" = "yes"; then
12535     output_verbose_link_cmd=func_echo_all
12536     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}"
12537     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12538     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}"
12539     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}"
12540
12541   else
12542   ld_shlibs_GO=no
12543   fi
12544
12545       ;;
12546
12547     dgux*)
12548       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12549       hardcode_libdir_flag_spec_GO='-L$libdir'
12550       hardcode_shlibpath_var_GO=no
12551       ;;
12552
12553     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12554     # support.  Future versions do this automatically, but an explicit c++rt0.o
12555     # does not break anything, and helps significantly (at the cost of a little
12556     # extra space).
12557     freebsd2.2*)
12558       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12559       hardcode_libdir_flag_spec_GO='-R$libdir'
12560       hardcode_direct_GO=yes
12561       hardcode_shlibpath_var_GO=no
12562       ;;
12563
12564     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12565     freebsd2*)
12566       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12567       hardcode_direct_GO=yes
12568       hardcode_minus_L_GO=yes
12569       hardcode_shlibpath_var_GO=no
12570       ;;
12571
12572     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12573     freebsd* | dragonfly*)
12574       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12575       hardcode_libdir_flag_spec_GO='-R$libdir'
12576       hardcode_direct_GO=yes
12577       hardcode_shlibpath_var_GO=no
12578       ;;
12579
12580     hpux9*)
12581       if test "$GCC" = yes; then
12582         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'
12583       else
12584         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'
12585       fi
12586       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12587       hardcode_libdir_separator_GO=:
12588       hardcode_direct_GO=yes
12589
12590       # hardcode_minus_L: Not really in the search PATH,
12591       # but as the default location of the library.
12592       hardcode_minus_L_GO=yes
12593       export_dynamic_flag_spec_GO='${wl}-E'
12594       ;;
12595
12596     hpux10*)
12597       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12598         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12599       else
12600         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12601       fi
12602       if test "$with_gnu_ld" = no; then
12603         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12604         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12605         hardcode_libdir_separator_GO=:
12606         hardcode_direct_GO=yes
12607         hardcode_direct_absolute_GO=yes
12608         export_dynamic_flag_spec_GO='${wl}-E'
12609         # hardcode_minus_L: Not really in the search PATH,
12610         # but as the default location of the library.
12611         hardcode_minus_L_GO=yes
12612       fi
12613       ;;
12614
12615     hpux11*)
12616       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12617         case $host_cpu in
12618         hppa*64*)
12619           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12620           ;;
12621         ia64*)
12622           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12623           ;;
12624         *)
12625           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12626           ;;
12627         esac
12628       else
12629         case $host_cpu in
12630         hppa*64*)
12631           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12632           ;;
12633         ia64*)
12634           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12635           ;;
12636         *)
12637         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12638           ;;
12639         esac
12640       fi
12641       if test "$with_gnu_ld" = no; then
12642         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12643         hardcode_libdir_separator_GO=:
12644
12645         case $host_cpu in
12646         hppa*64*|ia64*)
12647           hardcode_direct_GO=no
12648           hardcode_shlibpath_var_GO=no
12649           ;;
12650         *)
12651           hardcode_direct_GO=yes
12652           hardcode_direct_absolute_GO=yes
12653           export_dynamic_flag_spec_GO='${wl}-E'
12654
12655           # hardcode_minus_L: Not really in the search PATH,
12656           # but as the default location of the library.
12657           hardcode_minus_L_GO=yes
12658           ;;
12659         esac
12660       fi
12661       ;;
12662
12663     irix5* | irix6* | nonstopux*)
12664       if test "$GCC" = yes; then
12665         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'
12666         # Try to use the -exported_symbol ld option, if it does not
12667         # work, assume that -exports_file does not work either and
12668         # implicitly export all symbols.
12669         save_LDFLAGS="$LDFLAGS"
12670         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12671         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h.  */
12673 int foo(void) {}
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676   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'
12677
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680     conftest$ac_exeext conftest.$ac_ext
12681         LDFLAGS="$save_LDFLAGS"
12682       else
12683         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'
12684         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'
12685       fi
12686       archive_cmds_need_lc_GO='no'
12687       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12688       hardcode_libdir_separator_GO=:
12689       inherit_rpath_GO=yes
12690       link_all_deplibs_GO=yes
12691       ;;
12692
12693     netbsd*)
12694       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12695         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12696       else
12697         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12698       fi
12699       hardcode_libdir_flag_spec_GO='-R$libdir'
12700       hardcode_direct_GO=yes
12701       hardcode_shlibpath_var_GO=no
12702       ;;
12703
12704     newsos6)
12705       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12706       hardcode_direct_GO=yes
12707       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12708       hardcode_libdir_separator_GO=:
12709       hardcode_shlibpath_var_GO=no
12710       ;;
12711
12712     *nto* | *qnx*)
12713       ;;
12714
12715     openbsd*)
12716       if test -f /usr/libexec/ld.so; then
12717         hardcode_direct_GO=yes
12718         hardcode_shlibpath_var_GO=no
12719         hardcode_direct_absolute_GO=yes
12720         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12721           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12722           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12723           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12724           export_dynamic_flag_spec_GO='${wl}-E'
12725         else
12726           case $host_os in
12727            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12728              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12729              hardcode_libdir_flag_spec_GO='-R$libdir'
12730              ;;
12731            *)
12732              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12733              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12734              ;;
12735           esac
12736         fi
12737       else
12738         ld_shlibs_GO=no
12739       fi
12740       ;;
12741
12742     os2*)
12743       hardcode_libdir_flag_spec_GO='-L$libdir'
12744       hardcode_minus_L_GO=yes
12745       allow_undefined_flag_GO=unsupported
12746       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'
12747       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12748       ;;
12749
12750     osf3*)
12751       if test "$GCC" = yes; then
12752         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12753         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'
12754       else
12755         allow_undefined_flag_GO=' -expect_unresolved \*'
12756         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'
12757       fi
12758       archive_cmds_need_lc_GO='no'
12759       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12760       hardcode_libdir_separator_GO=:
12761       ;;
12762
12763     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12764       if test "$GCC" = yes; then
12765         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12766         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'
12767         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12768       else
12769         allow_undefined_flag_GO=' -expect_unresolved \*'
12770         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'
12771         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~
12772         $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'
12773
12774         # Both c and cxx compiler support -rpath directly
12775         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12776       fi
12777       archive_cmds_need_lc_GO='no'
12778       hardcode_libdir_separator_GO=:
12779       ;;
12780
12781     solaris*)
12782       no_undefined_flag_GO=' -z defs'
12783       if test "$GCC" = yes; then
12784         wlarc='${wl}'
12785         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12786         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12787           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12788       else
12789         case `$CC -V 2>&1` in
12790         *"Compilers 5.0"*)
12791           wlarc=''
12792           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12793           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12794           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12795           ;;
12796         *)
12797           wlarc='${wl}'
12798           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12799           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12800           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12801           ;;
12802         esac
12803       fi
12804       hardcode_libdir_flag_spec_GO='-R$libdir'
12805       hardcode_shlibpath_var_GO=no
12806       case $host_os in
12807       solaris2.[0-5] | solaris2.[0-5].*) ;;
12808       *)
12809         # The compiler driver will combine and reorder linker options,
12810         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12811         # but is careful enough not to reorder.
12812         # Supported since Solaris 2.6 (maybe 2.5.1?)
12813         if test "$GCC" = yes; then
12814           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12815         else
12816           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12817         fi
12818         ;;
12819       esac
12820       link_all_deplibs_GO=yes
12821       ;;
12822
12823     sunos4*)
12824       if test "x$host_vendor" = xsequent; then
12825         # Use $CC to link under sequent, because it throws in some extra .o
12826         # files that make .init and .fini sections work.
12827         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12828       else
12829         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12830       fi
12831       hardcode_libdir_flag_spec_GO='-L$libdir'
12832       hardcode_direct_GO=yes
12833       hardcode_minus_L_GO=yes
12834       hardcode_shlibpath_var_GO=no
12835       ;;
12836
12837     sysv4)
12838       case $host_vendor in
12839         sni)
12840           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12841           hardcode_direct_GO=yes # is this really true???
12842         ;;
12843         siemens)
12844           ## LD is ld it makes a PLAMLIB
12845           ## CC just makes a GrossModule.
12846           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12847           reload_cmds_GO='$CC -r -o $output$reload_objs'
12848           hardcode_direct_GO=no
12849         ;;
12850         motorola)
12851           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12852           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12853         ;;
12854       esac
12855       runpath_var='LD_RUN_PATH'
12856       hardcode_shlibpath_var_GO=no
12857       ;;
12858
12859     sysv4.3*)
12860       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12861       hardcode_shlibpath_var_GO=no
12862       export_dynamic_flag_spec_GO='-Bexport'
12863       ;;
12864
12865     sysv4*MP*)
12866       if test -d /usr/nec; then
12867         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12868         hardcode_shlibpath_var_GO=no
12869         runpath_var=LD_RUN_PATH
12870         hardcode_runpath_var=yes
12871         ld_shlibs_GO=yes
12872       fi
12873       ;;
12874
12875     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12876       no_undefined_flag_GO='${wl}-z,text'
12877       archive_cmds_need_lc_GO=no
12878       hardcode_shlibpath_var_GO=no
12879       runpath_var='LD_RUN_PATH'
12880
12881       if test "$GCC" = yes; then
12882         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12883         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12884       else
12885         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12886         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12887       fi
12888       ;;
12889
12890     sysv5* | sco3.2v5* | sco5v6*)
12891       # Note: We can NOT use -z defs as we might desire, because we do not
12892       # link with -lc, and that would cause any symbols used from libc to
12893       # always be unresolved, which means just about no library would
12894       # ever link correctly.  If we're not using GNU ld we use -z text
12895       # though, which does catch some bad symbols but isn't as heavy-handed
12896       # as -z defs.
12897       no_undefined_flag_GO='${wl}-z,text'
12898       allow_undefined_flag_GO='${wl}-z,nodefs'
12899       archive_cmds_need_lc_GO=no
12900       hardcode_shlibpath_var_GO=no
12901       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12902       hardcode_libdir_separator_GO=':'
12903       link_all_deplibs_GO=yes
12904       export_dynamic_flag_spec_GO='${wl}-Bexport'
12905       runpath_var='LD_RUN_PATH'
12906
12907       if test "$GCC" = yes; then
12908         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12909         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12910       else
12911         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12912         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12913       fi
12914       ;;
12915
12916     uts4*)
12917       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12918       hardcode_libdir_flag_spec_GO='-L$libdir'
12919       hardcode_shlibpath_var_GO=no
12920       ;;
12921
12922     *)
12923       ld_shlibs_GO=no
12924       ;;
12925     esac
12926
12927     if test x$host_vendor = xsni; then
12928       case $host in
12929       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12930         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12931         ;;
12932       esac
12933     fi
12934   fi
12935
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12937 $as_echo "$ld_shlibs_GO" >&6; }
12938 test "$ld_shlibs_GO" = no && can_build_shared=no
12939
12940 with_gnu_ld_GO=$with_gnu_ld
12941
12942
12943
12944
12945
12946
12947 #
12948 # Do we need to explicitly link libc?
12949 #
12950 case "x$archive_cmds_need_lc_GO" in
12951 x|xyes)
12952   # Assume -lc should be added
12953   archive_cmds_need_lc_GO=yes
12954
12955   if test "$enable_shared" = yes && test "$GCC" = yes; then
12956     case $archive_cmds_GO in
12957     *'~'*)
12958       # FIXME: we may have to deal with multi-command sequences.
12959       ;;
12960     '$CC '*)
12961       # Test whether the compiler implicitly links with -lc since on some
12962       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12963       # to ld, don't add -lc before -lgcc.
12964       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12965 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12966 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12967   $as_echo_n "(cached) " >&6
12968 else
12969   $RM conftest*
12970         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12971
12972         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12973   (eval $ac_compile) 2>&5
12974   ac_status=$?
12975   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12976   test $ac_status = 0; } 2>conftest.err; then
12977           soname=conftest
12978           lib=conftest
12979           libobjs=conftest.$ac_objext
12980           deplibs=
12981           wl=$lt_prog_compiler_wl_GO
12982           pic_flag=$lt_prog_compiler_pic_GO
12983           compiler_flags=-v
12984           linker_flags=-v
12985           verstring=
12986           output_objdir=.
12987           libname=conftest
12988           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12989           allow_undefined_flag_GO=
12990           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12991   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12992   ac_status=$?
12993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12994   test $ac_status = 0; }
12995           then
12996             lt_cv_archive_cmds_need_lc_GO=no
12997           else
12998             lt_cv_archive_cmds_need_lc_GO=yes
12999           fi
13000           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13001         else
13002           cat conftest.err 1>&5
13003         fi
13004         $RM conftest*
13005
13006 fi
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13008 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13009       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13010       ;;
13011     esac
13012   fi
13013   ;;
13014 esac
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13081 hardcode_action_GO=
13082 if test -n "$hardcode_libdir_flag_spec_GO" ||
13083    test -n "$runpath_var_GO" ||
13084    test "X$hardcode_automatic_GO" = "Xyes" ; then
13085
13086   # We can hardcode non-existent directories.
13087   if test "$hardcode_direct_GO" != no &&
13088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13089      # have to relink, otherwise we might link with an installed library
13090      # when we should be linking with a yet-to-be-installed one
13091      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13092      test "$hardcode_minus_L_GO" != no; then
13093     # Linking always hardcodes the temporary library directory.
13094     hardcode_action_GO=relink
13095   else
13096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13097     hardcode_action_GO=immediate
13098   fi
13099 else
13100   # We cannot hardcode anything, or else we can only hardcode existing
13101   # directories.
13102   hardcode_action_GO=unsupported
13103 fi
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13105 $as_echo "$hardcode_action_GO" >&6; }
13106
13107 if test "$hardcode_action_GO" = relink ||
13108    test "$inherit_rpath_GO" = yes; then
13109   # Fast installation is not supported
13110   enable_fast_install=no
13111 elif test "$shlibpath_overrides_runpath" = yes ||
13112      test "$enable_shared" = no; then
13113   # Fast installation is not necessary
13114   enable_fast_install=needless
13115 fi
13116
13117
13118
13119
13120
13121
13122
13123 fi
13124
13125 ac_ext=c
13126 ac_cpp='$CPP $CPPFLAGS'
13127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13130
13131
13132 GCC=$lt_save_GCC
13133 CC="$lt_save_CC"
13134
13135
13136
13137
13138         ac_config_commands="$ac_config_commands libtool"
13139
13140
13141
13142
13143 # Only expand once:
13144
13145
13146
13147
13148
13149 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13150
13151
13152 WERROR="-Werror"
13153
13154
13155 glibgo_toolexecdir=no
13156 glibgo_toolexeclibdir=no
13157 glibgo_prefixdir=$prefix
13158
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13160 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13161 # Check whether --enable-version-specific-runtime-libs was given.
13162 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13163   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13164     yes) version_specific_libs=yes ;;
13165     no)  version_specific_libs=no ;;
13166     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13167    esac
13168 else
13169   version_specific_libs=no
13170 fi
13171
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13173 $as_echo "$version_specific_libs" >&6; }
13174
13175 # Version-specific runtime libs processing.
13176 if test $version_specific_libs = yes; then
13177   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13178   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13179 fi
13180
13181 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13182 # Install a library built with a cross compiler in tooldir, not libdir.
13183 if test x"$glibgo_toolexecdir" = x"no"; then
13184   if test -n "$with_cross_host" &&
13185      test x"$with_cross_host" != x"no"; then
13186     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13187     glibgo_toolexeclibdir='${toolexecdir}/lib'
13188   else
13189     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13190     glibgo_toolexeclibdir='${libdir}'
13191   fi
13192   multi_os_directory=`$CC -print-multi-os-directory`
13193   case $multi_os_directory in
13194     .) ;; # Avoid trailing /.
13195     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13196   esac
13197 fi
13198
13199
13200
13201
13202
13203 # See if the user wants to configure without libffi.  Some
13204 # architectures don't support it.  FIXME: We should set a default
13205 # based on the host.
13206
13207 # Check whether --with-libffi was given.
13208 if test "${with_libffi+set}" = set; then :
13209   withval=$with_libffi; :
13210 else
13211   with_libffi=${with_libffi_default-yes}
13212 fi
13213
13214
13215 LIBFFI=
13216 LIBFFIINCS=
13217 if test "$with_libffi" != no; then
13218
13219 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13220
13221    LIBFFI=../libffi/libffi_convenience.la
13222    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13223 fi
13224
13225
13226
13227 is_darwin=no
13228 is_freebsd=no
13229 is_irix=no
13230 is_linux=no
13231 is_rtems=no
13232 is_solaris=no
13233 GOOS=unknown
13234 case ${host} in
13235   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13236   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13237   *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13238   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13239   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13240   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13241 esac
13242  if test $is_darwin = yes; then
13243   LIBGO_IS_DARWIN_TRUE=
13244   LIBGO_IS_DARWIN_FALSE='#'
13245 else
13246   LIBGO_IS_DARWIN_TRUE='#'
13247   LIBGO_IS_DARWIN_FALSE=
13248 fi
13249
13250  if test $is_freebsd = yes; then
13251   LIBGO_IS_FREEBSD_TRUE=
13252   LIBGO_IS_FREEBSD_FALSE='#'
13253 else
13254   LIBGO_IS_FREEBSD_TRUE='#'
13255   LIBGO_IS_FREEBSD_FALSE=
13256 fi
13257
13258  if test $is_irix = yes; then
13259   LIBGO_IS_IRIX_TRUE=
13260   LIBGO_IS_IRIX_FALSE='#'
13261 else
13262   LIBGO_IS_IRIX_TRUE='#'
13263   LIBGO_IS_IRIX_FALSE=
13264 fi
13265
13266  if test $is_linux = yes; then
13267   LIBGO_IS_LINUX_TRUE=
13268   LIBGO_IS_LINUX_FALSE='#'
13269 else
13270   LIBGO_IS_LINUX_TRUE='#'
13271   LIBGO_IS_LINUX_FALSE=
13272 fi
13273
13274  if test $is_rtems = yes; then
13275   LIBGO_IS_RTEMS_TRUE=
13276   LIBGO_IS_RTEMS_FALSE='#'
13277 else
13278   LIBGO_IS_RTEMS_TRUE='#'
13279   LIBGO_IS_RTEMS_FALSE=
13280 fi
13281
13282  if test $is_solaris = yes; then
13283   LIBGO_IS_SOLARIS_TRUE=
13284   LIBGO_IS_SOLARIS_FALSE='#'
13285 else
13286   LIBGO_IS_SOLARIS_TRUE='#'
13287   LIBGO_IS_SOLARIS_FALSE=
13288 fi
13289
13290
13291
13292 is_386=no
13293 is_arm=no
13294 is_m68k=no
13295 mips_abi=""
13296 is_ppc=no
13297 is_ppc64=no
13298 is_sparc=no
13299 is_sparc64=no
13300 is_x86_64=no
13301 GOARCH=unknown
13302 case ${host} in
13303   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13304     is_arm=yes
13305     GOARCH=arm
13306     ;;
13307   i[34567]86-*-* | x86_64-*-*)
13308     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h.  */
13310
13311 #ifdef __x86_64__
13312 #error 64-bit
13313 #endif
13314 _ACEOF
13315 if ac_fn_c_try_compile "$LINENO"; then :
13316   is_386=yes
13317 else
13318   is_x86_64=yes
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321     if test "$is_386" = "yes"; then
13322       GOARCH=386
13323     else
13324       GOARCH=amd64
13325     fi
13326     ;;
13327   m68k*-*-*)
13328     is_m68k=yes
13329     GOARCH=m68k
13330     ;;
13331   mips*-*-*)
13332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h.  */
13334
13335 #if _MIPS_SIM != _ABIO32
13336 #error not o32
13337 #endif
13338 _ACEOF
13339 if ac_fn_c_try_compile "$LINENO"; then :
13340   mips_abi="o32"
13341 else
13342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h.  */
13344
13345 #if _MIPS_SIM != _ABIN32
13346 #error not n32
13347 #endif
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350   mips_abi="n32"
13351 else
13352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h.  */
13354
13355 #if _MIPS_SIM != _ABI64
13356 #error not n64
13357 #endif
13358 _ACEOF
13359 if ac_fn_c_try_compile "$LINENO"; then :
13360   mips_abi="n64"
13361 else
13362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h.  */
13364
13365 #if _MIPS_SIM != _ABIO64
13366 #error not o64
13367 #endif
13368 _ACEOF
13369 if ac_fn_c_try_compile "$LINENO"; then :
13370   mips_abi="o64"
13371 else
13372   as_fn_error "unknown MIPS ABI" "$LINENO" 5
13373 mips_abi="n32"
13374 fi
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382     case "$mips_abi" in
13383     "o32") GOARCH=mipso32 ;;
13384     "n32") GOARCH=mipsn32 ;;
13385     "n64") GOARCH=mipsn64 ;;
13386     "o64") GOARCH=mipso64 ;;
13387     esac
13388     ;;
13389   rs6000*-*-* | powerpc*-*-*)
13390     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h.  */
13392
13393 #ifdef _ARCH_PPC64
13394 #error 64-bit
13395 #endif
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398   is_ppc=yes
13399 else
13400   is_ppc64=yes
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403     if test "$is_ppc" = "yes"; then
13404       GOARCH=ppc
13405     else
13406       GOARCH=ppc64
13407     fi
13408     ;;
13409   sparc*-*-*)
13410     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h.  */
13412
13413 #if defined(__sparcv9) || defined(__arch64__)
13414 #error 64-bit
13415 #endif
13416 _ACEOF
13417 if ac_fn_c_try_compile "$LINENO"; then :
13418   is_sparc=yes
13419 else
13420   is_sparc64=yes
13421 fi
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423     if test "$is_sparc" = "yes"; then
13424       GOARCH=sparc
13425     else
13426       GOARCH=sparc64
13427     fi
13428     ;;
13429 esac
13430  if test $is_386 = yes; then
13431   LIBGO_IS_386_TRUE=
13432   LIBGO_IS_386_FALSE='#'
13433 else
13434   LIBGO_IS_386_TRUE='#'
13435   LIBGO_IS_386_FALSE=
13436 fi
13437
13438  if test $is_arm = yes; then
13439   LIBGO_IS_ARM_TRUE=
13440   LIBGO_IS_ARM_FALSE='#'
13441 else
13442   LIBGO_IS_ARM_TRUE='#'
13443   LIBGO_IS_ARM_FALSE=
13444 fi
13445
13446  if test $is_m68k = yes; then
13447   LIBGO_IS_M68K_TRUE=
13448   LIBGO_IS_M68K_FALSE='#'
13449 else
13450   LIBGO_IS_M68K_TRUE='#'
13451   LIBGO_IS_M68K_FALSE=
13452 fi
13453
13454  if test $mips_abi != ""; then
13455   LIBGO_IS_MIPS_TRUE=
13456   LIBGO_IS_MIPS_FALSE='#'
13457 else
13458   LIBGO_IS_MIPS_TRUE='#'
13459   LIBGO_IS_MIPS_FALSE=
13460 fi
13461
13462  if test $mips_abi = o32; then
13463   LIBGO_IS_MIPSO32_TRUE=
13464   LIBGO_IS_MIPSO32_FALSE='#'
13465 else
13466   LIBGO_IS_MIPSO32_TRUE='#'
13467   LIBGO_IS_MIPSO32_FALSE=
13468 fi
13469
13470  if test $mips_abi = n32; then
13471   LIBGO_IS_MIPSN32_TRUE=
13472   LIBGO_IS_MIPSN32_FALSE='#'
13473 else
13474   LIBGO_IS_MIPSN32_TRUE='#'
13475   LIBGO_IS_MIPSN32_FALSE=
13476 fi
13477
13478  if test $mips_abi = n64; then
13479   LIBGO_IS_MIPSN64_TRUE=
13480   LIBGO_IS_MIPSN64_FALSE='#'
13481 else
13482   LIBGO_IS_MIPSN64_TRUE='#'
13483   LIBGO_IS_MIPSN64_FALSE=
13484 fi
13485
13486  if test $mips_abi = o64; then
13487   LIBGO_IS_MIPSO64_TRUE=
13488   LIBGO_IS_MIPSO64_FALSE='#'
13489 else
13490   LIBGO_IS_MIPSO64_TRUE='#'
13491   LIBGO_IS_MIPSO64_FALSE=
13492 fi
13493
13494  if test $is_ppc = yes; then
13495   LIBGO_IS_PPC_TRUE=
13496   LIBGO_IS_PPC_FALSE='#'
13497 else
13498   LIBGO_IS_PPC_TRUE='#'
13499   LIBGO_IS_PPC_FALSE=
13500 fi
13501
13502  if test $is_ppc64 = yes; then
13503   LIBGO_IS_PPC64_TRUE=
13504   LIBGO_IS_PPC64_FALSE='#'
13505 else
13506   LIBGO_IS_PPC64_TRUE='#'
13507   LIBGO_IS_PPC64_FALSE=
13508 fi
13509
13510  if test $is_sparc = yes; then
13511   LIBGO_IS_SPARC_TRUE=
13512   LIBGO_IS_SPARC_FALSE='#'
13513 else
13514   LIBGO_IS_SPARC_TRUE='#'
13515   LIBGO_IS_SPARC_FALSE=
13516 fi
13517
13518  if test $is_sparc64 = yes; then
13519   LIBGO_IS_SPARC64_TRUE=
13520   LIBGO_IS_SPARC64_FALSE='#'
13521 else
13522   LIBGO_IS_SPARC64_TRUE='#'
13523   LIBGO_IS_SPARC64_FALSE=
13524 fi
13525
13526  if test $is_x86_64 = yes; then
13527   LIBGO_IS_X86_64_TRUE=
13528   LIBGO_IS_X86_64_FALSE='#'
13529 else
13530   LIBGO_IS_X86_64_TRUE='#'
13531   LIBGO_IS_X86_64_FALSE=
13532 fi
13533
13534
13535
13536 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13537 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13538   GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13539 fi
13540
13541
13542 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13543 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13544   GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13545 fi
13546
13547
13548 case "$target" in
13549     *-*-solaris2.[89])
13550         # Solaris 8/9 need this so struct msghdr gets the msg_control
13551         # etc. fields in <sys/socket.h> (_XPG4_2).
13552         OSCFLAGS='-D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__'
13553         ;;
13554     *-*-solaris2.1[01])
13555         # Solaris 10+ needs this so struct msghdr gets the msg_control
13556         # etc. fields in <sys/socket.h> (_XPG4_2).  _XOPEN_SOURCE=500 as
13557         # above doesn't work with C99.
13558         OSCFLAGS='-D_XOPEN_SOURCE=600 -D__EXTENSIONS__'
13559         ;;
13560 esac
13561
13562
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13564 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13565 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13566   $as_echo_n "(cached) " >&6
13567 else
13568   CFLAGS_hold=$CFLAGS
13569 CFLAGS="$CFLAGS -fsplit-stack"
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h.  */
13572 int i;
13573 _ACEOF
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575   libgo_cv_c_split_stack_supported=yes
13576 else
13577   libgo_cv_c_split_stack_supported=no
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 CFLAGS=$CFLAGS_hold
13581 fi
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13583 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13584 if test "$libgo_cv_c_split_stack_supported" = yes; then
13585   SPLIT_STACK=-fsplit-stack
13586
13587 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13588
13589 else
13590   SPLIT_STACK=
13591 fi
13592
13593  if test "$libgo_cv_c_split_stack_supported" = yes; then
13594   USING_SPLIT_STACK_TRUE=
13595   USING_SPLIT_STACK_FALSE='#'
13596 else
13597   USING_SPLIT_STACK_TRUE='#'
13598   USING_SPLIT_STACK_FALSE=
13599 fi
13600
13601
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13603 $as_echo_n "checking whether linker supports split stack... " >&6; }
13604 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13605   $as_echo_n "(cached) " >&6
13606 else
13607   libgo_cv_c_linker_supports_split_stack=no
13608 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13609   libgo_cv_c_linker_supports_split_stack=yes
13610 fi
13611 fi
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13613 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13614 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13615
13616 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13617
13618 fi
13619
13620 MATH_LIBS=
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13622 $as_echo_n "checking for sqrt in -lm... " >&6; }
13623 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13624   $as_echo_n "(cached) " >&6
13625 else
13626   ac_check_lib_save_LIBS=$LIBS
13627 LIBS="-lm  $LIBS"
13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629 /* end confdefs.h.  */
13630
13631 /* Override any GCC internal prototype to avoid an error.
13632    Use char because int might match the return type of a GCC
13633    builtin and then its argument prototype would still apply.  */
13634 #ifdef __cplusplus
13635 extern "C"
13636 #endif
13637 char sqrt ();
13638 int
13639 main ()
13640 {
13641 return sqrt ();
13642   ;
13643   return 0;
13644 }
13645 _ACEOF
13646 if ac_fn_c_try_link "$LINENO"; then :
13647   ac_cv_lib_m_sqrt=yes
13648 else
13649   ac_cv_lib_m_sqrt=no
13650 fi
13651 rm -f core conftest.err conftest.$ac_objext \
13652     conftest$ac_exeext conftest.$ac_ext
13653 LIBS=$ac_check_lib_save_LIBS
13654 fi
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13656 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13657 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13658   MATH_LIBS=-lm
13659 fi
13660
13661
13662
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13664 $as_echo_n "checking for socket libraries... " >&6; }
13665 if test "${libgo_cv_lib_sockets+set}" = set; then :
13666   $as_echo_n "(cached) " >&6
13667 else
13668   libgo_cv_lib_sockets=
13669    libgo_check_both=no
13670    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13671 if test "x$ac_cv_func_connect" = x""yes; then :
13672   libgo_check_socket=no
13673 else
13674   libgo_check_socket=yes
13675 fi
13676
13677    if test "$libgo_check_socket" = "yes"; then
13678      unset ac_cv_func_connect
13679      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13680 $as_echo_n "checking for main in -lsocket... " >&6; }
13681 if test "${ac_cv_lib_socket_main+set}" = set; then :
13682   $as_echo_n "(cached) " >&6
13683 else
13684   ac_check_lib_save_LIBS=$LIBS
13685 LIBS="-lsocket  $LIBS"
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h.  */
13688
13689
13690 int
13691 main ()
13692 {
13693 return main ();
13694   ;
13695   return 0;
13696 }
13697 _ACEOF
13698 if ac_fn_c_try_link "$LINENO"; then :
13699   ac_cv_lib_socket_main=yes
13700 else
13701   ac_cv_lib_socket_main=no
13702 fi
13703 rm -f core conftest.err conftest.$ac_objext \
13704     conftest$ac_exeext conftest.$ac_ext
13705 LIBS=$ac_check_lib_save_LIBS
13706 fi
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13708 $as_echo "$ac_cv_lib_socket_main" >&6; }
13709 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13710   libgo_cv_lib_sockets="-lsocket"
13711 else
13712   libgo_check_both=yes
13713 fi
13714
13715    fi
13716    if test "$libgo_check_both" = "yes"; then
13717      libgo_old_libs=$LIBS
13718      LIBS="$LIBS -lsocket -lnsl"
13719      unset ac_cv_func_accept
13720      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13721 if test "x$ac_cv_func_accept" = x""yes; then :
13722   libgo_check_nsl=no
13723                     libgo_cv_lib_sockets="-lsocket -lnsl"
13724 fi
13725
13726      unset ac_cv_func_accept
13727      LIBS=$libgo_old_libs
13728    fi
13729    unset ac_cv_func_gethostbyname
13730    libgo_old_libs="$LIBS"
13731    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13732 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13733
13734 else
13735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13736 $as_echo_n "checking for main in -lnsl... " >&6; }
13737 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13738   $as_echo_n "(cached) " >&6
13739 else
13740   ac_check_lib_save_LIBS=$LIBS
13741 LIBS="-lnsl  $LIBS"
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h.  */
13744
13745
13746 int
13747 main ()
13748 {
13749 return main ();
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 if ac_fn_c_try_link "$LINENO"; then :
13755   ac_cv_lib_nsl_main=yes
13756 else
13757   ac_cv_lib_nsl_main=no
13758 fi
13759 rm -f core conftest.err conftest.$ac_objext \
13760     conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13762 fi
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13764 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13765 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13766   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13767 fi
13768
13769 fi
13770
13771    unset ac_cv_func_gethostbyname
13772    LIBS=$libgo_old_libs
13773
13774 fi
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13776 $as_echo "$libgo_cv_lib_sockets" >&6; }
13777 NET_LIBS="$libgo_cv_lib_sockets"
13778
13779
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13781 $as_echo_n "checking whether -pthread is supported... " >&6; }
13782 if test "${libgo_cv_lib_pthread+set}" = set; then :
13783   $as_echo_n "(cached) " >&6
13784 else
13785   CFLAGS_hold=$CFLAGS
13786 CFLAGS="$CFLAGS -pthread"
13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13788 /* end confdefs.h.  */
13789 int i;
13790 _ACEOF
13791 if ac_fn_c_try_compile "$LINENO"; then :
13792   libgo_cv_lib_pthread=yes
13793 else
13794   libgo_cv_lib_pthread=no
13795 fi
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 CFLAGS=$CFLAGS_hold
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13800 $as_echo "$libgo_cv_lib_pthread" >&6; }
13801 PTHREAD_CFLAGS=
13802 if test "$libgo_cv_lib_pthread" = yes; then
13803   PTHREAD_CFLAGS=-pthread
13804 fi
13805
13806
13807 PTHREAD_LIBS=
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13809 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13810 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13811   $as_echo_n "(cached) " >&6
13812 else
13813   ac_check_lib_save_LIBS=$LIBS
13814 LIBS="-lpthread  $LIBS"
13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h.  */
13817
13818 /* Override any GCC internal prototype to avoid an error.
13819    Use char because int might match the return type of a GCC
13820    builtin and then its argument prototype would still apply.  */
13821 #ifdef __cplusplus
13822 extern "C"
13823 #endif
13824 char pthread_create ();
13825 int
13826 main ()
13827 {
13828 return pthread_create ();
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 if ac_fn_c_try_link "$LINENO"; then :
13834   ac_cv_lib_pthread_pthread_create=yes
13835 else
13836   ac_cv_lib_pthread_pthread_create=no
13837 fi
13838 rm -f core conftest.err conftest.$ac_objext \
13839     conftest$ac_exeext conftest.$ac_ext
13840 LIBS=$ac_check_lib_save_LIBS
13841 fi
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13843 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13844 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13845   PTHREAD_LIBS=-lpthread
13846 fi
13847
13848
13849
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13851 $as_echo_n "checking for library containing sched_yield... " >&6; }
13852 if test "${ac_cv_search_sched_yield+set}" = set; then :
13853   $as_echo_n "(cached) " >&6
13854 else
13855   ac_func_search_save_LIBS=$LIBS
13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h.  */
13858
13859 /* Override any GCC internal prototype to avoid an error.
13860    Use char because int might match the return type of a GCC
13861    builtin and then its argument prototype would still apply.  */
13862 #ifdef __cplusplus
13863 extern "C"
13864 #endif
13865 char sched_yield ();
13866 int
13867 main ()
13868 {
13869 return sched_yield ();
13870   ;
13871   return 0;
13872 }
13873 _ACEOF
13874 for ac_lib in '' rt; do
13875   if test -z "$ac_lib"; then
13876     ac_res="none required"
13877   else
13878     ac_res=-l$ac_lib
13879     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13880   fi
13881   if ac_fn_c_try_link "$LINENO"; then :
13882   ac_cv_search_sched_yield=$ac_res
13883 fi
13884 rm -f core conftest.err conftest.$ac_objext \
13885     conftest$ac_exeext
13886   if test "${ac_cv_search_sched_yield+set}" = set; then :
13887   break
13888 fi
13889 done
13890 if test "${ac_cv_search_sched_yield+set}" = set; then :
13891
13892 else
13893   ac_cv_search_sched_yield=no
13894 fi
13895 rm conftest.$ac_ext
13896 LIBS=$ac_func_search_save_LIBS
13897 fi
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13899 $as_echo "$ac_cv_search_sched_yield" >&6; }
13900 ac_res=$ac_cv_search_sched_yield
13901 if test "$ac_res" != no; then :
13902   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13903
13904 fi
13905
13906
13907  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13908 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13909 if test "${ac_cv_c_bigendian+set}" = set; then :
13910   $as_echo_n "(cached) " >&6
13911 else
13912   ac_cv_c_bigendian=unknown
13913     # See if we're dealing with a universal compiler.
13914     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h.  */
13916 #ifndef __APPLE_CC__
13917                not a universal capable compiler
13918              #endif
13919              typedef int dummy;
13920
13921 _ACEOF
13922 if ac_fn_c_try_compile "$LINENO"; then :
13923
13924         # Check for potential -arch flags.  It is not universal unless
13925         # there are at least two -arch flags with different values.
13926         ac_arch=
13927         ac_prev=
13928         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13929          if test -n "$ac_prev"; then
13930            case $ac_word in
13931              i?86 | x86_64 | ppc | ppc64)
13932                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13933                  ac_arch=$ac_word
13934                else
13935                  ac_cv_c_bigendian=universal
13936                  break
13937                fi
13938                ;;
13939            esac
13940            ac_prev=
13941          elif test "x$ac_word" = "x-arch"; then
13942            ac_prev=arch
13943          fi
13944        done
13945 fi
13946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947     if test $ac_cv_c_bigendian = unknown; then
13948       # See if sys/param.h defines the BYTE_ORDER macro.
13949       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h.  */
13951 #include <sys/types.h>
13952              #include <sys/param.h>
13953
13954 int
13955 main ()
13956 {
13957 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13958                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13959                      && LITTLE_ENDIAN)
13960               bogus endian macros
13961              #endif
13962
13963   ;
13964   return 0;
13965 }
13966 _ACEOF
13967 if ac_fn_c_try_compile "$LINENO"; then :
13968   # It does; now see whether it defined to BIG_ENDIAN or not.
13969          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13970 /* end confdefs.h.  */
13971 #include <sys/types.h>
13972                 #include <sys/param.h>
13973
13974 int
13975 main ()
13976 {
13977 #if BYTE_ORDER != BIG_ENDIAN
13978                  not big endian
13979                 #endif
13980
13981   ;
13982   return 0;
13983 }
13984 _ACEOF
13985 if ac_fn_c_try_compile "$LINENO"; then :
13986   ac_cv_c_bigendian=yes
13987 else
13988   ac_cv_c_bigendian=no
13989 fi
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991 fi
13992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13993     fi
13994     if test $ac_cv_c_bigendian = unknown; then
13995       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13996       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h.  */
13998 #include <limits.h>
13999
14000 int
14001 main ()
14002 {
14003 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14004               bogus endian macros
14005              #endif
14006
14007   ;
14008   return 0;
14009 }
14010 _ACEOF
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012   # It does; now see whether it defined to _BIG_ENDIAN or not.
14013          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h.  */
14015 #include <limits.h>
14016
14017 int
14018 main ()
14019 {
14020 #ifndef _BIG_ENDIAN
14021                  not big endian
14022                 #endif
14023
14024   ;
14025   return 0;
14026 }
14027 _ACEOF
14028 if ac_fn_c_try_compile "$LINENO"; then :
14029   ac_cv_c_bigendian=yes
14030 else
14031   ac_cv_c_bigendian=no
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034 fi
14035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14036     fi
14037     if test $ac_cv_c_bigendian = unknown; then
14038       # Compile a test program.
14039       if test "$cross_compiling" = yes; then :
14040   # Try to guess by grepping values from an object file.
14041          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h.  */
14043 short int ascii_mm[] =
14044                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14045                 short int ascii_ii[] =
14046                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14047                 int use_ascii (int i) {
14048                   return ascii_mm[i] + ascii_ii[i];
14049                 }
14050                 short int ebcdic_ii[] =
14051                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14052                 short int ebcdic_mm[] =
14053                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14054                 int use_ebcdic (int i) {
14055                   return ebcdic_mm[i] + ebcdic_ii[i];
14056                 }
14057                 extern int foo;
14058
14059 int
14060 main ()
14061 {
14062 return use_ascii (foo) == use_ebcdic (foo);
14063   ;
14064   return 0;
14065 }
14066 _ACEOF
14067 if ac_fn_c_try_compile "$LINENO"; then :
14068   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14069               ac_cv_c_bigendian=yes
14070             fi
14071             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14072               if test "$ac_cv_c_bigendian" = unknown; then
14073                 ac_cv_c_bigendian=no
14074               else
14075                 # finding both strings is unlikely to happen, but who knows?
14076                 ac_cv_c_bigendian=unknown
14077               fi
14078             fi
14079 fi
14080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14081 else
14082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14083 /* end confdefs.h.  */
14084 $ac_includes_default
14085 int
14086 main ()
14087 {
14088
14089              /* Are we little or big endian?  From Harbison&Steele.  */
14090              union
14091              {
14092                long int l;
14093                char c[sizeof (long int)];
14094              } u;
14095              u.l = 1;
14096              return u.c[sizeof (long int) - 1] == 1;
14097
14098   ;
14099   return 0;
14100 }
14101 _ACEOF
14102 if ac_fn_c_try_run "$LINENO"; then :
14103   ac_cv_c_bigendian=no
14104 else
14105   ac_cv_c_bigendian=yes
14106 fi
14107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14108   conftest.$ac_objext conftest.beam conftest.$ac_ext
14109 fi
14110
14111     fi
14112 fi
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14114 $as_echo "$ac_cv_c_bigendian" >&6; }
14115  case $ac_cv_c_bigendian in #(
14116    yes)
14117      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14118 ;; #(
14119    no)
14120       ;; #(
14121    universal)
14122
14123 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14124
14125      ;; #(
14126    *)
14127      as_fn_error "unknown endianness
14128  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14129  esac
14130
14131
14132
14133
14134 # Check whether --with-system-libunwind was given.
14135 if test "${with_system_libunwind+set}" = set; then :
14136   withval=$with_system_libunwind;
14137 fi
14138
14139   # If system-libunwind was not specifically set, pick a default setting.
14140   if test x$with_system_libunwind = x; then
14141     case ${target} in
14142       ia64-*-hpux*) with_system_libunwind=yes ;;
14143       *) with_system_libunwind=no ;;
14144     esac
14145   fi
14146   # Based on system-libunwind and target, do we have ipinfo?
14147   if  test x$with_system_libunwind = xyes; then
14148     case ${target} in
14149       ia64-*-*) have_unwind_getipinfo=no ;;
14150       *) have_unwind_getipinfo=yes ;;
14151     esac
14152   else
14153     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14154
14155     case ${target} in
14156       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14157       *) have_unwind_getipinfo=yes ;;
14158     esac
14159
14160   fi
14161
14162   if test x$have_unwind_getipinfo = xyes; then
14163
14164 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14165
14166   fi
14167
14168
14169 # Check whether --enable-sjlj-exceptions was given.
14170 if test "${enable_sjlj_exceptions+set}" = set; then :
14171   enableval=$enable_sjlj_exceptions; case "$enableval" in
14172    yes|no|auto) ;;
14173    *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14174    esac
14175 else
14176   enable_sjlj_exceptions=auto
14177 fi
14178
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14181 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14182 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14183   $as_echo_n "(cached) " >&6
14184 else
14185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h.  */
14187
14188 void bar ();
14189 void clean (int *);
14190 void foo ()
14191 {
14192   int i __attribute__ ((cleanup (clean)));
14193   bar();
14194 }
14195
14196 _ACEOF
14197 CFLAGS_hold=$CFLAGS
14198 CFLAGS="--save-temps -fexceptions"
14199 libgo_cv_lib_sjlj_exceptions=unknown
14200 if ac_fn_c_try_compile; then :
14201   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14202     libgo_cv_lib_sjlj_exceptions=yes
14203   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14204     libgo_cv_lib_sjlj_exceptions=no
14205   fi
14206 fi
14207 CFLAGS=$CFLAGS_hold
14208 rm -f conftest*
14209
14210 fi
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14212 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14213
14214 if test "$enable_sjlj_exceptions" = "auto"; then
14215   enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14216 fi
14217
14218 case $enable_sjlj_exceptions in
14219 yes)
14220
14221 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14222
14223   ;;
14224 no)
14225   ;;
14226 *)
14227   as_fn_error "unable to detect exception model" "$LINENO" 5
14228   ;;
14229 esac
14230
14231 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h
14232 do :
14233   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14234 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14235 eval as_val=\$$as_ac_Header
14236    if test "x$as_val" = x""yes; then :
14237   cat >>confdefs.h <<_ACEOF
14238 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14239 _ACEOF
14240
14241 fi
14242
14243 done
14244
14245  if test "$ac_cv_header_sys_mman_h" = yes; then
14246   HAVE_SYS_MMAN_H_TRUE=
14247   HAVE_SYS_MMAN_H_FALSE='#'
14248 else
14249   HAVE_SYS_MMAN_H_TRUE='#'
14250   HAVE_SYS_MMAN_H_FALSE=
14251 fi
14252
14253
14254 for ac_func in srandom random strerror_r strsignal wait4
14255 do :
14256   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14257 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14258 eval as_val=\$$as_ac_var
14259    if test "x$as_val" = x""yes; then :
14260   cat >>confdefs.h <<_ACEOF
14261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14262 _ACEOF
14263
14264 fi
14265 done
14266
14267  if test "$ac_cv_func_strerror_r" = yes; then
14268   HAVE_STRERROR_R_TRUE=
14269   HAVE_STRERROR_R_FALSE='#'
14270 else
14271   HAVE_STRERROR_R_TRUE='#'
14272   HAVE_STRERROR_R_FALSE=
14273 fi
14274
14275  if test "$ac_cv_func_wait4" = yes; then
14276   HAVE_WAIT4_TRUE=
14277   HAVE_WAIT4_FALSE='#'
14278 else
14279   HAVE_WAIT4_TRUE='#'
14280   HAVE_WAIT4_FALSE=
14281 fi
14282
14283
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14285 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14286 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14287   $as_echo_n "(cached) " >&6
14288 else
14289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h.  */
14291
14292 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14293 uint32 i;
14294 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14295
14296 _ACEOF
14297 if ac_fn_c_try_link "$LINENO"; then :
14298   libgo_cv_func___sync_bool_compare_and_swap_4=yes
14299 else
14300   libgo_cv_func___sync_bool_compare_and_swap_4=no
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext \
14303     conftest$ac_exeext conftest.$ac_ext
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14306 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14307 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14308
14309 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14310
14311 fi
14312
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14314 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14315 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14316   $as_echo_n "(cached) " >&6
14317 else
14318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14319 /* end confdefs.h.  */
14320
14321 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14322 uint32 i;
14323 int main() { return __sync_fetch_and_add (&i, 1); }
14324
14325 _ACEOF
14326 if ac_fn_c_try_link "$LINENO"; then :
14327   libgo_cv_func___sync_fetch_and_add_4=yes
14328 else
14329   libgo_cv_func___sync_fetch_and_add_4=no
14330 fi
14331 rm -f core conftest.err conftest.$ac_objext \
14332     conftest$ac_exeext conftest.$ac_ext
14333 fi
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14335 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14336 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14337
14338 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14339
14340 fi
14341
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14343 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14344 if test "${libgo_cv_c_stringops+set}" = set; then :
14345   $as_echo_n "(cached) " >&6
14346 else
14347   CFLAGS_hold=$CFLAGS
14348 CFLAGS="$CFLAGS -minline-all-stringops"
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h.  */
14351 int i;
14352 _ACEOF
14353 if ac_fn_c_try_compile "$LINENO"; then :
14354   libgo_cv_c_stringops=yes
14355 else
14356   libgo_cv_c_stringops=no
14357 fi
14358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14359 CFLAGS=$CFLAGS_hold
14360 fi
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14362 $as_echo "$libgo_cv_c_stringops" >&6; }
14363 STRINGOPS_FLAG=
14364 if test "$libgo_cv_c_stringops" = yes; then
14365   STRINGOPS_FLAG=-minline-all-stringops
14366 fi
14367
14368
14369 CFLAGS_hold=$CFLAGS
14370 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14371 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14372 if test "x$ac_cv_type_off64_t" = x""yes; then :
14373
14374 cat >>confdefs.h <<_ACEOF
14375 #define HAVE_OFF64_T 1
14376 _ACEOF
14377
14378
14379 fi
14380
14381 CFLAGS=$CFLAGS_hold
14382
14383 cat >confcache <<\_ACEOF
14384 # This file is a shell script that caches the results of configure
14385 # tests run on this system so they can be shared between configure
14386 # scripts and configure runs, see configure's option --config-cache.
14387 # It is not useful on other systems.  If it contains results you don't
14388 # want to keep, you may remove or edit it.
14389 #
14390 # config.status only pays attention to the cache file if you give it
14391 # the --recheck option to rerun configure.
14392 #
14393 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14395 # following values.
14396
14397 _ACEOF
14398
14399 # The following way of writing the cache mishandles newlines in values,
14400 # but we know of no workaround that is simple, portable, and efficient.
14401 # So, we kill variables containing newlines.
14402 # Ultrix sh set writes to stderr and can't be redirected directly,
14403 # and sets the high bit in the cache file unless we assign to the vars.
14404 (
14405   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14406     eval ac_val=\$$ac_var
14407     case $ac_val in #(
14408     *${as_nl}*)
14409       case $ac_var in #(
14410       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14411 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14412       esac
14413       case $ac_var in #(
14414       _ | IFS | as_nl) ;; #(
14415       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14416       *) { eval $ac_var=; unset $ac_var;} ;;
14417       esac ;;
14418     esac
14419   done
14420
14421   (set) 2>&1 |
14422     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14423     *${as_nl}ac_space=\ *)
14424       # `set' does not quote correctly, so add quotes: double-quote
14425       # substitution turns \\\\ into \\, and sed turns \\ into \.
14426       sed -n \
14427         "s/'/'\\\\''/g;
14428           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14429       ;; #(
14430     *)
14431       # `set' quotes correctly as required by POSIX, so do not add quotes.
14432       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14433       ;;
14434     esac |
14435     sort
14436 ) |
14437   sed '
14438      /^ac_cv_env_/b end
14439      t clear
14440      :clear
14441      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14442      t end
14443      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14444      :end' >>confcache
14445 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14446   if test -w "$cache_file"; then
14447     test "x$cache_file" != "x/dev/null" &&
14448       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14449 $as_echo "$as_me: updating cache $cache_file" >&6;}
14450     cat confcache >$cache_file
14451   else
14452     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14453 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14454   fi
14455 fi
14456 rm -f confcache
14457
14458 if test ${multilib} = yes; then
14459   multilib_arg="--enable-multilib"
14460 else
14461   multilib_arg=
14462 fi
14463
14464 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14465
14466
14467 ac_config_commands="$ac_config_commands default"
14468
14469
14470 cat >confcache <<\_ACEOF
14471 # This file is a shell script that caches the results of configure
14472 # tests run on this system so they can be shared between configure
14473 # scripts and configure runs, see configure's option --config-cache.
14474 # It is not useful on other systems.  If it contains results you don't
14475 # want to keep, you may remove or edit it.
14476 #
14477 # config.status only pays attention to the cache file if you give it
14478 # the --recheck option to rerun configure.
14479 #
14480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14482 # following values.
14483
14484 _ACEOF
14485
14486 # The following way of writing the cache mishandles newlines in values,
14487 # but we know of no workaround that is simple, portable, and efficient.
14488 # So, we kill variables containing newlines.
14489 # Ultrix sh set writes to stderr and can't be redirected directly,
14490 # and sets the high bit in the cache file unless we assign to the vars.
14491 (
14492   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14493     eval ac_val=\$$ac_var
14494     case $ac_val in #(
14495     *${as_nl}*)
14496       case $ac_var in #(
14497       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14498 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14499       esac
14500       case $ac_var in #(
14501       _ | IFS | as_nl) ;; #(
14502       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14503       *) { eval $ac_var=; unset $ac_var;} ;;
14504       esac ;;
14505     esac
14506   done
14507
14508   (set) 2>&1 |
14509     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14510     *${as_nl}ac_space=\ *)
14511       # `set' does not quote correctly, so add quotes: double-quote
14512       # substitution turns \\\\ into \\, and sed turns \\ into \.
14513       sed -n \
14514         "s/'/'\\\\''/g;
14515           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14516       ;; #(
14517     *)
14518       # `set' quotes correctly as required by POSIX, so do not add quotes.
14519       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14520       ;;
14521     esac |
14522     sort
14523 ) |
14524   sed '
14525      /^ac_cv_env_/b end
14526      t clear
14527      :clear
14528      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14529      t end
14530      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14531      :end' >>confcache
14532 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14533   if test -w "$cache_file"; then
14534     test "x$cache_file" != "x/dev/null" &&
14535       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14536 $as_echo "$as_me: updating cache $cache_file" >&6;}
14537     cat confcache >$cache_file
14538   else
14539     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14540 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14541   fi
14542 fi
14543 rm -f confcache
14544
14545 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14546 # Let make expand exec_prefix.
14547 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14548
14549 DEFS=-DHAVE_CONFIG_H
14550
14551 ac_libobjs=
14552 ac_ltlibobjs=
14553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14554   # 1. Remove the extension, and $U if already installed.
14555   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14556   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14557   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14558   #    will be set to the directory where LIBOBJS objects are built.
14559   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14560   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14561 done
14562 LIBOBJS=$ac_libobjs
14563
14564 LTLIBOBJS=$ac_ltlibobjs
14565
14566
14567  if test -n "$EXEEXT"; then
14568   am__EXEEXT_TRUE=
14569   am__EXEEXT_FALSE='#'
14570 else
14571   am__EXEEXT_TRUE='#'
14572   am__EXEEXT_FALSE=
14573 fi
14574
14575 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14576   as_fn_error "conditional \"AMDEP\" was never defined.
14577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14578 fi
14579 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14580   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14582 fi
14583 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14584   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14586 fi
14587 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14588   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14590 fi
14591 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14592   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14594 fi
14595 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
14596   as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
14597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14598 fi
14599 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14600   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14602 fi
14603 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14604   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14606 fi
14607 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14608   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14610 fi
14611 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14612   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14614 fi
14615 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14616   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14618 fi
14619 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14620   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14622 fi
14623 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14624   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14626 fi
14627 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
14628   as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
14629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14630 fi
14631 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
14632   as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
14633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14634 fi
14635 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
14636   as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
14637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14638 fi
14639 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
14640   as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
14641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14642 fi
14643 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14644   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14646 fi
14647 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14648   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14650 fi
14651 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14652   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14654 fi
14655 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14656   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14658 fi
14659 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14660   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14662 fi
14663 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14664   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14666 fi
14667
14668 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14669   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671 fi
14672 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
14673   as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
14674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675 fi
14676 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
14677   as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
14678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679 fi
14680
14681 : ${CONFIG_STATUS=./config.status}
14682 ac_write_fail=0
14683 ac_clean_files_save=$ac_clean_files
14684 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14686 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14687 as_write_fail=0
14688 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14689 #! $SHELL
14690 # Generated by $as_me.
14691 # Run this file to recreate the current configuration.
14692 # Compiler output produced by configure, useful for debugging
14693 # configure, is in config.log if it exists.
14694
14695 debug=false
14696 ac_cs_recheck=false
14697 ac_cs_silent=false
14698
14699 SHELL=\${CONFIG_SHELL-$SHELL}
14700 export SHELL
14701 _ASEOF
14702 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14703 ## -------------------- ##
14704 ## M4sh Initialization. ##
14705 ## -------------------- ##
14706
14707 # Be more Bourne compatible
14708 DUALCASE=1; export DUALCASE # for MKS sh
14709 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14710   emulate sh
14711   NULLCMD=:
14712   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14713   # is contrary to our usage.  Disable this feature.
14714   alias -g '${1+"$@"}'='"$@"'
14715   setopt NO_GLOB_SUBST
14716 else
14717   case `(set -o) 2>/dev/null` in #(
14718   *posix*) :
14719     set -o posix ;; #(
14720   *) :
14721      ;;
14722 esac
14723 fi
14724
14725
14726 as_nl='
14727 '
14728 export as_nl
14729 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14730 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14731 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14732 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14733 # Prefer a ksh shell builtin over an external printf program on Solaris,
14734 # but without wasting forks for bash or zsh.
14735 if test -z "$BASH_VERSION$ZSH_VERSION" \
14736     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14737   as_echo='print -r --'
14738   as_echo_n='print -rn --'
14739 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14740   as_echo='printf %s\n'
14741   as_echo_n='printf %s'
14742 else
14743   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14744     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14745     as_echo_n='/usr/ucb/echo -n'
14746   else
14747     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14748     as_echo_n_body='eval
14749       arg=$1;
14750       case $arg in #(
14751       *"$as_nl"*)
14752         expr "X$arg" : "X\\(.*\\)$as_nl";
14753         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14754       esac;
14755       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14756     '
14757     export as_echo_n_body
14758     as_echo_n='sh -c $as_echo_n_body as_echo'
14759   fi
14760   export as_echo_body
14761   as_echo='sh -c $as_echo_body as_echo'
14762 fi
14763
14764 # The user is always right.
14765 if test "${PATH_SEPARATOR+set}" != set; then
14766   PATH_SEPARATOR=:
14767   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14768     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14769       PATH_SEPARATOR=';'
14770   }
14771 fi
14772
14773
14774 # IFS
14775 # We need space, tab and new line, in precisely that order.  Quoting is
14776 # there to prevent editors from complaining about space-tab.
14777 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14778 # splitting by setting IFS to empty value.)
14779 IFS=" ""        $as_nl"
14780
14781 # Find who we are.  Look in the path if we contain no directory separator.
14782 case $0 in #((
14783   *[\\/]* ) as_myself=$0 ;;
14784   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14785 for as_dir in $PATH
14786 do
14787   IFS=$as_save_IFS
14788   test -z "$as_dir" && as_dir=.
14789     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14790   done
14791 IFS=$as_save_IFS
14792
14793      ;;
14794 esac
14795 # We did not find ourselves, most probably we were run as `sh COMMAND'
14796 # in which case we are not to be found in the path.
14797 if test "x$as_myself" = x; then
14798   as_myself=$0
14799 fi
14800 if test ! -f "$as_myself"; then
14801   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14802   exit 1
14803 fi
14804
14805 # Unset variables that we do not need and which cause bugs (e.g. in
14806 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14807 # suppresses any "Segmentation fault" message there.  '((' could
14808 # trigger a bug in pdksh 5.2.14.
14809 for as_var in BASH_ENV ENV MAIL MAILPATH
14810 do eval test x\${$as_var+set} = xset \
14811   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14812 done
14813 PS1='$ '
14814 PS2='> '
14815 PS4='+ '
14816
14817 # NLS nuisances.
14818 LC_ALL=C
14819 export LC_ALL
14820 LANGUAGE=C
14821 export LANGUAGE
14822
14823 # CDPATH.
14824 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14825
14826
14827 # as_fn_error ERROR [LINENO LOG_FD]
14828 # ---------------------------------
14829 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14830 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14831 # script with status $?, using 1 if that was 0.
14832 as_fn_error ()
14833 {
14834   as_status=$?; test $as_status -eq 0 && as_status=1
14835   if test "$3"; then
14836     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14837     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14838   fi
14839   $as_echo "$as_me: error: $1" >&2
14840   as_fn_exit $as_status
14841 } # as_fn_error
14842
14843
14844 # as_fn_set_status STATUS
14845 # -----------------------
14846 # Set $? to STATUS, without forking.
14847 as_fn_set_status ()
14848 {
14849   return $1
14850 } # as_fn_set_status
14851
14852 # as_fn_exit STATUS
14853 # -----------------
14854 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14855 as_fn_exit ()
14856 {
14857   set +e
14858   as_fn_set_status $1
14859   exit $1
14860 } # as_fn_exit
14861
14862 # as_fn_unset VAR
14863 # ---------------
14864 # Portably unset VAR.
14865 as_fn_unset ()
14866 {
14867   { eval $1=; unset $1;}
14868 }
14869 as_unset=as_fn_unset
14870 # as_fn_append VAR VALUE
14871 # ----------------------
14872 # Append the text in VALUE to the end of the definition contained in VAR. Take
14873 # advantage of any shell optimizations that allow amortized linear growth over
14874 # repeated appends, instead of the typical quadratic growth present in naive
14875 # implementations.
14876 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14877   eval 'as_fn_append ()
14878   {
14879     eval $1+=\$2
14880   }'
14881 else
14882   as_fn_append ()
14883   {
14884     eval $1=\$$1\$2
14885   }
14886 fi # as_fn_append
14887
14888 # as_fn_arith ARG...
14889 # ------------------
14890 # Perform arithmetic evaluation on the ARGs, and store the result in the
14891 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14892 # must be portable across $(()) and expr.
14893 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14894   eval 'as_fn_arith ()
14895   {
14896     as_val=$(( $* ))
14897   }'
14898 else
14899   as_fn_arith ()
14900   {
14901     as_val=`expr "$@" || test $? -eq 1`
14902   }
14903 fi # as_fn_arith
14904
14905
14906 if expr a : '\(a\)' >/dev/null 2>&1 &&
14907    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14908   as_expr=expr
14909 else
14910   as_expr=false
14911 fi
14912
14913 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14914   as_basename=basename
14915 else
14916   as_basename=false
14917 fi
14918
14919 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14920   as_dirname=dirname
14921 else
14922   as_dirname=false
14923 fi
14924
14925 as_me=`$as_basename -- "$0" ||
14926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14927          X"$0" : 'X\(//\)$' \| \
14928          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14929 $as_echo X/"$0" |
14930     sed '/^.*\/\([^/][^/]*\)\/*$/{
14931             s//\1/
14932             q
14933           }
14934           /^X\/\(\/\/\)$/{
14935             s//\1/
14936             q
14937           }
14938           /^X\/\(\/\).*/{
14939             s//\1/
14940             q
14941           }
14942           s/.*/./; q'`
14943
14944 # Avoid depending upon Character Ranges.
14945 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14946 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14947 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14948 as_cr_digits='0123456789'
14949 as_cr_alnum=$as_cr_Letters$as_cr_digits
14950
14951 ECHO_C= ECHO_N= ECHO_T=
14952 case `echo -n x` in #(((((
14953 -n*)
14954   case `echo 'xy\c'` in
14955   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14956   xy)  ECHO_C='\c';;
14957   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14958        ECHO_T=' ';;
14959   esac;;
14960 *)
14961   ECHO_N='-n';;
14962 esac
14963
14964 rm -f conf$$ conf$$.exe conf$$.file
14965 if test -d conf$$.dir; then
14966   rm -f conf$$.dir/conf$$.file
14967 else
14968   rm -f conf$$.dir
14969   mkdir conf$$.dir 2>/dev/null
14970 fi
14971 if (echo >conf$$.file) 2>/dev/null; then
14972   if ln -s conf$$.file conf$$ 2>/dev/null; then
14973     as_ln_s='ln -s'
14974     # ... but there are two gotchas:
14975     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14976     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14977     # In both cases, we have to default to `cp -p'.
14978     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14979       as_ln_s='cp -p'
14980   elif ln conf$$.file conf$$ 2>/dev/null; then
14981     as_ln_s=ln
14982   else
14983     as_ln_s='cp -p'
14984   fi
14985 else
14986   as_ln_s='cp -p'
14987 fi
14988 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14989 rmdir conf$$.dir 2>/dev/null
14990
14991
14992 # as_fn_mkdir_p
14993 # -------------
14994 # Create "$as_dir" as a directory, including parents if necessary.
14995 as_fn_mkdir_p ()
14996 {
14997
14998   case $as_dir in #(
14999   -*) as_dir=./$as_dir;;
15000   esac
15001   test -d "$as_dir" || eval $as_mkdir_p || {
15002     as_dirs=
15003     while :; do
15004       case $as_dir in #(
15005       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15006       *) as_qdir=$as_dir;;
15007       esac
15008       as_dirs="'$as_qdir' $as_dirs"
15009       as_dir=`$as_dirname -- "$as_dir" ||
15010 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15011          X"$as_dir" : 'X\(//\)[^/]' \| \
15012          X"$as_dir" : 'X\(//\)$' \| \
15013          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15014 $as_echo X"$as_dir" |
15015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15016             s//\1/
15017             q
15018           }
15019           /^X\(\/\/\)[^/].*/{
15020             s//\1/
15021             q
15022           }
15023           /^X\(\/\/\)$/{
15024             s//\1/
15025             q
15026           }
15027           /^X\(\/\).*/{
15028             s//\1/
15029             q
15030           }
15031           s/.*/./; q'`
15032       test -d "$as_dir" && break
15033     done
15034     test -z "$as_dirs" || eval "mkdir $as_dirs"
15035   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15036
15037
15038 } # as_fn_mkdir_p
15039 if mkdir -p . 2>/dev/null; then
15040   as_mkdir_p='mkdir -p "$as_dir"'
15041 else
15042   test -d ./-p && rmdir ./-p
15043   as_mkdir_p=false
15044 fi
15045
15046 if test -x / >/dev/null 2>&1; then
15047   as_test_x='test -x'
15048 else
15049   if ls -dL / >/dev/null 2>&1; then
15050     as_ls_L_option=L
15051   else
15052     as_ls_L_option=
15053   fi
15054   as_test_x='
15055     eval sh -c '\''
15056       if test -d "$1"; then
15057         test -d "$1/.";
15058       else
15059         case $1 in #(
15060         -*)set "./$1";;
15061         esac;
15062         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15063         ???[sx]*):;;*)false;;esac;fi
15064     '\'' sh
15065   '
15066 fi
15067 as_executable_p=$as_test_x
15068
15069 # Sed expression to map a string onto a valid CPP name.
15070 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15071
15072 # Sed expression to map a string onto a valid variable name.
15073 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15074
15075
15076 exec 6>&1
15077 ## ----------------------------------- ##
15078 ## Main body of $CONFIG_STATUS script. ##
15079 ## ----------------------------------- ##
15080 _ASEOF
15081 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15082
15083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15084 # Save the log message, to keep $0 and so on meaningful, and to
15085 # report actual input values of CONFIG_FILES etc. instead of their
15086 # values after options handling.
15087 ac_log="
15088 This file was extended by package-unused $as_me version-unused, which was
15089 generated by GNU Autoconf 2.64.  Invocation command line was
15090
15091   CONFIG_FILES    = $CONFIG_FILES
15092   CONFIG_HEADERS  = $CONFIG_HEADERS
15093   CONFIG_LINKS    = $CONFIG_LINKS
15094   CONFIG_COMMANDS = $CONFIG_COMMANDS
15095   $ $0 $@
15096
15097 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15098 "
15099
15100 _ACEOF
15101
15102 case $ac_config_files in *"
15103 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15104 esac
15105
15106 case $ac_config_headers in *"
15107 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15108 esac
15109
15110
15111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15112 # Files that config.status was made for.
15113 config_files="$ac_config_files"
15114 config_headers="$ac_config_headers"
15115 config_commands="$ac_config_commands"
15116
15117 _ACEOF
15118
15119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15120 ac_cs_usage="\
15121 \`$as_me' instantiates files and other configuration actions
15122 from templates according to the current configuration.  Unless the files
15123 and actions are specified as TAGs, all are instantiated by default.
15124
15125 Usage: $0 [OPTION]... [TAG]...
15126
15127   -h, --help       print this help, then exit
15128   -V, --version    print version number and configuration settings, then exit
15129   -q, --quiet, --silent
15130                    do not print progress messages
15131   -d, --debug      don't remove temporary files
15132       --recheck    update $as_me by reconfiguring in the same conditions
15133       --file=FILE[:TEMPLATE]
15134                    instantiate the configuration file FILE
15135       --header=FILE[:TEMPLATE]
15136                    instantiate the configuration header FILE
15137
15138 Configuration files:
15139 $config_files
15140
15141 Configuration headers:
15142 $config_headers
15143
15144 Configuration commands:
15145 $config_commands
15146
15147 Report bugs to the package provider."
15148
15149 _ACEOF
15150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15151 ac_cs_version="\\
15152 package-unused config.status version-unused
15153 configured by $0, generated by GNU Autoconf 2.64,
15154   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15155
15156 Copyright (C) 2009 Free Software Foundation, Inc.
15157 This config.status script is free software; the Free Software Foundation
15158 gives unlimited permission to copy, distribute and modify it."
15159
15160 ac_pwd='$ac_pwd'
15161 srcdir='$srcdir'
15162 INSTALL='$INSTALL'
15163 MKDIR_P='$MKDIR_P'
15164 AWK='$AWK'
15165 test -n "\$AWK" || AWK=awk
15166 _ACEOF
15167
15168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15169 # The default lists apply if the user does not specify any file.
15170 ac_need_defaults=:
15171 while test $# != 0
15172 do
15173   case $1 in
15174   --*=*)
15175     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15176     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15177     ac_shift=:
15178     ;;
15179   *)
15180     ac_option=$1
15181     ac_optarg=$2
15182     ac_shift=shift
15183     ;;
15184   esac
15185
15186   case $ac_option in
15187   # Handling of the options.
15188   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15189     ac_cs_recheck=: ;;
15190   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15191     $as_echo "$ac_cs_version"; exit ;;
15192   --debug | --debu | --deb | --de | --d | -d )
15193     debug=: ;;
15194   --file | --fil | --fi | --f )
15195     $ac_shift
15196     case $ac_optarg in
15197     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15198     esac
15199     as_fn_append CONFIG_FILES " '$ac_optarg'"
15200     ac_need_defaults=false;;
15201   --header | --heade | --head | --hea )
15202     $ac_shift
15203     case $ac_optarg in
15204     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15205     esac
15206     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15207     ac_need_defaults=false;;
15208   --he | --h)
15209     # Conflict between --help and --header
15210     as_fn_error "ambiguous option: \`$1'
15211 Try \`$0 --help' for more information.";;
15212   --help | --hel | -h )
15213     $as_echo "$ac_cs_usage"; exit ;;
15214   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15215   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15216     ac_cs_silent=: ;;
15217
15218   # This is an error.
15219   -*) as_fn_error "unrecognized option: \`$1'
15220 Try \`$0 --help' for more information." ;;
15221
15222   *) as_fn_append ac_config_targets " $1"
15223      ac_need_defaults=false ;;
15224
15225   esac
15226   shift
15227 done
15228
15229 ac_configure_extra_args=
15230
15231 if $ac_cs_silent; then
15232   exec 6>/dev/null
15233   ac_configure_extra_args="$ac_configure_extra_args --silent"
15234 fi
15235
15236 _ACEOF
15237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15238 if \$ac_cs_recheck; then
15239   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15240   shift
15241   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15242   CONFIG_SHELL='$SHELL'
15243   export CONFIG_SHELL
15244   exec "\$@"
15245 fi
15246
15247 _ACEOF
15248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15249 exec 5>>config.log
15250 {
15251   echo
15252   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15253 ## Running $as_me. ##
15254 _ASBOX
15255   $as_echo "$ac_log"
15256 } >&5
15257
15258 _ACEOF
15259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15260 #
15261 # INIT-COMMANDS
15262 #
15263
15264 srcdir="$srcdir"
15265 host="$host"
15266 target="$target"
15267 with_multisubdir="$with_multisubdir"
15268 with_multisrctop="$with_multisrctop"
15269 with_target_subdir="$with_target_subdir"
15270 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15271 multi_basedir="$multi_basedir"
15272 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15273 CC="$CC"
15274 CXX="$CXX"
15275 GFORTRAN="$GFORTRAN"
15276 GCJ="$GCJ"
15277 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15278
15279
15280 # The HP-UX ksh and POSIX shell print the target directory to stdout
15281 # if CDPATH is set.
15282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15283
15284 sed_quote_subst='$sed_quote_subst'
15285 double_quote_subst='$double_quote_subst'
15286 delay_variable_subst='$delay_variable_subst'
15287 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15288 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15289 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15290 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15291 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15292 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15293 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15294 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15295 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15296 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15297 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15298 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15299 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15300 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15301 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15302 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15303 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15304 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15305 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15306 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15307 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15308 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15309 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15310 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15311 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15312 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15313 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15314 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15315 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15316 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15317 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15318 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15319 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15320 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15321 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15322 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15323 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15324 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15325 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15326 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15327 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15328 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15329 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15330 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15331 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15332 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15333 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15334 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15335 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"`'
15336 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15337 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15338 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15339 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15340 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15341 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15342 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15343 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15344 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15345 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15346 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15347 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15348 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15349 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15350 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15351 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15352 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15353 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15354 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15355 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15356 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15357 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15358 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15359 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15360 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15361 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15362 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15363 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15364 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15365 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15366 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15367 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15368 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15369 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15370 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15371 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15372 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15373 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15374 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15375 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15376 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15377 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15378 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15379 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15380 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15381 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15382 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15383 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15384 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15385 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15386 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15387 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15388 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15389 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15390 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15391 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15392 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15393 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15394 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15395 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15396 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15397 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15398 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15399 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15400 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15401 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15402 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15403 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15404 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15405 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15406 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15407 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15408 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15409 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15410 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15411 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15412 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15413 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15414 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15415 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15416 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15417 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15418 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15419 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15420 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15421 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15422 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15423 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15424 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15425 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15426 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15427 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15428 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15429 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15430 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15431 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15432 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15433 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15434 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15435 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15436 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15437 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15438 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15439 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15440 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15441 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15442 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15443 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15444 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15445 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15446 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15447 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15448 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15449 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15450
15451 LTCC='$LTCC'
15452 LTCFLAGS='$LTCFLAGS'
15453 compiler='$compiler_DEFAULT'
15454
15455 # A function that is used when there is no print builtin or printf.
15456 func_fallback_echo ()
15457 {
15458   eval 'cat <<_LTECHO_EOF
15459 \$1
15460 _LTECHO_EOF'
15461 }
15462
15463 # Quote evaled strings.
15464 for var in SED \
15465 GREP \
15466 EGREP \
15467 FGREP \
15468 SHELL \
15469 ECHO \
15470 LD \
15471 NM \
15472 LN_S \
15473 lt_SP2NL \
15474 lt_NL2SP \
15475 reload_flag \
15476 OBJDUMP \
15477 deplibs_check_method \
15478 file_magic_cmd \
15479 AR \
15480 AR_FLAGS \
15481 STRIP \
15482 RANLIB \
15483 CC \
15484 CFLAGS \
15485 compiler \
15486 lt_cv_sys_global_symbol_pipe \
15487 lt_cv_sys_global_symbol_to_cdecl \
15488 lt_cv_sys_global_symbol_to_c_name_address \
15489 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15490 lt_prog_compiler_no_builtin_flag \
15491 lt_prog_compiler_wl \
15492 lt_prog_compiler_pic \
15493 lt_prog_compiler_static \
15494 lt_cv_prog_compiler_c_o \
15495 need_locks \
15496 DSYMUTIL \
15497 NMEDIT \
15498 LIPO \
15499 OTOOL \
15500 OTOOL64 \
15501 shrext_cmds \
15502 export_dynamic_flag_spec \
15503 whole_archive_flag_spec \
15504 compiler_needs_object \
15505 with_gnu_ld \
15506 allow_undefined_flag \
15507 no_undefined_flag \
15508 hardcode_libdir_flag_spec \
15509 hardcode_libdir_flag_spec_ld \
15510 hardcode_libdir_separator \
15511 fix_srcfile_path \
15512 exclude_expsyms \
15513 include_expsyms \
15514 file_list_spec \
15515 variables_saved_for_relink \
15516 libname_spec \
15517 library_names_spec \
15518 soname_spec \
15519 install_override_mode \
15520 finish_eval \
15521 old_striplib \
15522 striplib \
15523 LD_GO \
15524 reload_flag_GO \
15525 compiler_GO \
15526 lt_prog_compiler_no_builtin_flag_GO \
15527 lt_prog_compiler_wl_GO \
15528 lt_prog_compiler_pic_GO \
15529 lt_prog_compiler_static_GO \
15530 lt_cv_prog_compiler_c_o_GO \
15531 export_dynamic_flag_spec_GO \
15532 whole_archive_flag_spec_GO \
15533 compiler_needs_object_GO \
15534 with_gnu_ld_GO \
15535 allow_undefined_flag_GO \
15536 no_undefined_flag_GO \
15537 hardcode_libdir_flag_spec_GO \
15538 hardcode_libdir_flag_spec_ld_GO \
15539 hardcode_libdir_separator_GO \
15540 fix_srcfile_path_GO \
15541 exclude_expsyms_GO \
15542 include_expsyms_GO \
15543 file_list_spec_GO; do
15544     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15545     *[\\\\\\\`\\"\\\$]*)
15546       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15547       ;;
15548     *)
15549       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15550       ;;
15551     esac
15552 done
15553
15554 # Double-quote double-evaled strings.
15555 for var in reload_cmds \
15556 old_postinstall_cmds \
15557 old_postuninstall_cmds \
15558 old_archive_cmds \
15559 extract_expsyms_cmds \
15560 old_archive_from_new_cmds \
15561 old_archive_from_expsyms_cmds \
15562 archive_cmds \
15563 archive_expsym_cmds \
15564 module_cmds \
15565 module_expsym_cmds \
15566 export_symbols_cmds \
15567 prelink_cmds \
15568 postinstall_cmds \
15569 postuninstall_cmds \
15570 finish_cmds \
15571 sys_lib_search_path_spec \
15572 sys_lib_dlsearch_path_spec \
15573 reload_cmds_GO \
15574 old_archive_cmds_GO \
15575 old_archive_from_new_cmds_GO \
15576 old_archive_from_expsyms_cmds_GO \
15577 archive_cmds_GO \
15578 archive_expsym_cmds_GO \
15579 module_cmds_GO \
15580 module_expsym_cmds_GO \
15581 export_symbols_cmds_GO \
15582 prelink_cmds_GO; do
15583     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15584     *[\\\\\\\`\\"\\\$]*)
15585       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15586       ;;
15587     *)
15588       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15589       ;;
15590     esac
15591 done
15592
15593 ac_aux_dir='$ac_aux_dir'
15594 xsi_shell='$xsi_shell'
15595 lt_shell_append='$lt_shell_append'
15596
15597 # See if we are running on zsh, and set the options which allow our
15598 # commands through without removal of \ escapes INIT.
15599 if test -n "\${ZSH_VERSION+set}" ; then
15600    setopt NO_GLOB_SUBST
15601 fi
15602
15603
15604     PACKAGE='$PACKAGE'
15605     VERSION='$VERSION'
15606     TIMESTAMP='$TIMESTAMP'
15607     RM='$RM'
15608     ofile='$ofile'
15609
15610
15611
15612
15613
15614
15615 # Variables needed in config.status (file generation) which aren't already
15616 # passed by autoconf.
15617 SUBDIRS="$SUBDIRS"
15618
15619
15620 _ACEOF
15621
15622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15623
15624 # Handling of arguments.
15625 for ac_config_target in $ac_config_targets
15626 do
15627   case $ac_config_target in
15628     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15629     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15630     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15631     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15632     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15633     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15634     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15635
15636   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15637   esac
15638 done
15639
15640
15641 # If the user did not use the arguments to specify the items to instantiate,
15642 # then the envvar interface is used.  Set only those that are not.
15643 # We use the long form for the default assignment because of an extremely
15644 # bizarre bug on SunOS 4.1.3.
15645 if $ac_need_defaults; then
15646   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15647   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15648   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15649 fi
15650
15651 # Have a temporary directory for convenience.  Make it in the build tree
15652 # simply because there is no reason against having it here, and in addition,
15653 # creating and moving files from /tmp can sometimes cause problems.
15654 # Hook for its removal unless debugging.
15655 # Note that there is a small window in which the directory will not be cleaned:
15656 # after its creation but before its name has been assigned to `$tmp'.
15657 $debug ||
15658 {
15659   tmp=
15660   trap 'exit_status=$?
15661   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15662 ' 0
15663   trap 'as_fn_exit 1' 1 2 13 15
15664 }
15665 # Create a (secure) tmp directory for tmp files.
15666
15667 {
15668   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15669   test -n "$tmp" && test -d "$tmp"
15670 }  ||
15671 {
15672   tmp=./conf$$-$RANDOM
15673   (umask 077 && mkdir "$tmp")
15674 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15675
15676 # Set up the scripts for CONFIG_FILES section.
15677 # No need to generate them if there are no CONFIG_FILES.
15678 # This happens for instance with `./config.status config.h'.
15679 if test -n "$CONFIG_FILES"; then
15680
15681
15682 ac_cr=`echo X | tr X '\015'`
15683 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15684 # But we know of no other shell where ac_cr would be empty at this
15685 # point, so we can use a bashism as a fallback.
15686 if test "x$ac_cr" = x; then
15687   eval ac_cr=\$\'\\r\'
15688 fi
15689 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15690 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15691   ac_cs_awk_cr='\r'
15692 else
15693   ac_cs_awk_cr=$ac_cr
15694 fi
15695
15696 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15697 _ACEOF
15698
15699
15700 {
15701   echo "cat >conf$$subs.awk <<_ACEOF" &&
15702   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15703   echo "_ACEOF"
15704 } >conf$$subs.sh ||
15705   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15706 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15707 ac_delim='%!_!# '
15708 for ac_last_try in false false false false false :; do
15709   . ./conf$$subs.sh ||
15710     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15711
15712   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15713   if test $ac_delim_n = $ac_delim_num; then
15714     break
15715   elif $ac_last_try; then
15716     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15717   else
15718     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15719   fi
15720 done
15721 rm -f conf$$subs.sh
15722
15723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15724 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15725 _ACEOF
15726 sed -n '
15727 h
15728 s/^/S["/; s/!.*/"]=/
15729 p
15730 g
15731 s/^[^!]*!//
15732 :repl
15733 t repl
15734 s/'"$ac_delim"'$//
15735 t delim
15736 :nl
15737 h
15738 s/\(.\{148\}\).*/\1/
15739 t more1
15740 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15741 p
15742 n
15743 b repl
15744 :more1
15745 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15746 p
15747 g
15748 s/.\{148\}//
15749 t nl
15750 :delim
15751 h
15752 s/\(.\{148\}\).*/\1/
15753 t more2
15754 s/["\\]/\\&/g; s/^/"/; s/$/"/
15755 p
15756 b
15757 :more2
15758 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15759 p
15760 g
15761 s/.\{148\}//
15762 t delim
15763 ' <conf$$subs.awk | sed '
15764 /^[^""]/{
15765   N
15766   s/\n//
15767 }
15768 ' >>$CONFIG_STATUS || ac_write_fail=1
15769 rm -f conf$$subs.awk
15770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15771 _ACAWK
15772 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15773   for (key in S) S_is_set[key] = 1
15774   FS = "\a"
15775
15776 }
15777 {
15778   line = $ 0
15779   nfields = split(line, field, "@")
15780   substed = 0
15781   len = length(field[1])
15782   for (i = 2; i < nfields; i++) {
15783     key = field[i]
15784     keylen = length(key)
15785     if (S_is_set[key]) {
15786       value = S[key]
15787       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15788       len += length(value) + length(field[++i])
15789       substed = 1
15790     } else
15791       len += 1 + keylen
15792   }
15793
15794   print line
15795 }
15796
15797 _ACAWK
15798 _ACEOF
15799 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15800 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15801   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15802 else
15803   cat
15804 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15805   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15806 _ACEOF
15807
15808 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15809 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15810 # trailing colons and then remove the whole line if VPATH becomes empty
15811 # (actually we leave an empty line to preserve line numbers).
15812 if test "x$srcdir" = x.; then
15813   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15814 s/:*\$(srcdir):*/:/
15815 s/:*\${srcdir}:*/:/
15816 s/:*@srcdir@:*/:/
15817 s/^\([^=]*=[     ]*\):*/\1/
15818 s/:*$//
15819 s/^[^=]*=[       ]*$//
15820 }'
15821 fi
15822
15823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15824 fi # test -n "$CONFIG_FILES"
15825
15826 # Set up the scripts for CONFIG_HEADERS section.
15827 # No need to generate them if there are no CONFIG_HEADERS.
15828 # This happens for instance with `./config.status Makefile'.
15829 if test -n "$CONFIG_HEADERS"; then
15830 cat >"$tmp/defines.awk" <<\_ACAWK ||
15831 BEGIN {
15832 _ACEOF
15833
15834 # Transform confdefs.h into an awk script `defines.awk', embedded as
15835 # here-document in config.status, that substitutes the proper values into
15836 # config.h.in to produce config.h.
15837
15838 # Create a delimiter string that does not exist in confdefs.h, to ease
15839 # handling of long lines.
15840 ac_delim='%!_!# '
15841 for ac_last_try in false false :; do
15842   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15843   if test -z "$ac_t"; then
15844     break
15845   elif $ac_last_try; then
15846     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15847   else
15848     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15849   fi
15850 done
15851
15852 # For the awk script, D is an array of macro values keyed by name,
15853 # likewise P contains macro parameters if any.  Preserve backslash
15854 # newline sequences.
15855
15856 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15857 sed -n '
15858 s/.\{148\}/&'"$ac_delim"'/g
15859 t rset
15860 :rset
15861 s/^[     ]*#[    ]*define[       ][      ]*/ /
15862 t def
15863 d
15864 :def
15865 s/\\$//
15866 t bsnl
15867 s/["\\]/\\&/g
15868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15869 D["\1"]=" \3"/p
15870 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15871 d
15872 :bsnl
15873 s/["\\]/\\&/g
15874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15875 D["\1"]=" \3\\\\\\n"\\/p
15876 t cont
15877 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15878 t cont
15879 d
15880 :cont
15881 n
15882 s/.\{148\}/&'"$ac_delim"'/g
15883 t clear
15884 :clear
15885 s/\\$//
15886 t bsnlc
15887 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15888 d
15889 :bsnlc
15890 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15891 b cont
15892 ' <confdefs.h | sed '
15893 s/'"$ac_delim"'/"\\\
15894 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15895
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897   for (key in D) D_is_set[key] = 1
15898   FS = "\a"
15899 }
15900 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15901   line = \$ 0
15902   split(line, arg, " ")
15903   if (arg[1] == "#") {
15904     defundef = arg[2]
15905     mac1 = arg[3]
15906   } else {
15907     defundef = substr(arg[1], 2)
15908     mac1 = arg[2]
15909   }
15910   split(mac1, mac2, "(") #)
15911   macro = mac2[1]
15912   prefix = substr(line, 1, index(line, defundef) - 1)
15913   if (D_is_set[macro]) {
15914     # Preserve the white space surrounding the "#".
15915     print prefix "define", macro P[macro] D[macro]
15916     next
15917   } else {
15918     # Replace #undef with comments.  This is necessary, for example,
15919     # in the case of _POSIX_SOURCE, which is predefined and required
15920     # on some systems where configure will not decide to define it.
15921     if (defundef == "undef") {
15922       print "/*", prefix defundef, macro, "*/"
15923       next
15924     }
15925   }
15926 }
15927 { print }
15928 _ACAWK
15929 _ACEOF
15930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15931   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15932 fi # test -n "$CONFIG_HEADERS"
15933
15934
15935 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15936 shift
15937 for ac_tag
15938 do
15939   case $ac_tag in
15940   :[FHLC]) ac_mode=$ac_tag; continue;;
15941   esac
15942   case $ac_mode$ac_tag in
15943   :[FHL]*:*);;
15944   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15945   :[FH]-) ac_tag=-:-;;
15946   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15947   esac
15948   ac_save_IFS=$IFS
15949   IFS=:
15950   set x $ac_tag
15951   IFS=$ac_save_IFS
15952   shift
15953   ac_file=$1
15954   shift
15955
15956   case $ac_mode in
15957   :L) ac_source=$1;;
15958   :[FH])
15959     ac_file_inputs=
15960     for ac_f
15961     do
15962       case $ac_f in
15963       -) ac_f="$tmp/stdin";;
15964       *) # Look for the file first in the build tree, then in the source tree
15965          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15966          # because $ac_f cannot contain `:'.
15967          test -f "$ac_f" ||
15968            case $ac_f in
15969            [\\/$]*) false;;
15970            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15971            esac ||
15972            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15973       esac
15974       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15975       as_fn_append ac_file_inputs " '$ac_f'"
15976     done
15977
15978     # Let's still pretend it is `configure' which instantiates (i.e., don't
15979     # use $as_me), people would be surprised to read:
15980     #    /* config.h.  Generated by config.status.  */
15981     configure_input='Generated from '`
15982           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15983         `' by configure.'
15984     if test x"$ac_file" != x-; then
15985       configure_input="$ac_file.  $configure_input"
15986       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15987 $as_echo "$as_me: creating $ac_file" >&6;}
15988     fi
15989     # Neutralize special characters interpreted by sed in replacement strings.
15990     case $configure_input in #(
15991     *\&* | *\|* | *\\* )
15992        ac_sed_conf_input=`$as_echo "$configure_input" |
15993        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15994     *) ac_sed_conf_input=$configure_input;;
15995     esac
15996
15997     case $ac_tag in
15998     *:-:* | *:-) cat >"$tmp/stdin" \
15999       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16000     esac
16001     ;;
16002   esac
16003
16004   ac_dir=`$as_dirname -- "$ac_file" ||
16005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16006          X"$ac_file" : 'X\(//\)[^/]' \| \
16007          X"$ac_file" : 'X\(//\)$' \| \
16008          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16009 $as_echo X"$ac_file" |
16010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16011             s//\1/
16012             q
16013           }
16014           /^X\(\/\/\)[^/].*/{
16015             s//\1/
16016             q
16017           }
16018           /^X\(\/\/\)$/{
16019             s//\1/
16020             q
16021           }
16022           /^X\(\/\).*/{
16023             s//\1/
16024             q
16025           }
16026           s/.*/./; q'`
16027   as_dir="$ac_dir"; as_fn_mkdir_p
16028   ac_builddir=.
16029
16030 case "$ac_dir" in
16031 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16032 *)
16033   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16034   # A ".." for each directory in $ac_dir_suffix.
16035   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16036   case $ac_top_builddir_sub in
16037   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16038   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16039   esac ;;
16040 esac
16041 ac_abs_top_builddir=$ac_pwd
16042 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16043 # for backward compatibility:
16044 ac_top_builddir=$ac_top_build_prefix
16045
16046 case $srcdir in
16047   .)  # We are building in place.
16048     ac_srcdir=.
16049     ac_top_srcdir=$ac_top_builddir_sub
16050     ac_abs_top_srcdir=$ac_pwd ;;
16051   [\\/]* | ?:[\\/]* )  # Absolute name.
16052     ac_srcdir=$srcdir$ac_dir_suffix;
16053     ac_top_srcdir=$srcdir
16054     ac_abs_top_srcdir=$srcdir ;;
16055   *) # Relative name.
16056     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16057     ac_top_srcdir=$ac_top_build_prefix$srcdir
16058     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16059 esac
16060 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16061
16062
16063   case $ac_mode in
16064   :F)
16065   #
16066   # CONFIG_FILE
16067   #
16068
16069   case $INSTALL in
16070   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16071   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16072   esac
16073   ac_MKDIR_P=$MKDIR_P
16074   case $MKDIR_P in
16075   [\\/$]* | ?:[\\/]* ) ;;
16076   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16077   esac
16078 _ACEOF
16079
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 # If the template does not know about datarootdir, expand it.
16082 # FIXME: This hack should be removed a few years after 2.60.
16083 ac_datarootdir_hack=; ac_datarootdir_seen=
16084 ac_sed_dataroot='
16085 /datarootdir/ {
16086   p
16087   q
16088 }
16089 /@datadir@/p
16090 /@docdir@/p
16091 /@infodir@/p
16092 /@localedir@/p
16093 /@mandir@/p'
16094 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16095 *datarootdir*) ac_datarootdir_seen=yes;;
16096 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16097   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16098 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16099 _ACEOF
16100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16101   ac_datarootdir_hack='
16102   s&@datadir@&$datadir&g
16103   s&@docdir@&$docdir&g
16104   s&@infodir@&$infodir&g
16105   s&@localedir@&$localedir&g
16106   s&@mandir@&$mandir&g
16107   s&\\\${datarootdir}&$datarootdir&g' ;;
16108 esac
16109 _ACEOF
16110
16111 # Neutralize VPATH when `$srcdir' = `.'.
16112 # Shell code in configure.ac might set extrasub.
16113 # FIXME: do we really want to maintain this feature?
16114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16115 ac_sed_extra="$ac_vpsub
16116 $extrasub
16117 _ACEOF
16118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16119 :t
16120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16121 s|@configure_input@|$ac_sed_conf_input|;t t
16122 s&@top_builddir@&$ac_top_builddir_sub&;t t
16123 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16124 s&@srcdir@&$ac_srcdir&;t t
16125 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16126 s&@top_srcdir@&$ac_top_srcdir&;t t
16127 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16128 s&@builddir@&$ac_builddir&;t t
16129 s&@abs_builddir@&$ac_abs_builddir&;t t
16130 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16131 s&@INSTALL@&$ac_INSTALL&;t t
16132 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16133 $ac_datarootdir_hack
16134 "
16135 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16136   || as_fn_error "could not create $ac_file" "$LINENO" 5
16137
16138 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16139   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16140   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16141   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16142 which seems to be undefined.  Please make sure it is defined." >&5
16143 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16144 which seems to be undefined.  Please make sure it is defined." >&2;}
16145
16146   rm -f "$tmp/stdin"
16147   case $ac_file in
16148   -) cat "$tmp/out" && rm -f "$tmp/out";;
16149   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16150   esac \
16151   || as_fn_error "could not create $ac_file" "$LINENO" 5
16152  ;;
16153   :H)
16154   #
16155   # CONFIG_HEADER
16156   #
16157   if test x"$ac_file" != x-; then
16158     {
16159       $as_echo "/* $configure_input  */" \
16160       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16161     } >"$tmp/config.h" \
16162       || as_fn_error "could not create $ac_file" "$LINENO" 5
16163     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16164       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16165 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16166     else
16167       rm -f "$ac_file"
16168       mv "$tmp/config.h" "$ac_file" \
16169         || as_fn_error "could not create $ac_file" "$LINENO" 5
16170     fi
16171   else
16172     $as_echo "/* $configure_input  */" \
16173       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16174       || as_fn_error "could not create -" "$LINENO" 5
16175   fi
16176 # Compute "$ac_file"'s index in $config_headers.
16177 _am_arg="$ac_file"
16178 _am_stamp_count=1
16179 for _am_header in $config_headers :; do
16180   case $_am_header in
16181     $_am_arg | $_am_arg:* )
16182       break ;;
16183     * )
16184       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16185   esac
16186 done
16187 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16188 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16189          X"$_am_arg" : 'X\(//\)[^/]' \| \
16190          X"$_am_arg" : 'X\(//\)$' \| \
16191          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16192 $as_echo X"$_am_arg" |
16193     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16194             s//\1/
16195             q
16196           }
16197           /^X\(\/\/\)[^/].*/{
16198             s//\1/
16199             q
16200           }
16201           /^X\(\/\/\)$/{
16202             s//\1/
16203             q
16204           }
16205           /^X\(\/\).*/{
16206             s//\1/
16207             q
16208           }
16209           s/.*/./; q'`/stamp-h$_am_stamp_count
16210  ;;
16211
16212   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16213 $as_echo "$as_me: executing $ac_file commands" >&6;}
16214  ;;
16215   esac
16216
16217
16218   case $ac_file$ac_mode in
16219     "default-1":C)
16220 # Only add multilib support code if we just rebuilt the top-level
16221 # Makefile.
16222 case " $CONFIG_FILES " in
16223  *" Makefile "*)
16224    ac_file=Makefile . ${multi_basedir}/config-ml.in
16225    ;;
16226 esac ;;
16227     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16228   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16229   # are listed without --file.  Let's play safe and only enable the eval
16230   # if we detect the quoting.
16231   case $CONFIG_FILES in
16232   *\'*) eval set x "$CONFIG_FILES" ;;
16233   *)   set x $CONFIG_FILES ;;
16234   esac
16235   shift
16236   for mf
16237   do
16238     # Strip MF so we end up with the name of the file.
16239     mf=`echo "$mf" | sed -e 's/:.*$//'`
16240     # Check whether this is an Automake generated Makefile or not.
16241     # We used to match only the files named `Makefile.in', but
16242     # some people rename them; so instead we look at the file content.
16243     # Grep'ing the first line is not enough: some people post-process
16244     # each Makefile.in and add a new line on top of each file to say so.
16245     # Grep'ing the whole file is not good either: AIX grep has a line
16246     # limit of 2048, but all sed's we know have understand at least 4000.
16247     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16248       dirpart=`$as_dirname -- "$mf" ||
16249 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16250          X"$mf" : 'X\(//\)[^/]' \| \
16251          X"$mf" : 'X\(//\)$' \| \
16252          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16253 $as_echo X"$mf" |
16254     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16255             s//\1/
16256             q
16257           }
16258           /^X\(\/\/\)[^/].*/{
16259             s//\1/
16260             q
16261           }
16262           /^X\(\/\/\)$/{
16263             s//\1/
16264             q
16265           }
16266           /^X\(\/\).*/{
16267             s//\1/
16268             q
16269           }
16270           s/.*/./; q'`
16271     else
16272       continue
16273     fi
16274     # Extract the definition of DEPDIR, am__include, and am__quote
16275     # from the Makefile without running `make'.
16276     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16277     test -z "$DEPDIR" && continue
16278     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16279     test -z "am__include" && continue
16280     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16281     # When using ansi2knr, U may be empty or an underscore; expand it
16282     U=`sed -n 's/^U = //p' < "$mf"`
16283     # Find all dependency output files, they are included files with
16284     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16285     # simplest approach to changing $(DEPDIR) to its actual value in the
16286     # expansion.
16287     for file in `sed -n "
16288       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16289          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16290       # Make sure the directory exists.
16291       test -f "$dirpart/$file" && continue
16292       fdir=`$as_dirname -- "$file" ||
16293 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16294          X"$file" : 'X\(//\)[^/]' \| \
16295          X"$file" : 'X\(//\)$' \| \
16296          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16297 $as_echo X"$file" |
16298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16299             s//\1/
16300             q
16301           }
16302           /^X\(\/\/\)[^/].*/{
16303             s//\1/
16304             q
16305           }
16306           /^X\(\/\/\)$/{
16307             s//\1/
16308             q
16309           }
16310           /^X\(\/\).*/{
16311             s//\1/
16312             q
16313           }
16314           s/.*/./; q'`
16315       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16316       # echo "creating $dirpart/$file"
16317       echo '# dummy' > "$dirpart/$file"
16318     done
16319   done
16320 }
16321  ;;
16322     "libtool":C)
16323
16324     # See if we are running on zsh, and set the options which allow our
16325     # commands through without removal of \ escapes.
16326     if test -n "${ZSH_VERSION+set}" ; then
16327       setopt NO_GLOB_SUBST
16328     fi
16329
16330     cfgfile="${ofile}T"
16331     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16332     $RM "$cfgfile"
16333
16334     cat <<_LT_EOF >> "$cfgfile"
16335 #! $SHELL
16336
16337 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16338 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16339 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16340 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16341 #
16342 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16343 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16344 #   Written by Gordon Matzigkeit, 1996
16345 #
16346 #   This file is part of GNU Libtool.
16347 #
16348 # GNU Libtool is free software; you can redistribute it and/or
16349 # modify it under the terms of the GNU General Public License as
16350 # published by the Free Software Foundation; either version 2 of
16351 # the License, or (at your option) any later version.
16352 #
16353 # As a special exception to the GNU General Public License,
16354 # if you distribute this file as part of a program or library that
16355 # is built using GNU Libtool, you may include this file under the
16356 # same distribution terms that you use for the rest of that program.
16357 #
16358 # GNU Libtool is distributed in the hope that it will be useful,
16359 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16360 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16361 # GNU General Public License for more details.
16362 #
16363 # You should have received a copy of the GNU General Public License
16364 # along with GNU Libtool; see the file COPYING.  If not, a copy
16365 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16366 # obtained by writing to the Free Software Foundation, Inc.,
16367 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16368
16369
16370 # The names of the tagged configurations supported by this script.
16371 available_tags="GO "
16372
16373 # ### BEGIN LIBTOOL CONFIG
16374
16375 # A sed program that does not truncate output.
16376 SED=$lt_SED
16377
16378 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16379 Xsed="\$SED -e 1s/^X//"
16380
16381 # A grep program that handles long lines.
16382 GREP=$lt_GREP
16383
16384 # An ERE matcher.
16385 EGREP=$lt_EGREP
16386
16387 # A literal string matcher.
16388 FGREP=$lt_FGREP
16389
16390 # Shell to use when invoking shell scripts.
16391 SHELL=$lt_SHELL
16392
16393 # An echo program that protects backslashes.
16394 ECHO=$lt_ECHO
16395
16396 # Which release of libtool.m4 was used?
16397 macro_version=$macro_version
16398 macro_revision=$macro_revision
16399
16400 # Whether or not to build shared libraries.
16401 build_libtool_libs=$enable_shared
16402
16403 # Whether or not to build static libraries.
16404 build_old_libs=$enable_static
16405
16406 # What type of objects to build.
16407 pic_mode=$pic_mode
16408
16409 # Whether or not to optimize for fast installation.
16410 fast_install=$enable_fast_install
16411
16412 # The host system.
16413 host_alias=$host_alias
16414 host=$host
16415 host_os=$host_os
16416
16417 # The build system.
16418 build_alias=$build_alias
16419 build=$build
16420 build_os=$build_os
16421
16422 # A BSD- or MS-compatible name lister.
16423 NM=$lt_NM
16424
16425 # Whether we need soft or hard links.
16426 LN_S=$lt_LN_S
16427
16428 # What is the maximum length of a command?
16429 max_cmd_len=$max_cmd_len
16430
16431 # Object file suffix (normally "o").
16432 objext=$ac_objext
16433
16434 # Executable file suffix (normally "").
16435 exeext=$exeext
16436
16437 # whether the shell understands "unset".
16438 lt_unset=$lt_unset
16439
16440 # turn spaces into newlines.
16441 SP2NL=$lt_lt_SP2NL
16442
16443 # turn newlines into spaces.
16444 NL2SP=$lt_lt_NL2SP
16445
16446 # An object symbol dumper.
16447 OBJDUMP=$lt_OBJDUMP
16448
16449 # Method to check whether dependent libraries are shared objects.
16450 deplibs_check_method=$lt_deplibs_check_method
16451
16452 # Command to use when deplibs_check_method == "file_magic".
16453 file_magic_cmd=$lt_file_magic_cmd
16454
16455 # The archiver.
16456 AR=$lt_AR
16457 AR_FLAGS=$lt_AR_FLAGS
16458
16459 # A symbol stripping program.
16460 STRIP=$lt_STRIP
16461
16462 # Commands used to install an old-style archive.
16463 RANLIB=$lt_RANLIB
16464 old_postinstall_cmds=$lt_old_postinstall_cmds
16465 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16466
16467 # Whether to use a lock for old archive extraction.
16468 lock_old_archive_extraction=$lock_old_archive_extraction
16469
16470 # A C compiler.
16471 LTCC=$lt_CC
16472
16473 # LTCC compiler flags.
16474 LTCFLAGS=$lt_CFLAGS
16475
16476 # Take the output of nm and produce a listing of raw symbols and C names.
16477 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16478
16479 # Transform the output of nm in a proper C declaration.
16480 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16481
16482 # Transform the output of nm in a C name address pair.
16483 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16484
16485 # Transform the output of nm in a C name address pair when lib prefix is needed.
16486 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16487
16488 # The name of the directory that contains temporary libtool files.
16489 objdir=$objdir
16490
16491 # Used to examine libraries when file_magic_cmd begins with "file".
16492 MAGIC_CMD=$MAGIC_CMD
16493
16494 # Must we lock files when doing compilation?
16495 need_locks=$lt_need_locks
16496
16497 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16498 DSYMUTIL=$lt_DSYMUTIL
16499
16500 # Tool to change global to local symbols on Mac OS X.
16501 NMEDIT=$lt_NMEDIT
16502
16503 # Tool to manipulate fat objects and archives on Mac OS X.
16504 LIPO=$lt_LIPO
16505
16506 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16507 OTOOL=$lt_OTOOL
16508
16509 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16510 OTOOL64=$lt_OTOOL64
16511
16512 # Old archive suffix (normally "a").
16513 libext=$libext
16514
16515 # Shared library suffix (normally ".so").
16516 shrext_cmds=$lt_shrext_cmds
16517
16518 # The commands to extract the exported symbol list from a shared archive.
16519 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16520
16521 # Variables whose values should be saved in libtool wrapper scripts and
16522 # restored at link time.
16523 variables_saved_for_relink=$lt_variables_saved_for_relink
16524
16525 # Do we need the "lib" prefix for modules?
16526 need_lib_prefix=$need_lib_prefix
16527
16528 # Do we need a version for libraries?
16529 need_version=$need_version
16530
16531 # Library versioning type.
16532 version_type=$version_type
16533
16534 # Shared library runtime path variable.
16535 runpath_var=$runpath_var
16536
16537 # Shared library path variable.
16538 shlibpath_var=$shlibpath_var
16539
16540 # Is shlibpath searched before the hard-coded library search path?
16541 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16542
16543 # Format of library name prefix.
16544 libname_spec=$lt_libname_spec
16545
16546 # List of archive names.  First name is the real one, the rest are links.
16547 # The last name is the one that the linker finds with -lNAME
16548 library_names_spec=$lt_library_names_spec
16549
16550 # The coded name of the library, if different from the real name.
16551 soname_spec=$lt_soname_spec
16552
16553 # Permission mode override for installation of shared libraries.
16554 install_override_mode=$lt_install_override_mode
16555
16556 # Command to use after installation of a shared archive.
16557 postinstall_cmds=$lt_postinstall_cmds
16558
16559 # Command to use after uninstallation of a shared archive.
16560 postuninstall_cmds=$lt_postuninstall_cmds
16561
16562 # Commands used to finish a libtool library installation in a directory.
16563 finish_cmds=$lt_finish_cmds
16564
16565 # As "finish_cmds", except a single script fragment to be evaled but
16566 # not shown.
16567 finish_eval=$lt_finish_eval
16568
16569 # Whether we should hardcode library paths into libraries.
16570 hardcode_into_libs=$hardcode_into_libs
16571
16572 # Compile-time system search path for libraries.
16573 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16574
16575 # Run-time system search path for libraries.
16576 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16577
16578 # Whether dlopen is supported.
16579 dlopen_support=$enable_dlopen
16580
16581 # Whether dlopen of programs is supported.
16582 dlopen_self=$enable_dlopen_self
16583
16584 # Whether dlopen of statically linked programs is supported.
16585 dlopen_self_static=$enable_dlopen_self_static
16586
16587 # Commands to strip libraries.
16588 old_striplib=$lt_old_striplib
16589 striplib=$lt_striplib
16590
16591
16592 # The linker used to build libraries.
16593 LD=$lt_LD
16594
16595 # How to create reloadable object files.
16596 reload_flag=$lt_reload_flag
16597 reload_cmds=$lt_reload_cmds
16598
16599 # Commands used to build an old-style archive.
16600 old_archive_cmds=$lt_old_archive_cmds
16601
16602 # A language specific compiler.
16603 CC=$lt_compiler
16604
16605 # Is the compiler the GNU compiler?
16606 with_gcc=$GCC
16607
16608 # Compiler flag to turn off builtin functions.
16609 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16610
16611 # How to pass a linker flag through the compiler.
16612 wl=$lt_lt_prog_compiler_wl
16613
16614 # Additional compiler flags for building library objects.
16615 pic_flag=$lt_lt_prog_compiler_pic
16616
16617 # Compiler flag to prevent dynamic linking.
16618 link_static_flag=$lt_lt_prog_compiler_static
16619
16620 # Does compiler simultaneously support -c and -o options?
16621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16622
16623 # Whether or not to add -lc for building shared libraries.
16624 build_libtool_need_lc=$archive_cmds_need_lc
16625
16626 # Whether or not to disallow shared libs when runtime libs are static.
16627 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16628
16629 # Compiler flag to allow reflexive dlopens.
16630 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16631
16632 # Compiler flag to generate shared objects directly from archives.
16633 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16634
16635 # Whether the compiler copes with passing no objects directly.
16636 compiler_needs_object=$lt_compiler_needs_object
16637
16638 # Create an old-style archive from a shared archive.
16639 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16640
16641 # Create a temporary old-style archive to link instead of a shared archive.
16642 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16643
16644 # Commands used to build a shared archive.
16645 archive_cmds=$lt_archive_cmds
16646 archive_expsym_cmds=$lt_archive_expsym_cmds
16647
16648 # Commands used to build a loadable module if different from building
16649 # a shared archive.
16650 module_cmds=$lt_module_cmds
16651 module_expsym_cmds=$lt_module_expsym_cmds
16652
16653 # Whether we are building with GNU ld or not.
16654 with_gnu_ld=$lt_with_gnu_ld
16655
16656 # Flag that allows shared libraries with undefined symbols to be built.
16657 allow_undefined_flag=$lt_allow_undefined_flag
16658
16659 # Flag that enforces no undefined symbols.
16660 no_undefined_flag=$lt_no_undefined_flag
16661
16662 # Flag to hardcode \$libdir into a binary during linking.
16663 # This must work even if \$libdir does not exist
16664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16665
16666 # If ld is used when linking, flag to hardcode \$libdir into a binary
16667 # during linking.  This must work even if \$libdir does not exist.
16668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16669
16670 # Whether we need a single "-rpath" flag with a separated argument.
16671 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16672
16673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16674 # DIR into the resulting binary.
16675 hardcode_direct=$hardcode_direct
16676
16677 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16678 # DIR into the resulting binary and the resulting library dependency is
16679 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16680 # library is relocated.
16681 hardcode_direct_absolute=$hardcode_direct_absolute
16682
16683 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16684 # into the resulting binary.
16685 hardcode_minus_L=$hardcode_minus_L
16686
16687 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16688 # into the resulting binary.
16689 hardcode_shlibpath_var=$hardcode_shlibpath_var
16690
16691 # Set to "yes" if building a shared library automatically hardcodes DIR
16692 # into the library and all subsequent libraries and executables linked
16693 # against it.
16694 hardcode_automatic=$hardcode_automatic
16695
16696 # Set to yes if linker adds runtime paths of dependent libraries
16697 # to runtime path list.
16698 inherit_rpath=$inherit_rpath
16699
16700 # Whether libtool must link a program against all its dependency libraries.
16701 link_all_deplibs=$link_all_deplibs
16702
16703 # Fix the shell variable \$srcfile for the compiler.
16704 fix_srcfile_path=$lt_fix_srcfile_path
16705
16706 # Set to "yes" if exported symbols are required.
16707 always_export_symbols=$always_export_symbols
16708
16709 # The commands to list exported symbols.
16710 export_symbols_cmds=$lt_export_symbols_cmds
16711
16712 # Symbols that should not be listed in the preloaded symbols.
16713 exclude_expsyms=$lt_exclude_expsyms
16714
16715 # Symbols that must always be exported.
16716 include_expsyms=$lt_include_expsyms
16717
16718 # Commands necessary for linking programs (against libraries) with templates.
16719 prelink_cmds=$lt_prelink_cmds
16720
16721 # Specify filename containing input files.
16722 file_list_spec=$lt_file_list_spec
16723
16724 # How to hardcode a shared library path into an executable.
16725 hardcode_action=$hardcode_action
16726
16727 # ### END LIBTOOL CONFIG
16728
16729 _LT_EOF
16730
16731   case $host_os in
16732   aix3*)
16733     cat <<\_LT_EOF >> "$cfgfile"
16734 # AIX sometimes has problems with the GCC collect2 program.  For some
16735 # reason, if we set the COLLECT_NAMES environment variable, the problems
16736 # vanish in a puff of smoke.
16737 if test "X${COLLECT_NAMES+set}" != Xset; then
16738   COLLECT_NAMES=
16739   export COLLECT_NAMES
16740 fi
16741 _LT_EOF
16742     ;;
16743   esac
16744
16745
16746 ltmain="$ac_aux_dir/ltmain.sh"
16747
16748
16749   # We use sed instead of cat because bash on DJGPP gets confused if
16750   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16751   # text mode, it properly converts lines to CR/LF.  This bash problem
16752   # is reportedly fixed, but why not run on old versions too?
16753   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16754     || (rm -f "$cfgfile"; exit 1)
16755
16756   case $xsi_shell in
16757   yes)
16758     cat << \_LT_EOF >> "$cfgfile"
16759
16760 # func_dirname file append nondir_replacement
16761 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16762 # otherwise set result to NONDIR_REPLACEMENT.
16763 func_dirname ()
16764 {
16765   case ${1} in
16766     */*) func_dirname_result="${1%/*}${2}" ;;
16767     *  ) func_dirname_result="${3}" ;;
16768   esac
16769 }
16770
16771 # func_basename file
16772 func_basename ()
16773 {
16774   func_basename_result="${1##*/}"
16775 }
16776
16777 # func_dirname_and_basename file append nondir_replacement
16778 # perform func_basename and func_dirname in a single function
16779 # call:
16780 #   dirname:  Compute the dirname of FILE.  If nonempty,
16781 #             add APPEND to the result, otherwise set result
16782 #             to NONDIR_REPLACEMENT.
16783 #             value returned in "$func_dirname_result"
16784 #   basename: Compute filename of FILE.
16785 #             value retuned in "$func_basename_result"
16786 # Implementation must be kept synchronized with func_dirname
16787 # and func_basename. For efficiency, we do not delegate to
16788 # those functions but instead duplicate the functionality here.
16789 func_dirname_and_basename ()
16790 {
16791   case ${1} in
16792     */*) func_dirname_result="${1%/*}${2}" ;;
16793     *  ) func_dirname_result="${3}" ;;
16794   esac
16795   func_basename_result="${1##*/}"
16796 }
16797
16798 # func_stripname prefix suffix name
16799 # strip PREFIX and SUFFIX off of NAME.
16800 # PREFIX and SUFFIX must not contain globbing or regex special
16801 # characters, hashes, percent signs, but SUFFIX may contain a leading
16802 # dot (in which case that matches only a dot).
16803 func_stripname ()
16804 {
16805   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16806   # positional parameters, so assign one to ordinary parameter first.
16807   func_stripname_result=${3}
16808   func_stripname_result=${func_stripname_result#"${1}"}
16809   func_stripname_result=${func_stripname_result%"${2}"}
16810 }
16811
16812 # func_opt_split
16813 func_opt_split ()
16814 {
16815   func_opt_split_opt=${1%%=*}
16816   func_opt_split_arg=${1#*=}
16817 }
16818
16819 # func_lo2o object
16820 func_lo2o ()
16821 {
16822   case ${1} in
16823     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16824     *)    func_lo2o_result=${1} ;;
16825   esac
16826 }
16827
16828 # func_xform libobj-or-source
16829 func_xform ()
16830 {
16831   func_xform_result=${1%.*}.lo
16832 }
16833
16834 # func_arith arithmetic-term...
16835 func_arith ()
16836 {
16837   func_arith_result=$(( $* ))
16838 }
16839
16840 # func_len string
16841 # STRING may not start with a hyphen.
16842 func_len ()
16843 {
16844   func_len_result=${#1}
16845 }
16846
16847 _LT_EOF
16848     ;;
16849   *) # Bourne compatible functions.
16850     cat << \_LT_EOF >> "$cfgfile"
16851
16852 # func_dirname file append nondir_replacement
16853 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16854 # otherwise set result to NONDIR_REPLACEMENT.
16855 func_dirname ()
16856 {
16857   # Extract subdirectory from the argument.
16858   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16859   if test "X$func_dirname_result" = "X${1}"; then
16860     func_dirname_result="${3}"
16861   else
16862     func_dirname_result="$func_dirname_result${2}"
16863   fi
16864 }
16865
16866 # func_basename file
16867 func_basename ()
16868 {
16869   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16870 }
16871
16872
16873 # func_stripname prefix suffix name
16874 # strip PREFIX and SUFFIX off of NAME.
16875 # PREFIX and SUFFIX must not contain globbing or regex special
16876 # characters, hashes, percent signs, but SUFFIX may contain a leading
16877 # dot (in which case that matches only a dot).
16878 # func_strip_suffix prefix name
16879 func_stripname ()
16880 {
16881   case ${2} in
16882     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16883     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16884   esac
16885 }
16886
16887 # sed scripts:
16888 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16889 my_sed_long_arg='1s/^-[^=]*=//'
16890
16891 # func_opt_split
16892 func_opt_split ()
16893 {
16894   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16895   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16896 }
16897
16898 # func_lo2o object
16899 func_lo2o ()
16900 {
16901   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16902 }
16903
16904 # func_xform libobj-or-source
16905 func_xform ()
16906 {
16907   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16908 }
16909
16910 # func_arith arithmetic-term...
16911 func_arith ()
16912 {
16913   func_arith_result=`expr "$@"`
16914 }
16915
16916 # func_len string
16917 # STRING may not start with a hyphen.
16918 func_len ()
16919 {
16920   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16921 }
16922
16923 _LT_EOF
16924 esac
16925
16926 case $lt_shell_append in
16927   yes)
16928     cat << \_LT_EOF >> "$cfgfile"
16929
16930 # func_append var value
16931 # Append VALUE to the end of shell variable VAR.
16932 func_append ()
16933 {
16934   eval "$1+=\$2"
16935 }
16936 _LT_EOF
16937     ;;
16938   *)
16939     cat << \_LT_EOF >> "$cfgfile"
16940
16941 # func_append var value
16942 # Append VALUE to the end of shell variable VAR.
16943 func_append ()
16944 {
16945   eval "$1=\$$1\$2"
16946 }
16947
16948 _LT_EOF
16949     ;;
16950   esac
16951
16952
16953   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16954     || (rm -f "$cfgfile"; exit 1)
16955
16956   mv -f "$cfgfile" "$ofile" ||
16957     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16958   chmod +x "$ofile"
16959
16960
16961     cat <<_LT_EOF >> "$ofile"
16962
16963 # ### BEGIN LIBTOOL TAG CONFIG: GO
16964
16965 # The linker used to build libraries.
16966 LD=$lt_LD_GO
16967
16968 # How to create reloadable object files.
16969 reload_flag=$lt_reload_flag_GO
16970 reload_cmds=$lt_reload_cmds_GO
16971
16972 # Commands used to build an old-style archive.
16973 old_archive_cmds=$lt_old_archive_cmds_GO
16974
16975 # A language specific compiler.
16976 CC=$lt_compiler_GO
16977
16978 # Is the compiler the GNU compiler?
16979 with_gcc=$GCC_GO
16980
16981 # Compiler flag to turn off builtin functions.
16982 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16983
16984 # How to pass a linker flag through the compiler.
16985 wl=$lt_lt_prog_compiler_wl_GO
16986
16987 # Additional compiler flags for building library objects.
16988 pic_flag=$lt_lt_prog_compiler_pic_GO
16989
16990 # Compiler flag to prevent dynamic linking.
16991 link_static_flag=$lt_lt_prog_compiler_static_GO
16992
16993 # Does compiler simultaneously support -c and -o options?
16994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16995
16996 # Whether or not to add -lc for building shared libraries.
16997 build_libtool_need_lc=$archive_cmds_need_lc_GO
16998
16999 # Whether or not to disallow shared libs when runtime libs are static.
17000 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17001
17002 # Compiler flag to allow reflexive dlopens.
17003 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17004
17005 # Compiler flag to generate shared objects directly from archives.
17006 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17007
17008 # Whether the compiler copes with passing no objects directly.
17009 compiler_needs_object=$lt_compiler_needs_object_GO
17010
17011 # Create an old-style archive from a shared archive.
17012 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17013
17014 # Create a temporary old-style archive to link instead of a shared archive.
17015 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17016
17017 # Commands used to build a shared archive.
17018 archive_cmds=$lt_archive_cmds_GO
17019 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17020
17021 # Commands used to build a loadable module if different from building
17022 # a shared archive.
17023 module_cmds=$lt_module_cmds_GO
17024 module_expsym_cmds=$lt_module_expsym_cmds_GO
17025
17026 # Whether we are building with GNU ld or not.
17027 with_gnu_ld=$lt_with_gnu_ld_GO
17028
17029 # Flag that allows shared libraries with undefined symbols to be built.
17030 allow_undefined_flag=$lt_allow_undefined_flag_GO
17031
17032 # Flag that enforces no undefined symbols.
17033 no_undefined_flag=$lt_no_undefined_flag_GO
17034
17035 # Flag to hardcode \$libdir into a binary during linking.
17036 # This must work even if \$libdir does not exist
17037 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17038
17039 # If ld is used when linking, flag to hardcode \$libdir into a binary
17040 # during linking.  This must work even if \$libdir does not exist.
17041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17042
17043 # Whether we need a single "-rpath" flag with a separated argument.
17044 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17045
17046 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17047 # DIR into the resulting binary.
17048 hardcode_direct=$hardcode_direct_GO
17049
17050 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17051 # DIR into the resulting binary and the resulting library dependency is
17052 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17053 # library is relocated.
17054 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17055
17056 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17057 # into the resulting binary.
17058 hardcode_minus_L=$hardcode_minus_L_GO
17059
17060 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17061 # into the resulting binary.
17062 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17063
17064 # Set to "yes" if building a shared library automatically hardcodes DIR
17065 # into the library and all subsequent libraries and executables linked
17066 # against it.
17067 hardcode_automatic=$hardcode_automatic_GO
17068
17069 # Set to yes if linker adds runtime paths of dependent libraries
17070 # to runtime path list.
17071 inherit_rpath=$inherit_rpath_GO
17072
17073 # Whether libtool must link a program against all its dependency libraries.
17074 link_all_deplibs=$link_all_deplibs_GO
17075
17076 # Fix the shell variable \$srcfile for the compiler.
17077 fix_srcfile_path=$lt_fix_srcfile_path_GO
17078
17079 # Set to "yes" if exported symbols are required.
17080 always_export_symbols=$always_export_symbols_GO
17081
17082 # The commands to list exported symbols.
17083 export_symbols_cmds=$lt_export_symbols_cmds_GO
17084
17085 # Symbols that should not be listed in the preloaded symbols.
17086 exclude_expsyms=$lt_exclude_expsyms_GO
17087
17088 # Symbols that must always be exported.
17089 include_expsyms=$lt_include_expsyms_GO
17090
17091 # Commands necessary for linking programs (against libraries) with templates.
17092 prelink_cmds=$lt_prelink_cmds_GO
17093
17094 # Specify filename containing input files.
17095 file_list_spec=$lt_file_list_spec_GO
17096
17097 # How to hardcode a shared library path into an executable.
17098 hardcode_action=$hardcode_action_GO
17099
17100 # ### END LIBTOOL TAG CONFIG: GO
17101 _LT_EOF
17102
17103  ;;
17104     "default":C) if test -n "$CONFIG_FILES"; then
17105    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17106    # that multilib installs will end up installed in the correct place.
17107    # The testsuite needs it for multilib-aware ABI baseline files.
17108    # To work around this not being passed down from config-ml.in ->
17109    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17110    # append it here.  Only modify Makefiles that have just been created.
17111    #
17112    # Also, get rid of this simulated-VPATH thing that automake does.
17113    cat > vpsed << \_EOF
17114 s!`test -f '$<' || echo '$(srcdir)/'`!!
17115 _EOF
17116    for i in $SUBDIRS; do
17117     case $CONFIG_FILES in
17118      *${i}/Makefile*)
17119        #echo "Adding MULTISUBDIR to $i/Makefile"
17120        sed -f vpsed $i/Makefile > tmp
17121        grep '^MULTISUBDIR =' Makefile >> tmp
17122        mv tmp $i/Makefile
17123        ;;
17124     esac
17125    done
17126    rm vpsed
17127  fi
17128  ;;
17129
17130   esac
17131 done # for ac_tag
17132
17133
17134 as_fn_exit 0
17135 _ACEOF
17136 ac_clean_files=$ac_clean_files_save
17137
17138 test $ac_write_fail = 0 ||
17139   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17140
17141
17142 # configure is writing to config.log, and then calls config.status.
17143 # config.status does its own redirection, appending to config.log.
17144 # Unfortunately, on DOS this fails, as config.log is still kept open
17145 # by configure, so config.status won't be able to write to it; its
17146 # output is simply discarded.  So we exec the FD to /dev/null,
17147 # effectively closing config.log, so it can be properly (re)opened and
17148 # appended to by config.status.  When coming back to configure, we
17149 # need to make the FD available again.
17150 if test "$no_create" != yes; then
17151   ac_cs_success=:
17152   ac_config_status_args=
17153   test "$silent" = yes &&
17154     ac_config_status_args="$ac_config_status_args --quiet"
17155   exec 5>/dev/null
17156   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17157   exec 5>>config.log
17158   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17159   # would make configure fail if this is the last instruction.
17160   $ac_cs_success || as_fn_exit $?
17161 fi
17162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17163   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17164 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17165 fi
17166