Daily bump.
[gcc.git] / libgo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libgo'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 HAVE_STATIC_LINK_FALSE
637 HAVE_STATIC_LINK_TRUE
638 HAVE_STAT_TIMESPEC_FALSE
639 HAVE_STAT_TIMESPEC_TRUE
640 STRUCT_EPOLL_EVENT_FD_OFFSET
641 SIZEOF_STRUCT_EPOLL_EVENT
642 MATH_FLAG
643 STRINGOPS_FLAG
644 HAVE_WAIT4_FALSE
645 HAVE_WAIT4_TRUE
646 HAVE_STRERROR_R_FALSE
647 HAVE_STRERROR_R_TRUE
648 HAVE_SYS_MMAN_H_FALSE
649 HAVE_SYS_MMAN_H_TRUE
650 PTHREAD_LIBS
651 PTHREAD_CFLAGS
652 NET_LIBS
653 MATH_LIBS
654 GOC_IS_LLGO_FALSE
655 GOC_IS_LLGO_TRUE
656 GO_SPLIT_STACK
657 USING_SPLIT_STACK_FALSE
658 USING_SPLIT_STACK_TRUE
659 SPLIT_STACK
660 HWCAP_CFLAGS
661 OSCFLAGS
662 GO_SYSCALL_OS_ARCH_FILE
663 GO_SYSCALL_OS_FILE
664 GO_LIBCALL_OS_ARCH_FILE
665 GO_LIBCALL_OS_FILE
666 FUNCTION_DESCRIPTORS
667 LIBGO_IS_X86_FALSE
668 LIBGO_IS_X86_TRUE
669 ALLGOARCHFAMILY
670 ALLGOARCH
671 GOARCH
672 USE_DEJAGNU
673 ALLGOOS
674 GOOS
675 LIBGO_IS_BSD_FALSE
676 LIBGO_IS_BSD_TRUE
677 LIBGO_IS_HURD_FALSE
678 LIBGO_IS_HURD_TRUE
679 LIBGO_IS_AIX_FALSE
680 LIBGO_IS_AIX_TRUE
681 LIBGO_IS_SOLARIS_FALSE
682 LIBGO_IS_SOLARIS_TRUE
683 LIBGO_IS_RTEMS_FALSE
684 LIBGO_IS_RTEMS_TRUE
685 LIBGO_IS_DRAGONFLY_FALSE
686 LIBGO_IS_DRAGONFLY_TRUE
687 LIBGO_IS_OPENBSD_FALSE
688 LIBGO_IS_OPENBSD_TRUE
689 LIBGO_IS_NETBSD_FALSE
690 LIBGO_IS_NETBSD_TRUE
691 LIBGO_IS_LINUX_FALSE
692 LIBGO_IS_LINUX_TRUE
693 LIBGO_IS_IRIX_FALSE
694 LIBGO_IS_IRIX_TRUE
695 LIBGO_IS_FREEBSD_FALSE
696 LIBGO_IS_FREEBSD_TRUE
697 LIBGO_IS_DARWIN_FALSE
698 LIBGO_IS_DARWIN_TRUE
699 go_include
700 LIBATOMIC
701 USE_LIBFFI_FALSE
702 USE_LIBFFI_TRUE
703 LIBFFIINCS
704 LIBFFI
705 nover_glibgo_toolexeclibdir
706 glibgo_toolexeclibdir
707 glibgo_toolexecdir
708 WERROR
709 WARN_FLAGS
710 CC_FOR_BUILD
711 enable_static
712 enable_shared
713 CPP
714 OTOOL64
715 OTOOL
716 LIPO
717 NMEDIT
718 DSYMUTIL
719 AR
720 OBJDUMP
721 LN_S
722 NM
723 ac_ct_DUMPBIN
724 DUMPBIN
725 LIBTOOL
726 OBJCOPY
727 RANLIB
728 LD
729 FGREP
730 EGREP
731 GREP
732 SED
733 MAINT
734 MAINTAINER_MODE_FALSE
735 MAINTAINER_MODE_TRUE
736 AIX_EXTRA_ARCH
737 am__fastdepCCAS_FALSE
738 am__fastdepCCAS_TRUE
739 CCASDEPMODE
740 CCASFLAGS
741 CCAS
742 GOFLAGS
743 GOC
744 am__fastdepCC_FALSE
745 am__fastdepCC_TRUE
746 CCDEPMODE
747 am__nodep
748 AMDEPBACKSLASH
749 AMDEP_FALSE
750 AMDEP_TRUE
751 am__quote
752 am__include
753 DEPDIR
754 OBJEXT
755 EXEEXT
756 ac_ct_CC
757 CPPFLAGS
758 LDFLAGS
759 CFLAGS
760 CC
761 AM_BACKSLASH
762 AM_DEFAULT_VERBOSITY
763 AM_DEFAULT_V
764 AM_V
765 am__untar
766 am__tar
767 AMTAR
768 am__leading_dot
769 SET_MAKE
770 AWK
771 mkdir_p
772 MKDIR_P
773 INSTALL_STRIP_PROGRAM
774 STRIP
775 install_sh
776 MAKEINFO
777 AUTOHEADER
778 AUTOMAKE
779 AUTOCONF
780 ACLOCAL
781 VERSION
782 PACKAGE
783 CYGPATH_W
784 am__isrc
785 INSTALL_DATA
786 INSTALL_SCRIPT
787 INSTALL_PROGRAM
788 target_os
789 target_vendor
790 target_cpu
791 target
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 multi_basedir
801 libtool_VERSION
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files=''
841 ac_user_opts='
842 enable_option_checking
843 enable_multilib
844 enable_silent_rules
845 enable_dependency_tracking
846 enable_maintainer_mode
847 with_gnu_ld
848 enable_shared
849 enable_static
850 with_pic
851 enable_fast_install
852 enable_libtool_lock
853 enable_werror
854 enable_version_specific_runtime_libs
855 with_toolexeclibdir
856 with_libffi
857 with_libatomic
858 with_system_libunwind
859 '
860 ac_precious_vars='build_alias
861 host_alias
862 target_alias
863 CPP
864 CPPFLAGS'
865
866
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
888
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
930 esac
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1251 Try \`$0 --help' for more information"
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir
1293 do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 $as_echo X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370 else
1371 ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print \`checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for \`--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, \`make install' will install all the files in
1432 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1434 for instance \`--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --libdir=DIR object code libraries [EPREFIX/lib]
1446 --includedir=DIR C header files [PREFIX/include]
1447 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1450 --infodir=DIR info documentation [DATAROOTDIR/info]
1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1452 --mandir=DIR man documentation [DATAROOTDIR/man]
1453 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1454 --htmldir=DIR html documentation [DOCDIR]
1455 --dvidir=DIR dvi documentation [DOCDIR]
1456 --pdfdir=DIR pdf documentation [DOCDIR]
1457 --psdir=DIR ps documentation [DOCDIR]
1458 _ACEOF
1459
1460 cat <<\_ACEOF
1461
1462 Program names:
1463 --program-prefix=PREFIX prepend PREFIX to installed program names
1464 --program-suffix=SUFFIX append SUFFIX to installed program names
1465 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466
1467 System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 --target=TARGET configure for building compilers for TARGET [HOST]
1471 _ACEOF
1472 fi
1473
1474 if test -n "$ac_init_help"; then
1475 case $ac_init_help in
1476 short | recursive ) echo "Configuration of package-unused version-unused:";;
1477 esac
1478 cat <<\_ACEOF
1479
1480 Optional Features:
1481 --disable-option-checking ignore unrecognized --enable/--with options
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-multilib build many library versions (default)
1485 --enable-silent-rules less verbose build output (undo: "make V=1")
1486 --disable-silent-rules verbose build output (undo: "make V=0")
1487 --enable-dependency-tracking
1488 do not reject slow dependency extractors
1489 --disable-dependency-tracking
1490 speeds up one-time build
1491 --enable-maintainer-mode
1492 enable make rules and dependencies not useful (and
1493 sometimes confusing) to the casual installer
1494 --enable-shared[=PKGS] build shared libraries [default=yes]
1495 --enable-static[=PKGS] build static libraries [default=yes]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --disable-libtool-lock avoid locking (might break parallel builds)
1499 --enable-werror turns on -Werror [default=yes]
1500 --enable-version-specific-runtime-libs
1501 Specify that runtime libraries should be installed
1502 in a compiler-specific directory
1503
1504 Optional Packages:
1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1507 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1508 --with-pic try to use only PIC/non-PIC objects [default=use
1509 both]
1510 --with-toolexeclibdir=DIR
1511 install libraries built with a cross compiler within
1512 DIR
1513 --without-libffi don't use libffi
1514 --without-libatomic don't use libatomic
1515 --with-system-libunwind use installed libunwind
1516
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 GOC Go compiler command
1526 GOFLAGS Go compiler flags
1527 CCAS assembler compiler command (defaults to CC)
1528 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1529 CPP C preprocessor
1530
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1533
1534 Report bugs to the package provider.
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540 # If there are subdirs, report their specific --help.
1541 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542 test -d "$ac_dir" ||
1543 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544 continue
1545 ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551 # A ".." for each directory in $ac_dir_suffix.
1552 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553 case $ac_top_builddir_sub in
1554 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556 esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564 .) # We are building in place.
1565 ac_srcdir=.
1566 ac_top_srcdir=$ac_top_builddir_sub
1567 ac_abs_top_srcdir=$ac_pwd ;;
1568 [\\/]* | ?:[\\/]* ) # Absolute name.
1569 ac_srcdir=$srcdir$ac_dir_suffix;
1570 ac_top_srcdir=$srcdir
1571 ac_abs_top_srcdir=$srcdir ;;
1572 *) # Relative name.
1573 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574 ac_top_srcdir=$ac_top_build_prefix$srcdir
1575 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579 cd "$ac_dir" || { ac_status=$?; continue; }
1580 # Check for guested configure.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 package-unused configure version-unused
1598 generated by GNU Autoconf 2.69
1599
1600 Copyright (C) 2012 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1605 fi
1606
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1610
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext; then :
1637 ac_retval=0
1638 else
1639 $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642 ac_retval=1
1643 fi
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645 as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_compile
1648
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_link ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext conftest$ac_exeext
1656 if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_link") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1669 fi
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest$ac_exeext && {
1675 test "$cross_compiling" = yes ||
1676 test -x conftest$ac_exeext
1677 }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1
1684 fi
1685 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687 # interfere with the next link command; also delete a directory that is
1688 # left behind by Apple's compiler. We do this before executing the actions.
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_link
1694
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706 else
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1709 $4
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713 eval "$3=yes"
1714 else
1715 eval "$3=no"
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 fi
1719 eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724 } # ac_fn_c_check_header_compile
1725
1726 # ac_fn_c_try_cpp LINENO
1727 # ----------------------
1728 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_cpp ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } > conftest.i && {
1748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752 else
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757 fi
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_cpp
1762
1763 # ac_fn_c_try_run LINENO
1764 # ----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766 # that executables *can* be run.
1767 ac_fn_c_try_run ()
1768 {
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>&5
1778 ac_status=$?
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781 { { case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_try") 2>&5
1788 ac_status=$?
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; }; }; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: program exited with status $ac_status" >&5
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=$ac_status
1798 fi
1799 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_run
1804
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1809 {
1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814 $as_echo_n "(cached) " >&6
1815 else
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1820 #define $2 innocuous_$2
1821
1822 /* System header to define __stub macros and hopefully few prototypes,
1823 which can conflict with char $2 (); below.
1824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825 <limits.h> exists even on freestanding compilers. */
1826
1827 #ifdef __STDC__
1828 # include <limits.h>
1829 #else
1830 # include <assert.h>
1831 #endif
1832
1833 #undef $2
1834
1835 /* Override any GCC internal prototype to avoid an error.
1836 Use char because int might match the return type of a GCC
1837 builtin and then its argument prototype would still apply. */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843 to always fail with ENOSYS. Some functions are actually named
1844 something starting with __ and the normal name is an alias. */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1848
1849 int
1850 main ()
1851 {
1852 return $2 ();
1853 ;
1854 return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_link "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext \
1863 conftest$ac_exeext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_func
1871
1872 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1873 # -------------------------------------------------------
1874 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1875 # the include files in INCLUDES and setting the cache variable VAR
1876 # accordingly.
1877 ac_fn_c_check_header_mongrel ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if eval \${$3+:} false; then :
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1882 $as_echo_n "checking for $2... " >&6; }
1883 if eval \${$3+:} false; then :
1884 $as_echo_n "(cached) " >&6
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 else
1890 # Is the header compilable?
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1892 $as_echo_n "checking $2 usability... " >&6; }
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 $4
1896 #include <$2>
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899 ac_header_compiler=yes
1900 else
1901 ac_header_compiler=no
1902 fi
1903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1905 $as_echo "$ac_header_compiler" >&6; }
1906
1907 # Is the header present?
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1909 $as_echo_n "checking $2 presence... " >&6; }
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_cpp "$LINENO"; then :
1915 ac_header_preproc=yes
1916 else
1917 ac_header_preproc=no
1918 fi
1919 rm -f conftest.err conftest.i conftest.$ac_ext
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1921 $as_echo "$ac_header_preproc" >&6; }
1922
1923 # So? What about this header?
1924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1925 yes:no: )
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1927 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1930 ;;
1931 no:yes:* )
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1933 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1935 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1937 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1939 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1941 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 ;;
1943 esac
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1948 else
1949 eval "$3=\$ac_header_compiler"
1950 fi
1951 eval ac_res=\$$3
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954 fi
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957 } # ac_fn_c_check_header_mongrel
1958
1959 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1960 # ----------------------------------------------------
1961 # Tries to find if the field MEMBER exists in type AGGR, after including
1962 # INCLUDES, setting cache variable VAR accordingly.
1963 ac_fn_c_check_member ()
1964 {
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1967 $as_echo_n "checking for $2.$3... " >&6; }
1968 if eval \${$4+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970 else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972 /* end confdefs.h. */
1973 $5
1974 int
1975 main ()
1976 {
1977 static $2 ac_aggr;
1978 if (ac_aggr.$3)
1979 return 0;
1980 ;
1981 return 0;
1982 }
1983 _ACEOF
1984 if ac_fn_c_try_compile "$LINENO"; then :
1985 eval "$4=yes"
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $5
1990 int
1991 main ()
1992 {
1993 static $2 ac_aggr;
1994 if (sizeof ac_aggr.$3)
1995 return 0;
1996 ;
1997 return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 eval "$4=yes"
2002 else
2003 eval "$4=no"
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 eval ac_res=\$$4
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014 } # ac_fn_c_check_member
2015
2016 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2017 # -------------------------------------------
2018 # Tests whether TYPE exists after having included INCLUDES, setting cache
2019 # variable VAR accordingly.
2020 ac_fn_c_check_type ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 eval "$3=no"
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 $4
2032 int
2033 main ()
2034 {
2035 if (sizeof ($2))
2036 return 0;
2037 ;
2038 return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h. */
2044 $4
2045 int
2046 main ()
2047 {
2048 if (sizeof (($2)))
2049 return 0;
2050 ;
2051 return 0;
2052 }
2053 _ACEOF
2054 if ac_fn_c_try_compile "$LINENO"; then :
2055
2056 else
2057 eval "$3=yes"
2058 fi
2059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 fi
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062 fi
2063 eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067
2068 } # ac_fn_c_check_type
2069
2070 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2071 # --------------------------------------------
2072 # Tries to find the compile-time value of EXPR in a program that includes
2073 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2074 # computed
2075 ac_fn_c_compute_int ()
2076 {
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if test "$cross_compiling" = yes; then
2079 # Depending upon the size, compute the lo and hi bounds.
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 int
2084 main ()
2085 {
2086 static int test_array [1 - 2 * !(($2) >= 0)];
2087 test_array [0] = 0;
2088 return test_array [0];
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_lo=0 ac_mid=0
2096 while :; do
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $4
2100 int
2101 main ()
2102 {
2103 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2104 test_array [0] = 0;
2105 return test_array [0];
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid; break
2113 else
2114 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2115 if test $ac_lo -le $ac_mid; then
2116 ac_lo= ac_hi=
2117 break
2118 fi
2119 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2120 fi
2121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 done
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2126 $4
2127 int
2128 main ()
2129 {
2130 static int test_array [1 - 2 * !(($2) < 0)];
2131 test_array [0] = 0;
2132 return test_array [0];
2133
2134 ;
2135 return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 ac_hi=-1 ac_mid=-1
2140 while :; do
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2143 $4
2144 int
2145 main ()
2146 {
2147 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2148 test_array [0] = 0;
2149 return test_array [0];
2150
2151 ;
2152 return 0;
2153 }
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156 ac_lo=$ac_mid; break
2157 else
2158 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2159 if test $ac_mid -le $ac_hi; then
2160 ac_lo= ac_hi=
2161 break
2162 fi
2163 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2164 fi
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 else
2168 ac_lo= ac_hi=
2169 fi
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 # Binary search between lo and hi bounds.
2174 while test "x$ac_lo" != "x$ac_hi"; do
2175 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2178 $4
2179 int
2180 main ()
2181 {
2182 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2183 test_array [0] = 0;
2184 return test_array [0];
2185
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=$ac_mid
2192 else
2193 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 done
2197 case $ac_lo in #((
2198 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2199 '') ac_retval=1 ;;
2200 esac
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $4
2205 static long int longval () { return $2; }
2206 static unsigned long int ulongval () { return $2; }
2207 #include <stdio.h>
2208 #include <stdlib.h>
2209 int
2210 main ()
2211 {
2212
2213 FILE *f = fopen ("conftest.val", "w");
2214 if (! f)
2215 return 1;
2216 if (($2) < 0)
2217 {
2218 long int i = longval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%ld", i);
2222 }
2223 else
2224 {
2225 unsigned long int i = ulongval ();
2226 if (i != ($2))
2227 return 1;
2228 fprintf (f, "%lu", i);
2229 }
2230 /* Do not output a trailing newline, as this causes \r\n confusion
2231 on some platforms. */
2232 return ferror (f) || fclose (f) != 0;
2233
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_run "$LINENO"; then :
2239 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2240 else
2241 ac_retval=1
2242 fi
2243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2244 conftest.$ac_objext conftest.beam conftest.$ac_ext
2245 rm -f conftest.val
2246
2247 fi
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 as_fn_set_status $ac_retval
2250
2251 } # ac_fn_c_compute_int
2252 cat >config.log <<_ACEOF
2253 This file contains any messages produced by compilers while
2254 running configure, to aid debugging if configure makes a mistake.
2255
2256 It was created by package-unused $as_me version-unused, which was
2257 generated by GNU Autoconf 2.69. Invocation command line was
2258
2259 $ $0 $@
2260
2261 _ACEOF
2262 exec 5>>config.log
2263 {
2264 cat <<_ASUNAME
2265 ## --------- ##
2266 ## Platform. ##
2267 ## --------- ##
2268
2269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2270 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2271 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2272 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2273 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2274
2275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2276 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2277
2278 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2279 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2281 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2282 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2283 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2284 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285
2286 _ASUNAME
2287
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 $as_echo "PATH: $as_dir"
2294 done
2295 IFS=$as_save_IFS
2296
2297 } >&5
2298
2299 cat >&5 <<_ACEOF
2300
2301
2302 ## ----------- ##
2303 ## Core tests. ##
2304 ## ----------- ##
2305
2306 _ACEOF
2307
2308
2309 # Keep a trace of the command line.
2310 # Strip out --no-create and --no-recursion so they do not pile up.
2311 # Strip out --silent because we don't want to record it for future runs.
2312 # Also quote any args containing shell meta-characters.
2313 # Make two passes to allow for proper duplicate-argument suppression.
2314 ac_configure_args=
2315 ac_configure_args0=
2316 ac_configure_args1=
2317 ac_must_keep_next=false
2318 for ac_pass in 1 2
2319 do
2320 for ac_arg
2321 do
2322 case $ac_arg in
2323 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2324 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2325 | -silent | --silent | --silen | --sile | --sil)
2326 continue ;;
2327 *\'*)
2328 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2329 esac
2330 case $ac_pass in
2331 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2332 2)
2333 as_fn_append ac_configure_args1 " '$ac_arg'"
2334 if test $ac_must_keep_next = true; then
2335 ac_must_keep_next=false # Got value, back to normal.
2336 else
2337 case $ac_arg in
2338 *=* | --config-cache | -C | -disable-* | --disable-* \
2339 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2340 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2341 | -with-* | --with-* | -without-* | --without-* | --x)
2342 case "$ac_configure_args0 " in
2343 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2344 esac
2345 ;;
2346 -* ) ac_must_keep_next=true ;;
2347 esac
2348 fi
2349 as_fn_append ac_configure_args " '$ac_arg'"
2350 ;;
2351 esac
2352 done
2353 done
2354 { ac_configure_args0=; unset ac_configure_args0;}
2355 { ac_configure_args1=; unset ac_configure_args1;}
2356
2357 # When interrupted or exit'd, cleanup temporary files, and complete
2358 # config.log. We remove comments because anyway the quotes in there
2359 # would cause problems or look ugly.
2360 # WARNING: Use '\'' to represent an apostrophe within the trap.
2361 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2362 trap 'exit_status=$?
2363 # Save into config.log some information that might help in debugging.
2364 {
2365 echo
2366
2367 $as_echo "## ---------------- ##
2368 ## Cache variables. ##
2369 ## ---------------- ##"
2370 echo
2371 # The following way of writing the cache mishandles newlines in values,
2372 (
2373 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in #(
2376 *${as_nl}*)
2377 case $ac_var in #(
2378 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2379 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2380 esac
2381 case $ac_var in #(
2382 _ | IFS | as_nl) ;; #(
2383 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2384 *) { eval $ac_var=; unset $ac_var;} ;;
2385 esac ;;
2386 esac
2387 done
2388 (set) 2>&1 |
2389 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2390 *${as_nl}ac_space=\ *)
2391 sed -n \
2392 "s/'\''/'\''\\\\'\'''\''/g;
2393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2394 ;; #(
2395 *)
2396 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2397 ;;
2398 esac |
2399 sort
2400 )
2401 echo
2402
2403 $as_echo "## ----------------- ##
2404 ## Output variables. ##
2405 ## ----------------- ##"
2406 echo
2407 for ac_var in $ac_subst_vars
2408 do
2409 eval ac_val=\$$ac_var
2410 case $ac_val in
2411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 esac
2413 $as_echo "$ac_var='\''$ac_val'\''"
2414 done | sort
2415 echo
2416
2417 if test -n "$ac_subst_files"; then
2418 $as_echo "## ------------------- ##
2419 ## File substitutions. ##
2420 ## ------------------- ##"
2421 echo
2422 for ac_var in $ac_subst_files
2423 do
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 $as_echo "$ac_var='\''$ac_val'\''"
2429 done | sort
2430 echo
2431 fi
2432
2433 if test -s confdefs.h; then
2434 $as_echo "## ----------- ##
2435 ## confdefs.h. ##
2436 ## ----------- ##"
2437 echo
2438 cat confdefs.h
2439 echo
2440 fi
2441 test "$ac_signal" != 0 &&
2442 $as_echo "$as_me: caught signal $ac_signal"
2443 $as_echo "$as_me: exit $exit_status"
2444 } >&5
2445 rm -f core *.core core.conftest.* &&
2446 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2447 exit $exit_status
2448 ' 0
2449 for ac_signal in 1 2 13 15; do
2450 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2451 done
2452 ac_signal=0
2453
2454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2455 rm -f -r conftest* confdefs.h
2456
2457 $as_echo "/* confdefs.h */" > confdefs.h
2458
2459 # Predefined preprocessor variables.
2460
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_NAME "$PACKAGE_NAME"
2463 _ACEOF
2464
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2467 _ACEOF
2468
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2471 _ACEOF
2472
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_STRING "$PACKAGE_STRING"
2475 _ACEOF
2476
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2479 _ACEOF
2480
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_URL "$PACKAGE_URL"
2483 _ACEOF
2484
2485
2486 # Let the site file select an alternate cache file if it wants to.
2487 # Prefer an explicitly selected file to automatically selected ones.
2488 ac_site_file1=NONE
2489 ac_site_file2=NONE
2490 if test -n "$CONFIG_SITE"; then
2491 # We do not want a PATH search for config.site.
2492 case $CONFIG_SITE in #((
2493 -*) ac_site_file1=./$CONFIG_SITE;;
2494 */*) ac_site_file1=$CONFIG_SITE;;
2495 *) ac_site_file1=./$CONFIG_SITE;;
2496 esac
2497 elif test "x$prefix" != xNONE; then
2498 ac_site_file1=$prefix/share/config.site
2499 ac_site_file2=$prefix/etc/config.site
2500 else
2501 ac_site_file1=$ac_default_prefix/share/config.site
2502 ac_site_file2=$ac_default_prefix/etc/config.site
2503 fi
2504 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2505 do
2506 test "x$ac_site_file" = xNONE && continue
2507 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2509 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2510 sed 's/^/| /' "$ac_site_file" >&5
2511 . "$ac_site_file" \
2512 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 as_fn_error $? "failed to load site script $ac_site_file
2515 See \`config.log' for more details" "$LINENO" 5; }
2516 fi
2517 done
2518
2519 if test -r "$cache_file"; then
2520 # Some versions of bash will fail to source /dev/null (special files
2521 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2522 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2524 $as_echo "$as_me: loading cache $cache_file" >&6;}
2525 case $cache_file in
2526 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2527 *) . "./$cache_file";;
2528 esac
2529 fi
2530 else
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2532 $as_echo "$as_me: creating cache $cache_file" >&6;}
2533 >$cache_file
2534 fi
2535
2536 # Check that the precious variables saved in the cache have kept the same
2537 # value.
2538 ac_cache_corrupted=false
2539 for ac_var in $ac_precious_vars; do
2540 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2541 eval ac_new_set=\$ac_env_${ac_var}_set
2542 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2543 eval ac_new_val=\$ac_env_${ac_var}_value
2544 case $ac_old_set,$ac_new_set in
2545 set,)
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2548 ac_cache_corrupted=: ;;
2549 ,set)
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2551 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2552 ac_cache_corrupted=: ;;
2553 ,);;
2554 *)
2555 if test "x$ac_old_val" != "x$ac_new_val"; then
2556 # differences in whitespace do not lead to failure.
2557 ac_old_val_w=`echo x $ac_old_val`
2558 ac_new_val_w=`echo x $ac_new_val`
2559 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2561 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2562 ac_cache_corrupted=:
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2565 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2566 eval $ac_var=\$ac_old_val
2567 fi
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2569 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2571 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2572 fi;;
2573 esac
2574 # Pass precious variables to config.status.
2575 if test "$ac_new_set" = set; then
2576 case $ac_new_val in
2577 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2578 *) ac_arg=$ac_var=$ac_new_val ;;
2579 esac
2580 case " $ac_configure_args " in
2581 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2582 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2583 esac
2584 fi
2585 done
2586 if $ac_cache_corrupted; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2590 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2591 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2592 fi
2593 ## -------------------- ##
2594 ## Main body of script. ##
2595 ## -------------------- ##
2596
2597 ac_ext=c
2598 ac_cpp='$CPP $CPPFLAGS'
2599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2602
2603
2604
2605
2606
2607
2608 ac_config_headers="$ac_config_headers config.h"
2609
2610
2611 libtool_VERSION=19:0:0
2612
2613
2614 # Default to --enable-multilib
2615 # Check whether --enable-multilib was given.
2616 if test "${enable_multilib+set}" = set; then :
2617 enableval=$enable_multilib; case "$enableval" in
2618 yes) multilib=yes ;;
2619 no) multilib=no ;;
2620 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2621 esac
2622 else
2623 multilib=yes
2624 fi
2625
2626
2627 # We may get other options which we leave undocumented:
2628 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2629 # See config-ml.in if you want the gory details.
2630
2631 if test "$srcdir" = "."; then
2632 if test "$with_target_subdir" != "."; then
2633 multi_basedir="$srcdir/$with_multisrctop../.."
2634 else
2635 multi_basedir="$srcdir/$with_multisrctop.."
2636 fi
2637 else
2638 multi_basedir="$srcdir/.."
2639 fi
2640
2641
2642 # Even if the default multilib is not a cross compilation,
2643 # it may be that some of the other multilibs are.
2644 if test $cross_compiling = no && test $multilib = yes \
2645 && test "x${with_multisubdir}" != x ; then
2646 cross_compiling=maybe
2647 fi
2648
2649 ac_config_commands="$ac_config_commands default-1"
2650
2651
2652 ac_aux_dir=
2653 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2654 if test -f "$ac_dir/install-sh"; then
2655 ac_aux_dir=$ac_dir
2656 ac_install_sh="$ac_aux_dir/install-sh -c"
2657 break
2658 elif test -f "$ac_dir/install.sh"; then
2659 ac_aux_dir=$ac_dir
2660 ac_install_sh="$ac_aux_dir/install.sh -c"
2661 break
2662 elif test -f "$ac_dir/shtool"; then
2663 ac_aux_dir=$ac_dir
2664 ac_install_sh="$ac_aux_dir/shtool install -c"
2665 break
2666 fi
2667 done
2668 if test -z "$ac_aux_dir"; then
2669 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2670 fi
2671
2672 # These three variables are undocumented and unsupported,
2673 # and are intended to be withdrawn in a future Autoconf release.
2674 # They can cause serious problems if a builder's source tree is in a directory
2675 # whose full name contains unusual characters.
2676 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2677 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2678 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2679
2680
2681 # Make sure we can run config.sub.
2682 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2683 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2684
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2686 $as_echo_n "checking build system type... " >&6; }
2687 if ${ac_cv_build+:} false; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 ac_build_alias=$build_alias
2691 test "x$ac_build_alias" = x &&
2692 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2693 test "x$ac_build_alias" = x &&
2694 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2695 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2696 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2697
2698 fi
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2700 $as_echo "$ac_cv_build" >&6; }
2701 case $ac_cv_build in
2702 *-*-*) ;;
2703 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2704 esac
2705 build=$ac_cv_build
2706 ac_save_IFS=$IFS; IFS='-'
2707 set x $ac_cv_build
2708 shift
2709 build_cpu=$1
2710 build_vendor=$2
2711 shift; shift
2712 # Remember, the first character of IFS is used to create $*,
2713 # except with old shells:
2714 build_os=$*
2715 IFS=$ac_save_IFS
2716 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2717
2718
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2720 $as_echo_n "checking host system type... " >&6; }
2721 if ${ac_cv_host+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test "x$host_alias" = x; then
2725 ac_cv_host=$ac_cv_build
2726 else
2727 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2728 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2729 fi
2730
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2733 $as_echo "$ac_cv_host" >&6; }
2734 case $ac_cv_host in
2735 *-*-*) ;;
2736 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2737 esac
2738 host=$ac_cv_host
2739 ac_save_IFS=$IFS; IFS='-'
2740 set x $ac_cv_host
2741 shift
2742 host_cpu=$1
2743 host_vendor=$2
2744 shift; shift
2745 # Remember, the first character of IFS is used to create $*,
2746 # except with old shells:
2747 host_os=$*
2748 IFS=$ac_save_IFS
2749 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2750
2751
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2753 $as_echo_n "checking target system type... " >&6; }
2754 if ${ac_cv_target+:} false; then :
2755 $as_echo_n "(cached) " >&6
2756 else
2757 if test "x$target_alias" = x; then
2758 ac_cv_target=$ac_cv_host
2759 else
2760 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2761 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2762 fi
2763
2764 fi
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2766 $as_echo "$ac_cv_target" >&6; }
2767 case $ac_cv_target in
2768 *-*-*) ;;
2769 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2770 esac
2771 target=$ac_cv_target
2772 ac_save_IFS=$IFS; IFS='-'
2773 set x $ac_cv_target
2774 shift
2775 target_cpu=$1
2776 target_vendor=$2
2777 shift; shift
2778 # Remember, the first character of IFS is used to create $*,
2779 # except with old shells:
2780 target_os=$*
2781 IFS=$ac_save_IFS
2782 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2783
2784
2785 # The aliases save the names the user supplied, while $host etc.
2786 # will get canonicalized.
2787 test -n "$target_alias" &&
2788 test "$program_prefix$program_suffix$program_transform_name" = \
2789 NONENONEs,x,x, &&
2790 program_prefix=${target_alias}-
2791
2792 target_alias=${target_alias-$host_alias}
2793
2794 am__api_version='1.15'
2795
2796 # Find a good install program. We prefer a C program (faster),
2797 # so one script is as good as another. But avoid the broken or
2798 # incompatible versions:
2799 # SysV /etc/install, /usr/sbin/install
2800 # SunOS /usr/etc/install
2801 # IRIX /sbin/install
2802 # AIX /bin/install
2803 # AmigaOS /C/install, which installs bootblocks on floppy discs
2804 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2805 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2806 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2807 # OS/2's system install, which has a completely different semantic
2808 # ./install, which can be erroneously created by make from ./install.sh.
2809 # Reject install programs that cannot install multiple files.
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2811 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2812 if test -z "$INSTALL"; then
2813 if ${ac_cv_path_install+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 # Account for people who put trailing slashes in PATH elements.
2822 case $as_dir/ in #((
2823 ./ | .// | /[cC]/* | \
2824 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2825 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2826 /usr/ucb/* ) ;;
2827 *)
2828 # OSF1 and SCO ODT 3.0 have their own names for install.
2829 # Don't use installbsd from OSF since it installs stuff as root
2830 # by default.
2831 for ac_prog in ginstall scoinst install; do
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2834 if test $ac_prog = install &&
2835 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2836 # AIX install. It has an incompatible calling convention.
2837 :
2838 elif test $ac_prog = install &&
2839 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2840 # program-specific install script used by HP pwplus--don't use.
2841 :
2842 else
2843 rm -rf conftest.one conftest.two conftest.dir
2844 echo one > conftest.one
2845 echo two > conftest.two
2846 mkdir conftest.dir
2847 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2848 test -s conftest.one && test -s conftest.two &&
2849 test -s conftest.dir/conftest.one &&
2850 test -s conftest.dir/conftest.two
2851 then
2852 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2853 break 3
2854 fi
2855 fi
2856 fi
2857 done
2858 done
2859 ;;
2860 esac
2861
2862 done
2863 IFS=$as_save_IFS
2864
2865 rm -rf conftest.one conftest.two conftest.dir
2866
2867 fi
2868 if test "${ac_cv_path_install+set}" = set; then
2869 INSTALL=$ac_cv_path_install
2870 else
2871 # As a last resort, use the slow shell script. Don't cache a
2872 # value for INSTALL within a source directory, because that will
2873 # break other packages using the cache if that directory is
2874 # removed, or if the value is a relative name.
2875 INSTALL=$ac_install_sh
2876 fi
2877 fi
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2879 $as_echo "$INSTALL" >&6; }
2880
2881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2882 # It thinks the first close brace ends the variable substitution.
2883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2884
2885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2886
2887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2888
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2890 $as_echo_n "checking whether build environment is sane... " >&6; }
2891 # Reject unsafe characters in $srcdir or the absolute working directory
2892 # name. Accept space and tab only in the latter.
2893 am_lf='
2894 '
2895 case `pwd` in
2896 *[\\\"\#\$\&\'\`$am_lf]*)
2897 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2898 esac
2899 case $srcdir in
2900 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2901 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2902 esac
2903
2904 # Do 'set' in a subshell so we don't clobber the current shell's
2905 # arguments. Must try -L first in case configure is actually a
2906 # symlink; some systems play weird games with the mod time of symlinks
2907 # (eg FreeBSD returns the mod time of the symlink's containing
2908 # directory).
2909 if (
2910 am_has_slept=no
2911 for am_try in 1 2; do
2912 echo "timestamp, slept: $am_has_slept" > conftest.file
2913 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2914 if test "$*" = "X"; then
2915 # -L didn't work.
2916 set X `ls -t "$srcdir/configure" conftest.file`
2917 fi
2918 if test "$*" != "X $srcdir/configure conftest.file" \
2919 && test "$*" != "X conftest.file $srcdir/configure"; then
2920
2921 # If neither matched, then we have a broken ls. This can happen
2922 # if, for instance, CONFIG_SHELL is bash and it inherits a
2923 # broken ls alias from the environment. This has actually
2924 # happened. Such a system could not be considered "sane".
2925 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2926 alias in your environment" "$LINENO" 5
2927 fi
2928 if test "$2" = conftest.file || test $am_try -eq 2; then
2929 break
2930 fi
2931 # Just in case.
2932 sleep 1
2933 am_has_slept=yes
2934 done
2935 test "$2" = conftest.file
2936 )
2937 then
2938 # Ok.
2939 :
2940 else
2941 as_fn_error $? "newly created file is older than distributed files!
2942 Check your system clock" "$LINENO" 5
2943 fi
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2945 $as_echo "yes" >&6; }
2946 # If we didn't sleep, we still need to ensure time stamps of config.status and
2947 # generated files are strictly newer.
2948 am_sleep_pid=
2949 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2950 ( sleep 1 ) &
2951 am_sleep_pid=$!
2952 fi
2953
2954 rm -f conftest.file
2955
2956 test "$program_prefix" != NONE &&
2957 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2958 # Use a double $ so make ignores it.
2959 test "$program_suffix" != NONE &&
2960 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2961 # Double any \ or $.
2962 # By default was `s,x,x', remove it if useless.
2963 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2964 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2965
2966 # Expand $ac_aux_dir to an absolute path.
2967 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2968
2969 if test x"${MISSING+set}" != xset; then
2970 case $am_aux_dir in
2971 *\ * | *\ *)
2972 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2973 *)
2974 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2975 esac
2976 fi
2977 # Use eval to expand $SHELL
2978 if eval "$MISSING --is-lightweight"; then
2979 am_missing_run="$MISSING "
2980 else
2981 am_missing_run=
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2983 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2984 fi
2985
2986 if test x"${install_sh+set}" != xset; then
2987 case $am_aux_dir in
2988 *\ * | *\ *)
2989 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2990 *)
2991 install_sh="\${SHELL} $am_aux_dir/install-sh"
2992 esac
2993 fi
2994
2995 # Installed binaries are usually stripped using 'strip' when the user
2996 # run "make install-strip". However 'strip' might not be the right
2997 # tool to use in cross-compilation environments, therefore Automake
2998 # will honor the 'STRIP' environment variable to overrule this program.
2999 if test "$cross_compiling" != no; then
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}strip; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_STRIP+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$STRIP"; then
3009 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3013 do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022 done
3023 done
3024 IFS=$as_save_IFS
3025
3026 fi
3027 fi
3028 STRIP=$ac_cv_prog_STRIP
3029 if test -n "$STRIP"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3031 $as_echo "$STRIP" >&6; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 fi
3036
3037
3038 fi
3039 if test -z "$ac_cv_prog_STRIP"; then
3040 ac_ct_STRIP=$STRIP
3041 # Extract the first word of "strip", so it can be a program name with args.
3042 set dummy strip; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$ac_ct_STRIP"; then
3049 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3050 else
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054 IFS=$as_save_IFS
3055 test -z "$as_dir" && as_dir=.
3056 for ac_exec_ext in '' $ac_executable_extensions; do
3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058 ac_cv_prog_ac_ct_STRIP="strip"
3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3060 break 2
3061 fi
3062 done
3063 done
3064 IFS=$as_save_IFS
3065
3066 fi
3067 fi
3068 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3069 if test -n "$ac_ct_STRIP"; then
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3071 $as_echo "$ac_ct_STRIP" >&6; }
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 $as_echo "no" >&6; }
3075 fi
3076
3077 if test "x$ac_ct_STRIP" = x; then
3078 STRIP=":"
3079 else
3080 case $cross_compiling:$ac_tool_warned in
3081 yes:)
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3084 ac_tool_warned=yes ;;
3085 esac
3086 STRIP=$ac_ct_STRIP
3087 fi
3088 else
3089 STRIP="$ac_cv_prog_STRIP"
3090 fi
3091
3092 fi
3093 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3094
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3096 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3097 if test -z "$MKDIR_P"; then
3098 if ${ac_cv_path_mkdir+:} false; then :
3099 $as_echo_n "(cached) " >&6
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3103 do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_prog in mkdir gmkdir; do
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3109 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3110 'mkdir (GNU coreutils) '* | \
3111 'mkdir (coreutils) '* | \
3112 'mkdir (fileutils) '4.1*)
3113 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3114 break 3;;
3115 esac
3116 done
3117 done
3118 done
3119 IFS=$as_save_IFS
3120
3121 fi
3122
3123 test -d ./--version && rmdir ./--version
3124 if test "${ac_cv_path_mkdir+set}" = set; then
3125 MKDIR_P="$ac_cv_path_mkdir -p"
3126 else
3127 # As a last resort, use the slow shell script. Don't cache a
3128 # value for MKDIR_P within a source directory, because that will
3129 # break other packages using the cache if that directory is
3130 # removed, or if the value is a relative name.
3131 MKDIR_P="$ac_install_sh -d"
3132 fi
3133 fi
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3135 $as_echo "$MKDIR_P" >&6; }
3136
3137 for ac_prog in gawk mawk nawk awk
3138 do
3139 # Extract the first word of "$ac_prog", so it can be a program name with args.
3140 set dummy $ac_prog; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_AWK+:} false; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 if test -n "$AWK"; then
3147 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_AWK="$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 AWK=$ac_cv_prog_AWK
3167 if test -n "$AWK"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3169 $as_echo "$AWK" >&6; }
3170 else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175
3176 test -n "$AWK" && break
3177 done
3178
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3180 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3181 set x ${MAKE-make}
3182 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3183 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 cat >conftest.make <<\_ACEOF
3187 SHELL = /bin/sh
3188 all:
3189 @echo '@@@%%%=$(MAKE)=@@@%%%'
3190 _ACEOF
3191 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3192 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3193 *@@@%%%=?*=@@@%%%*)
3194 eval ac_cv_prog_make_${ac_make}_set=yes;;
3195 *)
3196 eval ac_cv_prog_make_${ac_make}_set=no;;
3197 esac
3198 rm -f conftest.make
3199 fi
3200 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3202 $as_echo "yes" >&6; }
3203 SET_MAKE=
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 SET_MAKE="MAKE=${MAKE-make}"
3208 fi
3209
3210 rm -rf .tst 2>/dev/null
3211 mkdir .tst 2>/dev/null
3212 if test -d .tst; then
3213 am__leading_dot=.
3214 else
3215 am__leading_dot=_
3216 fi
3217 rmdir .tst 2>/dev/null
3218
3219 # Check whether --enable-silent-rules was given.
3220 if test "${enable_silent_rules+set}" = set; then :
3221 enableval=$enable_silent_rules;
3222 fi
3223
3224 case $enable_silent_rules in # (((
3225 yes) AM_DEFAULT_VERBOSITY=0;;
3226 no) AM_DEFAULT_VERBOSITY=1;;
3227 *) AM_DEFAULT_VERBOSITY=1;;
3228 esac
3229 am_make=${MAKE-make}
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3231 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3232 if ${am_cv_make_support_nested_variables+:} false; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 if $as_echo 'TRUE=$(BAR$(V))
3236 BAR0=false
3237 BAR1=true
3238 V=1
3239 am__doit:
3240 @$(TRUE)
3241 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3242 am_cv_make_support_nested_variables=yes
3243 else
3244 am_cv_make_support_nested_variables=no
3245 fi
3246 fi
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3248 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3249 if test $am_cv_make_support_nested_variables = yes; then
3250 AM_V='$(V)'
3251 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3252 else
3253 AM_V=$AM_DEFAULT_VERBOSITY
3254 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3255 fi
3256 AM_BACKSLASH='\'
3257
3258 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3259 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3260 # is not polluted with repeated "-I."
3261 am__isrc=' -I$(srcdir)'
3262 # test to see if srcdir already configured
3263 if test -f $srcdir/config.status; then
3264 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3265 fi
3266 fi
3267
3268 # test whether we have cygpath
3269 if test -z "$CYGPATH_W"; then
3270 if (cygpath --version) >/dev/null 2>/dev/null; then
3271 CYGPATH_W='cygpath -w'
3272 else
3273 CYGPATH_W=echo
3274 fi
3275 fi
3276
3277
3278 # Define the identity of the package.
3279 PACKAGE='libgo'
3280 VERSION='version-unused'
3281
3282
3283 # Some tools Automake needs.
3284
3285 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3286
3287
3288 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3289
3290
3291 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3292
3293
3294 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3295
3296
3297 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3298
3299 # For better backward compatibility. To be removed once Automake 1.9.x
3300 # dies out for good. For more background, see:
3301 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3302 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3303 mkdir_p='$(MKDIR_P)'
3304
3305 # We need awk for the "check" target (and possibly the TAP driver). The
3306 # system "awk" is bad on some platforms.
3307 # Always define AMTAR for backward compatibility. Yes, it's still used
3308 # in the wild :-( We should find a proper way to deprecate it ...
3309 AMTAR='$${TAR-tar}'
3310
3311
3312 # We'll loop over all known methods to create a tar archive until one works.
3313 _am_tools='gnutar pax cpio none'
3314
3315 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3316
3317
3318
3319
3320
3321
3322 # POSIX will say in a future version that running "rm -f" with no argument
3323 # is OK; and we want to be able to make that assumption in our Makefile
3324 # recipes. So use an aggressive probe to check that the usage we want is
3325 # actually supported "in the wild" to an acceptable degree.
3326 # See automake bug#10828.
3327 # To make any issue more visible, cause the running configure to be aborted
3328 # by default if the 'rm' program in use doesn't match our expectations; the
3329 # user can still override this though.
3330 if rm -f && rm -fr && rm -rf; then : OK; else
3331 cat >&2 <<'END'
3332 Oops!
3333
3334 Your 'rm' program seems unable to run without file operands specified
3335 on the command line, even when the '-f' option is present. This is contrary
3336 to the behaviour of most rm programs out there, and not conforming with
3337 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3338
3339 Please tell bug-automake@gnu.org about your system, including the value
3340 of your $PATH and any error possibly output before this message. This
3341 can help us improve future automake versions.
3342
3343 END
3344 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3345 echo 'Configuration will proceed anyway, since you have set the' >&2
3346 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3347 echo >&2
3348 else
3349 cat >&2 <<'END'
3350 Aborting the configuration process, to ensure you take notice of the issue.
3351
3352 You can download and install GNU coreutils to get an 'rm' implementation
3353 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3354
3355 If you want to complete the configuration process using your problematic
3356 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3357 to "yes", and re-run configure.
3358
3359 END
3360 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3361 fi
3362 fi
3363
3364
3365
3366
3367
3368
3369 ac_ext=c
3370 ac_cpp='$CPP $CPPFLAGS'
3371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false; then :
3380 $as_echo_n "(cached) " >&6
3381 else
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC="$CC" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396 done
3397 done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 CC=$ac_cv_prog_CC
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3406 else
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3409 fi
3410
3411
3412 fi
3413 if test -z "$ac_cv_prog_CC"; then
3414 ac_ct_CC=$CC
3415 # Extract the first word of "gcc", so it can be a program name with args.
3416 set dummy gcc; ac_word=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3420 $as_echo_n "(cached) " >&6
3421 else
3422 if test -n "$ac_ct_CC"; then
3423 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3424 else
3425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426 for as_dir in $PATH
3427 do
3428 IFS=$as_save_IFS
3429 test -z "$as_dir" && as_dir=.
3430 for ac_exec_ext in '' $ac_executable_extensions; do
3431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3432 ac_cv_prog_ac_ct_CC="gcc"
3433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3434 break 2
3435 fi
3436 done
3437 done
3438 IFS=$as_save_IFS
3439
3440 fi
3441 fi
3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443 if test -n "$ac_ct_CC"; then
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3445 $as_echo "$ac_ct_CC" >&6; }
3446 else
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3448 $as_echo "no" >&6; }
3449 fi
3450
3451 if test "x$ac_ct_CC" = x; then
3452 CC=""
3453 else
3454 case $cross_compiling:$ac_tool_warned in
3455 yes:)
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3458 ac_tool_warned=yes ;;
3459 esac
3460 CC=$ac_ct_CC
3461 fi
3462 else
3463 CC="$ac_cv_prog_CC"
3464 fi
3465
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3469 set dummy ${ac_tool_prefix}cc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; }
3472 if ${ac_cv_prog_CC+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_prog_CC="${ac_tool_prefix}cc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489 done
3490 done
3491 IFS=$as_save_IFS
3492
3493 fi
3494 fi
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 $as_echo "$CC" >&6; }
3499 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 $as_echo "no" >&6; }
3502 fi
3503
3504
3505 fi
3506 fi
3507 if test -z "$CC"; then
3508 # Extract the first word of "cc", so it can be a program name with args.
3509 set dummy cc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_CC+:} false; then :
3513 $as_echo_n "(cached) " >&6
3514 else
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 else
3518 ac_prog_rejected=no
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522 IFS=$as_save_IFS
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3527 ac_prog_rejected=yes
3528 continue
3529 fi
3530 ac_cv_prog_CC="cc"
3531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 if test $ac_prog_rejected = yes; then
3539 # We found a bogon in the path, so make sure we never use it.
3540 set dummy $ac_cv_prog_CC
3541 shift
3542 if test $# != 0; then
3543 # We chose a different compiler from the bogus one.
3544 # However, it has the same basename, so the bogon will be chosen
3545 # first if we set CC to just the basename; use the full file name.
3546 shift
3547 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3548 fi
3549 fi
3550 fi
3551 fi
3552 CC=$ac_cv_prog_CC
3553 if test -n "$CC"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3555 $as_echo "$CC" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 fi
3560
3561
3562 fi
3563 if test -z "$CC"; then
3564 if test -n "$ac_tool_prefix"; then
3565 for ac_prog in cl.exe
3566 do
3567 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570 $as_echo_n "checking for $ac_word... " >&6; }
3571 if ${ac_cv_prog_CC+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573 else
3574 if test -n "$CC"; then
3575 ac_cv_prog_CC="$CC" # Let the user override the test.
3576 else
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578 for as_dir in $PATH
3579 do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3584 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588 done
3589 done
3590 IFS=$as_save_IFS
3591
3592 fi
3593 fi
3594 CC=$ac_cv_prog_CC
3595 if test -n "$CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3597 $as_echo "$CC" >&6; }
3598 else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600 $as_echo "no" >&6; }
3601 fi
3602
3603
3604 test -n "$CC" && break
3605 done
3606 fi
3607 if test -z "$CC"; then
3608 ac_ct_CC=$CC
3609 for ac_prog in cl.exe
3610 do
3611 # Extract the first word of "$ac_prog", so it can be a program name with args.
3612 set dummy $ac_prog; ac_word=$2
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614 $as_echo_n "checking for $ac_word... " >&6; }
3615 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3616 $as_echo_n "(cached) " >&6
3617 else
3618 if test -n "$ac_ct_CC"; then
3619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3620 else
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 for as_dir in $PATH
3623 do
3624 IFS=$as_save_IFS
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_prog_ac_ct_CC="$ac_prog"
3629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 break 2
3631 fi
3632 done
3633 done
3634 IFS=$as_save_IFS
3635
3636 fi
3637 fi
3638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3639 if test -n "$ac_ct_CC"; then
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3641 $as_echo "$ac_ct_CC" >&6; }
3642 else
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644 $as_echo "no" >&6; }
3645 fi
3646
3647
3648 test -n "$ac_ct_CC" && break
3649 done
3650
3651 if test "x$ac_ct_CC" = x; then
3652 CC=""
3653 else
3654 case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660 CC=$ac_ct_CC
3661 fi
3662 fi
3663
3664 fi
3665
3666
3667 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3669 as_fn_error $? "no acceptable C compiler found in \$PATH
3670 See \`config.log' for more details" "$LINENO" 5; }
3671
3672 # Provide some information about the compiler.
3673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3674 set X $ac_compile
3675 ac_compiler=$2
3676 for ac_option in --version -v -V -qversion; do
3677 { { ac_try="$ac_compiler $ac_option >&5"
3678 case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3685 ac_status=$?
3686 if test -s conftest.err; then
3687 sed '10a\
3688 ... rest of stderr output deleted ...
3689 10q' conftest.err >conftest.er1
3690 cat conftest.er1 >&5
3691 fi
3692 rm -f conftest.er1 conftest.err
3693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694 test $ac_status = 0; }
3695 done
3696
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699
3700 int
3701 main ()
3702 {
3703
3704 ;
3705 return 0;
3706 }
3707 _ACEOF
3708 ac_clean_files_save=$ac_clean_files
3709 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3710 # Try to create an executable without -o first, disregard a.out.
3711 # It will help us diagnose broken compilers, and finding out an intuition
3712 # of exeext.
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3714 $as_echo_n "checking whether the C compiler works... " >&6; }
3715 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3716
3717 # The possible output files:
3718 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3719
3720 ac_rmfiles=
3721 for ac_file in $ac_files
3722 do
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3725 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3726 esac
3727 done
3728 rm -f $ac_rmfiles
3729
3730 if { { ac_try="$ac_link_default"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5
3737 (eval "$ac_link_default") 2>&5
3738 ac_status=$?
3739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3740 test $ac_status = 0; }; then :
3741 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3742 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3743 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3744 # so that the user can short-circuit this test for compilers unknown to
3745 # Autoconf.
3746 for ac_file in $ac_files ''
3747 do
3748 test -f "$ac_file" || continue
3749 case $ac_file in
3750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3751 ;;
3752 [ab].out )
3753 # We found the default executable, but exeext='' is most
3754 # certainly right.
3755 break;;
3756 *.* )
3757 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3758 then :; else
3759 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760 fi
3761 # We set ac_cv_exeext here because the later test for it is not
3762 # safe: cross compilers may not add the suffix if given an `-o'
3763 # argument, so we may need to know it at that point already.
3764 # Even if this section looks crufty: it has the advantage of
3765 # actually working.
3766 break;;
3767 * )
3768 break;;
3769 esac
3770 done
3771 test "$ac_cv_exeext" = no && ac_cv_exeext=
3772
3773 else
3774 ac_file=''
3775 fi
3776 if test -z "$ac_file"; then :
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 $as_echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3784 as_fn_error 77 "C compiler cannot create executables
3785 See \`config.log' for more details" "$LINENO" 5; }
3786 else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3788 $as_echo "yes" >&6; }
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3791 $as_echo_n "checking for C compiler default output file name... " >&6; }
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3793 $as_echo "$ac_file" >&6; }
3794 ac_exeext=$ac_cv_exeext
3795
3796 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3797 ac_clean_files=$ac_clean_files_save
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3799 $as_echo_n "checking for suffix of executables... " >&6; }
3800 if { { ac_try="$ac_link"
3801 case "(($ac_try" in
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3804 esac
3805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3806 $as_echo "$ac_try_echo"; } >&5
3807 (eval "$ac_link") 2>&5
3808 ac_status=$?
3809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3810 test $ac_status = 0; }; then :
3811 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3812 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3813 # work properly (i.e., refer to `conftest.exe'), while it won't with
3814 # `rm'.
3815 for ac_file in conftest.exe conftest conftest.*; do
3816 test -f "$ac_file" || continue
3817 case $ac_file in
3818 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3819 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3820 break;;
3821 * ) break;;
3822 esac
3823 done
3824 else
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3828 See \`config.log' for more details" "$LINENO" 5; }
3829 fi
3830 rm -f conftest conftest$ac_cv_exeext
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3832 $as_echo "$ac_cv_exeext" >&6; }
3833
3834 rm -f conftest.$ac_ext
3835 EXEEXT=$ac_cv_exeext
3836 ac_exeext=$EXEEXT
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839 #include <stdio.h>
3840 int
3841 main ()
3842 {
3843 FILE *f = fopen ("conftest.out", "w");
3844 return ferror (f) || fclose (f) != 0;
3845
3846 ;
3847 return 0;
3848 }
3849 _ACEOF
3850 ac_clean_files="$ac_clean_files conftest.out"
3851 # Check that the compiler produces executables we can run. If not, either
3852 # the compiler is broken, or we cross compile.
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3854 $as_echo_n "checking whether we are cross compiling... " >&6; }
3855 if test "$cross_compiling" != yes; then
3856 { { ac_try="$ac_link"
3857 case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3860 esac
3861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3862 $as_echo "$ac_try_echo"; } >&5
3863 (eval "$ac_link") 2>&5
3864 ac_status=$?
3865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3866 test $ac_status = 0; }
3867 if { ac_try='./conftest$ac_cv_exeext'
3868 { { case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_try") 2>&5
3875 ac_status=$?
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; }; then
3878 cross_compiling=no
3879 else
3880 if test "$cross_compiling" = maybe; then
3881 cross_compiling=yes
3882 else
3883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3885 as_fn_error $? "cannot run C compiled programs.
3886 If you meant to cross compile, use \`--host'.
3887 See \`config.log' for more details" "$LINENO" 5; }
3888 fi
3889 fi
3890 fi
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3892 $as_echo "$cross_compiling" >&6; }
3893
3894 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3895 ac_clean_files=$ac_clean_files_save
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3897 $as_echo_n "checking for suffix of object files... " >&6; }
3898 if ${ac_cv_objext+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903
3904 int
3905 main ()
3906 {
3907
3908 ;
3909 return 0;
3910 }
3911 _ACEOF
3912 rm -f conftest.o conftest.obj
3913 if { { ac_try="$ac_compile"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_compile") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 for ac_file in conftest.o conftest.obj conftest.*; do
3925 test -f "$ac_file" || continue;
3926 case $ac_file in
3927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3928 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3929 break;;
3930 esac
3931 done
3932 else
3933 $as_echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error $? "cannot compute suffix of object files: cannot compile
3939 See \`config.log' for more details" "$LINENO" 5; }
3940 fi
3941 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3944 $as_echo "$ac_cv_objext" >&6; }
3945 OBJEXT=$ac_cv_objext
3946 ac_objext=$OBJEXT
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3948 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3949 if ${ac_cv_c_compiler_gnu+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951 else
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3954
3955 int
3956 main ()
3957 {
3958 #ifndef __GNUC__
3959 choke me
3960 #endif
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 if ac_fn_c_try_compile "$LINENO"; then :
3967 ac_compiler_gnu=yes
3968 else
3969 ac_compiler_gnu=no
3970 fi
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3972 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3973
3974 fi
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3976 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3977 if test $ac_compiler_gnu = yes; then
3978 GCC=yes
3979 else
3980 GCC=
3981 fi
3982 ac_test_CFLAGS=${CFLAGS+set}
3983 ac_save_CFLAGS=$CFLAGS
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3985 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3986 if ${ac_cv_prog_cc_g+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 ac_save_c_werror_flag=$ac_c_werror_flag
3990 ac_c_werror_flag=yes
3991 ac_cv_prog_cc_g=no
3992 CFLAGS="-g"
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main ()
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_g=yes
4006 else
4007 CFLAGS=""
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4010
4011 int
4012 main ()
4013 {
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020
4021 else
4022 ac_c_werror_flag=$ac_save_c_werror_flag
4023 CFLAGS="-g"
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026
4027 int
4028 main ()
4029 {
4030
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"; then :
4036 ac_cv_prog_cc_g=yes
4037 fi
4038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039 fi
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4046 $as_echo "$ac_cv_prog_cc_g" >&6; }
4047 if test "$ac_test_CFLAGS" = set; then
4048 CFLAGS=$ac_save_CFLAGS
4049 elif test $ac_cv_prog_cc_g = yes; then
4050 if test "$GCC" = yes; then
4051 CFLAGS="-g -O2"
4052 else
4053 CFLAGS="-g"
4054 fi
4055 else
4056 if test "$GCC" = yes; then
4057 CFLAGS="-O2"
4058 else
4059 CFLAGS=
4060 fi
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4063 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4064 if ${ac_cv_prog_cc_c89+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 ac_cv_prog_cc_c89=no
4068 ac_save_CC=$CC
4069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4070 /* end confdefs.h. */
4071 #include <stdarg.h>
4072 #include <stdio.h>
4073 struct stat;
4074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4075 struct buf { int x; };
4076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4077 static char *e (p, i)
4078 char **p;
4079 int i;
4080 {
4081 return p[i];
4082 }
4083 static char *f (char * (*g) (char **, int), char **p, ...)
4084 {
4085 char *s;
4086 va_list v;
4087 va_start (v,p);
4088 s = g (p, va_arg (v,int));
4089 va_end (v);
4090 return s;
4091 }
4092
4093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4094 function prototypes and stuff, but not '\xHH' hex character constants.
4095 These don't provoke an error unfortunately, instead are silently treated
4096 as 'x'. The following induces an error, until -std is added to get
4097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4098 array size at least. It's necessary to write '\x00'==0 to get something
4099 that's true only with -std. */
4100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4101
4102 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4103 inside strings and character constants. */
4104 #define FOO(x) 'x'
4105 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4106
4107 int test (int i, double x);
4108 struct s1 {int (*f) (int a);};
4109 struct s2 {int (*f) (double a);};
4110 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4111 int argc;
4112 char **argv;
4113 int
4114 main ()
4115 {
4116 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4117 ;
4118 return 0;
4119 }
4120 _ACEOF
4121 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4122 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4123 do
4124 CC="$ac_save_CC $ac_arg"
4125 if ac_fn_c_try_compile "$LINENO"; then :
4126 ac_cv_prog_cc_c89=$ac_arg
4127 fi
4128 rm -f core conftest.err conftest.$ac_objext
4129 test "x$ac_cv_prog_cc_c89" != "xno" && break
4130 done
4131 rm -f conftest.$ac_ext
4132 CC=$ac_save_CC
4133
4134 fi
4135 # AC_CACHE_VAL
4136 case "x$ac_cv_prog_cc_c89" in
4137 x)
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139 $as_echo "none needed" >&6; } ;;
4140 xno)
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4142 $as_echo "unsupported" >&6; } ;;
4143 *)
4144 CC="$CC $ac_cv_prog_cc_c89"
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4146 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4147 esac
4148 if test "x$ac_cv_prog_cc_c89" != xno; then :
4149
4150 fi
4151
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157
4158 ac_ext=c
4159 ac_cpp='$CPP $CPPFLAGS'
4160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4164 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4165 if ${am_cv_prog_cc_c_o+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 # Make sure it works both with $CC and with simple cc.
4180 # Following AC_PROG_CC_C_O, we do the test twice because some
4181 # compilers refuse to overwrite an existing .o file with -o,
4182 # though they will create one.
4183 am_cv_prog_cc_c_o=yes
4184 for am_i in 1 2; do
4185 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4186 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); } \
4190 && test -f conftest2.$ac_objext; then
4191 : OK
4192 else
4193 am_cv_prog_cc_c_o=no
4194 break
4195 fi
4196 done
4197 rm -f core conftest*
4198 unset am_i
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4201 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4202 if test "$am_cv_prog_cc_c_o" != yes; then
4203 # Losing compiler, so override with the script.
4204 # FIXME: It is wrong to rewrite CC.
4205 # But if we don't then we get into trouble of one sort or another.
4206 # A longer-term fix would be to have automake use am__CC in this case,
4207 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4208 CC="$am_aux_dir/compile $CC"
4209 fi
4210 ac_ext=c
4211 ac_cpp='$CPP $CPPFLAGS'
4212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215
4216 DEPDIR="${am__leading_dot}deps"
4217
4218 ac_config_commands="$ac_config_commands depfiles"
4219
4220
4221 am_make=${MAKE-make}
4222 cat > confinc << 'END'
4223 am__doit:
4224 @echo this is the am__doit target
4225 .PHONY: am__doit
4226 END
4227 # If we don't find an include directive, just comment out the code.
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4229 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4230 am__include="#"
4231 am__quote=
4232 _am_result=none
4233 # First try GNU make style include.
4234 echo "include confinc" > confmf
4235 # Ignore all kinds of additional output from 'make'.
4236 case `$am_make -s -f confmf 2> /dev/null` in #(
4237 *the\ am__doit\ target*)
4238 am__include=include
4239 am__quote=
4240 _am_result=GNU
4241 ;;
4242 esac
4243 # Now try BSD make style include.
4244 if test "$am__include" = "#"; then
4245 echo '.include "confinc"' > confmf
4246 case `$am_make -s -f confmf 2> /dev/null` in #(
4247 *the\ am__doit\ target*)
4248 am__include=.include
4249 am__quote="\""
4250 _am_result=BSD
4251 ;;
4252 esac
4253 fi
4254
4255
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4257 $as_echo "$_am_result" >&6; }
4258 rm -f confinc confmf
4259
4260 # Check whether --enable-dependency-tracking was given.
4261 if test "${enable_dependency_tracking+set}" = set; then :
4262 enableval=$enable_dependency_tracking;
4263 fi
4264
4265 if test "x$enable_dependency_tracking" != xno; then
4266 am_depcomp="$ac_aux_dir/depcomp"
4267 AMDEPBACKSLASH='\'
4268 am__nodep='_no'
4269 fi
4270 if test "x$enable_dependency_tracking" != xno; then
4271 AMDEP_TRUE=
4272 AMDEP_FALSE='#'
4273 else
4274 AMDEP_TRUE='#'
4275 AMDEP_FALSE=
4276 fi
4277
4278
4279
4280 depcc="$CC" am_compiler_list=
4281
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4283 $as_echo_n "checking dependency style of $depcc... " >&6; }
4284 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4288 # We make a subdir and do the tests there. Otherwise we can end up
4289 # making bogus files that we don't know about and never remove. For
4290 # instance it was reported that on HP-UX the gcc test will end up
4291 # making a dummy file named 'D' -- because '-MD' means "put the output
4292 # in D".
4293 rm -rf conftest.dir
4294 mkdir conftest.dir
4295 # Copy depcomp to subdir because otherwise we won't find it if we're
4296 # using a relative directory.
4297 cp "$am_depcomp" conftest.dir
4298 cd conftest.dir
4299 # We will build objects and dependencies in a subdirectory because
4300 # it helps to detect inapplicable dependency modes. For instance
4301 # both Tru64's cc and ICC support -MD to output dependencies as a
4302 # side effect of compilation, but ICC will put the dependencies in
4303 # the current directory while Tru64 will put them in the object
4304 # directory.
4305 mkdir sub
4306
4307 am_cv_CC_dependencies_compiler_type=none
4308 if test "$am_compiler_list" = ""; then
4309 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4310 fi
4311 am__universal=false
4312 case " $depcc " in #(
4313 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4314 esac
4315
4316 for depmode in $am_compiler_list; do
4317 # Setup a source with many dependencies, because some compilers
4318 # like to wrap large dependency lists on column 80 (with \), and
4319 # we should not choose a depcomp mode which is confused by this.
4320 #
4321 # We need to recreate these files for each test, as the compiler may
4322 # overwrite some of them when testing with obscure command lines.
4323 # This happens at least with the AIX C compiler.
4324 : > sub/conftest.c
4325 for i in 1 2 3 4 5 6; do
4326 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4327 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4328 # Solaris 10 /bin/sh.
4329 echo '/* dummy */' > sub/conftst$i.h
4330 done
4331 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4332
4333 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4334 # mode. It turns out that the SunPro C++ compiler does not properly
4335 # handle '-M -o', and we need to detect this. Also, some Intel
4336 # versions had trouble with output in subdirs.
4337 am__obj=sub/conftest.${OBJEXT-o}
4338 am__minus_obj="-o $am__obj"
4339 case $depmode in
4340 gcc)
4341 # This depmode causes a compiler race in universal mode.
4342 test "$am__universal" = false || continue
4343 ;;
4344 nosideeffect)
4345 # After this tag, mechanisms are not by side-effect, so they'll
4346 # only be used when explicitly requested.
4347 if test "x$enable_dependency_tracking" = xyes; then
4348 continue
4349 else
4350 break
4351 fi
4352 ;;
4353 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4354 # This compiler won't grok '-c -o', but also, the minuso test has
4355 # not run yet. These depmodes are late enough in the game, and
4356 # so weak that their functioning should not be impacted.
4357 am__obj=conftest.${OBJEXT-o}
4358 am__minus_obj=
4359 ;;
4360 none) break ;;
4361 esac
4362 if depmode=$depmode \
4363 source=sub/conftest.c object=$am__obj \
4364 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4365 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4366 >/dev/null 2>conftest.err &&
4367 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4369 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4371 # icc doesn't choke on unknown options, it will just issue warnings
4372 # or remarks (even with -Werror). So we grep stderr for any message
4373 # that says an option was ignored or not supported.
4374 # When given -MP, icc 7.0 and 7.1 complain thusly:
4375 # icc: Command line warning: ignoring option '-M'; no argument required
4376 # The diagnosis changed in icc 8.0:
4377 # icc: Command line remark: option '-MP' not supported
4378 if (grep 'ignoring option' conftest.err ||
4379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4380 am_cv_CC_dependencies_compiler_type=$depmode
4381 break
4382 fi
4383 fi
4384 done
4385
4386 cd ..
4387 rm -rf conftest.dir
4388 else
4389 am_cv_CC_dependencies_compiler_type=none
4390 fi
4391
4392 fi
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4394 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4396
4397 if
4398 test "x$enable_dependency_tracking" != xno \
4399 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4400 am__fastdepCC_TRUE=
4401 am__fastdepCC_FALSE='#'
4402 else
4403 am__fastdepCC_TRUE='#'
4404 am__fastdepCC_FALSE=
4405 fi
4406
4407
4408 ac_ext=go
4409 ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4410 ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411 ac_compiler_gnu=yes
4412 if test -n "$ac_tool_prefix"; then
4413 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4414 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 $as_echo_n "checking for $ac_word... " >&6; }
4417 if ${ac_cv_prog_GOC+:} false; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test -n "$GOC"; then
4421 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4422 else
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 for as_dir in $PATH
4425 do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432 break 2
4433 fi
4434 done
4435 done
4436 IFS=$as_save_IFS
4437
4438 fi
4439 fi
4440 GOC=$ac_cv_prog_GOC
4441 if test -n "$GOC"; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4443 $as_echo "$GOC" >&6; }
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447 fi
4448
4449
4450 fi
4451 if test -z "$ac_cv_prog_GOC"; then
4452 ac_ct_GOC=$GOC
4453 # Extract the first word of "gccgo", so it can be a program name with args.
4454 set dummy gccgo; ac_word=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
4458 $as_echo_n "(cached) " >&6
4459 else
4460 if test -n "$ac_ct_GOC"; then
4461 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4465 do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4470 ac_cv_prog_ac_ct_GOC="gccgo"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4473 fi
4474 done
4475 done
4476 IFS=$as_save_IFS
4477
4478 fi
4479 fi
4480 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4481 if test -n "$ac_ct_GOC"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4483 $as_echo "$ac_ct_GOC" >&6; }
4484 else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4487 fi
4488
4489 if test "x$ac_ct_GOC" = x; then
4490 GOC=""
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493 yes:)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4497 esac
4498 GOC=$ac_ct_GOC
4499 fi
4500 else
4501 GOC="$ac_cv_prog_GOC"
4502 fi
4503
4504 if test -z "$GOC"; then
4505 if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4507 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4509 $as_echo_n "checking for $ac_word... " >&6; }
4510 if ${ac_cv_prog_GOC+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512 else
4513 if test -n "$GOC"; then
4514 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
4521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4523 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4525 break 2
4526 fi
4527 done
4528 done
4529 IFS=$as_save_IFS
4530
4531 fi
4532 fi
4533 GOC=$ac_cv_prog_GOC
4534 if test -n "$GOC"; then
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4536 $as_echo "$GOC" >&6; }
4537 else
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4540 fi
4541
4542
4543 fi
4544 fi
4545 if test -z "$GOC"; then
4546 # Extract the first word of "gccgo", so it can be a program name with args.
4547 set dummy gccgo; ac_word=$2
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4549 $as_echo_n "checking for $ac_word... " >&6; }
4550 if ${ac_cv_prog_GOC+:} false; then :
4551 $as_echo_n "(cached) " >&6
4552 else
4553 if test -n "$GOC"; then
4554 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4555 else
4556 ac_prog_rejected=no
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4564 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4565 ac_prog_rejected=yes
4566 continue
4567 fi
4568 ac_cv_prog_GOC="gccgo"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 if test $ac_prog_rejected = yes; then
4577 # We found a bogon in the path, so make sure we never use it.
4578 set dummy $ac_cv_prog_GOC
4579 shift
4580 if test $# != 0; then
4581 # We chose a different compiler from the bogus one.
4582 # However, it has the same basename, so the bogon will be chosen
4583 # first if we set GOC to just the basename; use the full file name.
4584 shift
4585 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4586 fi
4587 fi
4588 fi
4589 fi
4590 GOC=$ac_cv_prog_GOC
4591 if test -n "$GOC"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4593 $as_echo "$GOC" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4597 fi
4598
4599
4600 fi
4601
4602
4603 # Provide some information about the compiler.
4604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4605 set X $ac_compile
4606 ac_compiler=$2
4607 { { ac_try="$ac_compiler --version >&5"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 $as_echo "$ac_try_echo"; } >&5
4614 (eval "$ac_compiler --version >&5") 2>conftest.err
4615 ac_status=$?
4616 if test -s conftest.err; then
4617 sed '10a\
4618 ... rest of stderr output deleted ...
4619 10q' conftest.err >conftest.er1
4620 cat conftest.er1 >&5
4621 fi
4622 rm -f conftest.er1 conftest.err
4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4624 test $ac_status = 0; }
4625 GOFLAGS="-g -O2"
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631
4632 # By default we simply use the C compiler to build assembly code.
4633
4634 test "${CCAS+set}" = set || CCAS=$CC
4635 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4636
4637
4638
4639 depcc="$CCAS" am_compiler_list=
4640
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4642 $as_echo_n "checking dependency style of $depcc... " >&6; }
4643 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4647 # We make a subdir and do the tests there. Otherwise we can end up
4648 # making bogus files that we don't know about and never remove. For
4649 # instance it was reported that on HP-UX the gcc test will end up
4650 # making a dummy file named 'D' -- because '-MD' means "put the output
4651 # in D".
4652 rm -rf conftest.dir
4653 mkdir conftest.dir
4654 # Copy depcomp to subdir because otherwise we won't find it if we're
4655 # using a relative directory.
4656 cp "$am_depcomp" conftest.dir
4657 cd conftest.dir
4658 # We will build objects and dependencies in a subdirectory because
4659 # it helps to detect inapplicable dependency modes. For instance
4660 # both Tru64's cc and ICC support -MD to output dependencies as a
4661 # side effect of compilation, but ICC will put the dependencies in
4662 # the current directory while Tru64 will put them in the object
4663 # directory.
4664 mkdir sub
4665
4666 am_cv_CCAS_dependencies_compiler_type=none
4667 if test "$am_compiler_list" = ""; then
4668 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4669 fi
4670 am__universal=false
4671
4672
4673 for depmode in $am_compiler_list; do
4674 # Setup a source with many dependencies, because some compilers
4675 # like to wrap large dependency lists on column 80 (with \), and
4676 # we should not choose a depcomp mode which is confused by this.
4677 #
4678 # We need to recreate these files for each test, as the compiler may
4679 # overwrite some of them when testing with obscure command lines.
4680 # This happens at least with the AIX C compiler.
4681 : > sub/conftest.c
4682 for i in 1 2 3 4 5 6; do
4683 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4684 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4685 # Solaris 10 /bin/sh.
4686 echo '/* dummy */' > sub/conftst$i.h
4687 done
4688 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4689
4690 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4691 # mode. It turns out that the SunPro C++ compiler does not properly
4692 # handle '-M -o', and we need to detect this. Also, some Intel
4693 # versions had trouble with output in subdirs.
4694 am__obj=sub/conftest.${OBJEXT-o}
4695 am__minus_obj="-o $am__obj"
4696 case $depmode in
4697 gcc)
4698 # This depmode causes a compiler race in universal mode.
4699 test "$am__universal" = false || continue
4700 ;;
4701 nosideeffect)
4702 # After this tag, mechanisms are not by side-effect, so they'll
4703 # only be used when explicitly requested.
4704 if test "x$enable_dependency_tracking" = xyes; then
4705 continue
4706 else
4707 break
4708 fi
4709 ;;
4710 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4711 # This compiler won't grok '-c -o', but also, the minuso test has
4712 # not run yet. These depmodes are late enough in the game, and
4713 # so weak that their functioning should not be impacted.
4714 am__obj=conftest.${OBJEXT-o}
4715 am__minus_obj=
4716 ;;
4717 none) break ;;
4718 esac
4719 if depmode=$depmode \
4720 source=sub/conftest.c object=$am__obj \
4721 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4722 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4723 >/dev/null 2>conftest.err &&
4724 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4725 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4726 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4728 # icc doesn't choke on unknown options, it will just issue warnings
4729 # or remarks (even with -Werror). So we grep stderr for any message
4730 # that says an option was ignored or not supported.
4731 # When given -MP, icc 7.0 and 7.1 complain thusly:
4732 # icc: Command line warning: ignoring option '-M'; no argument required
4733 # The diagnosis changed in icc 8.0:
4734 # icc: Command line remark: option '-MP' not supported
4735 if (grep 'ignoring option' conftest.err ||
4736 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4737 am_cv_CCAS_dependencies_compiler_type=$depmode
4738 break
4739 fi
4740 fi
4741 done
4742
4743 cd ..
4744 rm -rf conftest.dir
4745 else
4746 am_cv_CCAS_dependencies_compiler_type=none
4747 fi
4748
4749 fi
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4751 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4752 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4753
4754 if
4755 test "x$enable_dependency_tracking" != xno \
4756 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4757 am__fastdepCCAS_TRUE=
4758 am__fastdepCCAS_FALSE='#'
4759 else
4760 am__fastdepCCAS_TRUE='#'
4761 am__fastdepCCAS_FALSE=
4762 fi
4763
4764
4765
4766
4767
4768
4769 case ${host} in
4770 *-*-aix*)
4771 # Check default architecture for FAT library creation
4772 if test -z "`$CC -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then
4773 AIX_EXTRA_ARCH='64'
4774 else
4775 AIX_EXTRA_ARCH='32'
4776 fi
4777
4778 ;;
4779 esac
4780
4781
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4783 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4784 # Check whether --enable-maintainer-mode was given.
4785 if test "${enable_maintainer_mode+set}" = set; then :
4786 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4787 else
4788 USE_MAINTAINER_MODE=no
4789 fi
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4792 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4793 if test $USE_MAINTAINER_MODE = yes; then
4794 MAINTAINER_MODE_TRUE=
4795 MAINTAINER_MODE_FALSE='#'
4796 else
4797 MAINTAINER_MODE_TRUE='#'
4798 MAINTAINER_MODE_FALSE=
4799 fi
4800
4801 MAINT=$MAINTAINER_MODE_TRUE
4802
4803
4804
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4806 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4807 if ${ac_cv_path_SED+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4811 for ac_i in 1 2 3 4 5 6 7; do
4812 ac_script="$ac_script$as_nl$ac_script"
4813 done
4814 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4815 { ac_script=; unset ac_script;}
4816 if test -z "$SED"; then
4817 ac_path_SED_found=false
4818 # Loop through the user's path and test for each of PROGNAME-LIST
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_prog in sed gsed; do
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4827 as_fn_executable_p "$ac_path_SED" || continue
4828 # Check for GNU ac_path_SED and select it if it is found.
4829 # Check for GNU $ac_path_SED
4830 case `"$ac_path_SED" --version 2>&1` in
4831 *GNU*)
4832 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4833 *)
4834 ac_count=0
4835 $as_echo_n 0123456789 >"conftest.in"
4836 while :
4837 do
4838 cat "conftest.in" "conftest.in" >"conftest.tmp"
4839 mv "conftest.tmp" "conftest.in"
4840 cp "conftest.in" "conftest.nl"
4841 $as_echo '' >> "conftest.nl"
4842 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4844 as_fn_arith $ac_count + 1 && ac_count=$as_val
4845 if test $ac_count -gt ${ac_path_SED_max-0}; then
4846 # Best one so far, save it but keep looking for a better one
4847 ac_cv_path_SED="$ac_path_SED"
4848 ac_path_SED_max=$ac_count
4849 fi
4850 # 10*(2^10) chars as input seems more than enough
4851 test $ac_count -gt 10 && break
4852 done
4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4854 esac
4855
4856 $ac_path_SED_found && break 3
4857 done
4858 done
4859 done
4860 IFS=$as_save_IFS
4861 if test -z "$ac_cv_path_SED"; then
4862 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4863 fi
4864 else
4865 ac_cv_path_SED=$SED
4866 fi
4867
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4870 $as_echo "$ac_cv_path_SED" >&6; }
4871 SED="$ac_cv_path_SED"
4872 rm -f conftest.sed
4873
4874 test -z "$SED" && SED=sed
4875 Xsed="$SED -e 1s/^X//"
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4888 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4889 if ${ac_cv_path_GREP+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -z "$GREP"; then
4893 ac_path_GREP_found=false
4894 # Loop through the user's path and test for each of PROGNAME-LIST
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4897 do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_prog in grep ggrep; do
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4903 as_fn_executable_p "$ac_path_GREP" || continue
4904 # Check for GNU ac_path_GREP and select it if it is found.
4905 # Check for GNU $ac_path_GREP
4906 case `"$ac_path_GREP" --version 2>&1` in
4907 *GNU*)
4908 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4909 *)
4910 ac_count=0
4911 $as_echo_n 0123456789 >"conftest.in"
4912 while :
4913 do
4914 cat "conftest.in" "conftest.in" >"conftest.tmp"
4915 mv "conftest.tmp" "conftest.in"
4916 cp "conftest.in" "conftest.nl"
4917 $as_echo 'GREP' >> "conftest.nl"
4918 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4919 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4920 as_fn_arith $ac_count + 1 && ac_count=$as_val
4921 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4922 # Best one so far, save it but keep looking for a better one
4923 ac_cv_path_GREP="$ac_path_GREP"
4924 ac_path_GREP_max=$ac_count
4925 fi
4926 # 10*(2^10) chars as input seems more than enough
4927 test $ac_count -gt 10 && break
4928 done
4929 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4930 esac
4931
4932 $ac_path_GREP_found && break 3
4933 done
4934 done
4935 done
4936 IFS=$as_save_IFS
4937 if test -z "$ac_cv_path_GREP"; then
4938 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4939 fi
4940 else
4941 ac_cv_path_GREP=$GREP
4942 fi
4943
4944 fi
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4946 $as_echo "$ac_cv_path_GREP" >&6; }
4947 GREP="$ac_cv_path_GREP"
4948
4949
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4951 $as_echo_n "checking for egrep... " >&6; }
4952 if ${ac_cv_path_EGREP+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4956 then ac_cv_path_EGREP="$GREP -E"
4957 else
4958 if test -z "$EGREP"; then
4959 ac_path_EGREP_found=false
4960 # Loop through the user's path and test for each of PROGNAME-LIST
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4963 do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_prog in egrep; do
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4969 as_fn_executable_p "$ac_path_EGREP" || continue
4970 # Check for GNU ac_path_EGREP and select it if it is found.
4971 # Check for GNU $ac_path_EGREP
4972 case `"$ac_path_EGREP" --version 2>&1` in
4973 *GNU*)
4974 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4975 *)
4976 ac_count=0
4977 $as_echo_n 0123456789 >"conftest.in"
4978 while :
4979 do
4980 cat "conftest.in" "conftest.in" >"conftest.tmp"
4981 mv "conftest.tmp" "conftest.in"
4982 cp "conftest.in" "conftest.nl"
4983 $as_echo 'EGREP' >> "conftest.nl"
4984 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4986 as_fn_arith $ac_count + 1 && ac_count=$as_val
4987 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4988 # Best one so far, save it but keep looking for a better one
4989 ac_cv_path_EGREP="$ac_path_EGREP"
4990 ac_path_EGREP_max=$ac_count
4991 fi
4992 # 10*(2^10) chars as input seems more than enough
4993 test $ac_count -gt 10 && break
4994 done
4995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4996 esac
4997
4998 $ac_path_EGREP_found && break 3
4999 done
5000 done
5001 done
5002 IFS=$as_save_IFS
5003 if test -z "$ac_cv_path_EGREP"; then
5004 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5005 fi
5006 else
5007 ac_cv_path_EGREP=$EGREP
5008 fi
5009
5010 fi
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5013 $as_echo "$ac_cv_path_EGREP" >&6; }
5014 EGREP="$ac_cv_path_EGREP"
5015
5016
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5018 $as_echo_n "checking for fgrep... " >&6; }
5019 if ${ac_cv_path_FGREP+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5023 then ac_cv_path_FGREP="$GREP -F"
5024 else
5025 if test -z "$FGREP"; then
5026 ac_path_FGREP_found=false
5027 # Loop through the user's path and test for each of PROGNAME-LIST
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5030 do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_prog in fgrep; do
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5036 as_fn_executable_p "$ac_path_FGREP" || continue
5037 # Check for GNU ac_path_FGREP and select it if it is found.
5038 # Check for GNU $ac_path_FGREP
5039 case `"$ac_path_FGREP" --version 2>&1` in
5040 *GNU*)
5041 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5042 *)
5043 ac_count=0
5044 $as_echo_n 0123456789 >"conftest.in"
5045 while :
5046 do
5047 cat "conftest.in" "conftest.in" >"conftest.tmp"
5048 mv "conftest.tmp" "conftest.in"
5049 cp "conftest.in" "conftest.nl"
5050 $as_echo 'FGREP' >> "conftest.nl"
5051 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053 as_fn_arith $ac_count + 1 && ac_count=$as_val
5054 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5055 # Best one so far, save it but keep looking for a better one
5056 ac_cv_path_FGREP="$ac_path_FGREP"
5057 ac_path_FGREP_max=$ac_count
5058 fi
5059 # 10*(2^10) chars as input seems more than enough
5060 test $ac_count -gt 10 && break
5061 done
5062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063 esac
5064
5065 $ac_path_FGREP_found && break 3
5066 done
5067 done
5068 done
5069 IFS=$as_save_IFS
5070 if test -z "$ac_cv_path_FGREP"; then
5071 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5072 fi
5073 else
5074 ac_cv_path_FGREP=$FGREP
5075 fi
5076
5077 fi
5078 fi
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5080 $as_echo "$ac_cv_path_FGREP" >&6; }
5081 FGREP="$ac_cv_path_FGREP"
5082
5083
5084 test -z "$GREP" && GREP=grep
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5103 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5104 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5107 $as_echo_n "checking how to print strings... " >&6; }
5108 # Test print first, because it will be a builtin if present.
5109 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5110 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5111 ECHO='print -r --'
5112 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5113 ECHO='printf %s\n'
5114 else
5115 # Use this function as a fallback that always works.
5116 func_fallback_echo ()
5117 {
5118 eval 'cat <<_LTECHO_EOF
5119 $1
5120 _LTECHO_EOF'
5121 }
5122 ECHO='func_fallback_echo'
5123 fi
5124
5125 # func_echo_all arg...
5126 # Invoke $ECHO with all args, space-separated.
5127 func_echo_all ()
5128 {
5129 $ECHO ""
5130 }
5131
5132 case "$ECHO" in
5133 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5134 $as_echo "printf" >&6; } ;;
5135 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5136 $as_echo "print -r" >&6; } ;;
5137 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5138 $as_echo "cat" >&6; } ;;
5139 esac
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156 # Check whether --with-gnu-ld was given.
5157 if test "${with_gnu_ld+set}" = set; then :
5158 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5159 else
5160 with_gnu_ld=no
5161 fi
5162
5163 ac_prog=ld
5164 if test "$GCC" = yes; then
5165 # Check if gcc -print-prog-name=ld gives a path.
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5167 $as_echo_n "checking for ld used by $CC... " >&6; }
5168 case $host in
5169 *-*-mingw*)
5170 # gcc leaves a trailing carriage return which upsets mingw
5171 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5172 *)
5173 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5174 esac
5175 case $ac_prog in
5176 # Accept absolute paths.
5177 [\\/]* | ?:[\\/]*)
5178 re_direlt='/[^/][^/]*/\.\./'
5179 # Canonicalize the pathname of ld
5180 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5181 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5182 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5183 done
5184 test -z "$LD" && LD="$ac_prog"
5185 ;;
5186 "")
5187 # If it fails, then pretend we aren't using GCC.
5188 ac_prog=ld
5189 ;;
5190 *)
5191 # If it is relative, then search for the first ld in PATH.
5192 with_gnu_ld=unknown
5193 ;;
5194 esac
5195 elif test "$with_gnu_ld" = yes; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5197 $as_echo_n "checking for GNU ld... " >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5200 $as_echo_n "checking for non-GNU ld... " >&6; }
5201 fi
5202 if ${lt_cv_path_LD+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -z "$LD"; then
5206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5207 for ac_dir in $PATH; do
5208 IFS="$lt_save_ifs"
5209 test -z "$ac_dir" && ac_dir=.
5210 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5211 lt_cv_path_LD="$ac_dir/$ac_prog"
5212 # Check to see if the program is GNU ld. I'd rather use --version,
5213 # but apparently some variants of GNU ld only accept -v.
5214 # Break only if it was the GNU/non-GNU ld that we prefer.
5215 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5216 *GNU* | *'with BFD'*)
5217 test "$with_gnu_ld" != no && break
5218 ;;
5219 *)
5220 test "$with_gnu_ld" != yes && break
5221 ;;
5222 esac
5223 fi
5224 done
5225 IFS="$lt_save_ifs"
5226 else
5227 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5228 fi
5229 fi
5230
5231 LD="$lt_cv_path_LD"
5232 if test -n "$LD"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5234 $as_echo "$LD" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5238 fi
5239 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5241 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5242 if ${lt_cv_prog_gnu_ld+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5246 case `$LD -v 2>&1 </dev/null` in
5247 *GNU* | *'with BFD'*)
5248 lt_cv_prog_gnu_ld=yes
5249 ;;
5250 *)
5251 lt_cv_prog_gnu_ld=no
5252 ;;
5253 esac
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5256 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5257 with_gnu_ld=$lt_cv_prog_gnu_ld
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267 if test -n "$ac_tool_prefix"; then
5268 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5269 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5271 $as_echo_n "checking for $ac_word... " >&6; }
5272 if ${ac_cv_prog_RANLIB+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 if test -n "$RANLIB"; then
5276 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5277 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289 done
5290 done
5291 IFS=$as_save_IFS
5292
5293 fi
5294 fi
5295 RANLIB=$ac_cv_prog_RANLIB
5296 if test -n "$RANLIB"; then
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5298 $as_echo "$RANLIB" >&6; }
5299 else
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 $as_echo "no" >&6; }
5302 fi
5303
5304
5305 fi
5306 if test -z "$ac_cv_prog_RANLIB"; then
5307 ac_ct_RANLIB=$RANLIB
5308 # Extract the first word of "ranlib", so it can be a program name with args.
5309 set dummy ranlib; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$ac_ct_RANLIB"; then
5316 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_RANLIB="ranlib"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 fi
5334 fi
5335 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5336 if test -n "$ac_ct_RANLIB"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5338 $as_echo "$ac_ct_RANLIB" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343
5344 if test "x$ac_ct_RANLIB" = x; then
5345 RANLIB=":"
5346 else
5347 case $cross_compiling:$ac_tool_warned in
5348 yes:)
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned=yes ;;
5352 esac
5353 RANLIB=$ac_ct_RANLIB
5354 fi
5355 else
5356 RANLIB="$ac_cv_prog_RANLIB"
5357 fi
5358
5359 if test -n "$ac_tool_prefix"; then
5360 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5361 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5363 $as_echo_n "checking for $ac_word... " >&6; }
5364 if ${ac_cv_prog_OBJCOPY+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$OBJCOPY"; then
5368 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5369 else
5370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373 IFS=$as_save_IFS
5374 test -z "$as_dir" && as_dir=.
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379 break 2
5380 fi
5381 done
5382 done
5383 IFS=$as_save_IFS
5384
5385 fi
5386 fi
5387 OBJCOPY=$ac_cv_prog_OBJCOPY
5388 if test -n "$OBJCOPY"; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5390 $as_echo "$OBJCOPY" >&6; }
5391 else
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396
5397 fi
5398 if test -z "$ac_cv_prog_OBJCOPY"; then
5399 ac_ct_OBJCOPY=$OBJCOPY
5400 # Extract the first word of "objcopy", so it can be a program name with args.
5401 set dummy objcopy; ac_word=$2
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5403 $as_echo_n "checking for $ac_word... " >&6; }
5404 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -n "$ac_ct_OBJCOPY"; then
5408 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5409 else
5410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413 IFS=$as_save_IFS
5414 test -z "$as_dir" && as_dir=.
5415 for ac_exec_ext in '' $ac_executable_extensions; do
5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419 break 2
5420 fi
5421 done
5422 done
5423 IFS=$as_save_IFS
5424
5425 fi
5426 fi
5427 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5428 if test -n "$ac_ct_OBJCOPY"; then
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5430 $as_echo "$ac_ct_OBJCOPY" >&6; }
5431 else
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433 $as_echo "no" >&6; }
5434 fi
5435
5436 if test "x$ac_ct_OBJCOPY" = x; then
5437 OBJCOPY="missing-objcopy"
5438 else
5439 case $cross_compiling:$ac_tool_warned in
5440 yes:)
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5443 ac_tool_warned=yes ;;
5444 esac
5445 OBJCOPY=$ac_ct_OBJCOPY
5446 fi
5447 else
5448 OBJCOPY="$ac_cv_prog_OBJCOPY"
5449 fi
5450
5451
5452 enable_dlopen=yes
5453
5454
5455
5456 case `pwd` in
5457 *\ * | *\ *)
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5459 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5460 esac
5461
5462
5463
5464 macro_version='2.2.7a'
5465 macro_revision='1.3134'
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 ltmain="$ac_aux_dir/ltmain.sh"
5480
5481 # Backslashify metacharacters that are still active within
5482 # double-quoted strings.
5483 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5484
5485 # Same as above, but do not quote variable references.
5486 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5487
5488 # Sed substitution to delay expansion of an escaped shell variable in a
5489 # double_quote_subst'ed string.
5490 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5491
5492 # Sed substitution to delay expansion of an escaped single quote.
5493 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5494
5495 # Sed substitution to avoid accidental globbing in evaled expressions
5496 no_glob_subst='s/\*/\\\*/g'
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5499 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5500 if ${lt_cv_path_NM+:} false; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -n "$NM"; then
5504 # Let the user override the test.
5505 lt_cv_path_NM="$NM"
5506 else
5507 lt_nm_to_check="${ac_tool_prefix}nm"
5508 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5509 lt_nm_to_check="$lt_nm_to_check nm"
5510 fi
5511 for lt_tmp_nm in $lt_nm_to_check; do
5512 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5513 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5514 IFS="$lt_save_ifs"
5515 test -z "$ac_dir" && ac_dir=.
5516 tmp_nm="$ac_dir/$lt_tmp_nm"
5517 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5518 # Check to see if the nm accepts a BSD-compat flag.
5519 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5520 # nm: unknown option "B" ignored
5521 # Tru64's nm complains that /dev/null is an invalid object file
5522 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5523 */dev/null* | *'Invalid file or object type'*)
5524 lt_cv_path_NM="$tmp_nm -B"
5525 break
5526 ;;
5527 *)
5528 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5529 */dev/null*)
5530 lt_cv_path_NM="$tmp_nm -p"
5531 break
5532 ;;
5533 *)
5534 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5535 continue # so that we can try to find one that supports BSD flags
5536 ;;
5537 esac
5538 ;;
5539 esac
5540 fi
5541 done
5542 IFS="$lt_save_ifs"
5543 done
5544 : ${lt_cv_path_NM=no}
5545 fi
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5548 $as_echo "$lt_cv_path_NM" >&6; }
5549 if test "$lt_cv_path_NM" != "no"; then
5550 NM="$lt_cv_path_NM"
5551 else
5552 # Didn't find any BSD compatible name lister, look for dumpbin.
5553 if test -n "$DUMPBIN"; then :
5554 # Let the user override the test.
5555 else
5556 if test -n "$ac_tool_prefix"; then
5557 for ac_prog in dumpbin "link -dump"
5558 do
5559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5560 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if ${ac_cv_prog_DUMPBIN+:} false; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if test -n "$DUMPBIN"; then
5567 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5568 else
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5571 do
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5576 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5579 fi
5580 done
5581 done
5582 IFS=$as_save_IFS
5583
5584 fi
5585 fi
5586 DUMPBIN=$ac_cv_prog_DUMPBIN
5587 if test -n "$DUMPBIN"; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5589 $as_echo "$DUMPBIN" >&6; }
5590 else
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592 $as_echo "no" >&6; }
5593 fi
5594
5595
5596 test -n "$DUMPBIN" && break
5597 done
5598 fi
5599 if test -z "$DUMPBIN"; then
5600 ac_ct_DUMPBIN=$DUMPBIN
5601 for ac_prog in dumpbin "link -dump"
5602 do
5603 # Extract the first word of "$ac_prog", so it can be a program name with args.
5604 set dummy $ac_prog; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5608 $as_echo_n "(cached) " >&6
5609 else
5610 if test -n "$ac_ct_DUMPBIN"; then
5611 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5612 else
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5614 for as_dir in $PATH
5615 do
5616 IFS=$as_save_IFS
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5622 break 2
5623 fi
5624 done
5625 done
5626 IFS=$as_save_IFS
5627
5628 fi
5629 fi
5630 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5631 if test -n "$ac_ct_DUMPBIN"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5633 $as_echo "$ac_ct_DUMPBIN" >&6; }
5634 else
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5637 fi
5638
5639
5640 test -n "$ac_ct_DUMPBIN" && break
5641 done
5642
5643 if test "x$ac_ct_DUMPBIN" = x; then
5644 DUMPBIN=":"
5645 else
5646 case $cross_compiling:$ac_tool_warned in
5647 yes:)
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5649 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5650 ac_tool_warned=yes ;;
5651 esac
5652 DUMPBIN=$ac_ct_DUMPBIN
5653 fi
5654 fi
5655
5656 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5657 *COFF*)
5658 DUMPBIN="$DUMPBIN -symbols"
5659 ;;
5660 *)
5661 DUMPBIN=:
5662 ;;
5663 esac
5664 fi
5665
5666 if test "$DUMPBIN" != ":"; then
5667 NM="$DUMPBIN"
5668 fi
5669 fi
5670 test -z "$NM" && NM=nm
5671
5672
5673
5674
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5678 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5679 if ${lt_cv_nm_interface+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 lt_cv_nm_interface="BSD nm"
5683 echo "int some_variable = 0;" > conftest.$ac_ext
5684 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5685 (eval "$ac_compile" 2>conftest.err)
5686 cat conftest.err >&5
5687 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5688 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5689 cat conftest.err >&5
5690 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5691 cat conftest.out >&5
5692 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5693 lt_cv_nm_interface="MS dumpbin"
5694 fi
5695 rm -f conftest*
5696 fi
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5698 $as_echo "$lt_cv_nm_interface" >&6; }
5699
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5701 $as_echo_n "checking whether ln -s works... " >&6; }
5702 LN_S=$as_ln_s
5703 if test "$LN_S" = "ln -s"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5705 $as_echo "yes" >&6; }
5706 else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5708 $as_echo "no, using $LN_S" >&6; }
5709 fi
5710
5711 # find the maximum length of command line arguments
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5713 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5714 if ${lt_cv_sys_max_cmd_len+:} false; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 i=0
5718 teststring="ABCD"
5719
5720 case $build_os in
5721 msdosdjgpp*)
5722 # On DJGPP, this test can blow up pretty badly due to problems in libc
5723 # (any single argument exceeding 2000 bytes causes a buffer overrun
5724 # during glob expansion). Even if it were fixed, the result of this
5725 # check would be larger than it should be.
5726 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5727 ;;
5728
5729 gnu*)
5730 # Under GNU Hurd, this test is not required because there is
5731 # no limit to the length of command line arguments.
5732 # Libtool will interpret -1 as no limit whatsoever
5733 lt_cv_sys_max_cmd_len=-1;
5734 ;;
5735
5736 cygwin* | mingw* | cegcc*)
5737 # On Win9x/ME, this test blows up -- it succeeds, but takes
5738 # about 5 minutes as the teststring grows exponentially.
5739 # Worse, since 9x/ME are not pre-emptively multitasking,
5740 # you end up with a "frozen" computer, even though with patience
5741 # the test eventually succeeds (with a max line length of 256k).
5742 # Instead, let's just punt: use the minimum linelength reported by
5743 # all of the supported platforms: 8192 (on NT/2K/XP).
5744 lt_cv_sys_max_cmd_len=8192;
5745 ;;
5746
5747 mint*)
5748 # On MiNT this can take a long time and run out of memory.
5749 lt_cv_sys_max_cmd_len=8192;
5750 ;;
5751
5752 amigaos*)
5753 # On AmigaOS with pdksh, this test takes hours, literally.
5754 # So we just punt and use a minimum line length of 8192.
5755 lt_cv_sys_max_cmd_len=8192;
5756 ;;
5757
5758 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5759 # This has been around since 386BSD, at least. Likely further.
5760 if test -x /sbin/sysctl; then
5761 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5762 elif test -x /usr/sbin/sysctl; then
5763 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5764 else
5765 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5766 fi
5767 # And add a safety zone
5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5770 ;;
5771
5772 interix*)
5773 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5774 lt_cv_sys_max_cmd_len=196608
5775 ;;
5776
5777 osf*)
5778 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5779 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5780 # nice to cause kernel panics so lets avoid the loop below.
5781 # First set a reasonable default.
5782 lt_cv_sys_max_cmd_len=16384
5783 #
5784 if test -x /sbin/sysconfig; then
5785 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5786 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5787 esac
5788 fi
5789 ;;
5790 sco3.2v5*)
5791 lt_cv_sys_max_cmd_len=102400
5792 ;;
5793 sysv5* | sco5v6* | sysv4.2uw2*)
5794 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5795 if test -n "$kargmax"; then
5796 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5797 else
5798 lt_cv_sys_max_cmd_len=32768
5799 fi
5800 ;;
5801 *)
5802 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5803 if test -n "$lt_cv_sys_max_cmd_len"; then
5804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5806 else
5807 # Make teststring a little bigger before we do anything with it.
5808 # a 1K string should be a reasonable start.
5809 for i in 1 2 3 4 5 6 7 8 ; do
5810 teststring=$teststring$teststring
5811 done
5812 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5813 # If test is not a shell built-in, we'll probably end up computing a
5814 # maximum length that is only half of the actual maximum length, but
5815 # we can't tell.
5816 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5817 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5818 test $i != 17 # 1/2 MB should be enough
5819 do
5820 i=`expr $i + 1`
5821 teststring=$teststring$teststring
5822 done
5823 # Only check the string length outside the loop.
5824 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5825 teststring=
5826 # Add a significant safety factor because C++ compilers can tack on
5827 # massive amounts of additional arguments before passing them to the
5828 # linker. It appears as though 1/2 is a usable value.
5829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5830 fi
5831 ;;
5832 esac
5833
5834 fi
5835
5836 if test -n $lt_cv_sys_max_cmd_len ; then
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5838 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5839 else
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5841 $as_echo "none" >&6; }
5842 fi
5843 max_cmd_len=$lt_cv_sys_max_cmd_len
5844
5845
5846
5847
5848
5849
5850 : ${CP="cp -f"}
5851 : ${MV="mv -f"}
5852 : ${RM="rm -f"}
5853
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5855 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5856 # Try some XSI features
5857 xsi_shell=no
5858 ( _lt_dummy="a/b/c"
5859 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5860 = c,a/b,, \
5861 && eval 'test $(( 1 + 1 )) -eq 2 \
5862 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5863 && xsi_shell=yes
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5865 $as_echo "$xsi_shell" >&6; }
5866
5867
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5869 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5870 lt_shell_append=no
5871 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5872 >/dev/null 2>&1 \
5873 && lt_shell_append=yes
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5875 $as_echo "$lt_shell_append" >&6; }
5876
5877
5878 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5879 lt_unset=unset
5880 else
5881 lt_unset=false
5882 fi
5883
5884
5885
5886
5887
5888 # test EBCDIC or ASCII
5889 case `echo X|tr X '\101'` in
5890 A) # ASCII based system
5891 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5892 lt_SP2NL='tr \040 \012'
5893 lt_NL2SP='tr \015\012 \040\040'
5894 ;;
5895 *) # EBCDIC based system
5896 lt_SP2NL='tr \100 \n'
5897 lt_NL2SP='tr \r\n \100\100'
5898 ;;
5899 esac
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5910 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5911 if ${lt_cv_ld_reload_flag+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 lt_cv_ld_reload_flag='-r'
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5917 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5918 reload_flag=$lt_cv_ld_reload_flag
5919 case $reload_flag in
5920 "" | " "*) ;;
5921 *) reload_flag=" $reload_flag" ;;
5922 esac
5923 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5924 case $host_os in
5925 darwin*)
5926 if test "$GCC" = yes; then
5927 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5928 else
5929 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5930 fi
5931 ;;
5932 esac
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942 if test -n "$ac_tool_prefix"; then
5943 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5944 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_OBJDUMP+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$OBJDUMP"; then
5951 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964 done
5965 done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 OBJDUMP=$ac_cv_prog_OBJDUMP
5971 if test -n "$OBJDUMP"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5973 $as_echo "$OBJDUMP" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978
5979
5980 fi
5981 if test -z "$ac_cv_prog_OBJDUMP"; then
5982 ac_ct_OBJDUMP=$OBJDUMP
5983 # Extract the first word of "objdump", so it can be a program name with args.
5984 set dummy objdump; ac_word=$2
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5986 $as_echo_n "checking for $ac_word... " >&6; }
5987 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5988 $as_echo_n "(cached) " >&6
5989 else
5990 if test -n "$ac_ct_OBJDUMP"; then
5991 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5992 else
5993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5994 for as_dir in $PATH
5995 do
5996 IFS=$as_save_IFS
5997 test -z "$as_dir" && as_dir=.
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6000 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6002 break 2
6003 fi
6004 done
6005 done
6006 IFS=$as_save_IFS
6007
6008 fi
6009 fi
6010 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6011 if test -n "$ac_ct_OBJDUMP"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6013 $as_echo "$ac_ct_OBJDUMP" >&6; }
6014 else
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018
6019 if test "x$ac_ct_OBJDUMP" = x; then
6020 OBJDUMP="false"
6021 else
6022 case $cross_compiling:$ac_tool_warned in
6023 yes:)
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6026 ac_tool_warned=yes ;;
6027 esac
6028 OBJDUMP=$ac_ct_OBJDUMP
6029 fi
6030 else
6031 OBJDUMP="$ac_cv_prog_OBJDUMP"
6032 fi
6033
6034 test -z "$OBJDUMP" && OBJDUMP=objdump
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6045 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6046 if ${lt_cv_deplibs_check_method+:} false; then :
6047 $as_echo_n "(cached) " >&6
6048 else
6049 lt_cv_file_magic_cmd='$MAGIC_CMD'
6050 lt_cv_file_magic_test_file=
6051 lt_cv_deplibs_check_method='unknown'
6052 # Need to set the preceding variable on all platforms that support
6053 # interlibrary dependencies.
6054 # 'none' -- dependencies not supported.
6055 # `unknown' -- same as none, but documents that we really don't know.
6056 # 'pass_all' -- all dependencies passed with no checks.
6057 # 'test_compile' -- check by making test program.
6058 # 'file_magic [[regex]]' -- check by looking for files in library path
6059 # which responds to the $file_magic_cmd with a given extended regex.
6060 # If you have `file' or equivalent on your system and you're not sure
6061 # whether `pass_all' will *always* work, you probably want this one.
6062
6063 case $host_os in
6064 aix[4-9]*)
6065 lt_cv_deplibs_check_method=pass_all
6066 ;;
6067
6068 beos*)
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071
6072 bsdi[45]*)
6073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6074 lt_cv_file_magic_cmd='/usr/bin/file -L'
6075 lt_cv_file_magic_test_file=/shlib/libc.so
6076 ;;
6077
6078 cygwin*)
6079 # func_win32_libid is a shell function defined in ltmain.sh
6080 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6081 lt_cv_file_magic_cmd='func_win32_libid'
6082 ;;
6083
6084 mingw* | pw32*)
6085 # Base MSYS/MinGW do not provide the 'file' command needed by
6086 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6087 # unless we find 'file', for example because we are cross-compiling.
6088 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6089 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6090 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6091 lt_cv_file_magic_cmd='func_win32_libid'
6092 else
6093 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6094 lt_cv_file_magic_cmd='$OBJDUMP -f'
6095 fi
6096 ;;
6097
6098 cegcc*)
6099 # use the weaker test based on 'objdump'. See mingw*.
6100 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6101 lt_cv_file_magic_cmd='$OBJDUMP -f'
6102 ;;
6103
6104 darwin* | rhapsody*)
6105 lt_cv_deplibs_check_method=pass_all
6106 ;;
6107
6108 freebsd* | dragonfly*)
6109 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6110 case $host_cpu in
6111 i*86 )
6112 # Not sure whether the presence of OpenBSD here was a mistake.
6113 # Let's accept both of them until this is cleared up.
6114 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6115 lt_cv_file_magic_cmd=/usr/bin/file
6116 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6117 ;;
6118 esac
6119 else
6120 lt_cv_deplibs_check_method=pass_all
6121 fi
6122 ;;
6123
6124 gnu*)
6125 lt_cv_deplibs_check_method=pass_all
6126 ;;
6127
6128 haiku*)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131
6132 hpux10.20* | hpux11*)
6133 lt_cv_file_magic_cmd=/usr/bin/file
6134 case $host_cpu in
6135 ia64*)
6136 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6137 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6138 ;;
6139 hppa*64*)
6140 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]'
6141 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6142 ;;
6143 *)
6144 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6145 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6146 ;;
6147 esac
6148 ;;
6149
6150 interix[3-9]*)
6151 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6153 ;;
6154
6155 irix5* | irix6* | nonstopux*)
6156 case $LD in
6157 *-32|*"-32 ") libmagic=32-bit;;
6158 *-n32|*"-n32 ") libmagic=N32;;
6159 *-64|*"-64 ") libmagic=64-bit;;
6160 *) libmagic=never-match;;
6161 esac
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164
6165 # This must be Linux ELF.
6166 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6167 lt_cv_deplibs_check_method=pass_all
6168 ;;
6169
6170 netbsd*)
6171 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6173 else
6174 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6175 fi
6176 ;;
6177
6178 newos6*)
6179 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6180 lt_cv_file_magic_cmd=/usr/bin/file
6181 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6182 ;;
6183
6184 *nto* | *qnx*)
6185 lt_cv_deplibs_check_method=pass_all
6186 ;;
6187
6188 openbsd*)
6189 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6191 else
6192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6193 fi
6194 ;;
6195
6196 osf3* | osf4* | osf5*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200 rdos*)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
6203
6204 solaris*)
6205 lt_cv_deplibs_check_method=pass_all
6206 ;;
6207
6208 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6209 lt_cv_deplibs_check_method=pass_all
6210 ;;
6211
6212 sysv4 | sysv4.3*)
6213 case $host_vendor in
6214 motorola)
6215 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]'
6216 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6217 ;;
6218 ncr)
6219 lt_cv_deplibs_check_method=pass_all
6220 ;;
6221 sequent)
6222 lt_cv_file_magic_cmd='/bin/file'
6223 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6224 ;;
6225 sni)
6226 lt_cv_file_magic_cmd='/bin/file'
6227 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6228 lt_cv_file_magic_test_file=/lib/libc.so
6229 ;;
6230 siemens)
6231 lt_cv_deplibs_check_method=pass_all
6232 ;;
6233 pc)
6234 lt_cv_deplibs_check_method=pass_all
6235 ;;
6236 esac
6237 ;;
6238
6239 tpf*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242 esac
6243
6244 fi
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6246 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6247 file_magic_cmd=$lt_cv_file_magic_cmd
6248 deplibs_check_method=$lt_cv_deplibs_check_method
6249 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262 if test -n "$ac_tool_prefix"; then
6263 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6264 set dummy ${ac_tool_prefix}ar; ac_word=$2
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6266 $as_echo_n "checking for $ac_word... " >&6; }
6267 if ${ac_cv_prog_AR+:} false; then :
6268 $as_echo_n "(cached) " >&6
6269 else
6270 if test -n "$AR"; then
6271 ac_cv_prog_AR="$AR" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276 IFS=$as_save_IFS
6277 test -z "$as_dir" && as_dir=.
6278 for ac_exec_ext in '' $ac_executable_extensions; do
6279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280 ac_cv_prog_AR="${ac_tool_prefix}ar"
6281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 break 2
6283 fi
6284 done
6285 done
6286 IFS=$as_save_IFS
6287
6288 fi
6289 fi
6290 AR=$ac_cv_prog_AR
6291 if test -n "$AR"; then
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6293 $as_echo "$AR" >&6; }
6294 else
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6296 $as_echo "no" >&6; }
6297 fi
6298
6299
6300 fi
6301 if test -z "$ac_cv_prog_AR"; then
6302 ac_ct_AR=$AR
6303 # Extract the first word of "ar", so it can be a program name with args.
6304 set dummy ar; ac_word=$2
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306 $as_echo_n "checking for $ac_word... " >&6; }
6307 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 if test -n "$ac_ct_AR"; then
6311 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6312 else
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316 IFS=$as_save_IFS
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320 ac_cv_prog_ac_ct_AR="ar"
6321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322 break 2
6323 fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328 fi
6329 fi
6330 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6331 if test -n "$ac_ct_AR"; then
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6333 $as_echo "$ac_ct_AR" >&6; }
6334 else
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336 $as_echo "no" >&6; }
6337 fi
6338
6339 if test "x$ac_ct_AR" = x; then
6340 AR="false"
6341 else
6342 case $cross_compiling:$ac_tool_warned in
6343 yes:)
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6346 ac_tool_warned=yes ;;
6347 esac
6348 AR=$ac_ct_AR
6349 fi
6350 else
6351 AR="$ac_cv_prog_AR"
6352 fi
6353
6354 test -z "$AR" && AR=ar
6355 test -z "$AR_FLAGS" && AR_FLAGS=cru
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367 if test -n "$ac_tool_prefix"; then
6368 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6369 set dummy ${ac_tool_prefix}strip; ac_word=$2
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371 $as_echo_n "checking for $ac_word... " >&6; }
6372 if ${ac_cv_prog_STRIP+:} false; then :
6373 $as_echo_n "(cached) " >&6
6374 else
6375 if test -n "$STRIP"; then
6376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6377 else
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
6384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389 done
6390 done
6391 IFS=$as_save_IFS
6392
6393 fi
6394 fi
6395 STRIP=$ac_cv_prog_STRIP
6396 if test -n "$STRIP"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6398 $as_echo "$STRIP" >&6; }
6399 else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401 $as_echo "no" >&6; }
6402 fi
6403
6404
6405 fi
6406 if test -z "$ac_cv_prog_STRIP"; then
6407 ac_ct_STRIP=$STRIP
6408 # Extract the first word of "strip", so it can be a program name with args.
6409 set dummy strip; ac_word=$2
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6411 $as_echo_n "checking for $ac_word... " >&6; }
6412 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6413 $as_echo_n "(cached) " >&6
6414 else
6415 if test -n "$ac_ct_STRIP"; then
6416 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6417 else
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 for as_dir in $PATH
6420 do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6425 ac_cv_prog_ac_ct_STRIP="strip"
6426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6427 break 2
6428 fi
6429 done
6430 done
6431 IFS=$as_save_IFS
6432
6433 fi
6434 fi
6435 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6436 if test -n "$ac_ct_STRIP"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6438 $as_echo "$ac_ct_STRIP" >&6; }
6439 else
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441 $as_echo "no" >&6; }
6442 fi
6443
6444 if test "x$ac_ct_STRIP" = x; then
6445 STRIP=":"
6446 else
6447 case $cross_compiling:$ac_tool_warned in
6448 yes:)
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6451 ac_tool_warned=yes ;;
6452 esac
6453 STRIP=$ac_ct_STRIP
6454 fi
6455 else
6456 STRIP="$ac_cv_prog_STRIP"
6457 fi
6458
6459 test -z "$STRIP" && STRIP=:
6460
6461
6462
6463
6464
6465
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_RANLIB+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -n "$RANLIB"; then
6475 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6479 do
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6487 fi
6488 done
6489 done
6490 IFS=$as_save_IFS
6491
6492 fi
6493 fi
6494 RANLIB=$ac_cv_prog_RANLIB
6495 if test -n "$RANLIB"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6497 $as_echo "$RANLIB" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6501 fi
6502
6503
6504 fi
6505 if test -z "$ac_cv_prog_RANLIB"; then
6506 ac_ct_RANLIB=$RANLIB
6507 # Extract the first word of "ranlib", so it can be a program name with args.
6508 set dummy ranlib; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 if test -n "$ac_ct_RANLIB"; then
6515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_ac_ct_RANLIB="ranlib"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6527 fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532 fi
6533 fi
6534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6535 if test -n "$ac_ct_RANLIB"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6537 $as_echo "$ac_ct_RANLIB" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543 if test "x$ac_ct_RANLIB" = x; then
6544 RANLIB=":"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 RANLIB=$ac_ct_RANLIB
6553 fi
6554 else
6555 RANLIB="$ac_cv_prog_RANLIB"
6556 fi
6557
6558 test -z "$RANLIB" && RANLIB=:
6559
6560
6561
6562
6563
6564
6565 # Determine commands to create old-style static archives.
6566 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6567 old_postinstall_cmds='chmod 644 $oldlib'
6568 old_postuninstall_cmds=
6569
6570 if test -n "$RANLIB"; then
6571 case $host_os in
6572 openbsd*)
6573 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6574 ;;
6575 *)
6576 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6577 ;;
6578 esac
6579 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6580 fi
6581
6582 case $host_os in
6583 darwin*)
6584 lock_old_archive_extraction=yes ;;
6585 *)
6586 lock_old_archive_extraction=no ;;
6587 esac
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627 # If no C compiler was specified, use CC.
6628 LTCC=${LTCC-"$CC"}
6629
6630 # If no C compiler flags were specified, use CFLAGS.
6631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6632
6633 # Allow CC to be a program name with arguments.
6634 compiler=$CC
6635
6636
6637 # Check for command to grab the raw symbol name followed by C symbol from nm.
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6639 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6640 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6641 $as_echo_n "(cached) " >&6
6642 else
6643
6644 # These are sane defaults that work on at least a few old systems.
6645 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6646
6647 # Character class describing NM global symbol codes.
6648 symcode='[BCDEGRST]'
6649
6650 # Regexp to match symbols that can be accessed directly from C.
6651 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6652
6653 # Define system-specific variables.
6654 case $host_os in
6655 aix*)
6656 symcode='[BCDT]'
6657 ;;
6658 cygwin* | mingw* | pw32* | cegcc*)
6659 symcode='[ABCDGISTW]'
6660 ;;
6661 hpux*)
6662 if test "$host_cpu" = ia64; then
6663 symcode='[ABCDEGRST]'
6664 fi
6665 ;;
6666 irix* | nonstopux*)
6667 symcode='[BCDEGRST]'
6668 ;;
6669 osf*)
6670 symcode='[BCDEGQRST]'
6671 ;;
6672 solaris*)
6673 symcode='[BDRT]'
6674 ;;
6675 sco3.2v5*)
6676 symcode='[DT]'
6677 ;;
6678 sysv4.2uw2*)
6679 symcode='[DT]'
6680 ;;
6681 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6682 symcode='[ABDT]'
6683 ;;
6684 sysv4)
6685 symcode='[DFNSTU]'
6686 ;;
6687 esac
6688
6689 # If we're using GNU nm, then use its standard symbol codes.
6690 case `$NM -V 2>&1` in
6691 *GNU* | *'with BFD'*)
6692 symcode='[ABCDGIRSTW]' ;;
6693 esac
6694
6695 # Transform an extracted symbol line into a proper C declaration.
6696 # Some systems (esp. on ia64) link data and code symbols differently,
6697 # so use this general approach.
6698 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6699
6700 # Transform an extracted symbol line into symbol name and symbol address
6701 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6702 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'"
6703
6704 # Handle CRLF in mingw tool chain
6705 opt_cr=
6706 case $build_os in
6707 mingw*)
6708 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6709 ;;
6710 esac
6711
6712 # Try without a prefix underscore, then with it.
6713 for ac_symprfx in "" "_"; do
6714
6715 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6716 symxfrm="\\1 $ac_symprfx\\2 \\2"
6717
6718 # Write the raw and C identifiers.
6719 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6720 # Fake it for dumpbin and say T for any non-static function
6721 # and D for any global variable.
6722 # Also find C++ and __fastcall symbols from MSVC++,
6723 # which start with @ or ?.
6724 lt_cv_sys_global_symbol_pipe="$AWK '"\
6725 " {last_section=section; section=\$ 3};"\
6726 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6727 " \$ 0!~/External *\|/{next};"\
6728 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6729 " {if(hide[section]) next};"\
6730 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6731 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6732 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6733 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6734 " ' prfx=^$ac_symprfx"
6735 else
6736 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6737 fi
6738
6739 # Check to see that the pipe works correctly.
6740 pipe_works=no
6741
6742 rm -f conftest*
6743 cat > conftest.$ac_ext <<_LT_EOF
6744 #ifdef __cplusplus
6745 extern "C" {
6746 #endif
6747 char nm_test_var;
6748 void nm_test_func(void);
6749 void nm_test_func(void){}
6750 #ifdef __cplusplus
6751 }
6752 #endif
6753 int main(){nm_test_var='a';nm_test_func();return(0);}
6754 _LT_EOF
6755
6756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6757 (eval $ac_compile) 2>&5
6758 ac_status=$?
6759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6760 test $ac_status = 0; }; then
6761 # Now try to grab the symbols.
6762 nlist=conftest.nm
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6764 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; } && test -s "$nlist"; then
6768 # Try sorting and uniquifying the output.
6769 if sort "$nlist" | uniq > "$nlist"T; then
6770 mv -f "$nlist"T "$nlist"
6771 else
6772 rm -f "$nlist"T
6773 fi
6774
6775 # Make sure that we snagged all the symbols we need.
6776 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6777 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6778 cat <<_LT_EOF > conftest.$ac_ext
6779 #ifdef __cplusplus
6780 extern "C" {
6781 #endif
6782
6783 _LT_EOF
6784 # Now generate the symbol file.
6785 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6786
6787 cat <<_LT_EOF >> conftest.$ac_ext
6788
6789 /* The mapping between symbol names and symbols. */
6790 const struct {
6791 const char *name;
6792 void *address;
6793 }
6794 lt__PROGRAM__LTX_preloaded_symbols[] =
6795 {
6796 { "@PROGRAM@", (void *) 0 },
6797 _LT_EOF
6798 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6799 cat <<\_LT_EOF >> conftest.$ac_ext
6800 {0, (void *) 0}
6801 };
6802
6803 /* This works around a problem in FreeBSD linker */
6804 #ifdef FREEBSD_WORKAROUND
6805 static const void *lt_preloaded_setup() {
6806 return lt__PROGRAM__LTX_preloaded_symbols;
6807 }
6808 #endif
6809
6810 #ifdef __cplusplus
6811 }
6812 #endif
6813 _LT_EOF
6814 # Now try linking the two files.
6815 mv conftest.$ac_objext conftstm.$ac_objext
6816 lt_save_LIBS="$LIBS"
6817 lt_save_CFLAGS="$CFLAGS"
6818 LIBS="conftstm.$ac_objext"
6819 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6821 (eval $ac_link) 2>&5
6822 ac_status=$?
6823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6824 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6825 pipe_works=yes
6826 fi
6827 LIBS="$lt_save_LIBS"
6828 CFLAGS="$lt_save_CFLAGS"
6829 else
6830 echo "cannot find nm_test_func in $nlist" >&5
6831 fi
6832 else
6833 echo "cannot find nm_test_var in $nlist" >&5
6834 fi
6835 else
6836 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6837 fi
6838 else
6839 echo "$progname: failed program was:" >&5
6840 cat conftest.$ac_ext >&5
6841 fi
6842 rm -rf conftest* conftst*
6843
6844 # Do not use the global_symbol_pipe unless it works.
6845 if test "$pipe_works" = yes; then
6846 break
6847 else
6848 lt_cv_sys_global_symbol_pipe=
6849 fi
6850 done
6851
6852 fi
6853
6854 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6855 lt_cv_sys_global_symbol_to_cdecl=
6856 fi
6857 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6859 $as_echo "failed" >&6; }
6860 else
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6862 $as_echo "ok" >&6; }
6863 fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887 # Check whether --enable-libtool-lock was given.
6888 if test "${enable_libtool_lock+set}" = set; then :
6889 enableval=$enable_libtool_lock;
6890 fi
6891
6892 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6893
6894 # Some flags need to be propagated to the compiler or linker for good
6895 # libtool support.
6896 case $host in
6897 ia64-*-hpux*)
6898 # Find out which ABI we are using.
6899 echo 'int i;' > conftest.$ac_ext
6900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6901 (eval $ac_compile) 2>&5
6902 ac_status=$?
6903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904 test $ac_status = 0; }; then
6905 case `/usr/bin/file conftest.$ac_objext` in
6906 *ELF-32*)
6907 HPUX_IA64_MODE="32"
6908 ;;
6909 *ELF-64*)
6910 HPUX_IA64_MODE="64"
6911 ;;
6912 esac
6913 fi
6914 rm -rf conftest*
6915 ;;
6916 *-*-irix6*)
6917 # Find out which ABI we are using.
6918 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6920 (eval $ac_compile) 2>&5
6921 ac_status=$?
6922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6923 test $ac_status = 0; }; then
6924 if test "$lt_cv_prog_gnu_ld" = yes; then
6925 case `/usr/bin/file conftest.$ac_objext` in
6926 *32-bit*)
6927 LD="${LD-ld} -melf32bsmip"
6928 ;;
6929 *N32*)
6930 LD="${LD-ld} -melf32bmipn32"
6931 ;;
6932 *64-bit*)
6933 LD="${LD-ld} -melf64bmip"
6934 ;;
6935 esac
6936 else
6937 case `/usr/bin/file conftest.$ac_objext` in
6938 *32-bit*)
6939 LD="${LD-ld} -32"
6940 ;;
6941 *N32*)
6942 LD="${LD-ld} -n32"
6943 ;;
6944 *64-bit*)
6945 LD="${LD-ld} -64"
6946 ;;
6947 esac
6948 fi
6949 fi
6950 rm -rf conftest*
6951 ;;
6952
6953 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6954 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6955 # Find out which ABI we are using.
6956 echo 'int i;' > conftest.$ac_ext
6957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6958 (eval $ac_compile) 2>&5
6959 ac_status=$?
6960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961 test $ac_status = 0; }; then
6962 case `/usr/bin/file conftest.o` in
6963 *32-bit*)
6964 case $host in
6965 x86_64-*kfreebsd*-gnu)
6966 LD="${LD-ld} -m elf_i386_fbsd"
6967 ;;
6968 x86_64-*linux*)
6969 case `/usr/bin/file conftest.o` in
6970 *x86-64*)
6971 LD="${LD-ld} -m elf32_x86_64"
6972 ;;
6973 *)
6974 LD="${LD-ld} -m elf_i386"
6975 ;;
6976 esac
6977 ;;
6978 powerpc64le-*linux*)
6979 LD="${LD-ld} -m elf32lppclinux"
6980 ;;
6981 powerpc64-*linux*)
6982 LD="${LD-ld} -m elf32ppclinux"
6983 ;;
6984 s390x-*linux*)
6985 LD="${LD-ld} -m elf_s390"
6986 ;;
6987 sparc64-*linux*)
6988 LD="${LD-ld} -m elf32_sparc"
6989 ;;
6990 esac
6991 ;;
6992 *64-bit*)
6993 case $host in
6994 x86_64-*kfreebsd*-gnu)
6995 LD="${LD-ld} -m elf_x86_64_fbsd"
6996 ;;
6997 x86_64-*linux*)
6998 LD="${LD-ld} -m elf_x86_64"
6999 ;;
7000 powerpcle-*linux*)
7001 LD="${LD-ld} -m elf64lppc"
7002 ;;
7003 powerpc-*linux*)
7004 LD="${LD-ld} -m elf64ppc"
7005 ;;
7006 s390*-*linux*|s390*-*tpf*)
7007 LD="${LD-ld} -m elf64_s390"
7008 ;;
7009 sparc*-*linux*)
7010 LD="${LD-ld} -m elf64_sparc"
7011 ;;
7012 esac
7013 ;;
7014 esac
7015 fi
7016 rm -rf conftest*
7017 ;;
7018
7019 *-*-sco3.2v5*)
7020 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7021 SAVE_CFLAGS="$CFLAGS"
7022 CFLAGS="$CFLAGS -belf"
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7024 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7025 if ${lt_cv_cc_needs_belf+:} false; then :
7026 $as_echo_n "(cached) " >&6
7027 else
7028 ac_ext=c
7029 ac_cpp='$CPP $CPPFLAGS'
7030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7033
7034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035 /* end confdefs.h. */
7036
7037 int
7038 main ()
7039 {
7040
7041 ;
7042 return 0;
7043 }
7044 _ACEOF
7045 if ac_fn_c_try_link "$LINENO"; then :
7046 lt_cv_cc_needs_belf=yes
7047 else
7048 lt_cv_cc_needs_belf=no
7049 fi
7050 rm -f core conftest.err conftest.$ac_objext \
7051 conftest$ac_exeext conftest.$ac_ext
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
7058 fi
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7060 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7061 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7062 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7063 CFLAGS="$SAVE_CFLAGS"
7064 fi
7065 ;;
7066 sparc*-*solaris*)
7067 # Find out which ABI we are using.
7068 echo 'int i;' > conftest.$ac_ext
7069 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7070 (eval $ac_compile) 2>&5
7071 ac_status=$?
7072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7073 test $ac_status = 0; }; then
7074 case `/usr/bin/file conftest.o` in
7075 *64-bit*)
7076 case $lt_cv_prog_gnu_ld in
7077 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7078 *)
7079 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7080 LD="${LD-ld} -64"
7081 fi
7082 ;;
7083 esac
7084 ;;
7085 esac
7086 fi
7087 rm -rf conftest*
7088 ;;
7089 esac
7090
7091 need_locks="$enable_libtool_lock"
7092
7093
7094 case $host_os in
7095 rhapsody* | darwin*)
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$DSYMUTIL"; then
7105 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7125 if test -n "$DSYMUTIL"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7127 $as_echo "$DSYMUTIL" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_DSYMUTIL"; then
7136 ac_ct_DSYMUTIL=$DSYMUTIL
7137 # Extract the first word of "dsymutil", so it can be a program name with args.
7138 set dummy dsymutil; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_DSYMUTIL"; then
7145 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7165 if test -n "$ac_ct_DSYMUTIL"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7167 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173 if test "x$ac_ct_DSYMUTIL" = x; then
7174 DSYMUTIL=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 DSYMUTIL=$ac_ct_DSYMUTIL
7183 fi
7184 else
7185 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7186 fi
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_NMEDIT+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$NMEDIT"; then
7197 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 NMEDIT=$ac_cv_prog_NMEDIT
7217 if test -n "$NMEDIT"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7219 $as_echo "$NMEDIT" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_NMEDIT"; then
7228 ac_ct_NMEDIT=$NMEDIT
7229 # Extract the first word of "nmedit", so it can be a program name with args.
7230 set dummy nmedit; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_NMEDIT"; then
7237 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7257 if test -n "$ac_ct_NMEDIT"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7259 $as_echo "$ac_ct_NMEDIT" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265 if test "x$ac_ct_NMEDIT" = x; then
7266 NMEDIT=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 NMEDIT=$ac_ct_NMEDIT
7275 fi
7276 else
7277 NMEDIT="$ac_cv_prog_NMEDIT"
7278 fi
7279
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_LIPO+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$LIPO"; then
7289 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 LIPO=$ac_cv_prog_LIPO
7309 if test -n "$LIPO"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7311 $as_echo "$LIPO" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317
7318 fi
7319 if test -z "$ac_cv_prog_LIPO"; then
7320 ac_ct_LIPO=$LIPO
7321 # Extract the first word of "lipo", so it can be a program name with args.
7322 set dummy lipo; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$ac_ct_LIPO"; then
7329 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_ac_ct_LIPO="lipo"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7349 if test -n "$ac_ct_LIPO"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7351 $as_echo "$ac_ct_LIPO" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357 if test "x$ac_ct_LIPO" = x; then
7358 LIPO=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366 LIPO=$ac_ct_LIPO
7367 fi
7368 else
7369 LIPO="$ac_cv_prog_LIPO"
7370 fi
7371
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}otool; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_OTOOL+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$OTOOL"; then
7381 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 OTOOL=$ac_cv_prog_OTOOL
7401 if test -n "$OTOOL"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7403 $as_echo "$OTOOL" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409
7410 fi
7411 if test -z "$ac_cv_prog_OTOOL"; then
7412 ac_ct_OTOOL=$OTOOL
7413 # Extract the first word of "otool", so it can be a program name with args.
7414 set dummy otool; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$ac_ct_OTOOL"; then
7421 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_ac_ct_OTOOL="otool"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7441 if test -n "$ac_ct_OTOOL"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7443 $as_echo "$ac_ct_OTOOL" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449 if test "x$ac_ct_OTOOL" = x; then
7450 OTOOL=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458 OTOOL=$ac_ct_OTOOL
7459 fi
7460 else
7461 OTOOL="$ac_cv_prog_OTOOL"
7462 fi
7463
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_OTOOL64+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$OTOOL64"; then
7473 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 OTOOL64=$ac_cv_prog_OTOOL64
7493 if test -n "$OTOOL64"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7495 $as_echo "$OTOOL64" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501
7502 fi
7503 if test -z "$ac_cv_prog_OTOOL64"; then
7504 ac_ct_OTOOL64=$OTOOL64
7505 # Extract the first word of "otool64", so it can be a program name with args.
7506 set dummy otool64; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 if test -n "$ac_ct_OTOOL64"; then
7513 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_OTOOL64="otool64"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7533 if test -n "$ac_ct_OTOOL64"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7535 $as_echo "$ac_ct_OTOOL64" >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540
7541 if test "x$ac_ct_OTOOL64" = x; then
7542 OTOOL64=":"
7543 else
7544 case $cross_compiling:$ac_tool_warned in
7545 yes:)
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548 ac_tool_warned=yes ;;
7549 esac
7550 OTOOL64=$ac_ct_OTOOL64
7551 fi
7552 else
7553 OTOOL64="$ac_cv_prog_OTOOL64"
7554 fi
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
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7583 $as_echo_n "checking for -single_module linker flag... " >&6; }
7584 if ${lt_cv_apple_cc_single_mod+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 lt_cv_apple_cc_single_mod=no
7588 if test -z "${LT_MULTI_MODULE}"; then
7589 # By default we will add the -single_module flag. You can override
7590 # by either setting the environment variable LT_MULTI_MODULE
7591 # non-empty at configure time, or by adding -multi_module to the
7592 # link flags.
7593 rm -rf libconftest.dylib*
7594 echo "int foo(void){return 1;}" > conftest.c
7595 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7596 -dynamiclib -Wl,-single_module conftest.c" >&5
7597 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7598 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7599 _lt_result=$?
7600 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7601 lt_cv_apple_cc_single_mod=yes
7602 else
7603 cat conftest.err >&5
7604 fi
7605 rm -rf libconftest.dylib*
7606 rm -f conftest.*
7607 fi
7608 fi
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7610 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7612 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7613 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 lt_cv_ld_exported_symbols_list=no
7617 save_LDFLAGS=$LDFLAGS
7618 echo "_main" > conftest.sym
7619 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622
7623 int
7624 main ()
7625 {
7626
7627 ;
7628 return 0;
7629 }
7630 _ACEOF
7631 if ac_fn_c_try_link "$LINENO"; then :
7632 lt_cv_ld_exported_symbols_list=yes
7633 else
7634 lt_cv_ld_exported_symbols_list=no
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext \
7637 conftest$ac_exeext conftest.$ac_ext
7638 LDFLAGS="$save_LDFLAGS"
7639
7640 fi
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7642 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7644 $as_echo_n "checking for -force_load linker flag... " >&6; }
7645 if ${lt_cv_ld_force_load+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 lt_cv_ld_force_load=no
7649 cat > conftest.c << _LT_EOF
7650 int forced_loaded() { return 2;}
7651 _LT_EOF
7652 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7653 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7654 echo "$AR cru libconftest.a conftest.o" >&5
7655 $AR cru libconftest.a conftest.o 2>&5
7656 cat > conftest.c << _LT_EOF
7657 int main() { return 0;}
7658 _LT_EOF
7659 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7660 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7661 _lt_result=$?
7662 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7663 lt_cv_ld_force_load=yes
7664 else
7665 cat conftest.err >&5
7666 fi
7667 rm -f conftest.err libconftest.a conftest conftest.c
7668 rm -rf conftest.dSYM
7669
7670 fi
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7672 $as_echo "$lt_cv_ld_force_load" >&6; }
7673 case $host_os in
7674 rhapsody* | darwin1.[012])
7675 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7676 darwin1.*)
7677 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7678 darwin*) # darwin 5.x on
7679 # if running on 10.5 or later, the deployment target defaults
7680 # to the OS version, if on x86, and 10.4, the deployment
7681 # target defaults to 10.4. Don't you love it?
7682 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7683 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7684 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7685 10.[012][,.]*)
7686 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7687 10.*)
7688 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7689 esac
7690 ;;
7691 esac
7692 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7693 _lt_dar_single_mod='$single_module'
7694 fi
7695 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7696 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7697 else
7698 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7699 fi
7700 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7701 _lt_dsymutil='~$DSYMUTIL $lib || :'
7702 else
7703 _lt_dsymutil=
7704 fi
7705 ;;
7706 esac
7707
7708 ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7714 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7715 # On Suns, sometimes $CPP names a directory.
7716 if test -n "$CPP" && test -d "$CPP"; then
7717 CPP=
7718 fi
7719 if test -z "$CPP"; then
7720 if ${ac_cv_prog_CPP+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 # Double quotes because CPP needs to be expanded
7724 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7725 do
7726 ac_preproc_ok=false
7727 for ac_c_preproc_warn_flag in '' yes
7728 do
7729 # Use a header file that comes with gcc, so configuring glibc
7730 # with a fresh cross-compiler works.
7731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7732 # <limits.h> exists even on freestanding compilers.
7733 # On the NeXT, cc -E runs the code through the compiler's parser,
7734 # not just through cpp. "Syntax error" is here to catch this case.
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #ifdef __STDC__
7738 # include <limits.h>
7739 #else
7740 # include <assert.h>
7741 #endif
7742 Syntax error
7743 _ACEOF
7744 if ac_fn_c_try_cpp "$LINENO"; then :
7745
7746 else
7747 # Broken: fails on valid input.
7748 continue
7749 fi
7750 rm -f conftest.err conftest.i conftest.$ac_ext
7751
7752 # OK, works on sane cases. Now check whether nonexistent headers
7753 # can be detected and how.
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 #include <ac_nonexistent.h>
7757 _ACEOF
7758 if ac_fn_c_try_cpp "$LINENO"; then :
7759 # Broken: success on invalid input.
7760 continue
7761 else
7762 # Passes both tests.
7763 ac_preproc_ok=:
7764 break
7765 fi
7766 rm -f conftest.err conftest.i conftest.$ac_ext
7767
7768 done
7769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7770 rm -f conftest.i conftest.err conftest.$ac_ext
7771 if $ac_preproc_ok; then :
7772 break
7773 fi
7774
7775 done
7776 ac_cv_prog_CPP=$CPP
7777
7778 fi
7779 CPP=$ac_cv_prog_CPP
7780 else
7781 ac_cv_prog_CPP=$CPP
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7784 $as_echo "$CPP" >&6; }
7785 ac_preproc_ok=false
7786 for ac_c_preproc_warn_flag in '' yes
7787 do
7788 # Use a header file that comes with gcc, so configuring glibc
7789 # with a fresh cross-compiler works.
7790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7791 # <limits.h> exists even on freestanding compilers.
7792 # On the NeXT, cc -E runs the code through the compiler's parser,
7793 # not just through cpp. "Syntax error" is here to catch this case.
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7796 #ifdef __STDC__
7797 # include <limits.h>
7798 #else
7799 # include <assert.h>
7800 #endif
7801 Syntax error
7802 _ACEOF
7803 if ac_fn_c_try_cpp "$LINENO"; then :
7804
7805 else
7806 # Broken: fails on valid input.
7807 continue
7808 fi
7809 rm -f conftest.err conftest.i conftest.$ac_ext
7810
7811 # OK, works on sane cases. Now check whether nonexistent headers
7812 # can be detected and how.
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 #include <ac_nonexistent.h>
7816 _ACEOF
7817 if ac_fn_c_try_cpp "$LINENO"; then :
7818 # Broken: success on invalid input.
7819 continue
7820 else
7821 # Passes both tests.
7822 ac_preproc_ok=:
7823 break
7824 fi
7825 rm -f conftest.err conftest.i conftest.$ac_ext
7826
7827 done
7828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7829 rm -f conftest.i conftest.err conftest.$ac_ext
7830 if $ac_preproc_ok; then :
7831
7832 else
7833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7835 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7836 See \`config.log' for more details" "$LINENO" 5; }
7837 fi
7838
7839 ac_ext=c
7840 ac_cpp='$CPP $CPPFLAGS'
7841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7844
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7847 $as_echo_n "checking for ANSI C header files... " >&6; }
7848 if ${ac_cv_header_stdc+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #include <stdlib.h>
7854 #include <stdarg.h>
7855 #include <string.h>
7856 #include <float.h>
7857
7858 int
7859 main ()
7860 {
7861
7862 ;
7863 return 0;
7864 }
7865 _ACEOF
7866 if ac_fn_c_try_compile "$LINENO"; then :
7867 ac_cv_header_stdc=yes
7868 else
7869 ac_cv_header_stdc=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7872
7873 if test $ac_cv_header_stdc = yes; then
7874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 #include <string.h>
7878
7879 _ACEOF
7880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7881 $EGREP "memchr" >/dev/null 2>&1; then :
7882
7883 else
7884 ac_cv_header_stdc=no
7885 fi
7886 rm -f conftest*
7887
7888 fi
7889
7890 if test $ac_cv_header_stdc = yes; then
7891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 #include <stdlib.h>
7895
7896 _ACEOF
7897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7898 $EGREP "free" >/dev/null 2>&1; then :
7899
7900 else
7901 ac_cv_header_stdc=no
7902 fi
7903 rm -f conftest*
7904
7905 fi
7906
7907 if test $ac_cv_header_stdc = yes; then
7908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7909 if test "$cross_compiling" = yes; then :
7910 :
7911 else
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include <ctype.h>
7915 #include <stdlib.h>
7916 #if ((' ' & 0x0FF) == 0x020)
7917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7919 #else
7920 # define ISLOWER(c) \
7921 (('a' <= (c) && (c) <= 'i') \
7922 || ('j' <= (c) && (c) <= 'r') \
7923 || ('s' <= (c) && (c) <= 'z'))
7924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7925 #endif
7926
7927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7928 int
7929 main ()
7930 {
7931 int i;
7932 for (i = 0; i < 256; i++)
7933 if (XOR (islower (i), ISLOWER (i))
7934 || toupper (i) != TOUPPER (i))
7935 return 2;
7936 return 0;
7937 }
7938 _ACEOF
7939 if ac_fn_c_try_run "$LINENO"; then :
7940
7941 else
7942 ac_cv_header_stdc=no
7943 fi
7944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7945 conftest.$ac_objext conftest.beam conftest.$ac_ext
7946 fi
7947
7948 fi
7949 fi
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7951 $as_echo "$ac_cv_header_stdc" >&6; }
7952 if test $ac_cv_header_stdc = yes; then
7953
7954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7955
7956 fi
7957
7958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7960 inttypes.h stdint.h unistd.h
7961 do :
7962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7964 "
7965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7966 cat >>confdefs.h <<_ACEOF
7967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7968 _ACEOF
7969
7970 fi
7971
7972 done
7973
7974
7975 for ac_header in dlfcn.h
7976 do :
7977 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7978 "
7979 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7980 cat >>confdefs.h <<_ACEOF
7981 #define HAVE_DLFCN_H 1
7982 _ACEOF
7983
7984 fi
7985
7986 done
7987
7988 if test -n "$ac_tool_prefix"; then
7989 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_prog_GOC+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 if test -n "$GOC"; then
7997 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8009 fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 GOC=$ac_cv_prog_GOC
8017 if test -n "$GOC"; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
8019 $as_echo "$GOC" >&6; }
8020 else
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8022 $as_echo "no" >&6; }
8023 fi
8024
8025
8026 fi
8027 if test -z "$ac_cv_prog_GOC"; then
8028 ac_ct_GOC=$GOC
8029 # Extract the first word of "gccgo", so it can be a program name with args.
8030 set dummy gccgo; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 if test -n "$ac_ct_GOC"; then
8037 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042 IFS=$as_save_IFS
8043 test -z "$as_dir" && as_dir=.
8044 for ac_exec_ext in '' $ac_executable_extensions; do
8045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8046 ac_cv_prog_ac_ct_GOC="gccgo"
8047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8048 break 2
8049 fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
8057 if test -n "$ac_ct_GOC"; then
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
8059 $as_echo "$ac_ct_GOC" >&6; }
8060 else
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064
8065 if test "x$ac_ct_GOC" = x; then
8066 GOC=""
8067 else
8068 case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8072 ac_tool_warned=yes ;;
8073 esac
8074 GOC=$ac_ct_GOC
8075 fi
8076 else
8077 GOC="$ac_cv_prog_GOC"
8078 fi
8079
8080
8081
8082
8083
8084
8085 # Set options
8086
8087
8088
8089
8090 enable_win32_dll=no
8091
8092
8093 # Check whether --enable-shared was given.
8094 if test "${enable_shared+set}" = set; then :
8095 enableval=$enable_shared; p=${PACKAGE-default}
8096 case $enableval in
8097 yes) enable_shared=yes ;;
8098 no) enable_shared=no ;;
8099 *)
8100 enable_shared=no
8101 # Look at the argument we got. We use all the common list separators.
8102 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8103 for pkg in $enableval; do
8104 IFS="$lt_save_ifs"
8105 if test "X$pkg" = "X$p"; then
8106 enable_shared=yes
8107 fi
8108 done
8109 IFS="$lt_save_ifs"
8110 ;;
8111 esac
8112 else
8113 enable_shared=yes
8114 fi
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124 # Check whether --enable-static was given.
8125 if test "${enable_static+set}" = set; then :
8126 enableval=$enable_static; p=${PACKAGE-default}
8127 case $enableval in
8128 yes) enable_static=yes ;;
8129 no) enable_static=no ;;
8130 *)
8131 enable_static=no
8132 # Look at the argument we got. We use all the common list separators.
8133 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134 for pkg in $enableval; do
8135 IFS="$lt_save_ifs"
8136 if test "X$pkg" = "X$p"; then
8137 enable_static=yes
8138 fi
8139 done
8140 IFS="$lt_save_ifs"
8141 ;;
8142 esac
8143 else
8144 enable_static=yes
8145 fi
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156 # Check whether --with-pic was given.
8157 if test "${with_pic+set}" = set; then :
8158 withval=$with_pic; pic_mode="$withval"
8159 else
8160 pic_mode=default
8161 fi
8162
8163
8164 test -z "$pic_mode" && pic_mode=default
8165
8166
8167
8168
8169
8170
8171
8172 # Check whether --enable-fast-install was given.
8173 if test "${enable_fast_install+set}" = set; then :
8174 enableval=$enable_fast_install; p=${PACKAGE-default}
8175 case $enableval in
8176 yes) enable_fast_install=yes ;;
8177 no) enable_fast_install=no ;;
8178 *)
8179 enable_fast_install=no
8180 # Look at the argument we got. We use all the common list separators.
8181 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8182 for pkg in $enableval; do
8183 IFS="$lt_save_ifs"
8184 if test "X$pkg" = "X$p"; then
8185 enable_fast_install=yes
8186 fi
8187 done
8188 IFS="$lt_save_ifs"
8189 ;;
8190 esac
8191 else
8192 enable_fast_install=yes
8193 fi
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205 # This can be used to rebuild libtool when needed
8206 LIBTOOL_DEPS="$ltmain"
8207
8208 # Always use our own libtool.
8209 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236 test -z "$LN_S" && LN_S="ln -s"
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251 if test -n "${ZSH_VERSION+set}" ; then
8252 setopt NO_GLOB_SUBST
8253 fi
8254
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8256 $as_echo_n "checking for objdir... " >&6; }
8257 if ${lt_cv_objdir+:} false; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 rm -f .libs 2>/dev/null
8261 mkdir .libs 2>/dev/null
8262 if test -d .libs; then
8263 lt_cv_objdir=.libs
8264 else
8265 # MS-DOS does not allow filenames that begin with a dot.
8266 lt_cv_objdir=_libs
8267 fi
8268 rmdir .libs 2>/dev/null
8269 fi
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8271 $as_echo "$lt_cv_objdir" >&6; }
8272 objdir=$lt_cv_objdir
8273
8274
8275
8276
8277
8278 cat >>confdefs.h <<_ACEOF
8279 #define LT_OBJDIR "$lt_cv_objdir/"
8280 _ACEOF
8281
8282
8283
8284
8285 case $host_os in
8286 aix3*)
8287 # AIX sometimes has problems with the GCC collect2 program. For some
8288 # reason, if we set the COLLECT_NAMES environment variable, the problems
8289 # vanish in a puff of smoke.
8290 if test "X${COLLECT_NAMES+set}" != Xset; then
8291 COLLECT_NAMES=
8292 export COLLECT_NAMES
8293 fi
8294 ;;
8295 esac
8296
8297 # Global variables:
8298 ofile=libtool
8299 can_build_shared=yes
8300
8301 # All known linkers require a `.a' archive for static linking (except MSVC,
8302 # which needs '.lib').
8303 libext=a
8304
8305 with_gnu_ld="$lt_cv_prog_gnu_ld"
8306
8307 old_CC="$CC"
8308 old_CFLAGS="$CFLAGS"
8309
8310 # Set sane defaults for various variables
8311 test -z "$CC" && CC=cc
8312 test -z "$LTCC" && LTCC=$CC
8313 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8314 test -z "$LD" && LD=ld
8315 test -z "$ac_objext" && ac_objext=o
8316
8317 for cc_temp in $compiler""; do
8318 case $cc_temp in
8319 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8320 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8321 \-*) ;;
8322 *) break;;
8323 esac
8324 done
8325 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8326
8327
8328 # Only perform the check for file, if the check method requires it
8329 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8330 case $deplibs_check_method in
8331 file_magic*)
8332 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8334 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8335 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 case $MAGIC_CMD in
8339 [\\/*] | ?:[\\/]*)
8340 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8341 ;;
8342 *)
8343 lt_save_MAGIC_CMD="$MAGIC_CMD"
8344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8345 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8346 for ac_dir in $ac_dummy; do
8347 IFS="$lt_save_ifs"
8348 test -z "$ac_dir" && ac_dir=.
8349 if test -f $ac_dir/${ac_tool_prefix}file; then
8350 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8351 if test -n "$file_magic_test_file"; then
8352 case $deplibs_check_method in
8353 "file_magic "*)
8354 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8356 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8357 $EGREP "$file_magic_regex" > /dev/null; then
8358 :
8359 else
8360 cat <<_LT_EOF 1>&2
8361
8362 *** Warning: the command libtool uses to detect shared libraries,
8363 *** $file_magic_cmd, produces output that libtool cannot recognize.
8364 *** The result is that libtool may fail to recognize shared libraries
8365 *** as such. This will affect the creation of libtool libraries that
8366 *** depend on shared libraries, but programs linked with such libtool
8367 *** libraries will work regardless of this problem. Nevertheless, you
8368 *** may want to report the problem to your system manager and/or to
8369 *** bug-libtool@gnu.org
8370
8371 _LT_EOF
8372 fi ;;
8373 esac
8374 fi
8375 break
8376 fi
8377 done
8378 IFS="$lt_save_ifs"
8379 MAGIC_CMD="$lt_save_MAGIC_CMD"
8380 ;;
8381 esac
8382 fi
8383
8384 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8385 if test -n "$MAGIC_CMD"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8387 $as_echo "$MAGIC_CMD" >&6; }
8388 else
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392
8393
8394
8395
8396
8397 if test -z "$lt_cv_path_MAGIC_CMD"; then
8398 if test -n "$ac_tool_prefix"; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8400 $as_echo_n "checking for file... " >&6; }
8401 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8402 $as_echo_n "(cached) " >&6
8403 else
8404 case $MAGIC_CMD in
8405 [\\/*] | ?:[\\/]*)
8406 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8407 ;;
8408 *)
8409 lt_save_MAGIC_CMD="$MAGIC_CMD"
8410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8411 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8412 for ac_dir in $ac_dummy; do
8413 IFS="$lt_save_ifs"
8414 test -z "$ac_dir" && ac_dir=.
8415 if test -f $ac_dir/file; then
8416 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8417 if test -n "$file_magic_test_file"; then
8418 case $deplibs_check_method in
8419 "file_magic "*)
8420 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8423 $EGREP "$file_magic_regex" > /dev/null; then
8424 :
8425 else
8426 cat <<_LT_EOF 1>&2
8427
8428 *** Warning: the command libtool uses to detect shared libraries,
8429 *** $file_magic_cmd, produces output that libtool cannot recognize.
8430 *** The result is that libtool may fail to recognize shared libraries
8431 *** as such. This will affect the creation of libtool libraries that
8432 *** depend on shared libraries, but programs linked with such libtool
8433 *** libraries will work regardless of this problem. Nevertheless, you
8434 *** may want to report the problem to your system manager and/or to
8435 *** bug-libtool@gnu.org
8436
8437 _LT_EOF
8438 fi ;;
8439 esac
8440 fi
8441 break
8442 fi
8443 done
8444 IFS="$lt_save_ifs"
8445 MAGIC_CMD="$lt_save_MAGIC_CMD"
8446 ;;
8447 esac
8448 fi
8449
8450 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8451 if test -n "$MAGIC_CMD"; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8453 $as_echo "$MAGIC_CMD" >&6; }
8454 else
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8456 $as_echo "no" >&6; }
8457 fi
8458
8459
8460 else
8461 MAGIC_CMD=:
8462 fi
8463 fi
8464
8465 fi
8466 ;;
8467 esac
8468
8469 # Use C for the default configuration in the libtool script
8470
8471 lt_save_CC="$CC"
8472 ac_ext=c
8473 ac_cpp='$CPP $CPPFLAGS'
8474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8477
8478
8479 # Source file extension for C test sources.
8480 ac_ext=c
8481
8482 # Object file extension for compiled C test sources.
8483 objext=o
8484 objext=$objext
8485
8486 # Code to be used in simple compile tests
8487 lt_simple_compile_test_code="int some_variable = 0;"
8488
8489 # Code to be used in simple link tests
8490 lt_simple_link_test_code='int main(){return(0);}'
8491
8492
8493
8494
8495
8496
8497
8498 # If no C compiler was specified, use CC.
8499 LTCC=${LTCC-"$CC"}
8500
8501 # If no C compiler flags were specified, use CFLAGS.
8502 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8503
8504 # Allow CC to be a program name with arguments.
8505 compiler=$CC
8506
8507 # Save the default compiler, since it gets overwritten when the other
8508 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8509 compiler_DEFAULT=$CC
8510
8511 # save warnings/boilerplate of simple test code
8512 ac_outfile=conftest.$ac_objext
8513 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8514 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8515 _lt_compiler_boilerplate=`cat conftest.err`
8516 $RM conftest*
8517
8518 ac_outfile=conftest.$ac_objext
8519 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8520 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8521 _lt_linker_boilerplate=`cat conftest.err`
8522 $RM -r conftest*
8523
8524
8525 ## CAVEAT EMPTOR:
8526 ## There is no encapsulation within the following macros, do not change
8527 ## the running order or otherwise move them around unless you know exactly
8528 ## what you are doing...
8529 if test -n "$compiler"; then
8530
8531 lt_prog_compiler_no_builtin_flag=
8532
8533 if test "$GCC" = yes; then
8534 case $cc_basename in
8535 nvcc*)
8536 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8537 *)
8538 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8539 esac
8540
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8542 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8543 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8544 $as_echo_n "(cached) " >&6
8545 else
8546 lt_cv_prog_compiler_rtti_exceptions=no
8547 ac_outfile=conftest.$ac_objext
8548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549 lt_compiler_flag="-fno-rtti -fno-exceptions"
8550 # Insert the option either (1) after the last *FLAGS variable, or
8551 # (2) before a word containing "conftest.", or (3) at the end.
8552 # Note that $ac_compile itself does not contain backslashes and begins
8553 # with a dollar sign (not a hyphen), so the echo should work correctly.
8554 # The option is referenced via a variable to avoid confusing sed.
8555 lt_compile=`echo "$ac_compile" | $SED \
8556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558 -e 's:$: $lt_compiler_flag:'`
8559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560 (eval "$lt_compile" 2>conftest.err)
8561 ac_status=$?
8562 cat conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 if (exit $ac_status) && test -s "$ac_outfile"; then
8565 # The compiler can only warn and ignore the option if not recognized
8566 # So say no if there are warnings other than the usual output.
8567 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8569 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8570 lt_cv_prog_compiler_rtti_exceptions=yes
8571 fi
8572 fi
8573 $RM conftest*
8574
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8577 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8578
8579 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8580 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8581 else
8582 :
8583 fi
8584
8585 fi
8586
8587
8588
8589
8590
8591
8592 lt_prog_compiler_wl=
8593 lt_prog_compiler_pic=
8594 lt_prog_compiler_static=
8595
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8597 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8598
8599 if test "$GCC" = yes; then
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_static='-static'
8602
8603 case $host_os in
8604 aix*)
8605 # All AIX code is PIC.
8606 if test "$host_cpu" = ia64; then
8607 # AIX 5 now supports IA64 processor
8608 lt_prog_compiler_static='-Bstatic'
8609 fi
8610 lt_prog_compiler_pic='-fPIC'
8611 ;;
8612
8613 amigaos*)
8614 case $host_cpu in
8615 powerpc)
8616 # see comment about AmigaOS4 .so support
8617 lt_prog_compiler_pic='-fPIC'
8618 ;;
8619 m68k)
8620 # FIXME: we need at least 68020 code to build shared libraries, but
8621 # adding the `-m68020' flag to GCC prevents building anything better,
8622 # like `-m68040'.
8623 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8624 ;;
8625 esac
8626 ;;
8627
8628 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8629 # PIC is the default for these OSes.
8630 ;;
8631
8632 mingw* | cygwin* | pw32* | os2* | cegcc*)
8633 # This hack is so that the source file can tell whether it is being
8634 # built for inclusion in a dll (and should export symbols for example).
8635 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8636 # (--disable-auto-import) libraries
8637 lt_prog_compiler_pic='-DDLL_EXPORT'
8638 ;;
8639
8640 darwin* | rhapsody*)
8641 # PIC is the default on this platform
8642 # Common symbols not allowed in MH_DYLIB files
8643 lt_prog_compiler_pic='-fno-common'
8644 ;;
8645
8646 haiku*)
8647 # PIC is the default for Haiku.
8648 # The "-static" flag exists, but is broken.
8649 lt_prog_compiler_static=
8650 ;;
8651
8652 hpux*)
8653 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8654 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8655 # sets the default TLS model and affects inlining.
8656 case $host_cpu in
8657 hppa*64*)
8658 # +Z the default
8659 ;;
8660 *)
8661 lt_prog_compiler_pic='-fPIC'
8662 ;;
8663 esac
8664 ;;
8665
8666 interix[3-9]*)
8667 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8668 # Instead, we relocate shared libraries at runtime.
8669 ;;
8670
8671 msdosdjgpp*)
8672 # Just because we use GCC doesn't mean we suddenly get shared libraries
8673 # on systems that don't support them.
8674 lt_prog_compiler_can_build_shared=no
8675 enable_shared=no
8676 ;;
8677
8678 *nto* | *qnx*)
8679 # QNX uses GNU C++, but need to define -shared option too, otherwise
8680 # it will coredump.
8681 lt_prog_compiler_pic='-fPIC -shared'
8682 ;;
8683
8684 sysv4*MP*)
8685 if test -d /usr/nec; then
8686 lt_prog_compiler_pic=-Kconform_pic
8687 fi
8688 ;;
8689
8690 *)
8691 lt_prog_compiler_pic='-fPIC'
8692 ;;
8693 esac
8694
8695 case $cc_basename in
8696 nvcc*) # Cuda Compiler Driver 2.2
8697 lt_prog_compiler_wl='-Xlinker '
8698 lt_prog_compiler_pic='-Xcompiler -fPIC'
8699 ;;
8700 esac
8701 else
8702 # PORTME Check for flag to pass linker flags through the system compiler.
8703 case $host_os in
8704 aix*)
8705 lt_prog_compiler_wl='-Wl,'
8706 if test "$host_cpu" = ia64; then
8707 # AIX 5 now supports IA64 processor
8708 lt_prog_compiler_static='-Bstatic'
8709 else
8710 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8711 fi
8712 ;;
8713
8714 mingw* | cygwin* | pw32* | os2* | cegcc*)
8715 # This hack is so that the source file can tell whether it is being
8716 # built for inclusion in a dll (and should export symbols for example).
8717 lt_prog_compiler_pic='-DDLL_EXPORT'
8718 ;;
8719
8720 hpux9* | hpux10* | hpux11*)
8721 lt_prog_compiler_wl='-Wl,'
8722 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8723 # not for PA HP-UX.
8724 case $host_cpu in
8725 hppa*64*|ia64*)
8726 # +Z the default
8727 ;;
8728 *)
8729 lt_prog_compiler_pic='+Z'
8730 ;;
8731 esac
8732 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8733 lt_prog_compiler_static='${wl}-a ${wl}archive'
8734 ;;
8735
8736 irix5* | irix6* | nonstopux*)
8737 lt_prog_compiler_wl='-Wl,'
8738 # PIC (with -KPIC) is the default.
8739 lt_prog_compiler_static='-non_shared'
8740 ;;
8741
8742 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8743 case $cc_basename in
8744 # old Intel for x86_64 which still supported -KPIC.
8745 ecc*)
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-static'
8749 ;;
8750 # icc used to be incompatible with GCC.
8751 # ICC 10 doesn't accept -KPIC any more.
8752 icc* | ifort*)
8753 lt_prog_compiler_wl='-Wl,'
8754 lt_prog_compiler_pic='-fPIC'
8755 lt_prog_compiler_static='-static'
8756 ;;
8757 # Lahey Fortran 8.1.
8758 lf95*)
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_pic='--shared'
8761 lt_prog_compiler_static='--static'
8762 ;;
8763 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8764 # Portland Group compilers (*not* the Pentium gcc compiler,
8765 # which looks to be a dead project)
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_pic='-fpic'
8768 lt_prog_compiler_static='-Bstatic'
8769 ;;
8770 ccc*)
8771 lt_prog_compiler_wl='-Wl,'
8772 # All Alpha code is PIC.
8773 lt_prog_compiler_static='-non_shared'
8774 ;;
8775 xl* | bgxl* | bgf* | mpixl*)
8776 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_pic='-qpic'
8779 lt_prog_compiler_static='-qstaticlink'
8780 ;;
8781 *)
8782 case `$CC -V 2>&1 | sed 5q` in
8783 *Sun\ F* | *Sun*Fortran*)
8784 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8787 lt_prog_compiler_wl=''
8788 ;;
8789 *Sun\ C*)
8790 # Sun C 5.9
8791 lt_prog_compiler_pic='-KPIC'
8792 lt_prog_compiler_static='-Bstatic'
8793 lt_prog_compiler_wl='-Wl,'
8794 ;;
8795 esac
8796 ;;
8797 esac
8798 ;;
8799
8800 newsos6)
8801 lt_prog_compiler_pic='-KPIC'
8802 lt_prog_compiler_static='-Bstatic'
8803 ;;
8804
8805 *nto* | *qnx*)
8806 # QNX uses GNU C++, but need to define -shared option too, otherwise
8807 # it will coredump.
8808 lt_prog_compiler_pic='-fPIC -shared'
8809 ;;
8810
8811 osf3* | osf4* | osf5*)
8812 lt_prog_compiler_wl='-Wl,'
8813 # All OSF/1 code is PIC.
8814 lt_prog_compiler_static='-non_shared'
8815 ;;
8816
8817 rdos*)
8818 lt_prog_compiler_static='-non_shared'
8819 ;;
8820
8821 solaris*)
8822 lt_prog_compiler_pic='-KPIC'
8823 lt_prog_compiler_static='-Bstatic'
8824 case $cc_basename in
8825 f77* | f90* | f95*)
8826 lt_prog_compiler_wl='-Qoption ld ';;
8827 *)
8828 lt_prog_compiler_wl='-Wl,';;
8829 esac
8830 ;;
8831
8832 sunos4*)
8833 lt_prog_compiler_wl='-Qoption ld '
8834 lt_prog_compiler_pic='-PIC'
8835 lt_prog_compiler_static='-Bstatic'
8836 ;;
8837
8838 sysv4 | sysv4.2uw2* | sysv4.3*)
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_pic='-KPIC'
8841 lt_prog_compiler_static='-Bstatic'
8842 ;;
8843
8844 sysv4*MP*)
8845 if test -d /usr/nec ;then
8846 lt_prog_compiler_pic='-Kconform_pic'
8847 lt_prog_compiler_static='-Bstatic'
8848 fi
8849 ;;
8850
8851 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8852 lt_prog_compiler_wl='-Wl,'
8853 lt_prog_compiler_pic='-KPIC'
8854 lt_prog_compiler_static='-Bstatic'
8855 ;;
8856
8857 unicos*)
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_can_build_shared=no
8860 ;;
8861
8862 uts4*)
8863 lt_prog_compiler_pic='-pic'
8864 lt_prog_compiler_static='-Bstatic'
8865 ;;
8866
8867 *)
8868 lt_prog_compiler_can_build_shared=no
8869 ;;
8870 esac
8871 fi
8872
8873 case $host_os in
8874 # For platforms which do not support PIC, -DPIC is meaningless:
8875 *djgpp*)
8876 lt_prog_compiler_pic=
8877 ;;
8878 *)
8879 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8880 ;;
8881 esac
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8883 $as_echo "$lt_prog_compiler_pic" >&6; }
8884
8885
8886
8887
8888
8889
8890 #
8891 # Check to make sure the PIC flag actually works.
8892 #
8893 if test -n "$lt_prog_compiler_pic"; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8895 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8896 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 lt_cv_prog_compiler_pic_works=no
8900 ac_outfile=conftest.$ac_objext
8901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8902 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8903 # Insert the option either (1) after the last *FLAGS variable, or
8904 # (2) before a word containing "conftest.", or (3) at the end.
8905 # Note that $ac_compile itself does not contain backslashes and begins
8906 # with a dollar sign (not a hyphen), so the echo should work correctly.
8907 # The option is referenced via a variable to avoid confusing sed.
8908 lt_compile=`echo "$ac_compile" | $SED \
8909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8911 -e 's:$: $lt_compiler_flag:'`
8912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8913 (eval "$lt_compile" 2>conftest.err)
8914 ac_status=$?
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 if (exit $ac_status) && test -s "$ac_outfile"; then
8918 # The compiler can only warn and ignore the option if not recognized
8919 # So say no if there are warnings other than the usual output.
8920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8923 lt_cv_prog_compiler_pic_works=yes
8924 fi
8925 fi
8926 $RM conftest*
8927
8928 fi
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8930 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8931
8932 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8933 case $lt_prog_compiler_pic in
8934 "" | " "*) ;;
8935 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8936 esac
8937 else
8938 lt_prog_compiler_pic=
8939 lt_prog_compiler_can_build_shared=no
8940 fi
8941
8942 fi
8943
8944
8945
8946
8947
8948
8949 #
8950 # Check to make sure the static flag actually works.
8951 #
8952 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8954 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8955 if ${lt_cv_prog_compiler_static_works+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 lt_cv_prog_compiler_static_works=no
8959 save_LDFLAGS="$LDFLAGS"
8960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8963 # The linker can only warn and ignore the option if not recognized
8964 # So say no if there are warnings
8965 if test -s conftest.err; then
8966 # Append any errors to the config.log.
8967 cat conftest.err 1>&5
8968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8970 if diff conftest.exp conftest.er2 >/dev/null; then
8971 lt_cv_prog_compiler_static_works=yes
8972 fi
8973 else
8974 lt_cv_prog_compiler_static_works=yes
8975 fi
8976 fi
8977 $RM -r conftest*
8978 LDFLAGS="$save_LDFLAGS"
8979
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8982 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8983
8984 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8985 :
8986 else
8987 lt_prog_compiler_static=
8988 fi
8989
8990
8991
8992
8993
8994
8995
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8997 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8998 if ${lt_cv_prog_compiler_c_o+:} false; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 lt_cv_prog_compiler_c_o=no
9002 $RM -r conftest 2>/dev/null
9003 mkdir conftest
9004 cd conftest
9005 mkdir out
9006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007
9008 lt_compiler_flag="-o out/conftest2.$ac_objext"
9009 # Insert the option either (1) after the last *FLAGS variable, or
9010 # (2) before a word containing "conftest.", or (3) at the end.
9011 # Note that $ac_compile itself does not contain backslashes and begins
9012 # with a dollar sign (not a hyphen), so the echo should work correctly.
9013 lt_compile=`echo "$ac_compile" | $SED \
9014 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9015 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9016 -e 's:$: $lt_compiler_flag:'`
9017 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9018 (eval "$lt_compile" 2>out/conftest.err)
9019 ac_status=$?
9020 cat out/conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9023 then
9024 # The compiler can only warn and ignore the option if not recognized
9025 # So say no if there are warnings
9026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9027 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9028 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9029 lt_cv_prog_compiler_c_o=yes
9030 fi
9031 fi
9032 chmod u+w . 2>&5
9033 $RM conftest*
9034 # SGI C++ compiler will create directory out/ii_files/ for
9035 # template instantiation
9036 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9037 $RM out/* && rmdir out
9038 cd ..
9039 $RM -r conftest
9040 $RM conftest*
9041
9042 fi
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9044 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9045
9046
9047
9048
9049
9050
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9052 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9053 if ${lt_cv_prog_compiler_c_o+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 lt_cv_prog_compiler_c_o=no
9057 $RM -r conftest 2>/dev/null
9058 mkdir conftest
9059 cd conftest
9060 mkdir out
9061 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9062
9063 lt_compiler_flag="-o out/conftest2.$ac_objext"
9064 # Insert the option either (1) after the last *FLAGS variable, or
9065 # (2) before a word containing "conftest.", or (3) at the end.
9066 # Note that $ac_compile itself does not contain backslashes and begins
9067 # with a dollar sign (not a hyphen), so the echo should work correctly.
9068 lt_compile=`echo "$ac_compile" | $SED \
9069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9071 -e 's:$: $lt_compiler_flag:'`
9072 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9073 (eval "$lt_compile" 2>out/conftest.err)
9074 ac_status=$?
9075 cat out/conftest.err >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9078 then
9079 # The compiler can only warn and ignore the option if not recognized
9080 # So say no if there are warnings
9081 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9084 lt_cv_prog_compiler_c_o=yes
9085 fi
9086 fi
9087 chmod u+w . 2>&5
9088 $RM conftest*
9089 # SGI C++ compiler will create directory out/ii_files/ for
9090 # template instantiation
9091 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9092 $RM out/* && rmdir out
9093 cd ..
9094 $RM -r conftest
9095 $RM conftest*
9096
9097 fi
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9099 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9100
9101
9102
9103
9104 hard_links="nottested"
9105 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9106 # do not overwrite the value of need_locks provided by the user
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9108 $as_echo_n "checking if we can lock with hard links... " >&6; }
9109 hard_links=yes
9110 $RM conftest*
9111 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9112 touch conftest.a
9113 ln conftest.a conftest.b 2>&5 || hard_links=no
9114 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9116 $as_echo "$hard_links" >&6; }
9117 if test "$hard_links" = no; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9119 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9120 need_locks=warn
9121 fi
9122 else
9123 need_locks=no
9124 fi
9125
9126
9127
9128
9129
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9132 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9133
9134 runpath_var=
9135 allow_undefined_flag=
9136 always_export_symbols=no
9137 archive_cmds=
9138 archive_expsym_cmds=
9139 compiler_needs_object=no
9140 enable_shared_with_static_runtimes=no
9141 export_dynamic_flag_spec=
9142 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9143 hardcode_automatic=no
9144 hardcode_direct=no
9145 hardcode_direct_absolute=no
9146 hardcode_libdir_flag_spec=
9147 hardcode_libdir_flag_spec_ld=
9148 hardcode_libdir_separator=
9149 hardcode_minus_L=no
9150 hardcode_shlibpath_var=unsupported
9151 inherit_rpath=no
9152 link_all_deplibs=unknown
9153 module_cmds=
9154 module_expsym_cmds=
9155 old_archive_from_new_cmds=
9156 old_archive_from_expsyms_cmds=
9157 thread_safe_flag_spec=
9158 whole_archive_flag_spec=
9159 # include_expsyms should be a list of space-separated symbols to be *always*
9160 # included in the symbol list
9161 include_expsyms=
9162 # exclude_expsyms can be an extended regexp of symbols to exclude
9163 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9164 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9165 # as well as any symbol that contains `d'.
9166 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9167 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9168 # platforms (ab)use it in PIC code, but their linkers get confused if
9169 # the symbol is explicitly referenced. Since portable code cannot
9170 # rely on this symbol name, it's probably fine to never include it in
9171 # preloaded symbol tables.
9172 # Exclude shared library initialization/finalization symbols.
9173 extract_expsyms_cmds=
9174
9175 case $host_os in
9176 cygwin* | mingw* | pw32* | cegcc*)
9177 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9178 # When not using gcc, we currently assume that we are using
9179 # Microsoft Visual C++.
9180 if test "$GCC" != yes; then
9181 with_gnu_ld=no
9182 fi
9183 ;;
9184 interix*)
9185 # we just hope/assume this is gcc and not c89 (= MSVC++)
9186 with_gnu_ld=yes
9187 ;;
9188 openbsd*)
9189 with_gnu_ld=no
9190 ;;
9191 esac
9192
9193 ld_shlibs=yes
9194
9195 # On some targets, GNU ld is compatible enough with the native linker
9196 # that we're better off using the native interface for both.
9197 lt_use_gnu_ld_interface=no
9198 if test "$with_gnu_ld" = yes; then
9199 case $host_os in
9200 aix*)
9201 # The AIX port of GNU ld has always aspired to compatibility
9202 # with the native linker. However, as the warning in the GNU ld
9203 # block says, versions before 2.19.5* couldn't really create working
9204 # shared libraries, regardless of the interface used.
9205 case `$LD -v 2>&1` in
9206 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9207 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9208 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9209 *)
9210 lt_use_gnu_ld_interface=yes
9211 ;;
9212 esac
9213 ;;
9214 *)
9215 lt_use_gnu_ld_interface=yes
9216 ;;
9217 esac
9218 fi
9219
9220 if test "$lt_use_gnu_ld_interface" = yes; then
9221 # If archive_cmds runs LD, not CC, wlarc should be empty
9222 wlarc='${wl}'
9223
9224 # Set some defaults for GNU ld with shared library support. These
9225 # are reset later if shared libraries are not supported. Putting them
9226 # here allows them to be overridden if necessary.
9227 runpath_var=LD_RUN_PATH
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 export_dynamic_flag_spec='${wl}--export-dynamic'
9230 # ancient GNU ld didn't support --whole-archive et. al.
9231 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9232 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9233 else
9234 whole_archive_flag_spec=
9235 fi
9236 supports_anon_versioning=no
9237 case `$LD -v 2>&1` in
9238 *GNU\ gold*) supports_anon_versioning=yes ;;
9239 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9240 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9241 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9242 *\ 2.11.*) ;; # other 2.11 versions
9243 *) supports_anon_versioning=yes ;;
9244 esac
9245
9246 # See if GNU ld supports shared libraries.
9247 case $host_os in
9248 aix[3-9]*)
9249 # On AIX/PPC, the GNU linker is very broken
9250 if test "$host_cpu" != ia64; then
9251 ld_shlibs=no
9252 cat <<_LT_EOF 1>&2
9253
9254 *** Warning: the GNU linker, at least up to release 2.19, is reported
9255 *** to be unable to reliably create shared libraries on AIX.
9256 *** Therefore, libtool is disabling shared libraries support. If you
9257 *** really care for shared libraries, you may want to install binutils
9258 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9259 *** You will then need to restart the configuration process.
9260
9261 _LT_EOF
9262 fi
9263 ;;
9264
9265 amigaos*)
9266 case $host_cpu in
9267 powerpc)
9268 # see comment about AmigaOS4 .so support
9269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9270 archive_expsym_cmds=''
9271 ;;
9272 m68k)
9273 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)'
9274 hardcode_libdir_flag_spec='-L$libdir'
9275 hardcode_minus_L=yes
9276 ;;
9277 esac
9278 ;;
9279
9280 beos*)
9281 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9282 allow_undefined_flag=unsupported
9283 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9284 # support --undefined. This deserves some investigation. FIXME
9285 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290
9291 cygwin* | mingw* | pw32* | cegcc*)
9292 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9293 # as there is no search path for DLLs.
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 export_dynamic_flag_spec='${wl}--export-all-symbols'
9296 allow_undefined_flag=unsupported
9297 always_export_symbols=no
9298 enable_shared_with_static_runtimes=yes
9299 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9300
9301 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9303 # If the export-symbols file already is a .def file (1st line
9304 # is EXPORTS), use it as is; otherwise, prepend...
9305 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9306 cp $export_symbols $output_objdir/$soname.def;
9307 else
9308 echo EXPORTS > $output_objdir/$soname.def;
9309 cat $export_symbols >> $output_objdir/$soname.def;
9310 fi~
9311 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9312 else
9313 ld_shlibs=no
9314 fi
9315 ;;
9316
9317 haiku*)
9318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319 link_all_deplibs=yes
9320 ;;
9321
9322 interix[3-9]*)
9323 hardcode_direct=no
9324 hardcode_shlibpath_var=no
9325 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9326 export_dynamic_flag_spec='${wl}-E'
9327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9328 # Instead, shared libraries are loaded at an image base (0x10000000 by
9329 # default) and relocated if they conflict, which is a slow very memory
9330 # consuming and fragmenting process. To avoid this, we pick a random,
9331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9334 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'
9335 ;;
9336
9337 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9338 tmp_diet=no
9339 if test "$host_os" = linux-dietlibc; then
9340 case $cc_basename in
9341 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9342 esac
9343 fi
9344 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9345 && test "$tmp_diet" = no
9346 then
9347 tmp_addflag=
9348 tmp_sharedflag='-shared'
9349 case $cc_basename,$host_cpu in
9350 pgcc*) # Portland Group C compiler
9351 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'
9352 tmp_addflag=' $pic_flag'
9353 ;;
9354 pgf77* | pgf90* | pgf95* | pgfortran*)
9355 # Portland Group f77 and f90 compilers
9356 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'
9357 tmp_addflag=' $pic_flag -Mnomain' ;;
9358 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9359 tmp_addflag=' -i_dynamic' ;;
9360 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9361 tmp_addflag=' -i_dynamic -nofor_main' ;;
9362 ifc* | ifort*) # Intel Fortran compiler
9363 tmp_addflag=' -nofor_main' ;;
9364 lf95*) # Lahey Fortran 8.1
9365 whole_archive_flag_spec=
9366 tmp_sharedflag='--shared' ;;
9367 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9368 tmp_sharedflag='-qmkshrobj'
9369 tmp_addflag= ;;
9370 nvcc*) # Cuda Compiler Driver 2.2
9371 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'
9372 compiler_needs_object=yes
9373 ;;
9374 esac
9375 case `$CC -V 2>&1 | sed 5q` in
9376 *Sun\ C*) # Sun C 5.9
9377 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'
9378 compiler_needs_object=yes
9379 tmp_sharedflag='-G' ;;
9380 *Sun\ F*) # Sun Fortran 8.3
9381 tmp_sharedflag='-G' ;;
9382 esac
9383 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384
9385 if test "x$supports_anon_versioning" = xyes; then
9386 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9387 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9388 echo "local: *; };" >> $output_objdir/$libname.ver~
9389 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9390 fi
9391
9392 case $cc_basename in
9393 xlf* | bgf* | bgxlf* | mpixlf*)
9394 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9395 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9396 hardcode_libdir_flag_spec=
9397 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9398 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9399 if test "x$supports_anon_versioning" = xyes; then
9400 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9402 echo "local: *; };" >> $output_objdir/$libname.ver~
9403 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9404 fi
9405 ;;
9406 esac
9407 else
9408 ld_shlibs=no
9409 fi
9410 ;;
9411
9412 netbsd*)
9413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9415 wlarc=
9416 else
9417 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9419 fi
9420 ;;
9421
9422 solaris*)
9423 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9424 ld_shlibs=no
9425 cat <<_LT_EOF 1>&2
9426
9427 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9428 *** create shared libraries on Solaris systems. Therefore, libtool
9429 *** is disabling shared libraries support. We urge you to upgrade GNU
9430 *** binutils to release 2.9.1 or newer. Another option is to modify
9431 *** your PATH or compiler configuration so that the native linker is
9432 *** used, and then restart.
9433
9434 _LT_EOF
9435 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9436 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9437 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9438 else
9439 ld_shlibs=no
9440 fi
9441 ;;
9442
9443 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9444 case `$LD -v 2>&1` in
9445 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9446 ld_shlibs=no
9447 cat <<_LT_EOF 1>&2
9448
9449 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9450 *** reliably create shared libraries on SCO systems. Therefore, libtool
9451 *** is disabling shared libraries support. We urge you to upgrade GNU
9452 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9453 *** your PATH or compiler configuration so that the native linker is
9454 *** used, and then restart.
9455
9456 _LT_EOF
9457 ;;
9458 *)
9459 # For security reasons, it is highly recommended that you always
9460 # use absolute paths for naming shared libraries, and exclude the
9461 # DT_RUNPATH tag from executables and libraries. But doing so
9462 # requires that you compile everything twice, which is a pain.
9463 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9464 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9467 else
9468 ld_shlibs=no
9469 fi
9470 ;;
9471 esac
9472 ;;
9473
9474 sunos4*)
9475 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476 wlarc=
9477 hardcode_direct=yes
9478 hardcode_shlibpath_var=no
9479 ;;
9480
9481 *)
9482 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485 else
9486 ld_shlibs=no
9487 fi
9488 ;;
9489 esac
9490
9491 if test "$ld_shlibs" = no; then
9492 runpath_var=
9493 hardcode_libdir_flag_spec=
9494 export_dynamic_flag_spec=
9495 whole_archive_flag_spec=
9496 fi
9497 else
9498 # PORTME fill in a description of your system's linker (not GNU ld)
9499 case $host_os in
9500 aix3*)
9501 allow_undefined_flag=unsupported
9502 always_export_symbols=yes
9503 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'
9504 # Note: this linker hardcodes the directories in LIBPATH if there
9505 # are no directories specified by -L.
9506 hardcode_minus_L=yes
9507 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9508 # Neither direct hardcoding nor static linking is supported with a
9509 # broken collect2.
9510 hardcode_direct=unsupported
9511 fi
9512 ;;
9513
9514 aix[4-9]*)
9515 if test "$host_cpu" = ia64; then
9516 # On IA64, the linker does run time linking by default, so we don't
9517 # have to do anything special.
9518 aix_use_runtimelinking=no
9519 exp_sym_flag='-Bexport'
9520 no_entry_flag=""
9521 else
9522 # If we're using GNU nm, then we don't want the "-C" option.
9523 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9524 # Also, AIX nm treats weak defined symbols like other global
9525 # defined symbols, whereas GNU nm marks them as "W".
9526 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9527 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'
9528 else
9529 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'
9530 fi
9531 aix_use_runtimelinking=no
9532
9533 # Test if we are trying to use run time linking or normal
9534 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9535 # need to do runtime linking.
9536 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9537 for ld_flag in $LDFLAGS; do
9538 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9539 aix_use_runtimelinking=yes
9540 break
9541 fi
9542 done
9543 ;;
9544 esac
9545
9546 exp_sym_flag='-bexport'
9547 no_entry_flag='-bnoentry'
9548 fi
9549
9550 # When large executables or shared objects are built, AIX ld can
9551 # have problems creating the table of contents. If linking a library
9552 # or program results in "error TOC overflow" add -mminimal-toc to
9553 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9554 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9555
9556 archive_cmds=''
9557 hardcode_direct=yes
9558 hardcode_direct_absolute=yes
9559 hardcode_libdir_separator=':'
9560 link_all_deplibs=yes
9561 file_list_spec='${wl}-f,'
9562
9563 if test "$GCC" = yes; then
9564 case $host_os in aix4.[012]|aix4.[012].*)
9565 # We only want to do this on AIX 4.2 and lower, the check
9566 # below for broken collect2 doesn't work under 4.3+
9567 collect2name=`${CC} -print-prog-name=collect2`
9568 if test -f "$collect2name" &&
9569 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9570 then
9571 # We have reworked collect2
9572 :
9573 else
9574 # We have old collect2
9575 hardcode_direct=unsupported
9576 # It fails to find uninstalled libraries when the uninstalled
9577 # path is not listed in the libpath. Setting hardcode_minus_L
9578 # to unsupported forces relinking
9579 hardcode_minus_L=yes
9580 hardcode_libdir_flag_spec='-L$libdir'
9581 hardcode_libdir_separator=
9582 fi
9583 ;;
9584 esac
9585 shared_flag='-shared'
9586 if test "$aix_use_runtimelinking" = yes; then
9587 shared_flag="$shared_flag "'${wl}-G'
9588 fi
9589 else
9590 # not using gcc
9591 if test "$host_cpu" = ia64; then
9592 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9593 # chokes on -Wl,-G. The following line is correct:
9594 shared_flag='-G'
9595 else
9596 if test "$aix_use_runtimelinking" = yes; then
9597 shared_flag='${wl}-G'
9598 else
9599 shared_flag='${wl}-bM:SRE'
9600 fi
9601 fi
9602 fi
9603
9604 export_dynamic_flag_spec='${wl}-bexpall'
9605 # It seems that -bexpall does not export symbols beginning with
9606 # underscore (_), so it is better to generate a list of symbols to export.
9607 always_export_symbols=yes
9608 if test "$aix_use_runtimelinking" = yes; then
9609 # Warning - without using the other runtime loading flags (-brtl),
9610 # -berok will link without error, but may produce a broken library.
9611 allow_undefined_flag='-berok'
9612 # Determine the default libpath from the value encoded in an
9613 # empty executable.
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616
9617 int
9618 main ()
9619 {
9620
9621 ;
9622 return 0;
9623 }
9624 _ACEOF
9625 if ac_fn_c_try_link "$LINENO"; then :
9626
9627 lt_aix_libpath_sed='
9628 /Import File Strings/,/^$/ {
9629 /^0/ {
9630 s/^0 *\(.*\)$/\1/
9631 p
9632 }
9633 }'
9634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9635 # Check for a 64-bit object if we didn't find anything.
9636 if test -z "$aix_libpath"; then
9637 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9638 fi
9639 fi
9640 rm -f core conftest.err conftest.$ac_objext \
9641 conftest$ac_exeext conftest.$ac_ext
9642 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9643
9644 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9645 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"
9646 else
9647 if test "$host_cpu" = ia64; then
9648 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9649 allow_undefined_flag="-z nodefs"
9650 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"
9651 else
9652 # Determine the default libpath from the value encoded in an
9653 # empty executable.
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656
9657 int
9658 main ()
9659 {
9660
9661 ;
9662 return 0;
9663 }
9664 _ACEOF
9665 if ac_fn_c_try_link "$LINENO"; then :
9666
9667 lt_aix_libpath_sed='
9668 /Import File Strings/,/^$/ {
9669 /^0/ {
9670 s/^0 *\(.*\)$/\1/
9671 p
9672 }
9673 }'
9674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675 # Check for a 64-bit object if we didn't find anything.
9676 if test -z "$aix_libpath"; then
9677 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9678 fi
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9683
9684 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9685 # Warning - without using the other run time loading flags,
9686 # -berok will link without error, but may produce a broken library.
9687 no_undefined_flag=' ${wl}-bernotok'
9688 allow_undefined_flag=' ${wl}-berok'
9689 if test "$with_gnu_ld" = yes; then
9690 # We only use this code for GNU lds that support --whole-archive.
9691 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9692 else
9693 # Exported symbols can be pulled into shared objects from archives
9694 whole_archive_flag_spec='$convenience'
9695 fi
9696 archive_cmds_need_lc=yes
9697 # This is similar to how AIX traditionally builds its shared libraries.
9698 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'
9699 fi
9700 fi
9701 ;;
9702
9703 amigaos*)
9704 case $host_cpu in
9705 powerpc)
9706 # see comment about AmigaOS4 .so support
9707 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9708 archive_expsym_cmds=''
9709 ;;
9710 m68k)
9711 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)'
9712 hardcode_libdir_flag_spec='-L$libdir'
9713 hardcode_minus_L=yes
9714 ;;
9715 esac
9716 ;;
9717
9718 bsdi[45]*)
9719 export_dynamic_flag_spec=-rdynamic
9720 ;;
9721
9722 cygwin* | mingw* | pw32* | cegcc*)
9723 # When not using gcc, we currently assume that we are using
9724 # Microsoft Visual C++.
9725 # hardcode_libdir_flag_spec is actually meaningless, as there is
9726 # no search path for DLLs.
9727 hardcode_libdir_flag_spec=' '
9728 allow_undefined_flag=unsupported
9729 # Tell ltmain to make .lib files, not .a files.
9730 libext=lib
9731 # Tell ltmain to make .dll files, not .so files.
9732 shrext_cmds=".dll"
9733 # FIXME: Setting linknames here is a bad hack.
9734 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9735 # The linker will automatically build a .lib file if we build a DLL.
9736 old_archive_from_new_cmds='true'
9737 # FIXME: Should let the user specify the lib program.
9738 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9739 fix_srcfile_path='`cygpath -w "$srcfile"`'
9740 enable_shared_with_static_runtimes=yes
9741 ;;
9742
9743 darwin* | rhapsody*)
9744
9745
9746 archive_cmds_need_lc=no
9747 hardcode_direct=no
9748 hardcode_automatic=yes
9749 hardcode_shlibpath_var=unsupported
9750 if test "$lt_cv_ld_force_load" = "yes"; then
9751 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\"`'
9752 else
9753 whole_archive_flag_spec=''
9754 fi
9755 link_all_deplibs=yes
9756 allow_undefined_flag="$_lt_dar_allow_undefined"
9757 case $cc_basename in
9758 ifort*) _lt_dar_can_shared=yes ;;
9759 *) _lt_dar_can_shared=$GCC ;;
9760 esac
9761 if test "$_lt_dar_can_shared" = "yes"; then
9762 output_verbose_link_cmd=func_echo_all
9763 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9764 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9765 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}"
9766 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}"
9767
9768 else
9769 ld_shlibs=no
9770 fi
9771
9772 ;;
9773
9774 dgux*)
9775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9776 hardcode_libdir_flag_spec='-L$libdir'
9777 hardcode_shlibpath_var=no
9778 ;;
9779
9780 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9781 # support. Future versions do this automatically, but an explicit c++rt0.o
9782 # does not break anything, and helps significantly (at the cost of a little
9783 # extra space).
9784 freebsd2.2*)
9785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9786 hardcode_libdir_flag_spec='-R$libdir'
9787 hardcode_direct=yes
9788 hardcode_shlibpath_var=no
9789 ;;
9790
9791 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9792 freebsd2.*)
9793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_direct=yes
9795 hardcode_minus_L=yes
9796 hardcode_shlibpath_var=no
9797 ;;
9798
9799 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9800 freebsd* | dragonfly*)
9801 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9802 hardcode_libdir_flag_spec='-R$libdir'
9803 hardcode_direct=yes
9804 hardcode_shlibpath_var=no
9805 ;;
9806
9807 hpux9*)
9808 if test "$GCC" = yes; then
9809 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'
9810 else
9811 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'
9812 fi
9813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9814 hardcode_libdir_separator=:
9815 hardcode_direct=yes
9816
9817 # hardcode_minus_L: Not really in the search PATH,
9818 # but as the default location of the library.
9819 hardcode_minus_L=yes
9820 export_dynamic_flag_spec='${wl}-E'
9821 ;;
9822
9823 hpux10*)
9824 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9825 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826 else
9827 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9828 fi
9829 if test "$with_gnu_ld" = no; then
9830 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9831 hardcode_libdir_flag_spec_ld='+b $libdir'
9832 hardcode_libdir_separator=:
9833 hardcode_direct=yes
9834 hardcode_direct_absolute=yes
9835 export_dynamic_flag_spec='${wl}-E'
9836 # hardcode_minus_L: Not really in the search PATH,
9837 # but as the default location of the library.
9838 hardcode_minus_L=yes
9839 fi
9840 ;;
9841
9842 hpux11*)
9843 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9844 case $host_cpu in
9845 hppa*64*)
9846 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9847 ;;
9848 ia64*)
9849 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9850 ;;
9851 *)
9852 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9853 ;;
9854 esac
9855 else
9856 case $host_cpu in
9857 hppa*64*)
9858 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9859 ;;
9860 ia64*)
9861 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9862 ;;
9863 *)
9864
9865 # Older versions of the 11.00 compiler do not understand -b yet
9866 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9868 $as_echo_n "checking if $CC understands -b... " >&6; }
9869 if ${lt_cv_prog_compiler__b+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871 else
9872 lt_cv_prog_compiler__b=no
9873 save_LDFLAGS="$LDFLAGS"
9874 LDFLAGS="$LDFLAGS -b"
9875 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9876 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9877 # The linker can only warn and ignore the option if not recognized
9878 # So say no if there are warnings
9879 if test -s conftest.err; then
9880 # Append any errors to the config.log.
9881 cat conftest.err 1>&5
9882 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9884 if diff conftest.exp conftest.er2 >/dev/null; then
9885 lt_cv_prog_compiler__b=yes
9886 fi
9887 else
9888 lt_cv_prog_compiler__b=yes
9889 fi
9890 fi
9891 $RM -r conftest*
9892 LDFLAGS="$save_LDFLAGS"
9893
9894 fi
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9896 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9897
9898 if test x"$lt_cv_prog_compiler__b" = xyes; then
9899 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9900 else
9901 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9902 fi
9903
9904 ;;
9905 esac
9906 fi
9907 if test "$with_gnu_ld" = no; then
9908 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9909 hardcode_libdir_separator=:
9910
9911 case $host_cpu in
9912 hppa*64*|ia64*)
9913 hardcode_direct=no
9914 hardcode_shlibpath_var=no
9915 ;;
9916 *)
9917 hardcode_direct=yes
9918 hardcode_direct_absolute=yes
9919 export_dynamic_flag_spec='${wl}-E'
9920
9921 # hardcode_minus_L: Not really in the search PATH,
9922 # but as the default location of the library.
9923 hardcode_minus_L=yes
9924 ;;
9925 esac
9926 fi
9927 ;;
9928
9929 irix5* | irix6* | nonstopux*)
9930 if test "$GCC" = yes; then
9931 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'
9932 # Try to use the -exported_symbol ld option, if it does not
9933 # work, assume that -exports_file does not work either and
9934 # implicitly export all symbols.
9935 save_LDFLAGS="$LDFLAGS"
9936 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939 int foo(void) {}
9940 _ACEOF
9941 if ac_fn_c_try_link "$LINENO"; then :
9942 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'
9943
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext \
9946 conftest$ac_exeext conftest.$ac_ext
9947 LDFLAGS="$save_LDFLAGS"
9948 else
9949 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'
9950 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'
9951 fi
9952 archive_cmds_need_lc='no'
9953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9954 hardcode_libdir_separator=:
9955 inherit_rpath=yes
9956 link_all_deplibs=yes
9957 ;;
9958
9959 netbsd*)
9960 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9961 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9962 else
9963 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9964 fi
9965 hardcode_libdir_flag_spec='-R$libdir'
9966 hardcode_direct=yes
9967 hardcode_shlibpath_var=no
9968 ;;
9969
9970 newsos6)
9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_direct=yes
9973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974 hardcode_libdir_separator=:
9975 hardcode_shlibpath_var=no
9976 ;;
9977
9978 *nto* | *qnx*)
9979 ;;
9980
9981 openbsd*)
9982 if test -f /usr/libexec/ld.so; then
9983 hardcode_direct=yes
9984 hardcode_shlibpath_var=no
9985 hardcode_direct_absolute=yes
9986 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9987 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9990 export_dynamic_flag_spec='${wl}-E'
9991 else
9992 case $host_os in
9993 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9995 hardcode_libdir_flag_spec='-R$libdir'
9996 ;;
9997 *)
9998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10000 ;;
10001 esac
10002 fi
10003 else
10004 ld_shlibs=no
10005 fi
10006 ;;
10007
10008 os2*)
10009 hardcode_libdir_flag_spec='-L$libdir'
10010 hardcode_minus_L=yes
10011 allow_undefined_flag=unsupported
10012 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'
10013 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10014 ;;
10015
10016 osf3*)
10017 if test "$GCC" = yes; then
10018 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10019 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'
10020 else
10021 allow_undefined_flag=' -expect_unresolved \*'
10022 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'
10023 fi
10024 archive_cmds_need_lc='no'
10025 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026 hardcode_libdir_separator=:
10027 ;;
10028
10029 osf4* | osf5*) # as osf3* with the addition of -msym flag
10030 if test "$GCC" = yes; then
10031 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10032 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'
10033 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034 else
10035 allow_undefined_flag=' -expect_unresolved \*'
10036 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'
10037 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~
10038 $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'
10039
10040 # Both c and cxx compiler support -rpath directly
10041 hardcode_libdir_flag_spec='-rpath $libdir'
10042 fi
10043 archive_cmds_need_lc='no'
10044 hardcode_libdir_separator=:
10045 ;;
10046
10047 solaris*)
10048 no_undefined_flag=' -z defs'
10049 if test "$GCC" = yes; then
10050 wlarc='${wl}'
10051 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10054 else
10055 case `$CC -V 2>&1` in
10056 *"Compilers 5.0"*)
10057 wlarc=''
10058 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10060 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10061 ;;
10062 *)
10063 wlarc='${wl}'
10064 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10066 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10067 ;;
10068 esac
10069 fi
10070 hardcode_libdir_flag_spec='-R$libdir'
10071 hardcode_shlibpath_var=no
10072 case $host_os in
10073 solaris2.[0-5] | solaris2.[0-5].*) ;;
10074 *)
10075 # The compiler driver will combine and reorder linker options,
10076 # but understands `-z linker_flag'. GCC discards it without `$wl',
10077 # but is careful enough not to reorder.
10078 # Supported since Solaris 2.6 (maybe 2.5.1?)
10079 if test "$GCC" = yes; then
10080 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10081 else
10082 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10083 fi
10084 ;;
10085 esac
10086 link_all_deplibs=yes
10087 ;;
10088
10089 sunos4*)
10090 if test "x$host_vendor" = xsequent; then
10091 # Use $CC to link under sequent, because it throws in some extra .o
10092 # files that make .init and .fini sections work.
10093 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094 else
10095 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10096 fi
10097 hardcode_libdir_flag_spec='-L$libdir'
10098 hardcode_direct=yes
10099 hardcode_minus_L=yes
10100 hardcode_shlibpath_var=no
10101 ;;
10102
10103 sysv4)
10104 case $host_vendor in
10105 sni)
10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_direct=yes # is this really true???
10108 ;;
10109 siemens)
10110 ## LD is ld it makes a PLAMLIB
10111 ## CC just makes a GrossModule.
10112 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10113 reload_cmds='$CC -r -o $output$reload_objs'
10114 hardcode_direct=no
10115 ;;
10116 motorola)
10117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10119 ;;
10120 esac
10121 runpath_var='LD_RUN_PATH'
10122 hardcode_shlibpath_var=no
10123 ;;
10124
10125 sysv4.3*)
10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 hardcode_shlibpath_var=no
10128 export_dynamic_flag_spec='-Bexport'
10129 ;;
10130
10131 sysv4*MP*)
10132 if test -d /usr/nec; then
10133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134 hardcode_shlibpath_var=no
10135 runpath_var=LD_RUN_PATH
10136 hardcode_runpath_var=yes
10137 ld_shlibs=yes
10138 fi
10139 ;;
10140
10141 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10142 no_undefined_flag='${wl}-z,text'
10143 archive_cmds_need_lc=no
10144 hardcode_shlibpath_var=no
10145 runpath_var='LD_RUN_PATH'
10146
10147 if test "$GCC" = yes; then
10148 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150 else
10151 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 fi
10154 ;;
10155
10156 sysv5* | sco3.2v5* | sco5v6*)
10157 # Note: We can NOT use -z defs as we might desire, because we do not
10158 # link with -lc, and that would cause any symbols used from libc to
10159 # always be unresolved, which means just about no library would
10160 # ever link correctly. If we're not using GNU ld we use -z text
10161 # though, which does catch some bad symbols but isn't as heavy-handed
10162 # as -z defs.
10163 no_undefined_flag='${wl}-z,text'
10164 allow_undefined_flag='${wl}-z,nodefs'
10165 archive_cmds_need_lc=no
10166 hardcode_shlibpath_var=no
10167 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10168 hardcode_libdir_separator=':'
10169 link_all_deplibs=yes
10170 export_dynamic_flag_spec='${wl}-Bexport'
10171 runpath_var='LD_RUN_PATH'
10172
10173 if test "$GCC" = yes; then
10174 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 else
10177 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 fi
10180 ;;
10181
10182 uts4*)
10183 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184 hardcode_libdir_flag_spec='-L$libdir'
10185 hardcode_shlibpath_var=no
10186 ;;
10187
10188 *)
10189 ld_shlibs=no
10190 ;;
10191 esac
10192
10193 if test x$host_vendor = xsni; then
10194 case $host in
10195 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196 export_dynamic_flag_spec='${wl}-Blargedynsym'
10197 ;;
10198 esac
10199 fi
10200 fi
10201
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10203 $as_echo "$ld_shlibs" >&6; }
10204 test "$ld_shlibs" = no && can_build_shared=no
10205
10206 with_gnu_ld=$with_gnu_ld
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222 #
10223 # Do we need to explicitly link libc?
10224 #
10225 case "x$archive_cmds_need_lc" in
10226 x|xyes)
10227 # Assume -lc should be added
10228 archive_cmds_need_lc=yes
10229
10230 if test "$enable_shared" = yes && test "$GCC" = yes; then
10231 case $archive_cmds in
10232 *'~'*)
10233 # FIXME: we may have to deal with multi-command sequences.
10234 ;;
10235 '$CC '*)
10236 # Test whether the compiler implicitly links with -lc since on some
10237 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10238 # to ld, don't add -lc before -lgcc.
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10240 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10241 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10242 $as_echo_n "(cached) " >&6
10243 else
10244 $RM conftest*
10245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10246
10247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10248 (eval $ac_compile) 2>&5
10249 ac_status=$?
10250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10251 test $ac_status = 0; } 2>conftest.err; then
10252 soname=conftest
10253 lib=conftest
10254 libobjs=conftest.$ac_objext
10255 deplibs=
10256 wl=$lt_prog_compiler_wl
10257 pic_flag=$lt_prog_compiler_pic
10258 compiler_flags=-v
10259 linker_flags=-v
10260 verstring=
10261 output_objdir=.
10262 libname=conftest
10263 lt_save_allow_undefined_flag=$allow_undefined_flag
10264 allow_undefined_flag=
10265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10266 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10267 ac_status=$?
10268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10269 test $ac_status = 0; }
10270 then
10271 lt_cv_archive_cmds_need_lc=no
10272 else
10273 lt_cv_archive_cmds_need_lc=yes
10274 fi
10275 allow_undefined_flag=$lt_save_allow_undefined_flag
10276 else
10277 cat conftest.err 1>&5
10278 fi
10279 $RM conftest*
10280
10281 fi
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10283 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10284 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10285 ;;
10286 esac
10287 fi
10288 ;;
10289 esac
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10448 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10449
10450 if test "$GCC" = yes; then
10451 case $host_os in
10452 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10453 *) lt_awk_arg="/^libraries:/" ;;
10454 esac
10455 case $host_os in
10456 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10457 *) lt_sed_strip_eq="s,=/,/,g" ;;
10458 esac
10459 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10460 case $lt_search_path_spec in
10461 *\;*)
10462 # if the path contains ";" then we assume it to be the separator
10463 # otherwise default to the standard path separator (i.e. ":") - it is
10464 # assumed that no part of a normal pathname contains ";" but that should
10465 # okay in the real world where ";" in dirpaths is itself problematic.
10466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10467 ;;
10468 *)
10469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10470 ;;
10471 esac
10472 # Ok, now we have the path, separated by spaces, we can step through it
10473 # and add multilib dir if necessary.
10474 lt_tmp_lt_search_path_spec=
10475 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10476 for lt_sys_path in $lt_search_path_spec; do
10477 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10478 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10479 else
10480 test -d "$lt_sys_path" && \
10481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10482 fi
10483 done
10484 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10485 BEGIN {RS=" "; FS="/|\n";} {
10486 lt_foo="";
10487 lt_count=0;
10488 for (lt_i = NF; lt_i > 0; lt_i--) {
10489 if ($lt_i != "" && $lt_i != ".") {
10490 if ($lt_i == "..") {
10491 lt_count++;
10492 } else {
10493 if (lt_count == 0) {
10494 lt_foo="/" $lt_i lt_foo;
10495 } else {
10496 lt_count--;
10497 }
10498 }
10499 }
10500 }
10501 if (lt_foo != "") { lt_freq[lt_foo]++; }
10502 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10503 }'`
10504 # AWK program above erroneously prepends '/' to C:/dos/paths
10505 # for these hosts.
10506 case $host_os in
10507 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10508 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10509 esac
10510 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10511 else
10512 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10513 fi
10514 library_names_spec=
10515 libname_spec='lib$name'
10516 soname_spec=
10517 shrext_cmds=".so"
10518 postinstall_cmds=
10519 postuninstall_cmds=
10520 finish_cmds=
10521 finish_eval=
10522 shlibpath_var=
10523 shlibpath_overrides_runpath=unknown
10524 version_type=none
10525 dynamic_linker="$host_os ld.so"
10526 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10527 need_lib_prefix=unknown
10528 hardcode_into_libs=no
10529
10530 # when you set need_version to no, make sure it does not cause -set_version
10531 # flags to be left without arguments
10532 need_version=unknown
10533
10534 case $host_os in
10535 aix3*)
10536 version_type=linux
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10538 shlibpath_var=LIBPATH
10539
10540 # AIX 3 has no versioning support, so we append a major version to the name.
10541 soname_spec='${libname}${release}${shared_ext}$major'
10542 ;;
10543
10544 aix[4-9]*)
10545 version_type=linux
10546 need_lib_prefix=no
10547 need_version=no
10548 hardcode_into_libs=yes
10549 if test "$host_cpu" = ia64; then
10550 # AIX 5 supports IA64
10551 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 else
10554 # With GCC up to 2.95.x, collect2 would create an import file
10555 # for dependence libraries. The import file would start with
10556 # the line `#! .'. This would cause the generated library to
10557 # depend on `.', always an invalid library. This was fixed in
10558 # development snapshots of GCC prior to 3.0.
10559 case $host_os in
10560 aix4 | aix4.[01] | aix4.[01].*)
10561 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10562 echo ' yes '
10563 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10564 :
10565 else
10566 can_build_shared=no
10567 fi
10568 ;;
10569 esac
10570 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10571 # soname into executable. Probably we can add versioning support to
10572 # collect2, so additional links can be useful in future.
10573 if test "$aix_use_runtimelinking" = yes; then
10574 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10575 # instead of lib<name>.a to let people know that these are not
10576 # typical AIX shared libraries.
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10578 else
10579 # We preserve .a as extension for shared libraries through AIX4.2
10580 # and later when we are not doing run time linking.
10581 library_names_spec='${libname}${release}.a $libname.a'
10582 soname_spec='${libname}${release}${shared_ext}$major'
10583 fi
10584 shlibpath_var=LIBPATH
10585 fi
10586 ;;
10587
10588 amigaos*)
10589 case $host_cpu in
10590 powerpc)
10591 # Since July 2007 AmigaOS4 officially supports .so libraries.
10592 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 ;;
10595 m68k)
10596 library_names_spec='$libname.ixlibrary $libname.a'
10597 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10598 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'
10599 ;;
10600 esac
10601 ;;
10602
10603 beos*)
10604 library_names_spec='${libname}${shared_ext}'
10605 dynamic_linker="$host_os ld.so"
10606 shlibpath_var=LIBRARY_PATH
10607 ;;
10608
10609 bsdi[45]*)
10610 version_type=linux
10611 need_version=no
10612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10613 soname_spec='${libname}${release}${shared_ext}$major'
10614 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10615 shlibpath_var=LD_LIBRARY_PATH
10616 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10617 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10618 # the default ld.so.conf also contains /usr/contrib/lib and
10619 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10620 # libtool to hard-code these into programs
10621 ;;
10622
10623 cygwin* | mingw* | pw32* | cegcc*)
10624 version_type=windows
10625 shrext_cmds=".dll"
10626 need_version=no
10627 need_lib_prefix=no
10628
10629 case $GCC,$host_os in
10630 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10631 library_names_spec='$libname.dll.a'
10632 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10633 postinstall_cmds='base_file=`basename \${file}`~
10634 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10635 dldir=$destdir/`dirname \$dlpath`~
10636 test -d \$dldir || mkdir -p \$dldir~
10637 $install_prog $dir/$dlname \$dldir/$dlname~
10638 chmod a+x \$dldir/$dlname~
10639 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10640 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10641 fi'
10642 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10643 dlpath=$dir/\$dldll~
10644 $RM \$dlpath'
10645 shlibpath_overrides_runpath=yes
10646
10647 case $host_os in
10648 cygwin*)
10649 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10650 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10651
10652 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10653 ;;
10654 mingw* | cegcc*)
10655 # MinGW DLLs use traditional 'lib' prefix
10656 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657 ;;
10658 pw32*)
10659 # pw32 DLLs use 'pw' prefix rather than 'lib'
10660 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10661 ;;
10662 esac
10663 ;;
10664
10665 *)
10666 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10667 ;;
10668 esac
10669 dynamic_linker='Win32 ld.exe'
10670 # FIXME: first we should search . and the directory the executable is in
10671 shlibpath_var=PATH
10672 ;;
10673
10674 darwin* | rhapsody*)
10675 dynamic_linker="$host_os dyld"
10676 version_type=darwin
10677 need_lib_prefix=no
10678 need_version=no
10679 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10680 soname_spec='${libname}${release}${major}$shared_ext'
10681 shlibpath_overrides_runpath=yes
10682 shlibpath_var=DYLD_LIBRARY_PATH
10683 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10684
10685 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10687 ;;
10688
10689 dgux*)
10690 version_type=linux
10691 need_lib_prefix=no
10692 need_version=no
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 ;;
10697
10698 freebsd* | dragonfly*)
10699 # DragonFly does not have aout. When/if they implement a new
10700 # versioning mechanism, adjust this.
10701 if test -x /usr/bin/objformat; then
10702 objformat=`/usr/bin/objformat`
10703 else
10704 case $host_os in
10705 freebsd[23].*) objformat=aout ;;
10706 *) objformat=elf ;;
10707 esac
10708 fi
10709 version_type=freebsd-$objformat
10710 case $version_type in
10711 freebsd-elf*)
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10713 need_version=no
10714 need_lib_prefix=no
10715 ;;
10716 freebsd-*)
10717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10718 need_version=yes
10719 ;;
10720 esac
10721 shlibpath_var=LD_LIBRARY_PATH
10722 case $host_os in
10723 freebsd2.*)
10724 shlibpath_overrides_runpath=yes
10725 ;;
10726 freebsd3.[01]* | freebsdelf3.[01]*)
10727 shlibpath_overrides_runpath=yes
10728 hardcode_into_libs=yes
10729 ;;
10730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10732 shlibpath_overrides_runpath=no
10733 hardcode_into_libs=yes
10734 ;;
10735 *) # from 4.6 on, and DragonFly
10736 shlibpath_overrides_runpath=yes
10737 hardcode_into_libs=yes
10738 ;;
10739 esac
10740 ;;
10741
10742 haiku*)
10743 version_type=linux
10744 need_lib_prefix=no
10745 need_version=no
10746 dynamic_linker="$host_os runtime_loader"
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 shlibpath_var=LIBRARY_PATH
10750 shlibpath_overrides_runpath=yes
10751 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10752 hardcode_into_libs=yes
10753 ;;
10754
10755 hpux9* | hpux10* | hpux11*)
10756 # Give a soname corresponding to the major version so that dld.sl refuses to
10757 # link against other versions.
10758 version_type=sunos
10759 need_lib_prefix=no
10760 need_version=no
10761 case $host_cpu in
10762 ia64*)
10763 shrext_cmds='.so'
10764 hardcode_into_libs=yes
10765 dynamic_linker="$host_os dld.so"
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 if test "X$HPUX_IA64_MODE" = X32; then
10771 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10772 else
10773 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10774 fi
10775 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10776 ;;
10777 hppa*64*)
10778 shrext_cmds='.sl'
10779 hardcode_into_libs=yes
10780 dynamic_linker="$host_os dld.sl"
10781 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10782 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10784 soname_spec='${libname}${release}${shared_ext}$major'
10785 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10786 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10787 ;;
10788 *)
10789 shrext_cmds='.sl'
10790 dynamic_linker="$host_os dld.sl"
10791 shlibpath_var=SHLIB_PATH
10792 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 ;;
10796 esac
10797 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10798 postinstall_cmds='chmod 555 $lib'
10799 # or fails outright, so override atomically:
10800 install_override_mode=555
10801 ;;
10802
10803 interix[3-9]*)
10804 version_type=linux
10805 need_lib_prefix=no
10806 need_version=no
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10810 shlibpath_var=LD_LIBRARY_PATH
10811 shlibpath_overrides_runpath=no
10812 hardcode_into_libs=yes
10813 ;;
10814
10815 irix5* | irix6* | nonstopux*)
10816 case $host_os in
10817 nonstopux*) version_type=nonstopux ;;
10818 *)
10819 if test "$lt_cv_prog_gnu_ld" = yes; then
10820 version_type=linux
10821 else
10822 version_type=irix
10823 fi ;;
10824 esac
10825 need_lib_prefix=no
10826 need_version=no
10827 soname_spec='${libname}${release}${shared_ext}$major'
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10829 case $host_os in
10830 irix5* | nonstopux*)
10831 libsuff= shlibsuff=
10832 ;;
10833 *)
10834 case $LD in # libtool.m4 will add one of these switches to LD
10835 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10836 libsuff= shlibsuff= libmagic=32-bit;;
10837 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10838 libsuff=32 shlibsuff=N32 libmagic=N32;;
10839 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10840 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10841 *) libsuff= shlibsuff= libmagic=never-match;;
10842 esac
10843 ;;
10844 esac
10845 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10846 shlibpath_overrides_runpath=no
10847 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10848 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10849 hardcode_into_libs=yes
10850 ;;
10851
10852 # No shared lib support for Linux oldld, aout, or coff.
10853 linux*oldld* | linux*aout* | linux*coff*)
10854 dynamic_linker=no
10855 ;;
10856
10857 # This must be Linux ELF.
10858 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10859 version_type=linux
10860 need_lib_prefix=no
10861 need_version=no
10862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10863 soname_spec='${libname}${release}${shared_ext}$major'
10864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=no
10867
10868 # Some binutils ld are patched to set DT_RUNPATH
10869 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10870 $as_echo_n "(cached) " >&6
10871 else
10872 lt_cv_shlibpath_overrides_runpath=no
10873 save_LDFLAGS=$LDFLAGS
10874 save_libdir=$libdir
10875 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10876 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10879
10880 int
10881 main ()
10882 {
10883
10884 ;
10885 return 0;
10886 }
10887 _ACEOF
10888 if ac_fn_c_try_link "$LINENO"; then :
10889 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10890 lt_cv_shlibpath_overrides_runpath=yes
10891 fi
10892 fi
10893 rm -f core conftest.err conftest.$ac_objext \
10894 conftest$ac_exeext conftest.$ac_ext
10895 LDFLAGS=$save_LDFLAGS
10896 libdir=$save_libdir
10897
10898 fi
10899
10900 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10901
10902 # This implies no fast_install, which is unacceptable.
10903 # Some rework will be needed to allow for fast_install
10904 # before this can be enabled.
10905 hardcode_into_libs=yes
10906
10907 # Append ld.so.conf contents to the search path
10908 if test -f /etc/ld.so.conf; then
10909 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' ' '`
10910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10911 fi
10912
10913 # We used to test for /lib/ld.so.1 and disable shared libraries on
10914 # powerpc, because MkLinux only supported shared libraries with the
10915 # GNU dynamic linker. Since this was broken with cross compilers,
10916 # most powerpc-linux boxes support dynamic linking these days and
10917 # people can always --disable-shared, the test was removed, and we
10918 # assume the GNU/Linux dynamic linker is in use.
10919 dynamic_linker='GNU/Linux ld.so'
10920 ;;
10921
10922 netbsd*)
10923 version_type=sunos
10924 need_lib_prefix=no
10925 need_version=no
10926 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10929 dynamic_linker='NetBSD (a.out) ld.so'
10930 else
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 dynamic_linker='NetBSD ld.elf_so'
10934 fi
10935 shlibpath_var=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath=yes
10937 hardcode_into_libs=yes
10938 ;;
10939
10940 newsos6)
10941 version_type=linux
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 shlibpath_var=LD_LIBRARY_PATH
10944 shlibpath_overrides_runpath=yes
10945 ;;
10946
10947 *nto* | *qnx*)
10948 version_type=qnx
10949 need_lib_prefix=no
10950 need_version=no
10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10952 soname_spec='${libname}${release}${shared_ext}$major'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=no
10955 hardcode_into_libs=yes
10956 dynamic_linker='ldqnx.so'
10957 ;;
10958
10959 openbsd*)
10960 version_type=sunos
10961 sys_lib_dlsearch_path_spec="/usr/lib"
10962 need_lib_prefix=no
10963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10964 case $host_os in
10965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10966 *) need_version=no ;;
10967 esac
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10972 case $host_os in
10973 openbsd2.[89] | openbsd2.[89].*)
10974 shlibpath_overrides_runpath=no
10975 ;;
10976 *)
10977 shlibpath_overrides_runpath=yes
10978 ;;
10979 esac
10980 else
10981 shlibpath_overrides_runpath=yes
10982 fi
10983 ;;
10984
10985 os2*)
10986 libname_spec='$name'
10987 shrext_cmds=".dll"
10988 need_lib_prefix=no
10989 library_names_spec='$libname${shared_ext} $libname.a'
10990 dynamic_linker='OS/2 ld.exe'
10991 shlibpath_var=LIBPATH
10992 ;;
10993
10994 osf3* | osf4* | osf5*)
10995 version_type=osf
10996 need_lib_prefix=no
10997 need_version=no
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11000 shlibpath_var=LD_LIBRARY_PATH
11001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11003 ;;
11004
11005 rdos*)
11006 dynamic_linker=no
11007 ;;
11008
11009 solaris*)
11010 version_type=linux
11011 need_lib_prefix=no
11012 need_version=no
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 shlibpath_overrides_runpath=yes
11017 hardcode_into_libs=yes
11018 # ldd complains unless libraries are executable
11019 postinstall_cmds='chmod +x $lib'
11020 ;;
11021
11022 sunos4*)
11023 version_type=sunos
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=yes
11028 if test "$with_gnu_ld" = yes; then
11029 need_lib_prefix=no
11030 fi
11031 need_version=yes
11032 ;;
11033
11034 sysv4 | sysv4.3*)
11035 version_type=linux
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 shlibpath_var=LD_LIBRARY_PATH
11039 case $host_vendor in
11040 sni)
11041 shlibpath_overrides_runpath=no
11042 need_lib_prefix=no
11043 runpath_var=LD_RUN_PATH
11044 ;;
11045 siemens)
11046 need_lib_prefix=no
11047 ;;
11048 motorola)
11049 need_lib_prefix=no
11050 need_version=no
11051 shlibpath_overrides_runpath=no
11052 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11053 ;;
11054 esac
11055 ;;
11056
11057 sysv4*MP*)
11058 if test -d /usr/nec ;then
11059 version_type=linux
11060 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11061 soname_spec='$libname${shared_ext}.$major'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 fi
11064 ;;
11065
11066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11067 version_type=freebsd-elf
11068 need_lib_prefix=no
11069 need_version=no
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11071 soname_spec='${libname}${release}${shared_ext}$major'
11072 shlibpath_var=LD_LIBRARY_PATH
11073 shlibpath_overrides_runpath=yes
11074 hardcode_into_libs=yes
11075 if test "$with_gnu_ld" = yes; then
11076 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11077 else
11078 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11079 case $host_os in
11080 sco3.2v5*)
11081 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11082 ;;
11083 esac
11084 fi
11085 sys_lib_dlsearch_path_spec='/usr/lib'
11086 ;;
11087
11088 tpf*)
11089 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11090 version_type=linux
11091 need_lib_prefix=no
11092 need_version=no
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 shlibpath_overrides_runpath=no
11096 hardcode_into_libs=yes
11097 ;;
11098
11099 uts4*)
11100 version_type=linux
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102 soname_spec='${libname}${release}${shared_ext}$major'
11103 shlibpath_var=LD_LIBRARY_PATH
11104 ;;
11105
11106 *)
11107 dynamic_linker=no
11108 ;;
11109 esac
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11111 $as_echo "$dynamic_linker" >&6; }
11112 test "$dynamic_linker" = no && can_build_shared=no
11113
11114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11115 if test "$GCC" = yes; then
11116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11117 fi
11118
11119 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11120 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11121 fi
11122 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11123 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11124 fi
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11218 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11219 hardcode_action=
11220 if test -n "$hardcode_libdir_flag_spec" ||
11221 test -n "$runpath_var" ||
11222 test "X$hardcode_automatic" = "Xyes" ; then
11223
11224 # We can hardcode non-existent directories.
11225 if test "$hardcode_direct" != no &&
11226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11227 # have to relink, otherwise we might link with an installed library
11228 # when we should be linking with a yet-to-be-installed one
11229 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11230 test "$hardcode_minus_L" != no; then
11231 # Linking always hardcodes the temporary library directory.
11232 hardcode_action=relink
11233 else
11234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11235 hardcode_action=immediate
11236 fi
11237 else
11238 # We cannot hardcode anything, or else we can only hardcode existing
11239 # directories.
11240 hardcode_action=unsupported
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11243 $as_echo "$hardcode_action" >&6; }
11244
11245 if test "$hardcode_action" = relink ||
11246 test "$inherit_rpath" = yes; then
11247 # Fast installation is not supported
11248 enable_fast_install=no
11249 elif test "$shlibpath_overrides_runpath" = yes ||
11250 test "$enable_shared" = no; then
11251 # Fast installation is not necessary
11252 enable_fast_install=needless
11253 fi
11254
11255
11256
11257
11258
11259
11260 if test "x$enable_dlopen" != xyes; then
11261 enable_dlopen=unknown
11262 enable_dlopen_self=unknown
11263 enable_dlopen_self_static=unknown
11264 else
11265 lt_cv_dlopen=no
11266 lt_cv_dlopen_libs=
11267
11268 case $host_os in
11269 beos*)
11270 lt_cv_dlopen="load_add_on"
11271 lt_cv_dlopen_libs=
11272 lt_cv_dlopen_self=yes
11273 ;;
11274
11275 mingw* | pw32* | cegcc*)
11276 lt_cv_dlopen="LoadLibrary"
11277 lt_cv_dlopen_libs=
11278 ;;
11279
11280 cygwin*)
11281 lt_cv_dlopen="dlopen"
11282 lt_cv_dlopen_libs=
11283 ;;
11284
11285 darwin*)
11286 # if libdl is installed we need to link against it
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11288 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11289 if ${ac_cv_lib_dl_dlopen+:} false; then :
11290 $as_echo_n "(cached) " >&6
11291 else
11292 ac_check_lib_save_LIBS=$LIBS
11293 LIBS="-ldl $LIBS"
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296
11297 /* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
11300 #ifdef __cplusplus
11301 extern "C"
11302 #endif
11303 char dlopen ();
11304 int
11305 main ()
11306 {
11307 return dlopen ();
11308 ;
11309 return 0;
11310 }
11311 _ACEOF
11312 if ac_fn_c_try_link "$LINENO"; then :
11313 ac_cv_lib_dl_dlopen=yes
11314 else
11315 ac_cv_lib_dl_dlopen=no
11316 fi
11317 rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11320 fi
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11322 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11323 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11325 else
11326
11327 lt_cv_dlopen="dyld"
11328 lt_cv_dlopen_libs=
11329 lt_cv_dlopen_self=yes
11330
11331 fi
11332
11333 ;;
11334
11335 *)
11336 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11337 if test "x$ac_cv_func_shl_load" = xyes; then :
11338 lt_cv_dlopen="shl_load"
11339 else
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11341 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11342 if ${ac_cv_lib_dld_shl_load+:} false; then :
11343 $as_echo_n "(cached) " >&6
11344 else
11345 ac_check_lib_save_LIBS=$LIBS
11346 LIBS="-ldld $LIBS"
11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11348 /* end confdefs.h. */
11349
11350 /* Override any GCC internal prototype to avoid an error.
11351 Use char because int might match the return type of a GCC
11352 builtin and then its argument prototype would still apply. */
11353 #ifdef __cplusplus
11354 extern "C"
11355 #endif
11356 char shl_load ();
11357 int
11358 main ()
11359 {
11360 return shl_load ();
11361 ;
11362 return 0;
11363 }
11364 _ACEOF
11365 if ac_fn_c_try_link "$LINENO"; then :
11366 ac_cv_lib_dld_shl_load=yes
11367 else
11368 ac_cv_lib_dld_shl_load=no
11369 fi
11370 rm -f core conftest.err conftest.$ac_objext \
11371 conftest$ac_exeext conftest.$ac_ext
11372 LIBS=$ac_check_lib_save_LIBS
11373 fi
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11375 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11376 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11377 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11378 else
11379 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11380 if test "x$ac_cv_func_dlopen" = xyes; then :
11381 lt_cv_dlopen="dlopen"
11382 else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11385 if ${ac_cv_lib_dl_dlopen+:} false; then :
11386 $as_echo_n "(cached) " >&6
11387 else
11388 ac_check_lib_save_LIBS=$LIBS
11389 LIBS="-ldl $LIBS"
11390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391 /* end confdefs.h. */
11392
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396 #ifdef __cplusplus
11397 extern "C"
11398 #endif
11399 char dlopen ();
11400 int
11401 main ()
11402 {
11403 return dlopen ();
11404 ;
11405 return 0;
11406 }
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_dl_dlopen=yes
11410 else
11411 ac_cv_lib_dl_dlopen=no
11412 fi
11413 rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415 LIBS=$ac_check_lib_save_LIBS
11416 fi
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11419 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11421 else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11423 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11424 if ${ac_cv_lib_svld_dlopen+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 ac_check_lib_save_LIBS=$LIBS
11428 LIBS="-lsvld $LIBS"
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431
11432 /* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435 #ifdef __cplusplus
11436 extern "C"
11437 #endif
11438 char dlopen ();
11439 int
11440 main ()
11441 {
11442 return dlopen ();
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"; then :
11448 ac_cv_lib_svld_dlopen=yes
11449 else
11450 ac_cv_lib_svld_dlopen=no
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454 LIBS=$ac_check_lib_save_LIBS
11455 fi
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11458 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11460 else
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11463 if ${ac_cv_lib_dld_dld_link+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-ldld $LIBS"
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11470
11471 /* Override any GCC internal prototype to avoid an error.
11472 Use char because int might match the return type of a GCC
11473 builtin and then its argument prototype would still apply. */
11474 #ifdef __cplusplus
11475 extern "C"
11476 #endif
11477 char dld_link ();
11478 int
11479 main ()
11480 {
11481 return dld_link ();
11482 ;
11483 return 0;
11484 }
11485 _ACEOF
11486 if ac_fn_c_try_link "$LINENO"; then :
11487 ac_cv_lib_dld_dld_link=yes
11488 else
11489 ac_cv_lib_dld_dld_link=no
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11493 LIBS=$ac_check_lib_save_LIBS
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11496 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11497 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11499 fi
11500
11501
11502 fi
11503
11504
11505 fi
11506
11507
11508 fi
11509
11510
11511 fi
11512
11513
11514 fi
11515
11516 ;;
11517 esac
11518
11519 if test "x$lt_cv_dlopen" != xno; then
11520 enable_dlopen=yes
11521 else
11522 enable_dlopen=no
11523 fi
11524
11525 case $lt_cv_dlopen in
11526 dlopen)
11527 save_CPPFLAGS="$CPPFLAGS"
11528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11529
11530 save_LDFLAGS="$LDFLAGS"
11531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11532
11533 save_LIBS="$LIBS"
11534 LIBS="$lt_cv_dlopen_libs $LIBS"
11535
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11537 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11538 if ${lt_cv_dlopen_self+:} false; then :
11539 $as_echo_n "(cached) " >&6
11540 else
11541 if test "$cross_compiling" = yes; then :
11542 lt_cv_dlopen_self=cross
11543 else
11544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11545 lt_status=$lt_dlunknown
11546 cat > conftest.$ac_ext <<_LT_EOF
11547 #line 11557 "configure"
11548 #include "confdefs.h"
11549
11550 #if HAVE_DLFCN_H
11551 #include <dlfcn.h>
11552 #endif
11553
11554 #include <stdio.h>
11555
11556 #ifdef RTLD_GLOBAL
11557 # define LT_DLGLOBAL RTLD_GLOBAL
11558 #else
11559 # ifdef DL_GLOBAL
11560 # define LT_DLGLOBAL DL_GLOBAL
11561 # else
11562 # define LT_DLGLOBAL 0
11563 # endif
11564 #endif
11565
11566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11567 find out it does not work in some platform. */
11568 #ifndef LT_DLLAZY_OR_NOW
11569 # ifdef RTLD_LAZY
11570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11571 # else
11572 # ifdef DL_LAZY
11573 # define LT_DLLAZY_OR_NOW DL_LAZY
11574 # else
11575 # ifdef RTLD_NOW
11576 # define LT_DLLAZY_OR_NOW RTLD_NOW
11577 # else
11578 # ifdef DL_NOW
11579 # define LT_DLLAZY_OR_NOW DL_NOW
11580 # else
11581 # define LT_DLLAZY_OR_NOW 0
11582 # endif
11583 # endif
11584 # endif
11585 # endif
11586 #endif
11587
11588 /* When -fvisbility=hidden is used, assume the code has been annotated
11589 correspondingly for the symbols needed. */
11590 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11591 void fnord () __attribute__((visibility("default")));
11592 #endif
11593
11594 void fnord () { int i=42; }
11595 int main ()
11596 {
11597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11598 int status = $lt_dlunknown;
11599
11600 if (self)
11601 {
11602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11603 else
11604 {
11605 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11606 else puts (dlerror ());
11607 }
11608 /* dlclose (self); */
11609 }
11610 else
11611 puts (dlerror ());
11612
11613 return status;
11614 }
11615 _LT_EOF
11616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11617 (eval $ac_link) 2>&5
11618 ac_status=$?
11619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11621 (./conftest; exit; ) >&5 2>/dev/null
11622 lt_status=$?
11623 case x$lt_status in
11624 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11625 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11626 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11627 esac
11628 else :
11629 # compilation failed
11630 lt_cv_dlopen_self=no
11631 fi
11632 fi
11633 rm -fr conftest*
11634
11635
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11638 $as_echo "$lt_cv_dlopen_self" >&6; }
11639
11640 if test "x$lt_cv_dlopen_self" = xyes; then
11641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11643 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11644 if ${lt_cv_dlopen_self_static+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test "$cross_compiling" = yes; then :
11648 lt_cv_dlopen_self_static=cross
11649 else
11650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11651 lt_status=$lt_dlunknown
11652 cat > conftest.$ac_ext <<_LT_EOF
11653 #line 11663 "configure"
11654 #include "confdefs.h"
11655
11656 #if HAVE_DLFCN_H
11657 #include <dlfcn.h>
11658 #endif
11659
11660 #include <stdio.h>
11661
11662 #ifdef RTLD_GLOBAL
11663 # define LT_DLGLOBAL RTLD_GLOBAL
11664 #else
11665 # ifdef DL_GLOBAL
11666 # define LT_DLGLOBAL DL_GLOBAL
11667 # else
11668 # define LT_DLGLOBAL 0
11669 # endif
11670 #endif
11671
11672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11673 find out it does not work in some platform. */
11674 #ifndef LT_DLLAZY_OR_NOW
11675 # ifdef RTLD_LAZY
11676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11677 # else
11678 # ifdef DL_LAZY
11679 # define LT_DLLAZY_OR_NOW DL_LAZY
11680 # else
11681 # ifdef RTLD_NOW
11682 # define LT_DLLAZY_OR_NOW RTLD_NOW
11683 # else
11684 # ifdef DL_NOW
11685 # define LT_DLLAZY_OR_NOW DL_NOW
11686 # else
11687 # define LT_DLLAZY_OR_NOW 0
11688 # endif
11689 # endif
11690 # endif
11691 # endif
11692 #endif
11693
11694 /* When -fvisbility=hidden is used, assume the code has been annotated
11695 correspondingly for the symbols needed. */
11696 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11697 void fnord () __attribute__((visibility("default")));
11698 #endif
11699
11700 void fnord () { int i=42; }
11701 int main ()
11702 {
11703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11704 int status = $lt_dlunknown;
11705
11706 if (self)
11707 {
11708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11709 else
11710 {
11711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11712 else puts (dlerror ());
11713 }
11714 /* dlclose (self); */
11715 }
11716 else
11717 puts (dlerror ());
11718
11719 return status;
11720 }
11721 _LT_EOF
11722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11723 (eval $ac_link) 2>&5
11724 ac_status=$?
11725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11726 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11727 (./conftest; exit; ) >&5 2>/dev/null
11728 lt_status=$?
11729 case x$lt_status in
11730 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11731 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11732 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11733 esac
11734 else :
11735 # compilation failed
11736 lt_cv_dlopen_self_static=no
11737 fi
11738 fi
11739 rm -fr conftest*
11740
11741
11742 fi
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11744 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11745 fi
11746
11747 CPPFLAGS="$save_CPPFLAGS"
11748 LDFLAGS="$save_LDFLAGS"
11749 LIBS="$save_LIBS"
11750 ;;
11751 esac
11752
11753 case $lt_cv_dlopen_self in
11754 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11755 *) enable_dlopen_self=unknown ;;
11756 esac
11757
11758 case $lt_cv_dlopen_self_static in
11759 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11760 *) enable_dlopen_self_static=unknown ;;
11761 esac
11762 fi
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780 striplib=
11781 old_striplib=
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11783 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11784 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11785 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11786 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11788 $as_echo "yes" >&6; }
11789 else
11790 # FIXME - insert some real tests, host_os isn't really good enough
11791 case $host_os in
11792 darwin*)
11793 if test -n "$STRIP" ; then
11794 striplib="$STRIP -x"
11795 old_striplib="$STRIP -S"
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11797 $as_echo "yes" >&6; }
11798 else
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11800 $as_echo "no" >&6; }
11801 fi
11802 ;;
11803 *)
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805 $as_echo "no" >&6; }
11806 ;;
11807 esac
11808 fi
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821 # Report which library types will actually be built
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11823 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11825 $as_echo "$can_build_shared" >&6; }
11826
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11828 $as_echo_n "checking whether to build shared libraries... " >&6; }
11829 test "$can_build_shared" = "no" && enable_shared=no
11830
11831 # On AIX, shared libraries and static libraries use the same namespace, and
11832 # are all built from PIC.
11833 case $host_os in
11834 aix3*)
11835 test "$enable_shared" = yes && enable_static=no
11836 if test -n "$RANLIB"; then
11837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11838 postinstall_cmds='$RANLIB $lib'
11839 fi
11840 ;;
11841
11842 aix[4-9]*)
11843 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11844 test "$enable_shared" = yes && enable_static=no
11845 fi
11846 ;;
11847 esac
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11849 $as_echo "$enable_shared" >&6; }
11850
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11852 $as_echo_n "checking whether to build static libraries... " >&6; }
11853 # Make sure either enable_shared or enable_static is yes.
11854 test "$enable_shared" = yes || enable_static=yes
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11856 $as_echo "$enable_static" >&6; }
11857
11858
11859
11860
11861 fi
11862 ac_ext=c
11863 ac_cpp='$CPP $CPPFLAGS'
11864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11867
11868 CC="$lt_save_CC"
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882 # Source file extension for Go test sources.
11883 ac_ext=go
11884
11885 # Object file extension for compiled Go test sources.
11886 objext=o
11887 objext_GO=$objext
11888
11889 # Code to be used in simple compile tests
11890 lt_simple_compile_test_code="package main; func main() { }"
11891
11892 # Code to be used in simple link tests
11893 lt_simple_link_test_code='package main; func main() { }'
11894
11895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11896
11897
11898
11899
11900
11901
11902 # If no C compiler was specified, use CC.
11903 LTCC=${LTCC-"$CC"}
11904
11905 # If no C compiler flags were specified, use CFLAGS.
11906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11907
11908 # Allow CC to be a program name with arguments.
11909 compiler=$CC
11910
11911
11912 # save warnings/boilerplate of simple test code
11913 ac_outfile=conftest.$ac_objext
11914 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11916 _lt_compiler_boilerplate=`cat conftest.err`
11917 $RM conftest*
11918
11919 ac_outfile=conftest.$ac_objext
11920 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11922 _lt_linker_boilerplate=`cat conftest.err`
11923 $RM -r conftest*
11924
11925
11926 # Allow CC to be a program name with arguments.
11927 lt_save_CC="$CC"
11928 lt_save_GCC="$GCC"
11929 GCC=yes
11930 CC=${GOC-"gccgo"}
11931 compiler=$CC
11932 compiler_GO=$CC
11933 LD_GO="$LD"
11934 for cc_temp in $compiler""; do
11935 case $cc_temp in
11936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11938 \-*) ;;
11939 *) break;;
11940 esac
11941 done
11942 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11943
11944
11945 # Go did not exist at the time GCC didn't implicitly link libc in.
11946 archive_cmds_need_lc_GO=no
11947
11948 old_archive_cmds_GO=$old_archive_cmds
11949
11950 ## CAVEAT EMPTOR:
11951 ## There is no encapsulation within the following macros, do not change
11952 ## the running order or otherwise move them around unless you know exactly
11953 ## what you are doing...
11954 if test -n "$compiler"; then
11955
11956 lt_prog_compiler_no_builtin_flag_GO=
11957
11958 if test "$GCC" = yes; then
11959 case $cc_basename in
11960 nvcc*)
11961 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11962 *)
11963 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11964 esac
11965
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11967 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11968 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970 else
11971 lt_cv_prog_compiler_rtti_exceptions=no
11972 ac_outfile=conftest.$ac_objext
11973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11974 lt_compiler_flag="-fno-rtti -fno-exceptions"
11975 # Insert the option either (1) after the last *FLAGS variable, or
11976 # (2) before a word containing "conftest.", or (3) at the end.
11977 # Note that $ac_compile itself does not contain backslashes and begins
11978 # with a dollar sign (not a hyphen), so the echo should work correctly.
11979 # The option is referenced via a variable to avoid confusing sed.
11980 lt_compile=`echo "$ac_compile" | $SED \
11981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11983 -e 's:$: $lt_compiler_flag:'`
11984 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11985 (eval "$lt_compile" 2>conftest.err)
11986 ac_status=$?
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 if (exit $ac_status) && test -s "$ac_outfile"; then
11990 # The compiler can only warn and ignore the option if not recognized
11991 # So say no if there are warnings other than the usual output.
11992 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11995 lt_cv_prog_compiler_rtti_exceptions=yes
11996 fi
11997 fi
11998 $RM conftest*
11999
12000 fi
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12002 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12003
12004 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12005 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
12006 else
12007 :
12008 fi
12009
12010 fi
12011
12012
12013
12014 lt_prog_compiler_wl_GO=
12015 lt_prog_compiler_pic_GO=
12016 lt_prog_compiler_static_GO=
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12019 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12020
12021 if test "$GCC" = yes; then
12022 lt_prog_compiler_wl_GO='-Wl,'
12023 lt_prog_compiler_static_GO='-static'
12024
12025 case $host_os in
12026 aix*)
12027 # All AIX code is PIC.
12028 if test "$host_cpu" = ia64; then
12029 # AIX 5 now supports IA64 processor
12030 lt_prog_compiler_static_GO='-Bstatic'
12031 fi
12032 lt_prog_compiler_pic_GO='-fPIC'
12033 ;;
12034
12035 amigaos*)
12036 case $host_cpu in
12037 powerpc)
12038 # see comment about AmigaOS4 .so support
12039 lt_prog_compiler_pic_GO='-fPIC'
12040 ;;
12041 m68k)
12042 # FIXME: we need at least 68020 code to build shared libraries, but
12043 # adding the `-m68020' flag to GCC prevents building anything better,
12044 # like `-m68040'.
12045 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
12046 ;;
12047 esac
12048 ;;
12049
12050 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12051 # PIC is the default for these OSes.
12052 ;;
12053
12054 mingw* | cygwin* | pw32* | os2* | cegcc*)
12055 # This hack is so that the source file can tell whether it is being
12056 # built for inclusion in a dll (and should export symbols for example).
12057 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12058 # (--disable-auto-import) libraries
12059 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12060 ;;
12061
12062 darwin* | rhapsody*)
12063 # PIC is the default on this platform
12064 # Common symbols not allowed in MH_DYLIB files
12065 lt_prog_compiler_pic_GO='-fno-common'
12066 ;;
12067
12068 haiku*)
12069 # PIC is the default for Haiku.
12070 # The "-static" flag exists, but is broken.
12071 lt_prog_compiler_static_GO=
12072 ;;
12073
12074 hpux*)
12075 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12076 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12077 # sets the default TLS model and affects inlining.
12078 case $host_cpu in
12079 hppa*64*)
12080 # +Z the default
12081 ;;
12082 *)
12083 lt_prog_compiler_pic_GO='-fPIC'
12084 ;;
12085 esac
12086 ;;
12087
12088 interix[3-9]*)
12089 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12090 # Instead, we relocate shared libraries at runtime.
12091 ;;
12092
12093 msdosdjgpp*)
12094 # Just because we use GCC doesn't mean we suddenly get shared libraries
12095 # on systems that don't support them.
12096 lt_prog_compiler_can_build_shared_GO=no
12097 enable_shared=no
12098 ;;
12099
12100 *nto* | *qnx*)
12101 # QNX uses GNU C++, but need to define -shared option too, otherwise
12102 # it will coredump.
12103 lt_prog_compiler_pic_GO='-fPIC -shared'
12104 ;;
12105
12106 sysv4*MP*)
12107 if test -d /usr/nec; then
12108 lt_prog_compiler_pic_GO=-Kconform_pic
12109 fi
12110 ;;
12111
12112 *)
12113 lt_prog_compiler_pic_GO='-fPIC'
12114 ;;
12115 esac
12116
12117 case $cc_basename in
12118 nvcc*) # Cuda Compiler Driver 2.2
12119 lt_prog_compiler_wl_GO='-Xlinker '
12120 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
12121 ;;
12122 esac
12123 else
12124 # PORTME Check for flag to pass linker flags through the system compiler.
12125 case $host_os in
12126 aix*)
12127 lt_prog_compiler_wl_GO='-Wl,'
12128 if test "$host_cpu" = ia64; then
12129 # AIX 5 now supports IA64 processor
12130 lt_prog_compiler_static_GO='-Bstatic'
12131 else
12132 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
12133 fi
12134 ;;
12135
12136 mingw* | cygwin* | pw32* | os2* | cegcc*)
12137 # This hack is so that the source file can tell whether it is being
12138 # built for inclusion in a dll (and should export symbols for example).
12139 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12140 ;;
12141
12142 hpux9* | hpux10* | hpux11*)
12143 lt_prog_compiler_wl_GO='-Wl,'
12144 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12145 # not for PA HP-UX.
12146 case $host_cpu in
12147 hppa*64*|ia64*)
12148 # +Z the default
12149 ;;
12150 *)
12151 lt_prog_compiler_pic_GO='+Z'
12152 ;;
12153 esac
12154 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12155 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
12156 ;;
12157
12158 irix5* | irix6* | nonstopux*)
12159 lt_prog_compiler_wl_GO='-Wl,'
12160 # PIC (with -KPIC) is the default.
12161 lt_prog_compiler_static_GO='-non_shared'
12162 ;;
12163
12164 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12165 case $cc_basename in
12166 # old Intel for x86_64 which still supported -KPIC.
12167 ecc*)
12168 lt_prog_compiler_wl_GO='-Wl,'
12169 lt_prog_compiler_pic_GO='-KPIC'
12170 lt_prog_compiler_static_GO='-static'
12171 ;;
12172 # icc used to be incompatible with GCC.
12173 # ICC 10 doesn't accept -KPIC any more.
12174 icc* | ifort*)
12175 lt_prog_compiler_wl_GO='-Wl,'
12176 lt_prog_compiler_pic_GO='-fPIC'
12177 lt_prog_compiler_static_GO='-static'
12178 ;;
12179 # Lahey Fortran 8.1.
12180 lf95*)
12181 lt_prog_compiler_wl_GO='-Wl,'
12182 lt_prog_compiler_pic_GO='--shared'
12183 lt_prog_compiler_static_GO='--static'
12184 ;;
12185 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12186 # Portland Group compilers (*not* the Pentium gcc compiler,
12187 # which looks to be a dead project)
12188 lt_prog_compiler_wl_GO='-Wl,'
12189 lt_prog_compiler_pic_GO='-fpic'
12190 lt_prog_compiler_static_GO='-Bstatic'
12191 ;;
12192 ccc*)
12193 lt_prog_compiler_wl_GO='-Wl,'
12194 # All Alpha code is PIC.
12195 lt_prog_compiler_static_GO='-non_shared'
12196 ;;
12197 xl* | bgxl* | bgf* | mpixl*)
12198 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12199 lt_prog_compiler_wl_GO='-Wl,'
12200 lt_prog_compiler_pic_GO='-qpic'
12201 lt_prog_compiler_static_GO='-qstaticlink'
12202 ;;
12203 *)
12204 case `$CC -V 2>&1 | sed 5q` in
12205 *Sun\ F* | *Sun*Fortran*)
12206 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12207 lt_prog_compiler_pic_GO='-KPIC'
12208 lt_prog_compiler_static_GO='-Bstatic'
12209 lt_prog_compiler_wl_GO=''
12210 ;;
12211 *Sun\ C*)
12212 # Sun C 5.9
12213 lt_prog_compiler_pic_GO='-KPIC'
12214 lt_prog_compiler_static_GO='-Bstatic'
12215 lt_prog_compiler_wl_GO='-Wl,'
12216 ;;
12217 esac
12218 ;;
12219 esac
12220 ;;
12221
12222 newsos6)
12223 lt_prog_compiler_pic_GO='-KPIC'
12224 lt_prog_compiler_static_GO='-Bstatic'
12225 ;;
12226
12227 *nto* | *qnx*)
12228 # QNX uses GNU C++, but need to define -shared option too, otherwise
12229 # it will coredump.
12230 lt_prog_compiler_pic_GO='-fPIC -shared'
12231 ;;
12232
12233 osf3* | osf4* | osf5*)
12234 lt_prog_compiler_wl_GO='-Wl,'
12235 # All OSF/1 code is PIC.
12236 lt_prog_compiler_static_GO='-non_shared'
12237 ;;
12238
12239 rdos*)
12240 lt_prog_compiler_static_GO='-non_shared'
12241 ;;
12242
12243 solaris*)
12244 lt_prog_compiler_pic_GO='-KPIC'
12245 lt_prog_compiler_static_GO='-Bstatic'
12246 case $cc_basename in
12247 f77* | f90* | f95*)
12248 lt_prog_compiler_wl_GO='-Qoption ld ';;
12249 *)
12250 lt_prog_compiler_wl_GO='-Wl,';;
12251 esac
12252 ;;
12253
12254 sunos4*)
12255 lt_prog_compiler_wl_GO='-Qoption ld '
12256 lt_prog_compiler_pic_GO='-PIC'
12257 lt_prog_compiler_static_GO='-Bstatic'
12258 ;;
12259
12260 sysv4 | sysv4.2uw2* | sysv4.3*)
12261 lt_prog_compiler_wl_GO='-Wl,'
12262 lt_prog_compiler_pic_GO='-KPIC'
12263 lt_prog_compiler_static_GO='-Bstatic'
12264 ;;
12265
12266 sysv4*MP*)
12267 if test -d /usr/nec ;then
12268 lt_prog_compiler_pic_GO='-Kconform_pic'
12269 lt_prog_compiler_static_GO='-Bstatic'
12270 fi
12271 ;;
12272
12273 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12274 lt_prog_compiler_wl_GO='-Wl,'
12275 lt_prog_compiler_pic_GO='-KPIC'
12276 lt_prog_compiler_static_GO='-Bstatic'
12277 ;;
12278
12279 unicos*)
12280 lt_prog_compiler_wl_GO='-Wl,'
12281 lt_prog_compiler_can_build_shared_GO=no
12282 ;;
12283
12284 uts4*)
12285 lt_prog_compiler_pic_GO='-pic'
12286 lt_prog_compiler_static_GO='-Bstatic'
12287 ;;
12288
12289 *)
12290 lt_prog_compiler_can_build_shared_GO=no
12291 ;;
12292 esac
12293 fi
12294
12295 case $host_os in
12296 # For platforms which do not support PIC, -DPIC is meaningless:
12297 *djgpp*)
12298 lt_prog_compiler_pic_GO=
12299 ;;
12300 *)
12301 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12302 ;;
12303 esac
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12305 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
12306
12307
12308
12309 #
12310 # Check to make sure the PIC flag actually works.
12311 #
12312 if test -n "$lt_prog_compiler_pic_GO"; then
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12314 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
12315 if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
12316 $as_echo_n "(cached) " >&6
12317 else
12318 lt_cv_prog_compiler_pic_works_GO=no
12319 ac_outfile=conftest.$ac_objext
12320 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12321 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12322 # Insert the option either (1) after the last *FLAGS variable, or
12323 # (2) before a word containing "conftest.", or (3) at the end.
12324 # Note that $ac_compile itself does not contain backslashes and begins
12325 # with a dollar sign (not a hyphen), so the echo should work correctly.
12326 # The option is referenced via a variable to avoid confusing sed.
12327 lt_compile=`echo "$ac_compile" | $SED \
12328 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12329 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12330 -e 's:$: $lt_compiler_flag:'`
12331 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12332 (eval "$lt_compile" 2>conftest.err)
12333 ac_status=$?
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 if (exit $ac_status) && test -s "$ac_outfile"; then
12337 # The compiler can only warn and ignore the option if not recognized
12338 # So say no if there are warnings other than the usual output.
12339 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12340 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12341 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12342 lt_cv_prog_compiler_pic_works_GO=yes
12343 fi
12344 fi
12345 $RM conftest*
12346
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12349 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12350
12351 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12352 case $lt_prog_compiler_pic_GO in
12353 "" | " "*) ;;
12354 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12355 esac
12356 else
12357 lt_prog_compiler_pic_GO=
12358 lt_prog_compiler_can_build_shared_GO=no
12359 fi
12360
12361 fi
12362
12363
12364
12365 #
12366 # Check to make sure the static flag actually works.
12367 #
12368 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12370 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12371 if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 lt_cv_prog_compiler_static_works_GO=no
12375 save_LDFLAGS="$LDFLAGS"
12376 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12377 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12378 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12379 # The linker can only warn and ignore the option if not recognized
12380 # So say no if there are warnings
12381 if test -s conftest.err; then
12382 # Append any errors to the config.log.
12383 cat conftest.err 1>&5
12384 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12385 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12386 if diff conftest.exp conftest.er2 >/dev/null; then
12387 lt_cv_prog_compiler_static_works_GO=yes
12388 fi
12389 else
12390 lt_cv_prog_compiler_static_works_GO=yes
12391 fi
12392 fi
12393 $RM -r conftest*
12394 LDFLAGS="$save_LDFLAGS"
12395
12396 fi
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12398 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12399
12400 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12401 :
12402 else
12403 lt_prog_compiler_static_GO=
12404 fi
12405
12406
12407
12408
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12410 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12411 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12412 $as_echo_n "(cached) " >&6
12413 else
12414 lt_cv_prog_compiler_c_o_GO=no
12415 $RM -r conftest 2>/dev/null
12416 mkdir conftest
12417 cd conftest
12418 mkdir out
12419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12420
12421 lt_compiler_flag="-o out/conftest2.$ac_objext"
12422 # Insert the option either (1) after the last *FLAGS variable, or
12423 # (2) before a word containing "conftest.", or (3) at the end.
12424 # Note that $ac_compile itself does not contain backslashes and begins
12425 # with a dollar sign (not a hyphen), so the echo should work correctly.
12426 lt_compile=`echo "$ac_compile" | $SED \
12427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12429 -e 's:$: $lt_compiler_flag:'`
12430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12431 (eval "$lt_compile" 2>out/conftest.err)
12432 ac_status=$?
12433 cat out/conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12436 then
12437 # The compiler can only warn and ignore the option if not recognized
12438 # So say no if there are warnings
12439 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12440 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12441 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12442 lt_cv_prog_compiler_c_o_GO=yes
12443 fi
12444 fi
12445 chmod u+w . 2>&5
12446 $RM conftest*
12447 # SGI C++ compiler will create directory out/ii_files/ for
12448 # template instantiation
12449 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12450 $RM out/* && rmdir out
12451 cd ..
12452 $RM -r conftest
12453 $RM conftest*
12454
12455 fi
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12457 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12458
12459
12460
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12462 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12463 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12464 $as_echo_n "(cached) " >&6
12465 else
12466 lt_cv_prog_compiler_c_o_GO=no
12467 $RM -r conftest 2>/dev/null
12468 mkdir conftest
12469 cd conftest
12470 mkdir out
12471 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12472
12473 lt_compiler_flag="-o out/conftest2.$ac_objext"
12474 # Insert the option either (1) after the last *FLAGS variable, or
12475 # (2) before a word containing "conftest.", or (3) at the end.
12476 # Note that $ac_compile itself does not contain backslashes and begins
12477 # with a dollar sign (not a hyphen), so the echo should work correctly.
12478 lt_compile=`echo "$ac_compile" | $SED \
12479 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12480 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12481 -e 's:$: $lt_compiler_flag:'`
12482 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12483 (eval "$lt_compile" 2>out/conftest.err)
12484 ac_status=$?
12485 cat out/conftest.err >&5
12486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12488 then
12489 # The compiler can only warn and ignore the option if not recognized
12490 # So say no if there are warnings
12491 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12492 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12493 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12494 lt_cv_prog_compiler_c_o_GO=yes
12495 fi
12496 fi
12497 chmod u+w . 2>&5
12498 $RM conftest*
12499 # SGI C++ compiler will create directory out/ii_files/ for
12500 # template instantiation
12501 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12502 $RM out/* && rmdir out
12503 cd ..
12504 $RM -r conftest
12505 $RM conftest*
12506
12507 fi
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12509 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12510
12511
12512
12513
12514 hard_links="nottested"
12515 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12516 # do not overwrite the value of need_locks provided by the user
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12518 $as_echo_n "checking if we can lock with hard links... " >&6; }
12519 hard_links=yes
12520 $RM conftest*
12521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12522 touch conftest.a
12523 ln conftest.a conftest.b 2>&5 || hard_links=no
12524 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12526 $as_echo "$hard_links" >&6; }
12527 if test "$hard_links" = no; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12529 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12530 need_locks=warn
12531 fi
12532 else
12533 need_locks=no
12534 fi
12535
12536
12537
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12539 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12540
12541 runpath_var=
12542 allow_undefined_flag_GO=
12543 always_export_symbols_GO=no
12544 archive_cmds_GO=
12545 archive_expsym_cmds_GO=
12546 compiler_needs_object_GO=no
12547 enable_shared_with_static_runtimes_GO=no
12548 export_dynamic_flag_spec_GO=
12549 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12550 hardcode_automatic_GO=no
12551 hardcode_direct_GO=no
12552 hardcode_direct_absolute_GO=no
12553 hardcode_libdir_flag_spec_GO=
12554 hardcode_libdir_flag_spec_ld_GO=
12555 hardcode_libdir_separator_GO=
12556 hardcode_minus_L_GO=no
12557 hardcode_shlibpath_var_GO=unsupported
12558 inherit_rpath_GO=no
12559 link_all_deplibs_GO=unknown
12560 module_cmds_GO=
12561 module_expsym_cmds_GO=
12562 old_archive_from_new_cmds_GO=
12563 old_archive_from_expsyms_cmds_GO=
12564 thread_safe_flag_spec_GO=
12565 whole_archive_flag_spec_GO=
12566 # include_expsyms should be a list of space-separated symbols to be *always*
12567 # included in the symbol list
12568 include_expsyms_GO=
12569 # exclude_expsyms can be an extended regexp of symbols to exclude
12570 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12571 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12572 # as well as any symbol that contains `d'.
12573 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12574 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12575 # platforms (ab)use it in PIC code, but their linkers get confused if
12576 # the symbol is explicitly referenced. Since portable code cannot
12577 # rely on this symbol name, it's probably fine to never include it in
12578 # preloaded symbol tables.
12579 # Exclude shared library initialization/finalization symbols.
12580 extract_expsyms_cmds=
12581
12582 case $host_os in
12583 cygwin* | mingw* | pw32* | cegcc*)
12584 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12585 # When not using gcc, we currently assume that we are using
12586 # Microsoft Visual C++.
12587 if test "$GCC" != yes; then
12588 with_gnu_ld=no
12589 fi
12590 ;;
12591 interix*)
12592 # we just hope/assume this is gcc and not c89 (= MSVC++)
12593 with_gnu_ld=yes
12594 ;;
12595 openbsd*)
12596 with_gnu_ld=no
12597 ;;
12598 esac
12599
12600 ld_shlibs_GO=yes
12601
12602 # On some targets, GNU ld is compatible enough with the native linker
12603 # that we're better off using the native interface for both.
12604 lt_use_gnu_ld_interface=no
12605 if test "$with_gnu_ld" = yes; then
12606 case $host_os in
12607 aix*)
12608 # The AIX port of GNU ld has always aspired to compatibility
12609 # with the native linker. However, as the warning in the GNU ld
12610 # block says, versions before 2.19.5* couldn't really create working
12611 # shared libraries, regardless of the interface used.
12612 case `$LD -v 2>&1` in
12613 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12614 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12615 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12616 *)
12617 lt_use_gnu_ld_interface=yes
12618 ;;
12619 esac
12620 ;;
12621 *)
12622 lt_use_gnu_ld_interface=yes
12623 ;;
12624 esac
12625 fi
12626
12627 if test "$lt_use_gnu_ld_interface" = yes; then
12628 # If archive_cmds runs LD, not CC, wlarc should be empty
12629 wlarc='${wl}'
12630
12631 # Set some defaults for GNU ld with shared library support. These
12632 # are reset later if shared libraries are not supported. Putting them
12633 # here allows them to be overridden if necessary.
12634 runpath_var=LD_RUN_PATH
12635 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12636 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12637 # ancient GNU ld didn't support --whole-archive et. al.
12638 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12639 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12640 else
12641 whole_archive_flag_spec_GO=
12642 fi
12643 supports_anon_versioning=no
12644 case `$LD -v 2>&1` in
12645 *GNU\ gold*) supports_anon_versioning=yes ;;
12646 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12647 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12648 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12649 *\ 2.11.*) ;; # other 2.11 versions
12650 *) supports_anon_versioning=yes ;;
12651 esac
12652
12653 # See if GNU ld supports shared libraries.
12654 case $host_os in
12655 aix[3-9]*)
12656 # On AIX/PPC, the GNU linker is very broken
12657 if test "$host_cpu" != ia64; then
12658 ld_shlibs_GO=no
12659 cat <<_LT_EOF 1>&2
12660
12661 *** Warning: the GNU linker, at least up to release 2.19, is reported
12662 *** to be unable to reliably create shared libraries on AIX.
12663 *** Therefore, libtool is disabling shared libraries support. If you
12664 *** really care for shared libraries, you may want to install binutils
12665 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12666 *** You will then need to restart the configuration process.
12667
12668 _LT_EOF
12669 fi
12670 ;;
12671
12672 amigaos*)
12673 case $host_cpu in
12674 powerpc)
12675 # see comment about AmigaOS4 .so support
12676 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12677 archive_expsym_cmds_GO=''
12678 ;;
12679 m68k)
12680 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)'
12681 hardcode_libdir_flag_spec_GO='-L$libdir'
12682 hardcode_minus_L_GO=yes
12683 ;;
12684 esac
12685 ;;
12686
12687 beos*)
12688 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12689 allow_undefined_flag_GO=unsupported
12690 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12691 # support --undefined. This deserves some investigation. FIXME
12692 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12693 else
12694 ld_shlibs_GO=no
12695 fi
12696 ;;
12697
12698 cygwin* | mingw* | pw32* | cegcc*)
12699 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12700 # as there is no search path for DLLs.
12701 hardcode_libdir_flag_spec_GO='-L$libdir'
12702 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12703 allow_undefined_flag_GO=unsupported
12704 always_export_symbols_GO=no
12705 enable_shared_with_static_runtimes_GO=yes
12706 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12707
12708 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12709 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12710 # If the export-symbols file already is a .def file (1st line
12711 # is EXPORTS), use it as is; otherwise, prepend...
12712 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12713 cp $export_symbols $output_objdir/$soname.def;
12714 else
12715 echo EXPORTS > $output_objdir/$soname.def;
12716 cat $export_symbols >> $output_objdir/$soname.def;
12717 fi~
12718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12719 else
12720 ld_shlibs_GO=no
12721 fi
12722 ;;
12723
12724 haiku*)
12725 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12726 link_all_deplibs_GO=yes
12727 ;;
12728
12729 interix[3-9]*)
12730 hardcode_direct_GO=no
12731 hardcode_shlibpath_var_GO=no
12732 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12733 export_dynamic_flag_spec_GO='${wl}-E'
12734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12735 # Instead, shared libraries are loaded at an image base (0x10000000 by
12736 # default) and relocated if they conflict, which is a slow very memory
12737 # consuming and fragmenting process. To avoid this, we pick a random,
12738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12739 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12740 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'
12741 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'
12742 ;;
12743
12744 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12745 tmp_diet=no
12746 if test "$host_os" = linux-dietlibc; then
12747 case $cc_basename in
12748 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12749 esac
12750 fi
12751 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12752 && test "$tmp_diet" = no
12753 then
12754 tmp_addflag=
12755 tmp_sharedflag='-shared'
12756 case $cc_basename,$host_cpu in
12757 pgcc*) # Portland Group C compiler
12758 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'
12759 tmp_addflag=' $pic_flag'
12760 ;;
12761 pgf77* | pgf90* | pgf95* | pgfortran*)
12762 # Portland Group f77 and f90 compilers
12763 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'
12764 tmp_addflag=' $pic_flag -Mnomain' ;;
12765 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12766 tmp_addflag=' -i_dynamic' ;;
12767 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12768 tmp_addflag=' -i_dynamic -nofor_main' ;;
12769 ifc* | ifort*) # Intel Fortran compiler
12770 tmp_addflag=' -nofor_main' ;;
12771 lf95*) # Lahey Fortran 8.1
12772 whole_archive_flag_spec_GO=
12773 tmp_sharedflag='--shared' ;;
12774 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12775 tmp_sharedflag='-qmkshrobj'
12776 tmp_addflag= ;;
12777 nvcc*) # Cuda Compiler Driver 2.2
12778 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'
12779 compiler_needs_object_GO=yes
12780 ;;
12781 esac
12782 case `$CC -V 2>&1 | sed 5q` in
12783 *Sun\ C*) # Sun C 5.9
12784 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'
12785 compiler_needs_object_GO=yes
12786 tmp_sharedflag='-G' ;;
12787 *Sun\ F*) # Sun Fortran 8.3
12788 tmp_sharedflag='-G' ;;
12789 esac
12790 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12791
12792 if test "x$supports_anon_versioning" = xyes; then
12793 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12795 echo "local: *; };" >> $output_objdir/$libname.ver~
12796 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12797 fi
12798
12799 case $cc_basename in
12800 xlf* | bgf* | bgxlf* | mpixlf*)
12801 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12802 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12803 hardcode_libdir_flag_spec_GO=
12804 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12805 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12806 if test "x$supports_anon_versioning" = xyes; then
12807 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12808 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12809 echo "local: *; };" >> $output_objdir/$libname.ver~
12810 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12811 fi
12812 ;;
12813 esac
12814 else
12815 ld_shlibs_GO=no
12816 fi
12817 ;;
12818
12819 netbsd*)
12820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12821 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12822 wlarc=
12823 else
12824 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12825 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12826 fi
12827 ;;
12828
12829 solaris*)
12830 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12831 ld_shlibs_GO=no
12832 cat <<_LT_EOF 1>&2
12833
12834 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12835 *** create shared libraries on Solaris systems. Therefore, libtool
12836 *** is disabling shared libraries support. We urge you to upgrade GNU
12837 *** binutils to release 2.9.1 or newer. Another option is to modify
12838 *** your PATH or compiler configuration so that the native linker is
12839 *** used, and then restart.
12840
12841 _LT_EOF
12842 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12843 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12844 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12845 else
12846 ld_shlibs_GO=no
12847 fi
12848 ;;
12849
12850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12851 case `$LD -v 2>&1` in
12852 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12853 ld_shlibs_GO=no
12854 cat <<_LT_EOF 1>&2
12855
12856 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12857 *** reliably create shared libraries on SCO systems. Therefore, libtool
12858 *** is disabling shared libraries support. We urge you to upgrade GNU
12859 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12860 *** your PATH or compiler configuration so that the native linker is
12861 *** used, and then restart.
12862
12863 _LT_EOF
12864 ;;
12865 *)
12866 # For security reasons, it is highly recommended that you always
12867 # use absolute paths for naming shared libraries, and exclude the
12868 # DT_RUNPATH tag from executables and libraries. But doing so
12869 # requires that you compile everything twice, which is a pain.
12870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12871 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12872 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12873 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12874 else
12875 ld_shlibs_GO=no
12876 fi
12877 ;;
12878 esac
12879 ;;
12880
12881 sunos4*)
12882 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12883 wlarc=
12884 hardcode_direct_GO=yes
12885 hardcode_shlibpath_var_GO=no
12886 ;;
12887
12888 *)
12889 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12890 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12891 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12892 else
12893 ld_shlibs_GO=no
12894 fi
12895 ;;
12896 esac
12897
12898 if test "$ld_shlibs_GO" = no; then
12899 runpath_var=
12900 hardcode_libdir_flag_spec_GO=
12901 export_dynamic_flag_spec_GO=
12902 whole_archive_flag_spec_GO=
12903 fi
12904 else
12905 # PORTME fill in a description of your system's linker (not GNU ld)
12906 case $host_os in
12907 aix3*)
12908 allow_undefined_flag_GO=unsupported
12909 always_export_symbols_GO=yes
12910 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'
12911 # Note: this linker hardcodes the directories in LIBPATH if there
12912 # are no directories specified by -L.
12913 hardcode_minus_L_GO=yes
12914 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12915 # Neither direct hardcoding nor static linking is supported with a
12916 # broken collect2.
12917 hardcode_direct_GO=unsupported
12918 fi
12919 ;;
12920
12921 aix[4-9]*)
12922 if test "$host_cpu" = ia64; then
12923 # On IA64, the linker does run time linking by default, so we don't
12924 # have to do anything special.
12925 aix_use_runtimelinking=no
12926 exp_sym_flag='-Bexport'
12927 no_entry_flag=""
12928 else
12929 # If we're using GNU nm, then we don't want the "-C" option.
12930 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12931 # Also, AIX nm treats weak defined symbols like other global
12932 # defined symbols, whereas GNU nm marks them as "W".
12933 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12934 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'
12935 else
12936 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'
12937 fi
12938 aix_use_runtimelinking=no
12939
12940 # Test if we are trying to use run time linking or normal
12941 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12942 # need to do runtime linking.
12943 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12944 for ld_flag in $LDFLAGS; do
12945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12946 aix_use_runtimelinking=yes
12947 break
12948 fi
12949 done
12950 ;;
12951 esac
12952
12953 exp_sym_flag='-bexport'
12954 no_entry_flag='-bnoentry'
12955 fi
12956
12957 # When large executables or shared objects are built, AIX ld can
12958 # have problems creating the table of contents. If linking a library
12959 # or program results in "error TOC overflow" add -mminimal-toc to
12960 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12961 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12962
12963 archive_cmds_GO=''
12964 hardcode_direct_GO=yes
12965 hardcode_direct_absolute_GO=yes
12966 hardcode_libdir_separator_GO=':'
12967 link_all_deplibs_GO=yes
12968 file_list_spec_GO='${wl}-f,'
12969
12970 if test "$GCC" = yes; then
12971 case $host_os in aix4.[012]|aix4.[012].*)
12972 # We only want to do this on AIX 4.2 and lower, the check
12973 # below for broken collect2 doesn't work under 4.3+
12974 collect2name=`${CC} -print-prog-name=collect2`
12975 if test -f "$collect2name" &&
12976 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12977 then
12978 # We have reworked collect2
12979 :
12980 else
12981 # We have old collect2
12982 hardcode_direct_GO=unsupported
12983 # It fails to find uninstalled libraries when the uninstalled
12984 # path is not listed in the libpath. Setting hardcode_minus_L
12985 # to unsupported forces relinking
12986 hardcode_minus_L_GO=yes
12987 hardcode_libdir_flag_spec_GO='-L$libdir'
12988 hardcode_libdir_separator_GO=
12989 fi
12990 ;;
12991 esac
12992 shared_flag='-shared'
12993 if test "$aix_use_runtimelinking" = yes; then
12994 shared_flag="$shared_flag "'${wl}-G'
12995 fi
12996 else
12997 # not using gcc
12998 if test "$host_cpu" = ia64; then
12999 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13000 # chokes on -Wl,-G. The following line is correct:
13001 shared_flag='-G'
13002 else
13003 if test "$aix_use_runtimelinking" = yes; then
13004 shared_flag='${wl}-G'
13005 else
13006 shared_flag='${wl}-bM:SRE'
13007 fi
13008 fi
13009 fi
13010
13011 export_dynamic_flag_spec_GO='${wl}-bexpall'
13012 # It seems that -bexpall does not export symbols beginning with
13013 # underscore (_), so it is better to generate a list of symbols to export.
13014 always_export_symbols_GO=yes
13015 if test "$aix_use_runtimelinking" = yes; then
13016 # Warning - without using the other runtime loading flags (-brtl),
13017 # -berok will link without error, but may produce a broken library.
13018 allow_undefined_flag_GO='-berok'
13019 # Determine the default libpath from the value encoded in an
13020 # empty executable.
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h. */
13023
13024 int
13025 main ()
13026 {
13027
13028 ;
13029 return 0;
13030 }
13031 _ACEOF
13032 if ac_fn_c_try_link "$LINENO"; then :
13033
13034 lt_aix_libpath_sed='
13035 /Import File Strings/,/^$/ {
13036 /^0/ {
13037 s/^0 *\(.*\)$/\1/
13038 p
13039 }
13040 }'
13041 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13042 # Check for a 64-bit object if we didn't find anything.
13043 if test -z "$aix_libpath"; then
13044 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13045 fi
13046 fi
13047 rm -f core conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext conftest.$ac_ext
13049 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13050
13051 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13052 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"
13053 else
13054 if test "$host_cpu" = ia64; then
13055 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
13056 allow_undefined_flag_GO="-z nodefs"
13057 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"
13058 else
13059 # Determine the default libpath from the value encoded in an
13060 # empty executable.
13061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h. */
13063
13064 int
13065 main ()
13066 {
13067
13068 ;
13069 return 0;
13070 }
13071 _ACEOF
13072 if ac_fn_c_try_link "$LINENO"; then :
13073
13074 lt_aix_libpath_sed='
13075 /Import File Strings/,/^$/ {
13076 /^0/ {
13077 s/^0 *\(.*\)$/\1/
13078 p
13079 }
13080 }'
13081 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082 # Check for a 64-bit object if we didn't find anything.
13083 if test -z "$aix_libpath"; then
13084 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13085 fi
13086 fi
13087 rm -f core conftest.err conftest.$ac_objext \
13088 conftest$ac_exeext conftest.$ac_ext
13089 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13090
13091 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13092 # Warning - without using the other run time loading flags,
13093 # -berok will link without error, but may produce a broken library.
13094 no_undefined_flag_GO=' ${wl}-bernotok'
13095 allow_undefined_flag_GO=' ${wl}-berok'
13096 if test "$with_gnu_ld" = yes; then
13097 # We only use this code for GNU lds that support --whole-archive.
13098 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13099 else
13100 # Exported symbols can be pulled into shared objects from archives
13101 whole_archive_flag_spec_GO='$convenience'
13102 fi
13103 archive_cmds_need_lc_GO=yes
13104 # This is similar to how AIX traditionally builds its shared libraries.
13105 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'
13106 fi
13107 fi
13108 ;;
13109
13110 amigaos*)
13111 case $host_cpu in
13112 powerpc)
13113 # see comment about AmigaOS4 .so support
13114 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13115 archive_expsym_cmds_GO=''
13116 ;;
13117 m68k)
13118 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)'
13119 hardcode_libdir_flag_spec_GO='-L$libdir'
13120 hardcode_minus_L_GO=yes
13121 ;;
13122 esac
13123 ;;
13124
13125 bsdi[45]*)
13126 export_dynamic_flag_spec_GO=-rdynamic
13127 ;;
13128
13129 cygwin* | mingw* | pw32* | cegcc*)
13130 # When not using gcc, we currently assume that we are using
13131 # Microsoft Visual C++.
13132 # hardcode_libdir_flag_spec is actually meaningless, as there is
13133 # no search path for DLLs.
13134 hardcode_libdir_flag_spec_GO=' '
13135 allow_undefined_flag_GO=unsupported
13136 # Tell ltmain to make .lib files, not .a files.
13137 libext=lib
13138 # Tell ltmain to make .dll files, not .so files.
13139 shrext_cmds=".dll"
13140 # FIXME: Setting linknames here is a bad hack.
13141 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13142 # The linker will automatically build a .lib file if we build a DLL.
13143 old_archive_from_new_cmds_GO='true'
13144 # FIXME: Should let the user specify the lib program.
13145 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
13146 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
13147 enable_shared_with_static_runtimes_GO=yes
13148 ;;
13149
13150 darwin* | rhapsody*)
13151
13152
13153 archive_cmds_need_lc_GO=no
13154 hardcode_direct_GO=no
13155 hardcode_automatic_GO=yes
13156 hardcode_shlibpath_var_GO=unsupported
13157 if test "$lt_cv_ld_force_load" = "yes"; then
13158 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\"`'
13159 else
13160 whole_archive_flag_spec_GO=''
13161 fi
13162 link_all_deplibs_GO=yes
13163 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
13164 case $cc_basename in
13165 ifort*) _lt_dar_can_shared=yes ;;
13166 *) _lt_dar_can_shared=$GCC ;;
13167 esac
13168 if test "$_lt_dar_can_shared" = "yes"; then
13169 output_verbose_link_cmd=func_echo_all
13170 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}"
13171 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13172 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}"
13173 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}"
13174
13175 else
13176 ld_shlibs_GO=no
13177 fi
13178
13179 ;;
13180
13181 dgux*)
13182 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13183 hardcode_libdir_flag_spec_GO='-L$libdir'
13184 hardcode_shlibpath_var_GO=no
13185 ;;
13186
13187 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13188 # support. Future versions do this automatically, but an explicit c++rt0.o
13189 # does not break anything, and helps significantly (at the cost of a little
13190 # extra space).
13191 freebsd2.2*)
13192 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13193 hardcode_libdir_flag_spec_GO='-R$libdir'
13194 hardcode_direct_GO=yes
13195 hardcode_shlibpath_var_GO=no
13196 ;;
13197
13198 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13199 freebsd2.*)
13200 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13201 hardcode_direct_GO=yes
13202 hardcode_minus_L_GO=yes
13203 hardcode_shlibpath_var_GO=no
13204 ;;
13205
13206 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13207 freebsd* | dragonfly*)
13208 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13209 hardcode_libdir_flag_spec_GO='-R$libdir'
13210 hardcode_direct_GO=yes
13211 hardcode_shlibpath_var_GO=no
13212 ;;
13213
13214 hpux9*)
13215 if test "$GCC" = yes; then
13216 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'
13217 else
13218 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'
13219 fi
13220 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13221 hardcode_libdir_separator_GO=:
13222 hardcode_direct_GO=yes
13223
13224 # hardcode_minus_L: Not really in the search PATH,
13225 # but as the default location of the library.
13226 hardcode_minus_L_GO=yes
13227 export_dynamic_flag_spec_GO='${wl}-E'
13228 ;;
13229
13230 hpux10*)
13231 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13232 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13233 else
13234 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13235 fi
13236 if test "$with_gnu_ld" = no; then
13237 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13238 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13239 hardcode_libdir_separator_GO=:
13240 hardcode_direct_GO=yes
13241 hardcode_direct_absolute_GO=yes
13242 export_dynamic_flag_spec_GO='${wl}-E'
13243 # hardcode_minus_L: Not really in the search PATH,
13244 # but as the default location of the library.
13245 hardcode_minus_L_GO=yes
13246 fi
13247 ;;
13248
13249 hpux11*)
13250 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13251 case $host_cpu in
13252 hppa*64*)
13253 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13254 ;;
13255 ia64*)
13256 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13257 ;;
13258 *)
13259 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13260 ;;
13261 esac
13262 else
13263 case $host_cpu in
13264 hppa*64*)
13265 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13266 ;;
13267 ia64*)
13268 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13269 ;;
13270 *)
13271 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13272 ;;
13273 esac
13274 fi
13275 if test "$with_gnu_ld" = no; then
13276 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13277 hardcode_libdir_separator_GO=:
13278
13279 case $host_cpu in
13280 hppa*64*|ia64*)
13281 hardcode_direct_GO=no
13282 hardcode_shlibpath_var_GO=no
13283 ;;
13284 *)
13285 hardcode_direct_GO=yes
13286 hardcode_direct_absolute_GO=yes
13287 export_dynamic_flag_spec_GO='${wl}-E'
13288
13289 # hardcode_minus_L: Not really in the search PATH,
13290 # but as the default location of the library.
13291 hardcode_minus_L_GO=yes
13292 ;;
13293 esac
13294 fi
13295 ;;
13296
13297 irix5* | irix6* | nonstopux*)
13298 if test "$GCC" = yes; then
13299 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'
13300 # Try to use the -exported_symbol ld option, if it does not
13301 # work, assume that -exports_file does not work either and
13302 # implicitly export all symbols.
13303 save_LDFLAGS="$LDFLAGS"
13304 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 int foo(void) {}
13308 _ACEOF
13309 if ac_fn_c_try_link "$LINENO"; then :
13310 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'
13311
13312 fi
13313 rm -f core conftest.err conftest.$ac_objext \
13314 conftest$ac_exeext conftest.$ac_ext
13315 LDFLAGS="$save_LDFLAGS"
13316 else
13317 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'
13318 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'
13319 fi
13320 archive_cmds_need_lc_GO='no'
13321 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13322 hardcode_libdir_separator_GO=:
13323 inherit_rpath_GO=yes
13324 link_all_deplibs_GO=yes
13325 ;;
13326
13327 netbsd*)
13328 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13329 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13330 else
13331 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13332 fi
13333 hardcode_libdir_flag_spec_GO='-R$libdir'
13334 hardcode_direct_GO=yes
13335 hardcode_shlibpath_var_GO=no
13336 ;;
13337
13338 newsos6)
13339 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13340 hardcode_direct_GO=yes
13341 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13342 hardcode_libdir_separator_GO=:
13343 hardcode_shlibpath_var_GO=no
13344 ;;
13345
13346 *nto* | *qnx*)
13347 ;;
13348
13349 openbsd*)
13350 if test -f /usr/libexec/ld.so; then
13351 hardcode_direct_GO=yes
13352 hardcode_shlibpath_var_GO=no
13353 hardcode_direct_absolute_GO=yes
13354 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13355 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13356 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13357 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13358 export_dynamic_flag_spec_GO='${wl}-E'
13359 else
13360 case $host_os in
13361 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13362 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13363 hardcode_libdir_flag_spec_GO='-R$libdir'
13364 ;;
13365 *)
13366 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13367 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13368 ;;
13369 esac
13370 fi
13371 else
13372 ld_shlibs_GO=no
13373 fi
13374 ;;
13375
13376 os2*)
13377 hardcode_libdir_flag_spec_GO='-L$libdir'
13378 hardcode_minus_L_GO=yes
13379 allow_undefined_flag_GO=unsupported
13380 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'
13381 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13382 ;;
13383
13384 osf3*)
13385 if test "$GCC" = yes; then
13386 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13387 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'
13388 else
13389 allow_undefined_flag_GO=' -expect_unresolved \*'
13390 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'
13391 fi
13392 archive_cmds_need_lc_GO='no'
13393 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13394 hardcode_libdir_separator_GO=:
13395 ;;
13396
13397 osf4* | osf5*) # as osf3* with the addition of -msym flag
13398 if test "$GCC" = yes; then
13399 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13400 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'
13401 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13402 else
13403 allow_undefined_flag_GO=' -expect_unresolved \*'
13404 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'
13405 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~
13406 $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'
13407
13408 # Both c and cxx compiler support -rpath directly
13409 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13410 fi
13411 archive_cmds_need_lc_GO='no'
13412 hardcode_libdir_separator_GO=:
13413 ;;
13414
13415 solaris*)
13416 no_undefined_flag_GO=' -z defs'
13417 if test "$GCC" = yes; then
13418 wlarc='${wl}'
13419 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13420 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13421 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13422 else
13423 case `$CC -V 2>&1` in
13424 *"Compilers 5.0"*)
13425 wlarc=''
13426 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13427 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13428 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13429 ;;
13430 *)
13431 wlarc='${wl}'
13432 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13433 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13434 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13435 ;;
13436 esac
13437 fi
13438 hardcode_libdir_flag_spec_GO='-R$libdir'
13439 hardcode_shlibpath_var_GO=no
13440 case $host_os in
13441 solaris2.[0-5] | solaris2.[0-5].*) ;;
13442 *)
13443 # The compiler driver will combine and reorder linker options,
13444 # but understands `-z linker_flag'. GCC discards it without `$wl',
13445 # but is careful enough not to reorder.
13446 # Supported since Solaris 2.6 (maybe 2.5.1?)
13447 if test "$GCC" = yes; then
13448 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13449 else
13450 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13451 fi
13452 ;;
13453 esac
13454 link_all_deplibs_GO=yes
13455 ;;
13456
13457 sunos4*)
13458 if test "x$host_vendor" = xsequent; then
13459 # Use $CC to link under sequent, because it throws in some extra .o
13460 # files that make .init and .fini sections work.
13461 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13462 else
13463 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13464 fi
13465 hardcode_libdir_flag_spec_GO='-L$libdir'
13466 hardcode_direct_GO=yes
13467 hardcode_minus_L_GO=yes
13468 hardcode_shlibpath_var_GO=no
13469 ;;
13470
13471 sysv4)
13472 case $host_vendor in
13473 sni)
13474 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475 hardcode_direct_GO=yes # is this really true???
13476 ;;
13477 siemens)
13478 ## LD is ld it makes a PLAMLIB
13479 ## CC just makes a GrossModule.
13480 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13481 reload_cmds_GO='$CC -r -o $output$reload_objs'
13482 hardcode_direct_GO=no
13483 ;;
13484 motorola)
13485 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13486 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13487 ;;
13488 esac
13489 runpath_var='LD_RUN_PATH'
13490 hardcode_shlibpath_var_GO=no
13491 ;;
13492
13493 sysv4.3*)
13494 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_shlibpath_var_GO=no
13496 export_dynamic_flag_spec_GO='-Bexport'
13497 ;;
13498
13499 sysv4*MP*)
13500 if test -d /usr/nec; then
13501 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13502 hardcode_shlibpath_var_GO=no
13503 runpath_var=LD_RUN_PATH
13504 hardcode_runpath_var=yes
13505 ld_shlibs_GO=yes
13506 fi
13507 ;;
13508
13509 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13510 no_undefined_flag_GO='${wl}-z,text'
13511 archive_cmds_need_lc_GO=no
13512 hardcode_shlibpath_var_GO=no
13513 runpath_var='LD_RUN_PATH'
13514
13515 if test "$GCC" = yes; then
13516 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13518 else
13519 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 fi
13522 ;;
13523
13524 sysv5* | sco3.2v5* | sco5v6*)
13525 # Note: We can NOT use -z defs as we might desire, because we do not
13526 # link with -lc, and that would cause any symbols used from libc to
13527 # always be unresolved, which means just about no library would
13528 # ever link correctly. If we're not using GNU ld we use -z text
13529 # though, which does catch some bad symbols but isn't as heavy-handed
13530 # as -z defs.
13531 no_undefined_flag_GO='${wl}-z,text'
13532 allow_undefined_flag_GO='${wl}-z,nodefs'
13533 archive_cmds_need_lc_GO=no
13534 hardcode_shlibpath_var_GO=no
13535 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13536 hardcode_libdir_separator_GO=':'
13537 link_all_deplibs_GO=yes
13538 export_dynamic_flag_spec_GO='${wl}-Bexport'
13539 runpath_var='LD_RUN_PATH'
13540
13541 if test "$GCC" = yes; then
13542 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13543 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13544 else
13545 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13546 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13547 fi
13548 ;;
13549
13550 uts4*)
13551 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552 hardcode_libdir_flag_spec_GO='-L$libdir'
13553 hardcode_shlibpath_var_GO=no
13554 ;;
13555
13556 *)
13557 ld_shlibs_GO=no
13558 ;;
13559 esac
13560
13561 if test x$host_vendor = xsni; then
13562 case $host in
13563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13564 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13565 ;;
13566 esac
13567 fi
13568 fi
13569
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13571 $as_echo "$ld_shlibs_GO" >&6; }
13572 test "$ld_shlibs_GO" = no && can_build_shared=no
13573
13574 with_gnu_ld_GO=$with_gnu_ld
13575
13576
13577
13578
13579
13580
13581 #
13582 # Do we need to explicitly link libc?
13583 #
13584 case "x$archive_cmds_need_lc_GO" in
13585 x|xyes)
13586 # Assume -lc should be added
13587 archive_cmds_need_lc_GO=yes
13588
13589 if test "$enable_shared" = yes && test "$GCC" = yes; then
13590 case $archive_cmds_GO in
13591 *'~'*)
13592 # FIXME: we may have to deal with multi-command sequences.
13593 ;;
13594 '$CC '*)
13595 # Test whether the compiler implicitly links with -lc since on some
13596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13597 # to ld, don't add -lc before -lgcc.
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13599 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13600 if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
13601 $as_echo_n "(cached) " >&6
13602 else
13603 $RM conftest*
13604 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13605
13606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13607 (eval $ac_compile) 2>&5
13608 ac_status=$?
13609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13610 test $ac_status = 0; } 2>conftest.err; then
13611 soname=conftest
13612 lib=conftest
13613 libobjs=conftest.$ac_objext
13614 deplibs=
13615 wl=$lt_prog_compiler_wl_GO
13616 pic_flag=$lt_prog_compiler_pic_GO
13617 compiler_flags=-v
13618 linker_flags=-v
13619 verstring=
13620 output_objdir=.
13621 libname=conftest
13622 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13623 allow_undefined_flag_GO=
13624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13625 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13626 ac_status=$?
13627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13628 test $ac_status = 0; }
13629 then
13630 lt_cv_archive_cmds_need_lc_GO=no
13631 else
13632 lt_cv_archive_cmds_need_lc_GO=yes
13633 fi
13634 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13635 else
13636 cat conftest.err 1>&5
13637 fi
13638 $RM conftest*
13639
13640 fi
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13642 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13643 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13644 ;;
13645 esac
13646 fi
13647 ;;
13648 esac
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13714 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13715 hardcode_action_GO=
13716 if test -n "$hardcode_libdir_flag_spec_GO" ||
13717 test -n "$runpath_var_GO" ||
13718 test "X$hardcode_automatic_GO" = "Xyes" ; then
13719
13720 # We can hardcode non-existent directories.
13721 if test "$hardcode_direct_GO" != no &&
13722 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13723 # have to relink, otherwise we might link with an installed library
13724 # when we should be linking with a yet-to-be-installed one
13725 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13726 test "$hardcode_minus_L_GO" != no; then
13727 # Linking always hardcodes the temporary library directory.
13728 hardcode_action_GO=relink
13729 else
13730 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13731 hardcode_action_GO=immediate
13732 fi
13733 else
13734 # We cannot hardcode anything, or else we can only hardcode existing
13735 # directories.
13736 hardcode_action_GO=unsupported
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13739 $as_echo "$hardcode_action_GO" >&6; }
13740
13741 if test "$hardcode_action_GO" = relink ||
13742 test "$inherit_rpath_GO" = yes; then
13743 # Fast installation is not supported
13744 enable_fast_install=no
13745 elif test "$shlibpath_overrides_runpath" = yes ||
13746 test "$enable_shared" = no; then
13747 # Fast installation is not necessary
13748 enable_fast_install=needless
13749 fi
13750
13751
13752
13753
13754
13755
13756
13757 fi
13758
13759 ac_ext=c
13760 ac_cpp='$CPP $CPPFLAGS'
13761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13764
13765
13766 GCC=$lt_save_GCC
13767 CC="$lt_save_CC"
13768
13769
13770
13771
13772 ac_config_commands="$ac_config_commands libtool"
13773
13774
13775
13776
13777 # Only expand once:
13778
13779
13780
13781
13782
13783 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13784
13785
13786 for ac_prog in gawk mawk nawk awk
13787 do
13788 # Extract the first word of "$ac_prog", so it can be a program name with args.
13789 set dummy $ac_prog; ac_word=$2
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13791 $as_echo_n "checking for $ac_word... " >&6; }
13792 if ${ac_cv_prog_AWK+:} false; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 if test -n "$AWK"; then
13796 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13797 else
13798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13799 for as_dir in $PATH
13800 do
13801 IFS=$as_save_IFS
13802 test -z "$as_dir" && as_dir=.
13803 for ac_exec_ext in '' $ac_executable_extensions; do
13804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13805 ac_cv_prog_AWK="$ac_prog"
13806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13807 break 2
13808 fi
13809 done
13810 done
13811 IFS=$as_save_IFS
13812
13813 fi
13814 fi
13815 AWK=$ac_cv_prog_AWK
13816 if test -n "$AWK"; then
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13818 $as_echo "$AWK" >&6; }
13819 else
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13822 fi
13823
13824
13825 test -n "$AWK" && break
13826 done
13827
13828
13829 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13830
13831
13832 # Check whether --enable-werror was given.
13833 if test "${enable_werror+set}" = set; then :
13834 enableval=$enable_werror;
13835 fi
13836
13837 if test "x$enable_werror" != "xno"; then
13838 WERROR="-Werror"
13839 fi
13840
13841
13842 glibgo_toolexecdir=no
13843 glibgo_toolexeclibdir=no
13844
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13846 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13847 # Check whether --enable-version-specific-runtime-libs was given.
13848 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13849 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13850 yes) version_specific_libs=yes ;;
13851 no) version_specific_libs=no ;;
13852 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13853 esac
13854 else
13855 version_specific_libs=no
13856 fi
13857
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13859 $as_echo "$version_specific_libs" >&6; }
13860
13861
13862 # Check whether --with-toolexeclibdir was given.
13863 if test "${with_toolexeclibdir+set}" = set; then :
13864 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
13865 /)
13866 ;;
13867 */)
13868 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
13869 ;;
13870 esac
13871 else
13872 with_toolexeclibdir=no
13873 fi
13874
13875
13876
13877 # Version-specific runtime libs processing.
13878 if test $version_specific_libs = yes; then
13879 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13880 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13881 fi
13882
13883 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13884 # Install a library built with a cross compiler in tooldir, not libdir.
13885 if test -n "$with_cross_host" &&
13886 test x"$with_cross_host" != x"no"; then
13887 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13888 case ${with_toolexeclibdir} in
13889 no)
13890 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13891 ;;
13892 *)
13893 nover_glibgo_toolexeclibdir=${with_toolexeclibdir}
13894 ;;
13895 esac
13896 else
13897 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13898 nover_glibgo_toolexeclibdir='${libdir}'
13899 fi
13900 multi_os_directory=`$GOC -print-multi-os-directory`
13901 case $multi_os_directory in
13902 .) ;; # Avoid trailing /.
13903 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13904 esac
13905
13906 if test x"$glibgo_toolexecdir" = x"no"; then
13907 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13908 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13909 fi
13910
13911
13912
13913
13914
13915 # See if the user wants to configure without libffi. Some
13916 # architectures don't support it. FIXME: We should set a default
13917 # based on the host.
13918
13919 # Check whether --with-libffi was given.
13920 if test "${with_libffi+set}" = set; then :
13921 withval=$with_libffi; :
13922 else
13923 with_libffi=${with_libffi_default-yes}
13924 fi
13925
13926
13927 LIBFFI=
13928 LIBFFIINCS=
13929 if test "$with_libffi" != no; then
13930
13931 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13932
13933 LIBFFI=../libffi/libffi_convenience.la
13934 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13935 fi
13936
13937
13938 if test "$with_libffi" != "no"; then
13939 USE_LIBFFI_TRUE=
13940 USE_LIBFFI_FALSE='#'
13941 else
13942 USE_LIBFFI_TRUE='#'
13943 USE_LIBFFI_FALSE=
13944 fi
13945
13946
13947 # See if the user wants to configure without libatomic. This is useful if we are
13948 # on an architecture for which libgo does not need an atomic support library and
13949 # libatomic does not support our C compiler.
13950
13951 # Check whether --with-libatomic was given.
13952 if test "${with_libatomic+set}" = set; then :
13953 withval=$with_libatomic; :
13954 else
13955 with_libatomic=${with_libatomic_default-yes}
13956 fi
13957
13958
13959 LIBATOMIC=
13960 if test "$with_libatomic" != no; then
13961 LIBATOMIC=../libatomic/libatomic_convenience.la
13962 fi
13963
13964
13965 # Used to tell GNU make to include a file without telling automake to
13966 # include it.
13967 go_include="-include"
13968
13969
13970 # All known GOOS values. This is the union of all operating systems
13971 # supported by the gofrontend and all operating systems supported by
13972 # the gc toolchain.
13973 ALLGOOS="aix android darwin dragonfly freebsd hurd illumos ios irix js linux netbsd openbsd plan9 rtems solaris windows zos"
13974
13975 is_darwin=no
13976 is_freebsd=no
13977 is_irix=no
13978 is_linux=no
13979 is_netbsd=no
13980 is_openbsd=no
13981 is_dragonfly=no
13982 is_rtems=no
13983 is_solaris=no
13984 is_aix=no
13985 is_hurd=no
13986 GOOS=unknown
13987 case ${host} in
13988 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13989 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13990 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13991 *-*-linux*) is_linux=yes; GOOS=linux ;;
13992 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13993 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13994 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13995 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13996 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13997 *-*-aix*) is_aix=yes; GOOS=aix ;;
13998 *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
13999 esac
14000 if test $is_darwin = yes; then
14001 LIBGO_IS_DARWIN_TRUE=
14002 LIBGO_IS_DARWIN_FALSE='#'
14003 else
14004 LIBGO_IS_DARWIN_TRUE='#'
14005 LIBGO_IS_DARWIN_FALSE=
14006 fi
14007
14008 if test $is_freebsd = yes; then
14009 LIBGO_IS_FREEBSD_TRUE=
14010 LIBGO_IS_FREEBSD_FALSE='#'
14011 else
14012 LIBGO_IS_FREEBSD_TRUE='#'
14013 LIBGO_IS_FREEBSD_FALSE=
14014 fi
14015
14016 if test $is_irix = yes; then
14017 LIBGO_IS_IRIX_TRUE=
14018 LIBGO_IS_IRIX_FALSE='#'
14019 else
14020 LIBGO_IS_IRIX_TRUE='#'
14021 LIBGO_IS_IRIX_FALSE=
14022 fi
14023
14024 if test $is_linux = yes; then
14025 LIBGO_IS_LINUX_TRUE=
14026 LIBGO_IS_LINUX_FALSE='#'
14027 else
14028 LIBGO_IS_LINUX_TRUE='#'
14029 LIBGO_IS_LINUX_FALSE=
14030 fi
14031
14032 if test $is_netbsd = yes; then
14033 LIBGO_IS_NETBSD_TRUE=
14034 LIBGO_IS_NETBSD_FALSE='#'
14035 else
14036 LIBGO_IS_NETBSD_TRUE='#'
14037 LIBGO_IS_NETBSD_FALSE=
14038 fi
14039
14040 if test $is_openbsd = yes; then
14041 LIBGO_IS_OPENBSD_TRUE=
14042 LIBGO_IS_OPENBSD_FALSE='#'
14043 else
14044 LIBGO_IS_OPENBSD_TRUE='#'
14045 LIBGO_IS_OPENBSD_FALSE=
14046 fi
14047
14048 if test $is_dragonfly = yes; then
14049 LIBGO_IS_DRAGONFLY_TRUE=
14050 LIBGO_IS_DRAGONFLY_FALSE='#'
14051 else
14052 LIBGO_IS_DRAGONFLY_TRUE='#'
14053 LIBGO_IS_DRAGONFLY_FALSE=
14054 fi
14055
14056 if test $is_rtems = yes; then
14057 LIBGO_IS_RTEMS_TRUE=
14058 LIBGO_IS_RTEMS_FALSE='#'
14059 else
14060 LIBGO_IS_RTEMS_TRUE='#'
14061 LIBGO_IS_RTEMS_FALSE=
14062 fi
14063
14064 if test $is_solaris = yes; then
14065 LIBGO_IS_SOLARIS_TRUE=
14066 LIBGO_IS_SOLARIS_FALSE='#'
14067 else
14068 LIBGO_IS_SOLARIS_TRUE='#'
14069 LIBGO_IS_SOLARIS_FALSE=
14070 fi
14071
14072 if test $is_aix = yes; then
14073 LIBGO_IS_AIX_TRUE=
14074 LIBGO_IS_AIX_FALSE='#'
14075 else
14076 LIBGO_IS_AIX_TRUE='#'
14077 LIBGO_IS_AIX_FALSE=
14078 fi
14079
14080 if test $is_hurd = yes; then
14081 LIBGO_IS_HURD_TRUE=
14082 LIBGO_IS_HURD_FALSE='#'
14083 else
14084 LIBGO_IS_HURD_TRUE='#'
14085 LIBGO_IS_HURD_FALSE=
14086 fi
14087
14088 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14089 LIBGO_IS_BSD_TRUE=
14090 LIBGO_IS_BSD_FALSE='#'
14091 else
14092 LIBGO_IS_BSD_TRUE='#'
14093 LIBGO_IS_BSD_FALSE=
14094 fi
14095
14096
14097
14098
14099 USE_DEJAGNU=no
14100 case ${host} in
14101 *-*-rtems*) USE_DEJAGNU=yes ;;
14102 ${build}) ;;
14103 *) USE_DEJAGNU=yes ;;
14104 esac
14105
14106
14107 # All known GOARCH values. This is the union of all architectures
14108 # supported by the gofrontend and all architectures supported by the
14109 # gc toolchain.
14110 # To add a new architecture:
14111 # - add it to this list
14112 # - if appropriate, add an entry to ALLGOARCHFAMILY below
14113 # - add an entry to the case on ${host} below to set GOARCH
14114 # - update goarchList in libgo/go/go/build/syslist.go
14115 # - update goarch.sh to report the values for this architecture
14116 # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14117 # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14118 # - update arch lists in libgo/match.sh
14119 # - update arch lists in libgo/testsuite/gotest
14120 # - update +build lines in several places
14121 # - libgo/go/runtime/lfstack_NNbit.go
14122 # - libgo/go/runtime/hashNN.go
14123 # - libgo/go/runtime/unalignedN.go
14124 # - libgo/go/syscall/endian_XX.go
14125 # - possibly others
14126 # - possibly update files in libgo/go/internal/syscall/unix
14127 ALLGOARCH="386 alpha amd64 amd64p32 arm armbe arm64 arm64be ia64 m68k mips mipsle mips64 mips64le mips64p32 mips64p32le nios2 ppc ppc64 ppc64le riscv riscv64 s390 s390x sh shbe sparc sparc64 wasm"
14128
14129 # All known GOARCH family values.
14130 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
14131
14132 GOARCH=unknown
14133 case ${host} in
14134 alpha*-*-*)
14135 GOARCH=alpha
14136 ;;
14137 aarch64-*-*)
14138 GOARCH=arm64
14139 ;;
14140 aarch64_be-*-*)
14141 GOARCH=arm64be
14142 ;;
14143 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
14144 GOARCH=arm
14145 case ${host} in
14146 arm*b*-*-*)
14147 GOARCH=armbe
14148 ;;
14149 esac
14150 ;;
14151 i[34567]86-*-* | x86_64-*-*)
14152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h. */
14154
14155 #ifdef __x86_64__
14156 #error 64-bit
14157 #endif
14158
14159 _ACEOF
14160 if ac_fn_c_try_compile "$LINENO"; then :
14161 GOARCH=386
14162 else
14163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h. */
14165
14166 #ifdef __ILP32__
14167 #error x32
14168 #endif
14169
14170 _ACEOF
14171 if ac_fn_c_try_compile "$LINENO"; then :
14172 GOARCH=amd64
14173 else
14174 GOARCH=amd64p32
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177 fi
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14179 ;;
14180 ia64-*-*)
14181 GOARCH=ia64
14182 ;;
14183 m68k*-*-*)
14184 GOARCH=m68k
14185 ;;
14186 mips*-*-*)
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14189
14190 #if _MIPS_SIM != _ABIO32
14191 #error not o32
14192 #endif
14193
14194 _ACEOF
14195 if ac_fn_c_try_compile "$LINENO"; then :
14196 mips_abi="o32"
14197 else
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200
14201 #if _MIPS_SIM != _ABIN32
14202 #error not n32
14203 #endif
14204
14205 _ACEOF
14206 if ac_fn_c_try_compile "$LINENO"; then :
14207 mips_abi="n32"
14208 else
14209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h. */
14211
14212 #if _MIPS_SIM != _ABI64
14213 #error not n64
14214 #endif
14215
14216 _ACEOF
14217 if ac_fn_c_try_compile "$LINENO"; then :
14218 mips_abi="n64"
14219 else
14220 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
14221 mips_abi="n32"
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 case "$mips_abi" in
14229 "o32") GOARCH=mips ;;
14230 "n32") GOARCH=mips64p32 ;;
14231 "n64") GOARCH=mips64 ;;
14232 esac
14233 case "${host}" in
14234 mips*el-*-*)
14235 GOARCH="${GOARCH}le"
14236 ;;
14237 esac
14238 ;;
14239 nios2-*-*)
14240 GOARCH=nios2
14241 ;;
14242 rs6000*-*-* | powerpc*-*-*)
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245
14246 #ifdef _ARCH_PPC64
14247 #error 64-bit
14248 #endif
14249
14250 _ACEOF
14251 if ac_fn_c_try_compile "$LINENO"; then :
14252 GOARCH=ppc
14253 else
14254
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257
14258 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14259 #error 64be
14260 #endif
14261
14262 _ACEOF
14263 if ac_fn_c_try_compile "$LINENO"; then :
14264 GOARCH=ppc64le
14265 else
14266 GOARCH=ppc64
14267 fi
14268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 fi
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 ;;
14272 riscv*-*-*)
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275
14276 #if __riscv_xlen == 64
14277 #error 64-bit
14278 #endif
14279
14280 _ACEOF
14281 if ac_fn_c_try_compile "$LINENO"; then :
14282 GOARCH=riscv
14283 else
14284 GOARCH=riscv64
14285 fi
14286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14287 ;;
14288 s390*-*-*)
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291
14292 #if defined(__s390x__)
14293 #error 64-bit
14294 #endif
14295
14296 _ACEOF
14297 if ac_fn_c_try_compile "$LINENO"; then :
14298 GOARCH=s390
14299 else
14300 GOARCH=s390x
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303 ;;
14304 sh3eb*-*-* | sh4eb*-*-*)
14305 GOARCH=shbe
14306 ;;
14307 sh3*-*-* | sh4*-*-*)
14308 GOARCH=sh
14309 ;;
14310 sparc*-*-*)
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313
14314 #if defined(__sparcv9) || defined(__arch64__)
14315 #error 64-bit
14316 #endif
14317
14318 _ACEOF
14319 if ac_fn_c_try_compile "$LINENO"; then :
14320 GOARCH=sparc
14321 else
14322 GOARCH=sparc64
14323 fi
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325 ;;
14326 esac
14327
14328
14329
14330
14331 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14332 LIBGO_IS_X86_TRUE=
14333 LIBGO_IS_X86_FALSE='#'
14334 else
14335 LIBGO_IS_X86_TRUE='#'
14336 LIBGO_IS_X86_FALSE=
14337 fi
14338
14339
14340 FUNCTION_DESCRIPTORS=false
14341 case ${host} in
14342 rs6000*-*-* | powerpc*-*-*)
14343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345
14346 #if _CALL_ELF == 1
14347 #error descriptors
14348 #endif
14349
14350 _ACEOF
14351 if ac_fn_c_try_compile "$LINENO"; then :
14352 FUNCTION_DESCRIPTORS=false
14353 else
14354 FUNCTION_DESCRIPTORS=true
14355 fi
14356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14357 ;;
14358 esac
14359
14360
14361 GO_LIBCALL_OS_FILE=
14362 GO_LIBCALL_OS_ARCH_FILE=
14363 GO_SYSCALL_OS_FILE=
14364 GO_SYSCALL_OS_ARCH_FILE=
14365 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14366 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
14367 fi
14368 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14369 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
14370 fi
14371 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14372 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
14373 fi
14374 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14375 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14376 fi
14377
14378
14379
14380
14381
14382 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14383 case "$target" in
14384 mips-sgi-irix6.5*)
14385 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14386 # msghdr in <sys/socket.h>.
14387 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
14388 ;;
14389 *-*-solaris2.*)
14390 # Solaris 10+ needs this so struct msghdr gets the msg_control
14391 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14392 # above doesn't work with C99.
14393 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14394 ;;
14395 esac
14396
14397
14398
14399 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
14400
14401 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14402 # with a different meaning.
14403 case ${target_os} in
14404 solaris2*)
14405 ac_save_CFLAGS="$CFLAGS"
14406 CFLAGS="$CFLAGS -Wa,-nH"
14407
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14409 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412
14413 int
14414 main ()
14415 {
14416 return 0;
14417 ;
14418 return 0;
14419 }
14420 _ACEOF
14421 if ac_fn_c_try_compile "$LINENO"; then :
14422 ac_hwcap_flags=yes
14423 else
14424 ac_hwcap_flags=no
14425 fi
14426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14427 if test "$ac_hwcap_flags" = "yes"; then
14428 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14429 fi
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14431 $as_echo "$ac_hwcap_flags" >&6; }
14432
14433 CFLAGS="$ac_save_CFLAGS"
14434 ;;
14435 esac
14436
14437
14438
14439
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14441 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14442 if ${libgo_cv_c_split_stack_supported+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 CFLAGS_hold=$CFLAGS
14446 CFLAGS="$CFLAGS -fsplit-stack"
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14449 int i;
14450 _ACEOF
14451 if ac_fn_c_try_compile "$LINENO"; then :
14452 libgo_cv_c_split_stack_supported=yes
14453 else
14454 libgo_cv_c_split_stack_supported=no
14455 fi
14456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 CFLAGS=$CFLAGS_hold
14458 fi
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14460 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14461
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14463 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14464 if ${libgo_cv_c_linker_split_non_split+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 cat > conftest1.c << EOF
14468 extern void f();
14469 int main() { f(); return 0; }
14470 EOF
14471 cat > conftest2.c << EOF
14472 void f() {}
14473 EOF
14474 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14475 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14476 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
14477 libgo_cv_c_linker_split_non_split=yes
14478 else
14479 libgo_cv_c_linker_split_non_split=no
14480 fi
14481 rm -f conftest1.* conftest2.* conftest
14482 fi
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14484 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14485
14486 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14487 SPLIT_STACK=-fsplit-stack
14488
14489 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14490
14491 else
14492 SPLIT_STACK=
14493 fi
14494
14495 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14496 USING_SPLIT_STACK_TRUE=
14497 USING_SPLIT_STACK_FALSE='#'
14498 else
14499 USING_SPLIT_STACK_TRUE='#'
14500 USING_SPLIT_STACK_FALSE=
14501 fi
14502
14503
14504 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14505 GO_SPLIT_STACK=-fno-split-stack
14506 else
14507 GO_SPLIT_STACK=
14508 fi
14509
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14512 $as_echo_n "checking whether linker supports split stack... " >&6; }
14513 if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 libgo_cv_c_linker_supports_split_stack=no
14517 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14518 libgo_cv_c_linker_supports_split_stack=yes
14519 fi
14520 fi
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14522 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14523 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14524
14525 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14526
14527 fi
14528
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14530 $as_echo_n "checking whether compiler is llgo... " >&6; }
14531 if ${libgo_cv_c_goc_is_llgo+:} false; then :
14532 $as_echo_n "(cached) " >&6
14533 else
14534 libgo_cv_c_goc_is_llgo=no
14535 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14536 libgo_cv_c_goc_is_llgo=yes
14537 fi
14538 fi
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14540 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14541 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14542 GOC_IS_LLGO_TRUE=
14543 GOC_IS_LLGO_FALSE='#'
14544 else
14545 GOC_IS_LLGO_TRUE='#'
14546 GOC_IS_LLGO_FALSE=
14547 fi
14548
14549
14550 MATH_LIBS=
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14552 $as_echo_n "checking for sqrt in -lm... " >&6; }
14553 if ${ac_cv_lib_m_sqrt+:} false; then :
14554 $as_echo_n "(cached) " >&6
14555 else
14556 ac_check_lib_save_LIBS=$LIBS
14557 LIBS="-lm $LIBS"
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560
14561 /* Override any GCC internal prototype to avoid an error.
14562 Use char because int might match the return type of a GCC
14563 builtin and then its argument prototype would still apply. */
14564 #ifdef __cplusplus
14565 extern "C"
14566 #endif
14567 char sqrt ();
14568 int
14569 main ()
14570 {
14571 return sqrt ();
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_c_try_link "$LINENO"; then :
14577 ac_cv_lib_m_sqrt=yes
14578 else
14579 ac_cv_lib_m_sqrt=no
14580 fi
14581 rm -f core conftest.err conftest.$ac_objext \
14582 conftest$ac_exeext conftest.$ac_ext
14583 LIBS=$ac_check_lib_save_LIBS
14584 fi
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14586 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14587 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
14588 MATH_LIBS=-lm
14589 fi
14590
14591
14592
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14594 $as_echo_n "checking for socket libraries... " >&6; }
14595 if ${libgo_cv_lib_sockets+:} false; then :
14596 $as_echo_n "(cached) " >&6
14597 else
14598 libgo_cv_lib_sockets=
14599 libgo_check_both=no
14600 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14601 if test "x$ac_cv_func_connect" = xyes; then :
14602 libgo_check_socket=no
14603 else
14604 libgo_check_socket=yes
14605 fi
14606
14607 if test "$libgo_check_socket" = "yes"; then
14608 unset ac_cv_func_connect
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14610 $as_echo_n "checking for main in -lsocket... " >&6; }
14611 if ${ac_cv_lib_socket_main+:} false; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 ac_check_lib_save_LIBS=$LIBS
14615 LIBS="-lsocket $LIBS"
14616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14618
14619
14620 int
14621 main ()
14622 {
14623 return main ();
14624 ;
14625 return 0;
14626 }
14627 _ACEOF
14628 if ac_fn_c_try_link "$LINENO"; then :
14629 ac_cv_lib_socket_main=yes
14630 else
14631 ac_cv_lib_socket_main=no
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635 LIBS=$ac_check_lib_save_LIBS
14636 fi
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14638 $as_echo "$ac_cv_lib_socket_main" >&6; }
14639 if test "x$ac_cv_lib_socket_main" = xyes; then :
14640 libgo_cv_lib_sockets="-lsocket"
14641 else
14642 libgo_check_both=yes
14643 fi
14644
14645 fi
14646 if test "$libgo_check_both" = "yes"; then
14647 libgo_old_libs=$LIBS
14648 LIBS="$LIBS -lsocket -lnsl"
14649 unset ac_cv_func_accept
14650 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14651 if test "x$ac_cv_func_accept" = xyes; then :
14652 libgo_check_nsl=no
14653 libgo_cv_lib_sockets="-lsocket -lnsl"
14654 fi
14655
14656 unset ac_cv_func_accept
14657 LIBS=$libgo_old_libs
14658 fi
14659 unset ac_cv_func_gethostbyname
14660 libgo_old_libs="$LIBS"
14661 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14662 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14663
14664 else
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14666 $as_echo_n "checking for main in -lnsl... " >&6; }
14667 if ${ac_cv_lib_nsl_main+:} false; then :
14668 $as_echo_n "(cached) " >&6
14669 else
14670 ac_check_lib_save_LIBS=$LIBS
14671 LIBS="-lnsl $LIBS"
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674
14675
14676 int
14677 main ()
14678 {
14679 return main ();
14680 ;
14681 return 0;
14682 }
14683 _ACEOF
14684 if ac_fn_c_try_link "$LINENO"; then :
14685 ac_cv_lib_nsl_main=yes
14686 else
14687 ac_cv_lib_nsl_main=no
14688 fi
14689 rm -f core conftest.err conftest.$ac_objext \
14690 conftest$ac_exeext conftest.$ac_ext
14691 LIBS=$ac_check_lib_save_LIBS
14692 fi
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14694 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14695 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14696 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14697 fi
14698
14699 fi
14700
14701 unset ac_cv_func_gethostbyname
14702 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14703 if test "x$ac_cv_func_sendfile" = xyes; then :
14704
14705 else
14706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14707 $as_echo_n "checking for main in -lsendfile... " >&6; }
14708 if ${ac_cv_lib_sendfile_main+:} false; then :
14709 $as_echo_n "(cached) " >&6
14710 else
14711 ac_check_lib_save_LIBS=$LIBS
14712 LIBS="-lsendfile $LIBS"
14713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14714 /* end confdefs.h. */
14715
14716
14717 int
14718 main ()
14719 {
14720 return main ();
14721 ;
14722 return 0;
14723 }
14724 _ACEOF
14725 if ac_fn_c_try_link "$LINENO"; then :
14726 ac_cv_lib_sendfile_main=yes
14727 else
14728 ac_cv_lib_sendfile_main=no
14729 fi
14730 rm -f core conftest.err conftest.$ac_objext \
14731 conftest$ac_exeext conftest.$ac_ext
14732 LIBS=$ac_check_lib_save_LIBS
14733 fi
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_main" >&5
14735 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14736 if test "x$ac_cv_lib_sendfile_main" = xyes; then :
14737 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14738 fi
14739
14740 fi
14741
14742 LIBS=$libgo_old_libs
14743
14744 fi
14745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14746 $as_echo "$libgo_cv_lib_sockets" >&6; }
14747 NET_LIBS="$libgo_cv_lib_sockets"
14748
14749
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14751 $as_echo_n "checking whether -pthread is supported... " >&6; }
14752 if ${libgo_cv_lib_pthread+:} false; then :
14753 $as_echo_n "(cached) " >&6
14754 else
14755 CFLAGS_hold=$CFLAGS
14756 CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 int i;
14760 _ACEOF
14761 if ac_fn_c_try_compile "$LINENO"; then :
14762 libgo_cv_lib_pthread=yes
14763 else
14764 libgo_cv_lib_pthread=no
14765 fi
14766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14767 CFLAGS=$CFLAGS_hold
14768 fi
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14770 $as_echo "$libgo_cv_lib_pthread" >&6; }
14771 PTHREAD_CFLAGS=
14772 if test "$libgo_cv_lib_pthread" = yes; then
14773 # RISC-V apparently adds -latomic when using -pthread.
14774 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
14775 fi
14776
14777
14778 PTHREAD_LIBS=
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14780 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14781 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14782 $as_echo_n "(cached) " >&6
14783 else
14784 ac_check_lib_save_LIBS=$LIBS
14785 LIBS="-lpthread $LIBS"
14786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14787 /* end confdefs.h. */
14788
14789 /* Override any GCC internal prototype to avoid an error.
14790 Use char because int might match the return type of a GCC
14791 builtin and then its argument prototype would still apply. */
14792 #ifdef __cplusplus
14793 extern "C"
14794 #endif
14795 char pthread_create ();
14796 int
14797 main ()
14798 {
14799 return pthread_create ();
14800 ;
14801 return 0;
14802 }
14803 _ACEOF
14804 if ac_fn_c_try_link "$LINENO"; then :
14805 ac_cv_lib_pthread_pthread_create=yes
14806 else
14807 ac_cv_lib_pthread_pthread_create=no
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext \
14810 conftest$ac_exeext conftest.$ac_ext
14811 LIBS=$ac_check_lib_save_LIBS
14812 fi
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14814 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14815 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14816 PTHREAD_LIBS=-lpthread
14817 fi
14818
14819
14820
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14822 $as_echo_n "checking for library containing sched_yield... " >&6; }
14823 if ${ac_cv_search_sched_yield+:} false; then :
14824 $as_echo_n "(cached) " >&6
14825 else
14826 ac_func_search_save_LIBS=$LIBS
14827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14828 /* end confdefs.h. */
14829
14830 /* Override any GCC internal prototype to avoid an error.
14831 Use char because int might match the return type of a GCC
14832 builtin and then its argument prototype would still apply. */
14833 #ifdef __cplusplus
14834 extern "C"
14835 #endif
14836 char sched_yield ();
14837 int
14838 main ()
14839 {
14840 return sched_yield ();
14841 ;
14842 return 0;
14843 }
14844 _ACEOF
14845 for ac_lib in '' rt; do
14846 if test -z "$ac_lib"; then
14847 ac_res="none required"
14848 else
14849 ac_res=-l$ac_lib
14850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14851 fi
14852 if ac_fn_c_try_link "$LINENO"; then :
14853 ac_cv_search_sched_yield=$ac_res
14854 fi
14855 rm -f core conftest.err conftest.$ac_objext \
14856 conftest$ac_exeext
14857 if ${ac_cv_search_sched_yield+:} false; then :
14858 break
14859 fi
14860 done
14861 if ${ac_cv_search_sched_yield+:} false; then :
14862
14863 else
14864 ac_cv_search_sched_yield=no
14865 fi
14866 rm conftest.$ac_ext
14867 LIBS=$ac_func_search_save_LIBS
14868 fi
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14870 $as_echo "$ac_cv_search_sched_yield" >&6; }
14871 ac_res=$ac_cv_search_sched_yield
14872 if test "$ac_res" != no; then :
14873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14874
14875 fi
14876
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14878 $as_echo_n "checking for library containing nanosleep... " >&6; }
14879 if ${ac_cv_search_nanosleep+:} false; then :
14880 $as_echo_n "(cached) " >&6
14881 else
14882 ac_func_search_save_LIBS=$LIBS
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884 /* end confdefs.h. */
14885
14886 /* Override any GCC internal prototype to avoid an error.
14887 Use char because int might match the return type of a GCC
14888 builtin and then its argument prototype would still apply. */
14889 #ifdef __cplusplus
14890 extern "C"
14891 #endif
14892 char nanosleep ();
14893 int
14894 main ()
14895 {
14896 return nanosleep ();
14897 ;
14898 return 0;
14899 }
14900 _ACEOF
14901 for ac_lib in '' rt; do
14902 if test -z "$ac_lib"; then
14903 ac_res="none required"
14904 else
14905 ac_res=-l$ac_lib
14906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14907 fi
14908 if ac_fn_c_try_link "$LINENO"; then :
14909 ac_cv_search_nanosleep=$ac_res
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext \
14912 conftest$ac_exeext
14913 if ${ac_cv_search_nanosleep+:} false; then :
14914 break
14915 fi
14916 done
14917 if ${ac_cv_search_nanosleep+:} false; then :
14918
14919 else
14920 ac_cv_search_nanosleep=no
14921 fi
14922 rm conftest.$ac_ext
14923 LIBS=$ac_func_search_save_LIBS
14924 fi
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14926 $as_echo "$ac_cv_search_nanosleep" >&6; }
14927 ac_res=$ac_cv_search_nanosleep
14928 if test "$ac_res" != no; then :
14929 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14930
14931 fi
14932
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14934 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14935 if ${ac_cv_search_clock_gettime+:} false; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14938 ac_func_search_save_LIBS=$LIBS
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941
14942 /* Override any GCC internal prototype to avoid an error.
14943 Use char because int might match the return type of a GCC
14944 builtin and then its argument prototype would still apply. */
14945 #ifdef __cplusplus
14946 extern "C"
14947 #endif
14948 char clock_gettime ();
14949 int
14950 main ()
14951 {
14952 return clock_gettime ();
14953 ;
14954 return 0;
14955 }
14956 _ACEOF
14957 for ac_lib in '' rt; do
14958 if test -z "$ac_lib"; then
14959 ac_res="none required"
14960 else
14961 ac_res=-l$ac_lib
14962 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14963 fi
14964 if ac_fn_c_try_link "$LINENO"; then :
14965 ac_cv_search_clock_gettime=$ac_res
14966 fi
14967 rm -f core conftest.err conftest.$ac_objext \
14968 conftest$ac_exeext
14969 if ${ac_cv_search_clock_gettime+:} false; then :
14970 break
14971 fi
14972 done
14973 if ${ac_cv_search_clock_gettime+:} false; then :
14974
14975 else
14976 ac_cv_search_clock_gettime=no
14977 fi
14978 rm conftest.$ac_ext
14979 LIBS=$ac_func_search_save_LIBS
14980 fi
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14982 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14983 ac_res=$ac_cv_search_clock_gettime
14984 if test "$ac_res" != no; then :
14985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14986
14987 fi
14988
14989
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14991 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14992 if ${ac_cv_c_bigendian+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 ac_cv_c_bigendian=unknown
14996 # See if we're dealing with a universal compiler.
14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14998 /* end confdefs.h. */
14999 #ifndef __APPLE_CC__
15000 not a universal capable compiler
15001 #endif
15002 typedef int dummy;
15003
15004 _ACEOF
15005 if ac_fn_c_try_compile "$LINENO"; then :
15006
15007 # Check for potential -arch flags. It is not universal unless
15008 # there are at least two -arch flags with different values.
15009 ac_arch=
15010 ac_prev=
15011 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15012 if test -n "$ac_prev"; then
15013 case $ac_word in
15014 i?86 | x86_64 | ppc | ppc64)
15015 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15016 ac_arch=$ac_word
15017 else
15018 ac_cv_c_bigendian=universal
15019 break
15020 fi
15021 ;;
15022 esac
15023 ac_prev=
15024 elif test "x$ac_word" = "x-arch"; then
15025 ac_prev=arch
15026 fi
15027 done
15028 fi
15029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15030 if test $ac_cv_c_bigendian = unknown; then
15031 # See if sys/param.h defines the BYTE_ORDER macro.
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 #include <sys/types.h>
15035 #include <sys/param.h>
15036
15037 int
15038 main ()
15039 {
15040 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15041 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15042 && LITTLE_ENDIAN)
15043 bogus endian macros
15044 #endif
15045
15046 ;
15047 return 0;
15048 }
15049 _ACEOF
15050 if ac_fn_c_try_compile "$LINENO"; then :
15051 # It does; now see whether it defined to BIG_ENDIAN or not.
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054 #include <sys/types.h>
15055 #include <sys/param.h>
15056
15057 int
15058 main ()
15059 {
15060 #if BYTE_ORDER != BIG_ENDIAN
15061 not big endian
15062 #endif
15063
15064 ;
15065 return 0;
15066 }
15067 _ACEOF
15068 if ac_fn_c_try_compile "$LINENO"; then :
15069 ac_cv_c_bigendian=yes
15070 else
15071 ac_cv_c_bigendian=no
15072 fi
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074 fi
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 fi
15077 if test $ac_cv_c_bigendian = unknown; then
15078 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 #include <limits.h>
15082
15083 int
15084 main ()
15085 {
15086 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15087 bogus endian macros
15088 #endif
15089
15090 ;
15091 return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_c_try_compile "$LINENO"; then :
15095 # It does; now see whether it defined to _BIG_ENDIAN or not.
15096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15097 /* end confdefs.h. */
15098 #include <limits.h>
15099
15100 int
15101 main ()
15102 {
15103 #ifndef _BIG_ENDIAN
15104 not big endian
15105 #endif
15106
15107 ;
15108 return 0;
15109 }
15110 _ACEOF
15111 if ac_fn_c_try_compile "$LINENO"; then :
15112 ac_cv_c_bigendian=yes
15113 else
15114 ac_cv_c_bigendian=no
15115 fi
15116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117 fi
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 fi
15120 if test $ac_cv_c_bigendian = unknown; then
15121 # Compile a test program.
15122 if test "$cross_compiling" = yes; then :
15123 # Try to guess by grepping values from an object file.
15124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125 /* end confdefs.h. */
15126 short int ascii_mm[] =
15127 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15128 short int ascii_ii[] =
15129 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15130 int use_ascii (int i) {
15131 return ascii_mm[i] + ascii_ii[i];
15132 }
15133 short int ebcdic_ii[] =
15134 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15135 short int ebcdic_mm[] =
15136 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15137 int use_ebcdic (int i) {
15138 return ebcdic_mm[i] + ebcdic_ii[i];
15139 }
15140 extern int foo;
15141
15142 int
15143 main ()
15144 {
15145 return use_ascii (foo) == use_ebcdic (foo);
15146 ;
15147 return 0;
15148 }
15149 _ACEOF
15150 if ac_fn_c_try_compile "$LINENO"; then :
15151 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15152 ac_cv_c_bigendian=yes
15153 fi
15154 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15155 if test "$ac_cv_c_bigendian" = unknown; then
15156 ac_cv_c_bigendian=no
15157 else
15158 # finding both strings is unlikely to happen, but who knows?
15159 ac_cv_c_bigendian=unknown
15160 fi
15161 fi
15162 fi
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 else
15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166 /* end confdefs.h. */
15167 $ac_includes_default
15168 int
15169 main ()
15170 {
15171
15172 /* Are we little or big endian? From Harbison&Steele. */
15173 union
15174 {
15175 long int l;
15176 char c[sizeof (long int)];
15177 } u;
15178 u.l = 1;
15179 return u.c[sizeof (long int) - 1] == 1;
15180
15181 ;
15182 return 0;
15183 }
15184 _ACEOF
15185 if ac_fn_c_try_run "$LINENO"; then :
15186 ac_cv_c_bigendian=no
15187 else
15188 ac_cv_c_bigendian=yes
15189 fi
15190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15191 conftest.$ac_objext conftest.beam conftest.$ac_ext
15192 fi
15193
15194 fi
15195 fi
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15197 $as_echo "$ac_cv_c_bigendian" >&6; }
15198 case $ac_cv_c_bigendian in #(
15199 yes)
15200 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15201 ;; #(
15202 no)
15203 ;; #(
15204 universal)
15205
15206 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15207
15208 ;; #(
15209 *)
15210 as_fn_error $? "unknown endianness
15211 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15212 esac
15213
15214
15215
15216
15217 # Check whether --with-system-libunwind was given.
15218 if test "${with_system_libunwind+set}" = set; then :
15219 withval=$with_system_libunwind;
15220 fi
15221
15222 # If system-libunwind was not specifically set, pick a default setting.
15223 if test x$with_system_libunwind = x; then
15224 case ${target} in
15225 ia64-*-hpux*) with_system_libunwind=yes ;;
15226 *) with_system_libunwind=no ;;
15227 esac
15228 fi
15229 # Based on system-libunwind and target, do we have ipinfo?
15230 if test x$with_system_libunwind = xyes; then
15231 case ${target} in
15232 ia64-*-*) have_unwind_getipinfo=no ;;
15233 *) have_unwind_getipinfo=yes ;;
15234 esac
15235 else
15236 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15237
15238 case ${target} in
15239 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
15240 *) have_unwind_getipinfo=yes ;;
15241 esac
15242
15243 fi
15244
15245 if test x$have_unwind_getipinfo = xyes; then
15246
15247 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15248
15249 fi
15250
15251
15252 for ac_header in port.h sched.h semaphore.h sys/file.h sys/mman.h syscall.h sys/epoll.h sys/event.h sys/inotify.h sys/ptrace.h sys/syscall.h sys/sysctl.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/bpf.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h lwp.h
15253 do :
15254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15255 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15256 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15257 cat >>confdefs.h <<_ACEOF
15258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15259 _ACEOF
15260
15261 fi
15262
15263 done
15264
15265
15266 for ac_header in netinet/icmp6.h
15267 do :
15268 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15269
15270 "
15271 if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_NETINET_ICMP6_H 1
15274 _ACEOF
15275
15276 fi
15277
15278 done
15279
15280
15281 for ac_header in linux/filter.h linux/if_addr.h linux/if_ether.h linux/if_tun.h linux/netlink.h linux/rtnetlink.h
15282 do :
15283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15284 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15285 #include <sys/socket.h>
15286 #endif
15287
15288 "
15289 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15290 cat >>confdefs.h <<_ACEOF
15291 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15292 _ACEOF
15293
15294 fi
15295
15296 done
15297
15298
15299 if test "$ac_cv_header_sys_mman_h" = yes; then
15300 HAVE_SYS_MMAN_H_TRUE=
15301 HAVE_SYS_MMAN_H_FALSE='#'
15302 else
15303 HAVE_SYS_MMAN_H_TRUE='#'
15304 HAVE_SYS_MMAN_H_FALSE=
15305 fi
15306
15307
15308 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
15309 do :
15310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15311 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15312 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15313 cat >>confdefs.h <<_ACEOF
15314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15315 _ACEOF
15316
15317 fi
15318 done
15319
15320 if test "$ac_cv_func_strerror_r" = yes; then
15321 HAVE_STRERROR_R_TRUE=
15322 HAVE_STRERROR_R_FALSE='#'
15323 else
15324 HAVE_STRERROR_R_TRUE='#'
15325 HAVE_STRERROR_R_FALSE=
15326 fi
15327
15328 if test "$ac_cv_func_wait4" = yes; then
15329 HAVE_WAIT4_TRUE=
15330 HAVE_WAIT4_FALSE='#'
15331 else
15332 HAVE_WAIT4_TRUE='#'
15333 HAVE_WAIT4_FALSE=
15334 fi
15335
15336
15337 ac_header_dirent=no
15338 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15339 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15341 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15342 if eval \${$as_ac_Header+:} false; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15346 /* end confdefs.h. */
15347 #include <sys/types.h>
15348 #include <$ac_hdr>
15349
15350 int
15351 main ()
15352 {
15353 if ((DIR *) 0)
15354 return 0;
15355 ;
15356 return 0;
15357 }
15358 _ACEOF
15359 if ac_fn_c_try_compile "$LINENO"; then :
15360 eval "$as_ac_Header=yes"
15361 else
15362 eval "$as_ac_Header=no"
15363 fi
15364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15365 fi
15366 eval ac_res=\$$as_ac_Header
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15368 $as_echo "$ac_res" >&6; }
15369 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15370 cat >>confdefs.h <<_ACEOF
15371 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15372 _ACEOF
15373
15374 ac_header_dirent=$ac_hdr; break
15375 fi
15376
15377 done
15378 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15379 if test $ac_header_dirent = dirent.h; then
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15381 $as_echo_n "checking for library containing opendir... " >&6; }
15382 if ${ac_cv_search_opendir+:} false; then :
15383 $as_echo_n "(cached) " >&6
15384 else
15385 ac_func_search_save_LIBS=$LIBS
15386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15387 /* end confdefs.h. */
15388
15389 /* Override any GCC internal prototype to avoid an error.
15390 Use char because int might match the return type of a GCC
15391 builtin and then its argument prototype would still apply. */
15392 #ifdef __cplusplus
15393 extern "C"
15394 #endif
15395 char opendir ();
15396 int
15397 main ()
15398 {
15399 return opendir ();
15400 ;
15401 return 0;
15402 }
15403 _ACEOF
15404 for ac_lib in '' dir; do
15405 if test -z "$ac_lib"; then
15406 ac_res="none required"
15407 else
15408 ac_res=-l$ac_lib
15409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15410 fi
15411 if ac_fn_c_try_link "$LINENO"; then :
15412 ac_cv_search_opendir=$ac_res
15413 fi
15414 rm -f core conftest.err conftest.$ac_objext \
15415 conftest$ac_exeext
15416 if ${ac_cv_search_opendir+:} false; then :
15417 break
15418 fi
15419 done
15420 if ${ac_cv_search_opendir+:} false; then :
15421
15422 else
15423 ac_cv_search_opendir=no
15424 fi
15425 rm conftest.$ac_ext
15426 LIBS=$ac_func_search_save_LIBS
15427 fi
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15429 $as_echo "$ac_cv_search_opendir" >&6; }
15430 ac_res=$ac_cv_search_opendir
15431 if test "$ac_res" != no; then :
15432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15433
15434 fi
15435
15436 else
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15438 $as_echo_n "checking for library containing opendir... " >&6; }
15439 if ${ac_cv_search_opendir+:} false; then :
15440 $as_echo_n "(cached) " >&6
15441 else
15442 ac_func_search_save_LIBS=$LIBS
15443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15445
15446 /* Override any GCC internal prototype to avoid an error.
15447 Use char because int might match the return type of a GCC
15448 builtin and then its argument prototype would still apply. */
15449 #ifdef __cplusplus
15450 extern "C"
15451 #endif
15452 char opendir ();
15453 int
15454 main ()
15455 {
15456 return opendir ();
15457 ;
15458 return 0;
15459 }
15460 _ACEOF
15461 for ac_lib in '' x; do
15462 if test -z "$ac_lib"; then
15463 ac_res="none required"
15464 else
15465 ac_res=-l$ac_lib
15466 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15467 fi
15468 if ac_fn_c_try_link "$LINENO"; then :
15469 ac_cv_search_opendir=$ac_res
15470 fi
15471 rm -f core conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext
15473 if ${ac_cv_search_opendir+:} false; then :
15474 break
15475 fi
15476 done
15477 if ${ac_cv_search_opendir+:} false; then :
15478
15479 else
15480 ac_cv_search_opendir=no
15481 fi
15482 rm conftest.$ac_ext
15483 LIBS=$ac_func_search_save_LIBS
15484 fi
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15486 $as_echo "$ac_cv_search_opendir" >&6; }
15487 ac_res=$ac_cv_search_opendir
15488 if test "$ac_res" != no; then :
15489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15490
15491 fi
15492
15493 fi
15494
15495
15496
15497 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
15498 #include <sys/types.h>
15499 #ifdef HAVE_DIRENT_H
15500 # include <dirent.h>
15501 #else
15502 # define dirent direct
15503 # ifdef HAVE_SYS_NDIR_H
15504 # include <sys/ndir.h>
15505 # endif
15506 # ifdef HAVE_SYS_DIR_H
15507 # include <sys/dir.h>
15508 # endif
15509 # ifdef HAVE_NDIR_H
15510 # include <ndir.h>
15511 # endif
15512 #endif
15513
15514 "
15515 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
15516
15517 cat >>confdefs.h <<_ACEOF
15518 #define HAVE_STRUCT_DIRENT_D_TYPE 1
15519 _ACEOF
15520
15521
15522 fi
15523
15524
15525
15526 for ac_func in accept4 dup3 epoll_create1 faccessat fallocate fchmodat fchownat futimesat getxattr inotify_add_watch inotify_init inotify_init1 inotify_rm_watch listxattr mkdirat mknodat open64 openat pipe2 removexattr renameat setxattr sync_file_range splice syscall tee unlinkat unshare utimensat
15527 do :
15528 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15529 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15530 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15531 cat >>confdefs.h <<_ACEOF
15532 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15533 _ACEOF
15534
15535 fi
15536 done
15537
15538 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15539 if test "x$ac_cv_type_off_t" = xyes; then :
15540
15541 else
15542
15543 cat >>confdefs.h <<_ACEOF
15544 #define off_t long int
15545 _ACEOF
15546
15547 fi
15548
15549 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
15550 if test "x$ac_cv_type_loff_t" = xyes; then :
15551
15552 cat >>confdefs.h <<_ACEOF
15553 #define HAVE_LOFF_T 1
15554 _ACEOF
15555
15556
15557 fi
15558
15559
15560 LIBS_hold="$LIBS"
15561 LIBS="$LIBS -lm"
15562 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15563 do :
15564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15566 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15567 cat >>confdefs.h <<_ACEOF
15568 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15569 _ACEOF
15570
15571 fi
15572 done
15573
15574 LIBS="$LIBS_hold"
15575
15576 CFLAGS_hold="$CFLAGS"
15577 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15578 LIBS_hold="$LIBS"
15579 LIBS="$LIBS $PTHREAD_LIBS"
15580 for ac_func in sem_timedwait
15581 do :
15582 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15583 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
15584 cat >>confdefs.h <<_ACEOF
15585 #define HAVE_SEM_TIMEDWAIT 1
15586 _ACEOF
15587
15588 fi
15589 done
15590
15591 CFLAGS="$CFLAGS_hold"
15592 LIBS="$LIBS_hold"
15593
15594 LIBS_hold="$LIBS"
15595 LIBS="$LIBS $MATH_LIBS"
15596 for ac_func in matherr
15597 do :
15598 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
15599 if test "x$ac_cv_func_matherr" = xyes; then :
15600 cat >>confdefs.h <<_ACEOF
15601 #define HAVE_MATHERR 1
15602 _ACEOF
15603
15604 fi
15605 done
15606
15607 LIBS="$LIBS_hold"
15608
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15610 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15611 if ${libgo_cv_c_stringops+:} false; then :
15612 $as_echo_n "(cached) " >&6
15613 else
15614 CFLAGS_hold=$CFLAGS
15615 CFLAGS="$CFLAGS -minline-all-stringops"
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15618 int i;
15619 _ACEOF
15620 if ac_fn_c_try_compile "$LINENO"; then :
15621 libgo_cv_c_stringops=yes
15622 else
15623 libgo_cv_c_stringops=no
15624 fi
15625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15626 CFLAGS=$CFLAGS_hold
15627 fi
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15629 $as_echo "$libgo_cv_c_stringops" >&6; }
15630 STRINGOPS_FLAG=
15631 if test "$libgo_cv_c_stringops" = yes; then
15632 STRINGOPS_FLAG=-minline-all-stringops
15633 fi
15634
15635
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15637 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15638 if ${libgo_cv_c_fancymath+:} false; then :
15639 $as_echo_n "(cached) " >&6
15640 else
15641 CFLAGS_hold=$CFLAGS
15642 CFLAGS="$CFLAGS -mfancy-math-387"
15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15644 /* end confdefs.h. */
15645 int i;
15646 _ACEOF
15647 if ac_fn_c_try_compile "$LINENO"; then :
15648 libgo_cv_c_fancymath=yes
15649 else
15650 libgo_cv_c_fancymath=no
15651 fi
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15653 CFLAGS=$CFLAGS_hold
15654 fi
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15656 $as_echo "$libgo_cv_c_fancymath" >&6; }
15657 MATH_FLAG=
15658 if test "$libgo_cv_c_fancymath" = yes; then
15659 MATH_FLAG="-mfancy-math-387"
15660 fi
15661 MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
15662
15663
15664 CFLAGS_hold=$CFLAGS
15665 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15666 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15667 if test "x$ac_cv_type_off64_t" = xyes; then :
15668
15669 cat >>confdefs.h <<_ACEOF
15670 #define HAVE_OFF64_T 1
15671 _ACEOF
15672
15673
15674 fi
15675
15676 CFLAGS=$CFLAGS_hold
15677
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15679 $as_echo_n "checking epoll_event size... " >&6; }
15680 if ${libgo_cv_c_epoll_event_size+:} false; then :
15681 $as_echo_n "(cached) " >&6
15682 else
15683 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15684
15685 else
15686 libgo_cv_c_epoll_event_size=0
15687 fi
15688
15689 fi
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15691 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15692 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15693
15694
15695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15696 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15697 if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
15698 $as_echo_n "(cached) " >&6
15699 else
15700 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15701 #include <sys/epoll.h>"; then :
15702
15703 else
15704 libgo_cv_c_epoll_event_fd_offset=0
15705 fi
15706
15707 fi
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15709 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15710 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15711
15712
15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15714 /* end confdefs.h. */
15715 #include <sys/stat.h>
15716
15717 _ACEOF
15718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15719 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15720 have_stat_timespec=yes
15721 else
15722 have_stat_timespec=no
15723 fi
15724 rm -f conftest*
15725
15726 if test $have_stat_timespec = yes; then
15727 HAVE_STAT_TIMESPEC_TRUE=
15728 HAVE_STAT_TIMESPEC_FALSE='#'
15729 else
15730 HAVE_STAT_TIMESPEC_TRUE='#'
15731 HAVE_STAT_TIMESPEC_FALSE=
15732 fi
15733
15734
15735 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15736 "
15737 if test "x$ac_cv_type_struct_exception" = xyes; then :
15738 libgo_has_struct_exception=yes
15739 else
15740 libgo_has_struct_exception=no
15741 fi
15742
15743 if test "$libgo_has_struct_exception" = "yes"; then
15744
15745 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15746
15747 fi
15748
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15750 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15751 if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
15752 $as_echo_n "(cached) " >&6
15753 else
15754 CFLAGS_hold="$CFLAGS"
15755 CFLAGS="$PTHREAD_CFLAGS"
15756 LIBS_hold="$LIBS"
15757 LIBS="$LIBS $PTHREAD_LIBS"
15758 # The cast to long int works around a bug in the HP C Compiler
15759 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15760 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15761 # This bug is HP SR number 8606223364.
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15763 $as_echo_n "checking size of void *... " >&6; }
15764 if ${ac_cv_sizeof_void_p+:} false; then :
15765 $as_echo_n "(cached) " >&6
15766 else
15767 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15768
15769 else
15770 if test "$ac_cv_type_void_p" = yes; then
15771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15773 as_fn_error 77 "cannot compute sizeof (void *)
15774 See \`config.log' for more details" "$LINENO" 5; }
15775 else
15776 ac_cv_sizeof_void_p=0
15777 fi
15778 fi
15779
15780 fi
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15782 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15783
15784
15785
15786 cat >>confdefs.h <<_ACEOF
15787 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15788 _ACEOF
15789
15790
15791 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15792 if test "$cross_compiling" = yes; then :
15793 case "$target:$ptr_type_size" in
15794 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15795 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15796 *)
15797 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15798 esac
15799
15800 else
15801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h. */
15803
15804 #include <pthread.h>
15805 #include <stdlib.h>
15806 #include <ucontext.h>
15807 #include <unistd.h>
15808
15809 __thread int tls;
15810
15811 static char stack[10 * 1024 * 1024];
15812 static ucontext_t c;
15813
15814 /* Called via makecontext/setcontext. */
15815
15816 static void
15817 cfn (void)
15818 {
15819 exit (tls);
15820 }
15821
15822 /* Called via pthread_create. */
15823
15824 static void *
15825 tfn (void *dummy)
15826 {
15827 /* The thread should still see this value after calling
15828 setcontext. */
15829 tls = 0;
15830
15831 setcontext (&c);
15832
15833 /* The call to setcontext should not return. */
15834 abort ();
15835 }
15836
15837 int
15838 main ()
15839 {
15840 pthread_t tid;
15841
15842 /* The thread should not see this value. */
15843 tls = 1;
15844
15845 if (getcontext (&c) < 0)
15846 abort ();
15847
15848 c.uc_stack.ss_sp = stack;
15849 #ifdef MAKECONTEXT_STACK_TOP
15850 c.uc_stack.ss_sp += sizeof stack;
15851 #endif
15852 c.uc_stack.ss_flags = 0;
15853 c.uc_stack.ss_size = sizeof stack;
15854 c.uc_link = NULL;
15855 makecontext (&c, cfn, 0);
15856
15857 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15858 abort ();
15859
15860 if (pthread_join (tid, NULL) != 0)
15861 abort ();
15862
15863 /* The thread should have called exit. */
15864 abort ();
15865 }
15866
15867 _ACEOF
15868 if ac_fn_c_try_run "$LINENO"; then :
15869 libgo_cv_lib_setcontext_clobbers_tls=no
15870 else
15871 libgo_cv_lib_setcontext_clobbers_tls=yes
15872 fi
15873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15874 conftest.$ac_objext conftest.beam conftest.$ac_ext
15875 fi
15876
15877 CFLAGS="$CFLAGS_hold"
15878 LIBS="$LIBS_hold"
15879
15880 fi
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15882 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15883 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15884
15885 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15886
15887 fi
15888
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15890 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15891 if ${libgo_cv_ro_eh_frame+:} false; then :
15892 $as_echo_n "(cached) " >&6
15893 else
15894
15895 libgo_cv_ro_eh_frame=no
15896 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15897 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15898 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15899 libgo_cv_ro_eh_frame=yes
15900 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15901 | grep -v '#write' > /dev/null; then
15902 libgo_cv_ro_eh_frame=yes
15903 fi
15904 fi
15905 rm -f conftest.*
15906
15907 fi
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15909 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15910 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15911
15912 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15913
15914 else
15915
15916 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15917
15918 fi
15919
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15921 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15922 if ${libgo_cv_c_unused_arguments+:} false; then :
15923 $as_echo_n "(cached) " >&6
15924 else
15925 CFLAGS_hold=$CFLAGS
15926 CFLAGS="$CFLAGS -Qunused-arguments"
15927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15929 int i;
15930 _ACEOF
15931 if ac_fn_c_try_compile "$LINENO"; then :
15932 libgo_cv_c_unused_arguments=yes
15933 else
15934 libgo_cv_c_unused_arguments=no
15935 fi
15936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15937 CFLAGS=$CFLAGS_hold
15938 fi
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15940 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15941
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15943 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15944 if ${libgo_cv_as_comdat_gnu+:} false; then :
15945 $as_echo_n "(cached) " >&6
15946 else
15947
15948 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15949 CFLAGS_hold=$CFLAGS
15950 if test "$libgo_cv_c_unused_arguments" = yes; then
15951 CFLAGS="$CFLAGS -Qunused-arguments"
15952 fi
15953 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15954 libgo_cv_as_comdat_gnu=yes
15955 else
15956 libgo_cv_as_comdat_gnu=no
15957 fi
15958 CFLAGS=$CFLAGS_hold
15959
15960 fi
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15962 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15963 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15964
15965 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15966
15967 fi
15968
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15970 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15971 if ${libgo_cv_as_x86_pcrel+:} false; then :
15972 $as_echo_n "(cached) " >&6
15973 else
15974
15975 libgo_cv_as_x86_pcrel=yes
15976 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15977 CFLAGS_hold=$CFLAGS
15978 if test "$libgo_cv_c_unused_arguments" = yes; then
15979 CFLAGS="$CFLAGS -Qunused-arguments"
15980 fi
15981 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15982 libgo_cv_as_x86_pcrel=no
15983 fi
15984 CFLAGS=$CFLAGS_hold
15985
15986 fi
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15988 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15989 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15990
15991 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15992
15993 fi
15994
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15996 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15997 if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
15998 $as_echo_n "(cached) " >&6
15999 else
16000
16001 libgo_cv_as_x86_64_unwind_section_type=yes
16002 echo '.section .eh_frame,"a",@unwind' > conftest.s
16003 CFLAGS_hold=$CFLAGS
16004 if test "$libgo_cv_c_unused_arguments" = yes; then
16005 CFLAGS="$CFLAGS -Qunused-arguments"
16006 fi
16007 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
16008 libgo_cv_as_x86_64_unwind_section_type=no
16009 fi
16010 CFLAGS=$CFLAGS_hold
16011
16012 fi
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
16014 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
16015 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
16016
16017 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16018
16019 fi
16020
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
16022 $as_echo_n "checking assembler supports AES instructions... " >&6; }
16023 if ${libgo_cv_as_x86_aes+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026
16027 libgo_cv_as_x86_aes=yes
16028 echo 'aesenc %xmm0, %xmm1' > conftest.s
16029 CFLAGS_hold=$CFLAGS
16030 if test "$libgo_cv_c_unused_arguments" = yes; then
16031 CFLAGS="$CFLAGS -Qunused-arguments"
16032 fi
16033 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
16034 libgo_cv_as_x86_aes=no
16035 fi
16036 CFLAGS=$CFLAGS_hold
16037
16038 fi
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
16040 $as_echo "$libgo_cv_as_x86_aes" >&6; }
16041 if test "x$libgo_cv_as_x86_aes" = xyes; then
16042
16043 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
16044
16045 fi
16046
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -static is supported" >&5
16048 $as_echo_n "checking whether -static is supported... " >&6; }
16049 if ${libgo_cv_ld_static+:} false; then :
16050 $as_echo_n "(cached) " >&6
16051 else
16052 LDFLAGS_hold=$LDFLAGS
16053 LDFLAGS="$LDFLAGS -static"
16054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16056
16057 int
16058 main ()
16059 {
16060
16061 ;
16062 return 0;
16063 }
16064 _ACEOF
16065 if ac_fn_c_try_link "$LINENO"; then :
16066 libgo_cv_ld_static=yes
16067 else
16068 libgo_cv_ld_static=no
16069 fi
16070 rm -f core conftest.err conftest.$ac_objext \
16071 conftest$ac_exeext conftest.$ac_ext
16072 LDFLAGS=$LDFLAGS_hold
16073 fi
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_static" >&5
16075 $as_echo "$libgo_cv_ld_static" >&6; }
16076 if test "$libgo_cv_ld_static" = yes; then
16077 HAVE_STATIC_LINK_TRUE=
16078 HAVE_STATIC_LINK_FALSE='#'
16079 else
16080 HAVE_STATIC_LINK_TRUE='#'
16081 HAVE_STATIC_LINK_FALSE=
16082 fi
16083
16084
16085 cat >confcache <<\_ACEOF
16086 # This file is a shell script that caches the results of configure
16087 # tests run on this system so they can be shared between configure
16088 # scripts and configure runs, see configure's option --config-cache.
16089 # It is not useful on other systems. If it contains results you don't
16090 # want to keep, you may remove or edit it.
16091 #
16092 # config.status only pays attention to the cache file if you give it
16093 # the --recheck option to rerun configure.
16094 #
16095 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16096 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16097 # following values.
16098
16099 _ACEOF
16100
16101 # The following way of writing the cache mishandles newlines in values,
16102 # but we know of no workaround that is simple, portable, and efficient.
16103 # So, we kill variables containing newlines.
16104 # Ultrix sh set writes to stderr and can't be redirected directly,
16105 # and sets the high bit in the cache file unless we assign to the vars.
16106 (
16107 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16108 eval ac_val=\$$ac_var
16109 case $ac_val in #(
16110 *${as_nl}*)
16111 case $ac_var in #(
16112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16114 esac
16115 case $ac_var in #(
16116 _ | IFS | as_nl) ;; #(
16117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16118 *) { eval $ac_var=; unset $ac_var;} ;;
16119 esac ;;
16120 esac
16121 done
16122
16123 (set) 2>&1 |
16124 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16125 *${as_nl}ac_space=\ *)
16126 # `set' does not quote correctly, so add quotes: double-quote
16127 # substitution turns \\\\ into \\, and sed turns \\ into \.
16128 sed -n \
16129 "s/'/'\\\\''/g;
16130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16131 ;; #(
16132 *)
16133 # `set' quotes correctly as required by POSIX, so do not add quotes.
16134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16135 ;;
16136 esac |
16137 sort
16138 ) |
16139 sed '
16140 /^ac_cv_env_/b end
16141 t clear
16142 :clear
16143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16144 t end
16145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16146 :end' >>confcache
16147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16148 if test -w "$cache_file"; then
16149 if test "x$cache_file" != "x/dev/null"; then
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16151 $as_echo "$as_me: updating cache $cache_file" >&6;}
16152 if test ! -f "$cache_file" || test -h "$cache_file"; then
16153 cat confcache >"$cache_file"
16154 else
16155 case $cache_file in #(
16156 */* | ?:*)
16157 mv -f confcache "$cache_file"$$ &&
16158 mv -f "$cache_file"$$ "$cache_file" ;; #(
16159 *)
16160 mv -f confcache "$cache_file" ;;
16161 esac
16162 fi
16163 fi
16164 else
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16166 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16167 fi
16168 fi
16169 rm -f confcache
16170
16171 if test ${multilib} = yes; then
16172 multilib_arg="--enable-multilib"
16173 else
16174 multilib_arg=
16175 fi
16176
16177 ac_config_files="$ac_config_files Makefile testsuite/Makefile testsuite/libgo-test-support.exp"
16178
16179
16180 ac_config_commands="$ac_config_commands default"
16181
16182
16183 cat >confcache <<\_ACEOF
16184 # This file is a shell script that caches the results of configure
16185 # tests run on this system so they can be shared between configure
16186 # scripts and configure runs, see configure's option --config-cache.
16187 # It is not useful on other systems. If it contains results you don't
16188 # want to keep, you may remove or edit it.
16189 #
16190 # config.status only pays attention to the cache file if you give it
16191 # the --recheck option to rerun configure.
16192 #
16193 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16194 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16195 # following values.
16196
16197 _ACEOF
16198
16199 # The following way of writing the cache mishandles newlines in values,
16200 # but we know of no workaround that is simple, portable, and efficient.
16201 # So, we kill variables containing newlines.
16202 # Ultrix sh set writes to stderr and can't be redirected directly,
16203 # and sets the high bit in the cache file unless we assign to the vars.
16204 (
16205 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16206 eval ac_val=\$$ac_var
16207 case $ac_val in #(
16208 *${as_nl}*)
16209 case $ac_var in #(
16210 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16211 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16212 esac
16213 case $ac_var in #(
16214 _ | IFS | as_nl) ;; #(
16215 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16216 *) { eval $ac_var=; unset $ac_var;} ;;
16217 esac ;;
16218 esac
16219 done
16220
16221 (set) 2>&1 |
16222 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16223 *${as_nl}ac_space=\ *)
16224 # `set' does not quote correctly, so add quotes: double-quote
16225 # substitution turns \\\\ into \\, and sed turns \\ into \.
16226 sed -n \
16227 "s/'/'\\\\''/g;
16228 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16229 ;; #(
16230 *)
16231 # `set' quotes correctly as required by POSIX, so do not add quotes.
16232 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16233 ;;
16234 esac |
16235 sort
16236 ) |
16237 sed '
16238 /^ac_cv_env_/b end
16239 t clear
16240 :clear
16241 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16242 t end
16243 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16244 :end' >>confcache
16245 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16246 if test -w "$cache_file"; then
16247 if test "x$cache_file" != "x/dev/null"; then
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16249 $as_echo "$as_me: updating cache $cache_file" >&6;}
16250 if test ! -f "$cache_file" || test -h "$cache_file"; then
16251 cat confcache >"$cache_file"
16252 else
16253 case $cache_file in #(
16254 */* | ?:*)
16255 mv -f confcache "$cache_file"$$ &&
16256 mv -f "$cache_file"$$ "$cache_file" ;; #(
16257 *)
16258 mv -f confcache "$cache_file" ;;
16259 esac
16260 fi
16261 fi
16262 else
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16264 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16265 fi
16266 fi
16267 rm -f confcache
16268
16269 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16270 # Let make expand exec_prefix.
16271 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16272
16273 DEFS=-DHAVE_CONFIG_H
16274
16275 ac_libobjs=
16276 ac_ltlibobjs=
16277 U=
16278 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16279 # 1. Remove the extension, and $U if already installed.
16280 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16281 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16282 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16283 # will be set to the directory where LIBOBJS objects are built.
16284 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16285 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16286 done
16287 LIBOBJS=$ac_libobjs
16288
16289 LTLIBOBJS=$ac_ltlibobjs
16290
16291
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16293 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16294 if test -n "$am_sleep_pid"; then
16295 # Hide warnings about reused PIDs.
16296 wait $am_sleep_pid 2>/dev/null
16297 fi
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16299 $as_echo "done" >&6; }
16300 if test -n "$EXEEXT"; then
16301 am__EXEEXT_TRUE=
16302 am__EXEEXT_FALSE='#'
16303 else
16304 am__EXEEXT_TRUE='#'
16305 am__EXEEXT_FALSE=
16306 fi
16307
16308 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16309 as_fn_error $? "conditional \"AMDEP\" was never defined.
16310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16311 fi
16312 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16313 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16315 fi
16316 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16317 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16319 fi
16320 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16321 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16323 fi
16324 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
16325 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
16326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16327 fi
16328 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
16329 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
16330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16331 fi
16332 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
16333 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
16334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16335 fi
16336 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
16337 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
16338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16339 fi
16340 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
16341 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
16342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16343 fi
16344 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
16345 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
16346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16347 fi
16348 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
16349 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
16350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16351 fi
16352 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
16353 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
16354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16355 fi
16356 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
16357 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
16358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16359 fi
16360 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
16361 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
16362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16363 fi
16364 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
16365 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
16366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16367 fi
16368 if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16369 as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
16370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16371 fi
16372 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
16373 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
16374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16375 fi
16376 if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16377 as_fn_error $? "conditional \"LIBGO_IS_X86\" was never defined.
16378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16379 fi
16380 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
16381 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
16382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16383 fi
16384 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
16385 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
16386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16387 fi
16388
16389 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
16390 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
16391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16392 fi
16393 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
16394 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
16395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16396 fi
16397 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
16398 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
16399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16400 fi
16401 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
16402 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
16403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16404 fi
16405 if test -z "${HAVE_STATIC_LINK_TRUE}" && test -z "${HAVE_STATIC_LINK_FALSE}"; then
16406 as_fn_error $? "conditional \"HAVE_STATIC_LINK\" was never defined.
16407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16408 fi
16409
16410 : "${CONFIG_STATUS=./config.status}"
16411 ac_write_fail=0
16412 ac_clean_files_save=$ac_clean_files
16413 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16415 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16416 as_write_fail=0
16417 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16418 #! $SHELL
16419 # Generated by $as_me.
16420 # Run this file to recreate the current configuration.
16421 # Compiler output produced by configure, useful for debugging
16422 # configure, is in config.log if it exists.
16423
16424 debug=false
16425 ac_cs_recheck=false
16426 ac_cs_silent=false
16427
16428 SHELL=\${CONFIG_SHELL-$SHELL}
16429 export SHELL
16430 _ASEOF
16431 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16432 ## -------------------- ##
16433 ## M4sh Initialization. ##
16434 ## -------------------- ##
16435
16436 # Be more Bourne compatible
16437 DUALCASE=1; export DUALCASE # for MKS sh
16438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16439 emulate sh
16440 NULLCMD=:
16441 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16442 # is contrary to our usage. Disable this feature.
16443 alias -g '${1+"$@"}'='"$@"'
16444 setopt NO_GLOB_SUBST
16445 else
16446 case `(set -o) 2>/dev/null` in #(
16447 *posix*) :
16448 set -o posix ;; #(
16449 *) :
16450 ;;
16451 esac
16452 fi
16453
16454
16455 as_nl='
16456 '
16457 export as_nl
16458 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16459 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16460 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16461 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16462 # Prefer a ksh shell builtin over an external printf program on Solaris,
16463 # but without wasting forks for bash or zsh.
16464 if test -z "$BASH_VERSION$ZSH_VERSION" \
16465 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16466 as_echo='print -r --'
16467 as_echo_n='print -rn --'
16468 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16469 as_echo='printf %s\n'
16470 as_echo_n='printf %s'
16471 else
16472 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16473 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16474 as_echo_n='/usr/ucb/echo -n'
16475 else
16476 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16477 as_echo_n_body='eval
16478 arg=$1;
16479 case $arg in #(
16480 *"$as_nl"*)
16481 expr "X$arg" : "X\\(.*\\)$as_nl";
16482 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16483 esac;
16484 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16485 '
16486 export as_echo_n_body
16487 as_echo_n='sh -c $as_echo_n_body as_echo'
16488 fi
16489 export as_echo_body
16490 as_echo='sh -c $as_echo_body as_echo'
16491 fi
16492
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495 PATH_SEPARATOR=:
16496 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16497 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16498 PATH_SEPARATOR=';'
16499 }
16500 fi
16501
16502
16503 # IFS
16504 # We need space, tab and new line, in precisely that order. Quoting is
16505 # there to prevent editors from complaining about space-tab.
16506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16507 # splitting by setting IFS to empty value.)
16508 IFS=" "" $as_nl"
16509
16510 # Find who we are. Look in the path if we contain no directory separator.
16511 as_myself=
16512 case $0 in #((
16513 *[\\/]* ) as_myself=$0 ;;
16514 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517 IFS=$as_save_IFS
16518 test -z "$as_dir" && as_dir=.
16519 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16520 done
16521 IFS=$as_save_IFS
16522
16523 ;;
16524 esac
16525 # We did not find ourselves, most probably we were run as `sh COMMAND'
16526 # in which case we are not to be found in the path.
16527 if test "x$as_myself" = x; then
16528 as_myself=$0
16529 fi
16530 if test ! -f "$as_myself"; then
16531 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16532 exit 1
16533 fi
16534
16535 # Unset variables that we do not need and which cause bugs (e.g. in
16536 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16537 # suppresses any "Segmentation fault" message there. '((' could
16538 # trigger a bug in pdksh 5.2.14.
16539 for as_var in BASH_ENV ENV MAIL MAILPATH
16540 do eval test x\${$as_var+set} = xset \
16541 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16542 done
16543 PS1='$ '
16544 PS2='> '
16545 PS4='+ '
16546
16547 # NLS nuisances.
16548 LC_ALL=C
16549 export LC_ALL
16550 LANGUAGE=C
16551 export LANGUAGE
16552
16553 # CDPATH.
16554 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16555
16556
16557 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16558 # ----------------------------------------
16559 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16560 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16561 # script with STATUS, using 1 if that was 0.
16562 as_fn_error ()
16563 {
16564 as_status=$1; test $as_status -eq 0 && as_status=1
16565 if test "$4"; then
16566 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16567 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16568 fi
16569 $as_echo "$as_me: error: $2" >&2
16570 as_fn_exit $as_status
16571 } # as_fn_error
16572
16573
16574 # as_fn_set_status STATUS
16575 # -----------------------
16576 # Set $? to STATUS, without forking.
16577 as_fn_set_status ()
16578 {
16579 return $1
16580 } # as_fn_set_status
16581
16582 # as_fn_exit STATUS
16583 # -----------------
16584 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16585 as_fn_exit ()
16586 {
16587 set +e
16588 as_fn_set_status $1
16589 exit $1
16590 } # as_fn_exit
16591
16592 # as_fn_unset VAR
16593 # ---------------
16594 # Portably unset VAR.
16595 as_fn_unset ()
16596 {
16597 { eval $1=; unset $1;}
16598 }
16599 as_unset=as_fn_unset
16600 # as_fn_append VAR VALUE
16601 # ----------------------
16602 # Append the text in VALUE to the end of the definition contained in VAR. Take
16603 # advantage of any shell optimizations that allow amortized linear growth over
16604 # repeated appends, instead of the typical quadratic growth present in naive
16605 # implementations.
16606 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16607 eval 'as_fn_append ()
16608 {
16609 eval $1+=\$2
16610 }'
16611 else
16612 as_fn_append ()
16613 {
16614 eval $1=\$$1\$2
16615 }
16616 fi # as_fn_append
16617
16618 # as_fn_arith ARG...
16619 # ------------------
16620 # Perform arithmetic evaluation on the ARGs, and store the result in the
16621 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16622 # must be portable across $(()) and expr.
16623 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16624 eval 'as_fn_arith ()
16625 {
16626 as_val=$(( $* ))
16627 }'
16628 else
16629 as_fn_arith ()
16630 {
16631 as_val=`expr "$@" || test $? -eq 1`
16632 }
16633 fi # as_fn_arith
16634
16635
16636 if expr a : '\(a\)' >/dev/null 2>&1 &&
16637 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16638 as_expr=expr
16639 else
16640 as_expr=false
16641 fi
16642
16643 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16644 as_basename=basename
16645 else
16646 as_basename=false
16647 fi
16648
16649 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16650 as_dirname=dirname
16651 else
16652 as_dirname=false
16653 fi
16654
16655 as_me=`$as_basename -- "$0" ||
16656 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16657 X"$0" : 'X\(//\)$' \| \
16658 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16659 $as_echo X/"$0" |
16660 sed '/^.*\/\([^/][^/]*\)\/*$/{
16661 s//\1/
16662 q
16663 }
16664 /^X\/\(\/\/\)$/{
16665 s//\1/
16666 q
16667 }
16668 /^X\/\(\/\).*/{
16669 s//\1/
16670 q
16671 }
16672 s/.*/./; q'`
16673
16674 # Avoid depending upon Character Ranges.
16675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16678 as_cr_digits='0123456789'
16679 as_cr_alnum=$as_cr_Letters$as_cr_digits
16680
16681 ECHO_C= ECHO_N= ECHO_T=
16682 case `echo -n x` in #(((((
16683 -n*)
16684 case `echo 'xy\c'` in
16685 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16686 xy) ECHO_C='\c';;
16687 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16688 ECHO_T=' ';;
16689 esac;;
16690 *)
16691 ECHO_N='-n';;
16692 esac
16693
16694 rm -f conf$$ conf$$.exe conf$$.file
16695 if test -d conf$$.dir; then
16696 rm -f conf$$.dir/conf$$.file
16697 else
16698 rm -f conf$$.dir
16699 mkdir conf$$.dir 2>/dev/null
16700 fi
16701 if (echo >conf$$.file) 2>/dev/null; then
16702 if ln -s conf$$.file conf$$ 2>/dev/null; then
16703 as_ln_s='ln -s'
16704 # ... but there are two gotchas:
16705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16707 # In both cases, we have to default to `cp -pR'.
16708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16709 as_ln_s='cp -pR'
16710 elif ln conf$$.file conf$$ 2>/dev/null; then
16711 as_ln_s=ln
16712 else
16713 as_ln_s='cp -pR'
16714 fi
16715 else
16716 as_ln_s='cp -pR'
16717 fi
16718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16719 rmdir conf$$.dir 2>/dev/null
16720
16721
16722 # as_fn_mkdir_p
16723 # -------------
16724 # Create "$as_dir" as a directory, including parents if necessary.
16725 as_fn_mkdir_p ()
16726 {
16727
16728 case $as_dir in #(
16729 -*) as_dir=./$as_dir;;
16730 esac
16731 test -d "$as_dir" || eval $as_mkdir_p || {
16732 as_dirs=
16733 while :; do
16734 case $as_dir in #(
16735 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16736 *) as_qdir=$as_dir;;
16737 esac
16738 as_dirs="'$as_qdir' $as_dirs"
16739 as_dir=`$as_dirname -- "$as_dir" ||
16740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16741 X"$as_dir" : 'X\(//\)[^/]' \| \
16742 X"$as_dir" : 'X\(//\)$' \| \
16743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16744 $as_echo X"$as_dir" |
16745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16746 s//\1/
16747 q
16748 }
16749 /^X\(\/\/\)[^/].*/{
16750 s//\1/
16751 q
16752 }
16753 /^X\(\/\/\)$/{
16754 s//\1/
16755 q
16756 }
16757 /^X\(\/\).*/{
16758 s//\1/
16759 q
16760 }
16761 s/.*/./; q'`
16762 test -d "$as_dir" && break
16763 done
16764 test -z "$as_dirs" || eval "mkdir $as_dirs"
16765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16766
16767
16768 } # as_fn_mkdir_p
16769 if mkdir -p . 2>/dev/null; then
16770 as_mkdir_p='mkdir -p "$as_dir"'
16771 else
16772 test -d ./-p && rmdir ./-p
16773 as_mkdir_p=false
16774 fi
16775
16776
16777 # as_fn_executable_p FILE
16778 # -----------------------
16779 # Test if FILE is an executable regular file.
16780 as_fn_executable_p ()
16781 {
16782 test -f "$1" && test -x "$1"
16783 } # as_fn_executable_p
16784 as_test_x='test -x'
16785 as_executable_p=as_fn_executable_p
16786
16787 # Sed expression to map a string onto a valid CPP name.
16788 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16789
16790 # Sed expression to map a string onto a valid variable name.
16791 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16792
16793
16794 exec 6>&1
16795 ## ----------------------------------- ##
16796 ## Main body of $CONFIG_STATUS script. ##
16797 ## ----------------------------------- ##
16798 _ASEOF
16799 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16800
16801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16802 # Save the log message, to keep $0 and so on meaningful, and to
16803 # report actual input values of CONFIG_FILES etc. instead of their
16804 # values after options handling.
16805 ac_log="
16806 This file was extended by package-unused $as_me version-unused, which was
16807 generated by GNU Autoconf 2.69. Invocation command line was
16808
16809 CONFIG_FILES = $CONFIG_FILES
16810 CONFIG_HEADERS = $CONFIG_HEADERS
16811 CONFIG_LINKS = $CONFIG_LINKS
16812 CONFIG_COMMANDS = $CONFIG_COMMANDS
16813 $ $0 $@
16814
16815 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16816 "
16817
16818 _ACEOF
16819
16820 case $ac_config_files in *"
16821 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16822 esac
16823
16824 case $ac_config_headers in *"
16825 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16826 esac
16827
16828
16829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16830 # Files that config.status was made for.
16831 config_files="$ac_config_files"
16832 config_headers="$ac_config_headers"
16833 config_commands="$ac_config_commands"
16834
16835 _ACEOF
16836
16837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16838 ac_cs_usage="\
16839 \`$as_me' instantiates files and other configuration actions
16840 from templates according to the current configuration. Unless the files
16841 and actions are specified as TAGs, all are instantiated by default.
16842
16843 Usage: $0 [OPTION]... [TAG]...
16844
16845 -h, --help print this help, then exit
16846 -V, --version print version number and configuration settings, then exit
16847 --config print configuration, then exit
16848 -q, --quiet, --silent
16849 do not print progress messages
16850 -d, --debug don't remove temporary files
16851 --recheck update $as_me by reconfiguring in the same conditions
16852 --file=FILE[:TEMPLATE]
16853 instantiate the configuration file FILE
16854 --header=FILE[:TEMPLATE]
16855 instantiate the configuration header FILE
16856
16857 Configuration files:
16858 $config_files
16859
16860 Configuration headers:
16861 $config_headers
16862
16863 Configuration commands:
16864 $config_commands
16865
16866 Report bugs to the package provider."
16867
16868 _ACEOF
16869 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16870 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16871 ac_cs_version="\\
16872 package-unused config.status version-unused
16873 configured by $0, generated by GNU Autoconf 2.69,
16874 with options \\"\$ac_cs_config\\"
16875
16876 Copyright (C) 2012 Free Software Foundation, Inc.
16877 This config.status script is free software; the Free Software Foundation
16878 gives unlimited permission to copy, distribute and modify it."
16879
16880 ac_pwd='$ac_pwd'
16881 srcdir='$srcdir'
16882 INSTALL='$INSTALL'
16883 MKDIR_P='$MKDIR_P'
16884 AWK='$AWK'
16885 test -n "\$AWK" || AWK=awk
16886 _ACEOF
16887
16888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16889 # The default lists apply if the user does not specify any file.
16890 ac_need_defaults=:
16891 while test $# != 0
16892 do
16893 case $1 in
16894 --*=?*)
16895 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16896 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16897 ac_shift=:
16898 ;;
16899 --*=)
16900 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16901 ac_optarg=
16902 ac_shift=:
16903 ;;
16904 *)
16905 ac_option=$1
16906 ac_optarg=$2
16907 ac_shift=shift
16908 ;;
16909 esac
16910
16911 case $ac_option in
16912 # Handling of the options.
16913 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16914 ac_cs_recheck=: ;;
16915 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16916 $as_echo "$ac_cs_version"; exit ;;
16917 --config | --confi | --conf | --con | --co | --c )
16918 $as_echo "$ac_cs_config"; exit ;;
16919 --debug | --debu | --deb | --de | --d | -d )
16920 debug=: ;;
16921 --file | --fil | --fi | --f )
16922 $ac_shift
16923 case $ac_optarg in
16924 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16925 '') as_fn_error $? "missing file argument" ;;
16926 esac
16927 as_fn_append CONFIG_FILES " '$ac_optarg'"
16928 ac_need_defaults=false;;
16929 --header | --heade | --head | --hea )
16930 $ac_shift
16931 case $ac_optarg in
16932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16933 esac
16934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16935 ac_need_defaults=false;;
16936 --he | --h)
16937 # Conflict between --help and --header
16938 as_fn_error $? "ambiguous option: \`$1'
16939 Try \`$0 --help' for more information.";;
16940 --help | --hel | -h )
16941 $as_echo "$ac_cs_usage"; exit ;;
16942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16944 ac_cs_silent=: ;;
16945
16946 # This is an error.
16947 -*) as_fn_error $? "unrecognized option: \`$1'
16948 Try \`$0 --help' for more information." ;;
16949
16950 *) as_fn_append ac_config_targets " $1"
16951 ac_need_defaults=false ;;
16952
16953 esac
16954 shift
16955 done
16956
16957 ac_configure_extra_args=
16958
16959 if $ac_cs_silent; then
16960 exec 6>/dev/null
16961 ac_configure_extra_args="$ac_configure_extra_args --silent"
16962 fi
16963
16964 _ACEOF
16965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16966 if \$ac_cs_recheck; then
16967 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16968 shift
16969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16970 CONFIG_SHELL='$SHELL'
16971 export CONFIG_SHELL
16972 exec "\$@"
16973 fi
16974
16975 _ACEOF
16976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16977 exec 5>>config.log
16978 {
16979 echo
16980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16981 ## Running $as_me. ##
16982 _ASBOX
16983 $as_echo "$ac_log"
16984 } >&5
16985
16986 _ACEOF
16987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16988 #
16989 # INIT-COMMANDS
16990 #
16991
16992 srcdir="$srcdir"
16993 host="$host"
16994 target="$target"
16995 with_multisubdir="$with_multisubdir"
16996 with_multisrctop="$with_multisrctop"
16997 with_target_subdir="$with_target_subdir"
16998 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16999 multi_basedir="$multi_basedir"
17000 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17001 CC="$CC"
17002 CXX="$CXX"
17003 GFORTRAN="$GFORTRAN"
17004 GDC="$GDC"
17005 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17006
17007
17008 # The HP-UX ksh and POSIX shell print the target directory to stdout
17009 # if CDPATH is set.
17010 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17011
17012 sed_quote_subst='$sed_quote_subst'
17013 double_quote_subst='$double_quote_subst'
17014 delay_variable_subst='$delay_variable_subst'
17015 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17016 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17017 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17018 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17019 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17020 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17021 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17022 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17023 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17024 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17025 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17026 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17027 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17028 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17029 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17030 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17031 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17032 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17033 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17034 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17035 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17036 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17037 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17038 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17039 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17040 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17041 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17042 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17043 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17044 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17045 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17046 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17047 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17048 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17049 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17050 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17051 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17052 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17053 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17054 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17055 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17056 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17057 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17058 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17059 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17060 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17061 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17062 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17063 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"`'
17064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17067 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17068 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17072 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17073 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17074 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17075 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17076 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17077 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17078 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17079 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17080 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17081 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17082 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17083 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17084 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17085 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17086 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17087 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17088 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17089 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17090 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17091 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17092 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17093 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17094 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17095 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17096 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17097 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17098 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17099 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17100 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17101 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17102 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17103 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17104 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17105 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17106 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17107 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17108 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17109 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17110 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17111 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17112 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17113 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17114 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17115 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17116 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17117 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17118 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17119 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17120 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17121 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17122 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17123 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17124 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17125 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17126 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17127 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17128 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17129 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17130 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17131 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17132 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17133 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17134 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17135 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
17136 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
17137 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
17138 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
17139 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
17140 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
17141 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
17142 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
17143 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
17144 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
17145 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
17146 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
17147 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
17148 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17149 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17150 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
17151 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
17152 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
17153 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
17154 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
17155 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
17156 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
17157 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
17158 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
17159 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
17160 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
17161 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
17162 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
17163 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
17164 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
17165 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
17166 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
17167 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
17168 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
17169 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
17170 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
17171 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
17172 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
17173 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
17174 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
17175 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
17176 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
17177 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
17178
17179 LTCC='$LTCC'
17180 LTCFLAGS='$LTCFLAGS'
17181 compiler='$compiler_DEFAULT'
17182
17183 # A function that is used when there is no print builtin or printf.
17184 func_fallback_echo ()
17185 {
17186 eval 'cat <<_LTECHO_EOF
17187 \$1
17188 _LTECHO_EOF'
17189 }
17190
17191 # Quote evaled strings.
17192 for var in SED \
17193 GREP \
17194 EGREP \
17195 FGREP \
17196 SHELL \
17197 ECHO \
17198 LD \
17199 NM \
17200 LN_S \
17201 lt_SP2NL \
17202 lt_NL2SP \
17203 reload_flag \
17204 OBJDUMP \
17205 deplibs_check_method \
17206 file_magic_cmd \
17207 AR \
17208 AR_FLAGS \
17209 STRIP \
17210 RANLIB \
17211 CC \
17212 CFLAGS \
17213 compiler \
17214 lt_cv_sys_global_symbol_pipe \
17215 lt_cv_sys_global_symbol_to_cdecl \
17216 lt_cv_sys_global_symbol_to_c_name_address \
17217 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17218 lt_prog_compiler_no_builtin_flag \
17219 lt_prog_compiler_wl \
17220 lt_prog_compiler_pic \
17221 lt_prog_compiler_static \
17222 lt_cv_prog_compiler_c_o \
17223 need_locks \
17224 DSYMUTIL \
17225 NMEDIT \
17226 LIPO \
17227 OTOOL \
17228 OTOOL64 \
17229 shrext_cmds \
17230 export_dynamic_flag_spec \
17231 whole_archive_flag_spec \
17232 compiler_needs_object \
17233 with_gnu_ld \
17234 allow_undefined_flag \
17235 no_undefined_flag \
17236 hardcode_libdir_flag_spec \
17237 hardcode_libdir_flag_spec_ld \
17238 hardcode_libdir_separator \
17239 fix_srcfile_path \
17240 exclude_expsyms \
17241 include_expsyms \
17242 file_list_spec \
17243 variables_saved_for_relink \
17244 libname_spec \
17245 library_names_spec \
17246 soname_spec \
17247 install_override_mode \
17248 finish_eval \
17249 old_striplib \
17250 striplib \
17251 LD_GO \
17252 reload_flag_GO \
17253 compiler_GO \
17254 lt_prog_compiler_no_builtin_flag_GO \
17255 lt_prog_compiler_wl_GO \
17256 lt_prog_compiler_pic_GO \
17257 lt_prog_compiler_static_GO \
17258 lt_cv_prog_compiler_c_o_GO \
17259 export_dynamic_flag_spec_GO \
17260 whole_archive_flag_spec_GO \
17261 compiler_needs_object_GO \
17262 with_gnu_ld_GO \
17263 allow_undefined_flag_GO \
17264 no_undefined_flag_GO \
17265 hardcode_libdir_flag_spec_GO \
17266 hardcode_libdir_flag_spec_ld_GO \
17267 hardcode_libdir_separator_GO \
17268 fix_srcfile_path_GO \
17269 exclude_expsyms_GO \
17270 include_expsyms_GO \
17271 file_list_spec_GO; do
17272 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17273 *[\\\\\\\`\\"\\\$]*)
17274 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17275 ;;
17276 *)
17277 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17278 ;;
17279 esac
17280 done
17281
17282 # Double-quote double-evaled strings.
17283 for var in reload_cmds \
17284 old_postinstall_cmds \
17285 old_postuninstall_cmds \
17286 old_archive_cmds \
17287 extract_expsyms_cmds \
17288 old_archive_from_new_cmds \
17289 old_archive_from_expsyms_cmds \
17290 archive_cmds \
17291 archive_expsym_cmds \
17292 module_cmds \
17293 module_expsym_cmds \
17294 export_symbols_cmds \
17295 prelink_cmds \
17296 postinstall_cmds \
17297 postuninstall_cmds \
17298 finish_cmds \
17299 sys_lib_search_path_spec \
17300 sys_lib_dlsearch_path_spec \
17301 reload_cmds_GO \
17302 old_archive_cmds_GO \
17303 old_archive_from_new_cmds_GO \
17304 old_archive_from_expsyms_cmds_GO \
17305 archive_cmds_GO \
17306 archive_expsym_cmds_GO \
17307 module_cmds_GO \
17308 module_expsym_cmds_GO \
17309 export_symbols_cmds_GO \
17310 prelink_cmds_GO; do
17311 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17312 *[\\\\\\\`\\"\\\$]*)
17313 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17314 ;;
17315 *)
17316 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17317 ;;
17318 esac
17319 done
17320
17321 ac_aux_dir='$ac_aux_dir'
17322 xsi_shell='$xsi_shell'
17323 lt_shell_append='$lt_shell_append'
17324
17325 # See if we are running on zsh, and set the options which allow our
17326 # commands through without removal of \ escapes INIT.
17327 if test -n "\${ZSH_VERSION+set}" ; then
17328 setopt NO_GLOB_SUBST
17329 fi
17330
17331
17332 PACKAGE='$PACKAGE'
17333 VERSION='$VERSION'
17334 TIMESTAMP='$TIMESTAMP'
17335 RM='$RM'
17336 ofile='$ofile'
17337
17338
17339
17340
17341
17342
17343 # Variables needed in config.status (file generation) which aren't already
17344 # passed by autoconf.
17345 SUBDIRS="$SUBDIRS"
17346
17347
17348 _ACEOF
17349
17350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17351
17352 # Handling of arguments.
17353 for ac_config_target in $ac_config_targets
17354 do
17355 case $ac_config_target in
17356 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17357 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17358 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17359 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17360 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17361 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17362 "testsuite/libgo-test-support.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgo-test-support.exp" ;;
17363 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17364
17365 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17366 esac
17367 done
17368
17369
17370 # If the user did not use the arguments to specify the items to instantiate,
17371 # then the envvar interface is used. Set only those that are not.
17372 # We use the long form for the default assignment because of an extremely
17373 # bizarre bug on SunOS 4.1.3.
17374 if $ac_need_defaults; then
17375 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17376 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17377 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17378 fi
17379
17380 # Have a temporary directory for convenience. Make it in the build tree
17381 # simply because there is no reason against having it here, and in addition,
17382 # creating and moving files from /tmp can sometimes cause problems.
17383 # Hook for its removal unless debugging.
17384 # Note that there is a small window in which the directory will not be cleaned:
17385 # after its creation but before its name has been assigned to `$tmp'.
17386 $debug ||
17387 {
17388 tmp= ac_tmp=
17389 trap 'exit_status=$?
17390 : "${ac_tmp:=$tmp}"
17391 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17392 ' 0
17393 trap 'as_fn_exit 1' 1 2 13 15
17394 }
17395 # Create a (secure) tmp directory for tmp files.
17396
17397 {
17398 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17399 test -d "$tmp"
17400 } ||
17401 {
17402 tmp=./conf$$-$RANDOM
17403 (umask 077 && mkdir "$tmp")
17404 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17405 ac_tmp=$tmp
17406
17407 # Set up the scripts for CONFIG_FILES section.
17408 # No need to generate them if there are no CONFIG_FILES.
17409 # This happens for instance with `./config.status config.h'.
17410 if test -n "$CONFIG_FILES"; then
17411
17412
17413 ac_cr=`echo X | tr X '\015'`
17414 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17415 # But we know of no other shell where ac_cr would be empty at this
17416 # point, so we can use a bashism as a fallback.
17417 if test "x$ac_cr" = x; then
17418 eval ac_cr=\$\'\\r\'
17419 fi
17420 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17421 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17422 ac_cs_awk_cr='\\r'
17423 else
17424 ac_cs_awk_cr=$ac_cr
17425 fi
17426
17427 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17428 _ACEOF
17429
17430
17431 {
17432 echo "cat >conf$$subs.awk <<_ACEOF" &&
17433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17434 echo "_ACEOF"
17435 } >conf$$subs.sh ||
17436 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17437 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17438 ac_delim='%!_!# '
17439 for ac_last_try in false false false false false :; do
17440 . ./conf$$subs.sh ||
17441 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17442
17443 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17444 if test $ac_delim_n = $ac_delim_num; then
17445 break
17446 elif $ac_last_try; then
17447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17448 else
17449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17450 fi
17451 done
17452 rm -f conf$$subs.sh
17453
17454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17455 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17456 _ACEOF
17457 sed -n '
17458 h
17459 s/^/S["/; s/!.*/"]=/
17460 p
17461 g
17462 s/^[^!]*!//
17463 :repl
17464 t repl
17465 s/'"$ac_delim"'$//
17466 t delim
17467 :nl
17468 h
17469 s/\(.\{148\}\)..*/\1/
17470 t more1
17471 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17472 p
17473 n
17474 b repl
17475 :more1
17476 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17477 p
17478 g
17479 s/.\{148\}//
17480 t nl
17481 :delim
17482 h
17483 s/\(.\{148\}\)..*/\1/
17484 t more2
17485 s/["\\]/\\&/g; s/^/"/; s/$/"/
17486 p
17487 b
17488 :more2
17489 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17490 p
17491 g
17492 s/.\{148\}//
17493 t delim
17494 ' <conf$$subs.awk | sed '
17495 /^[^""]/{
17496 N
17497 s/\n//
17498 }
17499 ' >>$CONFIG_STATUS || ac_write_fail=1
17500 rm -f conf$$subs.awk
17501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17502 _ACAWK
17503 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17504 for (key in S) S_is_set[key] = 1
17505 FS = "\a"
17506
17507 }
17508 {
17509 line = $ 0
17510 nfields = split(line, field, "@")
17511 substed = 0
17512 len = length(field[1])
17513 for (i = 2; i < nfields; i++) {
17514 key = field[i]
17515 keylen = length(key)
17516 if (S_is_set[key]) {
17517 value = S[key]
17518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17519 len += length(value) + length(field[++i])
17520 substed = 1
17521 } else
17522 len += 1 + keylen
17523 }
17524
17525 print line
17526 }
17527
17528 _ACAWK
17529 _ACEOF
17530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17531 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17532 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17533 else
17534 cat
17535 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17536 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17537 _ACEOF
17538
17539 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17540 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17541 # trailing colons and then remove the whole line if VPATH becomes empty
17542 # (actually we leave an empty line to preserve line numbers).
17543 if test "x$srcdir" = x.; then
17544 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17545 h
17546 s///
17547 s/^/:/
17548 s/[ ]*$/:/
17549 s/:\$(srcdir):/:/g
17550 s/:\${srcdir}:/:/g
17551 s/:@srcdir@:/:/g
17552 s/^:*//
17553 s/:*$//
17554 x
17555 s/\(=[ ]*\).*/\1/
17556 G
17557 s/\n//
17558 s/^[^=]*=[ ]*$//
17559 }'
17560 fi
17561
17562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17563 fi # test -n "$CONFIG_FILES"
17564
17565 # Set up the scripts for CONFIG_HEADERS section.
17566 # No need to generate them if there are no CONFIG_HEADERS.
17567 # This happens for instance with `./config.status Makefile'.
17568 if test -n "$CONFIG_HEADERS"; then
17569 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17570 BEGIN {
17571 _ACEOF
17572
17573 # Transform confdefs.h into an awk script `defines.awk', embedded as
17574 # here-document in config.status, that substitutes the proper values into
17575 # config.h.in to produce config.h.
17576
17577 # Create a delimiter string that does not exist in confdefs.h, to ease
17578 # handling of long lines.
17579 ac_delim='%!_!# '
17580 for ac_last_try in false false :; do
17581 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17582 if test -z "$ac_tt"; then
17583 break
17584 elif $ac_last_try; then
17585 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17586 else
17587 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17588 fi
17589 done
17590
17591 # For the awk script, D is an array of macro values keyed by name,
17592 # likewise P contains macro parameters if any. Preserve backslash
17593 # newline sequences.
17594
17595 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17596 sed -n '
17597 s/.\{148\}/&'"$ac_delim"'/g
17598 t rset
17599 :rset
17600 s/^[ ]*#[ ]*define[ ][ ]*/ /
17601 t def
17602 d
17603 :def
17604 s/\\$//
17605 t bsnl
17606 s/["\\]/\\&/g
17607 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17608 D["\1"]=" \3"/p
17609 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17610 d
17611 :bsnl
17612 s/["\\]/\\&/g
17613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17614 D["\1"]=" \3\\\\\\n"\\/p
17615 t cont
17616 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17617 t cont
17618 d
17619 :cont
17620 n
17621 s/.\{148\}/&'"$ac_delim"'/g
17622 t clear
17623 :clear
17624 s/\\$//
17625 t bsnlc
17626 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17627 d
17628 :bsnlc
17629 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17630 b cont
17631 ' <confdefs.h | sed '
17632 s/'"$ac_delim"'/"\\\
17633 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17634
17635 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17636 for (key in D) D_is_set[key] = 1
17637 FS = "\a"
17638 }
17639 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17640 line = \$ 0
17641 split(line, arg, " ")
17642 if (arg[1] == "#") {
17643 defundef = arg[2]
17644 mac1 = arg[3]
17645 } else {
17646 defundef = substr(arg[1], 2)
17647 mac1 = arg[2]
17648 }
17649 split(mac1, mac2, "(") #)
17650 macro = mac2[1]
17651 prefix = substr(line, 1, index(line, defundef) - 1)
17652 if (D_is_set[macro]) {
17653 # Preserve the white space surrounding the "#".
17654 print prefix "define", macro P[macro] D[macro]
17655 next
17656 } else {
17657 # Replace #undef with comments. This is necessary, for example,
17658 # in the case of _POSIX_SOURCE, which is predefined and required
17659 # on some systems where configure will not decide to define it.
17660 if (defundef == "undef") {
17661 print "/*", prefix defundef, macro, "*/"
17662 next
17663 }
17664 }
17665 }
17666 { print }
17667 _ACAWK
17668 _ACEOF
17669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17670 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17671 fi # test -n "$CONFIG_HEADERS"
17672
17673
17674 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17675 shift
17676 for ac_tag
17677 do
17678 case $ac_tag in
17679 :[FHLC]) ac_mode=$ac_tag; continue;;
17680 esac
17681 case $ac_mode$ac_tag in
17682 :[FHL]*:*);;
17683 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17684 :[FH]-) ac_tag=-:-;;
17685 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17686 esac
17687 ac_save_IFS=$IFS
17688 IFS=:
17689 set x $ac_tag
17690 IFS=$ac_save_IFS
17691 shift
17692 ac_file=$1
17693 shift
17694
17695 case $ac_mode in
17696 :L) ac_source=$1;;
17697 :[FH])
17698 ac_file_inputs=
17699 for ac_f
17700 do
17701 case $ac_f in
17702 -) ac_f="$ac_tmp/stdin";;
17703 *) # Look for the file first in the build tree, then in the source tree
17704 # (if the path is not absolute). The absolute path cannot be DOS-style,
17705 # because $ac_f cannot contain `:'.
17706 test -f "$ac_f" ||
17707 case $ac_f in
17708 [\\/$]*) false;;
17709 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17710 esac ||
17711 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17712 esac
17713 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17714 as_fn_append ac_file_inputs " '$ac_f'"
17715 done
17716
17717 # Let's still pretend it is `configure' which instantiates (i.e., don't
17718 # use $as_me), people would be surprised to read:
17719 # /* config.h. Generated by config.status. */
17720 configure_input='Generated from '`
17721 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17722 `' by configure.'
17723 if test x"$ac_file" != x-; then
17724 configure_input="$ac_file. $configure_input"
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17726 $as_echo "$as_me: creating $ac_file" >&6;}
17727 fi
17728 # Neutralize special characters interpreted by sed in replacement strings.
17729 case $configure_input in #(
17730 *\&* | *\|* | *\\* )
17731 ac_sed_conf_input=`$as_echo "$configure_input" |
17732 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17733 *) ac_sed_conf_input=$configure_input;;
17734 esac
17735
17736 case $ac_tag in
17737 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17738 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17739 esac
17740 ;;
17741 esac
17742
17743 ac_dir=`$as_dirname -- "$ac_file" ||
17744 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17745 X"$ac_file" : 'X\(//\)[^/]' \| \
17746 X"$ac_file" : 'X\(//\)$' \| \
17747 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17748 $as_echo X"$ac_file" |
17749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17750 s//\1/
17751 q
17752 }
17753 /^X\(\/\/\)[^/].*/{
17754 s//\1/
17755 q
17756 }
17757 /^X\(\/\/\)$/{
17758 s//\1/
17759 q
17760 }
17761 /^X\(\/\).*/{
17762 s//\1/
17763 q
17764 }
17765 s/.*/./; q'`
17766 as_dir="$ac_dir"; as_fn_mkdir_p
17767 ac_builddir=.
17768
17769 case "$ac_dir" in
17770 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17771 *)
17772 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17773 # A ".." for each directory in $ac_dir_suffix.
17774 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17775 case $ac_top_builddir_sub in
17776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17778 esac ;;
17779 esac
17780 ac_abs_top_builddir=$ac_pwd
17781 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17782 # for backward compatibility:
17783 ac_top_builddir=$ac_top_build_prefix
17784
17785 case $srcdir in
17786 .) # We are building in place.
17787 ac_srcdir=.
17788 ac_top_srcdir=$ac_top_builddir_sub
17789 ac_abs_top_srcdir=$ac_pwd ;;
17790 [\\/]* | ?:[\\/]* ) # Absolute name.
17791 ac_srcdir=$srcdir$ac_dir_suffix;
17792 ac_top_srcdir=$srcdir
17793 ac_abs_top_srcdir=$srcdir ;;
17794 *) # Relative name.
17795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17796 ac_top_srcdir=$ac_top_build_prefix$srcdir
17797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17798 esac
17799 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17800
17801
17802 case $ac_mode in
17803 :F)
17804 #
17805 # CONFIG_FILE
17806 #
17807
17808 case $INSTALL in
17809 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17810 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17811 esac
17812 ac_MKDIR_P=$MKDIR_P
17813 case $MKDIR_P in
17814 [\\/$]* | ?:[\\/]* ) ;;
17815 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17816 esac
17817 _ACEOF
17818
17819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17820 # If the template does not know about datarootdir, expand it.
17821 # FIXME: This hack should be removed a few years after 2.60.
17822 ac_datarootdir_hack=; ac_datarootdir_seen=
17823 ac_sed_dataroot='
17824 /datarootdir/ {
17825 p
17826 q
17827 }
17828 /@datadir@/p
17829 /@docdir@/p
17830 /@infodir@/p
17831 /@localedir@/p
17832 /@mandir@/p'
17833 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17834 *datarootdir*) ac_datarootdir_seen=yes;;
17835 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17837 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17838 _ACEOF
17839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17840 ac_datarootdir_hack='
17841 s&@datadir@&$datadir&g
17842 s&@docdir@&$docdir&g
17843 s&@infodir@&$infodir&g
17844 s&@localedir@&$localedir&g
17845 s&@mandir@&$mandir&g
17846 s&\\\${datarootdir}&$datarootdir&g' ;;
17847 esac
17848 _ACEOF
17849
17850 # Neutralize VPATH when `$srcdir' = `.'.
17851 # Shell code in configure.ac might set extrasub.
17852 # FIXME: do we really want to maintain this feature?
17853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17854 ac_sed_extra="$ac_vpsub
17855 $extrasub
17856 _ACEOF
17857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17858 :t
17859 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17860 s|@configure_input@|$ac_sed_conf_input|;t t
17861 s&@top_builddir@&$ac_top_builddir_sub&;t t
17862 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17863 s&@srcdir@&$ac_srcdir&;t t
17864 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17865 s&@top_srcdir@&$ac_top_srcdir&;t t
17866 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17867 s&@builddir@&$ac_builddir&;t t
17868 s&@abs_builddir@&$ac_abs_builddir&;t t
17869 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17870 s&@INSTALL@&$ac_INSTALL&;t t
17871 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17872 $ac_datarootdir_hack
17873 "
17874 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17875 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17876
17877 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17878 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17880 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17882 which seems to be undefined. Please make sure it is defined" >&5
17883 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17884 which seems to be undefined. Please make sure it is defined" >&2;}
17885
17886 rm -f "$ac_tmp/stdin"
17887 case $ac_file in
17888 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17889 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17890 esac \
17891 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17892 ;;
17893 :H)
17894 #
17895 # CONFIG_HEADER
17896 #
17897 if test x"$ac_file" != x-; then
17898 {
17899 $as_echo "/* $configure_input */" \
17900 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17901 } >"$ac_tmp/config.h" \
17902 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17903 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17905 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17906 else
17907 rm -f "$ac_file"
17908 mv "$ac_tmp/config.h" "$ac_file" \
17909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17910 fi
17911 else
17912 $as_echo "/* $configure_input */" \
17913 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17914 || as_fn_error $? "could not create -" "$LINENO" 5
17915 fi
17916 # Compute "$ac_file"'s index in $config_headers.
17917 _am_arg="$ac_file"
17918 _am_stamp_count=1
17919 for _am_header in $config_headers :; do
17920 case $_am_header in
17921 $_am_arg | $_am_arg:* )
17922 break ;;
17923 * )
17924 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17925 esac
17926 done
17927 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17928 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17929 X"$_am_arg" : 'X\(//\)[^/]' \| \
17930 X"$_am_arg" : 'X\(//\)$' \| \
17931 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17932 $as_echo X"$_am_arg" |
17933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17934 s//\1/
17935 q
17936 }
17937 /^X\(\/\/\)[^/].*/{
17938 s//\1/
17939 q
17940 }
17941 /^X\(\/\/\)$/{
17942 s//\1/
17943 q
17944 }
17945 /^X\(\/\).*/{
17946 s//\1/
17947 q
17948 }
17949 s/.*/./; q'`/stamp-h$_am_stamp_count
17950 ;;
17951
17952 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17953 $as_echo "$as_me: executing $ac_file commands" >&6;}
17954 ;;
17955 esac
17956
17957
17958 case $ac_file$ac_mode in
17959 "default-1":C)
17960 # Only add multilib support code if we just rebuilt the top-level
17961 # Makefile.
17962 case " $CONFIG_FILES " in
17963 *" Makefile "*)
17964 ac_file=Makefile . ${multi_basedir}/config-ml.in
17965 ;;
17966 esac ;;
17967 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17968 # Older Autoconf quotes --file arguments for eval, but not when files
17969 # are listed without --file. Let's play safe and only enable the eval
17970 # if we detect the quoting.
17971 case $CONFIG_FILES in
17972 *\'*) eval set x "$CONFIG_FILES" ;;
17973 *) set x $CONFIG_FILES ;;
17974 esac
17975 shift
17976 for mf
17977 do
17978 # Strip MF so we end up with the name of the file.
17979 mf=`echo "$mf" | sed -e 's/:.*$//'`
17980 # Check whether this is an Automake generated Makefile or not.
17981 # We used to match only the files named 'Makefile.in', but
17982 # some people rename them; so instead we look at the file content.
17983 # Grep'ing the first line is not enough: some people post-process
17984 # each Makefile.in and add a new line on top of each file to say so.
17985 # Grep'ing the whole file is not good either: AIX grep has a line
17986 # limit of 2048, but all sed's we know have understand at least 4000.
17987 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17988 dirpart=`$as_dirname -- "$mf" ||
17989 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17990 X"$mf" : 'X\(//\)[^/]' \| \
17991 X"$mf" : 'X\(//\)$' \| \
17992 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17993 $as_echo X"$mf" |
17994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17995 s//\1/
17996 q
17997 }
17998 /^X\(\/\/\)[^/].*/{
17999 s//\1/
18000 q
18001 }
18002 /^X\(\/\/\)$/{
18003 s//\1/
18004 q
18005 }
18006 /^X\(\/\).*/{
18007 s//\1/
18008 q
18009 }
18010 s/.*/./; q'`
18011 else
18012 continue
18013 fi
18014 # Extract the definition of DEPDIR, am__include, and am__quote
18015 # from the Makefile without running 'make'.
18016 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18017 test -z "$DEPDIR" && continue
18018 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18019 test -z "$am__include" && continue
18020 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18021 # Find all dependency output files, they are included files with
18022 # $(DEPDIR) in their names. We invoke sed twice because it is the
18023 # simplest approach to changing $(DEPDIR) to its actual value in the
18024 # expansion.
18025 for file in `sed -n "
18026 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18027 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18028 # Make sure the directory exists.
18029 test -f "$dirpart/$file" && continue
18030 fdir=`$as_dirname -- "$file" ||
18031 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18032 X"$file" : 'X\(//\)[^/]' \| \
18033 X"$file" : 'X\(//\)$' \| \
18034 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18035 $as_echo X"$file" |
18036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18037 s//\1/
18038 q
18039 }
18040 /^X\(\/\/\)[^/].*/{
18041 s//\1/
18042 q
18043 }
18044 /^X\(\/\/\)$/{
18045 s//\1/
18046 q
18047 }
18048 /^X\(\/\).*/{
18049 s//\1/
18050 q
18051 }
18052 s/.*/./; q'`
18053 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18054 # echo "creating $dirpart/$file"
18055 echo '# dummy' > "$dirpart/$file"
18056 done
18057 done
18058 }
18059 ;;
18060 "libtool":C)
18061
18062 # See if we are running on zsh, and set the options which allow our
18063 # commands through without removal of \ escapes.
18064 if test -n "${ZSH_VERSION+set}" ; then
18065 setopt NO_GLOB_SUBST
18066 fi
18067
18068 cfgfile="${ofile}T"
18069 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18070 $RM "$cfgfile"
18071
18072 cat <<_LT_EOF >> "$cfgfile"
18073 #! $SHELL
18074
18075 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18076 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18077 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18078 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18079 #
18080 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18081 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18082 # Written by Gordon Matzigkeit, 1996
18083 #
18084 # This file is part of GNU Libtool.
18085 #
18086 # GNU Libtool is free software; you can redistribute it and/or
18087 # modify it under the terms of the GNU General Public License as
18088 # published by the Free Software Foundation; either version 2 of
18089 # the License, or (at your option) any later version.
18090 #
18091 # As a special exception to the GNU General Public License,
18092 # if you distribute this file as part of a program or library that
18093 # is built using GNU Libtool, you may include this file under the
18094 # same distribution terms that you use for the rest of that program.
18095 #
18096 # GNU Libtool is distributed in the hope that it will be useful,
18097 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18098 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18099 # GNU General Public License for more details.
18100 #
18101 # You should have received a copy of the GNU General Public License
18102 # along with GNU Libtool; see the file COPYING. If not, a copy
18103 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18104 # obtained by writing to the Free Software Foundation, Inc.,
18105 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18106
18107
18108 # The names of the tagged configurations supported by this script.
18109 available_tags="GO "
18110
18111 # ### BEGIN LIBTOOL CONFIG
18112
18113 # A sed program that does not truncate output.
18114 SED=$lt_SED
18115
18116 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18117 Xsed="\$SED -e 1s/^X//"
18118
18119 # A grep program that handles long lines.
18120 GREP=$lt_GREP
18121
18122 # An ERE matcher.
18123 EGREP=$lt_EGREP
18124
18125 # A literal string matcher.
18126 FGREP=$lt_FGREP
18127
18128 # Shell to use when invoking shell scripts.
18129 SHELL=$lt_SHELL
18130
18131 # An echo program that protects backslashes.
18132 ECHO=$lt_ECHO
18133
18134 # Which release of libtool.m4 was used?
18135 macro_version=$macro_version
18136 macro_revision=$macro_revision
18137
18138 # Whether or not to build shared libraries.
18139 build_libtool_libs=$enable_shared
18140
18141 # Whether or not to build static libraries.
18142 build_old_libs=$enable_static
18143
18144 # What type of objects to build.
18145 pic_mode=$pic_mode
18146
18147 # Whether or not to optimize for fast installation.
18148 fast_install=$enable_fast_install
18149
18150 # The host system.
18151 host_alias=$host_alias
18152 host=$host
18153 host_os=$host_os
18154
18155 # The build system.
18156 build_alias=$build_alias
18157 build=$build
18158 build_os=$build_os
18159
18160 # A BSD- or MS-compatible name lister.
18161 NM=$lt_NM
18162
18163 # Whether we need soft or hard links.
18164 LN_S=$lt_LN_S
18165
18166 # What is the maximum length of a command?
18167 max_cmd_len=$max_cmd_len
18168
18169 # Object file suffix (normally "o").
18170 objext=$ac_objext
18171
18172 # Executable file suffix (normally "").
18173 exeext=$exeext
18174
18175 # whether the shell understands "unset".
18176 lt_unset=$lt_unset
18177
18178 # turn spaces into newlines.
18179 SP2NL=$lt_lt_SP2NL
18180
18181 # turn newlines into spaces.
18182 NL2SP=$lt_lt_NL2SP
18183
18184 # An object symbol dumper.
18185 OBJDUMP=$lt_OBJDUMP
18186
18187 # Method to check whether dependent libraries are shared objects.
18188 deplibs_check_method=$lt_deplibs_check_method
18189
18190 # Command to use when deplibs_check_method == "file_magic".
18191 file_magic_cmd=$lt_file_magic_cmd
18192
18193 # The archiver.
18194 AR=$lt_AR
18195 AR_FLAGS=$lt_AR_FLAGS
18196
18197 # A symbol stripping program.
18198 STRIP=$lt_STRIP
18199
18200 # Commands used to install an old-style archive.
18201 RANLIB=$lt_RANLIB
18202 old_postinstall_cmds=$lt_old_postinstall_cmds
18203 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18204
18205 # Whether to use a lock for old archive extraction.
18206 lock_old_archive_extraction=$lock_old_archive_extraction
18207
18208 # A C compiler.
18209 LTCC=$lt_CC
18210
18211 # LTCC compiler flags.
18212 LTCFLAGS=$lt_CFLAGS
18213
18214 # Take the output of nm and produce a listing of raw symbols and C names.
18215 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18216
18217 # Transform the output of nm in a proper C declaration.
18218 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18219
18220 # Transform the output of nm in a C name address pair.
18221 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18222
18223 # Transform the output of nm in a C name address pair when lib prefix is needed.
18224 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18225
18226 # The name of the directory that contains temporary libtool files.
18227 objdir=$objdir
18228
18229 # Used to examine libraries when file_magic_cmd begins with "file".
18230 MAGIC_CMD=$MAGIC_CMD
18231
18232 # Must we lock files when doing compilation?
18233 need_locks=$lt_need_locks
18234
18235 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18236 DSYMUTIL=$lt_DSYMUTIL
18237
18238 # Tool to change global to local symbols on Mac OS X.
18239 NMEDIT=$lt_NMEDIT
18240
18241 # Tool to manipulate fat objects and archives on Mac OS X.
18242 LIPO=$lt_LIPO
18243
18244 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18245 OTOOL=$lt_OTOOL
18246
18247 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18248 OTOOL64=$lt_OTOOL64
18249
18250 # Old archive suffix (normally "a").
18251 libext=$libext
18252
18253 # Shared library suffix (normally ".so").
18254 shrext_cmds=$lt_shrext_cmds
18255
18256 # The commands to extract the exported symbol list from a shared archive.
18257 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18258
18259 # Variables whose values should be saved in libtool wrapper scripts and
18260 # restored at link time.
18261 variables_saved_for_relink=$lt_variables_saved_for_relink
18262
18263 # Do we need the "lib" prefix for modules?
18264 need_lib_prefix=$need_lib_prefix
18265
18266 # Do we need a version for libraries?
18267 need_version=$need_version
18268
18269 # Library versioning type.
18270 version_type=$version_type
18271
18272 # Shared library runtime path variable.
18273 runpath_var=$runpath_var
18274
18275 # Shared library path variable.
18276 shlibpath_var=$shlibpath_var
18277
18278 # Is shlibpath searched before the hard-coded library search path?
18279 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18280
18281 # Format of library name prefix.
18282 libname_spec=$lt_libname_spec
18283
18284 # List of archive names. First name is the real one, the rest are links.
18285 # The last name is the one that the linker finds with -lNAME
18286 library_names_spec=$lt_library_names_spec
18287
18288 # The coded name of the library, if different from the real name.
18289 soname_spec=$lt_soname_spec
18290
18291 # Permission mode override for installation of shared libraries.
18292 install_override_mode=$lt_install_override_mode
18293
18294 # Command to use after installation of a shared archive.
18295 postinstall_cmds=$lt_postinstall_cmds
18296
18297 # Command to use after uninstallation of a shared archive.
18298 postuninstall_cmds=$lt_postuninstall_cmds
18299
18300 # Commands used to finish a libtool library installation in a directory.
18301 finish_cmds=$lt_finish_cmds
18302
18303 # As "finish_cmds", except a single script fragment to be evaled but
18304 # not shown.
18305 finish_eval=$lt_finish_eval
18306
18307 # Whether we should hardcode library paths into libraries.
18308 hardcode_into_libs=$hardcode_into_libs
18309
18310 # Compile-time system search path for libraries.
18311 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18312
18313 # Run-time system search path for libraries.
18314 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18315
18316 # Whether dlopen is supported.
18317 dlopen_support=$enable_dlopen
18318
18319 # Whether dlopen of programs is supported.
18320 dlopen_self=$enable_dlopen_self
18321
18322 # Whether dlopen of statically linked programs is supported.
18323 dlopen_self_static=$enable_dlopen_self_static
18324
18325 # Commands to strip libraries.
18326 old_striplib=$lt_old_striplib
18327 striplib=$lt_striplib
18328
18329
18330 # The linker used to build libraries.
18331 LD=$lt_LD
18332
18333 # How to create reloadable object files.
18334 reload_flag=$lt_reload_flag
18335 reload_cmds=$lt_reload_cmds
18336
18337 # Commands used to build an old-style archive.
18338 old_archive_cmds=$lt_old_archive_cmds
18339
18340 # A language specific compiler.
18341 CC=$lt_compiler
18342
18343 # Is the compiler the GNU compiler?
18344 with_gcc=$GCC
18345
18346 # Compiler flag to turn off builtin functions.
18347 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18348
18349 # How to pass a linker flag through the compiler.
18350 wl=$lt_lt_prog_compiler_wl
18351
18352 # Additional compiler flags for building library objects.
18353 pic_flag=$lt_lt_prog_compiler_pic
18354
18355 # Compiler flag to prevent dynamic linking.
18356 link_static_flag=$lt_lt_prog_compiler_static
18357
18358 # Does compiler simultaneously support -c and -o options?
18359 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18360
18361 # Whether or not to add -lc for building shared libraries.
18362 build_libtool_need_lc=$archive_cmds_need_lc
18363
18364 # Whether or not to disallow shared libs when runtime libs are static.
18365 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18366
18367 # Compiler flag to allow reflexive dlopens.
18368 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18369
18370 # Compiler flag to generate shared objects directly from archives.
18371 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18372
18373 # Whether the compiler copes with passing no objects directly.
18374 compiler_needs_object=$lt_compiler_needs_object
18375
18376 # Create an old-style archive from a shared archive.
18377 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18378
18379 # Create a temporary old-style archive to link instead of a shared archive.
18380 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18381
18382 # Commands used to build a shared archive.
18383 archive_cmds=$lt_archive_cmds
18384 archive_expsym_cmds=$lt_archive_expsym_cmds
18385
18386 # Commands used to build a loadable module if different from building
18387 # a shared archive.
18388 module_cmds=$lt_module_cmds
18389 module_expsym_cmds=$lt_module_expsym_cmds
18390
18391 # Whether we are building with GNU ld or not.
18392 with_gnu_ld=$lt_with_gnu_ld
18393
18394 # Flag that allows shared libraries with undefined symbols to be built.
18395 allow_undefined_flag=$lt_allow_undefined_flag
18396
18397 # Flag that enforces no undefined symbols.
18398 no_undefined_flag=$lt_no_undefined_flag
18399
18400 # Flag to hardcode \$libdir into a binary during linking.
18401 # This must work even if \$libdir does not exist
18402 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18403
18404 # If ld is used when linking, flag to hardcode \$libdir into a binary
18405 # during linking. This must work even if \$libdir does not exist.
18406 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18407
18408 # Whether we need a single "-rpath" flag with a separated argument.
18409 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18410
18411 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18412 # DIR into the resulting binary.
18413 hardcode_direct=$hardcode_direct
18414
18415 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18416 # DIR into the resulting binary and the resulting library dependency is
18417 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18418 # library is relocated.
18419 hardcode_direct_absolute=$hardcode_direct_absolute
18420
18421 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18422 # into the resulting binary.
18423 hardcode_minus_L=$hardcode_minus_L
18424
18425 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18426 # into the resulting binary.
18427 hardcode_shlibpath_var=$hardcode_shlibpath_var
18428
18429 # Set to "yes" if building a shared library automatically hardcodes DIR
18430 # into the library and all subsequent libraries and executables linked
18431 # against it.
18432 hardcode_automatic=$hardcode_automatic
18433
18434 # Set to yes if linker adds runtime paths of dependent libraries
18435 # to runtime path list.
18436 inherit_rpath=$inherit_rpath
18437
18438 # Whether libtool must link a program against all its dependency libraries.
18439 link_all_deplibs=$link_all_deplibs
18440
18441 # Fix the shell variable \$srcfile for the compiler.
18442 fix_srcfile_path=$lt_fix_srcfile_path
18443
18444 # Set to "yes" if exported symbols are required.
18445 always_export_symbols=$always_export_symbols
18446
18447 # The commands to list exported symbols.
18448 export_symbols_cmds=$lt_export_symbols_cmds
18449
18450 # Symbols that should not be listed in the preloaded symbols.
18451 exclude_expsyms=$lt_exclude_expsyms
18452
18453 # Symbols that must always be exported.
18454 include_expsyms=$lt_include_expsyms
18455
18456 # Commands necessary for linking programs (against libraries) with templates.
18457 prelink_cmds=$lt_prelink_cmds
18458
18459 # Specify filename containing input files.
18460 file_list_spec=$lt_file_list_spec
18461
18462 # How to hardcode a shared library path into an executable.
18463 hardcode_action=$hardcode_action
18464
18465 # ### END LIBTOOL CONFIG
18466
18467 _LT_EOF
18468
18469 case $host_os in
18470 aix3*)
18471 cat <<\_LT_EOF >> "$cfgfile"
18472 # AIX sometimes has problems with the GCC collect2 program. For some
18473 # reason, if we set the COLLECT_NAMES environment variable, the problems
18474 # vanish in a puff of smoke.
18475 if test "X${COLLECT_NAMES+set}" != Xset; then
18476 COLLECT_NAMES=
18477 export COLLECT_NAMES
18478 fi
18479 _LT_EOF
18480 ;;
18481 esac
18482
18483
18484 ltmain="$ac_aux_dir/ltmain.sh"
18485
18486
18487 # We use sed instead of cat because bash on DJGPP gets confused if
18488 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18489 # text mode, it properly converts lines to CR/LF. This bash problem
18490 # is reportedly fixed, but why not run on old versions too?
18491 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18492 || (rm -f "$cfgfile"; exit 1)
18493
18494 case $xsi_shell in
18495 yes)
18496 cat << \_LT_EOF >> "$cfgfile"
18497
18498 # func_dirname file append nondir_replacement
18499 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18500 # otherwise set result to NONDIR_REPLACEMENT.
18501 func_dirname ()
18502 {
18503 case ${1} in
18504 */*) func_dirname_result="${1%/*}${2}" ;;
18505 * ) func_dirname_result="${3}" ;;
18506 esac
18507 }
18508
18509 # func_basename file
18510 func_basename ()
18511 {
18512 func_basename_result="${1##*/}"
18513 }
18514
18515 # func_dirname_and_basename file append nondir_replacement
18516 # perform func_basename and func_dirname in a single function
18517 # call:
18518 # dirname: Compute the dirname of FILE. If nonempty,
18519 # add APPEND to the result, otherwise set result
18520 # to NONDIR_REPLACEMENT.
18521 # value returned in "$func_dirname_result"
18522 # basename: Compute filename of FILE.
18523 # value retuned in "$func_basename_result"
18524 # Implementation must be kept synchronized with func_dirname
18525 # and func_basename. For efficiency, we do not delegate to
18526 # those functions but instead duplicate the functionality here.
18527 func_dirname_and_basename ()
18528 {
18529 case ${1} in
18530 */*) func_dirname_result="${1%/*}${2}" ;;
18531 * ) func_dirname_result="${3}" ;;
18532 esac
18533 func_basename_result="${1##*/}"
18534 }
18535
18536 # func_stripname prefix suffix name
18537 # strip PREFIX and SUFFIX off of NAME.
18538 # PREFIX and SUFFIX must not contain globbing or regex special
18539 # characters, hashes, percent signs, but SUFFIX may contain a leading
18540 # dot (in which case that matches only a dot).
18541 func_stripname ()
18542 {
18543 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18544 # positional parameters, so assign one to ordinary parameter first.
18545 func_stripname_result=${3}
18546 func_stripname_result=${func_stripname_result#"${1}"}
18547 func_stripname_result=${func_stripname_result%"${2}"}
18548 }
18549
18550 # func_opt_split
18551 func_opt_split ()
18552 {
18553 func_opt_split_opt=${1%%=*}
18554 func_opt_split_arg=${1#*=}
18555 }
18556
18557 # func_lo2o object
18558 func_lo2o ()
18559 {
18560 case ${1} in
18561 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18562 *) func_lo2o_result=${1} ;;
18563 esac
18564 }
18565
18566 # func_xform libobj-or-source
18567 func_xform ()
18568 {
18569 func_xform_result=${1%.*}.lo
18570 }
18571
18572 # func_arith arithmetic-term...
18573 func_arith ()
18574 {
18575 func_arith_result=$(( $* ))
18576 }
18577
18578 # func_len string
18579 # STRING may not start with a hyphen.
18580 func_len ()
18581 {
18582 func_len_result=${#1}
18583 }
18584
18585 _LT_EOF
18586 ;;
18587 *) # Bourne compatible functions.
18588 cat << \_LT_EOF >> "$cfgfile"
18589
18590 # func_dirname file append nondir_replacement
18591 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18592 # otherwise set result to NONDIR_REPLACEMENT.
18593 func_dirname ()
18594 {
18595 # Extract subdirectory from the argument.
18596 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18597 if test "X$func_dirname_result" = "X${1}"; then
18598 func_dirname_result="${3}"
18599 else
18600 func_dirname_result="$func_dirname_result${2}"
18601 fi
18602 }
18603
18604 # func_basename file
18605 func_basename ()
18606 {
18607 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18608 }
18609
18610
18611 # func_stripname prefix suffix name
18612 # strip PREFIX and SUFFIX off of NAME.
18613 # PREFIX and SUFFIX must not contain globbing or regex special
18614 # characters, hashes, percent signs, but SUFFIX may contain a leading
18615 # dot (in which case that matches only a dot).
18616 # func_strip_suffix prefix name
18617 func_stripname ()
18618 {
18619 case ${2} in
18620 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18621 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18622 esac
18623 }
18624
18625 # sed scripts:
18626 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18627 my_sed_long_arg='1s/^-[^=]*=//'
18628
18629 # func_opt_split
18630 func_opt_split ()
18631 {
18632 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18633 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18634 }
18635
18636 # func_lo2o object
18637 func_lo2o ()
18638 {
18639 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18640 }
18641
18642 # func_xform libobj-or-source
18643 func_xform ()
18644 {
18645 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18646 }
18647
18648 # func_arith arithmetic-term...
18649 func_arith ()
18650 {
18651 func_arith_result=`expr "$@"`
18652 }
18653
18654 # func_len string
18655 # STRING may not start with a hyphen.
18656 func_len ()
18657 {
18658 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18659 }
18660
18661 _LT_EOF
18662 esac
18663
18664 case $lt_shell_append in
18665 yes)
18666 cat << \_LT_EOF >> "$cfgfile"
18667
18668 # func_append var value
18669 # Append VALUE to the end of shell variable VAR.
18670 func_append ()
18671 {
18672 eval "$1+=\$2"
18673 }
18674 _LT_EOF
18675 ;;
18676 *)
18677 cat << \_LT_EOF >> "$cfgfile"
18678
18679 # func_append var value
18680 # Append VALUE to the end of shell variable VAR.
18681 func_append ()
18682 {
18683 eval "$1=\$$1\$2"
18684 }
18685
18686 _LT_EOF
18687 ;;
18688 esac
18689
18690
18691 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18692 || (rm -f "$cfgfile"; exit 1)
18693
18694 mv -f "$cfgfile" "$ofile" ||
18695 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18696 chmod +x "$ofile"
18697
18698
18699 cat <<_LT_EOF >> "$ofile"
18700
18701 # ### BEGIN LIBTOOL TAG CONFIG: GO
18702
18703 # The linker used to build libraries.
18704 LD=$lt_LD_GO
18705
18706 # How to create reloadable object files.
18707 reload_flag=$lt_reload_flag_GO
18708 reload_cmds=$lt_reload_cmds_GO
18709
18710 # Commands used to build an old-style archive.
18711 old_archive_cmds=$lt_old_archive_cmds_GO
18712
18713 # A language specific compiler.
18714 CC=$lt_compiler_GO
18715
18716 # Is the compiler the GNU compiler?
18717 with_gcc=$GCC_GO
18718
18719 # Compiler flag to turn off builtin functions.
18720 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18721
18722 # How to pass a linker flag through the compiler.
18723 wl=$lt_lt_prog_compiler_wl_GO
18724
18725 # Additional compiler flags for building library objects.
18726 pic_flag=$lt_lt_prog_compiler_pic_GO
18727
18728 # Compiler flag to prevent dynamic linking.
18729 link_static_flag=$lt_lt_prog_compiler_static_GO
18730
18731 # Does compiler simultaneously support -c and -o options?
18732 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18733
18734 # Whether or not to add -lc for building shared libraries.
18735 build_libtool_need_lc=$archive_cmds_need_lc_GO
18736
18737 # Whether or not to disallow shared libs when runtime libs are static.
18738 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18739
18740 # Compiler flag to allow reflexive dlopens.
18741 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18742
18743 # Compiler flag to generate shared objects directly from archives.
18744 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18745
18746 # Whether the compiler copes with passing no objects directly.
18747 compiler_needs_object=$lt_compiler_needs_object_GO
18748
18749 # Create an old-style archive from a shared archive.
18750 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18751
18752 # Create a temporary old-style archive to link instead of a shared archive.
18753 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18754
18755 # Commands used to build a shared archive.
18756 archive_cmds=$lt_archive_cmds_GO
18757 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18758
18759 # Commands used to build a loadable module if different from building
18760 # a shared archive.
18761 module_cmds=$lt_module_cmds_GO
18762 module_expsym_cmds=$lt_module_expsym_cmds_GO
18763
18764 # Whether we are building with GNU ld or not.
18765 with_gnu_ld=$lt_with_gnu_ld_GO
18766
18767 # Flag that allows shared libraries with undefined symbols to be built.
18768 allow_undefined_flag=$lt_allow_undefined_flag_GO
18769
18770 # Flag that enforces no undefined symbols.
18771 no_undefined_flag=$lt_no_undefined_flag_GO
18772
18773 # Flag to hardcode \$libdir into a binary during linking.
18774 # This must work even if \$libdir does not exist
18775 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18776
18777 # If ld is used when linking, flag to hardcode \$libdir into a binary
18778 # during linking. This must work even if \$libdir does not exist.
18779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18780
18781 # Whether we need a single "-rpath" flag with a separated argument.
18782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18783
18784 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18785 # DIR into the resulting binary.
18786 hardcode_direct=$hardcode_direct_GO
18787
18788 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18789 # DIR into the resulting binary and the resulting library dependency is
18790 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18791 # library is relocated.
18792 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18793
18794 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18795 # into the resulting binary.
18796 hardcode_minus_L=$hardcode_minus_L_GO
18797
18798 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18799 # into the resulting binary.
18800 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18801
18802 # Set to "yes" if building a shared library automatically hardcodes DIR
18803 # into the library and all subsequent libraries and executables linked
18804 # against it.
18805 hardcode_automatic=$hardcode_automatic_GO
18806
18807 # Set to yes if linker adds runtime paths of dependent libraries
18808 # to runtime path list.
18809 inherit_rpath=$inherit_rpath_GO
18810
18811 # Whether libtool must link a program against all its dependency libraries.
18812 link_all_deplibs=$link_all_deplibs_GO
18813
18814 # Fix the shell variable \$srcfile for the compiler.
18815 fix_srcfile_path=$lt_fix_srcfile_path_GO
18816
18817 # Set to "yes" if exported symbols are required.
18818 always_export_symbols=$always_export_symbols_GO
18819
18820 # The commands to list exported symbols.
18821 export_symbols_cmds=$lt_export_symbols_cmds_GO
18822
18823 # Symbols that should not be listed in the preloaded symbols.
18824 exclude_expsyms=$lt_exclude_expsyms_GO
18825
18826 # Symbols that must always be exported.
18827 include_expsyms=$lt_include_expsyms_GO
18828
18829 # Commands necessary for linking programs (against libraries) with templates.
18830 prelink_cmds=$lt_prelink_cmds_GO
18831
18832 # Specify filename containing input files.
18833 file_list_spec=$lt_file_list_spec_GO
18834
18835 # How to hardcode a shared library path into an executable.
18836 hardcode_action=$hardcode_action_GO
18837
18838 # ### END LIBTOOL TAG CONFIG: GO
18839 _LT_EOF
18840
18841 ;;
18842 "default":C) if test -n "$CONFIG_FILES"; then
18843 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18844 # that multilib installs will end up installed in the correct place.
18845 # The testsuite needs it for multilib-aware ABI baseline files.
18846 # To work around this not being passed down from config-ml.in ->
18847 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18848 # append it here. Only modify Makefiles that have just been created.
18849 #
18850 # Also, get rid of this simulated-VPATH thing that automake does.
18851 cat > vpsed << \_EOF
18852 s!`test -f '$<' || echo '$(srcdir)/'`!!
18853 _EOF
18854 for i in $SUBDIRS; do
18855 case $CONFIG_FILES in
18856 *${i}/Makefile*)
18857 #echo "Adding MULTISUBDIR to $i/Makefile"
18858 sed -f vpsed $i/Makefile > tmp
18859 grep '^MULTISUBDIR =' Makefile >> tmp
18860 mv tmp $i/Makefile
18861 ;;
18862 esac
18863 done
18864 rm vpsed
18865 fi
18866 ;;
18867
18868 esac
18869 done # for ac_tag
18870
18871
18872 as_fn_exit 0
18873 _ACEOF
18874 ac_clean_files=$ac_clean_files_save
18875
18876 test $ac_write_fail = 0 ||
18877 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18878
18879
18880 # configure is writing to config.log, and then calls config.status.
18881 # config.status does its own redirection, appending to config.log.
18882 # Unfortunately, on DOS this fails, as config.log is still kept open
18883 # by configure, so config.status won't be able to write to it; its
18884 # output is simply discarded. So we exec the FD to /dev/null,
18885 # effectively closing config.log, so it can be properly (re)opened and
18886 # appended to by config.status. When coming back to configure, we
18887 # need to make the FD available again.
18888 if test "$no_create" != yes; then
18889 ac_cs_success=:
18890 ac_config_status_args=
18891 test "$silent" = yes &&
18892 ac_config_status_args="$ac_config_status_args --quiet"
18893 exec 5>/dev/null
18894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18895 exec 5>>config.log
18896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18897 # would make configure fail if this is the last instruction.
18898 $ac_cs_success || as_fn_exit 1
18899 fi
18900 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18902 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18903 fi
18904