Revert "Fix PR c++/47172"
[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 STRINGOPS_FLAG
606 HAVE_SYS_MMAN_H_FALSE
607 HAVE_SYS_MMAN_H_TRUE
608 PTHREAD_LIBS
609 PTHREAD_CFLAGS
610 NET_LIBS
611 MATH_LIBS
612 USING_SPLIT_STACK_FALSE
613 USING_SPLIT_STACK_TRUE
614 SPLIT_STACK
615 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
616 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
617 GOARCH
618 LIBGO_IS_X86_64_FALSE
619 LIBGO_IS_X86_64_TRUE
620 LIBGO_IS_SPARC64_FALSE
621 LIBGO_IS_SPARC64_TRUE
622 LIBGO_IS_SPARC_FALSE
623 LIBGO_IS_SPARC_TRUE
624 LIBGO_IS_PPC64_FALSE
625 LIBGO_IS_PPC64_TRUE
626 LIBGO_IS_PPC_FALSE
627 LIBGO_IS_PPC_TRUE
628 LIBGO_IS_MIPS64_FALSE
629 LIBGO_IS_MIPS64_TRUE
630 LIBGO_IS_MIPS_FALSE
631 LIBGO_IS_MIPS_TRUE
632 LIBGO_IS_M68K_FALSE
633 LIBGO_IS_M68K_TRUE
634 LIBGO_IS_ARM_FALSE
635 LIBGO_IS_ARM_TRUE
636 LIBGO_IS_386_FALSE
637 LIBGO_IS_386_TRUE
638 GOOS
639 LIBGO_IS_SOLARIS_FALSE
640 LIBGO_IS_SOLARIS_TRUE
641 LIBGO_IS_RTEMS_FALSE
642 LIBGO_IS_RTEMS_TRUE
643 LIBGO_IS_LINUX_FALSE
644 LIBGO_IS_LINUX_TRUE
645 LIBGO_IS_FREEBSD_FALSE
646 LIBGO_IS_FREEBSD_TRUE
647 LIBGO_IS_DARWIN_FALSE
648 LIBGO_IS_DARWIN_TRUE
649 LIBFFIINCS
650 LIBFFI
651 glibgo_toolexeclibdir
652 glibgo_toolexecdir
653 glibgo_prefixdir
654 WERROR
655 WARN_FLAGS
656 enable_static
657 enable_shared
658 CPP
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 AR
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LIBTOOL
671 OBJCOPY
672 RANLIB
673 LD
674 FGREP
675 EGREP
676 GREP
677 SED
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 GOCFLAGS
682 GOC
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 multi_basedir
735 libtool_VERSION
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_multilib
778 enable_dependency_tracking
779 enable_maintainer_mode
780 with_gnu_ld
781 enable_shared
782 enable_static
783 with_pic
784 enable_fast_install
785 enable_libtool_lock
786 enable_version_specific_runtime_libs
787 with_libffi
788 with_system_libunwind
789 enable_sjlj_exceptions
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CPP
795 CPPFLAGS'
796
797
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
819
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 includedir='${prefix}/include'
835 oldincludedir='/usr/include'
836 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
837 infodir='${datarootdir}/info'
838 htmldir='${docdir}'
839 dvidir='${docdir}'
840 pdfdir='${docdir}'
841 psdir='${docdir}'
842 libdir='${exec_prefix}/lib'
843 localedir='${datarootdir}/locale'
844 mandir='${datarootdir}/man'
845
846 ac_prev=
847 ac_dashdash=
848 for ac_option
849 do
850 # If the previous option needs an argument, assign it.
851 if test -n "$ac_prev"; then
852 eval $ac_prev=\$ac_option
853 ac_prev=
854 continue
855 fi
856
857 case $ac_option in
858 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
859 *) ac_optarg=yes ;;
860 esac
861
862 # Accept the important Cygnus configure options, so we can diagnose typos.
863
864 case $ac_dashdash$ac_option in
865 --)
866 ac_dashdash=yes ;;
867
868 -bindir | --bindir | --bindi | --bind | --bin | --bi)
869 ac_prev=bindir ;;
870 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
871 bindir=$ac_optarg ;;
872
873 -build | --build | --buil | --bui | --bu)
874 ac_prev=build_alias ;;
875 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
876 build_alias=$ac_optarg ;;
877
878 -cache-file | --cache-file | --cache-fil | --cache-fi \
879 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
880 ac_prev=cache_file ;;
881 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
882 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
883 cache_file=$ac_optarg ;;
884
885 --config-cache | -C)
886 cache_file=config.cache ;;
887
888 -datadir | --datadir | --datadi | --datad)
889 ac_prev=datadir ;;
890 -datadir=* | --datadir=* | --datadi=* | --datad=*)
891 datadir=$ac_optarg ;;
892
893 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
894 | --dataroo | --dataro | --datar)
895 ac_prev=datarootdir ;;
896 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
897 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
898 datarootdir=$ac_optarg ;;
899
900 -disable-* | --disable-*)
901 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
902 # Reject names that are not valid shell variable names.
903 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
904 as_fn_error "invalid feature name: $ac_useropt"
905 ac_useropt_orig=$ac_useropt
906 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
907 case $ac_user_opts in
908 *"
909 "enable_$ac_useropt"
910 "*) ;;
911 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
912 ac_unrecognized_sep=', ';;
913 esac
914 eval enable_$ac_useropt=no ;;
915
916 -docdir | --docdir | --docdi | --doc | --do)
917 ac_prev=docdir ;;
918 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
919 docdir=$ac_optarg ;;
920
921 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
922 ac_prev=dvidir ;;
923 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
924 dvidir=$ac_optarg ;;
925
926 -enable-* | --enable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
934 *"
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=\$ac_optarg ;;
941
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
950
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
953 with_gas=yes ;;
954
955 -help | --help | --hel | --he | -h)
956 ac_init_help=long ;;
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
961
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
966
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
968 ac_prev=htmldir ;;
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
970 | --ht=*)
971 htmldir=$ac_optarg ;;
972
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
979
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
981 ac_prev=infodir ;;
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
984
985 -libdir | --libdir | --libdi | --libd)
986 ac_prev=libdir ;;
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
988 libdir=$ac_optarg ;;
989
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
996
997 -localedir | --localedir | --localedi | --localed | --locale)
998 ac_prev=localedir ;;
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1001
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1008
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1010 ac_prev=mandir ;;
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1013
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1016 with_fp=no ;;
1017
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1020 no_create=yes ;;
1021
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1024 no_recursion=yes ;;
1025
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1034
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1036 ac_prev=prefix ;;
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1039
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1046
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1053
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1070
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1072 ac_prev=pdfdir ;;
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1075
1076 -psdir | --psdir | --psdi | --psd | --ps)
1077 ac_prev=psdir ;;
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1079 psdir=$ac_optarg ;;
1080
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1083 silent=yes ;;
1084
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1090
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1101
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1106
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1111
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1118
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1123
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1126
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1129
1130 -with-* | --with-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=\$ac_optarg ;;
1145
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1161
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1165
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1172
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1179
1180 -*) as_fn_error "unrecognized option: \`$ac_option'
1181 Try \`$0 --help' for more information."
1182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1193
1194 *)
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 ;;
1201
1202 esac
1203 done
1204
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error "missing argument to $ac_option"
1208 fi
1209
1210 if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 esac
1216 fi
1217
1218 # Check all directory arguments for consistency.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir
1223 do
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
1232 case $ac_val in
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 esac
1236 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1237 done
1238
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1242 build=$build_alias
1243 host=$host_alias
1244 target=$target_alias
1245
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1251 If a cross compiler is detected then cross compile mode will be used." >&2
1252 elif test "x$build_alias" != "x$host_alias"; then
1253 cross_compiling=yes
1254 fi
1255 fi
1256
1257 ac_tool_prefix=
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1259
1260 test "$silent" = yes && exec 6>/dev/null
1261
1262
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 as_fn_error "working directory cannot be determined"
1267 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1268 as_fn_error "pwd does not report name of working directory"
1269
1270
1271 # Find the source files, if location was not specified.
1272 if test -z "$srcdir"; then
1273 ac_srcdir_defaulted=yes
1274 # Try the directory containing this script, then the parent directory.
1275 ac_confdir=`$as_dirname -- "$as_myself" ||
1276 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1277 X"$as_myself" : 'X\(//\)[^/]' \| \
1278 X"$as_myself" : 'X\(//\)$' \| \
1279 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1280 $as_echo X"$as_myself" |
1281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 s//\1/
1283 q
1284 }
1285 /^X\(\/\/\)[^/].*/{
1286 s//\1/
1287 q
1288 }
1289 /^X\(\/\/\)$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\).*/{
1294 s//\1/
1295 q
1296 }
1297 s/.*/./; q'`
1298 srcdir=$ac_confdir
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 srcdir=..
1301 fi
1302 else
1303 ac_srcdir_defaulted=no
1304 fi
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1307 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1308 fi
1309 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1310 ac_abs_confdir=`(
1311 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1312 pwd)`
1313 # When building in place, set srcdir=.
1314 if test "$ac_abs_confdir" = "$ac_pwd"; then
1315 srcdir=.
1316 fi
1317 # Remove unnecessary trailing slashes from srcdir.
1318 # Double slashes in file names in object file debugging info
1319 # mess up M-x gdb in Emacs.
1320 case $srcdir in
1321 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1322 esac
1323 for ac_var in $ac_precious_vars; do
1324 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_env_${ac_var}_value=\$${ac_var}
1326 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1328 done
1329
1330 #
1331 # Report the --help message.
1332 #
1333 if test "$ac_init_help" = "long"; then
1334 # Omit some internal or obsolete options to make the list less imposing.
1335 # This message is too long to be a string in the A/UX 3.1 sh.
1336 cat <<_ACEOF
1337 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1338
1339 Usage: $0 [OPTION]... [VAR=VALUE]...
1340
1341 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1342 VAR=VALUE. See below for descriptions of some of the useful variables.
1343
1344 Defaults for the options are specified in brackets.
1345
1346 Configuration:
1347 -h, --help display this help and exit
1348 --help=short display options specific to this package
1349 --help=recursive display the short help of all the included packages
1350 -V, --version display version information and exit
1351 -q, --quiet, --silent do not print \`checking...' messages
1352 --cache-file=FILE cache test results in FILE [disabled]
1353 -C, --config-cache alias for \`--cache-file=config.cache'
1354 -n, --no-create do not create output files
1355 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1356
1357 Installation directories:
1358 --prefix=PREFIX install architecture-independent files in PREFIX
1359 [$ac_default_prefix]
1360 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1361 [PREFIX]
1362
1363 By default, \`make install' will install all the files in
1364 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1365 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1366 for instance \`--prefix=\$HOME'.
1367
1368 For better control, use the options below.
1369
1370 Fine tuning of the installation directories:
1371 --bindir=DIR user executables [EPREFIX/bin]
1372 --sbindir=DIR system admin executables [EPREFIX/sbin]
1373 --libexecdir=DIR program executables [EPREFIX/libexec]
1374 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1375 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1376 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1377 --libdir=DIR object code libraries [EPREFIX/lib]
1378 --includedir=DIR C header files [PREFIX/include]
1379 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1380 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1381 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1382 --infodir=DIR info documentation [DATAROOTDIR/info]
1383 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1384 --mandir=DIR man documentation [DATAROOTDIR/man]
1385 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1386 --htmldir=DIR html documentation [DOCDIR]
1387 --dvidir=DIR dvi documentation [DOCDIR]
1388 --pdfdir=DIR pdf documentation [DOCDIR]
1389 --psdir=DIR ps documentation [DOCDIR]
1390 _ACEOF
1391
1392 cat <<\_ACEOF
1393
1394 Program names:
1395 --program-prefix=PREFIX prepend PREFIX to installed program names
1396 --program-suffix=SUFFIX append SUFFIX to installed program names
1397 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1398
1399 System types:
1400 --build=BUILD configure for building on BUILD [guessed]
1401 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1402 --target=TARGET configure for building compilers for TARGET [HOST]
1403 _ACEOF
1404 fi
1405
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of package-unused version-unused:";;
1409 esac
1410 cat <<\_ACEOF
1411
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-multilib build many library versions (default)
1417 --disable-dependency-tracking speeds up one-time build
1418 --enable-dependency-tracking do not reject slow dependency extractors
1419 --enable-maintainer-mode enable make rules and dependencies not useful
1420 (and sometimes confusing) to the casual installer
1421 --enable-shared[=PKGS] build shared libraries [default=yes]
1422 --enable-static[=PKGS] build static libraries [default=yes]
1423 --enable-fast-install[=PKGS]
1424 optimize for fast installation [default=yes]
1425 --disable-libtool-lock avoid locking (might break parallel builds)
1426 --enable-version-specific-runtime-libs
1427 Specify that runtime libraries should be installed
1428 in a compiler-specific directory
1429 --enable-sjlj-exceptions
1430 force use of builtin_setjmp for exceptions
1431
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-pic try to use only PIC/non-PIC objects [default=use
1437 both]
1438 --without-libffi don't use libffi
1439 --with-system-libunwind use installed libunwind
1440
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 GOC Go compiler command
1450 GOCFLAGS Go compiler flags
1451 CPP C preprocessor
1452
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1455
1456 Report bugs to the package provider.
1457 _ACEOF
1458 ac_status=$?
1459 fi
1460
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" ||
1465 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1466 continue
1467 ac_builddir=.
1468
1469 case "$ac_dir" in
1470 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 *)
1472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1473 # A ".." for each directory in $ac_dir_suffix.
1474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1475 case $ac_top_builddir_sub in
1476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1478 esac ;;
1479 esac
1480 ac_abs_top_builddir=$ac_pwd
1481 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1482 # for backward compatibility:
1483 ac_top_builddir=$ac_top_build_prefix
1484
1485 case $srcdir in
1486 .) # We are building in place.
1487 ac_srcdir=.
1488 ac_top_srcdir=$ac_top_builddir_sub
1489 ac_abs_top_srcdir=$ac_pwd ;;
1490 [\\/]* | ?:[\\/]* ) # Absolute name.
1491 ac_srcdir=$srcdir$ac_dir_suffix;
1492 ac_top_srcdir=$srcdir
1493 ac_abs_top_srcdir=$srcdir ;;
1494 *) # Relative name.
1495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1496 ac_top_srcdir=$ac_top_build_prefix$srcdir
1497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 esac
1499 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500
1501 cd "$ac_dir" || { ac_status=$?; continue; }
1502 # Check for guested configure.
1503 if test -f "$ac_srcdir/configure.gnu"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1506 elif test -f "$ac_srcdir/configure"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure" --help=recursive
1509 else
1510 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 fi || ac_status=$?
1512 cd "$ac_pwd" || { ac_status=$?; break; }
1513 done
1514 fi
1515
1516 test -n "$ac_init_help" && exit $ac_status
1517 if $ac_init_version; then
1518 cat <<\_ACEOF
1519 package-unused configure version-unused
1520 generated by GNU Autoconf 2.64
1521
1522 Copyright (C) 2009 Free Software Foundation, Inc.
1523 This configure script is free software; the Free Software Foundation
1524 gives unlimited permission to copy, distribute and modify it.
1525 _ACEOF
1526 exit
1527 fi
1528
1529 ## ------------------------ ##
1530 ## Autoconf initialization. ##
1531 ## ------------------------ ##
1532
1533 # ac_fn_c_try_compile LINENO
1534 # --------------------------
1535 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1536 ac_fn_c_try_compile ()
1537 {
1538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1539 rm -f conftest.$ac_objext
1540 if { { ac_try="$ac_compile"
1541 case "(($ac_try" in
1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1543 *) ac_try_echo=$ac_try;;
1544 esac
1545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1546 $as_echo "$ac_try_echo"; } >&5
1547 (eval "$ac_compile") 2>conftest.err
1548 ac_status=$?
1549 if test -s conftest.err; then
1550 grep -v '^ *+' conftest.err >conftest.er1
1551 cat conftest.er1 >&5
1552 mv -f conftest.er1 conftest.err
1553 fi
1554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1555 test $ac_status = 0; } && {
1556 test -z "$ac_c_werror_flag" ||
1557 test ! -s conftest.err
1558 } && test -s conftest.$ac_objext; then :
1559 ac_retval=0
1560 else
1561 $as_echo "$as_me: failed program was:" >&5
1562 sed 's/^/| /' conftest.$ac_ext >&5
1563
1564 ac_retval=1
1565 fi
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567 return $ac_retval
1568
1569 } # ac_fn_c_try_compile
1570
1571 # ac_fn_c_try_link LINENO
1572 # -----------------------
1573 # Try to link conftest.$ac_ext, and return whether this succeeded.
1574 ac_fn_c_try_link ()
1575 {
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 rm -f conftest.$ac_objext conftest$ac_exeext
1578 if { { ac_try="$ac_link"
1579 case "(($ac_try" in
1580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1581 *) ac_try_echo=$ac_try;;
1582 esac
1583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1584 $as_echo "$ac_try_echo"; } >&5
1585 (eval "$ac_link") 2>conftest.err
1586 ac_status=$?
1587 if test -s conftest.err; then
1588 grep -v '^ *+' conftest.err >conftest.er1
1589 cat conftest.er1 >&5
1590 mv -f conftest.er1 conftest.err
1591 fi
1592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1593 test $ac_status = 0; } && {
1594 test -z "$ac_c_werror_flag" ||
1595 test ! -s conftest.err
1596 } && test -s conftest$ac_exeext && {
1597 test "$cross_compiling" = yes ||
1598 $as_test_x conftest$ac_exeext
1599 }; then :
1600 ac_retval=0
1601 else
1602 $as_echo "$as_me: failed program was:" >&5
1603 sed 's/^/| /' conftest.$ac_ext >&5
1604
1605 ac_retval=1
1606 fi
1607 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1608 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1609 # interfere with the next link command; also delete a directory that is
1610 # left behind by Apple's compiler. We do this before executing the actions.
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1613 return $ac_retval
1614
1615 } # ac_fn_c_try_link
1616
1617 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618 # -------------------------------------------------------
1619 # Tests whether HEADER exists and can be compiled using the include files in
1620 # INCLUDES, setting the cache variable VAR accordingly.
1621 ac_fn_c_check_header_compile ()
1622 {
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625 $as_echo_n "checking for $2... " >&6; }
1626 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1627 $as_echo_n "(cached) " >&6
1628 else
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630 /* end confdefs.h. */
1631 $4
1632 #include <$2>
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$3=yes"
1636 else
1637 eval "$3=no"
1638 fi
1639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640 fi
1641 eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643 $as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645
1646 } # ac_fn_c_check_header_compile
1647
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } >/dev/null && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 return $ac_retval
1682
1683 } # ac_fn_c_try_cpp
1684
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1689 ac_fn_c_try_run ()
1690 {
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 if { { ac_try="$ac_link"
1693 case "(($ac_try" in
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1696 esac
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1700 ac_status=$?
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1713 ac_retval=0
1714 else
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=$ac_status
1720 fi
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 return $ac_retval
1724
1725 } # ac_fn_c_try_run
1726
1727 # ac_fn_c_check_func LINENO FUNC VAR
1728 # ----------------------------------
1729 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1730 ac_fn_c_check_func ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742 #define $2 innocuous_$2
1743
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below.
1746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1747 <limits.h> exists even on freestanding compilers. */
1748
1749 #ifdef __STDC__
1750 # include <limits.h>
1751 #else
1752 # include <assert.h>
1753 #endif
1754
1755 #undef $2
1756
1757 /* Override any GCC internal prototype to avoid an error.
1758 Use char because int might match the return type of a GCC
1759 builtin and then its argument prototype would still apply. */
1760 #ifdef __cplusplus
1761 extern "C"
1762 #endif
1763 char $2 ();
1764 /* The GNU C library defines this for functions which it implements
1765 to always fail with ENOSYS. Some functions are actually named
1766 something starting with __ and the normal name is an alias. */
1767 #if defined __stub_$2 || defined __stub___$2
1768 choke me
1769 #endif
1770
1771 int
1772 main ()
1773 {
1774 return $2 ();
1775 ;
1776 return 0;
1777 }
1778 _ACEOF
1779 if ac_fn_c_try_link "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1783 fi
1784 rm -f core conftest.err conftest.$ac_objext \
1785 conftest$ac_exeext conftest.$ac_ext
1786 fi
1787 eval ac_res=\$$3
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1789 $as_echo "$ac_res" >&6; }
1790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791
1792 } # ac_fn_c_check_func
1793
1794 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1797 # the include files in INCLUDES and setting the cache variable VAR
1798 # accordingly.
1799 ac_fn_c_check_header_mongrel ()
1800 {
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806 $as_echo_n "(cached) " >&6
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 else
1812 # Is the header compilable?
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1814 $as_echo_n "checking $2 usability... " >&6; }
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 $4
1818 #include <$2>
1819 _ACEOF
1820 if ac_fn_c_try_compile "$LINENO"; then :
1821 ac_header_compiler=yes
1822 else
1823 ac_header_compiler=no
1824 fi
1825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1827 $as_echo "$ac_header_compiler" >&6; }
1828
1829 # Is the header present?
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1831 $as_echo_n "checking $2 presence... " >&6; }
1832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1833 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_cpp "$LINENO"; then :
1837 ac_header_preproc=yes
1838 else
1839 ac_header_preproc=no
1840 fi
1841 rm -f conftest.err conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1843 $as_echo "$ac_header_preproc" >&6; }
1844
1845 # So? What about this header?
1846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1847 yes:no: )
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1849 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1851 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 ;;
1853 no:yes:* )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1855 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1857 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1859 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1861 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1863 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 ;;
1865 esac
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1870 else
1871 eval "$3=\$ac_header_compiler"
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 fi
1877 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878
1879 } # ac_fn_c_check_header_mongrel
1880
1881 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1882 # -------------------------------------------
1883 # Tests whether TYPE exists after having included INCLUDES, setting cache
1884 # variable VAR accordingly.
1885 ac_fn_c_check_type ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1891 $as_echo_n "(cached) " >&6
1892 else
1893 eval "$3=no"
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1896 $4
1897 int
1898 main ()
1899 {
1900 if (sizeof ($2))
1901 return 0;
1902 ;
1903 return 0;
1904 }
1905 _ACEOF
1906 if ac_fn_c_try_compile "$LINENO"; then :
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 int
1911 main ()
1912 {
1913 if (sizeof (($2)))
1914 return 0;
1915 ;
1916 return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920
1921 else
1922 eval "$3=yes"
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 fi
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 fi
1928 eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932
1933 } # ac_fn_c_check_type
1934 cat >config.log <<_ACEOF
1935 This file contains any messages produced by compilers while
1936 running configure, to aid debugging if configure makes a mistake.
1937
1938 It was created by package-unused $as_me version-unused, which was
1939 generated by GNU Autoconf 2.64. Invocation command line was
1940
1941 $ $0 $@
1942
1943 _ACEOF
1944 exec 5>>config.log
1945 {
1946 cat <<_ASUNAME
1947 ## --------- ##
1948 ## Platform. ##
1949 ## --------- ##
1950
1951 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1952 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1953 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1954 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1955 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1956
1957 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1958 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1959
1960 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1961 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1962 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1963 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1964 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1965 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1966 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1967
1968 _ASUNAME
1969
1970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1971 for as_dir in $PATH
1972 do
1973 IFS=$as_save_IFS
1974 test -z "$as_dir" && as_dir=.
1975 $as_echo "PATH: $as_dir"
1976 done
1977 IFS=$as_save_IFS
1978
1979 } >&5
1980
1981 cat >&5 <<_ACEOF
1982
1983
1984 ## ----------- ##
1985 ## Core tests. ##
1986 ## ----------- ##
1987
1988 _ACEOF
1989
1990
1991 # Keep a trace of the command line.
1992 # Strip out --no-create and --no-recursion so they do not pile up.
1993 # Strip out --silent because we don't want to record it for future runs.
1994 # Also quote any args containing shell meta-characters.
1995 # Make two passes to allow for proper duplicate-argument suppression.
1996 ac_configure_args=
1997 ac_configure_args0=
1998 ac_configure_args1=
1999 ac_must_keep_next=false
2000 for ac_pass in 1 2
2001 do
2002 for ac_arg
2003 do
2004 case $ac_arg in
2005 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2006 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2007 | -silent | --silent | --silen | --sile | --sil)
2008 continue ;;
2009 *\'*)
2010 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011 esac
2012 case $ac_pass in
2013 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2014 2)
2015 as_fn_append ac_configure_args1 " '$ac_arg'"
2016 if test $ac_must_keep_next = true; then
2017 ac_must_keep_next=false # Got value, back to normal.
2018 else
2019 case $ac_arg in
2020 *=* | --config-cache | -C | -disable-* | --disable-* \
2021 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2022 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2023 | -with-* | --with-* | -without-* | --without-* | --x)
2024 case "$ac_configure_args0 " in
2025 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026 esac
2027 ;;
2028 -* ) ac_must_keep_next=true ;;
2029 esac
2030 fi
2031 as_fn_append ac_configure_args " '$ac_arg'"
2032 ;;
2033 esac
2034 done
2035 done
2036 { ac_configure_args0=; unset ac_configure_args0;}
2037 { ac_configure_args1=; unset ac_configure_args1;}
2038
2039 # When interrupted or exit'd, cleanup temporary files, and complete
2040 # config.log. We remove comments because anyway the quotes in there
2041 # would cause problems or look ugly.
2042 # WARNING: Use '\'' to represent an apostrophe within the trap.
2043 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2044 trap 'exit_status=$?
2045 # Save into config.log some information that might help in debugging.
2046 {
2047 echo
2048
2049 cat <<\_ASBOX
2050 ## ---------------- ##
2051 ## Cache variables. ##
2052 ## ---------------- ##
2053 _ASBOX
2054 echo
2055 # The following way of writing the cache mishandles newlines in values,
2056 (
2057 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2058 eval ac_val=\$$ac_var
2059 case $ac_val in #(
2060 *${as_nl}*)
2061 case $ac_var in #(
2062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2064 esac
2065 case $ac_var in #(
2066 _ | IFS | as_nl) ;; #(
2067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2068 *) { eval $ac_var=; unset $ac_var;} ;;
2069 esac ;;
2070 esac
2071 done
2072 (set) 2>&1 |
2073 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2074 *${as_nl}ac_space=\ *)
2075 sed -n \
2076 "s/'\''/'\''\\\\'\'''\''/g;
2077 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2078 ;; #(
2079 *)
2080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2081 ;;
2082 esac |
2083 sort
2084 )
2085 echo
2086
2087 cat <<\_ASBOX
2088 ## ----------------- ##
2089 ## Output variables. ##
2090 ## ----------------- ##
2091 _ASBOX
2092 echo
2093 for ac_var in $ac_subst_vars
2094 do
2095 eval ac_val=\$$ac_var
2096 case $ac_val in
2097 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2098 esac
2099 $as_echo "$ac_var='\''$ac_val'\''"
2100 done | sort
2101 echo
2102
2103 if test -n "$ac_subst_files"; then
2104 cat <<\_ASBOX
2105 ## ------------------- ##
2106 ## File substitutions. ##
2107 ## ------------------- ##
2108 _ASBOX
2109 echo
2110 for ac_var in $ac_subst_files
2111 do
2112 eval ac_val=\$$ac_var
2113 case $ac_val in
2114 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115 esac
2116 $as_echo "$ac_var='\''$ac_val'\''"
2117 done | sort
2118 echo
2119 fi
2120
2121 if test -s confdefs.h; then
2122 cat <<\_ASBOX
2123 ## ----------- ##
2124 ## confdefs.h. ##
2125 ## ----------- ##
2126 _ASBOX
2127 echo
2128 cat confdefs.h
2129 echo
2130 fi
2131 test "$ac_signal" != 0 &&
2132 $as_echo "$as_me: caught signal $ac_signal"
2133 $as_echo "$as_me: exit $exit_status"
2134 } >&5
2135 rm -f core *.core core.conftest.* &&
2136 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2137 exit $exit_status
2138 ' 0
2139 for ac_signal in 1 2 13 15; do
2140 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2141 done
2142 ac_signal=0
2143
2144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2145 rm -f -r conftest* confdefs.h
2146
2147 $as_echo "/* confdefs.h */" > confdefs.h
2148
2149 # Predefined preprocessor variables.
2150
2151 cat >>confdefs.h <<_ACEOF
2152 #define PACKAGE_NAME "$PACKAGE_NAME"
2153 _ACEOF
2154
2155 cat >>confdefs.h <<_ACEOF
2156 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2157 _ACEOF
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_STRING "$PACKAGE_STRING"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_URL "$PACKAGE_URL"
2173 _ACEOF
2174
2175
2176 # Let the site file select an alternate cache file if it wants to.
2177 # Prefer an explicitly selected file to automatically selected ones.
2178 ac_site_file1=NONE
2179 ac_site_file2=NONE
2180 if test -n "$CONFIG_SITE"; then
2181 ac_site_file1=$CONFIG_SITE
2182 elif test "x$prefix" != xNONE; then
2183 ac_site_file1=$prefix/share/config.site
2184 ac_site_file2=$prefix/etc/config.site
2185 else
2186 ac_site_file1=$ac_default_prefix/share/config.site
2187 ac_site_file2=$ac_default_prefix/etc/config.site
2188 fi
2189 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2190 do
2191 test "x$ac_site_file" = xNONE && continue
2192 if test -r "$ac_site_file"; then
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2194 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2195 sed 's/^/| /' "$ac_site_file" >&5
2196 . "$ac_site_file"
2197 fi
2198 done
2199
2200 if test -r "$cache_file"; then
2201 # Some versions of bash will fail to source /dev/null (special
2202 # files actually), so we avoid doing that.
2203 if test -f "$cache_file"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2205 $as_echo "$as_me: loading cache $cache_file" >&6;}
2206 case $cache_file in
2207 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2208 *) . "./$cache_file";;
2209 esac
2210 fi
2211 else
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2213 $as_echo "$as_me: creating cache $cache_file" >&6;}
2214 >$cache_file
2215 fi
2216
2217 # Check that the precious variables saved in the cache have kept the same
2218 # value.
2219 ac_cache_corrupted=false
2220 for ac_var in $ac_precious_vars; do
2221 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2222 eval ac_new_set=\$ac_env_${ac_var}_set
2223 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2224 eval ac_new_val=\$ac_env_${ac_var}_value
2225 case $ac_old_set,$ac_new_set in
2226 set,)
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2228 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2229 ac_cache_corrupted=: ;;
2230 ,set)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,);;
2235 *)
2236 if test "x$ac_old_val" != "x$ac_new_val"; then
2237 # differences in whitespace do not lead to failure.
2238 ac_old_val_w=`echo x $ac_old_val`
2239 ac_new_val_w=`echo x $ac_new_val`
2240 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2242 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2243 ac_cache_corrupted=:
2244 else
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2246 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2247 eval $ac_var=\$ac_old_val
2248 fi
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2250 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2252 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2253 fi;;
2254 esac
2255 # Pass precious variables to config.status.
2256 if test "$ac_new_set" = set; then
2257 case $ac_new_val in
2258 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2259 *) ac_arg=$ac_var=$ac_new_val ;;
2260 esac
2261 case " $ac_configure_args " in
2262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2263 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2264 esac
2265 fi
2266 done
2267 if $ac_cache_corrupted; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2271 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2272 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2273 fi
2274 ## -------------------- ##
2275 ## Main body of script. ##
2276 ## -------------------- ##
2277
2278 ac_ext=c
2279 ac_cpp='$CPP $CPPFLAGS'
2280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
2284
2285
2286
2287
2288
2289 ac_config_headers="$ac_config_headers config.h"
2290
2291
2292 libtool_VERSION=1:0:0
2293
2294
2295 # Default to --enable-multilib
2296 # Check whether --enable-multilib was given.
2297 if test "${enable_multilib+set}" = set; then :
2298 enableval=$enable_multilib; case "$enableval" in
2299 yes) multilib=yes ;;
2300 no) multilib=no ;;
2301 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2302 esac
2303 else
2304 multilib=yes
2305 fi
2306
2307
2308 # We may get other options which we leave undocumented:
2309 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2310 # See config-ml.in if you want the gory details.
2311
2312 if test "$srcdir" = "."; then
2313 if test "$with_target_subdir" != "."; then
2314 multi_basedir="$srcdir/$with_multisrctop../.."
2315 else
2316 multi_basedir="$srcdir/$with_multisrctop.."
2317 fi
2318 else
2319 multi_basedir="$srcdir/.."
2320 fi
2321
2322
2323 # Even if the default multilib is not a cross compilation,
2324 # it may be that some of the other multilibs are.
2325 if test $cross_compiling = no && test $multilib = yes \
2326 && test "x${with_multisubdir}" != x ; then
2327 cross_compiling=maybe
2328 fi
2329
2330 ac_config_commands="$ac_config_commands default-1"
2331
2332
2333 ac_aux_dir=
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 for ac_t in install-sh install.sh shtool; do
2336 if test -f "$ac_dir/$ac_t"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/$ac_t -c"
2339 break 2
2340 fi
2341 done
2342 done
2343 if test -z "$ac_aux_dir"; then
2344 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2345 fi
2346
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2354
2355
2356 # Make sure we can run config.sub.
2357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2359
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2361 $as_echo_n "checking build system type... " >&6; }
2362 if test "${ac_cv_build+set}" = set; then :
2363 $as_echo_n "(cached) " >&6
2364 else
2365 ac_build_alias=$build_alias
2366 test "x$ac_build_alias" = x &&
2367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368 test "x$ac_build_alias" = x &&
2369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2372
2373 fi
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2375 $as_echo "$ac_cv_build" >&6; }
2376 case $ac_cv_build in
2377 *-*-*) ;;
2378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2379 esac
2380 build=$ac_cv_build
2381 ac_save_IFS=$IFS; IFS='-'
2382 set x $ac_cv_build
2383 shift
2384 build_cpu=$1
2385 build_vendor=$2
2386 shift; shift
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2389 build_os=$*
2390 IFS=$ac_save_IFS
2391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2392
2393
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395 $as_echo_n "checking host system type... " >&6; }
2396 if test "${ac_cv_host+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2401 else
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2404 fi
2405
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408 $as_echo "$ac_cv_host" >&6; }
2409 case $ac_cv_host in
2410 *-*-*) ;;
2411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2412 esac
2413 host=$ac_cv_host
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_host
2416 shift
2417 host_cpu=$1
2418 host_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 host_os=$*
2423 IFS=$ac_save_IFS
2424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2425
2426
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2434 else
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2437 fi
2438
2439 fi
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2441 $as_echo "$ac_cv_target" >&6; }
2442 case $ac_cv_target in
2443 *-*-*) ;;
2444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2445 esac
2446 target=$ac_cv_target
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_target
2449 shift
2450 target_cpu=$1
2451 target_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 target_os=$*
2456 IFS=$ac_save_IFS
2457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2458
2459
2460 # The aliases save the names the user supplied, while $host etc.
2461 # will get canonicalized.
2462 test -n "$target_alias" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_prefix=${target_alias}-
2466
2467 target_alias=${target_alias-$host_alias}
2468
2469 am__api_version='1.11'
2470
2471 # Find a good install program. We prefer a C program (faster),
2472 # so one script is as good as another. But avoid the broken or
2473 # incompatible versions:
2474 # SysV /etc/install, /usr/sbin/install
2475 # SunOS /usr/etc/install
2476 # IRIX /sbin/install
2477 # AIX /bin/install
2478 # AmigaOS /C/install, which installs bootblocks on floppy discs
2479 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2480 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2481 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2482 # OS/2's system install, which has a completely different semantic
2483 # ./install, which can be erroneously created by make from ./install.sh.
2484 # Reject install programs that cannot install multiple files.
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2486 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2487 if test -z "$INSTALL"; then
2488 if test "${ac_cv_path_install+set}" = set; then :
2489 $as_echo_n "(cached) " >&6
2490 else
2491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492 for as_dir in $PATH
2493 do
2494 IFS=$as_save_IFS
2495 test -z "$as_dir" && as_dir=.
2496 # Account for people who put trailing slashes in PATH elements.
2497 case $as_dir/ in #((
2498 ./ | .// | /[cC]/* | \
2499 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2500 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2501 /usr/ucb/* ) ;;
2502 *)
2503 # OSF1 and SCO ODT 3.0 have their own names for install.
2504 # Don't use installbsd from OSF since it installs stuff as root
2505 # by default.
2506 for ac_prog in ginstall scoinst install; do
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2509 if test $ac_prog = install &&
2510 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # AIX install. It has an incompatible calling convention.
2512 :
2513 elif test $ac_prog = install &&
2514 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515 # program-specific install script used by HP pwplus--don't use.
2516 :
2517 else
2518 rm -rf conftest.one conftest.two conftest.dir
2519 echo one > conftest.one
2520 echo two > conftest.two
2521 mkdir conftest.dir
2522 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2523 test -s conftest.one && test -s conftest.two &&
2524 test -s conftest.dir/conftest.one &&
2525 test -s conftest.dir/conftest.two
2526 then
2527 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2528 break 3
2529 fi
2530 fi
2531 fi
2532 done
2533 done
2534 ;;
2535 esac
2536
2537 done
2538 IFS=$as_save_IFS
2539
2540 rm -rf conftest.one conftest.two conftest.dir
2541
2542 fi
2543 if test "${ac_cv_path_install+set}" = set; then
2544 INSTALL=$ac_cv_path_install
2545 else
2546 # As a last resort, use the slow shell script. Don't cache a
2547 # value for INSTALL within a source directory, because that will
2548 # break other packages using the cache if that directory is
2549 # removed, or if the value is a relative name.
2550 INSTALL=$ac_install_sh
2551 fi
2552 fi
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2554 $as_echo "$INSTALL" >&6; }
2555
2556 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2557 # It thinks the first close brace ends the variable substitution.
2558 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2559
2560 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2561
2562 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2563
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2565 $as_echo_n "checking whether build environment is sane... " >&6; }
2566 # Just in case
2567 sleep 1
2568 echo timestamp > conftest.file
2569 # Reject unsafe characters in $srcdir or the absolute working directory
2570 # name. Accept space and tab only in the latter.
2571 am_lf='
2572 '
2573 case `pwd` in
2574 *[\\\"\#\$\&\'\`$am_lf]*)
2575 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2576 esac
2577 case $srcdir in
2578 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2579 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2580 esac
2581
2582 # Do `set' in a subshell so we don't clobber the current shell's
2583 # arguments. Must try -L first in case configure is actually a
2584 # symlink; some systems play weird games with the mod time of symlinks
2585 # (eg FreeBSD returns the mod time of the symlink's containing
2586 # directory).
2587 if (
2588 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2589 if test "$*" = "X"; then
2590 # -L didn't work.
2591 set X `ls -t "$srcdir/configure" conftest.file`
2592 fi
2593 rm -f conftest.file
2594 if test "$*" != "X $srcdir/configure conftest.file" \
2595 && test "$*" != "X conftest.file $srcdir/configure"; then
2596
2597 # If neither matched, then we have a broken ls. This can happen
2598 # if, for instance, CONFIG_SHELL is bash and it inherits a
2599 # broken ls alias from the environment. This has actually
2600 # happened. Such a system could not be considered "sane".
2601 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2602 alias in your environment" "$LINENO" 5
2603 fi
2604
2605 test "$2" = conftest.file
2606 )
2607 then
2608 # Ok.
2609 :
2610 else
2611 as_fn_error "newly created file is older than distributed files!
2612 Check your system clock" "$LINENO" 5
2613 fi
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 test "$program_prefix" != NONE &&
2617 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2618 # Use a double $ so make ignores it.
2619 test "$program_suffix" != NONE &&
2620 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2621 # Double any \ or $.
2622 # By default was `s,x,x', remove it if useless.
2623 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2624 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2625
2626 # expand $ac_aux_dir to an absolute path
2627 am_aux_dir=`cd $ac_aux_dir && pwd`
2628
2629 if test x"${MISSING+set}" != xset; then
2630 case $am_aux_dir in
2631 *\ * | *\ *)
2632 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2633 *)
2634 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2635 esac
2636 fi
2637 # Use eval to expand $SHELL
2638 if eval "$MISSING --run true"; then
2639 am_missing_run="$MISSING --run "
2640 else
2641 am_missing_run=
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2643 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2644 fi
2645
2646 if test x"${install_sh}" != xset; then
2647 case $am_aux_dir in
2648 *\ * | *\ *)
2649 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2650 *)
2651 install_sh="\${SHELL} $am_aux_dir/install-sh"
2652 esac
2653 fi
2654
2655 # Installed binaries are usually stripped using `strip' when the user
2656 # run `make install-strip'. However `strip' might not be the right
2657 # tool to use in cross-compilation environments, therefore Automake
2658 # will honor the `STRIP' environment variable to overrule this program.
2659 if test "$cross_compiling" != no; then
2660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2662 set dummy ${ac_tool_prefix}strip; ac_word=$2
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2664 $as_echo_n "checking for $ac_word... " >&6; }
2665 if test "${ac_cv_prog_STRIP+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2667 else
2668 if test -n "$STRIP"; then
2669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2670 else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH
2673 do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 break 2
2681 fi
2682 done
2683 done
2684 IFS=$as_save_IFS
2685
2686 fi
2687 fi
2688 STRIP=$ac_cv_prog_STRIP
2689 if test -n "$STRIP"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2691 $as_echo "$STRIP" >&6; }
2692 else
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2694 $as_echo "no" >&6; }
2695 fi
2696
2697
2698 fi
2699 if test -z "$ac_cv_prog_STRIP"; then
2700 ac_ct_STRIP=$STRIP
2701 # Extract the first word of "strip", so it can be a program name with args.
2702 set dummy strip; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$ac_ct_STRIP"; then
2709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_ac_ct_STRIP="strip"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2721 fi
2722 done
2723 done
2724 IFS=$as_save_IFS
2725
2726 fi
2727 fi
2728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2729 if test -n "$ac_ct_STRIP"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2731 $as_echo "$ac_ct_STRIP" >&6; }
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735 fi
2736
2737 if test "x$ac_ct_STRIP" = x; then
2738 STRIP=":"
2739 else
2740 case $cross_compiling:$ac_tool_warned in
2741 yes:)
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2744 ac_tool_warned=yes ;;
2745 esac
2746 STRIP=$ac_ct_STRIP
2747 fi
2748 else
2749 STRIP="$ac_cv_prog_STRIP"
2750 fi
2751
2752 fi
2753 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2756 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2757 if test -z "$MKDIR_P"; then
2758 if test "${ac_cv_path_mkdir+set}" = set; then :
2759 $as_echo_n "(cached) " >&6
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_prog in mkdir gmkdir; do
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2769 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2770 'mkdir (GNU coreutils) '* | \
2771 'mkdir (coreutils) '* | \
2772 'mkdir (fileutils) '4.1*)
2773 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2774 break 3;;
2775 esac
2776 done
2777 done
2778 done
2779 IFS=$as_save_IFS
2780
2781 fi
2782
2783 if test "${ac_cv_path_mkdir+set}" = set; then
2784 MKDIR_P="$ac_cv_path_mkdir -p"
2785 else
2786 # As a last resort, use the slow shell script. Don't cache a
2787 # value for MKDIR_P within a source directory, because that will
2788 # break other packages using the cache if that directory is
2789 # removed, or if the value is a relative name.
2790 test -d ./--version && rmdir ./--version
2791 MKDIR_P="$ac_install_sh -d"
2792 fi
2793 fi
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2795 $as_echo "$MKDIR_P" >&6; }
2796
2797 mkdir_p="$MKDIR_P"
2798 case $mkdir_p in
2799 [\\/$]* | ?:[\\/]*) ;;
2800 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2801 esac
2802
2803 for ac_prog in gawk mawk nawk awk
2804 do
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_AWK+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$AWK"; then
2813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818 IFS=$as_save_IFS
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_AWK="$ac_prog"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 AWK=$ac_cv_prog_AWK
2833 if test -n "$AWK"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2835 $as_echo "$AWK" >&6; }
2836 else
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841
2842 test -n "$AWK" && break
2843 done
2844
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2847 set x ${MAKE-make}
2848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2850 $as_echo_n "(cached) " >&6
2851 else
2852 cat >conftest.make <<\_ACEOF
2853 SHELL = /bin/sh
2854 all:
2855 @echo '@@@%%%=$(MAKE)=@@@%%%'
2856 _ACEOF
2857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2859 *@@@%%%=?*=@@@%%%*)
2860 eval ac_cv_prog_make_${ac_make}_set=yes;;
2861 *)
2862 eval ac_cv_prog_make_${ac_make}_set=no;;
2863 esac
2864 rm -f conftest.make
2865 fi
2866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2868 $as_echo "yes" >&6; }
2869 SET_MAKE=
2870 else
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 SET_MAKE="MAKE=${MAKE-make}"
2874 fi
2875
2876 rm -rf .tst 2>/dev/null
2877 mkdir .tst 2>/dev/null
2878 if test -d .tst; then
2879 am__leading_dot=.
2880 else
2881 am__leading_dot=_
2882 fi
2883 rmdir .tst 2>/dev/null
2884
2885 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2886 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2887 # is not polluted with repeated "-I."
2888 am__isrc=' -I$(srcdir)'
2889 # test to see if srcdir already configured
2890 if test -f $srcdir/config.status; then
2891 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2892 fi
2893 fi
2894
2895 # test whether we have cygpath
2896 if test -z "$CYGPATH_W"; then
2897 if (cygpath --version) >/dev/null 2>/dev/null; then
2898 CYGPATH_W='cygpath -w'
2899 else
2900 CYGPATH_W=echo
2901 fi
2902 fi
2903
2904
2905 # Define the identity of the package.
2906 PACKAGE='libgo'
2907 VERSION='version-unused'
2908
2909
2910 # Some tools Automake needs.
2911
2912 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2913
2914
2915 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2916
2917
2918 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2919
2920
2921 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2922
2923
2924 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2925
2926 # We need awk for the "check" target. The system "awk" is bad on
2927 # some platforms.
2928 # Always define AMTAR for backward compatibility.
2929
2930 AMTAR=${AMTAR-"${am_missing_run}tar"}
2931
2932 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985
2986 fi
2987 if test -z "$ac_cv_prog_CC"; then
2988 ac_ct_CC=$CC
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy gcc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="gcc"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned=yes ;;
3033 esac
3034 CC=$ac_ct_CC
3035 fi
3036 else
3037 CC="$ac_cv_prog_CC"
3038 fi
3039
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}cc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_CC="${ac_tool_prefix}cc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079 fi
3080 fi
3081 if test -z "$CC"; then
3082 # Extract the first word of "cc", so it can be a program name with args.
3083 set dummy cc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 ac_prog_rejected=no
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3101 ac_prog_rejected=yes
3102 continue
3103 fi
3104 ac_cv_prog_CC="cc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 if test $ac_prog_rejected = yes; then
3113 # We found a bogon in the path, so make sure we never use it.
3114 set dummy $ac_cv_prog_CC
3115 shift
3116 if test $# != 0; then
3117 # We chose a different compiler from the bogus one.
3118 # However, it has the same basename, so the bogon will be chosen
3119 # first if we set CC to just the basename; use the full file name.
3120 shift
3121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3122 fi
3123 fi
3124 fi
3125 fi
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135
3136 fi
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 for ac_prog in cl.exe
3140 do
3141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if test "${ac_cv_prog_CC+set}" = set; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178 test -n "$CC" && break
3179 done
3180 fi
3181 if test -z "$CC"; then
3182 ac_ct_CC=$CC
3183 for ac_prog in cl.exe
3184 do
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186 set dummy $ac_prog; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_ac_ct_CC="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206 done
3207 done
3208 IFS=$as_save_IFS
3209
3210 fi
3211 fi
3212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213 if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215 $as_echo "$ac_ct_CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 test -n "$ac_ct_CC" && break
3223 done
3224
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234 CC=$ac_ct_CC
3235 fi
3236 fi
3237
3238 fi
3239
3240
3241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error "no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details." "$LINENO" 5; }
3245
3246 # Provide some information about the compiler.
3247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3248 set X $ac_compile
3249 ac_compiler=$2
3250 for ac_option in --version -v -V -qversion; do
3251 { { ac_try="$ac_compiler $ac_option >&5"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3259 ac_status=$?
3260 if test -s conftest.err; then
3261 sed '10a\
3262 ... rest of stderr output deleted ...
3263 10q' conftest.err >conftest.er1
3264 cat conftest.er1 >&5
3265 rm -f conftest.er1 conftest.err
3266 fi
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269 done
3270
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3273
3274 int
3275 main ()
3276 {
3277
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 ac_clean_files_save=$ac_clean_files
3283 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3284 # Try to create an executable without -o first, disregard a.out.
3285 # It will help us diagnose broken compilers, and finding out an intuition
3286 # of exeext.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3288 $as_echo_n "checking for C compiler default output file name... " >&6; }
3289 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3290
3291 # The possible output files:
3292 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3293
3294 ac_rmfiles=
3295 for ac_file in $ac_files
3296 do
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 esac
3301 done
3302 rm -f $ac_rmfiles
3303
3304 if { { ac_try="$ac_link_default"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link_default") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3318 # so that the user can short-circuit this test for compilers unknown to
3319 # Autoconf.
3320 for ac_file in $ac_files ''
3321 do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3325 ;;
3326 [ab].out )
3327 # We found the default executable, but exeext='' is most
3328 # certainly right.
3329 break;;
3330 *.* )
3331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3332 then :; else
3333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 fi
3335 # We set ac_cv_exeext here because the later test for it is not
3336 # safe: cross compilers may not add the suffix if given an `-o'
3337 # argument, so we may need to know it at that point already.
3338 # Even if this section looks crufty: it has the advantage of
3339 # actually working.
3340 break;;
3341 * )
3342 break;;
3343 esac
3344 done
3345 test "$ac_cv_exeext" = no && ac_cv_exeext=
3346
3347 else
3348 ac_file=''
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3351 $as_echo "$ac_file" >&6; }
3352 if test -z "$ac_file"; then :
3353 $as_echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 { as_fn_set_status 77
3359 as_fn_error "C compiler cannot create executables
3360 See \`config.log' for more details." "$LINENO" 5; }; }
3361 fi
3362 ac_exeext=$ac_cv_exeext
3363
3364 # Check that the compiler produces executables we can run. If not, either
3365 # the compiler is broken, or we cross compile.
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3367 $as_echo_n "checking whether the C compiler works... " >&6; }
3368 # If not cross compiling, check that we can run a simple program.
3369 if test "$cross_compiling" != yes; then
3370 if { ac_try='./$ac_file'
3371 { { case "(($ac_try" in
3372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373 *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377 (eval "$ac_try") 2>&5
3378 ac_status=$?
3379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380 test $ac_status = 0; }; }; then
3381 cross_compiling=no
3382 else
3383 if test "$cross_compiling" = maybe; then
3384 cross_compiling=yes
3385 else
3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error "cannot run C compiled programs.
3389 If you meant to cross compile, use \`--host'.
3390 See \`config.log' for more details." "$LINENO" 5; }
3391 fi
3392 fi
3393 fi
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3396
3397 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3398 ac_clean_files=$ac_clean_files_save
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3402 $as_echo_n "checking whether we are cross compiling... " >&6; }
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3404 $as_echo "$cross_compiling" >&6; }
3405
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3407 $as_echo_n "checking for suffix of executables... " >&6; }
3408 if { { ac_try="$ac_link"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3420 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3421 # work properly (i.e., refer to `conftest.exe'), while it won't with
3422 # `rm'.
3423 for ac_file in conftest.exe conftest conftest.*; do
3424 test -f "$ac_file" || continue
3425 case $ac_file in
3426 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3427 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3428 break;;
3429 * ) break;;
3430 esac
3431 done
3432 else
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error "cannot compute suffix of executables: cannot compile and link
3436 See \`config.log' for more details." "$LINENO" 5; }
3437 fi
3438 rm -f conftest$ac_cv_exeext
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3440 $as_echo "$ac_cv_exeext" >&6; }
3441
3442 rm -f conftest.$ac_ext
3443 EXEEXT=$ac_cv_exeext
3444 ac_exeext=$EXEEXT
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3446 $as_echo_n "checking for suffix of object files... " >&6; }
3447 if test "${ac_cv_objext+set}" = set; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452
3453 int
3454 main ()
3455 {
3456
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 rm -f conftest.o conftest.obj
3462 if { { ac_try="$ac_compile"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468 $as_echo "$ac_try_echo"; } >&5
3469 (eval "$ac_compile") 2>&5
3470 ac_status=$?
3471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472 test $ac_status = 0; }; then :
3473 for ac_file in conftest.o conftest.obj conftest.*; do
3474 test -f "$ac_file" || continue;
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3478 break;;
3479 esac
3480 done
3481 else
3482 $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487 as_fn_error "cannot compute suffix of object files: cannot compile
3488 See \`config.log' for more details." "$LINENO" 5; }
3489 fi
3490 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3493 $as_echo "$ac_cv_objext" >&6; }
3494 OBJEXT=$ac_cv_objext
3495 ac_objext=$OBJEXT
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3497 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3498 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3502 /* end confdefs.h. */
3503
3504 int
3505 main ()
3506 {
3507 #ifndef __GNUC__
3508 choke me
3509 #endif
3510
3511 ;
3512 return 0;
3513 }
3514 _ACEOF
3515 if ac_fn_c_try_compile "$LINENO"; then :
3516 ac_compiler_gnu=yes
3517 else
3518 ac_compiler_gnu=no
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3521 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3522
3523 fi
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3525 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3526 if test $ac_compiler_gnu = yes; then
3527 GCC=yes
3528 else
3529 GCC=
3530 fi
3531 ac_test_CFLAGS=${CFLAGS+set}
3532 ac_save_CFLAGS=$CFLAGS
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3534 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3535 if test "${ac_cv_prog_cc_g+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 ac_save_c_werror_flag=$ac_c_werror_flag
3539 ac_c_werror_flag=yes
3540 ac_cv_prog_cc_g=no
3541 CFLAGS="-g"
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544
3545 int
3546 main ()
3547 {
3548
3549 ;
3550 return 0;
3551 }
3552 _ACEOF
3553 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_cv_prog_cc_g=yes
3555 else
3556 CFLAGS=""
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569
3570 else
3571 ac_c_werror_flag=$ac_save_c_werror_flag
3572 CFLAGS="-g"
3573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574 /* end confdefs.h. */
3575
3576 int
3577 main ()
3578 {
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_cv_prog_cc_g=yes
3586 fi
3587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 fi
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592 ac_c_werror_flag=$ac_save_c_werror_flag
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3595 $as_echo "$ac_cv_prog_cc_g" >&6; }
3596 if test "$ac_test_CFLAGS" = set; then
3597 CFLAGS=$ac_save_CFLAGS
3598 elif test $ac_cv_prog_cc_g = yes; then
3599 if test "$GCC" = yes; then
3600 CFLAGS="-g -O2"
3601 else
3602 CFLAGS="-g"
3603 fi
3604 else
3605 if test "$GCC" = yes; then
3606 CFLAGS="-O2"
3607 else
3608 CFLAGS=
3609 fi
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3612 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3613 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 ac_cv_prog_cc_c89=no
3617 ac_save_CC=$CC
3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619 /* end confdefs.h. */
3620 #include <stdarg.h>
3621 #include <stdio.h>
3622 #include <sys/types.h>
3623 #include <sys/stat.h>
3624 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3625 struct buf { int x; };
3626 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3627 static char *e (p, i)
3628 char **p;
3629 int i;
3630 {
3631 return p[i];
3632 }
3633 static char *f (char * (*g) (char **, int), char **p, ...)
3634 {
3635 char *s;
3636 va_list v;
3637 va_start (v,p);
3638 s = g (p, va_arg (v,int));
3639 va_end (v);
3640 return s;
3641 }
3642
3643 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3644 function prototypes and stuff, but not '\xHH' hex character constants.
3645 These don't provoke an error unfortunately, instead are silently treated
3646 as 'x'. The following induces an error, until -std is added to get
3647 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3648 array size at least. It's necessary to write '\x00'==0 to get something
3649 that's true only with -std. */
3650 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3651
3652 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3653 inside strings and character constants. */
3654 #define FOO(x) 'x'
3655 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3656
3657 int test (int i, double x);
3658 struct s1 {int (*f) (int a);};
3659 struct s2 {int (*f) (double a);};
3660 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3661 int argc;
3662 char **argv;
3663 int
3664 main ()
3665 {
3666 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3672 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3673 do
3674 CC="$ac_save_CC $ac_arg"
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676 ac_cv_prog_cc_c89=$ac_arg
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext
3679 test "x$ac_cv_prog_cc_c89" != "xno" && break
3680 done
3681 rm -f conftest.$ac_ext
3682 CC=$ac_save_CC
3683
3684 fi
3685 # AC_CACHE_VAL
3686 case "x$ac_cv_prog_cc_c89" in
3687 x)
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3689 $as_echo "none needed" >&6; } ;;
3690 xno)
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3692 $as_echo "unsupported" >&6; } ;;
3693 *)
3694 CC="$CC $ac_cv_prog_cc_c89"
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3696 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3697 esac
3698 if test "x$ac_cv_prog_cc_c89" != xno; then :
3699
3700 fi
3701
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707 DEPDIR="${am__leading_dot}deps"
3708
3709 ac_config_commands="$ac_config_commands depfiles"
3710
3711
3712 am_make=${MAKE-make}
3713 cat > confinc << 'END'
3714 am__doit:
3715 @echo this is the am__doit target
3716 .PHONY: am__doit
3717 END
3718 # If we don't find an include directive, just comment out the code.
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3720 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3721 am__include="#"
3722 am__quote=
3723 _am_result=none
3724 # First try GNU make style include.
3725 echo "include confinc" > confmf
3726 # Ignore all kinds of additional output from `make'.
3727 case `$am_make -s -f confmf 2> /dev/null` in #(
3728 *the\ am__doit\ target*)
3729 am__include=include
3730 am__quote=
3731 _am_result=GNU
3732 ;;
3733 esac
3734 # Now try BSD make style include.
3735 if test "$am__include" = "#"; then
3736 echo '.include "confinc"' > confmf
3737 case `$am_make -s -f confmf 2> /dev/null` in #(
3738 *the\ am__doit\ target*)
3739 am__include=.include
3740 am__quote="\""
3741 _am_result=BSD
3742 ;;
3743 esac
3744 fi
3745
3746
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3748 $as_echo "$_am_result" >&6; }
3749 rm -f confinc confmf
3750
3751 # Check whether --enable-dependency-tracking was given.
3752 if test "${enable_dependency_tracking+set}" = set; then :
3753 enableval=$enable_dependency_tracking;
3754 fi
3755
3756 if test "x$enable_dependency_tracking" != xno; then
3757 am_depcomp="$ac_aux_dir/depcomp"
3758 AMDEPBACKSLASH='\'
3759 fi
3760 if test "x$enable_dependency_tracking" != xno; then
3761 AMDEP_TRUE=
3762 AMDEP_FALSE='#'
3763 else
3764 AMDEP_TRUE='#'
3765 AMDEP_FALSE=
3766 fi
3767
3768
3769
3770 depcc="$CC" am_compiler_list=
3771
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3773 $as_echo_n "checking dependency style of $depcc... " >&6; }
3774 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3778 # We make a subdir and do the tests there. Otherwise we can end up
3779 # making bogus files that we don't know about and never remove. For
3780 # instance it was reported that on HP-UX the gcc test will end up
3781 # making a dummy file named `D' -- because `-MD' means `put the output
3782 # in D'.
3783 mkdir conftest.dir
3784 # Copy depcomp to subdir because otherwise we won't find it if we're
3785 # using a relative directory.
3786 cp "$am_depcomp" conftest.dir
3787 cd conftest.dir
3788 # We will build objects and dependencies in a subdirectory because
3789 # it helps to detect inapplicable dependency modes. For instance
3790 # both Tru64's cc and ICC support -MD to output dependencies as a
3791 # side effect of compilation, but ICC will put the dependencies in
3792 # the current directory while Tru64 will put them in the object
3793 # directory.
3794 mkdir sub
3795
3796 am_cv_CC_dependencies_compiler_type=none
3797 if test "$am_compiler_list" = ""; then
3798 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3799 fi
3800 am__universal=false
3801 case " $depcc " in #(
3802 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3803 esac
3804
3805 for depmode in $am_compiler_list; do
3806 # Setup a source with many dependencies, because some compilers
3807 # like to wrap large dependency lists on column 80 (with \), and
3808 # we should not choose a depcomp mode which is confused by this.
3809 #
3810 # We need to recreate these files for each test, as the compiler may
3811 # overwrite some of them when testing with obscure command lines.
3812 # This happens at least with the AIX C compiler.
3813 : > sub/conftest.c
3814 for i in 1 2 3 4 5 6; do
3815 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3816 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3817 # Solaris 8's {/usr,}/bin/sh.
3818 touch sub/conftst$i.h
3819 done
3820 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3821
3822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3823 # mode. It turns out that the SunPro C++ compiler does not properly
3824 # handle `-M -o', and we need to detect this. Also, some Intel
3825 # versions had trouble with output in subdirs
3826 am__obj=sub/conftest.${OBJEXT-o}
3827 am__minus_obj="-o $am__obj"
3828 case $depmode in
3829 gcc)
3830 # This depmode causes a compiler race in universal mode.
3831 test "$am__universal" = false || continue
3832 ;;
3833 nosideeffect)
3834 # after this tag, mechanisms are not by side-effect, so they'll
3835 # only be used when explicitly requested
3836 if test "x$enable_dependency_tracking" = xyes; then
3837 continue
3838 else
3839 break
3840 fi
3841 ;;
3842 msvisualcpp | msvcmsys)
3843 # This compiler won't grok `-c -o', but also, the minuso test has
3844 # not run yet. These depmodes are late enough in the game, and
3845 # so weak that their functioning should not be impacted.
3846 am__obj=conftest.${OBJEXT-o}
3847 am__minus_obj=
3848 ;;
3849 none) break ;;
3850 esac
3851 if depmode=$depmode \
3852 source=sub/conftest.c object=$am__obj \
3853 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3854 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3855 >/dev/null 2>conftest.err &&
3856 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3857 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3858 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3859 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3860 # icc doesn't choke on unknown options, it will just issue warnings
3861 # or remarks (even with -Werror). So we grep stderr for any message
3862 # that says an option was ignored or not supported.
3863 # When given -MP, icc 7.0 and 7.1 complain thusly:
3864 # icc: Command line warning: ignoring option '-M'; no argument required
3865 # The diagnosis changed in icc 8.0:
3866 # icc: Command line remark: option '-MP' not supported
3867 if (grep 'ignoring option' conftest.err ||
3868 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3869 am_cv_CC_dependencies_compiler_type=$depmode
3870 break
3871 fi
3872 fi
3873 done
3874
3875 cd ..
3876 rm -rf conftest.dir
3877 else
3878 am_cv_CC_dependencies_compiler_type=none
3879 fi
3880
3881 fi
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3883 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3884 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3885
3886 if
3887 test "x$enable_dependency_tracking" != xno \
3888 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3889 am__fastdepCC_TRUE=
3890 am__fastdepCC_FALSE='#'
3891 else
3892 am__fastdepCC_TRUE='#'
3893 am__fastdepCC_FALSE=
3894 fi
3895
3896
3897 ac_ext=go
3898 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3899 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compile_gnu=yes
3901 if test -n "$ac_tool_prefix"; then
3902 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3903 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3905 $as_echo_n "checking for $ac_word... " >&6; }
3906 if test "${ac_cv_prog_GOC+set}" = set; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test -n "$GOC"; then
3910 ac_cv_prog_GOC="$GOC" # Let the user override the test.
3911 else
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH
3914 do
3915 IFS=$as_save_IFS
3916 test -z "$as_dir" && as_dir=.
3917 for ac_exec_ext in '' $ac_executable_extensions; do
3918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3919 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 break 2
3922 fi
3923 done
3924 done
3925 IFS=$as_save_IFS
3926
3927 fi
3928 fi
3929 GOC=$ac_cv_prog_GOC
3930 if test -n "$GOC"; then
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3932 $as_echo "$GOC" >&6; }
3933 else
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 $as_echo "no" >&6; }
3936 fi
3937
3938
3939 fi
3940 if test -z "$ac_cv_prog_GOC"; then
3941 ac_ct_GOC=$GOC
3942 # Extract the first word of "gccgo", so it can be a program name with args.
3943 set dummy gccgo; ac_word=$2
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3945 $as_echo_n "checking for $ac_word... " >&6; }
3946 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 if test -n "$ac_ct_GOC"; then
3950 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955 IFS=$as_save_IFS
3956 test -z "$as_dir" && as_dir=.
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3959 ac_cv_prog_ac_ct_GOC="gccgo"
3960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3961 break 2
3962 fi
3963 done
3964 done
3965 IFS=$as_save_IFS
3966
3967 fi
3968 fi
3969 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3970 if test -n "$ac_ct_GOC"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3972 $as_echo "$ac_ct_GOC" >&6; }
3973 else
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 fi
3977
3978 if test "x$ac_ct_GOC" = x; then
3979 GOC=""
3980 else
3981 case $cross_compiling:$ac_tool_warned in
3982 yes:)
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3985 ac_tool_warned=yes ;;
3986 esac
3987 GOC=$ac_ct_GOC
3988 fi
3989 else
3990 GOC="$ac_cv_prog_GOC"
3991 fi
3992
3993 if test -z "$GOC"; then
3994 if test -n "$ac_tool_prefix"; then
3995 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3996 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998 $as_echo_n "checking for $ac_word... " >&6; }
3999 if test "${ac_cv_prog_GOC+set}" = set; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 if test -n "$GOC"; then
4003 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4004 else
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006 for as_dir in $PATH
4007 do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016 done
4017 done
4018 IFS=$as_save_IFS
4019
4020 fi
4021 fi
4022 GOC=$ac_cv_prog_GOC
4023 if test -n "$GOC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4025 $as_echo "$GOC" >&6; }
4026 else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028 $as_echo "no" >&6; }
4029 fi
4030
4031
4032 fi
4033 fi
4034 if test -z "$GOC"; then
4035 # Extract the first word of "gccgo", so it can be a program name with args.
4036 set dummy gccgo; ac_word=$2
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4038 $as_echo_n "checking for $ac_word... " >&6; }
4039 if test "${ac_cv_prog_GOC+set}" = set; then :
4040 $as_echo_n "(cached) " >&6
4041 else
4042 if test -n "$GOC"; then
4043 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4044 else
4045 ac_prog_rejected=no
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049 IFS=$as_save_IFS
4050 test -z "$as_dir" && as_dir=.
4051 for ac_exec_ext in '' $ac_executable_extensions; do
4052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053 if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4054 ac_prog_rejected=yes
4055 continue
4056 fi
4057 ac_cv_prog_GOC="gccgo"
4058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4059 break 2
4060 fi
4061 done
4062 done
4063 IFS=$as_save_IFS
4064
4065 if test $ac_prog_rejected = yes; then
4066 # We found a bogon in the path, so make sure we never use it.
4067 set dummy $ac_cv_prog_GOC
4068 shift
4069 if test $# != 0; then
4070 # We chose a different compiler from the bogus one.
4071 # However, it has the same basename, so the bogon will be chosen
4072 # first if we set GOC to just the basename; use the full file name.
4073 shift
4074 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4075 fi
4076 fi
4077 fi
4078 fi
4079 GOC=$ac_cv_prog_GOC
4080 if test -n "$GOC"; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4082 $as_echo "$GOC" >&6; }
4083 else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4086 fi
4087
4088
4089 fi
4090
4091
4092 # Provide some information about the compiler.
4093 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4094 set X $ac_compile
4095 ac_compiler=$2
4096 { { ac_try="$ac_compiler --version >&5"
4097 case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100 esac
4101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4102 $as_echo "$ac_try_echo"; } >&5
4103 (eval "$ac_compiler --version >&5") 2>conftest.err
4104 ac_status=$?
4105 if test -s conftest.err; then
4106 sed '10a\
4107 ... rest of stderr output deleted ...
4108 10q' conftest.err >conftest.er1
4109 cat conftest.er1 >&5
4110 rm -f conftest.er1 conftest.err
4111 fi
4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4113 test $ac_status = 0; }
4114 GOCFLAGS="-g -O2"
4115 ac_ext=c
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122
4123
4124
4125
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4127 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4128 # Check whether --enable-maintainer-mode was given.
4129 if test "${enable_maintainer_mode+set}" = set; then :
4130 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4131 else
4132 USE_MAINTAINER_MODE=no
4133 fi
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4136 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4137 if test $USE_MAINTAINER_MODE = yes; then
4138 MAINTAINER_MODE_TRUE=
4139 MAINTAINER_MODE_FALSE='#'
4140 else
4141 MAINTAINER_MODE_TRUE='#'
4142 MAINTAINER_MODE_FALSE=
4143 fi
4144
4145 MAINT=$MAINTAINER_MODE_TRUE
4146
4147
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4150 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4151 if test "${ac_cv_path_SED+set}" = set; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4155 for ac_i in 1 2 3 4 5 6 7; do
4156 ac_script="$ac_script$as_nl$ac_script"
4157 done
4158 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4159 { ac_script=; unset ac_script;}
4160 if test -z "$SED"; then
4161 ac_path_SED_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_prog in sed gsed; do
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4171 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4172 # Check for GNU ac_path_SED and select it if it is found.
4173 # Check for GNU $ac_path_SED
4174 case `"$ac_path_SED" --version 2>&1` in
4175 *GNU*)
4176 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4177 *)
4178 ac_count=0
4179 $as_echo_n 0123456789 >"conftest.in"
4180 while :
4181 do
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 $as_echo '' >> "conftest.nl"
4186 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188 as_fn_arith $ac_count + 1 && ac_count=$as_val
4189 if test $ac_count -gt ${ac_path_SED_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_SED="$ac_path_SED"
4192 ac_path_SED_max=$ac_count
4193 fi
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4196 done
4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198 esac
4199
4200 $ac_path_SED_found && break 3
4201 done
4202 done
4203 done
4204 IFS=$as_save_IFS
4205 if test -z "$ac_cv_path_SED"; then
4206 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4207 fi
4208 else
4209 ac_cv_path_SED=$SED
4210 fi
4211
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4214 $as_echo "$ac_cv_path_SED" >&6; }
4215 SED="$ac_cv_path_SED"
4216 rm -f conftest.sed
4217
4218 test -z "$SED" && SED=sed
4219 Xsed="$SED -e 1s/^X//"
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4232 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4233 if test "${ac_cv_path_GREP+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 if test -z "$GREP"; then
4237 ac_path_GREP_found=false
4238 # Loop through the user's path and test for each of PROGNAME-LIST
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4241 do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_prog in grep ggrep; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4247 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4248 # Check for GNU ac_path_GREP and select it if it is found.
4249 # Check for GNU $ac_path_GREP
4250 case `"$ac_path_GREP" --version 2>&1` in
4251 *GNU*)
4252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4253 *)
4254 ac_count=0
4255 $as_echo_n 0123456789 >"conftest.in"
4256 while :
4257 do
4258 cat "conftest.in" "conftest.in" >"conftest.tmp"
4259 mv "conftest.tmp" "conftest.in"
4260 cp "conftest.in" "conftest.nl"
4261 $as_echo 'GREP' >> "conftest.nl"
4262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4264 as_fn_arith $ac_count + 1 && ac_count=$as_val
4265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4266 # Best one so far, save it but keep looking for a better one
4267 ac_cv_path_GREP="$ac_path_GREP"
4268 ac_path_GREP_max=$ac_count
4269 fi
4270 # 10*(2^10) chars as input seems more than enough
4271 test $ac_count -gt 10 && break
4272 done
4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4274 esac
4275
4276 $ac_path_GREP_found && break 3
4277 done
4278 done
4279 done
4280 IFS=$as_save_IFS
4281 if test -z "$ac_cv_path_GREP"; then
4282 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4283 fi
4284 else
4285 ac_cv_path_GREP=$GREP
4286 fi
4287
4288 fi
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4292
4293
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4301 else
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4307 do
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in egrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4317 *GNU*)
4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4319 *)
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4323 do
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 as_fn_arith $ac_count + 1 && ac_count=$as_val
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP="$ac_path_EGREP"
4334 ac_path_EGREP_max=$ac_count
4335 fi
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 esac
4341
4342 $ac_path_EGREP_found && break 3
4343 done
4344 done
4345 done
4346 IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_EGREP"; then
4348 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4349 fi
4350 else
4351 ac_cv_path_EGREP=$EGREP
4352 fi
4353
4354 fi
4355 fi
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4357 $as_echo "$ac_cv_path_EGREP" >&6; }
4358 EGREP="$ac_cv_path_EGREP"
4359
4360
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4362 $as_echo_n "checking for fgrep... " >&6; }
4363 if test "${ac_cv_path_FGREP+set}" = set; then :
4364 $as_echo_n "(cached) " >&6
4365 else
4366 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4367 then ac_cv_path_FGREP="$GREP -F"
4368 else
4369 if test -z "$FGREP"; then
4370 ac_path_FGREP_found=false
4371 # Loop through the user's path and test for each of PROGNAME-LIST
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4374 do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
4377 for ac_prog in fgrep; do
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4380 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4381 # Check for GNU ac_path_FGREP and select it if it is found.
4382 # Check for GNU $ac_path_FGREP
4383 case `"$ac_path_FGREP" --version 2>&1` in
4384 *GNU*)
4385 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4386 *)
4387 ac_count=0
4388 $as_echo_n 0123456789 >"conftest.in"
4389 while :
4390 do
4391 cat "conftest.in" "conftest.in" >"conftest.tmp"
4392 mv "conftest.tmp" "conftest.in"
4393 cp "conftest.in" "conftest.nl"
4394 $as_echo 'FGREP' >> "conftest.nl"
4395 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4397 as_fn_arith $ac_count + 1 && ac_count=$as_val
4398 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4399 # Best one so far, save it but keep looking for a better one
4400 ac_cv_path_FGREP="$ac_path_FGREP"
4401 ac_path_FGREP_max=$ac_count
4402 fi
4403 # 10*(2^10) chars as input seems more than enough
4404 test $ac_count -gt 10 && break
4405 done
4406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4407 esac
4408
4409 $ac_path_FGREP_found && break 3
4410 done
4411 done
4412 done
4413 IFS=$as_save_IFS
4414 if test -z "$ac_cv_path_FGREP"; then
4415 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4416 fi
4417 else
4418 ac_cv_path_FGREP=$FGREP
4419 fi
4420
4421 fi
4422 fi
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4424 $as_echo "$ac_cv_path_FGREP" >&6; }
4425 FGREP="$ac_cv_path_FGREP"
4426
4427
4428 test -z "$GREP" && GREP=grep
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4447 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4448 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4451 $as_echo_n "checking how to print strings... " >&6; }
4452 # Test print first, because it will be a builtin if present.
4453 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4454 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4455 ECHO='print -r --'
4456 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4457 ECHO='printf %s\n'
4458 else
4459 # Use this function as a fallback that always works.
4460 func_fallback_echo ()
4461 {
4462 eval 'cat <<_LTECHO_EOF
4463 $1
4464 _LTECHO_EOF'
4465 }
4466 ECHO='func_fallback_echo'
4467 fi
4468
4469 # func_echo_all arg...
4470 # Invoke $ECHO with all args, space-separated.
4471 func_echo_all ()
4472 {
4473 $ECHO ""
4474 }
4475
4476 case "$ECHO" in
4477 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4478 $as_echo "printf" >&6; } ;;
4479 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4480 $as_echo "print -r" >&6; } ;;
4481 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4482 $as_echo "cat" >&6; } ;;
4483 esac
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500 # Check whether --with-gnu-ld was given.
4501 if test "${with_gnu_ld+set}" = set; then :
4502 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4503 else
4504 with_gnu_ld=no
4505 fi
4506
4507 ac_prog=ld
4508 if test "$GCC" = yes; then
4509 # Check if gcc -print-prog-name=ld gives a path.
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4511 $as_echo_n "checking for ld used by $CC... " >&6; }
4512 case $host in
4513 *-*-mingw*)
4514 # gcc leaves a trailing carriage return which upsets mingw
4515 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4516 *)
4517 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4518 esac
4519 case $ac_prog in
4520 # Accept absolute paths.
4521 [\\/]* | ?:[\\/]*)
4522 re_direlt='/[^/][^/]*/\.\./'
4523 # Canonicalize the pathname of ld
4524 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4525 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4526 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4527 done
4528 test -z "$LD" && LD="$ac_prog"
4529 ;;
4530 "")
4531 # If it fails, then pretend we aren't using GCC.
4532 ac_prog=ld
4533 ;;
4534 *)
4535 # If it is relative, then search for the first ld in PATH.
4536 with_gnu_ld=unknown
4537 ;;
4538 esac
4539 elif test "$with_gnu_ld" = yes; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4541 $as_echo_n "checking for GNU ld... " >&6; }
4542 else
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4544 $as_echo_n "checking for non-GNU ld... " >&6; }
4545 fi
4546 if test "${lt_cv_path_LD+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 if test -z "$LD"; then
4550 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4551 for ac_dir in $PATH; do
4552 IFS="$lt_save_ifs"
4553 test -z "$ac_dir" && ac_dir=.
4554 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4555 lt_cv_path_LD="$ac_dir/$ac_prog"
4556 # Check to see if the program is GNU ld. I'd rather use --version,
4557 # but apparently some variants of GNU ld only accept -v.
4558 # Break only if it was the GNU/non-GNU ld that we prefer.
4559 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4560 *GNU* | *'with BFD'*)
4561 test "$with_gnu_ld" != no && break
4562 ;;
4563 *)
4564 test "$with_gnu_ld" != yes && break
4565 ;;
4566 esac
4567 fi
4568 done
4569 IFS="$lt_save_ifs"
4570 else
4571 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4572 fi
4573 fi
4574
4575 LD="$lt_cv_path_LD"
4576 if test -n "$LD"; then
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4578 $as_echo "$LD" >&6; }
4579 else
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4581 $as_echo "no" >&6; }
4582 fi
4583 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4585 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4586 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4590 case `$LD -v 2>&1 </dev/null` in
4591 *GNU* | *'with BFD'*)
4592 lt_cv_prog_gnu_ld=yes
4593 ;;
4594 *)
4595 lt_cv_prog_gnu_ld=no
4596 ;;
4597 esac
4598 fi
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4600 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4601 with_gnu_ld=$lt_cv_prog_gnu_ld
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611 if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4613 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4615 $as_echo_n "checking for $ac_word... " >&6; }
4616 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4617 $as_echo_n "(cached) " >&6
4618 else
4619 if test -n "$RANLIB"; then
4620 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 break 2
4632 fi
4633 done
4634 done
4635 IFS=$as_save_IFS
4636
4637 fi
4638 fi
4639 RANLIB=$ac_cv_prog_RANLIB
4640 if test -n "$RANLIB"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4642 $as_echo "$RANLIB" >&6; }
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4646 fi
4647
4648
4649 fi
4650 if test -z "$ac_cv_prog_RANLIB"; then
4651 ac_ct_RANLIB=$RANLIB
4652 # Extract the first word of "ranlib", so it can be a program name with args.
4653 set dummy ranlib; ac_word=$2
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4655 $as_echo_n "checking for $ac_word... " >&6; }
4656 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 if test -n "$ac_ct_RANLIB"; then
4660 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4661 else
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
4667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669 ac_cv_prog_ac_ct_RANLIB="ranlib"
4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 break 2
4672 fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677 fi
4678 fi
4679 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4680 if test -n "$ac_ct_RANLIB"; then
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4682 $as_echo "$ac_ct_RANLIB" >&6; }
4683 else
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 $as_echo "no" >&6; }
4686 fi
4687
4688 if test "x$ac_ct_RANLIB" = x; then
4689 RANLIB=":"
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4696 esac
4697 RANLIB=$ac_ct_RANLIB
4698 fi
4699 else
4700 RANLIB="$ac_cv_prog_RANLIB"
4701 fi
4702
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4705 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$OBJCOPY"; then
4712 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4724 fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729 fi
4730 fi
4731 OBJCOPY=$ac_cv_prog_OBJCOPY
4732 if test -n "$OBJCOPY"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4734 $as_echo "$OBJCOPY" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4738 fi
4739
4740
4741 fi
4742 if test -z "$ac_cv_prog_OBJCOPY"; then
4743 ac_ct_OBJCOPY=$OBJCOPY
4744 # Extract the first word of "objcopy", so it can be a program name with args.
4745 set dummy objcopy; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -n "$ac_ct_OBJCOPY"; then
4752 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4756 do
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4764 fi
4765 done
4766 done
4767 IFS=$as_save_IFS
4768
4769 fi
4770 fi
4771 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4772 if test -n "$ac_ct_OBJCOPY"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4774 $as_echo "$ac_ct_OBJCOPY" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 fi
4779
4780 if test "x$ac_ct_OBJCOPY" = x; then
4781 OBJCOPY="missing-objcopy"
4782 else
4783 case $cross_compiling:$ac_tool_warned in
4784 yes:)
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4787 ac_tool_warned=yes ;;
4788 esac
4789 OBJCOPY=$ac_ct_OBJCOPY
4790 fi
4791 else
4792 OBJCOPY="$ac_cv_prog_OBJCOPY"
4793 fi
4794
4795
4796 enable_dlopen=yes
4797
4798
4799
4800 case `pwd` in
4801 *\ * | *\ *)
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4803 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4804 esac
4805
4806
4807
4808 macro_version='2.2.7a'
4809 macro_revision='1.3134'
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823 ltmain="$ac_aux_dir/ltmain.sh"
4824
4825 # Backslashify metacharacters that are still active within
4826 # double-quoted strings.
4827 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4828
4829 # Same as above, but do not quote variable references.
4830 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4831
4832 # Sed substitution to delay expansion of an escaped shell variable in a
4833 # double_quote_subst'ed string.
4834 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4835
4836 # Sed substitution to delay expansion of an escaped single quote.
4837 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4838
4839 # Sed substitution to avoid accidental globbing in evaled expressions
4840 no_glob_subst='s/\*/\\\*/g'
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4843 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4844 if test "${lt_cv_path_NM+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$NM"; then
4848 # Let the user override the test.
4849 lt_cv_path_NM="$NM"
4850 else
4851 lt_nm_to_check="${ac_tool_prefix}nm"
4852 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4853 lt_nm_to_check="$lt_nm_to_check nm"
4854 fi
4855 for lt_tmp_nm in $lt_nm_to_check; do
4856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4857 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4858 IFS="$lt_save_ifs"
4859 test -z "$ac_dir" && ac_dir=.
4860 tmp_nm="$ac_dir/$lt_tmp_nm"
4861 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4862 # Check to see if the nm accepts a BSD-compat flag.
4863 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4864 # nm: unknown option "B" ignored
4865 # Tru64's nm complains that /dev/null is an invalid object file
4866 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4867 */dev/null* | *'Invalid file or object type'*)
4868 lt_cv_path_NM="$tmp_nm -B"
4869 break
4870 ;;
4871 *)
4872 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4873 */dev/null*)
4874 lt_cv_path_NM="$tmp_nm -p"
4875 break
4876 ;;
4877 *)
4878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4879 continue # so that we can try to find one that supports BSD flags
4880 ;;
4881 esac
4882 ;;
4883 esac
4884 fi
4885 done
4886 IFS="$lt_save_ifs"
4887 done
4888 : ${lt_cv_path_NM=no}
4889 fi
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4892 $as_echo "$lt_cv_path_NM" >&6; }
4893 if test "$lt_cv_path_NM" != "no"; then
4894 NM="$lt_cv_path_NM"
4895 else
4896 # Didn't find any BSD compatible name lister, look for dumpbin.
4897 if test -n "$DUMPBIN"; then :
4898 # Let the user override the test.
4899 else
4900 if test -n "$ac_tool_prefix"; then
4901 for ac_prog in dumpbin "link -dump"
4902 do
4903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$DUMPBIN"; then
4911 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4923 fi
4924 done
4925 done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 DUMPBIN=$ac_cv_prog_DUMPBIN
4931 if test -n "$DUMPBIN"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4933 $as_echo "$DUMPBIN" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 fi
4938
4939
4940 test -n "$DUMPBIN" && break
4941 done
4942 fi
4943 if test -z "$DUMPBIN"; then
4944 ac_ct_DUMPBIN=$DUMPBIN
4945 for ac_prog in dumpbin "link -dump"
4946 do
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; 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_DUMPBIN+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$ac_ct_DUMPBIN"; then
4955 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_DUMPBIN="$ac_prog"
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_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4975 if test -n "$ac_ct_DUMPBIN"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4977 $as_echo "$ac_ct_DUMPBIN" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982
4983
4984 test -n "$ac_ct_DUMPBIN" && break
4985 done
4986
4987 if test "x$ac_ct_DUMPBIN" = x; then
4988 DUMPBIN=":"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996 DUMPBIN=$ac_ct_DUMPBIN
4997 fi
4998 fi
4999
5000 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5001 *COFF*)
5002 DUMPBIN="$DUMPBIN -symbols"
5003 ;;
5004 *)
5005 DUMPBIN=:
5006 ;;
5007 esac
5008 fi
5009
5010 if test "$DUMPBIN" != ":"; then
5011 NM="$DUMPBIN"
5012 fi
5013 fi
5014 test -z "$NM" && NM=nm
5015
5016
5017
5018
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5022 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5023 if test "${lt_cv_nm_interface+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 lt_cv_nm_interface="BSD nm"
5027 echo "int some_variable = 0;" > conftest.$ac_ext
5028 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5029 (eval "$ac_compile" 2>conftest.err)
5030 cat conftest.err >&5
5031 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5032 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5033 cat conftest.err >&5
5034 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5035 cat conftest.out >&5
5036 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5037 lt_cv_nm_interface="MS dumpbin"
5038 fi
5039 rm -f conftest*
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5042 $as_echo "$lt_cv_nm_interface" >&6; }
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5045 $as_echo_n "checking whether ln -s works... " >&6; }
5046 LN_S=$as_ln_s
5047 if test "$LN_S" = "ln -s"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5052 $as_echo "no, using $LN_S" >&6; }
5053 fi
5054
5055 # find the maximum length of command line arguments
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5057 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5058 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 i=0
5062 teststring="ABCD"
5063
5064 case $build_os in
5065 msdosdjgpp*)
5066 # On DJGPP, this test can blow up pretty badly due to problems in libc
5067 # (any single argument exceeding 2000 bytes causes a buffer overrun
5068 # during glob expansion). Even if it were fixed, the result of this
5069 # check would be larger than it should be.
5070 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5071 ;;
5072
5073 gnu*)
5074 # Under GNU Hurd, this test is not required because there is
5075 # no limit to the length of command line arguments.
5076 # Libtool will interpret -1 as no limit whatsoever
5077 lt_cv_sys_max_cmd_len=-1;
5078 ;;
5079
5080 cygwin* | mingw* | cegcc*)
5081 # On Win9x/ME, this test blows up -- it succeeds, but takes
5082 # about 5 minutes as the teststring grows exponentially.
5083 # Worse, since 9x/ME are not pre-emptively multitasking,
5084 # you end up with a "frozen" computer, even though with patience
5085 # the test eventually succeeds (with a max line length of 256k).
5086 # Instead, let's just punt: use the minimum linelength reported by
5087 # all of the supported platforms: 8192 (on NT/2K/XP).
5088 lt_cv_sys_max_cmd_len=8192;
5089 ;;
5090
5091 mint*)
5092 # On MiNT this can take a long time and run out of memory.
5093 lt_cv_sys_max_cmd_len=8192;
5094 ;;
5095
5096 amigaos*)
5097 # On AmigaOS with pdksh, this test takes hours, literally.
5098 # So we just punt and use a minimum line length of 8192.
5099 lt_cv_sys_max_cmd_len=8192;
5100 ;;
5101
5102 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5103 # This has been around since 386BSD, at least. Likely further.
5104 if test -x /sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106 elif test -x /usr/sbin/sysctl; then
5107 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5108 else
5109 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5110 fi
5111 # And add a safety zone
5112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5114 ;;
5115
5116 interix*)
5117 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118 lt_cv_sys_max_cmd_len=196608
5119 ;;
5120
5121 osf*)
5122 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5123 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5124 # nice to cause kernel panics so lets avoid the loop below.
5125 # First set a reasonable default.
5126 lt_cv_sys_max_cmd_len=16384
5127 #
5128 if test -x /sbin/sysconfig; then
5129 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5130 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5131 esac
5132 fi
5133 ;;
5134 sco3.2v5*)
5135 lt_cv_sys_max_cmd_len=102400
5136 ;;
5137 sysv5* | sco5v6* | sysv4.2uw2*)
5138 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5139 if test -n "$kargmax"; then
5140 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5141 else
5142 lt_cv_sys_max_cmd_len=32768
5143 fi
5144 ;;
5145 *)
5146 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5147 if test -n "$lt_cv_sys_max_cmd_len"; then
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5150 else
5151 # Make teststring a little bigger before we do anything with it.
5152 # a 1K string should be a reasonable start.
5153 for i in 1 2 3 4 5 6 7 8 ; do
5154 teststring=$teststring$teststring
5155 done
5156 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5157 # If test is not a shell built-in, we'll probably end up computing a
5158 # maximum length that is only half of the actual maximum length, but
5159 # we can't tell.
5160 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5161 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5162 test $i != 17 # 1/2 MB should be enough
5163 do
5164 i=`expr $i + 1`
5165 teststring=$teststring$teststring
5166 done
5167 # Only check the string length outside the loop.
5168 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5169 teststring=
5170 # Add a significant safety factor because C++ compilers can tack on
5171 # massive amounts of additional arguments before passing them to the
5172 # linker. It appears as though 1/2 is a usable value.
5173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5174 fi
5175 ;;
5176 esac
5177
5178 fi
5179
5180 if test -n $lt_cv_sys_max_cmd_len ; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5182 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5185 $as_echo "none" >&6; }
5186 fi
5187 max_cmd_len=$lt_cv_sys_max_cmd_len
5188
5189
5190
5191
5192
5193
5194 : ${CP="cp -f"}
5195 : ${MV="mv -f"}
5196 : ${RM="rm -f"}
5197
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5199 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5200 # Try some XSI features
5201 xsi_shell=no
5202 ( _lt_dummy="a/b/c"
5203 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5204 = c,a/b,, \
5205 && eval 'test $(( 1 + 1 )) -eq 2 \
5206 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5207 && xsi_shell=yes
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5209 $as_echo "$xsi_shell" >&6; }
5210
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5213 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5214 lt_shell_append=no
5215 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5216 >/dev/null 2>&1 \
5217 && lt_shell_append=yes
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5219 $as_echo "$lt_shell_append" >&6; }
5220
5221
5222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5223 lt_unset=unset
5224 else
5225 lt_unset=false
5226 fi
5227
5228
5229
5230
5231
5232 # test EBCDIC or ASCII
5233 case `echo X|tr X '\101'` in
5234 A) # ASCII based system
5235 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5236 lt_SP2NL='tr \040 \012'
5237 lt_NL2SP='tr \015\012 \040\040'
5238 ;;
5239 *) # EBCDIC based system
5240 lt_SP2NL='tr \100 \n'
5241 lt_NL2SP='tr \r\n \100\100'
5242 ;;
5243 esac
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5254 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5255 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 lt_cv_ld_reload_flag='-r'
5259 fi
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5261 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5262 reload_flag=$lt_cv_ld_reload_flag
5263 case $reload_flag in
5264 "" | " "*) ;;
5265 *) reload_flag=" $reload_flag" ;;
5266 esac
5267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5268 case $host_os in
5269 darwin*)
5270 if test "$GCC" = yes; then
5271 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5272 else
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5274 fi
5275 ;;
5276 esac
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$OBJDUMP"; then
5295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308 done
5309 done
5310 IFS=$as_save_IFS
5311
5312 fi
5313 fi
5314 OBJDUMP=$ac_cv_prog_OBJDUMP
5315 if test -n "$OBJDUMP"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5317 $as_echo "$OBJDUMP" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5321 fi
5322
5323
5324 fi
5325 if test -z "$ac_cv_prog_OBJDUMP"; then
5326 ac_ct_OBJDUMP=$OBJDUMP
5327 # Extract the first word of "objdump", so it can be a program name with args.
5328 set dummy objdump; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$ac_ct_OBJDUMP"; then
5335 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5339 do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348 done
5349 done
5350 IFS=$as_save_IFS
5351
5352 fi
5353 fi
5354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5355 if test -n "$ac_ct_OBJDUMP"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5357 $as_echo "$ac_ct_OBJDUMP" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362
5363 if test "x$ac_ct_OBJDUMP" = x; then
5364 OBJDUMP="false"
5365 else
5366 case $cross_compiling:$ac_tool_warned in
5367 yes:)
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370 ac_tool_warned=yes ;;
5371 esac
5372 OBJDUMP=$ac_ct_OBJDUMP
5373 fi
5374 else
5375 OBJDUMP="$ac_cv_prog_OBJDUMP"
5376 fi
5377
5378 test -z "$OBJDUMP" && OBJDUMP=objdump
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5389 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5390 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 lt_cv_file_magic_cmd='$MAGIC_CMD'
5394 lt_cv_file_magic_test_file=
5395 lt_cv_deplibs_check_method='unknown'
5396 # Need to set the preceding variable on all platforms that support
5397 # interlibrary dependencies.
5398 # 'none' -- dependencies not supported.
5399 # `unknown' -- same as none, but documents that we really don't know.
5400 # 'pass_all' -- all dependencies passed with no checks.
5401 # 'test_compile' -- check by making test program.
5402 # 'file_magic [[regex]]' -- check by looking for files in library path
5403 # which responds to the $file_magic_cmd with a given extended regex.
5404 # If you have `file' or equivalent on your system and you're not sure
5405 # whether `pass_all' will *always* work, you probably want this one.
5406
5407 case $host_os in
5408 aix[4-9]*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412 beos*)
5413 lt_cv_deplibs_check_method=pass_all
5414 ;;
5415
5416 bsdi[45]*)
5417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5418 lt_cv_file_magic_cmd='/usr/bin/file -L'
5419 lt_cv_file_magic_test_file=/shlib/libc.so
5420 ;;
5421
5422 cygwin*)
5423 # func_win32_libid is a shell function defined in ltmain.sh
5424 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5425 lt_cv_file_magic_cmd='func_win32_libid'
5426 ;;
5427
5428 mingw* | pw32*)
5429 # Base MSYS/MinGW do not provide the 'file' command needed by
5430 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5431 # unless we find 'file', for example because we are cross-compiling.
5432 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5433 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5434 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5435 lt_cv_file_magic_cmd='func_win32_libid'
5436 else
5437 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5438 lt_cv_file_magic_cmd='$OBJDUMP -f'
5439 fi
5440 ;;
5441
5442 cegcc*)
5443 # use the weaker test based on 'objdump'. See mingw*.
5444 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5445 lt_cv_file_magic_cmd='$OBJDUMP -f'
5446 ;;
5447
5448 darwin* | rhapsody*)
5449 lt_cv_deplibs_check_method=pass_all
5450 ;;
5451
5452 freebsd* | dragonfly*)
5453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5454 case $host_cpu in
5455 i*86 )
5456 # Not sure whether the presence of OpenBSD here was a mistake.
5457 # Let's accept both of them until this is cleared up.
5458 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5459 lt_cv_file_magic_cmd=/usr/bin/file
5460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5461 ;;
5462 esac
5463 else
5464 lt_cv_deplibs_check_method=pass_all
5465 fi
5466 ;;
5467
5468 gnu*)
5469 lt_cv_deplibs_check_method=pass_all
5470 ;;
5471
5472 haiku*)
5473 lt_cv_deplibs_check_method=pass_all
5474 ;;
5475
5476 hpux10.20* | hpux11*)
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 case $host_cpu in
5479 ia64*)
5480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5481 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5482 ;;
5483 hppa*64*)
5484 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]'
5485 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5486 ;;
5487 *)
5488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5489 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5490 ;;
5491 esac
5492 ;;
5493
5494 interix[3-9]*)
5495 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5497 ;;
5498
5499 irix5* | irix6* | nonstopux*)
5500 case $LD in
5501 *-32|*"-32 ") libmagic=32-bit;;
5502 *-n32|*"-n32 ") libmagic=N32;;
5503 *-64|*"-64 ") libmagic=64-bit;;
5504 *) libmagic=never-match;;
5505 esac
5506 lt_cv_deplibs_check_method=pass_all
5507 ;;
5508
5509 # This must be Linux ELF.
5510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5511 lt_cv_deplibs_check_method=pass_all
5512 ;;
5513
5514 netbsd*)
5515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5517 else
5518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5519 fi
5520 ;;
5521
5522 newos6*)
5523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5524 lt_cv_file_magic_cmd=/usr/bin/file
5525 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5526 ;;
5527
5528 *nto* | *qnx*)
5529 lt_cv_deplibs_check_method=pass_all
5530 ;;
5531
5532 openbsd*)
5533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5535 else
5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5537 fi
5538 ;;
5539
5540 osf3* | osf4* | osf5*)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5543
5544 rdos*)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5547
5548 solaris*)
5549 lt_cv_deplibs_check_method=pass_all
5550 ;;
5551
5552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5553 lt_cv_deplibs_check_method=pass_all
5554 ;;
5555
5556 sysv4 | sysv4.3*)
5557 case $host_vendor in
5558 motorola)
5559 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]'
5560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5561 ;;
5562 ncr)
5563 lt_cv_deplibs_check_method=pass_all
5564 ;;
5565 sequent)
5566 lt_cv_file_magic_cmd='/bin/file'
5567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5568 ;;
5569 sni)
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5572 lt_cv_file_magic_test_file=/lib/libc.so
5573 ;;
5574 siemens)
5575 lt_cv_deplibs_check_method=pass_all
5576 ;;
5577 pc)
5578 lt_cv_deplibs_check_method=pass_all
5579 ;;
5580 esac
5581 ;;
5582
5583 tpf*)
5584 lt_cv_deplibs_check_method=pass_all
5585 ;;
5586 esac
5587
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5590 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5591 file_magic_cmd=$lt_cv_file_magic_cmd
5592 deplibs_check_method=$lt_cv_deplibs_check_method
5593 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606 if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}ar; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_AR+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$AR"; then
5615 ac_cv_prog_AR="$AR" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5619 do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_AR="${ac_tool_prefix}ar"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628 done
5629 done
5630 IFS=$as_save_IFS
5631
5632 fi
5633 fi
5634 AR=$ac_cv_prog_AR
5635 if test -n "$AR"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5637 $as_echo "$AR" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644 fi
5645 if test -z "$ac_cv_prog_AR"; then
5646 ac_ct_AR=$AR
5647 # Extract the first word of "ar", so it can be a program name with args.
5648 set dummy ar; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$ac_ct_AR"; then
5655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_ac_ct_AR="ar"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668 done
5669 done
5670 IFS=$as_save_IFS
5671
5672 fi
5673 fi
5674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5675 if test -n "$ac_ct_AR"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5677 $as_echo "$ac_ct_AR" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682
5683 if test "x$ac_ct_AR" = x; then
5684 AR="false"
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692 AR=$ac_ct_AR
5693 fi
5694 else
5695 AR="$ac_cv_prog_AR"
5696 fi
5697
5698 test -z "$AR" && AR=ar
5699 test -z "$AR_FLAGS" && AR_FLAGS=cru
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711 if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}strip; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if test "${ac_cv_prog_STRIP+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$STRIP"; then
5720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733 done
5734 done
5735 IFS=$as_save_IFS
5736
5737 fi
5738 fi
5739 STRIP=$ac_cv_prog_STRIP
5740 if test -n "$STRIP"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5742 $as_echo "$STRIP" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5746 fi
5747
5748
5749 fi
5750 if test -z "$ac_cv_prog_STRIP"; then
5751 ac_ct_STRIP=$STRIP
5752 # Extract the first word of "strip", so it can be a program name with args.
5753 set dummy strip; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$ac_ct_STRIP"; then
5760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5764 do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_STRIP="strip"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773 done
5774 done
5775 IFS=$as_save_IFS
5776
5777 fi
5778 fi
5779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5780 if test -n "$ac_ct_STRIP"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5782 $as_echo "$ac_ct_STRIP" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5786 fi
5787
5788 if test "x$ac_ct_STRIP" = x; then
5789 STRIP=":"
5790 else
5791 case $cross_compiling:$ac_tool_warned in
5792 yes:)
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795 ac_tool_warned=yes ;;
5796 esac
5797 STRIP=$ac_ct_STRIP
5798 fi
5799 else
5800 STRIP="$ac_cv_prog_STRIP"
5801 fi
5802
5803 test -z "$STRIP" && STRIP=:
5804
5805
5806
5807
5808
5809
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5823 do
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5831 fi
5832 done
5833 done
5834 IFS=$as_save_IFS
5835
5836 fi
5837 fi
5838 RANLIB=$ac_cv_prog_RANLIB
5839 if test -n "$RANLIB"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5841 $as_echo "$RANLIB" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5845 fi
5846
5847
5848 fi
5849 if test -z "$ac_cv_prog_RANLIB"; then
5850 ac_ct_RANLIB=$RANLIB
5851 # Extract the first word of "ranlib", so it can be a program name with args.
5852 set dummy ranlib; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_RANLIB"; then
5859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_RANLIB="ranlib"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5871 fi
5872 done
5873 done
5874 IFS=$as_save_IFS
5875
5876 fi
5877 fi
5878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5879 if test -n "$ac_ct_RANLIB"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5881 $as_echo "$ac_ct_RANLIB" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5885 fi
5886
5887 if test "x$ac_ct_RANLIB" = x; then
5888 RANLIB=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 RANLIB=$ac_ct_RANLIB
5897 fi
5898 else
5899 RANLIB="$ac_cv_prog_RANLIB"
5900 fi
5901
5902 test -z "$RANLIB" && RANLIB=:
5903
5904
5905
5906
5907
5908
5909 # Determine commands to create old-style static archives.
5910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5911 old_postinstall_cmds='chmod 644 $oldlib'
5912 old_postuninstall_cmds=
5913
5914 if test -n "$RANLIB"; then
5915 case $host_os in
5916 openbsd*)
5917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5918 ;;
5919 *)
5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5921 ;;
5922 esac
5923 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5924 fi
5925
5926 case $host_os in
5927 darwin*)
5928 lock_old_archive_extraction=yes ;;
5929 *)
5930 lock_old_archive_extraction=no ;;
5931 esac
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971 # If no C compiler was specified, use CC.
5972 LTCC=${LTCC-"$CC"}
5973
5974 # If no C compiler flags were specified, use CFLAGS.
5975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5976
5977 # Allow CC to be a program name with arguments.
5978 compiler=$CC
5979
5980
5981 # Check for command to grab the raw symbol name followed by C symbol from nm.
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5984 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5987
5988 # These are sane defaults that work on at least a few old systems.
5989 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5990
5991 # Character class describing NM global symbol codes.
5992 symcode='[BCDEGRST]'
5993
5994 # Regexp to match symbols that can be accessed directly from C.
5995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5996
5997 # Define system-specific variables.
5998 case $host_os in
5999 aix*)
6000 symcode='[BCDT]'
6001 ;;
6002 cygwin* | mingw* | pw32* | cegcc*)
6003 symcode='[ABCDGISTW]'
6004 ;;
6005 hpux*)
6006 if test "$host_cpu" = ia64; then
6007 symcode='[ABCDEGRST]'
6008 fi
6009 ;;
6010 irix* | nonstopux*)
6011 symcode='[BCDEGRST]'
6012 ;;
6013 osf*)
6014 symcode='[BCDEGQRST]'
6015 ;;
6016 solaris*)
6017 symcode='[BDRT]'
6018 ;;
6019 sco3.2v5*)
6020 symcode='[DT]'
6021 ;;
6022 sysv4.2uw2*)
6023 symcode='[DT]'
6024 ;;
6025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6026 symcode='[ABDT]'
6027 ;;
6028 sysv4)
6029 symcode='[DFNSTU]'
6030 ;;
6031 esac
6032
6033 # If we're using GNU nm, then use its standard symbol codes.
6034 case `$NM -V 2>&1` in
6035 *GNU* | *'with BFD'*)
6036 symcode='[ABCDGIRSTW]' ;;
6037 esac
6038
6039 # Transform an extracted symbol line into a proper C declaration.
6040 # Some systems (esp. on ia64) link data and code symbols differently,
6041 # so use this general approach.
6042 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6043
6044 # Transform an extracted symbol line into symbol name and symbol address
6045 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6046 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'"
6047
6048 # Handle CRLF in mingw tool chain
6049 opt_cr=
6050 case $build_os in
6051 mingw*)
6052 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6053 ;;
6054 esac
6055
6056 # Try without a prefix underscore, then with it.
6057 for ac_symprfx in "" "_"; do
6058
6059 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6060 symxfrm="\\1 $ac_symprfx\\2 \\2"
6061
6062 # Write the raw and C identifiers.
6063 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6064 # Fake it for dumpbin and say T for any non-static function
6065 # and D for any global variable.
6066 # Also find C++ and __fastcall symbols from MSVC++,
6067 # which start with @ or ?.
6068 lt_cv_sys_global_symbol_pipe="$AWK '"\
6069 " {last_section=section; section=\$ 3};"\
6070 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6071 " \$ 0!~/External *\|/{next};"\
6072 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6073 " {if(hide[section]) next};"\
6074 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6075 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6076 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6077 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6078 " ' prfx=^$ac_symprfx"
6079 else
6080 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6081 fi
6082
6083 # Check to see that the pipe works correctly.
6084 pipe_works=no
6085
6086 rm -f conftest*
6087 cat > conftest.$ac_ext <<_LT_EOF
6088 #ifdef __cplusplus
6089 extern "C" {
6090 #endif
6091 char nm_test_var;
6092 void nm_test_func(void);
6093 void nm_test_func(void){}
6094 #ifdef __cplusplus
6095 }
6096 #endif
6097 int main(){nm_test_var='a';nm_test_func();return(0);}
6098 _LT_EOF
6099
6100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6101 (eval $ac_compile) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; }; then
6105 # Now try to grab the symbols.
6106 nlist=conftest.nm
6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6108 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; } && test -s "$nlist"; then
6112 # Try sorting and uniquifying the output.
6113 if sort "$nlist" | uniq > "$nlist"T; then
6114 mv -f "$nlist"T "$nlist"
6115 else
6116 rm -f "$nlist"T
6117 fi
6118
6119 # Make sure that we snagged all the symbols we need.
6120 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6121 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6122 cat <<_LT_EOF > conftest.$ac_ext
6123 #ifdef __cplusplus
6124 extern "C" {
6125 #endif
6126
6127 _LT_EOF
6128 # Now generate the symbol file.
6129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6130
6131 cat <<_LT_EOF >> conftest.$ac_ext
6132
6133 /* The mapping between symbol names and symbols. */
6134 const struct {
6135 const char *name;
6136 void *address;
6137 }
6138 lt__PROGRAM__LTX_preloaded_symbols[] =
6139 {
6140 { "@PROGRAM@", (void *) 0 },
6141 _LT_EOF
6142 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6143 cat <<\_LT_EOF >> conftest.$ac_ext
6144 {0, (void *) 0}
6145 };
6146
6147 /* This works around a problem in FreeBSD linker */
6148 #ifdef FREEBSD_WORKAROUND
6149 static const void *lt_preloaded_setup() {
6150 return lt__PROGRAM__LTX_preloaded_symbols;
6151 }
6152 #endif
6153
6154 #ifdef __cplusplus
6155 }
6156 #endif
6157 _LT_EOF
6158 # Now try linking the two files.
6159 mv conftest.$ac_objext conftstm.$ac_objext
6160 lt_save_LIBS="$LIBS"
6161 lt_save_CFLAGS="$CFLAGS"
6162 LIBS="conftstm.$ac_objext"
6163 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6165 (eval $ac_link) 2>&5
6166 ac_status=$?
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6169 pipe_works=yes
6170 fi
6171 LIBS="$lt_save_LIBS"
6172 CFLAGS="$lt_save_CFLAGS"
6173 else
6174 echo "cannot find nm_test_func in $nlist" >&5
6175 fi
6176 else
6177 echo "cannot find nm_test_var in $nlist" >&5
6178 fi
6179 else
6180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6181 fi
6182 else
6183 echo "$progname: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6185 fi
6186 rm -rf conftest* conftst*
6187
6188 # Do not use the global_symbol_pipe unless it works.
6189 if test "$pipe_works" = yes; then
6190 break
6191 else
6192 lt_cv_sys_global_symbol_pipe=
6193 fi
6194 done
6195
6196 fi
6197
6198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6199 lt_cv_sys_global_symbol_to_cdecl=
6200 fi
6201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6203 $as_echo "failed" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6206 $as_echo "ok" >&6; }
6207 fi
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 # Check whether --enable-libtool-lock was given.
6232 if test "${enable_libtool_lock+set}" = set; then :
6233 enableval=$enable_libtool_lock;
6234 fi
6235
6236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6237
6238 # Some flags need to be propagated to the compiler or linker for good
6239 # libtool support.
6240 case $host in
6241 ia64-*-hpux*)
6242 # Find out which ABI we are using.
6243 echo 'int i;' > conftest.$ac_ext
6244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245 (eval $ac_compile) 2>&5
6246 ac_status=$?
6247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248 test $ac_status = 0; }; then
6249 case `/usr/bin/file conftest.$ac_objext` in
6250 *ELF-32*)
6251 HPUX_IA64_MODE="32"
6252 ;;
6253 *ELF-64*)
6254 HPUX_IA64_MODE="64"
6255 ;;
6256 esac
6257 fi
6258 rm -rf conftest*
6259 ;;
6260 *-*-irix6*)
6261 # Find out which ABI we are using.
6262 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6264 (eval $ac_compile) 2>&5
6265 ac_status=$?
6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267 test $ac_status = 0; }; then
6268 if test "$lt_cv_prog_gnu_ld" = yes; then
6269 case `/usr/bin/file conftest.$ac_objext` in
6270 *32-bit*)
6271 LD="${LD-ld} -melf32bsmip"
6272 ;;
6273 *N32*)
6274 LD="${LD-ld} -melf32bmipn32"
6275 ;;
6276 *64-bit*)
6277 LD="${LD-ld} -melf64bmip"
6278 ;;
6279 esac
6280 else
6281 case `/usr/bin/file conftest.$ac_objext` in
6282 *32-bit*)
6283 LD="${LD-ld} -32"
6284 ;;
6285 *N32*)
6286 LD="${LD-ld} -n32"
6287 ;;
6288 *64-bit*)
6289 LD="${LD-ld} -64"
6290 ;;
6291 esac
6292 fi
6293 fi
6294 rm -rf conftest*
6295 ;;
6296
6297 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6298 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6299 # Find out which ABI we are using.
6300 echo 'int i;' > conftest.$ac_ext
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302 (eval $ac_compile) 2>&5
6303 ac_status=$?
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 case `/usr/bin/file conftest.o` in
6307 *32-bit*)
6308 case $host in
6309 x86_64-*kfreebsd*-gnu)
6310 LD="${LD-ld} -m elf_i386_fbsd"
6311 ;;
6312 x86_64-*linux*)
6313 LD="${LD-ld} -m elf_i386"
6314 ;;
6315 ppc64-*linux*|powerpc64-*linux*)
6316 LD="${LD-ld} -m elf32ppclinux"
6317 ;;
6318 s390x-*linux*)
6319 LD="${LD-ld} -m elf_s390"
6320 ;;
6321 sparc64-*linux*)
6322 LD="${LD-ld} -m elf32_sparc"
6323 ;;
6324 esac
6325 ;;
6326 *64-bit*)
6327 case $host in
6328 x86_64-*kfreebsd*-gnu)
6329 LD="${LD-ld} -m elf_x86_64_fbsd"
6330 ;;
6331 x86_64-*linux*)
6332 LD="${LD-ld} -m elf_x86_64"
6333 ;;
6334 ppc*-*linux*|powerpc*-*linux*)
6335 LD="${LD-ld} -m elf64ppc"
6336 ;;
6337 s390*-*linux*|s390*-*tpf*)
6338 LD="${LD-ld} -m elf64_s390"
6339 ;;
6340 sparc*-*linux*)
6341 LD="${LD-ld} -m elf64_sparc"
6342 ;;
6343 esac
6344 ;;
6345 esac
6346 fi
6347 rm -rf conftest*
6348 ;;
6349
6350 *-*-sco3.2v5*)
6351 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6352 SAVE_CFLAGS="$CFLAGS"
6353 CFLAGS="$CFLAGS -belf"
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6355 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6356 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 ac_ext=c
6360 ac_cpp='$CPP $CPPFLAGS'
6361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6364
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367
6368 int
6369 main ()
6370 {
6371
6372 ;
6373 return 0;
6374 }
6375 _ACEOF
6376 if ac_fn_c_try_link "$LINENO"; then :
6377 lt_cv_cc_needs_belf=yes
6378 else
6379 lt_cv_cc_needs_belf=no
6380 fi
6381 rm -f core conftest.err conftest.$ac_objext \
6382 conftest$ac_exeext conftest.$ac_ext
6383 ac_ext=c
6384 ac_cpp='$CPP $CPPFLAGS'
6385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388
6389 fi
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6391 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6392 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6393 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6394 CFLAGS="$SAVE_CFLAGS"
6395 fi
6396 ;;
6397 *-*solaris*)
6398 # Find out which ABI we are using.
6399 echo 'int i;' > conftest.$ac_ext
6400 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6401 (eval $ac_compile) 2>&5
6402 ac_status=$?
6403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6404 test $ac_status = 0; }; then
6405 case `/usr/bin/file conftest.o` in
6406 *64-bit*)
6407 case $lt_cv_prog_gnu_ld in
6408 yes*)
6409 case $host in
6410 i?86-*-solaris*)
6411 LD="${LD-ld} -m elf_x86_64"
6412 ;;
6413 sparc*-*-solaris*)
6414 LD="${LD-ld} -m elf64_sparc"
6415 ;;
6416 esac
6417 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6418 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6419 LD="${LD-ld}_sol2"
6420 fi
6421 ;;
6422 *)
6423 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6424 LD="${LD-ld} -64"
6425 fi
6426 ;;
6427 esac
6428 ;;
6429 esac
6430 fi
6431 rm -rf conftest*
6432 ;;
6433 esac
6434
6435 need_locks="$enable_libtool_lock"
6436
6437
6438 case $host_os in
6439 rhapsody* | darwin*)
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$DSYMUTIL"; then
6449 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6469 if test -n "$DSYMUTIL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6471 $as_echo "$DSYMUTIL" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477
6478 fi
6479 if test -z "$ac_cv_prog_DSYMUTIL"; then
6480 ac_ct_DSYMUTIL=$DSYMUTIL
6481 # Extract the first word of "dsymutil", so it can be a program name with args.
6482 set dummy dsymutil; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$ac_ct_DSYMUTIL"; then
6489 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6509 if test -n "$ac_ct_DSYMUTIL"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6511 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6515 fi
6516
6517 if test "x$ac_ct_DSYMUTIL" = x; then
6518 DSYMUTIL=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 DSYMUTIL=$ac_ct_DSYMUTIL
6527 fi
6528 else
6529 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6530 fi
6531
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 if test -n "$NMEDIT"; then
6541 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6553 fi
6554 done
6555 done
6556 IFS=$as_save_IFS
6557
6558 fi
6559 fi
6560 NMEDIT=$ac_cv_prog_NMEDIT
6561 if test -n "$NMEDIT"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6563 $as_echo "$NMEDIT" >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567 fi
6568
6569
6570 fi
6571 if test -z "$ac_cv_prog_NMEDIT"; then
6572 ac_ct_NMEDIT=$NMEDIT
6573 # Extract the first word of "nmedit", so it can be a program name with args.
6574 set dummy nmedit; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 if test -n "$ac_ct_NMEDIT"; then
6581 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6593 fi
6594 done
6595 done
6596 IFS=$as_save_IFS
6597
6598 fi
6599 fi
6600 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6601 if test -n "$ac_ct_NMEDIT"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6603 $as_echo "$ac_ct_NMEDIT" >&6; }
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6607 fi
6608
6609 if test "x$ac_ct_NMEDIT" = x; then
6610 NMEDIT=":"
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618 NMEDIT=$ac_ct_NMEDIT
6619 fi
6620 else
6621 NMEDIT="$ac_cv_prog_NMEDIT"
6622 fi
6623
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_LIPO+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$LIPO"; then
6633 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 LIPO=$ac_cv_prog_LIPO
6653 if test -n "$LIPO"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6655 $as_echo "$LIPO" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661
6662 fi
6663 if test -z "$ac_cv_prog_LIPO"; then
6664 ac_ct_LIPO=$LIPO
6665 # Extract the first word of "lipo", so it can be a program name with args.
6666 set dummy lipo; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_LIPO"; then
6673 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6677 do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_LIPO="lipo"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686 done
6687 done
6688 IFS=$as_save_IFS
6689
6690 fi
6691 fi
6692 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6693 if test -n "$ac_ct_LIPO"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6695 $as_echo "$ac_ct_LIPO" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6699 fi
6700
6701 if test "x$ac_ct_LIPO" = x; then
6702 LIPO=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 LIPO=$ac_ct_LIPO
6711 fi
6712 else
6713 LIPO="$ac_cv_prog_LIPO"
6714 fi
6715
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}otool; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$OTOOL"; then
6725 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 OTOOL=$ac_cv_prog_OTOOL
6745 if test -n "$OTOOL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6747 $as_echo "$OTOOL" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753
6754 fi
6755 if test -z "$ac_cv_prog_OTOOL"; then
6756 ac_ct_OTOOL=$OTOOL
6757 # Extract the first word of "otool", so it can be a program name with args.
6758 set dummy otool; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$ac_ct_OTOOL"; then
6765 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6769 do
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_ac_ct_OTOOL="otool"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6777 fi
6778 done
6779 done
6780 IFS=$as_save_IFS
6781
6782 fi
6783 fi
6784 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6785 if test -n "$ac_ct_OTOOL"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6787 $as_echo "$ac_ct_OTOOL" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6791 fi
6792
6793 if test "x$ac_ct_OTOOL" = x; then
6794 OTOOL=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 OTOOL=$ac_ct_OTOOL
6803 fi
6804 else
6805 OTOOL="$ac_cv_prog_OTOOL"
6806 fi
6807
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$OTOOL64"; then
6817 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 OTOOL64=$ac_cv_prog_OTOOL64
6837 if test -n "$OTOOL64"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6839 $as_echo "$OTOOL64" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845
6846 fi
6847 if test -z "$ac_cv_prog_OTOOL64"; then
6848 ac_ct_OTOOL64=$OTOOL64
6849 # Extract the first word of "otool64", so it can be a program name with args.
6850 set dummy otool64; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_OTOOL64"; then
6857 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_OTOOL64="otool64"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6869 fi
6870 done
6871 done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6877 if test -n "$ac_ct_OTOOL64"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6879 $as_echo "$ac_ct_OTOOL64" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885 if test "x$ac_ct_OTOOL64" = x; then
6886 OTOOL64=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 OTOOL64=$ac_ct_OTOOL64
6895 fi
6896 else
6897 OTOOL64="$ac_cv_prog_OTOOL64"
6898 fi
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6927 $as_echo_n "checking for -single_module linker flag... " >&6; }
6928 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 lt_cv_apple_cc_single_mod=no
6932 if test -z "${LT_MULTI_MODULE}"; then
6933 # By default we will add the -single_module flag. You can override
6934 # by either setting the environment variable LT_MULTI_MODULE
6935 # non-empty at configure time, or by adding -multi_module to the
6936 # link flags.
6937 rm -rf libconftest.dylib*
6938 echo "int foo(void){return 1;}" > conftest.c
6939 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940 -dynamiclib -Wl,-single_module conftest.c" >&5
6941 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6943 _lt_result=$?
6944 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6945 lt_cv_apple_cc_single_mod=yes
6946 else
6947 cat conftest.err >&5
6948 fi
6949 rm -rf libconftest.dylib*
6950 rm -f conftest.*
6951 fi
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6954 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6956 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6957 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 lt_cv_ld_exported_symbols_list=no
6961 save_LDFLAGS=$LDFLAGS
6962 echo "_main" > conftest.sym
6963 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6966
6967 int
6968 main ()
6969 {
6970
6971 ;
6972 return 0;
6973 }
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 lt_cv_ld_exported_symbols_list=yes
6977 else
6978 lt_cv_ld_exported_symbols_list=no
6979 fi
6980 rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6982 LDFLAGS="$save_LDFLAGS"
6983
6984 fi
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6986 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6988 $as_echo_n "checking for -force_load linker flag... " >&6; }
6989 if test "${lt_cv_ld_force_load+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 lt_cv_ld_force_load=no
6993 cat > conftest.c << _LT_EOF
6994 int forced_loaded() { return 2;}
6995 _LT_EOF
6996 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6997 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6998 echo "$AR cru libconftest.a conftest.o" >&5
6999 $AR cru libconftest.a conftest.o 2>&5
7000 cat > conftest.c << _LT_EOF
7001 int main() { return 0;}
7002 _LT_EOF
7003 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7004 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7005 _lt_result=$?
7006 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7007 lt_cv_ld_force_load=yes
7008 else
7009 cat conftest.err >&5
7010 fi
7011 rm -f conftest.err libconftest.a conftest conftest.c
7012 rm -rf conftest.dSYM
7013
7014 fi
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7016 $as_echo "$lt_cv_ld_force_load" >&6; }
7017 case $host_os in
7018 rhapsody* | darwin1.[012])
7019 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7020 darwin1.*)
7021 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7022 darwin*) # darwin 5.x on
7023 # if running on 10.5 or later, the deployment target defaults
7024 # to the OS version, if on x86, and 10.4, the deployment
7025 # target defaults to 10.4. Don't you love it?
7026 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7027 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7028 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7029 10.[012]*)
7030 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031 10.*)
7032 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033 esac
7034 ;;
7035 esac
7036 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7037 _lt_dar_single_mod='$single_module'
7038 fi
7039 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7040 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7041 else
7042 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7043 fi
7044 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7045 _lt_dsymutil='~$DSYMUTIL $lib || :'
7046 else
7047 _lt_dsymutil=
7048 fi
7049 ;;
7050 esac
7051
7052 ac_ext=c
7053 ac_cpp='$CPP $CPPFLAGS'
7054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7058 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7059 # On Suns, sometimes $CPP names a directory.
7060 if test -n "$CPP" && test -d "$CPP"; then
7061 CPP=
7062 fi
7063 if test -z "$CPP"; then
7064 if test "${ac_cv_prog_CPP+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 # Double quotes because CPP needs to be expanded
7068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7069 do
7070 ac_preproc_ok=false
7071 for ac_c_preproc_warn_flag in '' yes
7072 do
7073 # Use a header file that comes with gcc, so configuring glibc
7074 # with a fresh cross-compiler works.
7075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076 # <limits.h> exists even on freestanding compilers.
7077 # On the NeXT, cc -E runs the code through the compiler's parser,
7078 # not just through cpp. "Syntax error" is here to catch this case.
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 #ifdef __STDC__
7082 # include <limits.h>
7083 #else
7084 # include <assert.h>
7085 #endif
7086 Syntax error
7087 _ACEOF
7088 if ac_fn_c_try_cpp "$LINENO"; then :
7089
7090 else
7091 # Broken: fails on valid input.
7092 continue
7093 fi
7094 rm -f conftest.err conftest.$ac_ext
7095
7096 # OK, works on sane cases. Now check whether nonexistent headers
7097 # can be detected and how.
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 #include <ac_nonexistent.h>
7101 _ACEOF
7102 if ac_fn_c_try_cpp "$LINENO"; then :
7103 # Broken: success on invalid input.
7104 continue
7105 else
7106 # Passes both tests.
7107 ac_preproc_ok=:
7108 break
7109 fi
7110 rm -f conftest.err conftest.$ac_ext
7111
7112 done
7113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7114 rm -f conftest.err conftest.$ac_ext
7115 if $ac_preproc_ok; then :
7116 break
7117 fi
7118
7119 done
7120 ac_cv_prog_CPP=$CPP
7121
7122 fi
7123 CPP=$ac_cv_prog_CPP
7124 else
7125 ac_cv_prog_CPP=$CPP
7126 fi
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7128 $as_echo "$CPP" >&6; }
7129 ac_preproc_ok=false
7130 for ac_c_preproc_warn_flag in '' yes
7131 do
7132 # Use a header file that comes with gcc, so configuring glibc
7133 # with a fresh cross-compiler works.
7134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7135 # <limits.h> exists even on freestanding compilers.
7136 # On the NeXT, cc -E runs the code through the compiler's parser,
7137 # not just through cpp. "Syntax error" is here to catch this case.
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 #ifdef __STDC__
7141 # include <limits.h>
7142 #else
7143 # include <assert.h>
7144 #endif
7145 Syntax error
7146 _ACEOF
7147 if ac_fn_c_try_cpp "$LINENO"; then :
7148
7149 else
7150 # Broken: fails on valid input.
7151 continue
7152 fi
7153 rm -f conftest.err conftest.$ac_ext
7154
7155 # OK, works on sane cases. Now check whether nonexistent headers
7156 # can be detected and how.
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 #include <ac_nonexistent.h>
7160 _ACEOF
7161 if ac_fn_c_try_cpp "$LINENO"; then :
7162 # Broken: success on invalid input.
7163 continue
7164 else
7165 # Passes both tests.
7166 ac_preproc_ok=:
7167 break
7168 fi
7169 rm -f conftest.err conftest.$ac_ext
7170
7171 done
7172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7173 rm -f conftest.err conftest.$ac_ext
7174 if $ac_preproc_ok; then :
7175
7176 else
7177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7179 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7180 See \`config.log' for more details." "$LINENO" 5; }
7181 fi
7182
7183 ac_ext=c
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7188
7189
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7191 $as_echo_n "checking for ANSI C header files... " >&6; }
7192 if test "${ac_cv_header_stdc+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 #include <stdlib.h>
7198 #include <stdarg.h>
7199 #include <string.h>
7200 #include <float.h>
7201
7202 int
7203 main ()
7204 {
7205
7206 ;
7207 return 0;
7208 }
7209 _ACEOF
7210 if ac_fn_c_try_compile "$LINENO"; then :
7211 ac_cv_header_stdc=yes
7212 else
7213 ac_cv_header_stdc=no
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216
7217 if test $ac_cv_header_stdc = yes; then
7218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <string.h>
7222
7223 _ACEOF
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225 $EGREP "memchr" >/dev/null 2>&1; then :
7226
7227 else
7228 ac_cv_header_stdc=no
7229 fi
7230 rm -f conftest*
7231
7232 fi
7233
7234 if test $ac_cv_header_stdc = yes; then
7235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 #include <stdlib.h>
7239
7240 _ACEOF
7241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7242 $EGREP "free" >/dev/null 2>&1; then :
7243
7244 else
7245 ac_cv_header_stdc=no
7246 fi
7247 rm -f conftest*
7248
7249 fi
7250
7251 if test $ac_cv_header_stdc = yes; then
7252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7253 if test "$cross_compiling" = yes; then :
7254 :
7255 else
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 #include <ctype.h>
7259 #include <stdlib.h>
7260 #if ((' ' & 0x0FF) == 0x020)
7261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7263 #else
7264 # define ISLOWER(c) \
7265 (('a' <= (c) && (c) <= 'i') \
7266 || ('j' <= (c) && (c) <= 'r') \
7267 || ('s' <= (c) && (c) <= 'z'))
7268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7269 #endif
7270
7271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7272 int
7273 main ()
7274 {
7275 int i;
7276 for (i = 0; i < 256; i++)
7277 if (XOR (islower (i), ISLOWER (i))
7278 || toupper (i) != TOUPPER (i))
7279 return 2;
7280 return 0;
7281 }
7282 _ACEOF
7283 if ac_fn_c_try_run "$LINENO"; then :
7284
7285 else
7286 ac_cv_header_stdc=no
7287 fi
7288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7289 conftest.$ac_objext conftest.beam conftest.$ac_ext
7290 fi
7291
7292 fi
7293 fi
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7295 $as_echo "$ac_cv_header_stdc" >&6; }
7296 if test $ac_cv_header_stdc = yes; then
7297
7298 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7299
7300 fi
7301
7302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7303 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7304 inttypes.h stdint.h unistd.h
7305 do :
7306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7307 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7308 "
7309 eval as_val=\$$as_ac_Header
7310 if test "x$as_val" = x""yes; then :
7311 cat >>confdefs.h <<_ACEOF
7312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7313 _ACEOF
7314
7315 fi
7316
7317 done
7318
7319
7320 for ac_header in dlfcn.h
7321 do :
7322 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7323 "
7324 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7325 cat >>confdefs.h <<_ACEOF
7326 #define HAVE_DLFCN_H 1
7327 _ACEOF
7328
7329 fi
7330
7331 done
7332
7333 if test -n "$ac_tool_prefix"; then
7334 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if test "${ac_cv_prog_GOC+set}" = set; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 if test -n "$GOC"; then
7342 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347 IFS=$as_save_IFS
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 break 2
7354 fi
7355 done
7356 done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 GOC=$ac_cv_prog_GOC
7362 if test -n "$GOC"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7364 $as_echo "$GOC" >&6; }
7365 else
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_GOC"; then
7373 ac_ct_GOC=$GOC
7374 # Extract the first word of "gccgo", so it can be a program name with args.
7375 set dummy gccgo; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$ac_ct_GOC"; then
7382 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_ac_ct_GOC="gccgo"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7394 fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7402 if test -n "$ac_ct_GOC"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7404 $as_echo "$ac_ct_GOC" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410 if test "x$ac_ct_GOC" = x; then
7411 GOC=""
7412 else
7413 case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419 GOC=$ac_ct_GOC
7420 fi
7421 else
7422 GOC="$ac_cv_prog_GOC"
7423 fi
7424
7425
7426
7427
7428
7429
7430 # Set options
7431
7432
7433
7434
7435 enable_win32_dll=no
7436
7437
7438 # Check whether --enable-shared was given.
7439 if test "${enable_shared+set}" = set; then :
7440 enableval=$enable_shared; p=${PACKAGE-default}
7441 case $enableval in
7442 yes) enable_shared=yes ;;
7443 no) enable_shared=no ;;
7444 *)
7445 enable_shared=no
7446 # Look at the argument we got. We use all the common list separators.
7447 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448 for pkg in $enableval; do
7449 IFS="$lt_save_ifs"
7450 if test "X$pkg" = "X$p"; then
7451 enable_shared=yes
7452 fi
7453 done
7454 IFS="$lt_save_ifs"
7455 ;;
7456 esac
7457 else
7458 enable_shared=yes
7459 fi
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 # Check whether --enable-static was given.
7470 if test "${enable_static+set}" = set; then :
7471 enableval=$enable_static; p=${PACKAGE-default}
7472 case $enableval in
7473 yes) enable_static=yes ;;
7474 no) enable_static=no ;;
7475 *)
7476 enable_static=no
7477 # Look at the argument we got. We use all the common list separators.
7478 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7479 for pkg in $enableval; do
7480 IFS="$lt_save_ifs"
7481 if test "X$pkg" = "X$p"; then
7482 enable_static=yes
7483 fi
7484 done
7485 IFS="$lt_save_ifs"
7486 ;;
7487 esac
7488 else
7489 enable_static=yes
7490 fi
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501 # Check whether --with-pic was given.
7502 if test "${with_pic+set}" = set; then :
7503 withval=$with_pic; pic_mode="$withval"
7504 else
7505 pic_mode=default
7506 fi
7507
7508
7509 test -z "$pic_mode" && pic_mode=default
7510
7511
7512
7513
7514
7515
7516
7517 # Check whether --enable-fast-install was given.
7518 if test "${enable_fast_install+set}" = set; then :
7519 enableval=$enable_fast_install; p=${PACKAGE-default}
7520 case $enableval in
7521 yes) enable_fast_install=yes ;;
7522 no) enable_fast_install=no ;;
7523 *)
7524 enable_fast_install=no
7525 # Look at the argument we got. We use all the common list separators.
7526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7527 for pkg in $enableval; do
7528 IFS="$lt_save_ifs"
7529 if test "X$pkg" = "X$p"; then
7530 enable_fast_install=yes
7531 fi
7532 done
7533 IFS="$lt_save_ifs"
7534 ;;
7535 esac
7536 else
7537 enable_fast_install=yes
7538 fi
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550 # This can be used to rebuild libtool when needed
7551 LIBTOOL_DEPS="$ltmain"
7552
7553 # Always use our own libtool.
7554 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581 test -z "$LN_S" && LN_S="ln -s"
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596 if test -n "${ZSH_VERSION+set}" ; then
7597 setopt NO_GLOB_SUBST
7598 fi
7599
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7601 $as_echo_n "checking for objdir... " >&6; }
7602 if test "${lt_cv_objdir+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7604 else
7605 rm -f .libs 2>/dev/null
7606 mkdir .libs 2>/dev/null
7607 if test -d .libs; then
7608 lt_cv_objdir=.libs
7609 else
7610 # MS-DOS does not allow filenames that begin with a dot.
7611 lt_cv_objdir=_libs
7612 fi
7613 rmdir .libs 2>/dev/null
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7616 $as_echo "$lt_cv_objdir" >&6; }
7617 objdir=$lt_cv_objdir
7618
7619
7620
7621
7622
7623 cat >>confdefs.h <<_ACEOF
7624 #define LT_OBJDIR "$lt_cv_objdir/"
7625 _ACEOF
7626
7627
7628
7629
7630 case $host_os in
7631 aix3*)
7632 # AIX sometimes has problems with the GCC collect2 program. For some
7633 # reason, if we set the COLLECT_NAMES environment variable, the problems
7634 # vanish in a puff of smoke.
7635 if test "X${COLLECT_NAMES+set}" != Xset; then
7636 COLLECT_NAMES=
7637 export COLLECT_NAMES
7638 fi
7639 ;;
7640 esac
7641
7642 # Global variables:
7643 ofile=libtool
7644 can_build_shared=yes
7645
7646 # All known linkers require a `.a' archive for static linking (except MSVC,
7647 # which needs '.lib').
7648 libext=a
7649
7650 with_gnu_ld="$lt_cv_prog_gnu_ld"
7651
7652 old_CC="$CC"
7653 old_CFLAGS="$CFLAGS"
7654
7655 # Set sane defaults for various variables
7656 test -z "$CC" && CC=cc
7657 test -z "$LTCC" && LTCC=$CC
7658 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7659 test -z "$LD" && LD=ld
7660 test -z "$ac_objext" && ac_objext=o
7661
7662 for cc_temp in $compiler""; do
7663 case $cc_temp in
7664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7666 \-*) ;;
7667 *) break;;
7668 esac
7669 done
7670 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7671
7672
7673 # Only perform the check for file, if the check method requires it
7674 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7675 case $deplibs_check_method in
7676 file_magic*)
7677 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7679 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7680 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7681 $as_echo_n "(cached) " >&6
7682 else
7683 case $MAGIC_CMD in
7684 [\\/*] | ?:[\\/]*)
7685 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7686 ;;
7687 *)
7688 lt_save_MAGIC_CMD="$MAGIC_CMD"
7689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7690 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7691 for ac_dir in $ac_dummy; do
7692 IFS="$lt_save_ifs"
7693 test -z "$ac_dir" && ac_dir=.
7694 if test -f $ac_dir/${ac_tool_prefix}file; then
7695 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7696 if test -n "$file_magic_test_file"; then
7697 case $deplibs_check_method in
7698 "file_magic "*)
7699 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7701 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7702 $EGREP "$file_magic_regex" > /dev/null; then
7703 :
7704 else
7705 cat <<_LT_EOF 1>&2
7706
7707 *** Warning: the command libtool uses to detect shared libraries,
7708 *** $file_magic_cmd, produces output that libtool cannot recognize.
7709 *** The result is that libtool may fail to recognize shared libraries
7710 *** as such. This will affect the creation of libtool libraries that
7711 *** depend on shared libraries, but programs linked with such libtool
7712 *** libraries will work regardless of this problem. Nevertheless, you
7713 *** may want to report the problem to your system manager and/or to
7714 *** bug-libtool@gnu.org
7715
7716 _LT_EOF
7717 fi ;;
7718 esac
7719 fi
7720 break
7721 fi
7722 done
7723 IFS="$lt_save_ifs"
7724 MAGIC_CMD="$lt_save_MAGIC_CMD"
7725 ;;
7726 esac
7727 fi
7728
7729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7730 if test -n "$MAGIC_CMD"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7732 $as_echo "$MAGIC_CMD" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7736 fi
7737
7738
7739
7740
7741
7742 if test -z "$lt_cv_path_MAGIC_CMD"; then
7743 if test -n "$ac_tool_prefix"; then
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7745 $as_echo_n "checking for file... " >&6; }
7746 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 case $MAGIC_CMD in
7750 [\\/*] | ?:[\\/]*)
7751 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7752 ;;
7753 *)
7754 lt_save_MAGIC_CMD="$MAGIC_CMD"
7755 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7756 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7757 for ac_dir in $ac_dummy; do
7758 IFS="$lt_save_ifs"
7759 test -z "$ac_dir" && ac_dir=.
7760 if test -f $ac_dir/file; then
7761 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7762 if test -n "$file_magic_test_file"; then
7763 case $deplibs_check_method in
7764 "file_magic "*)
7765 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7766 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7767 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7768 $EGREP "$file_magic_regex" > /dev/null; then
7769 :
7770 else
7771 cat <<_LT_EOF 1>&2
7772
7773 *** Warning: the command libtool uses to detect shared libraries,
7774 *** $file_magic_cmd, produces output that libtool cannot recognize.
7775 *** The result is that libtool may fail to recognize shared libraries
7776 *** as such. This will affect the creation of libtool libraries that
7777 *** depend on shared libraries, but programs linked with such libtool
7778 *** libraries will work regardless of this problem. Nevertheless, you
7779 *** may want to report the problem to your system manager and/or to
7780 *** bug-libtool@gnu.org
7781
7782 _LT_EOF
7783 fi ;;
7784 esac
7785 fi
7786 break
7787 fi
7788 done
7789 IFS="$lt_save_ifs"
7790 MAGIC_CMD="$lt_save_MAGIC_CMD"
7791 ;;
7792 esac
7793 fi
7794
7795 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7796 if test -n "$MAGIC_CMD"; then
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7798 $as_echo "$MAGIC_CMD" >&6; }
7799 else
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801 $as_echo "no" >&6; }
7802 fi
7803
7804
7805 else
7806 MAGIC_CMD=:
7807 fi
7808 fi
7809
7810 fi
7811 ;;
7812 esac
7813
7814 # Use C for the default configuration in the libtool script
7815
7816 lt_save_CC="$CC"
7817 ac_ext=c
7818 ac_cpp='$CPP $CPPFLAGS'
7819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7822
7823
7824 # Source file extension for C test sources.
7825 ac_ext=c
7826
7827 # Object file extension for compiled C test sources.
7828 objext=o
7829 objext=$objext
7830
7831 # Code to be used in simple compile tests
7832 lt_simple_compile_test_code="int some_variable = 0;"
7833
7834 # Code to be used in simple link tests
7835 lt_simple_link_test_code='int main(){return(0);}'
7836
7837
7838
7839
7840
7841
7842
7843 # If no C compiler was specified, use CC.
7844 LTCC=${LTCC-"$CC"}
7845
7846 # If no C compiler flags were specified, use CFLAGS.
7847 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7848
7849 # Allow CC to be a program name with arguments.
7850 compiler=$CC
7851
7852 # Save the default compiler, since it gets overwritten when the other
7853 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7854 compiler_DEFAULT=$CC
7855
7856 # save warnings/boilerplate of simple test code
7857 ac_outfile=conftest.$ac_objext
7858 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7859 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7860 _lt_compiler_boilerplate=`cat conftest.err`
7861 $RM conftest*
7862
7863 ac_outfile=conftest.$ac_objext
7864 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7865 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7866 _lt_linker_boilerplate=`cat conftest.err`
7867 $RM -r conftest*
7868
7869
7870 ## CAVEAT EMPTOR:
7871 ## There is no encapsulation within the following macros, do not change
7872 ## the running order or otherwise move them around unless you know exactly
7873 ## what you are doing...
7874 if test -n "$compiler"; then
7875
7876 lt_prog_compiler_no_builtin_flag=
7877
7878 if test "$GCC" = yes; then
7879 case $cc_basename in
7880 nvcc*)
7881 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7882 *)
7883 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7884 esac
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7887 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7888 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7890 else
7891 lt_cv_prog_compiler_rtti_exceptions=no
7892 ac_outfile=conftest.$ac_objext
7893 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7894 lt_compiler_flag="-fno-rtti -fno-exceptions"
7895 # Insert the option either (1) after the last *FLAGS variable, or
7896 # (2) before a word containing "conftest.", or (3) at the end.
7897 # Note that $ac_compile itself does not contain backslashes and begins
7898 # with a dollar sign (not a hyphen), so the echo should work correctly.
7899 # The option is referenced via a variable to avoid confusing sed.
7900 lt_compile=`echo "$ac_compile" | $SED \
7901 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7902 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7903 -e 's:$: $lt_compiler_flag:'`
7904 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7905 (eval "$lt_compile" 2>conftest.err)
7906 ac_status=$?
7907 cat conftest.err >&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 if (exit $ac_status) && test -s "$ac_outfile"; then
7910 # The compiler can only warn and ignore the option if not recognized
7911 # So say no if there are warnings other than the usual output.
7912 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7913 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7914 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7915 lt_cv_prog_compiler_rtti_exceptions=yes
7916 fi
7917 fi
7918 $RM conftest*
7919
7920 fi
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7922 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7923
7924 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7925 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7926 else
7927 :
7928 fi
7929
7930 fi
7931
7932
7933
7934
7935
7936
7937 lt_prog_compiler_wl=
7938 lt_prog_compiler_pic=
7939 lt_prog_compiler_static=
7940
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7942 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7943
7944 if test "$GCC" = yes; then
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_static='-static'
7947
7948 case $host_os in
7949 aix*)
7950 # All AIX code is PIC.
7951 if test "$host_cpu" = ia64; then
7952 # AIX 5 now supports IA64 processor
7953 lt_prog_compiler_static='-Bstatic'
7954 fi
7955 ;;
7956
7957 amigaos*)
7958 case $host_cpu in
7959 powerpc)
7960 # see comment about AmigaOS4 .so support
7961 lt_prog_compiler_pic='-fPIC'
7962 ;;
7963 m68k)
7964 # FIXME: we need at least 68020 code to build shared libraries, but
7965 # adding the `-m68020' flag to GCC prevents building anything better,
7966 # like `-m68040'.
7967 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7968 ;;
7969 esac
7970 ;;
7971
7972 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7973 # PIC is the default for these OSes.
7974 ;;
7975
7976 mingw* | cygwin* | pw32* | os2* | cegcc*)
7977 # This hack is so that the source file can tell whether it is being
7978 # built for inclusion in a dll (and should export symbols for example).
7979 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7980 # (--disable-auto-import) libraries
7981 lt_prog_compiler_pic='-DDLL_EXPORT'
7982 ;;
7983
7984 darwin* | rhapsody*)
7985 # PIC is the default on this platform
7986 # Common symbols not allowed in MH_DYLIB files
7987 lt_prog_compiler_pic='-fno-common'
7988 ;;
7989
7990 haiku*)
7991 # PIC is the default for Haiku.
7992 # The "-static" flag exists, but is broken.
7993 lt_prog_compiler_static=
7994 ;;
7995
7996 hpux*)
7997 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7998 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7999 # sets the default TLS model and affects inlining.
8000 case $host_cpu in
8001 hppa*64*)
8002 # +Z the default
8003 ;;
8004 *)
8005 lt_prog_compiler_pic='-fPIC'
8006 ;;
8007 esac
8008 ;;
8009
8010 interix[3-9]*)
8011 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8012 # Instead, we relocate shared libraries at runtime.
8013 ;;
8014
8015 msdosdjgpp*)
8016 # Just because we use GCC doesn't mean we suddenly get shared libraries
8017 # on systems that don't support them.
8018 lt_prog_compiler_can_build_shared=no
8019 enable_shared=no
8020 ;;
8021
8022 *nto* | *qnx*)
8023 # QNX uses GNU C++, but need to define -shared option too, otherwise
8024 # it will coredump.
8025 lt_prog_compiler_pic='-fPIC -shared'
8026 ;;
8027
8028 sysv4*MP*)
8029 if test -d /usr/nec; then
8030 lt_prog_compiler_pic=-Kconform_pic
8031 fi
8032 ;;
8033
8034 *)
8035 lt_prog_compiler_pic='-fPIC'
8036 ;;
8037 esac
8038
8039 case $cc_basename in
8040 nvcc*) # Cuda Compiler Driver 2.2
8041 lt_prog_compiler_wl='-Xlinker '
8042 lt_prog_compiler_pic='-Xcompiler -fPIC'
8043 ;;
8044 esac
8045 else
8046 # PORTME Check for flag to pass linker flags through the system compiler.
8047 case $host_os in
8048 aix*)
8049 lt_prog_compiler_wl='-Wl,'
8050 if test "$host_cpu" = ia64; then
8051 # AIX 5 now supports IA64 processor
8052 lt_prog_compiler_static='-Bstatic'
8053 else
8054 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8055 fi
8056 ;;
8057
8058 mingw* | cygwin* | pw32* | os2* | cegcc*)
8059 # This hack is so that the source file can tell whether it is being
8060 # built for inclusion in a dll (and should export symbols for example).
8061 lt_prog_compiler_pic='-DDLL_EXPORT'
8062 ;;
8063
8064 hpux9* | hpux10* | hpux11*)
8065 lt_prog_compiler_wl='-Wl,'
8066 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8067 # not for PA HP-UX.
8068 case $host_cpu in
8069 hppa*64*|ia64*)
8070 # +Z the default
8071 ;;
8072 *)
8073 lt_prog_compiler_pic='+Z'
8074 ;;
8075 esac
8076 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8077 lt_prog_compiler_static='${wl}-a ${wl}archive'
8078 ;;
8079
8080 irix5* | irix6* | nonstopux*)
8081 lt_prog_compiler_wl='-Wl,'
8082 # PIC (with -KPIC) is the default.
8083 lt_prog_compiler_static='-non_shared'
8084 ;;
8085
8086 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8087 case $cc_basename in
8088 # old Intel for x86_64 which still supported -KPIC.
8089 ecc*)
8090 lt_prog_compiler_wl='-Wl,'
8091 lt_prog_compiler_pic='-KPIC'
8092 lt_prog_compiler_static='-static'
8093 ;;
8094 # icc used to be incompatible with GCC.
8095 # ICC 10 doesn't accept -KPIC any more.
8096 icc* | ifort*)
8097 lt_prog_compiler_wl='-Wl,'
8098 lt_prog_compiler_pic='-fPIC'
8099 lt_prog_compiler_static='-static'
8100 ;;
8101 # Lahey Fortran 8.1.
8102 lf95*)
8103 lt_prog_compiler_wl='-Wl,'
8104 lt_prog_compiler_pic='--shared'
8105 lt_prog_compiler_static='--static'
8106 ;;
8107 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8108 # Portland Group compilers (*not* the Pentium gcc compiler,
8109 # which looks to be a dead project)
8110 lt_prog_compiler_wl='-Wl,'
8111 lt_prog_compiler_pic='-fpic'
8112 lt_prog_compiler_static='-Bstatic'
8113 ;;
8114 ccc*)
8115 lt_prog_compiler_wl='-Wl,'
8116 # All Alpha code is PIC.
8117 lt_prog_compiler_static='-non_shared'
8118 ;;
8119 xl* | bgxl* | bgf* | mpixl*)
8120 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8121 lt_prog_compiler_wl='-Wl,'
8122 lt_prog_compiler_pic='-qpic'
8123 lt_prog_compiler_static='-qstaticlink'
8124 ;;
8125 *)
8126 case `$CC -V 2>&1 | sed 5q` in
8127 *Sun\ F* | *Sun*Fortran*)
8128 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8129 lt_prog_compiler_pic='-KPIC'
8130 lt_prog_compiler_static='-Bstatic'
8131 lt_prog_compiler_wl=''
8132 ;;
8133 *Sun\ C*)
8134 # Sun C 5.9
8135 lt_prog_compiler_pic='-KPIC'
8136 lt_prog_compiler_static='-Bstatic'
8137 lt_prog_compiler_wl='-Wl,'
8138 ;;
8139 esac
8140 ;;
8141 esac
8142 ;;
8143
8144 newsos6)
8145 lt_prog_compiler_pic='-KPIC'
8146 lt_prog_compiler_static='-Bstatic'
8147 ;;
8148
8149 *nto* | *qnx*)
8150 # QNX uses GNU C++, but need to define -shared option too, otherwise
8151 # it will coredump.
8152 lt_prog_compiler_pic='-fPIC -shared'
8153 ;;
8154
8155 osf3* | osf4* | osf5*)
8156 lt_prog_compiler_wl='-Wl,'
8157 # All OSF/1 code is PIC.
8158 lt_prog_compiler_static='-non_shared'
8159 ;;
8160
8161 rdos*)
8162 lt_prog_compiler_static='-non_shared'
8163 ;;
8164
8165 solaris*)
8166 lt_prog_compiler_pic='-KPIC'
8167 lt_prog_compiler_static='-Bstatic'
8168 case $cc_basename in
8169 f77* | f90* | f95*)
8170 lt_prog_compiler_wl='-Qoption ld ';;
8171 *)
8172 lt_prog_compiler_wl='-Wl,';;
8173 esac
8174 ;;
8175
8176 sunos4*)
8177 lt_prog_compiler_wl='-Qoption ld '
8178 lt_prog_compiler_pic='-PIC'
8179 lt_prog_compiler_static='-Bstatic'
8180 ;;
8181
8182 sysv4 | sysv4.2uw2* | sysv4.3*)
8183 lt_prog_compiler_wl='-Wl,'
8184 lt_prog_compiler_pic='-KPIC'
8185 lt_prog_compiler_static='-Bstatic'
8186 ;;
8187
8188 sysv4*MP*)
8189 if test -d /usr/nec ;then
8190 lt_prog_compiler_pic='-Kconform_pic'
8191 lt_prog_compiler_static='-Bstatic'
8192 fi
8193 ;;
8194
8195 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8196 lt_prog_compiler_wl='-Wl,'
8197 lt_prog_compiler_pic='-KPIC'
8198 lt_prog_compiler_static='-Bstatic'
8199 ;;
8200
8201 unicos*)
8202 lt_prog_compiler_wl='-Wl,'
8203 lt_prog_compiler_can_build_shared=no
8204 ;;
8205
8206 uts4*)
8207 lt_prog_compiler_pic='-pic'
8208 lt_prog_compiler_static='-Bstatic'
8209 ;;
8210
8211 *)
8212 lt_prog_compiler_can_build_shared=no
8213 ;;
8214 esac
8215 fi
8216
8217 case $host_os in
8218 # For platforms which do not support PIC, -DPIC is meaningless:
8219 *djgpp*)
8220 lt_prog_compiler_pic=
8221 ;;
8222 *)
8223 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8224 ;;
8225 esac
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8227 $as_echo "$lt_prog_compiler_pic" >&6; }
8228
8229
8230
8231
8232
8233
8234 #
8235 # Check to make sure the PIC flag actually works.
8236 #
8237 if test -n "$lt_prog_compiler_pic"; then
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8239 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8240 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8241 $as_echo_n "(cached) " >&6
8242 else
8243 lt_cv_prog_compiler_pic_works=no
8244 ac_outfile=conftest.$ac_objext
8245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8246 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8247 # Insert the option either (1) after the last *FLAGS variable, or
8248 # (2) before a word containing "conftest.", or (3) at the end.
8249 # Note that $ac_compile itself does not contain backslashes and begins
8250 # with a dollar sign (not a hyphen), so the echo should work correctly.
8251 # The option is referenced via a variable to avoid confusing sed.
8252 lt_compile=`echo "$ac_compile" | $SED \
8253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8255 -e 's:$: $lt_compiler_flag:'`
8256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8257 (eval "$lt_compile" 2>conftest.err)
8258 ac_status=$?
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 if (exit $ac_status) && test -s "$ac_outfile"; then
8262 # The compiler can only warn and ignore the option if not recognized
8263 # So say no if there are warnings other than the usual output.
8264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8265 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8266 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8267 lt_cv_prog_compiler_pic_works=yes
8268 fi
8269 fi
8270 $RM conftest*
8271
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8274 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8275
8276 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8277 case $lt_prog_compiler_pic in
8278 "" | " "*) ;;
8279 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8280 esac
8281 else
8282 lt_prog_compiler_pic=
8283 lt_prog_compiler_can_build_shared=no
8284 fi
8285
8286 fi
8287
8288
8289
8290
8291
8292
8293 #
8294 # Check to make sure the static flag actually works.
8295 #
8296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8299 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 lt_cv_prog_compiler_static_works=no
8303 save_LDFLAGS="$LDFLAGS"
8304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8307 # The linker can only warn and ignore the option if not recognized
8308 # So say no if there are warnings
8309 if test -s conftest.err; then
8310 # Append any errors to the config.log.
8311 cat conftest.err 1>&5
8312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8314 if diff conftest.exp conftest.er2 >/dev/null; then
8315 lt_cv_prog_compiler_static_works=yes
8316 fi
8317 else
8318 lt_cv_prog_compiler_static_works=yes
8319 fi
8320 fi
8321 $RM -r conftest*
8322 LDFLAGS="$save_LDFLAGS"
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8327
8328 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8329 :
8330 else
8331 lt_prog_compiler_static=
8332 fi
8333
8334
8335
8336
8337
8338
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8342 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345 lt_cv_prog_compiler_c_o=no
8346 $RM -r conftest 2>/dev/null
8347 mkdir conftest
8348 cd conftest
8349 mkdir out
8350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351
8352 lt_compiler_flag="-o out/conftest2.$ac_objext"
8353 # Insert the option either (1) after the last *FLAGS variable, or
8354 # (2) before a word containing "conftest.", or (3) at the end.
8355 # Note that $ac_compile itself does not contain backslashes and begins
8356 # with a dollar sign (not a hyphen), so the echo should work correctly.
8357 lt_compile=`echo "$ac_compile" | $SED \
8358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360 -e 's:$: $lt_compiler_flag:'`
8361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8362 (eval "$lt_compile" 2>out/conftest.err)
8363 ac_status=$?
8364 cat out/conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8367 then
8368 # The compiler can only warn and ignore the option if not recognized
8369 # So say no if there are warnings
8370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8373 lt_cv_prog_compiler_c_o=yes
8374 fi
8375 fi
8376 chmod u+w . 2>&5
8377 $RM conftest*
8378 # SGI C++ compiler will create directory out/ii_files/ for
8379 # template instantiation
8380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8381 $RM out/* && rmdir out
8382 cd ..
8383 $RM -r conftest
8384 $RM conftest*
8385
8386 fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8389
8390
8391
8392
8393
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8397 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
8399 else
8400 lt_cv_prog_compiler_c_o=no
8401 $RM -r conftest 2>/dev/null
8402 mkdir conftest
8403 cd conftest
8404 mkdir out
8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8406
8407 lt_compiler_flag="-o out/conftest2.$ac_objext"
8408 # Insert the option either (1) after the last *FLAGS variable, or
8409 # (2) before a word containing "conftest.", or (3) at the end.
8410 # Note that $ac_compile itself does not contain backslashes and begins
8411 # with a dollar sign (not a hyphen), so the echo should work correctly.
8412 lt_compile=`echo "$ac_compile" | $SED \
8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415 -e 's:$: $lt_compiler_flag:'`
8416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8417 (eval "$lt_compile" 2>out/conftest.err)
8418 ac_status=$?
8419 cat out/conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8422 then
8423 # The compiler can only warn and ignore the option if not recognized
8424 # So say no if there are warnings
8425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8428 lt_cv_prog_compiler_c_o=yes
8429 fi
8430 fi
8431 chmod u+w . 2>&5
8432 $RM conftest*
8433 # SGI C++ compiler will create directory out/ii_files/ for
8434 # template instantiation
8435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8436 $RM out/* && rmdir out
8437 cd ..
8438 $RM -r conftest
8439 $RM conftest*
8440
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8444
8445
8446
8447
8448 hard_links="nottested"
8449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8450 # do not overwrite the value of need_locks provided by the user
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8452 $as_echo_n "checking if we can lock with hard links... " >&6; }
8453 hard_links=yes
8454 $RM conftest*
8455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8456 touch conftest.a
8457 ln conftest.a conftest.b 2>&5 || hard_links=no
8458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8460 $as_echo "$hard_links" >&6; }
8461 if test "$hard_links" = no; then
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8464 need_locks=warn
8465 fi
8466 else
8467 need_locks=no
8468 fi
8469
8470
8471
8472
8473
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8477
8478 runpath_var=
8479 allow_undefined_flag=
8480 always_export_symbols=no
8481 archive_cmds=
8482 archive_expsym_cmds=
8483 compiler_needs_object=no
8484 enable_shared_with_static_runtimes=no
8485 export_dynamic_flag_spec=
8486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8487 hardcode_automatic=no
8488 hardcode_direct=no
8489 hardcode_direct_absolute=no
8490 hardcode_libdir_flag_spec=
8491 hardcode_libdir_flag_spec_ld=
8492 hardcode_libdir_separator=
8493 hardcode_minus_L=no
8494 hardcode_shlibpath_var=unsupported
8495 inherit_rpath=no
8496 link_all_deplibs=unknown
8497 module_cmds=
8498 module_expsym_cmds=
8499 old_archive_from_new_cmds=
8500 old_archive_from_expsyms_cmds=
8501 thread_safe_flag_spec=
8502 whole_archive_flag_spec=
8503 # include_expsyms should be a list of space-separated symbols to be *always*
8504 # included in the symbol list
8505 include_expsyms=
8506 # exclude_expsyms can be an extended regexp of symbols to exclude
8507 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8508 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8509 # as well as any symbol that contains `d'.
8510 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8511 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8512 # platforms (ab)use it in PIC code, but their linkers get confused if
8513 # the symbol is explicitly referenced. Since portable code cannot
8514 # rely on this symbol name, it's probably fine to never include it in
8515 # preloaded symbol tables.
8516 # Exclude shared library initialization/finalization symbols.
8517 extract_expsyms_cmds=
8518
8519 case $host_os in
8520 cygwin* | mingw* | pw32* | cegcc*)
8521 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8522 # When not using gcc, we currently assume that we are using
8523 # Microsoft Visual C++.
8524 if test "$GCC" != yes; then
8525 with_gnu_ld=no
8526 fi
8527 ;;
8528 interix*)
8529 # we just hope/assume this is gcc and not c89 (= MSVC++)
8530 with_gnu_ld=yes
8531 ;;
8532 openbsd*)
8533 with_gnu_ld=no
8534 ;;
8535 esac
8536
8537 ld_shlibs=yes
8538
8539 # On some targets, GNU ld is compatible enough with the native linker
8540 # that we're better off using the native interface for both.
8541 lt_use_gnu_ld_interface=no
8542 if test "$with_gnu_ld" = yes; then
8543 case $host_os in
8544 aix*)
8545 # The AIX port of GNU ld has always aspired to compatibility
8546 # with the native linker. However, as the warning in the GNU ld
8547 # block says, versions before 2.19.5* couldn't really create working
8548 # shared libraries, regardless of the interface used.
8549 case `$LD -v 2>&1` in
8550 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8551 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8552 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8553 *)
8554 lt_use_gnu_ld_interface=yes
8555 ;;
8556 esac
8557 ;;
8558 *)
8559 lt_use_gnu_ld_interface=yes
8560 ;;
8561 esac
8562 fi
8563
8564 if test "$lt_use_gnu_ld_interface" = yes; then
8565 # If archive_cmds runs LD, not CC, wlarc should be empty
8566 wlarc='${wl}'
8567
8568 # Set some defaults for GNU ld with shared library support. These
8569 # are reset later if shared libraries are not supported. Putting them
8570 # here allows them to be overridden if necessary.
8571 runpath_var=LD_RUN_PATH
8572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8573 export_dynamic_flag_spec='${wl}--export-dynamic'
8574 # ancient GNU ld didn't support --whole-archive et. al.
8575 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8576 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8577 else
8578 whole_archive_flag_spec=
8579 fi
8580 supports_anon_versioning=no
8581 case `$LD -v 2>&1` in
8582 *GNU\ gold*) supports_anon_versioning=yes ;;
8583 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8584 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8585 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8586 *\ 2.11.*) ;; # other 2.11 versions
8587 *) supports_anon_versioning=yes ;;
8588 esac
8589
8590 # See if GNU ld supports shared libraries.
8591 case $host_os in
8592 aix[3-9]*)
8593 # On AIX/PPC, the GNU linker is very broken
8594 if test "$host_cpu" != ia64; then
8595 ld_shlibs=no
8596 cat <<_LT_EOF 1>&2
8597
8598 *** Warning: the GNU linker, at least up to release 2.19, is reported
8599 *** to be unable to reliably create shared libraries on AIX.
8600 *** Therefore, libtool is disabling shared libraries support. If you
8601 *** really care for shared libraries, you may want to install binutils
8602 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8603 *** You will then need to restart the configuration process.
8604
8605 _LT_EOF
8606 fi
8607 ;;
8608
8609 amigaos*)
8610 case $host_cpu in
8611 powerpc)
8612 # see comment about AmigaOS4 .so support
8613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614 archive_expsym_cmds=''
8615 ;;
8616 m68k)
8617 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)'
8618 hardcode_libdir_flag_spec='-L$libdir'
8619 hardcode_minus_L=yes
8620 ;;
8621 esac
8622 ;;
8623
8624 beos*)
8625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8626 allow_undefined_flag=unsupported
8627 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8628 # support --undefined. This deserves some investigation. FIXME
8629 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630 else
8631 ld_shlibs=no
8632 fi
8633 ;;
8634
8635 cygwin* | mingw* | pw32* | cegcc*)
8636 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8637 # as there is no search path for DLLs.
8638 hardcode_libdir_flag_spec='-L$libdir'
8639 export_dynamic_flag_spec='${wl}--export-all-symbols'
8640 allow_undefined_flag=unsupported
8641 always_export_symbols=no
8642 enable_shared_with_static_runtimes=yes
8643 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8644
8645 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8647 # If the export-symbols file already is a .def file (1st line
8648 # is EXPORTS), use it as is; otherwise, prepend...
8649 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8650 cp $export_symbols $output_objdir/$soname.def;
8651 else
8652 echo EXPORTS > $output_objdir/$soname.def;
8653 cat $export_symbols >> $output_objdir/$soname.def;
8654 fi~
8655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8656 else
8657 ld_shlibs=no
8658 fi
8659 ;;
8660
8661 haiku*)
8662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663 link_all_deplibs=yes
8664 ;;
8665
8666 interix[3-9]*)
8667 hardcode_direct=no
8668 hardcode_shlibpath_var=no
8669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8670 export_dynamic_flag_spec='${wl}-E'
8671 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8672 # Instead, shared libraries are loaded at an image base (0x10000000 by
8673 # default) and relocated if they conflict, which is a slow very memory
8674 # consuming and fragmenting process. To avoid this, we pick a random,
8675 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8676 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8678 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'
8679 ;;
8680
8681 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8682 tmp_diet=no
8683 if test "$host_os" = linux-dietlibc; then
8684 case $cc_basename in
8685 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8686 esac
8687 fi
8688 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8689 && test "$tmp_diet" = no
8690 then
8691 tmp_addflag=
8692 tmp_sharedflag='-shared'
8693 case $cc_basename,$host_cpu in
8694 pgcc*) # Portland Group C compiler
8695 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'
8696 tmp_addflag=' $pic_flag'
8697 ;;
8698 pgf77* | pgf90* | pgf95* | pgfortran*)
8699 # Portland Group f77 and f90 compilers
8700 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'
8701 tmp_addflag=' $pic_flag -Mnomain' ;;
8702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8703 tmp_addflag=' -i_dynamic' ;;
8704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8705 tmp_addflag=' -i_dynamic -nofor_main' ;;
8706 ifc* | ifort*) # Intel Fortran compiler
8707 tmp_addflag=' -nofor_main' ;;
8708 lf95*) # Lahey Fortran 8.1
8709 whole_archive_flag_spec=
8710 tmp_sharedflag='--shared' ;;
8711 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8712 tmp_sharedflag='-qmkshrobj'
8713 tmp_addflag= ;;
8714 nvcc*) # Cuda Compiler Driver 2.2
8715 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8716 compiler_needs_object=yes
8717 ;;
8718 esac
8719 case `$CC -V 2>&1 | sed 5q` in
8720 *Sun\ C*) # Sun C 5.9
8721 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'
8722 compiler_needs_object=yes
8723 tmp_sharedflag='-G' ;;
8724 *Sun\ F*) # Sun Fortran 8.3
8725 tmp_sharedflag='-G' ;;
8726 esac
8727 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728
8729 if test "x$supports_anon_versioning" = xyes; then
8730 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8732 echo "local: *; };" >> $output_objdir/$libname.ver~
8733 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8734 fi
8735
8736 case $cc_basename in
8737 xlf* | bgf* | bgxlf* | mpixlf*)
8738 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8739 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8740 hardcode_libdir_flag_spec=
8741 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8742 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8743 if test "x$supports_anon_versioning" = xyes; then
8744 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8746 echo "local: *; };" >> $output_objdir/$libname.ver~
8747 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8748 fi
8749 ;;
8750 esac
8751 else
8752 ld_shlibs=no
8753 fi
8754 ;;
8755
8756 netbsd*)
8757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8758 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8759 wlarc=
8760 else
8761 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8763 fi
8764 ;;
8765
8766 solaris*)
8767 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8768 ld_shlibs=no
8769 cat <<_LT_EOF 1>&2
8770
8771 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8772 *** create shared libraries on Solaris systems. Therefore, libtool
8773 *** is disabling shared libraries support. We urge you to upgrade GNU
8774 *** binutils to release 2.9.1 or newer. Another option is to modify
8775 *** your PATH or compiler configuration so that the native linker is
8776 *** used, and then restart.
8777
8778 _LT_EOF
8779 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8780 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8781 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8782 else
8783 ld_shlibs=no
8784 fi
8785 ;;
8786
8787 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8788 case `$LD -v 2>&1` in
8789 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8790 ld_shlibs=no
8791 cat <<_LT_EOF 1>&2
8792
8793 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8794 *** reliably create shared libraries on SCO systems. Therefore, libtool
8795 *** is disabling shared libraries support. We urge you to upgrade GNU
8796 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8797 *** your PATH or compiler configuration so that the native linker is
8798 *** used, and then restart.
8799
8800 _LT_EOF
8801 ;;
8802 *)
8803 # For security reasons, it is highly recommended that you always
8804 # use absolute paths for naming shared libraries, and exclude the
8805 # DT_RUNPATH tag from executables and libraries. But doing so
8806 # requires that you compile everything twice, which is a pain.
8807 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8809 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8810 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8811 else
8812 ld_shlibs=no
8813 fi
8814 ;;
8815 esac
8816 ;;
8817
8818 sunos4*)
8819 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8820 wlarc=
8821 hardcode_direct=yes
8822 hardcode_shlibpath_var=no
8823 ;;
8824
8825 *)
8826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8829 else
8830 ld_shlibs=no
8831 fi
8832 ;;
8833 esac
8834
8835 if test "$ld_shlibs" = no; then
8836 runpath_var=
8837 hardcode_libdir_flag_spec=
8838 export_dynamic_flag_spec=
8839 whole_archive_flag_spec=
8840 fi
8841 else
8842 # PORTME fill in a description of your system's linker (not GNU ld)
8843 case $host_os in
8844 aix3*)
8845 allow_undefined_flag=unsupported
8846 always_export_symbols=yes
8847 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'
8848 # Note: this linker hardcodes the directories in LIBPATH if there
8849 # are no directories specified by -L.
8850 hardcode_minus_L=yes
8851 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8852 # Neither direct hardcoding nor static linking is supported with a
8853 # broken collect2.
8854 hardcode_direct=unsupported
8855 fi
8856 ;;
8857
8858 aix[4-9]*)
8859 if test "$host_cpu" = ia64; then
8860 # On IA64, the linker does run time linking by default, so we don't
8861 # have to do anything special.
8862 aix_use_runtimelinking=no
8863 exp_sym_flag='-Bexport'
8864 no_entry_flag=""
8865 else
8866 # If we're using GNU nm, then we don't want the "-C" option.
8867 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8868 # Also, AIX nm treats weak defined symbols like other global
8869 # defined symbols, whereas GNU nm marks them as "W".
8870 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8871 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'
8872 else
8873 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'
8874 fi
8875 aix_use_runtimelinking=no
8876
8877 # Test if we are trying to use run time linking or normal
8878 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8879 # need to do runtime linking.
8880 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8881 for ld_flag in $LDFLAGS; do
8882 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8883 aix_use_runtimelinking=yes
8884 break
8885 fi
8886 done
8887 ;;
8888 esac
8889
8890 exp_sym_flag='-bexport'
8891 no_entry_flag='-bnoentry'
8892 fi
8893
8894 # When large executables or shared objects are built, AIX ld can
8895 # have problems creating the table of contents. If linking a library
8896 # or program results in "error TOC overflow" add -mminimal-toc to
8897 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8898 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8899
8900 archive_cmds=''
8901 hardcode_direct=yes
8902 hardcode_direct_absolute=yes
8903 hardcode_libdir_separator=':'
8904 link_all_deplibs=yes
8905 file_list_spec='${wl}-f,'
8906
8907 if test "$GCC" = yes; then
8908 case $host_os in aix4.[012]|aix4.[012].*)
8909 # We only want to do this on AIX 4.2 and lower, the check
8910 # below for broken collect2 doesn't work under 4.3+
8911 collect2name=`${CC} -print-prog-name=collect2`
8912 if test -f "$collect2name" &&
8913 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8914 then
8915 # We have reworked collect2
8916 :
8917 else
8918 # We have old collect2
8919 hardcode_direct=unsupported
8920 # It fails to find uninstalled libraries when the uninstalled
8921 # path is not listed in the libpath. Setting hardcode_minus_L
8922 # to unsupported forces relinking
8923 hardcode_minus_L=yes
8924 hardcode_libdir_flag_spec='-L$libdir'
8925 hardcode_libdir_separator=
8926 fi
8927 ;;
8928 esac
8929 shared_flag='-shared'
8930 if test "$aix_use_runtimelinking" = yes; then
8931 shared_flag="$shared_flag "'${wl}-G'
8932 fi
8933 else
8934 # not using gcc
8935 if test "$host_cpu" = ia64; then
8936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8937 # chokes on -Wl,-G. The following line is correct:
8938 shared_flag='-G'
8939 else
8940 if test "$aix_use_runtimelinking" = yes; then
8941 shared_flag='${wl}-G'
8942 else
8943 shared_flag='${wl}-bM:SRE'
8944 fi
8945 fi
8946 fi
8947
8948 export_dynamic_flag_spec='${wl}-bexpall'
8949 # It seems that -bexpall does not export symbols beginning with
8950 # underscore (_), so it is better to generate a list of symbols to export.
8951 always_export_symbols=yes
8952 if test "$aix_use_runtimelinking" = yes; then
8953 # Warning - without using the other runtime loading flags (-brtl),
8954 # -berok will link without error, but may produce a broken library.
8955 allow_undefined_flag='-berok'
8956 # Determine the default libpath from the value encoded in an
8957 # empty executable.
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960
8961 int
8962 main ()
8963 {
8964
8965 ;
8966 return 0;
8967 }
8968 _ACEOF
8969 if ac_fn_c_try_link "$LINENO"; then :
8970
8971 lt_aix_libpath_sed='
8972 /Import File Strings/,/^$/ {
8973 /^0/ {
8974 s/^0 *\(.*\)$/\1/
8975 p
8976 }
8977 }'
8978 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8979 # Check for a 64-bit object if we didn't find anything.
8980 if test -z "$aix_libpath"; then
8981 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8982 fi
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext \
8985 conftest$ac_exeext conftest.$ac_ext
8986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8987
8988 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8989 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"
8990 else
8991 if test "$host_cpu" = ia64; then
8992 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8993 allow_undefined_flag="-z nodefs"
8994 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"
8995 else
8996 # Determine the default libpath from the value encoded in an
8997 # empty executable.
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000
9001 int
9002 main ()
9003 {
9004
9005 ;
9006 return 0;
9007 }
9008 _ACEOF
9009 if ac_fn_c_try_link "$LINENO"; then :
9010
9011 lt_aix_libpath_sed='
9012 /Import File Strings/,/^$/ {
9013 /^0/ {
9014 s/^0 *\(.*\)$/\1/
9015 p
9016 }
9017 }'
9018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9019 # Check for a 64-bit object if we didn't find anything.
9020 if test -z "$aix_libpath"; then
9021 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9022 fi
9023 fi
9024 rm -f core conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9026 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9027
9028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9029 # Warning - without using the other run time loading flags,
9030 # -berok will link without error, but may produce a broken library.
9031 no_undefined_flag=' ${wl}-bernotok'
9032 allow_undefined_flag=' ${wl}-berok'
9033 if test "$with_gnu_ld" = yes; then
9034 # We only use this code for GNU lds that support --whole-archive.
9035 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9036 else
9037 # Exported symbols can be pulled into shared objects from archives
9038 whole_archive_flag_spec='$convenience'
9039 fi
9040 archive_cmds_need_lc=yes
9041 # This is similar to how AIX traditionally builds its shared libraries.
9042 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'
9043 fi
9044 fi
9045 ;;
9046
9047 amigaos*)
9048 case $host_cpu in
9049 powerpc)
9050 # see comment about AmigaOS4 .so support
9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds=''
9053 ;;
9054 m68k)
9055 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)'
9056 hardcode_libdir_flag_spec='-L$libdir'
9057 hardcode_minus_L=yes
9058 ;;
9059 esac
9060 ;;
9061
9062 bsdi[45]*)
9063 export_dynamic_flag_spec=-rdynamic
9064 ;;
9065
9066 cygwin* | mingw* | pw32* | cegcc*)
9067 # When not using gcc, we currently assume that we are using
9068 # Microsoft Visual C++.
9069 # hardcode_libdir_flag_spec is actually meaningless, as there is
9070 # no search path for DLLs.
9071 hardcode_libdir_flag_spec=' '
9072 allow_undefined_flag=unsupported
9073 # Tell ltmain to make .lib files, not .a files.
9074 libext=lib
9075 # Tell ltmain to make .dll files, not .so files.
9076 shrext_cmds=".dll"
9077 # FIXME: Setting linknames here is a bad hack.
9078 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9079 # The linker will automatically build a .lib file if we build a DLL.
9080 old_archive_from_new_cmds='true'
9081 # FIXME: Should let the user specify the lib program.
9082 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9083 fix_srcfile_path='`cygpath -w "$srcfile"`'
9084 enable_shared_with_static_runtimes=yes
9085 ;;
9086
9087 darwin* | rhapsody*)
9088
9089
9090 archive_cmds_need_lc=no
9091 hardcode_direct=no
9092 hardcode_automatic=yes
9093 hardcode_shlibpath_var=unsupported
9094 if test "$lt_cv_ld_force_load" = "yes"; then
9095 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\"`'
9096 else
9097 whole_archive_flag_spec=''
9098 fi
9099 link_all_deplibs=yes
9100 allow_undefined_flag="$_lt_dar_allow_undefined"
9101 case $cc_basename in
9102 ifort*) _lt_dar_can_shared=yes ;;
9103 *) _lt_dar_can_shared=$GCC ;;
9104 esac
9105 if test "$_lt_dar_can_shared" = "yes"; then
9106 output_verbose_link_cmd=func_echo_all
9107 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9108 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9109 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}"
9110 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}"
9111
9112 else
9113 ld_shlibs=no
9114 fi
9115
9116 ;;
9117
9118 dgux*)
9119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9120 hardcode_libdir_flag_spec='-L$libdir'
9121 hardcode_shlibpath_var=no
9122 ;;
9123
9124 freebsd1*)
9125 ld_shlibs=no
9126 ;;
9127
9128 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9129 # support. Future versions do this automatically, but an explicit c++rt0.o
9130 # does not break anything, and helps significantly (at the cost of a little
9131 # extra space).
9132 freebsd2.2*)
9133 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9134 hardcode_libdir_flag_spec='-R$libdir'
9135 hardcode_direct=yes
9136 hardcode_shlibpath_var=no
9137 ;;
9138
9139 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9140 freebsd2*)
9141 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9142 hardcode_direct=yes
9143 hardcode_minus_L=yes
9144 hardcode_shlibpath_var=no
9145 ;;
9146
9147 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9148 freebsd* | dragonfly*)
9149 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9150 hardcode_libdir_flag_spec='-R$libdir'
9151 hardcode_direct=yes
9152 hardcode_shlibpath_var=no
9153 ;;
9154
9155 hpux9*)
9156 if test "$GCC" = yes; then
9157 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'
9158 else
9159 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'
9160 fi
9161 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9162 hardcode_libdir_separator=:
9163 hardcode_direct=yes
9164
9165 # hardcode_minus_L: Not really in the search PATH,
9166 # but as the default location of the library.
9167 hardcode_minus_L=yes
9168 export_dynamic_flag_spec='${wl}-E'
9169 ;;
9170
9171 hpux10*)
9172 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9173 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9174 else
9175 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9176 fi
9177 if test "$with_gnu_ld" = no; then
9178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9179 hardcode_libdir_flag_spec_ld='+b $libdir'
9180 hardcode_libdir_separator=:
9181 hardcode_direct=yes
9182 hardcode_direct_absolute=yes
9183 export_dynamic_flag_spec='${wl}-E'
9184 # hardcode_minus_L: Not really in the search PATH,
9185 # but as the default location of the library.
9186 hardcode_minus_L=yes
9187 fi
9188 ;;
9189
9190 hpux11*)
9191 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9192 case $host_cpu in
9193 hppa*64*)
9194 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9195 ;;
9196 ia64*)
9197 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9198 ;;
9199 *)
9200 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9201 ;;
9202 esac
9203 else
9204 case $host_cpu in
9205 hppa*64*)
9206 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9207 ;;
9208 ia64*)
9209 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9210 ;;
9211 *)
9212
9213 # Older versions of the 11.00 compiler do not understand -b yet
9214 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9216 $as_echo_n "checking if $CC understands -b... " >&6; }
9217 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 lt_cv_prog_compiler__b=no
9221 save_LDFLAGS="$LDFLAGS"
9222 LDFLAGS="$LDFLAGS -b"
9223 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9225 # The linker can only warn and ignore the option if not recognized
9226 # So say no if there are warnings
9227 if test -s conftest.err; then
9228 # Append any errors to the config.log.
9229 cat conftest.err 1>&5
9230 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9232 if diff conftest.exp conftest.er2 >/dev/null; then
9233 lt_cv_prog_compiler__b=yes
9234 fi
9235 else
9236 lt_cv_prog_compiler__b=yes
9237 fi
9238 fi
9239 $RM -r conftest*
9240 LDFLAGS="$save_LDFLAGS"
9241
9242 fi
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9244 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9245
9246 if test x"$lt_cv_prog_compiler__b" = xyes; then
9247 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9248 else
9249 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9250 fi
9251
9252 ;;
9253 esac
9254 fi
9255 if test "$with_gnu_ld" = no; then
9256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9257 hardcode_libdir_separator=:
9258
9259 case $host_cpu in
9260 hppa*64*|ia64*)
9261 hardcode_direct=no
9262 hardcode_shlibpath_var=no
9263 ;;
9264 *)
9265 hardcode_direct=yes
9266 hardcode_direct_absolute=yes
9267 export_dynamic_flag_spec='${wl}-E'
9268
9269 # hardcode_minus_L: Not really in the search PATH,
9270 # but as the default location of the library.
9271 hardcode_minus_L=yes
9272 ;;
9273 esac
9274 fi
9275 ;;
9276
9277 irix5* | irix6* | nonstopux*)
9278 if test "$GCC" = yes; then
9279 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'
9280 # Try to use the -exported_symbol ld option, if it does not
9281 # work, assume that -exports_file does not work either and
9282 # implicitly export all symbols.
9283 save_LDFLAGS="$LDFLAGS"
9284 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 int foo(void) {}
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290 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'
9291
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext \
9294 conftest$ac_exeext conftest.$ac_ext
9295 LDFLAGS="$save_LDFLAGS"
9296 else
9297 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'
9298 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'
9299 fi
9300 archive_cmds_need_lc='no'
9301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302 hardcode_libdir_separator=:
9303 inherit_rpath=yes
9304 link_all_deplibs=yes
9305 ;;
9306
9307 netbsd*)
9308 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9310 else
9311 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9312 fi
9313 hardcode_libdir_flag_spec='-R$libdir'
9314 hardcode_direct=yes
9315 hardcode_shlibpath_var=no
9316 ;;
9317
9318 newsos6)
9319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320 hardcode_direct=yes
9321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9322 hardcode_libdir_separator=:
9323 hardcode_shlibpath_var=no
9324 ;;
9325
9326 *nto* | *qnx*)
9327 ;;
9328
9329 openbsd*)
9330 if test -f /usr/libexec/ld.so; then
9331 hardcode_direct=yes
9332 hardcode_shlibpath_var=no
9333 hardcode_direct_absolute=yes
9334 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9335 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9336 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9337 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9338 export_dynamic_flag_spec='${wl}-E'
9339 else
9340 case $host_os in
9341 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_libdir_flag_spec='-R$libdir'
9344 ;;
9345 *)
9346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9347 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9348 ;;
9349 esac
9350 fi
9351 else
9352 ld_shlibs=no
9353 fi
9354 ;;
9355
9356 os2*)
9357 hardcode_libdir_flag_spec='-L$libdir'
9358 hardcode_minus_L=yes
9359 allow_undefined_flag=unsupported
9360 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'
9361 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9362 ;;
9363
9364 osf3*)
9365 if test "$GCC" = yes; then
9366 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9367 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'
9368 else
9369 allow_undefined_flag=' -expect_unresolved \*'
9370 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'
9371 fi
9372 archive_cmds_need_lc='no'
9373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374 hardcode_libdir_separator=:
9375 ;;
9376
9377 osf4* | osf5*) # as osf3* with the addition of -msym flag
9378 if test "$GCC" = yes; then
9379 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9380 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'
9381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9382 else
9383 allow_undefined_flag=' -expect_unresolved \*'
9384 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'
9385 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~
9386 $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'
9387
9388 # Both c and cxx compiler support -rpath directly
9389 hardcode_libdir_flag_spec='-rpath $libdir'
9390 fi
9391 archive_cmds_need_lc='no'
9392 hardcode_libdir_separator=:
9393 ;;
9394
9395 solaris*)
9396 no_undefined_flag=' -z defs'
9397 if test "$GCC" = yes; then
9398 wlarc='${wl}'
9399 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9400 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9401 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9402 else
9403 case `$CC -V 2>&1` in
9404 *"Compilers 5.0"*)
9405 wlarc=''
9406 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9407 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9408 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9409 ;;
9410 *)
9411 wlarc='${wl}'
9412 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9413 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9414 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9415 ;;
9416 esac
9417 fi
9418 hardcode_libdir_flag_spec='-R$libdir'
9419 hardcode_shlibpath_var=no
9420 case $host_os in
9421 solaris2.[0-5] | solaris2.[0-5].*) ;;
9422 *)
9423 # The compiler driver will combine and reorder linker options,
9424 # but understands `-z linker_flag'. GCC discards it without `$wl',
9425 # but is careful enough not to reorder.
9426 # Supported since Solaris 2.6 (maybe 2.5.1?)
9427 if test "$GCC" = yes; then
9428 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9429 else
9430 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9431 fi
9432 ;;
9433 esac
9434 link_all_deplibs=yes
9435 ;;
9436
9437 sunos4*)
9438 if test "x$host_vendor" = xsequent; then
9439 # Use $CC to link under sequent, because it throws in some extra .o
9440 # files that make .init and .fini sections work.
9441 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9442 else
9443 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9444 fi
9445 hardcode_libdir_flag_spec='-L$libdir'
9446 hardcode_direct=yes
9447 hardcode_minus_L=yes
9448 hardcode_shlibpath_var=no
9449 ;;
9450
9451 sysv4)
9452 case $host_vendor in
9453 sni)
9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_direct=yes # is this really true???
9456 ;;
9457 siemens)
9458 ## LD is ld it makes a PLAMLIB
9459 ## CC just makes a GrossModule.
9460 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9461 reload_cmds='$CC -r -o $output$reload_objs'
9462 hardcode_direct=no
9463 ;;
9464 motorola)
9465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9467 ;;
9468 esac
9469 runpath_var='LD_RUN_PATH'
9470 hardcode_shlibpath_var=no
9471 ;;
9472
9473 sysv4.3*)
9474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475 hardcode_shlibpath_var=no
9476 export_dynamic_flag_spec='-Bexport'
9477 ;;
9478
9479 sysv4*MP*)
9480 if test -d /usr/nec; then
9481 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9482 hardcode_shlibpath_var=no
9483 runpath_var=LD_RUN_PATH
9484 hardcode_runpath_var=yes
9485 ld_shlibs=yes
9486 fi
9487 ;;
9488
9489 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9490 no_undefined_flag='${wl}-z,text'
9491 archive_cmds_need_lc=no
9492 hardcode_shlibpath_var=no
9493 runpath_var='LD_RUN_PATH'
9494
9495 if test "$GCC" = yes; then
9496 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9497 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9498 else
9499 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9500 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9501 fi
9502 ;;
9503
9504 sysv5* | sco3.2v5* | sco5v6*)
9505 # Note: We can NOT use -z defs as we might desire, because we do not
9506 # link with -lc, and that would cause any symbols used from libc to
9507 # always be unresolved, which means just about no library would
9508 # ever link correctly. If we're not using GNU ld we use -z text
9509 # though, which does catch some bad symbols but isn't as heavy-handed
9510 # as -z defs.
9511 no_undefined_flag='${wl}-z,text'
9512 allow_undefined_flag='${wl}-z,nodefs'
9513 archive_cmds_need_lc=no
9514 hardcode_shlibpath_var=no
9515 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9516 hardcode_libdir_separator=':'
9517 link_all_deplibs=yes
9518 export_dynamic_flag_spec='${wl}-Bexport'
9519 runpath_var='LD_RUN_PATH'
9520
9521 if test "$GCC" = yes; then
9522 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9523 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9524 else
9525 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9526 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9527 fi
9528 ;;
9529
9530 uts4*)
9531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532 hardcode_libdir_flag_spec='-L$libdir'
9533 hardcode_shlibpath_var=no
9534 ;;
9535
9536 *)
9537 ld_shlibs=no
9538 ;;
9539 esac
9540
9541 if test x$host_vendor = xsni; then
9542 case $host in
9543 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9544 export_dynamic_flag_spec='${wl}-Blargedynsym'
9545 ;;
9546 esac
9547 fi
9548 fi
9549
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9551 $as_echo "$ld_shlibs" >&6; }
9552 test "$ld_shlibs" = no && can_build_shared=no
9553
9554 with_gnu_ld=$with_gnu_ld
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570 #
9571 # Do we need to explicitly link libc?
9572 #
9573 case "x$archive_cmds_need_lc" in
9574 x|xyes)
9575 # Assume -lc should be added
9576 archive_cmds_need_lc=yes
9577
9578 if test "$enable_shared" = yes && test "$GCC" = yes; then
9579 case $archive_cmds in
9580 *'~'*)
9581 # FIXME: we may have to deal with multi-command sequences.
9582 ;;
9583 '$CC '*)
9584 # Test whether the compiler implicitly links with -lc since on some
9585 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9586 # to ld, don't add -lc before -lgcc.
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9588 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9589 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9590 $as_echo_n "(cached) " >&6
9591 else
9592 $RM conftest*
9593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9594
9595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9596 (eval $ac_compile) 2>&5
9597 ac_status=$?
9598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9599 test $ac_status = 0; } 2>conftest.err; then
9600 soname=conftest
9601 lib=conftest
9602 libobjs=conftest.$ac_objext
9603 deplibs=
9604 wl=$lt_prog_compiler_wl
9605 pic_flag=$lt_prog_compiler_pic
9606 compiler_flags=-v
9607 linker_flags=-v
9608 verstring=
9609 output_objdir=.
9610 libname=conftest
9611 lt_save_allow_undefined_flag=$allow_undefined_flag
9612 allow_undefined_flag=
9613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9614 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9615 ac_status=$?
9616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9617 test $ac_status = 0; }
9618 then
9619 lt_cv_archive_cmds_need_lc=no
9620 else
9621 lt_cv_archive_cmds_need_lc=yes
9622 fi
9623 allow_undefined_flag=$lt_save_allow_undefined_flag
9624 else
9625 cat conftest.err 1>&5
9626 fi
9627 $RM conftest*
9628
9629 fi
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9631 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9632 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9633 ;;
9634 esac
9635 fi
9636 ;;
9637 esac
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9796 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9797
9798 if test "$GCC" = yes; then
9799 case $host_os in
9800 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9801 *) lt_awk_arg="/^libraries:/" ;;
9802 esac
9803 case $host_os in
9804 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9805 *) lt_sed_strip_eq="s,=/,/,g" ;;
9806 esac
9807 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9808 case $lt_search_path_spec in
9809 *\;*)
9810 # if the path contains ";" then we assume it to be the separator
9811 # otherwise default to the standard path separator (i.e. ":") - it is
9812 # assumed that no part of a normal pathname contains ";" but that should
9813 # okay in the real world where ";" in dirpaths is itself problematic.
9814 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9815 ;;
9816 *)
9817 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9818 ;;
9819 esac
9820 # Ok, now we have the path, separated by spaces, we can step through it
9821 # and add multilib dir if necessary.
9822 lt_tmp_lt_search_path_spec=
9823 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9824 for lt_sys_path in $lt_search_path_spec; do
9825 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9826 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9827 else
9828 test -d "$lt_sys_path" && \
9829 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9830 fi
9831 done
9832 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9833 BEGIN {RS=" "; FS="/|\n";} {
9834 lt_foo="";
9835 lt_count=0;
9836 for (lt_i = NF; lt_i > 0; lt_i--) {
9837 if ($lt_i != "" && $lt_i != ".") {
9838 if ($lt_i == "..") {
9839 lt_count++;
9840 } else {
9841 if (lt_count == 0) {
9842 lt_foo="/" $lt_i lt_foo;
9843 } else {
9844 lt_count--;
9845 }
9846 }
9847 }
9848 }
9849 if (lt_foo != "") { lt_freq[lt_foo]++; }
9850 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9851 }'`
9852 # AWK program above erroneously prepends '/' to C:/dos/paths
9853 # for these hosts.
9854 case $host_os in
9855 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9856 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9857 esac
9858 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9859 else
9860 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9861 fi
9862 library_names_spec=
9863 libname_spec='lib$name'
9864 soname_spec=
9865 shrext_cmds=".so"
9866 postinstall_cmds=
9867 postuninstall_cmds=
9868 finish_cmds=
9869 finish_eval=
9870 shlibpath_var=
9871 shlibpath_overrides_runpath=unknown
9872 version_type=none
9873 dynamic_linker="$host_os ld.so"
9874 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9875 need_lib_prefix=unknown
9876 hardcode_into_libs=no
9877
9878 # when you set need_version to no, make sure it does not cause -set_version
9879 # flags to be left without arguments
9880 need_version=unknown
9881
9882 case $host_os in
9883 aix3*)
9884 version_type=linux
9885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9886 shlibpath_var=LIBPATH
9887
9888 # AIX 3 has no versioning support, so we append a major version to the name.
9889 soname_spec='${libname}${release}${shared_ext}$major'
9890 ;;
9891
9892 aix[4-9]*)
9893 version_type=linux
9894 need_lib_prefix=no
9895 need_version=no
9896 hardcode_into_libs=yes
9897 if test "$host_cpu" = ia64; then
9898 # AIX 5 supports IA64
9899 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9900 shlibpath_var=LD_LIBRARY_PATH
9901 else
9902 # With GCC up to 2.95.x, collect2 would create an import file
9903 # for dependence libraries. The import file would start with
9904 # the line `#! .'. This would cause the generated library to
9905 # depend on `.', always an invalid library. This was fixed in
9906 # development snapshots of GCC prior to 3.0.
9907 case $host_os in
9908 aix4 | aix4.[01] | aix4.[01].*)
9909 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9910 echo ' yes '
9911 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9912 :
9913 else
9914 can_build_shared=no
9915 fi
9916 ;;
9917 esac
9918 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9919 # soname into executable. Probably we can add versioning support to
9920 # collect2, so additional links can be useful in future.
9921 if test "$aix_use_runtimelinking" = yes; then
9922 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9923 # instead of lib<name>.a to let people know that these are not
9924 # typical AIX shared libraries.
9925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926 else
9927 # We preserve .a as extension for shared libraries through AIX4.2
9928 # and later when we are not doing run time linking.
9929 library_names_spec='${libname}${release}.a $libname.a'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 fi
9932 shlibpath_var=LIBPATH
9933 fi
9934 ;;
9935
9936 amigaos*)
9937 case $host_cpu in
9938 powerpc)
9939 # Since July 2007 AmigaOS4 officially supports .so libraries.
9940 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942 ;;
9943 m68k)
9944 library_names_spec='$libname.ixlibrary $libname.a'
9945 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9946 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'
9947 ;;
9948 esac
9949 ;;
9950
9951 beos*)
9952 library_names_spec='${libname}${shared_ext}'
9953 dynamic_linker="$host_os ld.so"
9954 shlibpath_var=LIBRARY_PATH
9955 ;;
9956
9957 bsdi[45]*)
9958 version_type=linux
9959 need_version=no
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9965 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9966 # the default ld.so.conf also contains /usr/contrib/lib and
9967 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9968 # libtool to hard-code these into programs
9969 ;;
9970
9971 cygwin* | mingw* | pw32* | cegcc*)
9972 version_type=windows
9973 shrext_cmds=".dll"
9974 need_version=no
9975 need_lib_prefix=no
9976
9977 case $GCC,$host_os in
9978 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9979 library_names_spec='$libname.dll.a'
9980 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9981 postinstall_cmds='base_file=`basename \${file}`~
9982 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9983 dldir=$destdir/`dirname \$dlpath`~
9984 test -d \$dldir || mkdir -p \$dldir~
9985 $install_prog $dir/$dlname \$dldir/$dlname~
9986 chmod a+x \$dldir/$dlname~
9987 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9988 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9989 fi'
9990 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9991 dlpath=$dir/\$dldll~
9992 $RM \$dlpath'
9993 shlibpath_overrides_runpath=yes
9994
9995 case $host_os in
9996 cygwin*)
9997 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9998 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9999
10000 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10001 ;;
10002 mingw* | cegcc*)
10003 # MinGW DLLs use traditional 'lib' prefix
10004 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10005 ;;
10006 pw32*)
10007 # pw32 DLLs use 'pw' prefix rather than 'lib'
10008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10009 ;;
10010 esac
10011 ;;
10012
10013 *)
10014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10015 ;;
10016 esac
10017 dynamic_linker='Win32 ld.exe'
10018 # FIXME: first we should search . and the directory the executable is in
10019 shlibpath_var=PATH
10020 ;;
10021
10022 darwin* | rhapsody*)
10023 dynamic_linker="$host_os dyld"
10024 version_type=darwin
10025 need_lib_prefix=no
10026 need_version=no
10027 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10028 soname_spec='${libname}${release}${major}$shared_ext'
10029 shlibpath_overrides_runpath=yes
10030 shlibpath_var=DYLD_LIBRARY_PATH
10031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10032
10033 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10034 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10035 ;;
10036
10037 dgux*)
10038 version_type=linux
10039 need_lib_prefix=no
10040 need_version=no
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10042 soname_spec='${libname}${release}${shared_ext}$major'
10043 shlibpath_var=LD_LIBRARY_PATH
10044 ;;
10045
10046 freebsd1*)
10047 dynamic_linker=no
10048 ;;
10049
10050 freebsd* | dragonfly*)
10051 # DragonFly does not have aout. When/if they implement a new
10052 # versioning mechanism, adjust this.
10053 if test -x /usr/bin/objformat; then
10054 objformat=`/usr/bin/objformat`
10055 else
10056 case $host_os in
10057 freebsd[123]*) objformat=aout ;;
10058 *) objformat=elf ;;
10059 esac
10060 fi
10061 version_type=freebsd-$objformat
10062 case $version_type in
10063 freebsd-elf*)
10064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10065 need_version=no
10066 need_lib_prefix=no
10067 ;;
10068 freebsd-*)
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10070 need_version=yes
10071 ;;
10072 esac
10073 shlibpath_var=LD_LIBRARY_PATH
10074 case $host_os in
10075 freebsd2*)
10076 shlibpath_overrides_runpath=yes
10077 ;;
10078 freebsd3.[01]* | freebsdelf3.[01]*)
10079 shlibpath_overrides_runpath=yes
10080 hardcode_into_libs=yes
10081 ;;
10082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10084 shlibpath_overrides_runpath=no
10085 hardcode_into_libs=yes
10086 ;;
10087 *) # from 4.6 on, and DragonFly
10088 shlibpath_overrides_runpath=yes
10089 hardcode_into_libs=yes
10090 ;;
10091 esac
10092 ;;
10093
10094 gnu*)
10095 version_type=linux
10096 need_lib_prefix=no
10097 need_version=no
10098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10099 soname_spec='${libname}${release}${shared_ext}$major'
10100 shlibpath_var=LD_LIBRARY_PATH
10101 hardcode_into_libs=yes
10102 ;;
10103
10104 haiku*)
10105 version_type=linux
10106 need_lib_prefix=no
10107 need_version=no
10108 dynamic_linker="$host_os runtime_loader"
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 shlibpath_var=LIBRARY_PATH
10112 shlibpath_overrides_runpath=yes
10113 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10114 hardcode_into_libs=yes
10115 ;;
10116
10117 hpux9* | hpux10* | hpux11*)
10118 # Give a soname corresponding to the major version so that dld.sl refuses to
10119 # link against other versions.
10120 version_type=sunos
10121 need_lib_prefix=no
10122 need_version=no
10123 case $host_cpu in
10124 ia64*)
10125 shrext_cmds='.so'
10126 hardcode_into_libs=yes
10127 dynamic_linker="$host_os dld.so"
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 if test "X$HPUX_IA64_MODE" = X32; then
10133 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10134 else
10135 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10136 fi
10137 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10138 ;;
10139 hppa*64*)
10140 shrext_cmds='.sl'
10141 hardcode_into_libs=yes
10142 dynamic_linker="$host_os dld.sl"
10143 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10144 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10148 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10149 ;;
10150 *)
10151 shrext_cmds='.sl'
10152 dynamic_linker="$host_os dld.sl"
10153 shlibpath_var=SHLIB_PATH
10154 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156 soname_spec='${libname}${release}${shared_ext}$major'
10157 ;;
10158 esac
10159 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10160 postinstall_cmds='chmod 555 $lib'
10161 # or fails outright, so override atomically:
10162 install_override_mode=555
10163 ;;
10164
10165 interix[3-9]*)
10166 version_type=linux
10167 need_lib_prefix=no
10168 need_version=no
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10170 soname_spec='${libname}${release}${shared_ext}$major'
10171 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=no
10174 hardcode_into_libs=yes
10175 ;;
10176
10177 irix5* | irix6* | nonstopux*)
10178 case $host_os in
10179 nonstopux*) version_type=nonstopux ;;
10180 *)
10181 if test "$lt_cv_prog_gnu_ld" = yes; then
10182 version_type=linux
10183 else
10184 version_type=irix
10185 fi ;;
10186 esac
10187 need_lib_prefix=no
10188 need_version=no
10189 soname_spec='${libname}${release}${shared_ext}$major'
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10191 case $host_os in
10192 irix5* | nonstopux*)
10193 libsuff= shlibsuff=
10194 ;;
10195 *)
10196 case $LD in # libtool.m4 will add one of these switches to LD
10197 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10198 libsuff= shlibsuff= libmagic=32-bit;;
10199 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10200 libsuff=32 shlibsuff=N32 libmagic=N32;;
10201 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10202 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10203 *) libsuff= shlibsuff= libmagic=never-match;;
10204 esac
10205 ;;
10206 esac
10207 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10208 shlibpath_overrides_runpath=no
10209 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10210 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10211 hardcode_into_libs=yes
10212 ;;
10213
10214 # No shared lib support for Linux oldld, aout, or coff.
10215 linux*oldld* | linux*aout* | linux*coff*)
10216 dynamic_linker=no
10217 ;;
10218
10219 # This must be Linux ELF.
10220 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10221 version_type=linux
10222 need_lib_prefix=no
10223 need_version=no
10224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 soname_spec='${libname}${release}${shared_ext}$major'
10226 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=no
10229
10230 # Some binutils ld are patched to set DT_RUNPATH
10231 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 lt_cv_shlibpath_overrides_runpath=no
10235 save_LDFLAGS=$LDFLAGS
10236 save_libdir=$libdir
10237 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10238 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10241
10242 int
10243 main ()
10244 {
10245
10246 ;
10247 return 0;
10248 }
10249 _ACEOF
10250 if ac_fn_c_try_link "$LINENO"; then :
10251 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10252 lt_cv_shlibpath_overrides_runpath=yes
10253 fi
10254 fi
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LDFLAGS=$save_LDFLAGS
10258 libdir=$save_libdir
10259
10260 fi
10261
10262 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10263
10264 # This implies no fast_install, which is unacceptable.
10265 # Some rework will be needed to allow for fast_install
10266 # before this can be enabled.
10267 hardcode_into_libs=yes
10268
10269 # Append ld.so.conf contents to the search path
10270 if test -f /etc/ld.so.conf; then
10271 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' ' '`
10272 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10273 fi
10274
10275 # We used to test for /lib/ld.so.1 and disable shared libraries on
10276 # powerpc, because MkLinux only supported shared libraries with the
10277 # GNU dynamic linker. Since this was broken with cross compilers,
10278 # most powerpc-linux boxes support dynamic linking these days and
10279 # people can always --disable-shared, the test was removed, and we
10280 # assume the GNU/Linux dynamic linker is in use.
10281 dynamic_linker='GNU/Linux ld.so'
10282 ;;
10283
10284 netbsd*)
10285 version_type=sunos
10286 need_lib_prefix=no
10287 need_version=no
10288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10291 dynamic_linker='NetBSD (a.out) ld.so'
10292 else
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 dynamic_linker='NetBSD ld.elf_so'
10296 fi
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=yes
10299 hardcode_into_libs=yes
10300 ;;
10301
10302 newsos6)
10303 version_type=linux
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 ;;
10308
10309 *nto* | *qnx*)
10310 version_type=qnx
10311 need_lib_prefix=no
10312 need_version=no
10313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314 soname_spec='${libname}${release}${shared_ext}$major'
10315 shlibpath_var=LD_LIBRARY_PATH
10316 shlibpath_overrides_runpath=no
10317 hardcode_into_libs=yes
10318 dynamic_linker='ldqnx.so'
10319 ;;
10320
10321 openbsd*)
10322 version_type=sunos
10323 sys_lib_dlsearch_path_spec="/usr/lib"
10324 need_lib_prefix=no
10325 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10326 case $host_os in
10327 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10328 *) need_version=no ;;
10329 esac
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10332 shlibpath_var=LD_LIBRARY_PATH
10333 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10334 case $host_os in
10335 openbsd2.[89] | openbsd2.[89].*)
10336 shlibpath_overrides_runpath=no
10337 ;;
10338 *)
10339 shlibpath_overrides_runpath=yes
10340 ;;
10341 esac
10342 else
10343 shlibpath_overrides_runpath=yes
10344 fi
10345 ;;
10346
10347 os2*)
10348 libname_spec='$name'
10349 shrext_cmds=".dll"
10350 need_lib_prefix=no
10351 library_names_spec='$libname${shared_ext} $libname.a'
10352 dynamic_linker='OS/2 ld.exe'
10353 shlibpath_var=LIBPATH
10354 ;;
10355
10356 osf3* | osf4* | osf5*)
10357 version_type=osf
10358 need_lib_prefix=no
10359 need_version=no
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10364 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10365 ;;
10366
10367 rdos*)
10368 dynamic_linker=no
10369 ;;
10370
10371 solaris*)
10372 version_type=linux
10373 need_lib_prefix=no
10374 need_version=no
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10379 hardcode_into_libs=yes
10380 # ldd complains unless libraries are executable
10381 postinstall_cmds='chmod +x $lib'
10382 ;;
10383
10384 sunos4*)
10385 version_type=sunos
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10387 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=yes
10390 if test "$with_gnu_ld" = yes; then
10391 need_lib_prefix=no
10392 fi
10393 need_version=yes
10394 ;;
10395
10396 sysv4 | sysv4.3*)
10397 version_type=linux
10398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10399 soname_spec='${libname}${release}${shared_ext}$major'
10400 shlibpath_var=LD_LIBRARY_PATH
10401 case $host_vendor in
10402 sni)
10403 shlibpath_overrides_runpath=no
10404 need_lib_prefix=no
10405 runpath_var=LD_RUN_PATH
10406 ;;
10407 siemens)
10408 need_lib_prefix=no
10409 ;;
10410 motorola)
10411 need_lib_prefix=no
10412 need_version=no
10413 shlibpath_overrides_runpath=no
10414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10415 ;;
10416 esac
10417 ;;
10418
10419 sysv4*MP*)
10420 if test -d /usr/nec ;then
10421 version_type=linux
10422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10423 soname_spec='$libname${shared_ext}.$major'
10424 shlibpath_var=LD_LIBRARY_PATH
10425 fi
10426 ;;
10427
10428 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10429 version_type=freebsd-elf
10430 need_lib_prefix=no
10431 need_version=no
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10433 soname_spec='${libname}${release}${shared_ext}$major'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 shlibpath_overrides_runpath=yes
10436 hardcode_into_libs=yes
10437 if test "$with_gnu_ld" = yes; then
10438 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10439 else
10440 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10441 case $host_os in
10442 sco3.2v5*)
10443 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10444 ;;
10445 esac
10446 fi
10447 sys_lib_dlsearch_path_spec='/usr/lib'
10448 ;;
10449
10450 tpf*)
10451 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10452 version_type=linux
10453 need_lib_prefix=no
10454 need_version=no
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 shlibpath_overrides_runpath=no
10458 hardcode_into_libs=yes
10459 ;;
10460
10461 uts4*)
10462 version_type=linux
10463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 shlibpath_var=LD_LIBRARY_PATH
10466 ;;
10467
10468 *)
10469 dynamic_linker=no
10470 ;;
10471 esac
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10473 $as_echo "$dynamic_linker" >&6; }
10474 test "$dynamic_linker" = no && can_build_shared=no
10475
10476 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10477 if test "$GCC" = yes; then
10478 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10479 fi
10480
10481 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10482 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10483 fi
10484 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10485 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10486 fi
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10580 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10581 hardcode_action=
10582 if test -n "$hardcode_libdir_flag_spec" ||
10583 test -n "$runpath_var" ||
10584 test "X$hardcode_automatic" = "Xyes" ; then
10585
10586 # We can hardcode non-existent directories.
10587 if test "$hardcode_direct" != no &&
10588 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10589 # have to relink, otherwise we might link with an installed library
10590 # when we should be linking with a yet-to-be-installed one
10591 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10592 test "$hardcode_minus_L" != no; then
10593 # Linking always hardcodes the temporary library directory.
10594 hardcode_action=relink
10595 else
10596 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10597 hardcode_action=immediate
10598 fi
10599 else
10600 # We cannot hardcode anything, or else we can only hardcode existing
10601 # directories.
10602 hardcode_action=unsupported
10603 fi
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10605 $as_echo "$hardcode_action" >&6; }
10606
10607 if test "$hardcode_action" = relink ||
10608 test "$inherit_rpath" = yes; then
10609 # Fast installation is not supported
10610 enable_fast_install=no
10611 elif test "$shlibpath_overrides_runpath" = yes ||
10612 test "$enable_shared" = no; then
10613 # Fast installation is not necessary
10614 enable_fast_install=needless
10615 fi
10616
10617
10618
10619
10620
10621
10622 if test "x$enable_dlopen" != xyes; then
10623 enable_dlopen=unknown
10624 enable_dlopen_self=unknown
10625 enable_dlopen_self_static=unknown
10626 else
10627 lt_cv_dlopen=no
10628 lt_cv_dlopen_libs=
10629
10630 case $host_os in
10631 beos*)
10632 lt_cv_dlopen="load_add_on"
10633 lt_cv_dlopen_libs=
10634 lt_cv_dlopen_self=yes
10635 ;;
10636
10637 mingw* | pw32* | cegcc*)
10638 lt_cv_dlopen="LoadLibrary"
10639 lt_cv_dlopen_libs=
10640 ;;
10641
10642 cygwin*)
10643 lt_cv_dlopen="dlopen"
10644 lt_cv_dlopen_libs=
10645 ;;
10646
10647 darwin*)
10648 # if libdl is installed we need to link against it
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10650 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10651 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10652 $as_echo_n "(cached) " >&6
10653 else
10654 ac_check_lib_save_LIBS=$LIBS
10655 LIBS="-ldl $LIBS"
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658
10659 /* Override any GCC internal prototype to avoid an error.
10660 Use char because int might match the return type of a GCC
10661 builtin and then its argument prototype would still apply. */
10662 #ifdef __cplusplus
10663 extern "C"
10664 #endif
10665 char dlopen ();
10666 int
10667 main ()
10668 {
10669 return dlopen ();
10670 ;
10671 return 0;
10672 }
10673 _ACEOF
10674 if ac_fn_c_try_link "$LINENO"; then :
10675 ac_cv_lib_dl_dlopen=yes
10676 else
10677 ac_cv_lib_dl_dlopen=no
10678 fi
10679 rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 LIBS=$ac_check_lib_save_LIBS
10682 fi
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10684 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10685 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10686 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10687 else
10688
10689 lt_cv_dlopen="dyld"
10690 lt_cv_dlopen_libs=
10691 lt_cv_dlopen_self=yes
10692
10693 fi
10694
10695 ;;
10696
10697 *)
10698 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10699 if test "x$ac_cv_func_shl_load" = x""yes; then :
10700 lt_cv_dlopen="shl_load"
10701 else
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10703 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10704 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 ac_check_lib_save_LIBS=$LIBS
10708 LIBS="-ldld $LIBS"
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10710 /* end confdefs.h. */
10711
10712 /* Override any GCC internal prototype to avoid an error.
10713 Use char because int might match the return type of a GCC
10714 builtin and then its argument prototype would still apply. */
10715 #ifdef __cplusplus
10716 extern "C"
10717 #endif
10718 char shl_load ();
10719 int
10720 main ()
10721 {
10722 return shl_load ();
10723 ;
10724 return 0;
10725 }
10726 _ACEOF
10727 if ac_fn_c_try_link "$LINENO"; then :
10728 ac_cv_lib_dld_shl_load=yes
10729 else
10730 ac_cv_lib_dld_shl_load=no
10731 fi
10732 rm -f core conftest.err conftest.$ac_objext \
10733 conftest$ac_exeext conftest.$ac_ext
10734 LIBS=$ac_check_lib_save_LIBS
10735 fi
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10737 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10738 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10739 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10740 else
10741 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10742 if test "x$ac_cv_func_dlopen" = x""yes; then :
10743 lt_cv_dlopen="dlopen"
10744 else
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10746 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10749 else
10750 ac_check_lib_save_LIBS=$LIBS
10751 LIBS="-ldl $LIBS"
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10754
10755 /* Override any GCC internal prototype to avoid an error.
10756 Use char because int might match the return type of a GCC
10757 builtin and then its argument prototype would still apply. */
10758 #ifdef __cplusplus
10759 extern "C"
10760 #endif
10761 char dlopen ();
10762 int
10763 main ()
10764 {
10765 return dlopen ();
10766 ;
10767 return 0;
10768 }
10769 _ACEOF
10770 if ac_fn_c_try_link "$LINENO"; then :
10771 ac_cv_lib_dl_dlopen=yes
10772 else
10773 ac_cv_lib_dl_dlopen=no
10774 fi
10775 rm -f core conftest.err conftest.$ac_objext \
10776 conftest$ac_exeext conftest.$ac_ext
10777 LIBS=$ac_check_lib_save_LIBS
10778 fi
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10780 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10781 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10782 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10785 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10786 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10787 $as_echo_n "(cached) " >&6
10788 else
10789 ac_check_lib_save_LIBS=$LIBS
10790 LIBS="-lsvld $LIBS"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793
10794 /* Override any GCC internal prototype to avoid an error.
10795 Use char because int might match the return type of a GCC
10796 builtin and then its argument prototype would still apply. */
10797 #ifdef __cplusplus
10798 extern "C"
10799 #endif
10800 char dlopen ();
10801 int
10802 main ()
10803 {
10804 return dlopen ();
10805 ;
10806 return 0;
10807 }
10808 _ACEOF
10809 if ac_fn_c_try_link "$LINENO"; then :
10810 ac_cv_lib_svld_dlopen=yes
10811 else
10812 ac_cv_lib_svld_dlopen=no
10813 fi
10814 rm -f core conftest.err conftest.$ac_objext \
10815 conftest$ac_exeext conftest.$ac_ext
10816 LIBS=$ac_check_lib_save_LIBS
10817 fi
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10819 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10820 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10821 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10822 else
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10824 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10825 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-ldld $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10832
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char dld_link ();
10840 int
10841 main ()
10842 {
10843 return dld_link ();
10844 ;
10845 return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 ac_cv_lib_dld_dld_link=yes
10850 else
10851 ac_cv_lib_dld_dld_link=no
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10856 fi
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10858 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10859 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10860 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10861 fi
10862
10863
10864 fi
10865
10866
10867 fi
10868
10869
10870 fi
10871
10872
10873 fi
10874
10875
10876 fi
10877
10878 ;;
10879 esac
10880
10881 if test "x$lt_cv_dlopen" != xno; then
10882 enable_dlopen=yes
10883 else
10884 enable_dlopen=no
10885 fi
10886
10887 case $lt_cv_dlopen in
10888 dlopen)
10889 save_CPPFLAGS="$CPPFLAGS"
10890 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10891
10892 save_LDFLAGS="$LDFLAGS"
10893 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10894
10895 save_LIBS="$LIBS"
10896 LIBS="$lt_cv_dlopen_libs $LIBS"
10897
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10899 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10900 if test "${lt_cv_dlopen_self+set}" = set; then :
10901 $as_echo_n "(cached) " >&6
10902 else
10903 if test "$cross_compiling" = yes; then :
10904 lt_cv_dlopen_self=cross
10905 else
10906 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10907 lt_status=$lt_dlunknown
10908 cat > conftest.$ac_ext <<_LT_EOF
10909 #line 10909 "configure"
10910 #include "confdefs.h"
10911
10912 #if HAVE_DLFCN_H
10913 #include <dlfcn.h>
10914 #endif
10915
10916 #include <stdio.h>
10917
10918 #ifdef RTLD_GLOBAL
10919 # define LT_DLGLOBAL RTLD_GLOBAL
10920 #else
10921 # ifdef DL_GLOBAL
10922 # define LT_DLGLOBAL DL_GLOBAL
10923 # else
10924 # define LT_DLGLOBAL 0
10925 # endif
10926 #endif
10927
10928 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10929 find out it does not work in some platform. */
10930 #ifndef LT_DLLAZY_OR_NOW
10931 # ifdef RTLD_LAZY
10932 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10933 # else
10934 # ifdef DL_LAZY
10935 # define LT_DLLAZY_OR_NOW DL_LAZY
10936 # else
10937 # ifdef RTLD_NOW
10938 # define LT_DLLAZY_OR_NOW RTLD_NOW
10939 # else
10940 # ifdef DL_NOW
10941 # define LT_DLLAZY_OR_NOW DL_NOW
10942 # else
10943 # define LT_DLLAZY_OR_NOW 0
10944 # endif
10945 # endif
10946 # endif
10947 # endif
10948 #endif
10949
10950 /* When -fvisbility=hidden is used, assume the code has been annotated
10951 correspondingly for the symbols needed. */
10952 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10953 void fnord () __attribute__((visibility("default")));
10954 #endif
10955
10956 void fnord () { int i=42; }
10957 int main ()
10958 {
10959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10960 int status = $lt_dlunknown;
10961
10962 if (self)
10963 {
10964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10965 else
10966 {
10967 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10968 else puts (dlerror ());
10969 }
10970 /* dlclose (self); */
10971 }
10972 else
10973 puts (dlerror ());
10974
10975 return status;
10976 }
10977 _LT_EOF
10978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10979 (eval $ac_link) 2>&5
10980 ac_status=$?
10981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10982 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10983 (./conftest; exit; ) >&5 2>/dev/null
10984 lt_status=$?
10985 case x$lt_status in
10986 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10987 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10988 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10989 esac
10990 else :
10991 # compilation failed
10992 lt_cv_dlopen_self=no
10993 fi
10994 fi
10995 rm -fr conftest*
10996
10997
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11000 $as_echo "$lt_cv_dlopen_self" >&6; }
11001
11002 if test "x$lt_cv_dlopen_self" = xyes; then
11003 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11005 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11006 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 if test "$cross_compiling" = yes; then :
11010 lt_cv_dlopen_self_static=cross
11011 else
11012 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11013 lt_status=$lt_dlunknown
11014 cat > conftest.$ac_ext <<_LT_EOF
11015 #line 11015 "configure"
11016 #include "confdefs.h"
11017
11018 #if HAVE_DLFCN_H
11019 #include <dlfcn.h>
11020 #endif
11021
11022 #include <stdio.h>
11023
11024 #ifdef RTLD_GLOBAL
11025 # define LT_DLGLOBAL RTLD_GLOBAL
11026 #else
11027 # ifdef DL_GLOBAL
11028 # define LT_DLGLOBAL DL_GLOBAL
11029 # else
11030 # define LT_DLGLOBAL 0
11031 # endif
11032 #endif
11033
11034 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11035 find out it does not work in some platform. */
11036 #ifndef LT_DLLAZY_OR_NOW
11037 # ifdef RTLD_LAZY
11038 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11039 # else
11040 # ifdef DL_LAZY
11041 # define LT_DLLAZY_OR_NOW DL_LAZY
11042 # else
11043 # ifdef RTLD_NOW
11044 # define LT_DLLAZY_OR_NOW RTLD_NOW
11045 # else
11046 # ifdef DL_NOW
11047 # define LT_DLLAZY_OR_NOW DL_NOW
11048 # else
11049 # define LT_DLLAZY_OR_NOW 0
11050 # endif
11051 # endif
11052 # endif
11053 # endif
11054 #endif
11055
11056 /* When -fvisbility=hidden is used, assume the code has been annotated
11057 correspondingly for the symbols needed. */
11058 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11059 void fnord () __attribute__((visibility("default")));
11060 #endif
11061
11062 void fnord () { int i=42; }
11063 int main ()
11064 {
11065 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11066 int status = $lt_dlunknown;
11067
11068 if (self)
11069 {
11070 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11071 else
11072 {
11073 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11074 else puts (dlerror ());
11075 }
11076 /* dlclose (self); */
11077 }
11078 else
11079 puts (dlerror ());
11080
11081 return status;
11082 }
11083 _LT_EOF
11084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11085 (eval $ac_link) 2>&5
11086 ac_status=$?
11087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11088 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11089 (./conftest; exit; ) >&5 2>/dev/null
11090 lt_status=$?
11091 case x$lt_status in
11092 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11093 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11094 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11095 esac
11096 else :
11097 # compilation failed
11098 lt_cv_dlopen_self_static=no
11099 fi
11100 fi
11101 rm -fr conftest*
11102
11103
11104 fi
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11106 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11107 fi
11108
11109 CPPFLAGS="$save_CPPFLAGS"
11110 LDFLAGS="$save_LDFLAGS"
11111 LIBS="$save_LIBS"
11112 ;;
11113 esac
11114
11115 case $lt_cv_dlopen_self in
11116 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11117 *) enable_dlopen_self=unknown ;;
11118 esac
11119
11120 case $lt_cv_dlopen_self_static in
11121 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11122 *) enable_dlopen_self_static=unknown ;;
11123 esac
11124 fi
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142 striplib=
11143 old_striplib=
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11145 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11146 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11147 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11148 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11150 $as_echo "yes" >&6; }
11151 else
11152 # FIXME - insert some real tests, host_os isn't really good enough
11153 case $host_os in
11154 darwin*)
11155 if test -n "$STRIP" ; then
11156 striplib="$STRIP -x"
11157 old_striplib="$STRIP -S"
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11159 $as_echo "yes" >&6; }
11160 else
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11163 fi
11164 ;;
11165 *)
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11168 ;;
11169 esac
11170 fi
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183 # Report which library types will actually be built
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11185 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11187 $as_echo "$can_build_shared" >&6; }
11188
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11190 $as_echo_n "checking whether to build shared libraries... " >&6; }
11191 test "$can_build_shared" = "no" && enable_shared=no
11192
11193 # On AIX, shared libraries and static libraries use the same namespace, and
11194 # are all built from PIC.
11195 case $host_os in
11196 aix3*)
11197 test "$enable_shared" = yes && enable_static=no
11198 if test -n "$RANLIB"; then
11199 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11200 postinstall_cmds='$RANLIB $lib'
11201 fi
11202 ;;
11203
11204 aix[4-9]*)
11205 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11206 test "$enable_shared" = yes && enable_static=no
11207 fi
11208 ;;
11209 esac
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11211 $as_echo "$enable_shared" >&6; }
11212
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11214 $as_echo_n "checking whether to build static libraries... " >&6; }
11215 # Make sure either enable_shared or enable_static is yes.
11216 test "$enable_shared" = yes || enable_static=yes
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11218 $as_echo "$enable_static" >&6; }
11219
11220
11221
11222
11223 fi
11224 ac_ext=c
11225 ac_cpp='$CPP $CPPFLAGS'
11226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11229
11230 CC="$lt_save_CC"
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244 # Source file extension for Go test sources.
11245 ac_ext=go
11246
11247 # Object file extension for compiled Go test sources.
11248 objext=o
11249 objext_GO=$objext
11250
11251 # Code to be used in simple compile tests
11252 lt_simple_compile_test_code="package main; func main() { }"
11253
11254 # Code to be used in simple link tests
11255 lt_simple_link_test_code='package main; func main() { }'
11256
11257 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11258
11259
11260
11261
11262
11263
11264 # If no C compiler was specified, use CC.
11265 LTCC=${LTCC-"$CC"}
11266
11267 # If no C compiler flags were specified, use CFLAGS.
11268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11269
11270 # Allow CC to be a program name with arguments.
11271 compiler=$CC
11272
11273
11274 # save warnings/boilerplate of simple test code
11275 ac_outfile=conftest.$ac_objext
11276 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11277 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11278 _lt_compiler_boilerplate=`cat conftest.err`
11279 $RM conftest*
11280
11281 ac_outfile=conftest.$ac_objext
11282 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11283 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11284 _lt_linker_boilerplate=`cat conftest.err`
11285 $RM -r conftest*
11286
11287
11288 # Allow CC to be a program name with arguments.
11289 lt_save_CC="$CC"
11290 lt_save_GCC="$GCC"
11291 GCC=yes
11292 CC=${GOC-"gccgo"}
11293 compiler=$CC
11294 compiler_GO=$CC
11295 LD_GO="$LD"
11296 for cc_temp in $compiler""; do
11297 case $cc_temp in
11298 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11299 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11300 \-*) ;;
11301 *) break;;
11302 esac
11303 done
11304 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11305
11306
11307 # Go did not exist at the time GCC didn't implicitly link libc in.
11308 archive_cmds_need_lc_GO=no
11309
11310 old_archive_cmds_GO=$old_archive_cmds
11311
11312 ## CAVEAT EMPTOR:
11313 ## There is no encapsulation within the following macros, do not change
11314 ## the running order or otherwise move them around unless you know exactly
11315 ## what you are doing...
11316 if test -n "$compiler"; then
11317
11318 lt_prog_compiler_no_builtin_flag_GO=
11319
11320 if test "$GCC" = yes; then
11321 case $cc_basename in
11322 nvcc*)
11323 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11324 *)
11325 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11326 esac
11327
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11329 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11330 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11331 $as_echo_n "(cached) " >&6
11332 else
11333 lt_cv_prog_compiler_rtti_exceptions=no
11334 ac_outfile=conftest.$ac_objext
11335 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11336 lt_compiler_flag="-fno-rtti -fno-exceptions"
11337 # Insert the option either (1) after the last *FLAGS variable, or
11338 # (2) before a word containing "conftest.", or (3) at the end.
11339 # Note that $ac_compile itself does not contain backslashes and begins
11340 # with a dollar sign (not a hyphen), so the echo should work correctly.
11341 # The option is referenced via a variable to avoid confusing sed.
11342 lt_compile=`echo "$ac_compile" | $SED \
11343 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11344 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11345 -e 's:$: $lt_compiler_flag:'`
11346 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11347 (eval "$lt_compile" 2>conftest.err)
11348 ac_status=$?
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 if (exit $ac_status) && test -s "$ac_outfile"; then
11352 # The compiler can only warn and ignore the option if not recognized
11353 # So say no if there are warnings other than the usual output.
11354 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11355 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11356 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11357 lt_cv_prog_compiler_rtti_exceptions=yes
11358 fi
11359 fi
11360 $RM conftest*
11361
11362 fi
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11364 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11365
11366 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11367 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11368 else
11369 :
11370 fi
11371
11372 fi
11373
11374
11375
11376 lt_prog_compiler_wl_GO=
11377 lt_prog_compiler_pic_GO=
11378 lt_prog_compiler_static_GO=
11379
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11381 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11382
11383 if test "$GCC" = yes; then
11384 lt_prog_compiler_wl_GO='-Wl,'
11385 lt_prog_compiler_static_GO='-static'
11386
11387 case $host_os in
11388 aix*)
11389 # All AIX code is PIC.
11390 if test "$host_cpu" = ia64; then
11391 # AIX 5 now supports IA64 processor
11392 lt_prog_compiler_static_GO='-Bstatic'
11393 fi
11394 ;;
11395
11396 amigaos*)
11397 case $host_cpu in
11398 powerpc)
11399 # see comment about AmigaOS4 .so support
11400 lt_prog_compiler_pic_GO='-fPIC'
11401 ;;
11402 m68k)
11403 # FIXME: we need at least 68020 code to build shared libraries, but
11404 # adding the `-m68020' flag to GCC prevents building anything better,
11405 # like `-m68040'.
11406 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11407 ;;
11408 esac
11409 ;;
11410
11411 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11412 # PIC is the default for these OSes.
11413 ;;
11414
11415 mingw* | cygwin* | pw32* | os2* | cegcc*)
11416 # This hack is so that the source file can tell whether it is being
11417 # built for inclusion in a dll (and should export symbols for example).
11418 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11419 # (--disable-auto-import) libraries
11420 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11421 ;;
11422
11423 darwin* | rhapsody*)
11424 # PIC is the default on this platform
11425 # Common symbols not allowed in MH_DYLIB files
11426 lt_prog_compiler_pic_GO='-fno-common'
11427 ;;
11428
11429 haiku*)
11430 # PIC is the default for Haiku.
11431 # The "-static" flag exists, but is broken.
11432 lt_prog_compiler_static_GO=
11433 ;;
11434
11435 hpux*)
11436 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11437 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11438 # sets the default TLS model and affects inlining.
11439 case $host_cpu in
11440 hppa*64*)
11441 # +Z the default
11442 ;;
11443 *)
11444 lt_prog_compiler_pic_GO='-fPIC'
11445 ;;
11446 esac
11447 ;;
11448
11449 interix[3-9]*)
11450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11451 # Instead, we relocate shared libraries at runtime.
11452 ;;
11453
11454 msdosdjgpp*)
11455 # Just because we use GCC doesn't mean we suddenly get shared libraries
11456 # on systems that don't support them.
11457 lt_prog_compiler_can_build_shared_GO=no
11458 enable_shared=no
11459 ;;
11460
11461 *nto* | *qnx*)
11462 # QNX uses GNU C++, but need to define -shared option too, otherwise
11463 # it will coredump.
11464 lt_prog_compiler_pic_GO='-fPIC -shared'
11465 ;;
11466
11467 sysv4*MP*)
11468 if test -d /usr/nec; then
11469 lt_prog_compiler_pic_GO=-Kconform_pic
11470 fi
11471 ;;
11472
11473 *)
11474 lt_prog_compiler_pic_GO='-fPIC'
11475 ;;
11476 esac
11477
11478 case $cc_basename in
11479 nvcc*) # Cuda Compiler Driver 2.2
11480 lt_prog_compiler_wl_GO='-Xlinker '
11481 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11482 ;;
11483 esac
11484 else
11485 # PORTME Check for flag to pass linker flags through the system compiler.
11486 case $host_os in
11487 aix*)
11488 lt_prog_compiler_wl_GO='-Wl,'
11489 if test "$host_cpu" = ia64; then
11490 # AIX 5 now supports IA64 processor
11491 lt_prog_compiler_static_GO='-Bstatic'
11492 else
11493 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11494 fi
11495 ;;
11496
11497 mingw* | cygwin* | pw32* | os2* | cegcc*)
11498 # This hack is so that the source file can tell whether it is being
11499 # built for inclusion in a dll (and should export symbols for example).
11500 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11501 ;;
11502
11503 hpux9* | hpux10* | hpux11*)
11504 lt_prog_compiler_wl_GO='-Wl,'
11505 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11506 # not for PA HP-UX.
11507 case $host_cpu in
11508 hppa*64*|ia64*)
11509 # +Z the default
11510 ;;
11511 *)
11512 lt_prog_compiler_pic_GO='+Z'
11513 ;;
11514 esac
11515 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11516 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11517 ;;
11518
11519 irix5* | irix6* | nonstopux*)
11520 lt_prog_compiler_wl_GO='-Wl,'
11521 # PIC (with -KPIC) is the default.
11522 lt_prog_compiler_static_GO='-non_shared'
11523 ;;
11524
11525 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11526 case $cc_basename in
11527 # old Intel for x86_64 which still supported -KPIC.
11528 ecc*)
11529 lt_prog_compiler_wl_GO='-Wl,'
11530 lt_prog_compiler_pic_GO='-KPIC'
11531 lt_prog_compiler_static_GO='-static'
11532 ;;
11533 # icc used to be incompatible with GCC.
11534 # ICC 10 doesn't accept -KPIC any more.
11535 icc* | ifort*)
11536 lt_prog_compiler_wl_GO='-Wl,'
11537 lt_prog_compiler_pic_GO='-fPIC'
11538 lt_prog_compiler_static_GO='-static'
11539 ;;
11540 # Lahey Fortran 8.1.
11541 lf95*)
11542 lt_prog_compiler_wl_GO='-Wl,'
11543 lt_prog_compiler_pic_GO='--shared'
11544 lt_prog_compiler_static_GO='--static'
11545 ;;
11546 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11547 # Portland Group compilers (*not* the Pentium gcc compiler,
11548 # which looks to be a dead project)
11549 lt_prog_compiler_wl_GO='-Wl,'
11550 lt_prog_compiler_pic_GO='-fpic'
11551 lt_prog_compiler_static_GO='-Bstatic'
11552 ;;
11553 ccc*)
11554 lt_prog_compiler_wl_GO='-Wl,'
11555 # All Alpha code is PIC.
11556 lt_prog_compiler_static_GO='-non_shared'
11557 ;;
11558 xl* | bgxl* | bgf* | mpixl*)
11559 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11560 lt_prog_compiler_wl_GO='-Wl,'
11561 lt_prog_compiler_pic_GO='-qpic'
11562 lt_prog_compiler_static_GO='-qstaticlink'
11563 ;;
11564 *)
11565 case `$CC -V 2>&1 | sed 5q` in
11566 *Sun\ F* | *Sun*Fortran*)
11567 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11568 lt_prog_compiler_pic_GO='-KPIC'
11569 lt_prog_compiler_static_GO='-Bstatic'
11570 lt_prog_compiler_wl_GO=''
11571 ;;
11572 *Sun\ C*)
11573 # Sun C 5.9
11574 lt_prog_compiler_pic_GO='-KPIC'
11575 lt_prog_compiler_static_GO='-Bstatic'
11576 lt_prog_compiler_wl_GO='-Wl,'
11577 ;;
11578 esac
11579 ;;
11580 esac
11581 ;;
11582
11583 newsos6)
11584 lt_prog_compiler_pic_GO='-KPIC'
11585 lt_prog_compiler_static_GO='-Bstatic'
11586 ;;
11587
11588 *nto* | *qnx*)
11589 # QNX uses GNU C++, but need to define -shared option too, otherwise
11590 # it will coredump.
11591 lt_prog_compiler_pic_GO='-fPIC -shared'
11592 ;;
11593
11594 osf3* | osf4* | osf5*)
11595 lt_prog_compiler_wl_GO='-Wl,'
11596 # All OSF/1 code is PIC.
11597 lt_prog_compiler_static_GO='-non_shared'
11598 ;;
11599
11600 rdos*)
11601 lt_prog_compiler_static_GO='-non_shared'
11602 ;;
11603
11604 solaris*)
11605 lt_prog_compiler_pic_GO='-KPIC'
11606 lt_prog_compiler_static_GO='-Bstatic'
11607 case $cc_basename in
11608 f77* | f90* | f95*)
11609 lt_prog_compiler_wl_GO='-Qoption ld ';;
11610 *)
11611 lt_prog_compiler_wl_GO='-Wl,';;
11612 esac
11613 ;;
11614
11615 sunos4*)
11616 lt_prog_compiler_wl_GO='-Qoption ld '
11617 lt_prog_compiler_pic_GO='-PIC'
11618 lt_prog_compiler_static_GO='-Bstatic'
11619 ;;
11620
11621 sysv4 | sysv4.2uw2* | sysv4.3*)
11622 lt_prog_compiler_wl_GO='-Wl,'
11623 lt_prog_compiler_pic_GO='-KPIC'
11624 lt_prog_compiler_static_GO='-Bstatic'
11625 ;;
11626
11627 sysv4*MP*)
11628 if test -d /usr/nec ;then
11629 lt_prog_compiler_pic_GO='-Kconform_pic'
11630 lt_prog_compiler_static_GO='-Bstatic'
11631 fi
11632 ;;
11633
11634 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11635 lt_prog_compiler_wl_GO='-Wl,'
11636 lt_prog_compiler_pic_GO='-KPIC'
11637 lt_prog_compiler_static_GO='-Bstatic'
11638 ;;
11639
11640 unicos*)
11641 lt_prog_compiler_wl_GO='-Wl,'
11642 lt_prog_compiler_can_build_shared_GO=no
11643 ;;
11644
11645 uts4*)
11646 lt_prog_compiler_pic_GO='-pic'
11647 lt_prog_compiler_static_GO='-Bstatic'
11648 ;;
11649
11650 *)
11651 lt_prog_compiler_can_build_shared_GO=no
11652 ;;
11653 esac
11654 fi
11655
11656 case $host_os in
11657 # For platforms which do not support PIC, -DPIC is meaningless:
11658 *djgpp*)
11659 lt_prog_compiler_pic_GO=
11660 ;;
11661 *)
11662 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11663 ;;
11664 esac
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11666 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11667
11668
11669
11670 #
11671 # Check to make sure the PIC flag actually works.
11672 #
11673 if test -n "$lt_prog_compiler_pic_GO"; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11675 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11676 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 lt_cv_prog_compiler_pic_works_GO=no
11680 ac_outfile=conftest.$ac_objext
11681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11682 lt_compiler_flag="$lt_prog_compiler_pic_GO"
11683 # Insert the option either (1) after the last *FLAGS variable, or
11684 # (2) before a word containing "conftest.", or (3) at the end.
11685 # Note that $ac_compile itself does not contain backslashes and begins
11686 # with a dollar sign (not a hyphen), so the echo should work correctly.
11687 # The option is referenced via a variable to avoid confusing sed.
11688 lt_compile=`echo "$ac_compile" | $SED \
11689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11691 -e 's:$: $lt_compiler_flag:'`
11692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11693 (eval "$lt_compile" 2>conftest.err)
11694 ac_status=$?
11695 cat conftest.err >&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 if (exit $ac_status) && test -s "$ac_outfile"; then
11698 # The compiler can only warn and ignore the option if not recognized
11699 # So say no if there are warnings other than the usual output.
11700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11703 lt_cv_prog_compiler_pic_works_GO=yes
11704 fi
11705 fi
11706 $RM conftest*
11707
11708 fi
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11710 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11711
11712 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11713 case $lt_prog_compiler_pic_GO in
11714 "" | " "*) ;;
11715 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11716 esac
11717 else
11718 lt_prog_compiler_pic_GO=
11719 lt_prog_compiler_can_build_shared_GO=no
11720 fi
11721
11722 fi
11723
11724
11725
11726 #
11727 # Check to make sure the static flag actually works.
11728 #
11729 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11731 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11732 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11733 $as_echo_n "(cached) " >&6
11734 else
11735 lt_cv_prog_compiler_static_works_GO=no
11736 save_LDFLAGS="$LDFLAGS"
11737 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11738 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11739 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11740 # The linker can only warn and ignore the option if not recognized
11741 # So say no if there are warnings
11742 if test -s conftest.err; then
11743 # Append any errors to the config.log.
11744 cat conftest.err 1>&5
11745 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11747 if diff conftest.exp conftest.er2 >/dev/null; then
11748 lt_cv_prog_compiler_static_works_GO=yes
11749 fi
11750 else
11751 lt_cv_prog_compiler_static_works_GO=yes
11752 fi
11753 fi
11754 $RM -r conftest*
11755 LDFLAGS="$save_LDFLAGS"
11756
11757 fi
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11759 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11760
11761 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11762 :
11763 else
11764 lt_prog_compiler_static_GO=
11765 fi
11766
11767
11768
11769
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11771 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11772 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11773 $as_echo_n "(cached) " >&6
11774 else
11775 lt_cv_prog_compiler_c_o_GO=no
11776 $RM -r conftest 2>/dev/null
11777 mkdir conftest
11778 cd conftest
11779 mkdir out
11780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11781
11782 lt_compiler_flag="-o out/conftest2.$ac_objext"
11783 # Insert the option either (1) after the last *FLAGS variable, or
11784 # (2) before a word containing "conftest.", or (3) at the end.
11785 # Note that $ac_compile itself does not contain backslashes and begins
11786 # with a dollar sign (not a hyphen), so the echo should work correctly.
11787 lt_compile=`echo "$ac_compile" | $SED \
11788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11790 -e 's:$: $lt_compiler_flag:'`
11791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11792 (eval "$lt_compile" 2>out/conftest.err)
11793 ac_status=$?
11794 cat out/conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11797 then
11798 # The compiler can only warn and ignore the option if not recognized
11799 # So say no if there are warnings
11800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11803 lt_cv_prog_compiler_c_o_GO=yes
11804 fi
11805 fi
11806 chmod u+w . 2>&5
11807 $RM conftest*
11808 # SGI C++ compiler will create directory out/ii_files/ for
11809 # template instantiation
11810 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11811 $RM out/* && rmdir out
11812 cd ..
11813 $RM -r conftest
11814 $RM conftest*
11815
11816 fi
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11818 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11819
11820
11821
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11823 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11824 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11826 else
11827 lt_cv_prog_compiler_c_o_GO=no
11828 $RM -r conftest 2>/dev/null
11829 mkdir conftest
11830 cd conftest
11831 mkdir out
11832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11833
11834 lt_compiler_flag="-o out/conftest2.$ac_objext"
11835 # Insert the option either (1) after the last *FLAGS variable, or
11836 # (2) before a word containing "conftest.", or (3) at the end.
11837 # Note that $ac_compile itself does not contain backslashes and begins
11838 # with a dollar sign (not a hyphen), so the echo should work correctly.
11839 lt_compile=`echo "$ac_compile" | $SED \
11840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11842 -e 's:$: $lt_compiler_flag:'`
11843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11844 (eval "$lt_compile" 2>out/conftest.err)
11845 ac_status=$?
11846 cat out/conftest.err >&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11849 then
11850 # The compiler can only warn and ignore the option if not recognized
11851 # So say no if there are warnings
11852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11853 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11854 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11855 lt_cv_prog_compiler_c_o_GO=yes
11856 fi
11857 fi
11858 chmod u+w . 2>&5
11859 $RM conftest*
11860 # SGI C++ compiler will create directory out/ii_files/ for
11861 # template instantiation
11862 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11863 $RM out/* && rmdir out
11864 cd ..
11865 $RM -r conftest
11866 $RM conftest*
11867
11868 fi
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11870 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11871
11872
11873
11874
11875 hard_links="nottested"
11876 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11877 # do not overwrite the value of need_locks provided by the user
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11879 $as_echo_n "checking if we can lock with hard links... " >&6; }
11880 hard_links=yes
11881 $RM conftest*
11882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11883 touch conftest.a
11884 ln conftest.a conftest.b 2>&5 || hard_links=no
11885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11887 $as_echo "$hard_links" >&6; }
11888 if test "$hard_links" = no; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11890 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11891 need_locks=warn
11892 fi
11893 else
11894 need_locks=no
11895 fi
11896
11897
11898
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11900 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11901
11902 runpath_var=
11903 allow_undefined_flag_GO=
11904 always_export_symbols_GO=no
11905 archive_cmds_GO=
11906 archive_expsym_cmds_GO=
11907 compiler_needs_object_GO=no
11908 enable_shared_with_static_runtimes_GO=no
11909 export_dynamic_flag_spec_GO=
11910 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11911 hardcode_automatic_GO=no
11912 hardcode_direct_GO=no
11913 hardcode_direct_absolute_GO=no
11914 hardcode_libdir_flag_spec_GO=
11915 hardcode_libdir_flag_spec_ld_GO=
11916 hardcode_libdir_separator_GO=
11917 hardcode_minus_L_GO=no
11918 hardcode_shlibpath_var_GO=unsupported
11919 inherit_rpath_GO=no
11920 link_all_deplibs_GO=unknown
11921 module_cmds_GO=
11922 module_expsym_cmds_GO=
11923 old_archive_from_new_cmds_GO=
11924 old_archive_from_expsyms_cmds_GO=
11925 thread_safe_flag_spec_GO=
11926 whole_archive_flag_spec_GO=
11927 # include_expsyms should be a list of space-separated symbols to be *always*
11928 # included in the symbol list
11929 include_expsyms_GO=
11930 # exclude_expsyms can be an extended regexp of symbols to exclude
11931 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11932 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11933 # as well as any symbol that contains `d'.
11934 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11936 # platforms (ab)use it in PIC code, but their linkers get confused if
11937 # the symbol is explicitly referenced. Since portable code cannot
11938 # rely on this symbol name, it's probably fine to never include it in
11939 # preloaded symbol tables.
11940 # Exclude shared library initialization/finalization symbols.
11941 extract_expsyms_cmds=
11942
11943 case $host_os in
11944 cygwin* | mingw* | pw32* | cegcc*)
11945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11946 # When not using gcc, we currently assume that we are using
11947 # Microsoft Visual C++.
11948 if test "$GCC" != yes; then
11949 with_gnu_ld=no
11950 fi
11951 ;;
11952 interix*)
11953 # we just hope/assume this is gcc and not c89 (= MSVC++)
11954 with_gnu_ld=yes
11955 ;;
11956 openbsd*)
11957 with_gnu_ld=no
11958 ;;
11959 esac
11960
11961 ld_shlibs_GO=yes
11962
11963 # On some targets, GNU ld is compatible enough with the native linker
11964 # that we're better off using the native interface for both.
11965 lt_use_gnu_ld_interface=no
11966 if test "$with_gnu_ld" = yes; then
11967 case $host_os in
11968 aix*)
11969 # The AIX port of GNU ld has always aspired to compatibility
11970 # with the native linker. However, as the warning in the GNU ld
11971 # block says, versions before 2.19.5* couldn't really create working
11972 # shared libraries, regardless of the interface used.
11973 case `$LD -v 2>&1` in
11974 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11975 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11976 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11977 *)
11978 lt_use_gnu_ld_interface=yes
11979 ;;
11980 esac
11981 ;;
11982 *)
11983 lt_use_gnu_ld_interface=yes
11984 ;;
11985 esac
11986 fi
11987
11988 if test "$lt_use_gnu_ld_interface" = yes; then
11989 # If archive_cmds runs LD, not CC, wlarc should be empty
11990 wlarc='${wl}'
11991
11992 # Set some defaults for GNU ld with shared library support. These
11993 # are reset later if shared libraries are not supported. Putting them
11994 # here allows them to be overridden if necessary.
11995 runpath_var=LD_RUN_PATH
11996 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11997 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11998 # ancient GNU ld didn't support --whole-archive et. al.
11999 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12000 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12001 else
12002 whole_archive_flag_spec_GO=
12003 fi
12004 supports_anon_versioning=no
12005 case `$LD -v 2>&1` in
12006 *GNU\ gold*) supports_anon_versioning=yes ;;
12007 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12008 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12009 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12010 *\ 2.11.*) ;; # other 2.11 versions
12011 *) supports_anon_versioning=yes ;;
12012 esac
12013
12014 # See if GNU ld supports shared libraries.
12015 case $host_os in
12016 aix[3-9]*)
12017 # On AIX/PPC, the GNU linker is very broken
12018 if test "$host_cpu" != ia64; then
12019 ld_shlibs_GO=no
12020 cat <<_LT_EOF 1>&2
12021
12022 *** Warning: the GNU linker, at least up to release 2.19, is reported
12023 *** to be unable to reliably create shared libraries on AIX.
12024 *** Therefore, libtool is disabling shared libraries support. If you
12025 *** really care for shared libraries, you may want to install binutils
12026 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12027 *** You will then need to restart the configuration process.
12028
12029 _LT_EOF
12030 fi
12031 ;;
12032
12033 amigaos*)
12034 case $host_cpu in
12035 powerpc)
12036 # see comment about AmigaOS4 .so support
12037 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12038 archive_expsym_cmds_GO=''
12039 ;;
12040 m68k)
12041 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)'
12042 hardcode_libdir_flag_spec_GO='-L$libdir'
12043 hardcode_minus_L_GO=yes
12044 ;;
12045 esac
12046 ;;
12047
12048 beos*)
12049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12050 allow_undefined_flag_GO=unsupported
12051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12052 # support --undefined. This deserves some investigation. FIXME
12053 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12054 else
12055 ld_shlibs_GO=no
12056 fi
12057 ;;
12058
12059 cygwin* | mingw* | pw32* | cegcc*)
12060 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12061 # as there is no search path for DLLs.
12062 hardcode_libdir_flag_spec_GO='-L$libdir'
12063 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12064 allow_undefined_flag_GO=unsupported
12065 always_export_symbols_GO=no
12066 enable_shared_with_static_runtimes_GO=yes
12067 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12068
12069 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12070 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12071 # If the export-symbols file already is a .def file (1st line
12072 # is EXPORTS), use it as is; otherwise, prepend...
12073 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12074 cp $export_symbols $output_objdir/$soname.def;
12075 else
12076 echo EXPORTS > $output_objdir/$soname.def;
12077 cat $export_symbols >> $output_objdir/$soname.def;
12078 fi~
12079 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12080 else
12081 ld_shlibs_GO=no
12082 fi
12083 ;;
12084
12085 haiku*)
12086 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12087 link_all_deplibs_GO=yes
12088 ;;
12089
12090 interix[3-9]*)
12091 hardcode_direct_GO=no
12092 hardcode_shlibpath_var_GO=no
12093 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12094 export_dynamic_flag_spec_GO='${wl}-E'
12095 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12096 # Instead, shared libraries are loaded at an image base (0x10000000 by
12097 # default) and relocated if they conflict, which is a slow very memory
12098 # consuming and fragmenting process. To avoid this, we pick a random,
12099 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12100 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12101 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'
12102 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'
12103 ;;
12104
12105 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12106 tmp_diet=no
12107 if test "$host_os" = linux-dietlibc; then
12108 case $cc_basename in
12109 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12110 esac
12111 fi
12112 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12113 && test "$tmp_diet" = no
12114 then
12115 tmp_addflag=
12116 tmp_sharedflag='-shared'
12117 case $cc_basename,$host_cpu in
12118 pgcc*) # Portland Group C compiler
12119 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'
12120 tmp_addflag=' $pic_flag'
12121 ;;
12122 pgf77* | pgf90* | pgf95* | pgfortran*)
12123 # Portland Group f77 and f90 compilers
12124 whole_archive_flag_spec_GO='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12125 tmp_addflag=' $pic_flag -Mnomain' ;;
12126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12127 tmp_addflag=' -i_dynamic' ;;
12128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12129 tmp_addflag=' -i_dynamic -nofor_main' ;;
12130 ifc* | ifort*) # Intel Fortran compiler
12131 tmp_addflag=' -nofor_main' ;;
12132 lf95*) # Lahey Fortran 8.1
12133 whole_archive_flag_spec_GO=
12134 tmp_sharedflag='--shared' ;;
12135 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12136 tmp_sharedflag='-qmkshrobj'
12137 tmp_addflag= ;;
12138 nvcc*) # Cuda Compiler Driver 2.2
12139 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'
12140 compiler_needs_object_GO=yes
12141 ;;
12142 esac
12143 case `$CC -V 2>&1 | sed 5q` in
12144 *Sun\ C*) # Sun C 5.9
12145 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'
12146 compiler_needs_object_GO=yes
12147 tmp_sharedflag='-G' ;;
12148 *Sun\ F*) # Sun Fortran 8.3
12149 tmp_sharedflag='-G' ;;
12150 esac
12151 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12152
12153 if test "x$supports_anon_versioning" = xyes; then
12154 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12156 echo "local: *; };" >> $output_objdir/$libname.ver~
12157 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12158 fi
12159
12160 case $cc_basename in
12161 xlf* | bgf* | bgxlf* | mpixlf*)
12162 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12163 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12164 hardcode_libdir_flag_spec_GO=
12165 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12166 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12167 if test "x$supports_anon_versioning" = xyes; then
12168 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12170 echo "local: *; };" >> $output_objdir/$libname.ver~
12171 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12172 fi
12173 ;;
12174 esac
12175 else
12176 ld_shlibs_GO=no
12177 fi
12178 ;;
12179
12180 netbsd*)
12181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12182 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12183 wlarc=
12184 else
12185 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12186 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12187 fi
12188 ;;
12189
12190 solaris*)
12191 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12192 ld_shlibs_GO=no
12193 cat <<_LT_EOF 1>&2
12194
12195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12196 *** create shared libraries on Solaris systems. Therefore, libtool
12197 *** is disabling shared libraries support. We urge you to upgrade GNU
12198 *** binutils to release 2.9.1 or newer. Another option is to modify
12199 *** your PATH or compiler configuration so that the native linker is
12200 *** used, and then restart.
12201
12202 _LT_EOF
12203 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12204 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12205 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12206 else
12207 ld_shlibs_GO=no
12208 fi
12209 ;;
12210
12211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12212 case `$LD -v 2>&1` in
12213 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12214 ld_shlibs_GO=no
12215 cat <<_LT_EOF 1>&2
12216
12217 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12218 *** reliably create shared libraries on SCO systems. Therefore, libtool
12219 *** is disabling shared libraries support. We urge you to upgrade GNU
12220 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12221 *** your PATH or compiler configuration so that the native linker is
12222 *** used, and then restart.
12223
12224 _LT_EOF
12225 ;;
12226 *)
12227 # For security reasons, it is highly recommended that you always
12228 # use absolute paths for naming shared libraries, and exclude the
12229 # DT_RUNPATH tag from executables and libraries. But doing so
12230 # requires that you compile everything twice, which is a pain.
12231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12232 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12233 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12234 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12235 else
12236 ld_shlibs_GO=no
12237 fi
12238 ;;
12239 esac
12240 ;;
12241
12242 sunos4*)
12243 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12244 wlarc=
12245 hardcode_direct_GO=yes
12246 hardcode_shlibpath_var_GO=no
12247 ;;
12248
12249 *)
12250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12251 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12253 else
12254 ld_shlibs_GO=no
12255 fi
12256 ;;
12257 esac
12258
12259 if test "$ld_shlibs_GO" = no; then
12260 runpath_var=
12261 hardcode_libdir_flag_spec_GO=
12262 export_dynamic_flag_spec_GO=
12263 whole_archive_flag_spec_GO=
12264 fi
12265 else
12266 # PORTME fill in a description of your system's linker (not GNU ld)
12267 case $host_os in
12268 aix3*)
12269 allow_undefined_flag_GO=unsupported
12270 always_export_symbols_GO=yes
12271 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'
12272 # Note: this linker hardcodes the directories in LIBPATH if there
12273 # are no directories specified by -L.
12274 hardcode_minus_L_GO=yes
12275 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12276 # Neither direct hardcoding nor static linking is supported with a
12277 # broken collect2.
12278 hardcode_direct_GO=unsupported
12279 fi
12280 ;;
12281
12282 aix[4-9]*)
12283 if test "$host_cpu" = ia64; then
12284 # On IA64, the linker does run time linking by default, so we don't
12285 # have to do anything special.
12286 aix_use_runtimelinking=no
12287 exp_sym_flag='-Bexport'
12288 no_entry_flag=""
12289 else
12290 # If we're using GNU nm, then we don't want the "-C" option.
12291 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12292 # Also, AIX nm treats weak defined symbols like other global
12293 # defined symbols, whereas GNU nm marks them as "W".
12294 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12295 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'
12296 else
12297 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'
12298 fi
12299 aix_use_runtimelinking=no
12300
12301 # Test if we are trying to use run time linking or normal
12302 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12303 # need to do runtime linking.
12304 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12305 for ld_flag in $LDFLAGS; do
12306 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12307 aix_use_runtimelinking=yes
12308 break
12309 fi
12310 done
12311 ;;
12312 esac
12313
12314 exp_sym_flag='-bexport'
12315 no_entry_flag='-bnoentry'
12316 fi
12317
12318 # When large executables or shared objects are built, AIX ld can
12319 # have problems creating the table of contents. If linking a library
12320 # or program results in "error TOC overflow" add -mminimal-toc to
12321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12323
12324 archive_cmds_GO=''
12325 hardcode_direct_GO=yes
12326 hardcode_direct_absolute_GO=yes
12327 hardcode_libdir_separator_GO=':'
12328 link_all_deplibs_GO=yes
12329 file_list_spec_GO='${wl}-f,'
12330
12331 if test "$GCC" = yes; then
12332 case $host_os in aix4.[012]|aix4.[012].*)
12333 # We only want to do this on AIX 4.2 and lower, the check
12334 # below for broken collect2 doesn't work under 4.3+
12335 collect2name=`${CC} -print-prog-name=collect2`
12336 if test -f "$collect2name" &&
12337 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12338 then
12339 # We have reworked collect2
12340 :
12341 else
12342 # We have old collect2
12343 hardcode_direct_GO=unsupported
12344 # It fails to find uninstalled libraries when the uninstalled
12345 # path is not listed in the libpath. Setting hardcode_minus_L
12346 # to unsupported forces relinking
12347 hardcode_minus_L_GO=yes
12348 hardcode_libdir_flag_spec_GO='-L$libdir'
12349 hardcode_libdir_separator_GO=
12350 fi
12351 ;;
12352 esac
12353 shared_flag='-shared'
12354 if test "$aix_use_runtimelinking" = yes; then
12355 shared_flag="$shared_flag "'${wl}-G'
12356 fi
12357 else
12358 # not using gcc
12359 if test "$host_cpu" = ia64; then
12360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12361 # chokes on -Wl,-G. The following line is correct:
12362 shared_flag='-G'
12363 else
12364 if test "$aix_use_runtimelinking" = yes; then
12365 shared_flag='${wl}-G'
12366 else
12367 shared_flag='${wl}-bM:SRE'
12368 fi
12369 fi
12370 fi
12371
12372 export_dynamic_flag_spec_GO='${wl}-bexpall'
12373 # It seems that -bexpall does not export symbols beginning with
12374 # underscore (_), so it is better to generate a list of symbols to export.
12375 always_export_symbols_GO=yes
12376 if test "$aix_use_runtimelinking" = yes; then
12377 # Warning - without using the other runtime loading flags (-brtl),
12378 # -berok will link without error, but may produce a broken library.
12379 allow_undefined_flag_GO='-berok'
12380 # Determine the default libpath from the value encoded in an
12381 # empty executable.
12382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h. */
12384
12385 int
12386 main ()
12387 {
12388
12389 ;
12390 return 0;
12391 }
12392 _ACEOF
12393 if ac_fn_c_try_link "$LINENO"; then :
12394
12395 lt_aix_libpath_sed='
12396 /Import File Strings/,/^$/ {
12397 /^0/ {
12398 s/^0 *\(.*\)$/\1/
12399 p
12400 }
12401 }'
12402 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12403 # Check for a 64-bit object if we didn't find anything.
12404 if test -z "$aix_libpath"; then
12405 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12406 fi
12407 fi
12408 rm -f core conftest.err conftest.$ac_objext \
12409 conftest$ac_exeext conftest.$ac_ext
12410 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12411
12412 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12413 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"
12414 else
12415 if test "$host_cpu" = ia64; then
12416 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12417 allow_undefined_flag_GO="-z nodefs"
12418 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"
12419 else
12420 # Determine the default libpath from the value encoded in an
12421 # empty executable.
12422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12423 /* end confdefs.h. */
12424
12425 int
12426 main ()
12427 {
12428
12429 ;
12430 return 0;
12431 }
12432 _ACEOF
12433 if ac_fn_c_try_link "$LINENO"; then :
12434
12435 lt_aix_libpath_sed='
12436 /Import File Strings/,/^$/ {
12437 /^0/ {
12438 s/^0 *\(.*\)$/\1/
12439 p
12440 }
12441 }'
12442 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12443 # Check for a 64-bit object if we didn't find anything.
12444 if test -z "$aix_libpath"; then
12445 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12446 fi
12447 fi
12448 rm -f core conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12451
12452 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12453 # Warning - without using the other run time loading flags,
12454 # -berok will link without error, but may produce a broken library.
12455 no_undefined_flag_GO=' ${wl}-bernotok'
12456 allow_undefined_flag_GO=' ${wl}-berok'
12457 if test "$with_gnu_ld" = yes; then
12458 # We only use this code for GNU lds that support --whole-archive.
12459 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12460 else
12461 # Exported symbols can be pulled into shared objects from archives
12462 whole_archive_flag_spec_GO='$convenience'
12463 fi
12464 archive_cmds_need_lc_GO=yes
12465 # This is similar to how AIX traditionally builds its shared libraries.
12466 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'
12467 fi
12468 fi
12469 ;;
12470
12471 amigaos*)
12472 case $host_cpu in
12473 powerpc)
12474 # see comment about AmigaOS4 .so support
12475 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12476 archive_expsym_cmds_GO=''
12477 ;;
12478 m68k)
12479 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)'
12480 hardcode_libdir_flag_spec_GO='-L$libdir'
12481 hardcode_minus_L_GO=yes
12482 ;;
12483 esac
12484 ;;
12485
12486 bsdi[45]*)
12487 export_dynamic_flag_spec_GO=-rdynamic
12488 ;;
12489
12490 cygwin* | mingw* | pw32* | cegcc*)
12491 # When not using gcc, we currently assume that we are using
12492 # Microsoft Visual C++.
12493 # hardcode_libdir_flag_spec is actually meaningless, as there is
12494 # no search path for DLLs.
12495 hardcode_libdir_flag_spec_GO=' '
12496 allow_undefined_flag_GO=unsupported
12497 # Tell ltmain to make .lib files, not .a files.
12498 libext=lib
12499 # Tell ltmain to make .dll files, not .so files.
12500 shrext_cmds=".dll"
12501 # FIXME: Setting linknames here is a bad hack.
12502 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12503 # The linker will automatically build a .lib file if we build a DLL.
12504 old_archive_from_new_cmds_GO='true'
12505 # FIXME: Should let the user specify the lib program.
12506 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12507 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12508 enable_shared_with_static_runtimes_GO=yes
12509 ;;
12510
12511 darwin* | rhapsody*)
12512
12513
12514 archive_cmds_need_lc_GO=no
12515 hardcode_direct_GO=no
12516 hardcode_automatic_GO=yes
12517 hardcode_shlibpath_var_GO=unsupported
12518 if test "$lt_cv_ld_force_load" = "yes"; then
12519 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\"`'
12520 else
12521 whole_archive_flag_spec_GO=''
12522 fi
12523 link_all_deplibs_GO=yes
12524 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12525 case $cc_basename in
12526 ifort*) _lt_dar_can_shared=yes ;;
12527 *) _lt_dar_can_shared=$GCC ;;
12528 esac
12529 if test "$_lt_dar_can_shared" = "yes"; then
12530 output_verbose_link_cmd=func_echo_all
12531 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}"
12532 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12533 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}"
12534 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}"
12535
12536 else
12537 ld_shlibs_GO=no
12538 fi
12539
12540 ;;
12541
12542 dgux*)
12543 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12544 hardcode_libdir_flag_spec_GO='-L$libdir'
12545 hardcode_shlibpath_var_GO=no
12546 ;;
12547
12548 freebsd1*)
12549 ld_shlibs_GO=no
12550 ;;
12551
12552 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12553 # support. Future versions do this automatically, but an explicit c++rt0.o
12554 # does not break anything, and helps significantly (at the cost of a little
12555 # extra space).
12556 freebsd2.2*)
12557 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12558 hardcode_libdir_flag_spec_GO='-R$libdir'
12559 hardcode_direct_GO=yes
12560 hardcode_shlibpath_var_GO=no
12561 ;;
12562
12563 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12564 freebsd2*)
12565 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12566 hardcode_direct_GO=yes
12567 hardcode_minus_L_GO=yes
12568 hardcode_shlibpath_var_GO=no
12569 ;;
12570
12571 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12572 freebsd* | dragonfly*)
12573 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12574 hardcode_libdir_flag_spec_GO='-R$libdir'
12575 hardcode_direct_GO=yes
12576 hardcode_shlibpath_var_GO=no
12577 ;;
12578
12579 hpux9*)
12580 if test "$GCC" = yes; then
12581 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'
12582 else
12583 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'
12584 fi
12585 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12586 hardcode_libdir_separator_GO=:
12587 hardcode_direct_GO=yes
12588
12589 # hardcode_minus_L: Not really in the search PATH,
12590 # but as the default location of the library.
12591 hardcode_minus_L_GO=yes
12592 export_dynamic_flag_spec_GO='${wl}-E'
12593 ;;
12594
12595 hpux10*)
12596 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12597 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12598 else
12599 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12600 fi
12601 if test "$with_gnu_ld" = no; then
12602 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12603 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12604 hardcode_libdir_separator_GO=:
12605 hardcode_direct_GO=yes
12606 hardcode_direct_absolute_GO=yes
12607 export_dynamic_flag_spec_GO='${wl}-E'
12608 # hardcode_minus_L: Not really in the search PATH,
12609 # but as the default location of the library.
12610 hardcode_minus_L_GO=yes
12611 fi
12612 ;;
12613
12614 hpux11*)
12615 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12616 case $host_cpu in
12617 hppa*64*)
12618 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12619 ;;
12620 ia64*)
12621 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12622 ;;
12623 *)
12624 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12625 ;;
12626 esac
12627 else
12628 case $host_cpu in
12629 hppa*64*)
12630 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12631 ;;
12632 ia64*)
12633 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12634 ;;
12635 *)
12636 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12637 ;;
12638 esac
12639 fi
12640 if test "$with_gnu_ld" = no; then
12641 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12642 hardcode_libdir_separator_GO=:
12643
12644 case $host_cpu in
12645 hppa*64*|ia64*)
12646 hardcode_direct_GO=no
12647 hardcode_shlibpath_var_GO=no
12648 ;;
12649 *)
12650 hardcode_direct_GO=yes
12651 hardcode_direct_absolute_GO=yes
12652 export_dynamic_flag_spec_GO='${wl}-E'
12653
12654 # hardcode_minus_L: Not really in the search PATH,
12655 # but as the default location of the library.
12656 hardcode_minus_L_GO=yes
12657 ;;
12658 esac
12659 fi
12660 ;;
12661
12662 irix5* | irix6* | nonstopux*)
12663 if test "$GCC" = yes; then
12664 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'
12665 # Try to use the -exported_symbol ld option, if it does not
12666 # work, assume that -exports_file does not work either and
12667 # implicitly export all symbols.
12668 save_LDFLAGS="$LDFLAGS"
12669 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672 int foo(void) {}
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675 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'
12676
12677 fi
12678 rm -f core conftest.err conftest.$ac_objext \
12679 conftest$ac_exeext conftest.$ac_ext
12680 LDFLAGS="$save_LDFLAGS"
12681 else
12682 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'
12683 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'
12684 fi
12685 archive_cmds_need_lc_GO='no'
12686 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12687 hardcode_libdir_separator_GO=:
12688 inherit_rpath_GO=yes
12689 link_all_deplibs_GO=yes
12690 ;;
12691
12692 netbsd*)
12693 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12694 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12695 else
12696 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12697 fi
12698 hardcode_libdir_flag_spec_GO='-R$libdir'
12699 hardcode_direct_GO=yes
12700 hardcode_shlibpath_var_GO=no
12701 ;;
12702
12703 newsos6)
12704 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12705 hardcode_direct_GO=yes
12706 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12707 hardcode_libdir_separator_GO=:
12708 hardcode_shlibpath_var_GO=no
12709 ;;
12710
12711 *nto* | *qnx*)
12712 ;;
12713
12714 openbsd*)
12715 if test -f /usr/libexec/ld.so; then
12716 hardcode_direct_GO=yes
12717 hardcode_shlibpath_var_GO=no
12718 hardcode_direct_absolute_GO=yes
12719 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12720 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12721 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12722 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12723 export_dynamic_flag_spec_GO='${wl}-E'
12724 else
12725 case $host_os in
12726 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12727 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12728 hardcode_libdir_flag_spec_GO='-R$libdir'
12729 ;;
12730 *)
12731 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12732 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12733 ;;
12734 esac
12735 fi
12736 else
12737 ld_shlibs_GO=no
12738 fi
12739 ;;
12740
12741 os2*)
12742 hardcode_libdir_flag_spec_GO='-L$libdir'
12743 hardcode_minus_L_GO=yes
12744 allow_undefined_flag_GO=unsupported
12745 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'
12746 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12747 ;;
12748
12749 osf3*)
12750 if test "$GCC" = yes; then
12751 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12752 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'
12753 else
12754 allow_undefined_flag_GO=' -expect_unresolved \*'
12755 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'
12756 fi
12757 archive_cmds_need_lc_GO='no'
12758 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12759 hardcode_libdir_separator_GO=:
12760 ;;
12761
12762 osf4* | osf5*) # as osf3* with the addition of -msym flag
12763 if test "$GCC" = yes; then
12764 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12765 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'
12766 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12767 else
12768 allow_undefined_flag_GO=' -expect_unresolved \*'
12769 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'
12770 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~
12771 $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'
12772
12773 # Both c and cxx compiler support -rpath directly
12774 hardcode_libdir_flag_spec_GO='-rpath $libdir'
12775 fi
12776 archive_cmds_need_lc_GO='no'
12777 hardcode_libdir_separator_GO=:
12778 ;;
12779
12780 solaris*)
12781 no_undefined_flag_GO=' -z defs'
12782 if test "$GCC" = yes; then
12783 wlarc='${wl}'
12784 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12785 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12786 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12787 else
12788 case `$CC -V 2>&1` in
12789 *"Compilers 5.0"*)
12790 wlarc=''
12791 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12792 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12793 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12794 ;;
12795 *)
12796 wlarc='${wl}'
12797 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12798 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12799 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12800 ;;
12801 esac
12802 fi
12803 hardcode_libdir_flag_spec_GO='-R$libdir'
12804 hardcode_shlibpath_var_GO=no
12805 case $host_os in
12806 solaris2.[0-5] | solaris2.[0-5].*) ;;
12807 *)
12808 # The compiler driver will combine and reorder linker options,
12809 # but understands `-z linker_flag'. GCC discards it without `$wl',
12810 # but is careful enough not to reorder.
12811 # Supported since Solaris 2.6 (maybe 2.5.1?)
12812 if test "$GCC" = yes; then
12813 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12814 else
12815 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12816 fi
12817 ;;
12818 esac
12819 link_all_deplibs_GO=yes
12820 ;;
12821
12822 sunos4*)
12823 if test "x$host_vendor" = xsequent; then
12824 # Use $CC to link under sequent, because it throws in some extra .o
12825 # files that make .init and .fini sections work.
12826 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12827 else
12828 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12829 fi
12830 hardcode_libdir_flag_spec_GO='-L$libdir'
12831 hardcode_direct_GO=yes
12832 hardcode_minus_L_GO=yes
12833 hardcode_shlibpath_var_GO=no
12834 ;;
12835
12836 sysv4)
12837 case $host_vendor in
12838 sni)
12839 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12840 hardcode_direct_GO=yes # is this really true???
12841 ;;
12842 siemens)
12843 ## LD is ld it makes a PLAMLIB
12844 ## CC just makes a GrossModule.
12845 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12846 reload_cmds_GO='$CC -r -o $output$reload_objs'
12847 hardcode_direct_GO=no
12848 ;;
12849 motorola)
12850 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12851 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12852 ;;
12853 esac
12854 runpath_var='LD_RUN_PATH'
12855 hardcode_shlibpath_var_GO=no
12856 ;;
12857
12858 sysv4.3*)
12859 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12860 hardcode_shlibpath_var_GO=no
12861 export_dynamic_flag_spec_GO='-Bexport'
12862 ;;
12863
12864 sysv4*MP*)
12865 if test -d /usr/nec; then
12866 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12867 hardcode_shlibpath_var_GO=no
12868 runpath_var=LD_RUN_PATH
12869 hardcode_runpath_var=yes
12870 ld_shlibs_GO=yes
12871 fi
12872 ;;
12873
12874 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12875 no_undefined_flag_GO='${wl}-z,text'
12876 archive_cmds_need_lc_GO=no
12877 hardcode_shlibpath_var_GO=no
12878 runpath_var='LD_RUN_PATH'
12879
12880 if test "$GCC" = yes; then
12881 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12882 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12883 else
12884 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12885 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12886 fi
12887 ;;
12888
12889 sysv5* | sco3.2v5* | sco5v6*)
12890 # Note: We can NOT use -z defs as we might desire, because we do not
12891 # link with -lc, and that would cause any symbols used from libc to
12892 # always be unresolved, which means just about no library would
12893 # ever link correctly. If we're not using GNU ld we use -z text
12894 # though, which does catch some bad symbols but isn't as heavy-handed
12895 # as -z defs.
12896 no_undefined_flag_GO='${wl}-z,text'
12897 allow_undefined_flag_GO='${wl}-z,nodefs'
12898 archive_cmds_need_lc_GO=no
12899 hardcode_shlibpath_var_GO=no
12900 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12901 hardcode_libdir_separator_GO=':'
12902 link_all_deplibs_GO=yes
12903 export_dynamic_flag_spec_GO='${wl}-Bexport'
12904 runpath_var='LD_RUN_PATH'
12905
12906 if test "$GCC" = yes; then
12907 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12908 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12909 else
12910 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12911 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12912 fi
12913 ;;
12914
12915 uts4*)
12916 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12917 hardcode_libdir_flag_spec_GO='-L$libdir'
12918 hardcode_shlibpath_var_GO=no
12919 ;;
12920
12921 *)
12922 ld_shlibs_GO=no
12923 ;;
12924 esac
12925
12926 if test x$host_vendor = xsni; then
12927 case $host in
12928 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12929 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12930 ;;
12931 esac
12932 fi
12933 fi
12934
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12936 $as_echo "$ld_shlibs_GO" >&6; }
12937 test "$ld_shlibs_GO" = no && can_build_shared=no
12938
12939 with_gnu_ld_GO=$with_gnu_ld
12940
12941
12942
12943
12944
12945
12946 #
12947 # Do we need to explicitly link libc?
12948 #
12949 case "x$archive_cmds_need_lc_GO" in
12950 x|xyes)
12951 # Assume -lc should be added
12952 archive_cmds_need_lc_GO=yes
12953
12954 if test "$enable_shared" = yes && test "$GCC" = yes; then
12955 case $archive_cmds_GO in
12956 *'~'*)
12957 # FIXME: we may have to deal with multi-command sequences.
12958 ;;
12959 '$CC '*)
12960 # Test whether the compiler implicitly links with -lc since on some
12961 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12962 # to ld, don't add -lc before -lgcc.
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12964 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12965 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12967 else
12968 $RM conftest*
12969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12970
12971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12972 (eval $ac_compile) 2>&5
12973 ac_status=$?
12974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12975 test $ac_status = 0; } 2>conftest.err; then
12976 soname=conftest
12977 lib=conftest
12978 libobjs=conftest.$ac_objext
12979 deplibs=
12980 wl=$lt_prog_compiler_wl_GO
12981 pic_flag=$lt_prog_compiler_pic_GO
12982 compiler_flags=-v
12983 linker_flags=-v
12984 verstring=
12985 output_objdir=.
12986 libname=conftest
12987 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12988 allow_undefined_flag_GO=
12989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12990 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12991 ac_status=$?
12992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12993 test $ac_status = 0; }
12994 then
12995 lt_cv_archive_cmds_need_lc_GO=no
12996 else
12997 lt_cv_archive_cmds_need_lc_GO=yes
12998 fi
12999 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13000 else
13001 cat conftest.err 1>&5
13002 fi
13003 $RM conftest*
13004
13005 fi
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13007 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13008 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13009 ;;
13010 esac
13011 fi
13012 ;;
13013 esac
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13079 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13080 hardcode_action_GO=
13081 if test -n "$hardcode_libdir_flag_spec_GO" ||
13082 test -n "$runpath_var_GO" ||
13083 test "X$hardcode_automatic_GO" = "Xyes" ; then
13084
13085 # We can hardcode non-existent directories.
13086 if test "$hardcode_direct_GO" != no &&
13087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13088 # have to relink, otherwise we might link with an installed library
13089 # when we should be linking with a yet-to-be-installed one
13090 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13091 test "$hardcode_minus_L_GO" != no; then
13092 # Linking always hardcodes the temporary library directory.
13093 hardcode_action_GO=relink
13094 else
13095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13096 hardcode_action_GO=immediate
13097 fi
13098 else
13099 # We cannot hardcode anything, or else we can only hardcode existing
13100 # directories.
13101 hardcode_action_GO=unsupported
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13104 $as_echo "$hardcode_action_GO" >&6; }
13105
13106 if test "$hardcode_action_GO" = relink ||
13107 test "$inherit_rpath_GO" = yes; then
13108 # Fast installation is not supported
13109 enable_fast_install=no
13110 elif test "$shlibpath_overrides_runpath" = yes ||
13111 test "$enable_shared" = no; then
13112 # Fast installation is not necessary
13113 enable_fast_install=needless
13114 fi
13115
13116
13117
13118
13119
13120
13121
13122 fi
13123
13124 ac_ext=c
13125 ac_cpp='$CPP $CPPFLAGS'
13126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13129
13130
13131 GCC=$lt_save_GCC
13132 CC="$lt_save_CC"
13133
13134
13135
13136
13137 ac_config_commands="$ac_config_commands libtool"
13138
13139
13140
13141
13142 # Only expand once:
13143
13144
13145
13146
13147
13148 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13149
13150
13151 WERROR="-Werror"
13152
13153
13154 glibgo_toolexecdir=no
13155 glibgo_toolexeclibdir=no
13156 glibgo_prefixdir=$prefix
13157
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13159 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13160 # Check whether --enable-version-specific-runtime-libs was given.
13161 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13162 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13163 yes) version_specific_libs=yes ;;
13164 no) version_specific_libs=no ;;
13165 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13166 esac
13167 else
13168 version_specific_libs=no
13169 fi
13170
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13172 $as_echo "$version_specific_libs" >&6; }
13173
13174 # Version-specific runtime libs processing.
13175 if test $version_specific_libs = yes; then
13176 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13177 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13178 fi
13179
13180 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13181 # Install a library built with a cross compiler in tooldir, not libdir.
13182 if test x"$glibgo_toolexecdir" = x"no"; then
13183 if test -n "$with_cross_host" &&
13184 test x"$with_cross_host" != x"no"; then
13185 glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13186 glibgo_toolexeclibdir='${toolexecdir}/lib'
13187 else
13188 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13189 glibgo_toolexeclibdir='${libdir}'
13190 fi
13191 multi_os_directory=`$CC -print-multi-os-directory`
13192 case $multi_os_directory in
13193 .) ;; # Avoid trailing /.
13194 *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13195 esac
13196 fi
13197
13198
13199
13200
13201
13202 # See if the user wants to configure without libffi. Some
13203 # architectures don't support it. FIXME: We should set a default
13204 # based on the host.
13205
13206 # Check whether --with-libffi was given.
13207 if test "${with_libffi+set}" = set; then :
13208 withval=$with_libffi; :
13209 else
13210 with_libffi=${with_libffi_default-yes}
13211 fi
13212
13213
13214 LIBFFI=
13215 LIBFFIINCS=
13216 if test "$with_libffi" != no; then
13217
13218 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13219
13220 LIBFFI=../libffi/libffi_convenience.la
13221 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13222 fi
13223
13224
13225
13226 is_darwin=no
13227 is_freebsd=no
13228 is_linux=no
13229 is_rtems=no
13230 is_solaris=no
13231 GOOS=unknown
13232 case ${host} in
13233 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13234 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13235 *-*-linux*) is_linux=yes; GOOS=linux ;;
13236 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13237 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13238 esac
13239 if test $is_darwin = yes; then
13240 LIBGO_IS_DARWIN_TRUE=
13241 LIBGO_IS_DARWIN_FALSE='#'
13242 else
13243 LIBGO_IS_DARWIN_TRUE='#'
13244 LIBGO_IS_DARWIN_FALSE=
13245 fi
13246
13247 if test $is_freebsd = yes; then
13248 LIBGO_IS_FREEBSD_TRUE=
13249 LIBGO_IS_FREEBSD_FALSE='#'
13250 else
13251 LIBGO_IS_FREEBSD_TRUE='#'
13252 LIBGO_IS_FREEBSD_FALSE=
13253 fi
13254
13255 if test $is_linux = yes; then
13256 LIBGO_IS_LINUX_TRUE=
13257 LIBGO_IS_LINUX_FALSE='#'
13258 else
13259 LIBGO_IS_LINUX_TRUE='#'
13260 LIBGO_IS_LINUX_FALSE=
13261 fi
13262
13263 if test $is_rtems = yes; then
13264 LIBGO_IS_RTEMS_TRUE=
13265 LIBGO_IS_RTEMS_FALSE='#'
13266 else
13267 LIBGO_IS_RTEMS_TRUE='#'
13268 LIBGO_IS_RTEMS_FALSE=
13269 fi
13270
13271 if test $is_solaris = yes; then
13272 LIBGO_IS_SOLARIS_TRUE=
13273 LIBGO_IS_SOLARIS_FALSE='#'
13274 else
13275 LIBGO_IS_SOLARIS_TRUE='#'
13276 LIBGO_IS_SOLARIS_FALSE=
13277 fi
13278
13279
13280
13281 is_386=no
13282 is_arm=no
13283 is_m68k=no
13284 is_mips=no
13285 is_mips64=no
13286 is_ppc=no
13287 is_ppc64=no
13288 is_sparc=no
13289 is_sparc64=no
13290 is_x86_64=no
13291 GOARCH=unknown
13292 case ${host} in
13293 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13294 is_arm=yes
13295 GOARCH=arm
13296 ;;
13297 i[34567]86-*-* | x86_64-*-*)
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300
13301 #ifdef __x86_64__
13302 #error 64-bit
13303 #endif
13304 _ACEOF
13305 if ac_fn_c_try_compile "$LINENO"; then :
13306 is_386=yes
13307 else
13308 is_x86_64=yes
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13311 if test "$is_386" = "yes"; then
13312 GOARCH=386
13313 else
13314 GOARCH=amd64
13315 fi
13316 ;;
13317 m68k*-*-*)
13318 is_m68k=yes
13319 GOARCH=m68k
13320 ;;
13321 mips*-*-*)
13322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13324
13325 #ifdef __mips64
13326 #error 64-bit
13327 #endif
13328 _ACEOF
13329 if ac_fn_c_try_compile "$LINENO"; then :
13330 is_mips=yes
13331 else
13332 is_mips64=yes
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335 if test "$is_mips" = "yes"; then
13336 GOARCH=mips
13337 else
13338 GOARCH=mips64
13339 fi
13340 ;;
13341 rs6000*-*-* | powerpc*-*-*)
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13344
13345 #ifdef _ARCH_PPC64
13346 #error 64-bit
13347 #endif
13348 _ACEOF
13349 if ac_fn_c_try_compile "$LINENO"; then :
13350 is_ppc=yes
13351 else
13352 is_ppc64=yes
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13355 if test "$is_ppc" = "yes"; then
13356 GOARCH=ppc
13357 else
13358 GOARCH=ppc64
13359 fi
13360 ;;
13361 sparc*-*-*)
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13363 /* end confdefs.h. */
13364
13365 #if defined(__sparcv9) || defined(__arch64__)
13366 #error 64-bit
13367 #endif
13368 _ACEOF
13369 if ac_fn_c_try_compile "$LINENO"; then :
13370 is_sparc=yes
13371 else
13372 is_sparc64=yes
13373 fi
13374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13375 if test "$is_sparc" = "yes"; then
13376 GOARCH=sparc
13377 else
13378 GOARCH=sparc64
13379 fi
13380 ;;
13381 esac
13382 if test $is_386 = yes; then
13383 LIBGO_IS_386_TRUE=
13384 LIBGO_IS_386_FALSE='#'
13385 else
13386 LIBGO_IS_386_TRUE='#'
13387 LIBGO_IS_386_FALSE=
13388 fi
13389
13390 if test $is_arm = yes; then
13391 LIBGO_IS_ARM_TRUE=
13392 LIBGO_IS_ARM_FALSE='#'
13393 else
13394 LIBGO_IS_ARM_TRUE='#'
13395 LIBGO_IS_ARM_FALSE=
13396 fi
13397
13398 if test $is_m68k = yes; then
13399 LIBGO_IS_M68K_TRUE=
13400 LIBGO_IS_M68K_FALSE='#'
13401 else
13402 LIBGO_IS_M68K_TRUE='#'
13403 LIBGO_IS_M68K_FALSE=
13404 fi
13405
13406 if test $is_mips = yes; then
13407 LIBGO_IS_MIPS_TRUE=
13408 LIBGO_IS_MIPS_FALSE='#'
13409 else
13410 LIBGO_IS_MIPS_TRUE='#'
13411 LIBGO_IS_MIPS_FALSE=
13412 fi
13413
13414 if test $is_mips64 = yes; then
13415 LIBGO_IS_MIPS64_TRUE=
13416 LIBGO_IS_MIPS64_FALSE='#'
13417 else
13418 LIBGO_IS_MIPS64_TRUE='#'
13419 LIBGO_IS_MIPS64_FALSE=
13420 fi
13421
13422 if test $is_ppc = yes; then
13423 LIBGO_IS_PPC_TRUE=
13424 LIBGO_IS_PPC_FALSE='#'
13425 else
13426 LIBGO_IS_PPC_TRUE='#'
13427 LIBGO_IS_PPC_FALSE=
13428 fi
13429
13430 if test $is_ppc64 = yes; then
13431 LIBGO_IS_PPC64_TRUE=
13432 LIBGO_IS_PPC64_FALSE='#'
13433 else
13434 LIBGO_IS_PPC64_TRUE='#'
13435 LIBGO_IS_PPC64_FALSE=
13436 fi
13437
13438 if test $is_sparc = yes; then
13439 LIBGO_IS_SPARC_TRUE=
13440 LIBGO_IS_SPARC_FALSE='#'
13441 else
13442 LIBGO_IS_SPARC_TRUE='#'
13443 LIBGO_IS_SPARC_FALSE=
13444 fi
13445
13446 if test $is_sparc64 = yes; then
13447 LIBGO_IS_SPARC64_TRUE=
13448 LIBGO_IS_SPARC64_FALSE='#'
13449 else
13450 LIBGO_IS_SPARC64_TRUE='#'
13451 LIBGO_IS_SPARC64_FALSE=
13452 fi
13453
13454 if test $is_x86_64 = yes; then
13455 LIBGO_IS_X86_64_TRUE=
13456 LIBGO_IS_X86_64_FALSE='#'
13457 else
13458 LIBGO_IS_X86_64_TRUE='#'
13459 LIBGO_IS_X86_64_FALSE=
13460 fi
13461
13462
13463
13464 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13465 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13466 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13467 fi
13468
13469
13470 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13471 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13472 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13473 fi
13474
13475
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13477 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13478 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13479 $as_echo_n "(cached) " >&6
13480 else
13481 CFLAGS_hold=$CFLAGS
13482 CFLAGS="$CFLAGS -fsplit-stack"
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 int i;
13486 _ACEOF
13487 if ac_fn_c_try_compile "$LINENO"; then :
13488 libgo_cv_c_split_stack_supported=yes
13489 else
13490 libgo_cv_c_split_stack_supported=no
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13493 CFLAGS=$CFLAGS_hold
13494 fi
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13496 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13497 if test "$libgo_cv_c_split_stack_supported" = yes; then
13498 SPLIT_STACK=-fsplit-stack
13499
13500 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13501
13502 else
13503 SPLIT_STACK=
13504 fi
13505
13506 if test "$libgo_cv_c_split_stack_supported" = yes; then
13507 USING_SPLIT_STACK_TRUE=
13508 USING_SPLIT_STACK_FALSE='#'
13509 else
13510 USING_SPLIT_STACK_TRUE='#'
13511 USING_SPLIT_STACK_FALSE=
13512 fi
13513
13514
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13516 $as_echo_n "checking whether linker supports split stack... " >&6; }
13517 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13518 $as_echo_n "(cached) " >&6
13519 else
13520 libgo_cv_c_linker_supports_split_stack=no
13521 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13522 libgo_cv_c_linker_supports_split_stack=yes
13523 fi
13524 fi
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13526 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13527 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13528
13529 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13530
13531 fi
13532
13533 MATH_LIBS=
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13535 $as_echo_n "checking for sqrt in -lm... " >&6; }
13536 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 ac_check_lib_save_LIBS=$LIBS
13540 LIBS="-lm $LIBS"
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543
13544 /* Override any GCC internal prototype to avoid an error.
13545 Use char because int might match the return type of a GCC
13546 builtin and then its argument prototype would still apply. */
13547 #ifdef __cplusplus
13548 extern "C"
13549 #endif
13550 char sqrt ();
13551 int
13552 main ()
13553 {
13554 return sqrt ();
13555 ;
13556 return 0;
13557 }
13558 _ACEOF
13559 if ac_fn_c_try_link "$LINENO"; then :
13560 ac_cv_lib_m_sqrt=yes
13561 else
13562 ac_cv_lib_m_sqrt=no
13563 fi
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS=$ac_check_lib_save_LIBS
13567 fi
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13569 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13570 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13571 MATH_LIBS=-lm
13572 fi
13573
13574
13575
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13577 $as_echo_n "checking for socket libraries... " >&6; }
13578 if test "${libgo_cv_lib_sockets+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 libgo_cv_lib_sockets=
13582 libgo_check_both=no
13583 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13584 if test "x$ac_cv_func_connect" = x""yes; then :
13585 libgo_check_socket=no
13586 else
13587 libgo_check_socket=yes
13588 fi
13589
13590 if test "$libgo_check_socket" = "yes"; then
13591 unset ac_cv_func_connect
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13593 $as_echo_n "checking for main in -lsocket... " >&6; }
13594 if test "${ac_cv_lib_socket_main+set}" = set; then :
13595 $as_echo_n "(cached) " >&6
13596 else
13597 ac_check_lib_save_LIBS=$LIBS
13598 LIBS="-lsocket $LIBS"
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601
13602
13603 int
13604 main ()
13605 {
13606 return main ();
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_link "$LINENO"; then :
13612 ac_cv_lib_socket_main=yes
13613 else
13614 ac_cv_lib_socket_main=no
13615 fi
13616 rm -f core conftest.err conftest.$ac_objext \
13617 conftest$ac_exeext conftest.$ac_ext
13618 LIBS=$ac_check_lib_save_LIBS
13619 fi
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13621 $as_echo "$ac_cv_lib_socket_main" >&6; }
13622 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13623 libgo_cv_lib_sockets="-lsocket"
13624 else
13625 libgo_check_both=yes
13626 fi
13627
13628 fi
13629 if test "$libgo_check_both" = "yes"; then
13630 libgo_old_libs=$LIBS
13631 LIBS="$LIBS -lsocket -lnsl"
13632 unset ac_cv_func_accept
13633 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13634 if test "x$ac_cv_func_accept" = x""yes; then :
13635 libgo_check_nsl=no
13636 libgo_cv_lib_sockets="-lsocket -lnsl"
13637 fi
13638
13639 unset ac_cv_func_accept
13640 LIBS=$libgo_old_libs
13641 fi
13642 unset ac_cv_func_gethostbyname
13643 libgo_old_libs="$LIBS"
13644 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13645 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13646
13647 else
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13649 $as_echo_n "checking for main in -lnsl... " >&6; }
13650 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 ac_check_lib_save_LIBS=$LIBS
13654 LIBS="-lnsl $LIBS"
13655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13656 /* end confdefs.h. */
13657
13658
13659 int
13660 main ()
13661 {
13662 return main ();
13663 ;
13664 return 0;
13665 }
13666 _ACEOF
13667 if ac_fn_c_try_link "$LINENO"; then :
13668 ac_cv_lib_nsl_main=yes
13669 else
13670 ac_cv_lib_nsl_main=no
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext
13674 LIBS=$ac_check_lib_save_LIBS
13675 fi
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13677 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13678 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13679 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13680 fi
13681
13682 fi
13683
13684 unset ac_cv_func_gethostbyname
13685 LIBS=$libgo_old_libs
13686
13687 fi
13688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13689 $as_echo "$libgo_cv_lib_sockets" >&6; }
13690 NET_LIBS="$libgo_cv_lib_sockets"
13691
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13694 $as_echo_n "checking whether -pthread is supported... " >&6; }
13695 if test "${libgo_cv_lib_pthread+set}" = set; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 CFLAGS_hold=$CFLAGS
13699 CFLAGS="$CFLAGS -pthread"
13700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13701 /* end confdefs.h. */
13702 int i;
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705 libgo_cv_lib_pthread=yes
13706 else
13707 libgo_cv_lib_pthread=no
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 CFLAGS=$CFLAGS_hold
13711 fi
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13713 $as_echo "$libgo_cv_lib_pthread" >&6; }
13714 PTHREAD_CFLAGS=
13715 if test "$libgo_cv_lib_pthread" = yes; then
13716 PTHREAD_CFLAGS=-pthread
13717 fi
13718
13719
13720 PTHREAD_LIBS=
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13722 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13723 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 ac_check_lib_save_LIBS=$LIBS
13727 LIBS="-lpthread $LIBS"
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13730
13731 /* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
13734 #ifdef __cplusplus
13735 extern "C"
13736 #endif
13737 char pthread_create ();
13738 int
13739 main ()
13740 {
13741 return pthread_create ();
13742 ;
13743 return 0;
13744 }
13745 _ACEOF
13746 if ac_fn_c_try_link "$LINENO"; then :
13747 ac_cv_lib_pthread_pthread_create=yes
13748 else
13749 ac_cv_lib_pthread_pthread_create=no
13750 fi
13751 rm -f core conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13753 LIBS=$ac_check_lib_save_LIBS
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13756 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13757 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13758 PTHREAD_LIBS=-lpthread
13759 fi
13760
13761
13762
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13764 $as_echo_n "checking for library containing sched_yield... " >&6; }
13765 if test "${ac_cv_search_sched_yield+set}" = set; then :
13766 $as_echo_n "(cached) " >&6
13767 else
13768 ac_func_search_save_LIBS=$LIBS
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13771
13772 /* Override any GCC internal prototype to avoid an error.
13773 Use char because int might match the return type of a GCC
13774 builtin and then its argument prototype would still apply. */
13775 #ifdef __cplusplus
13776 extern "C"
13777 #endif
13778 char sched_yield ();
13779 int
13780 main ()
13781 {
13782 return sched_yield ();
13783 ;
13784 return 0;
13785 }
13786 _ACEOF
13787 for ac_lib in '' rt; do
13788 if test -z "$ac_lib"; then
13789 ac_res="none required"
13790 else
13791 ac_res=-l$ac_lib
13792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13793 fi
13794 if ac_fn_c_try_link "$LINENO"; then :
13795 ac_cv_search_sched_yield=$ac_res
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext \
13798 conftest$ac_exeext
13799 if test "${ac_cv_search_sched_yield+set}" = set; then :
13800 break
13801 fi
13802 done
13803 if test "${ac_cv_search_sched_yield+set}" = set; then :
13804
13805 else
13806 ac_cv_search_sched_yield=no
13807 fi
13808 rm conftest.$ac_ext
13809 LIBS=$ac_func_search_save_LIBS
13810 fi
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13812 $as_echo "$ac_cv_search_sched_yield" >&6; }
13813 ac_res=$ac_cv_search_sched_yield
13814 if test "$ac_res" != no; then :
13815 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13816
13817 fi
13818
13819
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13821 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13822 if test "${ac_cv_c_bigendian+set}" = set; then :
13823 $as_echo_n "(cached) " >&6
13824 else
13825 ac_cv_c_bigendian=unknown
13826 # See if we're dealing with a universal compiler.
13827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13828 /* end confdefs.h. */
13829 #ifndef __APPLE_CC__
13830 not a universal capable compiler
13831 #endif
13832 typedef int dummy;
13833
13834 _ACEOF
13835 if ac_fn_c_try_compile "$LINENO"; then :
13836
13837 # Check for potential -arch flags. It is not universal unless
13838 # there are at least two -arch flags with different values.
13839 ac_arch=
13840 ac_prev=
13841 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13842 if test -n "$ac_prev"; then
13843 case $ac_word in
13844 i?86 | x86_64 | ppc | ppc64)
13845 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13846 ac_arch=$ac_word
13847 else
13848 ac_cv_c_bigendian=universal
13849 break
13850 fi
13851 ;;
13852 esac
13853 ac_prev=
13854 elif test "x$ac_word" = "x-arch"; then
13855 ac_prev=arch
13856 fi
13857 done
13858 fi
13859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13860 if test $ac_cv_c_bigendian = unknown; then
13861 # See if sys/param.h defines the BYTE_ORDER macro.
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13864 #include <sys/types.h>
13865 #include <sys/param.h>
13866
13867 int
13868 main ()
13869 {
13870 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13871 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13872 && LITTLE_ENDIAN)
13873 bogus endian macros
13874 #endif
13875
13876 ;
13877 return 0;
13878 }
13879 _ACEOF
13880 if ac_fn_c_try_compile "$LINENO"; then :
13881 # It does; now see whether it defined to BIG_ENDIAN or not.
13882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13883 /* end confdefs.h. */
13884 #include <sys/types.h>
13885 #include <sys/param.h>
13886
13887 int
13888 main ()
13889 {
13890 #if BYTE_ORDER != BIG_ENDIAN
13891 not big endian
13892 #endif
13893
13894 ;
13895 return 0;
13896 }
13897 _ACEOF
13898 if ac_fn_c_try_compile "$LINENO"; then :
13899 ac_cv_c_bigendian=yes
13900 else
13901 ac_cv_c_bigendian=no
13902 fi
13903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13904 fi
13905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13906 fi
13907 if test $ac_cv_c_bigendian = unknown; then
13908 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911 #include <limits.h>
13912
13913 int
13914 main ()
13915 {
13916 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13917 bogus endian macros
13918 #endif
13919
13920 ;
13921 return 0;
13922 }
13923 _ACEOF
13924 if ac_fn_c_try_compile "$LINENO"; then :
13925 # It does; now see whether it defined to _BIG_ENDIAN or not.
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13928 #include <limits.h>
13929
13930 int
13931 main ()
13932 {
13933 #ifndef _BIG_ENDIAN
13934 not big endian
13935 #endif
13936
13937 ;
13938 return 0;
13939 }
13940 _ACEOF
13941 if ac_fn_c_try_compile "$LINENO"; then :
13942 ac_cv_c_bigendian=yes
13943 else
13944 ac_cv_c_bigendian=no
13945 fi
13946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13947 fi
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 fi
13950 if test $ac_cv_c_bigendian = unknown; then
13951 # Compile a test program.
13952 if test "$cross_compiling" = yes; then :
13953 # Try to guess by grepping values from an object file.
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956 short int ascii_mm[] =
13957 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13958 short int ascii_ii[] =
13959 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13960 int use_ascii (int i) {
13961 return ascii_mm[i] + ascii_ii[i];
13962 }
13963 short int ebcdic_ii[] =
13964 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13965 short int ebcdic_mm[] =
13966 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13967 int use_ebcdic (int i) {
13968 return ebcdic_mm[i] + ebcdic_ii[i];
13969 }
13970 extern int foo;
13971
13972 int
13973 main ()
13974 {
13975 return use_ascii (foo) == use_ebcdic (foo);
13976 ;
13977 return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_compile "$LINENO"; then :
13981 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13982 ac_cv_c_bigendian=yes
13983 fi
13984 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13985 if test "$ac_cv_c_bigendian" = unknown; then
13986 ac_cv_c_bigendian=no
13987 else
13988 # finding both strings is unlikely to happen, but who knows?
13989 ac_cv_c_bigendian=unknown
13990 fi
13991 fi
13992 fi
13993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13994 else
13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13996 /* end confdefs.h. */
13997 $ac_includes_default
13998 int
13999 main ()
14000 {
14001
14002 /* Are we little or big endian? From Harbison&Steele. */
14003 union
14004 {
14005 long int l;
14006 char c[sizeof (long int)];
14007 } u;
14008 u.l = 1;
14009 return u.c[sizeof (long int) - 1] == 1;
14010
14011 ;
14012 return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_run "$LINENO"; then :
14016 ac_cv_c_bigendian=no
14017 else
14018 ac_cv_c_bigendian=yes
14019 fi
14020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14021 conftest.$ac_objext conftest.beam conftest.$ac_ext
14022 fi
14023
14024 fi
14025 fi
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14027 $as_echo "$ac_cv_c_bigendian" >&6; }
14028 case $ac_cv_c_bigendian in #(
14029 yes)
14030 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14031 ;; #(
14032 no)
14033 ;; #(
14034 universal)
14035
14036 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14037
14038 ;; #(
14039 *)
14040 as_fn_error "unknown endianness
14041 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14042 esac
14043
14044
14045
14046
14047 # Check whether --with-system-libunwind was given.
14048 if test "${with_system_libunwind+set}" = set; then :
14049 withval=$with_system_libunwind;
14050 fi
14051
14052 # If system-libunwind was not specifically set, pick a default setting.
14053 if test x$with_system_libunwind = x; then
14054 case ${target} in
14055 ia64-*-hpux*) with_system_libunwind=yes ;;
14056 *) with_system_libunwind=no ;;
14057 esac
14058 fi
14059 # Based on system-libunwind and target, do we have ipinfo?
14060 if test x$with_system_libunwind = xyes; then
14061 case ${target} in
14062 ia64-*-*) have_unwind_getipinfo=no ;;
14063 *) have_unwind_getipinfo=yes ;;
14064 esac
14065 else
14066 # Darwin before version 9 does not have _Unwind_GetIPInfo.
14067
14068 case ${target} in
14069 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14070 *) have_unwind_getipinfo=yes ;;
14071 esac
14072
14073 fi
14074
14075 if test x$have_unwind_getipinfo = xyes; then
14076
14077 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14078
14079 fi
14080
14081
14082 # Check whether --enable-sjlj-exceptions was given.
14083 if test "${enable_sjlj_exceptions+set}" = set; then :
14084 enableval=$enable_sjlj_exceptions; case "$enableval" in
14085 yes|no|auto) ;;
14086 *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14087 esac
14088 else
14089 enable_sjlj_exceptions=auto
14090 fi
14091
14092
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14094 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14095 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14096 $as_echo_n "(cached) " >&6
14097 else
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14100
14101 void bar ();
14102 void clean (int *);
14103 void foo ()
14104 {
14105 int i __attribute__ ((cleanup (clean)));
14106 bar();
14107 }
14108
14109 _ACEOF
14110 CFLAGS_hold=$CFLAGS
14111 CFLAGS="--save-temps -fexceptions"
14112 libgo_cv_lib_sjlj_exceptions=unknown
14113 if ac_fn_c_try_compile; then :
14114 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14115 libgo_cv_lib_sjlj_exceptions=yes
14116 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14117 libgo_cv_lib_sjlj_exceptions=no
14118 fi
14119 fi
14120 CFLAGS=$CFLAGS_hold
14121 rm -f conftest*
14122
14123 fi
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14125 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14126
14127 if test "$enable_sjlj_exceptions" = "auto"; then
14128 enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14129 fi
14130
14131 case $enable_sjlj_exceptions in
14132 yes)
14133
14134 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14135
14136 ;;
14137 no)
14138 ;;
14139 *)
14140 as_fn_error "unable to detect exception model" "$LINENO" 5
14141 ;;
14142 esac
14143
14144 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
14145 do :
14146 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14147 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14148 eval as_val=\$$as_ac_Header
14149 if test "x$as_val" = x""yes; then :
14150 cat >>confdefs.h <<_ACEOF
14151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14152 _ACEOF
14153
14154 fi
14155
14156 done
14157
14158 if test "$ac_cv_header_sys_mman_h" = yes; then
14159 HAVE_SYS_MMAN_H_TRUE=
14160 HAVE_SYS_MMAN_H_FALSE='#'
14161 else
14162 HAVE_SYS_MMAN_H_TRUE='#'
14163 HAVE_SYS_MMAN_H_FALSE=
14164 fi
14165
14166 for ac_func in srandom random strsignal
14167 do :
14168 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14170 eval as_val=\$$as_ac_var
14171 if test "x$as_val" = x""yes; then :
14172 cat >>confdefs.h <<_ACEOF
14173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14174 _ACEOF
14175
14176 fi
14177 done
14178
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14181 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14182 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14183 $as_echo_n "(cached) " >&6
14184 else
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14187
14188 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14189 uint32 i;
14190 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14191
14192 _ACEOF
14193 if ac_fn_c_try_link "$LINENO"; then :
14194 libgo_cv_func___sync_bool_compare_and_swap_4=yes
14195 else
14196 libgo_cv_func___sync_bool_compare_and_swap_4=no
14197 fi
14198 rm -f core conftest.err conftest.$ac_objext \
14199 conftest$ac_exeext conftest.$ac_ext
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14202 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14203 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14204
14205 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14206
14207 fi
14208
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14210 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14211 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14212 $as_echo_n "(cached) " >&6
14213 else
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216
14217 typedef unsigned int uint32 __attribute__ ((mode (SI)));
14218 uint32 i;
14219 int main() { return __sync_fetch_and_add (&i, 1); }
14220
14221 _ACEOF
14222 if ac_fn_c_try_link "$LINENO"; then :
14223 libgo_cv_func___sync_fetch_and_add_4=yes
14224 else
14225 libgo_cv_func___sync_fetch_and_add_4=no
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext \
14228 conftest$ac_exeext conftest.$ac_ext
14229 fi
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14231 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14232 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14233
14234 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14235
14236 fi
14237
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14239 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14240 if test "${libgo_cv_c_stringops+set}" = set; then :
14241 $as_echo_n "(cached) " >&6
14242 else
14243 CFLAGS_hold=$CFLAGS
14244 CFLAGS="$CFLAGS -minline-all-stringops"
14245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14246 /* end confdefs.h. */
14247 int i;
14248 _ACEOF
14249 if ac_fn_c_try_compile "$LINENO"; then :
14250 libgo_cv_c_stringops=yes
14251 else
14252 libgo_cv_c_stringops=no
14253 fi
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 CFLAGS=$CFLAGS_hold
14256 fi
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14258 $as_echo "$libgo_cv_c_stringops" >&6; }
14259 STRINGOPS_FLAG=
14260 if test "$libgo_cv_c_stringops" = yes; then
14261 STRINGOPS_FLAG=-minline-all-stringops
14262 fi
14263
14264
14265 CFLAGS_hold=$CFLAGS
14266 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14267 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14268 if test "x$ac_cv_type_off64_t" = x""yes; then :
14269
14270 cat >>confdefs.h <<_ACEOF
14271 #define HAVE_OFF64_T 1
14272 _ACEOF
14273
14274
14275 fi
14276
14277 CFLAGS=$CFLAGS_hold
14278
14279 cat >confcache <<\_ACEOF
14280 # This file is a shell script that caches the results of configure
14281 # tests run on this system so they can be shared between configure
14282 # scripts and configure runs, see configure's option --config-cache.
14283 # It is not useful on other systems. If it contains results you don't
14284 # want to keep, you may remove or edit it.
14285 #
14286 # config.status only pays attention to the cache file if you give it
14287 # the --recheck option to rerun configure.
14288 #
14289 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14290 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14291 # following values.
14292
14293 _ACEOF
14294
14295 # The following way of writing the cache mishandles newlines in values,
14296 # but we know of no workaround that is simple, portable, and efficient.
14297 # So, we kill variables containing newlines.
14298 # Ultrix sh set writes to stderr and can't be redirected directly,
14299 # and sets the high bit in the cache file unless we assign to the vars.
14300 (
14301 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14302 eval ac_val=\$$ac_var
14303 case $ac_val in #(
14304 *${as_nl}*)
14305 case $ac_var in #(
14306 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14307 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14308 esac
14309 case $ac_var in #(
14310 _ | IFS | as_nl) ;; #(
14311 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14312 *) { eval $ac_var=; unset $ac_var;} ;;
14313 esac ;;
14314 esac
14315 done
14316
14317 (set) 2>&1 |
14318 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14319 *${as_nl}ac_space=\ *)
14320 # `set' does not quote correctly, so add quotes: double-quote
14321 # substitution turns \\\\ into \\, and sed turns \\ into \.
14322 sed -n \
14323 "s/'/'\\\\''/g;
14324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14325 ;; #(
14326 *)
14327 # `set' quotes correctly as required by POSIX, so do not add quotes.
14328 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14329 ;;
14330 esac |
14331 sort
14332 ) |
14333 sed '
14334 /^ac_cv_env_/b end
14335 t clear
14336 :clear
14337 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14338 t end
14339 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14340 :end' >>confcache
14341 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14342 if test -w "$cache_file"; then
14343 test "x$cache_file" != "x/dev/null" &&
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14345 $as_echo "$as_me: updating cache $cache_file" >&6;}
14346 cat confcache >$cache_file
14347 else
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14349 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14350 fi
14351 fi
14352 rm -f confcache
14353
14354 if test ${multilib} = yes; then
14355 multilib_arg="--enable-multilib"
14356 else
14357 multilib_arg=
14358 fi
14359
14360 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14361
14362
14363 ac_config_commands="$ac_config_commands default"
14364
14365
14366 cat >confcache <<\_ACEOF
14367 # This file is a shell script that caches the results of configure
14368 # tests run on this system so they can be shared between configure
14369 # scripts and configure runs, see configure's option --config-cache.
14370 # It is not useful on other systems. If it contains results you don't
14371 # want to keep, you may remove or edit it.
14372 #
14373 # config.status only pays attention to the cache file if you give it
14374 # the --recheck option to rerun configure.
14375 #
14376 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14377 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14378 # following values.
14379
14380 _ACEOF
14381
14382 # The following way of writing the cache mishandles newlines in values,
14383 # but we know of no workaround that is simple, portable, and efficient.
14384 # So, we kill variables containing newlines.
14385 # Ultrix sh set writes to stderr and can't be redirected directly,
14386 # and sets the high bit in the cache file unless we assign to the vars.
14387 (
14388 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14389 eval ac_val=\$$ac_var
14390 case $ac_val in #(
14391 *${as_nl}*)
14392 case $ac_var in #(
14393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14395 esac
14396 case $ac_var in #(
14397 _ | IFS | as_nl) ;; #(
14398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14399 *) { eval $ac_var=; unset $ac_var;} ;;
14400 esac ;;
14401 esac
14402 done
14403
14404 (set) 2>&1 |
14405 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14406 *${as_nl}ac_space=\ *)
14407 # `set' does not quote correctly, so add quotes: double-quote
14408 # substitution turns \\\\ into \\, and sed turns \\ into \.
14409 sed -n \
14410 "s/'/'\\\\''/g;
14411 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14412 ;; #(
14413 *)
14414 # `set' quotes correctly as required by POSIX, so do not add quotes.
14415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14416 ;;
14417 esac |
14418 sort
14419 ) |
14420 sed '
14421 /^ac_cv_env_/b end
14422 t clear
14423 :clear
14424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14425 t end
14426 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14427 :end' >>confcache
14428 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14429 if test -w "$cache_file"; then
14430 test "x$cache_file" != "x/dev/null" &&
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14432 $as_echo "$as_me: updating cache $cache_file" >&6;}
14433 cat confcache >$cache_file
14434 else
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14436 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14437 fi
14438 fi
14439 rm -f confcache
14440
14441 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14442 # Let make expand exec_prefix.
14443 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14444
14445 DEFS=-DHAVE_CONFIG_H
14446
14447 ac_libobjs=
14448 ac_ltlibobjs=
14449 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14450 # 1. Remove the extension, and $U if already installed.
14451 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14452 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14453 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14454 # will be set to the directory where LIBOBJS objects are built.
14455 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14456 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14457 done
14458 LIBOBJS=$ac_libobjs
14459
14460 LTLIBOBJS=$ac_ltlibobjs
14461
14462
14463 if test -n "$EXEEXT"; then
14464 am__EXEEXT_TRUE=
14465 am__EXEEXT_FALSE='#'
14466 else
14467 am__EXEEXT_TRUE='#'
14468 am__EXEEXT_FALSE=
14469 fi
14470
14471 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14472 as_fn_error "conditional \"AMDEP\" was never defined.
14473 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14474 fi
14475 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14476 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14477 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14478 fi
14479 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14480 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14481 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14482 fi
14483 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14484 as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14485 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14486 fi
14487 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14488 as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14490 fi
14491 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14492 as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14494 fi
14495 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14496 as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14498 fi
14499 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14500 as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14502 fi
14503 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14504 as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14506 fi
14507 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14508 as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14510 fi
14511 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14512 as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14514 fi
14515 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14516 as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14517 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14518 fi
14519 if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
14520 as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
14521 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14522 fi
14523 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14524 as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14525 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14526 fi
14527 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14528 as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14529 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14530 fi
14531 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14532 as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14533 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14534 fi
14535 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14536 as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14537 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14538 fi
14539 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14540 as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14542 fi
14543 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14544 as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14546 fi
14547
14548 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14549 as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14551 fi
14552
14553 : ${CONFIG_STATUS=./config.status}
14554 ac_write_fail=0
14555 ac_clean_files_save=$ac_clean_files
14556 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14558 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14559 as_write_fail=0
14560 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14561 #! $SHELL
14562 # Generated by $as_me.
14563 # Run this file to recreate the current configuration.
14564 # Compiler output produced by configure, useful for debugging
14565 # configure, is in config.log if it exists.
14566
14567 debug=false
14568 ac_cs_recheck=false
14569 ac_cs_silent=false
14570
14571 SHELL=\${CONFIG_SHELL-$SHELL}
14572 export SHELL
14573 _ASEOF
14574 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14575 ## -------------------- ##
14576 ## M4sh Initialization. ##
14577 ## -------------------- ##
14578
14579 # Be more Bourne compatible
14580 DUALCASE=1; export DUALCASE # for MKS sh
14581 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14582 emulate sh
14583 NULLCMD=:
14584 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14585 # is contrary to our usage. Disable this feature.
14586 alias -g '${1+"$@"}'='"$@"'
14587 setopt NO_GLOB_SUBST
14588 else
14589 case `(set -o) 2>/dev/null` in #(
14590 *posix*) :
14591 set -o posix ;; #(
14592 *) :
14593 ;;
14594 esac
14595 fi
14596
14597
14598 as_nl='
14599 '
14600 export as_nl
14601 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14602 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14603 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14604 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14605 # Prefer a ksh shell builtin over an external printf program on Solaris,
14606 # but without wasting forks for bash or zsh.
14607 if test -z "$BASH_VERSION$ZSH_VERSION" \
14608 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14609 as_echo='print -r --'
14610 as_echo_n='print -rn --'
14611 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14612 as_echo='printf %s\n'
14613 as_echo_n='printf %s'
14614 else
14615 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14616 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14617 as_echo_n='/usr/ucb/echo -n'
14618 else
14619 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14620 as_echo_n_body='eval
14621 arg=$1;
14622 case $arg in #(
14623 *"$as_nl"*)
14624 expr "X$arg" : "X\\(.*\\)$as_nl";
14625 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14626 esac;
14627 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14628 '
14629 export as_echo_n_body
14630 as_echo_n='sh -c $as_echo_n_body as_echo'
14631 fi
14632 export as_echo_body
14633 as_echo='sh -c $as_echo_body as_echo'
14634 fi
14635
14636 # The user is always right.
14637 if test "${PATH_SEPARATOR+set}" != set; then
14638 PATH_SEPARATOR=:
14639 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14640 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14641 PATH_SEPARATOR=';'
14642 }
14643 fi
14644
14645
14646 # IFS
14647 # We need space, tab and new line, in precisely that order. Quoting is
14648 # there to prevent editors from complaining about space-tab.
14649 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14650 # splitting by setting IFS to empty value.)
14651 IFS=" "" $as_nl"
14652
14653 # Find who we are. Look in the path if we contain no directory separator.
14654 case $0 in #((
14655 *[\\/]* ) as_myself=$0 ;;
14656 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14657 for as_dir in $PATH
14658 do
14659 IFS=$as_save_IFS
14660 test -z "$as_dir" && as_dir=.
14661 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14662 done
14663 IFS=$as_save_IFS
14664
14665 ;;
14666 esac
14667 # We did not find ourselves, most probably we were run as `sh COMMAND'
14668 # in which case we are not to be found in the path.
14669 if test "x$as_myself" = x; then
14670 as_myself=$0
14671 fi
14672 if test ! -f "$as_myself"; then
14673 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14674 exit 1
14675 fi
14676
14677 # Unset variables that we do not need and which cause bugs (e.g. in
14678 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14679 # suppresses any "Segmentation fault" message there. '((' could
14680 # trigger a bug in pdksh 5.2.14.
14681 for as_var in BASH_ENV ENV MAIL MAILPATH
14682 do eval test x\${$as_var+set} = xset \
14683 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14684 done
14685 PS1='$ '
14686 PS2='> '
14687 PS4='+ '
14688
14689 # NLS nuisances.
14690 LC_ALL=C
14691 export LC_ALL
14692 LANGUAGE=C
14693 export LANGUAGE
14694
14695 # CDPATH.
14696 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14697
14698
14699 # as_fn_error ERROR [LINENO LOG_FD]
14700 # ---------------------------------
14701 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14702 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14703 # script with status $?, using 1 if that was 0.
14704 as_fn_error ()
14705 {
14706 as_status=$?; test $as_status -eq 0 && as_status=1
14707 if test "$3"; then
14708 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14709 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14710 fi
14711 $as_echo "$as_me: error: $1" >&2
14712 as_fn_exit $as_status
14713 } # as_fn_error
14714
14715
14716 # as_fn_set_status STATUS
14717 # -----------------------
14718 # Set $? to STATUS, without forking.
14719 as_fn_set_status ()
14720 {
14721 return $1
14722 } # as_fn_set_status
14723
14724 # as_fn_exit STATUS
14725 # -----------------
14726 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14727 as_fn_exit ()
14728 {
14729 set +e
14730 as_fn_set_status $1
14731 exit $1
14732 } # as_fn_exit
14733
14734 # as_fn_unset VAR
14735 # ---------------
14736 # Portably unset VAR.
14737 as_fn_unset ()
14738 {
14739 { eval $1=; unset $1;}
14740 }
14741 as_unset=as_fn_unset
14742 # as_fn_append VAR VALUE
14743 # ----------------------
14744 # Append the text in VALUE to the end of the definition contained in VAR. Take
14745 # advantage of any shell optimizations that allow amortized linear growth over
14746 # repeated appends, instead of the typical quadratic growth present in naive
14747 # implementations.
14748 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14749 eval 'as_fn_append ()
14750 {
14751 eval $1+=\$2
14752 }'
14753 else
14754 as_fn_append ()
14755 {
14756 eval $1=\$$1\$2
14757 }
14758 fi # as_fn_append
14759
14760 # as_fn_arith ARG...
14761 # ------------------
14762 # Perform arithmetic evaluation on the ARGs, and store the result in the
14763 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14764 # must be portable across $(()) and expr.
14765 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14766 eval 'as_fn_arith ()
14767 {
14768 as_val=$(( $* ))
14769 }'
14770 else
14771 as_fn_arith ()
14772 {
14773 as_val=`expr "$@" || test $? -eq 1`
14774 }
14775 fi # as_fn_arith
14776
14777
14778 if expr a : '\(a\)' >/dev/null 2>&1 &&
14779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14780 as_expr=expr
14781 else
14782 as_expr=false
14783 fi
14784
14785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14786 as_basename=basename
14787 else
14788 as_basename=false
14789 fi
14790
14791 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14792 as_dirname=dirname
14793 else
14794 as_dirname=false
14795 fi
14796
14797 as_me=`$as_basename -- "$0" ||
14798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14799 X"$0" : 'X\(//\)$' \| \
14800 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14801 $as_echo X/"$0" |
14802 sed '/^.*\/\([^/][^/]*\)\/*$/{
14803 s//\1/
14804 q
14805 }
14806 /^X\/\(\/\/\)$/{
14807 s//\1/
14808 q
14809 }
14810 /^X\/\(\/\).*/{
14811 s//\1/
14812 q
14813 }
14814 s/.*/./; q'`
14815
14816 # Avoid depending upon Character Ranges.
14817 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14818 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14819 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14820 as_cr_digits='0123456789'
14821 as_cr_alnum=$as_cr_Letters$as_cr_digits
14822
14823 ECHO_C= ECHO_N= ECHO_T=
14824 case `echo -n x` in #(((((
14825 -n*)
14826 case `echo 'xy\c'` in
14827 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14828 xy) ECHO_C='\c';;
14829 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14830 ECHO_T=' ';;
14831 esac;;
14832 *)
14833 ECHO_N='-n';;
14834 esac
14835
14836 rm -f conf$$ conf$$.exe conf$$.file
14837 if test -d conf$$.dir; then
14838 rm -f conf$$.dir/conf$$.file
14839 else
14840 rm -f conf$$.dir
14841 mkdir conf$$.dir 2>/dev/null
14842 fi
14843 if (echo >conf$$.file) 2>/dev/null; then
14844 if ln -s conf$$.file conf$$ 2>/dev/null; then
14845 as_ln_s='ln -s'
14846 # ... but there are two gotchas:
14847 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14848 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14849 # In both cases, we have to default to `cp -p'.
14850 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14851 as_ln_s='cp -p'
14852 elif ln conf$$.file conf$$ 2>/dev/null; then
14853 as_ln_s=ln
14854 else
14855 as_ln_s='cp -p'
14856 fi
14857 else
14858 as_ln_s='cp -p'
14859 fi
14860 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14861 rmdir conf$$.dir 2>/dev/null
14862
14863
14864 # as_fn_mkdir_p
14865 # -------------
14866 # Create "$as_dir" as a directory, including parents if necessary.
14867 as_fn_mkdir_p ()
14868 {
14869
14870 case $as_dir in #(
14871 -*) as_dir=./$as_dir;;
14872 esac
14873 test -d "$as_dir" || eval $as_mkdir_p || {
14874 as_dirs=
14875 while :; do
14876 case $as_dir in #(
14877 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14878 *) as_qdir=$as_dir;;
14879 esac
14880 as_dirs="'$as_qdir' $as_dirs"
14881 as_dir=`$as_dirname -- "$as_dir" ||
14882 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14883 X"$as_dir" : 'X\(//\)[^/]' \| \
14884 X"$as_dir" : 'X\(//\)$' \| \
14885 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14886 $as_echo X"$as_dir" |
14887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14888 s//\1/
14889 q
14890 }
14891 /^X\(\/\/\)[^/].*/{
14892 s//\1/
14893 q
14894 }
14895 /^X\(\/\/\)$/{
14896 s//\1/
14897 q
14898 }
14899 /^X\(\/\).*/{
14900 s//\1/
14901 q
14902 }
14903 s/.*/./; q'`
14904 test -d "$as_dir" && break
14905 done
14906 test -z "$as_dirs" || eval "mkdir $as_dirs"
14907 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14908
14909
14910 } # as_fn_mkdir_p
14911 if mkdir -p . 2>/dev/null; then
14912 as_mkdir_p='mkdir -p "$as_dir"'
14913 else
14914 test -d ./-p && rmdir ./-p
14915 as_mkdir_p=false
14916 fi
14917
14918 if test -x / >/dev/null 2>&1; then
14919 as_test_x='test -x'
14920 else
14921 if ls -dL / >/dev/null 2>&1; then
14922 as_ls_L_option=L
14923 else
14924 as_ls_L_option=
14925 fi
14926 as_test_x='
14927 eval sh -c '\''
14928 if test -d "$1"; then
14929 test -d "$1/.";
14930 else
14931 case $1 in #(
14932 -*)set "./$1";;
14933 esac;
14934 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14935 ???[sx]*):;;*)false;;esac;fi
14936 '\'' sh
14937 '
14938 fi
14939 as_executable_p=$as_test_x
14940
14941 # Sed expression to map a string onto a valid CPP name.
14942 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14943
14944 # Sed expression to map a string onto a valid variable name.
14945 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14946
14947
14948 exec 6>&1
14949 ## ----------------------------------- ##
14950 ## Main body of $CONFIG_STATUS script. ##
14951 ## ----------------------------------- ##
14952 _ASEOF
14953 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14954
14955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14956 # Save the log message, to keep $0 and so on meaningful, and to
14957 # report actual input values of CONFIG_FILES etc. instead of their
14958 # values after options handling.
14959 ac_log="
14960 This file was extended by package-unused $as_me version-unused, which was
14961 generated by GNU Autoconf 2.64. Invocation command line was
14962
14963 CONFIG_FILES = $CONFIG_FILES
14964 CONFIG_HEADERS = $CONFIG_HEADERS
14965 CONFIG_LINKS = $CONFIG_LINKS
14966 CONFIG_COMMANDS = $CONFIG_COMMANDS
14967 $ $0 $@
14968
14969 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14970 "
14971
14972 _ACEOF
14973
14974 case $ac_config_files in *"
14975 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14976 esac
14977
14978 case $ac_config_headers in *"
14979 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14980 esac
14981
14982
14983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14984 # Files that config.status was made for.
14985 config_files="$ac_config_files"
14986 config_headers="$ac_config_headers"
14987 config_commands="$ac_config_commands"
14988
14989 _ACEOF
14990
14991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14992 ac_cs_usage="\
14993 \`$as_me' instantiates files and other configuration actions
14994 from templates according to the current configuration. Unless the files
14995 and actions are specified as TAGs, all are instantiated by default.
14996
14997 Usage: $0 [OPTION]... [TAG]...
14998
14999 -h, --help print this help, then exit
15000 -V, --version print version number and configuration settings, then exit
15001 -q, --quiet, --silent
15002 do not print progress messages
15003 -d, --debug don't remove temporary files
15004 --recheck update $as_me by reconfiguring in the same conditions
15005 --file=FILE[:TEMPLATE]
15006 instantiate the configuration file FILE
15007 --header=FILE[:TEMPLATE]
15008 instantiate the configuration header FILE
15009
15010 Configuration files:
15011 $config_files
15012
15013 Configuration headers:
15014 $config_headers
15015
15016 Configuration commands:
15017 $config_commands
15018
15019 Report bugs to the package provider."
15020
15021 _ACEOF
15022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15023 ac_cs_version="\\
15024 package-unused config.status version-unused
15025 configured by $0, generated by GNU Autoconf 2.64,
15026 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15027
15028 Copyright (C) 2009 Free Software Foundation, Inc.
15029 This config.status script is free software; the Free Software Foundation
15030 gives unlimited permission to copy, distribute and modify it."
15031
15032 ac_pwd='$ac_pwd'
15033 srcdir='$srcdir'
15034 INSTALL='$INSTALL'
15035 MKDIR_P='$MKDIR_P'
15036 AWK='$AWK'
15037 test -n "\$AWK" || AWK=awk
15038 _ACEOF
15039
15040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15041 # The default lists apply if the user does not specify any file.
15042 ac_need_defaults=:
15043 while test $# != 0
15044 do
15045 case $1 in
15046 --*=*)
15047 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15048 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15049 ac_shift=:
15050 ;;
15051 *)
15052 ac_option=$1
15053 ac_optarg=$2
15054 ac_shift=shift
15055 ;;
15056 esac
15057
15058 case $ac_option in
15059 # Handling of the options.
15060 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15061 ac_cs_recheck=: ;;
15062 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15063 $as_echo "$ac_cs_version"; exit ;;
15064 --debug | --debu | --deb | --de | --d | -d )
15065 debug=: ;;
15066 --file | --fil | --fi | --f )
15067 $ac_shift
15068 case $ac_optarg in
15069 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15070 esac
15071 as_fn_append CONFIG_FILES " '$ac_optarg'"
15072 ac_need_defaults=false;;
15073 --header | --heade | --head | --hea )
15074 $ac_shift
15075 case $ac_optarg in
15076 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15077 esac
15078 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15079 ac_need_defaults=false;;
15080 --he | --h)
15081 # Conflict between --help and --header
15082 as_fn_error "ambiguous option: \`$1'
15083 Try \`$0 --help' for more information.";;
15084 --help | --hel | -h )
15085 $as_echo "$ac_cs_usage"; exit ;;
15086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15087 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15088 ac_cs_silent=: ;;
15089
15090 # This is an error.
15091 -*) as_fn_error "unrecognized option: \`$1'
15092 Try \`$0 --help' for more information." ;;
15093
15094 *) as_fn_append ac_config_targets " $1"
15095 ac_need_defaults=false ;;
15096
15097 esac
15098 shift
15099 done
15100
15101 ac_configure_extra_args=
15102
15103 if $ac_cs_silent; then
15104 exec 6>/dev/null
15105 ac_configure_extra_args="$ac_configure_extra_args --silent"
15106 fi
15107
15108 _ACEOF
15109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15110 if \$ac_cs_recheck; then
15111 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15112 shift
15113 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15114 CONFIG_SHELL='$SHELL'
15115 export CONFIG_SHELL
15116 exec "\$@"
15117 fi
15118
15119 _ACEOF
15120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15121 exec 5>>config.log
15122 {
15123 echo
15124 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15125 ## Running $as_me. ##
15126 _ASBOX
15127 $as_echo "$ac_log"
15128 } >&5
15129
15130 _ACEOF
15131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15132 #
15133 # INIT-COMMANDS
15134 #
15135
15136 srcdir="$srcdir"
15137 host="$host"
15138 target="$target"
15139 with_multisubdir="$with_multisubdir"
15140 with_multisrctop="$with_multisrctop"
15141 with_target_subdir="$with_target_subdir"
15142 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15143 multi_basedir="$multi_basedir"
15144 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15145 CC="$CC"
15146 CXX="$CXX"
15147 GFORTRAN="$GFORTRAN"
15148 GCJ="$GCJ"
15149 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15150
15151
15152 # The HP-UX ksh and POSIX shell print the target directory to stdout
15153 # if CDPATH is set.
15154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15155
15156 sed_quote_subst='$sed_quote_subst'
15157 double_quote_subst='$double_quote_subst'
15158 delay_variable_subst='$delay_variable_subst'
15159 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15160 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15161 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15162 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15163 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15164 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15165 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15166 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15167 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15168 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15169 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15170 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15171 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15172 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15173 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15174 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15175 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15176 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15177 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15178 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15179 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15180 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15181 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15182 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15183 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15184 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15185 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15186 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15187 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15188 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15189 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15190 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15191 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15192 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15193 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15194 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15195 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15196 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15197 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15198 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15199 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15200 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15201 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15202 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15203 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15204 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15205 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15206 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15207 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"`'
15208 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15209 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15210 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15211 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15212 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15213 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15214 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15215 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15216 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15217 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15218 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15219 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15220 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15221 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15222 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15223 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15224 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15225 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15226 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15227 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15228 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15229 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15230 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15231 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15232 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15233 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15234 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15235 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15236 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15237 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15238 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15239 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15240 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15241 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15242 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15243 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15244 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15245 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15246 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15247 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15248 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15249 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15250 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15251 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15252 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15253 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15254 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15255 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15256 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15257 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15258 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15259 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15260 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15261 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15262 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15263 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15264 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15265 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15266 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15267 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15268 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15269 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15270 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15271 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15272 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15273 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15274 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15275 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15276 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15277 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15278 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15279 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15280 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15281 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15282 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15283 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15284 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15285 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15286 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15287 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15288 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15289 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15290 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15291 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15292 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15293 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15294 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15295 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15296 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15297 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15298 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15299 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15300 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15301 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15302 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15303 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15304 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15305 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15306 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15307 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15308 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15309 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15310 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15311 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15312 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15313 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15314 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15315 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15316 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15317 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15318 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15319 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15320 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15321 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15322
15323 LTCC='$LTCC'
15324 LTCFLAGS='$LTCFLAGS'
15325 compiler='$compiler_DEFAULT'
15326
15327 # A function that is used when there is no print builtin or printf.
15328 func_fallback_echo ()
15329 {
15330 eval 'cat <<_LTECHO_EOF
15331 \$1
15332 _LTECHO_EOF'
15333 }
15334
15335 # Quote evaled strings.
15336 for var in SED \
15337 GREP \
15338 EGREP \
15339 FGREP \
15340 SHELL \
15341 ECHO \
15342 LD \
15343 NM \
15344 LN_S \
15345 lt_SP2NL \
15346 lt_NL2SP \
15347 reload_flag \
15348 OBJDUMP \
15349 deplibs_check_method \
15350 file_magic_cmd \
15351 AR \
15352 AR_FLAGS \
15353 STRIP \
15354 RANLIB \
15355 CC \
15356 CFLAGS \
15357 compiler \
15358 lt_cv_sys_global_symbol_pipe \
15359 lt_cv_sys_global_symbol_to_cdecl \
15360 lt_cv_sys_global_symbol_to_c_name_address \
15361 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15362 lt_prog_compiler_no_builtin_flag \
15363 lt_prog_compiler_wl \
15364 lt_prog_compiler_pic \
15365 lt_prog_compiler_static \
15366 lt_cv_prog_compiler_c_o \
15367 need_locks \
15368 DSYMUTIL \
15369 NMEDIT \
15370 LIPO \
15371 OTOOL \
15372 OTOOL64 \
15373 shrext_cmds \
15374 export_dynamic_flag_spec \
15375 whole_archive_flag_spec \
15376 compiler_needs_object \
15377 with_gnu_ld \
15378 allow_undefined_flag \
15379 no_undefined_flag \
15380 hardcode_libdir_flag_spec \
15381 hardcode_libdir_flag_spec_ld \
15382 hardcode_libdir_separator \
15383 fix_srcfile_path \
15384 exclude_expsyms \
15385 include_expsyms \
15386 file_list_spec \
15387 variables_saved_for_relink \
15388 libname_spec \
15389 library_names_spec \
15390 soname_spec \
15391 install_override_mode \
15392 finish_eval \
15393 old_striplib \
15394 striplib \
15395 LD_GO \
15396 reload_flag_GO \
15397 compiler_GO \
15398 lt_prog_compiler_no_builtin_flag_GO \
15399 lt_prog_compiler_wl_GO \
15400 lt_prog_compiler_pic_GO \
15401 lt_prog_compiler_static_GO \
15402 lt_cv_prog_compiler_c_o_GO \
15403 export_dynamic_flag_spec_GO \
15404 whole_archive_flag_spec_GO \
15405 compiler_needs_object_GO \
15406 with_gnu_ld_GO \
15407 allow_undefined_flag_GO \
15408 no_undefined_flag_GO \
15409 hardcode_libdir_flag_spec_GO \
15410 hardcode_libdir_flag_spec_ld_GO \
15411 hardcode_libdir_separator_GO \
15412 fix_srcfile_path_GO \
15413 exclude_expsyms_GO \
15414 include_expsyms_GO \
15415 file_list_spec_GO; do
15416 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15417 *[\\\\\\\`\\"\\\$]*)
15418 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15419 ;;
15420 *)
15421 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15422 ;;
15423 esac
15424 done
15425
15426 # Double-quote double-evaled strings.
15427 for var in reload_cmds \
15428 old_postinstall_cmds \
15429 old_postuninstall_cmds \
15430 old_archive_cmds \
15431 extract_expsyms_cmds \
15432 old_archive_from_new_cmds \
15433 old_archive_from_expsyms_cmds \
15434 archive_cmds \
15435 archive_expsym_cmds \
15436 module_cmds \
15437 module_expsym_cmds \
15438 export_symbols_cmds \
15439 prelink_cmds \
15440 postinstall_cmds \
15441 postuninstall_cmds \
15442 finish_cmds \
15443 sys_lib_search_path_spec \
15444 sys_lib_dlsearch_path_spec \
15445 reload_cmds_GO \
15446 old_archive_cmds_GO \
15447 old_archive_from_new_cmds_GO \
15448 old_archive_from_expsyms_cmds_GO \
15449 archive_cmds_GO \
15450 archive_expsym_cmds_GO \
15451 module_cmds_GO \
15452 module_expsym_cmds_GO \
15453 export_symbols_cmds_GO \
15454 prelink_cmds_GO; do
15455 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15456 *[\\\\\\\`\\"\\\$]*)
15457 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15458 ;;
15459 *)
15460 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15461 ;;
15462 esac
15463 done
15464
15465 ac_aux_dir='$ac_aux_dir'
15466 xsi_shell='$xsi_shell'
15467 lt_shell_append='$lt_shell_append'
15468
15469 # See if we are running on zsh, and set the options which allow our
15470 # commands through without removal of \ escapes INIT.
15471 if test -n "\${ZSH_VERSION+set}" ; then
15472 setopt NO_GLOB_SUBST
15473 fi
15474
15475
15476 PACKAGE='$PACKAGE'
15477 VERSION='$VERSION'
15478 TIMESTAMP='$TIMESTAMP'
15479 RM='$RM'
15480 ofile='$ofile'
15481
15482
15483
15484
15485
15486
15487 # Variables needed in config.status (file generation) which aren't already
15488 # passed by autoconf.
15489 SUBDIRS="$SUBDIRS"
15490
15491
15492 _ACEOF
15493
15494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15495
15496 # Handling of arguments.
15497 for ac_config_target in $ac_config_targets
15498 do
15499 case $ac_config_target in
15500 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15501 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15502 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15503 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15504 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15505 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15506 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15507
15508 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15509 esac
15510 done
15511
15512
15513 # If the user did not use the arguments to specify the items to instantiate,
15514 # then the envvar interface is used. Set only those that are not.
15515 # We use the long form for the default assignment because of an extremely
15516 # bizarre bug on SunOS 4.1.3.
15517 if $ac_need_defaults; then
15518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15519 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15520 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15521 fi
15522
15523 # Have a temporary directory for convenience. Make it in the build tree
15524 # simply because there is no reason against having it here, and in addition,
15525 # creating and moving files from /tmp can sometimes cause problems.
15526 # Hook for its removal unless debugging.
15527 # Note that there is a small window in which the directory will not be cleaned:
15528 # after its creation but before its name has been assigned to `$tmp'.
15529 $debug ||
15530 {
15531 tmp=
15532 trap 'exit_status=$?
15533 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15534 ' 0
15535 trap 'as_fn_exit 1' 1 2 13 15
15536 }
15537 # Create a (secure) tmp directory for tmp files.
15538
15539 {
15540 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15541 test -n "$tmp" && test -d "$tmp"
15542 } ||
15543 {
15544 tmp=./conf$$-$RANDOM
15545 (umask 077 && mkdir "$tmp")
15546 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15547
15548 # Set up the scripts for CONFIG_FILES section.
15549 # No need to generate them if there are no CONFIG_FILES.
15550 # This happens for instance with `./config.status config.h'.
15551 if test -n "$CONFIG_FILES"; then
15552
15553
15554 ac_cr=`echo X | tr X '\015'`
15555 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15556 # But we know of no other shell where ac_cr would be empty at this
15557 # point, so we can use a bashism as a fallback.
15558 if test "x$ac_cr" = x; then
15559 eval ac_cr=\$\'\\r\'
15560 fi
15561 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15562 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15563 ac_cs_awk_cr='\r'
15564 else
15565 ac_cs_awk_cr=$ac_cr
15566 fi
15567
15568 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15569 _ACEOF
15570
15571
15572 {
15573 echo "cat >conf$$subs.awk <<_ACEOF" &&
15574 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15575 echo "_ACEOF"
15576 } >conf$$subs.sh ||
15577 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15578 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15579 ac_delim='%!_!# '
15580 for ac_last_try in false false false false false :; do
15581 . ./conf$$subs.sh ||
15582 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15583
15584 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15585 if test $ac_delim_n = $ac_delim_num; then
15586 break
15587 elif $ac_last_try; then
15588 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15589 else
15590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15591 fi
15592 done
15593 rm -f conf$$subs.sh
15594
15595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15596 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15597 _ACEOF
15598 sed -n '
15599 h
15600 s/^/S["/; s/!.*/"]=/
15601 p
15602 g
15603 s/^[^!]*!//
15604 :repl
15605 t repl
15606 s/'"$ac_delim"'$//
15607 t delim
15608 :nl
15609 h
15610 s/\(.\{148\}\).*/\1/
15611 t more1
15612 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15613 p
15614 n
15615 b repl
15616 :more1
15617 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15618 p
15619 g
15620 s/.\{148\}//
15621 t nl
15622 :delim
15623 h
15624 s/\(.\{148\}\).*/\1/
15625 t more2
15626 s/["\\]/\\&/g; s/^/"/; s/$/"/
15627 p
15628 b
15629 :more2
15630 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15631 p
15632 g
15633 s/.\{148\}//
15634 t delim
15635 ' <conf$$subs.awk | sed '
15636 /^[^""]/{
15637 N
15638 s/\n//
15639 }
15640 ' >>$CONFIG_STATUS || ac_write_fail=1
15641 rm -f conf$$subs.awk
15642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15643 _ACAWK
15644 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15645 for (key in S) S_is_set[key] = 1
15646 FS = "\a"
15647
15648 }
15649 {
15650 line = $ 0
15651 nfields = split(line, field, "@")
15652 substed = 0
15653 len = length(field[1])
15654 for (i = 2; i < nfields; i++) {
15655 key = field[i]
15656 keylen = length(key)
15657 if (S_is_set[key]) {
15658 value = S[key]
15659 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15660 len += length(value) + length(field[++i])
15661 substed = 1
15662 } else
15663 len += 1 + keylen
15664 }
15665
15666 print line
15667 }
15668
15669 _ACAWK
15670 _ACEOF
15671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15673 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15674 else
15675 cat
15676 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15677 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15678 _ACEOF
15679
15680 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15681 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15682 # trailing colons and then remove the whole line if VPATH becomes empty
15683 # (actually we leave an empty line to preserve line numbers).
15684 if test "x$srcdir" = x.; then
15685 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15686 s/:*\$(srcdir):*/:/
15687 s/:*\${srcdir}:*/:/
15688 s/:*@srcdir@:*/:/
15689 s/^\([^=]*=[ ]*\):*/\1/
15690 s/:*$//
15691 s/^[^=]*=[ ]*$//
15692 }'
15693 fi
15694
15695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15696 fi # test -n "$CONFIG_FILES"
15697
15698 # Set up the scripts for CONFIG_HEADERS section.
15699 # No need to generate them if there are no CONFIG_HEADERS.
15700 # This happens for instance with `./config.status Makefile'.
15701 if test -n "$CONFIG_HEADERS"; then
15702 cat >"$tmp/defines.awk" <<\_ACAWK ||
15703 BEGIN {
15704 _ACEOF
15705
15706 # Transform confdefs.h into an awk script `defines.awk', embedded as
15707 # here-document in config.status, that substitutes the proper values into
15708 # config.h.in to produce config.h.
15709
15710 # Create a delimiter string that does not exist in confdefs.h, to ease
15711 # handling of long lines.
15712 ac_delim='%!_!# '
15713 for ac_last_try in false false :; do
15714 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15715 if test -z "$ac_t"; then
15716 break
15717 elif $ac_last_try; then
15718 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15719 else
15720 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15721 fi
15722 done
15723
15724 # For the awk script, D is an array of macro values keyed by name,
15725 # likewise P contains macro parameters if any. Preserve backslash
15726 # newline sequences.
15727
15728 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15729 sed -n '
15730 s/.\{148\}/&'"$ac_delim"'/g
15731 t rset
15732 :rset
15733 s/^[ ]*#[ ]*define[ ][ ]*/ /
15734 t def
15735 d
15736 :def
15737 s/\\$//
15738 t bsnl
15739 s/["\\]/\\&/g
15740 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15741 D["\1"]=" \3"/p
15742 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15743 d
15744 :bsnl
15745 s/["\\]/\\&/g
15746 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15747 D["\1"]=" \3\\\\\\n"\\/p
15748 t cont
15749 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15750 t cont
15751 d
15752 :cont
15753 n
15754 s/.\{148\}/&'"$ac_delim"'/g
15755 t clear
15756 :clear
15757 s/\\$//
15758 t bsnlc
15759 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15760 d
15761 :bsnlc
15762 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15763 b cont
15764 ' <confdefs.h | sed '
15765 s/'"$ac_delim"'/"\\\
15766 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15767
15768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15769 for (key in D) D_is_set[key] = 1
15770 FS = "\a"
15771 }
15772 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15773 line = \$ 0
15774 split(line, arg, " ")
15775 if (arg[1] == "#") {
15776 defundef = arg[2]
15777 mac1 = arg[3]
15778 } else {
15779 defundef = substr(arg[1], 2)
15780 mac1 = arg[2]
15781 }
15782 split(mac1, mac2, "(") #)
15783 macro = mac2[1]
15784 prefix = substr(line, 1, index(line, defundef) - 1)
15785 if (D_is_set[macro]) {
15786 # Preserve the white space surrounding the "#".
15787 print prefix "define", macro P[macro] D[macro]
15788 next
15789 } else {
15790 # Replace #undef with comments. This is necessary, for example,
15791 # in the case of _POSIX_SOURCE, which is predefined and required
15792 # on some systems where configure will not decide to define it.
15793 if (defundef == "undef") {
15794 print "/*", prefix defundef, macro, "*/"
15795 next
15796 }
15797 }
15798 }
15799 { print }
15800 _ACAWK
15801 _ACEOF
15802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15803 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15804 fi # test -n "$CONFIG_HEADERS"
15805
15806
15807 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15808 shift
15809 for ac_tag
15810 do
15811 case $ac_tag in
15812 :[FHLC]) ac_mode=$ac_tag; continue;;
15813 esac
15814 case $ac_mode$ac_tag in
15815 :[FHL]*:*);;
15816 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15817 :[FH]-) ac_tag=-:-;;
15818 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15819 esac
15820 ac_save_IFS=$IFS
15821 IFS=:
15822 set x $ac_tag
15823 IFS=$ac_save_IFS
15824 shift
15825 ac_file=$1
15826 shift
15827
15828 case $ac_mode in
15829 :L) ac_source=$1;;
15830 :[FH])
15831 ac_file_inputs=
15832 for ac_f
15833 do
15834 case $ac_f in
15835 -) ac_f="$tmp/stdin";;
15836 *) # Look for the file first in the build tree, then in the source tree
15837 # (if the path is not absolute). The absolute path cannot be DOS-style,
15838 # because $ac_f cannot contain `:'.
15839 test -f "$ac_f" ||
15840 case $ac_f in
15841 [\\/$]*) false;;
15842 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15843 esac ||
15844 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15845 esac
15846 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15847 as_fn_append ac_file_inputs " '$ac_f'"
15848 done
15849
15850 # Let's still pretend it is `configure' which instantiates (i.e., don't
15851 # use $as_me), people would be surprised to read:
15852 # /* config.h. Generated by config.status. */
15853 configure_input='Generated from '`
15854 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15855 `' by configure.'
15856 if test x"$ac_file" != x-; then
15857 configure_input="$ac_file. $configure_input"
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15859 $as_echo "$as_me: creating $ac_file" >&6;}
15860 fi
15861 # Neutralize special characters interpreted by sed in replacement strings.
15862 case $configure_input in #(
15863 *\&* | *\|* | *\\* )
15864 ac_sed_conf_input=`$as_echo "$configure_input" |
15865 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15866 *) ac_sed_conf_input=$configure_input;;
15867 esac
15868
15869 case $ac_tag in
15870 *:-:* | *:-) cat >"$tmp/stdin" \
15871 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15872 esac
15873 ;;
15874 esac
15875
15876 ac_dir=`$as_dirname -- "$ac_file" ||
15877 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15878 X"$ac_file" : 'X\(//\)[^/]' \| \
15879 X"$ac_file" : 'X\(//\)$' \| \
15880 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15881 $as_echo X"$ac_file" |
15882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15883 s//\1/
15884 q
15885 }
15886 /^X\(\/\/\)[^/].*/{
15887 s//\1/
15888 q
15889 }
15890 /^X\(\/\/\)$/{
15891 s//\1/
15892 q
15893 }
15894 /^X\(\/\).*/{
15895 s//\1/
15896 q
15897 }
15898 s/.*/./; q'`
15899 as_dir="$ac_dir"; as_fn_mkdir_p
15900 ac_builddir=.
15901
15902 case "$ac_dir" in
15903 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15904 *)
15905 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15906 # A ".." for each directory in $ac_dir_suffix.
15907 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15908 case $ac_top_builddir_sub in
15909 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15910 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15911 esac ;;
15912 esac
15913 ac_abs_top_builddir=$ac_pwd
15914 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15915 # for backward compatibility:
15916 ac_top_builddir=$ac_top_build_prefix
15917
15918 case $srcdir in
15919 .) # We are building in place.
15920 ac_srcdir=.
15921 ac_top_srcdir=$ac_top_builddir_sub
15922 ac_abs_top_srcdir=$ac_pwd ;;
15923 [\\/]* | ?:[\\/]* ) # Absolute name.
15924 ac_srcdir=$srcdir$ac_dir_suffix;
15925 ac_top_srcdir=$srcdir
15926 ac_abs_top_srcdir=$srcdir ;;
15927 *) # Relative name.
15928 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15929 ac_top_srcdir=$ac_top_build_prefix$srcdir
15930 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15931 esac
15932 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15933
15934
15935 case $ac_mode in
15936 :F)
15937 #
15938 # CONFIG_FILE
15939 #
15940
15941 case $INSTALL in
15942 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15943 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15944 esac
15945 ac_MKDIR_P=$MKDIR_P
15946 case $MKDIR_P in
15947 [\\/$]* | ?:[\\/]* ) ;;
15948 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15949 esac
15950 _ACEOF
15951
15952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15953 # If the template does not know about datarootdir, expand it.
15954 # FIXME: This hack should be removed a few years after 2.60.
15955 ac_datarootdir_hack=; ac_datarootdir_seen=
15956 ac_sed_dataroot='
15957 /datarootdir/ {
15958 p
15959 q
15960 }
15961 /@datadir@/p
15962 /@docdir@/p
15963 /@infodir@/p
15964 /@localedir@/p
15965 /@mandir@/p'
15966 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15967 *datarootdir*) ac_datarootdir_seen=yes;;
15968 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15970 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15971 _ACEOF
15972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15973 ac_datarootdir_hack='
15974 s&@datadir@&$datadir&g
15975 s&@docdir@&$docdir&g
15976 s&@infodir@&$infodir&g
15977 s&@localedir@&$localedir&g
15978 s&@mandir@&$mandir&g
15979 s&\\\${datarootdir}&$datarootdir&g' ;;
15980 esac
15981 _ACEOF
15982
15983 # Neutralize VPATH when `$srcdir' = `.'.
15984 # Shell code in configure.ac might set extrasub.
15985 # FIXME: do we really want to maintain this feature?
15986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15987 ac_sed_extra="$ac_vpsub
15988 $extrasub
15989 _ACEOF
15990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15991 :t
15992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15993 s|@configure_input@|$ac_sed_conf_input|;t t
15994 s&@top_builddir@&$ac_top_builddir_sub&;t t
15995 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15996 s&@srcdir@&$ac_srcdir&;t t
15997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15998 s&@top_srcdir@&$ac_top_srcdir&;t t
15999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16000 s&@builddir@&$ac_builddir&;t t
16001 s&@abs_builddir@&$ac_abs_builddir&;t t
16002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16003 s&@INSTALL@&$ac_INSTALL&;t t
16004 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16005 $ac_datarootdir_hack
16006 "
16007 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16008 || as_fn_error "could not create $ac_file" "$LINENO" 5
16009
16010 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16011 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16012 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16014 which seems to be undefined. Please make sure it is defined." >&5
16015 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16016 which seems to be undefined. Please make sure it is defined." >&2;}
16017
16018 rm -f "$tmp/stdin"
16019 case $ac_file in
16020 -) cat "$tmp/out" && rm -f "$tmp/out";;
16021 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16022 esac \
16023 || as_fn_error "could not create $ac_file" "$LINENO" 5
16024 ;;
16025 :H)
16026 #
16027 # CONFIG_HEADER
16028 #
16029 if test x"$ac_file" != x-; then
16030 {
16031 $as_echo "/* $configure_input */" \
16032 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16033 } >"$tmp/config.h" \
16034 || as_fn_error "could not create $ac_file" "$LINENO" 5
16035 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16037 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16038 else
16039 rm -f "$ac_file"
16040 mv "$tmp/config.h" "$ac_file" \
16041 || as_fn_error "could not create $ac_file" "$LINENO" 5
16042 fi
16043 else
16044 $as_echo "/* $configure_input */" \
16045 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16046 || as_fn_error "could not create -" "$LINENO" 5
16047 fi
16048 # Compute "$ac_file"'s index in $config_headers.
16049 _am_arg="$ac_file"
16050 _am_stamp_count=1
16051 for _am_header in $config_headers :; do
16052 case $_am_header in
16053 $_am_arg | $_am_arg:* )
16054 break ;;
16055 * )
16056 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16057 esac
16058 done
16059 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16060 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16061 X"$_am_arg" : 'X\(//\)[^/]' \| \
16062 X"$_am_arg" : 'X\(//\)$' \| \
16063 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16064 $as_echo X"$_am_arg" |
16065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16066 s//\1/
16067 q
16068 }
16069 /^X\(\/\/\)[^/].*/{
16070 s//\1/
16071 q
16072 }
16073 /^X\(\/\/\)$/{
16074 s//\1/
16075 q
16076 }
16077 /^X\(\/\).*/{
16078 s//\1/
16079 q
16080 }
16081 s/.*/./; q'`/stamp-h$_am_stamp_count
16082 ;;
16083
16084 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16085 $as_echo "$as_me: executing $ac_file commands" >&6;}
16086 ;;
16087 esac
16088
16089
16090 case $ac_file$ac_mode in
16091 "default-1":C)
16092 # Only add multilib support code if we just rebuilt the top-level
16093 # Makefile.
16094 case " $CONFIG_FILES " in
16095 *" Makefile "*)
16096 ac_file=Makefile . ${multi_basedir}/config-ml.in
16097 ;;
16098 esac ;;
16099 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16100 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16101 # are listed without --file. Let's play safe and only enable the eval
16102 # if we detect the quoting.
16103 case $CONFIG_FILES in
16104 *\'*) eval set x "$CONFIG_FILES" ;;
16105 *) set x $CONFIG_FILES ;;
16106 esac
16107 shift
16108 for mf
16109 do
16110 # Strip MF so we end up with the name of the file.
16111 mf=`echo "$mf" | sed -e 's/:.*$//'`
16112 # Check whether this is an Automake generated Makefile or not.
16113 # We used to match only the files named `Makefile.in', but
16114 # some people rename them; so instead we look at the file content.
16115 # Grep'ing the first line is not enough: some people post-process
16116 # each Makefile.in and add a new line on top of each file to say so.
16117 # Grep'ing the whole file is not good either: AIX grep has a line
16118 # limit of 2048, but all sed's we know have understand at least 4000.
16119 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16120 dirpart=`$as_dirname -- "$mf" ||
16121 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16122 X"$mf" : 'X\(//\)[^/]' \| \
16123 X"$mf" : 'X\(//\)$' \| \
16124 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16125 $as_echo X"$mf" |
16126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16127 s//\1/
16128 q
16129 }
16130 /^X\(\/\/\)[^/].*/{
16131 s//\1/
16132 q
16133 }
16134 /^X\(\/\/\)$/{
16135 s//\1/
16136 q
16137 }
16138 /^X\(\/\).*/{
16139 s//\1/
16140 q
16141 }
16142 s/.*/./; q'`
16143 else
16144 continue
16145 fi
16146 # Extract the definition of DEPDIR, am__include, and am__quote
16147 # from the Makefile without running `make'.
16148 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16149 test -z "$DEPDIR" && continue
16150 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16151 test -z "am__include" && continue
16152 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16153 # When using ansi2knr, U may be empty or an underscore; expand it
16154 U=`sed -n 's/^U = //p' < "$mf"`
16155 # Find all dependency output files, they are included files with
16156 # $(DEPDIR) in their names. We invoke sed twice because it is the
16157 # simplest approach to changing $(DEPDIR) to its actual value in the
16158 # expansion.
16159 for file in `sed -n "
16160 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16161 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16162 # Make sure the directory exists.
16163 test -f "$dirpart/$file" && continue
16164 fdir=`$as_dirname -- "$file" ||
16165 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16166 X"$file" : 'X\(//\)[^/]' \| \
16167 X"$file" : 'X\(//\)$' \| \
16168 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16169 $as_echo X"$file" |
16170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16171 s//\1/
16172 q
16173 }
16174 /^X\(\/\/\)[^/].*/{
16175 s//\1/
16176 q
16177 }
16178 /^X\(\/\/\)$/{
16179 s//\1/
16180 q
16181 }
16182 /^X\(\/\).*/{
16183 s//\1/
16184 q
16185 }
16186 s/.*/./; q'`
16187 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16188 # echo "creating $dirpart/$file"
16189 echo '# dummy' > "$dirpart/$file"
16190 done
16191 done
16192 }
16193 ;;
16194 "libtool":C)
16195
16196 # See if we are running on zsh, and set the options which allow our
16197 # commands through without removal of \ escapes.
16198 if test -n "${ZSH_VERSION+set}" ; then
16199 setopt NO_GLOB_SUBST
16200 fi
16201
16202 cfgfile="${ofile}T"
16203 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16204 $RM "$cfgfile"
16205
16206 cat <<_LT_EOF >> "$cfgfile"
16207 #! $SHELL
16208
16209 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16210 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16212 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16213 #
16214 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16215 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16216 # Written by Gordon Matzigkeit, 1996
16217 #
16218 # This file is part of GNU Libtool.
16219 #
16220 # GNU Libtool is free software; you can redistribute it and/or
16221 # modify it under the terms of the GNU General Public License as
16222 # published by the Free Software Foundation; either version 2 of
16223 # the License, or (at your option) any later version.
16224 #
16225 # As a special exception to the GNU General Public License,
16226 # if you distribute this file as part of a program or library that
16227 # is built using GNU Libtool, you may include this file under the
16228 # same distribution terms that you use for the rest of that program.
16229 #
16230 # GNU Libtool is distributed in the hope that it will be useful,
16231 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16233 # GNU General Public License for more details.
16234 #
16235 # You should have received a copy of the GNU General Public License
16236 # along with GNU Libtool; see the file COPYING. If not, a copy
16237 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16238 # obtained by writing to the Free Software Foundation, Inc.,
16239 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16240
16241
16242 # The names of the tagged configurations supported by this script.
16243 available_tags="GO "
16244
16245 # ### BEGIN LIBTOOL CONFIG
16246
16247 # A sed program that does not truncate output.
16248 SED=$lt_SED
16249
16250 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16251 Xsed="\$SED -e 1s/^X//"
16252
16253 # A grep program that handles long lines.
16254 GREP=$lt_GREP
16255
16256 # An ERE matcher.
16257 EGREP=$lt_EGREP
16258
16259 # A literal string matcher.
16260 FGREP=$lt_FGREP
16261
16262 # Shell to use when invoking shell scripts.
16263 SHELL=$lt_SHELL
16264
16265 # An echo program that protects backslashes.
16266 ECHO=$lt_ECHO
16267
16268 # Which release of libtool.m4 was used?
16269 macro_version=$macro_version
16270 macro_revision=$macro_revision
16271
16272 # Whether or not to build shared libraries.
16273 build_libtool_libs=$enable_shared
16274
16275 # Whether or not to build static libraries.
16276 build_old_libs=$enable_static
16277
16278 # What type of objects to build.
16279 pic_mode=$pic_mode
16280
16281 # Whether or not to optimize for fast installation.
16282 fast_install=$enable_fast_install
16283
16284 # The host system.
16285 host_alias=$host_alias
16286 host=$host
16287 host_os=$host_os
16288
16289 # The build system.
16290 build_alias=$build_alias
16291 build=$build
16292 build_os=$build_os
16293
16294 # A BSD- or MS-compatible name lister.
16295 NM=$lt_NM
16296
16297 # Whether we need soft or hard links.
16298 LN_S=$lt_LN_S
16299
16300 # What is the maximum length of a command?
16301 max_cmd_len=$max_cmd_len
16302
16303 # Object file suffix (normally "o").
16304 objext=$ac_objext
16305
16306 # Executable file suffix (normally "").
16307 exeext=$exeext
16308
16309 # whether the shell understands "unset".
16310 lt_unset=$lt_unset
16311
16312 # turn spaces into newlines.
16313 SP2NL=$lt_lt_SP2NL
16314
16315 # turn newlines into spaces.
16316 NL2SP=$lt_lt_NL2SP
16317
16318 # An object symbol dumper.
16319 OBJDUMP=$lt_OBJDUMP
16320
16321 # Method to check whether dependent libraries are shared objects.
16322 deplibs_check_method=$lt_deplibs_check_method
16323
16324 # Command to use when deplibs_check_method == "file_magic".
16325 file_magic_cmd=$lt_file_magic_cmd
16326
16327 # The archiver.
16328 AR=$lt_AR
16329 AR_FLAGS=$lt_AR_FLAGS
16330
16331 # A symbol stripping program.
16332 STRIP=$lt_STRIP
16333
16334 # Commands used to install an old-style archive.
16335 RANLIB=$lt_RANLIB
16336 old_postinstall_cmds=$lt_old_postinstall_cmds
16337 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16338
16339 # Whether to use a lock for old archive extraction.
16340 lock_old_archive_extraction=$lock_old_archive_extraction
16341
16342 # A C compiler.
16343 LTCC=$lt_CC
16344
16345 # LTCC compiler flags.
16346 LTCFLAGS=$lt_CFLAGS
16347
16348 # Take the output of nm and produce a listing of raw symbols and C names.
16349 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16350
16351 # Transform the output of nm in a proper C declaration.
16352 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16353
16354 # Transform the output of nm in a C name address pair.
16355 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16356
16357 # Transform the output of nm in a C name address pair when lib prefix is needed.
16358 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16359
16360 # The name of the directory that contains temporary libtool files.
16361 objdir=$objdir
16362
16363 # Used to examine libraries when file_magic_cmd begins with "file".
16364 MAGIC_CMD=$MAGIC_CMD
16365
16366 # Must we lock files when doing compilation?
16367 need_locks=$lt_need_locks
16368
16369 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16370 DSYMUTIL=$lt_DSYMUTIL
16371
16372 # Tool to change global to local symbols on Mac OS X.
16373 NMEDIT=$lt_NMEDIT
16374
16375 # Tool to manipulate fat objects and archives on Mac OS X.
16376 LIPO=$lt_LIPO
16377
16378 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16379 OTOOL=$lt_OTOOL
16380
16381 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16382 OTOOL64=$lt_OTOOL64
16383
16384 # Old archive suffix (normally "a").
16385 libext=$libext
16386
16387 # Shared library suffix (normally ".so").
16388 shrext_cmds=$lt_shrext_cmds
16389
16390 # The commands to extract the exported symbol list from a shared archive.
16391 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16392
16393 # Variables whose values should be saved in libtool wrapper scripts and
16394 # restored at link time.
16395 variables_saved_for_relink=$lt_variables_saved_for_relink
16396
16397 # Do we need the "lib" prefix for modules?
16398 need_lib_prefix=$need_lib_prefix
16399
16400 # Do we need a version for libraries?
16401 need_version=$need_version
16402
16403 # Library versioning type.
16404 version_type=$version_type
16405
16406 # Shared library runtime path variable.
16407 runpath_var=$runpath_var
16408
16409 # Shared library path variable.
16410 shlibpath_var=$shlibpath_var
16411
16412 # Is shlibpath searched before the hard-coded library search path?
16413 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16414
16415 # Format of library name prefix.
16416 libname_spec=$lt_libname_spec
16417
16418 # List of archive names. First name is the real one, the rest are links.
16419 # The last name is the one that the linker finds with -lNAME
16420 library_names_spec=$lt_library_names_spec
16421
16422 # The coded name of the library, if different from the real name.
16423 soname_spec=$lt_soname_spec
16424
16425 # Permission mode override for installation of shared libraries.
16426 install_override_mode=$lt_install_override_mode
16427
16428 # Command to use after installation of a shared archive.
16429 postinstall_cmds=$lt_postinstall_cmds
16430
16431 # Command to use after uninstallation of a shared archive.
16432 postuninstall_cmds=$lt_postuninstall_cmds
16433
16434 # Commands used to finish a libtool library installation in a directory.
16435 finish_cmds=$lt_finish_cmds
16436
16437 # As "finish_cmds", except a single script fragment to be evaled but
16438 # not shown.
16439 finish_eval=$lt_finish_eval
16440
16441 # Whether we should hardcode library paths into libraries.
16442 hardcode_into_libs=$hardcode_into_libs
16443
16444 # Compile-time system search path for libraries.
16445 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16446
16447 # Run-time system search path for libraries.
16448 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16449
16450 # Whether dlopen is supported.
16451 dlopen_support=$enable_dlopen
16452
16453 # Whether dlopen of programs is supported.
16454 dlopen_self=$enable_dlopen_self
16455
16456 # Whether dlopen of statically linked programs is supported.
16457 dlopen_self_static=$enable_dlopen_self_static
16458
16459 # Commands to strip libraries.
16460 old_striplib=$lt_old_striplib
16461 striplib=$lt_striplib
16462
16463
16464 # The linker used to build libraries.
16465 LD=$lt_LD
16466
16467 # How to create reloadable object files.
16468 reload_flag=$lt_reload_flag
16469 reload_cmds=$lt_reload_cmds
16470
16471 # Commands used to build an old-style archive.
16472 old_archive_cmds=$lt_old_archive_cmds
16473
16474 # A language specific compiler.
16475 CC=$lt_compiler
16476
16477 # Is the compiler the GNU compiler?
16478 with_gcc=$GCC
16479
16480 # Compiler flag to turn off builtin functions.
16481 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16482
16483 # How to pass a linker flag through the compiler.
16484 wl=$lt_lt_prog_compiler_wl
16485
16486 # Additional compiler flags for building library objects.
16487 pic_flag=$lt_lt_prog_compiler_pic
16488
16489 # Compiler flag to prevent dynamic linking.
16490 link_static_flag=$lt_lt_prog_compiler_static
16491
16492 # Does compiler simultaneously support -c and -o options?
16493 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16494
16495 # Whether or not to add -lc for building shared libraries.
16496 build_libtool_need_lc=$archive_cmds_need_lc
16497
16498 # Whether or not to disallow shared libs when runtime libs are static.
16499 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16500
16501 # Compiler flag to allow reflexive dlopens.
16502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16503
16504 # Compiler flag to generate shared objects directly from archives.
16505 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16506
16507 # Whether the compiler copes with passing no objects directly.
16508 compiler_needs_object=$lt_compiler_needs_object
16509
16510 # Create an old-style archive from a shared archive.
16511 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16512
16513 # Create a temporary old-style archive to link instead of a shared archive.
16514 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16515
16516 # Commands used to build a shared archive.
16517 archive_cmds=$lt_archive_cmds
16518 archive_expsym_cmds=$lt_archive_expsym_cmds
16519
16520 # Commands used to build a loadable module if different from building
16521 # a shared archive.
16522 module_cmds=$lt_module_cmds
16523 module_expsym_cmds=$lt_module_expsym_cmds
16524
16525 # Whether we are building with GNU ld or not.
16526 with_gnu_ld=$lt_with_gnu_ld
16527
16528 # Flag that allows shared libraries with undefined symbols to be built.
16529 allow_undefined_flag=$lt_allow_undefined_flag
16530
16531 # Flag that enforces no undefined symbols.
16532 no_undefined_flag=$lt_no_undefined_flag
16533
16534 # Flag to hardcode \$libdir into a binary during linking.
16535 # This must work even if \$libdir does not exist
16536 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16537
16538 # If ld is used when linking, flag to hardcode \$libdir into a binary
16539 # during linking. This must work even if \$libdir does not exist.
16540 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16541
16542 # Whether we need a single "-rpath" flag with a separated argument.
16543 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16544
16545 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16546 # DIR into the resulting binary.
16547 hardcode_direct=$hardcode_direct
16548
16549 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16550 # DIR into the resulting binary and the resulting library dependency is
16551 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16552 # library is relocated.
16553 hardcode_direct_absolute=$hardcode_direct_absolute
16554
16555 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16556 # into the resulting binary.
16557 hardcode_minus_L=$hardcode_minus_L
16558
16559 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16560 # into the resulting binary.
16561 hardcode_shlibpath_var=$hardcode_shlibpath_var
16562
16563 # Set to "yes" if building a shared library automatically hardcodes DIR
16564 # into the library and all subsequent libraries and executables linked
16565 # against it.
16566 hardcode_automatic=$hardcode_automatic
16567
16568 # Set to yes if linker adds runtime paths of dependent libraries
16569 # to runtime path list.
16570 inherit_rpath=$inherit_rpath
16571
16572 # Whether libtool must link a program against all its dependency libraries.
16573 link_all_deplibs=$link_all_deplibs
16574
16575 # Fix the shell variable \$srcfile for the compiler.
16576 fix_srcfile_path=$lt_fix_srcfile_path
16577
16578 # Set to "yes" if exported symbols are required.
16579 always_export_symbols=$always_export_symbols
16580
16581 # The commands to list exported symbols.
16582 export_symbols_cmds=$lt_export_symbols_cmds
16583
16584 # Symbols that should not be listed in the preloaded symbols.
16585 exclude_expsyms=$lt_exclude_expsyms
16586
16587 # Symbols that must always be exported.
16588 include_expsyms=$lt_include_expsyms
16589
16590 # Commands necessary for linking programs (against libraries) with templates.
16591 prelink_cmds=$lt_prelink_cmds
16592
16593 # Specify filename containing input files.
16594 file_list_spec=$lt_file_list_spec
16595
16596 # How to hardcode a shared library path into an executable.
16597 hardcode_action=$hardcode_action
16598
16599 # ### END LIBTOOL CONFIG
16600
16601 _LT_EOF
16602
16603 case $host_os in
16604 aix3*)
16605 cat <<\_LT_EOF >> "$cfgfile"
16606 # AIX sometimes has problems with the GCC collect2 program. For some
16607 # reason, if we set the COLLECT_NAMES environment variable, the problems
16608 # vanish in a puff of smoke.
16609 if test "X${COLLECT_NAMES+set}" != Xset; then
16610 COLLECT_NAMES=
16611 export COLLECT_NAMES
16612 fi
16613 _LT_EOF
16614 ;;
16615 esac
16616
16617
16618 ltmain="$ac_aux_dir/ltmain.sh"
16619
16620
16621 # We use sed instead of cat because bash on DJGPP gets confused if
16622 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16623 # text mode, it properly converts lines to CR/LF. This bash problem
16624 # is reportedly fixed, but why not run on old versions too?
16625 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16626 || (rm -f "$cfgfile"; exit 1)
16627
16628 case $xsi_shell in
16629 yes)
16630 cat << \_LT_EOF >> "$cfgfile"
16631
16632 # func_dirname file append nondir_replacement
16633 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16634 # otherwise set result to NONDIR_REPLACEMENT.
16635 func_dirname ()
16636 {
16637 case ${1} in
16638 */*) func_dirname_result="${1%/*}${2}" ;;
16639 * ) func_dirname_result="${3}" ;;
16640 esac
16641 }
16642
16643 # func_basename file
16644 func_basename ()
16645 {
16646 func_basename_result="${1##*/}"
16647 }
16648
16649 # func_dirname_and_basename file append nondir_replacement
16650 # perform func_basename and func_dirname in a single function
16651 # call:
16652 # dirname: Compute the dirname of FILE. If nonempty,
16653 # add APPEND to the result, otherwise set result
16654 # to NONDIR_REPLACEMENT.
16655 # value returned in "$func_dirname_result"
16656 # basename: Compute filename of FILE.
16657 # value retuned in "$func_basename_result"
16658 # Implementation must be kept synchronized with func_dirname
16659 # and func_basename. For efficiency, we do not delegate to
16660 # those functions but instead duplicate the functionality here.
16661 func_dirname_and_basename ()
16662 {
16663 case ${1} in
16664 */*) func_dirname_result="${1%/*}${2}" ;;
16665 * ) func_dirname_result="${3}" ;;
16666 esac
16667 func_basename_result="${1##*/}"
16668 }
16669
16670 # func_stripname prefix suffix name
16671 # strip PREFIX and SUFFIX off of NAME.
16672 # PREFIX and SUFFIX must not contain globbing or regex special
16673 # characters, hashes, percent signs, but SUFFIX may contain a leading
16674 # dot (in which case that matches only a dot).
16675 func_stripname ()
16676 {
16677 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16678 # positional parameters, so assign one to ordinary parameter first.
16679 func_stripname_result=${3}
16680 func_stripname_result=${func_stripname_result#"${1}"}
16681 func_stripname_result=${func_stripname_result%"${2}"}
16682 }
16683
16684 # func_opt_split
16685 func_opt_split ()
16686 {
16687 func_opt_split_opt=${1%%=*}
16688 func_opt_split_arg=${1#*=}
16689 }
16690
16691 # func_lo2o object
16692 func_lo2o ()
16693 {
16694 case ${1} in
16695 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16696 *) func_lo2o_result=${1} ;;
16697 esac
16698 }
16699
16700 # func_xform libobj-or-source
16701 func_xform ()
16702 {
16703 func_xform_result=${1%.*}.lo
16704 }
16705
16706 # func_arith arithmetic-term...
16707 func_arith ()
16708 {
16709 func_arith_result=$(( $* ))
16710 }
16711
16712 # func_len string
16713 # STRING may not start with a hyphen.
16714 func_len ()
16715 {
16716 func_len_result=${#1}
16717 }
16718
16719 _LT_EOF
16720 ;;
16721 *) # Bourne compatible functions.
16722 cat << \_LT_EOF >> "$cfgfile"
16723
16724 # func_dirname file append nondir_replacement
16725 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16726 # otherwise set result to NONDIR_REPLACEMENT.
16727 func_dirname ()
16728 {
16729 # Extract subdirectory from the argument.
16730 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16731 if test "X$func_dirname_result" = "X${1}"; then
16732 func_dirname_result="${3}"
16733 else
16734 func_dirname_result="$func_dirname_result${2}"
16735 fi
16736 }
16737
16738 # func_basename file
16739 func_basename ()
16740 {
16741 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16742 }
16743
16744
16745 # func_stripname prefix suffix name
16746 # strip PREFIX and SUFFIX off of NAME.
16747 # PREFIX and SUFFIX must not contain globbing or regex special
16748 # characters, hashes, percent signs, but SUFFIX may contain a leading
16749 # dot (in which case that matches only a dot).
16750 # func_strip_suffix prefix name
16751 func_stripname ()
16752 {
16753 case ${2} in
16754 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16755 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16756 esac
16757 }
16758
16759 # sed scripts:
16760 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16761 my_sed_long_arg='1s/^-[^=]*=//'
16762
16763 # func_opt_split
16764 func_opt_split ()
16765 {
16766 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16767 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16768 }
16769
16770 # func_lo2o object
16771 func_lo2o ()
16772 {
16773 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16774 }
16775
16776 # func_xform libobj-or-source
16777 func_xform ()
16778 {
16779 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16780 }
16781
16782 # func_arith arithmetic-term...
16783 func_arith ()
16784 {
16785 func_arith_result=`expr "$@"`
16786 }
16787
16788 # func_len string
16789 # STRING may not start with a hyphen.
16790 func_len ()
16791 {
16792 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16793 }
16794
16795 _LT_EOF
16796 esac
16797
16798 case $lt_shell_append in
16799 yes)
16800 cat << \_LT_EOF >> "$cfgfile"
16801
16802 # func_append var value
16803 # Append VALUE to the end of shell variable VAR.
16804 func_append ()
16805 {
16806 eval "$1+=\$2"
16807 }
16808 _LT_EOF
16809 ;;
16810 *)
16811 cat << \_LT_EOF >> "$cfgfile"
16812
16813 # func_append var value
16814 # Append VALUE to the end of shell variable VAR.
16815 func_append ()
16816 {
16817 eval "$1=\$$1\$2"
16818 }
16819
16820 _LT_EOF
16821 ;;
16822 esac
16823
16824
16825 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16826 || (rm -f "$cfgfile"; exit 1)
16827
16828 mv -f "$cfgfile" "$ofile" ||
16829 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16830 chmod +x "$ofile"
16831
16832
16833 cat <<_LT_EOF >> "$ofile"
16834
16835 # ### BEGIN LIBTOOL TAG CONFIG: GO
16836
16837 # The linker used to build libraries.
16838 LD=$lt_LD_GO
16839
16840 # How to create reloadable object files.
16841 reload_flag=$lt_reload_flag_GO
16842 reload_cmds=$lt_reload_cmds_GO
16843
16844 # Commands used to build an old-style archive.
16845 old_archive_cmds=$lt_old_archive_cmds_GO
16846
16847 # A language specific compiler.
16848 CC=$lt_compiler_GO
16849
16850 # Is the compiler the GNU compiler?
16851 with_gcc=$GCC_GO
16852
16853 # Compiler flag to turn off builtin functions.
16854 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16855
16856 # How to pass a linker flag through the compiler.
16857 wl=$lt_lt_prog_compiler_wl_GO
16858
16859 # Additional compiler flags for building library objects.
16860 pic_flag=$lt_lt_prog_compiler_pic_GO
16861
16862 # Compiler flag to prevent dynamic linking.
16863 link_static_flag=$lt_lt_prog_compiler_static_GO
16864
16865 # Does compiler simultaneously support -c and -o options?
16866 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16867
16868 # Whether or not to add -lc for building shared libraries.
16869 build_libtool_need_lc=$archive_cmds_need_lc_GO
16870
16871 # Whether or not to disallow shared libs when runtime libs are static.
16872 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16873
16874 # Compiler flag to allow reflexive dlopens.
16875 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16876
16877 # Compiler flag to generate shared objects directly from archives.
16878 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16879
16880 # Whether the compiler copes with passing no objects directly.
16881 compiler_needs_object=$lt_compiler_needs_object_GO
16882
16883 # Create an old-style archive from a shared archive.
16884 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16885
16886 # Create a temporary old-style archive to link instead of a shared archive.
16887 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16888
16889 # Commands used to build a shared archive.
16890 archive_cmds=$lt_archive_cmds_GO
16891 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16892
16893 # Commands used to build a loadable module if different from building
16894 # a shared archive.
16895 module_cmds=$lt_module_cmds_GO
16896 module_expsym_cmds=$lt_module_expsym_cmds_GO
16897
16898 # Whether we are building with GNU ld or not.
16899 with_gnu_ld=$lt_with_gnu_ld_GO
16900
16901 # Flag that allows shared libraries with undefined symbols to be built.
16902 allow_undefined_flag=$lt_allow_undefined_flag_GO
16903
16904 # Flag that enforces no undefined symbols.
16905 no_undefined_flag=$lt_no_undefined_flag_GO
16906
16907 # Flag to hardcode \$libdir into a binary during linking.
16908 # This must work even if \$libdir does not exist
16909 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16910
16911 # If ld is used when linking, flag to hardcode \$libdir into a binary
16912 # during linking. This must work even if \$libdir does not exist.
16913 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16914
16915 # Whether we need a single "-rpath" flag with a separated argument.
16916 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16917
16918 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16919 # DIR into the resulting binary.
16920 hardcode_direct=$hardcode_direct_GO
16921
16922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16923 # DIR into the resulting binary and the resulting library dependency is
16924 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16925 # library is relocated.
16926 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16927
16928 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16929 # into the resulting binary.
16930 hardcode_minus_L=$hardcode_minus_L_GO
16931
16932 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16933 # into the resulting binary.
16934 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16935
16936 # Set to "yes" if building a shared library automatically hardcodes DIR
16937 # into the library and all subsequent libraries and executables linked
16938 # against it.
16939 hardcode_automatic=$hardcode_automatic_GO
16940
16941 # Set to yes if linker adds runtime paths of dependent libraries
16942 # to runtime path list.
16943 inherit_rpath=$inherit_rpath_GO
16944
16945 # Whether libtool must link a program against all its dependency libraries.
16946 link_all_deplibs=$link_all_deplibs_GO
16947
16948 # Fix the shell variable \$srcfile for the compiler.
16949 fix_srcfile_path=$lt_fix_srcfile_path_GO
16950
16951 # Set to "yes" if exported symbols are required.
16952 always_export_symbols=$always_export_symbols_GO
16953
16954 # The commands to list exported symbols.
16955 export_symbols_cmds=$lt_export_symbols_cmds_GO
16956
16957 # Symbols that should not be listed in the preloaded symbols.
16958 exclude_expsyms=$lt_exclude_expsyms_GO
16959
16960 # Symbols that must always be exported.
16961 include_expsyms=$lt_include_expsyms_GO
16962
16963 # Commands necessary for linking programs (against libraries) with templates.
16964 prelink_cmds=$lt_prelink_cmds_GO
16965
16966 # Specify filename containing input files.
16967 file_list_spec=$lt_file_list_spec_GO
16968
16969 # How to hardcode a shared library path into an executable.
16970 hardcode_action=$hardcode_action_GO
16971
16972 # ### END LIBTOOL TAG CONFIG: GO
16973 _LT_EOF
16974
16975 ;;
16976 "default":C) if test -n "$CONFIG_FILES"; then
16977 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16978 # that multilib installs will end up installed in the correct place.
16979 # The testsuite needs it for multilib-aware ABI baseline files.
16980 # To work around this not being passed down from config-ml.in ->
16981 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16982 # append it here. Only modify Makefiles that have just been created.
16983 #
16984 # Also, get rid of this simulated-VPATH thing that automake does.
16985 cat > vpsed << \_EOF
16986 s!`test -f '$<' || echo '$(srcdir)/'`!!
16987 _EOF
16988 for i in $SUBDIRS; do
16989 case $CONFIG_FILES in
16990 *${i}/Makefile*)
16991 #echo "Adding MULTISUBDIR to $i/Makefile"
16992 sed -f vpsed $i/Makefile > tmp
16993 grep '^MULTISUBDIR =' Makefile >> tmp
16994 mv tmp $i/Makefile
16995 ;;
16996 esac
16997 done
16998 rm vpsed
16999 fi
17000 ;;
17001
17002 esac
17003 done # for ac_tag
17004
17005
17006 as_fn_exit 0
17007 _ACEOF
17008 ac_clean_files=$ac_clean_files_save
17009
17010 test $ac_write_fail = 0 ||
17011 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17012
17013
17014 # configure is writing to config.log, and then calls config.status.
17015 # config.status does its own redirection, appending to config.log.
17016 # Unfortunately, on DOS this fails, as config.log is still kept open
17017 # by configure, so config.status won't be able to write to it; its
17018 # output is simply discarded. So we exec the FD to /dev/null,
17019 # effectively closing config.log, so it can be properly (re)opened and
17020 # appended to by config.status. When coming back to configure, we
17021 # need to make the FD available again.
17022 if test "$no_create" != yes; then
17023 ac_cs_success=:
17024 ac_config_status_args=
17025 test "$silent" = yes &&
17026 ac_config_status_args="$ac_config_status_args --quiet"
17027 exec 5>/dev/null
17028 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17029 exec 5>>config.log
17030 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17031 # would make configure fail if this is the last instruction.
17032 $ac_cs_success || as_fn_exit $?
17033 fi
17034 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17036 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17037 fi
17038