bpabi.S (__aeabi_ldivmod, [...]): Use .cfi_* directives for DWARF annotations.
[gcc.git] / libgo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 MATH_FLAG
608 STRINGOPS_FLAG
609 HAVE_WAIT4_FALSE
610 HAVE_WAIT4_TRUE
611 HAVE_STRERROR_R_FALSE
612 HAVE_STRERROR_R_TRUE
613 HAVE_SYS_MMAN_H_FALSE
614 HAVE_SYS_MMAN_H_TRUE
615 PTHREAD_LIBS
616 PTHREAD_CFLAGS
617 NET_LIBS
618 MATH_LIBS
619 USING_SPLIT_STACK_FALSE
620 USING_SPLIT_STACK_TRUE
621 SPLIT_STACK
622 OSCFLAGS
623 GO_SYSCALL_OS_ARCH_FILE
624 GO_SYSCALL_OS_FILE
625 GO_LIBCALL_OS_ARCH_FILE
626 GO_LIBCALL_OS_FILE
627 GOARCH
628 LIBGO_IS_X86_64_FALSE
629 LIBGO_IS_X86_64_TRUE
630 LIBGO_IS_SPARC64_FALSE
631 LIBGO_IS_SPARC64_TRUE
632 LIBGO_IS_SPARC_FALSE
633 LIBGO_IS_SPARC_TRUE
634 LIBGO_IS_PPC64_FALSE
635 LIBGO_IS_PPC64_TRUE
636 LIBGO_IS_PPC_FALSE
637 LIBGO_IS_PPC_TRUE
638 LIBGO_IS_MIPSO64_FALSE
639 LIBGO_IS_MIPSO64_TRUE
640 LIBGO_IS_MIPSN64_FALSE
641 LIBGO_IS_MIPSN64_TRUE
642 LIBGO_IS_MIPSN32_FALSE
643 LIBGO_IS_MIPSN32_TRUE
644 LIBGO_IS_MIPSO32_FALSE
645 LIBGO_IS_MIPSO32_TRUE
646 LIBGO_IS_MIPS_FALSE
647 LIBGO_IS_MIPS_TRUE
648 LIBGO_IS_M68K_FALSE
649 LIBGO_IS_M68K_TRUE
650 LIBGO_IS_ARM64_FALSE
651 LIBGO_IS_ARM64_TRUE
652 LIBGO_IS_ARM_FALSE
653 LIBGO_IS_ARM_TRUE
654 LIBGO_IS_ALPHA_FALSE
655 LIBGO_IS_ALPHA_TRUE
656 LIBGO_IS_386_FALSE
657 LIBGO_IS_386_TRUE
658 USE_DEJAGNU
659 GOOS
660 LIBGO_IS_SOLARIS_FALSE
661 LIBGO_IS_SOLARIS_TRUE
662 LIBGO_IS_RTEMS_FALSE
663 LIBGO_IS_RTEMS_TRUE
664 LIBGO_IS_DRAGONFLY_FALSE
665 LIBGO_IS_DRAGONFLY_TRUE
666 LIBGO_IS_OPENBSD_FALSE
667 LIBGO_IS_OPENBSD_TRUE
668 LIBGO_IS_NETBSD_FALSE
669 LIBGO_IS_NETBSD_TRUE
670 LIBGO_IS_LINUX_FALSE
671 LIBGO_IS_LINUX_TRUE
672 LIBGO_IS_IRIX_FALSE
673 LIBGO_IS_IRIX_TRUE
674 LIBGO_IS_FREEBSD_FALSE
675 LIBGO_IS_FREEBSD_TRUE
676 LIBGO_IS_DARWIN_FALSE
677 LIBGO_IS_DARWIN_TRUE
678 go_include
679 LIBATOMIC
680 LIBFFIINCS
681 LIBFFI
682 nover_glibgo_toolexeclibdir
683 glibgo_toolexeclibdir
684 glibgo_toolexecdir
685 WERROR
686 WARN_FLAGS
687 CC_FOR_BUILD
688 enable_static
689 enable_shared
690 CPP
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 AR
697 OBJDUMP
698 LN_S
699 NM
700 ac_ct_DUMPBIN
701 DUMPBIN
702 LIBTOOL
703 OBJCOPY
704 RANLIB
705 LD
706 FGREP
707 EGREP
708 GREP
709 SED
710 MAINT
711 MAINTAINER_MODE_FALSE
712 MAINTAINER_MODE_TRUE
713 GOCFLAGS
714 GOC
715 am__fastdepCC_FALSE
716 am__fastdepCC_TRUE
717 CCDEPMODE
718 AMDEPBACKSLASH
719 AMDEP_FALSE
720 AMDEP_TRUE
721 am__quote
722 am__include
723 DEPDIR
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 am__untar
732 am__tar
733 AMTAR
734 am__leading_dot
735 SET_MAKE
736 AWK
737 mkdir_p
738 MKDIR_P
739 INSTALL_STRIP_PROGRAM
740 STRIP
741 install_sh
742 MAKEINFO
743 AUTOHEADER
744 AUTOMAKE
745 AUTOCONF
746 ACLOCAL
747 VERSION
748 PACKAGE
749 CYGPATH_W
750 am__isrc
751 INSTALL_DATA
752 INSTALL_SCRIPT
753 INSTALL_PROGRAM
754 target_os
755 target_vendor
756 target_cpu
757 target
758 host_os
759 host_vendor
760 host_cpu
761 host
762 build_os
763 build_vendor
764 build_cpu
765 build
766 multi_basedir
767 libtool_VERSION
768 target_alias
769 host_alias
770 build_alias
771 LIBS
772 ECHO_T
773 ECHO_N
774 ECHO_C
775 DEFS
776 mandir
777 localedir
778 libdir
779 psdir
780 pdfdir
781 dvidir
782 htmldir
783 infodir
784 docdir
785 oldincludedir
786 includedir
787 localstatedir
788 sharedstatedir
789 sysconfdir
790 datadir
791 datarootdir
792 libexecdir
793 sbindir
794 bindir
795 program_transform_name
796 prefix
797 exec_prefix
798 PACKAGE_URL
799 PACKAGE_BUGREPORT
800 PACKAGE_STRING
801 PACKAGE_VERSION
802 PACKAGE_TARNAME
803 PACKAGE_NAME
804 PATH_SEPARATOR
805 SHELL'
806 ac_subst_files=''
807 ac_user_opts='
808 enable_option_checking
809 enable_multilib
810 enable_dependency_tracking
811 enable_maintainer_mode
812 with_gnu_ld
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 enable_libtool_lock
818 enable_werror
819 enable_version_specific_runtime_libs
820 with_libffi
821 with_libatomic
822 with_system_libunwind
823 enable_sjlj_exceptions
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CPP
829 CPPFLAGS'
830
831
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 ac_unrecognized_opts=
836 ac_unrecognized_sep=
837 # The variables have the same names as the options, with
838 # dashes changed to underlines.
839 cache_file=/dev/null
840 exec_prefix=NONE
841 no_create=
842 no_recursion=
843 prefix=NONE
844 program_prefix=NONE
845 program_suffix=NONE
846 program_transform_name=s,x,x,
847 silent=
848 site=
849 srcdir=
850 verbose=
851 x_includes=NONE
852 x_libraries=NONE
853
854 # Installation directory options.
855 # These are left unexpanded so users can "make install exec_prefix=/foo"
856 # and all the variables that are supposed to be based on exec_prefix
857 # by default will actually change.
858 # Use braces instead of parens because sh, perl, etc. also accept them.
859 # (The list follows the same order as the GNU Coding Standards.)
860 bindir='${exec_prefix}/bin'
861 sbindir='${exec_prefix}/sbin'
862 libexecdir='${exec_prefix}/libexec'
863 datarootdir='${prefix}/share'
864 datadir='${datarootdir}'
865 sysconfdir='${prefix}/etc'
866 sharedstatedir='${prefix}/com'
867 localstatedir='${prefix}/var'
868 includedir='${prefix}/include'
869 oldincludedir='/usr/include'
870 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
871 infodir='${datarootdir}/info'
872 htmldir='${docdir}'
873 dvidir='${docdir}'
874 pdfdir='${docdir}'
875 psdir='${docdir}'
876 libdir='${exec_prefix}/lib'
877 localedir='${datarootdir}/locale'
878 mandir='${datarootdir}/man'
879
880 ac_prev=
881 ac_dashdash=
882 for ac_option
883 do
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
886 eval $ac_prev=\$ac_option
887 ac_prev=
888 continue
889 fi
890
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
906
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
921
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
926
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
959
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
995
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1000
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1030
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1104
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1163
1164 -with-* | --with-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=\$ac_optarg ;;
1179
1180 -without-* | --without-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "with_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1213
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215 Try \`$0 --help' for more information."
1216 ;;
1217
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1227
1228 *)
1229 # FIXME: should be removed in autoconf 3.0.
1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1234 ;;
1235
1236 esac
1237 done
1238
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 as_fn_error "missing argument to $ac_option"
1242 fi
1243
1244 if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 esac
1250 fi
1251
1252 # Check all directory arguments for consistency.
1253 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
1257 do
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
1266 case $ac_val in
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269 esac
1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1271 done
1272
1273 # There might be people who depend on the old broken behavior: `$host'
1274 # used to hold the argument of --host etc.
1275 # FIXME: To remove some day.
1276 build=$build_alias
1277 host=$host_alias
1278 target=$target_alias
1279
1280 # FIXME: To remove some day.
1281 if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437 _ACEOF
1438 fi
1439
1440 if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of package-unused version-unused:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446 Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-multilib build many library versions (default)
1451 --disable-dependency-tracking speeds up one-time build
1452 --enable-dependency-tracking do not reject slow dependency extractors
1453 --enable-maintainer-mode enable make rules and dependencies not useful
1454 (and sometimes confusing) to the casual installer
1455 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 --enable-static[=PKGS] build static libraries [default=yes]
1457 --enable-fast-install[=PKGS]
1458 optimize for fast installation [default=yes]
1459 --disable-libtool-lock avoid locking (might break parallel builds)
1460 --enable-werror turns on -Werror [default=yes]
1461 --enable-version-specific-runtime-libs
1462 Specify that runtime libraries should be installed
1463 in a compiler-specific directory
1464 --enable-sjlj-exceptions
1465 force use of builtin_setjmp for exceptions
1466
1467 Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1471 --with-pic try to use only PIC/non-PIC objects [default=use
1472 both]
1473 --without-libffi don't use libffi
1474 --without-libatomic don't use libatomic
1475 --with-system-libunwind use installed libunwind
1476
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 GOC Go compiler command
1486 GOCFLAGS Go compiler flags
1487 CPP C preprocessor
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to the package provider.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" ||
1501 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502 continue
1503 ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1509 # A ".." for each directory in $ac_dir_suffix.
1510 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511 case $ac_top_builddir_sub in
1512 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514 esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522 .) # We are building in place.
1523 ac_srcdir=.
1524 ac_top_srcdir=$ac_top_builddir_sub
1525 ac_abs_top_srcdir=$ac_pwd ;;
1526 [\\/]* | ?:[\\/]* ) # Absolute name.
1527 ac_srcdir=$srcdir$ac_dir_suffix;
1528 ac_top_srcdir=$srcdir
1529 ac_abs_top_srcdir=$srcdir ;;
1530 *) # Relative name.
1531 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532 ac_top_srcdir=$ac_top_build_prefix$srcdir
1533 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537 cd "$ac_dir" || { ac_status=$?; continue; }
1538 # Check for guested configure.
1539 if test -f "$ac_srcdir/configure.gnu"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542 elif test -f "$ac_srcdir/configure"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure" --help=recursive
1545 else
1546 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 fi || ac_status=$?
1548 cd "$ac_pwd" || { ac_status=$?; break; }
1549 done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554 cat <<\_ACEOF
1555 package-unused configure version-unused
1556 generated by GNU Autoconf 2.64
1557
1558 Copyright (C) 2009 Free Software Foundation, Inc.
1559 This configure script is free software; the Free Software Foundation
1560 gives unlimited permission to copy, distribute and modify it.
1561 _ACEOF
1562 exit
1563 fi
1564
1565 ## ------------------------ ##
1566 ## Autoconf initialization. ##
1567 ## ------------------------ ##
1568
1569 # ac_fn_c_try_compile LINENO
1570 # --------------------------
1571 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1572 ac_fn_c_try_compile ()
1573 {
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 rm -f conftest.$ac_objext
1576 if { { ac_try="$ac_compile"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_compile") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } && {
1592 test -z "$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 } && test -s conftest.$ac_objext; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1604
1605 } # ac_fn_c_try_compile
1606
1607 # ac_fn_c_try_link LINENO
1608 # -----------------------
1609 # Try to link conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_link ()
1611 {
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 rm -f conftest.$ac_objext conftest$ac_exeext
1614 if { { ac_try="$ac_link"
1615 case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>conftest.err
1622 ac_status=$?
1623 if test -s conftest.err; then
1624 grep -v '^ *+' conftest.err >conftest.er1
1625 cat conftest.er1 >&5
1626 mv -f conftest.er1 conftest.err
1627 fi
1628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629 test $ac_status = 0; } && {
1630 test -z "$ac_c_werror_flag" ||
1631 test ! -s conftest.err
1632 } && test -s conftest$ac_exeext && {
1633 test "$cross_compiling" = yes ||
1634 $as_test_x conftest$ac_exeext
1635 }; then :
1636 ac_retval=0
1637 else
1638 $as_echo "$as_me: failed program was:" >&5
1639 sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=1
1642 fi
1643 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1644 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1645 # interfere with the next link command; also delete a directory that is
1646 # left behind by Apple's compiler. We do this before executing the actions.
1647 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 return $ac_retval
1650
1651 } # ac_fn_c_try_link
1652
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 $as_echo_n "checking for $2... " >&6; }
1662 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1663 $as_echo_n "(cached) " >&6
1664 else
1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1666 /* end confdefs.h. */
1667 $4
1668 #include <$2>
1669 _ACEOF
1670 if ac_fn_c_try_compile "$LINENO"; then :
1671 eval "$3=yes"
1672 else
1673 eval "$3=no"
1674 fi
1675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1676 fi
1677 eval ac_res=\$$3
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681
1682 } # ac_fn_c_check_header_compile
1683
1684 # ac_fn_c_try_cpp LINENO
1685 # ----------------------
1686 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_cpp ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 if { { ac_try="$ac_cpp conftest.$ac_ext"
1691 case "(($ac_try" in
1692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693 *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1698 ac_status=$?
1699 if test -s conftest.err; then
1700 grep -v '^ *+' conftest.err >conftest.er1
1701 cat conftest.er1 >&5
1702 mv -f conftest.er1 conftest.err
1703 fi
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } >/dev/null && {
1706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1707 test ! -s conftest.err
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 return $ac_retval
1718
1719 } # ac_fn_c_try_cpp
1720
1721 # ac_fn_c_try_run LINENO
1722 # ----------------------
1723 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1724 # that executables *can* be run.
1725 ac_fn_c_try_run ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 if { { ac_try="$ac_link"
1729 case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1732 esac
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_link") 2>&5
1736 ac_status=$?
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1739 { { case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_try") 2>&5
1746 ac_status=$?
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; }; }; then :
1749 ac_retval=0
1750 else
1751 $as_echo "$as_me: program exited with status $ac_status" >&5
1752 $as_echo "$as_me: failed program was:" >&5
1753 sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=$ac_status
1756 fi
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1760
1761 } # ac_fn_c_try_run
1762
1763 # ac_fn_c_check_func LINENO FUNC VAR
1764 # ----------------------------------
1765 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1766 ac_fn_c_check_func ()
1767 {
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1776 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1778 #define $2 innocuous_$2
1779
1780 /* System header to define __stub macros and hopefully few prototypes,
1781 which can conflict with char $2 (); below.
1782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1783 <limits.h> exists even on freestanding compilers. */
1784
1785 #ifdef __STDC__
1786 # include <limits.h>
1787 #else
1788 # include <assert.h>
1789 #endif
1790
1791 #undef $2
1792
1793 /* Override any GCC internal prototype to avoid an error.
1794 Use char because int might match the return type of a GCC
1795 builtin and then its argument prototype would still apply. */
1796 #ifdef __cplusplus
1797 extern "C"
1798 #endif
1799 char $2 ();
1800 /* The GNU C library defines this for functions which it implements
1801 to always fail with ENOSYS. Some functions are actually named
1802 something starting with __ and the normal name is an alias. */
1803 #if defined __stub_$2 || defined __stub___$2
1804 choke me
1805 #endif
1806
1807 int
1808 main ()
1809 {
1810 return $2 ();
1811 ;
1812 return 0;
1813 }
1814 _ACEOF
1815 if ac_fn_c_try_link "$LINENO"; then :
1816 eval "$3=yes"
1817 else
1818 eval "$3=no"
1819 fi
1820 rm -f core conftest.err conftest.$ac_objext \
1821 conftest$ac_exeext conftest.$ac_ext
1822 fi
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828 } # ac_fn_c_check_func
1829
1830 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833 # the include files in INCLUDES and setting the cache variable VAR
1834 # accordingly.
1835 ac_fn_c_check_header_mongrel ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840 $as_echo_n "checking for $2... " >&6; }
1841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842 $as_echo_n "(cached) " >&6
1843 fi
1844 eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846 $as_echo "$ac_res" >&6; }
1847 else
1848 # Is the header compilable?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850 $as_echo_n "checking $2 usability... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1853 $4
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_compile "$LINENO"; then :
1857 ac_header_compiler=yes
1858 else
1859 ac_header_compiler=no
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863 $as_echo "$ac_header_compiler" >&6; }
1864
1865 # Is the header present?
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867 $as_echo_n "checking $2 presence... " >&6; }
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_cpp "$LINENO"; then :
1873 ac_header_preproc=yes
1874 else
1875 ac_header_preproc=no
1876 fi
1877 rm -f conftest.err conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879 $as_echo "$ac_header_preproc" >&6; }
1880
1881 # So? What about this header?
1882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1883 yes:no: )
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888 ;;
1889 no:yes:* )
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 ;;
1901 esac
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903 $as_echo_n "checking for $2... " >&6; }
1904 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1905 $as_echo_n "(cached) " >&6
1906 else
1907 eval "$3=\$ac_header_compiler"
1908 fi
1909 eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911 $as_echo "$ac_res" >&6; }
1912 fi
1913 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1914
1915 } # ac_fn_c_check_header_mongrel
1916
1917 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1918 # -------------------------------------------
1919 # Tests whether TYPE exists after having included INCLUDES, setting cache
1920 # variable VAR accordingly.
1921 ac_fn_c_check_type ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 eval "$3=no"
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 $4
1933 int
1934 main ()
1935 {
1936 if (sizeof ($2))
1937 return 0;
1938 ;
1939 return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1945 $4
1946 int
1947 main ()
1948 {
1949 if (sizeof (($2)))
1950 return 0;
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956
1957 else
1958 eval "$3=yes"
1959 fi
1960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961 fi
1962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 fi
1964 eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966 $as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968
1969 } # ac_fn_c_check_type
1970
1971 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1972 # --------------------------------------------
1973 # Tries to find the compile-time value of EXPR in a program that includes
1974 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1975 # computed
1976 ac_fn_c_compute_int ()
1977 {
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if test "$cross_compiling" = yes; then
1980 # Depending upon the size, compute the lo and hi bounds.
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982 /* end confdefs.h. */
1983 $4
1984 int
1985 main ()
1986 {
1987 static int test_array [1 - 2 * !(($2) >= 0)];
1988 test_array [0] = 0
1989
1990 ;
1991 return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 ac_lo=0 ac_mid=0
1996 while :; do
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
1999 $4
2000 int
2001 main ()
2002 {
2003 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2004 test_array [0] = 0
2005
2006 ;
2007 return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_hi=$ac_mid; break
2012 else
2013 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2014 if test $ac_lo -le $ac_mid; then
2015 ac_lo= ac_hi=
2016 break
2017 fi
2018 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2019 fi
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 done
2022 else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h. */
2025 $4
2026 int
2027 main ()
2028 {
2029 static int test_array [1 - 2 * !(($2) < 0)];
2030 test_array [0] = 0
2031
2032 ;
2033 return 0;
2034 }
2035 _ACEOF
2036 if ac_fn_c_try_compile "$LINENO"; then :
2037 ac_hi=-1 ac_mid=-1
2038 while :; do
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 int
2043 main ()
2044 {
2045 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2046 test_array [0] = 0
2047
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 ac_lo=$ac_mid; break
2054 else
2055 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2056 if test $ac_mid -le $ac_hi; then
2057 ac_lo= ac_hi=
2058 break
2059 fi
2060 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2061 fi
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 done
2064 else
2065 ac_lo= ac_hi=
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 # Binary search between lo and hi bounds.
2071 while test "x$ac_lo" != "x$ac_hi"; do
2072 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 test_array [0] = 0
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid
2088 else
2089 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 done
2093 case $ac_lo in #((
2094 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2095 '') ac_retval=1 ;;
2096 esac
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 static long int longval () { return $2; }
2102 static unsigned long int ulongval () { return $2; }
2103 #include <stdio.h>
2104 #include <stdlib.h>
2105 int
2106 main ()
2107 {
2108
2109 FILE *f = fopen ("conftest.val", "w");
2110 if (! f)
2111 return 1;
2112 if (($2) < 0)
2113 {
2114 long int i = longval ();
2115 if (i != ($2))
2116 return 1;
2117 fprintf (f, "%ld", i);
2118 }
2119 else
2120 {
2121 unsigned long int i = ulongval ();
2122 if (i != ($2))
2123 return 1;
2124 fprintf (f, "%lu", i);
2125 }
2126 /* Do not output a trailing newline, as this causes \r\n confusion
2127 on some platforms. */
2128 return ferror (f) || fclose (f) != 0;
2129
2130 ;
2131 return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_run "$LINENO"; then :
2135 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2136 else
2137 ac_retval=1
2138 fi
2139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2140 conftest.$ac_objext conftest.beam conftest.$ac_ext
2141 rm -f conftest.val
2142
2143 fi
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 return $ac_retval
2146
2147 } # ac_fn_c_compute_int
2148 cat >config.log <<_ACEOF
2149 This file contains any messages produced by compilers while
2150 running configure, to aid debugging if configure makes a mistake.
2151
2152 It was created by package-unused $as_me version-unused, which was
2153 generated by GNU Autoconf 2.64. Invocation command line was
2154
2155 $ $0 $@
2156
2157 _ACEOF
2158 exec 5>>config.log
2159 {
2160 cat <<_ASUNAME
2161 ## --------- ##
2162 ## Platform. ##
2163 ## --------- ##
2164
2165 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2166 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2167 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2168 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2169 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2170
2171 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2172 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2173
2174 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2175 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2176 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2177 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2178 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2179 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2180 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2181
2182 _ASUNAME
2183
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185 for as_dir in $PATH
2186 do
2187 IFS=$as_save_IFS
2188 test -z "$as_dir" && as_dir=.
2189 $as_echo "PATH: $as_dir"
2190 done
2191 IFS=$as_save_IFS
2192
2193 } >&5
2194
2195 cat >&5 <<_ACEOF
2196
2197
2198 ## ----------- ##
2199 ## Core tests. ##
2200 ## ----------- ##
2201
2202 _ACEOF
2203
2204
2205 # Keep a trace of the command line.
2206 # Strip out --no-create and --no-recursion so they do not pile up.
2207 # Strip out --silent because we don't want to record it for future runs.
2208 # Also quote any args containing shell meta-characters.
2209 # Make two passes to allow for proper duplicate-argument suppression.
2210 ac_configure_args=
2211 ac_configure_args0=
2212 ac_configure_args1=
2213 ac_must_keep_next=false
2214 for ac_pass in 1 2
2215 do
2216 for ac_arg
2217 do
2218 case $ac_arg in
2219 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2221 | -silent | --silent | --silen | --sile | --sil)
2222 continue ;;
2223 *\'*)
2224 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2225 esac
2226 case $ac_pass in
2227 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2228 2)
2229 as_fn_append ac_configure_args1 " '$ac_arg'"
2230 if test $ac_must_keep_next = true; then
2231 ac_must_keep_next=false # Got value, back to normal.
2232 else
2233 case $ac_arg in
2234 *=* | --config-cache | -C | -disable-* | --disable-* \
2235 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2236 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2237 | -with-* | --with-* | -without-* | --without-* | --x)
2238 case "$ac_configure_args0 " in
2239 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2240 esac
2241 ;;
2242 -* ) ac_must_keep_next=true ;;
2243 esac
2244 fi
2245 as_fn_append ac_configure_args " '$ac_arg'"
2246 ;;
2247 esac
2248 done
2249 done
2250 { ac_configure_args0=; unset ac_configure_args0;}
2251 { ac_configure_args1=; unset ac_configure_args1;}
2252
2253 # When interrupted or exit'd, cleanup temporary files, and complete
2254 # config.log. We remove comments because anyway the quotes in there
2255 # would cause problems or look ugly.
2256 # WARNING: Use '\'' to represent an apostrophe within the trap.
2257 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2258 trap 'exit_status=$?
2259 # Save into config.log some information that might help in debugging.
2260 {
2261 echo
2262
2263 cat <<\_ASBOX
2264 ## ---------------- ##
2265 ## Cache variables. ##
2266 ## ---------------- ##
2267 _ASBOX
2268 echo
2269 # The following way of writing the cache mishandles newlines in values,
2270 (
2271 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2272 eval ac_val=\$$ac_var
2273 case $ac_val in #(
2274 *${as_nl}*)
2275 case $ac_var in #(
2276 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2277 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2278 esac
2279 case $ac_var in #(
2280 _ | IFS | as_nl) ;; #(
2281 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2282 *) { eval $ac_var=; unset $ac_var;} ;;
2283 esac ;;
2284 esac
2285 done
2286 (set) 2>&1 |
2287 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2288 *${as_nl}ac_space=\ *)
2289 sed -n \
2290 "s/'\''/'\''\\\\'\'''\''/g;
2291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2292 ;; #(
2293 *)
2294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2295 ;;
2296 esac |
2297 sort
2298 )
2299 echo
2300
2301 cat <<\_ASBOX
2302 ## ----------------- ##
2303 ## Output variables. ##
2304 ## ----------------- ##
2305 _ASBOX
2306 echo
2307 for ac_var in $ac_subst_vars
2308 do
2309 eval ac_val=\$$ac_var
2310 case $ac_val in
2311 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2312 esac
2313 $as_echo "$ac_var='\''$ac_val'\''"
2314 done | sort
2315 echo
2316
2317 if test -n "$ac_subst_files"; then
2318 cat <<\_ASBOX
2319 ## ------------------- ##
2320 ## File substitutions. ##
2321 ## ------------------- ##
2322 _ASBOX
2323 echo
2324 for ac_var in $ac_subst_files
2325 do
2326 eval ac_val=\$$ac_var
2327 case $ac_val in
2328 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2329 esac
2330 $as_echo "$ac_var='\''$ac_val'\''"
2331 done | sort
2332 echo
2333 fi
2334
2335 if test -s confdefs.h; then
2336 cat <<\_ASBOX
2337 ## ----------- ##
2338 ## confdefs.h. ##
2339 ## ----------- ##
2340 _ASBOX
2341 echo
2342 cat confdefs.h
2343 echo
2344 fi
2345 test "$ac_signal" != 0 &&
2346 $as_echo "$as_me: caught signal $ac_signal"
2347 $as_echo "$as_me: exit $exit_status"
2348 } >&5
2349 rm -f core *.core core.conftest.* &&
2350 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2351 exit $exit_status
2352 ' 0
2353 for ac_signal in 1 2 13 15; do
2354 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355 done
2356 ac_signal=0
2357
2358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2359 rm -f -r conftest* confdefs.h
2360
2361 $as_echo "/* confdefs.h */" > confdefs.h
2362
2363 # Predefined preprocessor variables.
2364
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_NAME "$PACKAGE_NAME"
2367 _ACEOF
2368
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2371 _ACEOF
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2375 _ACEOF
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_STRING "$PACKAGE_STRING"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_URL "$PACKAGE_URL"
2387 _ACEOF
2388
2389
2390 # Let the site file select an alternate cache file if it wants to.
2391 # Prefer an explicitly selected file to automatically selected ones.
2392 ac_site_file1=NONE
2393 ac_site_file2=NONE
2394 if test -n "$CONFIG_SITE"; then
2395 ac_site_file1=$CONFIG_SITE
2396 elif test "x$prefix" != xNONE; then
2397 ac_site_file1=$prefix/share/config.site
2398 ac_site_file2=$prefix/etc/config.site
2399 else
2400 ac_site_file1=$ac_default_prefix/share/config.site
2401 ac_site_file2=$ac_default_prefix/etc/config.site
2402 fi
2403 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2404 do
2405 test "x$ac_site_file" = xNONE && continue
2406 if test -r "$ac_site_file"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2408 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2409 sed 's/^/| /' "$ac_site_file" >&5
2410 . "$ac_site_file"
2411 fi
2412 done
2413
2414 if test -r "$cache_file"; then
2415 # Some versions of bash will fail to source /dev/null (special
2416 # files actually), so we avoid doing that.
2417 if test -f "$cache_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2419 $as_echo "$as_me: loading cache $cache_file" >&6;}
2420 case $cache_file in
2421 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2422 *) . "./$cache_file";;
2423 esac
2424 fi
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2427 $as_echo "$as_me: creating cache $cache_file" >&6;}
2428 >$cache_file
2429 fi
2430
2431 # Check that the precious variables saved in the cache have kept the same
2432 # value.
2433 ac_cache_corrupted=false
2434 for ac_var in $ac_precious_vars; do
2435 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2436 eval ac_new_set=\$ac_env_${ac_var}_set
2437 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2438 eval ac_new_val=\$ac_env_${ac_var}_value
2439 case $ac_old_set,$ac_new_set in
2440 set,)
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2442 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2443 ac_cache_corrupted=: ;;
2444 ,set)
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2446 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2447 ac_cache_corrupted=: ;;
2448 ,);;
2449 *)
2450 if test "x$ac_old_val" != "x$ac_new_val"; then
2451 # differences in whitespace do not lead to failure.
2452 ac_old_val_w=`echo x $ac_old_val`
2453 ac_new_val_w=`echo x $ac_new_val`
2454 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2456 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2457 ac_cache_corrupted=:
2458 else
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2460 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2461 eval $ac_var=\$ac_old_val
2462 fi
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2464 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2466 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2467 fi;;
2468 esac
2469 # Pass precious variables to config.status.
2470 if test "$ac_new_set" = set; then
2471 case $ac_new_val in
2472 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2473 *) ac_arg=$ac_var=$ac_new_val ;;
2474 esac
2475 case " $ac_configure_args " in
2476 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2477 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2478 esac
2479 fi
2480 done
2481 if $ac_cache_corrupted; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2485 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2486 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2487 fi
2488 ## -------------------- ##
2489 ## Main body of script. ##
2490 ## -------------------- ##
2491
2492 ac_ext=c
2493 ac_cpp='$CPP $CPPFLAGS'
2494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2497
2498
2499
2500
2501
2502
2503 ac_config_headers="$ac_config_headers config.h"
2504
2505
2506 libtool_VERSION=5:0:0
2507
2508
2509 # Default to --enable-multilib
2510 # Check whether --enable-multilib was given.
2511 if test "${enable_multilib+set}" = set; then :
2512 enableval=$enable_multilib; case "$enableval" in
2513 yes) multilib=yes ;;
2514 no) multilib=no ;;
2515 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2516 esac
2517 else
2518 multilib=yes
2519 fi
2520
2521
2522 # We may get other options which we leave undocumented:
2523 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2524 # See config-ml.in if you want the gory details.
2525
2526 if test "$srcdir" = "."; then
2527 if test "$with_target_subdir" != "."; then
2528 multi_basedir="$srcdir/$with_multisrctop../.."
2529 else
2530 multi_basedir="$srcdir/$with_multisrctop.."
2531 fi
2532 else
2533 multi_basedir="$srcdir/.."
2534 fi
2535
2536
2537 # Even if the default multilib is not a cross compilation,
2538 # it may be that some of the other multilibs are.
2539 if test $cross_compiling = no && test $multilib = yes \
2540 && test "x${with_multisubdir}" != x ; then
2541 cross_compiling=maybe
2542 fi
2543
2544 ac_config_commands="$ac_config_commands default-1"
2545
2546
2547 ac_aux_dir=
2548 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2549 for ac_t in install-sh install.sh shtool; do
2550 if test -f "$ac_dir/$ac_t"; then
2551 ac_aux_dir=$ac_dir
2552 ac_install_sh="$ac_aux_dir/$ac_t -c"
2553 break 2
2554 fi
2555 done
2556 done
2557 if test -z "$ac_aux_dir"; then
2558 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2559 fi
2560
2561 # These three variables are undocumented and unsupported,
2562 # and are intended to be withdrawn in a future Autoconf release.
2563 # They can cause serious problems if a builder's source tree is in a directory
2564 # whose full name contains unusual characters.
2565 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2566 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2567 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2568
2569
2570 # Make sure we can run config.sub.
2571 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2572 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2573
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2575 $as_echo_n "checking build system type... " >&6; }
2576 if test "${ac_cv_build+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 ac_build_alias=$build_alias
2580 test "x$ac_build_alias" = x &&
2581 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2582 test "x$ac_build_alias" = x &&
2583 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2584 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2585 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2586
2587 fi
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2589 $as_echo "$ac_cv_build" >&6; }
2590 case $ac_cv_build in
2591 *-*-*) ;;
2592 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2593 esac
2594 build=$ac_cv_build
2595 ac_save_IFS=$IFS; IFS='-'
2596 set x $ac_cv_build
2597 shift
2598 build_cpu=$1
2599 build_vendor=$2
2600 shift; shift
2601 # Remember, the first character of IFS is used to create $*,
2602 # except with old shells:
2603 build_os=$*
2604 IFS=$ac_save_IFS
2605 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2606
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2609 $as_echo_n "checking host system type... " >&6; }
2610 if test "${ac_cv_host+set}" = set; then :
2611 $as_echo_n "(cached) " >&6
2612 else
2613 if test "x$host_alias" = x; then
2614 ac_cv_host=$ac_cv_build
2615 else
2616 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2617 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2618 fi
2619
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2622 $as_echo "$ac_cv_host" >&6; }
2623 case $ac_cv_host in
2624 *-*-*) ;;
2625 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2626 esac
2627 host=$ac_cv_host
2628 ac_save_IFS=$IFS; IFS='-'
2629 set x $ac_cv_host
2630 shift
2631 host_cpu=$1
2632 host_vendor=$2
2633 shift; shift
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2636 host_os=$*
2637 IFS=$ac_save_IFS
2638 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2639
2640
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2642 $as_echo_n "checking target system type... " >&6; }
2643 if test "${ac_cv_target+set}" = set; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 if test "x$target_alias" = x; then
2647 ac_cv_target=$ac_cv_host
2648 else
2649 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2650 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2651 fi
2652
2653 fi
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2655 $as_echo "$ac_cv_target" >&6; }
2656 case $ac_cv_target in
2657 *-*-*) ;;
2658 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2659 esac
2660 target=$ac_cv_target
2661 ac_save_IFS=$IFS; IFS='-'
2662 set x $ac_cv_target
2663 shift
2664 target_cpu=$1
2665 target_vendor=$2
2666 shift; shift
2667 # Remember, the first character of IFS is used to create $*,
2668 # except with old shells:
2669 target_os=$*
2670 IFS=$ac_save_IFS
2671 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2672
2673
2674 # The aliases save the names the user supplied, while $host etc.
2675 # will get canonicalized.
2676 test -n "$target_alias" &&
2677 test "$program_prefix$program_suffix$program_transform_name" = \
2678 NONENONEs,x,x, &&
2679 program_prefix=${target_alias}-
2680
2681 target_alias=${target_alias-$host_alias}
2682
2683 am__api_version='1.11'
2684
2685 # Find a good install program. We prefer a C program (faster),
2686 # so one script is as good as another. But avoid the broken or
2687 # incompatible versions:
2688 # SysV /etc/install, /usr/sbin/install
2689 # SunOS /usr/etc/install
2690 # IRIX /sbin/install
2691 # AIX /bin/install
2692 # AmigaOS /C/install, which installs bootblocks on floppy discs
2693 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2694 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2695 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2696 # OS/2's system install, which has a completely different semantic
2697 # ./install, which can be erroneously created by make from ./install.sh.
2698 # Reject install programs that cannot install multiple files.
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2700 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2701 if test -z "$INSTALL"; then
2702 if test "${ac_cv_path_install+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
2710 # Account for people who put trailing slashes in PATH elements.
2711 case $as_dir/ in #((
2712 ./ | .// | /[cC]/* | \
2713 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2714 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2715 /usr/ucb/* ) ;;
2716 *)
2717 # OSF1 and SCO ODT 3.0 have their own names for install.
2718 # Don't use installbsd from OSF since it installs stuff as root
2719 # by default.
2720 for ac_prog in ginstall scoinst install; do
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2723 if test $ac_prog = install &&
2724 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2725 # AIX install. It has an incompatible calling convention.
2726 :
2727 elif test $ac_prog = install &&
2728 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2729 # program-specific install script used by HP pwplus--don't use.
2730 :
2731 else
2732 rm -rf conftest.one conftest.two conftest.dir
2733 echo one > conftest.one
2734 echo two > conftest.two
2735 mkdir conftest.dir
2736 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2737 test -s conftest.one && test -s conftest.two &&
2738 test -s conftest.dir/conftest.one &&
2739 test -s conftest.dir/conftest.two
2740 then
2741 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2742 break 3
2743 fi
2744 fi
2745 fi
2746 done
2747 done
2748 ;;
2749 esac
2750
2751 done
2752 IFS=$as_save_IFS
2753
2754 rm -rf conftest.one conftest.two conftest.dir
2755
2756 fi
2757 if test "${ac_cv_path_install+set}" = set; then
2758 INSTALL=$ac_cv_path_install
2759 else
2760 # As a last resort, use the slow shell script. Don't cache a
2761 # value for INSTALL within a source directory, because that will
2762 # break other packages using the cache if that directory is
2763 # removed, or if the value is a relative name.
2764 INSTALL=$ac_install_sh
2765 fi
2766 fi
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2768 $as_echo "$INSTALL" >&6; }
2769
2770 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2771 # It thinks the first close brace ends the variable substitution.
2772 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2773
2774 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2775
2776 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2779 $as_echo_n "checking whether build environment is sane... " >&6; }
2780 # Just in case
2781 sleep 1
2782 echo timestamp > conftest.file
2783 # Reject unsafe characters in $srcdir or the absolute working directory
2784 # name. Accept space and tab only in the latter.
2785 am_lf='
2786 '
2787 case `pwd` in
2788 *[\\\"\#\$\&\'\`$am_lf]*)
2789 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2790 esac
2791 case $srcdir in
2792 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2793 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2794 esac
2795
2796 # Do `set' in a subshell so we don't clobber the current shell's
2797 # arguments. Must try -L first in case configure is actually a
2798 # symlink; some systems play weird games with the mod time of symlinks
2799 # (eg FreeBSD returns the mod time of the symlink's containing
2800 # directory).
2801 if (
2802 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2803 if test "$*" = "X"; then
2804 # -L didn't work.
2805 set X `ls -t "$srcdir/configure" conftest.file`
2806 fi
2807 rm -f conftest.file
2808 if test "$*" != "X $srcdir/configure conftest.file" \
2809 && test "$*" != "X conftest.file $srcdir/configure"; then
2810
2811 # If neither matched, then we have a broken ls. This can happen
2812 # if, for instance, CONFIG_SHELL is bash and it inherits a
2813 # broken ls alias from the environment. This has actually
2814 # happened. Such a system could not be considered "sane".
2815 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2816 alias in your environment" "$LINENO" 5
2817 fi
2818
2819 test "$2" = conftest.file
2820 )
2821 then
2822 # Ok.
2823 :
2824 else
2825 as_fn_error "newly created file is older than distributed files!
2826 Check your system clock" "$LINENO" 5
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2829 $as_echo "yes" >&6; }
2830 test "$program_prefix" != NONE &&
2831 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2832 # Use a double $ so make ignores it.
2833 test "$program_suffix" != NONE &&
2834 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2835 # Double any \ or $.
2836 # By default was `s,x,x', remove it if useless.
2837 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2838 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2839
2840 # expand $ac_aux_dir to an absolute path
2841 am_aux_dir=`cd $ac_aux_dir && pwd`
2842
2843 if test x"${MISSING+set}" != xset; then
2844 case $am_aux_dir in
2845 *\ * | *\ *)
2846 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2847 *)
2848 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2849 esac
2850 fi
2851 # Use eval to expand $SHELL
2852 if eval "$MISSING --run true"; then
2853 am_missing_run="$MISSING --run "
2854 else
2855 am_missing_run=
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2857 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2858 fi
2859
2860 if test x"${install_sh}" != xset; then
2861 case $am_aux_dir in
2862 *\ * | *\ *)
2863 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2864 *)
2865 install_sh="\${SHELL} $am_aux_dir/install-sh"
2866 esac
2867 fi
2868
2869 # Installed binaries are usually stripped using `strip' when the user
2870 # run `make install-strip'. However `strip' might not be the right
2871 # tool to use in cross-compilation environments, therefore Automake
2872 # will honor the `STRIP' environment variable to overrule this program.
2873 if test "$cross_compiling" != no; then
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}strip; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_STRIP+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$STRIP"; then
2883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 STRIP=$ac_cv_prog_STRIP
2903 if test -n "$STRIP"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2905 $as_echo "$STRIP" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 fi
2913 if test -z "$ac_cv_prog_STRIP"; then
2914 ac_ct_STRIP=$STRIP
2915 # Extract the first word of "strip", so it can be a program name with args.
2916 set dummy strip; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$ac_ct_STRIP"; then
2923 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_ac_ct_STRIP="strip"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2935 fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2943 if test -n "$ac_ct_STRIP"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2945 $as_echo "$ac_ct_STRIP" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2949 fi
2950
2951 if test "x$ac_ct_STRIP" = x; then
2952 STRIP=":"
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955 yes:)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960 STRIP=$ac_ct_STRIP
2961 fi
2962 else
2963 STRIP="$ac_cv_prog_STRIP"
2964 fi
2965
2966 fi
2967 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2968
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2970 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2971 if test -z "$MKDIR_P"; then
2972 if test "${ac_cv_path_mkdir+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2977 do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_prog in mkdir gmkdir; do
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2983 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2984 'mkdir (GNU coreutils) '* | \
2985 'mkdir (coreutils) '* | \
2986 'mkdir (fileutils) '4.1*)
2987 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2988 break 3;;
2989 esac
2990 done
2991 done
2992 done
2993 IFS=$as_save_IFS
2994
2995 fi
2996
2997 if test "${ac_cv_path_mkdir+set}" = set; then
2998 MKDIR_P="$ac_cv_path_mkdir -p"
2999 else
3000 # As a last resort, use the slow shell script. Don't cache a
3001 # value for MKDIR_P within a source directory, because that will
3002 # break other packages using the cache if that directory is
3003 # removed, or if the value is a relative name.
3004 test -d ./--version && rmdir ./--version
3005 MKDIR_P="$ac_install_sh -d"
3006 fi
3007 fi
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3009 $as_echo "$MKDIR_P" >&6; }
3010
3011 mkdir_p="$MKDIR_P"
3012 case $mkdir_p in
3013 [\\/$]* | ?:[\\/]*) ;;
3014 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3015 esac
3016
3017 for ac_prog in gawk mawk nawk awk
3018 do
3019 # Extract the first word of "$ac_prog", so it can be a program name with args.
3020 set dummy $ac_prog; ac_word=$2
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022 $as_echo_n "checking for $ac_word... " >&6; }
3023 if test "${ac_cv_prog_AWK+set}" = set; then :
3024 $as_echo_n "(cached) " >&6
3025 else
3026 if test -n "$AWK"; then
3027 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3028 else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030 for as_dir in $PATH
3031 do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036 ac_cv_prog_AWK="$ac_prog"
3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 break 2
3039 fi
3040 done
3041 done
3042 IFS=$as_save_IFS
3043
3044 fi
3045 fi
3046 AWK=$ac_cv_prog_AWK
3047 if test -n "$AWK"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3049 $as_echo "$AWK" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 test -n "$AWK" && break
3057 done
3058
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3060 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3061 set x ${MAKE-make}
3062 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3063 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3064 $as_echo_n "(cached) " >&6
3065 else
3066 cat >conftest.make <<\_ACEOF
3067 SHELL = /bin/sh
3068 all:
3069 @echo '@@@%%%=$(MAKE)=@@@%%%'
3070 _ACEOF
3071 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3072 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3073 *@@@%%%=?*=@@@%%%*)
3074 eval ac_cv_prog_make_${ac_make}_set=yes;;
3075 *)
3076 eval ac_cv_prog_make_${ac_make}_set=no;;
3077 esac
3078 rm -f conftest.make
3079 fi
3080 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082 $as_echo "yes" >&6; }
3083 SET_MAKE=
3084 else
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3086 $as_echo "no" >&6; }
3087 SET_MAKE="MAKE=${MAKE-make}"
3088 fi
3089
3090 rm -rf .tst 2>/dev/null
3091 mkdir .tst 2>/dev/null
3092 if test -d .tst; then
3093 am__leading_dot=.
3094 else
3095 am__leading_dot=_
3096 fi
3097 rmdir .tst 2>/dev/null
3098
3099 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3100 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3101 # is not polluted with repeated "-I."
3102 am__isrc=' -I$(srcdir)'
3103 # test to see if srcdir already configured
3104 if test -f $srcdir/config.status; then
3105 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3106 fi
3107 fi
3108
3109 # test whether we have cygpath
3110 if test -z "$CYGPATH_W"; then
3111 if (cygpath --version) >/dev/null 2>/dev/null; then
3112 CYGPATH_W='cygpath -w'
3113 else
3114 CYGPATH_W=echo
3115 fi
3116 fi
3117
3118
3119 # Define the identity of the package.
3120 PACKAGE='libgo'
3121 VERSION='version-unused'
3122
3123
3124 # Some tools Automake needs.
3125
3126 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3127
3128
3129 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3130
3131
3132 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3133
3134
3135 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3136
3137
3138 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3139
3140 # We need awk for the "check" target. The system "awk" is bad on
3141 # some platforms.
3142 # Always define AMTAR for backward compatibility.
3143
3144 AMTAR=${AMTAR-"${am_missing_run}tar"}
3145
3146 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157 ac_ext=c
3158 ac_cpp='$CPP $CPPFLAGS'
3159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3162 if test -n "$ac_tool_prefix"; then
3163 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3164 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if test "${ac_cv_prog_CC+set}" = set; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$CC"; then
3171 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 CC=$ac_cv_prog_CC
3191 if test -n "$CC"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3193 $as_echo "$CC" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 fi
3201 if test -z "$ac_cv_prog_CC"; then
3202 ac_ct_CC=$CC
3203 # Extract the first word of "gcc", so it can be a program name with args.
3204 set dummy gcc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$ac_ct_CC"; then
3211 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_ac_ct_CC="gcc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3231 if test -n "$ac_ct_CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3233 $as_echo "$ac_ct_CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239 if test "x$ac_ct_CC" = x; then
3240 CC=""
3241 else
3242 case $cross_compiling:$ac_tool_warned in
3243 yes:)
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3246 ac_tool_warned=yes ;;
3247 esac
3248 CC=$ac_ct_CC
3249 fi
3250 else
3251 CC="$ac_cv_prog_CC"
3252 fi
3253
3254 if test -z "$CC"; then
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}cc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if test "${ac_cv_prog_CC+set}" = set; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_CC="${ac_tool_prefix}cc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 fi
3294 fi
3295 if test -z "$CC"; then
3296 # Extract the first word of "cc", so it can be a program name with args.
3297 set dummy cc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if test "${ac_cv_prog_CC+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 else
3306 ac_prog_rejected=no
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3315 ac_prog_rejected=yes
3316 continue
3317 fi
3318 ac_cv_prog_CC="cc"
3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3321 fi
3322 done
3323 done
3324 IFS=$as_save_IFS
3325
3326 if test $ac_prog_rejected = yes; then
3327 # We found a bogon in the path, so make sure we never use it.
3328 set dummy $ac_cv_prog_CC
3329 shift
3330 if test $# != 0; then
3331 # We chose a different compiler from the bogus one.
3332 # However, it has the same basename, so the bogon will be chosen
3333 # first if we set CC to just the basename; use the full file name.
3334 shift
3335 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3336 fi
3337 fi
3338 fi
3339 fi
3340 CC=$ac_cv_prog_CC
3341 if test -n "$CC"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3344 else
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 fi
3348
3349
3350 fi
3351 if test -z "$CC"; then
3352 if test -n "$ac_tool_prefix"; then
3353 for ac_prog in cl.exe
3354 do
3355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if test "${ac_cv_prog_CC+set}" = set; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376 done
3377 done
3378 IFS=$as_save_IFS
3379
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392 test -n "$CC" && break
3393 done
3394 fi
3395 if test -z "$CC"; then
3396 ac_ct_CC=$CC
3397 for ac_prog in cl.exe
3398 do
3399 # Extract the first word of "$ac_prog", so it can be a program name with args.
3400 set dummy $ac_prog; ac_word=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3404 $as_echo_n "(cached) " >&6
3405 else
3406 if test -n "$ac_ct_CC"; then
3407 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3408 else
3409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3410 for as_dir in $PATH
3411 do
3412 IFS=$as_save_IFS
3413 test -z "$as_dir" && as_dir=.
3414 for ac_exec_ext in '' $ac_executable_extensions; do
3415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3416 ac_cv_prog_ac_ct_CC="$ac_prog"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 break 2
3419 fi
3420 done
3421 done
3422 IFS=$as_save_IFS
3423
3424 fi
3425 fi
3426 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3427 if test -n "$ac_ct_CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3429 $as_echo "$ac_ct_CC" >&6; }
3430 else
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3433 fi
3434
3435
3436 test -n "$ac_ct_CC" && break
3437 done
3438
3439 if test "x$ac_ct_CC" = x; then
3440 CC=""
3441 else
3442 case $cross_compiling:$ac_tool_warned in
3443 yes:)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3447 esac
3448 CC=$ac_ct_CC
3449 fi
3450 fi
3451
3452 fi
3453
3454
3455 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error "no acceptable C compiler found in \$PATH
3458 See \`config.log' for more details." "$LINENO" 5; }
3459
3460 # Provide some information about the compiler.
3461 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3462 set X $ac_compile
3463 ac_compiler=$2
3464 for ac_option in --version -v -V -qversion; do
3465 { { ac_try="$ac_compiler $ac_option >&5"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3471 $as_echo "$ac_try_echo"; } >&5
3472 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3473 ac_status=$?
3474 if test -s conftest.err; then
3475 sed '10a\
3476 ... rest of stderr output deleted ...
3477 10q' conftest.err >conftest.er1
3478 cat conftest.er1 >&5
3479 rm -f conftest.er1 conftest.err
3480 fi
3481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3482 test $ac_status = 0; }
3483 done
3484
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 ac_clean_files_save=$ac_clean_files
3497 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3498 # Try to create an executable without -o first, disregard a.out.
3499 # It will help us diagnose broken compilers, and finding out an intuition
3500 # of exeext.
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3502 $as_echo_n "checking for C compiler default output file name... " >&6; }
3503 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3504
3505 # The possible output files:
3506 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3507
3508 ac_rmfiles=
3509 for ac_file in $ac_files
3510 do
3511 case $ac_file in
3512 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3513 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3514 esac
3515 done
3516 rm -f $ac_rmfiles
3517
3518 if { { ac_try="$ac_link_default"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_link_default") 2>&5
3526 ac_status=$?
3527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3528 test $ac_status = 0; }; then :
3529 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3530 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3531 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3532 # so that the user can short-circuit this test for compilers unknown to
3533 # Autoconf.
3534 for ac_file in $ac_files ''
3535 do
3536 test -f "$ac_file" || continue
3537 case $ac_file in
3538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3539 ;;
3540 [ab].out )
3541 # We found the default executable, but exeext='' is most
3542 # certainly right.
3543 break;;
3544 *.* )
3545 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3546 then :; else
3547 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3548 fi
3549 # We set ac_cv_exeext here because the later test for it is not
3550 # safe: cross compilers may not add the suffix if given an `-o'
3551 # argument, so we may need to know it at that point already.
3552 # Even if this section looks crufty: it has the advantage of
3553 # actually working.
3554 break;;
3555 * )
3556 break;;
3557 esac
3558 done
3559 test "$ac_cv_exeext" = no && ac_cv_exeext=
3560
3561 else
3562 ac_file=''
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3565 $as_echo "$ac_file" >&6; }
3566 if test -z "$ac_file"; then :
3567 $as_echo "$as_me: failed program was:" >&5
3568 sed 's/^/| /' conftest.$ac_ext >&5
3569
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 { as_fn_set_status 77
3573 as_fn_error "C compiler cannot create executables
3574 See \`config.log' for more details." "$LINENO" 5; }; }
3575 fi
3576 ac_exeext=$ac_cv_exeext
3577
3578 # Check that the compiler produces executables we can run. If not, either
3579 # the compiler is broken, or we cross compile.
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3581 $as_echo_n "checking whether the C compiler works... " >&6; }
3582 # If not cross compiling, check that we can run a simple program.
3583 if test "$cross_compiling" != yes; then
3584 if { ac_try='./$ac_file'
3585 { { case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_try") 2>&5
3592 ac_status=$?
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; }; then
3595 cross_compiling=no
3596 else
3597 if test "$cross_compiling" = maybe; then
3598 cross_compiling=yes
3599 else
3600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602 as_fn_error "cannot run C compiled programs.
3603 If you meant to cross compile, use \`--host'.
3604 See \`config.log' for more details." "$LINENO" 5; }
3605 fi
3606 fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3609 $as_echo "yes" >&6; }
3610
3611 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3612 ac_clean_files=$ac_clean_files_save
3613 # Check that the compiler produces executables we can run. If not, either
3614 # the compiler is broken, or we cross compile.
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3616 $as_echo_n "checking whether we are cross compiling... " >&6; }
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618 $as_echo "$cross_compiling" >&6; }
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3621 $as_echo_n "checking for suffix of executables... " >&6; }
3622 if { { ac_try="$ac_link"
3623 case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629 (eval "$ac_link") 2>&5
3630 ac_status=$?
3631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632 test $ac_status = 0; }; then :
3633 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3634 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3635 # work properly (i.e., refer to `conftest.exe'), while it won't with
3636 # `rm'.
3637 for ac_file in conftest.exe conftest conftest.*; do
3638 test -f "$ac_file" || continue
3639 case $ac_file in
3640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3641 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 break;;
3643 * ) break;;
3644 esac
3645 done
3646 else
3647 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649 as_fn_error "cannot compute suffix of executables: cannot compile and link
3650 See \`config.log' for more details." "$LINENO" 5; }
3651 fi
3652 rm -f conftest$ac_cv_exeext
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3654 $as_echo "$ac_cv_exeext" >&6; }
3655
3656 rm -f conftest.$ac_ext
3657 EXEEXT=$ac_cv_exeext
3658 ac_exeext=$EXEEXT
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3660 $as_echo_n "checking for suffix of object files... " >&6; }
3661 if test "${ac_cv_objext+set}" = set; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3666
3667 int
3668 main ()
3669 {
3670
3671 ;
3672 return 0;
3673 }
3674 _ACEOF
3675 rm -f conftest.o conftest.obj
3676 if { { ac_try="$ac_compile"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683 (eval "$ac_compile") 2>&5
3684 ac_status=$?
3685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3686 test $ac_status = 0; }; then :
3687 for ac_file in conftest.o conftest.obj conftest.*; do
3688 test -f "$ac_file" || continue;
3689 case $ac_file in
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3692 break;;
3693 esac
3694 done
3695 else
3696 $as_echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3701 as_fn_error "cannot compute suffix of object files: cannot compile
3702 See \`config.log' for more details." "$LINENO" 5; }
3703 fi
3704 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3707 $as_echo "$ac_cv_objext" >&6; }
3708 OBJEXT=$ac_cv_objext
3709 ac_objext=$OBJEXT
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3711 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3712 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717
3718 int
3719 main ()
3720 {
3721 #ifndef __GNUC__
3722 choke me
3723 #endif
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730 ac_compiler_gnu=yes
3731 else
3732 ac_compiler_gnu=no
3733 fi
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3736
3737 fi
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3739 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3740 if test $ac_compiler_gnu = yes; then
3741 GCC=yes
3742 else
3743 GCC=
3744 fi
3745 ac_test_CFLAGS=${CFLAGS+set}
3746 ac_save_CFLAGS=$CFLAGS
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3748 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3749 if test "${ac_cv_prog_cc_g+set}" = set; then :
3750 $as_echo_n "(cached) " >&6
3751 else
3752 ac_save_c_werror_flag=$ac_c_werror_flag
3753 ac_c_werror_flag=yes
3754 ac_cv_prog_cc_g=no
3755 CFLAGS="-g"
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758
3759 int
3760 main ()
3761 {
3762
3763 ;
3764 return 0;
3765 }
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3768 ac_cv_prog_cc_g=yes
3769 else
3770 CFLAGS=""
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3773
3774 int
3775 main ()
3776 {
3777
3778 ;
3779 return 0;
3780 }
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783
3784 else
3785 ac_c_werror_flag=$ac_save_c_werror_flag
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789
3790 int
3791 main ()
3792 {
3793
3794 ;
3795 return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802 fi
3803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3807 fi
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3814 CFLAGS="-g -O2"
3815 else
3816 CFLAGS="-g"
3817 fi
3818 else
3819 if test "$GCC" = yes; then
3820 CFLAGS="-O2"
3821 else
3822 CFLAGS=
3823 fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 ac_cv_prog_cc_c89=no
3831 ac_save_CC=$CC
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #include <stdarg.h>
3835 #include <stdio.h>
3836 #include <sys/types.h>
3837 #include <sys/stat.h>
3838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3839 struct buf { int x; };
3840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3841 static char *e (p, i)
3842 char **p;
3843 int i;
3844 {
3845 return p[i];
3846 }
3847 static char *f (char * (*g) (char **, int), char **p, ...)
3848 {
3849 char *s;
3850 va_list v;
3851 va_start (v,p);
3852 s = g (p, va_arg (v,int));
3853 va_end (v);
3854 return s;
3855 }
3856
3857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3858 function prototypes and stuff, but not '\xHH' hex character constants.
3859 These don't provoke an error unfortunately, instead are silently treated
3860 as 'x'. The following induces an error, until -std is added to get
3861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3862 array size at least. It's necessary to write '\x00'==0 to get something
3863 that's true only with -std. */
3864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3865
3866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3867 inside strings and character constants. */
3868 #define FOO(x) 'x'
3869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3870
3871 int test (int i, double x);
3872 struct s1 {int (*f) (int a);};
3873 struct s2 {int (*f) (double a);};
3874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3875 int argc;
3876 char **argv;
3877 int
3878 main ()
3879 {
3880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887 do
3888 CC="$ac_save_CC $ac_arg"
3889 if ac_fn_c_try_compile "$LINENO"; then :
3890 ac_cv_prog_cc_c89=$ac_arg
3891 fi
3892 rm -f core conftest.err conftest.$ac_objext
3893 test "x$ac_cv_prog_cc_c89" != "xno" && break
3894 done
3895 rm -f conftest.$ac_ext
3896 CC=$ac_save_CC
3897
3898 fi
3899 # AC_CACHE_VAL
3900 case "x$ac_cv_prog_cc_c89" in
3901 x)
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3903 $as_echo "none needed" >&6; } ;;
3904 xno)
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3906 $as_echo "unsupported" >&6; } ;;
3907 *)
3908 CC="$CC $ac_cv_prog_cc_c89"
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3911 esac
3912 if test "x$ac_cv_prog_cc_c89" != xno; then :
3913
3914 fi
3915
3916 ac_ext=c
3917 ac_cpp='$CPP $CPPFLAGS'
3918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3921 DEPDIR="${am__leading_dot}deps"
3922
3923 ac_config_commands="$ac_config_commands depfiles"
3924
3925
3926 am_make=${MAKE-make}
3927 cat > confinc << 'END'
3928 am__doit:
3929 @echo this is the am__doit target
3930 .PHONY: am__doit
3931 END
3932 # If we don't find an include directive, just comment out the code.
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3934 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3935 am__include="#"
3936 am__quote=
3937 _am_result=none
3938 # First try GNU make style include.
3939 echo "include confinc" > confmf
3940 # Ignore all kinds of additional output from `make'.
3941 case `$am_make -s -f confmf 2> /dev/null` in #(
3942 *the\ am__doit\ target*)
3943 am__include=include
3944 am__quote=
3945 _am_result=GNU
3946 ;;
3947 esac
3948 # Now try BSD make style include.
3949 if test "$am__include" = "#"; then
3950 echo '.include "confinc"' > confmf
3951 case `$am_make -s -f confmf 2> /dev/null` in #(
3952 *the\ am__doit\ target*)
3953 am__include=.include
3954 am__quote="\""
3955 _am_result=BSD
3956 ;;
3957 esac
3958 fi
3959
3960
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3962 $as_echo "$_am_result" >&6; }
3963 rm -f confinc confmf
3964
3965 # Check whether --enable-dependency-tracking was given.
3966 if test "${enable_dependency_tracking+set}" = set; then :
3967 enableval=$enable_dependency_tracking;
3968 fi
3969
3970 if test "x$enable_dependency_tracking" != xno; then
3971 am_depcomp="$ac_aux_dir/depcomp"
3972 AMDEPBACKSLASH='\'
3973 fi
3974 if test "x$enable_dependency_tracking" != xno; then
3975 AMDEP_TRUE=
3976 AMDEP_FALSE='#'
3977 else
3978 AMDEP_TRUE='#'
3979 AMDEP_FALSE=
3980 fi
3981
3982
3983
3984 depcc="$CC" am_compiler_list=
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3987 $as_echo_n "checking dependency style of $depcc... " >&6; }
3988 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3992 # We make a subdir and do the tests there. Otherwise we can end up
3993 # making bogus files that we don't know about and never remove. For
3994 # instance it was reported that on HP-UX the gcc test will end up
3995 # making a dummy file named `D' -- because `-MD' means `put the output
3996 # in D'.
3997 mkdir conftest.dir
3998 # Copy depcomp to subdir because otherwise we won't find it if we're
3999 # using a relative directory.
4000 cp "$am_depcomp" conftest.dir
4001 cd conftest.dir
4002 # We will build objects and dependencies in a subdirectory because
4003 # it helps to detect inapplicable dependency modes. For instance
4004 # both Tru64's cc and ICC support -MD to output dependencies as a
4005 # side effect of compilation, but ICC will put the dependencies in
4006 # the current directory while Tru64 will put them in the object
4007 # directory.
4008 mkdir sub
4009
4010 am_cv_CC_dependencies_compiler_type=none
4011 if test "$am_compiler_list" = ""; then
4012 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4013 fi
4014 am__universal=false
4015 case " $depcc " in #(
4016 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4017 esac
4018
4019 for depmode in $am_compiler_list; do
4020 # Setup a source with many dependencies, because some compilers
4021 # like to wrap large dependency lists on column 80 (with \), and
4022 # we should not choose a depcomp mode which is confused by this.
4023 #
4024 # We need to recreate these files for each test, as the compiler may
4025 # overwrite some of them when testing with obscure command lines.
4026 # This happens at least with the AIX C compiler.
4027 : > sub/conftest.c
4028 for i in 1 2 3 4 5 6; do
4029 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4030 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4031 # Solaris 8's {/usr,}/bin/sh.
4032 touch sub/conftst$i.h
4033 done
4034 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4035
4036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4037 # mode. It turns out that the SunPro C++ compiler does not properly
4038 # handle `-M -o', and we need to detect this. Also, some Intel
4039 # versions had trouble with output in subdirs
4040 am__obj=sub/conftest.${OBJEXT-o}
4041 am__minus_obj="-o $am__obj"
4042 case $depmode in
4043 gcc)
4044 # This depmode causes a compiler race in universal mode.
4045 test "$am__universal" = false || continue
4046 ;;
4047 nosideeffect)
4048 # after this tag, mechanisms are not by side-effect, so they'll
4049 # only be used when explicitly requested
4050 if test "x$enable_dependency_tracking" = xyes; then
4051 continue
4052 else
4053 break
4054 fi
4055 ;;
4056 msvisualcpp | msvcmsys)
4057 # This compiler won't grok `-c -o', but also, the minuso test has
4058 # not run yet. These depmodes are late enough in the game, and
4059 # so weak that their functioning should not be impacted.
4060 am__obj=conftest.${OBJEXT-o}
4061 am__minus_obj=
4062 ;;
4063 none) break ;;
4064 esac
4065 if depmode=$depmode \
4066 source=sub/conftest.c object=$am__obj \
4067 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4068 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4069 >/dev/null 2>conftest.err &&
4070 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4071 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4072 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4073 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4074 # icc doesn't choke on unknown options, it will just issue warnings
4075 # or remarks (even with -Werror). So we grep stderr for any message
4076 # that says an option was ignored or not supported.
4077 # When given -MP, icc 7.0 and 7.1 complain thusly:
4078 # icc: Command line warning: ignoring option '-M'; no argument required
4079 # The diagnosis changed in icc 8.0:
4080 # icc: Command line remark: option '-MP' not supported
4081 if (grep 'ignoring option' conftest.err ||
4082 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4083 am_cv_CC_dependencies_compiler_type=$depmode
4084 break
4085 fi
4086 fi
4087 done
4088
4089 cd ..
4090 rm -rf conftest.dir
4091 else
4092 am_cv_CC_dependencies_compiler_type=none
4093 fi
4094
4095 fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4097 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4098 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4099
4100 if
4101 test "x$enable_dependency_tracking" != xno \
4102 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4103 am__fastdepCC_TRUE=
4104 am__fastdepCC_FALSE='#'
4105 else
4106 am__fastdepCC_TRUE='#'
4107 am__fastdepCC_FALSE=
4108 fi
4109
4110
4111 ac_ext=go
4112 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4113 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4114 ac_compile_gnu=yes
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if test "${ac_cv_prog_GOC+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -n "$GOC"; then
4124 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137 done
4138 done
4139 IFS=$as_save_IFS
4140
4141 fi
4142 fi
4143 GOC=$ac_cv_prog_GOC
4144 if test -n "$GOC"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4146 $as_echo "$GOC" >&6; }
4147 else
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4150 fi
4151
4152
4153 fi
4154 if test -z "$ac_cv_prog_GOC"; then
4155 ac_ct_GOC=$GOC
4156 # Extract the first word of "gccgo", so it can be a program name with args.
4157 set dummy gccgo; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$ac_ct_GOC"; then
4164 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_ac_ct_GOC="gccgo"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4176 fi
4177 done
4178 done
4179 IFS=$as_save_IFS
4180
4181 fi
4182 fi
4183 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4184 if test -n "$ac_ct_GOC"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4186 $as_echo "$ac_ct_GOC" >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4190 fi
4191
4192 if test "x$ac_ct_GOC" = x; then
4193 GOC=""
4194 else
4195 case $cross_compiling:$ac_tool_warned in
4196 yes:)
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4199 ac_tool_warned=yes ;;
4200 esac
4201 GOC=$ac_ct_GOC
4202 fi
4203 else
4204 GOC="$ac_cv_prog_GOC"
4205 fi
4206
4207 if test -z "$GOC"; then
4208 if test -n "$ac_tool_prefix"; then
4209 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4210 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if test "${ac_cv_prog_GOC+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 if test -n "$GOC"; then
4217 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 break 2
4229 fi
4230 done
4231 done
4232 IFS=$as_save_IFS
4233
4234 fi
4235 fi
4236 GOC=$ac_cv_prog_GOC
4237 if test -n "$GOC"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4239 $as_echo "$GOC" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245
4246 fi
4247 fi
4248 if test -z "$GOC"; then
4249 # Extract the first word of "gccgo", so it can be a program name with args.
4250 set dummy gccgo; ac_word=$2
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4252 $as_echo_n "checking for $ac_word... " >&6; }
4253 if test "${ac_cv_prog_GOC+set}" = set; then :
4254 $as_echo_n "(cached) " >&6
4255 else
4256 if test -n "$GOC"; then
4257 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4258 else
4259 ac_prog_rejected=no
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 for as_dir in $PATH
4262 do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4268 ac_prog_rejected=yes
4269 continue
4270 fi
4271 ac_cv_prog_GOC="gccgo"
4272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4273 break 2
4274 fi
4275 done
4276 done
4277 IFS=$as_save_IFS
4278
4279 if test $ac_prog_rejected = yes; then
4280 # We found a bogon in the path, so make sure we never use it.
4281 set dummy $ac_cv_prog_GOC
4282 shift
4283 if test $# != 0; then
4284 # We chose a different compiler from the bogus one.
4285 # However, it has the same basename, so the bogon will be chosen
4286 # first if we set GOC to just the basename; use the full file name.
4287 shift
4288 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4289 fi
4290 fi
4291 fi
4292 fi
4293 GOC=$ac_cv_prog_GOC
4294 if test -n "$GOC"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4296 $as_echo "$GOC" >&6; }
4297 else
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4300 fi
4301
4302
4303 fi
4304
4305
4306 # Provide some information about the compiler.
4307 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4308 set X $ac_compile
4309 ac_compiler=$2
4310 { { ac_try="$ac_compiler --version >&5"
4311 case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314 esac
4315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4316 $as_echo "$ac_try_echo"; } >&5
4317 (eval "$ac_compiler --version >&5") 2>conftest.err
4318 ac_status=$?
4319 if test -s conftest.err; then
4320 sed '10a\
4321 ... rest of stderr output deleted ...
4322 10q' conftest.err >conftest.er1
4323 cat conftest.er1 >&5
4324 rm -f conftest.er1 conftest.err
4325 fi
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; }
4328 GOCFLAGS="-g -O2"
4329 ac_ext=c
4330 ac_cpp='$CPP $CPPFLAGS'
4331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4334
4335
4336
4337
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4341 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4342 # Check whether --enable-maintainer-mode was given.
4343 if test "${enable_maintainer_mode+set}" = set; then :
4344 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4345 else
4346 USE_MAINTAINER_MODE=no
4347 fi
4348
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4350 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4351 if test $USE_MAINTAINER_MODE = yes; then
4352 MAINTAINER_MODE_TRUE=
4353 MAINTAINER_MODE_FALSE='#'
4354 else
4355 MAINTAINER_MODE_TRUE='#'
4356 MAINTAINER_MODE_FALSE=
4357 fi
4358
4359 MAINT=$MAINTAINER_MODE_TRUE
4360
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4364 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4365 if test "${ac_cv_path_SED+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4369 for ac_i in 1 2 3 4 5 6 7; do
4370 ac_script="$ac_script$as_nl$ac_script"
4371 done
4372 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4373 { ac_script=; unset ac_script;}
4374 if test -z "$SED"; then
4375 ac_path_SED_found=false
4376 # Loop through the user's path and test for each of PROGNAME-LIST
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4379 do
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_prog in sed gsed; do
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4385 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4386 # Check for GNU ac_path_SED and select it if it is found.
4387 # Check for GNU $ac_path_SED
4388 case `"$ac_path_SED" --version 2>&1` in
4389 *GNU*)
4390 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4391 *)
4392 ac_count=0
4393 $as_echo_n 0123456789 >"conftest.in"
4394 while :
4395 do
4396 cat "conftest.in" "conftest.in" >"conftest.tmp"
4397 mv "conftest.tmp" "conftest.in"
4398 cp "conftest.in" "conftest.nl"
4399 $as_echo '' >> "conftest.nl"
4400 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4401 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4402 as_fn_arith $ac_count + 1 && ac_count=$as_val
4403 if test $ac_count -gt ${ac_path_SED_max-0}; then
4404 # Best one so far, save it but keep looking for a better one
4405 ac_cv_path_SED="$ac_path_SED"
4406 ac_path_SED_max=$ac_count
4407 fi
4408 # 10*(2^10) chars as input seems more than enough
4409 test $ac_count -gt 10 && break
4410 done
4411 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4412 esac
4413
4414 $ac_path_SED_found && break 3
4415 done
4416 done
4417 done
4418 IFS=$as_save_IFS
4419 if test -z "$ac_cv_path_SED"; then
4420 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4421 fi
4422 else
4423 ac_cv_path_SED=$SED
4424 fi
4425
4426 fi
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4428 $as_echo "$ac_cv_path_SED" >&6; }
4429 SED="$ac_cv_path_SED"
4430 rm -f conftest.sed
4431
4432 test -z "$SED" && SED=sed
4433 Xsed="$SED -e 1s/^X//"
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4446 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4447 if test "${ac_cv_path_GREP+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -z "$GREP"; then
4451 ac_path_GREP_found=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4455 do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_prog in grep ggrep; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4461 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4462 # Check for GNU ac_path_GREP and select it if it is found.
4463 # Check for GNU $ac_path_GREP
4464 case `"$ac_path_GREP" --version 2>&1` in
4465 *GNU*)
4466 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4467 *)
4468 ac_count=0
4469 $as_echo_n 0123456789 >"conftest.in"
4470 while :
4471 do
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo 'GREP' >> "conftest.nl"
4476 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478 as_fn_arith $ac_count + 1 && ac_count=$as_val
4479 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_GREP="$ac_path_GREP"
4482 ac_path_GREP_max=$ac_count
4483 fi
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4486 done
4487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4488 esac
4489
4490 $ac_path_GREP_found && break 3
4491 done
4492 done
4493 done
4494 IFS=$as_save_IFS
4495 if test -z "$ac_cv_path_GREP"; then
4496 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4497 fi
4498 else
4499 ac_cv_path_GREP=$GREP
4500 fi
4501
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4504 $as_echo "$ac_cv_path_GREP" >&6; }
4505 GREP="$ac_cv_path_GREP"
4506
4507
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4509 $as_echo_n "checking for egrep... " >&6; }
4510 if test "${ac_cv_path_EGREP+set}" = set; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4514 then ac_cv_path_EGREP="$GREP -E"
4515 else
4516 if test -z "$EGREP"; then
4517 ac_path_EGREP_found=false
4518 # Loop through the user's path and test for each of PROGNAME-LIST
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4521 do
4522 IFS=$as_save_IFS
4523 test -z "$as_dir" && as_dir=.
4524 for ac_prog in egrep; do
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4527 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4528 # Check for GNU ac_path_EGREP and select it if it is found.
4529 # Check for GNU $ac_path_EGREP
4530 case `"$ac_path_EGREP" --version 2>&1` in
4531 *GNU*)
4532 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4533 *)
4534 ac_count=0
4535 $as_echo_n 0123456789 >"conftest.in"
4536 while :
4537 do
4538 cat "conftest.in" "conftest.in" >"conftest.tmp"
4539 mv "conftest.tmp" "conftest.in"
4540 cp "conftest.in" "conftest.nl"
4541 $as_echo 'EGREP' >> "conftest.nl"
4542 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4544 as_fn_arith $ac_count + 1 && ac_count=$as_val
4545 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4546 # Best one so far, save it but keep looking for a better one
4547 ac_cv_path_EGREP="$ac_path_EGREP"
4548 ac_path_EGREP_max=$ac_count
4549 fi
4550 # 10*(2^10) chars as input seems more than enough
4551 test $ac_count -gt 10 && break
4552 done
4553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4554 esac
4555
4556 $ac_path_EGREP_found && break 3
4557 done
4558 done
4559 done
4560 IFS=$as_save_IFS
4561 if test -z "$ac_cv_path_EGREP"; then
4562 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4563 fi
4564 else
4565 ac_cv_path_EGREP=$EGREP
4566 fi
4567
4568 fi
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4571 $as_echo "$ac_cv_path_EGREP" >&6; }
4572 EGREP="$ac_cv_path_EGREP"
4573
4574
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4576 $as_echo_n "checking for fgrep... " >&6; }
4577 if test "${ac_cv_path_FGREP+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4581 then ac_cv_path_FGREP="$GREP -F"
4582 else
4583 if test -z "$FGREP"; then
4584 ac_path_FGREP_found=false
4585 # Loop through the user's path and test for each of PROGNAME-LIST
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4588 do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_prog in fgrep; do
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4594 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4595 # Check for GNU ac_path_FGREP and select it if it is found.
4596 # Check for GNU $ac_path_FGREP
4597 case `"$ac_path_FGREP" --version 2>&1` in
4598 *GNU*)
4599 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4600 *)
4601 ac_count=0
4602 $as_echo_n 0123456789 >"conftest.in"
4603 while :
4604 do
4605 cat "conftest.in" "conftest.in" >"conftest.tmp"
4606 mv "conftest.tmp" "conftest.in"
4607 cp "conftest.in" "conftest.nl"
4608 $as_echo 'FGREP' >> "conftest.nl"
4609 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611 as_fn_arith $ac_count + 1 && ac_count=$as_val
4612 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4613 # Best one so far, save it but keep looking for a better one
4614 ac_cv_path_FGREP="$ac_path_FGREP"
4615 ac_path_FGREP_max=$ac_count
4616 fi
4617 # 10*(2^10) chars as input seems more than enough
4618 test $ac_count -gt 10 && break
4619 done
4620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 esac
4622
4623 $ac_path_FGREP_found && break 3
4624 done
4625 done
4626 done
4627 IFS=$as_save_IFS
4628 if test -z "$ac_cv_path_FGREP"; then
4629 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4630 fi
4631 else
4632 ac_cv_path_FGREP=$FGREP
4633 fi
4634
4635 fi
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4638 $as_echo "$ac_cv_path_FGREP" >&6; }
4639 FGREP="$ac_cv_path_FGREP"
4640
4641
4642 test -z "$GREP" && GREP=grep
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4661 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4662 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4665 $as_echo_n "checking how to print strings... " >&6; }
4666 # Test print first, because it will be a builtin if present.
4667 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4668 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4669 ECHO='print -r --'
4670 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4671 ECHO='printf %s\n'
4672 else
4673 # Use this function as a fallback that always works.
4674 func_fallback_echo ()
4675 {
4676 eval 'cat <<_LTECHO_EOF
4677 $1
4678 _LTECHO_EOF'
4679 }
4680 ECHO='func_fallback_echo'
4681 fi
4682
4683 # func_echo_all arg...
4684 # Invoke $ECHO with all args, space-separated.
4685 func_echo_all ()
4686 {
4687 $ECHO ""
4688 }
4689
4690 case "$ECHO" in
4691 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4692 $as_echo "printf" >&6; } ;;
4693 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4694 $as_echo "print -r" >&6; } ;;
4695 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4696 $as_echo "cat" >&6; } ;;
4697 esac
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714 # Check whether --with-gnu-ld was given.
4715 if test "${with_gnu_ld+set}" = set; then :
4716 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4717 else
4718 with_gnu_ld=no
4719 fi
4720
4721 ac_prog=ld
4722 if test "$GCC" = yes; then
4723 # Check if gcc -print-prog-name=ld gives a path.
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4725 $as_echo_n "checking for ld used by $CC... " >&6; }
4726 case $host in
4727 *-*-mingw*)
4728 # gcc leaves a trailing carriage return which upsets mingw
4729 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4730 *)
4731 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4732 esac
4733 case $ac_prog in
4734 # Accept absolute paths.
4735 [\\/]* | ?:[\\/]*)
4736 re_direlt='/[^/][^/]*/\.\./'
4737 # Canonicalize the pathname of ld
4738 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4739 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4740 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4741 done
4742 test -z "$LD" && LD="$ac_prog"
4743 ;;
4744 "")
4745 # If it fails, then pretend we aren't using GCC.
4746 ac_prog=ld
4747 ;;
4748 *)
4749 # If it is relative, then search for the first ld in PATH.
4750 with_gnu_ld=unknown
4751 ;;
4752 esac
4753 elif test "$with_gnu_ld" = yes; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4755 $as_echo_n "checking for GNU ld... " >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4758 $as_echo_n "checking for non-GNU ld... " >&6; }
4759 fi
4760 if test "${lt_cv_path_LD+set}" = set; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -z "$LD"; then
4764 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4765 for ac_dir in $PATH; do
4766 IFS="$lt_save_ifs"
4767 test -z "$ac_dir" && ac_dir=.
4768 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4769 lt_cv_path_LD="$ac_dir/$ac_prog"
4770 # Check to see if the program is GNU ld. I'd rather use --version,
4771 # but apparently some variants of GNU ld only accept -v.
4772 # Break only if it was the GNU/non-GNU ld that we prefer.
4773 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4774 *GNU* | *'with BFD'*)
4775 test "$with_gnu_ld" != no && break
4776 ;;
4777 *)
4778 test "$with_gnu_ld" != yes && break
4779 ;;
4780 esac
4781 fi
4782 done
4783 IFS="$lt_save_ifs"
4784 else
4785 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4786 fi
4787 fi
4788
4789 LD="$lt_cv_path_LD"
4790 if test -n "$LD"; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4792 $as_echo "$LD" >&6; }
4793 else
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4795 $as_echo "no" >&6; }
4796 fi
4797 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4799 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4800 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4801 $as_echo_n "(cached) " >&6
4802 else
4803 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4804 case `$LD -v 2>&1 </dev/null` in
4805 *GNU* | *'with BFD'*)
4806 lt_cv_prog_gnu_ld=yes
4807 ;;
4808 *)
4809 lt_cv_prog_gnu_ld=no
4810 ;;
4811 esac
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4814 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4815 with_gnu_ld=$lt_cv_prog_gnu_ld
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825 if test -n "$ac_tool_prefix"; then
4826 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$RANLIB"; then
4834 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4838 do
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4846 fi
4847 done
4848 done
4849 IFS=$as_save_IFS
4850
4851 fi
4852 fi
4853 RANLIB=$ac_cv_prog_RANLIB
4854 if test -n "$RANLIB"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4856 $as_echo "$RANLIB" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861
4862
4863 fi
4864 if test -z "$ac_cv_prog_RANLIB"; then
4865 ac_ct_RANLIB=$RANLIB
4866 # Extract the first word of "ranlib", so it can be a program name with args.
4867 set dummy ranlib; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$ac_ct_RANLIB"; then
4874 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_ac_ct_RANLIB="ranlib"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4894 if test -n "$ac_ct_RANLIB"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4896 $as_echo "$ac_ct_RANLIB" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902 if test "x$ac_ct_RANLIB" = x; then
4903 RANLIB=":"
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911 RANLIB=$ac_ct_RANLIB
4912 fi
4913 else
4914 RANLIB="$ac_cv_prog_RANLIB"
4915 fi
4916
4917 if test -n "$ac_tool_prefix"; then
4918 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4919 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$OBJCOPY"; then
4926 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 OBJCOPY=$ac_cv_prog_OBJCOPY
4946 if test -n "$OBJCOPY"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4948 $as_echo "$OBJCOPY" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954
4955 fi
4956 if test -z "$ac_cv_prog_OBJCOPY"; then
4957 ac_ct_OBJCOPY=$OBJCOPY
4958 # Extract the first word of "objcopy", so it can be a program name with args.
4959 set dummy objcopy; ac_word=$2
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4961 $as_echo_n "checking for $ac_word... " >&6; }
4962 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 if test -n "$ac_ct_OBJCOPY"; then
4966 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4967 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH
4970 do
4971 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977 break 2
4978 fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982
4983 fi
4984 fi
4985 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4986 if test -n "$ac_ct_OBJCOPY"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4988 $as_echo "$ac_ct_OBJCOPY" >&6; }
4989 else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993
4994 if test "x$ac_ct_OBJCOPY" = x; then
4995 OBJCOPY="missing-objcopy"
4996 else
4997 case $cross_compiling:$ac_tool_warned in
4998 yes:)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003 OBJCOPY=$ac_ct_OBJCOPY
5004 fi
5005 else
5006 OBJCOPY="$ac_cv_prog_OBJCOPY"
5007 fi
5008
5009
5010 enable_dlopen=yes
5011
5012
5013
5014 case `pwd` in
5015 *\ * | *\ *)
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5017 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5018 esac
5019
5020
5021
5022 macro_version='2.2.7a'
5023 macro_revision='1.3134'
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037 ltmain="$ac_aux_dir/ltmain.sh"
5038
5039 # Backslashify metacharacters that are still active within
5040 # double-quoted strings.
5041 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5042
5043 # Same as above, but do not quote variable references.
5044 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5045
5046 # Sed substitution to delay expansion of an escaped shell variable in a
5047 # double_quote_subst'ed string.
5048 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5049
5050 # Sed substitution to delay expansion of an escaped single quote.
5051 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5052
5053 # Sed substitution to avoid accidental globbing in evaled expressions
5054 no_glob_subst='s/\*/\\\*/g'
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5057 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5058 if test "${lt_cv_path_NM+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 if test -n "$NM"; then
5062 # Let the user override the test.
5063 lt_cv_path_NM="$NM"
5064 else
5065 lt_nm_to_check="${ac_tool_prefix}nm"
5066 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5067 lt_nm_to_check="$lt_nm_to_check nm"
5068 fi
5069 for lt_tmp_nm in $lt_nm_to_check; do
5070 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5071 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5072 IFS="$lt_save_ifs"
5073 test -z "$ac_dir" && ac_dir=.
5074 tmp_nm="$ac_dir/$lt_tmp_nm"
5075 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5076 # Check to see if the nm accepts a BSD-compat flag.
5077 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5078 # nm: unknown option "B" ignored
5079 # Tru64's nm complains that /dev/null is an invalid object file
5080 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5081 */dev/null* | *'Invalid file or object type'*)
5082 lt_cv_path_NM="$tmp_nm -B"
5083 break
5084 ;;
5085 *)
5086 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5087 */dev/null*)
5088 lt_cv_path_NM="$tmp_nm -p"
5089 break
5090 ;;
5091 *)
5092 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5093 continue # so that we can try to find one that supports BSD flags
5094 ;;
5095 esac
5096 ;;
5097 esac
5098 fi
5099 done
5100 IFS="$lt_save_ifs"
5101 done
5102 : ${lt_cv_path_NM=no}
5103 fi
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5106 $as_echo "$lt_cv_path_NM" >&6; }
5107 if test "$lt_cv_path_NM" != "no"; then
5108 NM="$lt_cv_path_NM"
5109 else
5110 # Didn't find any BSD compatible name lister, look for dumpbin.
5111 if test -n "$DUMPBIN"; then :
5112 # Let the user override the test.
5113 else
5114 if test -n "$ac_tool_prefix"; then
5115 for ac_prog in dumpbin "link -dump"
5116 do
5117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$DUMPBIN"; then
5125 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5134 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5137 fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 DUMPBIN=$ac_cv_prog_DUMPBIN
5145 if test -n "$DUMPBIN"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5147 $as_echo "$DUMPBIN" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154 test -n "$DUMPBIN" && break
5155 done
5156 fi
5157 if test -z "$DUMPBIN"; then
5158 ac_ct_DUMPBIN=$DUMPBIN
5159 for ac_prog in dumpbin "link -dump"
5160 do
5161 # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$ac_ct_DUMPBIN"; then
5169 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5181 fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5189 if test -n "$ac_ct_DUMPBIN"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5191 $as_echo "$ac_ct_DUMPBIN" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 fi
5196
5197
5198 test -n "$ac_ct_DUMPBIN" && break
5199 done
5200
5201 if test "x$ac_ct_DUMPBIN" = x; then
5202 DUMPBIN=":"
5203 else
5204 case $cross_compiling:$ac_tool_warned in
5205 yes:)
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208 ac_tool_warned=yes ;;
5209 esac
5210 DUMPBIN=$ac_ct_DUMPBIN
5211 fi
5212 fi
5213
5214 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5215 *COFF*)
5216 DUMPBIN="$DUMPBIN -symbols"
5217 ;;
5218 *)
5219 DUMPBIN=:
5220 ;;
5221 esac
5222 fi
5223
5224 if test "$DUMPBIN" != ":"; then
5225 NM="$DUMPBIN"
5226 fi
5227 fi
5228 test -z "$NM" && NM=nm
5229
5230
5231
5232
5233
5234
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5236 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5237 if test "${lt_cv_nm_interface+set}" = set; then :
5238 $as_echo_n "(cached) " >&6
5239 else
5240 lt_cv_nm_interface="BSD nm"
5241 echo "int some_variable = 0;" > conftest.$ac_ext
5242 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5243 (eval "$ac_compile" 2>conftest.err)
5244 cat conftest.err >&5
5245 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5246 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5247 cat conftest.err >&5
5248 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5249 cat conftest.out >&5
5250 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5251 lt_cv_nm_interface="MS dumpbin"
5252 fi
5253 rm -f conftest*
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5256 $as_echo "$lt_cv_nm_interface" >&6; }
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5259 $as_echo_n "checking whether ln -s works... " >&6; }
5260 LN_S=$as_ln_s
5261 if test "$LN_S" = "ln -s"; then
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5263 $as_echo "yes" >&6; }
5264 else
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5266 $as_echo "no, using $LN_S" >&6; }
5267 fi
5268
5269 # find the maximum length of command line arguments
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5271 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5272 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 i=0
5276 teststring="ABCD"
5277
5278 case $build_os in
5279 msdosdjgpp*)
5280 # On DJGPP, this test can blow up pretty badly due to problems in libc
5281 # (any single argument exceeding 2000 bytes causes a buffer overrun
5282 # during glob expansion). Even if it were fixed, the result of this
5283 # check would be larger than it should be.
5284 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5285 ;;
5286
5287 gnu*)
5288 # Under GNU Hurd, this test is not required because there is
5289 # no limit to the length of command line arguments.
5290 # Libtool will interpret -1 as no limit whatsoever
5291 lt_cv_sys_max_cmd_len=-1;
5292 ;;
5293
5294 cygwin* | mingw* | cegcc*)
5295 # On Win9x/ME, this test blows up -- it succeeds, but takes
5296 # about 5 minutes as the teststring grows exponentially.
5297 # Worse, since 9x/ME are not pre-emptively multitasking,
5298 # you end up with a "frozen" computer, even though with patience
5299 # the test eventually succeeds (with a max line length of 256k).
5300 # Instead, let's just punt: use the minimum linelength reported by
5301 # all of the supported platforms: 8192 (on NT/2K/XP).
5302 lt_cv_sys_max_cmd_len=8192;
5303 ;;
5304
5305 mint*)
5306 # On MiNT this can take a long time and run out of memory.
5307 lt_cv_sys_max_cmd_len=8192;
5308 ;;
5309
5310 amigaos*)
5311 # On AmigaOS with pdksh, this test takes hours, literally.
5312 # So we just punt and use a minimum line length of 8192.
5313 lt_cv_sys_max_cmd_len=8192;
5314 ;;
5315
5316 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5317 # This has been around since 386BSD, at least. Likely further.
5318 if test -x /sbin/sysctl; then
5319 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5320 elif test -x /usr/sbin/sysctl; then
5321 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5322 else
5323 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5324 fi
5325 # And add a safety zone
5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5328 ;;
5329
5330 interix*)
5331 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5332 lt_cv_sys_max_cmd_len=196608
5333 ;;
5334
5335 osf*)
5336 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5337 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5338 # nice to cause kernel panics so lets avoid the loop below.
5339 # First set a reasonable default.
5340 lt_cv_sys_max_cmd_len=16384
5341 #
5342 if test -x /sbin/sysconfig; then
5343 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5344 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5345 esac
5346 fi
5347 ;;
5348 sco3.2v5*)
5349 lt_cv_sys_max_cmd_len=102400
5350 ;;
5351 sysv5* | sco5v6* | sysv4.2uw2*)
5352 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5353 if test -n "$kargmax"; then
5354 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5355 else
5356 lt_cv_sys_max_cmd_len=32768
5357 fi
5358 ;;
5359 *)
5360 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5361 if test -n "$lt_cv_sys_max_cmd_len"; then
5362 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5364 else
5365 # Make teststring a little bigger before we do anything with it.
5366 # a 1K string should be a reasonable start.
5367 for i in 1 2 3 4 5 6 7 8 ; do
5368 teststring=$teststring$teststring
5369 done
5370 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5371 # If test is not a shell built-in, we'll probably end up computing a
5372 # maximum length that is only half of the actual maximum length, but
5373 # we can't tell.
5374 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5375 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5376 test $i != 17 # 1/2 MB should be enough
5377 do
5378 i=`expr $i + 1`
5379 teststring=$teststring$teststring
5380 done
5381 # Only check the string length outside the loop.
5382 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5383 teststring=
5384 # Add a significant safety factor because C++ compilers can tack on
5385 # massive amounts of additional arguments before passing them to the
5386 # linker. It appears as though 1/2 is a usable value.
5387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5388 fi
5389 ;;
5390 esac
5391
5392 fi
5393
5394 if test -n $lt_cv_sys_max_cmd_len ; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5396 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5399 $as_echo "none" >&6; }
5400 fi
5401 max_cmd_len=$lt_cv_sys_max_cmd_len
5402
5403
5404
5405
5406
5407
5408 : ${CP="cp -f"}
5409 : ${MV="mv -f"}
5410 : ${RM="rm -f"}
5411
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5413 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5414 # Try some XSI features
5415 xsi_shell=no
5416 ( _lt_dummy="a/b/c"
5417 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5418 = c,a/b,, \
5419 && eval 'test $(( 1 + 1 )) -eq 2 \
5420 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5421 && xsi_shell=yes
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5423 $as_echo "$xsi_shell" >&6; }
5424
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5427 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5428 lt_shell_append=no
5429 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5430 >/dev/null 2>&1 \
5431 && lt_shell_append=yes
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5433 $as_echo "$lt_shell_append" >&6; }
5434
5435
5436 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5437 lt_unset=unset
5438 else
5439 lt_unset=false
5440 fi
5441
5442
5443
5444
5445
5446 # test EBCDIC or ASCII
5447 case `echo X|tr X '\101'` in
5448 A) # ASCII based system
5449 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5450 lt_SP2NL='tr \040 \012'
5451 lt_NL2SP='tr \015\012 \040\040'
5452 ;;
5453 *) # EBCDIC based system
5454 lt_SP2NL='tr \100 \n'
5455 lt_NL2SP='tr \r\n \100\100'
5456 ;;
5457 esac
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5468 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5469 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 lt_cv_ld_reload_flag='-r'
5473 fi
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5475 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5476 reload_flag=$lt_cv_ld_reload_flag
5477 case $reload_flag in
5478 "" | " "*) ;;
5479 *) reload_flag=" $reload_flag" ;;
5480 esac
5481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5482 case $host_os in
5483 darwin*)
5484 if test "$GCC" = yes; then
5485 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5486 else
5487 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5488 fi
5489 ;;
5490 esac
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500 if test -n "$ac_tool_prefix"; then
5501 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5502 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5506 $as_echo_n "(cached) " >&6
5507 else
5508 if test -n "$OBJDUMP"; then
5509 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514 IFS=$as_save_IFS
5515 test -z "$as_dir" && as_dir=.
5516 for ac_exec_ext in '' $ac_executable_extensions; do
5517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520 break 2
5521 fi
5522 done
5523 done
5524 IFS=$as_save_IFS
5525
5526 fi
5527 fi
5528 OBJDUMP=$ac_cv_prog_OBJDUMP
5529 if test -n "$OBJDUMP"; then
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5531 $as_echo "$OBJDUMP" >&6; }
5532 else
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 fi
5536
5537
5538 fi
5539 if test -z "$ac_cv_prog_OBJDUMP"; then
5540 ac_ct_OBJDUMP=$OBJDUMP
5541 # Extract the first word of "objdump", so it can be a program name with args.
5542 set dummy objdump; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -n "$ac_ct_OBJDUMP"; then
5549 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_exec_ext in '' $ac_executable_extensions; do
5557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560 break 2
5561 fi
5562 done
5563 done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5569 if test -n "$ac_ct_OBJDUMP"; then
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5571 $as_echo "$ac_ct_OBJDUMP" >&6; }
5572 else
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577 if test "x$ac_ct_OBJDUMP" = x; then
5578 OBJDUMP="false"
5579 else
5580 case $cross_compiling:$ac_tool_warned in
5581 yes:)
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5584 ac_tool_warned=yes ;;
5585 esac
5586 OBJDUMP=$ac_ct_OBJDUMP
5587 fi
5588 else
5589 OBJDUMP="$ac_cv_prog_OBJDUMP"
5590 fi
5591
5592 test -z "$OBJDUMP" && OBJDUMP=objdump
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5603 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5604 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5605 $as_echo_n "(cached) " >&6
5606 else
5607 lt_cv_file_magic_cmd='$MAGIC_CMD'
5608 lt_cv_file_magic_test_file=
5609 lt_cv_deplibs_check_method='unknown'
5610 # Need to set the preceding variable on all platforms that support
5611 # interlibrary dependencies.
5612 # 'none' -- dependencies not supported.
5613 # `unknown' -- same as none, but documents that we really don't know.
5614 # 'pass_all' -- all dependencies passed with no checks.
5615 # 'test_compile' -- check by making test program.
5616 # 'file_magic [[regex]]' -- check by looking for files in library path
5617 # which responds to the $file_magic_cmd with a given extended regex.
5618 # If you have `file' or equivalent on your system and you're not sure
5619 # whether `pass_all' will *always* work, you probably want this one.
5620
5621 case $host_os in
5622 aix[4-9]*)
5623 lt_cv_deplibs_check_method=pass_all
5624 ;;
5625
5626 beos*)
5627 lt_cv_deplibs_check_method=pass_all
5628 ;;
5629
5630 bsdi[45]*)
5631 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5632 lt_cv_file_magic_cmd='/usr/bin/file -L'
5633 lt_cv_file_magic_test_file=/shlib/libc.so
5634 ;;
5635
5636 cygwin*)
5637 # func_win32_libid is a shell function defined in ltmain.sh
5638 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5639 lt_cv_file_magic_cmd='func_win32_libid'
5640 ;;
5641
5642 mingw* | pw32*)
5643 # Base MSYS/MinGW do not provide the 'file' command needed by
5644 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5645 # unless we find 'file', for example because we are cross-compiling.
5646 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5647 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5648 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5649 lt_cv_file_magic_cmd='func_win32_libid'
5650 else
5651 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5652 lt_cv_file_magic_cmd='$OBJDUMP -f'
5653 fi
5654 ;;
5655
5656 cegcc*)
5657 # use the weaker test based on 'objdump'. See mingw*.
5658 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5659 lt_cv_file_magic_cmd='$OBJDUMP -f'
5660 ;;
5661
5662 darwin* | rhapsody*)
5663 lt_cv_deplibs_check_method=pass_all
5664 ;;
5665
5666 freebsd* | dragonfly*)
5667 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5668 case $host_cpu in
5669 i*86 )
5670 # Not sure whether the presence of OpenBSD here was a mistake.
5671 # Let's accept both of them until this is cleared up.
5672 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5673 lt_cv_file_magic_cmd=/usr/bin/file
5674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5675 ;;
5676 esac
5677 else
5678 lt_cv_deplibs_check_method=pass_all
5679 fi
5680 ;;
5681
5682 gnu*)
5683 lt_cv_deplibs_check_method=pass_all
5684 ;;
5685
5686 haiku*)
5687 lt_cv_deplibs_check_method=pass_all
5688 ;;
5689
5690 hpux10.20* | hpux11*)
5691 lt_cv_file_magic_cmd=/usr/bin/file
5692 case $host_cpu in
5693 ia64*)
5694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5695 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5696 ;;
5697 hppa*64*)
5698 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]'
5699 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5700 ;;
5701 *)
5702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5703 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5704 ;;
5705 esac
5706 ;;
5707
5708 interix[3-9]*)
5709 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5711 ;;
5712
5713 irix5* | irix6* | nonstopux*)
5714 case $LD in
5715 *-32|*"-32 ") libmagic=32-bit;;
5716 *-n32|*"-n32 ") libmagic=N32;;
5717 *-64|*"-64 ") libmagic=64-bit;;
5718 *) libmagic=never-match;;
5719 esac
5720 lt_cv_deplibs_check_method=pass_all
5721 ;;
5722
5723 # This must be Linux ELF.
5724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5725 lt_cv_deplibs_check_method=pass_all
5726 ;;
5727
5728 netbsd*)
5729 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5731 else
5732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5733 fi
5734 ;;
5735
5736 newos6*)
5737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5738 lt_cv_file_magic_cmd=/usr/bin/file
5739 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5740 ;;
5741
5742 *nto* | *qnx*)
5743 lt_cv_deplibs_check_method=pass_all
5744 ;;
5745
5746 openbsd*)
5747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5749 else
5750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5751 fi
5752 ;;
5753
5754 osf3* | osf4* | osf5*)
5755 lt_cv_deplibs_check_method=pass_all
5756 ;;
5757
5758 rdos*)
5759 lt_cv_deplibs_check_method=pass_all
5760 ;;
5761
5762 solaris*)
5763 lt_cv_deplibs_check_method=pass_all
5764 ;;
5765
5766 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5767 lt_cv_deplibs_check_method=pass_all
5768 ;;
5769
5770 sysv4 | sysv4.3*)
5771 case $host_vendor in
5772 motorola)
5773 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]'
5774 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5775 ;;
5776 ncr)
5777 lt_cv_deplibs_check_method=pass_all
5778 ;;
5779 sequent)
5780 lt_cv_file_magic_cmd='/bin/file'
5781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5782 ;;
5783 sni)
5784 lt_cv_file_magic_cmd='/bin/file'
5785 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5786 lt_cv_file_magic_test_file=/lib/libc.so
5787 ;;
5788 siemens)
5789 lt_cv_deplibs_check_method=pass_all
5790 ;;
5791 pc)
5792 lt_cv_deplibs_check_method=pass_all
5793 ;;
5794 esac
5795 ;;
5796
5797 tpf*)
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800 esac
5801
5802 fi
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5804 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5805 file_magic_cmd=$lt_cv_file_magic_cmd
5806 deplibs_check_method=$lt_cv_deplibs_check_method
5807 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820 if test -n "$ac_tool_prefix"; then
5821 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5822 set dummy ${ac_tool_prefix}ar; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if test "${ac_cv_prog_AR+set}" = set; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if test -n "$AR"; then
5829 ac_cv_prog_AR="$AR" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5838 ac_cv_prog_AR="${ac_tool_prefix}ar"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842 done
5843 done
5844 IFS=$as_save_IFS
5845
5846 fi
5847 fi
5848 AR=$ac_cv_prog_AR
5849 if test -n "$AR"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5851 $as_echo "$AR" >&6; }
5852 else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5855 fi
5856
5857
5858 fi
5859 if test -z "$ac_cv_prog_AR"; then
5860 ac_ct_AR=$AR
5861 # Extract the first word of "ar", so it can be a program name with args.
5862 set dummy ar; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test -n "$ac_ct_AR"; then
5869 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878 ac_cv_prog_ac_ct_AR="ar"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886 fi
5887 fi
5888 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5889 if test -n "$ac_ct_AR"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5891 $as_echo "$ac_ct_AR" >&6; }
5892 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896
5897 if test "x$ac_ct_AR" = x; then
5898 AR="false"
5899 else
5900 case $cross_compiling:$ac_tool_warned in
5901 yes:)
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904 ac_tool_warned=yes ;;
5905 esac
5906 AR=$ac_ct_AR
5907 fi
5908 else
5909 AR="$ac_cv_prog_AR"
5910 fi
5911
5912 test -z "$AR" && AR=ar
5913 test -z "$AR_FLAGS" && AR_FLAGS=cru
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925 if test -n "$ac_tool_prefix"; then
5926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5927 set dummy ${ac_tool_prefix}strip; ac_word=$2
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5929 $as_echo_n "checking for $ac_word... " >&6; }
5930 if test "${ac_cv_prog_STRIP+set}" = set; then :
5931 $as_echo_n "(cached) " >&6
5932 else
5933 if test -n "$STRIP"; then
5934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5935 else
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937 for as_dir in $PATH
5938 do
5939 IFS=$as_save_IFS
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 break 2
5946 fi
5947 done
5948 done
5949 IFS=$as_save_IFS
5950
5951 fi
5952 fi
5953 STRIP=$ac_cv_prog_STRIP
5954 if test -n "$STRIP"; then
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5956 $as_echo "$STRIP" >&6; }
5957 else
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959 $as_echo "no" >&6; }
5960 fi
5961
5962
5963 fi
5964 if test -z "$ac_cv_prog_STRIP"; then
5965 ac_ct_STRIP=$STRIP
5966 # Extract the first word of "strip", so it can be a program name with args.
5967 set dummy strip; ac_word=$2
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5969 $as_echo_n "checking for $ac_word... " >&6; }
5970 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972 else
5973 if test -n "$ac_ct_STRIP"; then
5974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979 IFS=$as_save_IFS
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_prog_ac_ct_STRIP="strip"
5984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5985 break 2
5986 fi
5987 done
5988 done
5989 IFS=$as_save_IFS
5990
5991 fi
5992 fi
5993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5994 if test -n "$ac_ct_STRIP"; then
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5996 $as_echo "$ac_ct_STRIP" >&6; }
5997 else
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999 $as_echo "no" >&6; }
6000 fi
6001
6002 if test "x$ac_ct_STRIP" = x; then
6003 STRIP=":"
6004 else
6005 case $cross_compiling:$ac_tool_warned in
6006 yes:)
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6009 ac_tool_warned=yes ;;
6010 esac
6011 STRIP=$ac_ct_STRIP
6012 fi
6013 else
6014 STRIP="$ac_cv_prog_STRIP"
6015 fi
6016
6017 test -z "$STRIP" && STRIP=:
6018
6019
6020
6021
6022
6023
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$RANLIB"; then
6033 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6045 fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 RANLIB=$ac_cv_prog_RANLIB
6053 if test -n "$RANLIB"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6055 $as_echo "$RANLIB" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062 fi
6063 if test -z "$ac_cv_prog_RANLIB"; then
6064 ac_ct_RANLIB=$RANLIB
6065 # Extract the first word of "ranlib", so it can be a program name with args.
6066 set dummy ranlib; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_RANLIB"; then
6073 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_RANLIB="ranlib"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6085 fi
6086 done
6087 done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6093 if test -n "$ac_ct_RANLIB"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6095 $as_echo "$ac_ct_RANLIB" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101 if test "x$ac_ct_RANLIB" = x; then
6102 RANLIB=":"
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 RANLIB=$ac_ct_RANLIB
6111 fi
6112 else
6113 RANLIB="$ac_cv_prog_RANLIB"
6114 fi
6115
6116 test -z "$RANLIB" && RANLIB=:
6117
6118
6119
6120
6121
6122
6123 # Determine commands to create old-style static archives.
6124 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6125 old_postinstall_cmds='chmod 644 $oldlib'
6126 old_postuninstall_cmds=
6127
6128 if test -n "$RANLIB"; then
6129 case $host_os in
6130 openbsd*)
6131 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6132 ;;
6133 *)
6134 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6135 ;;
6136 esac
6137 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6138 fi
6139
6140 case $host_os in
6141 darwin*)
6142 lock_old_archive_extraction=yes ;;
6143 *)
6144 lock_old_archive_extraction=no ;;
6145 esac
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185 # If no C compiler was specified, use CC.
6186 LTCC=${LTCC-"$CC"}
6187
6188 # If no C compiler flags were specified, use CFLAGS.
6189 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6190
6191 # Allow CC to be a program name with arguments.
6192 compiler=$CC
6193
6194
6195 # Check for command to grab the raw symbol name followed by C symbol from nm.
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6197 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6198 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6200 else
6201
6202 # These are sane defaults that work on at least a few old systems.
6203 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6204
6205 # Character class describing NM global symbol codes.
6206 symcode='[BCDEGRST]'
6207
6208 # Regexp to match symbols that can be accessed directly from C.
6209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6210
6211 # Define system-specific variables.
6212 case $host_os in
6213 aix*)
6214 symcode='[BCDT]'
6215 ;;
6216 cygwin* | mingw* | pw32* | cegcc*)
6217 symcode='[ABCDGISTW]'
6218 ;;
6219 hpux*)
6220 if test "$host_cpu" = ia64; then
6221 symcode='[ABCDEGRST]'
6222 fi
6223 ;;
6224 irix* | nonstopux*)
6225 symcode='[BCDEGRST]'
6226 ;;
6227 osf*)
6228 symcode='[BCDEGQRST]'
6229 ;;
6230 solaris*)
6231 symcode='[BDRT]'
6232 ;;
6233 sco3.2v5*)
6234 symcode='[DT]'
6235 ;;
6236 sysv4.2uw2*)
6237 symcode='[DT]'
6238 ;;
6239 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6240 symcode='[ABDT]'
6241 ;;
6242 sysv4)
6243 symcode='[DFNSTU]'
6244 ;;
6245 esac
6246
6247 # If we're using GNU nm, then use its standard symbol codes.
6248 case `$NM -V 2>&1` in
6249 *GNU* | *'with BFD'*)
6250 symcode='[ABCDGIRSTW]' ;;
6251 esac
6252
6253 # Transform an extracted symbol line into a proper C declaration.
6254 # Some systems (esp. on ia64) link data and code symbols differently,
6255 # so use this general approach.
6256 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6257
6258 # Transform an extracted symbol line into symbol name and symbol address
6259 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6260 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'"
6261
6262 # Handle CRLF in mingw tool chain
6263 opt_cr=
6264 case $build_os in
6265 mingw*)
6266 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6267 ;;
6268 esac
6269
6270 # Try without a prefix underscore, then with it.
6271 for ac_symprfx in "" "_"; do
6272
6273 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6274 symxfrm="\\1 $ac_symprfx\\2 \\2"
6275
6276 # Write the raw and C identifiers.
6277 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6278 # Fake it for dumpbin and say T for any non-static function
6279 # and D for any global variable.
6280 # Also find C++ and __fastcall symbols from MSVC++,
6281 # which start with @ or ?.
6282 lt_cv_sys_global_symbol_pipe="$AWK '"\
6283 " {last_section=section; section=\$ 3};"\
6284 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6285 " \$ 0!~/External *\|/{next};"\
6286 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6287 " {if(hide[section]) next};"\
6288 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6289 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6290 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6291 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6292 " ' prfx=^$ac_symprfx"
6293 else
6294 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6295 fi
6296
6297 # Check to see that the pipe works correctly.
6298 pipe_works=no
6299
6300 rm -f conftest*
6301 cat > conftest.$ac_ext <<_LT_EOF
6302 #ifdef __cplusplus
6303 extern "C" {
6304 #endif
6305 char nm_test_var;
6306 void nm_test_func(void);
6307 void nm_test_func(void){}
6308 #ifdef __cplusplus
6309 }
6310 #endif
6311 int main(){nm_test_var='a';nm_test_func();return(0);}
6312 _LT_EOF
6313
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 # Now try to grab the symbols.
6320 nlist=conftest.nm
6321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6322 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6323 ac_status=$?
6324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6325 test $ac_status = 0; } && test -s "$nlist"; then
6326 # Try sorting and uniquifying the output.
6327 if sort "$nlist" | uniq > "$nlist"T; then
6328 mv -f "$nlist"T "$nlist"
6329 else
6330 rm -f "$nlist"T
6331 fi
6332
6333 # Make sure that we snagged all the symbols we need.
6334 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6335 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6336 cat <<_LT_EOF > conftest.$ac_ext
6337 #ifdef __cplusplus
6338 extern "C" {
6339 #endif
6340
6341 _LT_EOF
6342 # Now generate the symbol file.
6343 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6344
6345 cat <<_LT_EOF >> conftest.$ac_ext
6346
6347 /* The mapping between symbol names and symbols. */
6348 const struct {
6349 const char *name;
6350 void *address;
6351 }
6352 lt__PROGRAM__LTX_preloaded_symbols[] =
6353 {
6354 { "@PROGRAM@", (void *) 0 },
6355 _LT_EOF
6356 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6357 cat <<\_LT_EOF >> conftest.$ac_ext
6358 {0, (void *) 0}
6359 };
6360
6361 /* This works around a problem in FreeBSD linker */
6362 #ifdef FREEBSD_WORKAROUND
6363 static const void *lt_preloaded_setup() {
6364 return lt__PROGRAM__LTX_preloaded_symbols;
6365 }
6366 #endif
6367
6368 #ifdef __cplusplus
6369 }
6370 #endif
6371 _LT_EOF
6372 # Now try linking the two files.
6373 mv conftest.$ac_objext conftstm.$ac_objext
6374 lt_save_LIBS="$LIBS"
6375 lt_save_CFLAGS="$CFLAGS"
6376 LIBS="conftstm.$ac_objext"
6377 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6379 (eval $ac_link) 2>&5
6380 ac_status=$?
6381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6382 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6383 pipe_works=yes
6384 fi
6385 LIBS="$lt_save_LIBS"
6386 CFLAGS="$lt_save_CFLAGS"
6387 else
6388 echo "cannot find nm_test_func in $nlist" >&5
6389 fi
6390 else
6391 echo "cannot find nm_test_var in $nlist" >&5
6392 fi
6393 else
6394 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6395 fi
6396 else
6397 echo "$progname: failed program was:" >&5
6398 cat conftest.$ac_ext >&5
6399 fi
6400 rm -rf conftest* conftst*
6401
6402 # Do not use the global_symbol_pipe unless it works.
6403 if test "$pipe_works" = yes; then
6404 break
6405 else
6406 lt_cv_sys_global_symbol_pipe=
6407 fi
6408 done
6409
6410 fi
6411
6412 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6413 lt_cv_sys_global_symbol_to_cdecl=
6414 fi
6415 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6417 $as_echo "failed" >&6; }
6418 else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6420 $as_echo "ok" >&6; }
6421 fi
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445 # Check whether --enable-libtool-lock was given.
6446 if test "${enable_libtool_lock+set}" = set; then :
6447 enableval=$enable_libtool_lock;
6448 fi
6449
6450 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6451
6452 # Some flags need to be propagated to the compiler or linker for good
6453 # libtool support.
6454 case $host in
6455 ia64-*-hpux*)
6456 # Find out which ABI we are using.
6457 echo 'int i;' > conftest.$ac_ext
6458 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6459 (eval $ac_compile) 2>&5
6460 ac_status=$?
6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6462 test $ac_status = 0; }; then
6463 case `/usr/bin/file conftest.$ac_objext` in
6464 *ELF-32*)
6465 HPUX_IA64_MODE="32"
6466 ;;
6467 *ELF-64*)
6468 HPUX_IA64_MODE="64"
6469 ;;
6470 esac
6471 fi
6472 rm -rf conftest*
6473 ;;
6474 *-*-irix6*)
6475 # Find out which ABI we are using.
6476 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6477 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6478 (eval $ac_compile) 2>&5
6479 ac_status=$?
6480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6481 test $ac_status = 0; }; then
6482 if test "$lt_cv_prog_gnu_ld" = yes; then
6483 case `/usr/bin/file conftest.$ac_objext` in
6484 *32-bit*)
6485 LD="${LD-ld} -melf32bsmip"
6486 ;;
6487 *N32*)
6488 LD="${LD-ld} -melf32bmipn32"
6489 ;;
6490 *64-bit*)
6491 LD="${LD-ld} -melf64bmip"
6492 ;;
6493 esac
6494 else
6495 case `/usr/bin/file conftest.$ac_objext` in
6496 *32-bit*)
6497 LD="${LD-ld} -32"
6498 ;;
6499 *N32*)
6500 LD="${LD-ld} -n32"
6501 ;;
6502 *64-bit*)
6503 LD="${LD-ld} -64"
6504 ;;
6505 esac
6506 fi
6507 fi
6508 rm -rf conftest*
6509 ;;
6510
6511 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6512 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6513 # Find out which ABI we are using.
6514 echo 'int i;' > conftest.$ac_ext
6515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6516 (eval $ac_compile) 2>&5
6517 ac_status=$?
6518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6519 test $ac_status = 0; }; then
6520 case `/usr/bin/file conftest.o` in
6521 *32-bit*)
6522 case $host in
6523 x86_64-*kfreebsd*-gnu)
6524 LD="${LD-ld} -m elf_i386_fbsd"
6525 ;;
6526 x86_64-*linux*)
6527 LD="${LD-ld} -m elf_i386"
6528 ;;
6529 powerpc64le-*linux*)
6530 LD="${LD-ld} -m elf32lppclinux"
6531 ;;
6532 powerpc64-*linux*)
6533 LD="${LD-ld} -m elf32ppclinux"
6534 ;;
6535 s390x-*linux*)
6536 LD="${LD-ld} -m elf_s390"
6537 ;;
6538 sparc64-*linux*)
6539 LD="${LD-ld} -m elf32_sparc"
6540 ;;
6541 esac
6542 ;;
6543 *64-bit*)
6544 case $host in
6545 x86_64-*kfreebsd*-gnu)
6546 LD="${LD-ld} -m elf_x86_64_fbsd"
6547 ;;
6548 x86_64-*linux*)
6549 LD="${LD-ld} -m elf_x86_64"
6550 ;;
6551 powerpcle-*linux*)
6552 LD="${LD-ld} -m elf64lppc"
6553 ;;
6554 powerpc-*linux*)
6555 LD="${LD-ld} -m elf64ppc"
6556 ;;
6557 s390*-*linux*|s390*-*tpf*)
6558 LD="${LD-ld} -m elf64_s390"
6559 ;;
6560 sparc*-*linux*)
6561 LD="${LD-ld} -m elf64_sparc"
6562 ;;
6563 esac
6564 ;;
6565 esac
6566 fi
6567 rm -rf conftest*
6568 ;;
6569
6570 *-*-sco3.2v5*)
6571 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6572 SAVE_CFLAGS="$CFLAGS"
6573 CFLAGS="$CFLAGS -belf"
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6575 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6576 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 ac_ext=c
6580 ac_cpp='$CPP $CPPFLAGS'
6581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6584
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586 /* end confdefs.h. */
6587
6588 int
6589 main ()
6590 {
6591
6592 ;
6593 return 0;
6594 }
6595 _ACEOF
6596 if ac_fn_c_try_link "$LINENO"; then :
6597 lt_cv_cc_needs_belf=yes
6598 else
6599 lt_cv_cc_needs_belf=no
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext \
6602 conftest$ac_exeext conftest.$ac_ext
6603 ac_ext=c
6604 ac_cpp='$CPP $CPPFLAGS'
6605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608
6609 fi
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6611 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6612 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6613 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6614 CFLAGS="$SAVE_CFLAGS"
6615 fi
6616 ;;
6617 *-*solaris*)
6618 # Find out which ABI we are using.
6619 echo 'int i;' > conftest.$ac_ext
6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621 (eval $ac_compile) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 case `/usr/bin/file conftest.o` in
6626 *64-bit*)
6627 case $lt_cv_prog_gnu_ld in
6628 yes*)
6629 case $host in
6630 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6631 LD="${LD-ld} -m elf_x86_64"
6632 ;;
6633 sparc*-*-solaris*)
6634 LD="${LD-ld} -m elf64_sparc"
6635 ;;
6636 esac
6637 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6638 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6639 LD="${LD-ld}_sol2"
6640 fi
6641 ;;
6642 *)
6643 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6644 LD="${LD-ld} -64"
6645 fi
6646 ;;
6647 esac
6648 ;;
6649 esac
6650 fi
6651 rm -rf conftest*
6652 ;;
6653 esac
6654
6655 need_locks="$enable_libtool_lock"
6656
6657
6658 case $host_os in
6659 rhapsody* | darwin*)
6660 if test -n "$ac_tool_prefix"; then
6661 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664 $as_echo_n "checking for $ac_word... " >&6; }
6665 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6666 $as_echo_n "(cached) " >&6
6667 else
6668 if test -n "$DSYMUTIL"; then
6669 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674 IFS=$as_save_IFS
6675 test -z "$as_dir" && as_dir=.
6676 for ac_exec_ext in '' $ac_executable_extensions; do
6677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680 break 2
6681 fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6689 if test -n "$DSYMUTIL"; then
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6691 $as_echo "$DSYMUTIL" >&6; }
6692 else
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6694 $as_echo "no" >&6; }
6695 fi
6696
6697
6698 fi
6699 if test -z "$ac_cv_prog_DSYMUTIL"; then
6700 ac_ct_DSYMUTIL=$DSYMUTIL
6701 # Extract the first word of "dsymutil", so it can be a program name with args.
6702 set dummy dsymutil; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 if test -n "$ac_ct_DSYMUTIL"; then
6709 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714 IFS=$as_save_IFS
6715 test -z "$as_dir" && as_dir=.
6716 for ac_exec_ext in '' $ac_executable_extensions; do
6717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720 break 2
6721 fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6729 if test -n "$ac_ct_DSYMUTIL"; then
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6731 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6732 else
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737 if test "x$ac_ct_DSYMUTIL" = x; then
6738 DSYMUTIL=":"
6739 else
6740 case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6744 ac_tool_warned=yes ;;
6745 esac
6746 DSYMUTIL=$ac_ct_DSYMUTIL
6747 fi
6748 else
6749 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6750 fi
6751
6752 if test -n "$ac_tool_prefix"; then
6753 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6754 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6756 $as_echo_n "checking for $ac_word... " >&6; }
6757 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6759 else
6760 if test -n "$NMEDIT"; then
6761 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6762 else
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH
6765 do
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_exec_ext in '' $ac_executable_extensions; do
6769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6770 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 break 2
6773 fi
6774 done
6775 done
6776 IFS=$as_save_IFS
6777
6778 fi
6779 fi
6780 NMEDIT=$ac_cv_prog_NMEDIT
6781 if test -n "$NMEDIT"; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6783 $as_echo "$NMEDIT" >&6; }
6784 else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6786 $as_echo "no" >&6; }
6787 fi
6788
6789
6790 fi
6791 if test -z "$ac_cv_prog_NMEDIT"; then
6792 ac_ct_NMEDIT=$NMEDIT
6793 # Extract the first word of "nmedit", so it can be a program name with args.
6794 set dummy nmedit; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 if test -n "$ac_ct_NMEDIT"; then
6801 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
6809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814 done
6815 done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6821 if test -n "$ac_ct_NMEDIT"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6823 $as_echo "$ac_ct_NMEDIT" >&6; }
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829 if test "x$ac_ct_NMEDIT" = x; then
6830 NMEDIT=":"
6831 else
6832 case $cross_compiling:$ac_tool_warned in
6833 yes:)
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6835 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6836 ac_tool_warned=yes ;;
6837 esac
6838 NMEDIT=$ac_ct_NMEDIT
6839 fi
6840 else
6841 NMEDIT="$ac_cv_prog_NMEDIT"
6842 fi
6843
6844 if test -n "$ac_tool_prefix"; then
6845 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6846 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if test "${ac_cv_prog_LIPO+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -n "$LIPO"; then
6853 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858 IFS=$as_save_IFS
6859 test -z "$as_dir" && as_dir=.
6860 for ac_exec_ext in '' $ac_executable_extensions; do
6861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 break 2
6865 fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 LIPO=$ac_cv_prog_LIPO
6873 if test -n "$LIPO"; then
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6875 $as_echo "$LIPO" >&6; }
6876 else
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881
6882 fi
6883 if test -z "$ac_cv_prog_LIPO"; then
6884 ac_ct_LIPO=$LIPO
6885 # Extract the first word of "lipo", so it can be a program name with args.
6886 set dummy lipo; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 if test -n "$ac_ct_LIPO"; then
6893 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898 IFS=$as_save_IFS
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_prog_ac_ct_LIPO="lipo"
6903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904 break 2
6905 fi
6906 done
6907 done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6913 if test -n "$ac_ct_LIPO"; then
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6915 $as_echo "$ac_ct_LIPO" >&6; }
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921 if test "x$ac_ct_LIPO" = x; then
6922 LIPO=":"
6923 else
6924 case $cross_compiling:$ac_tool_warned in
6925 yes:)
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928 ac_tool_warned=yes ;;
6929 esac
6930 LIPO=$ac_ct_LIPO
6931 fi
6932 else
6933 LIPO="$ac_cv_prog_LIPO"
6934 fi
6935
6936 if test -n "$ac_tool_prefix"; then
6937 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6938 set dummy ${ac_tool_prefix}otool; ac_word=$2
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6940 $as_echo_n "checking for $ac_word... " >&6; }
6941 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 if test -n "$OTOOL"; then
6945 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6946 else
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948 for as_dir in $PATH
6949 do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
6953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6954 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958 done
6959 done
6960 IFS=$as_save_IFS
6961
6962 fi
6963 fi
6964 OTOOL=$ac_cv_prog_OTOOL
6965 if test -n "$OTOOL"; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6967 $as_echo "$OTOOL" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6971 fi
6972
6973
6974 fi
6975 if test -z "$ac_cv_prog_OTOOL"; then
6976 ac_ct_OTOOL=$OTOOL
6977 # Extract the first word of "otool", so it can be a program name with args.
6978 set dummy otool; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 if test -n "$ac_ct_OTOOL"; then
6985 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6994 ac_cv_prog_ac_ct_OTOOL="otool"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7005 if test -n "$ac_ct_OTOOL"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7007 $as_echo "$ac_ct_OTOOL" >&6; }
7008 else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013 if test "x$ac_ct_OTOOL" = x; then
7014 OTOOL=":"
7015 else
7016 case $cross_compiling:$ac_tool_warned in
7017 yes:)
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7020 ac_tool_warned=yes ;;
7021 esac
7022 OTOOL=$ac_ct_OTOOL
7023 fi
7024 else
7025 OTOOL="$ac_cv_prog_OTOOL"
7026 fi
7027
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$OTOOL64"; then
7037 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 OTOOL64=$ac_cv_prog_OTOOL64
7057 if test -n "$OTOOL64"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7059 $as_echo "$OTOOL64" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066 fi
7067 if test -z "$ac_cv_prog_OTOOL64"; then
7068 ac_ct_OTOOL64=$OTOOL64
7069 # Extract the first word of "otool64", so it can be a program name with args.
7070 set dummy otool64; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$ac_ct_OTOOL64"; then
7077 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_ac_ct_OTOOL64="otool64"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7097 if test -n "$ac_ct_OTOOL64"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7099 $as_echo "$ac_ct_OTOOL64" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103 fi
7104
7105 if test "x$ac_ct_OTOOL64" = x; then
7106 OTOOL64=":"
7107 else
7108 case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112 ac_tool_warned=yes ;;
7113 esac
7114 OTOOL64=$ac_ct_OTOOL64
7115 fi
7116 else
7117 OTOOL64="$ac_cv_prog_OTOOL64"
7118 fi
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7147 $as_echo_n "checking for -single_module linker flag... " >&6; }
7148 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 lt_cv_apple_cc_single_mod=no
7152 if test -z "${LT_MULTI_MODULE}"; then
7153 # By default we will add the -single_module flag. You can override
7154 # by either setting the environment variable LT_MULTI_MODULE
7155 # non-empty at configure time, or by adding -multi_module to the
7156 # link flags.
7157 rm -rf libconftest.dylib*
7158 echo "int foo(void){return 1;}" > conftest.c
7159 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7160 -dynamiclib -Wl,-single_module conftest.c" >&5
7161 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7162 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7163 _lt_result=$?
7164 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7165 lt_cv_apple_cc_single_mod=yes
7166 else
7167 cat conftest.err >&5
7168 fi
7169 rm -rf libconftest.dylib*
7170 rm -f conftest.*
7171 fi
7172 fi
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7174 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7176 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7177 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 lt_cv_ld_exported_symbols_list=no
7181 save_LDFLAGS=$LDFLAGS
7182 echo "_main" > conftest.sym
7183 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186
7187 int
7188 main ()
7189 {
7190
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 if ac_fn_c_try_link "$LINENO"; then :
7196 lt_cv_ld_exported_symbols_list=yes
7197 else
7198 lt_cv_ld_exported_symbols_list=no
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext \
7201 conftest$ac_exeext conftest.$ac_ext
7202 LDFLAGS="$save_LDFLAGS"
7203
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7206 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7208 $as_echo_n "checking for -force_load linker flag... " >&6; }
7209 if test "${lt_cv_ld_force_load+set}" = set; then :
7210 $as_echo_n "(cached) " >&6
7211 else
7212 lt_cv_ld_force_load=no
7213 cat > conftest.c << _LT_EOF
7214 int forced_loaded() { return 2;}
7215 _LT_EOF
7216 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7217 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7218 echo "$AR cru libconftest.a conftest.o" >&5
7219 $AR cru libconftest.a conftest.o 2>&5
7220 cat > conftest.c << _LT_EOF
7221 int main() { return 0;}
7222 _LT_EOF
7223 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7224 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7225 _lt_result=$?
7226 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7227 lt_cv_ld_force_load=yes
7228 else
7229 cat conftest.err >&5
7230 fi
7231 rm -f conftest.err libconftest.a conftest conftest.c
7232 rm -rf conftest.dSYM
7233
7234 fi
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7236 $as_echo "$lt_cv_ld_force_load" >&6; }
7237 case $host_os in
7238 rhapsody* | darwin1.[012])
7239 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7240 darwin1.*)
7241 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7242 darwin*) # darwin 5.x on
7243 # if running on 10.5 or later, the deployment target defaults
7244 # to the OS version, if on x86, and 10.4, the deployment
7245 # target defaults to 10.4. Don't you love it?
7246 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7247 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7248 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7249 10.[012]*)
7250 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7251 10.*)
7252 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7253 esac
7254 ;;
7255 esac
7256 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7257 _lt_dar_single_mod='$single_module'
7258 fi
7259 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7260 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7261 else
7262 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7263 fi
7264 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7265 _lt_dsymutil='~$DSYMUTIL $lib || :'
7266 else
7267 _lt_dsymutil=
7268 fi
7269 ;;
7270 esac
7271
7272 ac_ext=c
7273 ac_cpp='$CPP $CPPFLAGS'
7274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7278 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7279 # On Suns, sometimes $CPP names a directory.
7280 if test -n "$CPP" && test -d "$CPP"; then
7281 CPP=
7282 fi
7283 if test -z "$CPP"; then
7284 if test "${ac_cv_prog_CPP+set}" = set; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 # Double quotes because CPP needs to be expanded
7288 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7289 do
7290 ac_preproc_ok=false
7291 for ac_c_preproc_warn_flag in '' yes
7292 do
7293 # Use a header file that comes with gcc, so configuring glibc
7294 # with a fresh cross-compiler works.
7295 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296 # <limits.h> exists even on freestanding compilers.
7297 # On the NeXT, cc -E runs the code through the compiler's parser,
7298 # not just through cpp. "Syntax error" is here to catch this case.
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 #ifdef __STDC__
7302 # include <limits.h>
7303 #else
7304 # include <assert.h>
7305 #endif
7306 Syntax error
7307 _ACEOF
7308 if ac_fn_c_try_cpp "$LINENO"; then :
7309
7310 else
7311 # Broken: fails on valid input.
7312 continue
7313 fi
7314 rm -f conftest.err conftest.$ac_ext
7315
7316 # OK, works on sane cases. Now check whether nonexistent headers
7317 # can be detected and how.
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320 #include <ac_nonexistent.h>
7321 _ACEOF
7322 if ac_fn_c_try_cpp "$LINENO"; then :
7323 # Broken: success on invalid input.
7324 continue
7325 else
7326 # Passes both tests.
7327 ac_preproc_ok=:
7328 break
7329 fi
7330 rm -f conftest.err conftest.$ac_ext
7331
7332 done
7333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7334 rm -f conftest.err conftest.$ac_ext
7335 if $ac_preproc_ok; then :
7336 break
7337 fi
7338
7339 done
7340 ac_cv_prog_CPP=$CPP
7341
7342 fi
7343 CPP=$ac_cv_prog_CPP
7344 else
7345 ac_cv_prog_CPP=$CPP
7346 fi
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7348 $as_echo "$CPP" >&6; }
7349 ac_preproc_ok=false
7350 for ac_c_preproc_warn_flag in '' yes
7351 do
7352 # Use a header file that comes with gcc, so configuring glibc
7353 # with a fresh cross-compiler works.
7354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7355 # <limits.h> exists even on freestanding compilers.
7356 # On the NeXT, cc -E runs the code through the compiler's parser,
7357 # not just through cpp. "Syntax error" is here to catch this case.
7358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7359 /* end confdefs.h. */
7360 #ifdef __STDC__
7361 # include <limits.h>
7362 #else
7363 # include <assert.h>
7364 #endif
7365 Syntax error
7366 _ACEOF
7367 if ac_fn_c_try_cpp "$LINENO"; then :
7368
7369 else
7370 # Broken: fails on valid input.
7371 continue
7372 fi
7373 rm -f conftest.err conftest.$ac_ext
7374
7375 # OK, works on sane cases. Now check whether nonexistent headers
7376 # can be detected and how.
7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h. */
7379 #include <ac_nonexistent.h>
7380 _ACEOF
7381 if ac_fn_c_try_cpp "$LINENO"; then :
7382 # Broken: success on invalid input.
7383 continue
7384 else
7385 # Passes both tests.
7386 ac_preproc_ok=:
7387 break
7388 fi
7389 rm -f conftest.err conftest.$ac_ext
7390
7391 done
7392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7393 rm -f conftest.err conftest.$ac_ext
7394 if $ac_preproc_ok; then :
7395
7396 else
7397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7399 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7400 See \`config.log' for more details." "$LINENO" 5; }
7401 fi
7402
7403 ac_ext=c
7404 ac_cpp='$CPP $CPPFLAGS'
7405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7408
7409
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7411 $as_echo_n "checking for ANSI C header files... " >&6; }
7412 if test "${ac_cv_header_stdc+set}" = set; then :
7413 $as_echo_n "(cached) " >&6
7414 else
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 #include <stdlib.h>
7418 #include <stdarg.h>
7419 #include <string.h>
7420 #include <float.h>
7421
7422 int
7423 main ()
7424 {
7425
7426 ;
7427 return 0;
7428 }
7429 _ACEOF
7430 if ac_fn_c_try_compile "$LINENO"; then :
7431 ac_cv_header_stdc=yes
7432 else
7433 ac_cv_header_stdc=no
7434 fi
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436
7437 if test $ac_cv_header_stdc = yes; then
7438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 #include <string.h>
7442
7443 _ACEOF
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445 $EGREP "memchr" >/dev/null 2>&1; then :
7446
7447 else
7448 ac_cv_header_stdc=no
7449 fi
7450 rm -f conftest*
7451
7452 fi
7453
7454 if test $ac_cv_header_stdc = yes; then
7455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458 #include <stdlib.h>
7459
7460 _ACEOF
7461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7462 $EGREP "free" >/dev/null 2>&1; then :
7463
7464 else
7465 ac_cv_header_stdc=no
7466 fi
7467 rm -f conftest*
7468
7469 fi
7470
7471 if test $ac_cv_header_stdc = yes; then
7472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7473 if test "$cross_compiling" = yes; then :
7474 :
7475 else
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478 #include <ctype.h>
7479 #include <stdlib.h>
7480 #if ((' ' & 0x0FF) == 0x020)
7481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7483 #else
7484 # define ISLOWER(c) \
7485 (('a' <= (c) && (c) <= 'i') \
7486 || ('j' <= (c) && (c) <= 'r') \
7487 || ('s' <= (c) && (c) <= 'z'))
7488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7489 #endif
7490
7491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7492 int
7493 main ()
7494 {
7495 int i;
7496 for (i = 0; i < 256; i++)
7497 if (XOR (islower (i), ISLOWER (i))
7498 || toupper (i) != TOUPPER (i))
7499 return 2;
7500 return 0;
7501 }
7502 _ACEOF
7503 if ac_fn_c_try_run "$LINENO"; then :
7504
7505 else
7506 ac_cv_header_stdc=no
7507 fi
7508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7509 conftest.$ac_objext conftest.beam conftest.$ac_ext
7510 fi
7511
7512 fi
7513 fi
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7515 $as_echo "$ac_cv_header_stdc" >&6; }
7516 if test $ac_cv_header_stdc = yes; then
7517
7518 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7519
7520 fi
7521
7522 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7524 inttypes.h stdint.h unistd.h
7525 do :
7526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7527 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7528 "
7529 eval as_val=\$$as_ac_Header
7530 if test "x$as_val" = x""yes; then :
7531 cat >>confdefs.h <<_ACEOF
7532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7533 _ACEOF
7534
7535 fi
7536
7537 done
7538
7539
7540 for ac_header in dlfcn.h
7541 do :
7542 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7543 "
7544 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7545 cat >>confdefs.h <<_ACEOF
7546 #define HAVE_DLFCN_H 1
7547 _ACEOF
7548
7549 fi
7550
7551 done
7552
7553 if test -n "$ac_tool_prefix"; then
7554 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7555 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_GOC+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$GOC"; then
7562 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 GOC=$ac_cv_prog_GOC
7582 if test -n "$GOC"; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7584 $as_echo "$GOC" >&6; }
7585 else
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590
7591 fi
7592 if test -z "$ac_cv_prog_GOC"; then
7593 ac_ct_GOC=$GOC
7594 # Extract the first word of "gccgo", so it can be a program name with args.
7595 set dummy gccgo; ac_word=$2
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597 $as_echo_n "checking for $ac_word... " >&6; }
7598 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 if test -n "$ac_ct_GOC"; then
7602 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7603 else
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605 for as_dir in $PATH
7606 do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_ac_ct_GOC="gccgo"
7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7613 break 2
7614 fi
7615 done
7616 done
7617 IFS=$as_save_IFS
7618
7619 fi
7620 fi
7621 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7622 if test -n "$ac_ct_GOC"; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7624 $as_echo "$ac_ct_GOC" >&6; }
7625 else
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627 $as_echo "no" >&6; }
7628 fi
7629
7630 if test "x$ac_ct_GOC" = x; then
7631 GOC=""
7632 else
7633 case $cross_compiling:$ac_tool_warned in
7634 yes:)
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7637 ac_tool_warned=yes ;;
7638 esac
7639 GOC=$ac_ct_GOC
7640 fi
7641 else
7642 GOC="$ac_cv_prog_GOC"
7643 fi
7644
7645
7646
7647
7648
7649
7650 # Set options
7651
7652
7653
7654
7655 enable_win32_dll=no
7656
7657
7658 # Check whether --enable-shared was given.
7659 if test "${enable_shared+set}" = set; then :
7660 enableval=$enable_shared; p=${PACKAGE-default}
7661 case $enableval in
7662 yes) enable_shared=yes ;;
7663 no) enable_shared=no ;;
7664 *)
7665 enable_shared=no
7666 # Look at the argument we got. We use all the common list separators.
7667 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7668 for pkg in $enableval; do
7669 IFS="$lt_save_ifs"
7670 if test "X$pkg" = "X$p"; then
7671 enable_shared=yes
7672 fi
7673 done
7674 IFS="$lt_save_ifs"
7675 ;;
7676 esac
7677 else
7678 enable_shared=yes
7679 fi
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689 # Check whether --enable-static was given.
7690 if test "${enable_static+set}" = set; then :
7691 enableval=$enable_static; p=${PACKAGE-default}
7692 case $enableval in
7693 yes) enable_static=yes ;;
7694 no) enable_static=no ;;
7695 *)
7696 enable_static=no
7697 # Look at the argument we got. We use all the common list separators.
7698 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7699 for pkg in $enableval; do
7700 IFS="$lt_save_ifs"
7701 if test "X$pkg" = "X$p"; then
7702 enable_static=yes
7703 fi
7704 done
7705 IFS="$lt_save_ifs"
7706 ;;
7707 esac
7708 else
7709 enable_static=yes
7710 fi
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721 # Check whether --with-pic was given.
7722 if test "${with_pic+set}" = set; then :
7723 withval=$with_pic; pic_mode="$withval"
7724 else
7725 pic_mode=default
7726 fi
7727
7728
7729 test -z "$pic_mode" && pic_mode=default
7730
7731
7732
7733
7734
7735
7736
7737 # Check whether --enable-fast-install was given.
7738 if test "${enable_fast_install+set}" = set; then :
7739 enableval=$enable_fast_install; p=${PACKAGE-default}
7740 case $enableval in
7741 yes) enable_fast_install=yes ;;
7742 no) enable_fast_install=no ;;
7743 *)
7744 enable_fast_install=no
7745 # Look at the argument we got. We use all the common list separators.
7746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7747 for pkg in $enableval; do
7748 IFS="$lt_save_ifs"
7749 if test "X$pkg" = "X$p"; then
7750 enable_fast_install=yes
7751 fi
7752 done
7753 IFS="$lt_save_ifs"
7754 ;;
7755 esac
7756 else
7757 enable_fast_install=yes
7758 fi
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770 # This can be used to rebuild libtool when needed
7771 LIBTOOL_DEPS="$ltmain"
7772
7773 # Always use our own libtool.
7774 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801 test -z "$LN_S" && LN_S="ln -s"
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816 if test -n "${ZSH_VERSION+set}" ; then
7817 setopt NO_GLOB_SUBST
7818 fi
7819
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7821 $as_echo_n "checking for objdir... " >&6; }
7822 if test "${lt_cv_objdir+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 rm -f .libs 2>/dev/null
7826 mkdir .libs 2>/dev/null
7827 if test -d .libs; then
7828 lt_cv_objdir=.libs
7829 else
7830 # MS-DOS does not allow filenames that begin with a dot.
7831 lt_cv_objdir=_libs
7832 fi
7833 rmdir .libs 2>/dev/null
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7836 $as_echo "$lt_cv_objdir" >&6; }
7837 objdir=$lt_cv_objdir
7838
7839
7840
7841
7842
7843 cat >>confdefs.h <<_ACEOF
7844 #define LT_OBJDIR "$lt_cv_objdir/"
7845 _ACEOF
7846
7847
7848
7849
7850 case $host_os in
7851 aix3*)
7852 # AIX sometimes has problems with the GCC collect2 program. For some
7853 # reason, if we set the COLLECT_NAMES environment variable, the problems
7854 # vanish in a puff of smoke.
7855 if test "X${COLLECT_NAMES+set}" != Xset; then
7856 COLLECT_NAMES=
7857 export COLLECT_NAMES
7858 fi
7859 ;;
7860 esac
7861
7862 # Global variables:
7863 ofile=libtool
7864 can_build_shared=yes
7865
7866 # All known linkers require a `.a' archive for static linking (except MSVC,
7867 # which needs '.lib').
7868 libext=a
7869
7870 with_gnu_ld="$lt_cv_prog_gnu_ld"
7871
7872 old_CC="$CC"
7873 old_CFLAGS="$CFLAGS"
7874
7875 # Set sane defaults for various variables
7876 test -z "$CC" && CC=cc
7877 test -z "$LTCC" && LTCC=$CC
7878 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7879 test -z "$LD" && LD=ld
7880 test -z "$ac_objext" && ac_objext=o
7881
7882 for cc_temp in $compiler""; do
7883 case $cc_temp in
7884 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7885 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7886 \-*) ;;
7887 *) break;;
7888 esac
7889 done
7890 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7891
7892
7893 # Only perform the check for file, if the check method requires it
7894 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7895 case $deplibs_check_method in
7896 file_magic*)
7897 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7899 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7900 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
7902 else
7903 case $MAGIC_CMD in
7904 [\\/*] | ?:[\\/]*)
7905 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7906 ;;
7907 *)
7908 lt_save_MAGIC_CMD="$MAGIC_CMD"
7909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7910 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7911 for ac_dir in $ac_dummy; do
7912 IFS="$lt_save_ifs"
7913 test -z "$ac_dir" && ac_dir=.
7914 if test -f $ac_dir/${ac_tool_prefix}file; then
7915 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7916 if test -n "$file_magic_test_file"; then
7917 case $deplibs_check_method in
7918 "file_magic "*)
7919 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7920 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7921 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7922 $EGREP "$file_magic_regex" > /dev/null; then
7923 :
7924 else
7925 cat <<_LT_EOF 1>&2
7926
7927 *** Warning: the command libtool uses to detect shared libraries,
7928 *** $file_magic_cmd, produces output that libtool cannot recognize.
7929 *** The result is that libtool may fail to recognize shared libraries
7930 *** as such. This will affect the creation of libtool libraries that
7931 *** depend on shared libraries, but programs linked with such libtool
7932 *** libraries will work regardless of this problem. Nevertheless, you
7933 *** may want to report the problem to your system manager and/or to
7934 *** bug-libtool@gnu.org
7935
7936 _LT_EOF
7937 fi ;;
7938 esac
7939 fi
7940 break
7941 fi
7942 done
7943 IFS="$lt_save_ifs"
7944 MAGIC_CMD="$lt_save_MAGIC_CMD"
7945 ;;
7946 esac
7947 fi
7948
7949 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950 if test -n "$MAGIC_CMD"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7952 $as_echo "$MAGIC_CMD" >&6; }
7953 else
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7956 fi
7957
7958
7959
7960
7961
7962 if test -z "$lt_cv_path_MAGIC_CMD"; then
7963 if test -n "$ac_tool_prefix"; then
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7965 $as_echo_n "checking for file... " >&6; }
7966 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 case $MAGIC_CMD in
7970 [\\/*] | ?:[\\/]*)
7971 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7972 ;;
7973 *)
7974 lt_save_MAGIC_CMD="$MAGIC_CMD"
7975 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7976 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7977 for ac_dir in $ac_dummy; do
7978 IFS="$lt_save_ifs"
7979 test -z "$ac_dir" && ac_dir=.
7980 if test -f $ac_dir/file; then
7981 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7982 if test -n "$file_magic_test_file"; then
7983 case $deplibs_check_method in
7984 "file_magic "*)
7985 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7986 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7987 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7988 $EGREP "$file_magic_regex" > /dev/null; then
7989 :
7990 else
7991 cat <<_LT_EOF 1>&2
7992
7993 *** Warning: the command libtool uses to detect shared libraries,
7994 *** $file_magic_cmd, produces output that libtool cannot recognize.
7995 *** The result is that libtool may fail to recognize shared libraries
7996 *** as such. This will affect the creation of libtool libraries that
7997 *** depend on shared libraries, but programs linked with such libtool
7998 *** libraries will work regardless of this problem. Nevertheless, you
7999 *** may want to report the problem to your system manager and/or to
8000 *** bug-libtool@gnu.org
8001
8002 _LT_EOF
8003 fi ;;
8004 esac
8005 fi
8006 break
8007 fi
8008 done
8009 IFS="$lt_save_ifs"
8010 MAGIC_CMD="$lt_save_MAGIC_CMD"
8011 ;;
8012 esac
8013 fi
8014
8015 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8016 if test -n "$MAGIC_CMD"; then
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8018 $as_echo "$MAGIC_CMD" >&6; }
8019 else
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021 $as_echo "no" >&6; }
8022 fi
8023
8024
8025 else
8026 MAGIC_CMD=:
8027 fi
8028 fi
8029
8030 fi
8031 ;;
8032 esac
8033
8034 # Use C for the default configuration in the libtool script
8035
8036 lt_save_CC="$CC"
8037 ac_ext=c
8038 ac_cpp='$CPP $CPPFLAGS'
8039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8042
8043
8044 # Source file extension for C test sources.
8045 ac_ext=c
8046
8047 # Object file extension for compiled C test sources.
8048 objext=o
8049 objext=$objext
8050
8051 # Code to be used in simple compile tests
8052 lt_simple_compile_test_code="int some_variable = 0;"
8053
8054 # Code to be used in simple link tests
8055 lt_simple_link_test_code='int main(){return(0);}'
8056
8057
8058
8059
8060
8061
8062
8063 # If no C compiler was specified, use CC.
8064 LTCC=${LTCC-"$CC"}
8065
8066 # If no C compiler flags were specified, use CFLAGS.
8067 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8068
8069 # Allow CC to be a program name with arguments.
8070 compiler=$CC
8071
8072 # Save the default compiler, since it gets overwritten when the other
8073 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8074 compiler_DEFAULT=$CC
8075
8076 # save warnings/boilerplate of simple test code
8077 ac_outfile=conftest.$ac_objext
8078 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8080 _lt_compiler_boilerplate=`cat conftest.err`
8081 $RM conftest*
8082
8083 ac_outfile=conftest.$ac_objext
8084 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8086 _lt_linker_boilerplate=`cat conftest.err`
8087 $RM -r conftest*
8088
8089
8090 ## CAVEAT EMPTOR:
8091 ## There is no encapsulation within the following macros, do not change
8092 ## the running order or otherwise move them around unless you know exactly
8093 ## what you are doing...
8094 if test -n "$compiler"; then
8095
8096 lt_prog_compiler_no_builtin_flag=
8097
8098 if test "$GCC" = yes; then
8099 case $cc_basename in
8100 nvcc*)
8101 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8102 *)
8103 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8104 esac
8105
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8107 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8108 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8109 $as_echo_n "(cached) " >&6
8110 else
8111 lt_cv_prog_compiler_rtti_exceptions=no
8112 ac_outfile=conftest.$ac_objext
8113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8114 lt_compiler_flag="-fno-rtti -fno-exceptions"
8115 # Insert the option either (1) after the last *FLAGS variable, or
8116 # (2) before a word containing "conftest.", or (3) at the end.
8117 # Note that $ac_compile itself does not contain backslashes and begins
8118 # with a dollar sign (not a hyphen), so the echo should work correctly.
8119 # The option is referenced via a variable to avoid confusing sed.
8120 lt_compile=`echo "$ac_compile" | $SED \
8121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8123 -e 's:$: $lt_compiler_flag:'`
8124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8125 (eval "$lt_compile" 2>conftest.err)
8126 ac_status=$?
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 if (exit $ac_status) && test -s "$ac_outfile"; then
8130 # The compiler can only warn and ignore the option if not recognized
8131 # So say no if there are warnings other than the usual output.
8132 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8134 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8135 lt_cv_prog_compiler_rtti_exceptions=yes
8136 fi
8137 fi
8138 $RM conftest*
8139
8140 fi
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8142 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8143
8144 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8145 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8146 else
8147 :
8148 fi
8149
8150 fi
8151
8152
8153
8154
8155
8156
8157 lt_prog_compiler_wl=
8158 lt_prog_compiler_pic=
8159 lt_prog_compiler_static=
8160
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8162 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8163
8164 if test "$GCC" = yes; then
8165 lt_prog_compiler_wl='-Wl,'
8166 lt_prog_compiler_static='-static'
8167
8168 case $host_os in
8169 aix*)
8170 # All AIX code is PIC.
8171 if test "$host_cpu" = ia64; then
8172 # AIX 5 now supports IA64 processor
8173 lt_prog_compiler_static='-Bstatic'
8174 fi
8175 ;;
8176
8177 amigaos*)
8178 case $host_cpu in
8179 powerpc)
8180 # see comment about AmigaOS4 .so support
8181 lt_prog_compiler_pic='-fPIC'
8182 ;;
8183 m68k)
8184 # FIXME: we need at least 68020 code to build shared libraries, but
8185 # adding the `-m68020' flag to GCC prevents building anything better,
8186 # like `-m68040'.
8187 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8188 ;;
8189 esac
8190 ;;
8191
8192 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8193 # PIC is the default for these OSes.
8194 ;;
8195
8196 mingw* | cygwin* | pw32* | os2* | cegcc*)
8197 # This hack is so that the source file can tell whether it is being
8198 # built for inclusion in a dll (and should export symbols for example).
8199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8200 # (--disable-auto-import) libraries
8201 lt_prog_compiler_pic='-DDLL_EXPORT'
8202 ;;
8203
8204 darwin* | rhapsody*)
8205 # PIC is the default on this platform
8206 # Common symbols not allowed in MH_DYLIB files
8207 lt_prog_compiler_pic='-fno-common'
8208 ;;
8209
8210 haiku*)
8211 # PIC is the default for Haiku.
8212 # The "-static" flag exists, but is broken.
8213 lt_prog_compiler_static=
8214 ;;
8215
8216 hpux*)
8217 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8218 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8219 # sets the default TLS model and affects inlining.
8220 case $host_cpu in
8221 hppa*64*)
8222 # +Z the default
8223 ;;
8224 *)
8225 lt_prog_compiler_pic='-fPIC'
8226 ;;
8227 esac
8228 ;;
8229
8230 interix[3-9]*)
8231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8232 # Instead, we relocate shared libraries at runtime.
8233 ;;
8234
8235 msdosdjgpp*)
8236 # Just because we use GCC doesn't mean we suddenly get shared libraries
8237 # on systems that don't support them.
8238 lt_prog_compiler_can_build_shared=no
8239 enable_shared=no
8240 ;;
8241
8242 *nto* | *qnx*)
8243 # QNX uses GNU C++, but need to define -shared option too, otherwise
8244 # it will coredump.
8245 lt_prog_compiler_pic='-fPIC -shared'
8246 ;;
8247
8248 sysv4*MP*)
8249 if test -d /usr/nec; then
8250 lt_prog_compiler_pic=-Kconform_pic
8251 fi
8252 ;;
8253
8254 *)
8255 lt_prog_compiler_pic='-fPIC'
8256 ;;
8257 esac
8258
8259 case $cc_basename in
8260 nvcc*) # Cuda Compiler Driver 2.2
8261 lt_prog_compiler_wl='-Xlinker '
8262 lt_prog_compiler_pic='-Xcompiler -fPIC'
8263 ;;
8264 esac
8265 else
8266 # PORTME Check for flag to pass linker flags through the system compiler.
8267 case $host_os in
8268 aix*)
8269 lt_prog_compiler_wl='-Wl,'
8270 if test "$host_cpu" = ia64; then
8271 # AIX 5 now supports IA64 processor
8272 lt_prog_compiler_static='-Bstatic'
8273 else
8274 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8275 fi
8276 ;;
8277
8278 mingw* | cygwin* | pw32* | os2* | cegcc*)
8279 # This hack is so that the source file can tell whether it is being
8280 # built for inclusion in a dll (and should export symbols for example).
8281 lt_prog_compiler_pic='-DDLL_EXPORT'
8282 ;;
8283
8284 hpux9* | hpux10* | hpux11*)
8285 lt_prog_compiler_wl='-Wl,'
8286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8287 # not for PA HP-UX.
8288 case $host_cpu in
8289 hppa*64*|ia64*)
8290 # +Z the default
8291 ;;
8292 *)
8293 lt_prog_compiler_pic='+Z'
8294 ;;
8295 esac
8296 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8297 lt_prog_compiler_static='${wl}-a ${wl}archive'
8298 ;;
8299
8300 irix5* | irix6* | nonstopux*)
8301 lt_prog_compiler_wl='-Wl,'
8302 # PIC (with -KPIC) is the default.
8303 lt_prog_compiler_static='-non_shared'
8304 ;;
8305
8306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8307 case $cc_basename in
8308 # old Intel for x86_64 which still supported -KPIC.
8309 ecc*)
8310 lt_prog_compiler_wl='-Wl,'
8311 lt_prog_compiler_pic='-KPIC'
8312 lt_prog_compiler_static='-static'
8313 ;;
8314 # icc used to be incompatible with GCC.
8315 # ICC 10 doesn't accept -KPIC any more.
8316 icc* | ifort*)
8317 lt_prog_compiler_wl='-Wl,'
8318 lt_prog_compiler_pic='-fPIC'
8319 lt_prog_compiler_static='-static'
8320 ;;
8321 # Lahey Fortran 8.1.
8322 lf95*)
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='--shared'
8325 lt_prog_compiler_static='--static'
8326 ;;
8327 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8328 # Portland Group compilers (*not* the Pentium gcc compiler,
8329 # which looks to be a dead project)
8330 lt_prog_compiler_wl='-Wl,'
8331 lt_prog_compiler_pic='-fpic'
8332 lt_prog_compiler_static='-Bstatic'
8333 ;;
8334 ccc*)
8335 lt_prog_compiler_wl='-Wl,'
8336 # All Alpha code is PIC.
8337 lt_prog_compiler_static='-non_shared'
8338 ;;
8339 xl* | bgxl* | bgf* | mpixl*)
8340 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8341 lt_prog_compiler_wl='-Wl,'
8342 lt_prog_compiler_pic='-qpic'
8343 lt_prog_compiler_static='-qstaticlink'
8344 ;;
8345 *)
8346 case `$CC -V 2>&1 | sed 5q` in
8347 *Sun\ F* | *Sun*Fortran*)
8348 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8349 lt_prog_compiler_pic='-KPIC'
8350 lt_prog_compiler_static='-Bstatic'
8351 lt_prog_compiler_wl=''
8352 ;;
8353 *Sun\ C*)
8354 # Sun C 5.9
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 lt_prog_compiler_wl='-Wl,'
8358 ;;
8359 esac
8360 ;;
8361 esac
8362 ;;
8363
8364 newsos6)
8365 lt_prog_compiler_pic='-KPIC'
8366 lt_prog_compiler_static='-Bstatic'
8367 ;;
8368
8369 *nto* | *qnx*)
8370 # QNX uses GNU C++, but need to define -shared option too, otherwise
8371 # it will coredump.
8372 lt_prog_compiler_pic='-fPIC -shared'
8373 ;;
8374
8375 osf3* | osf4* | osf5*)
8376 lt_prog_compiler_wl='-Wl,'
8377 # All OSF/1 code is PIC.
8378 lt_prog_compiler_static='-non_shared'
8379 ;;
8380
8381 rdos*)
8382 lt_prog_compiler_static='-non_shared'
8383 ;;
8384
8385 solaris*)
8386 lt_prog_compiler_pic='-KPIC'
8387 lt_prog_compiler_static='-Bstatic'
8388 case $cc_basename in
8389 f77* | f90* | f95*)
8390 lt_prog_compiler_wl='-Qoption ld ';;
8391 *)
8392 lt_prog_compiler_wl='-Wl,';;
8393 esac
8394 ;;
8395
8396 sunos4*)
8397 lt_prog_compiler_wl='-Qoption ld '
8398 lt_prog_compiler_pic='-PIC'
8399 lt_prog_compiler_static='-Bstatic'
8400 ;;
8401
8402 sysv4 | sysv4.2uw2* | sysv4.3*)
8403 lt_prog_compiler_wl='-Wl,'
8404 lt_prog_compiler_pic='-KPIC'
8405 lt_prog_compiler_static='-Bstatic'
8406 ;;
8407
8408 sysv4*MP*)
8409 if test -d /usr/nec ;then
8410 lt_prog_compiler_pic='-Kconform_pic'
8411 lt_prog_compiler_static='-Bstatic'
8412 fi
8413 ;;
8414
8415 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8416 lt_prog_compiler_wl='-Wl,'
8417 lt_prog_compiler_pic='-KPIC'
8418 lt_prog_compiler_static='-Bstatic'
8419 ;;
8420
8421 unicos*)
8422 lt_prog_compiler_wl='-Wl,'
8423 lt_prog_compiler_can_build_shared=no
8424 ;;
8425
8426 uts4*)
8427 lt_prog_compiler_pic='-pic'
8428 lt_prog_compiler_static='-Bstatic'
8429 ;;
8430
8431 *)
8432 lt_prog_compiler_can_build_shared=no
8433 ;;
8434 esac
8435 fi
8436
8437 case $host_os in
8438 # For platforms which do not support PIC, -DPIC is meaningless:
8439 *djgpp*)
8440 lt_prog_compiler_pic=
8441 ;;
8442 *)
8443 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8444 ;;
8445 esac
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8447 $as_echo "$lt_prog_compiler_pic" >&6; }
8448
8449
8450
8451
8452
8453
8454 #
8455 # Check to make sure the PIC flag actually works.
8456 #
8457 if test -n "$lt_prog_compiler_pic"; then
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8459 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8460 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8461 $as_echo_n "(cached) " >&6
8462 else
8463 lt_cv_prog_compiler_pic_works=no
8464 ac_outfile=conftest.$ac_objext
8465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8466 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8467 # Insert the option either (1) after the last *FLAGS variable, or
8468 # (2) before a word containing "conftest.", or (3) at the end.
8469 # Note that $ac_compile itself does not contain backslashes and begins
8470 # with a dollar sign (not a hyphen), so the echo should work correctly.
8471 # The option is referenced via a variable to avoid confusing sed.
8472 lt_compile=`echo "$ac_compile" | $SED \
8473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8475 -e 's:$: $lt_compiler_flag:'`
8476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8477 (eval "$lt_compile" 2>conftest.err)
8478 ac_status=$?
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 if (exit $ac_status) && test -s "$ac_outfile"; then
8482 # The compiler can only warn and ignore the option if not recognized
8483 # So say no if there are warnings other than the usual output.
8484 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8485 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8486 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8487 lt_cv_prog_compiler_pic_works=yes
8488 fi
8489 fi
8490 $RM conftest*
8491
8492 fi
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8494 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8495
8496 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8497 case $lt_prog_compiler_pic in
8498 "" | " "*) ;;
8499 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8500 esac
8501 else
8502 lt_prog_compiler_pic=
8503 lt_prog_compiler_can_build_shared=no
8504 fi
8505
8506 fi
8507
8508
8509
8510
8511
8512
8513 #
8514 # Check to make sure the static flag actually works.
8515 #
8516 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8518 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8519 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 lt_cv_prog_compiler_static_works=no
8523 save_LDFLAGS="$LDFLAGS"
8524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8525 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8527 # The linker can only warn and ignore the option if not recognized
8528 # So say no if there are warnings
8529 if test -s conftest.err; then
8530 # Append any errors to the config.log.
8531 cat conftest.err 1>&5
8532 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8534 if diff conftest.exp conftest.er2 >/dev/null; then
8535 lt_cv_prog_compiler_static_works=yes
8536 fi
8537 else
8538 lt_cv_prog_compiler_static_works=yes
8539 fi
8540 fi
8541 $RM -r conftest*
8542 LDFLAGS="$save_LDFLAGS"
8543
8544 fi
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8546 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8547
8548 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8549 :
8550 else
8551 lt_prog_compiler_static=
8552 fi
8553
8554
8555
8556
8557
8558
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8561 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8562 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 lt_cv_prog_compiler_c_o=no
8566 $RM -r conftest 2>/dev/null
8567 mkdir conftest
8568 cd conftest
8569 mkdir out
8570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8571
8572 lt_compiler_flag="-o out/conftest2.$ac_objext"
8573 # Insert the option either (1) after the last *FLAGS variable, or
8574 # (2) before a word containing "conftest.", or (3) at the end.
8575 # Note that $ac_compile itself does not contain backslashes and begins
8576 # with a dollar sign (not a hyphen), so the echo should work correctly.
8577 lt_compile=`echo "$ac_compile" | $SED \
8578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8580 -e 's:$: $lt_compiler_flag:'`
8581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8582 (eval "$lt_compile" 2>out/conftest.err)
8583 ac_status=$?
8584 cat out/conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8587 then
8588 # The compiler can only warn and ignore the option if not recognized
8589 # So say no if there are warnings
8590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8593 lt_cv_prog_compiler_c_o=yes
8594 fi
8595 fi
8596 chmod u+w . 2>&5
8597 $RM conftest*
8598 # SGI C++ compiler will create directory out/ii_files/ for
8599 # template instantiation
8600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8601 $RM out/* && rmdir out
8602 cd ..
8603 $RM -r conftest
8604 $RM conftest*
8605
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8608 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8609
8610
8611
8612
8613
8614
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8616 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8617 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8618 $as_echo_n "(cached) " >&6
8619 else
8620 lt_cv_prog_compiler_c_o=no
8621 $RM -r conftest 2>/dev/null
8622 mkdir conftest
8623 cd conftest
8624 mkdir out
8625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8626
8627 lt_compiler_flag="-o out/conftest2.$ac_objext"
8628 # Insert the option either (1) after the last *FLAGS variable, or
8629 # (2) before a word containing "conftest.", or (3) at the end.
8630 # Note that $ac_compile itself does not contain backslashes and begins
8631 # with a dollar sign (not a hyphen), so the echo should work correctly.
8632 lt_compile=`echo "$ac_compile" | $SED \
8633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8635 -e 's:$: $lt_compiler_flag:'`
8636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8637 (eval "$lt_compile" 2>out/conftest.err)
8638 ac_status=$?
8639 cat out/conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8642 then
8643 # The compiler can only warn and ignore the option if not recognized
8644 # So say no if there are warnings
8645 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8646 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8647 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8648 lt_cv_prog_compiler_c_o=yes
8649 fi
8650 fi
8651 chmod u+w . 2>&5
8652 $RM conftest*
8653 # SGI C++ compiler will create directory out/ii_files/ for
8654 # template instantiation
8655 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8656 $RM out/* && rmdir out
8657 cd ..
8658 $RM -r conftest
8659 $RM conftest*
8660
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8663 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8664
8665
8666
8667
8668 hard_links="nottested"
8669 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8670 # do not overwrite the value of need_locks provided by the user
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8672 $as_echo_n "checking if we can lock with hard links... " >&6; }
8673 hard_links=yes
8674 $RM conftest*
8675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8676 touch conftest.a
8677 ln conftest.a conftest.b 2>&5 || hard_links=no
8678 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8680 $as_echo "$hard_links" >&6; }
8681 if test "$hard_links" = no; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8683 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8684 need_locks=warn
8685 fi
8686 else
8687 need_locks=no
8688 fi
8689
8690
8691
8692
8693
8694
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8696 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8697
8698 runpath_var=
8699 allow_undefined_flag=
8700 always_export_symbols=no
8701 archive_cmds=
8702 archive_expsym_cmds=
8703 compiler_needs_object=no
8704 enable_shared_with_static_runtimes=no
8705 export_dynamic_flag_spec=
8706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8707 hardcode_automatic=no
8708 hardcode_direct=no
8709 hardcode_direct_absolute=no
8710 hardcode_libdir_flag_spec=
8711 hardcode_libdir_flag_spec_ld=
8712 hardcode_libdir_separator=
8713 hardcode_minus_L=no
8714 hardcode_shlibpath_var=unsupported
8715 inherit_rpath=no
8716 link_all_deplibs=unknown
8717 module_cmds=
8718 module_expsym_cmds=
8719 old_archive_from_new_cmds=
8720 old_archive_from_expsyms_cmds=
8721 thread_safe_flag_spec=
8722 whole_archive_flag_spec=
8723 # include_expsyms should be a list of space-separated symbols to be *always*
8724 # included in the symbol list
8725 include_expsyms=
8726 # exclude_expsyms can be an extended regexp of symbols to exclude
8727 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8728 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8729 # as well as any symbol that contains `d'.
8730 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8731 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8732 # platforms (ab)use it in PIC code, but their linkers get confused if
8733 # the symbol is explicitly referenced. Since portable code cannot
8734 # rely on this symbol name, it's probably fine to never include it in
8735 # preloaded symbol tables.
8736 # Exclude shared library initialization/finalization symbols.
8737 extract_expsyms_cmds=
8738
8739 case $host_os in
8740 cygwin* | mingw* | pw32* | cegcc*)
8741 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8742 # When not using gcc, we currently assume that we are using
8743 # Microsoft Visual C++.
8744 if test "$GCC" != yes; then
8745 with_gnu_ld=no
8746 fi
8747 ;;
8748 interix*)
8749 # we just hope/assume this is gcc and not c89 (= MSVC++)
8750 with_gnu_ld=yes
8751 ;;
8752 openbsd*)
8753 with_gnu_ld=no
8754 ;;
8755 esac
8756
8757 ld_shlibs=yes
8758
8759 # On some targets, GNU ld is compatible enough with the native linker
8760 # that we're better off using the native interface for both.
8761 lt_use_gnu_ld_interface=no
8762 if test "$with_gnu_ld" = yes; then
8763 case $host_os in
8764 aix*)
8765 # The AIX port of GNU ld has always aspired to compatibility
8766 # with the native linker. However, as the warning in the GNU ld
8767 # block says, versions before 2.19.5* couldn't really create working
8768 # shared libraries, regardless of the interface used.
8769 case `$LD -v 2>&1` in
8770 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8771 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8772 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8773 *)
8774 lt_use_gnu_ld_interface=yes
8775 ;;
8776 esac
8777 ;;
8778 *)
8779 lt_use_gnu_ld_interface=yes
8780 ;;
8781 esac
8782 fi
8783
8784 if test "$lt_use_gnu_ld_interface" = yes; then
8785 # If archive_cmds runs LD, not CC, wlarc should be empty
8786 wlarc='${wl}'
8787
8788 # Set some defaults for GNU ld with shared library support. These
8789 # are reset later if shared libraries are not supported. Putting them
8790 # here allows them to be overridden if necessary.
8791 runpath_var=LD_RUN_PATH
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 export_dynamic_flag_spec='${wl}--export-dynamic'
8794 # ancient GNU ld didn't support --whole-archive et. al.
8795 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8796 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8797 else
8798 whole_archive_flag_spec=
8799 fi
8800 supports_anon_versioning=no
8801 case `$LD -v 2>&1` in
8802 *GNU\ gold*) supports_anon_versioning=yes ;;
8803 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8804 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8805 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8806 *\ 2.11.*) ;; # other 2.11 versions
8807 *) supports_anon_versioning=yes ;;
8808 esac
8809
8810 # See if GNU ld supports shared libraries.
8811 case $host_os in
8812 aix[3-9]*)
8813 # On AIX/PPC, the GNU linker is very broken
8814 if test "$host_cpu" != ia64; then
8815 ld_shlibs=no
8816 cat <<_LT_EOF 1>&2
8817
8818 *** Warning: the GNU linker, at least up to release 2.19, is reported
8819 *** to be unable to reliably create shared libraries on AIX.
8820 *** Therefore, libtool is disabling shared libraries support. If you
8821 *** really care for shared libraries, you may want to install binutils
8822 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8823 *** You will then need to restart the configuration process.
8824
8825 _LT_EOF
8826 fi
8827 ;;
8828
8829 amigaos*)
8830 case $host_cpu in
8831 powerpc)
8832 # see comment about AmigaOS4 .so support
8833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8834 archive_expsym_cmds=''
8835 ;;
8836 m68k)
8837 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)'
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 hardcode_minus_L=yes
8840 ;;
8841 esac
8842 ;;
8843
8844 beos*)
8845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8846 allow_undefined_flag=unsupported
8847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8848 # support --undefined. This deserves some investigation. FIXME
8849 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850 else
8851 ld_shlibs=no
8852 fi
8853 ;;
8854
8855 cygwin* | mingw* | pw32* | cegcc*)
8856 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8857 # as there is no search path for DLLs.
8858 hardcode_libdir_flag_spec='-L$libdir'
8859 export_dynamic_flag_spec='${wl}--export-all-symbols'
8860 allow_undefined_flag=unsupported
8861 always_export_symbols=no
8862 enable_shared_with_static_runtimes=yes
8863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8864
8865 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8867 # If the export-symbols file already is a .def file (1st line
8868 # is EXPORTS), use it as is; otherwise, prepend...
8869 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8870 cp $export_symbols $output_objdir/$soname.def;
8871 else
8872 echo EXPORTS > $output_objdir/$soname.def;
8873 cat $export_symbols >> $output_objdir/$soname.def;
8874 fi~
8875 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8876 else
8877 ld_shlibs=no
8878 fi
8879 ;;
8880
8881 haiku*)
8882 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8883 link_all_deplibs=yes
8884 ;;
8885
8886 interix[3-9]*)
8887 hardcode_direct=no
8888 hardcode_shlibpath_var=no
8889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8890 export_dynamic_flag_spec='${wl}-E'
8891 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8892 # Instead, shared libraries are loaded at an image base (0x10000000 by
8893 # default) and relocated if they conflict, which is a slow very memory
8894 # consuming and fragmenting process. To avoid this, we pick a random,
8895 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8896 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8897 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8898 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'
8899 ;;
8900
8901 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8902 tmp_diet=no
8903 if test "$host_os" = linux-dietlibc; then
8904 case $cc_basename in
8905 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8906 esac
8907 fi
8908 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8909 && test "$tmp_diet" = no
8910 then
8911 tmp_addflag=
8912 tmp_sharedflag='-shared'
8913 case $cc_basename,$host_cpu in
8914 pgcc*) # Portland Group C compiler
8915 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'
8916 tmp_addflag=' $pic_flag'
8917 ;;
8918 pgf77* | pgf90* | pgf95* | pgfortran*)
8919 # Portland Group f77 and f90 compilers
8920 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'
8921 tmp_addflag=' $pic_flag -Mnomain' ;;
8922 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8923 tmp_addflag=' -i_dynamic' ;;
8924 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8925 tmp_addflag=' -i_dynamic -nofor_main' ;;
8926 ifc* | ifort*) # Intel Fortran compiler
8927 tmp_addflag=' -nofor_main' ;;
8928 lf95*) # Lahey Fortran 8.1
8929 whole_archive_flag_spec=
8930 tmp_sharedflag='--shared' ;;
8931 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8932 tmp_sharedflag='-qmkshrobj'
8933 tmp_addflag= ;;
8934 nvcc*) # Cuda Compiler Driver 2.2
8935 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'
8936 compiler_needs_object=yes
8937 ;;
8938 esac
8939 case `$CC -V 2>&1 | sed 5q` in
8940 *Sun\ C*) # Sun C 5.9
8941 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'
8942 compiler_needs_object=yes
8943 tmp_sharedflag='-G' ;;
8944 *Sun\ F*) # Sun Fortran 8.3
8945 tmp_sharedflag='-G' ;;
8946 esac
8947 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8948
8949 if test "x$supports_anon_versioning" = xyes; then
8950 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8951 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8952 echo "local: *; };" >> $output_objdir/$libname.ver~
8953 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8954 fi
8955
8956 case $cc_basename in
8957 xlf* | bgf* | bgxlf* | mpixlf*)
8958 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8959 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8960 hardcode_libdir_flag_spec=
8961 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8962 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8963 if test "x$supports_anon_versioning" = xyes; then
8964 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8965 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8966 echo "local: *; };" >> $output_objdir/$libname.ver~
8967 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8968 fi
8969 ;;
8970 esac
8971 else
8972 ld_shlibs=no
8973 fi
8974 ;;
8975
8976 netbsd*)
8977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8978 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8979 wlarc=
8980 else
8981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8983 fi
8984 ;;
8985
8986 solaris*)
8987 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8988 ld_shlibs=no
8989 cat <<_LT_EOF 1>&2
8990
8991 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8992 *** create shared libraries on Solaris systems. Therefore, libtool
8993 *** is disabling shared libraries support. We urge you to upgrade GNU
8994 *** binutils to release 2.9.1 or newer. Another option is to modify
8995 *** your PATH or compiler configuration so that the native linker is
8996 *** used, and then restart.
8997
8998 _LT_EOF
8999 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9002 else
9003 ld_shlibs=no
9004 fi
9005 ;;
9006
9007 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9008 case `$LD -v 2>&1` in
9009 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9010 ld_shlibs=no
9011 cat <<_LT_EOF 1>&2
9012
9013 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9014 *** reliably create shared libraries on SCO systems. Therefore, libtool
9015 *** is disabling shared libraries support. We urge you to upgrade GNU
9016 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9017 *** your PATH or compiler configuration so that the native linker is
9018 *** used, and then restart.
9019
9020 _LT_EOF
9021 ;;
9022 *)
9023 # For security reasons, it is highly recommended that you always
9024 # use absolute paths for naming shared libraries, and exclude the
9025 # DT_RUNPATH tag from executables and libraries. But doing so
9026 # requires that you compile everything twice, which is a pain.
9027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9028 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031 else
9032 ld_shlibs=no
9033 fi
9034 ;;
9035 esac
9036 ;;
9037
9038 sunos4*)
9039 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040 wlarc=
9041 hardcode_direct=yes
9042 hardcode_shlibpath_var=no
9043 ;;
9044
9045 *)
9046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9047 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9049 else
9050 ld_shlibs=no
9051 fi
9052 ;;
9053 esac
9054
9055 if test "$ld_shlibs" = no; then
9056 runpath_var=
9057 hardcode_libdir_flag_spec=
9058 export_dynamic_flag_spec=
9059 whole_archive_flag_spec=
9060 fi
9061 else
9062 # PORTME fill in a description of your system's linker (not GNU ld)
9063 case $host_os in
9064 aix3*)
9065 allow_undefined_flag=unsupported
9066 always_export_symbols=yes
9067 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'
9068 # Note: this linker hardcodes the directories in LIBPATH if there
9069 # are no directories specified by -L.
9070 hardcode_minus_L=yes
9071 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9072 # Neither direct hardcoding nor static linking is supported with a
9073 # broken collect2.
9074 hardcode_direct=unsupported
9075 fi
9076 ;;
9077
9078 aix[4-9]*)
9079 if test "$host_cpu" = ia64; then
9080 # On IA64, the linker does run time linking by default, so we don't
9081 # have to do anything special.
9082 aix_use_runtimelinking=no
9083 exp_sym_flag='-Bexport'
9084 no_entry_flag=""
9085 else
9086 # If we're using GNU nm, then we don't want the "-C" option.
9087 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9088 # Also, AIX nm treats weak defined symbols like other global
9089 # defined symbols, whereas GNU nm marks them as "W".
9090 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9091 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'
9092 else
9093 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'
9094 fi
9095 aix_use_runtimelinking=no
9096
9097 # Test if we are trying to use run time linking or normal
9098 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9099 # need to do runtime linking.
9100 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9101 for ld_flag in $LDFLAGS; do
9102 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9103 aix_use_runtimelinking=yes
9104 break
9105 fi
9106 done
9107 ;;
9108 esac
9109
9110 exp_sym_flag='-bexport'
9111 no_entry_flag='-bnoentry'
9112 fi
9113
9114 # When large executables or shared objects are built, AIX ld can
9115 # have problems creating the table of contents. If linking a library
9116 # or program results in "error TOC overflow" add -mminimal-toc to
9117 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9118 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9119
9120 archive_cmds=''
9121 hardcode_direct=yes
9122 hardcode_direct_absolute=yes
9123 hardcode_libdir_separator=':'
9124 link_all_deplibs=yes
9125 file_list_spec='${wl}-f,'
9126
9127 if test "$GCC" = yes; then
9128 case $host_os in aix4.[012]|aix4.[012].*)
9129 # We only want to do this on AIX 4.2 and lower, the check
9130 # below for broken collect2 doesn't work under 4.3+
9131 collect2name=`${CC} -print-prog-name=collect2`
9132 if test -f "$collect2name" &&
9133 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9134 then
9135 # We have reworked collect2
9136 :
9137 else
9138 # We have old collect2
9139 hardcode_direct=unsupported
9140 # It fails to find uninstalled libraries when the uninstalled
9141 # path is not listed in the libpath. Setting hardcode_minus_L
9142 # to unsupported forces relinking
9143 hardcode_minus_L=yes
9144 hardcode_libdir_flag_spec='-L$libdir'
9145 hardcode_libdir_separator=
9146 fi
9147 ;;
9148 esac
9149 shared_flag='-shared'
9150 if test "$aix_use_runtimelinking" = yes; then
9151 shared_flag="$shared_flag "'${wl}-G'
9152 fi
9153 else
9154 # not using gcc
9155 if test "$host_cpu" = ia64; then
9156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9157 # chokes on -Wl,-G. The following line is correct:
9158 shared_flag='-G'
9159 else
9160 if test "$aix_use_runtimelinking" = yes; then
9161 shared_flag='${wl}-G'
9162 else
9163 shared_flag='${wl}-bM:SRE'
9164 fi
9165 fi
9166 fi
9167
9168 export_dynamic_flag_spec='${wl}-bexpall'
9169 # It seems that -bexpall does not export symbols beginning with
9170 # underscore (_), so it is better to generate a list of symbols to export.
9171 always_export_symbols=yes
9172 if test "$aix_use_runtimelinking" = yes; then
9173 # Warning - without using the other runtime loading flags (-brtl),
9174 # -berok will link without error, but may produce a broken library.
9175 allow_undefined_flag='-berok'
9176 # Determine the default libpath from the value encoded in an
9177 # empty executable.
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180
9181 int
9182 main ()
9183 {
9184
9185 ;
9186 return 0;
9187 }
9188 _ACEOF
9189 if ac_fn_c_try_link "$LINENO"; then :
9190
9191 lt_aix_libpath_sed='
9192 /Import File Strings/,/^$/ {
9193 /^0/ {
9194 s/^0 *\(.*\)$/\1/
9195 p
9196 }
9197 }'
9198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9199 # Check for a 64-bit object if we didn't find anything.
9200 if test -z "$aix_libpath"; then
9201 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9202 fi
9203 fi
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9206 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9207
9208 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9209 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"
9210 else
9211 if test "$host_cpu" = ia64; then
9212 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9213 allow_undefined_flag="-z nodefs"
9214 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"
9215 else
9216 # Determine the default libpath from the value encoded in an
9217 # empty executable.
9218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9219 /* end confdefs.h. */
9220
9221 int
9222 main ()
9223 {
9224
9225 ;
9226 return 0;
9227 }
9228 _ACEOF
9229 if ac_fn_c_try_link "$LINENO"; then :
9230
9231 lt_aix_libpath_sed='
9232 /Import File Strings/,/^$/ {
9233 /^0/ {
9234 s/^0 *\(.*\)$/\1/
9235 p
9236 }
9237 }'
9238 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9239 # Check for a 64-bit object if we didn't find anything.
9240 if test -z "$aix_libpath"; then
9241 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9242 fi
9243 fi
9244 rm -f core conftest.err conftest.$ac_objext \
9245 conftest$ac_exeext conftest.$ac_ext
9246 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9247
9248 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9249 # Warning - without using the other run time loading flags,
9250 # -berok will link without error, but may produce a broken library.
9251 no_undefined_flag=' ${wl}-bernotok'
9252 allow_undefined_flag=' ${wl}-berok'
9253 if test "$with_gnu_ld" = yes; then
9254 # We only use this code for GNU lds that support --whole-archive.
9255 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9256 else
9257 # Exported symbols can be pulled into shared objects from archives
9258 whole_archive_flag_spec='$convenience'
9259 fi
9260 archive_cmds_need_lc=yes
9261 # This is similar to how AIX traditionally builds its shared libraries.
9262 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'
9263 fi
9264 fi
9265 ;;
9266
9267 amigaos*)
9268 case $host_cpu in
9269 powerpc)
9270 # see comment about AmigaOS4 .so support
9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 archive_expsym_cmds=''
9273 ;;
9274 m68k)
9275 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)'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9278 ;;
9279 esac
9280 ;;
9281
9282 bsdi[45]*)
9283 export_dynamic_flag_spec=-rdynamic
9284 ;;
9285
9286 cygwin* | mingw* | pw32* | cegcc*)
9287 # When not using gcc, we currently assume that we are using
9288 # Microsoft Visual C++.
9289 # hardcode_libdir_flag_spec is actually meaningless, as there is
9290 # no search path for DLLs.
9291 hardcode_libdir_flag_spec=' '
9292 allow_undefined_flag=unsupported
9293 # Tell ltmain to make .lib files, not .a files.
9294 libext=lib
9295 # Tell ltmain to make .dll files, not .so files.
9296 shrext_cmds=".dll"
9297 # FIXME: Setting linknames here is a bad hack.
9298 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9299 # The linker will automatically build a .lib file if we build a DLL.
9300 old_archive_from_new_cmds='true'
9301 # FIXME: Should let the user specify the lib program.
9302 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9303 fix_srcfile_path='`cygpath -w "$srcfile"`'
9304 enable_shared_with_static_runtimes=yes
9305 ;;
9306
9307 darwin* | rhapsody*)
9308
9309
9310 archive_cmds_need_lc=no
9311 hardcode_direct=no
9312 hardcode_automatic=yes
9313 hardcode_shlibpath_var=unsupported
9314 if test "$lt_cv_ld_force_load" = "yes"; then
9315 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\"`'
9316 else
9317 whole_archive_flag_spec=''
9318 fi
9319 link_all_deplibs=yes
9320 allow_undefined_flag="$_lt_dar_allow_undefined"
9321 case $cc_basename in
9322 ifort*) _lt_dar_can_shared=yes ;;
9323 *) _lt_dar_can_shared=$GCC ;;
9324 esac
9325 if test "$_lt_dar_can_shared" = "yes"; then
9326 output_verbose_link_cmd=func_echo_all
9327 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9328 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9329 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}"
9330 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}"
9331
9332 else
9333 ld_shlibs=no
9334 fi
9335
9336 ;;
9337
9338 dgux*)
9339 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_shlibpath_var=no
9342 ;;
9343
9344 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9345 # support. Future versions do this automatically, but an explicit c++rt0.o
9346 # does not break anything, and helps significantly (at the cost of a little
9347 # extra space).
9348 freebsd2.2*)
9349 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9350 hardcode_libdir_flag_spec='-R$libdir'
9351 hardcode_direct=yes
9352 hardcode_shlibpath_var=no
9353 ;;
9354
9355 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9356 freebsd2*)
9357 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9358 hardcode_direct=yes
9359 hardcode_minus_L=yes
9360 hardcode_shlibpath_var=no
9361 ;;
9362
9363 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9364 freebsd* | dragonfly*)
9365 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9366 hardcode_libdir_flag_spec='-R$libdir'
9367 hardcode_direct=yes
9368 hardcode_shlibpath_var=no
9369 ;;
9370
9371 hpux9*)
9372 if test "$GCC" = yes; then
9373 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'
9374 else
9375 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'
9376 fi
9377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9378 hardcode_libdir_separator=:
9379 hardcode_direct=yes
9380
9381 # hardcode_minus_L: Not really in the search PATH,
9382 # but as the default location of the library.
9383 hardcode_minus_L=yes
9384 export_dynamic_flag_spec='${wl}-E'
9385 ;;
9386
9387 hpux10*)
9388 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9389 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9390 else
9391 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9392 fi
9393 if test "$with_gnu_ld" = no; then
9394 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9395 hardcode_libdir_flag_spec_ld='+b $libdir'
9396 hardcode_libdir_separator=:
9397 hardcode_direct=yes
9398 hardcode_direct_absolute=yes
9399 export_dynamic_flag_spec='${wl}-E'
9400 # hardcode_minus_L: Not really in the search PATH,
9401 # but as the default location of the library.
9402 hardcode_minus_L=yes
9403 fi
9404 ;;
9405
9406 hpux11*)
9407 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9408 case $host_cpu in
9409 hppa*64*)
9410 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 ;;
9412 ia64*)
9413 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9414 ;;
9415 *)
9416 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9417 ;;
9418 esac
9419 else
9420 case $host_cpu in
9421 hppa*64*)
9422 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9423 ;;
9424 ia64*)
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9426 ;;
9427 *)
9428
9429 # Older versions of the 11.00 compiler do not understand -b yet
9430 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9432 $as_echo_n "checking if $CC understands -b... " >&6; }
9433 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9434 $as_echo_n "(cached) " >&6
9435 else
9436 lt_cv_prog_compiler__b=no
9437 save_LDFLAGS="$LDFLAGS"
9438 LDFLAGS="$LDFLAGS -b"
9439 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9440 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9441 # The linker can only warn and ignore the option if not recognized
9442 # So say no if there are warnings
9443 if test -s conftest.err; then
9444 # Append any errors to the config.log.
9445 cat conftest.err 1>&5
9446 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9448 if diff conftest.exp conftest.er2 >/dev/null; then
9449 lt_cv_prog_compiler__b=yes
9450 fi
9451 else
9452 lt_cv_prog_compiler__b=yes
9453 fi
9454 fi
9455 $RM -r conftest*
9456 LDFLAGS="$save_LDFLAGS"
9457
9458 fi
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9460 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9461
9462 if test x"$lt_cv_prog_compiler__b" = xyes; then
9463 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9464 else
9465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9466 fi
9467
9468 ;;
9469 esac
9470 fi
9471 if test "$with_gnu_ld" = no; then
9472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473 hardcode_libdir_separator=:
9474
9475 case $host_cpu in
9476 hppa*64*|ia64*)
9477 hardcode_direct=no
9478 hardcode_shlibpath_var=no
9479 ;;
9480 *)
9481 hardcode_direct=yes
9482 hardcode_direct_absolute=yes
9483 export_dynamic_flag_spec='${wl}-E'
9484
9485 # hardcode_minus_L: Not really in the search PATH,
9486 # but as the default location of the library.
9487 hardcode_minus_L=yes
9488 ;;
9489 esac
9490 fi
9491 ;;
9492
9493 irix5* | irix6* | nonstopux*)
9494 if test "$GCC" = yes; then
9495 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'
9496 # Try to use the -exported_symbol ld option, if it does not
9497 # work, assume that -exports_file does not work either and
9498 # implicitly export all symbols.
9499 save_LDFLAGS="$LDFLAGS"
9500 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 int foo(void) {}
9504 _ACEOF
9505 if ac_fn_c_try_link "$LINENO"; then :
9506 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'
9507
9508 fi
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 LDFLAGS="$save_LDFLAGS"
9512 else
9513 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'
9514 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'
9515 fi
9516 archive_cmds_need_lc='no'
9517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518 hardcode_libdir_separator=:
9519 inherit_rpath=yes
9520 link_all_deplibs=yes
9521 ;;
9522
9523 netbsd*)
9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9525 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9526 else
9527 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9528 fi
9529 hardcode_libdir_flag_spec='-R$libdir'
9530 hardcode_direct=yes
9531 hardcode_shlibpath_var=no
9532 ;;
9533
9534 newsos6)
9535 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9536 hardcode_direct=yes
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 hardcode_libdir_separator=:
9539 hardcode_shlibpath_var=no
9540 ;;
9541
9542 *nto* | *qnx*)
9543 ;;
9544
9545 openbsd*)
9546 if test -f /usr/libexec/ld.so; then
9547 hardcode_direct=yes
9548 hardcode_shlibpath_var=no
9549 hardcode_direct_absolute=yes
9550 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9551 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9552 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9553 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9554 export_dynamic_flag_spec='${wl}-E'
9555 else
9556 case $host_os in
9557 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9558 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9559 hardcode_libdir_flag_spec='-R$libdir'
9560 ;;
9561 *)
9562 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9563 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9564 ;;
9565 esac
9566 fi
9567 else
9568 ld_shlibs=no
9569 fi
9570 ;;
9571
9572 os2*)
9573 hardcode_libdir_flag_spec='-L$libdir'
9574 hardcode_minus_L=yes
9575 allow_undefined_flag=unsupported
9576 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'
9577 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9578 ;;
9579
9580 osf3*)
9581 if test "$GCC" = yes; then
9582 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9583 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'
9584 else
9585 allow_undefined_flag=' -expect_unresolved \*'
9586 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'
9587 fi
9588 archive_cmds_need_lc='no'
9589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9590 hardcode_libdir_separator=:
9591 ;;
9592
9593 osf4* | osf5*) # as osf3* with the addition of -msym flag
9594 if test "$GCC" = yes; then
9595 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9596 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'
9597 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9598 else
9599 allow_undefined_flag=' -expect_unresolved \*'
9600 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'
9601 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~
9602 $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'
9603
9604 # Both c and cxx compiler support -rpath directly
9605 hardcode_libdir_flag_spec='-rpath $libdir'
9606 fi
9607 archive_cmds_need_lc='no'
9608 hardcode_libdir_separator=:
9609 ;;
9610
9611 solaris*)
9612 no_undefined_flag=' -z defs'
9613 if test "$GCC" = yes; then
9614 wlarc='${wl}'
9615 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9616 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9617 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9618 else
9619 case `$CC -V 2>&1` in
9620 *"Compilers 5.0"*)
9621 wlarc=''
9622 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9624 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9625 ;;
9626 *)
9627 wlarc='${wl}'
9628 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9630 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9631 ;;
9632 esac
9633 fi
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_shlibpath_var=no
9636 case $host_os in
9637 solaris2.[0-5] | solaris2.[0-5].*) ;;
9638 *)
9639 # The compiler driver will combine and reorder linker options,
9640 # but understands `-z linker_flag'. GCC discards it without `$wl',
9641 # but is careful enough not to reorder.
9642 # Supported since Solaris 2.6 (maybe 2.5.1?)
9643 if test "$GCC" = yes; then
9644 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9645 else
9646 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9647 fi
9648 ;;
9649 esac
9650 link_all_deplibs=yes
9651 ;;
9652
9653 sunos4*)
9654 if test "x$host_vendor" = xsequent; then
9655 # Use $CC to link under sequent, because it throws in some extra .o
9656 # files that make .init and .fini sections work.
9657 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9658 else
9659 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9660 fi
9661 hardcode_libdir_flag_spec='-L$libdir'
9662 hardcode_direct=yes
9663 hardcode_minus_L=yes
9664 hardcode_shlibpath_var=no
9665 ;;
9666
9667 sysv4)
9668 case $host_vendor in
9669 sni)
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_direct=yes # is this really true???
9672 ;;
9673 siemens)
9674 ## LD is ld it makes a PLAMLIB
9675 ## CC just makes a GrossModule.
9676 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9677 reload_cmds='$CC -r -o $output$reload_objs'
9678 hardcode_direct=no
9679 ;;
9680 motorola)
9681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9682 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9683 ;;
9684 esac
9685 runpath_var='LD_RUN_PATH'
9686 hardcode_shlibpath_var=no
9687 ;;
9688
9689 sysv4.3*)
9690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9691 hardcode_shlibpath_var=no
9692 export_dynamic_flag_spec='-Bexport'
9693 ;;
9694
9695 sysv4*MP*)
9696 if test -d /usr/nec; then
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_shlibpath_var=no
9699 runpath_var=LD_RUN_PATH
9700 hardcode_runpath_var=yes
9701 ld_shlibs=yes
9702 fi
9703 ;;
9704
9705 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9706 no_undefined_flag='${wl}-z,text'
9707 archive_cmds_need_lc=no
9708 hardcode_shlibpath_var=no
9709 runpath_var='LD_RUN_PATH'
9710
9711 if test "$GCC" = yes; then
9712 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 else
9715 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 fi
9718 ;;
9719
9720 sysv5* | sco3.2v5* | sco5v6*)
9721 # Note: We can NOT use -z defs as we might desire, because we do not
9722 # link with -lc, and that would cause any symbols used from libc to
9723 # always be unresolved, which means just about no library would
9724 # ever link correctly. If we're not using GNU ld we use -z text
9725 # though, which does catch some bad symbols but isn't as heavy-handed
9726 # as -z defs.
9727 no_undefined_flag='${wl}-z,text'
9728 allow_undefined_flag='${wl}-z,nodefs'
9729 archive_cmds_need_lc=no
9730 hardcode_shlibpath_var=no
9731 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9732 hardcode_libdir_separator=':'
9733 link_all_deplibs=yes
9734 export_dynamic_flag_spec='${wl}-Bexport'
9735 runpath_var='LD_RUN_PATH'
9736
9737 if test "$GCC" = yes; then
9738 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9740 else
9741 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9743 fi
9744 ;;
9745
9746 uts4*)
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_libdir_flag_spec='-L$libdir'
9749 hardcode_shlibpath_var=no
9750 ;;
9751
9752 *)
9753 ld_shlibs=no
9754 ;;
9755 esac
9756
9757 if test x$host_vendor = xsni; then
9758 case $host in
9759 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9760 export_dynamic_flag_spec='${wl}-Blargedynsym'
9761 ;;
9762 esac
9763 fi
9764 fi
9765
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9767 $as_echo "$ld_shlibs" >&6; }
9768 test "$ld_shlibs" = no && can_build_shared=no
9769
9770 with_gnu_ld=$with_gnu_ld
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786 #
9787 # Do we need to explicitly link libc?
9788 #
9789 case "x$archive_cmds_need_lc" in
9790 x|xyes)
9791 # Assume -lc should be added
9792 archive_cmds_need_lc=yes
9793
9794 if test "$enable_shared" = yes && test "$GCC" = yes; then
9795 case $archive_cmds in
9796 *'~'*)
9797 # FIXME: we may have to deal with multi-command sequences.
9798 ;;
9799 '$CC '*)
9800 # Test whether the compiler implicitly links with -lc since on some
9801 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9802 # to ld, don't add -lc before -lgcc.
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9804 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9805 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9806 $as_echo_n "(cached) " >&6
9807 else
9808 $RM conftest*
9809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9810
9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9812 (eval $ac_compile) 2>&5
9813 ac_status=$?
9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; } 2>conftest.err; then
9816 soname=conftest
9817 lib=conftest
9818 libobjs=conftest.$ac_objext
9819 deplibs=
9820 wl=$lt_prog_compiler_wl
9821 pic_flag=$lt_prog_compiler_pic
9822 compiler_flags=-v
9823 linker_flags=-v
9824 verstring=
9825 output_objdir=.
9826 libname=conftest
9827 lt_save_allow_undefined_flag=$allow_undefined_flag
9828 allow_undefined_flag=
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9830 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9831 ac_status=$?
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; }
9834 then
9835 lt_cv_archive_cmds_need_lc=no
9836 else
9837 lt_cv_archive_cmds_need_lc=yes
9838 fi
9839 allow_undefined_flag=$lt_save_allow_undefined_flag
9840 else
9841 cat conftest.err 1>&5
9842 fi
9843 $RM conftest*
9844
9845 fi
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9847 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9848 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9849 ;;
9850 esac
9851 fi
9852 ;;
9853 esac
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10012 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10013
10014 if test "$GCC" = yes; then
10015 case $host_os in
10016 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10017 *) lt_awk_arg="/^libraries:/" ;;
10018 esac
10019 case $host_os in
10020 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10021 *) lt_sed_strip_eq="s,=/,/,g" ;;
10022 esac
10023 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10024 case $lt_search_path_spec in
10025 *\;*)
10026 # if the path contains ";" then we assume it to be the separator
10027 # otherwise default to the standard path separator (i.e. ":") - it is
10028 # assumed that no part of a normal pathname contains ";" but that should
10029 # okay in the real world where ";" in dirpaths is itself problematic.
10030 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10031 ;;
10032 *)
10033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10034 ;;
10035 esac
10036 # Ok, now we have the path, separated by spaces, we can step through it
10037 # and add multilib dir if necessary.
10038 lt_tmp_lt_search_path_spec=
10039 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10040 for lt_sys_path in $lt_search_path_spec; do
10041 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10042 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10043 else
10044 test -d "$lt_sys_path" && \
10045 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10046 fi
10047 done
10048 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10049 BEGIN {RS=" "; FS="/|\n";} {
10050 lt_foo="";
10051 lt_count=0;
10052 for (lt_i = NF; lt_i > 0; lt_i--) {
10053 if ($lt_i != "" && $lt_i != ".") {
10054 if ($lt_i == "..") {
10055 lt_count++;
10056 } else {
10057 if (lt_count == 0) {
10058 lt_foo="/" $lt_i lt_foo;
10059 } else {
10060 lt_count--;
10061 }
10062 }
10063 }
10064 }
10065 if (lt_foo != "") { lt_freq[lt_foo]++; }
10066 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10067 }'`
10068 # AWK program above erroneously prepends '/' to C:/dos/paths
10069 # for these hosts.
10070 case $host_os in
10071 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10072 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10073 esac
10074 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10075 else
10076 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10077 fi
10078 library_names_spec=
10079 libname_spec='lib$name'
10080 soname_spec=
10081 shrext_cmds=".so"
10082 postinstall_cmds=
10083 postuninstall_cmds=
10084 finish_cmds=
10085 finish_eval=
10086 shlibpath_var=
10087 shlibpath_overrides_runpath=unknown
10088 version_type=none
10089 dynamic_linker="$host_os ld.so"
10090 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10091 need_lib_prefix=unknown
10092 hardcode_into_libs=no
10093
10094 # when you set need_version to no, make sure it does not cause -set_version
10095 # flags to be left without arguments
10096 need_version=unknown
10097
10098 case $host_os in
10099 aix3*)
10100 version_type=linux
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10102 shlibpath_var=LIBPATH
10103
10104 # AIX 3 has no versioning support, so we append a major version to the name.
10105 soname_spec='${libname}${release}${shared_ext}$major'
10106 ;;
10107
10108 aix[4-9]*)
10109 version_type=linux
10110 need_lib_prefix=no
10111 need_version=no
10112 hardcode_into_libs=yes
10113 if test "$host_cpu" = ia64; then
10114 # AIX 5 supports IA64
10115 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10116 shlibpath_var=LD_LIBRARY_PATH
10117 else
10118 # With GCC up to 2.95.x, collect2 would create an import file
10119 # for dependence libraries. The import file would start with
10120 # the line `#! .'. This would cause the generated library to
10121 # depend on `.', always an invalid library. This was fixed in
10122 # development snapshots of GCC prior to 3.0.
10123 case $host_os in
10124 aix4 | aix4.[01] | aix4.[01].*)
10125 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10126 echo ' yes '
10127 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10128 :
10129 else
10130 can_build_shared=no
10131 fi
10132 ;;
10133 esac
10134 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10135 # soname into executable. Probably we can add versioning support to
10136 # collect2, so additional links can be useful in future.
10137 if test "$aix_use_runtimelinking" = yes; then
10138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10139 # instead of lib<name>.a to let people know that these are not
10140 # typical AIX shared libraries.
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142 else
10143 # We preserve .a as extension for shared libraries through AIX4.2
10144 # and later when we are not doing run time linking.
10145 library_names_spec='${libname}${release}.a $libname.a'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 fi
10148 shlibpath_var=LIBPATH
10149 fi
10150 ;;
10151
10152 amigaos*)
10153 case $host_cpu in
10154 powerpc)
10155 # Since July 2007 AmigaOS4 officially supports .so libraries.
10156 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 ;;
10159 m68k)
10160 library_names_spec='$libname.ixlibrary $libname.a'
10161 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10162 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'
10163 ;;
10164 esac
10165 ;;
10166
10167 beos*)
10168 library_names_spec='${libname}${shared_ext}'
10169 dynamic_linker="$host_os ld.so"
10170 shlibpath_var=LIBRARY_PATH
10171 ;;
10172
10173 bsdi[45]*)
10174 version_type=linux
10175 need_version=no
10176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10177 soname_spec='${libname}${release}${shared_ext}$major'
10178 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10179 shlibpath_var=LD_LIBRARY_PATH
10180 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10181 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10182 # the default ld.so.conf also contains /usr/contrib/lib and
10183 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10184 # libtool to hard-code these into programs
10185 ;;
10186
10187 cygwin* | mingw* | pw32* | cegcc*)
10188 version_type=windows
10189 shrext_cmds=".dll"
10190 need_version=no
10191 need_lib_prefix=no
10192
10193 case $GCC,$host_os in
10194 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10195 library_names_spec='$libname.dll.a'
10196 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10197 postinstall_cmds='base_file=`basename \${file}`~
10198 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10199 dldir=$destdir/`dirname \$dlpath`~
10200 test -d \$dldir || mkdir -p \$dldir~
10201 $install_prog $dir/$dlname \$dldir/$dlname~
10202 chmod a+x \$dldir/$dlname~
10203 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10204 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10205 fi'
10206 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10207 dlpath=$dir/\$dldll~
10208 $RM \$dlpath'
10209 shlibpath_overrides_runpath=yes
10210
10211 case $host_os in
10212 cygwin*)
10213 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10214 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10215
10216 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10217 ;;
10218 mingw* | cegcc*)
10219 # MinGW DLLs use traditional 'lib' prefix
10220 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10221 ;;
10222 pw32*)
10223 # pw32 DLLs use 'pw' prefix rather than 'lib'
10224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10225 ;;
10226 esac
10227 ;;
10228
10229 *)
10230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10231 ;;
10232 esac
10233 dynamic_linker='Win32 ld.exe'
10234 # FIXME: first we should search . and the directory the executable is in
10235 shlibpath_var=PATH
10236 ;;
10237
10238 darwin* | rhapsody*)
10239 dynamic_linker="$host_os dyld"
10240 version_type=darwin
10241 need_lib_prefix=no
10242 need_version=no
10243 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10244 soname_spec='${libname}${release}${major}$shared_ext'
10245 shlibpath_overrides_runpath=yes
10246 shlibpath_var=DYLD_LIBRARY_PATH
10247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10248
10249 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10250 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10251 ;;
10252
10253 dgux*)
10254 version_type=linux
10255 need_lib_prefix=no
10256 need_version=no
10257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10258 soname_spec='${libname}${release}${shared_ext}$major'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 ;;
10261
10262 freebsd* | dragonfly*)
10263 # DragonFly does not have aout. When/if they implement a new
10264 # versioning mechanism, adjust this.
10265 if test -x /usr/bin/objformat; then
10266 objformat=`/usr/bin/objformat`
10267 else
10268 case $host_os in
10269 freebsd[123]*) objformat=aout ;;
10270 *) objformat=elf ;;
10271 esac
10272 fi
10273 version_type=freebsd-$objformat
10274 case $version_type in
10275 freebsd-elf*)
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10277 need_version=no
10278 need_lib_prefix=no
10279 ;;
10280 freebsd-*)
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10282 need_version=yes
10283 ;;
10284 esac
10285 shlibpath_var=LD_LIBRARY_PATH
10286 case $host_os in
10287 freebsd2*)
10288 shlibpath_overrides_runpath=yes
10289 ;;
10290 freebsd3.[01]* | freebsdelf3.[01]*)
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10293 ;;
10294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10296 shlibpath_overrides_runpath=no
10297 hardcode_into_libs=yes
10298 ;;
10299 *) # from 4.6 on, and DragonFly
10300 shlibpath_overrides_runpath=yes
10301 hardcode_into_libs=yes
10302 ;;
10303 esac
10304 ;;
10305
10306 gnu*)
10307 version_type=linux
10308 need_lib_prefix=no
10309 need_version=no
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LD_LIBRARY_PATH
10313 hardcode_into_libs=yes
10314 ;;
10315
10316 haiku*)
10317 version_type=linux
10318 need_lib_prefix=no
10319 need_version=no
10320 dynamic_linker="$host_os runtime_loader"
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 shlibpath_var=LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes
10325 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10326 hardcode_into_libs=yes
10327 ;;
10328
10329 hpux9* | hpux10* | hpux11*)
10330 # Give a soname corresponding to the major version so that dld.sl refuses to
10331 # link against other versions.
10332 version_type=sunos
10333 need_lib_prefix=no
10334 need_version=no
10335 case $host_cpu in
10336 ia64*)
10337 shrext_cmds='.so'
10338 hardcode_into_libs=yes
10339 dynamic_linker="$host_os dld.so"
10340 shlibpath_var=LD_LIBRARY_PATH
10341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343 soname_spec='${libname}${release}${shared_ext}$major'
10344 if test "X$HPUX_IA64_MODE" = X32; then
10345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10346 else
10347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10348 fi
10349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10350 ;;
10351 hppa*64*)
10352 shrext_cmds='.sl'
10353 hardcode_into_libs=yes
10354 dynamic_linker="$host_os dld.sl"
10355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10361 ;;
10362 *)
10363 shrext_cmds='.sl'
10364 dynamic_linker="$host_os dld.sl"
10365 shlibpath_var=SHLIB_PATH
10366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 ;;
10370 esac
10371 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10372 postinstall_cmds='chmod 555 $lib'
10373 # or fails outright, so override atomically:
10374 install_override_mode=555
10375 ;;
10376
10377 interix[3-9]*)
10378 version_type=linux
10379 need_lib_prefix=no
10380 need_version=no
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10382 soname_spec='${libname}${release}${shared_ext}$major'
10383 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10384 shlibpath_var=LD_LIBRARY_PATH
10385 shlibpath_overrides_runpath=no
10386 hardcode_into_libs=yes
10387 ;;
10388
10389 irix5* | irix6* | nonstopux*)
10390 case $host_os in
10391 nonstopux*) version_type=nonstopux ;;
10392 *)
10393 if test "$lt_cv_prog_gnu_ld" = yes; then
10394 version_type=linux
10395 else
10396 version_type=irix
10397 fi ;;
10398 esac
10399 need_lib_prefix=no
10400 need_version=no
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10403 case $host_os in
10404 irix5* | nonstopux*)
10405 libsuff= shlibsuff=
10406 ;;
10407 *)
10408 case $LD in # libtool.m4 will add one of these switches to LD
10409 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10410 libsuff= shlibsuff= libmagic=32-bit;;
10411 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10412 libsuff=32 shlibsuff=N32 libmagic=N32;;
10413 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10414 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10415 *) libsuff= shlibsuff= libmagic=never-match;;
10416 esac
10417 ;;
10418 esac
10419 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10420 shlibpath_overrides_runpath=no
10421 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10422 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10423 hardcode_into_libs=yes
10424 ;;
10425
10426 # No shared lib support for Linux oldld, aout, or coff.
10427 linux*oldld* | linux*aout* | linux*coff*)
10428 dynamic_linker=no
10429 ;;
10430
10431 # This must be Linux ELF.
10432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10433 version_type=linux
10434 need_lib_prefix=no
10435 need_version=no
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10439 shlibpath_var=LD_LIBRARY_PATH
10440 shlibpath_overrides_runpath=no
10441
10442 # Some binutils ld are patched to set DT_RUNPATH
10443 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 lt_cv_shlibpath_overrides_runpath=no
10447 save_LDFLAGS=$LDFLAGS
10448 save_libdir=$libdir
10449 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10450 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10453
10454 int
10455 main ()
10456 {
10457
10458 ;
10459 return 0;
10460 }
10461 _ACEOF
10462 if ac_fn_c_try_link "$LINENO"; then :
10463 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10464 lt_cv_shlibpath_overrides_runpath=yes
10465 fi
10466 fi
10467 rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469 LDFLAGS=$save_LDFLAGS
10470 libdir=$save_libdir
10471
10472 fi
10473
10474 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10475
10476 # This implies no fast_install, which is unacceptable.
10477 # Some rework will be needed to allow for fast_install
10478 # before this can be enabled.
10479 hardcode_into_libs=yes
10480
10481 # Append ld.so.conf contents to the search path
10482 if test -f /etc/ld.so.conf; then
10483 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' ' '`
10484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10485 fi
10486
10487 # We used to test for /lib/ld.so.1 and disable shared libraries on
10488 # powerpc, because MkLinux only supported shared libraries with the
10489 # GNU dynamic linker. Since this was broken with cross compilers,
10490 # most powerpc-linux boxes support dynamic linking these days and
10491 # people can always --disable-shared, the test was removed, and we
10492 # assume the GNU/Linux dynamic linker is in use.
10493 dynamic_linker='GNU/Linux ld.so'
10494 ;;
10495
10496 netbsd*)
10497 version_type=sunos
10498 need_lib_prefix=no
10499 need_version=no
10500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10503 dynamic_linker='NetBSD (a.out) ld.so'
10504 else
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10506 soname_spec='${libname}${release}${shared_ext}$major'
10507 dynamic_linker='NetBSD ld.elf_so'
10508 fi
10509 shlibpath_var=LD_LIBRARY_PATH
10510 shlibpath_overrides_runpath=yes
10511 hardcode_into_libs=yes
10512 ;;
10513
10514 newsos6)
10515 version_type=linux
10516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10517 shlibpath_var=LD_LIBRARY_PATH
10518 shlibpath_overrides_runpath=yes
10519 ;;
10520
10521 *nto* | *qnx*)
10522 version_type=qnx
10523 need_lib_prefix=no
10524 need_version=no
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 shlibpath_overrides_runpath=no
10529 hardcode_into_libs=yes
10530 dynamic_linker='ldqnx.so'
10531 ;;
10532
10533 openbsd*)
10534 version_type=sunos
10535 sys_lib_dlsearch_path_spec="/usr/lib"
10536 need_lib_prefix=no
10537 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10538 case $host_os in
10539 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10540 *) need_version=no ;;
10541 esac
10542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10543 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10544 shlibpath_var=LD_LIBRARY_PATH
10545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10546 case $host_os in
10547 openbsd2.[89] | openbsd2.[89].*)
10548 shlibpath_overrides_runpath=no
10549 ;;
10550 *)
10551 shlibpath_overrides_runpath=yes
10552 ;;
10553 esac
10554 else
10555 shlibpath_overrides_runpath=yes
10556 fi
10557 ;;
10558
10559 os2*)
10560 libname_spec='$name'
10561 shrext_cmds=".dll"
10562 need_lib_prefix=no
10563 library_names_spec='$libname${shared_ext} $libname.a'
10564 dynamic_linker='OS/2 ld.exe'
10565 shlibpath_var=LIBPATH
10566 ;;
10567
10568 osf3* | osf4* | osf5*)
10569 version_type=osf
10570 need_lib_prefix=no
10571 need_version=no
10572 soname_spec='${libname}${release}${shared_ext}$major'
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10574 shlibpath_var=LD_LIBRARY_PATH
10575 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10576 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10577 ;;
10578
10579 rdos*)
10580 dynamic_linker=no
10581 ;;
10582
10583 solaris*)
10584 version_type=linux
10585 need_lib_prefix=no
10586 need_version=no
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=yes
10591 hardcode_into_libs=yes
10592 # ldd complains unless libraries are executable
10593 postinstall_cmds='chmod +x $lib'
10594 ;;
10595
10596 sunos4*)
10597 version_type=sunos
10598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10599 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 shlibpath_overrides_runpath=yes
10602 if test "$with_gnu_ld" = yes; then
10603 need_lib_prefix=no
10604 fi
10605 need_version=yes
10606 ;;
10607
10608 sysv4 | sysv4.3*)
10609 version_type=linux
10610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10611 soname_spec='${libname}${release}${shared_ext}$major'
10612 shlibpath_var=LD_LIBRARY_PATH
10613 case $host_vendor in
10614 sni)
10615 shlibpath_overrides_runpath=no
10616 need_lib_prefix=no
10617 runpath_var=LD_RUN_PATH
10618 ;;
10619 siemens)
10620 need_lib_prefix=no
10621 ;;
10622 motorola)
10623 need_lib_prefix=no
10624 need_version=no
10625 shlibpath_overrides_runpath=no
10626 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10627 ;;
10628 esac
10629 ;;
10630
10631 sysv4*MP*)
10632 if test -d /usr/nec ;then
10633 version_type=linux
10634 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10635 soname_spec='$libname${shared_ext}.$major'
10636 shlibpath_var=LD_LIBRARY_PATH
10637 fi
10638 ;;
10639
10640 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10641 version_type=freebsd-elf
10642 need_lib_prefix=no
10643 need_version=no
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645 soname_spec='${libname}${release}${shared_ext}$major'
10646 shlibpath_var=LD_LIBRARY_PATH
10647 shlibpath_overrides_runpath=yes
10648 hardcode_into_libs=yes
10649 if test "$with_gnu_ld" = yes; then
10650 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10651 else
10652 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10653 case $host_os in
10654 sco3.2v5*)
10655 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10656 ;;
10657 esac
10658 fi
10659 sys_lib_dlsearch_path_spec='/usr/lib'
10660 ;;
10661
10662 tpf*)
10663 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10664 version_type=linux
10665 need_lib_prefix=no
10666 need_version=no
10667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10668 shlibpath_var=LD_LIBRARY_PATH
10669 shlibpath_overrides_runpath=no
10670 hardcode_into_libs=yes
10671 ;;
10672
10673 uts4*)
10674 version_type=linux
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 ;;
10679
10680 *)
10681 dynamic_linker=no
10682 ;;
10683 esac
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10685 $as_echo "$dynamic_linker" >&6; }
10686 test "$dynamic_linker" = no && can_build_shared=no
10687
10688 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10689 if test "$GCC" = yes; then
10690 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10691 fi
10692
10693 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10694 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10695 fi
10696 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10697 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10698 fi
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10792 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10793 hardcode_action=
10794 if test -n "$hardcode_libdir_flag_spec" ||
10795 test -n "$runpath_var" ||
10796 test "X$hardcode_automatic" = "Xyes" ; then
10797
10798 # We can hardcode non-existent directories.
10799 if test "$hardcode_direct" != no &&
10800 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10801 # have to relink, otherwise we might link with an installed library
10802 # when we should be linking with a yet-to-be-installed one
10803 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10804 test "$hardcode_minus_L" != no; then
10805 # Linking always hardcodes the temporary library directory.
10806 hardcode_action=relink
10807 else
10808 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10809 hardcode_action=immediate
10810 fi
10811 else
10812 # We cannot hardcode anything, or else we can only hardcode existing
10813 # directories.
10814 hardcode_action=unsupported
10815 fi
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10817 $as_echo "$hardcode_action" >&6; }
10818
10819 if test "$hardcode_action" = relink ||
10820 test "$inherit_rpath" = yes; then
10821 # Fast installation is not supported
10822 enable_fast_install=no
10823 elif test "$shlibpath_overrides_runpath" = yes ||
10824 test "$enable_shared" = no; then
10825 # Fast installation is not necessary
10826 enable_fast_install=needless
10827 fi
10828
10829
10830
10831
10832
10833
10834 if test "x$enable_dlopen" != xyes; then
10835 enable_dlopen=unknown
10836 enable_dlopen_self=unknown
10837 enable_dlopen_self_static=unknown
10838 else
10839 lt_cv_dlopen=no
10840 lt_cv_dlopen_libs=
10841
10842 case $host_os in
10843 beos*)
10844 lt_cv_dlopen="load_add_on"
10845 lt_cv_dlopen_libs=
10846 lt_cv_dlopen_self=yes
10847 ;;
10848
10849 mingw* | pw32* | cegcc*)
10850 lt_cv_dlopen="LoadLibrary"
10851 lt_cv_dlopen_libs=
10852 ;;
10853
10854 cygwin*)
10855 lt_cv_dlopen="dlopen"
10856 lt_cv_dlopen_libs=
10857 ;;
10858
10859 darwin*)
10860 # if libdl is installed we need to link against it
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10862 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10863 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10864 $as_echo_n "(cached) " >&6
10865 else
10866 ac_check_lib_save_LIBS=$LIBS
10867 LIBS="-ldl $LIBS"
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870
10871 /* Override any GCC internal prototype to avoid an error.
10872 Use char because int might match the return type of a GCC
10873 builtin and then its argument prototype would still apply. */
10874 #ifdef __cplusplus
10875 extern "C"
10876 #endif
10877 char dlopen ();
10878 int
10879 main ()
10880 {
10881 return dlopen ();
10882 ;
10883 return 0;
10884 }
10885 _ACEOF
10886 if ac_fn_c_try_link "$LINENO"; then :
10887 ac_cv_lib_dl_dlopen=yes
10888 else
10889 ac_cv_lib_dl_dlopen=no
10890 fi
10891 rm -f core conftest.err conftest.$ac_objext \
10892 conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10894 fi
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10896 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10897 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10899 else
10900
10901 lt_cv_dlopen="dyld"
10902 lt_cv_dlopen_libs=
10903 lt_cv_dlopen_self=yes
10904
10905 fi
10906
10907 ;;
10908
10909 *)
10910 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10911 if test "x$ac_cv_func_shl_load" = x""yes; then :
10912 lt_cv_dlopen="shl_load"
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10915 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10916 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 ac_check_lib_save_LIBS=$LIBS
10920 LIBS="-ldld $LIBS"
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923
10924 /* Override any GCC internal prototype to avoid an error.
10925 Use char because int might match the return type of a GCC
10926 builtin and then its argument prototype would still apply. */
10927 #ifdef __cplusplus
10928 extern "C"
10929 #endif
10930 char shl_load ();
10931 int
10932 main ()
10933 {
10934 return shl_load ();
10935 ;
10936 return 0;
10937 }
10938 _ACEOF
10939 if ac_fn_c_try_link "$LINENO"; then :
10940 ac_cv_lib_dld_shl_load=yes
10941 else
10942 ac_cv_lib_dld_shl_load=no
10943 fi
10944 rm -f core conftest.err conftest.$ac_objext \
10945 conftest$ac_exeext conftest.$ac_ext
10946 LIBS=$ac_check_lib_save_LIBS
10947 fi
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10949 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10950 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10951 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10952 else
10953 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10954 if test "x$ac_cv_func_dlopen" = x""yes; then :
10955 lt_cv_dlopen="dlopen"
10956 else
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10958 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10961 else
10962 ac_check_lib_save_LIBS=$LIBS
10963 LIBS="-ldl $LIBS"
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10966
10967 /* Override any GCC internal prototype to avoid an error.
10968 Use char because int might match the return type of a GCC
10969 builtin and then its argument prototype would still apply. */
10970 #ifdef __cplusplus
10971 extern "C"
10972 #endif
10973 char dlopen ();
10974 int
10975 main ()
10976 {
10977 return dlopen ();
10978 ;
10979 return 0;
10980 }
10981 _ACEOF
10982 if ac_fn_c_try_link "$LINENO"; then :
10983 ac_cv_lib_dl_dlopen=yes
10984 else
10985 ac_cv_lib_dl_dlopen=no
10986 fi
10987 rm -f core conftest.err conftest.$ac_objext \
10988 conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10990 fi
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10992 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10993 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10994 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10995 else
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10997 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10998 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10999 $as_echo_n "(cached) " >&6
11000 else
11001 ac_check_lib_save_LIBS=$LIBS
11002 LIBS="-lsvld $LIBS"
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005
11006 /* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
11009 #ifdef __cplusplus
11010 extern "C"
11011 #endif
11012 char dlopen ();
11013 int
11014 main ()
11015 {
11016 return dlopen ();
11017 ;
11018 return 0;
11019 }
11020 _ACEOF
11021 if ac_fn_c_try_link "$LINENO"; then :
11022 ac_cv_lib_svld_dlopen=yes
11023 else
11024 ac_cv_lib_svld_dlopen=no
11025 fi
11026 rm -f core conftest.err conftest.$ac_objext \
11027 conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11029 fi
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11031 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11032 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11033 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11034 else
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11036 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11037 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11038 $as_echo_n "(cached) " >&6
11039 else
11040 ac_check_lib_save_LIBS=$LIBS
11041 LIBS="-ldld $LIBS"
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11048 #ifdef __cplusplus
11049 extern "C"
11050 #endif
11051 char dld_link ();
11052 int
11053 main ()
11054 {
11055 return dld_link ();
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 if ac_fn_c_try_link "$LINENO"; then :
11061 ac_cv_lib_dld_dld_link=yes
11062 else
11063 ac_cv_lib_dld_dld_link=no
11064 fi
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LIBS=$ac_check_lib_save_LIBS
11068 fi
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11070 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11071 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11072 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11073 fi
11074
11075
11076 fi
11077
11078
11079 fi
11080
11081
11082 fi
11083
11084
11085 fi
11086
11087
11088 fi
11089
11090 ;;
11091 esac
11092
11093 if test "x$lt_cv_dlopen" != xno; then
11094 enable_dlopen=yes
11095 else
11096 enable_dlopen=no
11097 fi
11098
11099 case $lt_cv_dlopen in
11100 dlopen)
11101 save_CPPFLAGS="$CPPFLAGS"
11102 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11103
11104 save_LDFLAGS="$LDFLAGS"
11105 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11106
11107 save_LIBS="$LIBS"
11108 LIBS="$lt_cv_dlopen_libs $LIBS"
11109
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11111 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11112 if test "${lt_cv_dlopen_self+set}" = set; then :
11113 $as_echo_n "(cached) " >&6
11114 else
11115 if test "$cross_compiling" = yes; then :
11116 lt_cv_dlopen_self=cross
11117 else
11118 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11119 lt_status=$lt_dlunknown
11120 cat > conftest.$ac_ext <<_LT_EOF
11121 #line 11121 "configure"
11122 #include "confdefs.h"
11123
11124 #if HAVE_DLFCN_H
11125 #include <dlfcn.h>
11126 #endif
11127
11128 #include <stdio.h>
11129
11130 #ifdef RTLD_GLOBAL
11131 # define LT_DLGLOBAL RTLD_GLOBAL
11132 #else
11133 # ifdef DL_GLOBAL
11134 # define LT_DLGLOBAL DL_GLOBAL
11135 # else
11136 # define LT_DLGLOBAL 0
11137 # endif
11138 #endif
11139
11140 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11141 find out it does not work in some platform. */
11142 #ifndef LT_DLLAZY_OR_NOW
11143 # ifdef RTLD_LAZY
11144 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11145 # else
11146 # ifdef DL_LAZY
11147 # define LT_DLLAZY_OR_NOW DL_LAZY
11148 # else
11149 # ifdef RTLD_NOW
11150 # define LT_DLLAZY_OR_NOW RTLD_NOW
11151 # else
11152 # ifdef DL_NOW
11153 # define LT_DLLAZY_OR_NOW DL_NOW
11154 # else
11155 # define LT_DLLAZY_OR_NOW 0
11156 # endif
11157 # endif
11158 # endif
11159 # endif
11160 #endif
11161
11162 /* When -fvisbility=hidden is used, assume the code has been annotated
11163 correspondingly for the symbols needed. */
11164 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11165 void fnord () __attribute__((visibility("default")));
11166 #endif
11167
11168 void fnord () { int i=42; }
11169 int main ()
11170 {
11171 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11172 int status = $lt_dlunknown;
11173
11174 if (self)
11175 {
11176 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11177 else
11178 {
11179 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11180 else puts (dlerror ());
11181 }
11182 /* dlclose (self); */
11183 }
11184 else
11185 puts (dlerror ());
11186
11187 return status;
11188 }
11189 _LT_EOF
11190 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11191 (eval $ac_link) 2>&5
11192 ac_status=$?
11193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11194 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11195 (./conftest; exit; ) >&5 2>/dev/null
11196 lt_status=$?
11197 case x$lt_status in
11198 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11199 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11200 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11201 esac
11202 else :
11203 # compilation failed
11204 lt_cv_dlopen_self=no
11205 fi
11206 fi
11207 rm -fr conftest*
11208
11209
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11212 $as_echo "$lt_cv_dlopen_self" >&6; }
11213
11214 if test "x$lt_cv_dlopen_self" = xyes; then
11215 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11217 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11218 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 if test "$cross_compiling" = yes; then :
11222 lt_cv_dlopen_self_static=cross
11223 else
11224 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11225 lt_status=$lt_dlunknown
11226 cat > conftest.$ac_ext <<_LT_EOF
11227 #line 11227 "configure"
11228 #include "confdefs.h"
11229
11230 #if HAVE_DLFCN_H
11231 #include <dlfcn.h>
11232 #endif
11233
11234 #include <stdio.h>
11235
11236 #ifdef RTLD_GLOBAL
11237 # define LT_DLGLOBAL RTLD_GLOBAL
11238 #else
11239 # ifdef DL_GLOBAL
11240 # define LT_DLGLOBAL DL_GLOBAL
11241 # else
11242 # define LT_DLGLOBAL 0
11243 # endif
11244 #endif
11245
11246 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11247 find out it does not work in some platform. */
11248 #ifndef LT_DLLAZY_OR_NOW
11249 # ifdef RTLD_LAZY
11250 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11251 # else
11252 # ifdef DL_LAZY
11253 # define LT_DLLAZY_OR_NOW DL_LAZY
11254 # else
11255 # ifdef RTLD_NOW
11256 # define LT_DLLAZY_OR_NOW RTLD_NOW
11257 # else
11258 # ifdef DL_NOW
11259 # define LT_DLLAZY_OR_NOW DL_NOW
11260 # else
11261 # define LT_DLLAZY_OR_NOW 0
11262 # endif
11263 # endif
11264 # endif
11265 # endif
11266 #endif
11267
11268 /* When -fvisbility=hidden is used, assume the code has been annotated
11269 correspondingly for the symbols needed. */
11270 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11271 void fnord () __attribute__((visibility("default")));
11272 #endif
11273
11274 void fnord () { int i=42; }
11275 int main ()
11276 {
11277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11278 int status = $lt_dlunknown;
11279
11280 if (self)
11281 {
11282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11283 else
11284 {
11285 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11286 else puts (dlerror ());
11287 }
11288 /* dlclose (self); */
11289 }
11290 else
11291 puts (dlerror ());
11292
11293 return status;
11294 }
11295 _LT_EOF
11296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11297 (eval $ac_link) 2>&5
11298 ac_status=$?
11299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11300 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11301 (./conftest; exit; ) >&5 2>/dev/null
11302 lt_status=$?
11303 case x$lt_status in
11304 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11305 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11306 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11307 esac
11308 else :
11309 # compilation failed
11310 lt_cv_dlopen_self_static=no
11311 fi
11312 fi
11313 rm -fr conftest*
11314
11315
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11318 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11319 fi
11320
11321 CPPFLAGS="$save_CPPFLAGS"
11322 LDFLAGS="$save_LDFLAGS"
11323 LIBS="$save_LIBS"
11324 ;;
11325 esac
11326
11327 case $lt_cv_dlopen_self in
11328 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11329 *) enable_dlopen_self=unknown ;;
11330 esac
11331
11332 case $lt_cv_dlopen_self_static in
11333 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11334 *) enable_dlopen_self_static=unknown ;;
11335 esac
11336 fi
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354 striplib=
11355 old_striplib=
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11357 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11358 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11359 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11360 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11362 $as_echo "yes" >&6; }
11363 else
11364 # FIXME - insert some real tests, host_os isn't really good enough
11365 case $host_os in
11366 darwin*)
11367 if test -n "$STRIP" ; then
11368 striplib="$STRIP -x"
11369 old_striplib="$STRIP -S"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371 $as_echo "yes" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11375 fi
11376 ;;
11377 *)
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 ;;
11381 esac
11382 fi
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395 # Report which library types will actually be built
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11397 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11399 $as_echo "$can_build_shared" >&6; }
11400
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11402 $as_echo_n "checking whether to build shared libraries... " >&6; }
11403 test "$can_build_shared" = "no" && enable_shared=no
11404
11405 # On AIX, shared libraries and static libraries use the same namespace, and
11406 # are all built from PIC.
11407 case $host_os in
11408 aix3*)
11409 test "$enable_shared" = yes && enable_static=no
11410 if test -n "$RANLIB"; then
11411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11412 postinstall_cmds='$RANLIB $lib'
11413 fi
11414 ;;
11415
11416 aix[4-9]*)
11417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11418 test "$enable_shared" = yes && enable_static=no
11419 fi
11420 ;;
11421 esac
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11423 $as_echo "$enable_shared" >&6; }
11424
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11426 $as_echo_n "checking whether to build static libraries... " >&6; }
11427 # Make sure either enable_shared or enable_static is yes.
11428 test "$enable_shared" = yes || enable_static=yes
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11430 $as_echo "$enable_static" >&6; }
11431
11432
11433
11434
11435 fi
11436 ac_ext=c
11437 ac_cpp='$CPP $CPPFLAGS'
11438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11441
11442 CC="$lt_save_CC"
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456 # Source file extension for Go test sources.
11457 ac_ext=go
11458
11459 # Object file extension for compiled Go test sources.
11460 objext=o
11461 objext_GO=$objext
11462
11463 # Code to be used in simple compile tests
11464 lt_simple_compile_test_code="package main; func main() { }"
11465
11466 # Code to be used in simple link tests
11467 lt_simple_link_test_code='package main; func main() { }'
11468
11469 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11470
11471
11472
11473
11474
11475
11476 # If no C compiler was specified, use CC.
11477 LTCC=${LTCC-"$CC"}
11478
11479 # If no C compiler flags were specified, use CFLAGS.
11480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11481
11482 # Allow CC to be a program name with arguments.
11483 compiler=$CC
11484
11485
11486 # save warnings/boilerplate of simple test code
11487 ac_outfile=conftest.$ac_objext
11488 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11489 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11490 _lt_compiler_boilerplate=`cat conftest.err`
11491 $RM conftest*
11492
11493 ac_outfile=conftest.$ac_objext
11494 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11495 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11496 _lt_linker_boilerplate=`cat conftest.err`
11497 $RM -r conftest*
11498
11499
11500 # Allow CC to be a program name with arguments.
11501 lt_save_CC="$CC"
11502 lt_save_GCC="$GCC"
11503 GCC=yes
11504 CC=${GOC-"gccgo"}
11505 compiler=$CC
11506 compiler_GO=$CC
11507 LD_GO="$LD"
11508 for cc_temp in $compiler""; do
11509 case $cc_temp in
11510 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11511 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11512 \-*) ;;
11513 *) break;;
11514 esac
11515 done
11516 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11517
11518
11519 # Go did not exist at the time GCC didn't implicitly link libc in.
11520 archive_cmds_need_lc_GO=no
11521
11522 old_archive_cmds_GO=$old_archive_cmds
11523
11524 ## CAVEAT EMPTOR:
11525 ## There is no encapsulation within the following macros, do not change
11526 ## the running order or otherwise move them around unless you know exactly
11527 ## what you are doing...
11528 if test -n "$compiler"; then
11529
11530 lt_prog_compiler_no_builtin_flag_GO=
11531
11532 if test "$GCC" = yes; then
11533 case $cc_basename in
11534 nvcc*)
11535 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11536 *)
11537 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11538 esac
11539
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11541 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11543 $as_echo_n "(cached) " >&6
11544 else
11545 lt_cv_prog_compiler_rtti_exceptions=no
11546 ac_outfile=conftest.$ac_objext
11547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11548 lt_compiler_flag="-fno-rtti -fno-exceptions"
11549 # Insert the option either (1) after the last *FLAGS variable, or
11550 # (2) before a word containing "conftest.", or (3) at the end.
11551 # Note that $ac_compile itself does not contain backslashes and begins
11552 # with a dollar sign (not a hyphen), so the echo should work correctly.
11553 # The option is referenced via a variable to avoid confusing sed.
11554 lt_compile=`echo "$ac_compile" | $SED \
11555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11557 -e 's:$: $lt_compiler_flag:'`
11558 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11559 (eval "$lt_compile" 2>conftest.err)
11560 ac_status=$?
11561 cat conftest.err >&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 if (exit $ac_status) && test -s "$ac_outfile"; then
11564 # The compiler can only warn and ignore the option if not recognized
11565 # So say no if there are warnings other than the usual output.
11566 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11569 lt_cv_prog_compiler_rtti_exceptions=yes
11570 fi
11571 fi
11572 $RM conftest*
11573
11574 fi
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11576 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11577
11578 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11579 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11580 else
11581 :
11582 fi
11583
11584 fi
11585
11586
11587
11588 lt_prog_compiler_wl_GO=
11589 lt_prog_compiler_pic_GO=
11590 lt_prog_compiler_static_GO=
11591
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11593 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11594
11595 if test "$GCC" = yes; then
11596 lt_prog_compiler_wl_GO='-Wl,'
11597 lt_prog_compiler_static_GO='-static'
11598
11599 case $host_os in
11600 aix*)
11601 # All AIX code is PIC.
11602 if test "$host_cpu" = ia64; then
11603 # AIX 5 now supports IA64 processor
11604 lt_prog_compiler_static_GO='-Bstatic'
11605 fi
11606 ;;
11607
11608 amigaos*)
11609 case $host_cpu in
11610 powerpc)
11611 # see comment about AmigaOS4 .so support
11612 lt_prog_compiler_pic_GO='-fPIC'
11613 ;;
11614 m68k)
11615 # FIXME: we need at least 68020 code to build shared libraries, but
11616 # adding the `-m68020' flag to GCC prevents building anything better,
11617 # like `-m68040'.
11618 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11619 ;;
11620 esac
11621 ;;
11622
11623 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11624 # PIC is the default for these OSes.
11625 ;;
11626
11627 mingw* | cygwin* | pw32* | os2* | cegcc*)
11628 # This hack is so that the source file can tell whether it is being
11629 # built for inclusion in a dll (and should export symbols for example).
11630 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11631 # (--disable-auto-import) libraries
11632 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11633 ;;
11634
11635 darwin* | rhapsody*)
11636 # PIC is the default on this platform
11637 # Common symbols not allowed in MH_DYLIB files
11638 lt_prog_compiler_pic_GO='-fno-common'
11639 ;;
11640
11641 haiku*)
11642 # PIC is the default for Haiku.
11643 # The "-static" flag exists, but is broken.
11644 lt_prog_compiler_static_GO=
11645 ;;
11646
11647 hpux*)
11648 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11649 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11650 # sets the default TLS model and affects inlining.
11651 case $host_cpu in
11652 hppa*64*)
11653 # +Z the default
11654 ;;
11655 *)
11656 lt_prog_compiler_pic_GO='-fPIC'
11657 ;;
11658 esac
11659 ;;
11660
11661 interix[3-9]*)
11662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11663 # Instead, we relocate shared libraries at runtime.
11664 ;;
11665
11666 msdosdjgpp*)
11667 # Just because we use GCC doesn't mean we suddenly get shared libraries
11668 # on systems that don't support them.
11669 lt_prog_compiler_can_build_shared_GO=no
11670 enable_shared=no
11671 ;;
11672
11673 *nto* | *qnx*)
11674 # QNX uses GNU C++, but need to define -shared option too, otherwise
11675 # it will coredump.
11676 lt_prog_compiler_pic_GO='-fPIC -shared'
11677 ;;
11678
11679 sysv4*MP*)
11680 if test -d /usr/nec; then
11681 lt_prog_compiler_pic_GO=-Kconform_pic
11682 fi
11683 ;;
11684
11685 *)
11686 lt_prog_compiler_pic_GO='-fPIC'
11687 ;;
11688 esac
11689
11690 case $cc_basename in
11691 nvcc*) # Cuda Compiler Driver 2.2
11692 lt_prog_compiler_wl_GO='-Xlinker '
11693 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11694 ;;
11695 esac
11696 else
11697 # PORTME Check for flag to pass linker flags through the system compiler.
11698 case $host_os in
11699 aix*)
11700 lt_prog_compiler_wl_GO='-Wl,'
11701 if test "$host_cpu" = ia64; then
11702 # AIX 5 now supports IA64 processor
11703 lt_prog_compiler_static_GO='-Bstatic'
11704 else
11705 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11706 fi
11707 ;;
11708
11709 mingw* | cygwin* | pw32* | os2* | cegcc*)
11710 # This hack is so that the source file can tell whether it is being
11711 # built for inclusion in a dll (and should export symbols for example).
11712 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11713 ;;
11714
11715 hpux9* | hpux10* | hpux11*)
11716 lt_prog_compiler_wl_GO='-Wl,'
11717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11718 # not for PA HP-UX.
11719 case $host_cpu in
11720 hppa*64*|ia64*)
11721 # +Z the default
11722 ;;
11723 *)
11724 lt_prog_compiler_pic_GO='+Z'
11725 ;;
11726 esac
11727 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11728 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11729 ;;
11730
11731 irix5* | irix6* | nonstopux*)
11732 lt_prog_compiler_wl_GO='-Wl,'
11733 # PIC (with -KPIC) is the default.
11734 lt_prog_compiler_static_GO='-non_shared'
11735 ;;
11736
11737 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11738 case $cc_basename in
11739 # old Intel for x86_64 which still supported -KPIC.
11740 ecc*)
11741 lt_prog_compiler_wl_GO='-Wl,'
11742 lt_prog_compiler_pic_GO='-KPIC'
11743 lt_prog_compiler_static_GO='-static'
11744 ;;
11745 # icc used to be incompatible with GCC.
11746 # ICC 10 doesn't accept -KPIC any more.
11747 icc* | ifort*)
11748 lt_prog_compiler_wl_GO='-Wl,'
11749 lt_prog_compiler_pic_GO='-fPIC'
11750 lt_prog_compiler_static_GO='-static'
11751 ;;
11752 # Lahey Fortran 8.1.
11753 lf95*)
11754 lt_prog_compiler_wl_GO='-Wl,'
11755 lt_prog_compiler_pic_GO='--shared'
11756 lt_prog_compiler_static_GO='--static'
11757 ;;
11758 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11759 # Portland Group compilers (*not* the Pentium gcc compiler,
11760 # which looks to be a dead project)
11761 lt_prog_compiler_wl_GO='-Wl,'
11762 lt_prog_compiler_pic_GO='-fpic'
11763 lt_prog_compiler_static_GO='-Bstatic'
11764 ;;
11765 ccc*)
11766 lt_prog_compiler_wl_GO='-Wl,'
11767 # All Alpha code is PIC.
11768 lt_prog_compiler_static_GO='-non_shared'
11769 ;;
11770 xl* | bgxl* | bgf* | mpixl*)
11771 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11772 lt_prog_compiler_wl_GO='-Wl,'
11773 lt_prog_compiler_pic_GO='-qpic'
11774 lt_prog_compiler_static_GO='-qstaticlink'
11775 ;;
11776 *)
11777 case `$CC -V 2>&1 | sed 5q` in
11778 *Sun\ F* | *Sun*Fortran*)
11779 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11780 lt_prog_compiler_pic_GO='-KPIC'
11781 lt_prog_compiler_static_GO='-Bstatic'
11782 lt_prog_compiler_wl_GO=''
11783 ;;
11784 *Sun\ C*)
11785 # Sun C 5.9
11786 lt_prog_compiler_pic_GO='-KPIC'
11787 lt_prog_compiler_static_GO='-Bstatic'
11788 lt_prog_compiler_wl_GO='-Wl,'
11789 ;;
11790 esac
11791 ;;
11792 esac
11793 ;;
11794
11795 newsos6)
11796 lt_prog_compiler_pic_GO='-KPIC'
11797 lt_prog_compiler_static_GO='-Bstatic'
11798 ;;
11799
11800 *nto* | *qnx*)
11801 # QNX uses GNU C++, but need to define -shared option too, otherwise
11802 # it will coredump.
11803 lt_prog_compiler_pic_GO='-fPIC -shared'
11804 ;;
11805
11806 osf3* | osf4* | osf5*)
11807 lt_prog_compiler_wl_GO='-Wl,'
11808 # All OSF/1 code is PIC.
11809 lt_prog_compiler_static_GO='-non_shared'
11810 ;;
11811
11812 rdos*)
11813 lt_prog_compiler_static_GO='-non_shared'
11814 ;;
11815
11816 solaris*)
11817 lt_prog_compiler_pic_GO='-KPIC'
11818 lt_prog_compiler_static_GO='-Bstatic'
11819 case $cc_basename in
11820 f77* | f90* | f95*)
11821 lt_prog_compiler_wl_GO='-Qoption ld ';;
11822 *)
11823 lt_prog_compiler_wl_GO='-Wl,';;
11824 esac
11825 ;;
11826
11827 sunos4*)
11828 lt_prog_compiler_wl_GO='-Qoption ld '
11829 lt_prog_compiler_pic_GO='-PIC'
11830 lt_prog_compiler_static_GO='-Bstatic'
11831 ;;
11832
11833 sysv4 | sysv4.2uw2* | sysv4.3*)
11834 lt_prog_compiler_wl_GO='-Wl,'
11835 lt_prog_compiler_pic_GO='-KPIC'
11836 lt_prog_compiler_static_GO='-Bstatic'
11837 ;;
11838
11839 sysv4*MP*)
11840 if test -d /usr/nec ;then
11841 lt_prog_compiler_pic_GO='-Kconform_pic'
11842 lt_prog_compiler_static_GO='-Bstatic'
11843 fi
11844 ;;
11845
11846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11847 lt_prog_compiler_wl_GO='-Wl,'
11848 lt_prog_compiler_pic_GO='-KPIC'
11849 lt_prog_compiler_static_GO='-Bstatic'
11850 ;;
11851
11852 unicos*)
11853 lt_prog_compiler_wl_GO='-Wl,'
11854 lt_prog_compiler_can_build_shared_GO=no
11855 ;;
11856
11857 uts4*)
11858 lt_prog_compiler_pic_GO='-pic'
11859 lt_prog_compiler_static_GO='-Bstatic'
11860 ;;
11861
11862 *)
11863 lt_prog_compiler_can_build_shared_GO=no
11864 ;;
11865 esac
11866 fi
11867
11868 case $host_os in
11869 # For platforms which do not support PIC, -DPIC is meaningless:
11870 *djgpp*)
11871 lt_prog_compiler_pic_GO=
11872 ;;
11873 *)
11874 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11875 ;;
11876 esac
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11878 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11879
11880
11881
11882 #
11883 # Check to make sure the PIC flag actually works.
11884 #
11885 if test -n "$lt_prog_compiler_pic_GO"; then
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11887 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11888 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 lt_cv_prog_compiler_pic_works_GO=no
11892 ac_outfile=conftest.$ac_objext
11893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11894 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11895 # Insert the option either (1) after the last *FLAGS variable, or
11896 # (2) before a word containing "conftest.", or (3) at the end.
11897 # Note that $ac_compile itself does not contain backslashes and begins
11898 # with a dollar sign (not a hyphen), so the echo should work correctly.
11899 # The option is referenced via a variable to avoid confusing sed.
11900 lt_compile=`echo "$ac_compile" | $SED \
11901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11903 -e 's:$: $lt_compiler_flag:'`
11904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11905 (eval "$lt_compile" 2>conftest.err)
11906 ac_status=$?
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 if (exit $ac_status) && test -s "$ac_outfile"; then
11910 # The compiler can only warn and ignore the option if not recognized
11911 # So say no if there are warnings other than the usual output.
11912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11915 lt_cv_prog_compiler_pic_works_GO=yes
11916 fi
11917 fi
11918 $RM conftest*
11919
11920 fi
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11922 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11923
11924 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11925 case $lt_prog_compiler_pic_GO in
11926 "" | " "*) ;;
11927 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11928 esac
11929 else
11930 lt_prog_compiler_pic_GO=
11931 lt_prog_compiler_can_build_shared_GO=no
11932 fi
11933
11934 fi
11935
11936
11937
11938 #
11939 # Check to make sure the static flag actually works.
11940 #
11941 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11943 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11944 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
11946 else
11947 lt_cv_prog_compiler_static_works_GO=no
11948 save_LDFLAGS="$LDFLAGS"
11949 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11950 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11952 # The linker can only warn and ignore the option if not recognized
11953 # So say no if there are warnings
11954 if test -s conftest.err; then
11955 # Append any errors to the config.log.
11956 cat conftest.err 1>&5
11957 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11959 if diff conftest.exp conftest.er2 >/dev/null; then
11960 lt_cv_prog_compiler_static_works_GO=yes
11961 fi
11962 else
11963 lt_cv_prog_compiler_static_works_GO=yes
11964 fi
11965 fi
11966 $RM -r conftest*
11967 LDFLAGS="$save_LDFLAGS"
11968
11969 fi
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11971 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11972
11973 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11974 :
11975 else
11976 lt_prog_compiler_static_GO=
11977 fi
11978
11979
11980
11981
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11983 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11984 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
11986 else
11987 lt_cv_prog_compiler_c_o_GO=no
11988 $RM -r conftest 2>/dev/null
11989 mkdir conftest
11990 cd conftest
11991 mkdir out
11992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11993
11994 lt_compiler_flag="-o out/conftest2.$ac_objext"
11995 # Insert the option either (1) after the last *FLAGS variable, or
11996 # (2) before a word containing "conftest.", or (3) at the end.
11997 # Note that $ac_compile itself does not contain backslashes and begins
11998 # with a dollar sign (not a hyphen), so the echo should work correctly.
11999 lt_compile=`echo "$ac_compile" | $SED \
12000 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12002 -e 's:$: $lt_compiler_flag:'`
12003 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12004 (eval "$lt_compile" 2>out/conftest.err)
12005 ac_status=$?
12006 cat out/conftest.err >&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12009 then
12010 # The compiler can only warn and ignore the option if not recognized
12011 # So say no if there are warnings
12012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12013 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12014 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12015 lt_cv_prog_compiler_c_o_GO=yes
12016 fi
12017 fi
12018 chmod u+w . 2>&5
12019 $RM conftest*
12020 # SGI C++ compiler will create directory out/ii_files/ for
12021 # template instantiation
12022 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12023 $RM out/* && rmdir out
12024 cd ..
12025 $RM -r conftest
12026 $RM conftest*
12027
12028 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12030 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12031
12032
12033
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12035 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12036 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 lt_cv_prog_compiler_c_o_GO=no
12040 $RM -r conftest 2>/dev/null
12041 mkdir conftest
12042 cd conftest
12043 mkdir out
12044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12045
12046 lt_compiler_flag="-o out/conftest2.$ac_objext"
12047 # Insert the option either (1) after the last *FLAGS variable, or
12048 # (2) before a word containing "conftest.", or (3) at the end.
12049 # Note that $ac_compile itself does not contain backslashes and begins
12050 # with a dollar sign (not a hyphen), so the echo should work correctly.
12051 lt_compile=`echo "$ac_compile" | $SED \
12052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12054 -e 's:$: $lt_compiler_flag:'`
12055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12056 (eval "$lt_compile" 2>out/conftest.err)
12057 ac_status=$?
12058 cat out/conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12061 then
12062 # The compiler can only warn and ignore the option if not recognized
12063 # So say no if there are warnings
12064 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12065 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12066 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12067 lt_cv_prog_compiler_c_o_GO=yes
12068 fi
12069 fi
12070 chmod u+w . 2>&5
12071 $RM conftest*
12072 # SGI C++ compiler will create directory out/ii_files/ for
12073 # template instantiation
12074 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12075 $RM out/* && rmdir out
12076 cd ..
12077 $RM -r conftest
12078 $RM conftest*
12079
12080 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12082 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12083
12084
12085
12086
12087 hard_links="nottested"
12088 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12089 # do not overwrite the value of need_locks provided by the user
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12091 $as_echo_n "checking if we can lock with hard links... " >&6; }
12092 hard_links=yes
12093 $RM conftest*
12094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095 touch conftest.a
12096 ln conftest.a conftest.b 2>&5 || hard_links=no
12097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12099 $as_echo "$hard_links" >&6; }
12100 if test "$hard_links" = no; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12102 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12103 need_locks=warn
12104 fi
12105 else
12106 need_locks=no
12107 fi
12108
12109
12110
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12112 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12113
12114 runpath_var=
12115 allow_undefined_flag_GO=
12116 always_export_symbols_GO=no
12117 archive_cmds_GO=
12118 archive_expsym_cmds_GO=
12119 compiler_needs_object_GO=no
12120 enable_shared_with_static_runtimes_GO=no
12121 export_dynamic_flag_spec_GO=
12122 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12123 hardcode_automatic_GO=no
12124 hardcode_direct_GO=no
12125 hardcode_direct_absolute_GO=no
12126 hardcode_libdir_flag_spec_GO=
12127 hardcode_libdir_flag_spec_ld_GO=
12128 hardcode_libdir_separator_GO=
12129 hardcode_minus_L_GO=no
12130 hardcode_shlibpath_var_GO=unsupported
12131 inherit_rpath_GO=no
12132 link_all_deplibs_GO=unknown
12133 module_cmds_GO=
12134 module_expsym_cmds_GO=
12135 old_archive_from_new_cmds_GO=
12136 old_archive_from_expsyms_cmds_GO=
12137 thread_safe_flag_spec_GO=
12138 whole_archive_flag_spec_GO=
12139 # include_expsyms should be a list of space-separated symbols to be *always*
12140 # included in the symbol list
12141 include_expsyms_GO=
12142 # exclude_expsyms can be an extended regexp of symbols to exclude
12143 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12144 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12145 # as well as any symbol that contains `d'.
12146 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12147 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12148 # platforms (ab)use it in PIC code, but their linkers get confused if
12149 # the symbol is explicitly referenced. Since portable code cannot
12150 # rely on this symbol name, it's probably fine to never include it in
12151 # preloaded symbol tables.
12152 # Exclude shared library initialization/finalization symbols.
12153 extract_expsyms_cmds=
12154
12155 case $host_os in
12156 cygwin* | mingw* | pw32* | cegcc*)
12157 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12158 # When not using gcc, we currently assume that we are using
12159 # Microsoft Visual C++.
12160 if test "$GCC" != yes; then
12161 with_gnu_ld=no
12162 fi
12163 ;;
12164 interix*)
12165 # we just hope/assume this is gcc and not c89 (= MSVC++)
12166 with_gnu_ld=yes
12167 ;;
12168 openbsd*)
12169 with_gnu_ld=no
12170 ;;
12171 esac
12172
12173 ld_shlibs_GO=yes
12174
12175 # On some targets, GNU ld is compatible enough with the native linker
12176 # that we're better off using the native interface for both.
12177 lt_use_gnu_ld_interface=no
12178 if test "$with_gnu_ld" = yes; then
12179 case $host_os in
12180 aix*)
12181 # The AIX port of GNU ld has always aspired to compatibility
12182 # with the native linker. However, as the warning in the GNU ld
12183 # block says, versions before 2.19.5* couldn't really create working
12184 # shared libraries, regardless of the interface used.
12185 case `$LD -v 2>&1` in
12186 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12187 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12188 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12189 *)
12190 lt_use_gnu_ld_interface=yes
12191 ;;
12192 esac
12193 ;;
12194 *)
12195 lt_use_gnu_ld_interface=yes
12196 ;;
12197 esac
12198 fi
12199
12200 if test "$lt_use_gnu_ld_interface" = yes; then
12201 # If archive_cmds runs LD, not CC, wlarc should be empty
12202 wlarc='${wl}'
12203
12204 # Set some defaults for GNU ld with shared library support. These
12205 # are reset later if shared libraries are not supported. Putting them
12206 # here allows them to be overridden if necessary.
12207 runpath_var=LD_RUN_PATH
12208 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12209 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12210 # ancient GNU ld didn't support --whole-archive et. al.
12211 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12212 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12213 else
12214 whole_archive_flag_spec_GO=
12215 fi
12216 supports_anon_versioning=no
12217 case `$LD -v 2>&1` in
12218 *GNU\ gold*) supports_anon_versioning=yes ;;
12219 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12220 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12221 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12222 *\ 2.11.*) ;; # other 2.11 versions
12223 *) supports_anon_versioning=yes ;;
12224 esac
12225
12226 # See if GNU ld supports shared libraries.
12227 case $host_os in
12228 aix[3-9]*)
12229 # On AIX/PPC, the GNU linker is very broken
12230 if test "$host_cpu" != ia64; then
12231 ld_shlibs_GO=no
12232 cat <<_LT_EOF 1>&2
12233
12234 *** Warning: the GNU linker, at least up to release 2.19, is reported
12235 *** to be unable to reliably create shared libraries on AIX.
12236 *** Therefore, libtool is disabling shared libraries support. If you
12237 *** really care for shared libraries, you may want to install binutils
12238 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12239 *** You will then need to restart the configuration process.
12240
12241 _LT_EOF
12242 fi
12243 ;;
12244
12245 amigaos*)
12246 case $host_cpu in
12247 powerpc)
12248 # see comment about AmigaOS4 .so support
12249 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12250 archive_expsym_cmds_GO=''
12251 ;;
12252 m68k)
12253 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)'
12254 hardcode_libdir_flag_spec_GO='-L$libdir'
12255 hardcode_minus_L_GO=yes
12256 ;;
12257 esac
12258 ;;
12259
12260 beos*)
12261 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12262 allow_undefined_flag_GO=unsupported
12263 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12264 # support --undefined. This deserves some investigation. FIXME
12265 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266 else
12267 ld_shlibs_GO=no
12268 fi
12269 ;;
12270
12271 cygwin* | mingw* | pw32* | cegcc*)
12272 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12273 # as there is no search path for DLLs.
12274 hardcode_libdir_flag_spec_GO='-L$libdir'
12275 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12276 allow_undefined_flag_GO=unsupported
12277 always_export_symbols_GO=no
12278 enable_shared_with_static_runtimes_GO=yes
12279 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12280
12281 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12282 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12283 # If the export-symbols file already is a .def file (1st line
12284 # is EXPORTS), use it as is; otherwise, prepend...
12285 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12286 cp $export_symbols $output_objdir/$soname.def;
12287 else
12288 echo EXPORTS > $output_objdir/$soname.def;
12289 cat $export_symbols >> $output_objdir/$soname.def;
12290 fi~
12291 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12292 else
12293 ld_shlibs_GO=no
12294 fi
12295 ;;
12296
12297 haiku*)
12298 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12299 link_all_deplibs_GO=yes
12300 ;;
12301
12302 interix[3-9]*)
12303 hardcode_direct_GO=no
12304 hardcode_shlibpath_var_GO=no
12305 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12306 export_dynamic_flag_spec_GO='${wl}-E'
12307 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12308 # Instead, shared libraries are loaded at an image base (0x10000000 by
12309 # default) and relocated if they conflict, which is a slow very memory
12310 # consuming and fragmenting process. To avoid this, we pick a random,
12311 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12312 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12313 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'
12314 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'
12315 ;;
12316
12317 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12318 tmp_diet=no
12319 if test "$host_os" = linux-dietlibc; then
12320 case $cc_basename in
12321 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12322 esac
12323 fi
12324 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12325 && test "$tmp_diet" = no
12326 then
12327 tmp_addflag=
12328 tmp_sharedflag='-shared'
12329 case $cc_basename,$host_cpu in
12330 pgcc*) # Portland Group C compiler
12331 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'
12332 tmp_addflag=' $pic_flag'
12333 ;;
12334 pgf77* | pgf90* | pgf95* | pgfortran*)
12335 # Portland Group f77 and f90 compilers
12336 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'
12337 tmp_addflag=' $pic_flag -Mnomain' ;;
12338 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12339 tmp_addflag=' -i_dynamic' ;;
12340 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12341 tmp_addflag=' -i_dynamic -nofor_main' ;;
12342 ifc* | ifort*) # Intel Fortran compiler
12343 tmp_addflag=' -nofor_main' ;;
12344 lf95*) # Lahey Fortran 8.1
12345 whole_archive_flag_spec_GO=
12346 tmp_sharedflag='--shared' ;;
12347 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12348 tmp_sharedflag='-qmkshrobj'
12349 tmp_addflag= ;;
12350 nvcc*) # Cuda Compiler Driver 2.2
12351 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'
12352 compiler_needs_object_GO=yes
12353 ;;
12354 esac
12355 case `$CC -V 2>&1 | sed 5q` in
12356 *Sun\ C*) # Sun C 5.9
12357 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'
12358 compiler_needs_object_GO=yes
12359 tmp_sharedflag='-G' ;;
12360 *Sun\ F*) # Sun Fortran 8.3
12361 tmp_sharedflag='-G' ;;
12362 esac
12363 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12364
12365 if test "x$supports_anon_versioning" = xyes; then
12366 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12367 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12368 echo "local: *; };" >> $output_objdir/$libname.ver~
12369 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12370 fi
12371
12372 case $cc_basename in
12373 xlf* | bgf* | bgxlf* | mpixlf*)
12374 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12375 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12376 hardcode_libdir_flag_spec_GO=
12377 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12378 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12379 if test "x$supports_anon_versioning" = xyes; then
12380 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12381 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12382 echo "local: *; };" >> $output_objdir/$libname.ver~
12383 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12384 fi
12385 ;;
12386 esac
12387 else
12388 ld_shlibs_GO=no
12389 fi
12390 ;;
12391
12392 netbsd*)
12393 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12394 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12395 wlarc=
12396 else
12397 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12398 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12399 fi
12400 ;;
12401
12402 solaris*)
12403 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12404 ld_shlibs_GO=no
12405 cat <<_LT_EOF 1>&2
12406
12407 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12408 *** create shared libraries on Solaris systems. Therefore, libtool
12409 *** is disabling shared libraries support. We urge you to upgrade GNU
12410 *** binutils to release 2.9.1 or newer. Another option is to modify
12411 *** your PATH or compiler configuration so that the native linker is
12412 *** used, and then restart.
12413
12414 _LT_EOF
12415 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12416 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12417 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12418 else
12419 ld_shlibs_GO=no
12420 fi
12421 ;;
12422
12423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12424 case `$LD -v 2>&1` in
12425 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12426 ld_shlibs_GO=no
12427 cat <<_LT_EOF 1>&2
12428
12429 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12430 *** reliably create shared libraries on SCO systems. Therefore, libtool
12431 *** is disabling shared libraries support. We urge you to upgrade GNU
12432 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12433 *** your PATH or compiler configuration so that the native linker is
12434 *** used, and then restart.
12435
12436 _LT_EOF
12437 ;;
12438 *)
12439 # For security reasons, it is highly recommended that you always
12440 # use absolute paths for naming shared libraries, and exclude the
12441 # DT_RUNPATH tag from executables and libraries. But doing so
12442 # requires that you compile everything twice, which is a pain.
12443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12444 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12445 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12446 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12447 else
12448 ld_shlibs_GO=no
12449 fi
12450 ;;
12451 esac
12452 ;;
12453
12454 sunos4*)
12455 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12456 wlarc=
12457 hardcode_direct_GO=yes
12458 hardcode_shlibpath_var_GO=no
12459 ;;
12460
12461 *)
12462 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12463 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12464 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12465 else
12466 ld_shlibs_GO=no
12467 fi
12468 ;;
12469 esac
12470
12471 if test "$ld_shlibs_GO" = no; then
12472 runpath_var=
12473 hardcode_libdir_flag_spec_GO=
12474 export_dynamic_flag_spec_GO=
12475 whole_archive_flag_spec_GO=
12476 fi
12477 else
12478 # PORTME fill in a description of your system's linker (not GNU ld)
12479 case $host_os in
12480 aix3*)
12481 allow_undefined_flag_GO=unsupported
12482 always_export_symbols_GO=yes
12483 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'
12484 # Note: this linker hardcodes the directories in LIBPATH if there
12485 # are no directories specified by -L.
12486 hardcode_minus_L_GO=yes
12487 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12488 # Neither direct hardcoding nor static linking is supported with a
12489 # broken collect2.
12490 hardcode_direct_GO=unsupported
12491 fi
12492 ;;
12493
12494 aix[4-9]*)
12495 if test "$host_cpu" = ia64; then
12496 # On IA64, the linker does run time linking by default, so we don't
12497 # have to do anything special.
12498 aix_use_runtimelinking=no
12499 exp_sym_flag='-Bexport'
12500 no_entry_flag=""
12501 else
12502 # If we're using GNU nm, then we don't want the "-C" option.
12503 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12504 # Also, AIX nm treats weak defined symbols like other global
12505 # defined symbols, whereas GNU nm marks them as "W".
12506 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12507 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'
12508 else
12509 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'
12510 fi
12511 aix_use_runtimelinking=no
12512
12513 # Test if we are trying to use run time linking or normal
12514 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12515 # need to do runtime linking.
12516 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12517 for ld_flag in $LDFLAGS; do
12518 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12519 aix_use_runtimelinking=yes
12520 break
12521 fi
12522 done
12523 ;;
12524 esac
12525
12526 exp_sym_flag='-bexport'
12527 no_entry_flag='-bnoentry'
12528 fi
12529
12530 # When large executables or shared objects are built, AIX ld can
12531 # have problems creating the table of contents. If linking a library
12532 # or program results in "error TOC overflow" add -mminimal-toc to
12533 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12534 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12535
12536 archive_cmds_GO=''
12537 hardcode_direct_GO=yes
12538 hardcode_direct_absolute_GO=yes
12539 hardcode_libdir_separator_GO=':'
12540 link_all_deplibs_GO=yes
12541 file_list_spec_GO='${wl}-f,'
12542
12543 if test "$GCC" = yes; then
12544 case $host_os in aix4.[012]|aix4.[012].*)
12545 # We only want to do this on AIX 4.2 and lower, the check
12546 # below for broken collect2 doesn't work under 4.3+
12547 collect2name=`${CC} -print-prog-name=collect2`
12548 if test -f "$collect2name" &&
12549 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12550 then
12551 # We have reworked collect2
12552 :
12553 else
12554 # We have old collect2
12555 hardcode_direct_GO=unsupported
12556 # It fails to find uninstalled libraries when the uninstalled
12557 # path is not listed in the libpath. Setting hardcode_minus_L
12558 # to unsupported forces relinking
12559 hardcode_minus_L_GO=yes
12560 hardcode_libdir_flag_spec_GO='-L$libdir'
12561 hardcode_libdir_separator_GO=
12562 fi
12563 ;;
12564 esac
12565 shared_flag='-shared'
12566 if test "$aix_use_runtimelinking" = yes; then
12567 shared_flag="$shared_flag "'${wl}-G'
12568 fi
12569 else
12570 # not using gcc
12571 if test "$host_cpu" = ia64; then
12572 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12573 # chokes on -Wl,-G. The following line is correct:
12574 shared_flag='-G'
12575 else
12576 if test "$aix_use_runtimelinking" = yes; then
12577 shared_flag='${wl}-G'
12578 else
12579 shared_flag='${wl}-bM:SRE'
12580 fi
12581 fi
12582 fi
12583
12584 export_dynamic_flag_spec_GO='${wl}-bexpall'
12585 # It seems that -bexpall does not export symbols beginning with
12586 # underscore (_), so it is better to generate a list of symbols to export.
12587 always_export_symbols_GO=yes
12588 if test "$aix_use_runtimelinking" = yes; then
12589 # Warning - without using the other runtime loading flags (-brtl),
12590 # -berok will link without error, but may produce a broken library.
12591 allow_undefined_flag_GO='-berok'
12592 # Determine the default libpath from the value encoded in an
12593 # empty executable.
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596
12597 int
12598 main ()
12599 {
12600
12601 ;
12602 return 0;
12603 }
12604 _ACEOF
12605 if ac_fn_c_try_link "$LINENO"; then :
12606
12607 lt_aix_libpath_sed='
12608 /Import File Strings/,/^$/ {
12609 /^0/ {
12610 s/^0 *\(.*\)$/\1/
12611 p
12612 }
12613 }'
12614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12615 # Check for a 64-bit object if we didn't find anything.
12616 if test -z "$aix_libpath"; then
12617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12618 fi
12619 fi
12620 rm -f core conftest.err conftest.$ac_objext \
12621 conftest$ac_exeext conftest.$ac_ext
12622 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12623
12624 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12625 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"
12626 else
12627 if test "$host_cpu" = ia64; then
12628 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12629 allow_undefined_flag_GO="-z nodefs"
12630 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"
12631 else
12632 # Determine the default libpath from the value encoded in an
12633 # empty executable.
12634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12635 /* end confdefs.h. */
12636
12637 int
12638 main ()
12639 {
12640
12641 ;
12642 return 0;
12643 }
12644 _ACEOF
12645 if ac_fn_c_try_link "$LINENO"; then :
12646
12647 lt_aix_libpath_sed='
12648 /Import File Strings/,/^$/ {
12649 /^0/ {
12650 s/^0 *\(.*\)$/\1/
12651 p
12652 }
12653 }'
12654 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12655 # Check for a 64-bit object if we didn't find anything.
12656 if test -z "$aix_libpath"; then
12657 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12658 fi
12659 fi
12660 rm -f core conftest.err conftest.$ac_objext \
12661 conftest$ac_exeext conftest.$ac_ext
12662 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12663
12664 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12665 # Warning - without using the other run time loading flags,
12666 # -berok will link without error, but may produce a broken library.
12667 no_undefined_flag_GO=' ${wl}-bernotok'
12668 allow_undefined_flag_GO=' ${wl}-berok'
12669 if test "$with_gnu_ld" = yes; then
12670 # We only use this code for GNU lds that support --whole-archive.
12671 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12672 else
12673 # Exported symbols can be pulled into shared objects from archives
12674 whole_archive_flag_spec_GO='$convenience'
12675 fi
12676 archive_cmds_need_lc_GO=yes
12677 # This is similar to how AIX traditionally builds its shared libraries.
12678 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'
12679 fi
12680 fi
12681 ;;
12682
12683 amigaos*)
12684 case $host_cpu in
12685 powerpc)
12686 # see comment about AmigaOS4 .so support
12687 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12688 archive_expsym_cmds_GO=''
12689 ;;
12690 m68k)
12691 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)'
12692 hardcode_libdir_flag_spec_GO='-L$libdir'
12693 hardcode_minus_L_GO=yes
12694 ;;
12695 esac
12696 ;;
12697
12698 bsdi[45]*)
12699 export_dynamic_flag_spec_GO=-rdynamic
12700 ;;
12701
12702 cygwin* | mingw* | pw32* | cegcc*)
12703 # When not using gcc, we currently assume that we are using
12704 # Microsoft Visual C++.
12705 # hardcode_libdir_flag_spec is actually meaningless, as there is
12706 # no search path for DLLs.
12707 hardcode_libdir_flag_spec_GO=' '
12708 allow_undefined_flag_GO=unsupported
12709 # Tell ltmain to make .lib files, not .a files.
12710 libext=lib
12711 # Tell ltmain to make .dll files, not .so files.
12712 shrext_cmds=".dll"
12713 # FIXME: Setting linknames here is a bad hack.
12714 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12715 # The linker will automatically build a .lib file if we build a DLL.
12716 old_archive_from_new_cmds_GO='true'
12717 # FIXME: Should let the user specify the lib program.
12718 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12719 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12720 enable_shared_with_static_runtimes_GO=yes
12721 ;;
12722
12723 darwin* | rhapsody*)
12724
12725
12726 archive_cmds_need_lc_GO=no
12727 hardcode_direct_GO=no
12728 hardcode_automatic_GO=yes
12729 hardcode_shlibpath_var_GO=unsupported
12730 if test "$lt_cv_ld_force_load" = "yes"; then
12731 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\"`'
12732 else
12733 whole_archive_flag_spec_GO=''
12734 fi
12735 link_all_deplibs_GO=yes
12736 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12737 case $cc_basename in
12738 ifort*) _lt_dar_can_shared=yes ;;
12739 *) _lt_dar_can_shared=$GCC ;;
12740 esac
12741 if test "$_lt_dar_can_shared" = "yes"; then
12742 output_verbose_link_cmd=func_echo_all
12743 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}"
12744 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12745 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}"
12746 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}"
12747
12748 else
12749 ld_shlibs_GO=no
12750 fi
12751
12752 ;;
12753
12754 dgux*)
12755 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12756 hardcode_libdir_flag_spec_GO='-L$libdir'
12757 hardcode_shlibpath_var_GO=no
12758 ;;
12759
12760 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12761 # support. Future versions do this automatically, but an explicit c++rt0.o
12762 # does not break anything, and helps significantly (at the cost of a little
12763 # extra space).
12764 freebsd2.2*)
12765 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12766 hardcode_libdir_flag_spec_GO='-R$libdir'
12767 hardcode_direct_GO=yes
12768 hardcode_shlibpath_var_GO=no
12769 ;;
12770
12771 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12772 freebsd2*)
12773 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12774 hardcode_direct_GO=yes
12775 hardcode_minus_L_GO=yes
12776 hardcode_shlibpath_var_GO=no
12777 ;;
12778
12779 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12780 freebsd* | dragonfly*)
12781 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12782 hardcode_libdir_flag_spec_GO='-R$libdir'
12783 hardcode_direct_GO=yes
12784 hardcode_shlibpath_var_GO=no
12785 ;;
12786
12787 hpux9*)
12788 if test "$GCC" = yes; then
12789 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'
12790 else
12791 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'
12792 fi
12793 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12794 hardcode_libdir_separator_GO=:
12795 hardcode_direct_GO=yes
12796
12797 # hardcode_minus_L: Not really in the search PATH,
12798 # but as the default location of the library.
12799 hardcode_minus_L_GO=yes
12800 export_dynamic_flag_spec_GO='${wl}-E'
12801 ;;
12802
12803 hpux10*)
12804 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12805 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12806 else
12807 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12808 fi
12809 if test "$with_gnu_ld" = no; then
12810 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12811 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12812 hardcode_libdir_separator_GO=:
12813 hardcode_direct_GO=yes
12814 hardcode_direct_absolute_GO=yes
12815 export_dynamic_flag_spec_GO='${wl}-E'
12816 # hardcode_minus_L: Not really in the search PATH,
12817 # but as the default location of the library.
12818 hardcode_minus_L_GO=yes
12819 fi
12820 ;;
12821
12822 hpux11*)
12823 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12824 case $host_cpu in
12825 hppa*64*)
12826 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12827 ;;
12828 ia64*)
12829 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12830 ;;
12831 *)
12832 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12833 ;;
12834 esac
12835 else
12836 case $host_cpu in
12837 hppa*64*)
12838 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12839 ;;
12840 ia64*)
12841 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12842 ;;
12843 *)
12844 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12845 ;;
12846 esac
12847 fi
12848 if test "$with_gnu_ld" = no; then
12849 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12850 hardcode_libdir_separator_GO=:
12851
12852 case $host_cpu in
12853 hppa*64*|ia64*)
12854 hardcode_direct_GO=no
12855 hardcode_shlibpath_var_GO=no
12856 ;;
12857 *)
12858 hardcode_direct_GO=yes
12859 hardcode_direct_absolute_GO=yes
12860 export_dynamic_flag_spec_GO='${wl}-E'
12861
12862 # hardcode_minus_L: Not really in the search PATH,
12863 # but as the default location of the library.
12864 hardcode_minus_L_GO=yes
12865 ;;
12866 esac
12867 fi
12868 ;;
12869
12870 irix5* | irix6* | nonstopux*)
12871 if test "$GCC" = yes; then
12872 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'
12873 # Try to use the -exported_symbol ld option, if it does not
12874 # work, assume that -exports_file does not work either and
12875 # implicitly export all symbols.
12876 save_LDFLAGS="$LDFLAGS"
12877 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 int foo(void) {}
12881 _ACEOF
12882 if ac_fn_c_try_link "$LINENO"; then :
12883 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'
12884
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LDFLAGS="$save_LDFLAGS"
12889 else
12890 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'
12891 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'
12892 fi
12893 archive_cmds_need_lc_GO='no'
12894 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12895 hardcode_libdir_separator_GO=:
12896 inherit_rpath_GO=yes
12897 link_all_deplibs_GO=yes
12898 ;;
12899
12900 netbsd*)
12901 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12902 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12903 else
12904 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12905 fi
12906 hardcode_libdir_flag_spec_GO='-R$libdir'
12907 hardcode_direct_GO=yes
12908 hardcode_shlibpath_var_GO=no
12909 ;;
12910
12911 newsos6)
12912 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12913 hardcode_direct_GO=yes
12914 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12915 hardcode_libdir_separator_GO=:
12916 hardcode_shlibpath_var_GO=no
12917 ;;
12918
12919 *nto* | *qnx*)
12920 ;;
12921
12922 openbsd*)
12923 if test -f /usr/libexec/ld.so; then
12924 hardcode_direct_GO=yes
12925 hardcode_shlibpath_var_GO=no
12926 hardcode_direct_absolute_GO=yes
12927 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12928 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12929 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12930 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12931 export_dynamic_flag_spec_GO='${wl}-E'
12932 else
12933 case $host_os in
12934 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12935 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12936 hardcode_libdir_flag_spec_GO='-R$libdir'
12937 ;;
12938 *)
12939 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12940 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12941 ;;
12942 esac
12943 fi
12944 else
12945 ld_shlibs_GO=no
12946 fi
12947 ;;
12948
12949 os2*)
12950 hardcode_libdir_flag_spec_GO='-L$libdir'
12951 hardcode_minus_L_GO=yes
12952 allow_undefined_flag_GO=unsupported
12953 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'
12954 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12955 ;;
12956
12957 osf3*)
12958 if test "$GCC" = yes; then
12959 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12960 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'
12961 else
12962 allow_undefined_flag_GO=' -expect_unresolved \*'
12963 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'
12964 fi
12965 archive_cmds_need_lc_GO='no'
12966 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12967 hardcode_libdir_separator_GO=:
12968 ;;
12969
12970 osf4* | osf5*) # as osf3* with the addition of -msym flag
12971 if test "$GCC" = yes; then
12972 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12973 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'
12974 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12975 else
12976 allow_undefined_flag_GO=' -expect_unresolved \*'
12977 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'
12978 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~
12979 $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'
12980
12981 # Both c and cxx compiler support -rpath directly
12982 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12983 fi
12984 archive_cmds_need_lc_GO='no'
12985 hardcode_libdir_separator_GO=:
12986 ;;
12987
12988 solaris*)
12989 no_undefined_flag_GO=' -z defs'
12990 if test "$GCC" = yes; then
12991 wlarc='${wl}'
12992 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12993 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12994 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12995 else
12996 case `$CC -V 2>&1` in
12997 *"Compilers 5.0"*)
12998 wlarc=''
12999 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13000 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13001 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13002 ;;
13003 *)
13004 wlarc='${wl}'
13005 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13006 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13007 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13008 ;;
13009 esac
13010 fi
13011 hardcode_libdir_flag_spec_GO='-R$libdir'
13012 hardcode_shlibpath_var_GO=no
13013 case $host_os in
13014 solaris2.[0-5] | solaris2.[0-5].*) ;;
13015 *)
13016 # The compiler driver will combine and reorder linker options,
13017 # but understands `-z linker_flag'. GCC discards it without `$wl',
13018 # but is careful enough not to reorder.
13019 # Supported since Solaris 2.6 (maybe 2.5.1?)
13020 if test "$GCC" = yes; then
13021 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13022 else
13023 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13024 fi
13025 ;;
13026 esac
13027 link_all_deplibs_GO=yes
13028 ;;
13029
13030 sunos4*)
13031 if test "x$host_vendor" = xsequent; then
13032 # Use $CC to link under sequent, because it throws in some extra .o
13033 # files that make .init and .fini sections work.
13034 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13035 else
13036 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13037 fi
13038 hardcode_libdir_flag_spec_GO='-L$libdir'
13039 hardcode_direct_GO=yes
13040 hardcode_minus_L_GO=yes
13041 hardcode_shlibpath_var_GO=no
13042 ;;
13043
13044 sysv4)
13045 case $host_vendor in
13046 sni)
13047 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13048 hardcode_direct_GO=yes # is this really true???
13049 ;;
13050 siemens)
13051 ## LD is ld it makes a PLAMLIB
13052 ## CC just makes a GrossModule.
13053 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13054 reload_cmds_GO='$CC -r -o $output$reload_objs'
13055 hardcode_direct_GO=no
13056 ;;
13057 motorola)
13058 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13059 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13060 ;;
13061 esac
13062 runpath_var='LD_RUN_PATH'
13063 hardcode_shlibpath_var_GO=no
13064 ;;
13065
13066 sysv4.3*)
13067 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13068 hardcode_shlibpath_var_GO=no
13069 export_dynamic_flag_spec_GO='-Bexport'
13070 ;;
13071
13072 sysv4*MP*)
13073 if test -d /usr/nec; then
13074 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13075 hardcode_shlibpath_var_GO=no
13076 runpath_var=LD_RUN_PATH
13077 hardcode_runpath_var=yes
13078 ld_shlibs_GO=yes
13079 fi
13080 ;;
13081
13082 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13083 no_undefined_flag_GO='${wl}-z,text'
13084 archive_cmds_need_lc_GO=no
13085 hardcode_shlibpath_var_GO=no
13086 runpath_var='LD_RUN_PATH'
13087
13088 if test "$GCC" = yes; then
13089 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13091 else
13092 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13093 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 fi
13095 ;;
13096
13097 sysv5* | sco3.2v5* | sco5v6*)
13098 # Note: We can NOT use -z defs as we might desire, because we do not
13099 # link with -lc, and that would cause any symbols used from libc to
13100 # always be unresolved, which means just about no library would
13101 # ever link correctly. If we're not using GNU ld we use -z text
13102 # though, which does catch some bad symbols but isn't as heavy-handed
13103 # as -z defs.
13104 no_undefined_flag_GO='${wl}-z,text'
13105 allow_undefined_flag_GO='${wl}-z,nodefs'
13106 archive_cmds_need_lc_GO=no
13107 hardcode_shlibpath_var_GO=no
13108 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13109 hardcode_libdir_separator_GO=':'
13110 link_all_deplibs_GO=yes
13111 export_dynamic_flag_spec_GO='${wl}-Bexport'
13112 runpath_var='LD_RUN_PATH'
13113
13114 if test "$GCC" = yes; then
13115 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13116 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13117 else
13118 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13119 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13120 fi
13121 ;;
13122
13123 uts4*)
13124 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13125 hardcode_libdir_flag_spec_GO='-L$libdir'
13126 hardcode_shlibpath_var_GO=no
13127 ;;
13128
13129 *)
13130 ld_shlibs_GO=no
13131 ;;
13132 esac
13133
13134 if test x$host_vendor = xsni; then
13135 case $host in
13136 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13137 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13138 ;;
13139 esac
13140 fi
13141 fi
13142
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13144 $as_echo "$ld_shlibs_GO" >&6; }
13145 test "$ld_shlibs_GO" = no && can_build_shared=no
13146
13147 with_gnu_ld_GO=$with_gnu_ld
13148
13149
13150
13151
13152
13153
13154 #
13155 # Do we need to explicitly link libc?
13156 #
13157 case "x$archive_cmds_need_lc_GO" in
13158 x|xyes)
13159 # Assume -lc should be added
13160 archive_cmds_need_lc_GO=yes
13161
13162 if test "$enable_shared" = yes && test "$GCC" = yes; then
13163 case $archive_cmds_GO in
13164 *'~'*)
13165 # FIXME: we may have to deal with multi-command sequences.
13166 ;;
13167 '$CC '*)
13168 # Test whether the compiler implicitly links with -lc since on some
13169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13170 # to ld, don't add -lc before -lgcc.
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13172 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13173 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13174 $as_echo_n "(cached) " >&6
13175 else
13176 $RM conftest*
13177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13178
13179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13180 (eval $ac_compile) 2>&5
13181 ac_status=$?
13182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13183 test $ac_status = 0; } 2>conftest.err; then
13184 soname=conftest
13185 lib=conftest
13186 libobjs=conftest.$ac_objext
13187 deplibs=
13188 wl=$lt_prog_compiler_wl_GO
13189 pic_flag=$lt_prog_compiler_pic_GO
13190 compiler_flags=-v
13191 linker_flags=-v
13192 verstring=
13193 output_objdir=.
13194 libname=conftest
13195 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13196 allow_undefined_flag_GO=
13197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13198 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13199 ac_status=$?
13200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13201 test $ac_status = 0; }
13202 then
13203 lt_cv_archive_cmds_need_lc_GO=no
13204 else
13205 lt_cv_archive_cmds_need_lc_GO=yes
13206 fi
13207 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13208 else
13209 cat conftest.err 1>&5
13210 fi
13211 $RM conftest*
13212
13213 fi
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13215 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13216 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13217 ;;
13218 esac
13219 fi
13220 ;;
13221 esac
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13287 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13288 hardcode_action_GO=
13289 if test -n "$hardcode_libdir_flag_spec_GO" ||
13290 test -n "$runpath_var_GO" ||
13291 test "X$hardcode_automatic_GO" = "Xyes" ; then
13292
13293 # We can hardcode non-existent directories.
13294 if test "$hardcode_direct_GO" != no &&
13295 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13296 # have to relink, otherwise we might link with an installed library
13297 # when we should be linking with a yet-to-be-installed one
13298 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13299 test "$hardcode_minus_L_GO" != no; then
13300 # Linking always hardcodes the temporary library directory.
13301 hardcode_action_GO=relink
13302 else
13303 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13304 hardcode_action_GO=immediate
13305 fi
13306 else
13307 # We cannot hardcode anything, or else we can only hardcode existing
13308 # directories.
13309 hardcode_action_GO=unsupported
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13312 $as_echo "$hardcode_action_GO" >&6; }
13313
13314 if test "$hardcode_action_GO" = relink ||
13315 test "$inherit_rpath_GO" = yes; then
13316 # Fast installation is not supported
13317 enable_fast_install=no
13318 elif test "$shlibpath_overrides_runpath" = yes ||
13319 test "$enable_shared" = no; then
13320 # Fast installation is not necessary
13321 enable_fast_install=needless
13322 fi
13323
13324
13325
13326
13327
13328
13329
13330 fi
13331
13332 ac_ext=c
13333 ac_cpp='$CPP $CPPFLAGS'
13334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13337
13338
13339 GCC=$lt_save_GCC
13340 CC="$lt_save_CC"
13341
13342
13343
13344
13345 ac_config_commands="$ac_config_commands libtool"
13346
13347
13348
13349
13350 # Only expand once:
13351
13352
13353
13354
13355
13356 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13357
13358
13359 for ac_prog in gawk mawk nawk awk
13360 do
13361 # Extract the first word of "$ac_prog", so it can be a program name with args.
13362 set dummy $ac_prog; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13364 $as_echo_n "checking for $ac_word... " >&6; }
13365 if test "${ac_cv_prog_AWK+set}" = set; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 if test -n "$AWK"; then
13369 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13370 else
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13373 do
13374 IFS=$as_save_IFS
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13378 ac_cv_prog_AWK="$ac_prog"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13380 break 2
13381 fi
13382 done
13383 done
13384 IFS=$as_save_IFS
13385
13386 fi
13387 fi
13388 AWK=$ac_cv_prog_AWK
13389 if test -n "$AWK"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13391 $as_echo "$AWK" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396
13397
13398 test -n "$AWK" && break
13399 done
13400
13401
13402 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13403
13404
13405 # Check whether --enable-werror was given.
13406 if test "${enable_werror+set}" = set; then :
13407 enableval=$enable_werror;
13408 fi
13409
13410 if test "x$enable_werror" != "xno"; then
13411 WERROR="-Werror"
13412 fi
13413
13414
13415 glibgo_toolexecdir=no
13416 glibgo_toolexeclibdir=no
13417
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13419 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13420 # Check whether --enable-version-specific-runtime-libs was given.
13421 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13422 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13423 yes) version_specific_libs=yes ;;
13424 no) version_specific_libs=no ;;
13425 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13426 esac
13427 else
13428 version_specific_libs=no
13429 fi
13430
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13432 $as_echo "$version_specific_libs" >&6; }
13433
13434 # Version-specific runtime libs processing.
13435 if test $version_specific_libs = yes; then
13436 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13437 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13438 fi
13439
13440 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13441 # Install a library built with a cross compiler in tooldir, not libdir.
13442 if test -n "$with_cross_host" &&
13443 test x"$with_cross_host" != x"no"; then
13444 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13445 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13446 else
13447 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13448 nover_glibgo_toolexeclibdir='${libdir}'
13449 fi
13450 multi_os_directory=`$GOC -print-multi-os-directory`
13451 case $multi_os_directory in
13452 .) ;; # Avoid trailing /.
13453 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13454 esac
13455
13456 if test x"$glibgo_toolexecdir" = x"no"; then
13457 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13458 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13459 fi
13460
13461
13462
13463
13464
13465 # See if the user wants to configure without libffi. Some
13466 # architectures don't support it. FIXME: We should set a default
13467 # based on the host.
13468
13469 # Check whether --with-libffi was given.
13470 if test "${with_libffi+set}" = set; then :
13471 withval=$with_libffi; :
13472 else
13473 with_libffi=${with_libffi_default-yes}
13474 fi
13475
13476
13477 LIBFFI=
13478 LIBFFIINCS=
13479 if test "$with_libffi" != no; then
13480
13481 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13482
13483 LIBFFI=../libffi/libffi_convenience.la
13484 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13485 fi
13486
13487
13488
13489 # See if the user wants to configure without libatomic. This is useful if we are
13490 # on an architecture for which libgo does not need an atomic support library and
13491 # libatomic does not support our C compiler.
13492
13493 # Check whether --with-libatomic was given.
13494 if test "${with_libatomic+set}" = set; then :
13495 withval=$with_libatomic; :
13496 else
13497 with_libatomic=${with_libatomic_default-yes}
13498 fi
13499
13500
13501 LIBATOMIC=
13502 if test "$with_libatomic" != no; then
13503 LIBATOMIC=../libatomic/libatomic_convenience.la
13504 fi
13505
13506
13507 # Used to tell GNU make to include a file without telling automake to
13508 # include it.
13509 go_include="-include"
13510
13511
13512 is_darwin=no
13513 is_freebsd=no
13514 is_irix=no
13515 is_linux=no
13516 is_netbsd=no
13517 is_openbsd=no
13518 is_dragonfly=no
13519 is_rtems=no
13520 is_solaris=no
13521 GOOS=unknown
13522 case ${host} in
13523 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13524 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13525 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13526 *-*-linux*) is_linux=yes; GOOS=linux ;;
13527 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13528 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13529 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13530 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13531 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13532 esac
13533 if test $is_darwin = yes; then
13534 LIBGO_IS_DARWIN_TRUE=
13535 LIBGO_IS_DARWIN_FALSE='#'
13536 else
13537 LIBGO_IS_DARWIN_TRUE='#'
13538 LIBGO_IS_DARWIN_FALSE=
13539 fi
13540
13541 if test $is_freebsd = yes; then
13542 LIBGO_IS_FREEBSD_TRUE=
13543 LIBGO_IS_FREEBSD_FALSE='#'
13544 else
13545 LIBGO_IS_FREEBSD_TRUE='#'
13546 LIBGO_IS_FREEBSD_FALSE=
13547 fi
13548
13549 if test $is_irix = yes; then
13550 LIBGO_IS_IRIX_TRUE=
13551 LIBGO_IS_IRIX_FALSE='#'
13552 else
13553 LIBGO_IS_IRIX_TRUE='#'
13554 LIBGO_IS_IRIX_FALSE=
13555 fi
13556
13557 if test $is_linux = yes; then
13558 LIBGO_IS_LINUX_TRUE=
13559 LIBGO_IS_LINUX_FALSE='#'
13560 else
13561 LIBGO_IS_LINUX_TRUE='#'
13562 LIBGO_IS_LINUX_FALSE=
13563 fi
13564
13565 if test $is_netbsd = yes; then
13566 LIBGO_IS_NETBSD_TRUE=
13567 LIBGO_IS_NETBSD_FALSE='#'
13568 else
13569 LIBGO_IS_NETBSD_TRUE='#'
13570 LIBGO_IS_NETBSD_FALSE=
13571 fi
13572
13573 if test $is_openbsd = yes; then
13574 LIBGO_IS_OPENBSD_TRUE=
13575 LIBGO_IS_OPENBSD_FALSE='#'
13576 else
13577 LIBGO_IS_OPENBSD_TRUE='#'
13578 LIBGO_IS_OPENBSD_FALSE=
13579 fi
13580
13581 if test $is_dragonfly = yes; then
13582 LIBGO_IS_DRAGONFLY_TRUE=
13583 LIBGO_IS_DRAGONFLY_FALSE='#'
13584 else
13585 LIBGO_IS_DRAGONFLY_TRUE='#'
13586 LIBGO_IS_DRAGONFLY_FALSE=
13587 fi
13588
13589 if test $is_rtems = yes; then
13590 LIBGO_IS_RTEMS_TRUE=
13591 LIBGO_IS_RTEMS_FALSE='#'
13592 else
13593 LIBGO_IS_RTEMS_TRUE='#'
13594 LIBGO_IS_RTEMS_FALSE=
13595 fi
13596
13597 if test $is_solaris = yes; then
13598 LIBGO_IS_SOLARIS_TRUE=
13599 LIBGO_IS_SOLARIS_FALSE='#'
13600 else
13601 LIBGO_IS_SOLARIS_TRUE='#'
13602 LIBGO_IS_SOLARIS_FALSE=
13603 fi
13604
13605
13606
13607 USE_DEJAGNU=no
13608 case ${host} in
13609 *-*-rtems*) USE_DEJAGNU=yes ;;
13610 ${build}) ;;
13611 *) USE_DEJAGNU=yes ;;
13612 esac
13613
13614
13615 is_386=no
13616 is_alpha=no
13617 is_arm=no
13618 is_arm64=no
13619 is_m68k=no
13620 mips_abi=unknown
13621 is_ppc=no
13622 is_ppc64=no
13623 is_sparc=no
13624 is_sparc64=no
13625 is_x86_64=no
13626 GOARCH=unknown
13627 case ${host} in
13628 alpha*-*-*)
13629 is_alpha=yes
13630 GOARCH=alpha
13631 ;;
13632 aarch64-*-*)
13633 is_arm64=yes
13634 GOARCH=arm64
13635 ;;
13636 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13637 is_arm=yes
13638 GOARCH=arm
13639 ;;
13640 i[34567]86-*-* | x86_64-*-*)
13641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h. */
13643
13644 #ifdef __x86_64__
13645 #error 64-bit
13646 #endif
13647 _ACEOF
13648 if ac_fn_c_try_compile "$LINENO"; then :
13649 is_386=yes
13650 else
13651 is_x86_64=yes
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 if test "$is_386" = "yes"; then
13655 GOARCH=386
13656 else
13657 GOARCH=amd64
13658 fi
13659 ;;
13660 m68k*-*-*)
13661 is_m68k=yes
13662 GOARCH=m68k
13663 ;;
13664 mips*-*-*)
13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667
13668 #if _MIPS_SIM != _ABIO32
13669 #error not o32
13670 #endif
13671 _ACEOF
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673 mips_abi="o32"
13674 else
13675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13676 /* end confdefs.h. */
13677
13678 #if _MIPS_SIM != _ABIN32
13679 #error not n32
13680 #endif
13681 _ACEOF
13682 if ac_fn_c_try_compile "$LINENO"; then :
13683 mips_abi="n32"
13684 else
13685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13686 /* end confdefs.h. */
13687
13688 #if _MIPS_SIM != _ABI64
13689 #error not n64
13690 #endif
13691 _ACEOF
13692 if ac_fn_c_try_compile "$LINENO"; then :
13693 mips_abi="n64"
13694 else
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697
13698 #if _MIPS_SIM != _ABIO64
13699 #error not o64
13700 #endif
13701 _ACEOF
13702 if ac_fn_c_try_compile "$LINENO"; then :
13703 mips_abi="o64"
13704 else
13705 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13706 mips_abi="n32"
13707 fi
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 fi
13710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13711 fi
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13713 fi
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 case "$mips_abi" in
13716 "o32") GOARCH=mipso32 ;;
13717 "n32") GOARCH=mipsn32 ;;
13718 "n64") GOARCH=mipsn64 ;;
13719 "o64") GOARCH=mipso64 ;;
13720 esac
13721 ;;
13722 rs6000*-*-* | powerpc*-*-*)
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13725
13726 #ifdef _ARCH_PPC64
13727 #error 64-bit
13728 #endif
13729 _ACEOF
13730 if ac_fn_c_try_compile "$LINENO"; then :
13731 is_ppc=yes
13732 else
13733 is_ppc64=yes
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 if test "$is_ppc" = "yes"; then
13737 GOARCH=ppc
13738 else
13739 GOARCH=ppc64
13740 fi
13741 ;;
13742 sparc*-*-*)
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13745
13746 #if defined(__sparcv9) || defined(__arch64__)
13747 #error 64-bit
13748 #endif
13749 _ACEOF
13750 if ac_fn_c_try_compile "$LINENO"; then :
13751 is_sparc=yes
13752 else
13753 is_sparc64=yes
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 if test "$is_sparc" = "yes"; then
13757 GOARCH=sparc
13758 else
13759 GOARCH=sparc64
13760 fi
13761 ;;
13762 esac
13763 if test $is_386 = yes; then
13764 LIBGO_IS_386_TRUE=
13765 LIBGO_IS_386_FALSE='#'
13766 else
13767 LIBGO_IS_386_TRUE='#'
13768 LIBGO_IS_386_FALSE=
13769 fi
13770
13771 if test $is_alpha = yes; then
13772 LIBGO_IS_ALPHA_TRUE=
13773 LIBGO_IS_ALPHA_FALSE='#'
13774 else
13775 LIBGO_IS_ALPHA_TRUE='#'
13776 LIBGO_IS_ALPHA_FALSE=
13777 fi
13778
13779 if test $is_arm = yes; then
13780 LIBGO_IS_ARM_TRUE=
13781 LIBGO_IS_ARM_FALSE='#'
13782 else
13783 LIBGO_IS_ARM_TRUE='#'
13784 LIBGO_IS_ARM_FALSE=
13785 fi
13786
13787 if test $is_arm64 = yes; then
13788 LIBGO_IS_ARM64_TRUE=
13789 LIBGO_IS_ARM64_FALSE='#'
13790 else
13791 LIBGO_IS_ARM64_TRUE='#'
13792 LIBGO_IS_ARM64_FALSE=
13793 fi
13794
13795 if test $is_m68k = yes; then
13796 LIBGO_IS_M68K_TRUE=
13797 LIBGO_IS_M68K_FALSE='#'
13798 else
13799 LIBGO_IS_M68K_TRUE='#'
13800 LIBGO_IS_M68K_FALSE=
13801 fi
13802
13803 if test $mips_abi != unknown; then
13804 LIBGO_IS_MIPS_TRUE=
13805 LIBGO_IS_MIPS_FALSE='#'
13806 else
13807 LIBGO_IS_MIPS_TRUE='#'
13808 LIBGO_IS_MIPS_FALSE=
13809 fi
13810
13811 if test $mips_abi = o32; then
13812 LIBGO_IS_MIPSO32_TRUE=
13813 LIBGO_IS_MIPSO32_FALSE='#'
13814 else
13815 LIBGO_IS_MIPSO32_TRUE='#'
13816 LIBGO_IS_MIPSO32_FALSE=
13817 fi
13818
13819 if test $mips_abi = n32; then
13820 LIBGO_IS_MIPSN32_TRUE=
13821 LIBGO_IS_MIPSN32_FALSE='#'
13822 else
13823 LIBGO_IS_MIPSN32_TRUE='#'
13824 LIBGO_IS_MIPSN32_FALSE=
13825 fi
13826
13827 if test $mips_abi = n64; then
13828 LIBGO_IS_MIPSN64_TRUE=
13829 LIBGO_IS_MIPSN64_FALSE='#'
13830 else
13831 LIBGO_IS_MIPSN64_TRUE='#'
13832 LIBGO_IS_MIPSN64_FALSE=
13833 fi
13834
13835 if test $mips_abi = o64; then
13836 LIBGO_IS_MIPSO64_TRUE=
13837 LIBGO_IS_MIPSO64_FALSE='#'
13838 else
13839 LIBGO_IS_MIPSO64_TRUE='#'
13840 LIBGO_IS_MIPSO64_FALSE=
13841 fi
13842
13843 if test $is_ppc = yes; then
13844 LIBGO_IS_PPC_TRUE=
13845 LIBGO_IS_PPC_FALSE='#'
13846 else
13847 LIBGO_IS_PPC_TRUE='#'
13848 LIBGO_IS_PPC_FALSE=
13849 fi
13850
13851 if test $is_ppc64 = yes; then
13852 LIBGO_IS_PPC64_TRUE=
13853 LIBGO_IS_PPC64_FALSE='#'
13854 else
13855 LIBGO_IS_PPC64_TRUE='#'
13856 LIBGO_IS_PPC64_FALSE=
13857 fi
13858
13859 if test $is_sparc = yes; then
13860 LIBGO_IS_SPARC_TRUE=
13861 LIBGO_IS_SPARC_FALSE='#'
13862 else
13863 LIBGO_IS_SPARC_TRUE='#'
13864 LIBGO_IS_SPARC_FALSE=
13865 fi
13866
13867 if test $is_sparc64 = yes; then
13868 LIBGO_IS_SPARC64_TRUE=
13869 LIBGO_IS_SPARC64_FALSE='#'
13870 else
13871 LIBGO_IS_SPARC64_TRUE='#'
13872 LIBGO_IS_SPARC64_FALSE=
13873 fi
13874
13875 if test $is_x86_64 = yes; then
13876 LIBGO_IS_X86_64_TRUE=
13877 LIBGO_IS_X86_64_FALSE='#'
13878 else
13879 LIBGO_IS_X86_64_TRUE='#'
13880 LIBGO_IS_X86_64_FALSE=
13881 fi
13882
13883
13884
13885 GO_LIBCALL_OS_FILE=
13886 GO_LIBCALL_OS_ARCH_FILE=
13887 GO_SYSCALL_OS_FILE=
13888 GO_SYSCALL_OS_ARCH_FILE=
13889 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13890 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13891 fi
13892 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13893 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13894 fi
13895 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13896 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13897 fi
13898 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13899 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13900 fi
13901
13902
13903
13904
13905
13906 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13907 case "$target" in
13908 mips-sgi-irix6.5*)
13909 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13910 # msghdr in <sys/socket.h>.
13911 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13912 ;;
13913 *-*-solaris2.1[01])
13914 # Solaris 10+ needs this so struct msghdr gets the msg_control
13915 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13916 # above doesn't work with C99.
13917 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13918 ;;
13919 esac
13920
13921
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13923 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13924 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13925 $as_echo_n "(cached) " >&6
13926 else
13927 CFLAGS_hold=$CFLAGS
13928 CFLAGS="$CFLAGS -fsplit-stack"
13929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13930 /* end confdefs.h. */
13931 int i;
13932 _ACEOF
13933 if ac_fn_c_try_compile "$LINENO"; then :
13934 libgo_cv_c_split_stack_supported=yes
13935 else
13936 libgo_cv_c_split_stack_supported=no
13937 fi
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 CFLAGS=$CFLAGS_hold
13940 fi
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13942 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13943 if test "$libgo_cv_c_split_stack_supported" = yes; then
13944 SPLIT_STACK=-fsplit-stack
13945
13946 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13947
13948 else
13949 SPLIT_STACK=
13950 fi
13951
13952 if test "$libgo_cv_c_split_stack_supported" = yes; then
13953 USING_SPLIT_STACK_TRUE=
13954 USING_SPLIT_STACK_FALSE='#'
13955 else
13956 USING_SPLIT_STACK_TRUE='#'
13957 USING_SPLIT_STACK_FALSE=
13958 fi
13959
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13962 $as_echo_n "checking whether linker supports split stack... " >&6; }
13963 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13965 else
13966 libgo_cv_c_linker_supports_split_stack=no
13967 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13968 libgo_cv_c_linker_supports_split_stack=yes
13969 fi
13970 fi
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13972 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13973 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13974
13975 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13976
13977 fi
13978
13979 MATH_LIBS=
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13981 $as_echo_n "checking for sqrt in -lm... " >&6; }
13982 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13983 $as_echo_n "(cached) " >&6
13984 else
13985 ac_check_lib_save_LIBS=$LIBS
13986 LIBS="-lm $LIBS"
13987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13988 /* end confdefs.h. */
13989
13990 /* Override any GCC internal prototype to avoid an error.
13991 Use char because int might match the return type of a GCC
13992 builtin and then its argument prototype would still apply. */
13993 #ifdef __cplusplus
13994 extern "C"
13995 #endif
13996 char sqrt ();
13997 int
13998 main ()
13999 {
14000 return sqrt ();
14001 ;
14002 return 0;
14003 }
14004 _ACEOF
14005 if ac_fn_c_try_link "$LINENO"; then :
14006 ac_cv_lib_m_sqrt=yes
14007 else
14008 ac_cv_lib_m_sqrt=no
14009 fi
14010 rm -f core conftest.err conftest.$ac_objext \
14011 conftest$ac_exeext conftest.$ac_ext
14012 LIBS=$ac_check_lib_save_LIBS
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14015 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14016 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
14017 MATH_LIBS=-lm
14018 fi
14019
14020
14021
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14023 $as_echo_n "checking for socket libraries... " >&6; }
14024 if test "${libgo_cv_lib_sockets+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14026 else
14027 libgo_cv_lib_sockets=
14028 libgo_check_both=no
14029 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14030 if test "x$ac_cv_func_connect" = x""yes; then :
14031 libgo_check_socket=no
14032 else
14033 libgo_check_socket=yes
14034 fi
14035
14036 if test "$libgo_check_socket" = "yes"; then
14037 unset ac_cv_func_connect
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14039 $as_echo_n "checking for main in -lsocket... " >&6; }
14040 if test "${ac_cv_lib_socket_main+set}" = set; then :
14041 $as_echo_n "(cached) " >&6
14042 else
14043 ac_check_lib_save_LIBS=$LIBS
14044 LIBS="-lsocket $LIBS"
14045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h. */
14047
14048
14049 int
14050 main ()
14051 {
14052 return main ();
14053 ;
14054 return 0;
14055 }
14056 _ACEOF
14057 if ac_fn_c_try_link "$LINENO"; then :
14058 ac_cv_lib_socket_main=yes
14059 else
14060 ac_cv_lib_socket_main=no
14061 fi
14062 rm -f core conftest.err conftest.$ac_objext \
14063 conftest$ac_exeext conftest.$ac_ext
14064 LIBS=$ac_check_lib_save_LIBS
14065 fi
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14067 $as_echo "$ac_cv_lib_socket_main" >&6; }
14068 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14069 libgo_cv_lib_sockets="-lsocket"
14070 else
14071 libgo_check_both=yes
14072 fi
14073
14074 fi
14075 if test "$libgo_check_both" = "yes"; then
14076 libgo_old_libs=$LIBS
14077 LIBS="$LIBS -lsocket -lnsl"
14078 unset ac_cv_func_accept
14079 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14080 if test "x$ac_cv_func_accept" = x""yes; then :
14081 libgo_check_nsl=no
14082 libgo_cv_lib_sockets="-lsocket -lnsl"
14083 fi
14084
14085 unset ac_cv_func_accept
14086 LIBS=$libgo_old_libs
14087 fi
14088 unset ac_cv_func_gethostbyname
14089 libgo_old_libs="$LIBS"
14090 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14091 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14092
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14095 $as_echo_n "checking for main in -lnsl... " >&6; }
14096 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14097 $as_echo_n "(cached) " >&6
14098 else
14099 ac_check_lib_save_LIBS=$LIBS
14100 LIBS="-lnsl $LIBS"
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103
14104
14105 int
14106 main ()
14107 {
14108 return main ();
14109 ;
14110 return 0;
14111 }
14112 _ACEOF
14113 if ac_fn_c_try_link "$LINENO"; then :
14114 ac_cv_lib_nsl_main=yes
14115 else
14116 ac_cv_lib_nsl_main=no
14117 fi
14118 rm -f core conftest.err conftest.$ac_objext \
14119 conftest$ac_exeext conftest.$ac_ext
14120 LIBS=$ac_check_lib_save_LIBS
14121 fi
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14123 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14124 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14125 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14126 fi
14127
14128 fi
14129
14130 unset ac_cv_func_gethostbyname
14131 LIBS=$libgo_old_libs
14132
14133 fi
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14135 $as_echo "$libgo_cv_lib_sockets" >&6; }
14136 NET_LIBS="$libgo_cv_lib_sockets"
14137
14138
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14140 $as_echo_n "checking whether -pthread is supported... " >&6; }
14141 if test "${libgo_cv_lib_pthread+set}" = set; then :
14142 $as_echo_n "(cached) " >&6
14143 else
14144 CFLAGS_hold=$CFLAGS
14145 CFLAGS="$CFLAGS -pthread"
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 int i;
14149 _ACEOF
14150 if ac_fn_c_try_compile "$LINENO"; then :
14151 libgo_cv_lib_pthread=yes
14152 else
14153 libgo_cv_lib_pthread=no
14154 fi
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14156 CFLAGS=$CFLAGS_hold
14157 fi
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14159 $as_echo "$libgo_cv_lib_pthread" >&6; }
14160 PTHREAD_CFLAGS=
14161 if test "$libgo_cv_lib_pthread" = yes; then
14162 PTHREAD_CFLAGS=-pthread
14163 fi
14164
14165
14166 PTHREAD_LIBS=
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14168 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14169 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14171 else
14172 ac_check_lib_save_LIBS=$LIBS
14173 LIBS="-lpthread $LIBS"
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14176
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14180 #ifdef __cplusplus
14181 extern "C"
14182 #endif
14183 char pthread_create ();
14184 int
14185 main ()
14186 {
14187 return pthread_create ();
14188 ;
14189 return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 ac_cv_lib_pthread_pthread_create=yes
14194 else
14195 ac_cv_lib_pthread_pthread_create=no
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14202 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14203 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14204 PTHREAD_LIBS=-lpthread
14205 fi
14206
14207
14208
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14210 $as_echo_n "checking for library containing sched_yield... " >&6; }
14211 if test "${ac_cv_search_sched_yield+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 ac_func_search_save_LIBS=$LIBS
14215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* end confdefs.h. */
14217
14218 /* Override any GCC internal prototype to avoid an error.
14219 Use char because int might match the return type of a GCC
14220 builtin and then its argument prototype would still apply. */
14221 #ifdef __cplusplus
14222 extern "C"
14223 #endif
14224 char sched_yield ();
14225 int
14226 main ()
14227 {
14228 return sched_yield ();
14229 ;
14230 return 0;
14231 }
14232 _ACEOF
14233 for ac_lib in '' rt; do
14234 if test -z "$ac_lib"; then
14235 ac_res="none required"
14236 else
14237 ac_res=-l$ac_lib
14238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14239 fi
14240 if ac_fn_c_try_link "$LINENO"; then :
14241 ac_cv_search_sched_yield=$ac_res
14242 fi
14243 rm -f core conftest.err conftest.$ac_objext \
14244 conftest$ac_exeext
14245 if test "${ac_cv_search_sched_yield+set}" = set; then :
14246 break
14247 fi
14248 done
14249 if test "${ac_cv_search_sched_yield+set}" = set; then :
14250
14251 else
14252 ac_cv_search_sched_yield=no
14253 fi
14254 rm conftest.$ac_ext
14255 LIBS=$ac_func_search_save_LIBS
14256 fi
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14258 $as_echo "$ac_cv_search_sched_yield" >&6; }
14259 ac_res=$ac_cv_search_sched_yield
14260 if test "$ac_res" != no; then :
14261 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14262
14263 fi
14264
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14266 $as_echo_n "checking for library containing nanosleep... " >&6; }
14267 if test "${ac_cv_search_nanosleep+set}" = set; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 ac_func_search_save_LIBS=$LIBS
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14273
14274 /* Override any GCC internal prototype to avoid an error.
14275 Use char because int might match the return type of a GCC
14276 builtin and then its argument prototype would still apply. */
14277 #ifdef __cplusplus
14278 extern "C"
14279 #endif
14280 char nanosleep ();
14281 int
14282 main ()
14283 {
14284 return nanosleep ();
14285 ;
14286 return 0;
14287 }
14288 _ACEOF
14289 for ac_lib in '' rt; do
14290 if test -z "$ac_lib"; then
14291 ac_res="none required"
14292 else
14293 ac_res=-l$ac_lib
14294 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14295 fi
14296 if ac_fn_c_try_link "$LINENO"; then :
14297 ac_cv_search_nanosleep=$ac_res
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext
14301 if test "${ac_cv_search_nanosleep+set}" = set; then :
14302 break
14303 fi
14304 done
14305 if test "${ac_cv_search_nanosleep+set}" = set; then :
14306
14307 else
14308 ac_cv_search_nanosleep=no
14309 fi
14310 rm conftest.$ac_ext
14311 LIBS=$ac_func_search_save_LIBS
14312 fi
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14314 $as_echo "$ac_cv_search_nanosleep" >&6; }
14315 ac_res=$ac_cv_search_nanosleep
14316 if test "$ac_res" != no; then :
14317 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14318
14319 fi
14320
14321
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14323 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14324 if test "${ac_cv_c_bigendian+set}" = set; then :
14325 $as_echo_n "(cached) " >&6
14326 else
14327 ac_cv_c_bigendian=unknown
14328 # See if we're dealing with a universal compiler.
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14331 #ifndef __APPLE_CC__
14332 not a universal capable compiler
14333 #endif
14334 typedef int dummy;
14335
14336 _ACEOF
14337 if ac_fn_c_try_compile "$LINENO"; then :
14338
14339 # Check for potential -arch flags. It is not universal unless
14340 # there are at least two -arch flags with different values.
14341 ac_arch=
14342 ac_prev=
14343 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14344 if test -n "$ac_prev"; then
14345 case $ac_word in
14346 i?86 | x86_64 | ppc | ppc64)
14347 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14348 ac_arch=$ac_word
14349 else
14350 ac_cv_c_bigendian=universal
14351 break
14352 fi
14353 ;;
14354 esac
14355 ac_prev=
14356 elif test "x$ac_word" = "x-arch"; then
14357 ac_prev=arch
14358 fi
14359 done
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 if test $ac_cv_c_bigendian = unknown; then
14363 # See if sys/param.h defines the BYTE_ORDER macro.
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <sys/types.h>
14367 #include <sys/param.h>
14368
14369 int
14370 main ()
14371 {
14372 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14373 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14374 && LITTLE_ENDIAN)
14375 bogus endian macros
14376 #endif
14377
14378 ;
14379 return 0;
14380 }
14381 _ACEOF
14382 if ac_fn_c_try_compile "$LINENO"; then :
14383 # It does; now see whether it defined to BIG_ENDIAN or not.
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14386 #include <sys/types.h>
14387 #include <sys/param.h>
14388
14389 int
14390 main ()
14391 {
14392 #if BYTE_ORDER != BIG_ENDIAN
14393 not big endian
14394 #endif
14395
14396 ;
14397 return 0;
14398 }
14399 _ACEOF
14400 if ac_fn_c_try_compile "$LINENO"; then :
14401 ac_cv_c_bigendian=yes
14402 else
14403 ac_cv_c_bigendian=no
14404 fi
14405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14408 fi
14409 if test $ac_cv_c_bigendian = unknown; then
14410 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14412 /* end confdefs.h. */
14413 #include <limits.h>
14414
14415 int
14416 main ()
14417 {
14418 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14419 bogus endian macros
14420 #endif
14421
14422 ;
14423 return 0;
14424 }
14425 _ACEOF
14426 if ac_fn_c_try_compile "$LINENO"; then :
14427 # It does; now see whether it defined to _BIG_ENDIAN or not.
14428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429 /* end confdefs.h. */
14430 #include <limits.h>
14431
14432 int
14433 main ()
14434 {
14435 #ifndef _BIG_ENDIAN
14436 not big endian
14437 #endif
14438
14439 ;
14440 return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_compile "$LINENO"; then :
14444 ac_cv_c_bigendian=yes
14445 else
14446 ac_cv_c_bigendian=no
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 fi
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 fi
14452 if test $ac_cv_c_bigendian = unknown; then
14453 # Compile a test program.
14454 if test "$cross_compiling" = yes; then :
14455 # Try to guess by grepping values from an object file.
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 short int ascii_mm[] =
14459 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14460 short int ascii_ii[] =
14461 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14462 int use_ascii (int i) {
14463 return ascii_mm[i] + ascii_ii[i];
14464 }
14465 short int ebcdic_ii[] =
14466 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14467 short int ebcdic_mm[] =
14468 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14469 int use_ebcdic (int i) {
14470 return ebcdic_mm[i] + ebcdic_ii[i];
14471 }
14472 extern int foo;
14473
14474 int
14475 main ()
14476 {
14477 return use_ascii (foo) == use_ebcdic (foo);
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 if ac_fn_c_try_compile "$LINENO"; then :
14483 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14484 ac_cv_c_bigendian=yes
14485 fi
14486 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14487 if test "$ac_cv_c_bigendian" = unknown; then
14488 ac_cv_c_bigendian=no
14489 else
14490 # finding both strings is unlikely to happen, but who knows?
14491 ac_cv_c_bigendian=unknown
14492 fi
14493 fi
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 else
14497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14498 /* end confdefs.h. */
14499 $ac_includes_default
14500 int
14501 main ()
14502 {
14503
14504 /* Are we little or big endian? From Harbison&Steele. */
14505 union
14506 {
14507 long int l;
14508 char c[sizeof (long int)];
14509 } u;
14510 u.l = 1;
14511 return u.c[sizeof (long int) - 1] == 1;
14512
14513 ;
14514 return 0;
14515 }
14516 _ACEOF
14517 if ac_fn_c_try_run "$LINENO"; then :
14518 ac_cv_c_bigendian=no
14519 else
14520 ac_cv_c_bigendian=yes
14521 fi
14522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14523 conftest.$ac_objext conftest.beam conftest.$ac_ext
14524 fi
14525
14526 fi
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14529 $as_echo "$ac_cv_c_bigendian" >&6; }
14530 case $ac_cv_c_bigendian in #(
14531 yes)
14532 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14533 ;; #(
14534 no)
14535 ;; #(
14536 universal)
14537
14538 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14539
14540 ;; #(
14541 *)
14542 as_fn_error "unknown endianness
14543 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14544 esac
14545
14546
14547
14548
14549 # Check whether --with-system-libunwind was given.
14550 if test "${with_system_libunwind+set}" = set; then :
14551 withval=$with_system_libunwind;
14552 fi
14553
14554 # If system-libunwind was not specifically set, pick a default setting.
14555 if test x$with_system_libunwind = x; then
14556 case ${target} in
14557 ia64-*-hpux*) with_system_libunwind=yes ;;
14558 *) with_system_libunwind=no ;;
14559 esac
14560 fi
14561 # Based on system-libunwind and target, do we have ipinfo?
14562 if test x$with_system_libunwind = xyes; then
14563 case ${target} in
14564 ia64-*-*) have_unwind_getipinfo=no ;;
14565 *) have_unwind_getipinfo=yes ;;
14566 esac
14567 else
14568 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14569
14570 case ${target} in
14571 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14572 *) have_unwind_getipinfo=yes ;;
14573 esac
14574
14575 fi
14576
14577 if test x$have_unwind_getipinfo = xyes; then
14578
14579 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14580
14581 fi
14582
14583
14584 # Check whether --enable-sjlj-exceptions was given.
14585 if test "${enable_sjlj_exceptions+set}" = set; then :
14586 enableval=$enable_sjlj_exceptions; case "$enableval" in
14587 yes|no|auto) ;;
14588 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14589 esac
14590 else
14591 enable_sjlj_exceptions=auto
14592 fi
14593
14594
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14596 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14597 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14598 $as_echo_n "(cached) " >&6
14599 else
14600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14601 /* end confdefs.h. */
14602
14603 void bar ();
14604 void clean (int *);
14605 void foo ()
14606 {
14607 int i __attribute__ ((cleanup (clean)));
14608 bar();
14609 }
14610
14611 _ACEOF
14612 CFLAGS_hold=$CFLAGS
14613 CFLAGS="--save-temps -fexceptions"
14614 libgo_cv_lib_sjlj_exceptions=unknown
14615 if ac_fn_c_try_compile; then :
14616 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14617 libgo_cv_lib_sjlj_exceptions=yes
14618 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14619 libgo_cv_lib_sjlj_exceptions=no
14620 fi
14621 fi
14622 CFLAGS=$CFLAGS_hold
14623 rm -f conftest*
14624
14625 fi
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14627 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14628
14629 if test "$enable_sjlj_exceptions" = "auto"; then
14630 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14631 fi
14632
14633 case $enable_sjlj_exceptions in
14634 yes)
14635
14636 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14637
14638 ;;
14639 no)
14640 ;;
14641 *)
14642 as_fn_error "unable to detect exception model" "$LINENO" 5
14643 ;;
14644 esac
14645
14646 for ac_header in sched.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/reboot.h netinet/icmp6.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
14647 do :
14648 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14649 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14650 eval as_val=\$$as_ac_Header
14651 if test "x$as_val" = x""yes; then :
14652 cat >>confdefs.h <<_ACEOF
14653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14654 _ACEOF
14655
14656 fi
14657
14658 done
14659
14660
14661 for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
14662 do :
14663 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14664 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14665 #include <sys/socket.h>
14666 #endif
14667
14668 "
14669 eval as_val=\$$as_ac_Header
14670 if test "x$as_val" = x""yes; then :
14671 cat >>confdefs.h <<_ACEOF
14672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14673 _ACEOF
14674
14675 fi
14676
14677 done
14678
14679
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14681 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14682 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 CFLAGS_hold=$CFLAGS
14686 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14689
14690 #include <sys/types.h>
14691 #ifdef HAVE_LINUX_FILTER_H
14692 #include <linux/filter.h>
14693 #endif
14694 #include <ustat.h>
14695
14696 _ACEOF
14697 if ac_fn_c_try_compile "$LINENO"; then :
14698 libgo_cv_c_ustat_h=yes
14699 else
14700 libgo_cv_c_ustat_h=no
14701 fi
14702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703 CFLAGS=$CFLAGS_hold
14704 fi
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14706 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14707 if test $libgo_cv_c_ustat_h = yes; then
14708
14709 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14710
14711 fi
14712
14713 if test "$ac_cv_header_sys_mman_h" = yes; then
14714 HAVE_SYS_MMAN_H_TRUE=
14715 HAVE_SYS_MMAN_H_FALSE='#'
14716 else
14717 HAVE_SYS_MMAN_H_TRUE='#'
14718 HAVE_SYS_MMAN_H_FALSE=
14719 fi
14720
14721
14722 for ac_func in strerror_r strsignal wait4 mincore setenv dl_iterate_phdr
14723 do :
14724 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14725 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14726 eval as_val=\$$as_ac_var
14727 if test "x$as_val" = x""yes; then :
14728 cat >>confdefs.h <<_ACEOF
14729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14730 _ACEOF
14731
14732 fi
14733 done
14734
14735 if test "$ac_cv_func_strerror_r" = yes; then
14736 HAVE_STRERROR_R_TRUE=
14737 HAVE_STRERROR_R_FALSE='#'
14738 else
14739 HAVE_STRERROR_R_TRUE='#'
14740 HAVE_STRERROR_R_FALSE=
14741 fi
14742
14743 if test "$ac_cv_func_wait4" = yes; then
14744 HAVE_WAIT4_TRUE=
14745 HAVE_WAIT4_FALSE='#'
14746 else
14747 HAVE_WAIT4_TRUE='#'
14748 HAVE_WAIT4_FALSE=
14749 fi
14750
14751
14752 for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice tee unlinkat unshare utimensat
14753 do :
14754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14756 eval as_val=\$$as_ac_var
14757 if test "x$as_val" = x""yes; then :
14758 cat >>confdefs.h <<_ACEOF
14759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14760 _ACEOF
14761
14762 fi
14763 done
14764
14765 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14766 if test "x$ac_cv_type_off_t" = x""yes; then :
14767
14768 else
14769
14770 cat >>confdefs.h <<_ACEOF
14771 #define off_t long int
14772 _ACEOF
14773
14774 fi
14775
14776 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14777 if test "x$ac_cv_type_loff_t" = x""yes; then :
14778
14779 cat >>confdefs.h <<_ACEOF
14780 #define HAVE_LOFF_T 1
14781 _ACEOF
14782
14783
14784 fi
14785
14786
14787 LIBS_hold="$LIBS"
14788 LIBS="$LIBS -lm"
14789 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
14790 do :
14791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14792 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14793 eval as_val=\$$as_ac_var
14794 if test "x$as_val" = x""yes; then :
14795 cat >>confdefs.h <<_ACEOF
14796 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14797 _ACEOF
14798
14799 fi
14800 done
14801
14802 LIBS="$LIBS_hold"
14803
14804 CFLAGS_hold="$CFLAGS"
14805 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14806 LIBS_hold="$LIBS"
14807 LIBS="$LIBS $PTHREAD_LIBS"
14808 for ac_func in sem_timedwait
14809 do :
14810 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14811 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14812 cat >>confdefs.h <<_ACEOF
14813 #define HAVE_SEM_TIMEDWAIT 1
14814 _ACEOF
14815
14816 fi
14817 done
14818
14819 CFLAGS="$CFLAGS_hold"
14820 LIBS="$LIBS_hold"
14821
14822 LIBS_hold="$LIBS"
14823 LIBS="$LIBS $MATH_LIBS"
14824 for ac_func in matherr
14825 do :
14826 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14827 if test "x$ac_cv_func_matherr" = x""yes; then :
14828 cat >>confdefs.h <<_ACEOF
14829 #define HAVE_MATHERR 1
14830 _ACEOF
14831
14832 fi
14833 done
14834
14835 LIBS="$LIBS_hold"
14836
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14838 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14839 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844
14845 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14846 uint32 i;
14847 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14848
14849 _ACEOF
14850 if ac_fn_c_try_link "$LINENO"; then :
14851 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14852 else
14853 libgo_cv_func___sync_bool_compare_and_swap_4=no
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext conftest.$ac_ext
14857 fi
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14859 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14860 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14861
14862 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14863
14864 fi
14865
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14867 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14868 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14869 $as_echo_n "(cached) " >&6
14870 else
14871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873
14874 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14875 uint64 i;
14876 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14877
14878 _ACEOF
14879 if ac_fn_c_try_link "$LINENO"; then :
14880 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14881 else
14882 libgo_cv_func___sync_bool_compare_and_swap_8=no
14883 fi
14884 rm -f core conftest.err conftest.$ac_objext \
14885 conftest$ac_exeext conftest.$ac_ext
14886 fi
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14888 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14889 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14890
14891 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14892
14893 fi
14894
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14896 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14897 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14898 $as_echo_n "(cached) " >&6
14899 else
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902
14903 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14904 uint32 i;
14905 int main() { return __sync_fetch_and_add (&i, 1); }
14906
14907 _ACEOF
14908 if ac_fn_c_try_link "$LINENO"; then :
14909 libgo_cv_func___sync_fetch_and_add_4=yes
14910 else
14911 libgo_cv_func___sync_fetch_and_add_4=no
14912 fi
14913 rm -f core conftest.err conftest.$ac_objext \
14914 conftest$ac_exeext conftest.$ac_ext
14915 fi
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14917 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14918 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14919
14920 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14921
14922 fi
14923
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14925 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14926 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931
14932 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14933 uint64 i;
14934 int main() { return __sync_add_and_fetch (&i, 1); }
14935
14936 _ACEOF
14937 if ac_fn_c_try_link "$LINENO"; then :
14938 libgo_cv_func___sync_add_and_fetch_8=yes
14939 else
14940 libgo_cv_func___sync_add_and_fetch_8=no
14941 fi
14942 rm -f core conftest.err conftest.$ac_objext \
14943 conftest$ac_exeext conftest.$ac_ext
14944 fi
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14946 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14947 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14948
14949 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14950
14951 fi
14952
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14954 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14955 if test "${libgo_cv_c_stringops+set}" = set; then :
14956 $as_echo_n "(cached) " >&6
14957 else
14958 CFLAGS_hold=$CFLAGS
14959 CFLAGS="$CFLAGS -minline-all-stringops"
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 int i;
14963 _ACEOF
14964 if ac_fn_c_try_compile "$LINENO"; then :
14965 libgo_cv_c_stringops=yes
14966 else
14967 libgo_cv_c_stringops=no
14968 fi
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 CFLAGS=$CFLAGS_hold
14971 fi
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14973 $as_echo "$libgo_cv_c_stringops" >&6; }
14974 STRINGOPS_FLAG=
14975 if test "$libgo_cv_c_stringops" = yes; then
14976 STRINGOPS_FLAG=-minline-all-stringops
14977 fi
14978
14979
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14981 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14982 if test "${libgo_cv_c_fancymath+set}" = set; then :
14983 $as_echo_n "(cached) " >&6
14984 else
14985 CFLAGS_hold=$CFLAGS
14986 CFLAGS="$CFLAGS -mfancy-math-387"
14987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988 /* end confdefs.h. */
14989 int i;
14990 _ACEOF
14991 if ac_fn_c_try_compile "$LINENO"; then :
14992 libgo_cv_c_fancymath=yes
14993 else
14994 libgo_cv_c_fancymath=no
14995 fi
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 CFLAGS=$CFLAGS_hold
14998 fi
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15000 $as_echo "$libgo_cv_c_fancymath" >&6; }
15001 MATH_FLAG=
15002 if test "$libgo_cv_c_fancymath" = yes; then
15003 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
15004 else
15005 MATH_FLAG="-ffp-contract=off"
15006 fi
15007
15008
15009 CFLAGS_hold=$CFLAGS
15010 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15011 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15012 if test "x$ac_cv_type_off64_t" = x""yes; then :
15013
15014 cat >>confdefs.h <<_ACEOF
15015 #define HAVE_OFF64_T 1
15016 _ACEOF
15017
15018
15019 fi
15020
15021 CFLAGS=$CFLAGS_hold
15022
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15024 $as_echo_n "checking epoll_event size... " >&6; }
15025 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
15026 $as_echo_n "(cached) " >&6
15027 else
15028 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15029
15030 else
15031 libgo_cv_c_epoll_event_size=0
15032 fi
15033
15034 fi
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15036 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15037 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15038
15039
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15041 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15042 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
15043 $as_echo_n "(cached) " >&6
15044 else
15045 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15046 #include <sys/epoll.h>"; then :
15047
15048 else
15049 libgo_cv_c_epoll_event_fd_offset=0
15050 fi
15051
15052 fi
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15054 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15055 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15056
15057
15058 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15059 "
15060 if test "x$ac_cv_type_struct_exception" = x""yes; then :
15061 libgo_has_struct_exception=yes
15062 else
15063 libgo_has_struct_exception=no
15064 fi
15065
15066 if test "$libgo_has_struct_exception" = "yes"; then
15067
15068 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15069
15070 fi
15071
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15073 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15074 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
15075 $as_echo_n "(cached) " >&6
15076 else
15077 CFLAGS_hold="$CFLAGS"
15078 CFLAGS="$PTHREAD_CFLAGS"
15079 LIBS_hold="$LIBS"
15080 LIBS="$LIBS $PTHREAD_LIBS"
15081 # The cast to long int works around a bug in the HP C Compiler
15082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15084 # This bug is HP SR number 8606223364.
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15086 $as_echo_n "checking size of void *... " >&6; }
15087 if test "${ac_cv_sizeof_void_p+set}" = set; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15091
15092 else
15093 if test "$ac_cv_type_void_p" = yes; then
15094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15096 { as_fn_set_status 77
15097 as_fn_error "cannot compute sizeof (void *)
15098 See \`config.log' for more details." "$LINENO" 5; }; }
15099 else
15100 ac_cv_sizeof_void_p=0
15101 fi
15102 fi
15103
15104 fi
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15106 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15107
15108
15109
15110 cat >>confdefs.h <<_ACEOF
15111 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15112 _ACEOF
15113
15114
15115 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15116 if test "$cross_compiling" = yes; then :
15117 case "$target:$ptr_type_size" in
15118 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15119 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15120 *)
15121 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15122 esac
15123
15124 else
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127
15128 #include <pthread.h>
15129 #include <stdlib.h>
15130 #include <ucontext.h>
15131 #include <unistd.h>
15132
15133 __thread int tls;
15134
15135 static char stack[10 * 1024 * 1024];
15136 static ucontext_t c;
15137
15138 /* Called via makecontext/setcontext. */
15139
15140 static void
15141 cfn (void)
15142 {
15143 exit (tls);
15144 }
15145
15146 /* Called via pthread_create. */
15147
15148 static void *
15149 tfn (void *dummy)
15150 {
15151 /* The thread should still see this value after calling
15152 setcontext. */
15153 tls = 0;
15154
15155 setcontext (&c);
15156
15157 /* The call to setcontext should not return. */
15158 abort ();
15159 }
15160
15161 int
15162 main ()
15163 {
15164 pthread_t tid;
15165
15166 /* The thread should not see this value. */
15167 tls = 1;
15168
15169 if (getcontext (&c) < 0)
15170 abort ();
15171
15172 c.uc_stack.ss_sp = stack;
15173 #ifdef MAKECONTEXT_STACK_TOP
15174 c.uc_stack.ss_sp += sizeof stack;
15175 #endif
15176 c.uc_stack.ss_flags = 0;
15177 c.uc_stack.ss_size = sizeof stack;
15178 c.uc_link = NULL;
15179 makecontext (&c, cfn, 0);
15180
15181 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15182 abort ();
15183
15184 if (pthread_join (tid, NULL) != 0)
15185 abort ();
15186
15187 /* The thread should have called exit. */
15188 abort ();
15189 }
15190
15191 _ACEOF
15192 if ac_fn_c_try_run "$LINENO"; then :
15193 libgo_cv_lib_setcontext_clobbers_tls=no
15194 else
15195 libgo_cv_lib_setcontext_clobbers_tls=yes
15196 fi
15197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15198 conftest.$ac_objext conftest.beam conftest.$ac_ext
15199 fi
15200
15201 CFLAGS="$CFLAGS_hold"
15202 LIBS="$LIBS_hold"
15203
15204 fi
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15206 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15207 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15208
15209 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15210
15211 fi
15212
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15214 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15215 if test "${libgo_cv_ro_eh_frame+set}" = set; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218
15219 libgo_cv_ro_eh_frame=no
15220 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15221 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15222 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15223 libgo_cv_ro_eh_frame=yes
15224 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15225 | grep -v '#write' > /dev/null; then
15226 libgo_cv_ro_eh_frame=yes
15227 fi
15228 fi
15229 rm -f conftest.*
15230
15231 fi
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15233 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15234 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15235
15236 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15237
15238 else
15239
15240 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15241
15242 fi
15243
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15245 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15246 if test "${libgo_cv_as_comdat_gnu+set}" = set; then :
15247 $as_echo_n "(cached) " >&6
15248 else
15249
15250 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15251 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15252 libgo_cv_as_comdat_gnu=yes
15253 else
15254 libgo_cv_as_comdat_gnu=no
15255 fi
15256
15257 fi
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15259 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15260 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15261
15262 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15263
15264 fi
15265
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15267 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15268 if test "${libgo_cv_as_x86_pcrel+set}" = set; then :
15269 $as_echo_n "(cached) " >&6
15270 else
15271
15272 libgo_cv_as_x86_pcrel=yes
15273 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15274 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15275 libgo_cv_as_x86_pcrel=no
15276 fi
15277
15278 fi
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15280 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15281 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15282
15283 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15284
15285 fi
15286
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15288 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15289 if test "${libgo_cv_as_x86_64_unwind_section_type+set}" = set; then :
15290 $as_echo_n "(cached) " >&6
15291 else
15292
15293 libgo_cv_as_x86_64_unwind_section_type=yes
15294 echo '.section .eh_frame,"a",@unwind' > conftest.s
15295 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15296 libgo_cv_as_x86_64_unwind_section_type=no
15297 fi
15298
15299 fi
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15301 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15302 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15303
15304 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15305
15306 fi
15307
15308 cat >confcache <<\_ACEOF
15309 # This file is a shell script that caches the results of configure
15310 # tests run on this system so they can be shared between configure
15311 # scripts and configure runs, see configure's option --config-cache.
15312 # It is not useful on other systems. If it contains results you don't
15313 # want to keep, you may remove or edit it.
15314 #
15315 # config.status only pays attention to the cache file if you give it
15316 # the --recheck option to rerun configure.
15317 #
15318 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15319 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15320 # following values.
15321
15322 _ACEOF
15323
15324 # The following way of writing the cache mishandles newlines in values,
15325 # but we know of no workaround that is simple, portable, and efficient.
15326 # So, we kill variables containing newlines.
15327 # Ultrix sh set writes to stderr and can't be redirected directly,
15328 # and sets the high bit in the cache file unless we assign to the vars.
15329 (
15330 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15331 eval ac_val=\$$ac_var
15332 case $ac_val in #(
15333 *${as_nl}*)
15334 case $ac_var in #(
15335 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15336 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15337 esac
15338 case $ac_var in #(
15339 _ | IFS | as_nl) ;; #(
15340 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15341 *) { eval $ac_var=; unset $ac_var;} ;;
15342 esac ;;
15343 esac
15344 done
15345
15346 (set) 2>&1 |
15347 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15348 *${as_nl}ac_space=\ *)
15349 # `set' does not quote correctly, so add quotes: double-quote
15350 # substitution turns \\\\ into \\, and sed turns \\ into \.
15351 sed -n \
15352 "s/'/'\\\\''/g;
15353 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15354 ;; #(
15355 *)
15356 # `set' quotes correctly as required by POSIX, so do not add quotes.
15357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15358 ;;
15359 esac |
15360 sort
15361 ) |
15362 sed '
15363 /^ac_cv_env_/b end
15364 t clear
15365 :clear
15366 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15367 t end
15368 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15369 :end' >>confcache
15370 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15371 if test -w "$cache_file"; then
15372 test "x$cache_file" != "x/dev/null" &&
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15374 $as_echo "$as_me: updating cache $cache_file" >&6;}
15375 cat confcache >$cache_file
15376 else
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15378 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15379 fi
15380 fi
15381 rm -f confcache
15382
15383 if test ${multilib} = yes; then
15384 multilib_arg="--enable-multilib"
15385 else
15386 multilib_arg=
15387 fi
15388
15389 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15390
15391
15392 ac_config_commands="$ac_config_commands default"
15393
15394
15395 cat >confcache <<\_ACEOF
15396 # This file is a shell script that caches the results of configure
15397 # tests run on this system so they can be shared between configure
15398 # scripts and configure runs, see configure's option --config-cache.
15399 # It is not useful on other systems. If it contains results you don't
15400 # want to keep, you may remove or edit it.
15401 #
15402 # config.status only pays attention to the cache file if you give it
15403 # the --recheck option to rerun configure.
15404 #
15405 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15406 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15407 # following values.
15408
15409 _ACEOF
15410
15411 # The following way of writing the cache mishandles newlines in values,
15412 # but we know of no workaround that is simple, portable, and efficient.
15413 # So, we kill variables containing newlines.
15414 # Ultrix sh set writes to stderr and can't be redirected directly,
15415 # and sets the high bit in the cache file unless we assign to the vars.
15416 (
15417 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15418 eval ac_val=\$$ac_var
15419 case $ac_val in #(
15420 *${as_nl}*)
15421 case $ac_var in #(
15422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15424 esac
15425 case $ac_var in #(
15426 _ | IFS | as_nl) ;; #(
15427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15428 *) { eval $ac_var=; unset $ac_var;} ;;
15429 esac ;;
15430 esac
15431 done
15432
15433 (set) 2>&1 |
15434 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15435 *${as_nl}ac_space=\ *)
15436 # `set' does not quote correctly, so add quotes: double-quote
15437 # substitution turns \\\\ into \\, and sed turns \\ into \.
15438 sed -n \
15439 "s/'/'\\\\''/g;
15440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15441 ;; #(
15442 *)
15443 # `set' quotes correctly as required by POSIX, so do not add quotes.
15444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15445 ;;
15446 esac |
15447 sort
15448 ) |
15449 sed '
15450 /^ac_cv_env_/b end
15451 t clear
15452 :clear
15453 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15454 t end
15455 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15456 :end' >>confcache
15457 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15458 if test -w "$cache_file"; then
15459 test "x$cache_file" != "x/dev/null" &&
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15461 $as_echo "$as_me: updating cache $cache_file" >&6;}
15462 cat confcache >$cache_file
15463 else
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15465 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15466 fi
15467 fi
15468 rm -f confcache
15469
15470 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15471 # Let make expand exec_prefix.
15472 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15473
15474 DEFS=-DHAVE_CONFIG_H
15475
15476 ac_libobjs=
15477 ac_ltlibobjs=
15478 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15479 # 1. Remove the extension, and $U if already installed.
15480 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15481 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15482 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15483 # will be set to the directory where LIBOBJS objects are built.
15484 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15485 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15486 done
15487 LIBOBJS=$ac_libobjs
15488
15489 LTLIBOBJS=$ac_ltlibobjs
15490
15491
15492 if test -n "$EXEEXT"; then
15493 am__EXEEXT_TRUE=
15494 am__EXEEXT_FALSE='#'
15495 else
15496 am__EXEEXT_TRUE='#'
15497 am__EXEEXT_FALSE=
15498 fi
15499
15500 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15501 as_fn_error "conditional \"AMDEP\" was never defined.
15502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15503 fi
15504 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15505 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15507 fi
15508 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15509 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15511 fi
15512 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15513 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15515 fi
15516 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15517 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15519 fi
15520 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15521 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15523 fi
15524 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15525 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15527 fi
15528 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15529 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15531 fi
15532 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
15533 as_fn_error "conditional \"LIBGO_IS_OPENBSD\" was never defined.
15534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15535 fi
15536 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
15537 as_fn_error "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
15538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15539 fi
15540 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15541 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15543 fi
15544 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15545 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15547 fi
15548 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15549 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15551 fi
15552 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15553 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 fi
15556 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15557 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 fi
15560 if test -z "${LIBGO_IS_ARM64_TRUE}" && test -z "${LIBGO_IS_ARM64_FALSE}"; then
15561 as_fn_error "conditional \"LIBGO_IS_ARM64\" was never defined.
15562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 fi
15564 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15565 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 fi
15568 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15569 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571 fi
15572 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15573 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15575 fi
15576 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15577 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15579 fi
15580 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15581 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15583 fi
15584 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15585 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15587 fi
15588 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15589 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15591 fi
15592 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15593 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15595 fi
15596 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15597 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15599 fi
15600 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15601 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15603 fi
15604 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15605 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15607 fi
15608 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15609 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15611 fi
15612
15613 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15614 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15616 fi
15617 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15618 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15620 fi
15621 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15622 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15624 fi
15625
15626 : ${CONFIG_STATUS=./config.status}
15627 ac_write_fail=0
15628 ac_clean_files_save=$ac_clean_files
15629 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15631 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15632 as_write_fail=0
15633 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15634 #! $SHELL
15635 # Generated by $as_me.
15636 # Run this file to recreate the current configuration.
15637 # Compiler output produced by configure, useful for debugging
15638 # configure, is in config.log if it exists.
15639
15640 debug=false
15641 ac_cs_recheck=false
15642 ac_cs_silent=false
15643
15644 SHELL=\${CONFIG_SHELL-$SHELL}
15645 export SHELL
15646 _ASEOF
15647 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15648 ## -------------------- ##
15649 ## M4sh Initialization. ##
15650 ## -------------------- ##
15651
15652 # Be more Bourne compatible
15653 DUALCASE=1; export DUALCASE # for MKS sh
15654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15655 emulate sh
15656 NULLCMD=:
15657 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15658 # is contrary to our usage. Disable this feature.
15659 alias -g '${1+"$@"}'='"$@"'
15660 setopt NO_GLOB_SUBST
15661 else
15662 case `(set -o) 2>/dev/null` in #(
15663 *posix*) :
15664 set -o posix ;; #(
15665 *) :
15666 ;;
15667 esac
15668 fi
15669
15670
15671 as_nl='
15672 '
15673 export as_nl
15674 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15675 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15677 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15678 # Prefer a ksh shell builtin over an external printf program on Solaris,
15679 # but without wasting forks for bash or zsh.
15680 if test -z "$BASH_VERSION$ZSH_VERSION" \
15681 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15682 as_echo='print -r --'
15683 as_echo_n='print -rn --'
15684 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15685 as_echo='printf %s\n'
15686 as_echo_n='printf %s'
15687 else
15688 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15689 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15690 as_echo_n='/usr/ucb/echo -n'
15691 else
15692 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15693 as_echo_n_body='eval
15694 arg=$1;
15695 case $arg in #(
15696 *"$as_nl"*)
15697 expr "X$arg" : "X\\(.*\\)$as_nl";
15698 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15699 esac;
15700 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15701 '
15702 export as_echo_n_body
15703 as_echo_n='sh -c $as_echo_n_body as_echo'
15704 fi
15705 export as_echo_body
15706 as_echo='sh -c $as_echo_body as_echo'
15707 fi
15708
15709 # The user is always right.
15710 if test "${PATH_SEPARATOR+set}" != set; then
15711 PATH_SEPARATOR=:
15712 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15713 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15714 PATH_SEPARATOR=';'
15715 }
15716 fi
15717
15718
15719 # IFS
15720 # We need space, tab and new line, in precisely that order. Quoting is
15721 # there to prevent editors from complaining about space-tab.
15722 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15723 # splitting by setting IFS to empty value.)
15724 IFS=" "" $as_nl"
15725
15726 # Find who we are. Look in the path if we contain no directory separator.
15727 case $0 in #((
15728 *[\\/]* ) as_myself=$0 ;;
15729 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15730 for as_dir in $PATH
15731 do
15732 IFS=$as_save_IFS
15733 test -z "$as_dir" && as_dir=.
15734 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15735 done
15736 IFS=$as_save_IFS
15737
15738 ;;
15739 esac
15740 # We did not find ourselves, most probably we were run as `sh COMMAND'
15741 # in which case we are not to be found in the path.
15742 if test "x$as_myself" = x; then
15743 as_myself=$0
15744 fi
15745 if test ! -f "$as_myself"; then
15746 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15747 exit 1
15748 fi
15749
15750 # Unset variables that we do not need and which cause bugs (e.g. in
15751 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15752 # suppresses any "Segmentation fault" message there. '((' could
15753 # trigger a bug in pdksh 5.2.14.
15754 for as_var in BASH_ENV ENV MAIL MAILPATH
15755 do eval test x\${$as_var+set} = xset \
15756 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15757 done
15758 PS1='$ '
15759 PS2='> '
15760 PS4='+ '
15761
15762 # NLS nuisances.
15763 LC_ALL=C
15764 export LC_ALL
15765 LANGUAGE=C
15766 export LANGUAGE
15767
15768 # CDPATH.
15769 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15770
15771
15772 # as_fn_error ERROR [LINENO LOG_FD]
15773 # ---------------------------------
15774 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15775 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15776 # script with status $?, using 1 if that was 0.
15777 as_fn_error ()
15778 {
15779 as_status=$?; test $as_status -eq 0 && as_status=1
15780 if test "$3"; then
15781 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15782 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15783 fi
15784 $as_echo "$as_me: error: $1" >&2
15785 as_fn_exit $as_status
15786 } # as_fn_error
15787
15788
15789 # as_fn_set_status STATUS
15790 # -----------------------
15791 # Set $? to STATUS, without forking.
15792 as_fn_set_status ()
15793 {
15794 return $1
15795 } # as_fn_set_status
15796
15797 # as_fn_exit STATUS
15798 # -----------------
15799 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15800 as_fn_exit ()
15801 {
15802 set +e
15803 as_fn_set_status $1
15804 exit $1
15805 } # as_fn_exit
15806
15807 # as_fn_unset VAR
15808 # ---------------
15809 # Portably unset VAR.
15810 as_fn_unset ()
15811 {
15812 { eval $1=; unset $1;}
15813 }
15814 as_unset=as_fn_unset
15815 # as_fn_append VAR VALUE
15816 # ----------------------
15817 # Append the text in VALUE to the end of the definition contained in VAR. Take
15818 # advantage of any shell optimizations that allow amortized linear growth over
15819 # repeated appends, instead of the typical quadratic growth present in naive
15820 # implementations.
15821 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15822 eval 'as_fn_append ()
15823 {
15824 eval $1+=\$2
15825 }'
15826 else
15827 as_fn_append ()
15828 {
15829 eval $1=\$$1\$2
15830 }
15831 fi # as_fn_append
15832
15833 # as_fn_arith ARG...
15834 # ------------------
15835 # Perform arithmetic evaluation on the ARGs, and store the result in the
15836 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15837 # must be portable across $(()) and expr.
15838 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15839 eval 'as_fn_arith ()
15840 {
15841 as_val=$(( $* ))
15842 }'
15843 else
15844 as_fn_arith ()
15845 {
15846 as_val=`expr "$@" || test $? -eq 1`
15847 }
15848 fi # as_fn_arith
15849
15850
15851 if expr a : '\(a\)' >/dev/null 2>&1 &&
15852 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15853 as_expr=expr
15854 else
15855 as_expr=false
15856 fi
15857
15858 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15859 as_basename=basename
15860 else
15861 as_basename=false
15862 fi
15863
15864 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15865 as_dirname=dirname
15866 else
15867 as_dirname=false
15868 fi
15869
15870 as_me=`$as_basename -- "$0" ||
15871 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15872 X"$0" : 'X\(//\)$' \| \
15873 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15874 $as_echo X/"$0" |
15875 sed '/^.*\/\([^/][^/]*\)\/*$/{
15876 s//\1/
15877 q
15878 }
15879 /^X\/\(\/\/\)$/{
15880 s//\1/
15881 q
15882 }
15883 /^X\/\(\/\).*/{
15884 s//\1/
15885 q
15886 }
15887 s/.*/./; q'`
15888
15889 # Avoid depending upon Character Ranges.
15890 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15891 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15892 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15893 as_cr_digits='0123456789'
15894 as_cr_alnum=$as_cr_Letters$as_cr_digits
15895
15896 ECHO_C= ECHO_N= ECHO_T=
15897 case `echo -n x` in #(((((
15898 -n*)
15899 case `echo 'xy\c'` in
15900 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15901 xy) ECHO_C='\c';;
15902 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15903 ECHO_T=' ';;
15904 esac;;
15905 *)
15906 ECHO_N='-n';;
15907 esac
15908
15909 rm -f conf$$ conf$$.exe conf$$.file
15910 if test -d conf$$.dir; then
15911 rm -f conf$$.dir/conf$$.file
15912 else
15913 rm -f conf$$.dir
15914 mkdir conf$$.dir 2>/dev/null
15915 fi
15916 if (echo >conf$$.file) 2>/dev/null; then
15917 if ln -s conf$$.file conf$$ 2>/dev/null; then
15918 as_ln_s='ln -s'
15919 # ... but there are two gotchas:
15920 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15921 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15922 # In both cases, we have to default to `cp -p'.
15923 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15924 as_ln_s='cp -p'
15925 elif ln conf$$.file conf$$ 2>/dev/null; then
15926 as_ln_s=ln
15927 else
15928 as_ln_s='cp -p'
15929 fi
15930 else
15931 as_ln_s='cp -p'
15932 fi
15933 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15934 rmdir conf$$.dir 2>/dev/null
15935
15936
15937 # as_fn_mkdir_p
15938 # -------------
15939 # Create "$as_dir" as a directory, including parents if necessary.
15940 as_fn_mkdir_p ()
15941 {
15942
15943 case $as_dir in #(
15944 -*) as_dir=./$as_dir;;
15945 esac
15946 test -d "$as_dir" || eval $as_mkdir_p || {
15947 as_dirs=
15948 while :; do
15949 case $as_dir in #(
15950 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15951 *) as_qdir=$as_dir;;
15952 esac
15953 as_dirs="'$as_qdir' $as_dirs"
15954 as_dir=`$as_dirname -- "$as_dir" ||
15955 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15956 X"$as_dir" : 'X\(//\)[^/]' \| \
15957 X"$as_dir" : 'X\(//\)$' \| \
15958 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15959 $as_echo X"$as_dir" |
15960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15961 s//\1/
15962 q
15963 }
15964 /^X\(\/\/\)[^/].*/{
15965 s//\1/
15966 q
15967 }
15968 /^X\(\/\/\)$/{
15969 s//\1/
15970 q
15971 }
15972 /^X\(\/\).*/{
15973 s//\1/
15974 q
15975 }
15976 s/.*/./; q'`
15977 test -d "$as_dir" && break
15978 done
15979 test -z "$as_dirs" || eval "mkdir $as_dirs"
15980 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15981
15982
15983 } # as_fn_mkdir_p
15984 if mkdir -p . 2>/dev/null; then
15985 as_mkdir_p='mkdir -p "$as_dir"'
15986 else
15987 test -d ./-p && rmdir ./-p
15988 as_mkdir_p=false
15989 fi
15990
15991 if test -x / >/dev/null 2>&1; then
15992 as_test_x='test -x'
15993 else
15994 if ls -dL / >/dev/null 2>&1; then
15995 as_ls_L_option=L
15996 else
15997 as_ls_L_option=
15998 fi
15999 as_test_x='
16000 eval sh -c '\''
16001 if test -d "$1"; then
16002 test -d "$1/.";
16003 else
16004 case $1 in #(
16005 -*)set "./$1";;
16006 esac;
16007 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16008 ???[sx]*):;;*)false;;esac;fi
16009 '\'' sh
16010 '
16011 fi
16012 as_executable_p=$as_test_x
16013
16014 # Sed expression to map a string onto a valid CPP name.
16015 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16016
16017 # Sed expression to map a string onto a valid variable name.
16018 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16019
16020
16021 exec 6>&1
16022 ## ----------------------------------- ##
16023 ## Main body of $CONFIG_STATUS script. ##
16024 ## ----------------------------------- ##
16025 _ASEOF
16026 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16027
16028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16029 # Save the log message, to keep $0 and so on meaningful, and to
16030 # report actual input values of CONFIG_FILES etc. instead of their
16031 # values after options handling.
16032 ac_log="
16033 This file was extended by package-unused $as_me version-unused, which was
16034 generated by GNU Autoconf 2.64. Invocation command line was
16035
16036 CONFIG_FILES = $CONFIG_FILES
16037 CONFIG_HEADERS = $CONFIG_HEADERS
16038 CONFIG_LINKS = $CONFIG_LINKS
16039 CONFIG_COMMANDS = $CONFIG_COMMANDS
16040 $ $0 $@
16041
16042 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16043 "
16044
16045 _ACEOF
16046
16047 case $ac_config_files in *"
16048 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16049 esac
16050
16051 case $ac_config_headers in *"
16052 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16053 esac
16054
16055
16056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16057 # Files that config.status was made for.
16058 config_files="$ac_config_files"
16059 config_headers="$ac_config_headers"
16060 config_commands="$ac_config_commands"
16061
16062 _ACEOF
16063
16064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16065 ac_cs_usage="\
16066 \`$as_me' instantiates files and other configuration actions
16067 from templates according to the current configuration. Unless the files
16068 and actions are specified as TAGs, all are instantiated by default.
16069
16070 Usage: $0 [OPTION]... [TAG]...
16071
16072 -h, --help print this help, then exit
16073 -V, --version print version number and configuration settings, then exit
16074 -q, --quiet, --silent
16075 do not print progress messages
16076 -d, --debug don't remove temporary files
16077 --recheck update $as_me by reconfiguring in the same conditions
16078 --file=FILE[:TEMPLATE]
16079 instantiate the configuration file FILE
16080 --header=FILE[:TEMPLATE]
16081 instantiate the configuration header FILE
16082
16083 Configuration files:
16084 $config_files
16085
16086 Configuration headers:
16087 $config_headers
16088
16089 Configuration commands:
16090 $config_commands
16091
16092 Report bugs to the package provider."
16093
16094 _ACEOF
16095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16096 ac_cs_version="\\
16097 package-unused config.status version-unused
16098 configured by $0, generated by GNU Autoconf 2.64,
16099 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16100
16101 Copyright (C) 2009 Free Software Foundation, Inc.
16102 This config.status script is free software; the Free Software Foundation
16103 gives unlimited permission to copy, distribute and modify it."
16104
16105 ac_pwd='$ac_pwd'
16106 srcdir='$srcdir'
16107 INSTALL='$INSTALL'
16108 MKDIR_P='$MKDIR_P'
16109 AWK='$AWK'
16110 test -n "\$AWK" || AWK=awk
16111 _ACEOF
16112
16113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16114 # The default lists apply if the user does not specify any file.
16115 ac_need_defaults=:
16116 while test $# != 0
16117 do
16118 case $1 in
16119 --*=*)
16120 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16121 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16122 ac_shift=:
16123 ;;
16124 *)
16125 ac_option=$1
16126 ac_optarg=$2
16127 ac_shift=shift
16128 ;;
16129 esac
16130
16131 case $ac_option in
16132 # Handling of the options.
16133 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16134 ac_cs_recheck=: ;;
16135 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16136 $as_echo "$ac_cs_version"; exit ;;
16137 --debug | --debu | --deb | --de | --d | -d )
16138 debug=: ;;
16139 --file | --fil | --fi | --f )
16140 $ac_shift
16141 case $ac_optarg in
16142 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16143 esac
16144 as_fn_append CONFIG_FILES " '$ac_optarg'"
16145 ac_need_defaults=false;;
16146 --header | --heade | --head | --hea )
16147 $ac_shift
16148 case $ac_optarg in
16149 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16150 esac
16151 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16152 ac_need_defaults=false;;
16153 --he | --h)
16154 # Conflict between --help and --header
16155 as_fn_error "ambiguous option: \`$1'
16156 Try \`$0 --help' for more information.";;
16157 --help | --hel | -h )
16158 $as_echo "$ac_cs_usage"; exit ;;
16159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16160 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16161 ac_cs_silent=: ;;
16162
16163 # This is an error.
16164 -*) as_fn_error "unrecognized option: \`$1'
16165 Try \`$0 --help' for more information." ;;
16166
16167 *) as_fn_append ac_config_targets " $1"
16168 ac_need_defaults=false ;;
16169
16170 esac
16171 shift
16172 done
16173
16174 ac_configure_extra_args=
16175
16176 if $ac_cs_silent; then
16177 exec 6>/dev/null
16178 ac_configure_extra_args="$ac_configure_extra_args --silent"
16179 fi
16180
16181 _ACEOF
16182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16183 if \$ac_cs_recheck; then
16184 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16185 shift
16186 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16187 CONFIG_SHELL='$SHELL'
16188 export CONFIG_SHELL
16189 exec "\$@"
16190 fi
16191
16192 _ACEOF
16193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16194 exec 5>>config.log
16195 {
16196 echo
16197 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16198 ## Running $as_me. ##
16199 _ASBOX
16200 $as_echo "$ac_log"
16201 } >&5
16202
16203 _ACEOF
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 #
16206 # INIT-COMMANDS
16207 #
16208
16209 srcdir="$srcdir"
16210 host="$host"
16211 target="$target"
16212 with_multisubdir="$with_multisubdir"
16213 with_multisrctop="$with_multisrctop"
16214 with_target_subdir="$with_target_subdir"
16215 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16216 multi_basedir="$multi_basedir"
16217 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16218 CC="$CC"
16219 CXX="$CXX"
16220 GFORTRAN="$GFORTRAN"
16221 GCJ="$GCJ"
16222 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16223
16224
16225 # The HP-UX ksh and POSIX shell print the target directory to stdout
16226 # if CDPATH is set.
16227 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16228
16229 sed_quote_subst='$sed_quote_subst'
16230 double_quote_subst='$double_quote_subst'
16231 delay_variable_subst='$delay_variable_subst'
16232 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16233 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16234 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16235 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16236 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16237 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16238 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16239 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16240 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16241 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16242 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16243 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16244 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16245 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16246 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16247 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16248 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16249 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16250 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16251 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16252 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16253 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16254 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16255 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16256 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16257 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16258 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16259 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16260 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16261 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16262 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16263 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16264 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16265 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16266 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16267 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16268 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16269 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16270 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16271 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16272 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16273 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16274 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16275 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16276 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16277 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16278 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16279 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16280 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"`'
16281 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16282 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16283 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16284 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16285 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16286 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16287 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16288 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16289 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16290 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16291 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16292 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16293 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16294 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16295 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16296 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16297 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16298 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16299 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16300 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16301 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16302 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16303 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16304 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16305 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16306 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16307 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16308 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16309 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16310 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16311 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16312 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16313 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16314 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16315 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16316 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16317 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16318 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16319 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16320 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16321 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16322 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16323 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16324 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16325 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16326 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16327 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16328 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16329 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16330 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16331 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16332 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16333 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16334 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16335 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16336 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16337 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16338 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16339 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16340 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16341 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16342 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16343 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16344 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16345 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16346 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16347 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16348 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16349 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16350 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16351 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16352 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16353 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16354 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16355 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16356 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16357 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16358 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16359 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16360 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16361 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16362 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16363 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16364 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16365 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16366 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16367 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16368 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16369 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16370 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16371 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16372 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16373 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16374 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16375 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16376 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16377 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16378 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16379 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16380 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16381 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16382 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16383 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16384 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16385 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16386 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16387 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16388 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16389 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16390 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16391 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16392 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16393 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16394 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16395
16396 LTCC='$LTCC'
16397 LTCFLAGS='$LTCFLAGS'
16398 compiler='$compiler_DEFAULT'
16399
16400 # A function that is used when there is no print builtin or printf.
16401 func_fallback_echo ()
16402 {
16403 eval 'cat <<_LTECHO_EOF
16404 \$1
16405 _LTECHO_EOF'
16406 }
16407
16408 # Quote evaled strings.
16409 for var in SED \
16410 GREP \
16411 EGREP \
16412 FGREP \
16413 SHELL \
16414 ECHO \
16415 LD \
16416 NM \
16417 LN_S \
16418 lt_SP2NL \
16419 lt_NL2SP \
16420 reload_flag \
16421 OBJDUMP \
16422 deplibs_check_method \
16423 file_magic_cmd \
16424 AR \
16425 AR_FLAGS \
16426 STRIP \
16427 RANLIB \
16428 CC \
16429 CFLAGS \
16430 compiler \
16431 lt_cv_sys_global_symbol_pipe \
16432 lt_cv_sys_global_symbol_to_cdecl \
16433 lt_cv_sys_global_symbol_to_c_name_address \
16434 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16435 lt_prog_compiler_no_builtin_flag \
16436 lt_prog_compiler_wl \
16437 lt_prog_compiler_pic \
16438 lt_prog_compiler_static \
16439 lt_cv_prog_compiler_c_o \
16440 need_locks \
16441 DSYMUTIL \
16442 NMEDIT \
16443 LIPO \
16444 OTOOL \
16445 OTOOL64 \
16446 shrext_cmds \
16447 export_dynamic_flag_spec \
16448 whole_archive_flag_spec \
16449 compiler_needs_object \
16450 with_gnu_ld \
16451 allow_undefined_flag \
16452 no_undefined_flag \
16453 hardcode_libdir_flag_spec \
16454 hardcode_libdir_flag_spec_ld \
16455 hardcode_libdir_separator \
16456 fix_srcfile_path \
16457 exclude_expsyms \
16458 include_expsyms \
16459 file_list_spec \
16460 variables_saved_for_relink \
16461 libname_spec \
16462 library_names_spec \
16463 soname_spec \
16464 install_override_mode \
16465 finish_eval \
16466 old_striplib \
16467 striplib \
16468 LD_GO \
16469 reload_flag_GO \
16470 compiler_GO \
16471 lt_prog_compiler_no_builtin_flag_GO \
16472 lt_prog_compiler_wl_GO \
16473 lt_prog_compiler_pic_GO \
16474 lt_prog_compiler_static_GO \
16475 lt_cv_prog_compiler_c_o_GO \
16476 export_dynamic_flag_spec_GO \
16477 whole_archive_flag_spec_GO \
16478 compiler_needs_object_GO \
16479 with_gnu_ld_GO \
16480 allow_undefined_flag_GO \
16481 no_undefined_flag_GO \
16482 hardcode_libdir_flag_spec_GO \
16483 hardcode_libdir_flag_spec_ld_GO \
16484 hardcode_libdir_separator_GO \
16485 fix_srcfile_path_GO \
16486 exclude_expsyms_GO \
16487 include_expsyms_GO \
16488 file_list_spec_GO; do
16489 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16490 *[\\\\\\\`\\"\\\$]*)
16491 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16492 ;;
16493 *)
16494 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16495 ;;
16496 esac
16497 done
16498
16499 # Double-quote double-evaled strings.
16500 for var in reload_cmds \
16501 old_postinstall_cmds \
16502 old_postuninstall_cmds \
16503 old_archive_cmds \
16504 extract_expsyms_cmds \
16505 old_archive_from_new_cmds \
16506 old_archive_from_expsyms_cmds \
16507 archive_cmds \
16508 archive_expsym_cmds \
16509 module_cmds \
16510 module_expsym_cmds \
16511 export_symbols_cmds \
16512 prelink_cmds \
16513 postinstall_cmds \
16514 postuninstall_cmds \
16515 finish_cmds \
16516 sys_lib_search_path_spec \
16517 sys_lib_dlsearch_path_spec \
16518 reload_cmds_GO \
16519 old_archive_cmds_GO \
16520 old_archive_from_new_cmds_GO \
16521 old_archive_from_expsyms_cmds_GO \
16522 archive_cmds_GO \
16523 archive_expsym_cmds_GO \
16524 module_cmds_GO \
16525 module_expsym_cmds_GO \
16526 export_symbols_cmds_GO \
16527 prelink_cmds_GO; do
16528 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16529 *[\\\\\\\`\\"\\\$]*)
16530 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16531 ;;
16532 *)
16533 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16534 ;;
16535 esac
16536 done
16537
16538 ac_aux_dir='$ac_aux_dir'
16539 xsi_shell='$xsi_shell'
16540 lt_shell_append='$lt_shell_append'
16541
16542 # See if we are running on zsh, and set the options which allow our
16543 # commands through without removal of \ escapes INIT.
16544 if test -n "\${ZSH_VERSION+set}" ; then
16545 setopt NO_GLOB_SUBST
16546 fi
16547
16548
16549 PACKAGE='$PACKAGE'
16550 VERSION='$VERSION'
16551 TIMESTAMP='$TIMESTAMP'
16552 RM='$RM'
16553 ofile='$ofile'
16554
16555
16556
16557
16558
16559
16560 # Variables needed in config.status (file generation) which aren't already
16561 # passed by autoconf.
16562 SUBDIRS="$SUBDIRS"
16563
16564
16565 _ACEOF
16566
16567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16568
16569 # Handling of arguments.
16570 for ac_config_target in $ac_config_targets
16571 do
16572 case $ac_config_target in
16573 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16574 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16575 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16576 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16577 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16578 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16579 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16580
16581 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16582 esac
16583 done
16584
16585
16586 # If the user did not use the arguments to specify the items to instantiate,
16587 # then the envvar interface is used. Set only those that are not.
16588 # We use the long form for the default assignment because of an extremely
16589 # bizarre bug on SunOS 4.1.3.
16590 if $ac_need_defaults; then
16591 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16592 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16593 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16594 fi
16595
16596 # Have a temporary directory for convenience. Make it in the build tree
16597 # simply because there is no reason against having it here, and in addition,
16598 # creating and moving files from /tmp can sometimes cause problems.
16599 # Hook for its removal unless debugging.
16600 # Note that there is a small window in which the directory will not be cleaned:
16601 # after its creation but before its name has been assigned to `$tmp'.
16602 $debug ||
16603 {
16604 tmp=
16605 trap 'exit_status=$?
16606 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16607 ' 0
16608 trap 'as_fn_exit 1' 1 2 13 15
16609 }
16610 # Create a (secure) tmp directory for tmp files.
16611
16612 {
16613 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16614 test -n "$tmp" && test -d "$tmp"
16615 } ||
16616 {
16617 tmp=./conf$$-$RANDOM
16618 (umask 077 && mkdir "$tmp")
16619 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16620
16621 # Set up the scripts for CONFIG_FILES section.
16622 # No need to generate them if there are no CONFIG_FILES.
16623 # This happens for instance with `./config.status config.h'.
16624 if test -n "$CONFIG_FILES"; then
16625
16626
16627 ac_cr=`echo X | tr X '\015'`
16628 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16629 # But we know of no other shell where ac_cr would be empty at this
16630 # point, so we can use a bashism as a fallback.
16631 if test "x$ac_cr" = x; then
16632 eval ac_cr=\$\'\\r\'
16633 fi
16634 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16635 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16636 ac_cs_awk_cr='\r'
16637 else
16638 ac_cs_awk_cr=$ac_cr
16639 fi
16640
16641 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16642 _ACEOF
16643
16644
16645 {
16646 echo "cat >conf$$subs.awk <<_ACEOF" &&
16647 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16648 echo "_ACEOF"
16649 } >conf$$subs.sh ||
16650 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16651 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16652 ac_delim='%!_!# '
16653 for ac_last_try in false false false false false :; do
16654 . ./conf$$subs.sh ||
16655 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16656
16657 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16658 if test $ac_delim_n = $ac_delim_num; then
16659 break
16660 elif $ac_last_try; then
16661 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16662 else
16663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16664 fi
16665 done
16666 rm -f conf$$subs.sh
16667
16668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16669 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16670 _ACEOF
16671 sed -n '
16672 h
16673 s/^/S["/; s/!.*/"]=/
16674 p
16675 g
16676 s/^[^!]*!//
16677 :repl
16678 t repl
16679 s/'"$ac_delim"'$//
16680 t delim
16681 :nl
16682 h
16683 s/\(.\{148\}\).*/\1/
16684 t more1
16685 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16686 p
16687 n
16688 b repl
16689 :more1
16690 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16691 p
16692 g
16693 s/.\{148\}//
16694 t nl
16695 :delim
16696 h
16697 s/\(.\{148\}\).*/\1/
16698 t more2
16699 s/["\\]/\\&/g; s/^/"/; s/$/"/
16700 p
16701 b
16702 :more2
16703 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16704 p
16705 g
16706 s/.\{148\}//
16707 t delim
16708 ' <conf$$subs.awk | sed '
16709 /^[^""]/{
16710 N
16711 s/\n//
16712 }
16713 ' >>$CONFIG_STATUS || ac_write_fail=1
16714 rm -f conf$$subs.awk
16715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16716 _ACAWK
16717 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16718 for (key in S) S_is_set[key] = 1
16719 FS = "\a"
16720
16721 }
16722 {
16723 line = $ 0
16724 nfields = split(line, field, "@")
16725 substed = 0
16726 len = length(field[1])
16727 for (i = 2; i < nfields; i++) {
16728 key = field[i]
16729 keylen = length(key)
16730 if (S_is_set[key]) {
16731 value = S[key]
16732 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16733 len += length(value) + length(field[++i])
16734 substed = 1
16735 } else
16736 len += 1 + keylen
16737 }
16738
16739 print line
16740 }
16741
16742 _ACAWK
16743 _ACEOF
16744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16745 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16746 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16747 else
16748 cat
16749 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16750 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16751 _ACEOF
16752
16753 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16754 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16755 # trailing colons and then remove the whole line if VPATH becomes empty
16756 # (actually we leave an empty line to preserve line numbers).
16757 if test "x$srcdir" = x.; then
16758 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16759 s/:*\$(srcdir):*/:/
16760 s/:*\${srcdir}:*/:/
16761 s/:*@srcdir@:*/:/
16762 s/^\([^=]*=[ ]*\):*/\1/
16763 s/:*$//
16764 s/^[^=]*=[ ]*$//
16765 }'
16766 fi
16767
16768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16769 fi # test -n "$CONFIG_FILES"
16770
16771 # Set up the scripts for CONFIG_HEADERS section.
16772 # No need to generate them if there are no CONFIG_HEADERS.
16773 # This happens for instance with `./config.status Makefile'.
16774 if test -n "$CONFIG_HEADERS"; then
16775 cat >"$tmp/defines.awk" <<\_ACAWK ||
16776 BEGIN {
16777 _ACEOF
16778
16779 # Transform confdefs.h into an awk script `defines.awk', embedded as
16780 # here-document in config.status, that substitutes the proper values into
16781 # config.h.in to produce config.h.
16782
16783 # Create a delimiter string that does not exist in confdefs.h, to ease
16784 # handling of long lines.
16785 ac_delim='%!_!# '
16786 for ac_last_try in false false :; do
16787 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16788 if test -z "$ac_t"; then
16789 break
16790 elif $ac_last_try; then
16791 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16792 else
16793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16794 fi
16795 done
16796
16797 # For the awk script, D is an array of macro values keyed by name,
16798 # likewise P contains macro parameters if any. Preserve backslash
16799 # newline sequences.
16800
16801 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16802 sed -n '
16803 s/.\{148\}/&'"$ac_delim"'/g
16804 t rset
16805 :rset
16806 s/^[ ]*#[ ]*define[ ][ ]*/ /
16807 t def
16808 d
16809 :def
16810 s/\\$//
16811 t bsnl
16812 s/["\\]/\\&/g
16813 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16814 D["\1"]=" \3"/p
16815 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16816 d
16817 :bsnl
16818 s/["\\]/\\&/g
16819 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16820 D["\1"]=" \3\\\\\\n"\\/p
16821 t cont
16822 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16823 t cont
16824 d
16825 :cont
16826 n
16827 s/.\{148\}/&'"$ac_delim"'/g
16828 t clear
16829 :clear
16830 s/\\$//
16831 t bsnlc
16832 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16833 d
16834 :bsnlc
16835 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16836 b cont
16837 ' <confdefs.h | sed '
16838 s/'"$ac_delim"'/"\\\
16839 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16840
16841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16842 for (key in D) D_is_set[key] = 1
16843 FS = "\a"
16844 }
16845 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16846 line = \$ 0
16847 split(line, arg, " ")
16848 if (arg[1] == "#") {
16849 defundef = arg[2]
16850 mac1 = arg[3]
16851 } else {
16852 defundef = substr(arg[1], 2)
16853 mac1 = arg[2]
16854 }
16855 split(mac1, mac2, "(") #)
16856 macro = mac2[1]
16857 prefix = substr(line, 1, index(line, defundef) - 1)
16858 if (D_is_set[macro]) {
16859 # Preserve the white space surrounding the "#".
16860 print prefix "define", macro P[macro] D[macro]
16861 next
16862 } else {
16863 # Replace #undef with comments. This is necessary, for example,
16864 # in the case of _POSIX_SOURCE, which is predefined and required
16865 # on some systems where configure will not decide to define it.
16866 if (defundef == "undef") {
16867 print "/*", prefix defundef, macro, "*/"
16868 next
16869 }
16870 }
16871 }
16872 { print }
16873 _ACAWK
16874 _ACEOF
16875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16876 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16877 fi # test -n "$CONFIG_HEADERS"
16878
16879
16880 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16881 shift
16882 for ac_tag
16883 do
16884 case $ac_tag in
16885 :[FHLC]) ac_mode=$ac_tag; continue;;
16886 esac
16887 case $ac_mode$ac_tag in
16888 :[FHL]*:*);;
16889 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16890 :[FH]-) ac_tag=-:-;;
16891 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16892 esac
16893 ac_save_IFS=$IFS
16894 IFS=:
16895 set x $ac_tag
16896 IFS=$ac_save_IFS
16897 shift
16898 ac_file=$1
16899 shift
16900
16901 case $ac_mode in
16902 :L) ac_source=$1;;
16903 :[FH])
16904 ac_file_inputs=
16905 for ac_f
16906 do
16907 case $ac_f in
16908 -) ac_f="$tmp/stdin";;
16909 *) # Look for the file first in the build tree, then in the source tree
16910 # (if the path is not absolute). The absolute path cannot be DOS-style,
16911 # because $ac_f cannot contain `:'.
16912 test -f "$ac_f" ||
16913 case $ac_f in
16914 [\\/$]*) false;;
16915 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16916 esac ||
16917 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16918 esac
16919 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16920 as_fn_append ac_file_inputs " '$ac_f'"
16921 done
16922
16923 # Let's still pretend it is `configure' which instantiates (i.e., don't
16924 # use $as_me), people would be surprised to read:
16925 # /* config.h. Generated by config.status. */
16926 configure_input='Generated from '`
16927 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16928 `' by configure.'
16929 if test x"$ac_file" != x-; then
16930 configure_input="$ac_file. $configure_input"
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16932 $as_echo "$as_me: creating $ac_file" >&6;}
16933 fi
16934 # Neutralize special characters interpreted by sed in replacement strings.
16935 case $configure_input in #(
16936 *\&* | *\|* | *\\* )
16937 ac_sed_conf_input=`$as_echo "$configure_input" |
16938 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16939 *) ac_sed_conf_input=$configure_input;;
16940 esac
16941
16942 case $ac_tag in
16943 *:-:* | *:-) cat >"$tmp/stdin" \
16944 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16945 esac
16946 ;;
16947 esac
16948
16949 ac_dir=`$as_dirname -- "$ac_file" ||
16950 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16951 X"$ac_file" : 'X\(//\)[^/]' \| \
16952 X"$ac_file" : 'X\(//\)$' \| \
16953 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16954 $as_echo X"$ac_file" |
16955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16956 s//\1/
16957 q
16958 }
16959 /^X\(\/\/\)[^/].*/{
16960 s//\1/
16961 q
16962 }
16963 /^X\(\/\/\)$/{
16964 s//\1/
16965 q
16966 }
16967 /^X\(\/\).*/{
16968 s//\1/
16969 q
16970 }
16971 s/.*/./; q'`
16972 as_dir="$ac_dir"; as_fn_mkdir_p
16973 ac_builddir=.
16974
16975 case "$ac_dir" in
16976 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16977 *)
16978 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16979 # A ".." for each directory in $ac_dir_suffix.
16980 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16981 case $ac_top_builddir_sub in
16982 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16983 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16984 esac ;;
16985 esac
16986 ac_abs_top_builddir=$ac_pwd
16987 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16988 # for backward compatibility:
16989 ac_top_builddir=$ac_top_build_prefix
16990
16991 case $srcdir in
16992 .) # We are building in place.
16993 ac_srcdir=.
16994 ac_top_srcdir=$ac_top_builddir_sub
16995 ac_abs_top_srcdir=$ac_pwd ;;
16996 [\\/]* | ?:[\\/]* ) # Absolute name.
16997 ac_srcdir=$srcdir$ac_dir_suffix;
16998 ac_top_srcdir=$srcdir
16999 ac_abs_top_srcdir=$srcdir ;;
17000 *) # Relative name.
17001 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17002 ac_top_srcdir=$ac_top_build_prefix$srcdir
17003 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17004 esac
17005 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17006
17007
17008 case $ac_mode in
17009 :F)
17010 #
17011 # CONFIG_FILE
17012 #
17013
17014 case $INSTALL in
17015 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17016 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17017 esac
17018 ac_MKDIR_P=$MKDIR_P
17019 case $MKDIR_P in
17020 [\\/$]* | ?:[\\/]* ) ;;
17021 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17022 esac
17023 _ACEOF
17024
17025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17026 # If the template does not know about datarootdir, expand it.
17027 # FIXME: This hack should be removed a few years after 2.60.
17028 ac_datarootdir_hack=; ac_datarootdir_seen=
17029 ac_sed_dataroot='
17030 /datarootdir/ {
17031 p
17032 q
17033 }
17034 /@datadir@/p
17035 /@docdir@/p
17036 /@infodir@/p
17037 /@localedir@/p
17038 /@mandir@/p'
17039 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17040 *datarootdir*) ac_datarootdir_seen=yes;;
17041 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17043 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17044 _ACEOF
17045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17046 ac_datarootdir_hack='
17047 s&@datadir@&$datadir&g
17048 s&@docdir@&$docdir&g
17049 s&@infodir@&$infodir&g
17050 s&@localedir@&$localedir&g
17051 s&@mandir@&$mandir&g
17052 s&\\\${datarootdir}&$datarootdir&g' ;;
17053 esac
17054 _ACEOF
17055
17056 # Neutralize VPATH when `$srcdir' = `.'.
17057 # Shell code in configure.ac might set extrasub.
17058 # FIXME: do we really want to maintain this feature?
17059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17060 ac_sed_extra="$ac_vpsub
17061 $extrasub
17062 _ACEOF
17063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17064 :t
17065 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17066 s|@configure_input@|$ac_sed_conf_input|;t t
17067 s&@top_builddir@&$ac_top_builddir_sub&;t t
17068 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17069 s&@srcdir@&$ac_srcdir&;t t
17070 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17071 s&@top_srcdir@&$ac_top_srcdir&;t t
17072 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17073 s&@builddir@&$ac_builddir&;t t
17074 s&@abs_builddir@&$ac_abs_builddir&;t t
17075 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17076 s&@INSTALL@&$ac_INSTALL&;t t
17077 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17078 $ac_datarootdir_hack
17079 "
17080 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17081 || as_fn_error "could not create $ac_file" "$LINENO" 5
17082
17083 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17084 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17087 which seems to be undefined. Please make sure it is defined." >&5
17088 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17089 which seems to be undefined. Please make sure it is defined." >&2;}
17090
17091 rm -f "$tmp/stdin"
17092 case $ac_file in
17093 -) cat "$tmp/out" && rm -f "$tmp/out";;
17094 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17095 esac \
17096 || as_fn_error "could not create $ac_file" "$LINENO" 5
17097 ;;
17098 :H)
17099 #
17100 # CONFIG_HEADER
17101 #
17102 if test x"$ac_file" != x-; then
17103 {
17104 $as_echo "/* $configure_input */" \
17105 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17106 } >"$tmp/config.h" \
17107 || as_fn_error "could not create $ac_file" "$LINENO" 5
17108 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17110 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17111 else
17112 rm -f "$ac_file"
17113 mv "$tmp/config.h" "$ac_file" \
17114 || as_fn_error "could not create $ac_file" "$LINENO" 5
17115 fi
17116 else
17117 $as_echo "/* $configure_input */" \
17118 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17119 || as_fn_error "could not create -" "$LINENO" 5
17120 fi
17121 # Compute "$ac_file"'s index in $config_headers.
17122 _am_arg="$ac_file"
17123 _am_stamp_count=1
17124 for _am_header in $config_headers :; do
17125 case $_am_header in
17126 $_am_arg | $_am_arg:* )
17127 break ;;
17128 * )
17129 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17130 esac
17131 done
17132 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17133 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17134 X"$_am_arg" : 'X\(//\)[^/]' \| \
17135 X"$_am_arg" : 'X\(//\)$' \| \
17136 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17137 $as_echo X"$_am_arg" |
17138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17139 s//\1/
17140 q
17141 }
17142 /^X\(\/\/\)[^/].*/{
17143 s//\1/
17144 q
17145 }
17146 /^X\(\/\/\)$/{
17147 s//\1/
17148 q
17149 }
17150 /^X\(\/\).*/{
17151 s//\1/
17152 q
17153 }
17154 s/.*/./; q'`/stamp-h$_am_stamp_count
17155 ;;
17156
17157 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17158 $as_echo "$as_me: executing $ac_file commands" >&6;}
17159 ;;
17160 esac
17161
17162
17163 case $ac_file$ac_mode in
17164 "default-1":C)
17165 # Only add multilib support code if we just rebuilt the top-level
17166 # Makefile.
17167 case " $CONFIG_FILES " in
17168 *" Makefile "*)
17169 ac_file=Makefile . ${multi_basedir}/config-ml.in
17170 ;;
17171 esac ;;
17172 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17173 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17174 # are listed without --file. Let's play safe and only enable the eval
17175 # if we detect the quoting.
17176 case $CONFIG_FILES in
17177 *\'*) eval set x "$CONFIG_FILES" ;;
17178 *) set x $CONFIG_FILES ;;
17179 esac
17180 shift
17181 for mf
17182 do
17183 # Strip MF so we end up with the name of the file.
17184 mf=`echo "$mf" | sed -e 's/:.*$//'`
17185 # Check whether this is an Automake generated Makefile or not.
17186 # We used to match only the files named `Makefile.in', but
17187 # some people rename them; so instead we look at the file content.
17188 # Grep'ing the first line is not enough: some people post-process
17189 # each Makefile.in and add a new line on top of each file to say so.
17190 # Grep'ing the whole file is not good either: AIX grep has a line
17191 # limit of 2048, but all sed's we know have understand at least 4000.
17192 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17193 dirpart=`$as_dirname -- "$mf" ||
17194 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17195 X"$mf" : 'X\(//\)[^/]' \| \
17196 X"$mf" : 'X\(//\)$' \| \
17197 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17198 $as_echo X"$mf" |
17199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17200 s//\1/
17201 q
17202 }
17203 /^X\(\/\/\)[^/].*/{
17204 s//\1/
17205 q
17206 }
17207 /^X\(\/\/\)$/{
17208 s//\1/
17209 q
17210 }
17211 /^X\(\/\).*/{
17212 s//\1/
17213 q
17214 }
17215 s/.*/./; q'`
17216 else
17217 continue
17218 fi
17219 # Extract the definition of DEPDIR, am__include, and am__quote
17220 # from the Makefile without running `make'.
17221 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17222 test -z "$DEPDIR" && continue
17223 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17224 test -z "am__include" && continue
17225 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17226 # When using ansi2knr, U may be empty or an underscore; expand it
17227 U=`sed -n 's/^U = //p' < "$mf"`
17228 # Find all dependency output files, they are included files with
17229 # $(DEPDIR) in their names. We invoke sed twice because it is the
17230 # simplest approach to changing $(DEPDIR) to its actual value in the
17231 # expansion.
17232 for file in `sed -n "
17233 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17234 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17235 # Make sure the directory exists.
17236 test -f "$dirpart/$file" && continue
17237 fdir=`$as_dirname -- "$file" ||
17238 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239 X"$file" : 'X\(//\)[^/]' \| \
17240 X"$file" : 'X\(//\)$' \| \
17241 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17242 $as_echo X"$file" |
17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17244 s//\1/
17245 q
17246 }
17247 /^X\(\/\/\)[^/].*/{
17248 s//\1/
17249 q
17250 }
17251 /^X\(\/\/\)$/{
17252 s//\1/
17253 q
17254 }
17255 /^X\(\/\).*/{
17256 s//\1/
17257 q
17258 }
17259 s/.*/./; q'`
17260 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17261 # echo "creating $dirpart/$file"
17262 echo '# dummy' > "$dirpart/$file"
17263 done
17264 done
17265 }
17266 ;;
17267 "libtool":C)
17268
17269 # See if we are running on zsh, and set the options which allow our
17270 # commands through without removal of \ escapes.
17271 if test -n "${ZSH_VERSION+set}" ; then
17272 setopt NO_GLOB_SUBST
17273 fi
17274
17275 cfgfile="${ofile}T"
17276 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17277 $RM "$cfgfile"
17278
17279 cat <<_LT_EOF >> "$cfgfile"
17280 #! $SHELL
17281
17282 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17283 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17284 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17285 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17286 #
17287 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17288 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17289 # Written by Gordon Matzigkeit, 1996
17290 #
17291 # This file is part of GNU Libtool.
17292 #
17293 # GNU Libtool is free software; you can redistribute it and/or
17294 # modify it under the terms of the GNU General Public License as
17295 # published by the Free Software Foundation; either version 2 of
17296 # the License, or (at your option) any later version.
17297 #
17298 # As a special exception to the GNU General Public License,
17299 # if you distribute this file as part of a program or library that
17300 # is built using GNU Libtool, you may include this file under the
17301 # same distribution terms that you use for the rest of that program.
17302 #
17303 # GNU Libtool is distributed in the hope that it will be useful,
17304 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17305 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17306 # GNU General Public License for more details.
17307 #
17308 # You should have received a copy of the GNU General Public License
17309 # along with GNU Libtool; see the file COPYING. If not, a copy
17310 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17311 # obtained by writing to the Free Software Foundation, Inc.,
17312 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17313
17314
17315 # The names of the tagged configurations supported by this script.
17316 available_tags="GO "
17317
17318 # ### BEGIN LIBTOOL CONFIG
17319
17320 # A sed program that does not truncate output.
17321 SED=$lt_SED
17322
17323 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17324 Xsed="\$SED -e 1s/^X//"
17325
17326 # A grep program that handles long lines.
17327 GREP=$lt_GREP
17328
17329 # An ERE matcher.
17330 EGREP=$lt_EGREP
17331
17332 # A literal string matcher.
17333 FGREP=$lt_FGREP
17334
17335 # Shell to use when invoking shell scripts.
17336 SHELL=$lt_SHELL
17337
17338 # An echo program that protects backslashes.
17339 ECHO=$lt_ECHO
17340
17341 # Which release of libtool.m4 was used?
17342 macro_version=$macro_version
17343 macro_revision=$macro_revision
17344
17345 # Whether or not to build shared libraries.
17346 build_libtool_libs=$enable_shared
17347
17348 # Whether or not to build static libraries.
17349 build_old_libs=$enable_static
17350
17351 # What type of objects to build.
17352 pic_mode=$pic_mode
17353
17354 # Whether or not to optimize for fast installation.
17355 fast_install=$enable_fast_install
17356
17357 # The host system.
17358 host_alias=$host_alias
17359 host=$host
17360 host_os=$host_os
17361
17362 # The build system.
17363 build_alias=$build_alias
17364 build=$build
17365 build_os=$build_os
17366
17367 # A BSD- or MS-compatible name lister.
17368 NM=$lt_NM
17369
17370 # Whether we need soft or hard links.
17371 LN_S=$lt_LN_S
17372
17373 # What is the maximum length of a command?
17374 max_cmd_len=$max_cmd_len
17375
17376 # Object file suffix (normally "o").
17377 objext=$ac_objext
17378
17379 # Executable file suffix (normally "").
17380 exeext=$exeext
17381
17382 # whether the shell understands "unset".
17383 lt_unset=$lt_unset
17384
17385 # turn spaces into newlines.
17386 SP2NL=$lt_lt_SP2NL
17387
17388 # turn newlines into spaces.
17389 NL2SP=$lt_lt_NL2SP
17390
17391 # An object symbol dumper.
17392 OBJDUMP=$lt_OBJDUMP
17393
17394 # Method to check whether dependent libraries are shared objects.
17395 deplibs_check_method=$lt_deplibs_check_method
17396
17397 # Command to use when deplibs_check_method == "file_magic".
17398 file_magic_cmd=$lt_file_magic_cmd
17399
17400 # The archiver.
17401 AR=$lt_AR
17402 AR_FLAGS=$lt_AR_FLAGS
17403
17404 # A symbol stripping program.
17405 STRIP=$lt_STRIP
17406
17407 # Commands used to install an old-style archive.
17408 RANLIB=$lt_RANLIB
17409 old_postinstall_cmds=$lt_old_postinstall_cmds
17410 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17411
17412 # Whether to use a lock for old archive extraction.
17413 lock_old_archive_extraction=$lock_old_archive_extraction
17414
17415 # A C compiler.
17416 LTCC=$lt_CC
17417
17418 # LTCC compiler flags.
17419 LTCFLAGS=$lt_CFLAGS
17420
17421 # Take the output of nm and produce a listing of raw symbols and C names.
17422 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17423
17424 # Transform the output of nm in a proper C declaration.
17425 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17426
17427 # Transform the output of nm in a C name address pair.
17428 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17429
17430 # Transform the output of nm in a C name address pair when lib prefix is needed.
17431 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17432
17433 # The name of the directory that contains temporary libtool files.
17434 objdir=$objdir
17435
17436 # Used to examine libraries when file_magic_cmd begins with "file".
17437 MAGIC_CMD=$MAGIC_CMD
17438
17439 # Must we lock files when doing compilation?
17440 need_locks=$lt_need_locks
17441
17442 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17443 DSYMUTIL=$lt_DSYMUTIL
17444
17445 # Tool to change global to local symbols on Mac OS X.
17446 NMEDIT=$lt_NMEDIT
17447
17448 # Tool to manipulate fat objects and archives on Mac OS X.
17449 LIPO=$lt_LIPO
17450
17451 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17452 OTOOL=$lt_OTOOL
17453
17454 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17455 OTOOL64=$lt_OTOOL64
17456
17457 # Old archive suffix (normally "a").
17458 libext=$libext
17459
17460 # Shared library suffix (normally ".so").
17461 shrext_cmds=$lt_shrext_cmds
17462
17463 # The commands to extract the exported symbol list from a shared archive.
17464 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17465
17466 # Variables whose values should be saved in libtool wrapper scripts and
17467 # restored at link time.
17468 variables_saved_for_relink=$lt_variables_saved_for_relink
17469
17470 # Do we need the "lib" prefix for modules?
17471 need_lib_prefix=$need_lib_prefix
17472
17473 # Do we need a version for libraries?
17474 need_version=$need_version
17475
17476 # Library versioning type.
17477 version_type=$version_type
17478
17479 # Shared library runtime path variable.
17480 runpath_var=$runpath_var
17481
17482 # Shared library path variable.
17483 shlibpath_var=$shlibpath_var
17484
17485 # Is shlibpath searched before the hard-coded library search path?
17486 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17487
17488 # Format of library name prefix.
17489 libname_spec=$lt_libname_spec
17490
17491 # List of archive names. First name is the real one, the rest are links.
17492 # The last name is the one that the linker finds with -lNAME
17493 library_names_spec=$lt_library_names_spec
17494
17495 # The coded name of the library, if different from the real name.
17496 soname_spec=$lt_soname_spec
17497
17498 # Permission mode override for installation of shared libraries.
17499 install_override_mode=$lt_install_override_mode
17500
17501 # Command to use after installation of a shared archive.
17502 postinstall_cmds=$lt_postinstall_cmds
17503
17504 # Command to use after uninstallation of a shared archive.
17505 postuninstall_cmds=$lt_postuninstall_cmds
17506
17507 # Commands used to finish a libtool library installation in a directory.
17508 finish_cmds=$lt_finish_cmds
17509
17510 # As "finish_cmds", except a single script fragment to be evaled but
17511 # not shown.
17512 finish_eval=$lt_finish_eval
17513
17514 # Whether we should hardcode library paths into libraries.
17515 hardcode_into_libs=$hardcode_into_libs
17516
17517 # Compile-time system search path for libraries.
17518 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17519
17520 # Run-time system search path for libraries.
17521 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17522
17523 # Whether dlopen is supported.
17524 dlopen_support=$enable_dlopen
17525
17526 # Whether dlopen of programs is supported.
17527 dlopen_self=$enable_dlopen_self
17528
17529 # Whether dlopen of statically linked programs is supported.
17530 dlopen_self_static=$enable_dlopen_self_static
17531
17532 # Commands to strip libraries.
17533 old_striplib=$lt_old_striplib
17534 striplib=$lt_striplib
17535
17536
17537 # The linker used to build libraries.
17538 LD=$lt_LD
17539
17540 # How to create reloadable object files.
17541 reload_flag=$lt_reload_flag
17542 reload_cmds=$lt_reload_cmds
17543
17544 # Commands used to build an old-style archive.
17545 old_archive_cmds=$lt_old_archive_cmds
17546
17547 # A language specific compiler.
17548 CC=$lt_compiler
17549
17550 # Is the compiler the GNU compiler?
17551 with_gcc=$GCC
17552
17553 # Compiler flag to turn off builtin functions.
17554 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17555
17556 # How to pass a linker flag through the compiler.
17557 wl=$lt_lt_prog_compiler_wl
17558
17559 # Additional compiler flags for building library objects.
17560 pic_flag=$lt_lt_prog_compiler_pic
17561
17562 # Compiler flag to prevent dynamic linking.
17563 link_static_flag=$lt_lt_prog_compiler_static
17564
17565 # Does compiler simultaneously support -c and -o options?
17566 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17567
17568 # Whether or not to add -lc for building shared libraries.
17569 build_libtool_need_lc=$archive_cmds_need_lc
17570
17571 # Whether or not to disallow shared libs when runtime libs are static.
17572 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17573
17574 # Compiler flag to allow reflexive dlopens.
17575 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17576
17577 # Compiler flag to generate shared objects directly from archives.
17578 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17579
17580 # Whether the compiler copes with passing no objects directly.
17581 compiler_needs_object=$lt_compiler_needs_object
17582
17583 # Create an old-style archive from a shared archive.
17584 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17585
17586 # Create a temporary old-style archive to link instead of a shared archive.
17587 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17588
17589 # Commands used to build a shared archive.
17590 archive_cmds=$lt_archive_cmds
17591 archive_expsym_cmds=$lt_archive_expsym_cmds
17592
17593 # Commands used to build a loadable module if different from building
17594 # a shared archive.
17595 module_cmds=$lt_module_cmds
17596 module_expsym_cmds=$lt_module_expsym_cmds
17597
17598 # Whether we are building with GNU ld or not.
17599 with_gnu_ld=$lt_with_gnu_ld
17600
17601 # Flag that allows shared libraries with undefined symbols to be built.
17602 allow_undefined_flag=$lt_allow_undefined_flag
17603
17604 # Flag that enforces no undefined symbols.
17605 no_undefined_flag=$lt_no_undefined_flag
17606
17607 # Flag to hardcode \$libdir into a binary during linking.
17608 # This must work even if \$libdir does not exist
17609 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17610
17611 # If ld is used when linking, flag to hardcode \$libdir into a binary
17612 # during linking. This must work even if \$libdir does not exist.
17613 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17614
17615 # Whether we need a single "-rpath" flag with a separated argument.
17616 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17617
17618 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17619 # DIR into the resulting binary.
17620 hardcode_direct=$hardcode_direct
17621
17622 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17623 # DIR into the resulting binary and the resulting library dependency is
17624 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17625 # library is relocated.
17626 hardcode_direct_absolute=$hardcode_direct_absolute
17627
17628 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17629 # into the resulting binary.
17630 hardcode_minus_L=$hardcode_minus_L
17631
17632 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17633 # into the resulting binary.
17634 hardcode_shlibpath_var=$hardcode_shlibpath_var
17635
17636 # Set to "yes" if building a shared library automatically hardcodes DIR
17637 # into the library and all subsequent libraries and executables linked
17638 # against it.
17639 hardcode_automatic=$hardcode_automatic
17640
17641 # Set to yes if linker adds runtime paths of dependent libraries
17642 # to runtime path list.
17643 inherit_rpath=$inherit_rpath
17644
17645 # Whether libtool must link a program against all its dependency libraries.
17646 link_all_deplibs=$link_all_deplibs
17647
17648 # Fix the shell variable \$srcfile for the compiler.
17649 fix_srcfile_path=$lt_fix_srcfile_path
17650
17651 # Set to "yes" if exported symbols are required.
17652 always_export_symbols=$always_export_symbols
17653
17654 # The commands to list exported symbols.
17655 export_symbols_cmds=$lt_export_symbols_cmds
17656
17657 # Symbols that should not be listed in the preloaded symbols.
17658 exclude_expsyms=$lt_exclude_expsyms
17659
17660 # Symbols that must always be exported.
17661 include_expsyms=$lt_include_expsyms
17662
17663 # Commands necessary for linking programs (against libraries) with templates.
17664 prelink_cmds=$lt_prelink_cmds
17665
17666 # Specify filename containing input files.
17667 file_list_spec=$lt_file_list_spec
17668
17669 # How to hardcode a shared library path into an executable.
17670 hardcode_action=$hardcode_action
17671
17672 # ### END LIBTOOL CONFIG
17673
17674 _LT_EOF
17675
17676 case $host_os in
17677 aix3*)
17678 cat <<\_LT_EOF >> "$cfgfile"
17679 # AIX sometimes has problems with the GCC collect2 program. For some
17680 # reason, if we set the COLLECT_NAMES environment variable, the problems
17681 # vanish in a puff of smoke.
17682 if test "X${COLLECT_NAMES+set}" != Xset; then
17683 COLLECT_NAMES=
17684 export COLLECT_NAMES
17685 fi
17686 _LT_EOF
17687 ;;
17688 esac
17689
17690
17691 ltmain="$ac_aux_dir/ltmain.sh"
17692
17693
17694 # We use sed instead of cat because bash on DJGPP gets confused if
17695 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17696 # text mode, it properly converts lines to CR/LF. This bash problem
17697 # is reportedly fixed, but why not run on old versions too?
17698 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17699 || (rm -f "$cfgfile"; exit 1)
17700
17701 case $xsi_shell in
17702 yes)
17703 cat << \_LT_EOF >> "$cfgfile"
17704
17705 # func_dirname file append nondir_replacement
17706 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17707 # otherwise set result to NONDIR_REPLACEMENT.
17708 func_dirname ()
17709 {
17710 case ${1} in
17711 */*) func_dirname_result="${1%/*}${2}" ;;
17712 * ) func_dirname_result="${3}" ;;
17713 esac
17714 }
17715
17716 # func_basename file
17717 func_basename ()
17718 {
17719 func_basename_result="${1##*/}"
17720 }
17721
17722 # func_dirname_and_basename file append nondir_replacement
17723 # perform func_basename and func_dirname in a single function
17724 # call:
17725 # dirname: Compute the dirname of FILE. If nonempty,
17726 # add APPEND to the result, otherwise set result
17727 # to NONDIR_REPLACEMENT.
17728 # value returned in "$func_dirname_result"
17729 # basename: Compute filename of FILE.
17730 # value retuned in "$func_basename_result"
17731 # Implementation must be kept synchronized with func_dirname
17732 # and func_basename. For efficiency, we do not delegate to
17733 # those functions but instead duplicate the functionality here.
17734 func_dirname_and_basename ()
17735 {
17736 case ${1} in
17737 */*) func_dirname_result="${1%/*}${2}" ;;
17738 * ) func_dirname_result="${3}" ;;
17739 esac
17740 func_basename_result="${1##*/}"
17741 }
17742
17743 # func_stripname prefix suffix name
17744 # strip PREFIX and SUFFIX off of NAME.
17745 # PREFIX and SUFFIX must not contain globbing or regex special
17746 # characters, hashes, percent signs, but SUFFIX may contain a leading
17747 # dot (in which case that matches only a dot).
17748 func_stripname ()
17749 {
17750 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17751 # positional parameters, so assign one to ordinary parameter first.
17752 func_stripname_result=${3}
17753 func_stripname_result=${func_stripname_result#"${1}"}
17754 func_stripname_result=${func_stripname_result%"${2}"}
17755 }
17756
17757 # func_opt_split
17758 func_opt_split ()
17759 {
17760 func_opt_split_opt=${1%%=*}
17761 func_opt_split_arg=${1#*=}
17762 }
17763
17764 # func_lo2o object
17765 func_lo2o ()
17766 {
17767 case ${1} in
17768 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17769 *) func_lo2o_result=${1} ;;
17770 esac
17771 }
17772
17773 # func_xform libobj-or-source
17774 func_xform ()
17775 {
17776 func_xform_result=${1%.*}.lo
17777 }
17778
17779 # func_arith arithmetic-term...
17780 func_arith ()
17781 {
17782 func_arith_result=$(( $* ))
17783 }
17784
17785 # func_len string
17786 # STRING may not start with a hyphen.
17787 func_len ()
17788 {
17789 func_len_result=${#1}
17790 }
17791
17792 _LT_EOF
17793 ;;
17794 *) # Bourne compatible functions.
17795 cat << \_LT_EOF >> "$cfgfile"
17796
17797 # func_dirname file append nondir_replacement
17798 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17799 # otherwise set result to NONDIR_REPLACEMENT.
17800 func_dirname ()
17801 {
17802 # Extract subdirectory from the argument.
17803 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17804 if test "X$func_dirname_result" = "X${1}"; then
17805 func_dirname_result="${3}"
17806 else
17807 func_dirname_result="$func_dirname_result${2}"
17808 fi
17809 }
17810
17811 # func_basename file
17812 func_basename ()
17813 {
17814 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17815 }
17816
17817
17818 # func_stripname prefix suffix name
17819 # strip PREFIX and SUFFIX off of NAME.
17820 # PREFIX and SUFFIX must not contain globbing or regex special
17821 # characters, hashes, percent signs, but SUFFIX may contain a leading
17822 # dot (in which case that matches only a dot).
17823 # func_strip_suffix prefix name
17824 func_stripname ()
17825 {
17826 case ${2} in
17827 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17828 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17829 esac
17830 }
17831
17832 # sed scripts:
17833 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17834 my_sed_long_arg='1s/^-[^=]*=//'
17835
17836 # func_opt_split
17837 func_opt_split ()
17838 {
17839 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17840 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17841 }
17842
17843 # func_lo2o object
17844 func_lo2o ()
17845 {
17846 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17847 }
17848
17849 # func_xform libobj-or-source
17850 func_xform ()
17851 {
17852 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17853 }
17854
17855 # func_arith arithmetic-term...
17856 func_arith ()
17857 {
17858 func_arith_result=`expr "$@"`
17859 }
17860
17861 # func_len string
17862 # STRING may not start with a hyphen.
17863 func_len ()
17864 {
17865 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17866 }
17867
17868 _LT_EOF
17869 esac
17870
17871 case $lt_shell_append in
17872 yes)
17873 cat << \_LT_EOF >> "$cfgfile"
17874
17875 # func_append var value
17876 # Append VALUE to the end of shell variable VAR.
17877 func_append ()
17878 {
17879 eval "$1+=\$2"
17880 }
17881 _LT_EOF
17882 ;;
17883 *)
17884 cat << \_LT_EOF >> "$cfgfile"
17885
17886 # func_append var value
17887 # Append VALUE to the end of shell variable VAR.
17888 func_append ()
17889 {
17890 eval "$1=\$$1\$2"
17891 }
17892
17893 _LT_EOF
17894 ;;
17895 esac
17896
17897
17898 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17899 || (rm -f "$cfgfile"; exit 1)
17900
17901 mv -f "$cfgfile" "$ofile" ||
17902 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17903 chmod +x "$ofile"
17904
17905
17906 cat <<_LT_EOF >> "$ofile"
17907
17908 # ### BEGIN LIBTOOL TAG CONFIG: GO
17909
17910 # The linker used to build libraries.
17911 LD=$lt_LD_GO
17912
17913 # How to create reloadable object files.
17914 reload_flag=$lt_reload_flag_GO
17915 reload_cmds=$lt_reload_cmds_GO
17916
17917 # Commands used to build an old-style archive.
17918 old_archive_cmds=$lt_old_archive_cmds_GO
17919
17920 # A language specific compiler.
17921 CC=$lt_compiler_GO
17922
17923 # Is the compiler the GNU compiler?
17924 with_gcc=$GCC_GO
17925
17926 # Compiler flag to turn off builtin functions.
17927 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17928
17929 # How to pass a linker flag through the compiler.
17930 wl=$lt_lt_prog_compiler_wl_GO
17931
17932 # Additional compiler flags for building library objects.
17933 pic_flag=$lt_lt_prog_compiler_pic_GO
17934
17935 # Compiler flag to prevent dynamic linking.
17936 link_static_flag=$lt_lt_prog_compiler_static_GO
17937
17938 # Does compiler simultaneously support -c and -o options?
17939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17940
17941 # Whether or not to add -lc for building shared libraries.
17942 build_libtool_need_lc=$archive_cmds_need_lc_GO
17943
17944 # Whether or not to disallow shared libs when runtime libs are static.
17945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17946
17947 # Compiler flag to allow reflexive dlopens.
17948 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17949
17950 # Compiler flag to generate shared objects directly from archives.
17951 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17952
17953 # Whether the compiler copes with passing no objects directly.
17954 compiler_needs_object=$lt_compiler_needs_object_GO
17955
17956 # Create an old-style archive from a shared archive.
17957 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17958
17959 # Create a temporary old-style archive to link instead of a shared archive.
17960 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17961
17962 # Commands used to build a shared archive.
17963 archive_cmds=$lt_archive_cmds_GO
17964 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17965
17966 # Commands used to build a loadable module if different from building
17967 # a shared archive.
17968 module_cmds=$lt_module_cmds_GO
17969 module_expsym_cmds=$lt_module_expsym_cmds_GO
17970
17971 # Whether we are building with GNU ld or not.
17972 with_gnu_ld=$lt_with_gnu_ld_GO
17973
17974 # Flag that allows shared libraries with undefined symbols to be built.
17975 allow_undefined_flag=$lt_allow_undefined_flag_GO
17976
17977 # Flag that enforces no undefined symbols.
17978 no_undefined_flag=$lt_no_undefined_flag_GO
17979
17980 # Flag to hardcode \$libdir into a binary during linking.
17981 # This must work even if \$libdir does not exist
17982 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17983
17984 # If ld is used when linking, flag to hardcode \$libdir into a binary
17985 # during linking. This must work even if \$libdir does not exist.
17986 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17987
17988 # Whether we need a single "-rpath" flag with a separated argument.
17989 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17990
17991 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17992 # DIR into the resulting binary.
17993 hardcode_direct=$hardcode_direct_GO
17994
17995 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17996 # DIR into the resulting binary and the resulting library dependency is
17997 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17998 # library is relocated.
17999 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18000
18001 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18002 # into the resulting binary.
18003 hardcode_minus_L=$hardcode_minus_L_GO
18004
18005 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18006 # into the resulting binary.
18007 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18008
18009 # Set to "yes" if building a shared library automatically hardcodes DIR
18010 # into the library and all subsequent libraries and executables linked
18011 # against it.
18012 hardcode_automatic=$hardcode_automatic_GO
18013
18014 # Set to yes if linker adds runtime paths of dependent libraries
18015 # to runtime path list.
18016 inherit_rpath=$inherit_rpath_GO
18017
18018 # Whether libtool must link a program against all its dependency libraries.
18019 link_all_deplibs=$link_all_deplibs_GO
18020
18021 # Fix the shell variable \$srcfile for the compiler.
18022 fix_srcfile_path=$lt_fix_srcfile_path_GO
18023
18024 # Set to "yes" if exported symbols are required.
18025 always_export_symbols=$always_export_symbols_GO
18026
18027 # The commands to list exported symbols.
18028 export_symbols_cmds=$lt_export_symbols_cmds_GO
18029
18030 # Symbols that should not be listed in the preloaded symbols.
18031 exclude_expsyms=$lt_exclude_expsyms_GO
18032
18033 # Symbols that must always be exported.
18034 include_expsyms=$lt_include_expsyms_GO
18035
18036 # Commands necessary for linking programs (against libraries) with templates.
18037 prelink_cmds=$lt_prelink_cmds_GO
18038
18039 # Specify filename containing input files.
18040 file_list_spec=$lt_file_list_spec_GO
18041
18042 # How to hardcode a shared library path into an executable.
18043 hardcode_action=$hardcode_action_GO
18044
18045 # ### END LIBTOOL TAG CONFIG: GO
18046 _LT_EOF
18047
18048 ;;
18049 "default":C) if test -n "$CONFIG_FILES"; then
18050 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18051 # that multilib installs will end up installed in the correct place.
18052 # The testsuite needs it for multilib-aware ABI baseline files.
18053 # To work around this not being passed down from config-ml.in ->
18054 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18055 # append it here. Only modify Makefiles that have just been created.
18056 #
18057 # Also, get rid of this simulated-VPATH thing that automake does.
18058 cat > vpsed << \_EOF
18059 s!`test -f '$<' || echo '$(srcdir)/'`!!
18060 _EOF
18061 for i in $SUBDIRS; do
18062 case $CONFIG_FILES in
18063 *${i}/Makefile*)
18064 #echo "Adding MULTISUBDIR to $i/Makefile"
18065 sed -f vpsed $i/Makefile > tmp
18066 grep '^MULTISUBDIR =' Makefile >> tmp
18067 mv tmp $i/Makefile
18068 ;;
18069 esac
18070 done
18071 rm vpsed
18072 fi
18073 ;;
18074
18075 esac
18076 done # for ac_tag
18077
18078
18079 as_fn_exit 0
18080 _ACEOF
18081 ac_clean_files=$ac_clean_files_save
18082
18083 test $ac_write_fail = 0 ||
18084 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18085
18086
18087 # configure is writing to config.log, and then calls config.status.
18088 # config.status does its own redirection, appending to config.log.
18089 # Unfortunately, on DOS this fails, as config.log is still kept open
18090 # by configure, so config.status won't be able to write to it; its
18091 # output is simply discarded. So we exec the FD to /dev/null,
18092 # effectively closing config.log, so it can be properly (re)opened and
18093 # appended to by config.status. When coming back to configure, we
18094 # need to make the FD available again.
18095 if test "$no_create" != yes; then
18096 ac_cs_success=:
18097 ac_config_status_args=
18098 test "$silent" = yes &&
18099 ac_config_status_args="$ac_config_status_args --quiet"
18100 exec 5>/dev/null
18101 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18102 exec 5>>config.log
18103 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18104 # would make configure fail if this is the last instruction.
18105 $ac_cs_success || as_fn_exit $?
18106 fi
18107 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18109 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18110 fi
18111