syscall, net: Fix GNU/Linux netlink code for big-endian systems.
[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 GO_BIGENDIAN
616 PTHREAD_LIBS
617 PTHREAD_CFLAGS
618 NET_LIBS
619 MATH_LIBS
620 USING_SPLIT_STACK_FALSE
621 USING_SPLIT_STACK_TRUE
622 SPLIT_STACK
623 OSCFLAGS
624 GO_SYSCALL_OS_ARCH_FILE
625 GO_SYSCALL_OS_FILE
626 GO_LIBCALL_OS_ARCH_FILE
627 GO_LIBCALL_OS_FILE
628 GOARCH
629 LIBGO_IS_X86_64_FALSE
630 LIBGO_IS_X86_64_TRUE
631 LIBGO_IS_SPARC64_FALSE
632 LIBGO_IS_SPARC64_TRUE
633 LIBGO_IS_SPARC_FALSE
634 LIBGO_IS_SPARC_TRUE
635 LIBGO_IS_PPC64_FALSE
636 LIBGO_IS_PPC64_TRUE
637 LIBGO_IS_PPC_FALSE
638 LIBGO_IS_PPC_TRUE
639 LIBGO_IS_MIPSO64_FALSE
640 LIBGO_IS_MIPSO64_TRUE
641 LIBGO_IS_MIPSN64_FALSE
642 LIBGO_IS_MIPSN64_TRUE
643 LIBGO_IS_MIPSN32_FALSE
644 LIBGO_IS_MIPSN32_TRUE
645 LIBGO_IS_MIPSO32_FALSE
646 LIBGO_IS_MIPSO32_TRUE
647 LIBGO_IS_MIPS_FALSE
648 LIBGO_IS_MIPS_TRUE
649 LIBGO_IS_M68K_FALSE
650 LIBGO_IS_M68K_TRUE
651 LIBGO_IS_ARM_FALSE
652 LIBGO_IS_ARM_TRUE
653 LIBGO_IS_ALPHA_FALSE
654 LIBGO_IS_ALPHA_TRUE
655 LIBGO_IS_386_FALSE
656 LIBGO_IS_386_TRUE
657 GOOS
658 LIBGO_IS_SOLARIS_FALSE
659 LIBGO_IS_SOLARIS_TRUE
660 LIBGO_IS_RTEMS_FALSE
661 LIBGO_IS_RTEMS_TRUE
662 LIBGO_IS_NETBSD_FALSE
663 LIBGO_IS_NETBSD_TRUE
664 LIBGO_IS_LINUX_FALSE
665 LIBGO_IS_LINUX_TRUE
666 LIBGO_IS_IRIX_FALSE
667 LIBGO_IS_IRIX_TRUE
668 LIBGO_IS_FREEBSD_FALSE
669 LIBGO_IS_FREEBSD_TRUE
670 LIBGO_IS_DARWIN_FALSE
671 LIBGO_IS_DARWIN_TRUE
672 go_include
673 LIBFFIINCS
674 LIBFFI
675 nover_glibgo_toolexeclibdir
676 glibgo_toolexeclibdir
677 glibgo_toolexecdir
678 WERROR
679 WARN_FLAGS
680 CC_FOR_BUILD
681 enable_static
682 enable_shared
683 CPP
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 AR
690 OBJDUMP
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LIBTOOL
696 OBJCOPY
697 RANLIB
698 LD
699 FGREP
700 EGREP
701 GREP
702 SED
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 GOCFLAGS
707 GOC
708 am__fastdepCC_FALSE
709 am__fastdepCC_TRUE
710 CCDEPMODE
711 AMDEPBACKSLASH
712 AMDEP_FALSE
713 AMDEP_TRUE
714 am__quote
715 am__include
716 DEPDIR
717 OBJEXT
718 EXEEXT
719 ac_ct_CC
720 CPPFLAGS
721 LDFLAGS
722 CFLAGS
723 CC
724 am__untar
725 am__tar
726 AMTAR
727 am__leading_dot
728 SET_MAKE
729 AWK
730 mkdir_p
731 MKDIR_P
732 INSTALL_STRIP_PROGRAM
733 STRIP
734 install_sh
735 MAKEINFO
736 AUTOHEADER
737 AUTOMAKE
738 AUTOCONF
739 ACLOCAL
740 VERSION
741 PACKAGE
742 CYGPATH_W
743 am__isrc
744 INSTALL_DATA
745 INSTALL_SCRIPT
746 INSTALL_PROGRAM
747 target_os
748 target_vendor
749 target_cpu
750 target
751 host_os
752 host_vendor
753 host_cpu
754 host
755 build_os
756 build_vendor
757 build_cpu
758 build
759 multi_basedir
760 libtool_VERSION
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_multilib
803 enable_dependency_tracking
804 enable_maintainer_mode
805 with_gnu_ld
806 enable_shared
807 enable_static
808 with_pic
809 enable_fast_install
810 enable_libtool_lock
811 enable_version_specific_runtime_libs
812 with_libffi
813 with_system_libunwind
814 enable_sjlj_exceptions
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CPP
820 CPPFLAGS'
821
822
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
844
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
870
871 ac_prev=
872 ac_dashdash=
873 for ac_option
874 do
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
880 fi
881
882 case $ac_option in
883 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *) ac_optarg=yes ;;
885 esac
886
887 # Accept the important Cygnus configure options, so we can diagnose typos.
888
889 case $ac_dashdash$ac_option in
890 --)
891 ac_dashdash=yes ;;
892
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
897
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
902
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
909
910 --config-cache | -C)
911 cache_file=config.cache ;;
912
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
917
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
924
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
933 *"
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
940
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
945
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
950
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
966
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
975
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
979
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
986
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
991
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
997
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1004
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1009
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1014
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1021
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1026
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1033
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1038
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1042
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1046
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1050
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1059
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1064
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1071
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1078
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1095
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1100
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1105
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1109
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1115
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1126
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1131
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1136
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1143
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1148
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1151
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1154
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1170
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1186
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1190
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1197
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1204
1205 -*) as_fn_error "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information."
1207 ;;
1208
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1218
1219 *)
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1225 ;;
1226
1227 esac
1228 done
1229
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error "missing argument to $ac_option"
1233 fi
1234
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1241 fi
1242
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1248 do
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1263
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1270
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1276 If a cross compiler is detected then cross compile mode will be used." >&2
1277 elif test "x$build_alias" != "x$host_alias"; then
1278 cross_compiling=yes
1279 fi
1280 fi
1281
1282 ac_tool_prefix=
1283 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284
1285 test "$silent" = yes && exec 6>/dev/null
1286
1287
1288 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289 ac_ls_di=`ls -di .` &&
1290 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291 as_fn_error "working directory cannot be determined"
1292 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293 as_fn_error "pwd does not report name of working directory"
1294
1295
1296 # Find the source files, if location was not specified.
1297 if test -z "$srcdir"; then
1298 ac_srcdir_defaulted=yes
1299 # Try the directory containing this script, then the parent directory.
1300 ac_confdir=`$as_dirname -- "$as_myself" ||
1301 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302 X"$as_myself" : 'X\(//\)[^/]' \| \
1303 X"$as_myself" : 'X\(//\)$' \| \
1304 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305 $as_echo X"$as_myself" |
1306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)[^/].*/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\/\)$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\).*/{
1319 s//\1/
1320 q
1321 }
1322 s/.*/./; q'`
1323 srcdir=$ac_confdir
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325 srcdir=..
1326 fi
1327 else
1328 ac_srcdir_defaulted=no
1329 fi
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1333 fi
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1337 pwd)`
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1340 srcdir=.
1341 fi
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1345 case $srcdir in
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1347 esac
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1353 done
1354
1355 #
1356 # Report the --help message.
1357 #
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1361 cat <<_ACEOF
1362 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1363
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1365
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1368
1369 Defaults for the options are specified in brackets.
1370
1371 Configuration:
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print \`checking...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for \`--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1386 [PREFIX]
1387
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1392
1393 For better control, use the options below.
1394
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1415 _ACEOF
1416
1417 cat <<\_ACEOF
1418
1419 Program names:
1420 --program-prefix=PREFIX prepend PREFIX to installed program names
1421 --program-suffix=SUFFIX append SUFFIX to installed program names
1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423
1424 System types:
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 --target=TARGET configure for building compilers for TARGET [HOST]
1428 _ACEOF
1429 fi
1430
1431 if test -n "$ac_init_help"; then
1432 case $ac_init_help in
1433 short | recursive ) echo "Configuration of package-unused version-unused:";;
1434 esac
1435 cat <<\_ACEOF
1436
1437 Optional Features:
1438 --disable-option-checking ignore unrecognized --enable/--with options
1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1441 --enable-multilib build many library versions (default)
1442 --disable-dependency-tracking speeds up one-time build
1443 --enable-dependency-tracking do not reject slow dependency extractors
1444 --enable-maintainer-mode enable make rules and dependencies not useful
1445 (and sometimes confusing) to the casual installer
1446 --enable-shared[=PKGS] build shared libraries [default=yes]
1447 --enable-static[=PKGS] build static libraries [default=yes]
1448 --enable-fast-install[=PKGS]
1449 optimize for fast installation [default=yes]
1450 --disable-libtool-lock avoid locking (might break parallel builds)
1451 --enable-version-specific-runtime-libs
1452 Specify that runtime libraries should be installed
1453 in a compiler-specific directory
1454 --enable-sjlj-exceptions
1455 force use of builtin_setjmp for exceptions
1456
1457 Optional Packages:
1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1460 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1461 --with-pic try to use only PIC/non-PIC objects [default=use
1462 both]
1463 --without-libffi don't use libffi
1464 --with-system-libunwind use installed libunwind
1465
1466 Some influential environment variables:
1467 CC C compiler command
1468 CFLAGS C compiler flags
1469 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1470 nonstandard directory <lib dir>
1471 LIBS libraries to pass to the linker, e.g. -l<library>
1472 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1473 you have headers in a nonstandard directory <include dir>
1474 GOC Go compiler command
1475 GOCFLAGS Go compiler flags
1476 CPP C preprocessor
1477
1478 Use these variables to override the choices made by `configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to the package provider.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1532 echo &&
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1534 else
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1536 fi || ac_status=$?
1537 cd "$ac_pwd" || { ac_status=$?; break; }
1538 done
1539 fi
1540
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1543 cat <<\_ACEOF
1544 package-unused configure version-unused
1545 generated by GNU Autoconf 2.64
1546
1547 Copyright (C) 2009 Free Software Foundation, Inc.
1548 This configure script is free software; the Free Software Foundation
1549 gives unlimited permission to copy, distribute and modify it.
1550 _ACEOF
1551 exit
1552 fi
1553
1554 ## ------------------------ ##
1555 ## Autoconf initialization. ##
1556 ## ------------------------ ##
1557
1558 # ac_fn_c_try_compile LINENO
1559 # --------------------------
1560 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1561 ac_fn_c_try_compile ()
1562 {
1563 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1564 rm -f conftest.$ac_objext
1565 if { { ac_try="$ac_compile"
1566 case "(($ac_try" in
1567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1568 *) ac_try_echo=$ac_try;;
1569 esac
1570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1571 $as_echo "$ac_try_echo"; } >&5
1572 (eval "$ac_compile") 2>conftest.err
1573 ac_status=$?
1574 if test -s conftest.err; then
1575 grep -v '^ *+' conftest.err >conftest.er1
1576 cat conftest.er1 >&5
1577 mv -f conftest.er1 conftest.err
1578 fi
1579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1580 test $ac_status = 0; } && {
1581 test -z "$ac_c_werror_flag" ||
1582 test ! -s conftest.err
1583 } && test -s conftest.$ac_objext; then :
1584 ac_retval=0
1585 else
1586 $as_echo "$as_me: failed program was:" >&5
1587 sed 's/^/| /' conftest.$ac_ext >&5
1588
1589 ac_retval=1
1590 fi
1591 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1592 return $ac_retval
1593
1594 } # ac_fn_c_try_compile
1595
1596 # ac_fn_c_try_link LINENO
1597 # -----------------------
1598 # Try to link conftest.$ac_ext, and return whether this succeeded.
1599 ac_fn_c_try_link ()
1600 {
1601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1602 rm -f conftest.$ac_objext conftest$ac_exeext
1603 if { { ac_try="$ac_link"
1604 case "(($ac_try" in
1605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1606 *) ac_try_echo=$ac_try;;
1607 esac
1608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1609 $as_echo "$ac_try_echo"; } >&5
1610 (eval "$ac_link") 2>conftest.err
1611 ac_status=$?
1612 if test -s conftest.err; then
1613 grep -v '^ *+' conftest.err >conftest.er1
1614 cat conftest.er1 >&5
1615 mv -f conftest.er1 conftest.err
1616 fi
1617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1618 test $ac_status = 0; } && {
1619 test -z "$ac_c_werror_flag" ||
1620 test ! -s conftest.err
1621 } && test -s conftest$ac_exeext && {
1622 test "$cross_compiling" = yes ||
1623 $as_test_x conftest$ac_exeext
1624 }; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631 fi
1632 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1633 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1634 # interfere with the next link command; also delete a directory that is
1635 # left behind by Apple's compiler. We do this before executing the actions.
1636 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638 return $ac_retval
1639
1640 } # ac_fn_c_try_link
1641
1642 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists and can be compiled using the include files in
1645 # INCLUDES, setting the cache variable VAR accordingly.
1646 ac_fn_c_check_header_compile ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 $as_echo_n "checking for $2... " >&6; }
1651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1652 $as_echo_n "(cached) " >&6
1653 else
1654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1655 /* end confdefs.h. */
1656 $4
1657 #include <$2>
1658 _ACEOF
1659 if ac_fn_c_try_compile "$LINENO"; then :
1660 eval "$3=yes"
1661 else
1662 eval "$3=no"
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 fi
1666 eval ac_res=\$$3
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 $as_echo "$ac_res" >&6; }
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670
1671 } # ac_fn_c_check_header_compile
1672
1673 # ac_fn_c_try_cpp LINENO
1674 # ----------------------
1675 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_cpp ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 if { { ac_try="$ac_cpp conftest.$ac_ext"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 $as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } >/dev/null && {
1695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704 fi
1705 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1706 return $ac_retval
1707
1708 } # ac_fn_c_try_cpp
1709
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=$ac_status
1745 fi
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1748 return $ac_retval
1749
1750 } # ac_fn_c_try_run
1751
1752 # ac_fn_c_check_func LINENO FUNC VAR
1753 # ----------------------------------
1754 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1755 ac_fn_c_check_func ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 $as_echo_n "(cached) " >&6
1762 else
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1767 #define $2 innocuous_$2
1768
1769 /* System header to define __stub macros and hopefully few prototypes,
1770 which can conflict with char $2 (); below.
1771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1772 <limits.h> exists even on freestanding compilers. */
1773
1774 #ifdef __STDC__
1775 # include <limits.h>
1776 #else
1777 # include <assert.h>
1778 #endif
1779
1780 #undef $2
1781
1782 /* Override any GCC internal prototype to avoid an error.
1783 Use char because int might match the return type of a GCC
1784 builtin and then its argument prototype would still apply. */
1785 #ifdef __cplusplus
1786 extern "C"
1787 #endif
1788 char $2 ();
1789 /* The GNU C library defines this for functions which it implements
1790 to always fail with ENOSYS. Some functions are actually named
1791 something starting with __ and the normal name is an alias. */
1792 #if defined __stub_$2 || defined __stub___$2
1793 choke me
1794 #endif
1795
1796 int
1797 main ()
1798 {
1799 return $2 ();
1800 ;
1801 return 0;
1802 }
1803 _ACEOF
1804 if ac_fn_c_try_link "$LINENO"; then :
1805 eval "$3=yes"
1806 else
1807 eval "$3=no"
1808 fi
1809 rm -f core conftest.err conftest.$ac_objext \
1810 conftest$ac_exeext conftest.$ac_ext
1811 fi
1812 eval ac_res=\$$3
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1814 $as_echo "$ac_res" >&6; }
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816
1817 } # ac_fn_c_check_func
1818
1819 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1820 # -------------------------------------------------------
1821 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1822 # the include files in INCLUDES and setting the cache variable VAR
1823 # accordingly.
1824 ac_fn_c_check_header_mongrel ()
1825 {
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831 $as_echo_n "(cached) " >&6
1832 fi
1833 eval ac_res=\$$3
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836 else
1837 # Is the header compilable?
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1839 $as_echo_n "checking $2 usability... " >&6; }
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 $4
1843 #include <$2>
1844 _ACEOF
1845 if ac_fn_c_try_compile "$LINENO"; then :
1846 ac_header_compiler=yes
1847 else
1848 ac_header_compiler=no
1849 fi
1850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1852 $as_echo "$ac_header_compiler" >&6; }
1853
1854 # Is the header present?
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1856 $as_echo_n "checking $2 presence... " >&6; }
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_cpp "$LINENO"; then :
1862 ac_header_preproc=yes
1863 else
1864 ac_header_preproc=no
1865 fi
1866 rm -f conftest.err conftest.$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1868 $as_echo "$ac_header_preproc" >&6; }
1869
1870 # So? What about this header?
1871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1872 yes:no: )
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1874 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877 ;;
1878 no:yes:* )
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1880 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1882 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1884 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1886 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1888 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889 ;;
1890 esac
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 eval "$3=\$ac_header_compiler"
1897 fi
1898 eval ac_res=\$$3
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1900 $as_echo "$ac_res" >&6; }
1901 fi
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903
1904 } # ac_fn_c_check_header_mongrel
1905
1906 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1907 # -------------------------------------------
1908 # Tests whether TYPE exists after having included INCLUDES, setting cache
1909 # variable VAR accordingly.
1910 ac_fn_c_check_type ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 eval "$3=no"
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920 /* end confdefs.h. */
1921 $4
1922 int
1923 main ()
1924 {
1925 if (sizeof ($2))
1926 return 0;
1927 ;
1928 return 0;
1929 }
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1934 $4
1935 int
1936 main ()
1937 {
1938 if (sizeof (($2)))
1939 return 0;
1940 ;
1941 return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945
1946 else
1947 eval "$3=yes"
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1957
1958 } # ac_fn_c_check_type
1959
1960 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1961 # --------------------------------------------
1962 # Tries to find the compile-time value of EXPR in a program that includes
1963 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1964 # computed
1965 ac_fn_c_compute_int ()
1966 {
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if test "$cross_compiling" = yes; then
1969 # Depending upon the size, compute the lo and hi bounds.
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 $4
1973 int
1974 main ()
1975 {
1976 static int test_array [1 - 2 * !(($2) >= 0)];
1977 test_array [0] = 0
1978
1979 ;
1980 return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984 ac_lo=0 ac_mid=0
1985 while :; do
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 $4
1989 int
1990 main ()
1991 {
1992 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1993 test_array [0] = 0
1994
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 ac_hi=$ac_mid; break
2001 else
2002 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2003 if test $ac_lo -le $ac_mid; then
2004 ac_lo= ac_hi=
2005 break
2006 fi
2007 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2008 fi
2009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 done
2011 else
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2014 $4
2015 int
2016 main ()
2017 {
2018 static int test_array [1 - 2 * !(($2) < 0)];
2019 test_array [0] = 0
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_hi=-1 ac_mid=-1
2027 while :; do
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main ()
2033 {
2034 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2035 test_array [0] = 0
2036
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 ac_lo=$ac_mid; break
2043 else
2044 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2045 if test $ac_mid -le $ac_hi; then
2046 ac_lo= ac_hi=
2047 break
2048 fi
2049 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 done
2053 else
2054 ac_lo= ac_hi=
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 # Binary search between lo and hi bounds.
2060 while test "x$ac_lo" != "x$ac_hi"; do
2061 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 $4
2065 int
2066 main ()
2067 {
2068 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2069 test_array [0] = 0
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_hi=$ac_mid
2077 else
2078 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2079 fi
2080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 done
2082 case $ac_lo in #((
2083 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2084 '') ac_retval=1 ;;
2085 esac
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 static long int longval () { return $2; }
2091 static unsigned long int ulongval () { return $2; }
2092 #include <stdio.h>
2093 #include <stdlib.h>
2094 int
2095 main ()
2096 {
2097
2098 FILE *f = fopen ("conftest.val", "w");
2099 if (! f)
2100 return 1;
2101 if (($2) < 0)
2102 {
2103 long int i = longval ();
2104 if (i != ($2))
2105 return 1;
2106 fprintf (f, "%ld", i);
2107 }
2108 else
2109 {
2110 unsigned long int i = ulongval ();
2111 if (i != ($2))
2112 return 1;
2113 fprintf (f, "%lu", i);
2114 }
2115 /* Do not output a trailing newline, as this causes \r\n confusion
2116 on some platforms. */
2117 return ferror (f) || fclose (f) != 0;
2118
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_run "$LINENO"; then :
2124 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2125 else
2126 ac_retval=1
2127 fi
2128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2129 conftest.$ac_objext conftest.beam conftest.$ac_ext
2130 rm -f conftest.val
2131
2132 fi
2133 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2134 return $ac_retval
2135
2136 } # ac_fn_c_compute_int
2137 cat >config.log <<_ACEOF
2138 This file contains any messages produced by compilers while
2139 running configure, to aid debugging if configure makes a mistake.
2140
2141 It was created by package-unused $as_me version-unused, which was
2142 generated by GNU Autoconf 2.64. Invocation command line was
2143
2144 $ $0 $@
2145
2146 _ACEOF
2147 exec 5>>config.log
2148 {
2149 cat <<_ASUNAME
2150 ## --------- ##
2151 ## Platform. ##
2152 ## --------- ##
2153
2154 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2155 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2156 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2157 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2158 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2159
2160 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2161 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2162
2163 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2164 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2165 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2166 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2167 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2168 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2169 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2170
2171 _ASUNAME
2172
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2175 do
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 $as_echo "PATH: $as_dir"
2179 done
2180 IFS=$as_save_IFS
2181
2182 } >&5
2183
2184 cat >&5 <<_ACEOF
2185
2186
2187 ## ----------- ##
2188 ## Core tests. ##
2189 ## ----------- ##
2190
2191 _ACEOF
2192
2193
2194 # Keep a trace of the command line.
2195 # Strip out --no-create and --no-recursion so they do not pile up.
2196 # Strip out --silent because we don't want to record it for future runs.
2197 # Also quote any args containing shell meta-characters.
2198 # Make two passes to allow for proper duplicate-argument suppression.
2199 ac_configure_args=
2200 ac_configure_args0=
2201 ac_configure_args1=
2202 ac_must_keep_next=false
2203 for ac_pass in 1 2
2204 do
2205 for ac_arg
2206 do
2207 case $ac_arg in
2208 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2210 | -silent | --silent | --silen | --sile | --sil)
2211 continue ;;
2212 *\'*)
2213 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 esac
2215 case $ac_pass in
2216 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2217 2)
2218 as_fn_append ac_configure_args1 " '$ac_arg'"
2219 if test $ac_must_keep_next = true; then
2220 ac_must_keep_next=false # Got value, back to normal.
2221 else
2222 case $ac_arg in
2223 *=* | --config-cache | -C | -disable-* | --disable-* \
2224 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2225 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2226 | -with-* | --with-* | -without-* | --without-* | --x)
2227 case "$ac_configure_args0 " in
2228 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2229 esac
2230 ;;
2231 -* ) ac_must_keep_next=true ;;
2232 esac
2233 fi
2234 as_fn_append ac_configure_args " '$ac_arg'"
2235 ;;
2236 esac
2237 done
2238 done
2239 { ac_configure_args0=; unset ac_configure_args0;}
2240 { ac_configure_args1=; unset ac_configure_args1;}
2241
2242 # When interrupted or exit'd, cleanup temporary files, and complete
2243 # config.log. We remove comments because anyway the quotes in there
2244 # would cause problems or look ugly.
2245 # WARNING: Use '\'' to represent an apostrophe within the trap.
2246 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2247 trap 'exit_status=$?
2248 # Save into config.log some information that might help in debugging.
2249 {
2250 echo
2251
2252 cat <<\_ASBOX
2253 ## ---------------- ##
2254 ## Cache variables. ##
2255 ## ---------------- ##
2256 _ASBOX
2257 echo
2258 # The following way of writing the cache mishandles newlines in values,
2259 (
2260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2261 eval ac_val=\$$ac_var
2262 case $ac_val in #(
2263 *${as_nl}*)
2264 case $ac_var in #(
2265 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2266 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2267 esac
2268 case $ac_var in #(
2269 _ | IFS | as_nl) ;; #(
2270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2271 *) { eval $ac_var=; unset $ac_var;} ;;
2272 esac ;;
2273 esac
2274 done
2275 (set) 2>&1 |
2276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2277 *${as_nl}ac_space=\ *)
2278 sed -n \
2279 "s/'\''/'\''\\\\'\'''\''/g;
2280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2281 ;; #(
2282 *)
2283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2284 ;;
2285 esac |
2286 sort
2287 )
2288 echo
2289
2290 cat <<\_ASBOX
2291 ## ----------------- ##
2292 ## Output variables. ##
2293 ## ----------------- ##
2294 _ASBOX
2295 echo
2296 for ac_var in $ac_subst_vars
2297 do
2298 eval ac_val=\$$ac_var
2299 case $ac_val in
2300 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301 esac
2302 $as_echo "$ac_var='\''$ac_val'\''"
2303 done | sort
2304 echo
2305
2306 if test -n "$ac_subst_files"; then
2307 cat <<\_ASBOX
2308 ## ------------------- ##
2309 ## File substitutions. ##
2310 ## ------------------- ##
2311 _ASBOX
2312 echo
2313 for ac_var in $ac_subst_files
2314 do
2315 eval ac_val=\$$ac_var
2316 case $ac_val in
2317 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 esac
2319 $as_echo "$ac_var='\''$ac_val'\''"
2320 done | sort
2321 echo
2322 fi
2323
2324 if test -s confdefs.h; then
2325 cat <<\_ASBOX
2326 ## ----------- ##
2327 ## confdefs.h. ##
2328 ## ----------- ##
2329 _ASBOX
2330 echo
2331 cat confdefs.h
2332 echo
2333 fi
2334 test "$ac_signal" != 0 &&
2335 $as_echo "$as_me: caught signal $ac_signal"
2336 $as_echo "$as_me: exit $exit_status"
2337 } >&5
2338 rm -f core *.core core.conftest.* &&
2339 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2340 exit $exit_status
2341 ' 0
2342 for ac_signal in 1 2 13 15; do
2343 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2344 done
2345 ac_signal=0
2346
2347 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2348 rm -f -r conftest* confdefs.h
2349
2350 $as_echo "/* confdefs.h */" > confdefs.h
2351
2352 # Predefined preprocessor variables.
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_NAME "$PACKAGE_NAME"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2360 _ACEOF
2361
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2364 _ACEOF
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_STRING "$PACKAGE_STRING"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2372 _ACEOF
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_URL "$PACKAGE_URL"
2376 _ACEOF
2377
2378
2379 # Let the site file select an alternate cache file if it wants to.
2380 # Prefer an explicitly selected file to automatically selected ones.
2381 ac_site_file1=NONE
2382 ac_site_file2=NONE
2383 if test -n "$CONFIG_SITE"; then
2384 ac_site_file1=$CONFIG_SITE
2385 elif test "x$prefix" != xNONE; then
2386 ac_site_file1=$prefix/share/config.site
2387 ac_site_file2=$prefix/etc/config.site
2388 else
2389 ac_site_file1=$ac_default_prefix/share/config.site
2390 ac_site_file2=$ac_default_prefix/etc/config.site
2391 fi
2392 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2393 do
2394 test "x$ac_site_file" = xNONE && continue
2395 if test -r "$ac_site_file"; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2397 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2398 sed 's/^/| /' "$ac_site_file" >&5
2399 . "$ac_site_file"
2400 fi
2401 done
2402
2403 if test -r "$cache_file"; then
2404 # Some versions of bash will fail to source /dev/null (special
2405 # files actually), so we avoid doing that.
2406 if test -f "$cache_file"; then
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2408 $as_echo "$as_me: loading cache $cache_file" >&6;}
2409 case $cache_file in
2410 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2411 *) . "./$cache_file";;
2412 esac
2413 fi
2414 else
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2416 $as_echo "$as_me: creating cache $cache_file" >&6;}
2417 >$cache_file
2418 fi
2419
2420 # Check that the precious variables saved in the cache have kept the same
2421 # value.
2422 ac_cache_corrupted=false
2423 for ac_var in $ac_precious_vars; do
2424 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2425 eval ac_new_set=\$ac_env_${ac_var}_set
2426 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2427 eval ac_new_val=\$ac_env_${ac_var}_value
2428 case $ac_old_set,$ac_new_set in
2429 set,)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2431 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2432 ac_cache_corrupted=: ;;
2433 ,set)
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2435 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2436 ac_cache_corrupted=: ;;
2437 ,);;
2438 *)
2439 if test "x$ac_old_val" != "x$ac_new_val"; then
2440 # differences in whitespace do not lead to failure.
2441 ac_old_val_w=`echo x $ac_old_val`
2442 ac_new_val_w=`echo x $ac_new_val`
2443 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2445 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2446 ac_cache_corrupted=:
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2449 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2450 eval $ac_var=\$ac_old_val
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2453 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2455 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2456 fi;;
2457 esac
2458 # Pass precious variables to config.status.
2459 if test "$ac_new_set" = set; then
2460 case $ac_new_val in
2461 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2462 *) ac_arg=$ac_var=$ac_new_val ;;
2463 esac
2464 case " $ac_configure_args " in
2465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2466 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2467 esac
2468 fi
2469 done
2470 if $ac_cache_corrupted; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2474 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2475 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2476 fi
2477 ## -------------------- ##
2478 ## Main body of script. ##
2479 ## -------------------- ##
2480
2481 ac_ext=c
2482 ac_cpp='$CPP $CPPFLAGS'
2483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
2487
2488
2489
2490
2491
2492 ac_config_headers="$ac_config_headers config.h"
2493
2494
2495 libtool_VERSION=1:0:0
2496
2497
2498 # Default to --enable-multilib
2499 # Check whether --enable-multilib was given.
2500 if test "${enable_multilib+set}" = set; then :
2501 enableval=$enable_multilib; case "$enableval" in
2502 yes) multilib=yes ;;
2503 no) multilib=no ;;
2504 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2505 esac
2506 else
2507 multilib=yes
2508 fi
2509
2510
2511 # We may get other options which we leave undocumented:
2512 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2513 # See config-ml.in if you want the gory details.
2514
2515 if test "$srcdir" = "."; then
2516 if test "$with_target_subdir" != "."; then
2517 multi_basedir="$srcdir/$with_multisrctop../.."
2518 else
2519 multi_basedir="$srcdir/$with_multisrctop.."
2520 fi
2521 else
2522 multi_basedir="$srcdir/.."
2523 fi
2524
2525
2526 # Even if the default multilib is not a cross compilation,
2527 # it may be that some of the other multilibs are.
2528 if test $cross_compiling = no && test $multilib = yes \
2529 && test "x${with_multisubdir}" != x ; then
2530 cross_compiling=maybe
2531 fi
2532
2533 ac_config_commands="$ac_config_commands default-1"
2534
2535
2536 ac_aux_dir=
2537 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2538 for ac_t in install-sh install.sh shtool; do
2539 if test -f "$ac_dir/$ac_t"; then
2540 ac_aux_dir=$ac_dir
2541 ac_install_sh="$ac_aux_dir/$ac_t -c"
2542 break 2
2543 fi
2544 done
2545 done
2546 if test -z "$ac_aux_dir"; then
2547 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2548 fi
2549
2550 # These three variables are undocumented and unsupported,
2551 # and are intended to be withdrawn in a future Autoconf release.
2552 # They can cause serious problems if a builder's source tree is in a directory
2553 # whose full name contains unusual characters.
2554 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2555 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2556 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2557
2558
2559 # Make sure we can run config.sub.
2560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2561 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2564 $as_echo_n "checking build system type... " >&6; }
2565 if test "${ac_cv_build+set}" = set; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 ac_build_alias=$build_alias
2569 test "x$ac_build_alias" = x &&
2570 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2571 test "x$ac_build_alias" = x &&
2572 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2574 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2575
2576 fi
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2578 $as_echo "$ac_cv_build" >&6; }
2579 case $ac_cv_build in
2580 *-*-*) ;;
2581 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2582 esac
2583 build=$ac_cv_build
2584 ac_save_IFS=$IFS; IFS='-'
2585 set x $ac_cv_build
2586 shift
2587 build_cpu=$1
2588 build_vendor=$2
2589 shift; shift
2590 # Remember, the first character of IFS is used to create $*,
2591 # except with old shells:
2592 build_os=$*
2593 IFS=$ac_save_IFS
2594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2595
2596
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2598 $as_echo_n "checking host system type... " >&6; }
2599 if test "${ac_cv_host+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
2601 else
2602 if test "x$host_alias" = x; then
2603 ac_cv_host=$ac_cv_build
2604 else
2605 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2606 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2607 fi
2608
2609 fi
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2611 $as_echo "$ac_cv_host" >&6; }
2612 case $ac_cv_host in
2613 *-*-*) ;;
2614 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2615 esac
2616 host=$ac_cv_host
2617 ac_save_IFS=$IFS; IFS='-'
2618 set x $ac_cv_host
2619 shift
2620 host_cpu=$1
2621 host_vendor=$2
2622 shift; shift
2623 # Remember, the first character of IFS is used to create $*,
2624 # except with old shells:
2625 host_os=$*
2626 IFS=$ac_save_IFS
2627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2628
2629
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2631 $as_echo_n "checking target system type... " >&6; }
2632 if test "${ac_cv_target+set}" = set; then :
2633 $as_echo_n "(cached) " >&6
2634 else
2635 if test "x$target_alias" = x; then
2636 ac_cv_target=$ac_cv_host
2637 else
2638 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2639 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2640 fi
2641
2642 fi
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2644 $as_echo "$ac_cv_target" >&6; }
2645 case $ac_cv_target in
2646 *-*-*) ;;
2647 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2648 esac
2649 target=$ac_cv_target
2650 ac_save_IFS=$IFS; IFS='-'
2651 set x $ac_cv_target
2652 shift
2653 target_cpu=$1
2654 target_vendor=$2
2655 shift; shift
2656 # Remember, the first character of IFS is used to create $*,
2657 # except with old shells:
2658 target_os=$*
2659 IFS=$ac_save_IFS
2660 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2661
2662
2663 # The aliases save the names the user supplied, while $host etc.
2664 # will get canonicalized.
2665 test -n "$target_alias" &&
2666 test "$program_prefix$program_suffix$program_transform_name" = \
2667 NONENONEs,x,x, &&
2668 program_prefix=${target_alias}-
2669
2670 target_alias=${target_alias-$host_alias}
2671
2672 am__api_version='1.11'
2673
2674 # Find a good install program. We prefer a C program (faster),
2675 # so one script is as good as another. But avoid the broken or
2676 # incompatible versions:
2677 # SysV /etc/install, /usr/sbin/install
2678 # SunOS /usr/etc/install
2679 # IRIX /sbin/install
2680 # AIX /bin/install
2681 # AmigaOS /C/install, which installs bootblocks on floppy discs
2682 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2683 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2684 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2685 # OS/2's system install, which has a completely different semantic
2686 # ./install, which can be erroneously created by make from ./install.sh.
2687 # Reject install programs that cannot install multiple files.
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2689 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2690 if test -z "$INSTALL"; then
2691 if test "${ac_cv_path_install+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 # Account for people who put trailing slashes in PATH elements.
2700 case $as_dir/ in #((
2701 ./ | .// | /[cC]/* | \
2702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2704 /usr/ucb/* ) ;;
2705 *)
2706 # OSF1 and SCO ODT 3.0 have their own names for install.
2707 # Don't use installbsd from OSF since it installs stuff as root
2708 # by default.
2709 for ac_prog in ginstall scoinst install; do
2710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2712 if test $ac_prog = install &&
2713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2714 # AIX install. It has an incompatible calling convention.
2715 :
2716 elif test $ac_prog = install &&
2717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2718 # program-specific install script used by HP pwplus--don't use.
2719 :
2720 else
2721 rm -rf conftest.one conftest.two conftest.dir
2722 echo one > conftest.one
2723 echo two > conftest.two
2724 mkdir conftest.dir
2725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2726 test -s conftest.one && test -s conftest.two &&
2727 test -s conftest.dir/conftest.one &&
2728 test -s conftest.dir/conftest.two
2729 then
2730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2731 break 3
2732 fi
2733 fi
2734 fi
2735 done
2736 done
2737 ;;
2738 esac
2739
2740 done
2741 IFS=$as_save_IFS
2742
2743 rm -rf conftest.one conftest.two conftest.dir
2744
2745 fi
2746 if test "${ac_cv_path_install+set}" = set; then
2747 INSTALL=$ac_cv_path_install
2748 else
2749 # As a last resort, use the slow shell script. Don't cache a
2750 # value for INSTALL within a source directory, because that will
2751 # break other packages using the cache if that directory is
2752 # removed, or if the value is a relative name.
2753 INSTALL=$ac_install_sh
2754 fi
2755 fi
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2757 $as_echo "$INSTALL" >&6; }
2758
2759 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2760 # It thinks the first close brace ends the variable substitution.
2761 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2762
2763 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2764
2765 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2768 $as_echo_n "checking whether build environment is sane... " >&6; }
2769 # Just in case
2770 sleep 1
2771 echo timestamp > conftest.file
2772 # Reject unsafe characters in $srcdir or the absolute working directory
2773 # name. Accept space and tab only in the latter.
2774 am_lf='
2775 '
2776 case `pwd` in
2777 *[\\\"\#\$\&\'\`$am_lf]*)
2778 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2779 esac
2780 case $srcdir in
2781 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2782 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2783 esac
2784
2785 # Do `set' in a subshell so we don't clobber the current shell's
2786 # arguments. Must try -L first in case configure is actually a
2787 # symlink; some systems play weird games with the mod time of symlinks
2788 # (eg FreeBSD returns the mod time of the symlink's containing
2789 # directory).
2790 if (
2791 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2792 if test "$*" = "X"; then
2793 # -L didn't work.
2794 set X `ls -t "$srcdir/configure" conftest.file`
2795 fi
2796 rm -f conftest.file
2797 if test "$*" != "X $srcdir/configure conftest.file" \
2798 && test "$*" != "X conftest.file $srcdir/configure"; then
2799
2800 # If neither matched, then we have a broken ls. This can happen
2801 # if, for instance, CONFIG_SHELL is bash and it inherits a
2802 # broken ls alias from the environment. This has actually
2803 # happened. Such a system could not be considered "sane".
2804 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2805 alias in your environment" "$LINENO" 5
2806 fi
2807
2808 test "$2" = conftest.file
2809 )
2810 then
2811 # Ok.
2812 :
2813 else
2814 as_fn_error "newly created file is older than distributed files!
2815 Check your system clock" "$LINENO" 5
2816 fi
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2818 $as_echo "yes" >&6; }
2819 test "$program_prefix" != NONE &&
2820 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2821 # Use a double $ so make ignores it.
2822 test "$program_suffix" != NONE &&
2823 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2824 # Double any \ or $.
2825 # By default was `s,x,x', remove it if useless.
2826 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2827 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2828
2829 # expand $ac_aux_dir to an absolute path
2830 am_aux_dir=`cd $ac_aux_dir && pwd`
2831
2832 if test x"${MISSING+set}" != xset; then
2833 case $am_aux_dir in
2834 *\ * | *\ *)
2835 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2836 *)
2837 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2838 esac
2839 fi
2840 # Use eval to expand $SHELL
2841 if eval "$MISSING --run true"; then
2842 am_missing_run="$MISSING --run "
2843 else
2844 am_missing_run=
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2846 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2847 fi
2848
2849 if test x"${install_sh}" != xset; then
2850 case $am_aux_dir in
2851 *\ * | *\ *)
2852 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2853 *)
2854 install_sh="\${SHELL} $am_aux_dir/install-sh"
2855 esac
2856 fi
2857
2858 # Installed binaries are usually stripped using `strip' when the user
2859 # run `make install-strip'. However `strip' might not be the right
2860 # tool to use in cross-compilation environments, therefore Automake
2861 # will honor the `STRIP' environment variable to overrule this program.
2862 if test "$cross_compiling" != no; then
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}strip; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_STRIP+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$STRIP"; then
2872 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 STRIP=$ac_cv_prog_STRIP
2892 if test -n "$STRIP"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2894 $as_echo "$STRIP" >&6; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900
2901 fi
2902 if test -z "$ac_cv_prog_STRIP"; then
2903 ac_ct_STRIP=$STRIP
2904 # Extract the first word of "strip", so it can be a program name with args.
2905 set dummy strip; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test -n "$ac_ct_STRIP"; then
2912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_ac_ct_STRIP="strip"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2932 if test -n "$ac_ct_STRIP"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2934 $as_echo "$ac_ct_STRIP" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 fi
2939
2940 if test "x$ac_ct_STRIP" = x; then
2941 STRIP=":"
2942 else
2943 case $cross_compiling:$ac_tool_warned in
2944 yes:)
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2947 ac_tool_warned=yes ;;
2948 esac
2949 STRIP=$ac_ct_STRIP
2950 fi
2951 else
2952 STRIP="$ac_cv_prog_STRIP"
2953 fi
2954
2955 fi
2956 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2957
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2959 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2960 if test -z "$MKDIR_P"; then
2961 if test "${ac_cv_path_mkdir+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2966 do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_prog in mkdir gmkdir; do
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2972 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2973 'mkdir (GNU coreutils) '* | \
2974 'mkdir (coreutils) '* | \
2975 'mkdir (fileutils) '4.1*)
2976 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2977 break 3;;
2978 esac
2979 done
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985
2986 if test "${ac_cv_path_mkdir+set}" = set; then
2987 MKDIR_P="$ac_cv_path_mkdir -p"
2988 else
2989 # As a last resort, use the slow shell script. Don't cache a
2990 # value for MKDIR_P within a source directory, because that will
2991 # break other packages using the cache if that directory is
2992 # removed, or if the value is a relative name.
2993 test -d ./--version && rmdir ./--version
2994 MKDIR_P="$ac_install_sh -d"
2995 fi
2996 fi
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2998 $as_echo "$MKDIR_P" >&6; }
2999
3000 mkdir_p="$MKDIR_P"
3001 case $mkdir_p in
3002 [\\/$]* | ?:[\\/]*) ;;
3003 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3004 esac
3005
3006 for ac_prog in gawk mawk nawk awk
3007 do
3008 # Extract the first word of "$ac_prog", so it can be a program name with args.
3009 set dummy $ac_prog; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_AWK+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$AWK"; then
3016 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 ac_cv_prog_AWK="$ac_prog"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 AWK=$ac_cv_prog_AWK
3036 if test -n "$AWK"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3038 $as_echo "$AWK" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 test -n "$AWK" && break
3046 done
3047
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3049 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3050 set x ${MAKE-make}
3051 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3052 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 cat >conftest.make <<\_ACEOF
3056 SHELL = /bin/sh
3057 all:
3058 @echo '@@@%%%=$(MAKE)=@@@%%%'
3059 _ACEOF
3060 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3061 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3062 *@@@%%%=?*=@@@%%%*)
3063 eval ac_cv_prog_make_${ac_make}_set=yes;;
3064 *)
3065 eval ac_cv_prog_make_${ac_make}_set=no;;
3066 esac
3067 rm -f conftest.make
3068 fi
3069 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3071 $as_echo "yes" >&6; }
3072 SET_MAKE=
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 SET_MAKE="MAKE=${MAKE-make}"
3077 fi
3078
3079 rm -rf .tst 2>/dev/null
3080 mkdir .tst 2>/dev/null
3081 if test -d .tst; then
3082 am__leading_dot=.
3083 else
3084 am__leading_dot=_
3085 fi
3086 rmdir .tst 2>/dev/null
3087
3088 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3089 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3090 # is not polluted with repeated "-I."
3091 am__isrc=' -I$(srcdir)'
3092 # test to see if srcdir already configured
3093 if test -f $srcdir/config.status; then
3094 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3095 fi
3096 fi
3097
3098 # test whether we have cygpath
3099 if test -z "$CYGPATH_W"; then
3100 if (cygpath --version) >/dev/null 2>/dev/null; then
3101 CYGPATH_W='cygpath -w'
3102 else
3103 CYGPATH_W=echo
3104 fi
3105 fi
3106
3107
3108 # Define the identity of the package.
3109 PACKAGE='libgo'
3110 VERSION='version-unused'
3111
3112
3113 # Some tools Automake needs.
3114
3115 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3116
3117
3118 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3119
3120
3121 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3122
3123
3124 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3125
3126
3127 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3128
3129 # We need awk for the "check" target. The system "awk" is bad on
3130 # some platforms.
3131 # Always define AMTAR for backward compatibility.
3132
3133 AMTAR=${AMTAR-"${am_missing_run}tar"}
3134
3135 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146 ac_ext=c
3147 ac_cpp='$CPP $CPPFLAGS'
3148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3151 if test -n "$ac_tool_prefix"; then
3152 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3153 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3155 $as_echo_n "checking for $ac_word... " >&6; }
3156 if test "${ac_cv_prog_CC+set}" = set; then :
3157 $as_echo_n "(cached) " >&6
3158 else
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165 IFS=$as_save_IFS
3166 test -z "$as_dir" && as_dir=.
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171 break 2
3172 fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 CC=$ac_cv_prog_CC
3180 if test -n "$CC"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3182 $as_echo "$CC" >&6; }
3183 else
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185 $as_echo "no" >&6; }
3186 fi
3187
3188
3189 fi
3190 if test -z "$ac_cv_prog_CC"; then
3191 ac_ct_CC=$CC
3192 # Extract the first word of "gcc", so it can be a program name with args.
3193 set dummy gcc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 if test -n "$ac_ct_CC"; then
3200 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205 IFS=$as_save_IFS
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_ac_ct_CC="gcc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 break 2
3212 fi
3213 done
3214 done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3220 if test -n "$ac_ct_CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3222 $as_echo "$ac_ct_CC" >&6; }
3223 else
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228 if test "x$ac_ct_CC" = x; then
3229 CC=""
3230 else
3231 case $cross_compiling:$ac_tool_warned in
3232 yes:)
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3235 ac_tool_warned=yes ;;
3236 esac
3237 CC=$ac_ct_CC
3238 fi
3239 else
3240 CC="$ac_cv_prog_CC"
3241 fi
3242
3243 if test -z "$CC"; then
3244 if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3246 set dummy ${ac_tool_prefix}cc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_CC="${ac_tool_prefix}cc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 $as_echo "$CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281
3282 fi
3283 fi
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if test "${ac_cv_prog_CC+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 ac_prog_rejected=no
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 test -z "$as_dir" && as_dir=.
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3304 ac_prog_rejected=yes
3305 continue
3306 fi
3307 ac_cv_prog_CC="cc"
3308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 if test $ac_prog_rejected = yes; then
3316 # We found a bogon in the path, so make sure we never use it.
3317 set dummy $ac_cv_prog_CC
3318 shift
3319 if test $# != 0; then
3320 # We chose a different compiler from the bogus one.
3321 # However, it has the same basename, so the bogon will be chosen
3322 # first if we set CC to just the basename; use the full file name.
3323 shift
3324 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3325 fi
3326 fi
3327 fi
3328 fi
3329 CC=$ac_cv_prog_CC
3330 if test -n "$CC"; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3332 $as_echo "$CC" >&6; }
3333 else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335 $as_echo "no" >&6; }
3336 fi
3337
3338
3339 fi
3340 if test -z "$CC"; then
3341 if test -n "$ac_tool_prefix"; then
3342 for ac_prog in cl.exe
3343 do
3344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3345 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if test "${ac_cv_prog_CC+set}" = set; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3361 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380
3381 test -n "$CC" && break
3382 done
3383 fi
3384 if test -z "$CC"; then
3385 ac_ct_CC=$CC
3386 for ac_prog in cl.exe
3387 do
3388 # Extract the first word of "$ac_prog", so it can be a program name with args.
3389 set dummy $ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$ac_ct_CC"; then
3396 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_ac_ct_CC="$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409 done
3410 done
3411 IFS=$as_save_IFS
3412
3413 fi
3414 fi
3415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3416 if test -n "$ac_ct_CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3418 $as_echo "$ac_ct_CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 fi
3423
3424
3425 test -n "$ac_ct_CC" && break
3426 done
3427
3428 if test "x$ac_ct_CC" = x; then
3429 CC=""
3430 else
3431 case $cross_compiling:$ac_tool_warned in
3432 yes:)
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3435 ac_tool_warned=yes ;;
3436 esac
3437 CC=$ac_ct_CC
3438 fi
3439 fi
3440
3441 fi
3442
3443
3444 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error "no acceptable C compiler found in \$PATH
3447 See \`config.log' for more details." "$LINENO" 5; }
3448
3449 # Provide some information about the compiler.
3450 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3451 set X $ac_compile
3452 ac_compiler=$2
3453 for ac_option in --version -v -V -qversion; do
3454 { { ac_try="$ac_compiler $ac_option >&5"
3455 case "(($ac_try" in
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3462 ac_status=$?
3463 if test -s conftest.err; then
3464 sed '10a\
3465 ... rest of stderr output deleted ...
3466 10q' conftest.err >conftest.er1
3467 cat conftest.er1 >&5
3468 rm -f conftest.er1 conftest.err
3469 fi
3470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3471 test $ac_status = 0; }
3472 done
3473
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476
3477 int
3478 main ()
3479 {
3480
3481 ;
3482 return 0;
3483 }
3484 _ACEOF
3485 ac_clean_files_save=$ac_clean_files
3486 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3487 # Try to create an executable without -o first, disregard a.out.
3488 # It will help us diagnose broken compilers, and finding out an intuition
3489 # of exeext.
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491 $as_echo_n "checking for C compiler default output file name... " >&6; }
3492 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3493
3494 # The possible output files:
3495 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3496
3497 ac_rmfiles=
3498 for ac_file in $ac_files
3499 do
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3502 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3503 esac
3504 done
3505 rm -f $ac_rmfiles
3506
3507 if { { ac_try="$ac_link_default"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_link_default") 2>&5
3515 ac_status=$?
3516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517 test $ac_status = 0; }; then :
3518 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3519 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3520 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3521 # so that the user can short-circuit this test for compilers unknown to
3522 # Autoconf.
3523 for ac_file in $ac_files ''
3524 do
3525 test -f "$ac_file" || continue
3526 case $ac_file in
3527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3528 ;;
3529 [ab].out )
3530 # We found the default executable, but exeext='' is most
3531 # certainly right.
3532 break;;
3533 *.* )
3534 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3535 then :; else
3536 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 fi
3538 # We set ac_cv_exeext here because the later test for it is not
3539 # safe: cross compilers may not add the suffix if given an `-o'
3540 # argument, so we may need to know it at that point already.
3541 # Even if this section looks crufty: it has the advantage of
3542 # actually working.
3543 break;;
3544 * )
3545 break;;
3546 esac
3547 done
3548 test "$ac_cv_exeext" = no && ac_cv_exeext=
3549
3550 else
3551 ac_file=''
3552 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3554 $as_echo "$ac_file" >&6; }
3555 if test -z "$ac_file"; then :
3556 $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 { as_fn_set_status 77
3562 as_fn_error "C compiler cannot create executables
3563 See \`config.log' for more details." "$LINENO" 5; }; }
3564 fi
3565 ac_exeext=$ac_cv_exeext
3566
3567 # Check that the compiler produces executables we can run. If not, either
3568 # the compiler is broken, or we cross compile.
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3570 $as_echo_n "checking whether the C compiler works... " >&6; }
3571 # If not cross compiling, check that we can run a simple program.
3572 if test "$cross_compiling" != yes; then
3573 if { ac_try='./$ac_file'
3574 { { case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580 (eval "$ac_try") 2>&5
3581 ac_status=$?
3582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583 test $ac_status = 0; }; }; then
3584 cross_compiling=no
3585 else
3586 if test "$cross_compiling" = maybe; then
3587 cross_compiling=yes
3588 else
3589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error "cannot run C compiled programs.
3592 If you meant to cross compile, use \`--host'.
3593 See \`config.log' for more details." "$LINENO" 5; }
3594 fi
3595 fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3598 $as_echo "yes" >&6; }
3599
3600 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3601 ac_clean_files=$ac_clean_files_save
3602 # Check that the compiler produces executables we can run. If not, either
3603 # the compiler is broken, or we cross compile.
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3605 $as_echo_n "checking whether we are cross compiling... " >&6; }
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3607 $as_echo "$cross_compiling" >&6; }
3608
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3610 $as_echo_n "checking for suffix of executables... " >&6; }
3611 if { { ac_try="$ac_link"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; then :
3622 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3623 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3624 # work properly (i.e., refer to `conftest.exe'), while it won't with
3625 # `rm'.
3626 for ac_file in conftest.exe conftest conftest.*; do
3627 test -f "$ac_file" || continue
3628 case $ac_file in
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631 break;;
3632 * ) break;;
3633 esac
3634 done
3635 else
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error "cannot compute suffix of executables: cannot compile and link
3639 See \`config.log' for more details." "$LINENO" 5; }
3640 fi
3641 rm -f conftest$ac_cv_exeext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3643 $as_echo "$ac_cv_exeext" >&6; }
3644
3645 rm -f conftest.$ac_ext
3646 EXEEXT=$ac_cv_exeext
3647 ac_exeext=$EXEEXT
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3649 $as_echo_n "checking for suffix of object files... " >&6; }
3650 if test "${ac_cv_objext+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655
3656 int
3657 main ()
3658 {
3659
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.o conftest.obj
3665 if { { ac_try="$ac_compile"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compile") 2>&5
3673 ac_status=$?
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }; then :
3676 for ac_file in conftest.o conftest.obj conftest.*; do
3677 test -f "$ac_file" || continue;
3678 case $ac_file in
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3681 break;;
3682 esac
3683 done
3684 else
3685 $as_echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error "cannot compute suffix of object files: cannot compile
3691 See \`config.log' for more details." "$LINENO" 5; }
3692 fi
3693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3696 $as_echo "$ac_cv_objext" >&6; }
3697 OBJEXT=$ac_cv_objext
3698 ac_objext=$OBJEXT
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3701 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706
3707 int
3708 main ()
3709 {
3710 #ifndef __GNUC__
3711 choke me
3712 #endif
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_compiler_gnu=yes
3720 else
3721 ac_compiler_gnu=no
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3725
3726 fi
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3728 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3729 if test $ac_compiler_gnu = yes; then
3730 GCC=yes
3731 else
3732 GCC=
3733 fi
3734 ac_test_CFLAGS=${CFLAGS+set}
3735 ac_save_CFLAGS=$CFLAGS
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3737 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3738 if test "${ac_cv_prog_cc_g+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 ac_save_c_werror_flag=$ac_c_werror_flag
3742 ac_c_werror_flag=yes
3743 ac_cv_prog_cc_g=no
3744 CFLAGS="-g"
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747
3748 int
3749 main ()
3750 {
3751
3752 ;
3753 return 0;
3754 }
3755 _ACEOF
3756 if ac_fn_c_try_compile "$LINENO"; then :
3757 ac_cv_prog_cc_g=yes
3758 else
3759 CFLAGS=""
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762
3763 int
3764 main ()
3765 {
3766
3767 ;
3768 return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772
3773 else
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3775 CFLAGS="-g"
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778
3779 int
3780 main ()
3781 {
3782
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_prog_cc_g=yes
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 fi
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 ac_c_werror_flag=$ac_save_c_werror_flag
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3798 $as_echo "$ac_cv_prog_cc_g" >&6; }
3799 if test "$ac_test_CFLAGS" = set; then
3800 CFLAGS=$ac_save_CFLAGS
3801 elif test $ac_cv_prog_cc_g = yes; then
3802 if test "$GCC" = yes; then
3803 CFLAGS="-g -O2"
3804 else
3805 CFLAGS="-g"
3806 fi
3807 else
3808 if test "$GCC" = yes; then
3809 CFLAGS="-O2"
3810 else
3811 CFLAGS=
3812 fi
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3815 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3816 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 ac_cv_prog_cc_c89=no
3820 ac_save_CC=$CC
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <stdarg.h>
3824 #include <stdio.h>
3825 #include <sys/types.h>
3826 #include <sys/stat.h>
3827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3828 struct buf { int x; };
3829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3830 static char *e (p, i)
3831 char **p;
3832 int i;
3833 {
3834 return p[i];
3835 }
3836 static char *f (char * (*g) (char **, int), char **p, ...)
3837 {
3838 char *s;
3839 va_list v;
3840 va_start (v,p);
3841 s = g (p, va_arg (v,int));
3842 va_end (v);
3843 return s;
3844 }
3845
3846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3847 function prototypes and stuff, but not '\xHH' hex character constants.
3848 These don't provoke an error unfortunately, instead are silently treated
3849 as 'x'. The following induces an error, until -std is added to get
3850 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3851 array size at least. It's necessary to write '\x00'==0 to get something
3852 that's true only with -std. */
3853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3854
3855 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3856 inside strings and character constants. */
3857 #define FOO(x) 'x'
3858 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3859
3860 int test (int i, double x);
3861 struct s1 {int (*f) (int a);};
3862 struct s2 {int (*f) (double a);};
3863 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3864 int argc;
3865 char **argv;
3866 int
3867 main ()
3868 {
3869 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3875 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3876 do
3877 CC="$ac_save_CC $ac_arg"
3878 if ac_fn_c_try_compile "$LINENO"; then :
3879 ac_cv_prog_cc_c89=$ac_arg
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext
3882 test "x$ac_cv_prog_cc_c89" != "xno" && break
3883 done
3884 rm -f conftest.$ac_ext
3885 CC=$ac_save_CC
3886
3887 fi
3888 # AC_CACHE_VAL
3889 case "x$ac_cv_prog_cc_c89" in
3890 x)
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3892 $as_echo "none needed" >&6; } ;;
3893 xno)
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3895 $as_echo "unsupported" >&6; } ;;
3896 *)
3897 CC="$CC $ac_cv_prog_cc_c89"
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3899 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3900 esac
3901 if test "x$ac_cv_prog_cc_c89" != xno; then :
3902
3903 fi
3904
3905 ac_ext=c
3906 ac_cpp='$CPP $CPPFLAGS'
3907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3910 DEPDIR="${am__leading_dot}deps"
3911
3912 ac_config_commands="$ac_config_commands depfiles"
3913
3914
3915 am_make=${MAKE-make}
3916 cat > confinc << 'END'
3917 am__doit:
3918 @echo this is the am__doit target
3919 .PHONY: am__doit
3920 END
3921 # If we don't find an include directive, just comment out the code.
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3923 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3924 am__include="#"
3925 am__quote=
3926 _am_result=none
3927 # First try GNU make style include.
3928 echo "include confinc" > confmf
3929 # Ignore all kinds of additional output from `make'.
3930 case `$am_make -s -f confmf 2> /dev/null` in #(
3931 *the\ am__doit\ target*)
3932 am__include=include
3933 am__quote=
3934 _am_result=GNU
3935 ;;
3936 esac
3937 # Now try BSD make style include.
3938 if test "$am__include" = "#"; then
3939 echo '.include "confinc"' > confmf
3940 case `$am_make -s -f confmf 2> /dev/null` in #(
3941 *the\ am__doit\ target*)
3942 am__include=.include
3943 am__quote="\""
3944 _am_result=BSD
3945 ;;
3946 esac
3947 fi
3948
3949
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3951 $as_echo "$_am_result" >&6; }
3952 rm -f confinc confmf
3953
3954 # Check whether --enable-dependency-tracking was given.
3955 if test "${enable_dependency_tracking+set}" = set; then :
3956 enableval=$enable_dependency_tracking;
3957 fi
3958
3959 if test "x$enable_dependency_tracking" != xno; then
3960 am_depcomp="$ac_aux_dir/depcomp"
3961 AMDEPBACKSLASH='\'
3962 fi
3963 if test "x$enable_dependency_tracking" != xno; then
3964 AMDEP_TRUE=
3965 AMDEP_FALSE='#'
3966 else
3967 AMDEP_TRUE='#'
3968 AMDEP_FALSE=
3969 fi
3970
3971
3972
3973 depcc="$CC" am_compiler_list=
3974
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3976 $as_echo_n "checking dependency style of $depcc... " >&6; }
3977 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3981 # We make a subdir and do the tests there. Otherwise we can end up
3982 # making bogus files that we don't know about and never remove. For
3983 # instance it was reported that on HP-UX the gcc test will end up
3984 # making a dummy file named `D' -- because `-MD' means `put the output
3985 # in D'.
3986 mkdir conftest.dir
3987 # Copy depcomp to subdir because otherwise we won't find it if we're
3988 # using a relative directory.
3989 cp "$am_depcomp" conftest.dir
3990 cd conftest.dir
3991 # We will build objects and dependencies in a subdirectory because
3992 # it helps to detect inapplicable dependency modes. For instance
3993 # both Tru64's cc and ICC support -MD to output dependencies as a
3994 # side effect of compilation, but ICC will put the dependencies in
3995 # the current directory while Tru64 will put them in the object
3996 # directory.
3997 mkdir sub
3998
3999 am_cv_CC_dependencies_compiler_type=none
4000 if test "$am_compiler_list" = ""; then
4001 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4002 fi
4003 am__universal=false
4004 case " $depcc " in #(
4005 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4006 esac
4007
4008 for depmode in $am_compiler_list; do
4009 # Setup a source with many dependencies, because some compilers
4010 # like to wrap large dependency lists on column 80 (with \), and
4011 # we should not choose a depcomp mode which is confused by this.
4012 #
4013 # We need to recreate these files for each test, as the compiler may
4014 # overwrite some of them when testing with obscure command lines.
4015 # This happens at least with the AIX C compiler.
4016 : > sub/conftest.c
4017 for i in 1 2 3 4 5 6; do
4018 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4019 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4020 # Solaris 8's {/usr,}/bin/sh.
4021 touch sub/conftst$i.h
4022 done
4023 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4024
4025 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4026 # mode. It turns out that the SunPro C++ compiler does not properly
4027 # handle `-M -o', and we need to detect this. Also, some Intel
4028 # versions had trouble with output in subdirs
4029 am__obj=sub/conftest.${OBJEXT-o}
4030 am__minus_obj="-o $am__obj"
4031 case $depmode in
4032 gcc)
4033 # This depmode causes a compiler race in universal mode.
4034 test "$am__universal" = false || continue
4035 ;;
4036 nosideeffect)
4037 # after this tag, mechanisms are not by side-effect, so they'll
4038 # only be used when explicitly requested
4039 if test "x$enable_dependency_tracking" = xyes; then
4040 continue
4041 else
4042 break
4043 fi
4044 ;;
4045 msvisualcpp | msvcmsys)
4046 # This compiler won't grok `-c -o', but also, the minuso test has
4047 # not run yet. These depmodes are late enough in the game, and
4048 # so weak that their functioning should not be impacted.
4049 am__obj=conftest.${OBJEXT-o}
4050 am__minus_obj=
4051 ;;
4052 none) break ;;
4053 esac
4054 if depmode=$depmode \
4055 source=sub/conftest.c object=$am__obj \
4056 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4057 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4058 >/dev/null 2>conftest.err &&
4059 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4060 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4061 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4062 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4063 # icc doesn't choke on unknown options, it will just issue warnings
4064 # or remarks (even with -Werror). So we grep stderr for any message
4065 # that says an option was ignored or not supported.
4066 # When given -MP, icc 7.0 and 7.1 complain thusly:
4067 # icc: Command line warning: ignoring option '-M'; no argument required
4068 # The diagnosis changed in icc 8.0:
4069 # icc: Command line remark: option '-MP' not supported
4070 if (grep 'ignoring option' conftest.err ||
4071 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4072 am_cv_CC_dependencies_compiler_type=$depmode
4073 break
4074 fi
4075 fi
4076 done
4077
4078 cd ..
4079 rm -rf conftest.dir
4080 else
4081 am_cv_CC_dependencies_compiler_type=none
4082 fi
4083
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4086 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4087 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4088
4089 if
4090 test "x$enable_dependency_tracking" != xno \
4091 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4092 am__fastdepCC_TRUE=
4093 am__fastdepCC_FALSE='#'
4094 else
4095 am__fastdepCC_TRUE='#'
4096 am__fastdepCC_FALSE=
4097 fi
4098
4099
4100 ac_ext=go
4101 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4102 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compile_gnu=yes
4104 if test -n "$ac_tool_prefix"; then
4105 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4106 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 $as_echo_n "checking for $ac_word... " >&6; }
4109 if test "${ac_cv_prog_GOC+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
4111 else
4112 if test -n "$GOC"; then
4113 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4114 else
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4125 fi
4126 done
4127 done
4128 IFS=$as_save_IFS
4129
4130 fi
4131 fi
4132 GOC=$ac_cv_prog_GOC
4133 if test -n "$GOC"; then
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4135 $as_echo "$GOC" >&6; }
4136 else
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4138 $as_echo "no" >&6; }
4139 fi
4140
4141
4142 fi
4143 if test -z "$ac_cv_prog_GOC"; then
4144 ac_ct_GOC=$GOC
4145 # Extract the first word of "gccgo", so it can be a program name with args.
4146 set dummy gccgo; ac_word=$2
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4148 $as_echo_n "checking for $ac_word... " >&6; }
4149 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 if test -n "$ac_ct_GOC"; then
4153 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_ac_ct_GOC="gccgo"
4163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4165 fi
4166 done
4167 done
4168 IFS=$as_save_IFS
4169
4170 fi
4171 fi
4172 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4173 if test -n "$ac_ct_GOC"; then
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4175 $as_echo "$ac_ct_GOC" >&6; }
4176 else
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4178 $as_echo "no" >&6; }
4179 fi
4180
4181 if test "x$ac_ct_GOC" = x; then
4182 GOC=""
4183 else
4184 case $cross_compiling:$ac_tool_warned in
4185 yes:)
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4188 ac_tool_warned=yes ;;
4189 esac
4190 GOC=$ac_ct_GOC
4191 fi
4192 else
4193 GOC="$ac_cv_prog_GOC"
4194 fi
4195
4196 if test -z "$GOC"; then
4197 if test -n "$ac_tool_prefix"; then
4198 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4199 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if test "${ac_cv_prog_GOC+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4204 else
4205 if test -n "$GOC"; then
4206 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211 IFS=$as_save_IFS
4212 test -z "$as_dir" && as_dir=.
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 break 2
4218 fi
4219 done
4220 done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 GOC=$ac_cv_prog_GOC
4226 if test -n "$GOC"; then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4228 $as_echo "$GOC" >&6; }
4229 else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234
4235 fi
4236 fi
4237 if test -z "$GOC"; then
4238 # Extract the first word of "gccgo", so it can be a program name with args.
4239 set dummy gccgo; ac_word=$2
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241 $as_echo_n "checking for $ac_word... " >&6; }
4242 if test "${ac_cv_prog_GOC+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244 else
4245 if test -n "$GOC"; then
4246 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4247 else
4248 ac_prog_rejected=no
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 for as_dir in $PATH
4251 do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4257 ac_prog_rejected=yes
4258 continue
4259 fi
4260 ac_cv_prog_GOC="gccgo"
4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4263 fi
4264 done
4265 done
4266 IFS=$as_save_IFS
4267
4268 if test $ac_prog_rejected = yes; then
4269 # We found a bogon in the path, so make sure we never use it.
4270 set dummy $ac_cv_prog_GOC
4271 shift
4272 if test $# != 0; then
4273 # We chose a different compiler from the bogus one.
4274 # However, it has the same basename, so the bogon will be chosen
4275 # first if we set GOC to just the basename; use the full file name.
4276 shift
4277 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4278 fi
4279 fi
4280 fi
4281 fi
4282 GOC=$ac_cv_prog_GOC
4283 if test -n "$GOC"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4285 $as_echo "$GOC" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4290
4291
4292 fi
4293
4294
4295 # Provide some information about the compiler.
4296 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4297 set X $ac_compile
4298 ac_compiler=$2
4299 { { ac_try="$ac_compiler --version >&5"
4300 case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303 esac
4304 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4305 $as_echo "$ac_try_echo"; } >&5
4306 (eval "$ac_compiler --version >&5") 2>conftest.err
4307 ac_status=$?
4308 if test -s conftest.err; then
4309 sed '10a\
4310 ... rest of stderr output deleted ...
4311 10q' conftest.err >conftest.er1
4312 cat conftest.er1 >&5
4313 rm -f conftest.er1 conftest.err
4314 fi
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }
4317 GOCFLAGS="-g -O2"
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324
4325
4326
4327
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4330 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4331 # Check whether --enable-maintainer-mode was given.
4332 if test "${enable_maintainer_mode+set}" = set; then :
4333 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4334 else
4335 USE_MAINTAINER_MODE=no
4336 fi
4337
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4339 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4340 if test $USE_MAINTAINER_MODE = yes; then
4341 MAINTAINER_MODE_TRUE=
4342 MAINTAINER_MODE_FALSE='#'
4343 else
4344 MAINTAINER_MODE_TRUE='#'
4345 MAINTAINER_MODE_FALSE=
4346 fi
4347
4348 MAINT=$MAINTAINER_MODE_TRUE
4349
4350
4351
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4353 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4354 if test "${ac_cv_path_SED+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4358 for ac_i in 1 2 3 4 5 6 7; do
4359 ac_script="$ac_script$as_nl$ac_script"
4360 done
4361 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4362 { ac_script=; unset ac_script;}
4363 if test -z "$SED"; then
4364 ac_path_SED_found=false
4365 # Loop through the user's path and test for each of PROGNAME-LIST
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4368 do
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_prog in sed gsed; do
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4374 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4375 # Check for GNU ac_path_SED and select it if it is found.
4376 # Check for GNU $ac_path_SED
4377 case `"$ac_path_SED" --version 2>&1` in
4378 *GNU*)
4379 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4380 *)
4381 ac_count=0
4382 $as_echo_n 0123456789 >"conftest.in"
4383 while :
4384 do
4385 cat "conftest.in" "conftest.in" >"conftest.tmp"
4386 mv "conftest.tmp" "conftest.in"
4387 cp "conftest.in" "conftest.nl"
4388 $as_echo '' >> "conftest.nl"
4389 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4391 as_fn_arith $ac_count + 1 && ac_count=$as_val
4392 if test $ac_count -gt ${ac_path_SED_max-0}; then
4393 # Best one so far, save it but keep looking for a better one
4394 ac_cv_path_SED="$ac_path_SED"
4395 ac_path_SED_max=$ac_count
4396 fi
4397 # 10*(2^10) chars as input seems more than enough
4398 test $ac_count -gt 10 && break
4399 done
4400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4401 esac
4402
4403 $ac_path_SED_found && break 3
4404 done
4405 done
4406 done
4407 IFS=$as_save_IFS
4408 if test -z "$ac_cv_path_SED"; then
4409 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4410 fi
4411 else
4412 ac_cv_path_SED=$SED
4413 fi
4414
4415 fi
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4417 $as_echo "$ac_cv_path_SED" >&6; }
4418 SED="$ac_cv_path_SED"
4419 rm -f conftest.sed
4420
4421 test -z "$SED" && SED=sed
4422 Xsed="$SED -e 1s/^X//"
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4435 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4436 if test "${ac_cv_path_GREP+set}" = set; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -z "$GREP"; then
4440 ac_path_GREP_found=false
4441 # Loop through the user's path and test for each of PROGNAME-LIST
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4444 do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_prog in grep ggrep; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4450 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4451 # Check for GNU ac_path_GREP and select it if it is found.
4452 # Check for GNU $ac_path_GREP
4453 case `"$ac_path_GREP" --version 2>&1` in
4454 *GNU*)
4455 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4456 *)
4457 ac_count=0
4458 $as_echo_n 0123456789 >"conftest.in"
4459 while :
4460 do
4461 cat "conftest.in" "conftest.in" >"conftest.tmp"
4462 mv "conftest.tmp" "conftest.in"
4463 cp "conftest.in" "conftest.nl"
4464 $as_echo 'GREP' >> "conftest.nl"
4465 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4466 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4467 as_fn_arith $ac_count + 1 && ac_count=$as_val
4468 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4469 # Best one so far, save it but keep looking for a better one
4470 ac_cv_path_GREP="$ac_path_GREP"
4471 ac_path_GREP_max=$ac_count
4472 fi
4473 # 10*(2^10) chars as input seems more than enough
4474 test $ac_count -gt 10 && break
4475 done
4476 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4477 esac
4478
4479 $ac_path_GREP_found && break 3
4480 done
4481 done
4482 done
4483 IFS=$as_save_IFS
4484 if test -z "$ac_cv_path_GREP"; then
4485 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4486 fi
4487 else
4488 ac_cv_path_GREP=$GREP
4489 fi
4490
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4493 $as_echo "$ac_cv_path_GREP" >&6; }
4494 GREP="$ac_cv_path_GREP"
4495
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4498 $as_echo_n "checking for egrep... " >&6; }
4499 if test "${ac_cv_path_EGREP+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4503 then ac_cv_path_EGREP="$GREP -E"
4504 else
4505 if test -z "$EGREP"; then
4506 ac_path_EGREP_found=false
4507 # Loop through the user's path and test for each of PROGNAME-LIST
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510 do
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_prog in egrep; do
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4516 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4517 # Check for GNU ac_path_EGREP and select it if it is found.
4518 # Check for GNU $ac_path_EGREP
4519 case `"$ac_path_EGREP" --version 2>&1` in
4520 *GNU*)
4521 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4522 *)
4523 ac_count=0
4524 $as_echo_n 0123456789 >"conftest.in"
4525 while :
4526 do
4527 cat "conftest.in" "conftest.in" >"conftest.tmp"
4528 mv "conftest.tmp" "conftest.in"
4529 cp "conftest.in" "conftest.nl"
4530 $as_echo 'EGREP' >> "conftest.nl"
4531 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4533 as_fn_arith $ac_count + 1 && ac_count=$as_val
4534 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4535 # Best one so far, save it but keep looking for a better one
4536 ac_cv_path_EGREP="$ac_path_EGREP"
4537 ac_path_EGREP_max=$ac_count
4538 fi
4539 # 10*(2^10) chars as input seems more than enough
4540 test $ac_count -gt 10 && break
4541 done
4542 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4543 esac
4544
4545 $ac_path_EGREP_found && break 3
4546 done
4547 done
4548 done
4549 IFS=$as_save_IFS
4550 if test -z "$ac_cv_path_EGREP"; then
4551 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4552 fi
4553 else
4554 ac_cv_path_EGREP=$EGREP
4555 fi
4556
4557 fi
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4560 $as_echo "$ac_cv_path_EGREP" >&6; }
4561 EGREP="$ac_cv_path_EGREP"
4562
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4565 $as_echo_n "checking for fgrep... " >&6; }
4566 if test "${ac_cv_path_FGREP+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4570 then ac_cv_path_FGREP="$GREP -F"
4571 else
4572 if test -z "$FGREP"; then
4573 ac_path_FGREP_found=false
4574 # Loop through the user's path and test for each of PROGNAME-LIST
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4577 do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_prog in fgrep; do
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4583 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4584 # Check for GNU ac_path_FGREP and select it if it is found.
4585 # Check for GNU $ac_path_FGREP
4586 case `"$ac_path_FGREP" --version 2>&1` in
4587 *GNU*)
4588 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4589 *)
4590 ac_count=0
4591 $as_echo_n 0123456789 >"conftest.in"
4592 while :
4593 do
4594 cat "conftest.in" "conftest.in" >"conftest.tmp"
4595 mv "conftest.tmp" "conftest.in"
4596 cp "conftest.in" "conftest.nl"
4597 $as_echo 'FGREP' >> "conftest.nl"
4598 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4600 as_fn_arith $ac_count + 1 && ac_count=$as_val
4601 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4602 # Best one so far, save it but keep looking for a better one
4603 ac_cv_path_FGREP="$ac_path_FGREP"
4604 ac_path_FGREP_max=$ac_count
4605 fi
4606 # 10*(2^10) chars as input seems more than enough
4607 test $ac_count -gt 10 && break
4608 done
4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4610 esac
4611
4612 $ac_path_FGREP_found && break 3
4613 done
4614 done
4615 done
4616 IFS=$as_save_IFS
4617 if test -z "$ac_cv_path_FGREP"; then
4618 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4619 fi
4620 else
4621 ac_cv_path_FGREP=$FGREP
4622 fi
4623
4624 fi
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4627 $as_echo "$ac_cv_path_FGREP" >&6; }
4628 FGREP="$ac_cv_path_FGREP"
4629
4630
4631 test -z "$GREP" && GREP=grep
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4650 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4651 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4654 $as_echo_n "checking how to print strings... " >&6; }
4655 # Test print first, because it will be a builtin if present.
4656 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4657 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4658 ECHO='print -r --'
4659 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4660 ECHO='printf %s\n'
4661 else
4662 # Use this function as a fallback that always works.
4663 func_fallback_echo ()
4664 {
4665 eval 'cat <<_LTECHO_EOF
4666 $1
4667 _LTECHO_EOF'
4668 }
4669 ECHO='func_fallback_echo'
4670 fi
4671
4672 # func_echo_all arg...
4673 # Invoke $ECHO with all args, space-separated.
4674 func_echo_all ()
4675 {
4676 $ECHO ""
4677 }
4678
4679 case "$ECHO" in
4680 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4681 $as_echo "printf" >&6; } ;;
4682 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4683 $as_echo "print -r" >&6; } ;;
4684 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4685 $as_echo "cat" >&6; } ;;
4686 esac
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703 # Check whether --with-gnu-ld was given.
4704 if test "${with_gnu_ld+set}" = set; then :
4705 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4706 else
4707 with_gnu_ld=no
4708 fi
4709
4710 ac_prog=ld
4711 if test "$GCC" = yes; then
4712 # Check if gcc -print-prog-name=ld gives a path.
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4714 $as_echo_n "checking for ld used by $CC... " >&6; }
4715 case $host in
4716 *-*-mingw*)
4717 # gcc leaves a trailing carriage return which upsets mingw
4718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4719 *)
4720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4721 esac
4722 case $ac_prog in
4723 # Accept absolute paths.
4724 [\\/]* | ?:[\\/]*)
4725 re_direlt='/[^/][^/]*/\.\./'
4726 # Canonicalize the pathname of ld
4727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4729 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4730 done
4731 test -z "$LD" && LD="$ac_prog"
4732 ;;
4733 "")
4734 # If it fails, then pretend we aren't using GCC.
4735 ac_prog=ld
4736 ;;
4737 *)
4738 # If it is relative, then search for the first ld in PATH.
4739 with_gnu_ld=unknown
4740 ;;
4741 esac
4742 elif test "$with_gnu_ld" = yes; then
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4744 $as_echo_n "checking for GNU ld... " >&6; }
4745 else
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4747 $as_echo_n "checking for non-GNU ld... " >&6; }
4748 fi
4749 if test "${lt_cv_path_LD+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -z "$LD"; then
4753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4754 for ac_dir in $PATH; do
4755 IFS="$lt_save_ifs"
4756 test -z "$ac_dir" && ac_dir=.
4757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4758 lt_cv_path_LD="$ac_dir/$ac_prog"
4759 # Check to see if the program is GNU ld. I'd rather use --version,
4760 # but apparently some variants of GNU ld only accept -v.
4761 # Break only if it was the GNU/non-GNU ld that we prefer.
4762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4763 *GNU* | *'with BFD'*)
4764 test "$with_gnu_ld" != no && break
4765 ;;
4766 *)
4767 test "$with_gnu_ld" != yes && break
4768 ;;
4769 esac
4770 fi
4771 done
4772 IFS="$lt_save_ifs"
4773 else
4774 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4775 fi
4776 fi
4777
4778 LD="$lt_cv_path_LD"
4779 if test -n "$LD"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4781 $as_echo "$LD" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4788 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4789 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4793 case `$LD -v 2>&1 </dev/null` in
4794 *GNU* | *'with BFD'*)
4795 lt_cv_prog_gnu_ld=yes
4796 ;;
4797 *)
4798 lt_cv_prog_gnu_ld=no
4799 ;;
4800 esac
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4803 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4804 with_gnu_ld=$lt_cv_prog_gnu_ld
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814 if test -n "$ac_tool_prefix"; then
4815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$RANLIB"; then
4823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 RANLIB=$ac_cv_prog_RANLIB
4843 if test -n "$RANLIB"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4845 $as_echo "$RANLIB" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851
4852 fi
4853 if test -z "$ac_cv_prog_RANLIB"; then
4854 ac_ct_RANLIB=$RANLIB
4855 # Extract the first word of "ranlib", so it can be a program name with args.
4856 set dummy ranlib; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$ac_ct_RANLIB"; then
4863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_ac_ct_RANLIB="ranlib"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876 done
4877 done
4878 IFS=$as_save_IFS
4879
4880 fi
4881 fi
4882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4883 if test -n "$ac_ct_RANLIB"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4885 $as_echo "$ac_ct_RANLIB" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4889 fi
4890
4891 if test "x$ac_ct_RANLIB" = x; then
4892 RANLIB=":"
4893 else
4894 case $cross_compiling:$ac_tool_warned in
4895 yes:)
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4898 ac_tool_warned=yes ;;
4899 esac
4900 RANLIB=$ac_ct_RANLIB
4901 fi
4902 else
4903 RANLIB="$ac_cv_prog_RANLIB"
4904 fi
4905
4906 if test -n "$ac_tool_prefix"; then
4907 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4908 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$OBJCOPY"; then
4915 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 OBJCOPY=$ac_cv_prog_OBJCOPY
4935 if test -n "$OBJCOPY"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4937 $as_echo "$OBJCOPY" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4941 fi
4942
4943
4944 fi
4945 if test -z "$ac_cv_prog_OBJCOPY"; then
4946 ac_ct_OBJCOPY=$OBJCOPY
4947 # Extract the first word of "objcopy", so it can be a program name with args.
4948 set dummy objcopy; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$ac_ct_OBJCOPY"; then
4955 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968 done
4969 done
4970 IFS=$as_save_IFS
4971
4972 fi
4973 fi
4974 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4975 if test -n "$ac_ct_OBJCOPY"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4977 $as_echo "$ac_ct_OBJCOPY" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982
4983 if test "x$ac_ct_OBJCOPY" = x; then
4984 OBJCOPY="missing-objcopy"
4985 else
4986 case $cross_compiling:$ac_tool_warned in
4987 yes:)
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990 ac_tool_warned=yes ;;
4991 esac
4992 OBJCOPY=$ac_ct_OBJCOPY
4993 fi
4994 else
4995 OBJCOPY="$ac_cv_prog_OBJCOPY"
4996 fi
4997
4998
4999 enable_dlopen=yes
5000
5001
5002
5003 case `pwd` in
5004 *\ * | *\ *)
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5006 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5007 esac
5008
5009
5010
5011 macro_version='2.2.7a'
5012 macro_revision='1.3134'
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026 ltmain="$ac_aux_dir/ltmain.sh"
5027
5028 # Backslashify metacharacters that are still active within
5029 # double-quoted strings.
5030 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5031
5032 # Same as above, but do not quote variable references.
5033 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5034
5035 # Sed substitution to delay expansion of an escaped shell variable in a
5036 # double_quote_subst'ed string.
5037 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5038
5039 # Sed substitution to delay expansion of an escaped single quote.
5040 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5041
5042 # Sed substitution to avoid accidental globbing in evaled expressions
5043 no_glob_subst='s/\*/\\\*/g'
5044
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5046 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5047 if test "${lt_cv_path_NM+set}" = set; then :
5048 $as_echo_n "(cached) " >&6
5049 else
5050 if test -n "$NM"; then
5051 # Let the user override the test.
5052 lt_cv_path_NM="$NM"
5053 else
5054 lt_nm_to_check="${ac_tool_prefix}nm"
5055 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5056 lt_nm_to_check="$lt_nm_to_check nm"
5057 fi
5058 for lt_tmp_nm in $lt_nm_to_check; do
5059 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5060 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5061 IFS="$lt_save_ifs"
5062 test -z "$ac_dir" && ac_dir=.
5063 tmp_nm="$ac_dir/$lt_tmp_nm"
5064 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5065 # Check to see if the nm accepts a BSD-compat flag.
5066 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5067 # nm: unknown option "B" ignored
5068 # Tru64's nm complains that /dev/null is an invalid object file
5069 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5070 */dev/null* | *'Invalid file or object type'*)
5071 lt_cv_path_NM="$tmp_nm -B"
5072 break
5073 ;;
5074 *)
5075 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5076 */dev/null*)
5077 lt_cv_path_NM="$tmp_nm -p"
5078 break
5079 ;;
5080 *)
5081 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5082 continue # so that we can try to find one that supports BSD flags
5083 ;;
5084 esac
5085 ;;
5086 esac
5087 fi
5088 done
5089 IFS="$lt_save_ifs"
5090 done
5091 : ${lt_cv_path_NM=no}
5092 fi
5093 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5095 $as_echo "$lt_cv_path_NM" >&6; }
5096 if test "$lt_cv_path_NM" != "no"; then
5097 NM="$lt_cv_path_NM"
5098 else
5099 # Didn't find any BSD compatible name lister, look for dumpbin.
5100 if test -n "$DUMPBIN"; then :
5101 # Let the user override the test.
5102 else
5103 if test -n "$ac_tool_prefix"; then
5104 for ac_prog in dumpbin "link -dump"
5105 do
5106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5111 $as_echo_n "(cached) " >&6
5112 else
5113 if test -n "$DUMPBIN"; then
5114 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5115 else
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 for as_dir in $PATH
5118 do
5119 IFS=$as_save_IFS
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5123 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 break 2
5126 fi
5127 done
5128 done
5129 IFS=$as_save_IFS
5130
5131 fi
5132 fi
5133 DUMPBIN=$ac_cv_prog_DUMPBIN
5134 if test -n "$DUMPBIN"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5136 $as_echo "$DUMPBIN" >&6; }
5137 else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5140 fi
5141
5142
5143 test -n "$DUMPBIN" && break
5144 done
5145 fi
5146 if test -z "$DUMPBIN"; then
5147 ac_ct_DUMPBIN=$DUMPBIN
5148 for ac_prog in dumpbin "link -dump"
5149 do
5150 # Extract the first word of "$ac_prog", so it can be a program name with args.
5151 set dummy $ac_prog; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5156 else
5157 if test -n "$ac_ct_DUMPBIN"; then
5158 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5159 else
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH
5162 do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171 done
5172 done
5173 IFS=$as_save_IFS
5174
5175 fi
5176 fi
5177 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5178 if test -n "$ac_ct_DUMPBIN"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5180 $as_echo "$ac_ct_DUMPBIN" >&6; }
5181 else
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5184 fi
5185
5186
5187 test -n "$ac_ct_DUMPBIN" && break
5188 done
5189
5190 if test "x$ac_ct_DUMPBIN" = x; then
5191 DUMPBIN=":"
5192 else
5193 case $cross_compiling:$ac_tool_warned in
5194 yes:)
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned=yes ;;
5198 esac
5199 DUMPBIN=$ac_ct_DUMPBIN
5200 fi
5201 fi
5202
5203 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5204 *COFF*)
5205 DUMPBIN="$DUMPBIN -symbols"
5206 ;;
5207 *)
5208 DUMPBIN=:
5209 ;;
5210 esac
5211 fi
5212
5213 if test "$DUMPBIN" != ":"; then
5214 NM="$DUMPBIN"
5215 fi
5216 fi
5217 test -z "$NM" && NM=nm
5218
5219
5220
5221
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5225 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5226 if test "${lt_cv_nm_interface+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5228 else
5229 lt_cv_nm_interface="BSD nm"
5230 echo "int some_variable = 0;" > conftest.$ac_ext
5231 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5232 (eval "$ac_compile" 2>conftest.err)
5233 cat conftest.err >&5
5234 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5235 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5236 cat conftest.err >&5
5237 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5238 cat conftest.out >&5
5239 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5240 lt_cv_nm_interface="MS dumpbin"
5241 fi
5242 rm -f conftest*
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5245 $as_echo "$lt_cv_nm_interface" >&6; }
5246
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5248 $as_echo_n "checking whether ln -s works... " >&6; }
5249 LN_S=$as_ln_s
5250 if test "$LN_S" = "ln -s"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5252 $as_echo "yes" >&6; }
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5255 $as_echo "no, using $LN_S" >&6; }
5256 fi
5257
5258 # find the maximum length of command line arguments
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5260 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5261 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 i=0
5265 teststring="ABCD"
5266
5267 case $build_os in
5268 msdosdjgpp*)
5269 # On DJGPP, this test can blow up pretty badly due to problems in libc
5270 # (any single argument exceeding 2000 bytes causes a buffer overrun
5271 # during glob expansion). Even if it were fixed, the result of this
5272 # check would be larger than it should be.
5273 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5274 ;;
5275
5276 gnu*)
5277 # Under GNU Hurd, this test is not required because there is
5278 # no limit to the length of command line arguments.
5279 # Libtool will interpret -1 as no limit whatsoever
5280 lt_cv_sys_max_cmd_len=-1;
5281 ;;
5282
5283 cygwin* | mingw* | cegcc*)
5284 # On Win9x/ME, this test blows up -- it succeeds, but takes
5285 # about 5 minutes as the teststring grows exponentially.
5286 # Worse, since 9x/ME are not pre-emptively multitasking,
5287 # you end up with a "frozen" computer, even though with patience
5288 # the test eventually succeeds (with a max line length of 256k).
5289 # Instead, let's just punt: use the minimum linelength reported by
5290 # all of the supported platforms: 8192 (on NT/2K/XP).
5291 lt_cv_sys_max_cmd_len=8192;
5292 ;;
5293
5294 mint*)
5295 # On MiNT this can take a long time and run out of memory.
5296 lt_cv_sys_max_cmd_len=8192;
5297 ;;
5298
5299 amigaos*)
5300 # On AmigaOS with pdksh, this test takes hours, literally.
5301 # So we just punt and use a minimum line length of 8192.
5302 lt_cv_sys_max_cmd_len=8192;
5303 ;;
5304
5305 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5306 # This has been around since 386BSD, at least. Likely further.
5307 if test -x /sbin/sysctl; then
5308 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5309 elif test -x /usr/sbin/sysctl; then
5310 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5311 else
5312 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5313 fi
5314 # And add a safety zone
5315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5317 ;;
5318
5319 interix*)
5320 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5321 lt_cv_sys_max_cmd_len=196608
5322 ;;
5323
5324 osf*)
5325 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5326 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5327 # nice to cause kernel panics so lets avoid the loop below.
5328 # First set a reasonable default.
5329 lt_cv_sys_max_cmd_len=16384
5330 #
5331 if test -x /sbin/sysconfig; then
5332 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5333 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5334 esac
5335 fi
5336 ;;
5337 sco3.2v5*)
5338 lt_cv_sys_max_cmd_len=102400
5339 ;;
5340 sysv5* | sco5v6* | sysv4.2uw2*)
5341 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5342 if test -n "$kargmax"; then
5343 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5344 else
5345 lt_cv_sys_max_cmd_len=32768
5346 fi
5347 ;;
5348 *)
5349 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5350 if test -n "$lt_cv_sys_max_cmd_len"; then
5351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5353 else
5354 # Make teststring a little bigger before we do anything with it.
5355 # a 1K string should be a reasonable start.
5356 for i in 1 2 3 4 5 6 7 8 ; do
5357 teststring=$teststring$teststring
5358 done
5359 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5360 # If test is not a shell built-in, we'll probably end up computing a
5361 # maximum length that is only half of the actual maximum length, but
5362 # we can't tell.
5363 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5364 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5365 test $i != 17 # 1/2 MB should be enough
5366 do
5367 i=`expr $i + 1`
5368 teststring=$teststring$teststring
5369 done
5370 # Only check the string length outside the loop.
5371 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5372 teststring=
5373 # Add a significant safety factor because C++ compilers can tack on
5374 # massive amounts of additional arguments before passing them to the
5375 # linker. It appears as though 1/2 is a usable value.
5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5377 fi
5378 ;;
5379 esac
5380
5381 fi
5382
5383 if test -n $lt_cv_sys_max_cmd_len ; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5385 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5388 $as_echo "none" >&6; }
5389 fi
5390 max_cmd_len=$lt_cv_sys_max_cmd_len
5391
5392
5393
5394
5395
5396
5397 : ${CP="cp -f"}
5398 : ${MV="mv -f"}
5399 : ${RM="rm -f"}
5400
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5402 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5403 # Try some XSI features
5404 xsi_shell=no
5405 ( _lt_dummy="a/b/c"
5406 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5407 = c,a/b,, \
5408 && eval 'test $(( 1 + 1 )) -eq 2 \
5409 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5410 && xsi_shell=yes
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5412 $as_echo "$xsi_shell" >&6; }
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5416 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5417 lt_shell_append=no
5418 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5419 >/dev/null 2>&1 \
5420 && lt_shell_append=yes
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5422 $as_echo "$lt_shell_append" >&6; }
5423
5424
5425 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5426 lt_unset=unset
5427 else
5428 lt_unset=false
5429 fi
5430
5431
5432
5433
5434
5435 # test EBCDIC or ASCII
5436 case `echo X|tr X '\101'` in
5437 A) # ASCII based system
5438 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5439 lt_SP2NL='tr \040 \012'
5440 lt_NL2SP='tr \015\012 \040\040'
5441 ;;
5442 *) # EBCDIC based system
5443 lt_SP2NL='tr \100 \n'
5444 lt_NL2SP='tr \r\n \100\100'
5445 ;;
5446 esac
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5457 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5458 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 lt_cv_ld_reload_flag='-r'
5462 fi
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5464 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5465 reload_flag=$lt_cv_ld_reload_flag
5466 case $reload_flag in
5467 "" | " "*) ;;
5468 *) reload_flag=" $reload_flag" ;;
5469 esac
5470 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5471 case $host_os in
5472 darwin*)
5473 if test "$GCC" = yes; then
5474 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5475 else
5476 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5477 fi
5478 ;;
5479 esac
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489 if test -n "$ac_tool_prefix"; then
5490 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5491 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 if test -n "$OBJDUMP"; then
5498 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5499 else
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 break 2
5510 fi
5511 done
5512 done
5513 IFS=$as_save_IFS
5514
5515 fi
5516 fi
5517 OBJDUMP=$ac_cv_prog_OBJDUMP
5518 if test -n "$OBJDUMP"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5520 $as_echo "$OBJDUMP" >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5524 fi
5525
5526
5527 fi
5528 if test -z "$ac_cv_prog_OBJDUMP"; then
5529 ac_ct_OBJDUMP=$OBJDUMP
5530 # Extract the first word of "objdump", so it can be a program name with args.
5531 set dummy objdump; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$ac_ct_OBJDUMP"; then
5538 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5547 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5558 if test -n "$ac_ct_OBJDUMP"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5560 $as_echo "$ac_ct_OBJDUMP" >&6; }
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566 if test "x$ac_ct_OBJDUMP" = x; then
5567 OBJDUMP="false"
5568 else
5569 case $cross_compiling:$ac_tool_warned in
5570 yes:)
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5573 ac_tool_warned=yes ;;
5574 esac
5575 OBJDUMP=$ac_ct_OBJDUMP
5576 fi
5577 else
5578 OBJDUMP="$ac_cv_prog_OBJDUMP"
5579 fi
5580
5581 test -z "$OBJDUMP" && OBJDUMP=objdump
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5592 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5593 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 lt_cv_file_magic_cmd='$MAGIC_CMD'
5597 lt_cv_file_magic_test_file=
5598 lt_cv_deplibs_check_method='unknown'
5599 # Need to set the preceding variable on all platforms that support
5600 # interlibrary dependencies.
5601 # 'none' -- dependencies not supported.
5602 # `unknown' -- same as none, but documents that we really don't know.
5603 # 'pass_all' -- all dependencies passed with no checks.
5604 # 'test_compile' -- check by making test program.
5605 # 'file_magic [[regex]]' -- check by looking for files in library path
5606 # which responds to the $file_magic_cmd with a given extended regex.
5607 # If you have `file' or equivalent on your system and you're not sure
5608 # whether `pass_all' will *always* work, you probably want this one.
5609
5610 case $host_os in
5611 aix[4-9]*)
5612 lt_cv_deplibs_check_method=pass_all
5613 ;;
5614
5615 beos*)
5616 lt_cv_deplibs_check_method=pass_all
5617 ;;
5618
5619 bsdi[45]*)
5620 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5621 lt_cv_file_magic_cmd='/usr/bin/file -L'
5622 lt_cv_file_magic_test_file=/shlib/libc.so
5623 ;;
5624
5625 cygwin*)
5626 # func_win32_libid is a shell function defined in ltmain.sh
5627 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5628 lt_cv_file_magic_cmd='func_win32_libid'
5629 ;;
5630
5631 mingw* | pw32*)
5632 # Base MSYS/MinGW do not provide the 'file' command needed by
5633 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5634 # unless we find 'file', for example because we are cross-compiling.
5635 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5636 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5637 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5638 lt_cv_file_magic_cmd='func_win32_libid'
5639 else
5640 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5641 lt_cv_file_magic_cmd='$OBJDUMP -f'
5642 fi
5643 ;;
5644
5645 cegcc*)
5646 # use the weaker test based on 'objdump'. See mingw*.
5647 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5648 lt_cv_file_magic_cmd='$OBJDUMP -f'
5649 ;;
5650
5651 darwin* | rhapsody*)
5652 lt_cv_deplibs_check_method=pass_all
5653 ;;
5654
5655 freebsd* | dragonfly*)
5656 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5657 case $host_cpu in
5658 i*86 )
5659 # Not sure whether the presence of OpenBSD here was a mistake.
5660 # Let's accept both of them until this is cleared up.
5661 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5662 lt_cv_file_magic_cmd=/usr/bin/file
5663 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5664 ;;
5665 esac
5666 else
5667 lt_cv_deplibs_check_method=pass_all
5668 fi
5669 ;;
5670
5671 gnu*)
5672 lt_cv_deplibs_check_method=pass_all
5673 ;;
5674
5675 haiku*)
5676 lt_cv_deplibs_check_method=pass_all
5677 ;;
5678
5679 hpux10.20* | hpux11*)
5680 lt_cv_file_magic_cmd=/usr/bin/file
5681 case $host_cpu in
5682 ia64*)
5683 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5684 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5685 ;;
5686 hppa*64*)
5687 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]'
5688 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5689 ;;
5690 *)
5691 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5692 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5693 ;;
5694 esac
5695 ;;
5696
5697 interix[3-9]*)
5698 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5700 ;;
5701
5702 irix5* | irix6* | nonstopux*)
5703 case $LD in
5704 *-32|*"-32 ") libmagic=32-bit;;
5705 *-n32|*"-n32 ") libmagic=N32;;
5706 *-64|*"-64 ") libmagic=64-bit;;
5707 *) libmagic=never-match;;
5708 esac
5709 lt_cv_deplibs_check_method=pass_all
5710 ;;
5711
5712 # This must be Linux ELF.
5713 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5714 lt_cv_deplibs_check_method=pass_all
5715 ;;
5716
5717 netbsd*)
5718 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5719 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5720 else
5721 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5722 fi
5723 ;;
5724
5725 newos6*)
5726 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5727 lt_cv_file_magic_cmd=/usr/bin/file
5728 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5729 ;;
5730
5731 *nto* | *qnx*)
5732 lt_cv_deplibs_check_method=pass_all
5733 ;;
5734
5735 openbsd*)
5736 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5737 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5738 else
5739 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5740 fi
5741 ;;
5742
5743 osf3* | osf4* | osf5*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747 rdos*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751 solaris*)
5752 lt_cv_deplibs_check_method=pass_all
5753 ;;
5754
5755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5756 lt_cv_deplibs_check_method=pass_all
5757 ;;
5758
5759 sysv4 | sysv4.3*)
5760 case $host_vendor in
5761 motorola)
5762 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]'
5763 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5764 ;;
5765 ncr)
5766 lt_cv_deplibs_check_method=pass_all
5767 ;;
5768 sequent)
5769 lt_cv_file_magic_cmd='/bin/file'
5770 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5771 ;;
5772 sni)
5773 lt_cv_file_magic_cmd='/bin/file'
5774 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5775 lt_cv_file_magic_test_file=/lib/libc.so
5776 ;;
5777 siemens)
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
5780 pc)
5781 lt_cv_deplibs_check_method=pass_all
5782 ;;
5783 esac
5784 ;;
5785
5786 tpf*)
5787 lt_cv_deplibs_check_method=pass_all
5788 ;;
5789 esac
5790
5791 fi
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5793 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5794 file_magic_cmd=$lt_cv_file_magic_cmd
5795 deplibs_check_method=$lt_cv_deplibs_check_method
5796 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}ar; ac_word=$2
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5813 $as_echo_n "checking for $ac_word... " >&6; }
5814 if test "${ac_cv_prog_AR+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 if test -n "$AR"; then
5818 ac_cv_prog_AR="$AR" # Let the user override the test.
5819 else
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_prog_AR="${ac_tool_prefix}ar"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5830 fi
5831 done
5832 done
5833 IFS=$as_save_IFS
5834
5835 fi
5836 fi
5837 AR=$ac_cv_prog_AR
5838 if test -n "$AR"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5840 $as_echo "$AR" >&6; }
5841 else
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 fi
5845
5846
5847 fi
5848 if test -z "$ac_cv_prog_AR"; then
5849 ac_ct_AR=$AR
5850 # Extract the first word of "ar", so it can be a program name with args.
5851 set dummy ar; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 if test -n "$ac_ct_AR"; then
5858 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_prog_ac_ct_AR="ar"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875 fi
5876 fi
5877 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5878 if test -n "$ac_ct_AR"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5880 $as_echo "$ac_ct_AR" >&6; }
5881 else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5884 fi
5885
5886 if test "x$ac_ct_AR" = x; then
5887 AR="false"
5888 else
5889 case $cross_compiling:$ac_tool_warned in
5890 yes:)
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5892 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5893 ac_tool_warned=yes ;;
5894 esac
5895 AR=$ac_ct_AR
5896 fi
5897 else
5898 AR="$ac_cv_prog_AR"
5899 fi
5900
5901 test -z "$AR" && AR=ar
5902 test -z "$AR_FLAGS" && AR_FLAGS=cru
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5916 set dummy ${ac_tool_prefix}strip; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if test "${ac_cv_prog_STRIP+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$STRIP"; then
5923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 STRIP=$ac_cv_prog_STRIP
5943 if test -n "$STRIP"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5945 $as_echo "$STRIP" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951
5952 fi
5953 if test -z "$ac_cv_prog_STRIP"; then
5954 ac_ct_STRIP=$STRIP
5955 # Extract the first word of "strip", so it can be a program name with args.
5956 set dummy strip; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958 $as_echo_n "checking for $ac_word... " >&6; }
5959 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -n "$ac_ct_STRIP"; then
5963 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5964 else
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_ac_ct_STRIP="strip"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976 done
5977 done
5978 IFS=$as_save_IFS
5979
5980 fi
5981 fi
5982 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5983 if test -n "$ac_ct_STRIP"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5985 $as_echo "$ac_ct_STRIP" >&6; }
5986 else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990
5991 if test "x$ac_ct_STRIP" = x; then
5992 STRIP=":"
5993 else
5994 case $cross_compiling:$ac_tool_warned in
5995 yes:)
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5998 ac_tool_warned=yes ;;
5999 esac
6000 STRIP=$ac_ct_STRIP
6001 fi
6002 else
6003 STRIP="$ac_cv_prog_STRIP"
6004 fi
6005
6006 test -z "$STRIP" && STRIP=:
6007
6008
6009
6010
6011
6012
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 if test -n "$RANLIB"; then
6022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027 IFS=$as_save_IFS
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 break 2
6034 fi
6035 done
6036 done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 RANLIB=$ac_cv_prog_RANLIB
6042 if test -n "$RANLIB"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6044 $as_echo "$RANLIB" >&6; }
6045 else
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051 fi
6052 if test -z "$ac_cv_prog_RANLIB"; then
6053 ac_ct_RANLIB=$RANLIB
6054 # Extract the first word of "ranlib", so it can be a program name with args.
6055 set dummy ranlib; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6057 $as_echo_n "checking for $ac_word... " >&6; }
6058 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6059 $as_echo_n "(cached) " >&6
6060 else
6061 if test -n "$ac_ct_RANLIB"; then
6062 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6063 else
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 for as_dir in $PATH
6066 do
6067 IFS=$as_save_IFS
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6071 ac_cv_prog_ac_ct_RANLIB="ranlib"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6073 break 2
6074 fi
6075 done
6076 done
6077 IFS=$as_save_IFS
6078
6079 fi
6080 fi
6081 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6082 if test -n "$ac_ct_RANLIB"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6084 $as_echo "$ac_ct_RANLIB" >&6; }
6085 else
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089
6090 if test "x$ac_ct_RANLIB" = x; then
6091 RANLIB=":"
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097 ac_tool_warned=yes ;;
6098 esac
6099 RANLIB=$ac_ct_RANLIB
6100 fi
6101 else
6102 RANLIB="$ac_cv_prog_RANLIB"
6103 fi
6104
6105 test -z "$RANLIB" && RANLIB=:
6106
6107
6108
6109
6110
6111
6112 # Determine commands to create old-style static archives.
6113 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6114 old_postinstall_cmds='chmod 644 $oldlib'
6115 old_postuninstall_cmds=
6116
6117 if test -n "$RANLIB"; then
6118 case $host_os in
6119 openbsd*)
6120 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6121 ;;
6122 *)
6123 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6124 ;;
6125 esac
6126 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6127 fi
6128
6129 case $host_os in
6130 darwin*)
6131 lock_old_archive_extraction=yes ;;
6132 *)
6133 lock_old_archive_extraction=no ;;
6134 esac
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
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 # If no C compiler was specified, use CC.
6175 LTCC=${LTCC-"$CC"}
6176
6177 # If no C compiler flags were specified, use CFLAGS.
6178 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6179
6180 # Allow CC to be a program name with arguments.
6181 compiler=$CC
6182
6183
6184 # Check for command to grab the raw symbol name followed by C symbol from nm.
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6186 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6187 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6188 $as_echo_n "(cached) " >&6
6189 else
6190
6191 # These are sane defaults that work on at least a few old systems.
6192 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6193
6194 # Character class describing NM global symbol codes.
6195 symcode='[BCDEGRST]'
6196
6197 # Regexp to match symbols that can be accessed directly from C.
6198 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6199
6200 # Define system-specific variables.
6201 case $host_os in
6202 aix*)
6203 symcode='[BCDT]'
6204 ;;
6205 cygwin* | mingw* | pw32* | cegcc*)
6206 symcode='[ABCDGISTW]'
6207 ;;
6208 hpux*)
6209 if test "$host_cpu" = ia64; then
6210 symcode='[ABCDEGRST]'
6211 fi
6212 ;;
6213 irix* | nonstopux*)
6214 symcode='[BCDEGRST]'
6215 ;;
6216 osf*)
6217 symcode='[BCDEGQRST]'
6218 ;;
6219 solaris*)
6220 symcode='[BDRT]'
6221 ;;
6222 sco3.2v5*)
6223 symcode='[DT]'
6224 ;;
6225 sysv4.2uw2*)
6226 symcode='[DT]'
6227 ;;
6228 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6229 symcode='[ABDT]'
6230 ;;
6231 sysv4)
6232 symcode='[DFNSTU]'
6233 ;;
6234 esac
6235
6236 # If we're using GNU nm, then use its standard symbol codes.
6237 case `$NM -V 2>&1` in
6238 *GNU* | *'with BFD'*)
6239 symcode='[ABCDGIRSTW]' ;;
6240 esac
6241
6242 # Transform an extracted symbol line into a proper C declaration.
6243 # Some systems (esp. on ia64) link data and code symbols differently,
6244 # so use this general approach.
6245 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6246
6247 # Transform an extracted symbol line into symbol name and symbol address
6248 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6249 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'"
6250
6251 # Handle CRLF in mingw tool chain
6252 opt_cr=
6253 case $build_os in
6254 mingw*)
6255 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6256 ;;
6257 esac
6258
6259 # Try without a prefix underscore, then with it.
6260 for ac_symprfx in "" "_"; do
6261
6262 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6263 symxfrm="\\1 $ac_symprfx\\2 \\2"
6264
6265 # Write the raw and C identifiers.
6266 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6267 # Fake it for dumpbin and say T for any non-static function
6268 # and D for any global variable.
6269 # Also find C++ and __fastcall symbols from MSVC++,
6270 # which start with @ or ?.
6271 lt_cv_sys_global_symbol_pipe="$AWK '"\
6272 " {last_section=section; section=\$ 3};"\
6273 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6274 " \$ 0!~/External *\|/{next};"\
6275 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6276 " {if(hide[section]) next};"\
6277 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6278 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6279 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6280 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6281 " ' prfx=^$ac_symprfx"
6282 else
6283 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6284 fi
6285
6286 # Check to see that the pipe works correctly.
6287 pipe_works=no
6288
6289 rm -f conftest*
6290 cat > conftest.$ac_ext <<_LT_EOF
6291 #ifdef __cplusplus
6292 extern "C" {
6293 #endif
6294 char nm_test_var;
6295 void nm_test_func(void);
6296 void nm_test_func(void){}
6297 #ifdef __cplusplus
6298 }
6299 #endif
6300 int main(){nm_test_var='a';nm_test_func();return(0);}
6301 _LT_EOF
6302
6303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6304 (eval $ac_compile) 2>&5
6305 ac_status=$?
6306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307 test $ac_status = 0; }; then
6308 # Now try to grab the symbols.
6309 nlist=conftest.nm
6310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6311 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6312 ac_status=$?
6313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6314 test $ac_status = 0; } && test -s "$nlist"; then
6315 # Try sorting and uniquifying the output.
6316 if sort "$nlist" | uniq > "$nlist"T; then
6317 mv -f "$nlist"T "$nlist"
6318 else
6319 rm -f "$nlist"T
6320 fi
6321
6322 # Make sure that we snagged all the symbols we need.
6323 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6324 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6325 cat <<_LT_EOF > conftest.$ac_ext
6326 #ifdef __cplusplus
6327 extern "C" {
6328 #endif
6329
6330 _LT_EOF
6331 # Now generate the symbol file.
6332 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6333
6334 cat <<_LT_EOF >> conftest.$ac_ext
6335
6336 /* The mapping between symbol names and symbols. */
6337 const struct {
6338 const char *name;
6339 void *address;
6340 }
6341 lt__PROGRAM__LTX_preloaded_symbols[] =
6342 {
6343 { "@PROGRAM@", (void *) 0 },
6344 _LT_EOF
6345 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6346 cat <<\_LT_EOF >> conftest.$ac_ext
6347 {0, (void *) 0}
6348 };
6349
6350 /* This works around a problem in FreeBSD linker */
6351 #ifdef FREEBSD_WORKAROUND
6352 static const void *lt_preloaded_setup() {
6353 return lt__PROGRAM__LTX_preloaded_symbols;
6354 }
6355 #endif
6356
6357 #ifdef __cplusplus
6358 }
6359 #endif
6360 _LT_EOF
6361 # Now try linking the two files.
6362 mv conftest.$ac_objext conftstm.$ac_objext
6363 lt_save_LIBS="$LIBS"
6364 lt_save_CFLAGS="$CFLAGS"
6365 LIBS="conftstm.$ac_objext"
6366 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6368 (eval $ac_link) 2>&5
6369 ac_status=$?
6370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6371 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6372 pipe_works=yes
6373 fi
6374 LIBS="$lt_save_LIBS"
6375 CFLAGS="$lt_save_CFLAGS"
6376 else
6377 echo "cannot find nm_test_func in $nlist" >&5
6378 fi
6379 else
6380 echo "cannot find nm_test_var in $nlist" >&5
6381 fi
6382 else
6383 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6384 fi
6385 else
6386 echo "$progname: failed program was:" >&5
6387 cat conftest.$ac_ext >&5
6388 fi
6389 rm -rf conftest* conftst*
6390
6391 # Do not use the global_symbol_pipe unless it works.
6392 if test "$pipe_works" = yes; then
6393 break
6394 else
6395 lt_cv_sys_global_symbol_pipe=
6396 fi
6397 done
6398
6399 fi
6400
6401 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6402 lt_cv_sys_global_symbol_to_cdecl=
6403 fi
6404 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6406 $as_echo "failed" >&6; }
6407 else
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6409 $as_echo "ok" >&6; }
6410 fi
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434 # Check whether --enable-libtool-lock was given.
6435 if test "${enable_libtool_lock+set}" = set; then :
6436 enableval=$enable_libtool_lock;
6437 fi
6438
6439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6440
6441 # Some flags need to be propagated to the compiler or linker for good
6442 # libtool support.
6443 case $host in
6444 ia64-*-hpux*)
6445 # Find out which ABI we are using.
6446 echo 'int i;' > conftest.$ac_ext
6447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6448 (eval $ac_compile) 2>&5
6449 ac_status=$?
6450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6451 test $ac_status = 0; }; then
6452 case `/usr/bin/file conftest.$ac_objext` in
6453 *ELF-32*)
6454 HPUX_IA64_MODE="32"
6455 ;;
6456 *ELF-64*)
6457 HPUX_IA64_MODE="64"
6458 ;;
6459 esac
6460 fi
6461 rm -rf conftest*
6462 ;;
6463 *-*-irix6*)
6464 # Find out which ABI we are using.
6465 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6467 (eval $ac_compile) 2>&5
6468 ac_status=$?
6469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470 test $ac_status = 0; }; then
6471 if test "$lt_cv_prog_gnu_ld" = yes; then
6472 case `/usr/bin/file conftest.$ac_objext` in
6473 *32-bit*)
6474 LD="${LD-ld} -melf32bsmip"
6475 ;;
6476 *N32*)
6477 LD="${LD-ld} -melf32bmipn32"
6478 ;;
6479 *64-bit*)
6480 LD="${LD-ld} -melf64bmip"
6481 ;;
6482 esac
6483 else
6484 case `/usr/bin/file conftest.$ac_objext` in
6485 *32-bit*)
6486 LD="${LD-ld} -32"
6487 ;;
6488 *N32*)
6489 LD="${LD-ld} -n32"
6490 ;;
6491 *64-bit*)
6492 LD="${LD-ld} -64"
6493 ;;
6494 esac
6495 fi
6496 fi
6497 rm -rf conftest*
6498 ;;
6499
6500 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6501 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6502 # Find out which ABI we are using.
6503 echo 'int i;' > conftest.$ac_ext
6504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6505 (eval $ac_compile) 2>&5
6506 ac_status=$?
6507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508 test $ac_status = 0; }; then
6509 case `/usr/bin/file conftest.o` in
6510 *32-bit*)
6511 case $host in
6512 x86_64-*kfreebsd*-gnu)
6513 LD="${LD-ld} -m elf_i386_fbsd"
6514 ;;
6515 x86_64-*linux*)
6516 LD="${LD-ld} -m elf_i386"
6517 ;;
6518 ppc64-*linux*|powerpc64-*linux*)
6519 LD="${LD-ld} -m elf32ppclinux"
6520 ;;
6521 s390x-*linux*)
6522 LD="${LD-ld} -m elf_s390"
6523 ;;
6524 sparc64-*linux*)
6525 LD="${LD-ld} -m elf32_sparc"
6526 ;;
6527 esac
6528 ;;
6529 *64-bit*)
6530 case $host in
6531 x86_64-*kfreebsd*-gnu)
6532 LD="${LD-ld} -m elf_x86_64_fbsd"
6533 ;;
6534 x86_64-*linux*)
6535 LD="${LD-ld} -m elf_x86_64"
6536 ;;
6537 ppc*-*linux*|powerpc*-*linux*)
6538 LD="${LD-ld} -m elf64ppc"
6539 ;;
6540 s390*-*linux*|s390*-*tpf*)
6541 LD="${LD-ld} -m elf64_s390"
6542 ;;
6543 sparc*-*linux*)
6544 LD="${LD-ld} -m elf64_sparc"
6545 ;;
6546 esac
6547 ;;
6548 esac
6549 fi
6550 rm -rf conftest*
6551 ;;
6552
6553 *-*-sco3.2v5*)
6554 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6555 SAVE_CFLAGS="$CFLAGS"
6556 CFLAGS="$CFLAGS -belf"
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6558 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6559 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 ac_ext=c
6563 ac_cpp='$CPP $CPPFLAGS'
6564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6567
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570
6571 int
6572 main ()
6573 {
6574
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 if ac_fn_c_try_link "$LINENO"; then :
6580 lt_cv_cc_needs_belf=yes
6581 else
6582 lt_cv_cc_needs_belf=no
6583 fi
6584 rm -f core conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6586 ac_ext=c
6587 ac_cpp='$CPP $CPPFLAGS'
6588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6591
6592 fi
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6594 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6595 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6596 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6597 CFLAGS="$SAVE_CFLAGS"
6598 fi
6599 ;;
6600 *-*solaris*)
6601 # Find out which ABI we are using.
6602 echo 'int i;' > conftest.$ac_ext
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6604 (eval $ac_compile) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; }; then
6608 case `/usr/bin/file conftest.o` in
6609 *64-bit*)
6610 case $lt_cv_prog_gnu_ld in
6611 yes*)
6612 case $host in
6613 i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6614 LD="${LD-ld} -m elf_x86_64"
6615 ;;
6616 sparc*-*-solaris*)
6617 LD="${LD-ld} -m elf64_sparc"
6618 ;;
6619 esac
6620 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6621 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6622 LD="${LD-ld}_sol2"
6623 fi
6624 ;;
6625 *)
6626 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6627 LD="${LD-ld} -64"
6628 fi
6629 ;;
6630 esac
6631 ;;
6632 esac
6633 fi
6634 rm -rf conftest*
6635 ;;
6636 esac
6637
6638 need_locks="$enable_libtool_lock"
6639
6640
6641 case $host_os in
6642 rhapsody* | darwin*)
6643 if test -n "$ac_tool_prefix"; then
6644 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6645 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6647 $as_echo_n "checking for $ac_word... " >&6; }
6648 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6649 $as_echo_n "(cached) " >&6
6650 else
6651 if test -n "$DSYMUTIL"; then
6652 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6653 else
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655 for as_dir in $PATH
6656 do
6657 IFS=$as_save_IFS
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6663 break 2
6664 fi
6665 done
6666 done
6667 IFS=$as_save_IFS
6668
6669 fi
6670 fi
6671 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6672 if test -n "$DSYMUTIL"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6674 $as_echo "$DSYMUTIL" >&6; }
6675 else
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677 $as_echo "no" >&6; }
6678 fi
6679
6680
6681 fi
6682 if test -z "$ac_cv_prog_DSYMUTIL"; then
6683 ac_ct_DSYMUTIL=$DSYMUTIL
6684 # Extract the first word of "dsymutil", so it can be a program name with args.
6685 set dummy dsymutil; ac_word=$2
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687 $as_echo_n "checking for $ac_word... " >&6; }
6688 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6689 $as_echo_n "(cached) " >&6
6690 else
6691 if test -n "$ac_ct_DSYMUTIL"; then
6692 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6693 else
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
6699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 break 2
6704 fi
6705 done
6706 done
6707 IFS=$as_save_IFS
6708
6709 fi
6710 fi
6711 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6712 if test -n "$ac_ct_DSYMUTIL"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6714 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6715 else
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6718 fi
6719
6720 if test "x$ac_ct_DSYMUTIL" = x; then
6721 DSYMUTIL=":"
6722 else
6723 case $cross_compiling:$ac_tool_warned in
6724 yes:)
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6727 ac_tool_warned=yes ;;
6728 esac
6729 DSYMUTIL=$ac_ct_DSYMUTIL
6730 fi
6731 else
6732 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6733 fi
6734
6735 if test -n "$ac_tool_prefix"; then
6736 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6737 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6739 $as_echo_n "checking for $ac_word... " >&6; }
6740 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 if test -n "$NMEDIT"; then
6744 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6745 else
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 for as_dir in $PATH
6748 do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757 done
6758 done
6759 IFS=$as_save_IFS
6760
6761 fi
6762 fi
6763 NMEDIT=$ac_cv_prog_NMEDIT
6764 if test -n "$NMEDIT"; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6766 $as_echo "$NMEDIT" >&6; }
6767 else
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6769 $as_echo "no" >&6; }
6770 fi
6771
6772
6773 fi
6774 if test -z "$ac_cv_prog_NMEDIT"; then
6775 ac_ct_NMEDIT=$NMEDIT
6776 # Extract the first word of "nmedit", so it can be a program name with args.
6777 set dummy nmedit; ac_word=$2
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6779 $as_echo_n "checking for $ac_word... " >&6; }
6780 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6781 $as_echo_n "(cached) " >&6
6782 else
6783 if test -n "$ac_ct_NMEDIT"; then
6784 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6785 else
6786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787 for as_dir in $PATH
6788 do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
6791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6793 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6795 break 2
6796 fi
6797 done
6798 done
6799 IFS=$as_save_IFS
6800
6801 fi
6802 fi
6803 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6804 if test -n "$ac_ct_NMEDIT"; then
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6806 $as_echo "$ac_ct_NMEDIT" >&6; }
6807 else
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6809 $as_echo "no" >&6; }
6810 fi
6811
6812 if test "x$ac_ct_NMEDIT" = x; then
6813 NMEDIT=":"
6814 else
6815 case $cross_compiling:$ac_tool_warned in
6816 yes:)
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6819 ac_tool_warned=yes ;;
6820 esac
6821 NMEDIT=$ac_ct_NMEDIT
6822 fi
6823 else
6824 NMEDIT="$ac_cv_prog_NMEDIT"
6825 fi
6826
6827 if test -n "$ac_tool_prefix"; then
6828 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6829 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831 $as_echo_n "checking for $ac_word... " >&6; }
6832 if test "${ac_cv_prog_LIPO+set}" = set; then :
6833 $as_echo_n "(cached) " >&6
6834 else
6835 if test -n "$LIPO"; then
6836 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6837 else
6838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 for as_dir in $PATH
6840 do
6841 IFS=$as_save_IFS
6842 test -z "$as_dir" && as_dir=.
6843 for ac_exec_ext in '' $ac_executable_extensions; do
6844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847 break 2
6848 fi
6849 done
6850 done
6851 IFS=$as_save_IFS
6852
6853 fi
6854 fi
6855 LIPO=$ac_cv_prog_LIPO
6856 if test -n "$LIPO"; then
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6858 $as_echo "$LIPO" >&6; }
6859 else
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861 $as_echo "no" >&6; }
6862 fi
6863
6864
6865 fi
6866 if test -z "$ac_cv_prog_LIPO"; then
6867 ac_ct_LIPO=$LIPO
6868 # Extract the first word of "lipo", so it can be a program name with args.
6869 set dummy lipo; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6873 $as_echo_n "(cached) " >&6
6874 else
6875 if test -n "$ac_ct_LIPO"; then
6876 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881 IFS=$as_save_IFS
6882 test -z "$as_dir" && as_dir=.
6883 for ac_exec_ext in '' $ac_executable_extensions; do
6884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885 ac_cv_prog_ac_ct_LIPO="lipo"
6886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887 break 2
6888 fi
6889 done
6890 done
6891 IFS=$as_save_IFS
6892
6893 fi
6894 fi
6895 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6896 if test -n "$ac_ct_LIPO"; then
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6898 $as_echo "$ac_ct_LIPO" >&6; }
6899 else
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901 $as_echo "no" >&6; }
6902 fi
6903
6904 if test "x$ac_ct_LIPO" = x; then
6905 LIPO=":"
6906 else
6907 case $cross_compiling:$ac_tool_warned in
6908 yes:)
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6911 ac_tool_warned=yes ;;
6912 esac
6913 LIPO=$ac_ct_LIPO
6914 fi
6915 else
6916 LIPO="$ac_cv_prog_LIPO"
6917 fi
6918
6919 if test -n "$ac_tool_prefix"; then
6920 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6921 set dummy ${ac_tool_prefix}otool; ac_word=$2
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6923 $as_echo_n "checking for $ac_word... " >&6; }
6924 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 if test -n "$OTOOL"; then
6928 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 test -z "$as_dir" && as_dir=.
6935 for ac_exec_ext in '' $ac_executable_extensions; do
6936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6937 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939 break 2
6940 fi
6941 done
6942 done
6943 IFS=$as_save_IFS
6944
6945 fi
6946 fi
6947 OTOOL=$ac_cv_prog_OTOOL
6948 if test -n "$OTOOL"; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6950 $as_echo "$OTOOL" >&6; }
6951 else
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6954 fi
6955
6956
6957 fi
6958 if test -z "$ac_cv_prog_OTOOL"; then
6959 ac_ct_OTOOL=$OTOOL
6960 # Extract the first word of "otool", so it can be a program name with args.
6961 set dummy otool; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 if test -n "$ac_ct_OTOOL"; then
6968 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_prog_ac_ct_OTOOL="otool"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6980 fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6984
6985 fi
6986 fi
6987 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6988 if test -n "$ac_ct_OTOOL"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6990 $as_echo "$ac_ct_OTOOL" >&6; }
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6994 fi
6995
6996 if test "x$ac_ct_OTOOL" = x; then
6997 OTOOL=":"
6998 else
6999 case $cross_compiling:$ac_tool_warned in
7000 yes:)
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7003 ac_tool_warned=yes ;;
7004 esac
7005 OTOOL=$ac_ct_OTOOL
7006 fi
7007 else
7008 OTOOL="$ac_cv_prog_OTOOL"
7009 fi
7010
7011 if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7013 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7015 $as_echo_n "checking for $ac_word... " >&6; }
7016 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7017 $as_echo_n "(cached) " >&6
7018 else
7019 if test -n "$OTOOL64"; then
7020 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7021 else
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7023 for as_dir in $PATH
7024 do
7025 IFS=$as_save_IFS
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7031 break 2
7032 fi
7033 done
7034 done
7035 IFS=$as_save_IFS
7036
7037 fi
7038 fi
7039 OTOOL64=$ac_cv_prog_OTOOL64
7040 if test -n "$OTOOL64"; then
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7042 $as_echo "$OTOOL64" >&6; }
7043 else
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7045 $as_echo "no" >&6; }
7046 fi
7047
7048
7049 fi
7050 if test -z "$ac_cv_prog_OTOOL64"; then
7051 ac_ct_OTOOL64=$OTOOL64
7052 # Extract the first word of "otool64", so it can be a program name with args.
7053 set dummy otool64; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 if test -n "$ac_ct_OTOOL64"; then
7060 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7064 do
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_prog_ac_ct_OTOOL64="otool64"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7072 fi
7073 done
7074 done
7075 IFS=$as_save_IFS
7076
7077 fi
7078 fi
7079 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7080 if test -n "$ac_ct_OTOOL64"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7082 $as_echo "$ac_ct_OTOOL64" >&6; }
7083 else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7086 fi
7087
7088 if test "x$ac_ct_OTOOL64" = x; then
7089 OTOOL64=":"
7090 else
7091 case $cross_compiling:$ac_tool_warned in
7092 yes:)
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7095 ac_tool_warned=yes ;;
7096 esac
7097 OTOOL64=$ac_ct_OTOOL64
7098 fi
7099 else
7100 OTOOL64="$ac_cv_prog_OTOOL64"
7101 fi
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7130 $as_echo_n "checking for -single_module linker flag... " >&6; }
7131 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 lt_cv_apple_cc_single_mod=no
7135 if test -z "${LT_MULTI_MODULE}"; then
7136 # By default we will add the -single_module flag. You can override
7137 # by either setting the environment variable LT_MULTI_MODULE
7138 # non-empty at configure time, or by adding -multi_module to the
7139 # link flags.
7140 rm -rf libconftest.dylib*
7141 echo "int foo(void){return 1;}" > conftest.c
7142 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7143 -dynamiclib -Wl,-single_module conftest.c" >&5
7144 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7145 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7146 _lt_result=$?
7147 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7148 lt_cv_apple_cc_single_mod=yes
7149 else
7150 cat conftest.err >&5
7151 fi
7152 rm -rf libconftest.dylib*
7153 rm -f conftest.*
7154 fi
7155 fi
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7157 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7159 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7160 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 lt_cv_ld_exported_symbols_list=no
7164 save_LDFLAGS=$LDFLAGS
7165 echo "_main" > conftest.sym
7166 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7169
7170 int
7171 main ()
7172 {
7173
7174 ;
7175 return 0;
7176 }
7177 _ACEOF
7178 if ac_fn_c_try_link "$LINENO"; then :
7179 lt_cv_ld_exported_symbols_list=yes
7180 else
7181 lt_cv_ld_exported_symbols_list=no
7182 fi
7183 rm -f core conftest.err conftest.$ac_objext \
7184 conftest$ac_exeext conftest.$ac_ext
7185 LDFLAGS="$save_LDFLAGS"
7186
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7189 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7191 $as_echo_n "checking for -force_load linker flag... " >&6; }
7192 if test "${lt_cv_ld_force_load+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 lt_cv_ld_force_load=no
7196 cat > conftest.c << _LT_EOF
7197 int forced_loaded() { return 2;}
7198 _LT_EOF
7199 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7200 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7201 echo "$AR cru libconftest.a conftest.o" >&5
7202 $AR cru libconftest.a conftest.o 2>&5
7203 cat > conftest.c << _LT_EOF
7204 int main() { return 0;}
7205 _LT_EOF
7206 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7207 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7208 _lt_result=$?
7209 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7210 lt_cv_ld_force_load=yes
7211 else
7212 cat conftest.err >&5
7213 fi
7214 rm -f conftest.err libconftest.a conftest conftest.c
7215 rm -rf conftest.dSYM
7216
7217 fi
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7219 $as_echo "$lt_cv_ld_force_load" >&6; }
7220 case $host_os in
7221 rhapsody* | darwin1.[012])
7222 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7223 darwin1.*)
7224 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7225 darwin*) # darwin 5.x on
7226 # if running on 10.5 or later, the deployment target defaults
7227 # to the OS version, if on x86, and 10.4, the deployment
7228 # target defaults to 10.4. Don't you love it?
7229 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7230 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7231 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7232 10.[012]*)
7233 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7234 10.*)
7235 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7236 esac
7237 ;;
7238 esac
7239 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7240 _lt_dar_single_mod='$single_module'
7241 fi
7242 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7243 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7244 else
7245 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7246 fi
7247 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7248 _lt_dsymutil='~$DSYMUTIL $lib || :'
7249 else
7250 _lt_dsymutil=
7251 fi
7252 ;;
7253 esac
7254
7255 ac_ext=c
7256 ac_cpp='$CPP $CPPFLAGS'
7257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7261 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7262 # On Suns, sometimes $CPP names a directory.
7263 if test -n "$CPP" && test -d "$CPP"; then
7264 CPP=
7265 fi
7266 if test -z "$CPP"; then
7267 if test "${ac_cv_prog_CPP+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 # Double quotes because CPP needs to be expanded
7271 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7272 do
7273 ac_preproc_ok=false
7274 for ac_c_preproc_warn_flag in '' yes
7275 do
7276 # Use a header file that comes with gcc, so configuring glibc
7277 # with a fresh cross-compiler works.
7278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7279 # <limits.h> exists even on freestanding compilers.
7280 # On the NeXT, cc -E runs the code through the compiler's parser,
7281 # not just through cpp. "Syntax error" is here to catch this case.
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #ifdef __STDC__
7285 # include <limits.h>
7286 #else
7287 # include <assert.h>
7288 #endif
7289 Syntax error
7290 _ACEOF
7291 if ac_fn_c_try_cpp "$LINENO"; then :
7292
7293 else
7294 # Broken: fails on valid input.
7295 continue
7296 fi
7297 rm -f conftest.err conftest.$ac_ext
7298
7299 # OK, works on sane cases. Now check whether nonexistent headers
7300 # can be detected and how.
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 #include <ac_nonexistent.h>
7304 _ACEOF
7305 if ac_fn_c_try_cpp "$LINENO"; then :
7306 # Broken: success on invalid input.
7307 continue
7308 else
7309 # Passes both tests.
7310 ac_preproc_ok=:
7311 break
7312 fi
7313 rm -f conftest.err conftest.$ac_ext
7314
7315 done
7316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7317 rm -f conftest.err conftest.$ac_ext
7318 if $ac_preproc_ok; then :
7319 break
7320 fi
7321
7322 done
7323 ac_cv_prog_CPP=$CPP
7324
7325 fi
7326 CPP=$ac_cv_prog_CPP
7327 else
7328 ac_cv_prog_CPP=$CPP
7329 fi
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7331 $as_echo "$CPP" >&6; }
7332 ac_preproc_ok=false
7333 for ac_c_preproc_warn_flag in '' yes
7334 do
7335 # Use a header file that comes with gcc, so configuring glibc
7336 # with a fresh cross-compiler works.
7337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7338 # <limits.h> exists even on freestanding compilers.
7339 # On the NeXT, cc -E runs the code through the compiler's parser,
7340 # not just through cpp. "Syntax error" is here to catch this case.
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 #ifdef __STDC__
7344 # include <limits.h>
7345 #else
7346 # include <assert.h>
7347 #endif
7348 Syntax error
7349 _ACEOF
7350 if ac_fn_c_try_cpp "$LINENO"; then :
7351
7352 else
7353 # Broken: fails on valid input.
7354 continue
7355 fi
7356 rm -f conftest.err conftest.$ac_ext
7357
7358 # OK, works on sane cases. Now check whether nonexistent headers
7359 # can be detected and how.
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7362 #include <ac_nonexistent.h>
7363 _ACEOF
7364 if ac_fn_c_try_cpp "$LINENO"; then :
7365 # Broken: success on invalid input.
7366 continue
7367 else
7368 # Passes both tests.
7369 ac_preproc_ok=:
7370 break
7371 fi
7372 rm -f conftest.err conftest.$ac_ext
7373
7374 done
7375 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7376 rm -f conftest.err conftest.$ac_ext
7377 if $ac_preproc_ok; then :
7378
7379 else
7380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7382 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7383 See \`config.log' for more details." "$LINENO" 5; }
7384 fi
7385
7386 ac_ext=c
7387 ac_cpp='$CPP $CPPFLAGS'
7388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7391
7392
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7394 $as_echo_n "checking for ANSI C header files... " >&6; }
7395 if test "${ac_cv_header_stdc+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
7397 else
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 #include <stdlib.h>
7401 #include <stdarg.h>
7402 #include <string.h>
7403 #include <float.h>
7404
7405 int
7406 main ()
7407 {
7408
7409 ;
7410 return 0;
7411 }
7412 _ACEOF
7413 if ac_fn_c_try_compile "$LINENO"; then :
7414 ac_cv_header_stdc=yes
7415 else
7416 ac_cv_header_stdc=no
7417 fi
7418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7419
7420 if test $ac_cv_header_stdc = yes; then
7421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7424 #include <string.h>
7425
7426 _ACEOF
7427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7428 $EGREP "memchr" >/dev/null 2>&1; then :
7429
7430 else
7431 ac_cv_header_stdc=no
7432 fi
7433 rm -f conftest*
7434
7435 fi
7436
7437 if test $ac_cv_header_stdc = yes; then
7438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7440 /* end confdefs.h. */
7441 #include <stdlib.h>
7442
7443 _ACEOF
7444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7445 $EGREP "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7456 if test "$cross_compiling" = yes; then :
7457 :
7458 else
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 #include <ctype.h>
7462 #include <stdlib.h>
7463 #if ((' ' & 0x0FF) == 0x020)
7464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7466 #else
7467 # define ISLOWER(c) \
7468 (('a' <= (c) && (c) <= 'i') \
7469 || ('j' <= (c) && (c) <= 'r') \
7470 || ('s' <= (c) && (c) <= 'z'))
7471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7472 #endif
7473
7474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7475 int
7476 main ()
7477 {
7478 int i;
7479 for (i = 0; i < 256; i++)
7480 if (XOR (islower (i), ISLOWER (i))
7481 || toupper (i) != TOUPPER (i))
7482 return 2;
7483 return 0;
7484 }
7485 _ACEOF
7486 if ac_fn_c_try_run "$LINENO"; then :
7487
7488 else
7489 ac_cv_header_stdc=no
7490 fi
7491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7492 conftest.$ac_objext conftest.beam conftest.$ac_ext
7493 fi
7494
7495 fi
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7498 $as_echo "$ac_cv_header_stdc" >&6; }
7499 if test $ac_cv_header_stdc = yes; then
7500
7501 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7502
7503 fi
7504
7505 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7506 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7507 inttypes.h stdint.h unistd.h
7508 do :
7509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7511 "
7512 eval as_val=\$$as_ac_Header
7513 if test "x$as_val" = x""yes; then :
7514 cat >>confdefs.h <<_ACEOF
7515 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7516 _ACEOF
7517
7518 fi
7519
7520 done
7521
7522
7523 for ac_header in dlfcn.h
7524 do :
7525 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7526 "
7527 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7528 cat >>confdefs.h <<_ACEOF
7529 #define HAVE_DLFCN_H 1
7530 _ACEOF
7531
7532 fi
7533
7534 done
7535
7536 if test -n "$ac_tool_prefix"; then
7537 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_GOC+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$GOC"; then
7545 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 GOC=$ac_cv_prog_GOC
7565 if test -n "$GOC"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7567 $as_echo "$GOC" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_GOC"; then
7576 ac_ct_GOC=$GOC
7577 # Extract the first word of "gccgo", so it can be a program name with args.
7578 set dummy gccgo; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7582 $as_echo_n "(cached) " >&6
7583 else
7584 if test -n "$ac_ct_GOC"; then
7585 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_prog_ac_ct_GOC="gccgo"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598 done
7599 done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7605 if test -n "$ac_ct_GOC"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7607 $as_echo "$ac_ct_GOC" >&6; }
7608 else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613 if test "x$ac_ct_GOC" = x; then
7614 GOC=""
7615 else
7616 case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622 GOC=$ac_ct_GOC
7623 fi
7624 else
7625 GOC="$ac_cv_prog_GOC"
7626 fi
7627
7628
7629
7630
7631
7632
7633 # Set options
7634
7635
7636
7637
7638 enable_win32_dll=no
7639
7640
7641 # Check whether --enable-shared was given.
7642 if test "${enable_shared+set}" = set; then :
7643 enableval=$enable_shared; p=${PACKAGE-default}
7644 case $enableval in
7645 yes) enable_shared=yes ;;
7646 no) enable_shared=no ;;
7647 *)
7648 enable_shared=no
7649 # Look at the argument we got. We use all the common list separators.
7650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7651 for pkg in $enableval; do
7652 IFS="$lt_save_ifs"
7653 if test "X$pkg" = "X$p"; then
7654 enable_shared=yes
7655 fi
7656 done
7657 IFS="$lt_save_ifs"
7658 ;;
7659 esac
7660 else
7661 enable_shared=yes
7662 fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672 # Check whether --enable-static was given.
7673 if test "${enable_static+set}" = set; then :
7674 enableval=$enable_static; p=${PACKAGE-default}
7675 case $enableval in
7676 yes) enable_static=yes ;;
7677 no) enable_static=no ;;
7678 *)
7679 enable_static=no
7680 # Look at the argument we got. We use all the common list separators.
7681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7682 for pkg in $enableval; do
7683 IFS="$lt_save_ifs"
7684 if test "X$pkg" = "X$p"; then
7685 enable_static=yes
7686 fi
7687 done
7688 IFS="$lt_save_ifs"
7689 ;;
7690 esac
7691 else
7692 enable_static=yes
7693 fi
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704 # Check whether --with-pic was given.
7705 if test "${with_pic+set}" = set; then :
7706 withval=$with_pic; pic_mode="$withval"
7707 else
7708 pic_mode=default
7709 fi
7710
7711
7712 test -z "$pic_mode" && pic_mode=default
7713
7714
7715
7716
7717
7718
7719
7720 # Check whether --enable-fast-install was given.
7721 if test "${enable_fast_install+set}" = set; then :
7722 enableval=$enable_fast_install; p=${PACKAGE-default}
7723 case $enableval in
7724 yes) enable_fast_install=yes ;;
7725 no) enable_fast_install=no ;;
7726 *)
7727 enable_fast_install=no
7728 # Look at the argument we got. We use all the common list separators.
7729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7730 for pkg in $enableval; do
7731 IFS="$lt_save_ifs"
7732 if test "X$pkg" = "X$p"; then
7733 enable_fast_install=yes
7734 fi
7735 done
7736 IFS="$lt_save_ifs"
7737 ;;
7738 esac
7739 else
7740 enable_fast_install=yes
7741 fi
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 # This can be used to rebuild libtool when needed
7754 LIBTOOL_DEPS="$ltmain"
7755
7756 # Always use our own libtool.
7757 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 test -z "$LN_S" && LN_S="ln -s"
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 if test -n "${ZSH_VERSION+set}" ; then
7800 setopt NO_GLOB_SUBST
7801 fi
7802
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7804 $as_echo_n "checking for objdir... " >&6; }
7805 if test "${lt_cv_objdir+set}" = set; then :
7806 $as_echo_n "(cached) " >&6
7807 else
7808 rm -f .libs 2>/dev/null
7809 mkdir .libs 2>/dev/null
7810 if test -d .libs; then
7811 lt_cv_objdir=.libs
7812 else
7813 # MS-DOS does not allow filenames that begin with a dot.
7814 lt_cv_objdir=_libs
7815 fi
7816 rmdir .libs 2>/dev/null
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7819 $as_echo "$lt_cv_objdir" >&6; }
7820 objdir=$lt_cv_objdir
7821
7822
7823
7824
7825
7826 cat >>confdefs.h <<_ACEOF
7827 #define LT_OBJDIR "$lt_cv_objdir/"
7828 _ACEOF
7829
7830
7831
7832
7833 case $host_os in
7834 aix3*)
7835 # AIX sometimes has problems with the GCC collect2 program. For some
7836 # reason, if we set the COLLECT_NAMES environment variable, the problems
7837 # vanish in a puff of smoke.
7838 if test "X${COLLECT_NAMES+set}" != Xset; then
7839 COLLECT_NAMES=
7840 export COLLECT_NAMES
7841 fi
7842 ;;
7843 esac
7844
7845 # Global variables:
7846 ofile=libtool
7847 can_build_shared=yes
7848
7849 # All known linkers require a `.a' archive for static linking (except MSVC,
7850 # which needs '.lib').
7851 libext=a
7852
7853 with_gnu_ld="$lt_cv_prog_gnu_ld"
7854
7855 old_CC="$CC"
7856 old_CFLAGS="$CFLAGS"
7857
7858 # Set sane defaults for various variables
7859 test -z "$CC" && CC=cc
7860 test -z "$LTCC" && LTCC=$CC
7861 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7862 test -z "$LD" && LD=ld
7863 test -z "$ac_objext" && ac_objext=o
7864
7865 for cc_temp in $compiler""; do
7866 case $cc_temp in
7867 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7868 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7869 \-*) ;;
7870 *) break;;
7871 esac
7872 done
7873 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7874
7875
7876 # Only perform the check for file, if the check method requires it
7877 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7878 case $deplibs_check_method in
7879 file_magic*)
7880 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7882 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 case $MAGIC_CMD in
7887 [\\/*] | ?:[\\/]*)
7888 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7889 ;;
7890 *)
7891 lt_save_MAGIC_CMD="$MAGIC_CMD"
7892 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7893 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7894 for ac_dir in $ac_dummy; do
7895 IFS="$lt_save_ifs"
7896 test -z "$ac_dir" && ac_dir=.
7897 if test -f $ac_dir/${ac_tool_prefix}file; then
7898 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7899 if test -n "$file_magic_test_file"; then
7900 case $deplibs_check_method in
7901 "file_magic "*)
7902 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7903 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7905 $EGREP "$file_magic_regex" > /dev/null; then
7906 :
7907 else
7908 cat <<_LT_EOF 1>&2
7909
7910 *** Warning: the command libtool uses to detect shared libraries,
7911 *** $file_magic_cmd, produces output that libtool cannot recognize.
7912 *** The result is that libtool may fail to recognize shared libraries
7913 *** as such. This will affect the creation of libtool libraries that
7914 *** depend on shared libraries, but programs linked with such libtool
7915 *** libraries will work regardless of this problem. Nevertheless, you
7916 *** may want to report the problem to your system manager and/or to
7917 *** bug-libtool@gnu.org
7918
7919 _LT_EOF
7920 fi ;;
7921 esac
7922 fi
7923 break
7924 fi
7925 done
7926 IFS="$lt_save_ifs"
7927 MAGIC_CMD="$lt_save_MAGIC_CMD"
7928 ;;
7929 esac
7930 fi
7931
7932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933 if test -n "$MAGIC_CMD"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7935 $as_echo "$MAGIC_CMD" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939 fi
7940
7941
7942
7943
7944
7945 if test -z "$lt_cv_path_MAGIC_CMD"; then
7946 if test -n "$ac_tool_prefix"; then
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7948 $as_echo_n "checking for file... " >&6; }
7949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 case $MAGIC_CMD in
7953 [\\/*] | ?:[\\/]*)
7954 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7955 ;;
7956 *)
7957 lt_save_MAGIC_CMD="$MAGIC_CMD"
7958 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7959 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7960 for ac_dir in $ac_dummy; do
7961 IFS="$lt_save_ifs"
7962 test -z "$ac_dir" && ac_dir=.
7963 if test -f $ac_dir/file; then
7964 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7965 if test -n "$file_magic_test_file"; then
7966 case $deplibs_check_method in
7967 "file_magic "*)
7968 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7969 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7970 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7971 $EGREP "$file_magic_regex" > /dev/null; then
7972 :
7973 else
7974 cat <<_LT_EOF 1>&2
7975
7976 *** Warning: the command libtool uses to detect shared libraries,
7977 *** $file_magic_cmd, produces output that libtool cannot recognize.
7978 *** The result is that libtool may fail to recognize shared libraries
7979 *** as such. This will affect the creation of libtool libraries that
7980 *** depend on shared libraries, but programs linked with such libtool
7981 *** libraries will work regardless of this problem. Nevertheless, you
7982 *** may want to report the problem to your system manager and/or to
7983 *** bug-libtool@gnu.org
7984
7985 _LT_EOF
7986 fi ;;
7987 esac
7988 fi
7989 break
7990 fi
7991 done
7992 IFS="$lt_save_ifs"
7993 MAGIC_CMD="$lt_save_MAGIC_CMD"
7994 ;;
7995 esac
7996 fi
7997
7998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7999 if test -n "$MAGIC_CMD"; then
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8001 $as_echo "$MAGIC_CMD" >&6; }
8002 else
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007
8008 else
8009 MAGIC_CMD=:
8010 fi
8011 fi
8012
8013 fi
8014 ;;
8015 esac
8016
8017 # Use C for the default configuration in the libtool script
8018
8019 lt_save_CC="$CC"
8020 ac_ext=c
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025
8026
8027 # Source file extension for C test sources.
8028 ac_ext=c
8029
8030 # Object file extension for compiled C test sources.
8031 objext=o
8032 objext=$objext
8033
8034 # Code to be used in simple compile tests
8035 lt_simple_compile_test_code="int some_variable = 0;"
8036
8037 # Code to be used in simple link tests
8038 lt_simple_link_test_code='int main(){return(0);}'
8039
8040
8041
8042
8043
8044
8045
8046 # If no C compiler was specified, use CC.
8047 LTCC=${LTCC-"$CC"}
8048
8049 # If no C compiler flags were specified, use CFLAGS.
8050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8051
8052 # Allow CC to be a program name with arguments.
8053 compiler=$CC
8054
8055 # Save the default compiler, since it gets overwritten when the other
8056 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8057 compiler_DEFAULT=$CC
8058
8059 # save warnings/boilerplate of simple test code
8060 ac_outfile=conftest.$ac_objext
8061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8063 _lt_compiler_boilerplate=`cat conftest.err`
8064 $RM conftest*
8065
8066 ac_outfile=conftest.$ac_objext
8067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069 _lt_linker_boilerplate=`cat conftest.err`
8070 $RM -r conftest*
8071
8072
8073 ## CAVEAT EMPTOR:
8074 ## There is no encapsulation within the following macros, do not change
8075 ## the running order or otherwise move them around unless you know exactly
8076 ## what you are doing...
8077 if test -n "$compiler"; then
8078
8079 lt_prog_compiler_no_builtin_flag=
8080
8081 if test "$GCC" = yes; then
8082 case $cc_basename in
8083 nvcc*)
8084 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8085 *)
8086 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8087 esac
8088
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8090 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8091 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
8093 else
8094 lt_cv_prog_compiler_rtti_exceptions=no
8095 ac_outfile=conftest.$ac_objext
8096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097 lt_compiler_flag="-fno-rtti -fno-exceptions"
8098 # Insert the option either (1) after the last *FLAGS variable, or
8099 # (2) before a word containing "conftest.", or (3) at the end.
8100 # Note that $ac_compile itself does not contain backslashes and begins
8101 # with a dollar sign (not a hyphen), so the echo should work correctly.
8102 # The option is referenced via a variable to avoid confusing sed.
8103 lt_compile=`echo "$ac_compile" | $SED \
8104 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8106 -e 's:$: $lt_compiler_flag:'`
8107 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8108 (eval "$lt_compile" 2>conftest.err)
8109 ac_status=$?
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 if (exit $ac_status) && test -s "$ac_outfile"; then
8113 # The compiler can only warn and ignore the option if not recognized
8114 # So say no if there are warnings other than the usual output.
8115 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8116 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8117 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8118 lt_cv_prog_compiler_rtti_exceptions=yes
8119 fi
8120 fi
8121 $RM conftest*
8122
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8125 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8126
8127 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8128 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8129 else
8130 :
8131 fi
8132
8133 fi
8134
8135
8136
8137
8138
8139
8140 lt_prog_compiler_wl=
8141 lt_prog_compiler_pic=
8142 lt_prog_compiler_static=
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8146
8147 if test "$GCC" = yes; then
8148 lt_prog_compiler_wl='-Wl,'
8149 lt_prog_compiler_static='-static'
8150
8151 case $host_os in
8152 aix*)
8153 # All AIX code is PIC.
8154 if test "$host_cpu" = ia64; then
8155 # AIX 5 now supports IA64 processor
8156 lt_prog_compiler_static='-Bstatic'
8157 fi
8158 ;;
8159
8160 amigaos*)
8161 case $host_cpu in
8162 powerpc)
8163 # see comment about AmigaOS4 .so support
8164 lt_prog_compiler_pic='-fPIC'
8165 ;;
8166 m68k)
8167 # FIXME: we need at least 68020 code to build shared libraries, but
8168 # adding the `-m68020' flag to GCC prevents building anything better,
8169 # like `-m68040'.
8170 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8171 ;;
8172 esac
8173 ;;
8174
8175 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8176 # PIC is the default for these OSes.
8177 ;;
8178
8179 mingw* | cygwin* | pw32* | os2* | cegcc*)
8180 # This hack is so that the source file can tell whether it is being
8181 # built for inclusion in a dll (and should export symbols for example).
8182 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8183 # (--disable-auto-import) libraries
8184 lt_prog_compiler_pic='-DDLL_EXPORT'
8185 ;;
8186
8187 darwin* | rhapsody*)
8188 # PIC is the default on this platform
8189 # Common symbols not allowed in MH_DYLIB files
8190 lt_prog_compiler_pic='-fno-common'
8191 ;;
8192
8193 haiku*)
8194 # PIC is the default for Haiku.
8195 # The "-static" flag exists, but is broken.
8196 lt_prog_compiler_static=
8197 ;;
8198
8199 hpux*)
8200 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8201 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8202 # sets the default TLS model and affects inlining.
8203 case $host_cpu in
8204 hppa*64*)
8205 # +Z the default
8206 ;;
8207 *)
8208 lt_prog_compiler_pic='-fPIC'
8209 ;;
8210 esac
8211 ;;
8212
8213 interix[3-9]*)
8214 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8215 # Instead, we relocate shared libraries at runtime.
8216 ;;
8217
8218 msdosdjgpp*)
8219 # Just because we use GCC doesn't mean we suddenly get shared libraries
8220 # on systems that don't support them.
8221 lt_prog_compiler_can_build_shared=no
8222 enable_shared=no
8223 ;;
8224
8225 *nto* | *qnx*)
8226 # QNX uses GNU C++, but need to define -shared option too, otherwise
8227 # it will coredump.
8228 lt_prog_compiler_pic='-fPIC -shared'
8229 ;;
8230
8231 sysv4*MP*)
8232 if test -d /usr/nec; then
8233 lt_prog_compiler_pic=-Kconform_pic
8234 fi
8235 ;;
8236
8237 *)
8238 lt_prog_compiler_pic='-fPIC'
8239 ;;
8240 esac
8241
8242 case $cc_basename in
8243 nvcc*) # Cuda Compiler Driver 2.2
8244 lt_prog_compiler_wl='-Xlinker '
8245 lt_prog_compiler_pic='-Xcompiler -fPIC'
8246 ;;
8247 esac
8248 else
8249 # PORTME Check for flag to pass linker flags through the system compiler.
8250 case $host_os in
8251 aix*)
8252 lt_prog_compiler_wl='-Wl,'
8253 if test "$host_cpu" = ia64; then
8254 # AIX 5 now supports IA64 processor
8255 lt_prog_compiler_static='-Bstatic'
8256 else
8257 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8258 fi
8259 ;;
8260
8261 mingw* | cygwin* | pw32* | os2* | cegcc*)
8262 # This hack is so that the source file can tell whether it is being
8263 # built for inclusion in a dll (and should export symbols for example).
8264 lt_prog_compiler_pic='-DDLL_EXPORT'
8265 ;;
8266
8267 hpux9* | hpux10* | hpux11*)
8268 lt_prog_compiler_wl='-Wl,'
8269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8270 # not for PA HP-UX.
8271 case $host_cpu in
8272 hppa*64*|ia64*)
8273 # +Z the default
8274 ;;
8275 *)
8276 lt_prog_compiler_pic='+Z'
8277 ;;
8278 esac
8279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8280 lt_prog_compiler_static='${wl}-a ${wl}archive'
8281 ;;
8282
8283 irix5* | irix6* | nonstopux*)
8284 lt_prog_compiler_wl='-Wl,'
8285 # PIC (with -KPIC) is the default.
8286 lt_prog_compiler_static='-non_shared'
8287 ;;
8288
8289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8290 case $cc_basename in
8291 # old Intel for x86_64 which still supported -KPIC.
8292 ecc*)
8293 lt_prog_compiler_wl='-Wl,'
8294 lt_prog_compiler_pic='-KPIC'
8295 lt_prog_compiler_static='-static'
8296 ;;
8297 # icc used to be incompatible with GCC.
8298 # ICC 10 doesn't accept -KPIC any more.
8299 icc* | ifort*)
8300 lt_prog_compiler_wl='-Wl,'
8301 lt_prog_compiler_pic='-fPIC'
8302 lt_prog_compiler_static='-static'
8303 ;;
8304 # Lahey Fortran 8.1.
8305 lf95*)
8306 lt_prog_compiler_wl='-Wl,'
8307 lt_prog_compiler_pic='--shared'
8308 lt_prog_compiler_static='--static'
8309 ;;
8310 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8311 # Portland Group compilers (*not* the Pentium gcc compiler,
8312 # which looks to be a dead project)
8313 lt_prog_compiler_wl='-Wl,'
8314 lt_prog_compiler_pic='-fpic'
8315 lt_prog_compiler_static='-Bstatic'
8316 ;;
8317 ccc*)
8318 lt_prog_compiler_wl='-Wl,'
8319 # All Alpha code is PIC.
8320 lt_prog_compiler_static='-non_shared'
8321 ;;
8322 xl* | bgxl* | bgf* | mpixl*)
8323 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8324 lt_prog_compiler_wl='-Wl,'
8325 lt_prog_compiler_pic='-qpic'
8326 lt_prog_compiler_static='-qstaticlink'
8327 ;;
8328 *)
8329 case `$CC -V 2>&1 | sed 5q` in
8330 *Sun\ F* | *Sun*Fortran*)
8331 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8332 lt_prog_compiler_pic='-KPIC'
8333 lt_prog_compiler_static='-Bstatic'
8334 lt_prog_compiler_wl=''
8335 ;;
8336 *Sun\ C*)
8337 # Sun C 5.9
8338 lt_prog_compiler_pic='-KPIC'
8339 lt_prog_compiler_static='-Bstatic'
8340 lt_prog_compiler_wl='-Wl,'
8341 ;;
8342 esac
8343 ;;
8344 esac
8345 ;;
8346
8347 newsos6)
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 ;;
8351
8352 *nto* | *qnx*)
8353 # QNX uses GNU C++, but need to define -shared option too, otherwise
8354 # it will coredump.
8355 lt_prog_compiler_pic='-fPIC -shared'
8356 ;;
8357
8358 osf3* | osf4* | osf5*)
8359 lt_prog_compiler_wl='-Wl,'
8360 # All OSF/1 code is PIC.
8361 lt_prog_compiler_static='-non_shared'
8362 ;;
8363
8364 rdos*)
8365 lt_prog_compiler_static='-non_shared'
8366 ;;
8367
8368 solaris*)
8369 lt_prog_compiler_pic='-KPIC'
8370 lt_prog_compiler_static='-Bstatic'
8371 case $cc_basename in
8372 f77* | f90* | f95*)
8373 lt_prog_compiler_wl='-Qoption ld ';;
8374 *)
8375 lt_prog_compiler_wl='-Wl,';;
8376 esac
8377 ;;
8378
8379 sunos4*)
8380 lt_prog_compiler_wl='-Qoption ld '
8381 lt_prog_compiler_pic='-PIC'
8382 lt_prog_compiler_static='-Bstatic'
8383 ;;
8384
8385 sysv4 | sysv4.2uw2* | sysv4.3*)
8386 lt_prog_compiler_wl='-Wl,'
8387 lt_prog_compiler_pic='-KPIC'
8388 lt_prog_compiler_static='-Bstatic'
8389 ;;
8390
8391 sysv4*MP*)
8392 if test -d /usr/nec ;then
8393 lt_prog_compiler_pic='-Kconform_pic'
8394 lt_prog_compiler_static='-Bstatic'
8395 fi
8396 ;;
8397
8398 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-Bstatic'
8402 ;;
8403
8404 unicos*)
8405 lt_prog_compiler_wl='-Wl,'
8406 lt_prog_compiler_can_build_shared=no
8407 ;;
8408
8409 uts4*)
8410 lt_prog_compiler_pic='-pic'
8411 lt_prog_compiler_static='-Bstatic'
8412 ;;
8413
8414 *)
8415 lt_prog_compiler_can_build_shared=no
8416 ;;
8417 esac
8418 fi
8419
8420 case $host_os in
8421 # For platforms which do not support PIC, -DPIC is meaningless:
8422 *djgpp*)
8423 lt_prog_compiler_pic=
8424 ;;
8425 *)
8426 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8427 ;;
8428 esac
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8430 $as_echo "$lt_prog_compiler_pic" >&6; }
8431
8432
8433
8434
8435
8436
8437 #
8438 # Check to make sure the PIC flag actually works.
8439 #
8440 if test -n "$lt_prog_compiler_pic"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8442 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8443 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8444 $as_echo_n "(cached) " >&6
8445 else
8446 lt_cv_prog_compiler_pic_works=no
8447 ac_outfile=conftest.$ac_objext
8448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8450 # Insert the option either (1) after the last *FLAGS variable, or
8451 # (2) before a word containing "conftest.", or (3) at the end.
8452 # Note that $ac_compile itself does not contain backslashes and begins
8453 # with a dollar sign (not a hyphen), so the echo should work correctly.
8454 # The option is referenced via a variable to avoid confusing sed.
8455 lt_compile=`echo "$ac_compile" | $SED \
8456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458 -e 's:$: $lt_compiler_flag:'`
8459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460 (eval "$lt_compile" 2>conftest.err)
8461 ac_status=$?
8462 cat conftest.err >&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 if (exit $ac_status) && test -s "$ac_outfile"; then
8465 # The compiler can only warn and ignore the option if not recognized
8466 # So say no if there are warnings other than the usual output.
8467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8470 lt_cv_prog_compiler_pic_works=yes
8471 fi
8472 fi
8473 $RM conftest*
8474
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8477 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8478
8479 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8480 case $lt_prog_compiler_pic in
8481 "" | " "*) ;;
8482 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8483 esac
8484 else
8485 lt_prog_compiler_pic=
8486 lt_prog_compiler_can_build_shared=no
8487 fi
8488
8489 fi
8490
8491
8492
8493
8494
8495
8496 #
8497 # Check to make sure the static flag actually works.
8498 #
8499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8502 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 lt_cv_prog_compiler_static_works=no
8506 save_LDFLAGS="$LDFLAGS"
8507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8508 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8510 # The linker can only warn and ignore the option if not recognized
8511 # So say no if there are warnings
8512 if test -s conftest.err; then
8513 # Append any errors to the config.log.
8514 cat conftest.err 1>&5
8515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8517 if diff conftest.exp conftest.er2 >/dev/null; then
8518 lt_cv_prog_compiler_static_works=yes
8519 fi
8520 else
8521 lt_cv_prog_compiler_static_works=yes
8522 fi
8523 fi
8524 $RM -r conftest*
8525 LDFLAGS="$save_LDFLAGS"
8526
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8529 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8530
8531 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8532 :
8533 else
8534 lt_prog_compiler_static=
8535 fi
8536
8537
8538
8539
8540
8541
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_prog_compiler_c_o=no
8549 $RM -r conftest 2>/dev/null
8550 mkdir conftest
8551 cd conftest
8552 mkdir out
8553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554
8555 lt_compiler_flag="-o out/conftest2.$ac_objext"
8556 # Insert the option either (1) after the last *FLAGS variable, or
8557 # (2) before a word containing "conftest.", or (3) at the end.
8558 # Note that $ac_compile itself does not contain backslashes and begins
8559 # with a dollar sign (not a hyphen), so the echo should work correctly.
8560 lt_compile=`echo "$ac_compile" | $SED \
8561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563 -e 's:$: $lt_compiler_flag:'`
8564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565 (eval "$lt_compile" 2>out/conftest.err)
8566 ac_status=$?
8567 cat out/conftest.err >&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8570 then
8571 # The compiler can only warn and ignore the option if not recognized
8572 # So say no if there are warnings
8573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8576 lt_cv_prog_compiler_c_o=yes
8577 fi
8578 fi
8579 chmod u+w . 2>&5
8580 $RM conftest*
8581 # SGI C++ compiler will create directory out/ii_files/ for
8582 # template instantiation
8583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8584 $RM out/* && rmdir out
8585 cd ..
8586 $RM -r conftest
8587 $RM conftest*
8588
8589 fi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8592
8593
8594
8595
8596
8597
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8600 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 lt_cv_prog_compiler_c_o=no
8604 $RM -r conftest 2>/dev/null
8605 mkdir conftest
8606 cd conftest
8607 mkdir out
8608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609
8610 lt_compiler_flag="-o out/conftest2.$ac_objext"
8611 # Insert the option either (1) after the last *FLAGS variable, or
8612 # (2) before a word containing "conftest.", or (3) at the end.
8613 # Note that $ac_compile itself does not contain backslashes and begins
8614 # with a dollar sign (not a hyphen), so the echo should work correctly.
8615 lt_compile=`echo "$ac_compile" | $SED \
8616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618 -e 's:$: $lt_compiler_flag:'`
8619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8620 (eval "$lt_compile" 2>out/conftest.err)
8621 ac_status=$?
8622 cat out/conftest.err >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8625 then
8626 # The compiler can only warn and ignore the option if not recognized
8627 # So say no if there are warnings
8628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8631 lt_cv_prog_compiler_c_o=yes
8632 fi
8633 fi
8634 chmod u+w . 2>&5
8635 $RM conftest*
8636 # SGI C++ compiler will create directory out/ii_files/ for
8637 # template instantiation
8638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8639 $RM out/* && rmdir out
8640 cd ..
8641 $RM -r conftest
8642 $RM conftest*
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8647
8648
8649
8650
8651 hard_links="nottested"
8652 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8653 # do not overwrite the value of need_locks provided by the user
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8655 $as_echo_n "checking if we can lock with hard links... " >&6; }
8656 hard_links=yes
8657 $RM conftest*
8658 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8659 touch conftest.a
8660 ln conftest.a conftest.b 2>&5 || hard_links=no
8661 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8663 $as_echo "$hard_links" >&6; }
8664 if test "$hard_links" = no; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8666 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8667 need_locks=warn
8668 fi
8669 else
8670 need_locks=no
8671 fi
8672
8673
8674
8675
8676
8677
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8679 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8680
8681 runpath_var=
8682 allow_undefined_flag=
8683 always_export_symbols=no
8684 archive_cmds=
8685 archive_expsym_cmds=
8686 compiler_needs_object=no
8687 enable_shared_with_static_runtimes=no
8688 export_dynamic_flag_spec=
8689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8690 hardcode_automatic=no
8691 hardcode_direct=no
8692 hardcode_direct_absolute=no
8693 hardcode_libdir_flag_spec=
8694 hardcode_libdir_flag_spec_ld=
8695 hardcode_libdir_separator=
8696 hardcode_minus_L=no
8697 hardcode_shlibpath_var=unsupported
8698 inherit_rpath=no
8699 link_all_deplibs=unknown
8700 module_cmds=
8701 module_expsym_cmds=
8702 old_archive_from_new_cmds=
8703 old_archive_from_expsyms_cmds=
8704 thread_safe_flag_spec=
8705 whole_archive_flag_spec=
8706 # include_expsyms should be a list of space-separated symbols to be *always*
8707 # included in the symbol list
8708 include_expsyms=
8709 # exclude_expsyms can be an extended regexp of symbols to exclude
8710 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8711 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8712 # as well as any symbol that contains `d'.
8713 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8714 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8715 # platforms (ab)use it in PIC code, but their linkers get confused if
8716 # the symbol is explicitly referenced. Since portable code cannot
8717 # rely on this symbol name, it's probably fine to never include it in
8718 # preloaded symbol tables.
8719 # Exclude shared library initialization/finalization symbols.
8720 extract_expsyms_cmds=
8721
8722 case $host_os in
8723 cygwin* | mingw* | pw32* | cegcc*)
8724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8725 # When not using gcc, we currently assume that we are using
8726 # Microsoft Visual C++.
8727 if test "$GCC" != yes; then
8728 with_gnu_ld=no
8729 fi
8730 ;;
8731 interix*)
8732 # we just hope/assume this is gcc and not c89 (= MSVC++)
8733 with_gnu_ld=yes
8734 ;;
8735 openbsd*)
8736 with_gnu_ld=no
8737 ;;
8738 esac
8739
8740 ld_shlibs=yes
8741
8742 # On some targets, GNU ld is compatible enough with the native linker
8743 # that we're better off using the native interface for both.
8744 lt_use_gnu_ld_interface=no
8745 if test "$with_gnu_ld" = yes; then
8746 case $host_os in
8747 aix*)
8748 # The AIX port of GNU ld has always aspired to compatibility
8749 # with the native linker. However, as the warning in the GNU ld
8750 # block says, versions before 2.19.5* couldn't really create working
8751 # shared libraries, regardless of the interface used.
8752 case `$LD -v 2>&1` in
8753 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8754 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8755 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8756 *)
8757 lt_use_gnu_ld_interface=yes
8758 ;;
8759 esac
8760 ;;
8761 *)
8762 lt_use_gnu_ld_interface=yes
8763 ;;
8764 esac
8765 fi
8766
8767 if test "$lt_use_gnu_ld_interface" = yes; then
8768 # If archive_cmds runs LD, not CC, wlarc should be empty
8769 wlarc='${wl}'
8770
8771 # Set some defaults for GNU ld with shared library support. These
8772 # are reset later if shared libraries are not supported. Putting them
8773 # here allows them to be overridden if necessary.
8774 runpath_var=LD_RUN_PATH
8775 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776 export_dynamic_flag_spec='${wl}--export-dynamic'
8777 # ancient GNU ld didn't support --whole-archive et. al.
8778 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8779 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8780 else
8781 whole_archive_flag_spec=
8782 fi
8783 supports_anon_versioning=no
8784 case `$LD -v 2>&1` in
8785 *GNU\ gold*) supports_anon_versioning=yes ;;
8786 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8787 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8788 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8789 *\ 2.11.*) ;; # other 2.11 versions
8790 *) supports_anon_versioning=yes ;;
8791 esac
8792
8793 # See if GNU ld supports shared libraries.
8794 case $host_os in
8795 aix[3-9]*)
8796 # On AIX/PPC, the GNU linker is very broken
8797 if test "$host_cpu" != ia64; then
8798 ld_shlibs=no
8799 cat <<_LT_EOF 1>&2
8800
8801 *** Warning: the GNU linker, at least up to release 2.19, is reported
8802 *** to be unable to reliably create shared libraries on AIX.
8803 *** Therefore, libtool is disabling shared libraries support. If you
8804 *** really care for shared libraries, you may want to install binutils
8805 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8806 *** You will then need to restart the configuration process.
8807
8808 _LT_EOF
8809 fi
8810 ;;
8811
8812 amigaos*)
8813 case $host_cpu in
8814 powerpc)
8815 # see comment about AmigaOS4 .so support
8816 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817 archive_expsym_cmds=''
8818 ;;
8819 m68k)
8820 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)'
8821 hardcode_libdir_flag_spec='-L$libdir'
8822 hardcode_minus_L=yes
8823 ;;
8824 esac
8825 ;;
8826
8827 beos*)
8828 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829 allow_undefined_flag=unsupported
8830 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8831 # support --undefined. This deserves some investigation. FIXME
8832 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833 else
8834 ld_shlibs=no
8835 fi
8836 ;;
8837
8838 cygwin* | mingw* | pw32* | cegcc*)
8839 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8840 # as there is no search path for DLLs.
8841 hardcode_libdir_flag_spec='-L$libdir'
8842 export_dynamic_flag_spec='${wl}--export-all-symbols'
8843 allow_undefined_flag=unsupported
8844 always_export_symbols=no
8845 enable_shared_with_static_runtimes=yes
8846 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8847
8848 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8850 # If the export-symbols file already is a .def file (1st line
8851 # is EXPORTS), use it as is; otherwise, prepend...
8852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8853 cp $export_symbols $output_objdir/$soname.def;
8854 else
8855 echo EXPORTS > $output_objdir/$soname.def;
8856 cat $export_symbols >> $output_objdir/$soname.def;
8857 fi~
8858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8859 else
8860 ld_shlibs=no
8861 fi
8862 ;;
8863
8864 haiku*)
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866 link_all_deplibs=yes
8867 ;;
8868
8869 interix[3-9]*)
8870 hardcode_direct=no
8871 hardcode_shlibpath_var=no
8872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8873 export_dynamic_flag_spec='${wl}-E'
8874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8875 # Instead, shared libraries are loaded at an image base (0x10000000 by
8876 # default) and relocated if they conflict, which is a slow very memory
8877 # consuming and fragmenting process. To avoid this, we pick a random,
8878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8879 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8881 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'
8882 ;;
8883
8884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8885 tmp_diet=no
8886 if test "$host_os" = linux-dietlibc; then
8887 case $cc_basename in
8888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8889 esac
8890 fi
8891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8892 && test "$tmp_diet" = no
8893 then
8894 tmp_addflag=
8895 tmp_sharedflag='-shared'
8896 case $cc_basename,$host_cpu in
8897 pgcc*) # Portland Group C compiler
8898 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'
8899 tmp_addflag=' $pic_flag'
8900 ;;
8901 pgf77* | pgf90* | pgf95* | pgfortran*)
8902 # Portland Group f77 and f90 compilers
8903 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'
8904 tmp_addflag=' $pic_flag -Mnomain' ;;
8905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8906 tmp_addflag=' -i_dynamic' ;;
8907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8908 tmp_addflag=' -i_dynamic -nofor_main' ;;
8909 ifc* | ifort*) # Intel Fortran compiler
8910 tmp_addflag=' -nofor_main' ;;
8911 lf95*) # Lahey Fortran 8.1
8912 whole_archive_flag_spec=
8913 tmp_sharedflag='--shared' ;;
8914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8915 tmp_sharedflag='-qmkshrobj'
8916 tmp_addflag= ;;
8917 nvcc*) # Cuda Compiler Driver 2.2
8918 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'
8919 compiler_needs_object=yes
8920 ;;
8921 esac
8922 case `$CC -V 2>&1 | sed 5q` in
8923 *Sun\ C*) # Sun C 5.9
8924 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'
8925 compiler_needs_object=yes
8926 tmp_sharedflag='-G' ;;
8927 *Sun\ F*) # Sun Fortran 8.3
8928 tmp_sharedflag='-G' ;;
8929 esac
8930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931
8932 if test "x$supports_anon_versioning" = xyes; then
8933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8935 echo "local: *; };" >> $output_objdir/$libname.ver~
8936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8937 fi
8938
8939 case $cc_basename in
8940 xlf* | bgf* | bgxlf* | mpixlf*)
8941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8942 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8943 hardcode_libdir_flag_spec=
8944 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8945 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8946 if test "x$supports_anon_versioning" = xyes; then
8947 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8948 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8949 echo "local: *; };" >> $output_objdir/$libname.ver~
8950 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8951 fi
8952 ;;
8953 esac
8954 else
8955 ld_shlibs=no
8956 fi
8957 ;;
8958
8959 netbsd*)
8960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8961 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8962 wlarc=
8963 else
8964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8965 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8966 fi
8967 ;;
8968
8969 solaris*)
8970 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8971 ld_shlibs=no
8972 cat <<_LT_EOF 1>&2
8973
8974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8975 *** create shared libraries on Solaris systems. Therefore, libtool
8976 *** is disabling shared libraries support. We urge you to upgrade GNU
8977 *** binutils to release 2.9.1 or newer. Another option is to modify
8978 *** your PATH or compiler configuration so that the native linker is
8979 *** used, and then restart.
8980
8981 _LT_EOF
8982 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8985 else
8986 ld_shlibs=no
8987 fi
8988 ;;
8989
8990 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8991 case `$LD -v 2>&1` in
8992 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8993 ld_shlibs=no
8994 cat <<_LT_EOF 1>&2
8995
8996 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8997 *** reliably create shared libraries on SCO systems. Therefore, libtool
8998 *** is disabling shared libraries support. We urge you to upgrade GNU
8999 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9000 *** your PATH or compiler configuration so that the native linker is
9001 *** used, and then restart.
9002
9003 _LT_EOF
9004 ;;
9005 *)
9006 # For security reasons, it is highly recommended that you always
9007 # use absolute paths for naming shared libraries, and exclude the
9008 # DT_RUNPATH tag from executables and libraries. But doing so
9009 # requires that you compile everything twice, which is a pain.
9010 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014 else
9015 ld_shlibs=no
9016 fi
9017 ;;
9018 esac
9019 ;;
9020
9021 sunos4*)
9022 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9023 wlarc=
9024 hardcode_direct=yes
9025 hardcode_shlibpath_var=no
9026 ;;
9027
9028 *)
9029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032 else
9033 ld_shlibs=no
9034 fi
9035 ;;
9036 esac
9037
9038 if test "$ld_shlibs" = no; then
9039 runpath_var=
9040 hardcode_libdir_flag_spec=
9041 export_dynamic_flag_spec=
9042 whole_archive_flag_spec=
9043 fi
9044 else
9045 # PORTME fill in a description of your system's linker (not GNU ld)
9046 case $host_os in
9047 aix3*)
9048 allow_undefined_flag=unsupported
9049 always_export_symbols=yes
9050 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'
9051 # Note: this linker hardcodes the directories in LIBPATH if there
9052 # are no directories specified by -L.
9053 hardcode_minus_L=yes
9054 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9055 # Neither direct hardcoding nor static linking is supported with a
9056 # broken collect2.
9057 hardcode_direct=unsupported
9058 fi
9059 ;;
9060
9061 aix[4-9]*)
9062 if test "$host_cpu" = ia64; then
9063 # On IA64, the linker does run time linking by default, so we don't
9064 # have to do anything special.
9065 aix_use_runtimelinking=no
9066 exp_sym_flag='-Bexport'
9067 no_entry_flag=""
9068 else
9069 # If we're using GNU nm, then we don't want the "-C" option.
9070 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9071 # Also, AIX nm treats weak defined symbols like other global
9072 # defined symbols, whereas GNU nm marks them as "W".
9073 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9074 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'
9075 else
9076 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'
9077 fi
9078 aix_use_runtimelinking=no
9079
9080 # Test if we are trying to use run time linking or normal
9081 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9082 # need to do runtime linking.
9083 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9084 for ld_flag in $LDFLAGS; do
9085 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9086 aix_use_runtimelinking=yes
9087 break
9088 fi
9089 done
9090 ;;
9091 esac
9092
9093 exp_sym_flag='-bexport'
9094 no_entry_flag='-bnoentry'
9095 fi
9096
9097 # When large executables or shared objects are built, AIX ld can
9098 # have problems creating the table of contents. If linking a library
9099 # or program results in "error TOC overflow" add -mminimal-toc to
9100 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9101 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9102
9103 archive_cmds=''
9104 hardcode_direct=yes
9105 hardcode_direct_absolute=yes
9106 hardcode_libdir_separator=':'
9107 link_all_deplibs=yes
9108 file_list_spec='${wl}-f,'
9109
9110 if test "$GCC" = yes; then
9111 case $host_os in aix4.[012]|aix4.[012].*)
9112 # We only want to do this on AIX 4.2 and lower, the check
9113 # below for broken collect2 doesn't work under 4.3+
9114 collect2name=`${CC} -print-prog-name=collect2`
9115 if test -f "$collect2name" &&
9116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9117 then
9118 # We have reworked collect2
9119 :
9120 else
9121 # We have old collect2
9122 hardcode_direct=unsupported
9123 # It fails to find uninstalled libraries when the uninstalled
9124 # path is not listed in the libpath. Setting hardcode_minus_L
9125 # to unsupported forces relinking
9126 hardcode_minus_L=yes
9127 hardcode_libdir_flag_spec='-L$libdir'
9128 hardcode_libdir_separator=
9129 fi
9130 ;;
9131 esac
9132 shared_flag='-shared'
9133 if test "$aix_use_runtimelinking" = yes; then
9134 shared_flag="$shared_flag "'${wl}-G'
9135 fi
9136 else
9137 # not using gcc
9138 if test "$host_cpu" = ia64; then
9139 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9140 # chokes on -Wl,-G. The following line is correct:
9141 shared_flag='-G'
9142 else
9143 if test "$aix_use_runtimelinking" = yes; then
9144 shared_flag='${wl}-G'
9145 else
9146 shared_flag='${wl}-bM:SRE'
9147 fi
9148 fi
9149 fi
9150
9151 export_dynamic_flag_spec='${wl}-bexpall'
9152 # It seems that -bexpall does not export symbols beginning with
9153 # underscore (_), so it is better to generate a list of symbols to export.
9154 always_export_symbols=yes
9155 if test "$aix_use_runtimelinking" = yes; then
9156 # Warning - without using the other runtime loading flags (-brtl),
9157 # -berok will link without error, but may produce a broken library.
9158 allow_undefined_flag='-berok'
9159 # Determine the default libpath from the value encoded in an
9160 # empty executable.
9161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h. */
9163
9164 int
9165 main ()
9166 {
9167
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"; then :
9173
9174 lt_aix_libpath_sed='
9175 /Import File Strings/,/^$/ {
9176 /^0/ {
9177 s/^0 *\(.*\)$/\1/
9178 p
9179 }
9180 }'
9181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9182 # Check for a 64-bit object if we didn't find anything.
9183 if test -z "$aix_libpath"; then
9184 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185 fi
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext \
9188 conftest$ac_exeext conftest.$ac_ext
9189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9190
9191 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9192 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"
9193 else
9194 if test "$host_cpu" = ia64; then
9195 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9196 allow_undefined_flag="-z nodefs"
9197 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"
9198 else
9199 # Determine the default libpath from the value encoded in an
9200 # empty executable.
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9203
9204 int
9205 main ()
9206 {
9207
9208 ;
9209 return 0;
9210 }
9211 _ACEOF
9212 if ac_fn_c_try_link "$LINENO"; then :
9213
9214 lt_aix_libpath_sed='
9215 /Import File Strings/,/^$/ {
9216 /^0/ {
9217 s/^0 *\(.*\)$/\1/
9218 p
9219 }
9220 }'
9221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 # Check for a 64-bit object if we didn't find anything.
9223 if test -z "$aix_libpath"; then
9224 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 fi
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
9229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9230
9231 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9232 # Warning - without using the other run time loading flags,
9233 # -berok will link without error, but may produce a broken library.
9234 no_undefined_flag=' ${wl}-bernotok'
9235 allow_undefined_flag=' ${wl}-berok'
9236 if test "$with_gnu_ld" = yes; then
9237 # We only use this code for GNU lds that support --whole-archive.
9238 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9239 else
9240 # Exported symbols can be pulled into shared objects from archives
9241 whole_archive_flag_spec='$convenience'
9242 fi
9243 archive_cmds_need_lc=yes
9244 # This is similar to how AIX traditionally builds its shared libraries.
9245 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'
9246 fi
9247 fi
9248 ;;
9249
9250 amigaos*)
9251 case $host_cpu in
9252 powerpc)
9253 # see comment about AmigaOS4 .so support
9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255 archive_expsym_cmds=''
9256 ;;
9257 m68k)
9258 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)'
9259 hardcode_libdir_flag_spec='-L$libdir'
9260 hardcode_minus_L=yes
9261 ;;
9262 esac
9263 ;;
9264
9265 bsdi[45]*)
9266 export_dynamic_flag_spec=-rdynamic
9267 ;;
9268
9269 cygwin* | mingw* | pw32* | cegcc*)
9270 # When not using gcc, we currently assume that we are using
9271 # Microsoft Visual C++.
9272 # hardcode_libdir_flag_spec is actually meaningless, as there is
9273 # no search path for DLLs.
9274 hardcode_libdir_flag_spec=' '
9275 allow_undefined_flag=unsupported
9276 # Tell ltmain to make .lib files, not .a files.
9277 libext=lib
9278 # Tell ltmain to make .dll files, not .so files.
9279 shrext_cmds=".dll"
9280 # FIXME: Setting linknames here is a bad hack.
9281 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9282 # The linker will automatically build a .lib file if we build a DLL.
9283 old_archive_from_new_cmds='true'
9284 # FIXME: Should let the user specify the lib program.
9285 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9286 fix_srcfile_path='`cygpath -w "$srcfile"`'
9287 enable_shared_with_static_runtimes=yes
9288 ;;
9289
9290 darwin* | rhapsody*)
9291
9292
9293 archive_cmds_need_lc=no
9294 hardcode_direct=no
9295 hardcode_automatic=yes
9296 hardcode_shlibpath_var=unsupported
9297 if test "$lt_cv_ld_force_load" = "yes"; then
9298 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\"`'
9299 else
9300 whole_archive_flag_spec=''
9301 fi
9302 link_all_deplibs=yes
9303 allow_undefined_flag="$_lt_dar_allow_undefined"
9304 case $cc_basename in
9305 ifort*) _lt_dar_can_shared=yes ;;
9306 *) _lt_dar_can_shared=$GCC ;;
9307 esac
9308 if test "$_lt_dar_can_shared" = "yes"; then
9309 output_verbose_link_cmd=func_echo_all
9310 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9311 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9312 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}"
9313 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}"
9314
9315 else
9316 ld_shlibs=no
9317 fi
9318
9319 ;;
9320
9321 dgux*)
9322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323 hardcode_libdir_flag_spec='-L$libdir'
9324 hardcode_shlibpath_var=no
9325 ;;
9326
9327 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9328 # support. Future versions do this automatically, but an explicit c++rt0.o
9329 # does not break anything, and helps significantly (at the cost of a little
9330 # extra space).
9331 freebsd2.2*)
9332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9333 hardcode_libdir_flag_spec='-R$libdir'
9334 hardcode_direct=yes
9335 hardcode_shlibpath_var=no
9336 ;;
9337
9338 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9339 freebsd2*)
9340 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9341 hardcode_direct=yes
9342 hardcode_minus_L=yes
9343 hardcode_shlibpath_var=no
9344 ;;
9345
9346 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9347 freebsd* | dragonfly*)
9348 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9349 hardcode_libdir_flag_spec='-R$libdir'
9350 hardcode_direct=yes
9351 hardcode_shlibpath_var=no
9352 ;;
9353
9354 hpux9*)
9355 if test "$GCC" = yes; then
9356 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'
9357 else
9358 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'
9359 fi
9360 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9361 hardcode_libdir_separator=:
9362 hardcode_direct=yes
9363
9364 # hardcode_minus_L: Not really in the search PATH,
9365 # but as the default location of the library.
9366 hardcode_minus_L=yes
9367 export_dynamic_flag_spec='${wl}-E'
9368 ;;
9369
9370 hpux10*)
9371 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9372 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9373 else
9374 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9375 fi
9376 if test "$with_gnu_ld" = no; then
9377 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9378 hardcode_libdir_flag_spec_ld='+b $libdir'
9379 hardcode_libdir_separator=:
9380 hardcode_direct=yes
9381 hardcode_direct_absolute=yes
9382 export_dynamic_flag_spec='${wl}-E'
9383 # hardcode_minus_L: Not really in the search PATH,
9384 # but as the default location of the library.
9385 hardcode_minus_L=yes
9386 fi
9387 ;;
9388
9389 hpux11*)
9390 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9391 case $host_cpu in
9392 hppa*64*)
9393 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 ;;
9395 ia64*)
9396 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9397 ;;
9398 *)
9399 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9400 ;;
9401 esac
9402 else
9403 case $host_cpu in
9404 hppa*64*)
9405 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 ;;
9407 ia64*)
9408 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9409 ;;
9410 *)
9411
9412 # Older versions of the 11.00 compiler do not understand -b yet
9413 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9415 $as_echo_n "checking if $CC understands -b... " >&6; }
9416 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
9418 else
9419 lt_cv_prog_compiler__b=no
9420 save_LDFLAGS="$LDFLAGS"
9421 LDFLAGS="$LDFLAGS -b"
9422 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9423 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9424 # The linker can only warn and ignore the option if not recognized
9425 # So say no if there are warnings
9426 if test -s conftest.err; then
9427 # Append any errors to the config.log.
9428 cat conftest.err 1>&5
9429 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9430 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9431 if diff conftest.exp conftest.er2 >/dev/null; then
9432 lt_cv_prog_compiler__b=yes
9433 fi
9434 else
9435 lt_cv_prog_compiler__b=yes
9436 fi
9437 fi
9438 $RM -r conftest*
9439 LDFLAGS="$save_LDFLAGS"
9440
9441 fi
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9443 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9444
9445 if test x"$lt_cv_prog_compiler__b" = xyes; then
9446 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9447 else
9448 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9449 fi
9450
9451 ;;
9452 esac
9453 fi
9454 if test "$with_gnu_ld" = no; then
9455 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456 hardcode_libdir_separator=:
9457
9458 case $host_cpu in
9459 hppa*64*|ia64*)
9460 hardcode_direct=no
9461 hardcode_shlibpath_var=no
9462 ;;
9463 *)
9464 hardcode_direct=yes
9465 hardcode_direct_absolute=yes
9466 export_dynamic_flag_spec='${wl}-E'
9467
9468 # hardcode_minus_L: Not really in the search PATH,
9469 # but as the default location of the library.
9470 hardcode_minus_L=yes
9471 ;;
9472 esac
9473 fi
9474 ;;
9475
9476 irix5* | irix6* | nonstopux*)
9477 if test "$GCC" = yes; then
9478 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'
9479 # Try to use the -exported_symbol ld option, if it does not
9480 # work, assume that -exports_file does not work either and
9481 # implicitly export all symbols.
9482 save_LDFLAGS="$LDFLAGS"
9483 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h. */
9486 int foo(void) {}
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489 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'
9490
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494 LDFLAGS="$save_LDFLAGS"
9495 else
9496 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'
9497 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'
9498 fi
9499 archive_cmds_need_lc='no'
9500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9501 hardcode_libdir_separator=:
9502 inherit_rpath=yes
9503 link_all_deplibs=yes
9504 ;;
9505
9506 netbsd*)
9507 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9508 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9509 else
9510 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9511 fi
9512 hardcode_libdir_flag_spec='-R$libdir'
9513 hardcode_direct=yes
9514 hardcode_shlibpath_var=no
9515 ;;
9516
9517 newsos6)
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_direct=yes
9520 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521 hardcode_libdir_separator=:
9522 hardcode_shlibpath_var=no
9523 ;;
9524
9525 *nto* | *qnx*)
9526 ;;
9527
9528 openbsd*)
9529 if test -f /usr/libexec/ld.so; then
9530 hardcode_direct=yes
9531 hardcode_shlibpath_var=no
9532 hardcode_direct_absolute=yes
9533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9534 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9535 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9537 export_dynamic_flag_spec='${wl}-E'
9538 else
9539 case $host_os in
9540 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9542 hardcode_libdir_flag_spec='-R$libdir'
9543 ;;
9544 *)
9545 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9546 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9547 ;;
9548 esac
9549 fi
9550 else
9551 ld_shlibs=no
9552 fi
9553 ;;
9554
9555 os2*)
9556 hardcode_libdir_flag_spec='-L$libdir'
9557 hardcode_minus_L=yes
9558 allow_undefined_flag=unsupported
9559 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'
9560 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9561 ;;
9562
9563 osf3*)
9564 if test "$GCC" = yes; then
9565 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9566 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'
9567 else
9568 allow_undefined_flag=' -expect_unresolved \*'
9569 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'
9570 fi
9571 archive_cmds_need_lc='no'
9572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9573 hardcode_libdir_separator=:
9574 ;;
9575
9576 osf4* | osf5*) # as osf3* with the addition of -msym flag
9577 if test "$GCC" = yes; then
9578 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9579 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'
9580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581 else
9582 allow_undefined_flag=' -expect_unresolved \*'
9583 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'
9584 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~
9585 $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'
9586
9587 # Both c and cxx compiler support -rpath directly
9588 hardcode_libdir_flag_spec='-rpath $libdir'
9589 fi
9590 archive_cmds_need_lc='no'
9591 hardcode_libdir_separator=:
9592 ;;
9593
9594 solaris*)
9595 no_undefined_flag=' -z defs'
9596 if test "$GCC" = yes; then
9597 wlarc='${wl}'
9598 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9601 else
9602 case `$CC -V 2>&1` in
9603 *"Compilers 5.0"*)
9604 wlarc=''
9605 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9608 ;;
9609 *)
9610 wlarc='${wl}'
9611 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9612 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9613 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9614 ;;
9615 esac
9616 fi
9617 hardcode_libdir_flag_spec='-R$libdir'
9618 hardcode_shlibpath_var=no
9619 case $host_os in
9620 solaris2.[0-5] | solaris2.[0-5].*) ;;
9621 *)
9622 # The compiler driver will combine and reorder linker options,
9623 # but understands `-z linker_flag'. GCC discards it without `$wl',
9624 # but is careful enough not to reorder.
9625 # Supported since Solaris 2.6 (maybe 2.5.1?)
9626 if test "$GCC" = yes; then
9627 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9628 else
9629 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9630 fi
9631 ;;
9632 esac
9633 link_all_deplibs=yes
9634 ;;
9635
9636 sunos4*)
9637 if test "x$host_vendor" = xsequent; then
9638 # Use $CC to link under sequent, because it throws in some extra .o
9639 # files that make .init and .fini sections work.
9640 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9641 else
9642 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9643 fi
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_direct=yes
9646 hardcode_minus_L=yes
9647 hardcode_shlibpath_var=no
9648 ;;
9649
9650 sysv4)
9651 case $host_vendor in
9652 sni)
9653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654 hardcode_direct=yes # is this really true???
9655 ;;
9656 siemens)
9657 ## LD is ld it makes a PLAMLIB
9658 ## CC just makes a GrossModule.
9659 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9660 reload_cmds='$CC -r -o $output$reload_objs'
9661 hardcode_direct=no
9662 ;;
9663 motorola)
9664 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9666 ;;
9667 esac
9668 runpath_var='LD_RUN_PATH'
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 sysv4.3*)
9673 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674 hardcode_shlibpath_var=no
9675 export_dynamic_flag_spec='-Bexport'
9676 ;;
9677
9678 sysv4*MP*)
9679 if test -d /usr/nec; then
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_shlibpath_var=no
9682 runpath_var=LD_RUN_PATH
9683 hardcode_runpath_var=yes
9684 ld_shlibs=yes
9685 fi
9686 ;;
9687
9688 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9689 no_undefined_flag='${wl}-z,text'
9690 archive_cmds_need_lc=no
9691 hardcode_shlibpath_var=no
9692 runpath_var='LD_RUN_PATH'
9693
9694 if test "$GCC" = yes; then
9695 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 else
9698 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700 fi
9701 ;;
9702
9703 sysv5* | sco3.2v5* | sco5v6*)
9704 # Note: We can NOT use -z defs as we might desire, because we do not
9705 # link with -lc, and that would cause any symbols used from libc to
9706 # always be unresolved, which means just about no library would
9707 # ever link correctly. If we're not using GNU ld we use -z text
9708 # though, which does catch some bad symbols but isn't as heavy-handed
9709 # as -z defs.
9710 no_undefined_flag='${wl}-z,text'
9711 allow_undefined_flag='${wl}-z,nodefs'
9712 archive_cmds_need_lc=no
9713 hardcode_shlibpath_var=no
9714 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9715 hardcode_libdir_separator=':'
9716 link_all_deplibs=yes
9717 export_dynamic_flag_spec='${wl}-Bexport'
9718 runpath_var='LD_RUN_PATH'
9719
9720 if test "$GCC" = yes; then
9721 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723 else
9724 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726 fi
9727 ;;
9728
9729 uts4*)
9730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731 hardcode_libdir_flag_spec='-L$libdir'
9732 hardcode_shlibpath_var=no
9733 ;;
9734
9735 *)
9736 ld_shlibs=no
9737 ;;
9738 esac
9739
9740 if test x$host_vendor = xsni; then
9741 case $host in
9742 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9743 export_dynamic_flag_spec='${wl}-Blargedynsym'
9744 ;;
9745 esac
9746 fi
9747 fi
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9750 $as_echo "$ld_shlibs" >&6; }
9751 test "$ld_shlibs" = no && can_build_shared=no
9752
9753 with_gnu_ld=$with_gnu_ld
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769 #
9770 # Do we need to explicitly link libc?
9771 #
9772 case "x$archive_cmds_need_lc" in
9773 x|xyes)
9774 # Assume -lc should be added
9775 archive_cmds_need_lc=yes
9776
9777 if test "$enable_shared" = yes && test "$GCC" = yes; then
9778 case $archive_cmds in
9779 *'~'*)
9780 # FIXME: we may have to deal with multi-command sequences.
9781 ;;
9782 '$CC '*)
9783 # Test whether the compiler implicitly links with -lc since on some
9784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9785 # to ld, don't add -lc before -lgcc.
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9788 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9789 $as_echo_n "(cached) " >&6
9790 else
9791 $RM conftest*
9792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9793
9794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795 (eval $ac_compile) 2>&5
9796 ac_status=$?
9797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798 test $ac_status = 0; } 2>conftest.err; then
9799 soname=conftest
9800 lib=conftest
9801 libobjs=conftest.$ac_objext
9802 deplibs=
9803 wl=$lt_prog_compiler_wl
9804 pic_flag=$lt_prog_compiler_pic
9805 compiler_flags=-v
9806 linker_flags=-v
9807 verstring=
9808 output_objdir=.
9809 libname=conftest
9810 lt_save_allow_undefined_flag=$allow_undefined_flag
9811 allow_undefined_flag=
9812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9813 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9814 ac_status=$?
9815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9816 test $ac_status = 0; }
9817 then
9818 lt_cv_archive_cmds_need_lc=no
9819 else
9820 lt_cv_archive_cmds_need_lc=yes
9821 fi
9822 allow_undefined_flag=$lt_save_allow_undefined_flag
9823 else
9824 cat conftest.err 1>&5
9825 fi
9826 $RM conftest*
9827
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9830 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9831 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9832 ;;
9833 esac
9834 fi
9835 ;;
9836 esac
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9995 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9996
9997 if test "$GCC" = yes; then
9998 case $host_os in
9999 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10000 *) lt_awk_arg="/^libraries:/" ;;
10001 esac
10002 case $host_os in
10003 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10004 *) lt_sed_strip_eq="s,=/,/,g" ;;
10005 esac
10006 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10007 case $lt_search_path_spec in
10008 *\;*)
10009 # if the path contains ";" then we assume it to be the separator
10010 # otherwise default to the standard path separator (i.e. ":") - it is
10011 # assumed that no part of a normal pathname contains ";" but that should
10012 # okay in the real world where ";" in dirpaths is itself problematic.
10013 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10014 ;;
10015 *)
10016 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10017 ;;
10018 esac
10019 # Ok, now we have the path, separated by spaces, we can step through it
10020 # and add multilib dir if necessary.
10021 lt_tmp_lt_search_path_spec=
10022 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10023 for lt_sys_path in $lt_search_path_spec; do
10024 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10025 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10026 else
10027 test -d "$lt_sys_path" && \
10028 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10029 fi
10030 done
10031 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10032 BEGIN {RS=" "; FS="/|\n";} {
10033 lt_foo="";
10034 lt_count=0;
10035 for (lt_i = NF; lt_i > 0; lt_i--) {
10036 if ($lt_i != "" && $lt_i != ".") {
10037 if ($lt_i == "..") {
10038 lt_count++;
10039 } else {
10040 if (lt_count == 0) {
10041 lt_foo="/" $lt_i lt_foo;
10042 } else {
10043 lt_count--;
10044 }
10045 }
10046 }
10047 }
10048 if (lt_foo != "") { lt_freq[lt_foo]++; }
10049 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10050 }'`
10051 # AWK program above erroneously prepends '/' to C:/dos/paths
10052 # for these hosts.
10053 case $host_os in
10054 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10055 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10056 esac
10057 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10058 else
10059 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10060 fi
10061 library_names_spec=
10062 libname_spec='lib$name'
10063 soname_spec=
10064 shrext_cmds=".so"
10065 postinstall_cmds=
10066 postuninstall_cmds=
10067 finish_cmds=
10068 finish_eval=
10069 shlibpath_var=
10070 shlibpath_overrides_runpath=unknown
10071 version_type=none
10072 dynamic_linker="$host_os ld.so"
10073 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10074 need_lib_prefix=unknown
10075 hardcode_into_libs=no
10076
10077 # when you set need_version to no, make sure it does not cause -set_version
10078 # flags to be left without arguments
10079 need_version=unknown
10080
10081 case $host_os in
10082 aix3*)
10083 version_type=linux
10084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10085 shlibpath_var=LIBPATH
10086
10087 # AIX 3 has no versioning support, so we append a major version to the name.
10088 soname_spec='${libname}${release}${shared_ext}$major'
10089 ;;
10090
10091 aix[4-9]*)
10092 version_type=linux
10093 need_lib_prefix=no
10094 need_version=no
10095 hardcode_into_libs=yes
10096 if test "$host_cpu" = ia64; then
10097 # AIX 5 supports IA64
10098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10099 shlibpath_var=LD_LIBRARY_PATH
10100 else
10101 # With GCC up to 2.95.x, collect2 would create an import file
10102 # for dependence libraries. The import file would start with
10103 # the line `#! .'. This would cause the generated library to
10104 # depend on `.', always an invalid library. This was fixed in
10105 # development snapshots of GCC prior to 3.0.
10106 case $host_os in
10107 aix4 | aix4.[01] | aix4.[01].*)
10108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10109 echo ' yes '
10110 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10111 :
10112 else
10113 can_build_shared=no
10114 fi
10115 ;;
10116 esac
10117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10118 # soname into executable. Probably we can add versioning support to
10119 # collect2, so additional links can be useful in future.
10120 if test "$aix_use_runtimelinking" = yes; then
10121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10122 # instead of lib<name>.a to let people know that these are not
10123 # typical AIX shared libraries.
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 else
10126 # We preserve .a as extension for shared libraries through AIX4.2
10127 # and later when we are not doing run time linking.
10128 library_names_spec='${libname}${release}.a $libname.a'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 fi
10131 shlibpath_var=LIBPATH
10132 fi
10133 ;;
10134
10135 amigaos*)
10136 case $host_cpu in
10137 powerpc)
10138 # Since July 2007 AmigaOS4 officially supports .so libraries.
10139 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 ;;
10142 m68k)
10143 library_names_spec='$libname.ixlibrary $libname.a'
10144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10145 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'
10146 ;;
10147 esac
10148 ;;
10149
10150 beos*)
10151 library_names_spec='${libname}${shared_ext}'
10152 dynamic_linker="$host_os ld.so"
10153 shlibpath_var=LIBRARY_PATH
10154 ;;
10155
10156 bsdi[45]*)
10157 version_type=linux
10158 need_version=no
10159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160 soname_spec='${libname}${release}${shared_ext}$major'
10161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10162 shlibpath_var=LD_LIBRARY_PATH
10163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10165 # the default ld.so.conf also contains /usr/contrib/lib and
10166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10167 # libtool to hard-code these into programs
10168 ;;
10169
10170 cygwin* | mingw* | pw32* | cegcc*)
10171 version_type=windows
10172 shrext_cmds=".dll"
10173 need_version=no
10174 need_lib_prefix=no
10175
10176 case $GCC,$host_os in
10177 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10178 library_names_spec='$libname.dll.a'
10179 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10180 postinstall_cmds='base_file=`basename \${file}`~
10181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10182 dldir=$destdir/`dirname \$dlpath`~
10183 test -d \$dldir || mkdir -p \$dldir~
10184 $install_prog $dir/$dlname \$dldir/$dlname~
10185 chmod a+x \$dldir/$dlname~
10186 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10187 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10188 fi'
10189 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10190 dlpath=$dir/\$dldll~
10191 $RM \$dlpath'
10192 shlibpath_overrides_runpath=yes
10193
10194 case $host_os in
10195 cygwin*)
10196 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10197 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10198
10199 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10200 ;;
10201 mingw* | cegcc*)
10202 # MinGW DLLs use traditional 'lib' prefix
10203 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204 ;;
10205 pw32*)
10206 # pw32 DLLs use 'pw' prefix rather than 'lib'
10207 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 ;;
10209 esac
10210 ;;
10211
10212 *)
10213 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10214 ;;
10215 esac
10216 dynamic_linker='Win32 ld.exe'
10217 # FIXME: first we should search . and the directory the executable is in
10218 shlibpath_var=PATH
10219 ;;
10220
10221 darwin* | rhapsody*)
10222 dynamic_linker="$host_os dyld"
10223 version_type=darwin
10224 need_lib_prefix=no
10225 need_version=no
10226 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10227 soname_spec='${libname}${release}${major}$shared_ext'
10228 shlibpath_overrides_runpath=yes
10229 shlibpath_var=DYLD_LIBRARY_PATH
10230 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10231
10232 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10234 ;;
10235
10236 dgux*)
10237 version_type=linux
10238 need_lib_prefix=no
10239 need_version=no
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 shlibpath_var=LD_LIBRARY_PATH
10243 ;;
10244
10245 freebsd* | dragonfly*)
10246 # DragonFly does not have aout. When/if they implement a new
10247 # versioning mechanism, adjust this.
10248 if test -x /usr/bin/objformat; then
10249 objformat=`/usr/bin/objformat`
10250 else
10251 case $host_os in
10252 freebsd[123]*) objformat=aout ;;
10253 *) objformat=elf ;;
10254 esac
10255 fi
10256 version_type=freebsd-$objformat
10257 case $version_type in
10258 freebsd-elf*)
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10260 need_version=no
10261 need_lib_prefix=no
10262 ;;
10263 freebsd-*)
10264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10265 need_version=yes
10266 ;;
10267 esac
10268 shlibpath_var=LD_LIBRARY_PATH
10269 case $host_os in
10270 freebsd2*)
10271 shlibpath_overrides_runpath=yes
10272 ;;
10273 freebsd3.[01]* | freebsdelf3.[01]*)
10274 shlibpath_overrides_runpath=yes
10275 hardcode_into_libs=yes
10276 ;;
10277 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10278 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10279 shlibpath_overrides_runpath=no
10280 hardcode_into_libs=yes
10281 ;;
10282 *) # from 4.6 on, and DragonFly
10283 shlibpath_overrides_runpath=yes
10284 hardcode_into_libs=yes
10285 ;;
10286 esac
10287 ;;
10288
10289 gnu*)
10290 version_type=linux
10291 need_lib_prefix=no
10292 need_version=no
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10294 soname_spec='${libname}${release}${shared_ext}$major'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 hardcode_into_libs=yes
10297 ;;
10298
10299 haiku*)
10300 version_type=linux
10301 need_lib_prefix=no
10302 need_version=no
10303 dynamic_linker="$host_os runtime_loader"
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10308 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10309 hardcode_into_libs=yes
10310 ;;
10311
10312 hpux9* | hpux10* | hpux11*)
10313 # Give a soname corresponding to the major version so that dld.sl refuses to
10314 # link against other versions.
10315 version_type=sunos
10316 need_lib_prefix=no
10317 need_version=no
10318 case $host_cpu in
10319 ia64*)
10320 shrext_cmds='.so'
10321 hardcode_into_libs=yes
10322 dynamic_linker="$host_os dld.so"
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 if test "X$HPUX_IA64_MODE" = X32; then
10328 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10329 else
10330 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10331 fi
10332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10333 ;;
10334 hppa*64*)
10335 shrext_cmds='.sl'
10336 hardcode_into_libs=yes
10337 dynamic_linker="$host_os dld.sl"
10338 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10344 ;;
10345 *)
10346 shrext_cmds='.sl'
10347 dynamic_linker="$host_os dld.sl"
10348 shlibpath_var=SHLIB_PATH
10349 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351 soname_spec='${libname}${release}${shared_ext}$major'
10352 ;;
10353 esac
10354 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10355 postinstall_cmds='chmod 555 $lib'
10356 # or fails outright, so override atomically:
10357 install_override_mode=555
10358 ;;
10359
10360 interix[3-9]*)
10361 version_type=linux
10362 need_lib_prefix=no
10363 need_version=no
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10367 shlibpath_var=LD_LIBRARY_PATH
10368 shlibpath_overrides_runpath=no
10369 hardcode_into_libs=yes
10370 ;;
10371
10372 irix5* | irix6* | nonstopux*)
10373 case $host_os in
10374 nonstopux*) version_type=nonstopux ;;
10375 *)
10376 if test "$lt_cv_prog_gnu_ld" = yes; then
10377 version_type=linux
10378 else
10379 version_type=irix
10380 fi ;;
10381 esac
10382 need_lib_prefix=no
10383 need_version=no
10384 soname_spec='${libname}${release}${shared_ext}$major'
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10386 case $host_os in
10387 irix5* | nonstopux*)
10388 libsuff= shlibsuff=
10389 ;;
10390 *)
10391 case $LD in # libtool.m4 will add one of these switches to LD
10392 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10393 libsuff= shlibsuff= libmagic=32-bit;;
10394 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10395 libsuff=32 shlibsuff=N32 libmagic=N32;;
10396 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10397 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10398 *) libsuff= shlibsuff= libmagic=never-match;;
10399 esac
10400 ;;
10401 esac
10402 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10403 shlibpath_overrides_runpath=no
10404 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10405 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10406 hardcode_into_libs=yes
10407 ;;
10408
10409 # No shared lib support for Linux oldld, aout, or coff.
10410 linux*oldld* | linux*aout* | linux*coff*)
10411 dynamic_linker=no
10412 ;;
10413
10414 # This must be Linux ELF.
10415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10416 version_type=linux
10417 need_lib_prefix=no
10418 need_version=no
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10422 shlibpath_var=LD_LIBRARY_PATH
10423 shlibpath_overrides_runpath=no
10424
10425 # Some binutils ld are patched to set DT_RUNPATH
10426 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10427 $as_echo_n "(cached) " >&6
10428 else
10429 lt_cv_shlibpath_overrides_runpath=no
10430 save_LDFLAGS=$LDFLAGS
10431 save_libdir=$libdir
10432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10436
10437 int
10438 main ()
10439 {
10440
10441 ;
10442 return 0;
10443 }
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10447 lt_cv_shlibpath_overrides_runpath=yes
10448 fi
10449 fi
10450 rm -f core conftest.err conftest.$ac_objext \
10451 conftest$ac_exeext conftest.$ac_ext
10452 LDFLAGS=$save_LDFLAGS
10453 libdir=$save_libdir
10454
10455 fi
10456
10457 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10458
10459 # This implies no fast_install, which is unacceptable.
10460 # Some rework will be needed to allow for fast_install
10461 # before this can be enabled.
10462 hardcode_into_libs=yes
10463
10464 # Append ld.so.conf contents to the search path
10465 if test -f /etc/ld.so.conf; then
10466 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' ' '`
10467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10468 fi
10469
10470 # We used to test for /lib/ld.so.1 and disable shared libraries on
10471 # powerpc, because MkLinux only supported shared libraries with the
10472 # GNU dynamic linker. Since this was broken with cross compilers,
10473 # most powerpc-linux boxes support dynamic linking these days and
10474 # people can always --disable-shared, the test was removed, and we
10475 # assume the GNU/Linux dynamic linker is in use.
10476 dynamic_linker='GNU/Linux ld.so'
10477 ;;
10478
10479 netbsd*)
10480 version_type=sunos
10481 need_lib_prefix=no
10482 need_version=no
10483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10486 dynamic_linker='NetBSD (a.out) ld.so'
10487 else
10488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10489 soname_spec='${libname}${release}${shared_ext}$major'
10490 dynamic_linker='NetBSD ld.elf_so'
10491 fi
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=yes
10494 hardcode_into_libs=yes
10495 ;;
10496
10497 newsos6)
10498 version_type=linux
10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500 shlibpath_var=LD_LIBRARY_PATH
10501 shlibpath_overrides_runpath=yes
10502 ;;
10503
10504 *nto* | *qnx*)
10505 version_type=qnx
10506 need_lib_prefix=no
10507 need_version=no
10508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509 soname_spec='${libname}${release}${shared_ext}$major'
10510 shlibpath_var=LD_LIBRARY_PATH
10511 shlibpath_overrides_runpath=no
10512 hardcode_into_libs=yes
10513 dynamic_linker='ldqnx.so'
10514 ;;
10515
10516 openbsd*)
10517 version_type=sunos
10518 sys_lib_dlsearch_path_spec="/usr/lib"
10519 need_lib_prefix=no
10520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10521 case $host_os in
10522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10523 *) need_version=no ;;
10524 esac
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10529 case $host_os in
10530 openbsd2.[89] | openbsd2.[89].*)
10531 shlibpath_overrides_runpath=no
10532 ;;
10533 *)
10534 shlibpath_overrides_runpath=yes
10535 ;;
10536 esac
10537 else
10538 shlibpath_overrides_runpath=yes
10539 fi
10540 ;;
10541
10542 os2*)
10543 libname_spec='$name'
10544 shrext_cmds=".dll"
10545 need_lib_prefix=no
10546 library_names_spec='$libname${shared_ext} $libname.a'
10547 dynamic_linker='OS/2 ld.exe'
10548 shlibpath_var=LIBPATH
10549 ;;
10550
10551 osf3* | osf4* | osf5*)
10552 version_type=osf
10553 need_lib_prefix=no
10554 need_version=no
10555 soname_spec='${libname}${release}${shared_ext}$major'
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 shlibpath_var=LD_LIBRARY_PATH
10558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10560 ;;
10561
10562 rdos*)
10563 dynamic_linker=no
10564 ;;
10565
10566 solaris*)
10567 version_type=linux
10568 need_lib_prefix=no
10569 need_version=no
10570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571 soname_spec='${libname}${release}${shared_ext}$major'
10572 shlibpath_var=LD_LIBRARY_PATH
10573 shlibpath_overrides_runpath=yes
10574 hardcode_into_libs=yes
10575 # ldd complains unless libraries are executable
10576 postinstall_cmds='chmod +x $lib'
10577 ;;
10578
10579 sunos4*)
10580 version_type=sunos
10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10583 shlibpath_var=LD_LIBRARY_PATH
10584 shlibpath_overrides_runpath=yes
10585 if test "$with_gnu_ld" = yes; then
10586 need_lib_prefix=no
10587 fi
10588 need_version=yes
10589 ;;
10590
10591 sysv4 | sysv4.3*)
10592 version_type=linux
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 shlibpath_var=LD_LIBRARY_PATH
10596 case $host_vendor in
10597 sni)
10598 shlibpath_overrides_runpath=no
10599 need_lib_prefix=no
10600 runpath_var=LD_RUN_PATH
10601 ;;
10602 siemens)
10603 need_lib_prefix=no
10604 ;;
10605 motorola)
10606 need_lib_prefix=no
10607 need_version=no
10608 shlibpath_overrides_runpath=no
10609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10610 ;;
10611 esac
10612 ;;
10613
10614 sysv4*MP*)
10615 if test -d /usr/nec ;then
10616 version_type=linux
10617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10618 soname_spec='$libname${shared_ext}.$major'
10619 shlibpath_var=LD_LIBRARY_PATH
10620 fi
10621 ;;
10622
10623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10624 version_type=freebsd-elf
10625 need_lib_prefix=no
10626 need_version=no
10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10628 soname_spec='${libname}${release}${shared_ext}$major'
10629 shlibpath_var=LD_LIBRARY_PATH
10630 shlibpath_overrides_runpath=yes
10631 hardcode_into_libs=yes
10632 if test "$with_gnu_ld" = yes; then
10633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10634 else
10635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10636 case $host_os in
10637 sco3.2v5*)
10638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10639 ;;
10640 esac
10641 fi
10642 sys_lib_dlsearch_path_spec='/usr/lib'
10643 ;;
10644
10645 tpf*)
10646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10647 version_type=linux
10648 need_lib_prefix=no
10649 need_version=no
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=no
10653 hardcode_into_libs=yes
10654 ;;
10655
10656 uts4*)
10657 version_type=linux
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659 soname_spec='${libname}${release}${shared_ext}$major'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 ;;
10662
10663 *)
10664 dynamic_linker=no
10665 ;;
10666 esac
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10668 $as_echo "$dynamic_linker" >&6; }
10669 test "$dynamic_linker" = no && can_build_shared=no
10670
10671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10672 if test "$GCC" = yes; then
10673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10674 fi
10675
10676 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10677 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10678 fi
10679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10681 fi
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10776 hardcode_action=
10777 if test -n "$hardcode_libdir_flag_spec" ||
10778 test -n "$runpath_var" ||
10779 test "X$hardcode_automatic" = "Xyes" ; then
10780
10781 # We can hardcode non-existent directories.
10782 if test "$hardcode_direct" != no &&
10783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10784 # have to relink, otherwise we might link with an installed library
10785 # when we should be linking with a yet-to-be-installed one
10786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10787 test "$hardcode_minus_L" != no; then
10788 # Linking always hardcodes the temporary library directory.
10789 hardcode_action=relink
10790 else
10791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10792 hardcode_action=immediate
10793 fi
10794 else
10795 # We cannot hardcode anything, or else we can only hardcode existing
10796 # directories.
10797 hardcode_action=unsupported
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10800 $as_echo "$hardcode_action" >&6; }
10801
10802 if test "$hardcode_action" = relink ||
10803 test "$inherit_rpath" = yes; then
10804 # Fast installation is not supported
10805 enable_fast_install=no
10806 elif test "$shlibpath_overrides_runpath" = yes ||
10807 test "$enable_shared" = no; then
10808 # Fast installation is not necessary
10809 enable_fast_install=needless
10810 fi
10811
10812
10813
10814
10815
10816
10817 if test "x$enable_dlopen" != xyes; then
10818 enable_dlopen=unknown
10819 enable_dlopen_self=unknown
10820 enable_dlopen_self_static=unknown
10821 else
10822 lt_cv_dlopen=no
10823 lt_cv_dlopen_libs=
10824
10825 case $host_os in
10826 beos*)
10827 lt_cv_dlopen="load_add_on"
10828 lt_cv_dlopen_libs=
10829 lt_cv_dlopen_self=yes
10830 ;;
10831
10832 mingw* | pw32* | cegcc*)
10833 lt_cv_dlopen="LoadLibrary"
10834 lt_cv_dlopen_libs=
10835 ;;
10836
10837 cygwin*)
10838 lt_cv_dlopen="dlopen"
10839 lt_cv_dlopen_libs=
10840 ;;
10841
10842 darwin*)
10843 # if libdl is installed we need to link against it
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10845 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10848 else
10849 ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ldl $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h. */
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855 Use char because int might match the return type of a GCC
10856 builtin and then its argument prototype would still apply. */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char dlopen ();
10861 int
10862 main ()
10863 {
10864 return dlopen ();
10865 ;
10866 return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870 ac_cv_lib_dl_dlopen=yes
10871 else
10872 ac_cv_lib_dl_dlopen=no
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10877 fi
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10880 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10882 else
10883
10884 lt_cv_dlopen="dyld"
10885 lt_cv_dlopen_libs=
10886 lt_cv_dlopen_self=yes
10887
10888 fi
10889
10890 ;;
10891
10892 *)
10893 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10894 if test "x$ac_cv_func_shl_load" = x""yes; then :
10895 lt_cv_dlopen="shl_load"
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10898 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10899 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-ldld $LIBS"
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10906
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char shl_load ();
10914 int
10915 main ()
10916 {
10917 return shl_load ();
10918 ;
10919 return 0;
10920 }
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923 ac_cv_lib_dld_shl_load=yes
10924 else
10925 ac_cv_lib_dld_shl_load=no
10926 fi
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10930 fi
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10932 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10933 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10934 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10935 else
10936 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10937 if test "x$ac_cv_func_dlopen" = x""yes; then :
10938 lt_cv_dlopen="dlopen"
10939 else
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-ldl $LIBS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h. */
10949
10950 /* Override any GCC internal prototype to avoid an error.
10951 Use char because int might match the return type of a GCC
10952 builtin and then its argument prototype would still apply. */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char dlopen ();
10957 int
10958 main ()
10959 {
10960 return dlopen ();
10961 ;
10962 return 0;
10963 }
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_lib_dl_dlopen=yes
10967 else
10968 ac_cv_lib_dl_dlopen=no
10969 fi
10970 rm -f core conftest.err conftest.$ac_objext \
10971 conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10973 fi
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10975 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10976 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10978 else
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10980 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10981 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lsvld $LIBS"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10988
10989 /* Override any GCC internal prototype to avoid an error.
10990 Use char because int might match the return type of a GCC
10991 builtin and then its argument prototype would still apply. */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 char dlopen ();
10996 int
10997 main ()
10998 {
10999 return dlopen ();
11000 ;
11001 return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 ac_cv_lib_svld_dlopen=yes
11006 else
11007 ac_cv_lib_svld_dlopen=no
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11014 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11015 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11017 else
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11019 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11020 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldld $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027
11028 /* Override any GCC internal prototype to avoid an error.
11029 Use char because int might match the return type of a GCC
11030 builtin and then its argument prototype would still apply. */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char dld_link ();
11035 int
11036 main ()
11037 {
11038 return dld_link ();
11039 ;
11040 return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 ac_cv_lib_dld_dld_link=yes
11045 else
11046 ac_cv_lib_dld_dld_link=no
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11053 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11054 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11055 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11056 fi
11057
11058
11059 fi
11060
11061
11062 fi
11063
11064
11065 fi
11066
11067
11068 fi
11069
11070
11071 fi
11072
11073 ;;
11074 esac
11075
11076 if test "x$lt_cv_dlopen" != xno; then
11077 enable_dlopen=yes
11078 else
11079 enable_dlopen=no
11080 fi
11081
11082 case $lt_cv_dlopen in
11083 dlopen)
11084 save_CPPFLAGS="$CPPFLAGS"
11085 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11086
11087 save_LDFLAGS="$LDFLAGS"
11088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11089
11090 save_LIBS="$LIBS"
11091 LIBS="$lt_cv_dlopen_libs $LIBS"
11092
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11094 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11095 if test "${lt_cv_dlopen_self+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
11097 else
11098 if test "$cross_compiling" = yes; then :
11099 lt_cv_dlopen_self=cross
11100 else
11101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11102 lt_status=$lt_dlunknown
11103 cat > conftest.$ac_ext <<_LT_EOF
11104 #line 11104 "configure"
11105 #include "confdefs.h"
11106
11107 #if HAVE_DLFCN_H
11108 #include <dlfcn.h>
11109 #endif
11110
11111 #include <stdio.h>
11112
11113 #ifdef RTLD_GLOBAL
11114 # define LT_DLGLOBAL RTLD_GLOBAL
11115 #else
11116 # ifdef DL_GLOBAL
11117 # define LT_DLGLOBAL DL_GLOBAL
11118 # else
11119 # define LT_DLGLOBAL 0
11120 # endif
11121 #endif
11122
11123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11124 find out it does not work in some platform. */
11125 #ifndef LT_DLLAZY_OR_NOW
11126 # ifdef RTLD_LAZY
11127 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11128 # else
11129 # ifdef DL_LAZY
11130 # define LT_DLLAZY_OR_NOW DL_LAZY
11131 # else
11132 # ifdef RTLD_NOW
11133 # define LT_DLLAZY_OR_NOW RTLD_NOW
11134 # else
11135 # ifdef DL_NOW
11136 # define LT_DLLAZY_OR_NOW DL_NOW
11137 # else
11138 # define LT_DLLAZY_OR_NOW 0
11139 # endif
11140 # endif
11141 # endif
11142 # endif
11143 #endif
11144
11145 /* When -fvisbility=hidden is used, assume the code has been annotated
11146 correspondingly for the symbols needed. */
11147 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11148 void fnord () __attribute__((visibility("default")));
11149 #endif
11150
11151 void fnord () { int i=42; }
11152 int main ()
11153 {
11154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11155 int status = $lt_dlunknown;
11156
11157 if (self)
11158 {
11159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11160 else
11161 {
11162 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11163 else puts (dlerror ());
11164 }
11165 /* dlclose (self); */
11166 }
11167 else
11168 puts (dlerror ());
11169
11170 return status;
11171 }
11172 _LT_EOF
11173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11174 (eval $ac_link) 2>&5
11175 ac_status=$?
11176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11177 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11178 (./conftest; exit; ) >&5 2>/dev/null
11179 lt_status=$?
11180 case x$lt_status in
11181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11183 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11184 esac
11185 else :
11186 # compilation failed
11187 lt_cv_dlopen_self=no
11188 fi
11189 fi
11190 rm -fr conftest*
11191
11192
11193 fi
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11195 $as_echo "$lt_cv_dlopen_self" >&6; }
11196
11197 if test "x$lt_cv_dlopen_self" = xyes; then
11198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11200 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11201 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 if test "$cross_compiling" = yes; then :
11205 lt_cv_dlopen_self_static=cross
11206 else
11207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11208 lt_status=$lt_dlunknown
11209 cat > conftest.$ac_ext <<_LT_EOF
11210 #line 11210 "configure"
11211 #include "confdefs.h"
11212
11213 #if HAVE_DLFCN_H
11214 #include <dlfcn.h>
11215 #endif
11216
11217 #include <stdio.h>
11218
11219 #ifdef RTLD_GLOBAL
11220 # define LT_DLGLOBAL RTLD_GLOBAL
11221 #else
11222 # ifdef DL_GLOBAL
11223 # define LT_DLGLOBAL DL_GLOBAL
11224 # else
11225 # define LT_DLGLOBAL 0
11226 # endif
11227 #endif
11228
11229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11230 find out it does not work in some platform. */
11231 #ifndef LT_DLLAZY_OR_NOW
11232 # ifdef RTLD_LAZY
11233 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11234 # else
11235 # ifdef DL_LAZY
11236 # define LT_DLLAZY_OR_NOW DL_LAZY
11237 # else
11238 # ifdef RTLD_NOW
11239 # define LT_DLLAZY_OR_NOW RTLD_NOW
11240 # else
11241 # ifdef DL_NOW
11242 # define LT_DLLAZY_OR_NOW DL_NOW
11243 # else
11244 # define LT_DLLAZY_OR_NOW 0
11245 # endif
11246 # endif
11247 # endif
11248 # endif
11249 #endif
11250
11251 /* When -fvisbility=hidden is used, assume the code has been annotated
11252 correspondingly for the symbols needed. */
11253 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11254 void fnord () __attribute__((visibility("default")));
11255 #endif
11256
11257 void fnord () { int i=42; }
11258 int main ()
11259 {
11260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11261 int status = $lt_dlunknown;
11262
11263 if (self)
11264 {
11265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11266 else
11267 {
11268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11269 else puts (dlerror ());
11270 }
11271 /* dlclose (self); */
11272 }
11273 else
11274 puts (dlerror ());
11275
11276 return status;
11277 }
11278 _LT_EOF
11279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11280 (eval $ac_link) 2>&5
11281 ac_status=$?
11282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11284 (./conftest; exit; ) >&5 2>/dev/null
11285 lt_status=$?
11286 case x$lt_status in
11287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11290 esac
11291 else :
11292 # compilation failed
11293 lt_cv_dlopen_self_static=no
11294 fi
11295 fi
11296 rm -fr conftest*
11297
11298
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11301 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11302 fi
11303
11304 CPPFLAGS="$save_CPPFLAGS"
11305 LDFLAGS="$save_LDFLAGS"
11306 LIBS="$save_LIBS"
11307 ;;
11308 esac
11309
11310 case $lt_cv_dlopen_self in
11311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11312 *) enable_dlopen_self=unknown ;;
11313 esac
11314
11315 case $lt_cv_dlopen_self_static in
11316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11317 *) enable_dlopen_self_static=unknown ;;
11318 esac
11319 fi
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337 striplib=
11338 old_striplib=
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11340 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11341 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11345 $as_echo "yes" >&6; }
11346 else
11347 # FIXME - insert some real tests, host_os isn't really good enough
11348 case $host_os in
11349 darwin*)
11350 if test -n "$STRIP" ; then
11351 striplib="$STRIP -x"
11352 old_striplib="$STRIP -S"
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11354 $as_echo "yes" >&6; }
11355 else
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358 fi
11359 ;;
11360 *)
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363 ;;
11364 esac
11365 fi
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378 # Report which library types will actually be built
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11380 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11382 $as_echo "$can_build_shared" >&6; }
11383
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11385 $as_echo_n "checking whether to build shared libraries... " >&6; }
11386 test "$can_build_shared" = "no" && enable_shared=no
11387
11388 # On AIX, shared libraries and static libraries use the same namespace, and
11389 # are all built from PIC.
11390 case $host_os in
11391 aix3*)
11392 test "$enable_shared" = yes && enable_static=no
11393 if test -n "$RANLIB"; then
11394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11395 postinstall_cmds='$RANLIB $lib'
11396 fi
11397 ;;
11398
11399 aix[4-9]*)
11400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11401 test "$enable_shared" = yes && enable_static=no
11402 fi
11403 ;;
11404 esac
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11406 $as_echo "$enable_shared" >&6; }
11407
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11409 $as_echo_n "checking whether to build static libraries... " >&6; }
11410 # Make sure either enable_shared or enable_static is yes.
11411 test "$enable_shared" = yes || enable_static=yes
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11413 $as_echo "$enable_static" >&6; }
11414
11415
11416
11417
11418 fi
11419 ac_ext=c
11420 ac_cpp='$CPP $CPPFLAGS'
11421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11424
11425 CC="$lt_save_CC"
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439 # Source file extension for Go test sources.
11440 ac_ext=go
11441
11442 # Object file extension for compiled Go test sources.
11443 objext=o
11444 objext_GO=$objext
11445
11446 # Code to be used in simple compile tests
11447 lt_simple_compile_test_code="package main; func main() { }"
11448
11449 # Code to be used in simple link tests
11450 lt_simple_link_test_code='package main; func main() { }'
11451
11452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11453
11454
11455
11456
11457
11458
11459 # If no C compiler was specified, use CC.
11460 LTCC=${LTCC-"$CC"}
11461
11462 # If no C compiler flags were specified, use CFLAGS.
11463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11464
11465 # Allow CC to be a program name with arguments.
11466 compiler=$CC
11467
11468
11469 # save warnings/boilerplate of simple test code
11470 ac_outfile=conftest.$ac_objext
11471 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11473 _lt_compiler_boilerplate=`cat conftest.err`
11474 $RM conftest*
11475
11476 ac_outfile=conftest.$ac_objext
11477 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11479 _lt_linker_boilerplate=`cat conftest.err`
11480 $RM -r conftest*
11481
11482
11483 # Allow CC to be a program name with arguments.
11484 lt_save_CC="$CC"
11485 lt_save_GCC="$GCC"
11486 GCC=yes
11487 CC=${GOC-"gccgo"}
11488 compiler=$CC
11489 compiler_GO=$CC
11490 LD_GO="$LD"
11491 for cc_temp in $compiler""; do
11492 case $cc_temp in
11493 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11494 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11495 \-*) ;;
11496 *) break;;
11497 esac
11498 done
11499 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11500
11501
11502 # Go did not exist at the time GCC didn't implicitly link libc in.
11503 archive_cmds_need_lc_GO=no
11504
11505 old_archive_cmds_GO=$old_archive_cmds
11506
11507 ## CAVEAT EMPTOR:
11508 ## There is no encapsulation within the following macros, do not change
11509 ## the running order or otherwise move them around unless you know exactly
11510 ## what you are doing...
11511 if test -n "$compiler"; then
11512
11513 lt_prog_compiler_no_builtin_flag_GO=
11514
11515 if test "$GCC" = yes; then
11516 case $cc_basename in
11517 nvcc*)
11518 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11519 *)
11520 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11521 esac
11522
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11524 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11526 $as_echo_n "(cached) " >&6
11527 else
11528 lt_cv_prog_compiler_rtti_exceptions=no
11529 ac_outfile=conftest.$ac_objext
11530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11531 lt_compiler_flag="-fno-rtti -fno-exceptions"
11532 # Insert the option either (1) after the last *FLAGS variable, or
11533 # (2) before a word containing "conftest.", or (3) at the end.
11534 # Note that $ac_compile itself does not contain backslashes and begins
11535 # with a dollar sign (not a hyphen), so the echo should work correctly.
11536 # The option is referenced via a variable to avoid confusing sed.
11537 lt_compile=`echo "$ac_compile" | $SED \
11538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11540 -e 's:$: $lt_compiler_flag:'`
11541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11542 (eval "$lt_compile" 2>conftest.err)
11543 ac_status=$?
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 if (exit $ac_status) && test -s "$ac_outfile"; then
11547 # The compiler can only warn and ignore the option if not recognized
11548 # So say no if there are warnings other than the usual output.
11549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11552 lt_cv_prog_compiler_rtti_exceptions=yes
11553 fi
11554 fi
11555 $RM conftest*
11556
11557 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11559 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11560
11561 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11562 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11563 else
11564 :
11565 fi
11566
11567 fi
11568
11569
11570
11571 lt_prog_compiler_wl_GO=
11572 lt_prog_compiler_pic_GO=
11573 lt_prog_compiler_static_GO=
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11576 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11577
11578 if test "$GCC" = yes; then
11579 lt_prog_compiler_wl_GO='-Wl,'
11580 lt_prog_compiler_static_GO='-static'
11581
11582 case $host_os in
11583 aix*)
11584 # All AIX code is PIC.
11585 if test "$host_cpu" = ia64; then
11586 # AIX 5 now supports IA64 processor
11587 lt_prog_compiler_static_GO='-Bstatic'
11588 fi
11589 ;;
11590
11591 amigaos*)
11592 case $host_cpu in
11593 powerpc)
11594 # see comment about AmigaOS4 .so support
11595 lt_prog_compiler_pic_GO='-fPIC'
11596 ;;
11597 m68k)
11598 # FIXME: we need at least 68020 code to build shared libraries, but
11599 # adding the `-m68020' flag to GCC prevents building anything better,
11600 # like `-m68040'.
11601 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11602 ;;
11603 esac
11604 ;;
11605
11606 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11607 # PIC is the default for these OSes.
11608 ;;
11609
11610 mingw* | cygwin* | pw32* | os2* | cegcc*)
11611 # This hack is so that the source file can tell whether it is being
11612 # built for inclusion in a dll (and should export symbols for example).
11613 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11614 # (--disable-auto-import) libraries
11615 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11616 ;;
11617
11618 darwin* | rhapsody*)
11619 # PIC is the default on this platform
11620 # Common symbols not allowed in MH_DYLIB files
11621 lt_prog_compiler_pic_GO='-fno-common'
11622 ;;
11623
11624 haiku*)
11625 # PIC is the default for Haiku.
11626 # The "-static" flag exists, but is broken.
11627 lt_prog_compiler_static_GO=
11628 ;;
11629
11630 hpux*)
11631 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11632 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11633 # sets the default TLS model and affects inlining.
11634 case $host_cpu in
11635 hppa*64*)
11636 # +Z the default
11637 ;;
11638 *)
11639 lt_prog_compiler_pic_GO='-fPIC'
11640 ;;
11641 esac
11642 ;;
11643
11644 interix[3-9]*)
11645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11646 # Instead, we relocate shared libraries at runtime.
11647 ;;
11648
11649 msdosdjgpp*)
11650 # Just because we use GCC doesn't mean we suddenly get shared libraries
11651 # on systems that don't support them.
11652 lt_prog_compiler_can_build_shared_GO=no
11653 enable_shared=no
11654 ;;
11655
11656 *nto* | *qnx*)
11657 # QNX uses GNU C++, but need to define -shared option too, otherwise
11658 # it will coredump.
11659 lt_prog_compiler_pic_GO='-fPIC -shared'
11660 ;;
11661
11662 sysv4*MP*)
11663 if test -d /usr/nec; then
11664 lt_prog_compiler_pic_GO=-Kconform_pic
11665 fi
11666 ;;
11667
11668 *)
11669 lt_prog_compiler_pic_GO='-fPIC'
11670 ;;
11671 esac
11672
11673 case $cc_basename in
11674 nvcc*) # Cuda Compiler Driver 2.2
11675 lt_prog_compiler_wl_GO='-Xlinker '
11676 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11677 ;;
11678 esac
11679 else
11680 # PORTME Check for flag to pass linker flags through the system compiler.
11681 case $host_os in
11682 aix*)
11683 lt_prog_compiler_wl_GO='-Wl,'
11684 if test "$host_cpu" = ia64; then
11685 # AIX 5 now supports IA64 processor
11686 lt_prog_compiler_static_GO='-Bstatic'
11687 else
11688 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11689 fi
11690 ;;
11691
11692 mingw* | cygwin* | pw32* | os2* | cegcc*)
11693 # This hack is so that the source file can tell whether it is being
11694 # built for inclusion in a dll (and should export symbols for example).
11695 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11696 ;;
11697
11698 hpux9* | hpux10* | hpux11*)
11699 lt_prog_compiler_wl_GO='-Wl,'
11700 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11701 # not for PA HP-UX.
11702 case $host_cpu in
11703 hppa*64*|ia64*)
11704 # +Z the default
11705 ;;
11706 *)
11707 lt_prog_compiler_pic_GO='+Z'
11708 ;;
11709 esac
11710 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11711 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11712 ;;
11713
11714 irix5* | irix6* | nonstopux*)
11715 lt_prog_compiler_wl_GO='-Wl,'
11716 # PIC (with -KPIC) is the default.
11717 lt_prog_compiler_static_GO='-non_shared'
11718 ;;
11719
11720 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11721 case $cc_basename in
11722 # old Intel for x86_64 which still supported -KPIC.
11723 ecc*)
11724 lt_prog_compiler_wl_GO='-Wl,'
11725 lt_prog_compiler_pic_GO='-KPIC'
11726 lt_prog_compiler_static_GO='-static'
11727 ;;
11728 # icc used to be incompatible with GCC.
11729 # ICC 10 doesn't accept -KPIC any more.
11730 icc* | ifort*)
11731 lt_prog_compiler_wl_GO='-Wl,'
11732 lt_prog_compiler_pic_GO='-fPIC'
11733 lt_prog_compiler_static_GO='-static'
11734 ;;
11735 # Lahey Fortran 8.1.
11736 lf95*)
11737 lt_prog_compiler_wl_GO='-Wl,'
11738 lt_prog_compiler_pic_GO='--shared'
11739 lt_prog_compiler_static_GO='--static'
11740 ;;
11741 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11742 # Portland Group compilers (*not* the Pentium gcc compiler,
11743 # which looks to be a dead project)
11744 lt_prog_compiler_wl_GO='-Wl,'
11745 lt_prog_compiler_pic_GO='-fpic'
11746 lt_prog_compiler_static_GO='-Bstatic'
11747 ;;
11748 ccc*)
11749 lt_prog_compiler_wl_GO='-Wl,'
11750 # All Alpha code is PIC.
11751 lt_prog_compiler_static_GO='-non_shared'
11752 ;;
11753 xl* | bgxl* | bgf* | mpixl*)
11754 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11755 lt_prog_compiler_wl_GO='-Wl,'
11756 lt_prog_compiler_pic_GO='-qpic'
11757 lt_prog_compiler_static_GO='-qstaticlink'
11758 ;;
11759 *)
11760 case `$CC -V 2>&1 | sed 5q` in
11761 *Sun\ F* | *Sun*Fortran*)
11762 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11763 lt_prog_compiler_pic_GO='-KPIC'
11764 lt_prog_compiler_static_GO='-Bstatic'
11765 lt_prog_compiler_wl_GO=''
11766 ;;
11767 *Sun\ C*)
11768 # Sun C 5.9
11769 lt_prog_compiler_pic_GO='-KPIC'
11770 lt_prog_compiler_static_GO='-Bstatic'
11771 lt_prog_compiler_wl_GO='-Wl,'
11772 ;;
11773 esac
11774 ;;
11775 esac
11776 ;;
11777
11778 newsos6)
11779 lt_prog_compiler_pic_GO='-KPIC'
11780 lt_prog_compiler_static_GO='-Bstatic'
11781 ;;
11782
11783 *nto* | *qnx*)
11784 # QNX uses GNU C++, but need to define -shared option too, otherwise
11785 # it will coredump.
11786 lt_prog_compiler_pic_GO='-fPIC -shared'
11787 ;;
11788
11789 osf3* | osf4* | osf5*)
11790 lt_prog_compiler_wl_GO='-Wl,'
11791 # All OSF/1 code is PIC.
11792 lt_prog_compiler_static_GO='-non_shared'
11793 ;;
11794
11795 rdos*)
11796 lt_prog_compiler_static_GO='-non_shared'
11797 ;;
11798
11799 solaris*)
11800 lt_prog_compiler_pic_GO='-KPIC'
11801 lt_prog_compiler_static_GO='-Bstatic'
11802 case $cc_basename in
11803 f77* | f90* | f95*)
11804 lt_prog_compiler_wl_GO='-Qoption ld ';;
11805 *)
11806 lt_prog_compiler_wl_GO='-Wl,';;
11807 esac
11808 ;;
11809
11810 sunos4*)
11811 lt_prog_compiler_wl_GO='-Qoption ld '
11812 lt_prog_compiler_pic_GO='-PIC'
11813 lt_prog_compiler_static_GO='-Bstatic'
11814 ;;
11815
11816 sysv4 | sysv4.2uw2* | sysv4.3*)
11817 lt_prog_compiler_wl_GO='-Wl,'
11818 lt_prog_compiler_pic_GO='-KPIC'
11819 lt_prog_compiler_static_GO='-Bstatic'
11820 ;;
11821
11822 sysv4*MP*)
11823 if test -d /usr/nec ;then
11824 lt_prog_compiler_pic_GO='-Kconform_pic'
11825 lt_prog_compiler_static_GO='-Bstatic'
11826 fi
11827 ;;
11828
11829 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11830 lt_prog_compiler_wl_GO='-Wl,'
11831 lt_prog_compiler_pic_GO='-KPIC'
11832 lt_prog_compiler_static_GO='-Bstatic'
11833 ;;
11834
11835 unicos*)
11836 lt_prog_compiler_wl_GO='-Wl,'
11837 lt_prog_compiler_can_build_shared_GO=no
11838 ;;
11839
11840 uts4*)
11841 lt_prog_compiler_pic_GO='-pic'
11842 lt_prog_compiler_static_GO='-Bstatic'
11843 ;;
11844
11845 *)
11846 lt_prog_compiler_can_build_shared_GO=no
11847 ;;
11848 esac
11849 fi
11850
11851 case $host_os in
11852 # For platforms which do not support PIC, -DPIC is meaningless:
11853 *djgpp*)
11854 lt_prog_compiler_pic_GO=
11855 ;;
11856 *)
11857 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11858 ;;
11859 esac
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11861 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11862
11863
11864
11865 #
11866 # Check to make sure the PIC flag actually works.
11867 #
11868 if test -n "$lt_prog_compiler_pic_GO"; then
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11870 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11871 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11872 $as_echo_n "(cached) " >&6
11873 else
11874 lt_cv_prog_compiler_pic_works_GO=no
11875 ac_outfile=conftest.$ac_objext
11876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11877 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11878 # Insert the option either (1) after the last *FLAGS variable, or
11879 # (2) before a word containing "conftest.", or (3) at the end.
11880 # Note that $ac_compile itself does not contain backslashes and begins
11881 # with a dollar sign (not a hyphen), so the echo should work correctly.
11882 # The option is referenced via a variable to avoid confusing sed.
11883 lt_compile=`echo "$ac_compile" | $SED \
11884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11886 -e 's:$: $lt_compiler_flag:'`
11887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11888 (eval "$lt_compile" 2>conftest.err)
11889 ac_status=$?
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 if (exit $ac_status) && test -s "$ac_outfile"; then
11893 # The compiler can only warn and ignore the option if not recognized
11894 # So say no if there are warnings other than the usual output.
11895 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11898 lt_cv_prog_compiler_pic_works_GO=yes
11899 fi
11900 fi
11901 $RM conftest*
11902
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11905 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11906
11907 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11908 case $lt_prog_compiler_pic_GO in
11909 "" | " "*) ;;
11910 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11911 esac
11912 else
11913 lt_prog_compiler_pic_GO=
11914 lt_prog_compiler_can_build_shared_GO=no
11915 fi
11916
11917 fi
11918
11919
11920
11921 #
11922 # Check to make sure the static flag actually works.
11923 #
11924 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11926 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11927 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930 lt_cv_prog_compiler_static_works_GO=no
11931 save_LDFLAGS="$LDFLAGS"
11932 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11933 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11935 # The linker can only warn and ignore the option if not recognized
11936 # So say no if there are warnings
11937 if test -s conftest.err; then
11938 # Append any errors to the config.log.
11939 cat conftest.err 1>&5
11940 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11942 if diff conftest.exp conftest.er2 >/dev/null; then
11943 lt_cv_prog_compiler_static_works_GO=yes
11944 fi
11945 else
11946 lt_cv_prog_compiler_static_works_GO=yes
11947 fi
11948 fi
11949 $RM -r conftest*
11950 LDFLAGS="$save_LDFLAGS"
11951
11952 fi
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11954 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11955
11956 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11957 :
11958 else
11959 lt_prog_compiler_static_GO=
11960 fi
11961
11962
11963
11964
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11967 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 lt_cv_prog_compiler_c_o_GO=no
11971 $RM -r conftest 2>/dev/null
11972 mkdir conftest
11973 cd conftest
11974 mkdir out
11975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11976
11977 lt_compiler_flag="-o out/conftest2.$ac_objext"
11978 # Insert the option either (1) after the last *FLAGS variable, or
11979 # (2) before a word containing "conftest.", or (3) at the end.
11980 # Note that $ac_compile itself does not contain backslashes and begins
11981 # with a dollar sign (not a hyphen), so the echo should work correctly.
11982 lt_compile=`echo "$ac_compile" | $SED \
11983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11985 -e 's:$: $lt_compiler_flag:'`
11986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11987 (eval "$lt_compile" 2>out/conftest.err)
11988 ac_status=$?
11989 cat out/conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11992 then
11993 # The compiler can only warn and ignore the option if not recognized
11994 # So say no if there are warnings
11995 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11996 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11997 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11998 lt_cv_prog_compiler_c_o_GO=yes
11999 fi
12000 fi
12001 chmod u+w . 2>&5
12002 $RM conftest*
12003 # SGI C++ compiler will create directory out/ii_files/ for
12004 # template instantiation
12005 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12006 $RM out/* && rmdir out
12007 cd ..
12008 $RM -r conftest
12009 $RM conftest*
12010
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12013 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12014
12015
12016
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12019 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12020 $as_echo_n "(cached) " >&6
12021 else
12022 lt_cv_prog_compiler_c_o_GO=no
12023 $RM -r conftest 2>/dev/null
12024 mkdir conftest
12025 cd conftest
12026 mkdir out
12027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12028
12029 lt_compiler_flag="-o out/conftest2.$ac_objext"
12030 # Insert the option either (1) after the last *FLAGS variable, or
12031 # (2) before a word containing "conftest.", or (3) at the end.
12032 # Note that $ac_compile itself does not contain backslashes and begins
12033 # with a dollar sign (not a hyphen), so the echo should work correctly.
12034 lt_compile=`echo "$ac_compile" | $SED \
12035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12037 -e 's:$: $lt_compiler_flag:'`
12038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12039 (eval "$lt_compile" 2>out/conftest.err)
12040 ac_status=$?
12041 cat out/conftest.err >&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12044 then
12045 # The compiler can only warn and ignore the option if not recognized
12046 # So say no if there are warnings
12047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12050 lt_cv_prog_compiler_c_o_GO=yes
12051 fi
12052 fi
12053 chmod u+w . 2>&5
12054 $RM conftest*
12055 # SGI C++ compiler will create directory out/ii_files/ for
12056 # template instantiation
12057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12058 $RM out/* && rmdir out
12059 cd ..
12060 $RM -r conftest
12061 $RM conftest*
12062
12063 fi
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12065 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12066
12067
12068
12069
12070 hard_links="nottested"
12071 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12072 # do not overwrite the value of need_locks provided by the user
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12074 $as_echo_n "checking if we can lock with hard links... " >&6; }
12075 hard_links=yes
12076 $RM conftest*
12077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12078 touch conftest.a
12079 ln conftest.a conftest.b 2>&5 || hard_links=no
12080 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12082 $as_echo "$hard_links" >&6; }
12083 if test "$hard_links" = no; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12085 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12086 need_locks=warn
12087 fi
12088 else
12089 need_locks=no
12090 fi
12091
12092
12093
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12096
12097 runpath_var=
12098 allow_undefined_flag_GO=
12099 always_export_symbols_GO=no
12100 archive_cmds_GO=
12101 archive_expsym_cmds_GO=
12102 compiler_needs_object_GO=no
12103 enable_shared_with_static_runtimes_GO=no
12104 export_dynamic_flag_spec_GO=
12105 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12106 hardcode_automatic_GO=no
12107 hardcode_direct_GO=no
12108 hardcode_direct_absolute_GO=no
12109 hardcode_libdir_flag_spec_GO=
12110 hardcode_libdir_flag_spec_ld_GO=
12111 hardcode_libdir_separator_GO=
12112 hardcode_minus_L_GO=no
12113 hardcode_shlibpath_var_GO=unsupported
12114 inherit_rpath_GO=no
12115 link_all_deplibs_GO=unknown
12116 module_cmds_GO=
12117 module_expsym_cmds_GO=
12118 old_archive_from_new_cmds_GO=
12119 old_archive_from_expsyms_cmds_GO=
12120 thread_safe_flag_spec_GO=
12121 whole_archive_flag_spec_GO=
12122 # include_expsyms should be a list of space-separated symbols to be *always*
12123 # included in the symbol list
12124 include_expsyms_GO=
12125 # exclude_expsyms can be an extended regexp of symbols to exclude
12126 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12127 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12128 # as well as any symbol that contains `d'.
12129 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12130 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12131 # platforms (ab)use it in PIC code, but their linkers get confused if
12132 # the symbol is explicitly referenced. Since portable code cannot
12133 # rely on this symbol name, it's probably fine to never include it in
12134 # preloaded symbol tables.
12135 # Exclude shared library initialization/finalization symbols.
12136 extract_expsyms_cmds=
12137
12138 case $host_os in
12139 cygwin* | mingw* | pw32* | cegcc*)
12140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12141 # When not using gcc, we currently assume that we are using
12142 # Microsoft Visual C++.
12143 if test "$GCC" != yes; then
12144 with_gnu_ld=no
12145 fi
12146 ;;
12147 interix*)
12148 # we just hope/assume this is gcc and not c89 (= MSVC++)
12149 with_gnu_ld=yes
12150 ;;
12151 openbsd*)
12152 with_gnu_ld=no
12153 ;;
12154 esac
12155
12156 ld_shlibs_GO=yes
12157
12158 # On some targets, GNU ld is compatible enough with the native linker
12159 # that we're better off using the native interface for both.
12160 lt_use_gnu_ld_interface=no
12161 if test "$with_gnu_ld" = yes; then
12162 case $host_os in
12163 aix*)
12164 # The AIX port of GNU ld has always aspired to compatibility
12165 # with the native linker. However, as the warning in the GNU ld
12166 # block says, versions before 2.19.5* couldn't really create working
12167 # shared libraries, regardless of the interface used.
12168 case `$LD -v 2>&1` in
12169 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12170 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12171 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12172 *)
12173 lt_use_gnu_ld_interface=yes
12174 ;;
12175 esac
12176 ;;
12177 *)
12178 lt_use_gnu_ld_interface=yes
12179 ;;
12180 esac
12181 fi
12182
12183 if test "$lt_use_gnu_ld_interface" = yes; then
12184 # If archive_cmds runs LD, not CC, wlarc should be empty
12185 wlarc='${wl}'
12186
12187 # Set some defaults for GNU ld with shared library support. These
12188 # are reset later if shared libraries are not supported. Putting them
12189 # here allows them to be overridden if necessary.
12190 runpath_var=LD_RUN_PATH
12191 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12192 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12193 # ancient GNU ld didn't support --whole-archive et. al.
12194 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12195 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12196 else
12197 whole_archive_flag_spec_GO=
12198 fi
12199 supports_anon_versioning=no
12200 case `$LD -v 2>&1` in
12201 *GNU\ gold*) supports_anon_versioning=yes ;;
12202 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12203 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12204 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12205 *\ 2.11.*) ;; # other 2.11 versions
12206 *) supports_anon_versioning=yes ;;
12207 esac
12208
12209 # See if GNU ld supports shared libraries.
12210 case $host_os in
12211 aix[3-9]*)
12212 # On AIX/PPC, the GNU linker is very broken
12213 if test "$host_cpu" != ia64; then
12214 ld_shlibs_GO=no
12215 cat <<_LT_EOF 1>&2
12216
12217 *** Warning: the GNU linker, at least up to release 2.19, is reported
12218 *** to be unable to reliably create shared libraries on AIX.
12219 *** Therefore, libtool is disabling shared libraries support. If you
12220 *** really care for shared libraries, you may want to install binutils
12221 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12222 *** You will then need to restart the configuration process.
12223
12224 _LT_EOF
12225 fi
12226 ;;
12227
12228 amigaos*)
12229 case $host_cpu in
12230 powerpc)
12231 # see comment about AmigaOS4 .so support
12232 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12233 archive_expsym_cmds_GO=''
12234 ;;
12235 m68k)
12236 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)'
12237 hardcode_libdir_flag_spec_GO='-L$libdir'
12238 hardcode_minus_L_GO=yes
12239 ;;
12240 esac
12241 ;;
12242
12243 beos*)
12244 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12245 allow_undefined_flag_GO=unsupported
12246 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12247 # support --undefined. This deserves some investigation. FIXME
12248 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12249 else
12250 ld_shlibs_GO=no
12251 fi
12252 ;;
12253
12254 cygwin* | mingw* | pw32* | cegcc*)
12255 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12256 # as there is no search path for DLLs.
12257 hardcode_libdir_flag_spec_GO='-L$libdir'
12258 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12259 allow_undefined_flag_GO=unsupported
12260 always_export_symbols_GO=no
12261 enable_shared_with_static_runtimes_GO=yes
12262 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12263
12264 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12265 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12266 # If the export-symbols file already is a .def file (1st line
12267 # is EXPORTS), use it as is; otherwise, prepend...
12268 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12269 cp $export_symbols $output_objdir/$soname.def;
12270 else
12271 echo EXPORTS > $output_objdir/$soname.def;
12272 cat $export_symbols >> $output_objdir/$soname.def;
12273 fi~
12274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12275 else
12276 ld_shlibs_GO=no
12277 fi
12278 ;;
12279
12280 haiku*)
12281 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12282 link_all_deplibs_GO=yes
12283 ;;
12284
12285 interix[3-9]*)
12286 hardcode_direct_GO=no
12287 hardcode_shlibpath_var_GO=no
12288 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12289 export_dynamic_flag_spec_GO='${wl}-E'
12290 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12291 # Instead, shared libraries are loaded at an image base (0x10000000 by
12292 # default) and relocated if they conflict, which is a slow very memory
12293 # consuming and fragmenting process. To avoid this, we pick a random,
12294 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12295 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12296 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'
12297 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'
12298 ;;
12299
12300 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12301 tmp_diet=no
12302 if test "$host_os" = linux-dietlibc; then
12303 case $cc_basename in
12304 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12305 esac
12306 fi
12307 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12308 && test "$tmp_diet" = no
12309 then
12310 tmp_addflag=
12311 tmp_sharedflag='-shared'
12312 case $cc_basename,$host_cpu in
12313 pgcc*) # Portland Group C compiler
12314 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'
12315 tmp_addflag=' $pic_flag'
12316 ;;
12317 pgf77* | pgf90* | pgf95* | pgfortran*)
12318 # Portland Group f77 and f90 compilers
12319 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'
12320 tmp_addflag=' $pic_flag -Mnomain' ;;
12321 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12322 tmp_addflag=' -i_dynamic' ;;
12323 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12324 tmp_addflag=' -i_dynamic -nofor_main' ;;
12325 ifc* | ifort*) # Intel Fortran compiler
12326 tmp_addflag=' -nofor_main' ;;
12327 lf95*) # Lahey Fortran 8.1
12328 whole_archive_flag_spec_GO=
12329 tmp_sharedflag='--shared' ;;
12330 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12331 tmp_sharedflag='-qmkshrobj'
12332 tmp_addflag= ;;
12333 nvcc*) # Cuda Compiler Driver 2.2
12334 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'
12335 compiler_needs_object_GO=yes
12336 ;;
12337 esac
12338 case `$CC -V 2>&1 | sed 5q` in
12339 *Sun\ C*) # Sun C 5.9
12340 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'
12341 compiler_needs_object_GO=yes
12342 tmp_sharedflag='-G' ;;
12343 *Sun\ F*) # Sun Fortran 8.3
12344 tmp_sharedflag='-G' ;;
12345 esac
12346 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12347
12348 if test "x$supports_anon_versioning" = xyes; then
12349 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12350 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12351 echo "local: *; };" >> $output_objdir/$libname.ver~
12352 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12353 fi
12354
12355 case $cc_basename in
12356 xlf* | bgf* | bgxlf* | mpixlf*)
12357 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12358 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12359 hardcode_libdir_flag_spec_GO=
12360 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12361 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12362 if test "x$supports_anon_versioning" = xyes; then
12363 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12364 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12365 echo "local: *; };" >> $output_objdir/$libname.ver~
12366 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12367 fi
12368 ;;
12369 esac
12370 else
12371 ld_shlibs_GO=no
12372 fi
12373 ;;
12374
12375 netbsd*)
12376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12377 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12378 wlarc=
12379 else
12380 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12381 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12382 fi
12383 ;;
12384
12385 solaris*)
12386 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12387 ld_shlibs_GO=no
12388 cat <<_LT_EOF 1>&2
12389
12390 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12391 *** create shared libraries on Solaris systems. Therefore, libtool
12392 *** is disabling shared libraries support. We urge you to upgrade GNU
12393 *** binutils to release 2.9.1 or newer. Another option is to modify
12394 *** your PATH or compiler configuration so that the native linker is
12395 *** used, and then restart.
12396
12397 _LT_EOF
12398 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12399 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12401 else
12402 ld_shlibs_GO=no
12403 fi
12404 ;;
12405
12406 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12407 case `$LD -v 2>&1` in
12408 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12409 ld_shlibs_GO=no
12410 cat <<_LT_EOF 1>&2
12411
12412 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12413 *** reliably create shared libraries on SCO systems. Therefore, libtool
12414 *** is disabling shared libraries support. We urge you to upgrade GNU
12415 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12416 *** your PATH or compiler configuration so that the native linker is
12417 *** used, and then restart.
12418
12419 _LT_EOF
12420 ;;
12421 *)
12422 # For security reasons, it is highly recommended that you always
12423 # use absolute paths for naming shared libraries, and exclude the
12424 # DT_RUNPATH tag from executables and libraries. But doing so
12425 # requires that you compile everything twice, which is a pain.
12426 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12427 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12428 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12429 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12430 else
12431 ld_shlibs_GO=no
12432 fi
12433 ;;
12434 esac
12435 ;;
12436
12437 sunos4*)
12438 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12439 wlarc=
12440 hardcode_direct_GO=yes
12441 hardcode_shlibpath_var_GO=no
12442 ;;
12443
12444 *)
12445 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12446 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12447 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12448 else
12449 ld_shlibs_GO=no
12450 fi
12451 ;;
12452 esac
12453
12454 if test "$ld_shlibs_GO" = no; then
12455 runpath_var=
12456 hardcode_libdir_flag_spec_GO=
12457 export_dynamic_flag_spec_GO=
12458 whole_archive_flag_spec_GO=
12459 fi
12460 else
12461 # PORTME fill in a description of your system's linker (not GNU ld)
12462 case $host_os in
12463 aix3*)
12464 allow_undefined_flag_GO=unsupported
12465 always_export_symbols_GO=yes
12466 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'
12467 # Note: this linker hardcodes the directories in LIBPATH if there
12468 # are no directories specified by -L.
12469 hardcode_minus_L_GO=yes
12470 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12471 # Neither direct hardcoding nor static linking is supported with a
12472 # broken collect2.
12473 hardcode_direct_GO=unsupported
12474 fi
12475 ;;
12476
12477 aix[4-9]*)
12478 if test "$host_cpu" = ia64; then
12479 # On IA64, the linker does run time linking by default, so we don't
12480 # have to do anything special.
12481 aix_use_runtimelinking=no
12482 exp_sym_flag='-Bexport'
12483 no_entry_flag=""
12484 else
12485 # If we're using GNU nm, then we don't want the "-C" option.
12486 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12487 # Also, AIX nm treats weak defined symbols like other global
12488 # defined symbols, whereas GNU nm marks them as "W".
12489 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12490 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'
12491 else
12492 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'
12493 fi
12494 aix_use_runtimelinking=no
12495
12496 # Test if we are trying to use run time linking or normal
12497 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12498 # need to do runtime linking.
12499 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12500 for ld_flag in $LDFLAGS; do
12501 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12502 aix_use_runtimelinking=yes
12503 break
12504 fi
12505 done
12506 ;;
12507 esac
12508
12509 exp_sym_flag='-bexport'
12510 no_entry_flag='-bnoentry'
12511 fi
12512
12513 # When large executables or shared objects are built, AIX ld can
12514 # have problems creating the table of contents. If linking a library
12515 # or program results in "error TOC overflow" add -mminimal-toc to
12516 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12517 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12518
12519 archive_cmds_GO=''
12520 hardcode_direct_GO=yes
12521 hardcode_direct_absolute_GO=yes
12522 hardcode_libdir_separator_GO=':'
12523 link_all_deplibs_GO=yes
12524 file_list_spec_GO='${wl}-f,'
12525
12526 if test "$GCC" = yes; then
12527 case $host_os in aix4.[012]|aix4.[012].*)
12528 # We only want to do this on AIX 4.2 and lower, the check
12529 # below for broken collect2 doesn't work under 4.3+
12530 collect2name=`${CC} -print-prog-name=collect2`
12531 if test -f "$collect2name" &&
12532 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12533 then
12534 # We have reworked collect2
12535 :
12536 else
12537 # We have old collect2
12538 hardcode_direct_GO=unsupported
12539 # It fails to find uninstalled libraries when the uninstalled
12540 # path is not listed in the libpath. Setting hardcode_minus_L
12541 # to unsupported forces relinking
12542 hardcode_minus_L_GO=yes
12543 hardcode_libdir_flag_spec_GO='-L$libdir'
12544 hardcode_libdir_separator_GO=
12545 fi
12546 ;;
12547 esac
12548 shared_flag='-shared'
12549 if test "$aix_use_runtimelinking" = yes; then
12550 shared_flag="$shared_flag "'${wl}-G'
12551 fi
12552 else
12553 # not using gcc
12554 if test "$host_cpu" = ia64; then
12555 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12556 # chokes on -Wl,-G. The following line is correct:
12557 shared_flag='-G'
12558 else
12559 if test "$aix_use_runtimelinking" = yes; then
12560 shared_flag='${wl}-G'
12561 else
12562 shared_flag='${wl}-bM:SRE'
12563 fi
12564 fi
12565 fi
12566
12567 export_dynamic_flag_spec_GO='${wl}-bexpall'
12568 # It seems that -bexpall does not export symbols beginning with
12569 # underscore (_), so it is better to generate a list of symbols to export.
12570 always_export_symbols_GO=yes
12571 if test "$aix_use_runtimelinking" = yes; then
12572 # Warning - without using the other runtime loading flags (-brtl),
12573 # -berok will link without error, but may produce a broken library.
12574 allow_undefined_flag_GO='-berok'
12575 # Determine the default libpath from the value encoded in an
12576 # empty executable.
12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h. */
12579
12580 int
12581 main ()
12582 {
12583
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 if ac_fn_c_try_link "$LINENO"; then :
12589
12590 lt_aix_libpath_sed='
12591 /Import File Strings/,/^$/ {
12592 /^0/ {
12593 s/^0 *\(.*\)$/\1/
12594 p
12595 }
12596 }'
12597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12598 # Check for a 64-bit object if we didn't find anything.
12599 if test -z "$aix_libpath"; then
12600 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12601 fi
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext \
12604 conftest$ac_exeext conftest.$ac_ext
12605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12606
12607 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12608 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"
12609 else
12610 if test "$host_cpu" = ia64; then
12611 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12612 allow_undefined_flag_GO="-z nodefs"
12613 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"
12614 else
12615 # Determine the default libpath from the value encoded in an
12616 # empty executable.
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12619
12620 int
12621 main ()
12622 {
12623
12624 ;
12625 return 0;
12626 }
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629
12630 lt_aix_libpath_sed='
12631 /Import File Strings/,/^$/ {
12632 /^0/ {
12633 s/^0 *\(.*\)$/\1/
12634 p
12635 }
12636 }'
12637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12638 # Check for a 64-bit object if we didn't find anything.
12639 if test -z "$aix_libpath"; then
12640 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641 fi
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext \
12644 conftest$ac_exeext conftest.$ac_ext
12645 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12646
12647 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12648 # Warning - without using the other run time loading flags,
12649 # -berok will link without error, but may produce a broken library.
12650 no_undefined_flag_GO=' ${wl}-bernotok'
12651 allow_undefined_flag_GO=' ${wl}-berok'
12652 if test "$with_gnu_ld" = yes; then
12653 # We only use this code for GNU lds that support --whole-archive.
12654 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12655 else
12656 # Exported symbols can be pulled into shared objects from archives
12657 whole_archive_flag_spec_GO='$convenience'
12658 fi
12659 archive_cmds_need_lc_GO=yes
12660 # This is similar to how AIX traditionally builds its shared libraries.
12661 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'
12662 fi
12663 fi
12664 ;;
12665
12666 amigaos*)
12667 case $host_cpu in
12668 powerpc)
12669 # see comment about AmigaOS4 .so support
12670 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671 archive_expsym_cmds_GO=''
12672 ;;
12673 m68k)
12674 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)'
12675 hardcode_libdir_flag_spec_GO='-L$libdir'
12676 hardcode_minus_L_GO=yes
12677 ;;
12678 esac
12679 ;;
12680
12681 bsdi[45]*)
12682 export_dynamic_flag_spec_GO=-rdynamic
12683 ;;
12684
12685 cygwin* | mingw* | pw32* | cegcc*)
12686 # When not using gcc, we currently assume that we are using
12687 # Microsoft Visual C++.
12688 # hardcode_libdir_flag_spec is actually meaningless, as there is
12689 # no search path for DLLs.
12690 hardcode_libdir_flag_spec_GO=' '
12691 allow_undefined_flag_GO=unsupported
12692 # Tell ltmain to make .lib files, not .a files.
12693 libext=lib
12694 # Tell ltmain to make .dll files, not .so files.
12695 shrext_cmds=".dll"
12696 # FIXME: Setting linknames here is a bad hack.
12697 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12698 # The linker will automatically build a .lib file if we build a DLL.
12699 old_archive_from_new_cmds_GO='true'
12700 # FIXME: Should let the user specify the lib program.
12701 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12702 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12703 enable_shared_with_static_runtimes_GO=yes
12704 ;;
12705
12706 darwin* | rhapsody*)
12707
12708
12709 archive_cmds_need_lc_GO=no
12710 hardcode_direct_GO=no
12711 hardcode_automatic_GO=yes
12712 hardcode_shlibpath_var_GO=unsupported
12713 if test "$lt_cv_ld_force_load" = "yes"; then
12714 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\"`'
12715 else
12716 whole_archive_flag_spec_GO=''
12717 fi
12718 link_all_deplibs_GO=yes
12719 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12720 case $cc_basename in
12721 ifort*) _lt_dar_can_shared=yes ;;
12722 *) _lt_dar_can_shared=$GCC ;;
12723 esac
12724 if test "$_lt_dar_can_shared" = "yes"; then
12725 output_verbose_link_cmd=func_echo_all
12726 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}"
12727 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12728 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}"
12729 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}"
12730
12731 else
12732 ld_shlibs_GO=no
12733 fi
12734
12735 ;;
12736
12737 dgux*)
12738 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12739 hardcode_libdir_flag_spec_GO='-L$libdir'
12740 hardcode_shlibpath_var_GO=no
12741 ;;
12742
12743 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12744 # support. Future versions do this automatically, but an explicit c++rt0.o
12745 # does not break anything, and helps significantly (at the cost of a little
12746 # extra space).
12747 freebsd2.2*)
12748 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12749 hardcode_libdir_flag_spec_GO='-R$libdir'
12750 hardcode_direct_GO=yes
12751 hardcode_shlibpath_var_GO=no
12752 ;;
12753
12754 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12755 freebsd2*)
12756 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12757 hardcode_direct_GO=yes
12758 hardcode_minus_L_GO=yes
12759 hardcode_shlibpath_var_GO=no
12760 ;;
12761
12762 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12763 freebsd* | dragonfly*)
12764 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12765 hardcode_libdir_flag_spec_GO='-R$libdir'
12766 hardcode_direct_GO=yes
12767 hardcode_shlibpath_var_GO=no
12768 ;;
12769
12770 hpux9*)
12771 if test "$GCC" = yes; then
12772 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'
12773 else
12774 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'
12775 fi
12776 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_separator_GO=:
12778 hardcode_direct_GO=yes
12779
12780 # hardcode_minus_L: Not really in the search PATH,
12781 # but as the default location of the library.
12782 hardcode_minus_L_GO=yes
12783 export_dynamic_flag_spec_GO='${wl}-E'
12784 ;;
12785
12786 hpux10*)
12787 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12788 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12789 else
12790 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12791 fi
12792 if test "$with_gnu_ld" = no; then
12793 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12794 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12795 hardcode_libdir_separator_GO=:
12796 hardcode_direct_GO=yes
12797 hardcode_direct_absolute_GO=yes
12798 export_dynamic_flag_spec_GO='${wl}-E'
12799 # hardcode_minus_L: Not really in the search PATH,
12800 # but as the default location of the library.
12801 hardcode_minus_L_GO=yes
12802 fi
12803 ;;
12804
12805 hpux11*)
12806 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12807 case $host_cpu in
12808 hppa*64*)
12809 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12810 ;;
12811 ia64*)
12812 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12813 ;;
12814 *)
12815 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12816 ;;
12817 esac
12818 else
12819 case $host_cpu in
12820 hppa*64*)
12821 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12822 ;;
12823 ia64*)
12824 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12825 ;;
12826 *)
12827 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12828 ;;
12829 esac
12830 fi
12831 if test "$with_gnu_ld" = no; then
12832 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12833 hardcode_libdir_separator_GO=:
12834
12835 case $host_cpu in
12836 hppa*64*|ia64*)
12837 hardcode_direct_GO=no
12838 hardcode_shlibpath_var_GO=no
12839 ;;
12840 *)
12841 hardcode_direct_GO=yes
12842 hardcode_direct_absolute_GO=yes
12843 export_dynamic_flag_spec_GO='${wl}-E'
12844
12845 # hardcode_minus_L: Not really in the search PATH,
12846 # but as the default location of the library.
12847 hardcode_minus_L_GO=yes
12848 ;;
12849 esac
12850 fi
12851 ;;
12852
12853 irix5* | irix6* | nonstopux*)
12854 if test "$GCC" = yes; then
12855 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'
12856 # Try to use the -exported_symbol ld option, if it does not
12857 # work, assume that -exports_file does not work either and
12858 # implicitly export all symbols.
12859 save_LDFLAGS="$LDFLAGS"
12860 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h. */
12863 int foo(void) {}
12864 _ACEOF
12865 if ac_fn_c_try_link "$LINENO"; then :
12866 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'
12867
12868 fi
12869 rm -f core conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext conftest.$ac_ext
12871 LDFLAGS="$save_LDFLAGS"
12872 else
12873 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'
12874 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'
12875 fi
12876 archive_cmds_need_lc_GO='no'
12877 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12878 hardcode_libdir_separator_GO=:
12879 inherit_rpath_GO=yes
12880 link_all_deplibs_GO=yes
12881 ;;
12882
12883 netbsd*)
12884 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12885 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12886 else
12887 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12888 fi
12889 hardcode_libdir_flag_spec_GO='-R$libdir'
12890 hardcode_direct_GO=yes
12891 hardcode_shlibpath_var_GO=no
12892 ;;
12893
12894 newsos6)
12895 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896 hardcode_direct_GO=yes
12897 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12898 hardcode_libdir_separator_GO=:
12899 hardcode_shlibpath_var_GO=no
12900 ;;
12901
12902 *nto* | *qnx*)
12903 ;;
12904
12905 openbsd*)
12906 if test -f /usr/libexec/ld.so; then
12907 hardcode_direct_GO=yes
12908 hardcode_shlibpath_var_GO=no
12909 hardcode_direct_absolute_GO=yes
12910 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12911 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12912 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12913 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12914 export_dynamic_flag_spec_GO='${wl}-E'
12915 else
12916 case $host_os in
12917 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12918 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12919 hardcode_libdir_flag_spec_GO='-R$libdir'
12920 ;;
12921 *)
12922 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12923 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12924 ;;
12925 esac
12926 fi
12927 else
12928 ld_shlibs_GO=no
12929 fi
12930 ;;
12931
12932 os2*)
12933 hardcode_libdir_flag_spec_GO='-L$libdir'
12934 hardcode_minus_L_GO=yes
12935 allow_undefined_flag_GO=unsupported
12936 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'
12937 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12938 ;;
12939
12940 osf3*)
12941 if test "$GCC" = yes; then
12942 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12943 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'
12944 else
12945 allow_undefined_flag_GO=' -expect_unresolved \*'
12946 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'
12947 fi
12948 archive_cmds_need_lc_GO='no'
12949 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12950 hardcode_libdir_separator_GO=:
12951 ;;
12952
12953 osf4* | osf5*) # as osf3* with the addition of -msym flag
12954 if test "$GCC" = yes; then
12955 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12956 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'
12957 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12958 else
12959 allow_undefined_flag_GO=' -expect_unresolved \*'
12960 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'
12961 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~
12962 $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'
12963
12964 # Both c and cxx compiler support -rpath directly
12965 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12966 fi
12967 archive_cmds_need_lc_GO='no'
12968 hardcode_libdir_separator_GO=:
12969 ;;
12970
12971 solaris*)
12972 no_undefined_flag_GO=' -z defs'
12973 if test "$GCC" = yes; then
12974 wlarc='${wl}'
12975 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12976 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12977 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12978 else
12979 case `$CC -V 2>&1` in
12980 *"Compilers 5.0"*)
12981 wlarc=''
12982 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12983 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12984 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12985 ;;
12986 *)
12987 wlarc='${wl}'
12988 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12989 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12990 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12991 ;;
12992 esac
12993 fi
12994 hardcode_libdir_flag_spec_GO='-R$libdir'
12995 hardcode_shlibpath_var_GO=no
12996 case $host_os in
12997 solaris2.[0-5] | solaris2.[0-5].*) ;;
12998 *)
12999 # The compiler driver will combine and reorder linker options,
13000 # but understands `-z linker_flag'. GCC discards it without `$wl',
13001 # but is careful enough not to reorder.
13002 # Supported since Solaris 2.6 (maybe 2.5.1?)
13003 if test "$GCC" = yes; then
13004 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13005 else
13006 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13007 fi
13008 ;;
13009 esac
13010 link_all_deplibs_GO=yes
13011 ;;
13012
13013 sunos4*)
13014 if test "x$host_vendor" = xsequent; then
13015 # Use $CC to link under sequent, because it throws in some extra .o
13016 # files that make .init and .fini sections work.
13017 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13018 else
13019 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13020 fi
13021 hardcode_libdir_flag_spec_GO='-L$libdir'
13022 hardcode_direct_GO=yes
13023 hardcode_minus_L_GO=yes
13024 hardcode_shlibpath_var_GO=no
13025 ;;
13026
13027 sysv4)
13028 case $host_vendor in
13029 sni)
13030 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13031 hardcode_direct_GO=yes # is this really true???
13032 ;;
13033 siemens)
13034 ## LD is ld it makes a PLAMLIB
13035 ## CC just makes a GrossModule.
13036 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13037 reload_cmds_GO='$CC -r -o $output$reload_objs'
13038 hardcode_direct_GO=no
13039 ;;
13040 motorola)
13041 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13042 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13043 ;;
13044 esac
13045 runpath_var='LD_RUN_PATH'
13046 hardcode_shlibpath_var_GO=no
13047 ;;
13048
13049 sysv4.3*)
13050 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13051 hardcode_shlibpath_var_GO=no
13052 export_dynamic_flag_spec_GO='-Bexport'
13053 ;;
13054
13055 sysv4*MP*)
13056 if test -d /usr/nec; then
13057 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13058 hardcode_shlibpath_var_GO=no
13059 runpath_var=LD_RUN_PATH
13060 hardcode_runpath_var=yes
13061 ld_shlibs_GO=yes
13062 fi
13063 ;;
13064
13065 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13066 no_undefined_flag_GO='${wl}-z,text'
13067 archive_cmds_need_lc_GO=no
13068 hardcode_shlibpath_var_GO=no
13069 runpath_var='LD_RUN_PATH'
13070
13071 if test "$GCC" = yes; then
13072 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13073 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074 else
13075 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 fi
13078 ;;
13079
13080 sysv5* | sco3.2v5* | sco5v6*)
13081 # Note: We can NOT use -z defs as we might desire, because we do not
13082 # link with -lc, and that would cause any symbols used from libc to
13083 # always be unresolved, which means just about no library would
13084 # ever link correctly. If we're not using GNU ld we use -z text
13085 # though, which does catch some bad symbols but isn't as heavy-handed
13086 # as -z defs.
13087 no_undefined_flag_GO='${wl}-z,text'
13088 allow_undefined_flag_GO='${wl}-z,nodefs'
13089 archive_cmds_need_lc_GO=no
13090 hardcode_shlibpath_var_GO=no
13091 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13092 hardcode_libdir_separator_GO=':'
13093 link_all_deplibs_GO=yes
13094 export_dynamic_flag_spec_GO='${wl}-Bexport'
13095 runpath_var='LD_RUN_PATH'
13096
13097 if test "$GCC" = yes; then
13098 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100 else
13101 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103 fi
13104 ;;
13105
13106 uts4*)
13107 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13108 hardcode_libdir_flag_spec_GO='-L$libdir'
13109 hardcode_shlibpath_var_GO=no
13110 ;;
13111
13112 *)
13113 ld_shlibs_GO=no
13114 ;;
13115 esac
13116
13117 if test x$host_vendor = xsni; then
13118 case $host in
13119 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13120 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13121 ;;
13122 esac
13123 fi
13124 fi
13125
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13127 $as_echo "$ld_shlibs_GO" >&6; }
13128 test "$ld_shlibs_GO" = no && can_build_shared=no
13129
13130 with_gnu_ld_GO=$with_gnu_ld
13131
13132
13133
13134
13135
13136
13137 #
13138 # Do we need to explicitly link libc?
13139 #
13140 case "x$archive_cmds_need_lc_GO" in
13141 x|xyes)
13142 # Assume -lc should be added
13143 archive_cmds_need_lc_GO=yes
13144
13145 if test "$enable_shared" = yes && test "$GCC" = yes; then
13146 case $archive_cmds_GO in
13147 *'~'*)
13148 # FIXME: we may have to deal with multi-command sequences.
13149 ;;
13150 '$CC '*)
13151 # Test whether the compiler implicitly links with -lc since on some
13152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13153 # to ld, don't add -lc before -lgcc.
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13155 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13156 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 $RM conftest*
13160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13161
13162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13163 (eval $ac_compile) 2>&5
13164 ac_status=$?
13165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166 test $ac_status = 0; } 2>conftest.err; then
13167 soname=conftest
13168 lib=conftest
13169 libobjs=conftest.$ac_objext
13170 deplibs=
13171 wl=$lt_prog_compiler_wl_GO
13172 pic_flag=$lt_prog_compiler_pic_GO
13173 compiler_flags=-v
13174 linker_flags=-v
13175 verstring=
13176 output_objdir=.
13177 libname=conftest
13178 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13179 allow_undefined_flag_GO=
13180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13181 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13182 ac_status=$?
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; }
13185 then
13186 lt_cv_archive_cmds_need_lc_GO=no
13187 else
13188 lt_cv_archive_cmds_need_lc_GO=yes
13189 fi
13190 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13191 else
13192 cat conftest.err 1>&5
13193 fi
13194 $RM conftest*
13195
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13198 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13199 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13200 ;;
13201 esac
13202 fi
13203 ;;
13204 esac
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13271 hardcode_action_GO=
13272 if test -n "$hardcode_libdir_flag_spec_GO" ||
13273 test -n "$runpath_var_GO" ||
13274 test "X$hardcode_automatic_GO" = "Xyes" ; then
13275
13276 # We can hardcode non-existent directories.
13277 if test "$hardcode_direct_GO" != no &&
13278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13279 # have to relink, otherwise we might link with an installed library
13280 # when we should be linking with a yet-to-be-installed one
13281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13282 test "$hardcode_minus_L_GO" != no; then
13283 # Linking always hardcodes the temporary library directory.
13284 hardcode_action_GO=relink
13285 else
13286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13287 hardcode_action_GO=immediate
13288 fi
13289 else
13290 # We cannot hardcode anything, or else we can only hardcode existing
13291 # directories.
13292 hardcode_action_GO=unsupported
13293 fi
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13295 $as_echo "$hardcode_action_GO" >&6; }
13296
13297 if test "$hardcode_action_GO" = relink ||
13298 test "$inherit_rpath_GO" = yes; then
13299 # Fast installation is not supported
13300 enable_fast_install=no
13301 elif test "$shlibpath_overrides_runpath" = yes ||
13302 test "$enable_shared" = no; then
13303 # Fast installation is not necessary
13304 enable_fast_install=needless
13305 fi
13306
13307
13308
13309
13310
13311
13312
13313 fi
13314
13315 ac_ext=c
13316 ac_cpp='$CPP $CPPFLAGS'
13317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13320
13321
13322 GCC=$lt_save_GCC
13323 CC="$lt_save_CC"
13324
13325
13326
13327
13328 ac_config_commands="$ac_config_commands libtool"
13329
13330
13331
13332
13333 # Only expand once:
13334
13335
13336
13337
13338
13339 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13340
13341
13342 for ac_prog in gawk mawk nawk awk
13343 do
13344 # Extract the first word of "$ac_prog", so it can be a program name with args.
13345 set dummy $ac_prog; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347 $as_echo_n "checking for $ac_word... " >&6; }
13348 if test "${ac_cv_prog_AWK+set}" = set; then :
13349 $as_echo_n "(cached) " >&6
13350 else
13351 if test -n "$AWK"; then
13352 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13353 else
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13356 do
13357 IFS=$as_save_IFS
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13361 ac_cv_prog_AWK="$ac_prog"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363 break 2
13364 fi
13365 done
13366 done
13367 IFS=$as_save_IFS
13368
13369 fi
13370 fi
13371 AWK=$ac_cv_prog_AWK
13372 if test -n "$AWK"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13374 $as_echo "$AWK" >&6; }
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378 fi
13379
13380
13381 test -n "$AWK" && break
13382 done
13383
13384
13385 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13386
13387
13388 WERROR="-Werror"
13389
13390
13391 glibgo_toolexecdir=no
13392 glibgo_toolexeclibdir=no
13393
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13395 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13396 # Check whether --enable-version-specific-runtime-libs was given.
13397 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13398 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13399 yes) version_specific_libs=yes ;;
13400 no) version_specific_libs=no ;;
13401 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13402 esac
13403 else
13404 version_specific_libs=no
13405 fi
13406
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13408 $as_echo "$version_specific_libs" >&6; }
13409
13410 # Version-specific runtime libs processing.
13411 if test $version_specific_libs = yes; then
13412 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13413 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13414 fi
13415
13416 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13417 # Install a library built with a cross compiler in tooldir, not libdir.
13418 if test -n "$with_cross_host" &&
13419 test x"$with_cross_host" != x"no"; then
13420 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13421 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13422 else
13423 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13424 nover_glibgo_toolexeclibdir='${libdir}'
13425 fi
13426 multi_os_directory=`$CC -print-multi-os-directory`
13427 case $multi_os_directory in
13428 .) ;; # Avoid trailing /.
13429 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13430 esac
13431
13432 if test x"$glibgo_toolexecdir" = x"no"; then
13433 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13434 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13435 fi
13436
13437
13438
13439
13440
13441 # See if the user wants to configure without libffi. Some
13442 # architectures don't support it. FIXME: We should set a default
13443 # based on the host.
13444
13445 # Check whether --with-libffi was given.
13446 if test "${with_libffi+set}" = set; then :
13447 withval=$with_libffi; :
13448 else
13449 with_libffi=${with_libffi_default-yes}
13450 fi
13451
13452
13453 LIBFFI=
13454 LIBFFIINCS=
13455 if test "$with_libffi" != no; then
13456
13457 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13458
13459 LIBFFI=../libffi/libffi_convenience.la
13460 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13461 fi
13462
13463
13464
13465 # Used to tell GNU make to include a file without telling automake to
13466 # include it.
13467 go_include="-include"
13468
13469
13470 is_darwin=no
13471 is_freebsd=no
13472 is_irix=no
13473 is_linux=no
13474 is_netbsd=no
13475 is_rtems=no
13476 is_solaris=no
13477 GOOS=unknown
13478 case ${host} in
13479 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13480 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13481 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13482 *-*-linux*) is_linux=yes; GOOS=linux ;;
13483 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13484 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13485 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13486 esac
13487 if test $is_darwin = yes; then
13488 LIBGO_IS_DARWIN_TRUE=
13489 LIBGO_IS_DARWIN_FALSE='#'
13490 else
13491 LIBGO_IS_DARWIN_TRUE='#'
13492 LIBGO_IS_DARWIN_FALSE=
13493 fi
13494
13495 if test $is_freebsd = yes; then
13496 LIBGO_IS_FREEBSD_TRUE=
13497 LIBGO_IS_FREEBSD_FALSE='#'
13498 else
13499 LIBGO_IS_FREEBSD_TRUE='#'
13500 LIBGO_IS_FREEBSD_FALSE=
13501 fi
13502
13503 if test $is_irix = yes; then
13504 LIBGO_IS_IRIX_TRUE=
13505 LIBGO_IS_IRIX_FALSE='#'
13506 else
13507 LIBGO_IS_IRIX_TRUE='#'
13508 LIBGO_IS_IRIX_FALSE=
13509 fi
13510
13511 if test $is_linux = yes; then
13512 LIBGO_IS_LINUX_TRUE=
13513 LIBGO_IS_LINUX_FALSE='#'
13514 else
13515 LIBGO_IS_LINUX_TRUE='#'
13516 LIBGO_IS_LINUX_FALSE=
13517 fi
13518
13519 if test $is_netbsd = yes; then
13520 LIBGO_IS_NETBSD_TRUE=
13521 LIBGO_IS_NETBSD_FALSE='#'
13522 else
13523 LIBGO_IS_NETBSD_TRUE='#'
13524 LIBGO_IS_NETBSD_FALSE=
13525 fi
13526
13527 if test $is_rtems = yes; then
13528 LIBGO_IS_RTEMS_TRUE=
13529 LIBGO_IS_RTEMS_FALSE='#'
13530 else
13531 LIBGO_IS_RTEMS_TRUE='#'
13532 LIBGO_IS_RTEMS_FALSE=
13533 fi
13534
13535 if test $is_solaris = yes; then
13536 LIBGO_IS_SOLARIS_TRUE=
13537 LIBGO_IS_SOLARIS_FALSE='#'
13538 else
13539 LIBGO_IS_SOLARIS_TRUE='#'
13540 LIBGO_IS_SOLARIS_FALSE=
13541 fi
13542
13543
13544
13545 is_386=no
13546 is_alpha=no
13547 is_arm=no
13548 is_m68k=no
13549 mips_abi=unknown
13550 is_ppc=no
13551 is_ppc64=no
13552 is_sparc=no
13553 is_sparc64=no
13554 is_x86_64=no
13555 GOARCH=unknown
13556 case ${host} in
13557 alpha*-*-*)
13558 is_alpha=yes
13559 GOARCH=alpha
13560 ;;
13561 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13562 is_arm=yes
13563 GOARCH=arm
13564 ;;
13565 i[34567]86-*-* | x86_64-*-*)
13566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568
13569 #ifdef __x86_64__
13570 #error 64-bit
13571 #endif
13572 _ACEOF
13573 if ac_fn_c_try_compile "$LINENO"; then :
13574 is_386=yes
13575 else
13576 is_x86_64=yes
13577 fi
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579 if test "$is_386" = "yes"; then
13580 GOARCH=386
13581 else
13582 GOARCH=amd64
13583 fi
13584 ;;
13585 m68k*-*-*)
13586 is_m68k=yes
13587 GOARCH=m68k
13588 ;;
13589 mips*-*-*)
13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13591 /* end confdefs.h. */
13592
13593 #if _MIPS_SIM != _ABIO32
13594 #error not o32
13595 #endif
13596 _ACEOF
13597 if ac_fn_c_try_compile "$LINENO"; then :
13598 mips_abi="o32"
13599 else
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13602
13603 #if _MIPS_SIM != _ABIN32
13604 #error not n32
13605 #endif
13606 _ACEOF
13607 if ac_fn_c_try_compile "$LINENO"; then :
13608 mips_abi="n32"
13609 else
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612
13613 #if _MIPS_SIM != _ABI64
13614 #error not n64
13615 #endif
13616 _ACEOF
13617 if ac_fn_c_try_compile "$LINENO"; then :
13618 mips_abi="n64"
13619 else
13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621 /* end confdefs.h. */
13622
13623 #if _MIPS_SIM != _ABIO64
13624 #error not o64
13625 #endif
13626 _ACEOF
13627 if ac_fn_c_try_compile "$LINENO"; then :
13628 mips_abi="o64"
13629 else
13630 as_fn_error "unknown MIPS ABI" "$LINENO" 5
13631 mips_abi="n32"
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 fi
13639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13640 case "$mips_abi" in
13641 "o32") GOARCH=mipso32 ;;
13642 "n32") GOARCH=mipsn32 ;;
13643 "n64") GOARCH=mipsn64 ;;
13644 "o64") GOARCH=mipso64 ;;
13645 esac
13646 ;;
13647 rs6000*-*-* | powerpc*-*-*)
13648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13649 /* end confdefs.h. */
13650
13651 #ifdef _ARCH_PPC64
13652 #error 64-bit
13653 #endif
13654 _ACEOF
13655 if ac_fn_c_try_compile "$LINENO"; then :
13656 is_ppc=yes
13657 else
13658 is_ppc64=yes
13659 fi
13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13661 if test "$is_ppc" = "yes"; then
13662 GOARCH=ppc
13663 else
13664 GOARCH=ppc64
13665 fi
13666 ;;
13667 sparc*-*-*)
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670
13671 #if defined(__sparcv9) || defined(__arch64__)
13672 #error 64-bit
13673 #endif
13674 _ACEOF
13675 if ac_fn_c_try_compile "$LINENO"; then :
13676 is_sparc=yes
13677 else
13678 is_sparc64=yes
13679 fi
13680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 if test "$is_sparc" = "yes"; then
13682 GOARCH=sparc
13683 else
13684 GOARCH=sparc64
13685 fi
13686 ;;
13687 esac
13688 if test $is_386 = yes; then
13689 LIBGO_IS_386_TRUE=
13690 LIBGO_IS_386_FALSE='#'
13691 else
13692 LIBGO_IS_386_TRUE='#'
13693 LIBGO_IS_386_FALSE=
13694 fi
13695
13696 if test $is_alpha = yes; then
13697 LIBGO_IS_ALPHA_TRUE=
13698 LIBGO_IS_ALPHA_FALSE='#'
13699 else
13700 LIBGO_IS_ALPHA_TRUE='#'
13701 LIBGO_IS_ALPHA_FALSE=
13702 fi
13703
13704 if test $is_arm = yes; then
13705 LIBGO_IS_ARM_TRUE=
13706 LIBGO_IS_ARM_FALSE='#'
13707 else
13708 LIBGO_IS_ARM_TRUE='#'
13709 LIBGO_IS_ARM_FALSE=
13710 fi
13711
13712 if test $is_m68k = yes; then
13713 LIBGO_IS_M68K_TRUE=
13714 LIBGO_IS_M68K_FALSE='#'
13715 else
13716 LIBGO_IS_M68K_TRUE='#'
13717 LIBGO_IS_M68K_FALSE=
13718 fi
13719
13720 if test $mips_abi != unknown; then
13721 LIBGO_IS_MIPS_TRUE=
13722 LIBGO_IS_MIPS_FALSE='#'
13723 else
13724 LIBGO_IS_MIPS_TRUE='#'
13725 LIBGO_IS_MIPS_FALSE=
13726 fi
13727
13728 if test $mips_abi = o32; then
13729 LIBGO_IS_MIPSO32_TRUE=
13730 LIBGO_IS_MIPSO32_FALSE='#'
13731 else
13732 LIBGO_IS_MIPSO32_TRUE='#'
13733 LIBGO_IS_MIPSO32_FALSE=
13734 fi
13735
13736 if test $mips_abi = n32; then
13737 LIBGO_IS_MIPSN32_TRUE=
13738 LIBGO_IS_MIPSN32_FALSE='#'
13739 else
13740 LIBGO_IS_MIPSN32_TRUE='#'
13741 LIBGO_IS_MIPSN32_FALSE=
13742 fi
13743
13744 if test $mips_abi = n64; then
13745 LIBGO_IS_MIPSN64_TRUE=
13746 LIBGO_IS_MIPSN64_FALSE='#'
13747 else
13748 LIBGO_IS_MIPSN64_TRUE='#'
13749 LIBGO_IS_MIPSN64_FALSE=
13750 fi
13751
13752 if test $mips_abi = o64; then
13753 LIBGO_IS_MIPSO64_TRUE=
13754 LIBGO_IS_MIPSO64_FALSE='#'
13755 else
13756 LIBGO_IS_MIPSO64_TRUE='#'
13757 LIBGO_IS_MIPSO64_FALSE=
13758 fi
13759
13760 if test $is_ppc = yes; then
13761 LIBGO_IS_PPC_TRUE=
13762 LIBGO_IS_PPC_FALSE='#'
13763 else
13764 LIBGO_IS_PPC_TRUE='#'
13765 LIBGO_IS_PPC_FALSE=
13766 fi
13767
13768 if test $is_ppc64 = yes; then
13769 LIBGO_IS_PPC64_TRUE=
13770 LIBGO_IS_PPC64_FALSE='#'
13771 else
13772 LIBGO_IS_PPC64_TRUE='#'
13773 LIBGO_IS_PPC64_FALSE=
13774 fi
13775
13776 if test $is_sparc = yes; then
13777 LIBGO_IS_SPARC_TRUE=
13778 LIBGO_IS_SPARC_FALSE='#'
13779 else
13780 LIBGO_IS_SPARC_TRUE='#'
13781 LIBGO_IS_SPARC_FALSE=
13782 fi
13783
13784 if test $is_sparc64 = yes; then
13785 LIBGO_IS_SPARC64_TRUE=
13786 LIBGO_IS_SPARC64_FALSE='#'
13787 else
13788 LIBGO_IS_SPARC64_TRUE='#'
13789 LIBGO_IS_SPARC64_FALSE=
13790 fi
13791
13792 if test $is_x86_64 = yes; then
13793 LIBGO_IS_X86_64_TRUE=
13794 LIBGO_IS_X86_64_FALSE='#'
13795 else
13796 LIBGO_IS_X86_64_TRUE='#'
13797 LIBGO_IS_X86_64_FALSE=
13798 fi
13799
13800
13801
13802 GO_LIBCALL_OS_FILE=
13803 GO_LIBCALL_OS_ARCH_FILE=
13804 GO_SYSCALL_OS_FILE=
13805 GO_SYSCALL_OS_ARCH_FILE=
13806 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13807 GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13808 fi
13809 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13810 GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13811 fi
13812 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13813 GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13814 fi
13815 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13816 GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13817 fi
13818
13819
13820
13821
13822
13823 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13824 case "$target" in
13825 mips-sgi-irix6.5*)
13826 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13827 # msghdr in <sys/socket.h>.
13828 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13829 ;;
13830 *-*-solaris2.[89])
13831 # Solaris 8/9 need this so struct msghdr gets the msg_control
13832 # etc. fields in <sys/socket.h> (_XPG4_2).
13833 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13834 ;;
13835 *-*-solaris2.1[01])
13836 # Solaris 10+ needs this so struct msghdr gets the msg_control
13837 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
13838 # above doesn't work with C99.
13839 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13840 ;;
13841 esac
13842
13843
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13845 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13846 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 CFLAGS_hold=$CFLAGS
13850 CFLAGS="$CFLAGS -fsplit-stack"
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 int i;
13854 _ACEOF
13855 if ac_fn_c_try_compile "$LINENO"; then :
13856 libgo_cv_c_split_stack_supported=yes
13857 else
13858 libgo_cv_c_split_stack_supported=no
13859 fi
13860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13861 CFLAGS=$CFLAGS_hold
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13864 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13865 if test "$libgo_cv_c_split_stack_supported" = yes; then
13866 SPLIT_STACK=-fsplit-stack
13867
13868 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13869
13870 else
13871 SPLIT_STACK=
13872 fi
13873
13874 if test "$libgo_cv_c_split_stack_supported" = yes; then
13875 USING_SPLIT_STACK_TRUE=
13876 USING_SPLIT_STACK_FALSE='#'
13877 else
13878 USING_SPLIT_STACK_TRUE='#'
13879 USING_SPLIT_STACK_FALSE=
13880 fi
13881
13882
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13884 $as_echo_n "checking whether linker supports split stack... " >&6; }
13885 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13886 $as_echo_n "(cached) " >&6
13887 else
13888 libgo_cv_c_linker_supports_split_stack=no
13889 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13890 libgo_cv_c_linker_supports_split_stack=yes
13891 fi
13892 fi
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13894 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13895 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13896
13897 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13898
13899 fi
13900
13901 MATH_LIBS=
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13903 $as_echo_n "checking for sqrt in -lm... " >&6; }
13904 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 ac_check_lib_save_LIBS=$LIBS
13908 LIBS="-lm $LIBS"
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911
13912 /* Override any GCC internal prototype to avoid an error.
13913 Use char because int might match the return type of a GCC
13914 builtin and then its argument prototype would still apply. */
13915 #ifdef __cplusplus
13916 extern "C"
13917 #endif
13918 char sqrt ();
13919 int
13920 main ()
13921 {
13922 return sqrt ();
13923 ;
13924 return 0;
13925 }
13926 _ACEOF
13927 if ac_fn_c_try_link "$LINENO"; then :
13928 ac_cv_lib_m_sqrt=yes
13929 else
13930 ac_cv_lib_m_sqrt=no
13931 fi
13932 rm -f core conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext conftest.$ac_ext
13934 LIBS=$ac_check_lib_save_LIBS
13935 fi
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13937 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13938 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13939 MATH_LIBS=-lm
13940 fi
13941
13942
13943
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13945 $as_echo_n "checking for socket libraries... " >&6; }
13946 if test "${libgo_cv_lib_sockets+set}" = set; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949 libgo_cv_lib_sockets=
13950 libgo_check_both=no
13951 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13952 if test "x$ac_cv_func_connect" = x""yes; then :
13953 libgo_check_socket=no
13954 else
13955 libgo_check_socket=yes
13956 fi
13957
13958 if test "$libgo_check_socket" = "yes"; then
13959 unset ac_cv_func_connect
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13961 $as_echo_n "checking for main in -lsocket... " >&6; }
13962 if test "${ac_cv_lib_socket_main+set}" = set; then :
13963 $as_echo_n "(cached) " >&6
13964 else
13965 ac_check_lib_save_LIBS=$LIBS
13966 LIBS="-lsocket $LIBS"
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969
13970
13971 int
13972 main ()
13973 {
13974 return main ();
13975 ;
13976 return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_c_try_link "$LINENO"; then :
13980 ac_cv_lib_socket_main=yes
13981 else
13982 ac_cv_lib_socket_main=no
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
13986 LIBS=$ac_check_lib_save_LIBS
13987 fi
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13989 $as_echo "$ac_cv_lib_socket_main" >&6; }
13990 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13991 libgo_cv_lib_sockets="-lsocket"
13992 else
13993 libgo_check_both=yes
13994 fi
13995
13996 fi
13997 if test "$libgo_check_both" = "yes"; then
13998 libgo_old_libs=$LIBS
13999 LIBS="$LIBS -lsocket -lnsl"
14000 unset ac_cv_func_accept
14001 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14002 if test "x$ac_cv_func_accept" = x""yes; then :
14003 libgo_check_nsl=no
14004 libgo_cv_lib_sockets="-lsocket -lnsl"
14005 fi
14006
14007 unset ac_cv_func_accept
14008 LIBS=$libgo_old_libs
14009 fi
14010 unset ac_cv_func_gethostbyname
14011 libgo_old_libs="$LIBS"
14012 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14013 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14014
14015 else
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14017 $as_echo_n "checking for main in -lnsl... " >&6; }
14018 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021 ac_check_lib_save_LIBS=$LIBS
14022 LIBS="-lnsl $LIBS"
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025
14026
14027 int
14028 main ()
14029 {
14030 return main ();
14031 ;
14032 return 0;
14033 }
14034 _ACEOF
14035 if ac_fn_c_try_link "$LINENO"; then :
14036 ac_cv_lib_nsl_main=yes
14037 else
14038 ac_cv_lib_nsl_main=no
14039 fi
14040 rm -f core conftest.err conftest.$ac_objext \
14041 conftest$ac_exeext conftest.$ac_ext
14042 LIBS=$ac_check_lib_save_LIBS
14043 fi
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14045 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14046 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14047 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14048 fi
14049
14050 fi
14051
14052 unset ac_cv_func_gethostbyname
14053 LIBS=$libgo_old_libs
14054
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14057 $as_echo "$libgo_cv_lib_sockets" >&6; }
14058 NET_LIBS="$libgo_cv_lib_sockets"
14059
14060
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14062 $as_echo_n "checking whether -pthread is supported... " >&6; }
14063 if test "${libgo_cv_lib_pthread+set}" = set; then :
14064 $as_echo_n "(cached) " >&6
14065 else
14066 CFLAGS_hold=$CFLAGS
14067 CFLAGS="$CFLAGS -pthread"
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 int i;
14071 _ACEOF
14072 if ac_fn_c_try_compile "$LINENO"; then :
14073 libgo_cv_lib_pthread=yes
14074 else
14075 libgo_cv_lib_pthread=no
14076 fi
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 CFLAGS=$CFLAGS_hold
14079 fi
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14081 $as_echo "$libgo_cv_lib_pthread" >&6; }
14082 PTHREAD_CFLAGS=
14083 if test "$libgo_cv_lib_pthread" = yes; then
14084 PTHREAD_CFLAGS=-pthread
14085 fi
14086
14087
14088 PTHREAD_LIBS=
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14090 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14091 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 ac_check_lib_save_LIBS=$LIBS
14095 LIBS="-lpthread $LIBS"
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098
14099 /* Override any GCC internal prototype to avoid an error.
14100 Use char because int might match the return type of a GCC
14101 builtin and then its argument prototype would still apply. */
14102 #ifdef __cplusplus
14103 extern "C"
14104 #endif
14105 char pthread_create ();
14106 int
14107 main ()
14108 {
14109 return pthread_create ();
14110 ;
14111 return 0;
14112 }
14113 _ACEOF
14114 if ac_fn_c_try_link "$LINENO"; then :
14115 ac_cv_lib_pthread_pthread_create=yes
14116 else
14117 ac_cv_lib_pthread_pthread_create=no
14118 fi
14119 rm -f core conftest.err conftest.$ac_objext \
14120 conftest$ac_exeext conftest.$ac_ext
14121 LIBS=$ac_check_lib_save_LIBS
14122 fi
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14124 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14125 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14126 PTHREAD_LIBS=-lpthread
14127 fi
14128
14129
14130
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14132 $as_echo_n "checking for library containing sched_yield... " >&6; }
14133 if test "${ac_cv_search_sched_yield+set}" = set; then :
14134 $as_echo_n "(cached) " >&6
14135 else
14136 ac_func_search_save_LIBS=$LIBS
14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h. */
14139
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14143 #ifdef __cplusplus
14144 extern "C"
14145 #endif
14146 char sched_yield ();
14147 int
14148 main ()
14149 {
14150 return sched_yield ();
14151 ;
14152 return 0;
14153 }
14154 _ACEOF
14155 for ac_lib in '' rt; do
14156 if test -z "$ac_lib"; then
14157 ac_res="none required"
14158 else
14159 ac_res=-l$ac_lib
14160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14161 fi
14162 if ac_fn_c_try_link "$LINENO"; then :
14163 ac_cv_search_sched_yield=$ac_res
14164 fi
14165 rm -f core conftest.err conftest.$ac_objext \
14166 conftest$ac_exeext
14167 if test "${ac_cv_search_sched_yield+set}" = set; then :
14168 break
14169 fi
14170 done
14171 if test "${ac_cv_search_sched_yield+set}" = set; then :
14172
14173 else
14174 ac_cv_search_sched_yield=no
14175 fi
14176 rm conftest.$ac_ext
14177 LIBS=$ac_func_search_save_LIBS
14178 fi
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14180 $as_echo "$ac_cv_search_sched_yield" >&6; }
14181 ac_res=$ac_cv_search_sched_yield
14182 if test "$ac_res" != no; then :
14183 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14184
14185 fi
14186
14187
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14189 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14190 if test "${ac_cv_c_bigendian+set}" = set; then :
14191 $as_echo_n "(cached) " >&6
14192 else
14193 ac_cv_c_bigendian=unknown
14194 # See if we're dealing with a universal compiler.
14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14196 /* end confdefs.h. */
14197 #ifndef __APPLE_CC__
14198 not a universal capable compiler
14199 #endif
14200 typedef int dummy;
14201
14202 _ACEOF
14203 if ac_fn_c_try_compile "$LINENO"; then :
14204
14205 # Check for potential -arch flags. It is not universal unless
14206 # there are at least two -arch flags with different values.
14207 ac_arch=
14208 ac_prev=
14209 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14210 if test -n "$ac_prev"; then
14211 case $ac_word in
14212 i?86 | x86_64 | ppc | ppc64)
14213 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14214 ac_arch=$ac_word
14215 else
14216 ac_cv_c_bigendian=universal
14217 break
14218 fi
14219 ;;
14220 esac
14221 ac_prev=
14222 elif test "x$ac_word" = "x-arch"; then
14223 ac_prev=arch
14224 fi
14225 done
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 if test $ac_cv_c_bigendian = unknown; then
14229 # See if sys/param.h defines the BYTE_ORDER macro.
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14232 #include <sys/types.h>
14233 #include <sys/param.h>
14234
14235 int
14236 main ()
14237 {
14238 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14239 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14240 && LITTLE_ENDIAN)
14241 bogus endian macros
14242 #endif
14243
14244 ;
14245 return 0;
14246 }
14247 _ACEOF
14248 if ac_fn_c_try_compile "$LINENO"; then :
14249 # It does; now see whether it defined to BIG_ENDIAN or not.
14250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h. */
14252 #include <sys/types.h>
14253 #include <sys/param.h>
14254
14255 int
14256 main ()
14257 {
14258 #if BYTE_ORDER != BIG_ENDIAN
14259 not big endian
14260 #endif
14261
14262 ;
14263 return 0;
14264 }
14265 _ACEOF
14266 if ac_fn_c_try_compile "$LINENO"; then :
14267 ac_cv_c_bigendian=yes
14268 else
14269 ac_cv_c_bigendian=no
14270 fi
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272 fi
14273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14274 fi
14275 if test $ac_cv_c_bigendian = unknown; then
14276 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278 /* end confdefs.h. */
14279 #include <limits.h>
14280
14281 int
14282 main ()
14283 {
14284 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14285 bogus endian macros
14286 #endif
14287
14288 ;
14289 return 0;
14290 }
14291 _ACEOF
14292 if ac_fn_c_try_compile "$LINENO"; then :
14293 # It does; now see whether it defined to _BIG_ENDIAN or not.
14294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14295 /* end confdefs.h. */
14296 #include <limits.h>
14297
14298 int
14299 main ()
14300 {
14301 #ifndef _BIG_ENDIAN
14302 not big endian
14303 #endif
14304
14305 ;
14306 return 0;
14307 }
14308 _ACEOF
14309 if ac_fn_c_try_compile "$LINENO"; then :
14310 ac_cv_c_bigendian=yes
14311 else
14312 ac_cv_c_bigendian=no
14313 fi
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14317 fi
14318 if test $ac_cv_c_bigendian = unknown; then
14319 # Compile a test program.
14320 if test "$cross_compiling" = yes; then :
14321 # Try to guess by grepping values from an object file.
14322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h. */
14324 short int ascii_mm[] =
14325 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14326 short int ascii_ii[] =
14327 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14328 int use_ascii (int i) {
14329 return ascii_mm[i] + ascii_ii[i];
14330 }
14331 short int ebcdic_ii[] =
14332 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14333 short int ebcdic_mm[] =
14334 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14335 int use_ebcdic (int i) {
14336 return ebcdic_mm[i] + ebcdic_ii[i];
14337 }
14338 extern int foo;
14339
14340 int
14341 main ()
14342 {
14343 return use_ascii (foo) == use_ebcdic (foo);
14344 ;
14345 return 0;
14346 }
14347 _ACEOF
14348 if ac_fn_c_try_compile "$LINENO"; then :
14349 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14350 ac_cv_c_bigendian=yes
14351 fi
14352 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14353 if test "$ac_cv_c_bigendian" = unknown; then
14354 ac_cv_c_bigendian=no
14355 else
14356 # finding both strings is unlikely to happen, but who knows?
14357 ac_cv_c_bigendian=unknown
14358 fi
14359 fi
14360 fi
14361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14362 else
14363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14364 /* end confdefs.h. */
14365 $ac_includes_default
14366 int
14367 main ()
14368 {
14369
14370 /* Are we little or big endian? From Harbison&Steele. */
14371 union
14372 {
14373 long int l;
14374 char c[sizeof (long int)];
14375 } u;
14376 u.l = 1;
14377 return u.c[sizeof (long int) - 1] == 1;
14378
14379 ;
14380 return 0;
14381 }
14382 _ACEOF
14383 if ac_fn_c_try_run "$LINENO"; then :
14384 ac_cv_c_bigendian=no
14385 else
14386 ac_cv_c_bigendian=yes
14387 fi
14388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14389 conftest.$ac_objext conftest.beam conftest.$ac_ext
14390 fi
14391
14392 fi
14393 fi
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14395 $as_echo "$ac_cv_c_bigendian" >&6; }
14396 case $ac_cv_c_bigendian in #(
14397 yes)
14398 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14399 ;; #(
14400 no)
14401 ;; #(
14402 universal)
14403
14404 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14405
14406 ;; #(
14407 *)
14408 as_fn_error "unknown endianness
14409 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14410 esac
14411
14412 case $ac_cv_c_bigendian in
14413 yes) GO_BIGENDIAN=true ;;
14414 no) GO_BIGENDIAN=false ;;
14415 *) as_fn_error "unknown endianness" "$LINENO" 5 ;;
14416 esac
14417
14418
14419
14420
14421 # Check whether --with-system-libunwind was given.
14422 if test "${with_system_libunwind+set}" = set; then :
14423 withval=$with_system_libunwind;
14424 fi
14425
14426 # If system-libunwind was not specifically set, pick a default setting.
14427 if test x$with_system_libunwind = x; then
14428 case ${target} in
14429 ia64-*-hpux*) with_system_libunwind=yes ;;
14430 *) with_system_libunwind=no ;;
14431 esac
14432 fi
14433 # Based on system-libunwind and target, do we have ipinfo?
14434 if test x$with_system_libunwind = xyes; then
14435 case ${target} in
14436 ia64-*-*) have_unwind_getipinfo=no ;;
14437 *) have_unwind_getipinfo=yes ;;
14438 esac
14439 else
14440 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14441
14442 case ${target} in
14443 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14444 *) have_unwind_getipinfo=yes ;;
14445 esac
14446
14447 fi
14448
14449 if test x$have_unwind_getipinfo = xyes; then
14450
14451 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14452
14453 fi
14454
14455
14456 # Check whether --enable-sjlj-exceptions was given.
14457 if test "${enable_sjlj_exceptions+set}" = set; then :
14458 enableval=$enable_sjlj_exceptions; case "$enableval" in
14459 yes|no|auto) ;;
14460 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14461 esac
14462 else
14463 enable_sjlj_exceptions=auto
14464 fi
14465
14466
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14468 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14469 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14470 $as_echo_n "(cached) " >&6
14471 else
14472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14473 /* end confdefs.h. */
14474
14475 void bar ();
14476 void clean (int *);
14477 void foo ()
14478 {
14479 int i __attribute__ ((cleanup (clean)));
14480 bar();
14481 }
14482
14483 _ACEOF
14484 CFLAGS_hold=$CFLAGS
14485 CFLAGS="--save-temps -fexceptions"
14486 libgo_cv_lib_sjlj_exceptions=unknown
14487 if ac_fn_c_try_compile; then :
14488 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14489 libgo_cv_lib_sjlj_exceptions=yes
14490 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14491 libgo_cv_lib_sjlj_exceptions=no
14492 fi
14493 fi
14494 CFLAGS=$CFLAGS_hold
14495 rm -f conftest*
14496
14497 fi
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14499 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14500
14501 if test "$enable_sjlj_exceptions" = "auto"; then
14502 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14503 fi
14504
14505 case $enable_sjlj_exceptions in
14506 yes)
14507
14508 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14509
14510 ;;
14511 no)
14512 ;;
14513 *)
14514 as_fn_error "unable to detect exception model" "$LINENO" 5
14515 ;;
14516 esac
14517
14518 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/reboot.h
14519 do :
14520 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14521 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14522 eval as_val=\$$as_ac_Header
14523 if test "x$as_val" = x""yes; then :
14524 cat >>confdefs.h <<_ACEOF
14525 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14526 _ACEOF
14527
14528 fi
14529
14530 done
14531
14532
14533 for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14534 do :
14535 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14536 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14537 #include <sys/socket.h>
14538 #endif
14539
14540 "
14541 eval as_val=\$$as_ac_Header
14542 if test "x$as_val" = x""yes; then :
14543 cat >>confdefs.h <<_ACEOF
14544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14545 _ACEOF
14546
14547 fi
14548
14549 done
14550
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <ustat.h> can be used" >&5
14553 $as_echo_n "checking whether <ustat.h> can be used... " >&6; }
14554 if test "${libgo_cv_c_ustat_h+set}" = set; then :
14555 $as_echo_n "(cached) " >&6
14556 else
14557 CFLAGS_hold=$CFLAGS
14558 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE $OSCFLAGS"
14559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14561
14562 #include <sys/types.h>
14563 #ifdef HAVE_LINUX_FILTER_H
14564 #include <linux/filter.h>
14565 #endif
14566 #include <ustat.h>
14567
14568 _ACEOF
14569 if ac_fn_c_try_compile "$LINENO"; then :
14570 libgo_cv_c_ustat_h=yes
14571 else
14572 libgo_cv_c_ustat_h=no
14573 fi
14574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14575 CFLAGS=$CFLAGS_hold
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_ustat_h" >&5
14578 $as_echo "$libgo_cv_c_ustat_h" >&6; }
14579 if test $libgo_cv_c_ustat_h = yes; then
14580
14581 $as_echo "#define HAVE_USTAT_H 1" >>confdefs.h
14582
14583 fi
14584
14585 if test "$ac_cv_header_sys_mman_h" = yes; then
14586 HAVE_SYS_MMAN_H_TRUE=
14587 HAVE_SYS_MMAN_H_FALSE='#'
14588 else
14589 HAVE_SYS_MMAN_H_TRUE='#'
14590 HAVE_SYS_MMAN_H_FALSE=
14591 fi
14592
14593
14594 for ac_func in strerror_r strsignal wait4 mincore setenv
14595 do :
14596 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14597 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14598 eval as_val=\$$as_ac_var
14599 if test "x$as_val" = x""yes; then :
14600 cat >>confdefs.h <<_ACEOF
14601 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14602 _ACEOF
14603
14604 fi
14605 done
14606
14607 if test "$ac_cv_func_strerror_r" = yes; then
14608 HAVE_STRERROR_R_TRUE=
14609 HAVE_STRERROR_R_FALSE='#'
14610 else
14611 HAVE_STRERROR_R_TRUE='#'
14612 HAVE_STRERROR_R_FALSE=
14613 fi
14614
14615 if test "$ac_cv_func_wait4" = yes; then
14616 HAVE_WAIT4_TRUE=
14617 HAVE_WAIT4_FALSE='#'
14618 else
14619 HAVE_WAIT4_TRUE='#'
14620 HAVE_WAIT4_FALSE=
14621 fi
14622
14623
14624 for ac_func in epoll_create1 faccessat fallocate fchmodat fchownat futimesat inotify_add_watch inotify_init inotify_init1 inotify_rm_watch mkdirat mknodat openat renameat sync_file_range splice tee unlinkat unshare
14625 do :
14626 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14628 eval as_val=\$$as_ac_var
14629 if test "x$as_val" = x""yes; then :
14630 cat >>confdefs.h <<_ACEOF
14631 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14632 _ACEOF
14633
14634 fi
14635 done
14636
14637 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14638 if test "x$ac_cv_type_off_t" = x""yes; then :
14639
14640 else
14641
14642 cat >>confdefs.h <<_ACEOF
14643 #define off_t long int
14644 _ACEOF
14645
14646 fi
14647
14648 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14649 if test "x$ac_cv_type_loff_t" = x""yes; then :
14650
14651 cat >>confdefs.h <<_ACEOF
14652 #define HAVE_LOFF_T 1
14653 _ACEOF
14654
14655
14656 fi
14657
14658
14659 CFLAGS_hold="$CFLAGS"
14660 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14661 LIBS_hold="$LIBS"
14662 LIBS="$LIBS $PTHREAD_LIBS"
14663 for ac_func in sem_timedwait
14664 do :
14665 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14666 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14667 cat >>confdefs.h <<_ACEOF
14668 #define HAVE_SEM_TIMEDWAIT 1
14669 _ACEOF
14670
14671 fi
14672 done
14673
14674 CFLAGS="$CFLAGS_hold"
14675 LIBS="$LIBS_hold"
14676
14677 LIBS_hold="$LIBS"
14678 LIBS="$LIBS $MATH_LIBS"
14679 for ac_func in matherr
14680 do :
14681 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
14682 if test "x$ac_cv_func_matherr" = x""yes; then :
14683 cat >>confdefs.h <<_ACEOF
14684 #define HAVE_MATHERR 1
14685 _ACEOF
14686
14687 fi
14688 done
14689
14690 LIBS="$LIBS_hold"
14691
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14693 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14694 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14695 $as_echo_n "(cached) " >&6
14696 else
14697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14698 /* end confdefs.h. */
14699
14700 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14701 uint32 i;
14702 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14703
14704 _ACEOF
14705 if ac_fn_c_try_link "$LINENO"; then :
14706 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14707 else
14708 libgo_cv_func___sync_bool_compare_and_swap_4=no
14709 fi
14710 rm -f core conftest.err conftest.$ac_objext \
14711 conftest$ac_exeext conftest.$ac_ext
14712 fi
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14714 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14715 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14716
14717 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14718
14719 fi
14720
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_8" >&5
14722 $as_echo_n "checking for __sync_bool_compare_and_swap_8... " >&6; }
14723 if test "${libgo_cv_func___sync_bool_compare_and_swap_8+set}" = set; then :
14724 $as_echo_n "(cached) " >&6
14725 else
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728
14729 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14730 uint64 i;
14731 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14732
14733 _ACEOF
14734 if ac_fn_c_try_link "$LINENO"; then :
14735 libgo_cv_func___sync_bool_compare_and_swap_8=yes
14736 else
14737 libgo_cv_func___sync_bool_compare_and_swap_8=no
14738 fi
14739 rm -f core conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
14741 fi
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_8" >&5
14743 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_8" >&6; }
14744 if test "$libgo_cv_func___sync_bool_compare_and_swap_8" = "yes"; then
14745
14746 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_8 1" >>confdefs.h
14747
14748 fi
14749
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14751 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14752 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14756 /* end confdefs.h. */
14757
14758 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14759 uint32 i;
14760 int main() { return __sync_fetch_and_add (&i, 1); }
14761
14762 _ACEOF
14763 if ac_fn_c_try_link "$LINENO"; then :
14764 libgo_cv_func___sync_fetch_and_add_4=yes
14765 else
14766 libgo_cv_func___sync_fetch_and_add_4=no
14767 fi
14768 rm -f core conftest.err conftest.$ac_objext \
14769 conftest$ac_exeext conftest.$ac_ext
14770 fi
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14772 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14773 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14774
14775 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14776
14777 fi
14778
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch_8" >&5
14780 $as_echo_n "checking for __sync_add_and_fetch_8... " >&6; }
14781 if test "${libgo_cv_func___sync_add_and_fetch_8+set}" = set; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14785 /* end confdefs.h. */
14786
14787 typedef unsigned int uint64 __attribute__ ((mode (DI)));
14788 uint64 i;
14789 int main() { return __sync_add_and_fetch (&i, 1); }
14790
14791 _ACEOF
14792 if ac_fn_c_try_link "$LINENO"; then :
14793 libgo_cv_func___sync_add_and_fetch_8=yes
14794 else
14795 libgo_cv_func___sync_add_and_fetch_8=no
14796 fi
14797 rm -f core conftest.err conftest.$ac_objext \
14798 conftest$ac_exeext conftest.$ac_ext
14799 fi
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_add_and_fetch_8" >&5
14801 $as_echo "$libgo_cv_func___sync_add_and_fetch_8" >&6; }
14802 if test "$libgo_cv_func___sync_add_and_fetch_8" = "yes"; then
14803
14804 $as_echo "#define HAVE_SYNC_ADD_AND_FETCH_8 1" >>confdefs.h
14805
14806 fi
14807
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14809 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14810 if test "${libgo_cv_c_stringops+set}" = set; then :
14811 $as_echo_n "(cached) " >&6
14812 else
14813 CFLAGS_hold=$CFLAGS
14814 CFLAGS="$CFLAGS -minline-all-stringops"
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817 int i;
14818 _ACEOF
14819 if ac_fn_c_try_compile "$LINENO"; then :
14820 libgo_cv_c_stringops=yes
14821 else
14822 libgo_cv_c_stringops=no
14823 fi
14824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825 CFLAGS=$CFLAGS_hold
14826 fi
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14828 $as_echo "$libgo_cv_c_stringops" >&6; }
14829 STRINGOPS_FLAG=
14830 if test "$libgo_cv_c_stringops" = yes; then
14831 STRINGOPS_FLAG=-minline-all-stringops
14832 fi
14833
14834
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
14836 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
14837 if test "${libgo_cv_c_fancymath+set}" = set; then :
14838 $as_echo_n "(cached) " >&6
14839 else
14840 CFLAGS_hold=$CFLAGS
14841 CFLAGS="$CFLAGS -mfancy-math-387"
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 int i;
14845 _ACEOF
14846 if ac_fn_c_try_compile "$LINENO"; then :
14847 libgo_cv_c_fancymath=yes
14848 else
14849 libgo_cv_c_fancymath=no
14850 fi
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 CFLAGS=$CFLAGS_hold
14853 fi
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
14855 $as_echo "$libgo_cv_c_fancymath" >&6; }
14856 MATH_FLAG=
14857 if test "$libgo_cv_c_fancymath" = yes; then
14858 MATH_FLAG="-mfancy-math-387 -funsafe-math-optimizations"
14859 fi
14860
14861
14862 CFLAGS_hold=$CFLAGS
14863 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14864 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14865 if test "x$ac_cv_type_off64_t" = x""yes; then :
14866
14867 cat >>confdefs.h <<_ACEOF
14868 #define HAVE_OFF64_T 1
14869 _ACEOF
14870
14871
14872 fi
14873
14874 CFLAGS=$CFLAGS_hold
14875
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14877 $as_echo_n "checking epoll_event size... " >&6; }
14878 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14879 $as_echo_n "(cached) " >&6
14880 else
14881 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
14882
14883 else
14884 libgo_cv_c_epoll_event_size=0
14885 fi
14886
14887 fi
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14889 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14890 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14891
14892
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14894 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14895 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
14899 #include <sys/epoll.h>"; then :
14900
14901 else
14902 libgo_cv_c_epoll_event_fd_offset=0
14903 fi
14904
14905 fi
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14907 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14908 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14909
14910
14911 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
14912 "
14913 if test "x$ac_cv_type_struct_exception" = x""yes; then :
14914 libgo_has_struct_exception=yes
14915 else
14916 libgo_has_struct_exception=no
14917 fi
14918
14919 if test "$libgo_has_struct_exception" = "yes"; then
14920
14921 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
14922
14923 fi
14924
14925 case "$target" in
14926 sparc*-*-solaris2.[89]*)
14927 libgo_cv_lib_makecontext_stack_top=yes
14928 ;;
14929 *)
14930 libgo_cv_lib_makecontext_stack_top=no
14931 ;;
14932 esac
14933 if test "$libgo_cv_lib_makecontext_stack_top" = "yes"; then
14934
14935 $as_echo "#define MAKECONTEXT_STACK_TOP 1" >>confdefs.h
14936
14937 fi
14938
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
14940 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
14941 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
14942 $as_echo_n "(cached) " >&6
14943 else
14944 CFLAGS_hold="$CFLAGS"
14945 CFLAGS="$PTHREAD_CFLAGS"
14946 LIBS_hold="$LIBS"
14947 LIBS="$LIBS $PTHREAD_LIBS"
14948 # The cast to long int works around a bug in the HP C Compiler
14949 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14950 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14951 # This bug is HP SR number 8606223364.
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14953 $as_echo_n "checking size of void *... " >&6; }
14954 if test "${ac_cv_sizeof_void_p+set}" = set; then :
14955 $as_echo_n "(cached) " >&6
14956 else
14957 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14958
14959 else
14960 if test "$ac_cv_type_void_p" = yes; then
14961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14963 { as_fn_set_status 77
14964 as_fn_error "cannot compute sizeof (void *)
14965 See \`config.log' for more details." "$LINENO" 5; }; }
14966 else
14967 ac_cv_sizeof_void_p=0
14968 fi
14969 fi
14970
14971 fi
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14973 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14974
14975
14976
14977 cat >>confdefs.h <<_ACEOF
14978 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14979 _ACEOF
14980
14981
14982 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
14983 if test "$cross_compiling" = yes; then :
14984 case "$target:$ptr_type_size" in
14985 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
14986 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
14987 *)
14988 libgo_cv_lib_setcontext_clobbers_tls=no ;;
14989 esac
14990
14991 else
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14994
14995 #include <pthread.h>
14996 #include <stdlib.h>
14997 #include <ucontext.h>
14998 #include <unistd.h>
14999
15000 __thread int tls;
15001
15002 static char stack[10 * 1024 * 1024];
15003 static ucontext_t c;
15004
15005 /* Called via makecontext/setcontext. */
15006
15007 static void
15008 cfn (void)
15009 {
15010 exit (tls);
15011 }
15012
15013 /* Called via pthread_create. */
15014
15015 static void *
15016 tfn (void *dummy)
15017 {
15018 /* The thread should still see this value after calling
15019 setcontext. */
15020 tls = 0;
15021
15022 setcontext (&c);
15023
15024 /* The call to setcontext should not return. */
15025 abort ();
15026 }
15027
15028 int
15029 main ()
15030 {
15031 pthread_t tid;
15032
15033 /* The thread should not see this value. */
15034 tls = 1;
15035
15036 if (getcontext (&c) < 0)
15037 abort ();
15038
15039 c.uc_stack.ss_sp = stack;
15040 #ifdef MAKECONTEXT_STACK_TOP
15041 c.uc_stack.ss_sp += sizeof stack;
15042 #endif
15043 c.uc_stack.ss_flags = 0;
15044 c.uc_stack.ss_size = sizeof stack;
15045 c.uc_link = NULL;
15046 makecontext (&c, cfn, 0);
15047
15048 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15049 abort ();
15050
15051 if (pthread_join (tid, NULL) != 0)
15052 abort ();
15053
15054 /* The thread should have called exit. */
15055 abort ();
15056 }
15057
15058 _ACEOF
15059 if ac_fn_c_try_run "$LINENO"; then :
15060 libgo_cv_lib_setcontext_clobbers_tls=no
15061 else
15062 libgo_cv_lib_setcontext_clobbers_tls=yes
15063 fi
15064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15065 conftest.$ac_objext conftest.beam conftest.$ac_ext
15066 fi
15067
15068 CFLAGS="$CFLAGS_hold"
15069 LIBS="$LIBS_hold"
15070
15071 fi
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15073 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15074 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15075
15076 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15077
15078 fi
15079
15080 cat >confcache <<\_ACEOF
15081 # This file is a shell script that caches the results of configure
15082 # tests run on this system so they can be shared between configure
15083 # scripts and configure runs, see configure's option --config-cache.
15084 # It is not useful on other systems. If it contains results you don't
15085 # want to keep, you may remove or edit it.
15086 #
15087 # config.status only pays attention to the cache file if you give it
15088 # the --recheck option to rerun configure.
15089 #
15090 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15091 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15092 # following values.
15093
15094 _ACEOF
15095
15096 # The following way of writing the cache mishandles newlines in values,
15097 # but we know of no workaround that is simple, portable, and efficient.
15098 # So, we kill variables containing newlines.
15099 # Ultrix sh set writes to stderr and can't be redirected directly,
15100 # and sets the high bit in the cache file unless we assign to the vars.
15101 (
15102 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15103 eval ac_val=\$$ac_var
15104 case $ac_val in #(
15105 *${as_nl}*)
15106 case $ac_var in #(
15107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15109 esac
15110 case $ac_var in #(
15111 _ | IFS | as_nl) ;; #(
15112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15113 *) { eval $ac_var=; unset $ac_var;} ;;
15114 esac ;;
15115 esac
15116 done
15117
15118 (set) 2>&1 |
15119 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15120 *${as_nl}ac_space=\ *)
15121 # `set' does not quote correctly, so add quotes: double-quote
15122 # substitution turns \\\\ into \\, and sed turns \\ into \.
15123 sed -n \
15124 "s/'/'\\\\''/g;
15125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15126 ;; #(
15127 *)
15128 # `set' quotes correctly as required by POSIX, so do not add quotes.
15129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15130 ;;
15131 esac |
15132 sort
15133 ) |
15134 sed '
15135 /^ac_cv_env_/b end
15136 t clear
15137 :clear
15138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15139 t end
15140 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15141 :end' >>confcache
15142 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15143 if test -w "$cache_file"; then
15144 test "x$cache_file" != "x/dev/null" &&
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15146 $as_echo "$as_me: updating cache $cache_file" >&6;}
15147 cat confcache >$cache_file
15148 else
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15150 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15151 fi
15152 fi
15153 rm -f confcache
15154
15155 if test ${multilib} = yes; then
15156 multilib_arg="--enable-multilib"
15157 else
15158 multilib_arg=
15159 fi
15160
15161 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15162
15163
15164 ac_config_commands="$ac_config_commands default"
15165
15166
15167 cat >confcache <<\_ACEOF
15168 # This file is a shell script that caches the results of configure
15169 # tests run on this system so they can be shared between configure
15170 # scripts and configure runs, see configure's option --config-cache.
15171 # It is not useful on other systems. If it contains results you don't
15172 # want to keep, you may remove or edit it.
15173 #
15174 # config.status only pays attention to the cache file if you give it
15175 # the --recheck option to rerun configure.
15176 #
15177 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15178 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15179 # following values.
15180
15181 _ACEOF
15182
15183 # The following way of writing the cache mishandles newlines in values,
15184 # but we know of no workaround that is simple, portable, and efficient.
15185 # So, we kill variables containing newlines.
15186 # Ultrix sh set writes to stderr and can't be redirected directly,
15187 # and sets the high bit in the cache file unless we assign to the vars.
15188 (
15189 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15190 eval ac_val=\$$ac_var
15191 case $ac_val in #(
15192 *${as_nl}*)
15193 case $ac_var in #(
15194 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15195 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15196 esac
15197 case $ac_var in #(
15198 _ | IFS | as_nl) ;; #(
15199 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15200 *) { eval $ac_var=; unset $ac_var;} ;;
15201 esac ;;
15202 esac
15203 done
15204
15205 (set) 2>&1 |
15206 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15207 *${as_nl}ac_space=\ *)
15208 # `set' does not quote correctly, so add quotes: double-quote
15209 # substitution turns \\\\ into \\, and sed turns \\ into \.
15210 sed -n \
15211 "s/'/'\\\\''/g;
15212 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15213 ;; #(
15214 *)
15215 # `set' quotes correctly as required by POSIX, so do not add quotes.
15216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15217 ;;
15218 esac |
15219 sort
15220 ) |
15221 sed '
15222 /^ac_cv_env_/b end
15223 t clear
15224 :clear
15225 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15226 t end
15227 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15228 :end' >>confcache
15229 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15230 if test -w "$cache_file"; then
15231 test "x$cache_file" != "x/dev/null" &&
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15233 $as_echo "$as_me: updating cache $cache_file" >&6;}
15234 cat confcache >$cache_file
15235 else
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15237 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15238 fi
15239 fi
15240 rm -f confcache
15241
15242 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15243 # Let make expand exec_prefix.
15244 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15245
15246 DEFS=-DHAVE_CONFIG_H
15247
15248 ac_libobjs=
15249 ac_ltlibobjs=
15250 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15251 # 1. Remove the extension, and $U if already installed.
15252 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15253 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15254 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15255 # will be set to the directory where LIBOBJS objects are built.
15256 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15257 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15258 done
15259 LIBOBJS=$ac_libobjs
15260
15261 LTLIBOBJS=$ac_ltlibobjs
15262
15263
15264 if test -n "$EXEEXT"; then
15265 am__EXEEXT_TRUE=
15266 am__EXEEXT_FALSE='#'
15267 else
15268 am__EXEEXT_TRUE='#'
15269 am__EXEEXT_FALSE=
15270 fi
15271
15272 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15273 as_fn_error "conditional \"AMDEP\" was never defined.
15274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15275 fi
15276 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15277 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15279 fi
15280 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15281 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15283 fi
15284 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15285 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15287 fi
15288 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15289 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15291 fi
15292 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15293 as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15295 fi
15296 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15297 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15299 fi
15300 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15301 as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15303 fi
15304 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15305 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15307 fi
15308 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15309 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15311 fi
15312 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15313 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15315 fi
15316 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15317 as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15319 fi
15320 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15321 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15323 fi
15324 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15325 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15327 fi
15328 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15329 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15331 fi
15332 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15333 as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15335 fi
15336 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15337 as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15339 fi
15340 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15341 as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15343 fi
15344 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15345 as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15347 fi
15348 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15349 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15351 fi
15352 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15353 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15355 fi
15356 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15357 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15359 fi
15360 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15361 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15363 fi
15364 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15365 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15367 fi
15368 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15369 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15371 fi
15372
15373 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15374 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15376 fi
15377 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15378 as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15380 fi
15381 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15382 as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15384 fi
15385
15386 : ${CONFIG_STATUS=./config.status}
15387 ac_write_fail=0
15388 ac_clean_files_save=$ac_clean_files
15389 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15391 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15392 as_write_fail=0
15393 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15394 #! $SHELL
15395 # Generated by $as_me.
15396 # Run this file to recreate the current configuration.
15397 # Compiler output produced by configure, useful for debugging
15398 # configure, is in config.log if it exists.
15399
15400 debug=false
15401 ac_cs_recheck=false
15402 ac_cs_silent=false
15403
15404 SHELL=\${CONFIG_SHELL-$SHELL}
15405 export SHELL
15406 _ASEOF
15407 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15408 ## -------------------- ##
15409 ## M4sh Initialization. ##
15410 ## -------------------- ##
15411
15412 # Be more Bourne compatible
15413 DUALCASE=1; export DUALCASE # for MKS sh
15414 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15415 emulate sh
15416 NULLCMD=:
15417 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15418 # is contrary to our usage. Disable this feature.
15419 alias -g '${1+"$@"}'='"$@"'
15420 setopt NO_GLOB_SUBST
15421 else
15422 case `(set -o) 2>/dev/null` in #(
15423 *posix*) :
15424 set -o posix ;; #(
15425 *) :
15426 ;;
15427 esac
15428 fi
15429
15430
15431 as_nl='
15432 '
15433 export as_nl
15434 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15435 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15437 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15438 # Prefer a ksh shell builtin over an external printf program on Solaris,
15439 # but without wasting forks for bash or zsh.
15440 if test -z "$BASH_VERSION$ZSH_VERSION" \
15441 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15442 as_echo='print -r --'
15443 as_echo_n='print -rn --'
15444 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15445 as_echo='printf %s\n'
15446 as_echo_n='printf %s'
15447 else
15448 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15449 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15450 as_echo_n='/usr/ucb/echo -n'
15451 else
15452 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15453 as_echo_n_body='eval
15454 arg=$1;
15455 case $arg in #(
15456 *"$as_nl"*)
15457 expr "X$arg" : "X\\(.*\\)$as_nl";
15458 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15459 esac;
15460 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15461 '
15462 export as_echo_n_body
15463 as_echo_n='sh -c $as_echo_n_body as_echo'
15464 fi
15465 export as_echo_body
15466 as_echo='sh -c $as_echo_body as_echo'
15467 fi
15468
15469 # The user is always right.
15470 if test "${PATH_SEPARATOR+set}" != set; then
15471 PATH_SEPARATOR=:
15472 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15473 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15474 PATH_SEPARATOR=';'
15475 }
15476 fi
15477
15478
15479 # IFS
15480 # We need space, tab and new line, in precisely that order. Quoting is
15481 # there to prevent editors from complaining about space-tab.
15482 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15483 # splitting by setting IFS to empty value.)
15484 IFS=" "" $as_nl"
15485
15486 # Find who we are. Look in the path if we contain no directory separator.
15487 case $0 in #((
15488 *[\\/]* ) as_myself=$0 ;;
15489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15490 for as_dir in $PATH
15491 do
15492 IFS=$as_save_IFS
15493 test -z "$as_dir" && as_dir=.
15494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15495 done
15496 IFS=$as_save_IFS
15497
15498 ;;
15499 esac
15500 # We did not find ourselves, most probably we were run as `sh COMMAND'
15501 # in which case we are not to be found in the path.
15502 if test "x$as_myself" = x; then
15503 as_myself=$0
15504 fi
15505 if test ! -f "$as_myself"; then
15506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15507 exit 1
15508 fi
15509
15510 # Unset variables that we do not need and which cause bugs (e.g. in
15511 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15512 # suppresses any "Segmentation fault" message there. '((' could
15513 # trigger a bug in pdksh 5.2.14.
15514 for as_var in BASH_ENV ENV MAIL MAILPATH
15515 do eval test x\${$as_var+set} = xset \
15516 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15517 done
15518 PS1='$ '
15519 PS2='> '
15520 PS4='+ '
15521
15522 # NLS nuisances.
15523 LC_ALL=C
15524 export LC_ALL
15525 LANGUAGE=C
15526 export LANGUAGE
15527
15528 # CDPATH.
15529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15530
15531
15532 # as_fn_error ERROR [LINENO LOG_FD]
15533 # ---------------------------------
15534 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15535 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15536 # script with status $?, using 1 if that was 0.
15537 as_fn_error ()
15538 {
15539 as_status=$?; test $as_status -eq 0 && as_status=1
15540 if test "$3"; then
15541 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15543 fi
15544 $as_echo "$as_me: error: $1" >&2
15545 as_fn_exit $as_status
15546 } # as_fn_error
15547
15548
15549 # as_fn_set_status STATUS
15550 # -----------------------
15551 # Set $? to STATUS, without forking.
15552 as_fn_set_status ()
15553 {
15554 return $1
15555 } # as_fn_set_status
15556
15557 # as_fn_exit STATUS
15558 # -----------------
15559 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15560 as_fn_exit ()
15561 {
15562 set +e
15563 as_fn_set_status $1
15564 exit $1
15565 } # as_fn_exit
15566
15567 # as_fn_unset VAR
15568 # ---------------
15569 # Portably unset VAR.
15570 as_fn_unset ()
15571 {
15572 { eval $1=; unset $1;}
15573 }
15574 as_unset=as_fn_unset
15575 # as_fn_append VAR VALUE
15576 # ----------------------
15577 # Append the text in VALUE to the end of the definition contained in VAR. Take
15578 # advantage of any shell optimizations that allow amortized linear growth over
15579 # repeated appends, instead of the typical quadratic growth present in naive
15580 # implementations.
15581 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15582 eval 'as_fn_append ()
15583 {
15584 eval $1+=\$2
15585 }'
15586 else
15587 as_fn_append ()
15588 {
15589 eval $1=\$$1\$2
15590 }
15591 fi # as_fn_append
15592
15593 # as_fn_arith ARG...
15594 # ------------------
15595 # Perform arithmetic evaluation on the ARGs, and store the result in the
15596 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15597 # must be portable across $(()) and expr.
15598 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15599 eval 'as_fn_arith ()
15600 {
15601 as_val=$(( $* ))
15602 }'
15603 else
15604 as_fn_arith ()
15605 {
15606 as_val=`expr "$@" || test $? -eq 1`
15607 }
15608 fi # as_fn_arith
15609
15610
15611 if expr a : '\(a\)' >/dev/null 2>&1 &&
15612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15613 as_expr=expr
15614 else
15615 as_expr=false
15616 fi
15617
15618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15619 as_basename=basename
15620 else
15621 as_basename=false
15622 fi
15623
15624 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15625 as_dirname=dirname
15626 else
15627 as_dirname=false
15628 fi
15629
15630 as_me=`$as_basename -- "$0" ||
15631 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15632 X"$0" : 'X\(//\)$' \| \
15633 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15634 $as_echo X/"$0" |
15635 sed '/^.*\/\([^/][^/]*\)\/*$/{
15636 s//\1/
15637 q
15638 }
15639 /^X\/\(\/\/\)$/{
15640 s//\1/
15641 q
15642 }
15643 /^X\/\(\/\).*/{
15644 s//\1/
15645 q
15646 }
15647 s/.*/./; q'`
15648
15649 # Avoid depending upon Character Ranges.
15650 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15651 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15652 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15653 as_cr_digits='0123456789'
15654 as_cr_alnum=$as_cr_Letters$as_cr_digits
15655
15656 ECHO_C= ECHO_N= ECHO_T=
15657 case `echo -n x` in #(((((
15658 -n*)
15659 case `echo 'xy\c'` in
15660 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15661 xy) ECHO_C='\c';;
15662 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15663 ECHO_T=' ';;
15664 esac;;
15665 *)
15666 ECHO_N='-n';;
15667 esac
15668
15669 rm -f conf$$ conf$$.exe conf$$.file
15670 if test -d conf$$.dir; then
15671 rm -f conf$$.dir/conf$$.file
15672 else
15673 rm -f conf$$.dir
15674 mkdir conf$$.dir 2>/dev/null
15675 fi
15676 if (echo >conf$$.file) 2>/dev/null; then
15677 if ln -s conf$$.file conf$$ 2>/dev/null; then
15678 as_ln_s='ln -s'
15679 # ... but there are two gotchas:
15680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15682 # In both cases, we have to default to `cp -p'.
15683 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15684 as_ln_s='cp -p'
15685 elif ln conf$$.file conf$$ 2>/dev/null; then
15686 as_ln_s=ln
15687 else
15688 as_ln_s='cp -p'
15689 fi
15690 else
15691 as_ln_s='cp -p'
15692 fi
15693 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15694 rmdir conf$$.dir 2>/dev/null
15695
15696
15697 # as_fn_mkdir_p
15698 # -------------
15699 # Create "$as_dir" as a directory, including parents if necessary.
15700 as_fn_mkdir_p ()
15701 {
15702
15703 case $as_dir in #(
15704 -*) as_dir=./$as_dir;;
15705 esac
15706 test -d "$as_dir" || eval $as_mkdir_p || {
15707 as_dirs=
15708 while :; do
15709 case $as_dir in #(
15710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15711 *) as_qdir=$as_dir;;
15712 esac
15713 as_dirs="'$as_qdir' $as_dirs"
15714 as_dir=`$as_dirname -- "$as_dir" ||
15715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15716 X"$as_dir" : 'X\(//\)[^/]' \| \
15717 X"$as_dir" : 'X\(//\)$' \| \
15718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15719 $as_echo X"$as_dir" |
15720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15721 s//\1/
15722 q
15723 }
15724 /^X\(\/\/\)[^/].*/{
15725 s//\1/
15726 q
15727 }
15728 /^X\(\/\/\)$/{
15729 s//\1/
15730 q
15731 }
15732 /^X\(\/\).*/{
15733 s//\1/
15734 q
15735 }
15736 s/.*/./; q'`
15737 test -d "$as_dir" && break
15738 done
15739 test -z "$as_dirs" || eval "mkdir $as_dirs"
15740 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15741
15742
15743 } # as_fn_mkdir_p
15744 if mkdir -p . 2>/dev/null; then
15745 as_mkdir_p='mkdir -p "$as_dir"'
15746 else
15747 test -d ./-p && rmdir ./-p
15748 as_mkdir_p=false
15749 fi
15750
15751 if test -x / >/dev/null 2>&1; then
15752 as_test_x='test -x'
15753 else
15754 if ls -dL / >/dev/null 2>&1; then
15755 as_ls_L_option=L
15756 else
15757 as_ls_L_option=
15758 fi
15759 as_test_x='
15760 eval sh -c '\''
15761 if test -d "$1"; then
15762 test -d "$1/.";
15763 else
15764 case $1 in #(
15765 -*)set "./$1";;
15766 esac;
15767 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15768 ???[sx]*):;;*)false;;esac;fi
15769 '\'' sh
15770 '
15771 fi
15772 as_executable_p=$as_test_x
15773
15774 # Sed expression to map a string onto a valid CPP name.
15775 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15776
15777 # Sed expression to map a string onto a valid variable name.
15778 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15779
15780
15781 exec 6>&1
15782 ## ----------------------------------- ##
15783 ## Main body of $CONFIG_STATUS script. ##
15784 ## ----------------------------------- ##
15785 _ASEOF
15786 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15787
15788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15789 # Save the log message, to keep $0 and so on meaningful, and to
15790 # report actual input values of CONFIG_FILES etc. instead of their
15791 # values after options handling.
15792 ac_log="
15793 This file was extended by package-unused $as_me version-unused, which was
15794 generated by GNU Autoconf 2.64. Invocation command line was
15795
15796 CONFIG_FILES = $CONFIG_FILES
15797 CONFIG_HEADERS = $CONFIG_HEADERS
15798 CONFIG_LINKS = $CONFIG_LINKS
15799 CONFIG_COMMANDS = $CONFIG_COMMANDS
15800 $ $0 $@
15801
15802 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15803 "
15804
15805 _ACEOF
15806
15807 case $ac_config_files in *"
15808 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15809 esac
15810
15811 case $ac_config_headers in *"
15812 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15813 esac
15814
15815
15816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15817 # Files that config.status was made for.
15818 config_files="$ac_config_files"
15819 config_headers="$ac_config_headers"
15820 config_commands="$ac_config_commands"
15821
15822 _ACEOF
15823
15824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15825 ac_cs_usage="\
15826 \`$as_me' instantiates files and other configuration actions
15827 from templates according to the current configuration. Unless the files
15828 and actions are specified as TAGs, all are instantiated by default.
15829
15830 Usage: $0 [OPTION]... [TAG]...
15831
15832 -h, --help print this help, then exit
15833 -V, --version print version number and configuration settings, then exit
15834 -q, --quiet, --silent
15835 do not print progress messages
15836 -d, --debug don't remove temporary files
15837 --recheck update $as_me by reconfiguring in the same conditions
15838 --file=FILE[:TEMPLATE]
15839 instantiate the configuration file FILE
15840 --header=FILE[:TEMPLATE]
15841 instantiate the configuration header FILE
15842
15843 Configuration files:
15844 $config_files
15845
15846 Configuration headers:
15847 $config_headers
15848
15849 Configuration commands:
15850 $config_commands
15851
15852 Report bugs to the package provider."
15853
15854 _ACEOF
15855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15856 ac_cs_version="\\
15857 package-unused config.status version-unused
15858 configured by $0, generated by GNU Autoconf 2.64,
15859 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15860
15861 Copyright (C) 2009 Free Software Foundation, Inc.
15862 This config.status script is free software; the Free Software Foundation
15863 gives unlimited permission to copy, distribute and modify it."
15864
15865 ac_pwd='$ac_pwd'
15866 srcdir='$srcdir'
15867 INSTALL='$INSTALL'
15868 MKDIR_P='$MKDIR_P'
15869 AWK='$AWK'
15870 test -n "\$AWK" || AWK=awk
15871 _ACEOF
15872
15873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15874 # The default lists apply if the user does not specify any file.
15875 ac_need_defaults=:
15876 while test $# != 0
15877 do
15878 case $1 in
15879 --*=*)
15880 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15881 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15882 ac_shift=:
15883 ;;
15884 *)
15885 ac_option=$1
15886 ac_optarg=$2
15887 ac_shift=shift
15888 ;;
15889 esac
15890
15891 case $ac_option in
15892 # Handling of the options.
15893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15894 ac_cs_recheck=: ;;
15895 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15896 $as_echo "$ac_cs_version"; exit ;;
15897 --debug | --debu | --deb | --de | --d | -d )
15898 debug=: ;;
15899 --file | --fil | --fi | --f )
15900 $ac_shift
15901 case $ac_optarg in
15902 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15903 esac
15904 as_fn_append CONFIG_FILES " '$ac_optarg'"
15905 ac_need_defaults=false;;
15906 --header | --heade | --head | --hea )
15907 $ac_shift
15908 case $ac_optarg in
15909 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15910 esac
15911 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15912 ac_need_defaults=false;;
15913 --he | --h)
15914 # Conflict between --help and --header
15915 as_fn_error "ambiguous option: \`$1'
15916 Try \`$0 --help' for more information.";;
15917 --help | --hel | -h )
15918 $as_echo "$ac_cs_usage"; exit ;;
15919 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15920 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15921 ac_cs_silent=: ;;
15922
15923 # This is an error.
15924 -*) as_fn_error "unrecognized option: \`$1'
15925 Try \`$0 --help' for more information." ;;
15926
15927 *) as_fn_append ac_config_targets " $1"
15928 ac_need_defaults=false ;;
15929
15930 esac
15931 shift
15932 done
15933
15934 ac_configure_extra_args=
15935
15936 if $ac_cs_silent; then
15937 exec 6>/dev/null
15938 ac_configure_extra_args="$ac_configure_extra_args --silent"
15939 fi
15940
15941 _ACEOF
15942 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15943 if \$ac_cs_recheck; then
15944 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15945 shift
15946 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15947 CONFIG_SHELL='$SHELL'
15948 export CONFIG_SHELL
15949 exec "\$@"
15950 fi
15951
15952 _ACEOF
15953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954 exec 5>>config.log
15955 {
15956 echo
15957 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15958 ## Running $as_me. ##
15959 _ASBOX
15960 $as_echo "$ac_log"
15961 } >&5
15962
15963 _ACEOF
15964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15965 #
15966 # INIT-COMMANDS
15967 #
15968
15969 srcdir="$srcdir"
15970 host="$host"
15971 target="$target"
15972 with_multisubdir="$with_multisubdir"
15973 with_multisrctop="$with_multisrctop"
15974 with_target_subdir="$with_target_subdir"
15975 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15976 multi_basedir="$multi_basedir"
15977 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15978 CC="$CC"
15979 CXX="$CXX"
15980 GFORTRAN="$GFORTRAN"
15981 GCJ="$GCJ"
15982 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15983
15984
15985 # The HP-UX ksh and POSIX shell print the target directory to stdout
15986 # if CDPATH is set.
15987 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15988
15989 sed_quote_subst='$sed_quote_subst'
15990 double_quote_subst='$double_quote_subst'
15991 delay_variable_subst='$delay_variable_subst'
15992 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15993 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15994 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15995 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15996 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15997 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15998 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15999 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16000 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16001 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16002 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16003 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16004 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16005 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16006 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16007 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16008 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16009 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16010 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16011 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16012 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16013 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16014 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16015 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16016 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16017 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16018 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16019 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16020 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16021 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16022 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16023 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16024 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16025 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16026 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16027 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16028 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16029 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16030 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16031 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16032 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16033 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16034 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16035 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16036 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16037 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16038 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16039 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16040 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"`'
16041 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16042 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16043 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16044 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16045 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16046 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16047 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16048 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16049 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16050 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16051 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16052 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16053 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16054 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16055 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16056 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16057 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16058 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16059 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16060 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16061 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16062 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16063 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16064 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16065 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16066 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16067 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16068 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16069 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16070 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16071 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16072 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16073 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16074 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16075 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16076 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16077 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16078 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16079 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16080 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16081 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16082 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16083 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16084 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16085 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16086 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16087 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16088 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16089 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16090 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16091 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16092 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16093 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16094 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16095 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16096 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16097 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16098 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16099 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16100 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16101 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16102 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16103 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16104 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16105 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16106 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16107 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16108 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16109 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16110 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16111 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16112 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16113 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16114 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16115 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16116 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16117 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16118 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16119 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16120 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16121 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16122 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16123 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16124 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16125 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16126 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16127 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16128 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16129 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16130 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16131 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16132 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16133 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16134 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16135 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16136 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16137 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16138 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16139 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16140 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16141 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16142 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16143 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16144 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16145 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16146 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16147 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16148 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16149 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16150 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16151 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16152 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16153 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16154 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16155
16156 LTCC='$LTCC'
16157 LTCFLAGS='$LTCFLAGS'
16158 compiler='$compiler_DEFAULT'
16159
16160 # A function that is used when there is no print builtin or printf.
16161 func_fallback_echo ()
16162 {
16163 eval 'cat <<_LTECHO_EOF
16164 \$1
16165 _LTECHO_EOF'
16166 }
16167
16168 # Quote evaled strings.
16169 for var in SED \
16170 GREP \
16171 EGREP \
16172 FGREP \
16173 SHELL \
16174 ECHO \
16175 LD \
16176 NM \
16177 LN_S \
16178 lt_SP2NL \
16179 lt_NL2SP \
16180 reload_flag \
16181 OBJDUMP \
16182 deplibs_check_method \
16183 file_magic_cmd \
16184 AR \
16185 AR_FLAGS \
16186 STRIP \
16187 RANLIB \
16188 CC \
16189 CFLAGS \
16190 compiler \
16191 lt_cv_sys_global_symbol_pipe \
16192 lt_cv_sys_global_symbol_to_cdecl \
16193 lt_cv_sys_global_symbol_to_c_name_address \
16194 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16195 lt_prog_compiler_no_builtin_flag \
16196 lt_prog_compiler_wl \
16197 lt_prog_compiler_pic \
16198 lt_prog_compiler_static \
16199 lt_cv_prog_compiler_c_o \
16200 need_locks \
16201 DSYMUTIL \
16202 NMEDIT \
16203 LIPO \
16204 OTOOL \
16205 OTOOL64 \
16206 shrext_cmds \
16207 export_dynamic_flag_spec \
16208 whole_archive_flag_spec \
16209 compiler_needs_object \
16210 with_gnu_ld \
16211 allow_undefined_flag \
16212 no_undefined_flag \
16213 hardcode_libdir_flag_spec \
16214 hardcode_libdir_flag_spec_ld \
16215 hardcode_libdir_separator \
16216 fix_srcfile_path \
16217 exclude_expsyms \
16218 include_expsyms \
16219 file_list_spec \
16220 variables_saved_for_relink \
16221 libname_spec \
16222 library_names_spec \
16223 soname_spec \
16224 install_override_mode \
16225 finish_eval \
16226 old_striplib \
16227 striplib \
16228 LD_GO \
16229 reload_flag_GO \
16230 compiler_GO \
16231 lt_prog_compiler_no_builtin_flag_GO \
16232 lt_prog_compiler_wl_GO \
16233 lt_prog_compiler_pic_GO \
16234 lt_prog_compiler_static_GO \
16235 lt_cv_prog_compiler_c_o_GO \
16236 export_dynamic_flag_spec_GO \
16237 whole_archive_flag_spec_GO \
16238 compiler_needs_object_GO \
16239 with_gnu_ld_GO \
16240 allow_undefined_flag_GO \
16241 no_undefined_flag_GO \
16242 hardcode_libdir_flag_spec_GO \
16243 hardcode_libdir_flag_spec_ld_GO \
16244 hardcode_libdir_separator_GO \
16245 fix_srcfile_path_GO \
16246 exclude_expsyms_GO \
16247 include_expsyms_GO \
16248 file_list_spec_GO; do
16249 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16250 *[\\\\\\\`\\"\\\$]*)
16251 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16252 ;;
16253 *)
16254 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16255 ;;
16256 esac
16257 done
16258
16259 # Double-quote double-evaled strings.
16260 for var in reload_cmds \
16261 old_postinstall_cmds \
16262 old_postuninstall_cmds \
16263 old_archive_cmds \
16264 extract_expsyms_cmds \
16265 old_archive_from_new_cmds \
16266 old_archive_from_expsyms_cmds \
16267 archive_cmds \
16268 archive_expsym_cmds \
16269 module_cmds \
16270 module_expsym_cmds \
16271 export_symbols_cmds \
16272 prelink_cmds \
16273 postinstall_cmds \
16274 postuninstall_cmds \
16275 finish_cmds \
16276 sys_lib_search_path_spec \
16277 sys_lib_dlsearch_path_spec \
16278 reload_cmds_GO \
16279 old_archive_cmds_GO \
16280 old_archive_from_new_cmds_GO \
16281 old_archive_from_expsyms_cmds_GO \
16282 archive_cmds_GO \
16283 archive_expsym_cmds_GO \
16284 module_cmds_GO \
16285 module_expsym_cmds_GO \
16286 export_symbols_cmds_GO \
16287 prelink_cmds_GO; do
16288 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16289 *[\\\\\\\`\\"\\\$]*)
16290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16291 ;;
16292 *)
16293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16294 ;;
16295 esac
16296 done
16297
16298 ac_aux_dir='$ac_aux_dir'
16299 xsi_shell='$xsi_shell'
16300 lt_shell_append='$lt_shell_append'
16301
16302 # See if we are running on zsh, and set the options which allow our
16303 # commands through without removal of \ escapes INIT.
16304 if test -n "\${ZSH_VERSION+set}" ; then
16305 setopt NO_GLOB_SUBST
16306 fi
16307
16308
16309 PACKAGE='$PACKAGE'
16310 VERSION='$VERSION'
16311 TIMESTAMP='$TIMESTAMP'
16312 RM='$RM'
16313 ofile='$ofile'
16314
16315
16316
16317
16318
16319
16320 # Variables needed in config.status (file generation) which aren't already
16321 # passed by autoconf.
16322 SUBDIRS="$SUBDIRS"
16323
16324
16325 _ACEOF
16326
16327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16328
16329 # Handling of arguments.
16330 for ac_config_target in $ac_config_targets
16331 do
16332 case $ac_config_target in
16333 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16334 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16335 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16336 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16337 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16338 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16339 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16340
16341 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16342 esac
16343 done
16344
16345
16346 # If the user did not use the arguments to specify the items to instantiate,
16347 # then the envvar interface is used. Set only those that are not.
16348 # We use the long form for the default assignment because of an extremely
16349 # bizarre bug on SunOS 4.1.3.
16350 if $ac_need_defaults; then
16351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16352 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16353 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16354 fi
16355
16356 # Have a temporary directory for convenience. Make it in the build tree
16357 # simply because there is no reason against having it here, and in addition,
16358 # creating and moving files from /tmp can sometimes cause problems.
16359 # Hook for its removal unless debugging.
16360 # Note that there is a small window in which the directory will not be cleaned:
16361 # after its creation but before its name has been assigned to `$tmp'.
16362 $debug ||
16363 {
16364 tmp=
16365 trap 'exit_status=$?
16366 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16367 ' 0
16368 trap 'as_fn_exit 1' 1 2 13 15
16369 }
16370 # Create a (secure) tmp directory for tmp files.
16371
16372 {
16373 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16374 test -n "$tmp" && test -d "$tmp"
16375 } ||
16376 {
16377 tmp=./conf$$-$RANDOM
16378 (umask 077 && mkdir "$tmp")
16379 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16380
16381 # Set up the scripts for CONFIG_FILES section.
16382 # No need to generate them if there are no CONFIG_FILES.
16383 # This happens for instance with `./config.status config.h'.
16384 if test -n "$CONFIG_FILES"; then
16385
16386
16387 ac_cr=`echo X | tr X '\015'`
16388 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16389 # But we know of no other shell where ac_cr would be empty at this
16390 # point, so we can use a bashism as a fallback.
16391 if test "x$ac_cr" = x; then
16392 eval ac_cr=\$\'\\r\'
16393 fi
16394 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16395 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16396 ac_cs_awk_cr='\r'
16397 else
16398 ac_cs_awk_cr=$ac_cr
16399 fi
16400
16401 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16402 _ACEOF
16403
16404
16405 {
16406 echo "cat >conf$$subs.awk <<_ACEOF" &&
16407 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16408 echo "_ACEOF"
16409 } >conf$$subs.sh ||
16410 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16411 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16412 ac_delim='%!_!# '
16413 for ac_last_try in false false false false false :; do
16414 . ./conf$$subs.sh ||
16415 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16416
16417 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16418 if test $ac_delim_n = $ac_delim_num; then
16419 break
16420 elif $ac_last_try; then
16421 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16422 else
16423 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16424 fi
16425 done
16426 rm -f conf$$subs.sh
16427
16428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16429 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16430 _ACEOF
16431 sed -n '
16432 h
16433 s/^/S["/; s/!.*/"]=/
16434 p
16435 g
16436 s/^[^!]*!//
16437 :repl
16438 t repl
16439 s/'"$ac_delim"'$//
16440 t delim
16441 :nl
16442 h
16443 s/\(.\{148\}\).*/\1/
16444 t more1
16445 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16446 p
16447 n
16448 b repl
16449 :more1
16450 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16451 p
16452 g
16453 s/.\{148\}//
16454 t nl
16455 :delim
16456 h
16457 s/\(.\{148\}\).*/\1/
16458 t more2
16459 s/["\\]/\\&/g; s/^/"/; s/$/"/
16460 p
16461 b
16462 :more2
16463 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16464 p
16465 g
16466 s/.\{148\}//
16467 t delim
16468 ' <conf$$subs.awk | sed '
16469 /^[^""]/{
16470 N
16471 s/\n//
16472 }
16473 ' >>$CONFIG_STATUS || ac_write_fail=1
16474 rm -f conf$$subs.awk
16475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16476 _ACAWK
16477 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16478 for (key in S) S_is_set[key] = 1
16479 FS = "\a"
16480
16481 }
16482 {
16483 line = $ 0
16484 nfields = split(line, field, "@")
16485 substed = 0
16486 len = length(field[1])
16487 for (i = 2; i < nfields; i++) {
16488 key = field[i]
16489 keylen = length(key)
16490 if (S_is_set[key]) {
16491 value = S[key]
16492 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16493 len += length(value) + length(field[++i])
16494 substed = 1
16495 } else
16496 len += 1 + keylen
16497 }
16498
16499 print line
16500 }
16501
16502 _ACAWK
16503 _ACEOF
16504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16505 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16506 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16507 else
16508 cat
16509 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16510 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16511 _ACEOF
16512
16513 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16514 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16515 # trailing colons and then remove the whole line if VPATH becomes empty
16516 # (actually we leave an empty line to preserve line numbers).
16517 if test "x$srcdir" = x.; then
16518 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16519 s/:*\$(srcdir):*/:/
16520 s/:*\${srcdir}:*/:/
16521 s/:*@srcdir@:*/:/
16522 s/^\([^=]*=[ ]*\):*/\1/
16523 s/:*$//
16524 s/^[^=]*=[ ]*$//
16525 }'
16526 fi
16527
16528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16529 fi # test -n "$CONFIG_FILES"
16530
16531 # Set up the scripts for CONFIG_HEADERS section.
16532 # No need to generate them if there are no CONFIG_HEADERS.
16533 # This happens for instance with `./config.status Makefile'.
16534 if test -n "$CONFIG_HEADERS"; then
16535 cat >"$tmp/defines.awk" <<\_ACAWK ||
16536 BEGIN {
16537 _ACEOF
16538
16539 # Transform confdefs.h into an awk script `defines.awk', embedded as
16540 # here-document in config.status, that substitutes the proper values into
16541 # config.h.in to produce config.h.
16542
16543 # Create a delimiter string that does not exist in confdefs.h, to ease
16544 # handling of long lines.
16545 ac_delim='%!_!# '
16546 for ac_last_try in false false :; do
16547 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16548 if test -z "$ac_t"; then
16549 break
16550 elif $ac_last_try; then
16551 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16552 else
16553 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16554 fi
16555 done
16556
16557 # For the awk script, D is an array of macro values keyed by name,
16558 # likewise P contains macro parameters if any. Preserve backslash
16559 # newline sequences.
16560
16561 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16562 sed -n '
16563 s/.\{148\}/&'"$ac_delim"'/g
16564 t rset
16565 :rset
16566 s/^[ ]*#[ ]*define[ ][ ]*/ /
16567 t def
16568 d
16569 :def
16570 s/\\$//
16571 t bsnl
16572 s/["\\]/\\&/g
16573 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16574 D["\1"]=" \3"/p
16575 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16576 d
16577 :bsnl
16578 s/["\\]/\\&/g
16579 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16580 D["\1"]=" \3\\\\\\n"\\/p
16581 t cont
16582 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16583 t cont
16584 d
16585 :cont
16586 n
16587 s/.\{148\}/&'"$ac_delim"'/g
16588 t clear
16589 :clear
16590 s/\\$//
16591 t bsnlc
16592 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16593 d
16594 :bsnlc
16595 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16596 b cont
16597 ' <confdefs.h | sed '
16598 s/'"$ac_delim"'/"\\\
16599 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16600
16601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16602 for (key in D) D_is_set[key] = 1
16603 FS = "\a"
16604 }
16605 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16606 line = \$ 0
16607 split(line, arg, " ")
16608 if (arg[1] == "#") {
16609 defundef = arg[2]
16610 mac1 = arg[3]
16611 } else {
16612 defundef = substr(arg[1], 2)
16613 mac1 = arg[2]
16614 }
16615 split(mac1, mac2, "(") #)
16616 macro = mac2[1]
16617 prefix = substr(line, 1, index(line, defundef) - 1)
16618 if (D_is_set[macro]) {
16619 # Preserve the white space surrounding the "#".
16620 print prefix "define", macro P[macro] D[macro]
16621 next
16622 } else {
16623 # Replace #undef with comments. This is necessary, for example,
16624 # in the case of _POSIX_SOURCE, which is predefined and required
16625 # on some systems where configure will not decide to define it.
16626 if (defundef == "undef") {
16627 print "/*", prefix defundef, macro, "*/"
16628 next
16629 }
16630 }
16631 }
16632 { print }
16633 _ACAWK
16634 _ACEOF
16635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16636 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16637 fi # test -n "$CONFIG_HEADERS"
16638
16639
16640 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16641 shift
16642 for ac_tag
16643 do
16644 case $ac_tag in
16645 :[FHLC]) ac_mode=$ac_tag; continue;;
16646 esac
16647 case $ac_mode$ac_tag in
16648 :[FHL]*:*);;
16649 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16650 :[FH]-) ac_tag=-:-;;
16651 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16652 esac
16653 ac_save_IFS=$IFS
16654 IFS=:
16655 set x $ac_tag
16656 IFS=$ac_save_IFS
16657 shift
16658 ac_file=$1
16659 shift
16660
16661 case $ac_mode in
16662 :L) ac_source=$1;;
16663 :[FH])
16664 ac_file_inputs=
16665 for ac_f
16666 do
16667 case $ac_f in
16668 -) ac_f="$tmp/stdin";;
16669 *) # Look for the file first in the build tree, then in the source tree
16670 # (if the path is not absolute). The absolute path cannot be DOS-style,
16671 # because $ac_f cannot contain `:'.
16672 test -f "$ac_f" ||
16673 case $ac_f in
16674 [\\/$]*) false;;
16675 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16676 esac ||
16677 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16678 esac
16679 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16680 as_fn_append ac_file_inputs " '$ac_f'"
16681 done
16682
16683 # Let's still pretend it is `configure' which instantiates (i.e., don't
16684 # use $as_me), people would be surprised to read:
16685 # /* config.h. Generated by config.status. */
16686 configure_input='Generated from '`
16687 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16688 `' by configure.'
16689 if test x"$ac_file" != x-; then
16690 configure_input="$ac_file. $configure_input"
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16692 $as_echo "$as_me: creating $ac_file" >&6;}
16693 fi
16694 # Neutralize special characters interpreted by sed in replacement strings.
16695 case $configure_input in #(
16696 *\&* | *\|* | *\\* )
16697 ac_sed_conf_input=`$as_echo "$configure_input" |
16698 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16699 *) ac_sed_conf_input=$configure_input;;
16700 esac
16701
16702 case $ac_tag in
16703 *:-:* | *:-) cat >"$tmp/stdin" \
16704 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16705 esac
16706 ;;
16707 esac
16708
16709 ac_dir=`$as_dirname -- "$ac_file" ||
16710 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16711 X"$ac_file" : 'X\(//\)[^/]' \| \
16712 X"$ac_file" : 'X\(//\)$' \| \
16713 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16714 $as_echo X"$ac_file" |
16715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16716 s//\1/
16717 q
16718 }
16719 /^X\(\/\/\)[^/].*/{
16720 s//\1/
16721 q
16722 }
16723 /^X\(\/\/\)$/{
16724 s//\1/
16725 q
16726 }
16727 /^X\(\/\).*/{
16728 s//\1/
16729 q
16730 }
16731 s/.*/./; q'`
16732 as_dir="$ac_dir"; as_fn_mkdir_p
16733 ac_builddir=.
16734
16735 case "$ac_dir" in
16736 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16737 *)
16738 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16739 # A ".." for each directory in $ac_dir_suffix.
16740 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16741 case $ac_top_builddir_sub in
16742 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16743 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16744 esac ;;
16745 esac
16746 ac_abs_top_builddir=$ac_pwd
16747 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16748 # for backward compatibility:
16749 ac_top_builddir=$ac_top_build_prefix
16750
16751 case $srcdir in
16752 .) # We are building in place.
16753 ac_srcdir=.
16754 ac_top_srcdir=$ac_top_builddir_sub
16755 ac_abs_top_srcdir=$ac_pwd ;;
16756 [\\/]* | ?:[\\/]* ) # Absolute name.
16757 ac_srcdir=$srcdir$ac_dir_suffix;
16758 ac_top_srcdir=$srcdir
16759 ac_abs_top_srcdir=$srcdir ;;
16760 *) # Relative name.
16761 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16762 ac_top_srcdir=$ac_top_build_prefix$srcdir
16763 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16764 esac
16765 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16766
16767
16768 case $ac_mode in
16769 :F)
16770 #
16771 # CONFIG_FILE
16772 #
16773
16774 case $INSTALL in
16775 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16776 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16777 esac
16778 ac_MKDIR_P=$MKDIR_P
16779 case $MKDIR_P in
16780 [\\/$]* | ?:[\\/]* ) ;;
16781 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16782 esac
16783 _ACEOF
16784
16785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16786 # If the template does not know about datarootdir, expand it.
16787 # FIXME: This hack should be removed a few years after 2.60.
16788 ac_datarootdir_hack=; ac_datarootdir_seen=
16789 ac_sed_dataroot='
16790 /datarootdir/ {
16791 p
16792 q
16793 }
16794 /@datadir@/p
16795 /@docdir@/p
16796 /@infodir@/p
16797 /@localedir@/p
16798 /@mandir@/p'
16799 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16800 *datarootdir*) ac_datarootdir_seen=yes;;
16801 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16803 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16804 _ACEOF
16805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16806 ac_datarootdir_hack='
16807 s&@datadir@&$datadir&g
16808 s&@docdir@&$docdir&g
16809 s&@infodir@&$infodir&g
16810 s&@localedir@&$localedir&g
16811 s&@mandir@&$mandir&g
16812 s&\\\${datarootdir}&$datarootdir&g' ;;
16813 esac
16814 _ACEOF
16815
16816 # Neutralize VPATH when `$srcdir' = `.'.
16817 # Shell code in configure.ac might set extrasub.
16818 # FIXME: do we really want to maintain this feature?
16819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16820 ac_sed_extra="$ac_vpsub
16821 $extrasub
16822 _ACEOF
16823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16824 :t
16825 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16826 s|@configure_input@|$ac_sed_conf_input|;t t
16827 s&@top_builddir@&$ac_top_builddir_sub&;t t
16828 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16829 s&@srcdir@&$ac_srcdir&;t t
16830 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16831 s&@top_srcdir@&$ac_top_srcdir&;t t
16832 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16833 s&@builddir@&$ac_builddir&;t t
16834 s&@abs_builddir@&$ac_abs_builddir&;t t
16835 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16836 s&@INSTALL@&$ac_INSTALL&;t t
16837 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16838 $ac_datarootdir_hack
16839 "
16840 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16841 || as_fn_error "could not create $ac_file" "$LINENO" 5
16842
16843 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16844 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16845 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16847 which seems to be undefined. Please make sure it is defined." >&5
16848 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16849 which seems to be undefined. Please make sure it is defined." >&2;}
16850
16851 rm -f "$tmp/stdin"
16852 case $ac_file in
16853 -) cat "$tmp/out" && rm -f "$tmp/out";;
16854 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16855 esac \
16856 || as_fn_error "could not create $ac_file" "$LINENO" 5
16857 ;;
16858 :H)
16859 #
16860 # CONFIG_HEADER
16861 #
16862 if test x"$ac_file" != x-; then
16863 {
16864 $as_echo "/* $configure_input */" \
16865 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16866 } >"$tmp/config.h" \
16867 || as_fn_error "could not create $ac_file" "$LINENO" 5
16868 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16870 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16871 else
16872 rm -f "$ac_file"
16873 mv "$tmp/config.h" "$ac_file" \
16874 || as_fn_error "could not create $ac_file" "$LINENO" 5
16875 fi
16876 else
16877 $as_echo "/* $configure_input */" \
16878 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16879 || as_fn_error "could not create -" "$LINENO" 5
16880 fi
16881 # Compute "$ac_file"'s index in $config_headers.
16882 _am_arg="$ac_file"
16883 _am_stamp_count=1
16884 for _am_header in $config_headers :; do
16885 case $_am_header in
16886 $_am_arg | $_am_arg:* )
16887 break ;;
16888 * )
16889 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16890 esac
16891 done
16892 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16893 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16894 X"$_am_arg" : 'X\(//\)[^/]' \| \
16895 X"$_am_arg" : 'X\(//\)$' \| \
16896 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16897 $as_echo X"$_am_arg" |
16898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16899 s//\1/
16900 q
16901 }
16902 /^X\(\/\/\)[^/].*/{
16903 s//\1/
16904 q
16905 }
16906 /^X\(\/\/\)$/{
16907 s//\1/
16908 q
16909 }
16910 /^X\(\/\).*/{
16911 s//\1/
16912 q
16913 }
16914 s/.*/./; q'`/stamp-h$_am_stamp_count
16915 ;;
16916
16917 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16918 $as_echo "$as_me: executing $ac_file commands" >&6;}
16919 ;;
16920 esac
16921
16922
16923 case $ac_file$ac_mode in
16924 "default-1":C)
16925 # Only add multilib support code if we just rebuilt the top-level
16926 # Makefile.
16927 case " $CONFIG_FILES " in
16928 *" Makefile "*)
16929 ac_file=Makefile . ${multi_basedir}/config-ml.in
16930 ;;
16931 esac ;;
16932 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16933 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16934 # are listed without --file. Let's play safe and only enable the eval
16935 # if we detect the quoting.
16936 case $CONFIG_FILES in
16937 *\'*) eval set x "$CONFIG_FILES" ;;
16938 *) set x $CONFIG_FILES ;;
16939 esac
16940 shift
16941 for mf
16942 do
16943 # Strip MF so we end up with the name of the file.
16944 mf=`echo "$mf" | sed -e 's/:.*$//'`
16945 # Check whether this is an Automake generated Makefile or not.
16946 # We used to match only the files named `Makefile.in', but
16947 # some people rename them; so instead we look at the file content.
16948 # Grep'ing the first line is not enough: some people post-process
16949 # each Makefile.in and add a new line on top of each file to say so.
16950 # Grep'ing the whole file is not good either: AIX grep has a line
16951 # limit of 2048, but all sed's we know have understand at least 4000.
16952 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16953 dirpart=`$as_dirname -- "$mf" ||
16954 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16955 X"$mf" : 'X\(//\)[^/]' \| \
16956 X"$mf" : 'X\(//\)$' \| \
16957 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16958 $as_echo X"$mf" |
16959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16960 s//\1/
16961 q
16962 }
16963 /^X\(\/\/\)[^/].*/{
16964 s//\1/
16965 q
16966 }
16967 /^X\(\/\/\)$/{
16968 s//\1/
16969 q
16970 }
16971 /^X\(\/\).*/{
16972 s//\1/
16973 q
16974 }
16975 s/.*/./; q'`
16976 else
16977 continue
16978 fi
16979 # Extract the definition of DEPDIR, am__include, and am__quote
16980 # from the Makefile without running `make'.
16981 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16982 test -z "$DEPDIR" && continue
16983 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16984 test -z "am__include" && continue
16985 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16986 # When using ansi2knr, U may be empty or an underscore; expand it
16987 U=`sed -n 's/^U = //p' < "$mf"`
16988 # Find all dependency output files, they are included files with
16989 # $(DEPDIR) in their names. We invoke sed twice because it is the
16990 # simplest approach to changing $(DEPDIR) to its actual value in the
16991 # expansion.
16992 for file in `sed -n "
16993 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16994 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16995 # Make sure the directory exists.
16996 test -f "$dirpart/$file" && continue
16997 fdir=`$as_dirname -- "$file" ||
16998 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16999 X"$file" : 'X\(//\)[^/]' \| \
17000 X"$file" : 'X\(//\)$' \| \
17001 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17002 $as_echo X"$file" |
17003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17004 s//\1/
17005 q
17006 }
17007 /^X\(\/\/\)[^/].*/{
17008 s//\1/
17009 q
17010 }
17011 /^X\(\/\/\)$/{
17012 s//\1/
17013 q
17014 }
17015 /^X\(\/\).*/{
17016 s//\1/
17017 q
17018 }
17019 s/.*/./; q'`
17020 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17021 # echo "creating $dirpart/$file"
17022 echo '# dummy' > "$dirpart/$file"
17023 done
17024 done
17025 }
17026 ;;
17027 "libtool":C)
17028
17029 # See if we are running on zsh, and set the options which allow our
17030 # commands through without removal of \ escapes.
17031 if test -n "${ZSH_VERSION+set}" ; then
17032 setopt NO_GLOB_SUBST
17033 fi
17034
17035 cfgfile="${ofile}T"
17036 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17037 $RM "$cfgfile"
17038
17039 cat <<_LT_EOF >> "$cfgfile"
17040 #! $SHELL
17041
17042 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17043 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17044 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17045 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17046 #
17047 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17048 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17049 # Written by Gordon Matzigkeit, 1996
17050 #
17051 # This file is part of GNU Libtool.
17052 #
17053 # GNU Libtool is free software; you can redistribute it and/or
17054 # modify it under the terms of the GNU General Public License as
17055 # published by the Free Software Foundation; either version 2 of
17056 # the License, or (at your option) any later version.
17057 #
17058 # As a special exception to the GNU General Public License,
17059 # if you distribute this file as part of a program or library that
17060 # is built using GNU Libtool, you may include this file under the
17061 # same distribution terms that you use for the rest of that program.
17062 #
17063 # GNU Libtool is distributed in the hope that it will be useful,
17064 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17065 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17066 # GNU General Public License for more details.
17067 #
17068 # You should have received a copy of the GNU General Public License
17069 # along with GNU Libtool; see the file COPYING. If not, a copy
17070 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17071 # obtained by writing to the Free Software Foundation, Inc.,
17072 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17073
17074
17075 # The names of the tagged configurations supported by this script.
17076 available_tags="GO "
17077
17078 # ### BEGIN LIBTOOL CONFIG
17079
17080 # A sed program that does not truncate output.
17081 SED=$lt_SED
17082
17083 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17084 Xsed="\$SED -e 1s/^X//"
17085
17086 # A grep program that handles long lines.
17087 GREP=$lt_GREP
17088
17089 # An ERE matcher.
17090 EGREP=$lt_EGREP
17091
17092 # A literal string matcher.
17093 FGREP=$lt_FGREP
17094
17095 # Shell to use when invoking shell scripts.
17096 SHELL=$lt_SHELL
17097
17098 # An echo program that protects backslashes.
17099 ECHO=$lt_ECHO
17100
17101 # Which release of libtool.m4 was used?
17102 macro_version=$macro_version
17103 macro_revision=$macro_revision
17104
17105 # Whether or not to build shared libraries.
17106 build_libtool_libs=$enable_shared
17107
17108 # Whether or not to build static libraries.
17109 build_old_libs=$enable_static
17110
17111 # What type of objects to build.
17112 pic_mode=$pic_mode
17113
17114 # Whether or not to optimize for fast installation.
17115 fast_install=$enable_fast_install
17116
17117 # The host system.
17118 host_alias=$host_alias
17119 host=$host
17120 host_os=$host_os
17121
17122 # The build system.
17123 build_alias=$build_alias
17124 build=$build
17125 build_os=$build_os
17126
17127 # A BSD- or MS-compatible name lister.
17128 NM=$lt_NM
17129
17130 # Whether we need soft or hard links.
17131 LN_S=$lt_LN_S
17132
17133 # What is the maximum length of a command?
17134 max_cmd_len=$max_cmd_len
17135
17136 # Object file suffix (normally "o").
17137 objext=$ac_objext
17138
17139 # Executable file suffix (normally "").
17140 exeext=$exeext
17141
17142 # whether the shell understands "unset".
17143 lt_unset=$lt_unset
17144
17145 # turn spaces into newlines.
17146 SP2NL=$lt_lt_SP2NL
17147
17148 # turn newlines into spaces.
17149 NL2SP=$lt_lt_NL2SP
17150
17151 # An object symbol dumper.
17152 OBJDUMP=$lt_OBJDUMP
17153
17154 # Method to check whether dependent libraries are shared objects.
17155 deplibs_check_method=$lt_deplibs_check_method
17156
17157 # Command to use when deplibs_check_method == "file_magic".
17158 file_magic_cmd=$lt_file_magic_cmd
17159
17160 # The archiver.
17161 AR=$lt_AR
17162 AR_FLAGS=$lt_AR_FLAGS
17163
17164 # A symbol stripping program.
17165 STRIP=$lt_STRIP
17166
17167 # Commands used to install an old-style archive.
17168 RANLIB=$lt_RANLIB
17169 old_postinstall_cmds=$lt_old_postinstall_cmds
17170 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17171
17172 # Whether to use a lock for old archive extraction.
17173 lock_old_archive_extraction=$lock_old_archive_extraction
17174
17175 # A C compiler.
17176 LTCC=$lt_CC
17177
17178 # LTCC compiler flags.
17179 LTCFLAGS=$lt_CFLAGS
17180
17181 # Take the output of nm and produce a listing of raw symbols and C names.
17182 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17183
17184 # Transform the output of nm in a proper C declaration.
17185 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17186
17187 # Transform the output of nm in a C name address pair.
17188 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17189
17190 # Transform the output of nm in a C name address pair when lib prefix is needed.
17191 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17192
17193 # The name of the directory that contains temporary libtool files.
17194 objdir=$objdir
17195
17196 # Used to examine libraries when file_magic_cmd begins with "file".
17197 MAGIC_CMD=$MAGIC_CMD
17198
17199 # Must we lock files when doing compilation?
17200 need_locks=$lt_need_locks
17201
17202 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17203 DSYMUTIL=$lt_DSYMUTIL
17204
17205 # Tool to change global to local symbols on Mac OS X.
17206 NMEDIT=$lt_NMEDIT
17207
17208 # Tool to manipulate fat objects and archives on Mac OS X.
17209 LIPO=$lt_LIPO
17210
17211 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17212 OTOOL=$lt_OTOOL
17213
17214 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17215 OTOOL64=$lt_OTOOL64
17216
17217 # Old archive suffix (normally "a").
17218 libext=$libext
17219
17220 # Shared library suffix (normally ".so").
17221 shrext_cmds=$lt_shrext_cmds
17222
17223 # The commands to extract the exported symbol list from a shared archive.
17224 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17225
17226 # Variables whose values should be saved in libtool wrapper scripts and
17227 # restored at link time.
17228 variables_saved_for_relink=$lt_variables_saved_for_relink
17229
17230 # Do we need the "lib" prefix for modules?
17231 need_lib_prefix=$need_lib_prefix
17232
17233 # Do we need a version for libraries?
17234 need_version=$need_version
17235
17236 # Library versioning type.
17237 version_type=$version_type
17238
17239 # Shared library runtime path variable.
17240 runpath_var=$runpath_var
17241
17242 # Shared library path variable.
17243 shlibpath_var=$shlibpath_var
17244
17245 # Is shlibpath searched before the hard-coded library search path?
17246 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17247
17248 # Format of library name prefix.
17249 libname_spec=$lt_libname_spec
17250
17251 # List of archive names. First name is the real one, the rest are links.
17252 # The last name is the one that the linker finds with -lNAME
17253 library_names_spec=$lt_library_names_spec
17254
17255 # The coded name of the library, if different from the real name.
17256 soname_spec=$lt_soname_spec
17257
17258 # Permission mode override for installation of shared libraries.
17259 install_override_mode=$lt_install_override_mode
17260
17261 # Command to use after installation of a shared archive.
17262 postinstall_cmds=$lt_postinstall_cmds
17263
17264 # Command to use after uninstallation of a shared archive.
17265 postuninstall_cmds=$lt_postuninstall_cmds
17266
17267 # Commands used to finish a libtool library installation in a directory.
17268 finish_cmds=$lt_finish_cmds
17269
17270 # As "finish_cmds", except a single script fragment to be evaled but
17271 # not shown.
17272 finish_eval=$lt_finish_eval
17273
17274 # Whether we should hardcode library paths into libraries.
17275 hardcode_into_libs=$hardcode_into_libs
17276
17277 # Compile-time system search path for libraries.
17278 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17279
17280 # Run-time system search path for libraries.
17281 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17282
17283 # Whether dlopen is supported.
17284 dlopen_support=$enable_dlopen
17285
17286 # Whether dlopen of programs is supported.
17287 dlopen_self=$enable_dlopen_self
17288
17289 # Whether dlopen of statically linked programs is supported.
17290 dlopen_self_static=$enable_dlopen_self_static
17291
17292 # Commands to strip libraries.
17293 old_striplib=$lt_old_striplib
17294 striplib=$lt_striplib
17295
17296
17297 # The linker used to build libraries.
17298 LD=$lt_LD
17299
17300 # How to create reloadable object files.
17301 reload_flag=$lt_reload_flag
17302 reload_cmds=$lt_reload_cmds
17303
17304 # Commands used to build an old-style archive.
17305 old_archive_cmds=$lt_old_archive_cmds
17306
17307 # A language specific compiler.
17308 CC=$lt_compiler
17309
17310 # Is the compiler the GNU compiler?
17311 with_gcc=$GCC
17312
17313 # Compiler flag to turn off builtin functions.
17314 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17315
17316 # How to pass a linker flag through the compiler.
17317 wl=$lt_lt_prog_compiler_wl
17318
17319 # Additional compiler flags for building library objects.
17320 pic_flag=$lt_lt_prog_compiler_pic
17321
17322 # Compiler flag to prevent dynamic linking.
17323 link_static_flag=$lt_lt_prog_compiler_static
17324
17325 # Does compiler simultaneously support -c and -o options?
17326 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17327
17328 # Whether or not to add -lc for building shared libraries.
17329 build_libtool_need_lc=$archive_cmds_need_lc
17330
17331 # Whether or not to disallow shared libs when runtime libs are static.
17332 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17333
17334 # Compiler flag to allow reflexive dlopens.
17335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17336
17337 # Compiler flag to generate shared objects directly from archives.
17338 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17339
17340 # Whether the compiler copes with passing no objects directly.
17341 compiler_needs_object=$lt_compiler_needs_object
17342
17343 # Create an old-style archive from a shared archive.
17344 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17345
17346 # Create a temporary old-style archive to link instead of a shared archive.
17347 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17348
17349 # Commands used to build a shared archive.
17350 archive_cmds=$lt_archive_cmds
17351 archive_expsym_cmds=$lt_archive_expsym_cmds
17352
17353 # Commands used to build a loadable module if different from building
17354 # a shared archive.
17355 module_cmds=$lt_module_cmds
17356 module_expsym_cmds=$lt_module_expsym_cmds
17357
17358 # Whether we are building with GNU ld or not.
17359 with_gnu_ld=$lt_with_gnu_ld
17360
17361 # Flag that allows shared libraries with undefined symbols to be built.
17362 allow_undefined_flag=$lt_allow_undefined_flag
17363
17364 # Flag that enforces no undefined symbols.
17365 no_undefined_flag=$lt_no_undefined_flag
17366
17367 # Flag to hardcode \$libdir into a binary during linking.
17368 # This must work even if \$libdir does not exist
17369 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17370
17371 # If ld is used when linking, flag to hardcode \$libdir into a binary
17372 # during linking. This must work even if \$libdir does not exist.
17373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17374
17375 # Whether we need a single "-rpath" flag with a separated argument.
17376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17377
17378 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17379 # DIR into the resulting binary.
17380 hardcode_direct=$hardcode_direct
17381
17382 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17383 # DIR into the resulting binary and the resulting library dependency is
17384 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17385 # library is relocated.
17386 hardcode_direct_absolute=$hardcode_direct_absolute
17387
17388 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17389 # into the resulting binary.
17390 hardcode_minus_L=$hardcode_minus_L
17391
17392 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17393 # into the resulting binary.
17394 hardcode_shlibpath_var=$hardcode_shlibpath_var
17395
17396 # Set to "yes" if building a shared library automatically hardcodes DIR
17397 # into the library and all subsequent libraries and executables linked
17398 # against it.
17399 hardcode_automatic=$hardcode_automatic
17400
17401 # Set to yes if linker adds runtime paths of dependent libraries
17402 # to runtime path list.
17403 inherit_rpath=$inherit_rpath
17404
17405 # Whether libtool must link a program against all its dependency libraries.
17406 link_all_deplibs=$link_all_deplibs
17407
17408 # Fix the shell variable \$srcfile for the compiler.
17409 fix_srcfile_path=$lt_fix_srcfile_path
17410
17411 # Set to "yes" if exported symbols are required.
17412 always_export_symbols=$always_export_symbols
17413
17414 # The commands to list exported symbols.
17415 export_symbols_cmds=$lt_export_symbols_cmds
17416
17417 # Symbols that should not be listed in the preloaded symbols.
17418 exclude_expsyms=$lt_exclude_expsyms
17419
17420 # Symbols that must always be exported.
17421 include_expsyms=$lt_include_expsyms
17422
17423 # Commands necessary for linking programs (against libraries) with templates.
17424 prelink_cmds=$lt_prelink_cmds
17425
17426 # Specify filename containing input files.
17427 file_list_spec=$lt_file_list_spec
17428
17429 # How to hardcode a shared library path into an executable.
17430 hardcode_action=$hardcode_action
17431
17432 # ### END LIBTOOL CONFIG
17433
17434 _LT_EOF
17435
17436 case $host_os in
17437 aix3*)
17438 cat <<\_LT_EOF >> "$cfgfile"
17439 # AIX sometimes has problems with the GCC collect2 program. For some
17440 # reason, if we set the COLLECT_NAMES environment variable, the problems
17441 # vanish in a puff of smoke.
17442 if test "X${COLLECT_NAMES+set}" != Xset; then
17443 COLLECT_NAMES=
17444 export COLLECT_NAMES
17445 fi
17446 _LT_EOF
17447 ;;
17448 esac
17449
17450
17451 ltmain="$ac_aux_dir/ltmain.sh"
17452
17453
17454 # We use sed instead of cat because bash on DJGPP gets confused if
17455 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17456 # text mode, it properly converts lines to CR/LF. This bash problem
17457 # is reportedly fixed, but why not run on old versions too?
17458 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17459 || (rm -f "$cfgfile"; exit 1)
17460
17461 case $xsi_shell in
17462 yes)
17463 cat << \_LT_EOF >> "$cfgfile"
17464
17465 # func_dirname file append nondir_replacement
17466 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17467 # otherwise set result to NONDIR_REPLACEMENT.
17468 func_dirname ()
17469 {
17470 case ${1} in
17471 */*) func_dirname_result="${1%/*}${2}" ;;
17472 * ) func_dirname_result="${3}" ;;
17473 esac
17474 }
17475
17476 # func_basename file
17477 func_basename ()
17478 {
17479 func_basename_result="${1##*/}"
17480 }
17481
17482 # func_dirname_and_basename file append nondir_replacement
17483 # perform func_basename and func_dirname in a single function
17484 # call:
17485 # dirname: Compute the dirname of FILE. If nonempty,
17486 # add APPEND to the result, otherwise set result
17487 # to NONDIR_REPLACEMENT.
17488 # value returned in "$func_dirname_result"
17489 # basename: Compute filename of FILE.
17490 # value retuned in "$func_basename_result"
17491 # Implementation must be kept synchronized with func_dirname
17492 # and func_basename. For efficiency, we do not delegate to
17493 # those functions but instead duplicate the functionality here.
17494 func_dirname_and_basename ()
17495 {
17496 case ${1} in
17497 */*) func_dirname_result="${1%/*}${2}" ;;
17498 * ) func_dirname_result="${3}" ;;
17499 esac
17500 func_basename_result="${1##*/}"
17501 }
17502
17503 # func_stripname prefix suffix name
17504 # strip PREFIX and SUFFIX off of NAME.
17505 # PREFIX and SUFFIX must not contain globbing or regex special
17506 # characters, hashes, percent signs, but SUFFIX may contain a leading
17507 # dot (in which case that matches only a dot).
17508 func_stripname ()
17509 {
17510 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17511 # positional parameters, so assign one to ordinary parameter first.
17512 func_stripname_result=${3}
17513 func_stripname_result=${func_stripname_result#"${1}"}
17514 func_stripname_result=${func_stripname_result%"${2}"}
17515 }
17516
17517 # func_opt_split
17518 func_opt_split ()
17519 {
17520 func_opt_split_opt=${1%%=*}
17521 func_opt_split_arg=${1#*=}
17522 }
17523
17524 # func_lo2o object
17525 func_lo2o ()
17526 {
17527 case ${1} in
17528 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17529 *) func_lo2o_result=${1} ;;
17530 esac
17531 }
17532
17533 # func_xform libobj-or-source
17534 func_xform ()
17535 {
17536 func_xform_result=${1%.*}.lo
17537 }
17538
17539 # func_arith arithmetic-term...
17540 func_arith ()
17541 {
17542 func_arith_result=$(( $* ))
17543 }
17544
17545 # func_len string
17546 # STRING may not start with a hyphen.
17547 func_len ()
17548 {
17549 func_len_result=${#1}
17550 }
17551
17552 _LT_EOF
17553 ;;
17554 *) # Bourne compatible functions.
17555 cat << \_LT_EOF >> "$cfgfile"
17556
17557 # func_dirname file append nondir_replacement
17558 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17559 # otherwise set result to NONDIR_REPLACEMENT.
17560 func_dirname ()
17561 {
17562 # Extract subdirectory from the argument.
17563 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17564 if test "X$func_dirname_result" = "X${1}"; then
17565 func_dirname_result="${3}"
17566 else
17567 func_dirname_result="$func_dirname_result${2}"
17568 fi
17569 }
17570
17571 # func_basename file
17572 func_basename ()
17573 {
17574 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17575 }
17576
17577
17578 # func_stripname prefix suffix name
17579 # strip PREFIX and SUFFIX off of NAME.
17580 # PREFIX and SUFFIX must not contain globbing or regex special
17581 # characters, hashes, percent signs, but SUFFIX may contain a leading
17582 # dot (in which case that matches only a dot).
17583 # func_strip_suffix prefix name
17584 func_stripname ()
17585 {
17586 case ${2} in
17587 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17588 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17589 esac
17590 }
17591
17592 # sed scripts:
17593 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17594 my_sed_long_arg='1s/^-[^=]*=//'
17595
17596 # func_opt_split
17597 func_opt_split ()
17598 {
17599 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17600 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17601 }
17602
17603 # func_lo2o object
17604 func_lo2o ()
17605 {
17606 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17607 }
17608
17609 # func_xform libobj-or-source
17610 func_xform ()
17611 {
17612 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17613 }
17614
17615 # func_arith arithmetic-term...
17616 func_arith ()
17617 {
17618 func_arith_result=`expr "$@"`
17619 }
17620
17621 # func_len string
17622 # STRING may not start with a hyphen.
17623 func_len ()
17624 {
17625 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17626 }
17627
17628 _LT_EOF
17629 esac
17630
17631 case $lt_shell_append in
17632 yes)
17633 cat << \_LT_EOF >> "$cfgfile"
17634
17635 # func_append var value
17636 # Append VALUE to the end of shell variable VAR.
17637 func_append ()
17638 {
17639 eval "$1+=\$2"
17640 }
17641 _LT_EOF
17642 ;;
17643 *)
17644 cat << \_LT_EOF >> "$cfgfile"
17645
17646 # func_append var value
17647 # Append VALUE to the end of shell variable VAR.
17648 func_append ()
17649 {
17650 eval "$1=\$$1\$2"
17651 }
17652
17653 _LT_EOF
17654 ;;
17655 esac
17656
17657
17658 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17659 || (rm -f "$cfgfile"; exit 1)
17660
17661 mv -f "$cfgfile" "$ofile" ||
17662 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17663 chmod +x "$ofile"
17664
17665
17666 cat <<_LT_EOF >> "$ofile"
17667
17668 # ### BEGIN LIBTOOL TAG CONFIG: GO
17669
17670 # The linker used to build libraries.
17671 LD=$lt_LD_GO
17672
17673 # How to create reloadable object files.
17674 reload_flag=$lt_reload_flag_GO
17675 reload_cmds=$lt_reload_cmds_GO
17676
17677 # Commands used to build an old-style archive.
17678 old_archive_cmds=$lt_old_archive_cmds_GO
17679
17680 # A language specific compiler.
17681 CC=$lt_compiler_GO
17682
17683 # Is the compiler the GNU compiler?
17684 with_gcc=$GCC_GO
17685
17686 # Compiler flag to turn off builtin functions.
17687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17688
17689 # How to pass a linker flag through the compiler.
17690 wl=$lt_lt_prog_compiler_wl_GO
17691
17692 # Additional compiler flags for building library objects.
17693 pic_flag=$lt_lt_prog_compiler_pic_GO
17694
17695 # Compiler flag to prevent dynamic linking.
17696 link_static_flag=$lt_lt_prog_compiler_static_GO
17697
17698 # Does compiler simultaneously support -c and -o options?
17699 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17700
17701 # Whether or not to add -lc for building shared libraries.
17702 build_libtool_need_lc=$archive_cmds_need_lc_GO
17703
17704 # Whether or not to disallow shared libs when runtime libs are static.
17705 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17706
17707 # Compiler flag to allow reflexive dlopens.
17708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17709
17710 # Compiler flag to generate shared objects directly from archives.
17711 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17712
17713 # Whether the compiler copes with passing no objects directly.
17714 compiler_needs_object=$lt_compiler_needs_object_GO
17715
17716 # Create an old-style archive from a shared archive.
17717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17718
17719 # Create a temporary old-style archive to link instead of a shared archive.
17720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17721
17722 # Commands used to build a shared archive.
17723 archive_cmds=$lt_archive_cmds_GO
17724 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17725
17726 # Commands used to build a loadable module if different from building
17727 # a shared archive.
17728 module_cmds=$lt_module_cmds_GO
17729 module_expsym_cmds=$lt_module_expsym_cmds_GO
17730
17731 # Whether we are building with GNU ld or not.
17732 with_gnu_ld=$lt_with_gnu_ld_GO
17733
17734 # Flag that allows shared libraries with undefined symbols to be built.
17735 allow_undefined_flag=$lt_allow_undefined_flag_GO
17736
17737 # Flag that enforces no undefined symbols.
17738 no_undefined_flag=$lt_no_undefined_flag_GO
17739
17740 # Flag to hardcode \$libdir into a binary during linking.
17741 # This must work even if \$libdir does not exist
17742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17743
17744 # If ld is used when linking, flag to hardcode \$libdir into a binary
17745 # during linking. This must work even if \$libdir does not exist.
17746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17747
17748 # Whether we need a single "-rpath" flag with a separated argument.
17749 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17750
17751 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17752 # DIR into the resulting binary.
17753 hardcode_direct=$hardcode_direct_GO
17754
17755 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17756 # DIR into the resulting binary and the resulting library dependency is
17757 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17758 # library is relocated.
17759 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17760
17761 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17762 # into the resulting binary.
17763 hardcode_minus_L=$hardcode_minus_L_GO
17764
17765 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17766 # into the resulting binary.
17767 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17768
17769 # Set to "yes" if building a shared library automatically hardcodes DIR
17770 # into the library and all subsequent libraries and executables linked
17771 # against it.
17772 hardcode_automatic=$hardcode_automatic_GO
17773
17774 # Set to yes if linker adds runtime paths of dependent libraries
17775 # to runtime path list.
17776 inherit_rpath=$inherit_rpath_GO
17777
17778 # Whether libtool must link a program against all its dependency libraries.
17779 link_all_deplibs=$link_all_deplibs_GO
17780
17781 # Fix the shell variable \$srcfile for the compiler.
17782 fix_srcfile_path=$lt_fix_srcfile_path_GO
17783
17784 # Set to "yes" if exported symbols are required.
17785 always_export_symbols=$always_export_symbols_GO
17786
17787 # The commands to list exported symbols.
17788 export_symbols_cmds=$lt_export_symbols_cmds_GO
17789
17790 # Symbols that should not be listed in the preloaded symbols.
17791 exclude_expsyms=$lt_exclude_expsyms_GO
17792
17793 # Symbols that must always be exported.
17794 include_expsyms=$lt_include_expsyms_GO
17795
17796 # Commands necessary for linking programs (against libraries) with templates.
17797 prelink_cmds=$lt_prelink_cmds_GO
17798
17799 # Specify filename containing input files.
17800 file_list_spec=$lt_file_list_spec_GO
17801
17802 # How to hardcode a shared library path into an executable.
17803 hardcode_action=$hardcode_action_GO
17804
17805 # ### END LIBTOOL TAG CONFIG: GO
17806 _LT_EOF
17807
17808 ;;
17809 "default":C) if test -n "$CONFIG_FILES"; then
17810 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17811 # that multilib installs will end up installed in the correct place.
17812 # The testsuite needs it for multilib-aware ABI baseline files.
17813 # To work around this not being passed down from config-ml.in ->
17814 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17815 # append it here. Only modify Makefiles that have just been created.
17816 #
17817 # Also, get rid of this simulated-VPATH thing that automake does.
17818 cat > vpsed << \_EOF
17819 s!`test -f '$<' || echo '$(srcdir)/'`!!
17820 _EOF
17821 for i in $SUBDIRS; do
17822 case $CONFIG_FILES in
17823 *${i}/Makefile*)
17824 #echo "Adding MULTISUBDIR to $i/Makefile"
17825 sed -f vpsed $i/Makefile > tmp
17826 grep '^MULTISUBDIR =' Makefile >> tmp
17827 mv tmp $i/Makefile
17828 ;;
17829 esac
17830 done
17831 rm vpsed
17832 fi
17833 ;;
17834
17835 esac
17836 done # for ac_tag
17837
17838
17839 as_fn_exit 0
17840 _ACEOF
17841 ac_clean_files=$ac_clean_files_save
17842
17843 test $ac_write_fail = 0 ||
17844 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17845
17846
17847 # configure is writing to config.log, and then calls config.status.
17848 # config.status does its own redirection, appending to config.log.
17849 # Unfortunately, on DOS this fails, as config.log is still kept open
17850 # by configure, so config.status won't be able to write to it; its
17851 # output is simply discarded. So we exec the FD to /dev/null,
17852 # effectively closing config.log, so it can be properly (re)opened and
17853 # appended to by config.status. When coming back to configure, we
17854 # need to make the FD available again.
17855 if test "$no_create" != yes; then
17856 ac_cs_success=:
17857 ac_config_status_args=
17858 test "$silent" = yes &&
17859 ac_config_status_args="$ac_config_status_args --quiet"
17860 exec 5>/dev/null
17861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17862 exec 5>>config.log
17863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17864 # would make configure fail if this is the last instruction.
17865 $ac_cs_success || as_fn_exit $?
17866 fi
17867 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17869 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17870 fi
17871