]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgo/configure
[arm] Early split subdi3
[thirdparty/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_STAT_TIMESPEC_FALSE
637 HAVE_STAT_TIMESPEC_TRUE
638 STRUCT_EPOLL_EVENT_FD_OFFSET
639 SIZEOF_STRUCT_EPOLL_EVENT
640 MATH_FLAG
641 STRINGOPS_FLAG
642 HAVE_WAIT4_FALSE
643 HAVE_WAIT4_TRUE
644 HAVE_STRERROR_R_FALSE
645 HAVE_STRERROR_R_TRUE
646 HAVE_SYS_MMAN_H_FALSE
647 HAVE_SYS_MMAN_H_TRUE
648 PTHREAD_LIBS
649 PTHREAD_CFLAGS
650 NET_LIBS
651 MATH_LIBS
652 GOC_IS_LLGO_FALSE
653 GOC_IS_LLGO_TRUE
654 GO_SPLIT_STACK
655 USING_SPLIT_STACK_FALSE
656 USING_SPLIT_STACK_TRUE
657 SPLIT_STACK
658 HWCAP_CFLAGS
659 OSCFLAGS
660 GO_SYSCALL_OS_ARCH_FILE
661 GO_SYSCALL_OS_FILE
662 GO_LIBCALL_OS_ARCH_FILE
663 GO_LIBCALL_OS_FILE
664 FUNCTION_DESCRIPTORS
665 LIBGO_IS_X86_FALSE
666 LIBGO_IS_X86_TRUE
667 ALLGOARCHFAMILY
668 ALLGOARCH
669 GOARCH
670 USE_DEJAGNU
671 ALLGOOS
672 GOOS
673 LIBGO_IS_BSD_FALSE
674 LIBGO_IS_BSD_TRUE
675 LIBGO_IS_HURD_FALSE
676 LIBGO_IS_HURD_TRUE
677 LIBGO_IS_AIX_FALSE
678 LIBGO_IS_AIX_TRUE
679 LIBGO_IS_SOLARIS_FALSE
680 LIBGO_IS_SOLARIS_TRUE
681 LIBGO_IS_RTEMS_FALSE
682 LIBGO_IS_RTEMS_TRUE
683 LIBGO_IS_DRAGONFLY_FALSE
684 LIBGO_IS_DRAGONFLY_TRUE
685 LIBGO_IS_OPENBSD_FALSE
686 LIBGO_IS_OPENBSD_TRUE
687 LIBGO_IS_NETBSD_FALSE
688 LIBGO_IS_NETBSD_TRUE
689 LIBGO_IS_LINUX_FALSE
690 LIBGO_IS_LINUX_TRUE
691 LIBGO_IS_IRIX_FALSE
692 LIBGO_IS_IRIX_TRUE
693 LIBGO_IS_FREEBSD_FALSE
694 LIBGO_IS_FREEBSD_TRUE
695 LIBGO_IS_DARWIN_FALSE
696 LIBGO_IS_DARWIN_TRUE
697 go_include
698 LIBATOMIC
699 USE_LIBFFI_FALSE
700 USE_LIBFFI_TRUE
701 LIBFFIINCS
702 LIBFFI
703 nover_glibgo_toolexeclibdir
704 glibgo_toolexeclibdir
705 glibgo_toolexecdir
706 WERROR
707 WARN_FLAGS
708 CC_FOR_BUILD
709 enable_static
710 enable_shared
711 CPP
712 OTOOL64
713 OTOOL
714 LIPO
715 NMEDIT
716 DSYMUTIL
717 AR
718 OBJDUMP
719 LN_S
720 NM
721 ac_ct_DUMPBIN
722 DUMPBIN
723 LIBTOOL
724 OBJCOPY
725 RANLIB
726 LD
727 FGREP
728 EGREP
729 GREP
730 SED
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 am__fastdepCCAS_FALSE
735 am__fastdepCCAS_TRUE
736 CCASDEPMODE
737 CCASFLAGS
738 CCAS
739 GOFLAGS
740 GOC
741 am__fastdepCC_FALSE
742 am__fastdepCC_TRUE
743 CCDEPMODE
744 am__nodep
745 AMDEPBACKSLASH
746 AMDEP_FALSE
747 AMDEP_TRUE
748 am__quote
749 am__include
750 DEPDIR
751 OBJEXT
752 EXEEXT
753 ac_ct_CC
754 CPPFLAGS
755 LDFLAGS
756 CFLAGS
757 CC
758 AM_BACKSLASH
759 AM_DEFAULT_VERBOSITY
760 AM_DEFAULT_V
761 AM_V
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
767 AWK
768 mkdir_p
769 MKDIR_P
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 am__isrc
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 target_os
786 target_vendor
787 target_cpu
788 target
789 host_os
790 host_vendor
791 host_cpu
792 host
793 build_os
794 build_vendor
795 build_cpu
796 build
797 multi_basedir
798 libtool_VERSION
799 target_alias
800 host_alias
801 build_alias
802 LIBS
803 ECHO_T
804 ECHO_N
805 ECHO_C
806 DEFS
807 mandir
808 localedir
809 libdir
810 psdir
811 pdfdir
812 dvidir
813 htmldir
814 infodir
815 docdir
816 oldincludedir
817 includedir
818 localstatedir
819 sharedstatedir
820 sysconfdir
821 datadir
822 datarootdir
823 libexecdir
824 sbindir
825 bindir
826 program_transform_name
827 prefix
828 exec_prefix
829 PACKAGE_URL
830 PACKAGE_BUGREPORT
831 PACKAGE_STRING
832 PACKAGE_VERSION
833 PACKAGE_TARNAME
834 PACKAGE_NAME
835 PATH_SEPARATOR
836 SHELL'
837 ac_subst_files=''
838 ac_user_opts='
839 enable_option_checking
840 enable_multilib
841 enable_silent_rules
842 enable_dependency_tracking
843 enable_maintainer_mode
844 with_gnu_ld
845 enable_shared
846 enable_static
847 with_pic
848 enable_fast_install
849 enable_libtool_lock
850 enable_werror
851 enable_version_specific_runtime_libs
852 with_libffi
853 with_libatomic
854 with_system_libunwind
855 '
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CPP
860 CPPFLAGS'
861
862
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
884
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
910
911 ac_prev=
912 ac_dashdash=
913 for ac_option
914 do
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
918 ac_prev=
919 continue
920 fi
921
922 case $ac_option in
923 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *=) ac_optarg= ;;
925 *) ac_optarg=yes ;;
926 esac
927
928 # Accept the important Cygnus configure options, so we can diagnose typos.
929
930 case $ac_dashdash$ac_option in
931 --)
932 ac_dashdash=yes ;;
933
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 ac_prev=bindir ;;
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
937 bindir=$ac_optarg ;;
938
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
943
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
950
951 --config-cache | -C)
952 cache_file=config.cache ;;
953
954 -datadir | --datadir | --datadi | --datad)
955 ac_prev=datadir ;;
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
958
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
965
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=no ;;
981
982 -docdir | --docdir | --docdi | --doc | --do)
983 ac_prev=docdir ;;
984 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
985 docdir=$ac_optarg ;;
986
987 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
988 ac_prev=dvidir ;;
989 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
990 dvidir=$ac_optarg ;;
991
992 -enable-* | --enable-*)
993 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
994 # Reject names that are not valid shell variable names.
995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
996 as_fn_error $? "invalid feature name: $ac_useropt"
997 ac_useropt_orig=$ac_useropt
998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
999 case $ac_user_opts in
1000 *"
1001 "enable_$ac_useropt"
1002 "*) ;;
1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1004 ac_unrecognized_sep=', ';;
1005 esac
1006 eval enable_$ac_useropt=\$ac_optarg ;;
1007
1008 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010 | --exec | --exe | --ex)
1011 ac_prev=exec_prefix ;;
1012 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014 | --exec=* | --exe=* | --ex=*)
1015 exec_prefix=$ac_optarg ;;
1016
1017 -gas | --gas | --ga | --g)
1018 # Obsolete; use --with-gas.
1019 with_gas=yes ;;
1020
1021 -help | --help | --hel | --he | -h)
1022 ac_init_help=long ;;
1023 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024 ac_init_help=recursive ;;
1025 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026 ac_init_help=short ;;
1027
1028 -host | --host | --hos | --ho)
1029 ac_prev=host_alias ;;
1030 -host=* | --host=* | --hos=* | --ho=*)
1031 host_alias=$ac_optarg ;;
1032
1033 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034 ac_prev=htmldir ;;
1035 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036 | --ht=*)
1037 htmldir=$ac_optarg ;;
1038
1039 -includedir | --includedir | --includedi | --included | --include \
1040 | --includ | --inclu | --incl | --inc)
1041 ac_prev=includedir ;;
1042 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043 | --includ=* | --inclu=* | --incl=* | --inc=*)
1044 includedir=$ac_optarg ;;
1045
1046 -infodir | --infodir | --infodi | --infod | --info | --inf)
1047 ac_prev=infodir ;;
1048 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049 infodir=$ac_optarg ;;
1050
1051 -libdir | --libdir | --libdi | --libd)
1052 ac_prev=libdir ;;
1053 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054 libdir=$ac_optarg ;;
1055
1056 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057 | --libexe | --libex | --libe)
1058 ac_prev=libexecdir ;;
1059 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060 | --libexe=* | --libex=* | --libe=*)
1061 libexecdir=$ac_optarg ;;
1062
1063 -localedir | --localedir | --localedi | --localed | --locale)
1064 ac_prev=localedir ;;
1065 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066 localedir=$ac_optarg ;;
1067
1068 -localstatedir | --localstatedir | --localstatedi | --localstated \
1069 | --localstate | --localstat | --localsta | --localst | --locals)
1070 ac_prev=localstatedir ;;
1071 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073 localstatedir=$ac_optarg ;;
1074
1075 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076 ac_prev=mandir ;;
1077 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078 mandir=$ac_optarg ;;
1079
1080 -nfp | --nfp | --nf)
1081 # Obsolete; use --without-fp.
1082 with_fp=no ;;
1083
1084 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085 | --no-cr | --no-c | -n)
1086 no_create=yes ;;
1087
1088 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 no_recursion=yes ;;
1091
1092 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094 | --oldin | --oldi | --old | --ol | --o)
1095 ac_prev=oldincludedir ;;
1096 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099 oldincludedir=$ac_optarg ;;
1100
1101 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102 ac_prev=prefix ;;
1103 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104 prefix=$ac_optarg ;;
1105
1106 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107 | --program-pre | --program-pr | --program-p)
1108 ac_prev=program_prefix ;;
1109 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111 program_prefix=$ac_optarg ;;
1112
1113 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114 | --program-suf | --program-su | --program-s)
1115 ac_prev=program_suffix ;;
1116 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118 program_suffix=$ac_optarg ;;
1119
1120 -program-transform-name | --program-transform-name \
1121 | --program-transform-nam | --program-transform-na \
1122 | --program-transform-n | --program-transform- \
1123 | --program-transform | --program-transfor \
1124 | --program-transfo | --program-transf \
1125 | --program-trans | --program-tran \
1126 | --progr-tra | --program-tr | --program-t)
1127 ac_prev=program_transform_name ;;
1128 -program-transform-name=* | --program-transform-name=* \
1129 | --program-transform-nam=* | --program-transform-na=* \
1130 | --program-transform-n=* | --program-transform-=* \
1131 | --program-transform=* | --program-transfor=* \
1132 | --program-transfo=* | --program-transf=* \
1133 | --program-trans=* | --program-tran=* \
1134 | --progr-tra=* | --program-tr=* | --program-t=*)
1135 program_transform_name=$ac_optarg ;;
1136
1137 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138 ac_prev=pdfdir ;;
1139 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140 pdfdir=$ac_optarg ;;
1141
1142 -psdir | --psdir | --psdi | --psd | --ps)
1143 ac_prev=psdir ;;
1144 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 psdir=$ac_optarg ;;
1146
1147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148 | -silent | --silent | --silen | --sile | --sil)
1149 silent=yes ;;
1150
1151 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152 ac_prev=sbindir ;;
1153 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154 | --sbi=* | --sb=*)
1155 sbindir=$ac_optarg ;;
1156
1157 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159 | --sharedst | --shareds | --shared | --share | --shar \
1160 | --sha | --sh)
1161 ac_prev=sharedstatedir ;;
1162 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165 | --sha=* | --sh=*)
1166 sharedstatedir=$ac_optarg ;;
1167
1168 -site | --site | --sit)
1169 ac_prev=site ;;
1170 -site=* | --site=* | --sit=*)
1171 site=$ac_optarg ;;
1172
1173 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174 ac_prev=srcdir ;;
1175 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176 srcdir=$ac_optarg ;;
1177
1178 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179 | --syscon | --sysco | --sysc | --sys | --sy)
1180 ac_prev=sysconfdir ;;
1181 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183 sysconfdir=$ac_optarg ;;
1184
1185 -target | --target | --targe | --targ | --tar | --ta | --t)
1186 ac_prev=target_alias ;;
1187 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188 target_alias=$ac_optarg ;;
1189
1190 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 verbose=yes ;;
1192
1193 -version | --version | --versio | --versi | --vers | -V)
1194 ac_init_version=: ;;
1195
1196 -with-* | --with-*)
1197 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198 # Reject names that are not valid shell variable names.
1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1200 as_fn_error $? "invalid package name: $ac_useropt"
1201 ac_useropt_orig=$ac_useropt
1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1203 case $ac_user_opts in
1204 *"
1205 "with_$ac_useropt"
1206 "*) ;;
1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1208 ac_unrecognized_sep=', ';;
1209 esac
1210 eval with_$ac_useropt=\$ac_optarg ;;
1211
1212 -without-* | --without-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1220 *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=no ;;
1227
1228 --x)
1229 # Obsolete; use --with-x.
1230 with_x=yes ;;
1231
1232 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1233 | --x-incl | --x-inc | --x-in | --x-i)
1234 ac_prev=x_includes ;;
1235 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1236 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1237 x_includes=$ac_optarg ;;
1238
1239 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1240 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1241 ac_prev=x_libraries ;;
1242 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1243 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1244 x_libraries=$ac_optarg ;;
1245
1246 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1247 Try \`$0 --help' for more information"
1248 ;;
1249
1250 *=*)
1251 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1252 # Reject names that are not valid shell variable names.
1253 case $ac_envvar in #(
1254 '' | [0-9]* | *[!_$as_cr_alnum]* )
1255 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1256 esac
1257 eval $ac_envvar=\$ac_optarg
1258 export $ac_envvar ;;
1259
1260 *)
1261 # FIXME: should be removed in autoconf 3.0.
1262 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1263 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1265 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1266 ;;
1267
1268 esac
1269 done
1270
1271 if test -n "$ac_prev"; then
1272 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1273 as_fn_error $? "missing argument to $ac_option"
1274 fi
1275
1276 if test -n "$ac_unrecognized_opts"; then
1277 case $enable_option_checking in
1278 no) ;;
1279 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1280 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1281 esac
1282 fi
1283
1284 # Check all directory arguments for consistency.
1285 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1286 datadir sysconfdir sharedstatedir localstatedir includedir \
1287 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1288 libdir localedir mandir
1289 do
1290 eval ac_val=\$$ac_var
1291 # Remove trailing slashes.
1292 case $ac_val in
1293 */ )
1294 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1295 eval $ac_var=\$ac_val;;
1296 esac
1297 # Be sure to have absolute directory names.
1298 case $ac_val in
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 esac
1302 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 elif test "x$build_alias" != "x$host_alias"; then
1317 cross_compiling=yes
1318 fi
1319 fi
1320
1321 ac_tool_prefix=
1322 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1323
1324 test "$silent" = yes && exec 6>/dev/null
1325
1326
1327 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di=`ls -di .` &&
1329 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $? "working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $? "pwd does not report name of working directory"
1333
1334
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)[^/].*/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)$/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\).*/{
1358 s//\1/
1359 q
1360 }
1361 s/.*/./; q'`
1362 srcdir=$ac_confdir
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 srcdir=..
1365 fi
1366 else
1367 ac_srcdir_defaulted=no
1368 fi
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1372 fi
1373 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374 ac_abs_confdir=`(
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1376 pwd)`
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 srcdir=.
1380 fi
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1384 case $srcdir in
1385 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1386 esac
1387 for ac_var in $ac_precious_vars; do
1388 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_${ac_var}_value=\$${ac_var}
1390 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1392 done
1393
1394 #
1395 # Report the --help message.
1396 #
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1400 cat <<_ACEOF
1401 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1402
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1404
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1407
1408 Defaults for the options are specified in brackets.
1409
1410 Configuration:
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1420
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 [PREFIX]
1426
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1431
1432 For better control, use the options below.
1433
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/libgo]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1454 _ACEOF
1455
1456 cat <<\_ACEOF
1457
1458 Program names:
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 --target=TARGET configure for building compilers for TARGET [HOST]
1467 _ACEOF
1468 fi
1469
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive ) echo "Configuration of package-unused version-unused:";;
1473 esac
1474 cat <<\_ACEOF
1475
1476 Optional Features:
1477 --disable-option-checking ignore unrecognized --enable/--with options
1478 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1479 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1480 --enable-multilib build many library versions (default)
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-dependency-tracking
1484 do not reject slow dependency extractors
1485 --disable-dependency-tracking
1486 speeds up one-time build
1487 --enable-maintainer-mode
1488 enable make rules and dependencies not useful (and
1489 sometimes confusing) to the casual installer
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-werror turns on -Werror [default=yes]
1496 --enable-version-specific-runtime-libs
1497 Specify that runtime libraries should be installed
1498 in a compiler-specific directory
1499
1500 Optional Packages:
1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-pic try to use only PIC/non-PIC objects [default=use
1505 both]
1506 --without-libffi don't use libffi
1507 --without-libatomic don't use libatomic
1508 --with-system-libunwind use installed libunwind
1509
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 GOC Go compiler command
1519 GOFLAGS Go compiler flags
1520 CCAS assembler compiler command (defaults to CC)
1521 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1522 CPP C preprocessor
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 Report bugs to the package provider.
1528 _ACEOF
1529 ac_status=$?
1530 fi
1531
1532 if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
1534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
1538 ac_builddir=.
1539
1540 case "$ac_dir" in
1541 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *)
1543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1544 # A ".." for each directory in $ac_dir_suffix.
1545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550 esac
1551 ac_abs_top_builddir=$ac_pwd
1552 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553 # for backward compatibility:
1554 ac_top_builddir=$ac_top_build_prefix
1555
1556 case $srcdir in
1557 .) # We are building in place.
1558 ac_srcdir=.
1559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
1562 ac_srcdir=$srcdir$ac_dir_suffix;
1563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569 esac
1570 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
1572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
1574 if test -f "$ac_srcdir/configure.gnu"; then
1575 echo &&
1576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
1578 echo &&
1579 $SHELL "$ac_srcdir/configure" --help=recursive
1580 else
1581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
1584 done
1585 fi
1586
1587 test -n "$ac_init_help" && exit $ac_status
1588 if $ac_init_version; then
1589 cat <<\_ACEOF
1590 package-unused configure version-unused
1591 generated by GNU Autoconf 2.69
1592
1593 Copyright (C) 2012 Free Software Foundation, Inc.
1594 This configure script is free software; the Free Software Foundation
1595 gives unlimited permission to copy, distribute and modify it.
1596 _ACEOF
1597 exit
1598 fi
1599
1600 ## ------------------------ ##
1601 ## Autoconf initialization. ##
1602 ## ------------------------ ##
1603
1604 # ac_fn_c_try_compile LINENO
1605 # --------------------------
1606 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_compile ()
1608 {
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636 fi
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1639
1640 } # ac_fn_c_try_compile
1641
1642 # ac_fn_c_try_link LINENO
1643 # -----------------------
1644 # Try to link conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_link ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext conftest$ac_exeext
1649 if { { ac_try="$ac_link"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_link") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest$ac_exeext && {
1668 test "$cross_compiling" = yes ||
1669 test -x conftest$ac_exeext
1670 }; then :
1671 ac_retval=0
1672 else
1673 $as_echo "$as_me: failed program was:" >&5
1674 sed 's/^/| /' conftest.$ac_ext >&5
1675
1676 ac_retval=1
1677 fi
1678 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1679 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1680 # interfere with the next link command; also delete a directory that is
1681 # left behind by Apple's compiler. We do this before executing the actions.
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_link
1687
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1699 else
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 $4
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706 eval "$3=yes"
1707 else
1708 eval "$3=no"
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 fi
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_compile
1718
1719 # ac_fn_c_try_cpp LINENO
1720 # ----------------------
1721 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1722 ac_fn_c_try_cpp ()
1723 {
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 if { { ac_try="$ac_cpp conftest.$ac_ext"
1726 case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729 esac
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } > conftest.i && {
1741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 }; then :
1744 ac_retval=0
1745 else
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750 fi
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754 } # ac_fn_c_try_cpp
1755
1756 # ac_fn_c_try_run LINENO
1757 # ----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1759 # that executables *can* be run.
1760 ac_fn_c_try_run ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_link"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>&5
1771 ac_status=$?
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1774 { { case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_try") 2>&5
1781 ac_status=$?
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; }; }; then :
1784 ac_retval=0
1785 else
1786 $as_echo "$as_me: program exited with status $ac_status" >&5
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=$ac_status
1791 fi
1792 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794 as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_run
1797
1798 # ac_fn_c_check_func LINENO FUNC VAR
1799 # ----------------------------------
1800 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1801 ac_fn_c_check_func ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805 $as_echo_n "checking for $2... " >&6; }
1806 if eval \${$3+:} false; then :
1807 $as_echo_n "(cached) " >&6
1808 else
1809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810 /* end confdefs.h. */
1811 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1813 #define $2 innocuous_$2
1814
1815 /* System header to define __stub macros and hopefully few prototypes,
1816 which can conflict with char $2 (); below.
1817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1818 <limits.h> exists even on freestanding compilers. */
1819
1820 #ifdef __STDC__
1821 # include <limits.h>
1822 #else
1823 # include <assert.h>
1824 #endif
1825
1826 #undef $2
1827
1828 /* Override any GCC internal prototype to avoid an error.
1829 Use char because int might match the return type of a GCC
1830 builtin and then its argument prototype would still apply. */
1831 #ifdef __cplusplus
1832 extern "C"
1833 #endif
1834 char $2 ();
1835 /* The GNU C library defines this for functions which it implements
1836 to always fail with ENOSYS. Some functions are actually named
1837 something starting with __ and the normal name is an alias. */
1838 #if defined __stub_$2 || defined __stub___$2
1839 choke me
1840 #endif
1841
1842 int
1843 main ()
1844 {
1845 return $2 ();
1846 ;
1847 return 0;
1848 }
1849 _ACEOF
1850 if ac_fn_c_try_link "$LINENO"; then :
1851 eval "$3=yes"
1852 else
1853 eval "$3=no"
1854 fi
1855 rm -f core conftest.err conftest.$ac_objext \
1856 conftest$ac_exeext conftest.$ac_ext
1857 fi
1858 eval ac_res=\$$3
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1860 $as_echo "$ac_res" >&6; }
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863 } # ac_fn_c_check_func
1864
1865 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868 # the include files in INCLUDES and setting the cache variable VAR
1869 # accordingly.
1870 ac_fn_c_check_header_mongrel ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if eval \${$3+:} false; then :
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878 fi
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 else
1883 # Is the header compilable?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885 $as_echo_n "checking $2 usability... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 $4
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_header_compiler=yes
1893 else
1894 ac_header_compiler=no
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898 $as_echo "$ac_header_compiler" >&6; }
1899
1900 # Is the header present?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902 $as_echo_n "checking $2 presence... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_cpp "$LINENO"; then :
1908 ac_header_preproc=yes
1909 else
1910 ac_header_preproc=no
1911 fi
1912 rm -f conftest.err conftest.i conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914 $as_echo "$ac_header_preproc" >&6; }
1915
1916 # So? What about this header?
1917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1918 yes:no: )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923 ;;
1924 no:yes:* )
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1928 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1932 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 ;;
1936 esac
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 eval "$3=\$ac_header_compiler"
1943 fi
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 fi
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_header_mongrel
1951
1952 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1953 # -------------------------------------------
1954 # Tests whether TYPE exists after having included INCLUDES, setting cache
1955 # variable VAR accordingly.
1956 ac_fn_c_check_type ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 eval "$3=no"
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1967 $4
1968 int
1969 main ()
1970 {
1971 if (sizeof ($2))
1972 return 0;
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 $4
1981 int
1982 main ()
1983 {
1984 if (sizeof (($2)))
1985 return 0;
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991
1992 else
1993 eval "$3=yes"
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003
2004 } # ac_fn_c_check_type
2005
2006 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2007 # --------------------------------------------
2008 # Tries to find the compile-time value of EXPR in a program that includes
2009 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2010 # computed
2011 ac_fn_c_compute_int ()
2012 {
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if test "$cross_compiling" = yes; then
2015 # Depending upon the size, compute the lo and hi bounds.
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $4
2019 int
2020 main ()
2021 {
2022 static int test_array [1 - 2 * !(($2) >= 0)];
2023 test_array [0] = 0;
2024 return test_array [0];
2025
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031 ac_lo=0 ac_mid=0
2032 while :; do
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $4
2036 int
2037 main ()
2038 {
2039 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2040 test_array [0] = 0;
2041 return test_array [0];
2042
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048 ac_hi=$ac_mid; break
2049 else
2050 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2051 if test $ac_lo -le $ac_mid; then
2052 ac_lo= ac_hi=
2053 break
2054 fi
2055 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2056 fi
2057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 done
2059 else
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2062 $4
2063 int
2064 main ()
2065 {
2066 static int test_array [1 - 2 * !(($2) < 0)];
2067 test_array [0] = 0;
2068 return test_array [0];
2069
2070 ;
2071 return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=-1 ac_mid=-1
2076 while :; do
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 int
2081 main ()
2082 {
2083 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2084 test_array [0] = 0;
2085 return test_array [0];
2086
2087 ;
2088 return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092 ac_lo=$ac_mid; break
2093 else
2094 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2095 if test $ac_mid -le $ac_hi; then
2096 ac_lo= ac_hi=
2097 break
2098 fi
2099 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2100 fi
2101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 done
2103 else
2104 ac_lo= ac_hi=
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 # Binary search between lo and hi bounds.
2110 while test "x$ac_lo" != "x$ac_hi"; do
2111 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 $4
2115 int
2116 main ()
2117 {
2118 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 test_array [0] = 0;
2120 return test_array [0];
2121
2122 ;
2123 return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_hi=$ac_mid
2128 else
2129 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 done
2133 case $ac_lo in #((
2134 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2135 '') ac_retval=1 ;;
2136 esac
2137 else
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2140 $4
2141 static long int longval () { return $2; }
2142 static unsigned long int ulongval () { return $2; }
2143 #include <stdio.h>
2144 #include <stdlib.h>
2145 int
2146 main ()
2147 {
2148
2149 FILE *f = fopen ("conftest.val", "w");
2150 if (! f)
2151 return 1;
2152 if (($2) < 0)
2153 {
2154 long int i = longval ();
2155 if (i != ($2))
2156 return 1;
2157 fprintf (f, "%ld", i);
2158 }
2159 else
2160 {
2161 unsigned long int i = ulongval ();
2162 if (i != ($2))
2163 return 1;
2164 fprintf (f, "%lu", i);
2165 }
2166 /* Do not output a trailing newline, as this causes \r\n confusion
2167 on some platforms. */
2168 return ferror (f) || fclose (f) != 0;
2169
2170 ;
2171 return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_run "$LINENO"; then :
2175 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2176 else
2177 ac_retval=1
2178 fi
2179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2180 conftest.$ac_objext conftest.beam conftest.$ac_ext
2181 rm -f conftest.val
2182
2183 fi
2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185 as_fn_set_status $ac_retval
2186
2187 } # ac_fn_c_compute_int
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2191
2192 It was created by package-unused $as_me version-unused, which was
2193 generated by GNU Autoconf 2.69. Invocation command line was
2194
2195 $ $0 $@
2196
2197 _ACEOF
2198 exec 5>>config.log
2199 {
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2204
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2210
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2213
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2221
2222 _ASUNAME
2223
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2230 done
2231 IFS=$as_save_IFS
2232
2233 } >&5
2234
2235 cat >&5 <<_ACEOF
2236
2237
2238 ## ----------- ##
2239 ## Core tests. ##
2240 ## ----------- ##
2241
2242 _ACEOF
2243
2244
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_configure_args=
2251 ac_configure_args0=
2252 ac_configure_args1=
2253 ac_must_keep_next=false
2254 for ac_pass in 1 2
2255 do
2256 for ac_arg
2257 do
2258 case $ac_arg in
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2262 continue ;;
2263 *\'*)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 esac
2266 case $ac_pass in
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2268 2)
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2272 else
2273 case $ac_arg in
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2280 esac
2281 ;;
2282 -* ) ac_must_keep_next=true ;;
2283 esac
2284 fi
2285 as_fn_append ac_configure_args " '$ac_arg'"
2286 ;;
2287 esac
2288 done
2289 done
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2292
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2300 {
2301 echo
2302
2303 $as_echo "## ---------------- ##
2304 ## Cache variables. ##
2305 ## ---------------- ##"
2306 echo
2307 # The following way of writing the cache mishandles newlines in values,
2308 (
2309 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2310 eval ac_val=\$$ac_var
2311 case $ac_val in #(
2312 *${as_nl}*)
2313 case $ac_var in #(
2314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2315 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2316 esac
2317 case $ac_var in #(
2318 _ | IFS | as_nl) ;; #(
2319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2320 *) { eval $ac_var=; unset $ac_var;} ;;
2321 esac ;;
2322 esac
2323 done
2324 (set) 2>&1 |
2325 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2326 *${as_nl}ac_space=\ *)
2327 sed -n \
2328 "s/'\''/'\''\\\\'\'''\''/g;
2329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2330 ;; #(
2331 *)
2332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2333 ;;
2334 esac |
2335 sort
2336 )
2337 echo
2338
2339 $as_echo "## ----------------- ##
2340 ## Output variables. ##
2341 ## ----------------- ##"
2342 echo
2343 for ac_var in $ac_subst_vars
2344 do
2345 eval ac_val=\$$ac_var
2346 case $ac_val in
2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2348 esac
2349 $as_echo "$ac_var='\''$ac_val'\''"
2350 done | sort
2351 echo
2352
2353 if test -n "$ac_subst_files"; then
2354 $as_echo "## ------------------- ##
2355 ## File substitutions. ##
2356 ## ------------------- ##"
2357 echo
2358 for ac_var in $ac_subst_files
2359 do
2360 eval ac_val=\$$ac_var
2361 case $ac_val in
2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363 esac
2364 $as_echo "$ac_var='\''$ac_val'\''"
2365 done | sort
2366 echo
2367 fi
2368
2369 if test -s confdefs.h; then
2370 $as_echo "## ----------- ##
2371 ## confdefs.h. ##
2372 ## ----------- ##"
2373 echo
2374 cat confdefs.h
2375 echo
2376 fi
2377 test "$ac_signal" != 0 &&
2378 $as_echo "$as_me: caught signal $ac_signal"
2379 $as_echo "$as_me: exit $exit_status"
2380 } >&5
2381 rm -f core *.core core.conftest.* &&
2382 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2383 exit $exit_status
2384 ' 0
2385 for ac_signal in 1 2 13 15; do
2386 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2387 done
2388 ac_signal=0
2389
2390 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2391 rm -f -r conftest* confdefs.h
2392
2393 $as_echo "/* confdefs.h */" > confdefs.h
2394
2395 # Predefined preprocessor variables.
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_NAME "$PACKAGE_NAME"
2399 _ACEOF
2400
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2403 _ACEOF
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_STRING "$PACKAGE_STRING"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_URL "$PACKAGE_URL"
2419 _ACEOF
2420
2421
2422 # Let the site file select an alternate cache file if it wants to.
2423 # Prefer an explicitly selected file to automatically selected ones.
2424 ac_site_file1=NONE
2425 ac_site_file2=NONE
2426 if test -n "$CONFIG_SITE"; then
2427 # We do not want a PATH search for config.site.
2428 case $CONFIG_SITE in #((
2429 -*) ac_site_file1=./$CONFIG_SITE;;
2430 */*) ac_site_file1=$CONFIG_SITE;;
2431 *) ac_site_file1=./$CONFIG_SITE;;
2432 esac
2433 elif test "x$prefix" != xNONE; then
2434 ac_site_file1=$prefix/share/config.site
2435 ac_site_file2=$prefix/etc/config.site
2436 else
2437 ac_site_file1=$ac_default_prefix/share/config.site
2438 ac_site_file2=$ac_default_prefix/etc/config.site
2439 fi
2440 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2441 do
2442 test "x$ac_site_file" = xNONE && continue
2443 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2445 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2446 sed 's/^/| /' "$ac_site_file" >&5
2447 . "$ac_site_file" \
2448 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2450 as_fn_error $? "failed to load site script $ac_site_file
2451 See \`config.log' for more details" "$LINENO" 5; }
2452 fi
2453 done
2454
2455 if test -r "$cache_file"; then
2456 # Some versions of bash will fail to source /dev/null (special files
2457 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2458 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461 case $cache_file in
2462 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463 *) . "./$cache_file";;
2464 esac
2465 fi
2466 else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469 >$cache_file
2470 fi
2471
2472 # Check that the precious variables saved in the cache have kept the same
2473 # value.
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477 eval ac_new_set=\$ac_env_${ac_var}_set
2478 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479 eval ac_new_val=\$ac_env_${ac_var}_value
2480 case $ac_old_set,$ac_new_set in
2481 set,)
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484 ac_cache_corrupted=: ;;
2485 ,set)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488 ac_cache_corrupted=: ;;
2489 ,);;
2490 *)
2491 if test "x$ac_old_val" != "x$ac_new_val"; then
2492 # differences in whitespace do not lead to failure.
2493 ac_old_val_w=`echo x $ac_old_val`
2494 ac_new_val_w=`echo x $ac_new_val`
2495 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498 ac_cache_corrupted=:
2499 else
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502 eval $ac_var=\$ac_old_val
2503 fi
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2505 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2507 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2508 fi;;
2509 esac
2510 # Pass precious variables to config.status.
2511 if test "$ac_new_set" = set; then
2512 case $ac_new_val in
2513 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514 *) ac_arg=$ac_var=$ac_new_val ;;
2515 esac
2516 case " $ac_configure_args " in
2517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2518 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519 esac
2520 fi
2521 done
2522 if $ac_cache_corrupted; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528 fi
2529 ## -------------------- ##
2530 ## Main body of script. ##
2531 ## -------------------- ##
2532
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540
2541
2542
2543
2544 ac_config_headers="$ac_config_headers config.h"
2545
2546
2547 libtool_VERSION=15:0:0
2548
2549
2550 # Default to --enable-multilib
2551 # Check whether --enable-multilib was given.
2552 if test "${enable_multilib+set}" = set; then :
2553 enableval=$enable_multilib; case "$enableval" in
2554 yes) multilib=yes ;;
2555 no) multilib=no ;;
2556 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2557 esac
2558 else
2559 multilib=yes
2560 fi
2561
2562
2563 # We may get other options which we leave undocumented:
2564 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2565 # See config-ml.in if you want the gory details.
2566
2567 if test "$srcdir" = "."; then
2568 if test "$with_target_subdir" != "."; then
2569 multi_basedir="$srcdir/$with_multisrctop../.."
2570 else
2571 multi_basedir="$srcdir/$with_multisrctop.."
2572 fi
2573 else
2574 multi_basedir="$srcdir/.."
2575 fi
2576
2577
2578 # Even if the default multilib is not a cross compilation,
2579 # it may be that some of the other multilibs are.
2580 if test $cross_compiling = no && test $multilib = yes \
2581 && test "x${with_multisubdir}" != x ; then
2582 cross_compiling=maybe
2583 fi
2584
2585 ac_config_commands="$ac_config_commands default-1"
2586
2587
2588 ac_aux_dir=
2589 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2590 if test -f "$ac_dir/install-sh"; then
2591 ac_aux_dir=$ac_dir
2592 ac_install_sh="$ac_aux_dir/install-sh -c"
2593 break
2594 elif test -f "$ac_dir/install.sh"; then
2595 ac_aux_dir=$ac_dir
2596 ac_install_sh="$ac_aux_dir/install.sh -c"
2597 break
2598 elif test -f "$ac_dir/shtool"; then
2599 ac_aux_dir=$ac_dir
2600 ac_install_sh="$ac_aux_dir/shtool install -c"
2601 break
2602 fi
2603 done
2604 if test -z "$ac_aux_dir"; then
2605 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2606 fi
2607
2608 # These three variables are undocumented and unsupported,
2609 # and are intended to be withdrawn in a future Autoconf release.
2610 # They can cause serious problems if a builder's source tree is in a directory
2611 # whose full name contains unusual characters.
2612 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2613 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2614 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2615
2616
2617 # Make sure we can run config.sub.
2618 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2619 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2620
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2622 $as_echo_n "checking build system type... " >&6; }
2623 if ${ac_cv_build+:} false; then :
2624 $as_echo_n "(cached) " >&6
2625 else
2626 ac_build_alias=$build_alias
2627 test "x$ac_build_alias" = x &&
2628 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2629 test "x$ac_build_alias" = x &&
2630 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2631 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2632 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2633
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2636 $as_echo "$ac_cv_build" >&6; }
2637 case $ac_cv_build in
2638 *-*-*) ;;
2639 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2640 esac
2641 build=$ac_cv_build
2642 ac_save_IFS=$IFS; IFS='-'
2643 set x $ac_cv_build
2644 shift
2645 build_cpu=$1
2646 build_vendor=$2
2647 shift; shift
2648 # Remember, the first character of IFS is used to create $*,
2649 # except with old shells:
2650 build_os=$*
2651 IFS=$ac_save_IFS
2652 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2653
2654
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2656 $as_echo_n "checking host system type... " >&6; }
2657 if ${ac_cv_host+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 if test "x$host_alias" = x; then
2661 ac_cv_host=$ac_cv_build
2662 else
2663 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2664 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2665 fi
2666
2667 fi
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2669 $as_echo "$ac_cv_host" >&6; }
2670 case $ac_cv_host in
2671 *-*-*) ;;
2672 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2673 esac
2674 host=$ac_cv_host
2675 ac_save_IFS=$IFS; IFS='-'
2676 set x $ac_cv_host
2677 shift
2678 host_cpu=$1
2679 host_vendor=$2
2680 shift; shift
2681 # Remember, the first character of IFS is used to create $*,
2682 # except with old shells:
2683 host_os=$*
2684 IFS=$ac_save_IFS
2685 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2686
2687
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2689 $as_echo_n "checking target system type... " >&6; }
2690 if ${ac_cv_target+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test "x$target_alias" = x; then
2694 ac_cv_target=$ac_cv_host
2695 else
2696 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2697 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2698 fi
2699
2700 fi
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2702 $as_echo "$ac_cv_target" >&6; }
2703 case $ac_cv_target in
2704 *-*-*) ;;
2705 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2706 esac
2707 target=$ac_cv_target
2708 ac_save_IFS=$IFS; IFS='-'
2709 set x $ac_cv_target
2710 shift
2711 target_cpu=$1
2712 target_vendor=$2
2713 shift; shift
2714 # Remember, the first character of IFS is used to create $*,
2715 # except with old shells:
2716 target_os=$*
2717 IFS=$ac_save_IFS
2718 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2719
2720
2721 # The aliases save the names the user supplied, while $host etc.
2722 # will get canonicalized.
2723 test -n "$target_alias" &&
2724 test "$program_prefix$program_suffix$program_transform_name" = \
2725 NONENONEs,x,x, &&
2726 program_prefix=${target_alias}-
2727
2728 target_alias=${target_alias-$host_alias}
2729
2730 am__api_version='1.15'
2731
2732 # Find a good install program. We prefer a C program (faster),
2733 # so one script is as good as another. But avoid the broken or
2734 # incompatible versions:
2735 # SysV /etc/install, /usr/sbin/install
2736 # SunOS /usr/etc/install
2737 # IRIX /sbin/install
2738 # AIX /bin/install
2739 # AmigaOS /C/install, which installs bootblocks on floppy discs
2740 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2741 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2742 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2743 # OS/2's system install, which has a completely different semantic
2744 # ./install, which can be erroneously created by make from ./install.sh.
2745 # Reject install programs that cannot install multiple files.
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2747 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2748 if test -z "$INSTALL"; then
2749 if ${ac_cv_path_install+:} false; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 test -z "$as_dir" && as_dir=.
2757 # Account for people who put trailing slashes in PATH elements.
2758 case $as_dir/ in #((
2759 ./ | .// | /[cC]/* | \
2760 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2761 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2762 /usr/ucb/* ) ;;
2763 *)
2764 # OSF1 and SCO ODT 3.0 have their own names for install.
2765 # Don't use installbsd from OSF since it installs stuff as root
2766 # by default.
2767 for ac_prog in ginstall scoinst install; do
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2770 if test $ac_prog = install &&
2771 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2772 # AIX install. It has an incompatible calling convention.
2773 :
2774 elif test $ac_prog = install &&
2775 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2776 # program-specific install script used by HP pwplus--don't use.
2777 :
2778 else
2779 rm -rf conftest.one conftest.two conftest.dir
2780 echo one > conftest.one
2781 echo two > conftest.two
2782 mkdir conftest.dir
2783 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2784 test -s conftest.one && test -s conftest.two &&
2785 test -s conftest.dir/conftest.one &&
2786 test -s conftest.dir/conftest.two
2787 then
2788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2789 break 3
2790 fi
2791 fi
2792 fi
2793 done
2794 done
2795 ;;
2796 esac
2797
2798 done
2799 IFS=$as_save_IFS
2800
2801 rm -rf conftest.one conftest.two conftest.dir
2802
2803 fi
2804 if test "${ac_cv_path_install+set}" = set; then
2805 INSTALL=$ac_cv_path_install
2806 else
2807 # As a last resort, use the slow shell script. Don't cache a
2808 # value for INSTALL within a source directory, because that will
2809 # break other packages using the cache if that directory is
2810 # removed, or if the value is a relative name.
2811 INSTALL=$ac_install_sh
2812 fi
2813 fi
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2815 $as_echo "$INSTALL" >&6; }
2816
2817 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2818 # It thinks the first close brace ends the variable substitution.
2819 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2820
2821 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2822
2823 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2826 $as_echo_n "checking whether build environment is sane... " >&6; }
2827 # Reject unsafe characters in $srcdir or the absolute working directory
2828 # name. Accept space and tab only in the latter.
2829 am_lf='
2830 '
2831 case `pwd` in
2832 *[\\\"\#\$\&\'\`$am_lf]*)
2833 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2834 esac
2835 case $srcdir in
2836 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2837 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2838 esac
2839
2840 # Do 'set' in a subshell so we don't clobber the current shell's
2841 # arguments. Must try -L first in case configure is actually a
2842 # symlink; some systems play weird games with the mod time of symlinks
2843 # (eg FreeBSD returns the mod time of the symlink's containing
2844 # directory).
2845 if (
2846 am_has_slept=no
2847 for am_try in 1 2; do
2848 echo "timestamp, slept: $am_has_slept" > conftest.file
2849 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2850 if test "$*" = "X"; then
2851 # -L didn't work.
2852 set X `ls -t "$srcdir/configure" conftest.file`
2853 fi
2854 if test "$*" != "X $srcdir/configure conftest.file" \
2855 && test "$*" != "X conftest.file $srcdir/configure"; then
2856
2857 # If neither matched, then we have a broken ls. This can happen
2858 # if, for instance, CONFIG_SHELL is bash and it inherits a
2859 # broken ls alias from the environment. This has actually
2860 # happened. Such a system could not be considered "sane".
2861 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2862 alias in your environment" "$LINENO" 5
2863 fi
2864 if test "$2" = conftest.file || test $am_try -eq 2; then
2865 break
2866 fi
2867 # Just in case.
2868 sleep 1
2869 am_has_slept=yes
2870 done
2871 test "$2" = conftest.file
2872 )
2873 then
2874 # Ok.
2875 :
2876 else
2877 as_fn_error $? "newly created file is older than distributed files!
2878 Check your system clock" "$LINENO" 5
2879 fi
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2881 $as_echo "yes" >&6; }
2882 # If we didn't sleep, we still need to ensure time stamps of config.status and
2883 # generated files are strictly newer.
2884 am_sleep_pid=
2885 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2886 ( sleep 1 ) &
2887 am_sleep_pid=$!
2888 fi
2889
2890 rm -f conftest.file
2891
2892 test "$program_prefix" != NONE &&
2893 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2894 # Use a double $ so make ignores it.
2895 test "$program_suffix" != NONE &&
2896 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2897 # Double any \ or $.
2898 # By default was `s,x,x', remove it if useless.
2899 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2900 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2901
2902 # Expand $ac_aux_dir to an absolute path.
2903 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2904
2905 if test x"${MISSING+set}" != xset; then
2906 case $am_aux_dir in
2907 *\ * | *\ *)
2908 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2909 *)
2910 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2911 esac
2912 fi
2913 # Use eval to expand $SHELL
2914 if eval "$MISSING --is-lightweight"; then
2915 am_missing_run="$MISSING "
2916 else
2917 am_missing_run=
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2919 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2920 fi
2921
2922 if test x"${install_sh+set}" != xset; then
2923 case $am_aux_dir in
2924 *\ * | *\ *)
2925 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2926 *)
2927 install_sh="\${SHELL} $am_aux_dir/install-sh"
2928 esac
2929 fi
2930
2931 # Installed binaries are usually stripped using 'strip' when the user
2932 # run "make install-strip". However 'strip' might not be the right
2933 # tool to use in cross-compilation environments, therefore Automake
2934 # will honor the 'STRIP' environment variable to overrule this program.
2935 if test "$cross_compiling" != no; then
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}strip; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_STRIP+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$STRIP"; then
2945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2954 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 STRIP=$ac_cv_prog_STRIP
2965 if test -n "$STRIP"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2967 $as_echo "$STRIP" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974 fi
2975 if test -z "$ac_cv_prog_STRIP"; then
2976 ac_ct_STRIP=$STRIP
2977 # Extract the first word of "strip", so it can be a program name with args.
2978 set dummy strip; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$ac_ct_STRIP"; then
2985 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990 IFS=$as_save_IFS
2991 test -z "$as_dir" && as_dir=.
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_ac_ct_STRIP="strip"
2995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi
3003 fi
3004 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3005 if test -n "$ac_ct_STRIP"; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3007 $as_echo "$ac_ct_STRIP" >&6; }
3008 else
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 fi
3012
3013 if test "x$ac_ct_STRIP" = x; then
3014 STRIP=":"
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022 STRIP=$ac_ct_STRIP
3023 fi
3024 else
3025 STRIP="$ac_cv_prog_STRIP"
3026 fi
3027
3028 fi
3029 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3030
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3032 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3033 if test -z "$MKDIR_P"; then
3034 if ${ac_cv_path_mkdir+:} false; then :
3035 $as_echo_n "(cached) " >&6
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_prog in mkdir gmkdir; do
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3045 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3046 'mkdir (GNU coreutils) '* | \
3047 'mkdir (coreutils) '* | \
3048 'mkdir (fileutils) '4.1*)
3049 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3050 break 3;;
3051 esac
3052 done
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058
3059 test -d ./--version && rmdir ./--version
3060 if test "${ac_cv_path_mkdir+set}" = set; then
3061 MKDIR_P="$ac_cv_path_mkdir -p"
3062 else
3063 # As a last resort, use the slow shell script. Don't cache a
3064 # value for MKDIR_P within a source directory, because that will
3065 # break other packages using the cache if that directory is
3066 # removed, or if the value is a relative name.
3067 MKDIR_P="$ac_install_sh -d"
3068 fi
3069 fi
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3071 $as_echo "$MKDIR_P" >&6; }
3072
3073 for ac_prog in gawk mawk nawk awk
3074 do
3075 # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_AWK+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$AWK"; then
3083 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_AWK="$ac_prog"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 AWK=$ac_cv_prog_AWK
3103 if test -n "$AWK"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105 $as_echo "$AWK" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 test -n "$AWK" && break
3113 done
3114
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117 set x ${MAKE-make}
3118 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3119 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 cat >conftest.make <<\_ACEOF
3123 SHELL = /bin/sh
3124 all:
3125 @echo '@@@%%%=$(MAKE)=@@@%%%'
3126 _ACEOF
3127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3128 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3129 *@@@%%%=?*=@@@%%%*)
3130 eval ac_cv_prog_make_${ac_make}_set=yes;;
3131 *)
3132 eval ac_cv_prog_make_${ac_make}_set=no;;
3133 esac
3134 rm -f conftest.make
3135 fi
3136 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139 SET_MAKE=
3140 else
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3143 SET_MAKE="MAKE=${MAKE-make}"
3144 fi
3145
3146 rm -rf .tst 2>/dev/null
3147 mkdir .tst 2>/dev/null
3148 if test -d .tst; then
3149 am__leading_dot=.
3150 else
3151 am__leading_dot=_
3152 fi
3153 rmdir .tst 2>/dev/null
3154
3155 # Check whether --enable-silent-rules was given.
3156 if test "${enable_silent_rules+set}" = set; then :
3157 enableval=$enable_silent_rules;
3158 fi
3159
3160 case $enable_silent_rules in # (((
3161 yes) AM_DEFAULT_VERBOSITY=0;;
3162 no) AM_DEFAULT_VERBOSITY=1;;
3163 *) AM_DEFAULT_VERBOSITY=1;;
3164 esac
3165 am_make=${MAKE-make}
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3167 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3168 if ${am_cv_make_support_nested_variables+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170 else
3171 if $as_echo 'TRUE=$(BAR$(V))
3172 BAR0=false
3173 BAR1=true
3174 V=1
3175 am__doit:
3176 @$(TRUE)
3177 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3178 am_cv_make_support_nested_variables=yes
3179 else
3180 am_cv_make_support_nested_variables=no
3181 fi
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3184 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3185 if test $am_cv_make_support_nested_variables = yes; then
3186 AM_V='$(V)'
3187 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3188 else
3189 AM_V=$AM_DEFAULT_VERBOSITY
3190 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3191 fi
3192 AM_BACKSLASH='\'
3193
3194 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3195 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3196 # is not polluted with repeated "-I."
3197 am__isrc=' -I$(srcdir)'
3198 # test to see if srcdir already configured
3199 if test -f $srcdir/config.status; then
3200 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3201 fi
3202 fi
3203
3204 # test whether we have cygpath
3205 if test -z "$CYGPATH_W"; then
3206 if (cygpath --version) >/dev/null 2>/dev/null; then
3207 CYGPATH_W='cygpath -w'
3208 else
3209 CYGPATH_W=echo
3210 fi
3211 fi
3212
3213
3214 # Define the identity of the package.
3215 PACKAGE='libgo'
3216 VERSION='version-unused'
3217
3218
3219 # Some tools Automake needs.
3220
3221 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3222
3223
3224 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3225
3226
3227 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3228
3229
3230 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3231
3232
3233 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3234
3235 # For better backward compatibility. To be removed once Automake 1.9.x
3236 # dies out for good. For more background, see:
3237 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3238 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3239 mkdir_p='$(MKDIR_P)'
3240
3241 # We need awk for the "check" target (and possibly the TAP driver). The
3242 # system "awk" is bad on some platforms.
3243 # Always define AMTAR for backward compatibility. Yes, it's still used
3244 # in the wild :-( We should find a proper way to deprecate it ...
3245 AMTAR='$${TAR-tar}'
3246
3247
3248 # We'll loop over all known methods to create a tar archive until one works.
3249 _am_tools='gnutar pax cpio none'
3250
3251 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3252
3253
3254
3255
3256
3257
3258 # POSIX will say in a future version that running "rm -f" with no argument
3259 # is OK; and we want to be able to make that assumption in our Makefile
3260 # recipes. So use an aggressive probe to check that the usage we want is
3261 # actually supported "in the wild" to an acceptable degree.
3262 # See automake bug#10828.
3263 # To make any issue more visible, cause the running configure to be aborted
3264 # by default if the 'rm' program in use doesn't match our expectations; the
3265 # user can still override this though.
3266 if rm -f && rm -fr && rm -rf; then : OK; else
3267 cat >&2 <<'END'
3268 Oops!
3269
3270 Your 'rm' program seems unable to run without file operands specified
3271 on the command line, even when the '-f' option is present. This is contrary
3272 to the behaviour of most rm programs out there, and not conforming with
3273 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3274
3275 Please tell bug-automake@gnu.org about your system, including the value
3276 of your $PATH and any error possibly output before this message. This
3277 can help us improve future automake versions.
3278
3279 END
3280 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3281 echo 'Configuration will proceed anyway, since you have set the' >&2
3282 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3283 echo >&2
3284 else
3285 cat >&2 <<'END'
3286 Aborting the configuration process, to ensure you take notice of the issue.
3287
3288 You can download and install GNU coreutils to get an 'rm' implementation
3289 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3290
3291 If you want to complete the configuration process using your problematic
3292 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3293 to "yes", and re-run configure.
3294
3295 END
3296 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3297 fi
3298 fi
3299
3300
3301
3302
3303
3304
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 if test -n "$ac_tool_prefix"; then
3311 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false; then :
3316 $as_echo_n "(cached) " >&6
3317 else
3318 if test -n "$CC"; then
3319 ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 fi
3349 if test -z "$ac_cv_prog_CC"; then
3350 ac_ct_CC=$CC
3351 # Extract the first word of "gcc", so it can be a program name with args.
3352 set dummy gcc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357 else
3358 if test -n "$ac_ct_CC"; then
3359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_CC="gcc"
3369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3382 else
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387 if test "x$ac_ct_CC" = x; then
3388 CC=""
3389 else
3390 case $cross_compiling:$ac_tool_warned in
3391 yes:)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394 ac_tool_warned=yes ;;
3395 esac
3396 CC=$ac_ct_CC
3397 fi
3398 else
3399 CC="$ac_cv_prog_CC"
3400 fi
3401
3402 if test -z "$CC"; then
3403 if test -n "$ac_tool_prefix"; then
3404 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$CC"; then
3412 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 ac_cv_prog_CC="${ac_tool_prefix}cc"
3422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425 done
3426 done
3427 IFS=$as_save_IFS
3428
3429 fi
3430 fi
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3435 else
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440
3441 fi
3442 fi
3443 if test -z "$CC"; then
3444 # Extract the first word of "cc", so it can be a program name with args.
3445 set dummy cc; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_CC+:} false; then :
3449 $as_echo_n "(cached) " >&6
3450 else
3451 if test -n "$CC"; then
3452 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 else
3454 ac_prog_rejected=no
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458 IFS=$as_save_IFS
3459 test -z "$as_dir" && as_dir=.
3460 for ac_exec_ext in '' $ac_executable_extensions; do
3461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3463 ac_prog_rejected=yes
3464 continue
3465 fi
3466 ac_cv_prog_CC="cc"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470 done
3471 done
3472 IFS=$as_save_IFS
3473
3474 if test $ac_prog_rejected = yes; then
3475 # We found a bogon in the path, so make sure we never use it.
3476 set dummy $ac_cv_prog_CC
3477 shift
3478 if test $# != 0; then
3479 # We chose a different compiler from the bogus one.
3480 # However, it has the same basename, so the bogon will be chosen
3481 # first if we set CC to just the basename; use the full file name.
3482 shift
3483 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3484 fi
3485 fi
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498 fi
3499 if test -z "$CC"; then
3500 if test -n "$ac_tool_prefix"; then
3501 for ac_prog in cl.exe
3502 do
3503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3523 fi
3524 done
3525 done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540 test -n "$CC" && break
3541 done
3542 fi
3543 if test -z "$CC"; then
3544 ac_ct_CC=$CC
3545 for ac_prog in cl.exe
3546 do
3547 # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy $ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$ac_ct_CC"; then
3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_ac_ct_CC="$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584 test -n "$ac_ct_CC" && break
3585 done
3586
3587 if test "x$ac_ct_CC" = x; then
3588 CC=""
3589 else
3590 case $cross_compiling:$ac_tool_warned in
3591 yes:)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3595 esac
3596 CC=$ac_ct_CC
3597 fi
3598 fi
3599
3600 fi
3601
3602
3603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details" "$LINENO" 5; }
3607
3608 # Provide some information about the compiler.
3609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3610 set X $ac_compile
3611 ac_compiler=$2
3612 for ac_option in --version -v -V -qversion; do
3613 { { ac_try="$ac_compiler $ac_option >&5"
3614 case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3621 ac_status=$?
3622 if test -s conftest.err; then
3623 sed '10a\
3624 ... rest of stderr output deleted ...
3625 10q' conftest.err >conftest.er1
3626 cat conftest.er1 >&5
3627 fi
3628 rm -f conftest.er1 conftest.err
3629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630 test $ac_status = 0; }
3631 done
3632
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h. */
3635
3636 int
3637 main ()
3638 {
3639
3640 ;
3641 return 0;
3642 }
3643 _ACEOF
3644 ac_clean_files_save=$ac_clean_files
3645 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3646 # Try to create an executable without -o first, disregard a.out.
3647 # It will help us diagnose broken compilers, and finding out an intuition
3648 # of exeext.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3650 $as_echo_n "checking whether the C compiler works... " >&6; }
3651 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3652
3653 # The possible output files:
3654 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3655
3656 ac_rmfiles=
3657 for ac_file in $ac_files
3658 do
3659 case $ac_file in
3660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3661 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3662 esac
3663 done
3664 rm -f $ac_rmfiles
3665
3666 if { { ac_try="$ac_link_default"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_link_default") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3678 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3679 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3680 # so that the user can short-circuit this test for compilers unknown to
3681 # Autoconf.
3682 for ac_file in $ac_files ''
3683 do
3684 test -f "$ac_file" || continue
3685 case $ac_file in
3686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3687 ;;
3688 [ab].out )
3689 # We found the default executable, but exeext='' is most
3690 # certainly right.
3691 break;;
3692 *.* )
3693 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3694 then :; else
3695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3696 fi
3697 # We set ac_cv_exeext here because the later test for it is not
3698 # safe: cross compilers may not add the suffix if given an `-o'
3699 # argument, so we may need to know it at that point already.
3700 # Even if this section looks crufty: it has the advantage of
3701 # actually working.
3702 break;;
3703 * )
3704 break;;
3705 esac
3706 done
3707 test "$ac_cv_exeext" = no && ac_cv_exeext=
3708
3709 else
3710 ac_file=''
3711 fi
3712 if test -z "$ac_file"; then :
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error 77 "C compiler cannot create executables
3721 See \`config.log' for more details" "$LINENO" 5; }
3722 else
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3727 $as_echo_n "checking for C compiler default output file name... " >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 ac_exeext=$ac_cv_exeext
3731
3732 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3733 ac_clean_files=$ac_clean_files_save
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3735 $as_echo_n "checking for suffix of executables... " >&6; }
3736 if { { ac_try="$ac_link"
3737 case "(($ac_try" in
3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739 *) ac_try_echo=$ac_try;;
3740 esac
3741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743 (eval "$ac_link") 2>&5
3744 ac_status=$?
3745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746 test $ac_status = 0; }; then :
3747 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3748 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3749 # work properly (i.e., refer to `conftest.exe'), while it won't with
3750 # `rm'.
3751 for ac_file in conftest.exe conftest conftest.*; do
3752 test -f "$ac_file" || continue
3753 case $ac_file in
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3755 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3756 break;;
3757 * ) break;;
3758 esac
3759 done
3760 else
3761 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details" "$LINENO" 5; }
3765 fi
3766 rm -f conftest conftest$ac_cv_exeext
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3768 $as_echo "$ac_cv_exeext" >&6; }
3769
3770 rm -f conftest.$ac_ext
3771 EXEEXT=$ac_cv_exeext
3772 ac_exeext=$EXEEXT
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3775 #include <stdio.h>
3776 int
3777 main ()
3778 {
3779 FILE *f = fopen ("conftest.out", "w");
3780 return ferror (f) || fclose (f) != 0;
3781
3782 ;
3783 return 0;
3784 }
3785 _ACEOF
3786 ac_clean_files="$ac_clean_files conftest.out"
3787 # Check that the compiler produces executables we can run. If not, either
3788 # the compiler is broken, or we cross compile.
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3790 $as_echo_n "checking whether we are cross compiling... " >&6; }
3791 if test "$cross_compiling" != yes; then
3792 { { ac_try="$ac_link"
3793 case "(($ac_try" in
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_link") 2>&5
3800 ac_status=$?
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }
3803 if { ac_try='./conftest$ac_cv_exeext'
3804 { { case "(($ac_try" in
3805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806 *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810 (eval "$ac_try") 2>&5
3811 ac_status=$?
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; }; then
3814 cross_compiling=no
3815 else
3816 if test "$cross_compiling" = maybe; then
3817 cross_compiling=yes
3818 else
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot run C compiled programs.
3822 If you meant to cross compile, use \`--host'.
3823 See \`config.log' for more details" "$LINENO" 5; }
3824 fi
3825 fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3828 $as_echo "$cross_compiling" >&6; }
3829
3830 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3833 $as_echo_n "checking for suffix of object files... " >&6; }
3834 if ${ac_cv_objext+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h. */
3839
3840 int
3841 main ()
3842 {
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 rm -f conftest.o conftest.obj
3849 if { { ac_try="$ac_compile"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_compile") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 for ac_file in conftest.o conftest.obj conftest.*; do
3861 test -f "$ac_file" || continue;
3862 case $ac_file in
3863 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3864 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3865 break;;
3866 esac
3867 done
3868 else
3869 $as_echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "cannot compute suffix of object files: cannot compile
3875 See \`config.log' for more details" "$LINENO" 5; }
3876 fi
3877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3880 $as_echo "$ac_cv_objext" >&6; }
3881 OBJEXT=$ac_cv_objext
3882 ac_objext=$OBJEXT
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3885 if ${ac_cv_c_compiler_gnu+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890
3891 int
3892 main ()
3893 {
3894 #ifndef __GNUC__
3895 choke me
3896 #endif
3897
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903 ac_compiler_gnu=yes
3904 else
3905 ac_compiler_gnu=no
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3913 if test $ac_compiler_gnu = yes; then
3914 GCC=yes
3915 else
3916 GCC=
3917 fi
3918 ac_test_CFLAGS=${CFLAGS+set}
3919 ac_save_CFLAGS=$CFLAGS
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3922 if ${ac_cv_prog_cc_g+:} false; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 ac_save_c_werror_flag=$ac_c_werror_flag
3926 ac_c_werror_flag=yes
3927 ac_cv_prog_cc_g=no
3928 CFLAGS="-g"
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931
3932 int
3933 main ()
3934 {
3935
3936 ;
3937 return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941 ac_cv_prog_cc_g=yes
3942 else
3943 CFLAGS=""
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3946
3947 int
3948 main ()
3949 {
3950
3951 ;
3952 return 0;
3953 }
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956
3957 else
3958 ac_c_werror_flag=$ac_save_c_werror_flag
3959 CFLAGS="-g"
3960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h. */
3962
3963 int
3964 main ()
3965 {
3966
3967 ;
3968 return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972 ac_cv_prog_cc_g=yes
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 ac_c_werror_flag=$ac_save_c_werror_flag
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984 CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986 if test "$GCC" = yes; then
3987 CFLAGS="-g -O2"
3988 else
3989 CFLAGS="-g"
3990 fi
3991 else
3992 if test "$GCC" = yes; then
3993 CFLAGS="-O2"
3994 else
3995 CFLAGS=
3996 fi
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if ${ac_cv_prog_cc_c89+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 ac_cv_prog_cc_c89=no
4004 ac_save_CC=$CC
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007 #include <stdarg.h>
4008 #include <stdio.h>
4009 struct stat;
4010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4011 struct buf { int x; };
4012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4013 static char *e (p, i)
4014 char **p;
4015 int i;
4016 {
4017 return p[i];
4018 }
4019 static char *f (char * (*g) (char **, int), char **p, ...)
4020 {
4021 char *s;
4022 va_list v;
4023 va_start (v,p);
4024 s = g (p, va_arg (v,int));
4025 va_end (v);
4026 return s;
4027 }
4028
4029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4030 function prototypes and stuff, but not '\xHH' hex character constants.
4031 These don't provoke an error unfortunately, instead are silently treated
4032 as 'x'. The following induces an error, until -std is added to get
4033 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4034 array size at least. It's necessary to write '\x00'==0 to get something
4035 that's true only with -std. */
4036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4037
4038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4039 inside strings and character constants. */
4040 #define FOO(x) 'x'
4041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4042
4043 int test (int i, double x);
4044 struct s1 {int (*f) (int a);};
4045 struct s2 {int (*f) (double a);};
4046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4047 int argc;
4048 char **argv;
4049 int
4050 main ()
4051 {
4052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4058 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4059 do
4060 CC="$ac_save_CC $ac_arg"
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_cv_prog_cc_c89=$ac_arg
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext
4065 test "x$ac_cv_prog_cc_c89" != "xno" && break
4066 done
4067 rm -f conftest.$ac_ext
4068 CC=$ac_save_CC
4069
4070 fi
4071 # AC_CACHE_VAL
4072 case "x$ac_cv_prog_cc_c89" in
4073 x)
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4075 $as_echo "none needed" >&6; } ;;
4076 xno)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078 $as_echo "unsupported" >&6; } ;;
4079 *)
4080 CC="$CC $ac_cv_prog_cc_c89"
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4083 esac
4084 if test "x$ac_cv_prog_cc_c89" != xno; then :
4085
4086 fi
4087
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093
4094 ac_ext=c
4095 ac_cpp='$CPP $CPPFLAGS'
4096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4100 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4101 if ${am_cv_prog_cc_c_o+:} false; then :
4102 $as_echo_n "(cached) " >&6
4103 else
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106
4107 int
4108 main ()
4109 {
4110
4111 ;
4112 return 0;
4113 }
4114 _ACEOF
4115 # Make sure it works both with $CC and with simple cc.
4116 # Following AC_PROG_CC_C_O, we do the test twice because some
4117 # compilers refuse to overwrite an existing .o file with -o,
4118 # though they will create one.
4119 am_cv_prog_cc_c_o=yes
4120 for am_i in 1 2; do
4121 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4122 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4123 ac_status=$?
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } \
4126 && test -f conftest2.$ac_objext; then
4127 : OK
4128 else
4129 am_cv_prog_cc_c_o=no
4130 break
4131 fi
4132 done
4133 rm -f core conftest*
4134 unset am_i
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4137 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4138 if test "$am_cv_prog_cc_c_o" != yes; then
4139 # Losing compiler, so override with the script.
4140 # FIXME: It is wrong to rewrite CC.
4141 # But if we don't then we get into trouble of one sort or another.
4142 # A longer-term fix would be to have automake use am__CC in this case,
4143 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4144 CC="$am_aux_dir/compile $CC"
4145 fi
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151
4152 DEPDIR="${am__leading_dot}deps"
4153
4154 ac_config_commands="$ac_config_commands depfiles"
4155
4156
4157 am_make=${MAKE-make}
4158 cat > confinc << 'END'
4159 am__doit:
4160 @echo this is the am__doit target
4161 .PHONY: am__doit
4162 END
4163 # If we don't find an include directive, just comment out the code.
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4165 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4166 am__include="#"
4167 am__quote=
4168 _am_result=none
4169 # First try GNU make style include.
4170 echo "include confinc" > confmf
4171 # Ignore all kinds of additional output from 'make'.
4172 case `$am_make -s -f confmf 2> /dev/null` in #(
4173 *the\ am__doit\ target*)
4174 am__include=include
4175 am__quote=
4176 _am_result=GNU
4177 ;;
4178 esac
4179 # Now try BSD make style include.
4180 if test "$am__include" = "#"; then
4181 echo '.include "confinc"' > confmf
4182 case `$am_make -s -f confmf 2> /dev/null` in #(
4183 *the\ am__doit\ target*)
4184 am__include=.include
4185 am__quote="\""
4186 _am_result=BSD
4187 ;;
4188 esac
4189 fi
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4193 $as_echo "$_am_result" >&6; }
4194 rm -f confinc confmf
4195
4196 # Check whether --enable-dependency-tracking was given.
4197 if test "${enable_dependency_tracking+set}" = set; then :
4198 enableval=$enable_dependency_tracking;
4199 fi
4200
4201 if test "x$enable_dependency_tracking" != xno; then
4202 am_depcomp="$ac_aux_dir/depcomp"
4203 AMDEPBACKSLASH='\'
4204 am__nodep='_no'
4205 fi
4206 if test "x$enable_dependency_tracking" != xno; then
4207 AMDEP_TRUE=
4208 AMDEP_FALSE='#'
4209 else
4210 AMDEP_TRUE='#'
4211 AMDEP_FALSE=
4212 fi
4213
4214
4215
4216 depcc="$CC" am_compiler_list=
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4219 $as_echo_n "checking dependency style of $depcc... " >&6; }
4220 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4224 # We make a subdir and do the tests there. Otherwise we can end up
4225 # making bogus files that we don't know about and never remove. For
4226 # instance it was reported that on HP-UX the gcc test will end up
4227 # making a dummy file named 'D' -- because '-MD' means "put the output
4228 # in D".
4229 rm -rf conftest.dir
4230 mkdir conftest.dir
4231 # Copy depcomp to subdir because otherwise we won't find it if we're
4232 # using a relative directory.
4233 cp "$am_depcomp" conftest.dir
4234 cd conftest.dir
4235 # We will build objects and dependencies in a subdirectory because
4236 # it helps to detect inapplicable dependency modes. For instance
4237 # both Tru64's cc and ICC support -MD to output dependencies as a
4238 # side effect of compilation, but ICC will put the dependencies in
4239 # the current directory while Tru64 will put them in the object
4240 # directory.
4241 mkdir sub
4242
4243 am_cv_CC_dependencies_compiler_type=none
4244 if test "$am_compiler_list" = ""; then
4245 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4246 fi
4247 am__universal=false
4248 case " $depcc " in #(
4249 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4250 esac
4251
4252 for depmode in $am_compiler_list; do
4253 # Setup a source with many dependencies, because some compilers
4254 # like to wrap large dependency lists on column 80 (with \), and
4255 # we should not choose a depcomp mode which is confused by this.
4256 #
4257 # We need to recreate these files for each test, as the compiler may
4258 # overwrite some of them when testing with obscure command lines.
4259 # This happens at least with the AIX C compiler.
4260 : > sub/conftest.c
4261 for i in 1 2 3 4 5 6; do
4262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4264 # Solaris 10 /bin/sh.
4265 echo '/* dummy */' > sub/conftst$i.h
4266 done
4267 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4268
4269 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4270 # mode. It turns out that the SunPro C++ compiler does not properly
4271 # handle '-M -o', and we need to detect this. Also, some Intel
4272 # versions had trouble with output in subdirs.
4273 am__obj=sub/conftest.${OBJEXT-o}
4274 am__minus_obj="-o $am__obj"
4275 case $depmode in
4276 gcc)
4277 # This depmode causes a compiler race in universal mode.
4278 test "$am__universal" = false || continue
4279 ;;
4280 nosideeffect)
4281 # After this tag, mechanisms are not by side-effect, so they'll
4282 # only be used when explicitly requested.
4283 if test "x$enable_dependency_tracking" = xyes; then
4284 continue
4285 else
4286 break
4287 fi
4288 ;;
4289 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4290 # This compiler won't grok '-c -o', but also, the minuso test has
4291 # not run yet. These depmodes are late enough in the game, and
4292 # so weak that their functioning should not be impacted.
4293 am__obj=conftest.${OBJEXT-o}
4294 am__minus_obj=
4295 ;;
4296 none) break ;;
4297 esac
4298 if depmode=$depmode \
4299 source=sub/conftest.c object=$am__obj \
4300 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4301 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4302 >/dev/null 2>conftest.err &&
4303 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4304 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4305 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4306 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4307 # icc doesn't choke on unknown options, it will just issue warnings
4308 # or remarks (even with -Werror). So we grep stderr for any message
4309 # that says an option was ignored or not supported.
4310 # When given -MP, icc 7.0 and 7.1 complain thusly:
4311 # icc: Command line warning: ignoring option '-M'; no argument required
4312 # The diagnosis changed in icc 8.0:
4313 # icc: Command line remark: option '-MP' not supported
4314 if (grep 'ignoring option' conftest.err ||
4315 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4316 am_cv_CC_dependencies_compiler_type=$depmode
4317 break
4318 fi
4319 fi
4320 done
4321
4322 cd ..
4323 rm -rf conftest.dir
4324 else
4325 am_cv_CC_dependencies_compiler_type=none
4326 fi
4327
4328 fi
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4330 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4331 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4332
4333 if
4334 test "x$enable_dependency_tracking" != xno \
4335 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4336 am__fastdepCC_TRUE=
4337 am__fastdepCC_FALSE='#'
4338 else
4339 am__fastdepCC_TRUE='#'
4340 am__fastdepCC_FALSE=
4341 fi
4342
4343
4344 ac_ext=go
4345 ac_compile='$GOC -c $GOFLAGS conftest.$ac_ext >&5'
4346 ac_link='$GOC -o conftest$ac_exeext $GOFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=yes
4348 if test -n "$ac_tool_prefix"; then
4349 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4350 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_GOC+:} false; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 if test -n "$GOC"; then
4357 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4358 else
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360 for as_dir in $PATH
4361 do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4373
4374 fi
4375 fi
4376 GOC=$ac_cv_prog_GOC
4377 if test -n "$GOC"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4379 $as_echo "$GOC" >&6; }
4380 else
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4383 fi
4384
4385
4386 fi
4387 if test -z "$ac_cv_prog_GOC"; then
4388 ac_ct_GOC=$GOC
4389 # Extract the first word of "gccgo", so it can be a program name with args.
4390 set dummy gccgo; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4396 if test -n "$ac_ct_GOC"; then
4397 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4398 else
4399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4404 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4406 ac_cv_prog_ac_ct_GOC="gccgo"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 break 2
4409 fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414 fi
4415 fi
4416 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4417 if test -n "$ac_ct_GOC"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4419 $as_echo "$ac_ct_GOC" >&6; }
4420 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4423 fi
4424
4425 if test "x$ac_ct_GOC" = x; then
4426 GOC=""
4427 else
4428 case $cross_compiling:$ac_tool_warned in
4429 yes:)
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4432 ac_tool_warned=yes ;;
4433 esac
4434 GOC=$ac_ct_GOC
4435 fi
4436 else
4437 GOC="$ac_cv_prog_GOC"
4438 fi
4439
4440 if test -z "$GOC"; then
4441 if test -n "$ac_tool_prefix"; then
4442 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4443 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4445 $as_echo_n "checking for $ac_word... " >&6; }
4446 if ${ac_cv_prog_GOC+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 if test -n "$GOC"; then
4450 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4451 else
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463 done
4464 done
4465 IFS=$as_save_IFS
4466
4467 fi
4468 fi
4469 GOC=$ac_cv_prog_GOC
4470 if test -n "$GOC"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4472 $as_echo "$GOC" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477
4478
4479 fi
4480 fi
4481 if test -z "$GOC"; then
4482 # Extract the first word of "gccgo", so it can be a program name with args.
4483 set dummy gccgo; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_prog_GOC+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 if test -n "$GOC"; then
4490 ac_cv_prog_GOC="$GOC" # Let the user override the test.
4491 else
4492 ac_prog_rejected=no
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 if test "$as_dir/$ac_word$ac_exec_ext" = "false"; then
4501 ac_prog_rejected=yes
4502 continue
4503 fi
4504 ac_cv_prog_GOC="gccgo"
4505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508 done
4509 done
4510 IFS=$as_save_IFS
4511
4512 if test $ac_prog_rejected = yes; then
4513 # We found a bogon in the path, so make sure we never use it.
4514 set dummy $ac_cv_prog_GOC
4515 shift
4516 if test $# != 0; then
4517 # We chose a different compiler from the bogus one.
4518 # However, it has the same basename, so the bogon will be chosen
4519 # first if we set GOC to just the basename; use the full file name.
4520 shift
4521 ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4522 fi
4523 fi
4524 fi
4525 fi
4526 GOC=$ac_cv_prog_GOC
4527 if test -n "$GOC"; then
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4529 $as_echo "$GOC" >&6; }
4530 else
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4532 $as_echo "no" >&6; }
4533 fi
4534
4535
4536 fi
4537
4538
4539 # Provide some information about the compiler.
4540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4541 set X $ac_compile
4542 ac_compiler=$2
4543 { { ac_try="$ac_compiler --version >&5"
4544 case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547 esac
4548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4549 $as_echo "$ac_try_echo"; } >&5
4550 (eval "$ac_compiler --version >&5") 2>conftest.err
4551 ac_status=$?
4552 if test -s conftest.err; then
4553 sed '10a\
4554 ... rest of stderr output deleted ...
4555 10q' conftest.err >conftest.er1
4556 cat conftest.er1 >&5
4557 fi
4558 rm -f conftest.er1 conftest.err
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }
4561 GOFLAGS="-g -O2"
4562 ac_ext=c
4563 ac_cpp='$CPP $CPPFLAGS'
4564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4567
4568 # By default we simply use the C compiler to build assembly code.
4569
4570 test "${CCAS+set}" = set || CCAS=$CC
4571 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4572
4573
4574
4575 depcc="$CCAS" am_compiler_list=
4576
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4578 $as_echo_n "checking dependency style of $depcc... " >&6; }
4579 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4583 # We make a subdir and do the tests there. Otherwise we can end up
4584 # making bogus files that we don't know about and never remove. For
4585 # instance it was reported that on HP-UX the gcc test will end up
4586 # making a dummy file named 'D' -- because '-MD' means "put the output
4587 # in D".
4588 rm -rf conftest.dir
4589 mkdir conftest.dir
4590 # Copy depcomp to subdir because otherwise we won't find it if we're
4591 # using a relative directory.
4592 cp "$am_depcomp" conftest.dir
4593 cd conftest.dir
4594 # We will build objects and dependencies in a subdirectory because
4595 # it helps to detect inapplicable dependency modes. For instance
4596 # both Tru64's cc and ICC support -MD to output dependencies as a
4597 # side effect of compilation, but ICC will put the dependencies in
4598 # the current directory while Tru64 will put them in the object
4599 # directory.
4600 mkdir sub
4601
4602 am_cv_CCAS_dependencies_compiler_type=none
4603 if test "$am_compiler_list" = ""; then
4604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4605 fi
4606 am__universal=false
4607
4608
4609 for depmode in $am_compiler_list; do
4610 # Setup a source with many dependencies, because some compilers
4611 # like to wrap large dependency lists on column 80 (with \), and
4612 # we should not choose a depcomp mode which is confused by this.
4613 #
4614 # We need to recreate these files for each test, as the compiler may
4615 # overwrite some of them when testing with obscure command lines.
4616 # This happens at least with the AIX C compiler.
4617 : > sub/conftest.c
4618 for i in 1 2 3 4 5 6; do
4619 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4620 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4621 # Solaris 10 /bin/sh.
4622 echo '/* dummy */' > sub/conftst$i.h
4623 done
4624 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4625
4626 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4627 # mode. It turns out that the SunPro C++ compiler does not properly
4628 # handle '-M -o', and we need to detect this. Also, some Intel
4629 # versions had trouble with output in subdirs.
4630 am__obj=sub/conftest.${OBJEXT-o}
4631 am__minus_obj="-o $am__obj"
4632 case $depmode in
4633 gcc)
4634 # This depmode causes a compiler race in universal mode.
4635 test "$am__universal" = false || continue
4636 ;;
4637 nosideeffect)
4638 # After this tag, mechanisms are not by side-effect, so they'll
4639 # only be used when explicitly requested.
4640 if test "x$enable_dependency_tracking" = xyes; then
4641 continue
4642 else
4643 break
4644 fi
4645 ;;
4646 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4647 # This compiler won't grok '-c -o', but also, the minuso test has
4648 # not run yet. These depmodes are late enough in the game, and
4649 # so weak that their functioning should not be impacted.
4650 am__obj=conftest.${OBJEXT-o}
4651 am__minus_obj=
4652 ;;
4653 none) break ;;
4654 esac
4655 if depmode=$depmode \
4656 source=sub/conftest.c object=$am__obj \
4657 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4658 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4659 >/dev/null 2>conftest.err &&
4660 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4661 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4662 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4663 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4664 # icc doesn't choke on unknown options, it will just issue warnings
4665 # or remarks (even with -Werror). So we grep stderr for any message
4666 # that says an option was ignored or not supported.
4667 # When given -MP, icc 7.0 and 7.1 complain thusly:
4668 # icc: Command line warning: ignoring option '-M'; no argument required
4669 # The diagnosis changed in icc 8.0:
4670 # icc: Command line remark: option '-MP' not supported
4671 if (grep 'ignoring option' conftest.err ||
4672 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4673 am_cv_CCAS_dependencies_compiler_type=$depmode
4674 break
4675 fi
4676 fi
4677 done
4678
4679 cd ..
4680 rm -rf conftest.dir
4681 else
4682 am_cv_CCAS_dependencies_compiler_type=none
4683 fi
4684
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4687 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4688 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4689
4690 if
4691 test "x$enable_dependency_tracking" != xno \
4692 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4693 am__fastdepCCAS_TRUE=
4694 am__fastdepCCAS_FALSE='#'
4695 else
4696 am__fastdepCCAS_TRUE='#'
4697 am__fastdepCCAS_FALSE=
4698 fi
4699
4700
4701
4702
4703
4704
4705 case ${host} in
4706 *-*-aix*)
4707 # static hash tables crashes on AIX when libgo is built with O2
4708 CFLAGS="$CFLAGS -fno-section-anchors"
4709 GOCFLAGS="$GOCFLAGS -fno-section-anchors"
4710 ;;
4711 esac
4712
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4715 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4716 # Check whether --enable-maintainer-mode was given.
4717 if test "${enable_maintainer_mode+set}" = set; then :
4718 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4719 else
4720 USE_MAINTAINER_MODE=no
4721 fi
4722
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4724 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4725 if test $USE_MAINTAINER_MODE = yes; then
4726 MAINTAINER_MODE_TRUE=
4727 MAINTAINER_MODE_FALSE='#'
4728 else
4729 MAINTAINER_MODE_TRUE='#'
4730 MAINTAINER_MODE_FALSE=
4731 fi
4732
4733 MAINT=$MAINTAINER_MODE_TRUE
4734
4735
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4738 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4739 if ${ac_cv_path_SED+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4743 for ac_i in 1 2 3 4 5 6 7; do
4744 ac_script="$ac_script$as_nl$ac_script"
4745 done
4746 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4747 { ac_script=; unset ac_script;}
4748 if test -z "$SED"; then
4749 ac_path_SED_found=false
4750 # Loop through the user's path and test for each of PROGNAME-LIST
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_prog in sed gsed; do
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4759 as_fn_executable_p "$ac_path_SED" || continue
4760 # Check for GNU ac_path_SED and select it if it is found.
4761 # Check for GNU $ac_path_SED
4762 case `"$ac_path_SED" --version 2>&1` in
4763 *GNU*)
4764 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4765 *)
4766 ac_count=0
4767 $as_echo_n 0123456789 >"conftest.in"
4768 while :
4769 do
4770 cat "conftest.in" "conftest.in" >"conftest.tmp"
4771 mv "conftest.tmp" "conftest.in"
4772 cp "conftest.in" "conftest.nl"
4773 $as_echo '' >> "conftest.nl"
4774 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4775 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4776 as_fn_arith $ac_count + 1 && ac_count=$as_val
4777 if test $ac_count -gt ${ac_path_SED_max-0}; then
4778 # Best one so far, save it but keep looking for a better one
4779 ac_cv_path_SED="$ac_path_SED"
4780 ac_path_SED_max=$ac_count
4781 fi
4782 # 10*(2^10) chars as input seems more than enough
4783 test $ac_count -gt 10 && break
4784 done
4785 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786 esac
4787
4788 $ac_path_SED_found && break 3
4789 done
4790 done
4791 done
4792 IFS=$as_save_IFS
4793 if test -z "$ac_cv_path_SED"; then
4794 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4795 fi
4796 else
4797 ac_cv_path_SED=$SED
4798 fi
4799
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4802 $as_echo "$ac_cv_path_SED" >&6; }
4803 SED="$ac_cv_path_SED"
4804 rm -f conftest.sed
4805
4806 test -z "$SED" && SED=sed
4807 Xsed="$SED -e 1s/^X//"
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4820 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4821 if ${ac_cv_path_GREP+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 if test -z "$GREP"; then
4825 ac_path_GREP_found=false
4826 # Loop through the user's path and test for each of PROGNAME-LIST
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_prog in grep ggrep; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4835 as_fn_executable_p "$ac_path_GREP" || continue
4836 # Check for GNU ac_path_GREP and select it if it is found.
4837 # Check for GNU $ac_path_GREP
4838 case `"$ac_path_GREP" --version 2>&1` in
4839 *GNU*)
4840 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4841 *)
4842 ac_count=0
4843 $as_echo_n 0123456789 >"conftest.in"
4844 while :
4845 do
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 $as_echo 'GREP' >> "conftest.nl"
4850 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852 as_fn_arith $ac_count + 1 && ac_count=$as_val
4853 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_GREP="$ac_path_GREP"
4856 ac_path_GREP_max=$ac_count
4857 fi
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4860 done
4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4863
4864 $ac_path_GREP_found && break 3
4865 done
4866 done
4867 done
4868 IFS=$as_save_IFS
4869 if test -z "$ac_cv_path_GREP"; then
4870 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4871 fi
4872 else
4873 ac_cv_path_GREP=$GREP
4874 fi
4875
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4878 $as_echo "$ac_cv_path_GREP" >&6; }
4879 GREP="$ac_cv_path_GREP"
4880
4881
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4883 $as_echo_n "checking for egrep... " >&6; }
4884 if ${ac_cv_path_EGREP+:} false; then :
4885 $as_echo_n "(cached) " >&6
4886 else
4887 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4888 then ac_cv_path_EGREP="$GREP -E"
4889 else
4890 if test -z "$EGREP"; then
4891 ac_path_EGREP_found=false
4892 # Loop through the user's path and test for each of PROGNAME-LIST
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4895 do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_prog in egrep; do
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4901 as_fn_executable_p "$ac_path_EGREP" || continue
4902 # Check for GNU ac_path_EGREP and select it if it is found.
4903 # Check for GNU $ac_path_EGREP
4904 case `"$ac_path_EGREP" --version 2>&1` in
4905 *GNU*)
4906 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4907 *)
4908 ac_count=0
4909 $as_echo_n 0123456789 >"conftest.in"
4910 while :
4911 do
4912 cat "conftest.in" "conftest.in" >"conftest.tmp"
4913 mv "conftest.tmp" "conftest.in"
4914 cp "conftest.in" "conftest.nl"
4915 $as_echo 'EGREP' >> "conftest.nl"
4916 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4917 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4918 as_fn_arith $ac_count + 1 && ac_count=$as_val
4919 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4920 # Best one so far, save it but keep looking for a better one
4921 ac_cv_path_EGREP="$ac_path_EGREP"
4922 ac_path_EGREP_max=$ac_count
4923 fi
4924 # 10*(2^10) chars as input seems more than enough
4925 test $ac_count -gt 10 && break
4926 done
4927 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4928 esac
4929
4930 $ac_path_EGREP_found && break 3
4931 done
4932 done
4933 done
4934 IFS=$as_save_IFS
4935 if test -z "$ac_cv_path_EGREP"; then
4936 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4937 fi
4938 else
4939 ac_cv_path_EGREP=$EGREP
4940 fi
4941
4942 fi
4943 fi
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4945 $as_echo "$ac_cv_path_EGREP" >&6; }
4946 EGREP="$ac_cv_path_EGREP"
4947
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4950 $as_echo_n "checking for fgrep... " >&6; }
4951 if ${ac_cv_path_FGREP+:} false; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4955 then ac_cv_path_FGREP="$GREP -F"
4956 else
4957 if test -z "$FGREP"; then
4958 ac_path_FGREP_found=false
4959 # Loop through the user's path and test for each of PROGNAME-LIST
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4962 do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_prog in fgrep; do
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4968 as_fn_executable_p "$ac_path_FGREP" || continue
4969 # Check for GNU ac_path_FGREP and select it if it is found.
4970 # Check for GNU $ac_path_FGREP
4971 case `"$ac_path_FGREP" --version 2>&1` in
4972 *GNU*)
4973 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4974 *)
4975 ac_count=0
4976 $as_echo_n 0123456789 >"conftest.in"
4977 while :
4978 do
4979 cat "conftest.in" "conftest.in" >"conftest.tmp"
4980 mv "conftest.tmp" "conftest.in"
4981 cp "conftest.in" "conftest.nl"
4982 $as_echo 'FGREP' >> "conftest.nl"
4983 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4985 as_fn_arith $ac_count + 1 && ac_count=$as_val
4986 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4987 # Best one so far, save it but keep looking for a better one
4988 ac_cv_path_FGREP="$ac_path_FGREP"
4989 ac_path_FGREP_max=$ac_count
4990 fi
4991 # 10*(2^10) chars as input seems more than enough
4992 test $ac_count -gt 10 && break
4993 done
4994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4995 esac
4996
4997 $ac_path_FGREP_found && break 3
4998 done
4999 done
5000 done
5001 IFS=$as_save_IFS
5002 if test -z "$ac_cv_path_FGREP"; then
5003 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5004 fi
5005 else
5006 ac_cv_path_FGREP=$FGREP
5007 fi
5008
5009 fi
5010 fi
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5012 $as_echo "$ac_cv_path_FGREP" >&6; }
5013 FGREP="$ac_cv_path_FGREP"
5014
5015
5016 test -z "$GREP" && GREP=grep
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5035 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5036 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5039 $as_echo_n "checking how to print strings... " >&6; }
5040 # Test print first, because it will be a builtin if present.
5041 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5042 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5043 ECHO='print -r --'
5044 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5045 ECHO='printf %s\n'
5046 else
5047 # Use this function as a fallback that always works.
5048 func_fallback_echo ()
5049 {
5050 eval 'cat <<_LTECHO_EOF
5051 $1
5052 _LTECHO_EOF'
5053 }
5054 ECHO='func_fallback_echo'
5055 fi
5056
5057 # func_echo_all arg...
5058 # Invoke $ECHO with all args, space-separated.
5059 func_echo_all ()
5060 {
5061 $ECHO ""
5062 }
5063
5064 case "$ECHO" in
5065 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5066 $as_echo "printf" >&6; } ;;
5067 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5068 $as_echo "print -r" >&6; } ;;
5069 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5070 $as_echo "cat" >&6; } ;;
5071 esac
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088 # Check whether --with-gnu-ld was given.
5089 if test "${with_gnu_ld+set}" = set; then :
5090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5091 else
5092 with_gnu_ld=no
5093 fi
5094
5095 ac_prog=ld
5096 if test "$GCC" = yes; then
5097 # Check if gcc -print-prog-name=ld gives a path.
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5099 $as_echo_n "checking for ld used by $CC... " >&6; }
5100 case $host in
5101 *-*-mingw*)
5102 # gcc leaves a trailing carriage return which upsets mingw
5103 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5104 *)
5105 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5106 esac
5107 case $ac_prog in
5108 # Accept absolute paths.
5109 [\\/]* | ?:[\\/]*)
5110 re_direlt='/[^/][^/]*/\.\./'
5111 # Canonicalize the pathname of ld
5112 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5113 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5114 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5115 done
5116 test -z "$LD" && LD="$ac_prog"
5117 ;;
5118 "")
5119 # If it fails, then pretend we aren't using GCC.
5120 ac_prog=ld
5121 ;;
5122 *)
5123 # If it is relative, then search for the first ld in PATH.
5124 with_gnu_ld=unknown
5125 ;;
5126 esac
5127 elif test "$with_gnu_ld" = yes; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5129 $as_echo_n "checking for GNU ld... " >&6; }
5130 else
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5132 $as_echo_n "checking for non-GNU ld... " >&6; }
5133 fi
5134 if ${lt_cv_path_LD+:} false; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 if test -z "$LD"; then
5138 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5139 for ac_dir in $PATH; do
5140 IFS="$lt_save_ifs"
5141 test -z "$ac_dir" && ac_dir=.
5142 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5143 lt_cv_path_LD="$ac_dir/$ac_prog"
5144 # Check to see if the program is GNU ld. I'd rather use --version,
5145 # but apparently some variants of GNU ld only accept -v.
5146 # Break only if it was the GNU/non-GNU ld that we prefer.
5147 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5148 *GNU* | *'with BFD'*)
5149 test "$with_gnu_ld" != no && break
5150 ;;
5151 *)
5152 test "$with_gnu_ld" != yes && break
5153 ;;
5154 esac
5155 fi
5156 done
5157 IFS="$lt_save_ifs"
5158 else
5159 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5160 fi
5161 fi
5162
5163 LD="$lt_cv_path_LD"
5164 if test -n "$LD"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5166 $as_echo "$LD" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5170 fi
5171 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5173 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5174 if ${lt_cv_prog_gnu_ld+:} false; then :
5175 $as_echo_n "(cached) " >&6
5176 else
5177 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5178 case `$LD -v 2>&1 </dev/null` in
5179 *GNU* | *'with BFD'*)
5180 lt_cv_prog_gnu_ld=yes
5181 ;;
5182 *)
5183 lt_cv_prog_gnu_ld=no
5184 ;;
5185 esac
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5188 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5189 with_gnu_ld=$lt_cv_prog_gnu_ld
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199 if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_RANLIB+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$RANLIB"; then
5208 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5212 do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5220 fi
5221 done
5222 done
5223 IFS=$as_save_IFS
5224
5225 fi
5226 fi
5227 RANLIB=$ac_cv_prog_RANLIB
5228 if test -n "$RANLIB"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5230 $as_echo "$RANLIB" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5234 fi
5235
5236
5237 fi
5238 if test -z "$ac_cv_prog_RANLIB"; then
5239 ac_ct_RANLIB=$RANLIB
5240 # Extract the first word of "ranlib", so it can be a program name with args.
5241 set dummy ranlib; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$ac_ct_RANLIB"; then
5248 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253 IFS=$as_save_IFS
5254 test -z "$as_dir" && as_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5257 ac_cv_prog_ac_ct_RANLIB="ranlib"
5258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 break 2
5260 fi
5261 done
5262 done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5268 if test -n "$ac_ct_RANLIB"; then
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5270 $as_echo "$ac_ct_RANLIB" >&6; }
5271 else
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276 if test "x$ac_ct_RANLIB" = x; then
5277 RANLIB=":"
5278 else
5279 case $cross_compiling:$ac_tool_warned in
5280 yes:)
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5283 ac_tool_warned=yes ;;
5284 esac
5285 RANLIB=$ac_ct_RANLIB
5286 fi
5287 else
5288 RANLIB="$ac_cv_prog_RANLIB"
5289 fi
5290
5291 if test -n "$ac_tool_prefix"; then
5292 # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5293 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_OBJCOPY+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298 else
5299 if test -n "$OBJCOPY"; then
5300 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305 IFS=$as_save_IFS
5306 test -z "$as_dir" && as_dir=.
5307 for ac_exec_ext in '' $ac_executable_extensions; do
5308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309 ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311 break 2
5312 fi
5313 done
5314 done
5315 IFS=$as_save_IFS
5316
5317 fi
5318 fi
5319 OBJCOPY=$ac_cv_prog_OBJCOPY
5320 if test -n "$OBJCOPY"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5322 $as_echo "$OBJCOPY" >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328
5329 fi
5330 if test -z "$ac_cv_prog_OBJCOPY"; then
5331 ac_ct_OBJCOPY=$OBJCOPY
5332 # Extract the first word of "objcopy", so it can be a program name with args.
5333 set dummy objcopy; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 if test -n "$ac_ct_OBJCOPY"; then
5340 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5341 else
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349 ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5352 fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357 fi
5358 fi
5359 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5360 if test -n "$ac_ct_OBJCOPY"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5362 $as_echo "$ac_ct_OBJCOPY" >&6; }
5363 else
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5366 fi
5367
5368 if test "x$ac_ct_OBJCOPY" = x; then
5369 OBJCOPY="missing-objcopy"
5370 else
5371 case $cross_compiling:$ac_tool_warned in
5372 yes:)
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375 ac_tool_warned=yes ;;
5376 esac
5377 OBJCOPY=$ac_ct_OBJCOPY
5378 fi
5379 else
5380 OBJCOPY="$ac_cv_prog_OBJCOPY"
5381 fi
5382
5383
5384 enable_dlopen=yes
5385
5386
5387
5388 case `pwd` in
5389 *\ * | *\ *)
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5391 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5392 esac
5393
5394
5395
5396 macro_version='2.2.7a'
5397 macro_revision='1.3134'
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411 ltmain="$ac_aux_dir/ltmain.sh"
5412
5413 # Backslashify metacharacters that are still active within
5414 # double-quoted strings.
5415 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5416
5417 # Same as above, but do not quote variable references.
5418 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5419
5420 # Sed substitution to delay expansion of an escaped shell variable in a
5421 # double_quote_subst'ed string.
5422 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5423
5424 # Sed substitution to delay expansion of an escaped single quote.
5425 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5426
5427 # Sed substitution to avoid accidental globbing in evaled expressions
5428 no_glob_subst='s/\*/\\\*/g'
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5431 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5432 if ${lt_cv_path_NM+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 if test -n "$NM"; then
5436 # Let the user override the test.
5437 lt_cv_path_NM="$NM"
5438 else
5439 lt_nm_to_check="${ac_tool_prefix}nm"
5440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5441 lt_nm_to_check="$lt_nm_to_check nm"
5442 fi
5443 for lt_tmp_nm in $lt_nm_to_check; do
5444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5446 IFS="$lt_save_ifs"
5447 test -z "$ac_dir" && ac_dir=.
5448 tmp_nm="$ac_dir/$lt_tmp_nm"
5449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5450 # Check to see if the nm accepts a BSD-compat flag.
5451 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5452 # nm: unknown option "B" ignored
5453 # Tru64's nm complains that /dev/null is an invalid object file
5454 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5455 */dev/null* | *'Invalid file or object type'*)
5456 lt_cv_path_NM="$tmp_nm -B"
5457 break
5458 ;;
5459 *)
5460 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5461 */dev/null*)
5462 lt_cv_path_NM="$tmp_nm -p"
5463 break
5464 ;;
5465 *)
5466 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5467 continue # so that we can try to find one that supports BSD flags
5468 ;;
5469 esac
5470 ;;
5471 esac
5472 fi
5473 done
5474 IFS="$lt_save_ifs"
5475 done
5476 : ${lt_cv_path_NM=no}
5477 fi
5478 fi
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5480 $as_echo "$lt_cv_path_NM" >&6; }
5481 if test "$lt_cv_path_NM" != "no"; then
5482 NM="$lt_cv_path_NM"
5483 else
5484 # Didn't find any BSD compatible name lister, look for dumpbin.
5485 if test -n "$DUMPBIN"; then :
5486 # Let the user override the test.
5487 else
5488 if test -n "$ac_tool_prefix"; then
5489 for ac_prog in dumpbin "link -dump"
5490 do
5491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5494 $as_echo_n "checking for $ac_word... " >&6; }
5495 if ${ac_cv_prog_DUMPBIN+:} false; then :
5496 $as_echo_n "(cached) " >&6
5497 else
5498 if test -n "$DUMPBIN"; then
5499 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5500 else
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in $PATH
5503 do
5504 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5508 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2
5511 fi
5512 done
5513 done
5514 IFS=$as_save_IFS
5515
5516 fi
5517 fi
5518 DUMPBIN=$ac_cv_prog_DUMPBIN
5519 if test -n "$DUMPBIN"; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5521 $as_echo "$DUMPBIN" >&6; }
5522 else
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5524 $as_echo "no" >&6; }
5525 fi
5526
5527
5528 test -n "$DUMPBIN" && break
5529 done
5530 fi
5531 if test -z "$DUMPBIN"; then
5532 ac_ct_DUMPBIN=$DUMPBIN
5533 for ac_prog in dumpbin "link -dump"
5534 do
5535 # Extract the first word of "$ac_prog", so it can be a program name with args.
5536 set dummy $ac_prog; ac_word=$2
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538 $as_echo_n "checking for $ac_word... " >&6; }
5539 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -n "$ac_ct_DUMPBIN"; then
5543 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5544 else
5545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546 for as_dir in $PATH
5547 do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
5550 for ac_exec_ext in '' $ac_executable_extensions; do
5551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5552 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 break 2
5555 fi
5556 done
5557 done
5558 IFS=$as_save_IFS
5559
5560 fi
5561 fi
5562 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5563 if test -n "$ac_ct_DUMPBIN"; then
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5565 $as_echo "$ac_ct_DUMPBIN" >&6; }
5566 else
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5568 $as_echo "no" >&6; }
5569 fi
5570
5571
5572 test -n "$ac_ct_DUMPBIN" && break
5573 done
5574
5575 if test "x$ac_ct_DUMPBIN" = x; then
5576 DUMPBIN=":"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584 DUMPBIN=$ac_ct_DUMPBIN
5585 fi
5586 fi
5587
5588 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5589 *COFF*)
5590 DUMPBIN="$DUMPBIN -symbols"
5591 ;;
5592 *)
5593 DUMPBIN=:
5594 ;;
5595 esac
5596 fi
5597
5598 if test "$DUMPBIN" != ":"; then
5599 NM="$DUMPBIN"
5600 fi
5601 fi
5602 test -z "$NM" && NM=nm
5603
5604
5605
5606
5607
5608
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5610 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5611 if ${lt_cv_nm_interface+:} false; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 lt_cv_nm_interface="BSD nm"
5615 echo "int some_variable = 0;" > conftest.$ac_ext
5616 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5617 (eval "$ac_compile" 2>conftest.err)
5618 cat conftest.err >&5
5619 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5620 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5621 cat conftest.err >&5
5622 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5623 cat conftest.out >&5
5624 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5625 lt_cv_nm_interface="MS dumpbin"
5626 fi
5627 rm -f conftest*
5628 fi
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5630 $as_echo "$lt_cv_nm_interface" >&6; }
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5633 $as_echo_n "checking whether ln -s works... " >&6; }
5634 LN_S=$as_ln_s
5635 if test "$LN_S" = "ln -s"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5637 $as_echo "yes" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5640 $as_echo "no, using $LN_S" >&6; }
5641 fi
5642
5643 # find the maximum length of command line arguments
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5645 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5646 if ${lt_cv_sys_max_cmd_len+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 i=0
5650 teststring="ABCD"
5651
5652 case $build_os in
5653 msdosdjgpp*)
5654 # On DJGPP, this test can blow up pretty badly due to problems in libc
5655 # (any single argument exceeding 2000 bytes causes a buffer overrun
5656 # during glob expansion). Even if it were fixed, the result of this
5657 # check would be larger than it should be.
5658 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5659 ;;
5660
5661 gnu*)
5662 # Under GNU Hurd, this test is not required because there is
5663 # no limit to the length of command line arguments.
5664 # Libtool will interpret -1 as no limit whatsoever
5665 lt_cv_sys_max_cmd_len=-1;
5666 ;;
5667
5668 cygwin* | mingw* | cegcc*)
5669 # On Win9x/ME, this test blows up -- it succeeds, but takes
5670 # about 5 minutes as the teststring grows exponentially.
5671 # Worse, since 9x/ME are not pre-emptively multitasking,
5672 # you end up with a "frozen" computer, even though with patience
5673 # the test eventually succeeds (with a max line length of 256k).
5674 # Instead, let's just punt: use the minimum linelength reported by
5675 # all of the supported platforms: 8192 (on NT/2K/XP).
5676 lt_cv_sys_max_cmd_len=8192;
5677 ;;
5678
5679 mint*)
5680 # On MiNT this can take a long time and run out of memory.
5681 lt_cv_sys_max_cmd_len=8192;
5682 ;;
5683
5684 amigaos*)
5685 # On AmigaOS with pdksh, this test takes hours, literally.
5686 # So we just punt and use a minimum line length of 8192.
5687 lt_cv_sys_max_cmd_len=8192;
5688 ;;
5689
5690 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5691 # This has been around since 386BSD, at least. Likely further.
5692 if test -x /sbin/sysctl; then
5693 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5694 elif test -x /usr/sbin/sysctl; then
5695 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5696 else
5697 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5698 fi
5699 # And add a safety zone
5700 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5701 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5702 ;;
5703
5704 interix*)
5705 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5706 lt_cv_sys_max_cmd_len=196608
5707 ;;
5708
5709 osf*)
5710 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5711 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5712 # nice to cause kernel panics so lets avoid the loop below.
5713 # First set a reasonable default.
5714 lt_cv_sys_max_cmd_len=16384
5715 #
5716 if test -x /sbin/sysconfig; then
5717 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5718 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5719 esac
5720 fi
5721 ;;
5722 sco3.2v5*)
5723 lt_cv_sys_max_cmd_len=102400
5724 ;;
5725 sysv5* | sco5v6* | sysv4.2uw2*)
5726 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5727 if test -n "$kargmax"; then
5728 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5729 else
5730 lt_cv_sys_max_cmd_len=32768
5731 fi
5732 ;;
5733 *)
5734 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5735 if test -n "$lt_cv_sys_max_cmd_len"; then
5736 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5737 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5738 else
5739 # Make teststring a little bigger before we do anything with it.
5740 # a 1K string should be a reasonable start.
5741 for i in 1 2 3 4 5 6 7 8 ; do
5742 teststring=$teststring$teststring
5743 done
5744 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5745 # If test is not a shell built-in, we'll probably end up computing a
5746 # maximum length that is only half of the actual maximum length, but
5747 # we can't tell.
5748 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5749 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5750 test $i != 17 # 1/2 MB should be enough
5751 do
5752 i=`expr $i + 1`
5753 teststring=$teststring$teststring
5754 done
5755 # Only check the string length outside the loop.
5756 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5757 teststring=
5758 # Add a significant safety factor because C++ compilers can tack on
5759 # massive amounts of additional arguments before passing them to the
5760 # linker. It appears as though 1/2 is a usable value.
5761 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5762 fi
5763 ;;
5764 esac
5765
5766 fi
5767
5768 if test -n $lt_cv_sys_max_cmd_len ; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5770 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5771 else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5773 $as_echo "none" >&6; }
5774 fi
5775 max_cmd_len=$lt_cv_sys_max_cmd_len
5776
5777
5778
5779
5780
5781
5782 : ${CP="cp -f"}
5783 : ${MV="mv -f"}
5784 : ${RM="rm -f"}
5785
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5787 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5788 # Try some XSI features
5789 xsi_shell=no
5790 ( _lt_dummy="a/b/c"
5791 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5792 = c,a/b,, \
5793 && eval 'test $(( 1 + 1 )) -eq 2 \
5794 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5795 && xsi_shell=yes
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5797 $as_echo "$xsi_shell" >&6; }
5798
5799
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5801 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5802 lt_shell_append=no
5803 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5804 >/dev/null 2>&1 \
5805 && lt_shell_append=yes
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5807 $as_echo "$lt_shell_append" >&6; }
5808
5809
5810 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5811 lt_unset=unset
5812 else
5813 lt_unset=false
5814 fi
5815
5816
5817
5818
5819
5820 # test EBCDIC or ASCII
5821 case `echo X|tr X '\101'` in
5822 A) # ASCII based system
5823 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5824 lt_SP2NL='tr \040 \012'
5825 lt_NL2SP='tr \015\012 \040\040'
5826 ;;
5827 *) # EBCDIC based system
5828 lt_SP2NL='tr \100 \n'
5829 lt_NL2SP='tr \r\n \100\100'
5830 ;;
5831 esac
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5842 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5843 if ${lt_cv_ld_reload_flag+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 lt_cv_ld_reload_flag='-r'
5847 fi
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5849 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5850 reload_flag=$lt_cv_ld_reload_flag
5851 case $reload_flag in
5852 "" | " "*) ;;
5853 *) reload_flag=" $reload_flag" ;;
5854 esac
5855 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5856 case $host_os in
5857 darwin*)
5858 if test "$GCC" = yes; then
5859 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5860 else
5861 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5862 fi
5863 ;;
5864 esac
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874 if test -n "$ac_tool_prefix"; then
5875 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5876 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878 $as_echo_n "checking for $ac_word... " >&6; }
5879 if ${ac_cv_prog_OBJDUMP+:} false; then :
5880 $as_echo_n "(cached) " >&6
5881 else
5882 if test -n "$OBJDUMP"; then
5883 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5884 else
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 for as_dir in $PATH
5887 do
5888 IFS=$as_save_IFS
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5892 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5894 break 2
5895 fi
5896 done
5897 done
5898 IFS=$as_save_IFS
5899
5900 fi
5901 fi
5902 OBJDUMP=$ac_cv_prog_OBJDUMP
5903 if test -n "$OBJDUMP"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5905 $as_echo "$OBJDUMP" >&6; }
5906 else
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 $as_echo "no" >&6; }
5909 fi
5910
5911
5912 fi
5913 if test -z "$ac_cv_prog_OBJDUMP"; then
5914 ac_ct_OBJDUMP=$OBJDUMP
5915 # Extract the first word of "objdump", so it can be a program name with args.
5916 set dummy objdump; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 if test -n "$ac_ct_OBJDUMP"; then
5923 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5924 else
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926 for as_dir in $PATH
5927 do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5932 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936 done
5937 done
5938 IFS=$as_save_IFS
5939
5940 fi
5941 fi
5942 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5943 if test -n "$ac_ct_OBJDUMP"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5945 $as_echo "$ac_ct_OBJDUMP" >&6; }
5946 else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5949 fi
5950
5951 if test "x$ac_ct_OBJDUMP" = x; then
5952 OBJDUMP="false"
5953 else
5954 case $cross_compiling:$ac_tool_warned in
5955 yes:)
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5958 ac_tool_warned=yes ;;
5959 esac
5960 OBJDUMP=$ac_ct_OBJDUMP
5961 fi
5962 else
5963 OBJDUMP="$ac_cv_prog_OBJDUMP"
5964 fi
5965
5966 test -z "$OBJDUMP" && OBJDUMP=objdump
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5977 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5978 if ${lt_cv_deplibs_check_method+:} false; then :
5979 $as_echo_n "(cached) " >&6
5980 else
5981 lt_cv_file_magic_cmd='$MAGIC_CMD'
5982 lt_cv_file_magic_test_file=
5983 lt_cv_deplibs_check_method='unknown'
5984 # Need to set the preceding variable on all platforms that support
5985 # interlibrary dependencies.
5986 # 'none' -- dependencies not supported.
5987 # `unknown' -- same as none, but documents that we really don't know.
5988 # 'pass_all' -- all dependencies passed with no checks.
5989 # 'test_compile' -- check by making test program.
5990 # 'file_magic [[regex]]' -- check by looking for files in library path
5991 # which responds to the $file_magic_cmd with a given extended regex.
5992 # If you have `file' or equivalent on your system and you're not sure
5993 # whether `pass_all' will *always* work, you probably want this one.
5994
5995 case $host_os in
5996 aix[4-9]*)
5997 lt_cv_deplibs_check_method=pass_all
5998 ;;
5999
6000 beos*)
6001 lt_cv_deplibs_check_method=pass_all
6002 ;;
6003
6004 bsdi[45]*)
6005 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6006 lt_cv_file_magic_cmd='/usr/bin/file -L'
6007 lt_cv_file_magic_test_file=/shlib/libc.so
6008 ;;
6009
6010 cygwin*)
6011 # func_win32_libid is a shell function defined in ltmain.sh
6012 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6013 lt_cv_file_magic_cmd='func_win32_libid'
6014 ;;
6015
6016 mingw* | pw32*)
6017 # Base MSYS/MinGW do not provide the 'file' command needed by
6018 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6019 # unless we find 'file', for example because we are cross-compiling.
6020 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6021 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6022 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6023 lt_cv_file_magic_cmd='func_win32_libid'
6024 else
6025 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6026 lt_cv_file_magic_cmd='$OBJDUMP -f'
6027 fi
6028 ;;
6029
6030 cegcc*)
6031 # use the weaker test based on 'objdump'. See mingw*.
6032 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6033 lt_cv_file_magic_cmd='$OBJDUMP -f'
6034 ;;
6035
6036 darwin* | rhapsody*)
6037 lt_cv_deplibs_check_method=pass_all
6038 ;;
6039
6040 freebsd* | dragonfly*)
6041 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6042 case $host_cpu in
6043 i*86 )
6044 # Not sure whether the presence of OpenBSD here was a mistake.
6045 # Let's accept both of them until this is cleared up.
6046 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6047 lt_cv_file_magic_cmd=/usr/bin/file
6048 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6049 ;;
6050 esac
6051 else
6052 lt_cv_deplibs_check_method=pass_all
6053 fi
6054 ;;
6055
6056 gnu*)
6057 lt_cv_deplibs_check_method=pass_all
6058 ;;
6059
6060 haiku*)
6061 lt_cv_deplibs_check_method=pass_all
6062 ;;
6063
6064 hpux10.20* | hpux11*)
6065 lt_cv_file_magic_cmd=/usr/bin/file
6066 case $host_cpu in
6067 ia64*)
6068 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6069 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6070 ;;
6071 hppa*64*)
6072 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]'
6073 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6074 ;;
6075 *)
6076 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6077 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6078 ;;
6079 esac
6080 ;;
6081
6082 interix[3-9]*)
6083 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6085 ;;
6086
6087 irix5* | irix6* | nonstopux*)
6088 case $LD in
6089 *-32|*"-32 ") libmagic=32-bit;;
6090 *-n32|*"-n32 ") libmagic=N32;;
6091 *-64|*"-64 ") libmagic=64-bit;;
6092 *) libmagic=never-match;;
6093 esac
6094 lt_cv_deplibs_check_method=pass_all
6095 ;;
6096
6097 # This must be Linux ELF.
6098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6099 lt_cv_deplibs_check_method=pass_all
6100 ;;
6101
6102 netbsd*)
6103 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6104 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6105 else
6106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6107 fi
6108 ;;
6109
6110 newos6*)
6111 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6112 lt_cv_file_magic_cmd=/usr/bin/file
6113 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6114 ;;
6115
6116 *nto* | *qnx*)
6117 lt_cv_deplibs_check_method=pass_all
6118 ;;
6119
6120 openbsd*)
6121 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6122 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6123 else
6124 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6125 fi
6126 ;;
6127
6128 osf3* | osf4* | osf5*)
6129 lt_cv_deplibs_check_method=pass_all
6130 ;;
6131
6132 rdos*)
6133 lt_cv_deplibs_check_method=pass_all
6134 ;;
6135
6136 solaris*)
6137 lt_cv_deplibs_check_method=pass_all
6138 ;;
6139
6140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143
6144 sysv4 | sysv4.3*)
6145 case $host_vendor in
6146 motorola)
6147 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]'
6148 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6149 ;;
6150 ncr)
6151 lt_cv_deplibs_check_method=pass_all
6152 ;;
6153 sequent)
6154 lt_cv_file_magic_cmd='/bin/file'
6155 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6156 ;;
6157 sni)
6158 lt_cv_file_magic_cmd='/bin/file'
6159 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6160 lt_cv_file_magic_test_file=/lib/libc.so
6161 ;;
6162 siemens)
6163 lt_cv_deplibs_check_method=pass_all
6164 ;;
6165 pc)
6166 lt_cv_deplibs_check_method=pass_all
6167 ;;
6168 esac
6169 ;;
6170
6171 tpf*)
6172 lt_cv_deplibs_check_method=pass_all
6173 ;;
6174 esac
6175
6176 fi
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6178 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6179 file_magic_cmd=$lt_cv_file_magic_cmd
6180 deplibs_check_method=$lt_cv_deplibs_check_method
6181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194 if test -n "$ac_tool_prefix"; then
6195 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6196 set dummy ${ac_tool_prefix}ar; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_AR+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$AR"; then
6203 ac_cv_prog_AR="$AR" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_AR="${ac_tool_prefix}ar"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 AR=$ac_cv_prog_AR
6223 if test -n "$AR"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6225 $as_echo "$AR" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231
6232 fi
6233 if test -z "$ac_cv_prog_AR"; then
6234 ac_ct_AR=$AR
6235 # Extract the first word of "ar", so it can be a program name with args.
6236 set dummy ar; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6240 $as_echo_n "(cached) " >&6
6241 else
6242 if test -n "$ac_ct_AR"; then
6243 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6244 else
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6246 for as_dir in $PATH
6247 do
6248 IFS=$as_save_IFS
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6252 ac_cv_prog_ac_ct_AR="ar"
6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6254 break 2
6255 fi
6256 done
6257 done
6258 IFS=$as_save_IFS
6259
6260 fi
6261 fi
6262 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6263 if test -n "$ac_ct_AR"; then
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6265 $as_echo "$ac_ct_AR" >&6; }
6266 else
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6268 $as_echo "no" >&6; }
6269 fi
6270
6271 if test "x$ac_ct_AR" = x; then
6272 AR="false"
6273 else
6274 case $cross_compiling:$ac_tool_warned in
6275 yes:)
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6278 ac_tool_warned=yes ;;
6279 esac
6280 AR=$ac_ct_AR
6281 fi
6282 else
6283 AR="$ac_cv_prog_AR"
6284 fi
6285
6286 test -z "$AR" && AR=ar
6287 test -z "$AR_FLAGS" && AR_FLAGS=cru
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}strip; ac_word=$2
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 $as_echo_n "checking for $ac_word... " >&6; }
6304 if ${ac_cv_prog_STRIP+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 if test -n "$STRIP"; then
6308 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6309 else
6310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311 for as_dir in $PATH
6312 do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321 done
6322 done
6323 IFS=$as_save_IFS
6324
6325 fi
6326 fi
6327 STRIP=$ac_cv_prog_STRIP
6328 if test -n "$STRIP"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6330 $as_echo "$STRIP" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333 $as_echo "no" >&6; }
6334 fi
6335
6336
6337 fi
6338 if test -z "$ac_cv_prog_STRIP"; then
6339 ac_ct_STRIP=$STRIP
6340 # Extract the first word of "strip", so it can be a program name with args.
6341 set dummy strip; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6345 $as_echo_n "(cached) " >&6
6346 else
6347 if test -n "$ac_ct_STRIP"; then
6348 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357 ac_cv_prog_ac_ct_STRIP="strip"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6368 if test -n "$ac_ct_STRIP"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6370 $as_echo "$ac_ct_STRIP" >&6; }
6371 else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376 if test "x$ac_ct_STRIP" = x; then
6377 STRIP=":"
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380 yes:)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383 ac_tool_warned=yes ;;
6384 esac
6385 STRIP=$ac_ct_STRIP
6386 fi
6387 else
6388 STRIP="$ac_cv_prog_STRIP"
6389 fi
6390
6391 test -z "$STRIP" && STRIP=:
6392
6393
6394
6395
6396
6397
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if ${ac_cv_prog_RANLIB+:} false; then :
6404 $as_echo_n "(cached) " >&6
6405 else
6406 if test -n "$RANLIB"; then
6407 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412 IFS=$as_save_IFS
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6416 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418 break 2
6419 fi
6420 done
6421 done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 RANLIB=$ac_cv_prog_RANLIB
6427 if test -n "$RANLIB"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6429 $as_echo "$RANLIB" >&6; }
6430 else
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435
6436 fi
6437 if test -z "$ac_cv_prog_RANLIB"; then
6438 ac_ct_RANLIB=$RANLIB
6439 # Extract the first word of "ranlib", so it can be a program name with args.
6440 set dummy ranlib; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 if test -n "$ac_ct_RANLIB"; then
6447 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452 IFS=$as_save_IFS
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456 ac_cv_prog_ac_ct_RANLIB="ranlib"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458 break 2
6459 fi
6460 done
6461 done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6467 if test -n "$ac_ct_RANLIB"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6469 $as_echo "$ac_ct_RANLIB" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475 if test "x$ac_ct_RANLIB" = x; then
6476 RANLIB=":"
6477 else
6478 case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484 RANLIB=$ac_ct_RANLIB
6485 fi
6486 else
6487 RANLIB="$ac_cv_prog_RANLIB"
6488 fi
6489
6490 test -z "$RANLIB" && RANLIB=:
6491
6492
6493
6494
6495
6496
6497 # Determine commands to create old-style static archives.
6498 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6499 old_postinstall_cmds='chmod 644 $oldlib'
6500 old_postuninstall_cmds=
6501
6502 if test -n "$RANLIB"; then
6503 case $host_os in
6504 openbsd*)
6505 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6506 ;;
6507 *)
6508 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6509 ;;
6510 esac
6511 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6512 fi
6513
6514 case $host_os in
6515 darwin*)
6516 lock_old_archive_extraction=yes ;;
6517 *)
6518 lock_old_archive_extraction=no ;;
6519 esac
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559 # If no C compiler was specified, use CC.
6560 LTCC=${LTCC-"$CC"}
6561
6562 # If no C compiler flags were specified, use CFLAGS.
6563 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6564
6565 # Allow CC to be a program name with arguments.
6566 compiler=$CC
6567
6568
6569 # Check for command to grab the raw symbol name followed by C symbol from nm.
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6571 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6572 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575
6576 # These are sane defaults that work on at least a few old systems.
6577 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6578
6579 # Character class describing NM global symbol codes.
6580 symcode='[BCDEGRST]'
6581
6582 # Regexp to match symbols that can be accessed directly from C.
6583 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6584
6585 # Define system-specific variables.
6586 case $host_os in
6587 aix*)
6588 symcode='[BCDT]'
6589 ;;
6590 cygwin* | mingw* | pw32* | cegcc*)
6591 symcode='[ABCDGISTW]'
6592 ;;
6593 hpux*)
6594 if test "$host_cpu" = ia64; then
6595 symcode='[ABCDEGRST]'
6596 fi
6597 ;;
6598 irix* | nonstopux*)
6599 symcode='[BCDEGRST]'
6600 ;;
6601 osf*)
6602 symcode='[BCDEGQRST]'
6603 ;;
6604 solaris*)
6605 symcode='[BDRT]'
6606 ;;
6607 sco3.2v5*)
6608 symcode='[DT]'
6609 ;;
6610 sysv4.2uw2*)
6611 symcode='[DT]'
6612 ;;
6613 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6614 symcode='[ABDT]'
6615 ;;
6616 sysv4)
6617 symcode='[DFNSTU]'
6618 ;;
6619 esac
6620
6621 # If we're using GNU nm, then use its standard symbol codes.
6622 case `$NM -V 2>&1` in
6623 *GNU* | *'with BFD'*)
6624 symcode='[ABCDGIRSTW]' ;;
6625 esac
6626
6627 # Transform an extracted symbol line into a proper C declaration.
6628 # Some systems (esp. on ia64) link data and code symbols differently,
6629 # so use this general approach.
6630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6631
6632 # Transform an extracted symbol line into symbol name and symbol address
6633 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6634 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'"
6635
6636 # Handle CRLF in mingw tool chain
6637 opt_cr=
6638 case $build_os in
6639 mingw*)
6640 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6641 ;;
6642 esac
6643
6644 # Try without a prefix underscore, then with it.
6645 for ac_symprfx in "" "_"; do
6646
6647 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6648 symxfrm="\\1 $ac_symprfx\\2 \\2"
6649
6650 # Write the raw and C identifiers.
6651 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6652 # Fake it for dumpbin and say T for any non-static function
6653 # and D for any global variable.
6654 # Also find C++ and __fastcall symbols from MSVC++,
6655 # which start with @ or ?.
6656 lt_cv_sys_global_symbol_pipe="$AWK '"\
6657 " {last_section=section; section=\$ 3};"\
6658 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6659 " \$ 0!~/External *\|/{next};"\
6660 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6661 " {if(hide[section]) next};"\
6662 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6663 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6664 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6665 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6666 " ' prfx=^$ac_symprfx"
6667 else
6668 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6669 fi
6670
6671 # Check to see that the pipe works correctly.
6672 pipe_works=no
6673
6674 rm -f conftest*
6675 cat > conftest.$ac_ext <<_LT_EOF
6676 #ifdef __cplusplus
6677 extern "C" {
6678 #endif
6679 char nm_test_var;
6680 void nm_test_func(void);
6681 void nm_test_func(void){}
6682 #ifdef __cplusplus
6683 }
6684 #endif
6685 int main(){nm_test_var='a';nm_test_func();return(0);}
6686 _LT_EOF
6687
6688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6689 (eval $ac_compile) 2>&5
6690 ac_status=$?
6691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6692 test $ac_status = 0; }; then
6693 # Now try to grab the symbols.
6694 nlist=conftest.nm
6695 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6696 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6697 ac_status=$?
6698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6699 test $ac_status = 0; } && test -s "$nlist"; then
6700 # Try sorting and uniquifying the output.
6701 if sort "$nlist" | uniq > "$nlist"T; then
6702 mv -f "$nlist"T "$nlist"
6703 else
6704 rm -f "$nlist"T
6705 fi
6706
6707 # Make sure that we snagged all the symbols we need.
6708 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6709 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6710 cat <<_LT_EOF > conftest.$ac_ext
6711 #ifdef __cplusplus
6712 extern "C" {
6713 #endif
6714
6715 _LT_EOF
6716 # Now generate the symbol file.
6717 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6718
6719 cat <<_LT_EOF >> conftest.$ac_ext
6720
6721 /* The mapping between symbol names and symbols. */
6722 const struct {
6723 const char *name;
6724 void *address;
6725 }
6726 lt__PROGRAM__LTX_preloaded_symbols[] =
6727 {
6728 { "@PROGRAM@", (void *) 0 },
6729 _LT_EOF
6730 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6731 cat <<\_LT_EOF >> conftest.$ac_ext
6732 {0, (void *) 0}
6733 };
6734
6735 /* This works around a problem in FreeBSD linker */
6736 #ifdef FREEBSD_WORKAROUND
6737 static const void *lt_preloaded_setup() {
6738 return lt__PROGRAM__LTX_preloaded_symbols;
6739 }
6740 #endif
6741
6742 #ifdef __cplusplus
6743 }
6744 #endif
6745 _LT_EOF
6746 # Now try linking the two files.
6747 mv conftest.$ac_objext conftstm.$ac_objext
6748 lt_save_LIBS="$LIBS"
6749 lt_save_CFLAGS="$CFLAGS"
6750 LIBS="conftstm.$ac_objext"
6751 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6752 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6753 (eval $ac_link) 2>&5
6754 ac_status=$?
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6757 pipe_works=yes
6758 fi
6759 LIBS="$lt_save_LIBS"
6760 CFLAGS="$lt_save_CFLAGS"
6761 else
6762 echo "cannot find nm_test_func in $nlist" >&5
6763 fi
6764 else
6765 echo "cannot find nm_test_var in $nlist" >&5
6766 fi
6767 else
6768 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6769 fi
6770 else
6771 echo "$progname: failed program was:" >&5
6772 cat conftest.$ac_ext >&5
6773 fi
6774 rm -rf conftest* conftst*
6775
6776 # Do not use the global_symbol_pipe unless it works.
6777 if test "$pipe_works" = yes; then
6778 break
6779 else
6780 lt_cv_sys_global_symbol_pipe=
6781 fi
6782 done
6783
6784 fi
6785
6786 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6787 lt_cv_sys_global_symbol_to_cdecl=
6788 fi
6789 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6791 $as_echo "failed" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6794 $as_echo "ok" >&6; }
6795 fi
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819 # Check whether --enable-libtool-lock was given.
6820 if test "${enable_libtool_lock+set}" = set; then :
6821 enableval=$enable_libtool_lock;
6822 fi
6823
6824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6825
6826 # Some flags need to be propagated to the compiler or linker for good
6827 # libtool support.
6828 case $host in
6829 ia64-*-hpux*)
6830 # Find out which ABI we are using.
6831 echo 'int i;' > conftest.$ac_ext
6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6833 (eval $ac_compile) 2>&5
6834 ac_status=$?
6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836 test $ac_status = 0; }; then
6837 case `/usr/bin/file conftest.$ac_objext` in
6838 *ELF-32*)
6839 HPUX_IA64_MODE="32"
6840 ;;
6841 *ELF-64*)
6842 HPUX_IA64_MODE="64"
6843 ;;
6844 esac
6845 fi
6846 rm -rf conftest*
6847 ;;
6848 *-*-irix6*)
6849 # Find out which ABI we are using.
6850 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852 (eval $ac_compile) 2>&5
6853 ac_status=$?
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855 test $ac_status = 0; }; then
6856 if test "$lt_cv_prog_gnu_ld" = yes; then
6857 case `/usr/bin/file conftest.$ac_objext` in
6858 *32-bit*)
6859 LD="${LD-ld} -melf32bsmip"
6860 ;;
6861 *N32*)
6862 LD="${LD-ld} -melf32bmipn32"
6863 ;;
6864 *64-bit*)
6865 LD="${LD-ld} -melf64bmip"
6866 ;;
6867 esac
6868 else
6869 case `/usr/bin/file conftest.$ac_objext` in
6870 *32-bit*)
6871 LD="${LD-ld} -32"
6872 ;;
6873 *N32*)
6874 LD="${LD-ld} -n32"
6875 ;;
6876 *64-bit*)
6877 LD="${LD-ld} -64"
6878 ;;
6879 esac
6880 fi
6881 fi
6882 rm -rf conftest*
6883 ;;
6884
6885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6887 # Find out which ABI we are using.
6888 echo 'int i;' > conftest.$ac_ext
6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6890 (eval $ac_compile) 2>&5
6891 ac_status=$?
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893 test $ac_status = 0; }; then
6894 case `/usr/bin/file conftest.o` in
6895 *32-bit*)
6896 case $host in
6897 x86_64-*kfreebsd*-gnu)
6898 LD="${LD-ld} -m elf_i386_fbsd"
6899 ;;
6900 x86_64-*linux*)
6901 case `/usr/bin/file conftest.o` in
6902 *x86-64*)
6903 LD="${LD-ld} -m elf32_x86_64"
6904 ;;
6905 *)
6906 LD="${LD-ld} -m elf_i386"
6907 ;;
6908 esac
6909 ;;
6910 powerpc64le-*linux*)
6911 LD="${LD-ld} -m elf32lppclinux"
6912 ;;
6913 powerpc64-*linux*)
6914 LD="${LD-ld} -m elf32ppclinux"
6915 ;;
6916 s390x-*linux*)
6917 LD="${LD-ld} -m elf_s390"
6918 ;;
6919 sparc64-*linux*)
6920 LD="${LD-ld} -m elf32_sparc"
6921 ;;
6922 esac
6923 ;;
6924 *64-bit*)
6925 case $host in
6926 x86_64-*kfreebsd*-gnu)
6927 LD="${LD-ld} -m elf_x86_64_fbsd"
6928 ;;
6929 x86_64-*linux*)
6930 LD="${LD-ld} -m elf_x86_64"
6931 ;;
6932 powerpcle-*linux*)
6933 LD="${LD-ld} -m elf64lppc"
6934 ;;
6935 powerpc-*linux*)
6936 LD="${LD-ld} -m elf64ppc"
6937 ;;
6938 s390*-*linux*|s390*-*tpf*)
6939 LD="${LD-ld} -m elf64_s390"
6940 ;;
6941 sparc*-*linux*)
6942 LD="${LD-ld} -m elf64_sparc"
6943 ;;
6944 esac
6945 ;;
6946 esac
6947 fi
6948 rm -rf conftest*
6949 ;;
6950
6951 *-*-sco3.2v5*)
6952 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6953 SAVE_CFLAGS="$CFLAGS"
6954 CFLAGS="$CFLAGS -belf"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6956 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6957 if ${lt_cv_cc_needs_belf+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 ac_ext=c
6961 ac_cpp='$CPP $CPPFLAGS'
6962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6968
6969 int
6970 main ()
6971 {
6972
6973 ;
6974 return 0;
6975 }
6976 _ACEOF
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 lt_cv_cc_needs_belf=yes
6979 else
6980 lt_cv_cc_needs_belf=no
6981 fi
6982 rm -f core conftest.err conftest.$ac_objext \
6983 conftest$ac_exeext conftest.$ac_ext
6984 ac_ext=c
6985 ac_cpp='$CPP $CPPFLAGS'
6986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6989
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6992 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6993 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6994 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6995 CFLAGS="$SAVE_CFLAGS"
6996 fi
6997 ;;
6998 sparc*-*solaris*)
6999 # Find out which ABI we are using.
7000 echo 'int i;' > conftest.$ac_ext
7001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7002 (eval $ac_compile) 2>&5
7003 ac_status=$?
7004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7005 test $ac_status = 0; }; then
7006 case `/usr/bin/file conftest.o` in
7007 *64-bit*)
7008 case $lt_cv_prog_gnu_ld in
7009 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7010 *)
7011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7012 LD="${LD-ld} -64"
7013 fi
7014 ;;
7015 esac
7016 ;;
7017 esac
7018 fi
7019 rm -rf conftest*
7020 ;;
7021 esac
7022
7023 need_locks="$enable_libtool_lock"
7024
7025
7026 case $host_os in
7027 rhapsody* | darwin*)
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$DSYMUTIL"; then
7037 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7049 fi
7050 done
7051 done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7057 if test -n "$DSYMUTIL"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7059 $as_echo "$DSYMUTIL" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065
7066 fi
7067 if test -z "$ac_cv_prog_DSYMUTIL"; then
7068 ac_ct_DSYMUTIL=$DSYMUTIL
7069 # Extract the first word of "dsymutil", so it can be a program name with args.
7070 set dummy dsymutil; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$ac_ct_DSYMUTIL"; then
7077 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7081 do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7086 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7089 fi
7090 done
7091 done
7092 IFS=$as_save_IFS
7093
7094 fi
7095 fi
7096 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7097 if test -n "$ac_ct_DSYMUTIL"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7099 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7103 fi
7104
7105 if test "x$ac_ct_DSYMUTIL" = x; then
7106 DSYMUTIL=":"
7107 else
7108 case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112 ac_tool_warned=yes ;;
7113 esac
7114 DSYMUTIL=$ac_ct_DSYMUTIL
7115 fi
7116 else
7117 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7118 fi
7119
7120 if test -n "$ac_tool_prefix"; then
7121 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_NMEDIT+:} false; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 if test -n "$NMEDIT"; then
7129 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7138 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146 fi
7147 fi
7148 NMEDIT=$ac_cv_prog_NMEDIT
7149 if test -n "$NMEDIT"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7151 $as_echo "$NMEDIT" >&6; }
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157
7158 fi
7159 if test -z "$ac_cv_prog_NMEDIT"; then
7160 ac_ct_NMEDIT=$NMEDIT
7161 # Extract the first word of "nmedit", so it can be a program name with args.
7162 set dummy nmedit; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 if test -n "$ac_ct_NMEDIT"; then
7169 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7178 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7189 if test -n "$ac_ct_NMEDIT"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7191 $as_echo "$ac_ct_NMEDIT" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197 if test "x$ac_ct_NMEDIT" = x; then
7198 NMEDIT=":"
7199 else
7200 case $cross_compiling:$ac_tool_warned in
7201 yes:)
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204 ac_tool_warned=yes ;;
7205 esac
7206 NMEDIT=$ac_ct_NMEDIT
7207 fi
7208 else
7209 NMEDIT="$ac_cv_prog_NMEDIT"
7210 fi
7211
7212 if test -n "$ac_tool_prefix"; then
7213 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_LIPO+:} false; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 if test -n "$LIPO"; then
7221 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226 IFS=$as_save_IFS
7227 test -z "$as_dir" && as_dir=.
7228 for ac_exec_ext in '' $ac_executable_extensions; do
7229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7230 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232 break 2
7233 fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 LIPO=$ac_cv_prog_LIPO
7241 if test -n "$LIPO"; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7243 $as_echo "$LIPO" >&6; }
7244 else
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249
7250 fi
7251 if test -z "$ac_cv_prog_LIPO"; then
7252 ac_ct_LIPO=$LIPO
7253 # Extract the first word of "lipo", so it can be a program name with args.
7254 set dummy lipo; ac_word=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7258 $as_echo_n "(cached) " >&6
7259 else
7260 if test -n "$ac_ct_LIPO"; then
7261 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7262 else
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264 for as_dir in $PATH
7265 do
7266 IFS=$as_save_IFS
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_ac_ct_LIPO="lipo"
7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7272 break 2
7273 fi
7274 done
7275 done
7276 IFS=$as_save_IFS
7277
7278 fi
7279 fi
7280 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7281 if test -n "$ac_ct_LIPO"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7283 $as_echo "$ac_ct_LIPO" >&6; }
7284 else
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7287 fi
7288
7289 if test "x$ac_ct_LIPO" = x; then
7290 LIPO=":"
7291 else
7292 case $cross_compiling:$ac_tool_warned in
7293 yes:)
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7296 ac_tool_warned=yes ;;
7297 esac
7298 LIPO=$ac_ct_LIPO
7299 fi
7300 else
7301 LIPO="$ac_cv_prog_LIPO"
7302 fi
7303
7304 if test -n "$ac_tool_prefix"; then
7305 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7306 set dummy ${ac_tool_prefix}otool; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_OTOOL+:} false; then :
7310 $as_echo_n "(cached) " >&6
7311 else
7312 if test -n "$OTOOL"; then
7313 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318 IFS=$as_save_IFS
7319 test -z "$as_dir" && as_dir=.
7320 for ac_exec_ext in '' $ac_executable_extensions; do
7321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324 break 2
7325 fi
7326 done
7327 done
7328 IFS=$as_save_IFS
7329
7330 fi
7331 fi
7332 OTOOL=$ac_cv_prog_OTOOL
7333 if test -n "$OTOOL"; then
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7335 $as_echo "$OTOOL" >&6; }
7336 else
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340
7341
7342 fi
7343 if test -z "$ac_cv_prog_OTOOL"; then
7344 ac_ct_OTOOL=$OTOOL
7345 # Extract the first word of "otool", so it can be a program name with args.
7346 set dummy otool; ac_word=$2
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7348 $as_echo_n "checking for $ac_word... " >&6; }
7349 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 if test -n "$ac_ct_OTOOL"; then
7353 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7354 else
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358 IFS=$as_save_IFS
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7362 ac_cv_prog_ac_ct_OTOOL="otool"
7363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 break 2
7365 fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370 fi
7371 fi
7372 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7373 if test -n "$ac_ct_OTOOL"; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7375 $as_echo "$ac_ct_OTOOL" >&6; }
7376 else
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7378 $as_echo "no" >&6; }
7379 fi
7380
7381 if test "x$ac_ct_OTOOL" = x; then
7382 OTOOL=":"
7383 else
7384 case $cross_compiling:$ac_tool_warned in
7385 yes:)
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7388 ac_tool_warned=yes ;;
7389 esac
7390 OTOOL=$ac_ct_OTOOL
7391 fi
7392 else
7393 OTOOL="$ac_cv_prog_OTOOL"
7394 fi
7395
7396 if test -n "$ac_tool_prefix"; then
7397 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7398 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_prog_OTOOL64+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 if test -n "$OTOOL64"; then
7405 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410 IFS=$as_save_IFS
7411 test -z "$as_dir" && as_dir=.
7412 for ac_exec_ext in '' $ac_executable_extensions; do
7413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7414 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 break 2
7417 fi
7418 done
7419 done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 OTOOL64=$ac_cv_prog_OTOOL64
7425 if test -n "$OTOOL64"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7427 $as_echo "$OTOOL64" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7431 fi
7432
7433
7434 fi
7435 if test -z "$ac_cv_prog_OTOOL64"; then
7436 ac_ct_OTOOL64=$OTOOL64
7437 # Extract the first word of "otool64", so it can be a program name with args.
7438 set dummy otool64; ac_word=$2
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7440 $as_echo_n "checking for $ac_word... " >&6; }
7441 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7442 $as_echo_n "(cached) " >&6
7443 else
7444 if test -n "$ac_ct_OTOOL64"; then
7445 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7446 else
7447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7448 for as_dir in $PATH
7449 do
7450 IFS=$as_save_IFS
7451 test -z "$as_dir" && as_dir=.
7452 for ac_exec_ext in '' $ac_executable_extensions; do
7453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7454 ac_cv_prog_ac_ct_OTOOL64="otool64"
7455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 break 2
7457 fi
7458 done
7459 done
7460 IFS=$as_save_IFS
7461
7462 fi
7463 fi
7464 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7465 if test -n "$ac_ct_OTOOL64"; then
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7467 $as_echo "$ac_ct_OTOOL64" >&6; }
7468 else
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7471 fi
7472
7473 if test "x$ac_ct_OTOOL64" = x; then
7474 OTOOL64=":"
7475 else
7476 case $cross_compiling:$ac_tool_warned in
7477 yes:)
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7480 ac_tool_warned=yes ;;
7481 esac
7482 OTOOL64=$ac_ct_OTOOL64
7483 fi
7484 else
7485 OTOOL64="$ac_cv_prog_OTOOL64"
7486 fi
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7515 $as_echo_n "checking for -single_module linker flag... " >&6; }
7516 if ${lt_cv_apple_cc_single_mod+:} false; then :
7517 $as_echo_n "(cached) " >&6
7518 else
7519 lt_cv_apple_cc_single_mod=no
7520 if test -z "${LT_MULTI_MODULE}"; then
7521 # By default we will add the -single_module flag. You can override
7522 # by either setting the environment variable LT_MULTI_MODULE
7523 # non-empty at configure time, or by adding -multi_module to the
7524 # link flags.
7525 rm -rf libconftest.dylib*
7526 echo "int foo(void){return 1;}" > conftest.c
7527 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7528 -dynamiclib -Wl,-single_module conftest.c" >&5
7529 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7530 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7531 _lt_result=$?
7532 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7533 lt_cv_apple_cc_single_mod=yes
7534 else
7535 cat conftest.err >&5
7536 fi
7537 rm -rf libconftest.dylib*
7538 rm -f conftest.*
7539 fi
7540 fi
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7542 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7544 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7545 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7546 $as_echo_n "(cached) " >&6
7547 else
7548 lt_cv_ld_exported_symbols_list=no
7549 save_LDFLAGS=$LDFLAGS
7550 echo "_main" > conftest.sym
7551 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 /* end confdefs.h. */
7554
7555 int
7556 main ()
7557 {
7558
7559 ;
7560 return 0;
7561 }
7562 _ACEOF
7563 if ac_fn_c_try_link "$LINENO"; then :
7564 lt_cv_ld_exported_symbols_list=yes
7565 else
7566 lt_cv_ld_exported_symbols_list=no
7567 fi
7568 rm -f core conftest.err conftest.$ac_objext \
7569 conftest$ac_exeext conftest.$ac_ext
7570 LDFLAGS="$save_LDFLAGS"
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7574 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7576 $as_echo_n "checking for -force_load linker flag... " >&6; }
7577 if ${lt_cv_ld_force_load+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 lt_cv_ld_force_load=no
7581 cat > conftest.c << _LT_EOF
7582 int forced_loaded() { return 2;}
7583 _LT_EOF
7584 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7585 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7586 echo "$AR cru libconftest.a conftest.o" >&5
7587 $AR cru libconftest.a conftest.o 2>&5
7588 cat > conftest.c << _LT_EOF
7589 int main() { return 0;}
7590 _LT_EOF
7591 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7592 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7593 _lt_result=$?
7594 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7595 lt_cv_ld_force_load=yes
7596 else
7597 cat conftest.err >&5
7598 fi
7599 rm -f conftest.err libconftest.a conftest conftest.c
7600 rm -rf conftest.dSYM
7601
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7604 $as_echo "$lt_cv_ld_force_load" >&6; }
7605 case $host_os in
7606 rhapsody* | darwin1.[012])
7607 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7608 darwin1.*)
7609 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7610 darwin*) # darwin 5.x on
7611 # if running on 10.5 or later, the deployment target defaults
7612 # to the OS version, if on x86, and 10.4, the deployment
7613 # target defaults to 10.4. Don't you love it?
7614 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7615 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7616 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7617 10.[012][,.]*)
7618 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7619 10.*)
7620 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7621 esac
7622 ;;
7623 esac
7624 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7625 _lt_dar_single_mod='$single_module'
7626 fi
7627 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7628 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7629 else
7630 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7631 fi
7632 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7633 _lt_dsymutil='~$DSYMUTIL $lib || :'
7634 else
7635 _lt_dsymutil=
7636 fi
7637 ;;
7638 esac
7639
7640 ac_ext=c
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7646 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7647 # On Suns, sometimes $CPP names a directory.
7648 if test -n "$CPP" && test -d "$CPP"; then
7649 CPP=
7650 fi
7651 if test -z "$CPP"; then
7652 if ${ac_cv_prog_CPP+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 # Double quotes because CPP needs to be expanded
7656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7657 do
7658 ac_preproc_ok=false
7659 for ac_c_preproc_warn_flag in '' yes
7660 do
7661 # Use a header file that comes with gcc, so configuring glibc
7662 # with a fresh cross-compiler works.
7663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7664 # <limits.h> exists even on freestanding compilers.
7665 # On the NeXT, cc -E runs the code through the compiler's parser,
7666 # not just through cpp. "Syntax error" is here to catch this case.
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 #ifdef __STDC__
7670 # include <limits.h>
7671 #else
7672 # include <assert.h>
7673 #endif
7674 Syntax error
7675 _ACEOF
7676 if ac_fn_c_try_cpp "$LINENO"; then :
7677
7678 else
7679 # Broken: fails on valid input.
7680 continue
7681 fi
7682 rm -f conftest.err conftest.i conftest.$ac_ext
7683
7684 # OK, works on sane cases. Now check whether nonexistent headers
7685 # can be detected and how.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h. */
7688 #include <ac_nonexistent.h>
7689 _ACEOF
7690 if ac_fn_c_try_cpp "$LINENO"; then :
7691 # Broken: success on invalid input.
7692 continue
7693 else
7694 # Passes both tests.
7695 ac_preproc_ok=:
7696 break
7697 fi
7698 rm -f conftest.err conftest.i conftest.$ac_ext
7699
7700 done
7701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7702 rm -f conftest.i conftest.err conftest.$ac_ext
7703 if $ac_preproc_ok; then :
7704 break
7705 fi
7706
7707 done
7708 ac_cv_prog_CPP=$CPP
7709
7710 fi
7711 CPP=$ac_cv_prog_CPP
7712 else
7713 ac_cv_prog_CPP=$CPP
7714 fi
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7716 $as_echo "$CPP" >&6; }
7717 ac_preproc_ok=false
7718 for ac_c_preproc_warn_flag in '' yes
7719 do
7720 # Use a header file that comes with gcc, so configuring glibc
7721 # with a fresh cross-compiler works.
7722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7723 # <limits.h> exists even on freestanding compilers.
7724 # On the NeXT, cc -E runs the code through the compiler's parser,
7725 # not just through cpp. "Syntax error" is here to catch this case.
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 #ifdef __STDC__
7729 # include <limits.h>
7730 #else
7731 # include <assert.h>
7732 #endif
7733 Syntax error
7734 _ACEOF
7735 if ac_fn_c_try_cpp "$LINENO"; then :
7736
7737 else
7738 # Broken: fails on valid input.
7739 continue
7740 fi
7741 rm -f conftest.err conftest.i conftest.$ac_ext
7742
7743 # OK, works on sane cases. Now check whether nonexistent headers
7744 # can be detected and how.
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 #include <ac_nonexistent.h>
7748 _ACEOF
7749 if ac_fn_c_try_cpp "$LINENO"; then :
7750 # Broken: success on invalid input.
7751 continue
7752 else
7753 # Passes both tests.
7754 ac_preproc_ok=:
7755 break
7756 fi
7757 rm -f conftest.err conftest.i conftest.$ac_ext
7758
7759 done
7760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7761 rm -f conftest.i conftest.err conftest.$ac_ext
7762 if $ac_preproc_ok; then :
7763
7764 else
7765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7767 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7768 See \`config.log' for more details" "$LINENO" 5; }
7769 fi
7770
7771 ac_ext=c
7772 ac_cpp='$CPP $CPPFLAGS'
7773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7776
7777
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7779 $as_echo_n "checking for ANSI C header files... " >&6; }
7780 if ${ac_cv_header_stdc+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 #include <stdlib.h>
7786 #include <stdarg.h>
7787 #include <string.h>
7788 #include <float.h>
7789
7790 int
7791 main ()
7792 {
7793
7794 ;
7795 return 0;
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_compile "$LINENO"; then :
7799 ac_cv_header_stdc=yes
7800 else
7801 ac_cv_header_stdc=no
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804
7805 if test $ac_cv_header_stdc = yes; then
7806 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 #include <string.h>
7810
7811 _ACEOF
7812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7813 $EGREP "memchr" >/dev/null 2>&1; then :
7814
7815 else
7816 ac_cv_header_stdc=no
7817 fi
7818 rm -f conftest*
7819
7820 fi
7821
7822 if test $ac_cv_header_stdc = yes; then
7823 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <stdlib.h>
7827
7828 _ACEOF
7829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7830 $EGREP "free" >/dev/null 2>&1; then :
7831
7832 else
7833 ac_cv_header_stdc=no
7834 fi
7835 rm -f conftest*
7836
7837 fi
7838
7839 if test $ac_cv_header_stdc = yes; then
7840 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7841 if test "$cross_compiling" = yes; then :
7842 :
7843 else
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 #include <ctype.h>
7847 #include <stdlib.h>
7848 #if ((' ' & 0x0FF) == 0x020)
7849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7851 #else
7852 # define ISLOWER(c) \
7853 (('a' <= (c) && (c) <= 'i') \
7854 || ('j' <= (c) && (c) <= 'r') \
7855 || ('s' <= (c) && (c) <= 'z'))
7856 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7857 #endif
7858
7859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7860 int
7861 main ()
7862 {
7863 int i;
7864 for (i = 0; i < 256; i++)
7865 if (XOR (islower (i), ISLOWER (i))
7866 || toupper (i) != TOUPPER (i))
7867 return 2;
7868 return 0;
7869 }
7870 _ACEOF
7871 if ac_fn_c_try_run "$LINENO"; then :
7872
7873 else
7874 ac_cv_header_stdc=no
7875 fi
7876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7877 conftest.$ac_objext conftest.beam conftest.$ac_ext
7878 fi
7879
7880 fi
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7883 $as_echo "$ac_cv_header_stdc" >&6; }
7884 if test $ac_cv_header_stdc = yes; then
7885
7886 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7887
7888 fi
7889
7890 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7891 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7892 inttypes.h stdint.h unistd.h
7893 do :
7894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7895 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7896 "
7897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7898 cat >>confdefs.h <<_ACEOF
7899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7900 _ACEOF
7901
7902 fi
7903
7904 done
7905
7906
7907 for ac_header in dlfcn.h
7908 do :
7909 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7910 "
7911 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_DLFCN_H 1
7914 _ACEOF
7915
7916 fi
7917
7918 done
7919
7920 if test -n "$ac_tool_prefix"; then
7921 # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7922 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_GOC+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$GOC"; then
7929 ac_cv_prog_GOC="$GOC" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7933 do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942 done
7943 done
7944 IFS=$as_save_IFS
7945
7946 fi
7947 fi
7948 GOC=$ac_cv_prog_GOC
7949 if test -n "$GOC"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7951 $as_echo "$GOC" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 fi
7956
7957
7958 fi
7959 if test -z "$ac_cv_prog_GOC"; then
7960 ac_ct_GOC=$GOC
7961 # Extract the first word of "gccgo", so it can be a program name with args.
7962 set dummy gccgo; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_ac_ct_GOC+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$ac_ct_GOC"; then
7969 ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_ac_ct_GOC="gccgo"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7981 fi
7982 done
7983 done
7984 IFS=$as_save_IFS
7985
7986 fi
7987 fi
7988 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7989 if test -n "$ac_ct_GOC"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7991 $as_echo "$ac_ct_GOC" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7995 fi
7996
7997 if test "x$ac_ct_GOC" = x; then
7998 GOC=""
7999 else
8000 case $cross_compiling:$ac_tool_warned in
8001 yes:)
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8004 ac_tool_warned=yes ;;
8005 esac
8006 GOC=$ac_ct_GOC
8007 fi
8008 else
8009 GOC="$ac_cv_prog_GOC"
8010 fi
8011
8012
8013
8014
8015
8016
8017 # Set options
8018
8019
8020
8021
8022 enable_win32_dll=no
8023
8024
8025 # Check whether --enable-shared was given.
8026 if test "${enable_shared+set}" = set; then :
8027 enableval=$enable_shared; p=${PACKAGE-default}
8028 case $enableval in
8029 yes) enable_shared=yes ;;
8030 no) enable_shared=no ;;
8031 *)
8032 enable_shared=no
8033 # Look at the argument we got. We use all the common list separators.
8034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8035 for pkg in $enableval; do
8036 IFS="$lt_save_ifs"
8037 if test "X$pkg" = "X$p"; then
8038 enable_shared=yes
8039 fi
8040 done
8041 IFS="$lt_save_ifs"
8042 ;;
8043 esac
8044 else
8045 enable_shared=yes
8046 fi
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056 # Check whether --enable-static was given.
8057 if test "${enable_static+set}" = set; then :
8058 enableval=$enable_static; p=${PACKAGE-default}
8059 case $enableval in
8060 yes) enable_static=yes ;;
8061 no) enable_static=no ;;
8062 *)
8063 enable_static=no
8064 # Look at the argument we got. We use all the common list separators.
8065 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8066 for pkg in $enableval; do
8067 IFS="$lt_save_ifs"
8068 if test "X$pkg" = "X$p"; then
8069 enable_static=yes
8070 fi
8071 done
8072 IFS="$lt_save_ifs"
8073 ;;
8074 esac
8075 else
8076 enable_static=yes
8077 fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088 # Check whether --with-pic was given.
8089 if test "${with_pic+set}" = set; then :
8090 withval=$with_pic; pic_mode="$withval"
8091 else
8092 pic_mode=default
8093 fi
8094
8095
8096 test -z "$pic_mode" && pic_mode=default
8097
8098
8099
8100
8101
8102
8103
8104 # Check whether --enable-fast-install was given.
8105 if test "${enable_fast_install+set}" = set; then :
8106 enableval=$enable_fast_install; p=${PACKAGE-default}
8107 case $enableval in
8108 yes) enable_fast_install=yes ;;
8109 no) enable_fast_install=no ;;
8110 *)
8111 enable_fast_install=no
8112 # Look at the argument we got. We use all the common list separators.
8113 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114 for pkg in $enableval; do
8115 IFS="$lt_save_ifs"
8116 if test "X$pkg" = "X$p"; then
8117 enable_fast_install=yes
8118 fi
8119 done
8120 IFS="$lt_save_ifs"
8121 ;;
8122 esac
8123 else
8124 enable_fast_install=yes
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 # This can be used to rebuild libtool when needed
8138 LIBTOOL_DEPS="$ltmain"
8139
8140 # Always use our own libtool.
8141 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168 test -z "$LN_S" && LN_S="ln -s"
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 if test -n "${ZSH_VERSION+set}" ; then
8184 setopt NO_GLOB_SUBST
8185 fi
8186
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8188 $as_echo_n "checking for objdir... " >&6; }
8189 if ${lt_cv_objdir+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 rm -f .libs 2>/dev/null
8193 mkdir .libs 2>/dev/null
8194 if test -d .libs; then
8195 lt_cv_objdir=.libs
8196 else
8197 # MS-DOS does not allow filenames that begin with a dot.
8198 lt_cv_objdir=_libs
8199 fi
8200 rmdir .libs 2>/dev/null
8201 fi
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8203 $as_echo "$lt_cv_objdir" >&6; }
8204 objdir=$lt_cv_objdir
8205
8206
8207
8208
8209
8210 cat >>confdefs.h <<_ACEOF
8211 #define LT_OBJDIR "$lt_cv_objdir/"
8212 _ACEOF
8213
8214
8215
8216
8217 case $host_os in
8218 aix3*)
8219 # AIX sometimes has problems with the GCC collect2 program. For some
8220 # reason, if we set the COLLECT_NAMES environment variable, the problems
8221 # vanish in a puff of smoke.
8222 if test "X${COLLECT_NAMES+set}" != Xset; then
8223 COLLECT_NAMES=
8224 export COLLECT_NAMES
8225 fi
8226 ;;
8227 esac
8228
8229 # Global variables:
8230 ofile=libtool
8231 can_build_shared=yes
8232
8233 # All known linkers require a `.a' archive for static linking (except MSVC,
8234 # which needs '.lib').
8235 libext=a
8236
8237 with_gnu_ld="$lt_cv_prog_gnu_ld"
8238
8239 old_CC="$CC"
8240 old_CFLAGS="$CFLAGS"
8241
8242 # Set sane defaults for various variables
8243 test -z "$CC" && CC=cc
8244 test -z "$LTCC" && LTCC=$CC
8245 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8246 test -z "$LD" && LD=ld
8247 test -z "$ac_objext" && ac_objext=o
8248
8249 for cc_temp in $compiler""; do
8250 case $cc_temp in
8251 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8252 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8253 \-*) ;;
8254 *) break;;
8255 esac
8256 done
8257 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8258
8259
8260 # Only perform the check for file, if the check method requires it
8261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8262 case $deplibs_check_method in
8263 file_magic*)
8264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8266 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8267 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 case $MAGIC_CMD in
8271 [\\/*] | ?:[\\/]*)
8272 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273 ;;
8274 *)
8275 lt_save_MAGIC_CMD="$MAGIC_CMD"
8276 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278 for ac_dir in $ac_dummy; do
8279 IFS="$lt_save_ifs"
8280 test -z "$ac_dir" && ac_dir=.
8281 if test -f $ac_dir/${ac_tool_prefix}file; then
8282 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283 if test -n "$file_magic_test_file"; then
8284 case $deplibs_check_method in
8285 "file_magic "*)
8286 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289 $EGREP "$file_magic_regex" > /dev/null; then
8290 :
8291 else
8292 cat <<_LT_EOF 1>&2
8293
8294 *** Warning: the command libtool uses to detect shared libraries,
8295 *** $file_magic_cmd, produces output that libtool cannot recognize.
8296 *** The result is that libtool may fail to recognize shared libraries
8297 *** as such. This will affect the creation of libtool libraries that
8298 *** depend on shared libraries, but programs linked with such libtool
8299 *** libraries will work regardless of this problem. Nevertheless, you
8300 *** may want to report the problem to your system manager and/or to
8301 *** bug-libtool@gnu.org
8302
8303 _LT_EOF
8304 fi ;;
8305 esac
8306 fi
8307 break
8308 fi
8309 done
8310 IFS="$lt_save_ifs"
8311 MAGIC_CMD="$lt_save_MAGIC_CMD"
8312 ;;
8313 esac
8314 fi
8315
8316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317 if test -n "$MAGIC_CMD"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8319 $as_echo "$MAGIC_CMD" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8323 fi
8324
8325
8326
8327
8328
8329 if test -z "$lt_cv_path_MAGIC_CMD"; then
8330 if test -n "$ac_tool_prefix"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8332 $as_echo_n "checking for file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334 $as_echo_n "(cached) " >&6
8335 else
8336 case $MAGIC_CMD in
8337 [\\/*] | ?:[\\/]*)
8338 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8339 ;;
8340 *)
8341 lt_save_MAGIC_CMD="$MAGIC_CMD"
8342 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344 for ac_dir in $ac_dummy; do
8345 IFS="$lt_save_ifs"
8346 test -z "$ac_dir" && ac_dir=.
8347 if test -f $ac_dir/file; then
8348 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8349 if test -n "$file_magic_test_file"; then
8350 case $deplibs_check_method in
8351 "file_magic "*)
8352 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355 $EGREP "$file_magic_regex" > /dev/null; then
8356 :
8357 else
8358 cat <<_LT_EOF 1>&2
8359
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such. This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem. Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8368
8369 _LT_EOF
8370 fi ;;
8371 esac
8372 fi
8373 break
8374 fi
8375 done
8376 IFS="$lt_save_ifs"
8377 MAGIC_CMD="$lt_save_MAGIC_CMD"
8378 ;;
8379 esac
8380 fi
8381
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391
8392 else
8393 MAGIC_CMD=:
8394 fi
8395 fi
8396
8397 fi
8398 ;;
8399 esac
8400
8401 # Use C for the default configuration in the libtool script
8402
8403 lt_save_CC="$CC"
8404 ac_ext=c
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411 # Source file extension for C test sources.
8412 ac_ext=c
8413
8414 # Object file extension for compiled C test sources.
8415 objext=o
8416 objext=$objext
8417
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;"
8420
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}'
8423
8424
8425
8426
8427
8428
8429
8430 # If no C compiler was specified, use CC.
8431 LTCC=${LTCC-"$CC"}
8432
8433 # If no C compiler flags were specified, use CFLAGS.
8434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8435
8436 # Allow CC to be a program name with arguments.
8437 compiler=$CC
8438
8439 # Save the default compiler, since it gets overwritten when the other
8440 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8441 compiler_DEFAULT=$CC
8442
8443 # save warnings/boilerplate of simple test code
8444 ac_outfile=conftest.$ac_objext
8445 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8446 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8447 _lt_compiler_boilerplate=`cat conftest.err`
8448 $RM conftest*
8449
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8452 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_linker_boilerplate=`cat conftest.err`
8454 $RM -r conftest*
8455
8456
8457 ## CAVEAT EMPTOR:
8458 ## There is no encapsulation within the following macros, do not change
8459 ## the running order or otherwise move them around unless you know exactly
8460 ## what you are doing...
8461 if test -n "$compiler"; then
8462
8463 lt_prog_compiler_no_builtin_flag=
8464
8465 if test "$GCC" = yes; then
8466 case $cc_basename in
8467 nvcc*)
8468 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8469 *)
8470 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8471 esac
8472
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8474 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8475 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 lt_cv_prog_compiler_rtti_exceptions=no
8479 ac_outfile=conftest.$ac_objext
8480 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8481 lt_compiler_flag="-fno-rtti -fno-exceptions"
8482 # Insert the option either (1) after the last *FLAGS variable, or
8483 # (2) before a word containing "conftest.", or (3) at the end.
8484 # Note that $ac_compile itself does not contain backslashes and begins
8485 # with a dollar sign (not a hyphen), so the echo should work correctly.
8486 # The option is referenced via a variable to avoid confusing sed.
8487 lt_compile=`echo "$ac_compile" | $SED \
8488 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8489 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8490 -e 's:$: $lt_compiler_flag:'`
8491 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8492 (eval "$lt_compile" 2>conftest.err)
8493 ac_status=$?
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 if (exit $ac_status) && test -s "$ac_outfile"; then
8497 # The compiler can only warn and ignore the option if not recognized
8498 # So say no if there are warnings other than the usual output.
8499 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8500 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8501 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8502 lt_cv_prog_compiler_rtti_exceptions=yes
8503 fi
8504 fi
8505 $RM conftest*
8506
8507 fi
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8509 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8510
8511 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8512 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8513 else
8514 :
8515 fi
8516
8517 fi
8518
8519
8520
8521
8522
8523
8524 lt_prog_compiler_wl=
8525 lt_prog_compiler_pic=
8526 lt_prog_compiler_static=
8527
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8529 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8530
8531 if test "$GCC" = yes; then
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_static='-static'
8534
8535 case $host_os in
8536 aix*)
8537 # All AIX code is PIC.
8538 if test "$host_cpu" = ia64; then
8539 # AIX 5 now supports IA64 processor
8540 lt_prog_compiler_static='-Bstatic'
8541 fi
8542 lt_prog_compiler_pic='-fPIC'
8543 ;;
8544
8545 amigaos*)
8546 case $host_cpu in
8547 powerpc)
8548 # see comment about AmigaOS4 .so support
8549 lt_prog_compiler_pic='-fPIC'
8550 ;;
8551 m68k)
8552 # FIXME: we need at least 68020 code to build shared libraries, but
8553 # adding the `-m68020' flag to GCC prevents building anything better,
8554 # like `-m68040'.
8555 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8556 ;;
8557 esac
8558 ;;
8559
8560 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8561 # PIC is the default for these OSes.
8562 ;;
8563
8564 mingw* | cygwin* | pw32* | os2* | cegcc*)
8565 # This hack is so that the source file can tell whether it is being
8566 # built for inclusion in a dll (and should export symbols for example).
8567 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8568 # (--disable-auto-import) libraries
8569 lt_prog_compiler_pic='-DDLL_EXPORT'
8570 ;;
8571
8572 darwin* | rhapsody*)
8573 # PIC is the default on this platform
8574 # Common symbols not allowed in MH_DYLIB files
8575 lt_prog_compiler_pic='-fno-common'
8576 ;;
8577
8578 haiku*)
8579 # PIC is the default for Haiku.
8580 # The "-static" flag exists, but is broken.
8581 lt_prog_compiler_static=
8582 ;;
8583
8584 hpux*)
8585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8587 # sets the default TLS model and affects inlining.
8588 case $host_cpu in
8589 hppa*64*)
8590 # +Z the default
8591 ;;
8592 *)
8593 lt_prog_compiler_pic='-fPIC'
8594 ;;
8595 esac
8596 ;;
8597
8598 interix[3-9]*)
8599 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8600 # Instead, we relocate shared libraries at runtime.
8601 ;;
8602
8603 msdosdjgpp*)
8604 # Just because we use GCC doesn't mean we suddenly get shared libraries
8605 # on systems that don't support them.
8606 lt_prog_compiler_can_build_shared=no
8607 enable_shared=no
8608 ;;
8609
8610 *nto* | *qnx*)
8611 # QNX uses GNU C++, but need to define -shared option too, otherwise
8612 # it will coredump.
8613 lt_prog_compiler_pic='-fPIC -shared'
8614 ;;
8615
8616 sysv4*MP*)
8617 if test -d /usr/nec; then
8618 lt_prog_compiler_pic=-Kconform_pic
8619 fi
8620 ;;
8621
8622 *)
8623 lt_prog_compiler_pic='-fPIC'
8624 ;;
8625 esac
8626
8627 case $cc_basename in
8628 nvcc*) # Cuda Compiler Driver 2.2
8629 lt_prog_compiler_wl='-Xlinker '
8630 lt_prog_compiler_pic='-Xcompiler -fPIC'
8631 ;;
8632 esac
8633 else
8634 # PORTME Check for flag to pass linker flags through the system compiler.
8635 case $host_os in
8636 aix*)
8637 lt_prog_compiler_wl='-Wl,'
8638 if test "$host_cpu" = ia64; then
8639 # AIX 5 now supports IA64 processor
8640 lt_prog_compiler_static='-Bstatic'
8641 else
8642 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8643 fi
8644 ;;
8645
8646 mingw* | cygwin* | pw32* | os2* | cegcc*)
8647 # This hack is so that the source file can tell whether it is being
8648 # built for inclusion in a dll (and should export symbols for example).
8649 lt_prog_compiler_pic='-DDLL_EXPORT'
8650 ;;
8651
8652 hpux9* | hpux10* | hpux11*)
8653 lt_prog_compiler_wl='-Wl,'
8654 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8655 # not for PA HP-UX.
8656 case $host_cpu in
8657 hppa*64*|ia64*)
8658 # +Z the default
8659 ;;
8660 *)
8661 lt_prog_compiler_pic='+Z'
8662 ;;
8663 esac
8664 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8665 lt_prog_compiler_static='${wl}-a ${wl}archive'
8666 ;;
8667
8668 irix5* | irix6* | nonstopux*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # PIC (with -KPIC) is the default.
8671 lt_prog_compiler_static='-non_shared'
8672 ;;
8673
8674 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8675 case $cc_basename in
8676 # old Intel for x86_64 which still supported -KPIC.
8677 ecc*)
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_pic='-KPIC'
8680 lt_prog_compiler_static='-static'
8681 ;;
8682 # icc used to be incompatible with GCC.
8683 # ICC 10 doesn't accept -KPIC any more.
8684 icc* | ifort*)
8685 lt_prog_compiler_wl='-Wl,'
8686 lt_prog_compiler_pic='-fPIC'
8687 lt_prog_compiler_static='-static'
8688 ;;
8689 # Lahey Fortran 8.1.
8690 lf95*)
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_pic='--shared'
8693 lt_prog_compiler_static='--static'
8694 ;;
8695 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8696 # Portland Group compilers (*not* the Pentium gcc compiler,
8697 # which looks to be a dead project)
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-fpic'
8700 lt_prog_compiler_static='-Bstatic'
8701 ;;
8702 ccc*)
8703 lt_prog_compiler_wl='-Wl,'
8704 # All Alpha code is PIC.
8705 lt_prog_compiler_static='-non_shared'
8706 ;;
8707 xl* | bgxl* | bgf* | mpixl*)
8708 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8709 lt_prog_compiler_wl='-Wl,'
8710 lt_prog_compiler_pic='-qpic'
8711 lt_prog_compiler_static='-qstaticlink'
8712 ;;
8713 *)
8714 case `$CC -V 2>&1 | sed 5q` in
8715 *Sun\ F* | *Sun*Fortran*)
8716 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8717 lt_prog_compiler_pic='-KPIC'
8718 lt_prog_compiler_static='-Bstatic'
8719 lt_prog_compiler_wl=''
8720 ;;
8721 *Sun\ C*)
8722 # Sun C 5.9
8723 lt_prog_compiler_pic='-KPIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 lt_prog_compiler_wl='-Wl,'
8726 ;;
8727 esac
8728 ;;
8729 esac
8730 ;;
8731
8732 newsos6)
8733 lt_prog_compiler_pic='-KPIC'
8734 lt_prog_compiler_static='-Bstatic'
8735 ;;
8736
8737 *nto* | *qnx*)
8738 # QNX uses GNU C++, but need to define -shared option too, otherwise
8739 # it will coredump.
8740 lt_prog_compiler_pic='-fPIC -shared'
8741 ;;
8742
8743 osf3* | osf4* | osf5*)
8744 lt_prog_compiler_wl='-Wl,'
8745 # All OSF/1 code is PIC.
8746 lt_prog_compiler_static='-non_shared'
8747 ;;
8748
8749 rdos*)
8750 lt_prog_compiler_static='-non_shared'
8751 ;;
8752
8753 solaris*)
8754 lt_prog_compiler_pic='-KPIC'
8755 lt_prog_compiler_static='-Bstatic'
8756 case $cc_basename in
8757 f77* | f90* | f95*)
8758 lt_prog_compiler_wl='-Qoption ld ';;
8759 *)
8760 lt_prog_compiler_wl='-Wl,';;
8761 esac
8762 ;;
8763
8764 sunos4*)
8765 lt_prog_compiler_wl='-Qoption ld '
8766 lt_prog_compiler_pic='-PIC'
8767 lt_prog_compiler_static='-Bstatic'
8768 ;;
8769
8770 sysv4 | sysv4.2uw2* | sysv4.3*)
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-KPIC'
8773 lt_prog_compiler_static='-Bstatic'
8774 ;;
8775
8776 sysv4*MP*)
8777 if test -d /usr/nec ;then
8778 lt_prog_compiler_pic='-Kconform_pic'
8779 lt_prog_compiler_static='-Bstatic'
8780 fi
8781 ;;
8782
8783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8784 lt_prog_compiler_wl='-Wl,'
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8787 ;;
8788
8789 unicos*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_can_build_shared=no
8792 ;;
8793
8794 uts4*)
8795 lt_prog_compiler_pic='-pic'
8796 lt_prog_compiler_static='-Bstatic'
8797 ;;
8798
8799 *)
8800 lt_prog_compiler_can_build_shared=no
8801 ;;
8802 esac
8803 fi
8804
8805 case $host_os in
8806 # For platforms which do not support PIC, -DPIC is meaningless:
8807 *djgpp*)
8808 lt_prog_compiler_pic=
8809 ;;
8810 *)
8811 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8812 ;;
8813 esac
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8815 $as_echo "$lt_prog_compiler_pic" >&6; }
8816
8817
8818
8819
8820
8821
8822 #
8823 # Check to make sure the PIC flag actually works.
8824 #
8825 if test -n "$lt_prog_compiler_pic"; then
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8827 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8828 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 lt_cv_prog_compiler_pic_works=no
8832 ac_outfile=conftest.$ac_objext
8833 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8834 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8835 # Insert the option either (1) after the last *FLAGS variable, or
8836 # (2) before a word containing "conftest.", or (3) at the end.
8837 # Note that $ac_compile itself does not contain backslashes and begins
8838 # with a dollar sign (not a hyphen), so the echo should work correctly.
8839 # The option is referenced via a variable to avoid confusing sed.
8840 lt_compile=`echo "$ac_compile" | $SED \
8841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8842 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8843 -e 's:$: $lt_compiler_flag:'`
8844 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8845 (eval "$lt_compile" 2>conftest.err)
8846 ac_status=$?
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 if (exit $ac_status) && test -s "$ac_outfile"; then
8850 # The compiler can only warn and ignore the option if not recognized
8851 # So say no if there are warnings other than the usual output.
8852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8855 lt_cv_prog_compiler_pic_works=yes
8856 fi
8857 fi
8858 $RM conftest*
8859
8860 fi
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8862 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8863
8864 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8865 case $lt_prog_compiler_pic in
8866 "" | " "*) ;;
8867 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8868 esac
8869 else
8870 lt_prog_compiler_pic=
8871 lt_prog_compiler_can_build_shared=no
8872 fi
8873
8874 fi
8875
8876
8877
8878
8879
8880
8881 #
8882 # Check to make sure the static flag actually works.
8883 #
8884 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8886 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8887 if ${lt_cv_prog_compiler_static_works+:} false; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 lt_cv_prog_compiler_static_works=no
8891 save_LDFLAGS="$LDFLAGS"
8892 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8893 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8894 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8895 # The linker can only warn and ignore the option if not recognized
8896 # So say no if there are warnings
8897 if test -s conftest.err; then
8898 # Append any errors to the config.log.
8899 cat conftest.err 1>&5
8900 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8901 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8902 if diff conftest.exp conftest.er2 >/dev/null; then
8903 lt_cv_prog_compiler_static_works=yes
8904 fi
8905 else
8906 lt_cv_prog_compiler_static_works=yes
8907 fi
8908 fi
8909 $RM -r conftest*
8910 LDFLAGS="$save_LDFLAGS"
8911
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8914 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8915
8916 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8917 :
8918 else
8919 lt_prog_compiler_static=
8920 fi
8921
8922
8923
8924
8925
8926
8927
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8929 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8930 if ${lt_cv_prog_compiler_c_o+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 lt_cv_prog_compiler_c_o=no
8934 $RM -r conftest 2>/dev/null
8935 mkdir conftest
8936 cd conftest
8937 mkdir out
8938 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939
8940 lt_compiler_flag="-o out/conftest2.$ac_objext"
8941 # Insert the option either (1) after the last *FLAGS variable, or
8942 # (2) before a word containing "conftest.", or (3) at the end.
8943 # Note that $ac_compile itself does not contain backslashes and begins
8944 # with a dollar sign (not a hyphen), so the echo should work correctly.
8945 lt_compile=`echo "$ac_compile" | $SED \
8946 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948 -e 's:$: $lt_compiler_flag:'`
8949 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8950 (eval "$lt_compile" 2>out/conftest.err)
8951 ac_status=$?
8952 cat out/conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8955 then
8956 # The compiler can only warn and ignore the option if not recognized
8957 # So say no if there are warnings
8958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8959 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8960 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8961 lt_cv_prog_compiler_c_o=yes
8962 fi
8963 fi
8964 chmod u+w . 2>&5
8965 $RM conftest*
8966 # SGI C++ compiler will create directory out/ii_files/ for
8967 # template instantiation
8968 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8969 $RM out/* && rmdir out
8970 cd ..
8971 $RM -r conftest
8972 $RM conftest*
8973
8974 fi
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8976 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8977
8978
8979
8980
8981
8982
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8984 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8985 if ${lt_cv_prog_compiler_c_o+:} false; then :
8986 $as_echo_n "(cached) " >&6
8987 else
8988 lt_cv_prog_compiler_c_o=no
8989 $RM -r conftest 2>/dev/null
8990 mkdir conftest
8991 cd conftest
8992 mkdir out
8993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8994
8995 lt_compiler_flag="-o out/conftest2.$ac_objext"
8996 # Insert the option either (1) after the last *FLAGS variable, or
8997 # (2) before a word containing "conftest.", or (3) at the end.
8998 # Note that $ac_compile itself does not contain backslashes and begins
8999 # with a dollar sign (not a hyphen), so the echo should work correctly.
9000 lt_compile=`echo "$ac_compile" | $SED \
9001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9003 -e 's:$: $lt_compiler_flag:'`
9004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9005 (eval "$lt_compile" 2>out/conftest.err)
9006 ac_status=$?
9007 cat out/conftest.err >&5
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9010 then
9011 # The compiler can only warn and ignore the option if not recognized
9012 # So say no if there are warnings
9013 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9014 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9015 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9016 lt_cv_prog_compiler_c_o=yes
9017 fi
9018 fi
9019 chmod u+w . 2>&5
9020 $RM conftest*
9021 # SGI C++ compiler will create directory out/ii_files/ for
9022 # template instantiation
9023 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9024 $RM out/* && rmdir out
9025 cd ..
9026 $RM -r conftest
9027 $RM conftest*
9028
9029 fi
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9031 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9032
9033
9034
9035
9036 hard_links="nottested"
9037 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9038 # do not overwrite the value of need_locks provided by the user
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9040 $as_echo_n "checking if we can lock with hard links... " >&6; }
9041 hard_links=yes
9042 $RM conftest*
9043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9044 touch conftest.a
9045 ln conftest.a conftest.b 2>&5 || hard_links=no
9046 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9048 $as_echo "$hard_links" >&6; }
9049 if test "$hard_links" = no; then
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9051 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9052 need_locks=warn
9053 fi
9054 else
9055 need_locks=no
9056 fi
9057
9058
9059
9060
9061
9062
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9064 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9065
9066 runpath_var=
9067 allow_undefined_flag=
9068 always_export_symbols=no
9069 archive_cmds=
9070 archive_expsym_cmds=
9071 compiler_needs_object=no
9072 enable_shared_with_static_runtimes=no
9073 export_dynamic_flag_spec=
9074 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9075 hardcode_automatic=no
9076 hardcode_direct=no
9077 hardcode_direct_absolute=no
9078 hardcode_libdir_flag_spec=
9079 hardcode_libdir_flag_spec_ld=
9080 hardcode_libdir_separator=
9081 hardcode_minus_L=no
9082 hardcode_shlibpath_var=unsupported
9083 inherit_rpath=no
9084 link_all_deplibs=unknown
9085 module_cmds=
9086 module_expsym_cmds=
9087 old_archive_from_new_cmds=
9088 old_archive_from_expsyms_cmds=
9089 thread_safe_flag_spec=
9090 whole_archive_flag_spec=
9091 # include_expsyms should be a list of space-separated symbols to be *always*
9092 # included in the symbol list
9093 include_expsyms=
9094 # exclude_expsyms can be an extended regexp of symbols to exclude
9095 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9096 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9097 # as well as any symbol that contains `d'.
9098 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9099 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9100 # platforms (ab)use it in PIC code, but their linkers get confused if
9101 # the symbol is explicitly referenced. Since portable code cannot
9102 # rely on this symbol name, it's probably fine to never include it in
9103 # preloaded symbol tables.
9104 # Exclude shared library initialization/finalization symbols.
9105 extract_expsyms_cmds=
9106
9107 case $host_os in
9108 cygwin* | mingw* | pw32* | cegcc*)
9109 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9110 # When not using gcc, we currently assume that we are using
9111 # Microsoft Visual C++.
9112 if test "$GCC" != yes; then
9113 with_gnu_ld=no
9114 fi
9115 ;;
9116 interix*)
9117 # we just hope/assume this is gcc and not c89 (= MSVC++)
9118 with_gnu_ld=yes
9119 ;;
9120 openbsd*)
9121 with_gnu_ld=no
9122 ;;
9123 esac
9124
9125 ld_shlibs=yes
9126
9127 # On some targets, GNU ld is compatible enough with the native linker
9128 # that we're better off using the native interface for both.
9129 lt_use_gnu_ld_interface=no
9130 if test "$with_gnu_ld" = yes; then
9131 case $host_os in
9132 aix*)
9133 # The AIX port of GNU ld has always aspired to compatibility
9134 # with the native linker. However, as the warning in the GNU ld
9135 # block says, versions before 2.19.5* couldn't really create working
9136 # shared libraries, regardless of the interface used.
9137 case `$LD -v 2>&1` in
9138 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9139 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9140 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9141 *)
9142 lt_use_gnu_ld_interface=yes
9143 ;;
9144 esac
9145 ;;
9146 *)
9147 lt_use_gnu_ld_interface=yes
9148 ;;
9149 esac
9150 fi
9151
9152 if test "$lt_use_gnu_ld_interface" = yes; then
9153 # If archive_cmds runs LD, not CC, wlarc should be empty
9154 wlarc='${wl}'
9155
9156 # Set some defaults for GNU ld with shared library support. These
9157 # are reset later if shared libraries are not supported. Putting them
9158 # here allows them to be overridden if necessary.
9159 runpath_var=LD_RUN_PATH
9160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9161 export_dynamic_flag_spec='${wl}--export-dynamic'
9162 # ancient GNU ld didn't support --whole-archive et. al.
9163 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9164 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9165 else
9166 whole_archive_flag_spec=
9167 fi
9168 supports_anon_versioning=no
9169 case `$LD -v 2>&1` in
9170 *GNU\ gold*) supports_anon_versioning=yes ;;
9171 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9172 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9173 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9174 *\ 2.11.*) ;; # other 2.11 versions
9175 *) supports_anon_versioning=yes ;;
9176 esac
9177
9178 # See if GNU ld supports shared libraries.
9179 case $host_os in
9180 aix[3-9]*)
9181 # On AIX/PPC, the GNU linker is very broken
9182 if test "$host_cpu" != ia64; then
9183 ld_shlibs=no
9184 cat <<_LT_EOF 1>&2
9185
9186 *** Warning: the GNU linker, at least up to release 2.19, is reported
9187 *** to be unable to reliably create shared libraries on AIX.
9188 *** Therefore, libtool is disabling shared libraries support. If you
9189 *** really care for shared libraries, you may want to install binutils
9190 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9191 *** You will then need to restart the configuration process.
9192
9193 _LT_EOF
9194 fi
9195 ;;
9196
9197 amigaos*)
9198 case $host_cpu in
9199 powerpc)
9200 # see comment about AmigaOS4 .so support
9201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9202 archive_expsym_cmds=''
9203 ;;
9204 m68k)
9205 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)'
9206 hardcode_libdir_flag_spec='-L$libdir'
9207 hardcode_minus_L=yes
9208 ;;
9209 esac
9210 ;;
9211
9212 beos*)
9213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9214 allow_undefined_flag=unsupported
9215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9216 # support --undefined. This deserves some investigation. FIXME
9217 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218 else
9219 ld_shlibs=no
9220 fi
9221 ;;
9222
9223 cygwin* | mingw* | pw32* | cegcc*)
9224 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9225 # as there is no search path for DLLs.
9226 hardcode_libdir_flag_spec='-L$libdir'
9227 export_dynamic_flag_spec='${wl}--export-all-symbols'
9228 allow_undefined_flag=unsupported
9229 always_export_symbols=no
9230 enable_shared_with_static_runtimes=yes
9231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9232
9233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9234 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9235 # If the export-symbols file already is a .def file (1st line
9236 # is EXPORTS), use it as is; otherwise, prepend...
9237 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9238 cp $export_symbols $output_objdir/$soname.def;
9239 else
9240 echo EXPORTS > $output_objdir/$soname.def;
9241 cat $export_symbols >> $output_objdir/$soname.def;
9242 fi~
9243 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9244 else
9245 ld_shlibs=no
9246 fi
9247 ;;
9248
9249 haiku*)
9250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9251 link_all_deplibs=yes
9252 ;;
9253
9254 interix[3-9]*)
9255 hardcode_direct=no
9256 hardcode_shlibpath_var=no
9257 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9258 export_dynamic_flag_spec='${wl}-E'
9259 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9260 # Instead, shared libraries are loaded at an image base (0x10000000 by
9261 # default) and relocated if they conflict, which is a slow very memory
9262 # consuming and fragmenting process. To avoid this, we pick a random,
9263 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9264 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9265 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9266 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'
9267 ;;
9268
9269 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9270 tmp_diet=no
9271 if test "$host_os" = linux-dietlibc; then
9272 case $cc_basename in
9273 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9274 esac
9275 fi
9276 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9277 && test "$tmp_diet" = no
9278 then
9279 tmp_addflag=
9280 tmp_sharedflag='-shared'
9281 case $cc_basename,$host_cpu in
9282 pgcc*) # Portland Group C compiler
9283 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'
9284 tmp_addflag=' $pic_flag'
9285 ;;
9286 pgf77* | pgf90* | pgf95* | pgfortran*)
9287 # Portland Group f77 and f90 compilers
9288 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'
9289 tmp_addflag=' $pic_flag -Mnomain' ;;
9290 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9291 tmp_addflag=' -i_dynamic' ;;
9292 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9293 tmp_addflag=' -i_dynamic -nofor_main' ;;
9294 ifc* | ifort*) # Intel Fortran compiler
9295 tmp_addflag=' -nofor_main' ;;
9296 lf95*) # Lahey Fortran 8.1
9297 whole_archive_flag_spec=
9298 tmp_sharedflag='--shared' ;;
9299 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9300 tmp_sharedflag='-qmkshrobj'
9301 tmp_addflag= ;;
9302 nvcc*) # Cuda Compiler Driver 2.2
9303 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'
9304 compiler_needs_object=yes
9305 ;;
9306 esac
9307 case `$CC -V 2>&1 | sed 5q` in
9308 *Sun\ C*) # Sun C 5.9
9309 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'
9310 compiler_needs_object=yes
9311 tmp_sharedflag='-G' ;;
9312 *Sun\ F*) # Sun Fortran 8.3
9313 tmp_sharedflag='-G' ;;
9314 esac
9315 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316
9317 if test "x$supports_anon_versioning" = xyes; then
9318 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9319 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9320 echo "local: *; };" >> $output_objdir/$libname.ver~
9321 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9322 fi
9323
9324 case $cc_basename in
9325 xlf* | bgf* | bgxlf* | mpixlf*)
9326 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9327 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9328 hardcode_libdir_flag_spec=
9329 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9330 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9331 if test "x$supports_anon_versioning" = xyes; then
9332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9336 fi
9337 ;;
9338 esac
9339 else
9340 ld_shlibs=no
9341 fi
9342 ;;
9343
9344 netbsd*)
9345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9346 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9347 wlarc=
9348 else
9349 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9351 fi
9352 ;;
9353
9354 solaris*)
9355 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9356 ld_shlibs=no
9357 cat <<_LT_EOF 1>&2
9358
9359 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9360 *** create shared libraries on Solaris systems. Therefore, libtool
9361 *** is disabling shared libraries support. We urge you to upgrade GNU
9362 *** binutils to release 2.9.1 or newer. Another option is to modify
9363 *** your PATH or compiler configuration so that the native linker is
9364 *** used, and then restart.
9365
9366 _LT_EOF
9367 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9368 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9369 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9370 else
9371 ld_shlibs=no
9372 fi
9373 ;;
9374
9375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9376 case `$LD -v 2>&1` in
9377 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9378 ld_shlibs=no
9379 cat <<_LT_EOF 1>&2
9380
9381 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9382 *** reliably create shared libraries on SCO systems. Therefore, libtool
9383 *** is disabling shared libraries support. We urge you to upgrade GNU
9384 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9385 *** your PATH or compiler configuration so that the native linker is
9386 *** used, and then restart.
9387
9388 _LT_EOF
9389 ;;
9390 *)
9391 # For security reasons, it is highly recommended that you always
9392 # use absolute paths for naming shared libraries, and exclude the
9393 # DT_RUNPATH tag from executables and libraries. But doing so
9394 # requires that you compile everything twice, which is a pain.
9395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9399 else
9400 ld_shlibs=no
9401 fi
9402 ;;
9403 esac
9404 ;;
9405
9406 sunos4*)
9407 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9408 wlarc=
9409 hardcode_direct=yes
9410 hardcode_shlibpath_var=no
9411 ;;
9412
9413 *)
9414 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9417 else
9418 ld_shlibs=no
9419 fi
9420 ;;
9421 esac
9422
9423 if test "$ld_shlibs" = no; then
9424 runpath_var=
9425 hardcode_libdir_flag_spec=
9426 export_dynamic_flag_spec=
9427 whole_archive_flag_spec=
9428 fi
9429 else
9430 # PORTME fill in a description of your system's linker (not GNU ld)
9431 case $host_os in
9432 aix3*)
9433 allow_undefined_flag=unsupported
9434 always_export_symbols=yes
9435 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'
9436 # Note: this linker hardcodes the directories in LIBPATH if there
9437 # are no directories specified by -L.
9438 hardcode_minus_L=yes
9439 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9440 # Neither direct hardcoding nor static linking is supported with a
9441 # broken collect2.
9442 hardcode_direct=unsupported
9443 fi
9444 ;;
9445
9446 aix[4-9]*)
9447 if test "$host_cpu" = ia64; then
9448 # On IA64, the linker does run time linking by default, so we don't
9449 # have to do anything special.
9450 aix_use_runtimelinking=no
9451 exp_sym_flag='-Bexport'
9452 no_entry_flag=""
9453 else
9454 # If we're using GNU nm, then we don't want the "-C" option.
9455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9456 # Also, AIX nm treats weak defined symbols like other global
9457 # defined symbols, whereas GNU nm marks them as "W".
9458 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9459 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'
9460 else
9461 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'
9462 fi
9463 aix_use_runtimelinking=no
9464
9465 # Test if we are trying to use run time linking or normal
9466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9467 # need to do runtime linking.
9468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9469 for ld_flag in $LDFLAGS; do
9470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9471 aix_use_runtimelinking=yes
9472 break
9473 fi
9474 done
9475 ;;
9476 esac
9477
9478 exp_sym_flag='-bexport'
9479 no_entry_flag='-bnoentry'
9480 fi
9481
9482 # When large executables or shared objects are built, AIX ld can
9483 # have problems creating the table of contents. If linking a library
9484 # or program results in "error TOC overflow" add -mminimal-toc to
9485 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9486 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9487
9488 archive_cmds=''
9489 hardcode_direct=yes
9490 hardcode_direct_absolute=yes
9491 hardcode_libdir_separator=':'
9492 link_all_deplibs=yes
9493 file_list_spec='${wl}-f,'
9494
9495 if test "$GCC" = yes; then
9496 case $host_os in aix4.[012]|aix4.[012].*)
9497 # We only want to do this on AIX 4.2 and lower, the check
9498 # below for broken collect2 doesn't work under 4.3+
9499 collect2name=`${CC} -print-prog-name=collect2`
9500 if test -f "$collect2name" &&
9501 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9502 then
9503 # We have reworked collect2
9504 :
9505 else
9506 # We have old collect2
9507 hardcode_direct=unsupported
9508 # It fails to find uninstalled libraries when the uninstalled
9509 # path is not listed in the libpath. Setting hardcode_minus_L
9510 # to unsupported forces relinking
9511 hardcode_minus_L=yes
9512 hardcode_libdir_flag_spec='-L$libdir'
9513 hardcode_libdir_separator=
9514 fi
9515 ;;
9516 esac
9517 shared_flag='-shared'
9518 if test "$aix_use_runtimelinking" = yes; then
9519 shared_flag="$shared_flag "'${wl}-G'
9520 fi
9521 else
9522 # not using gcc
9523 if test "$host_cpu" = ia64; then
9524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9525 # chokes on -Wl,-G. The following line is correct:
9526 shared_flag='-G'
9527 else
9528 if test "$aix_use_runtimelinking" = yes; then
9529 shared_flag='${wl}-G'
9530 else
9531 shared_flag='${wl}-bM:SRE'
9532 fi
9533 fi
9534 fi
9535
9536 export_dynamic_flag_spec='${wl}-bexpall'
9537 # It seems that -bexpall does not export symbols beginning with
9538 # underscore (_), so it is better to generate a list of symbols to export.
9539 always_export_symbols=yes
9540 if test "$aix_use_runtimelinking" = yes; then
9541 # Warning - without using the other runtime loading flags (-brtl),
9542 # -berok will link without error, but may produce a broken library.
9543 allow_undefined_flag='-berok'
9544 # Determine the default libpath from the value encoded in an
9545 # empty executable.
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9548
9549 int
9550 main ()
9551 {
9552
9553 ;
9554 return 0;
9555 }
9556 _ACEOF
9557 if ac_fn_c_try_link "$LINENO"; then :
9558
9559 lt_aix_libpath_sed='
9560 /Import File Strings/,/^$/ {
9561 /^0/ {
9562 s/^0 *\(.*\)$/\1/
9563 p
9564 }
9565 }'
9566 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 # Check for a 64-bit object if we didn't find anything.
9568 if test -z "$aix_libpath"; then
9569 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9570 fi
9571 fi
9572 rm -f core conftest.err conftest.$ac_objext \
9573 conftest$ac_exeext conftest.$ac_ext
9574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9575
9576 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9577 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"
9578 else
9579 if test "$host_cpu" = ia64; then
9580 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9581 allow_undefined_flag="-z nodefs"
9582 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"
9583 else
9584 # Determine the default libpath from the value encoded in an
9585 # empty executable.
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588
9589 int
9590 main ()
9591 {
9592
9593 ;
9594 return 0;
9595 }
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"; then :
9598
9599 lt_aix_libpath_sed='
9600 /Import File Strings/,/^$/ {
9601 /^0/ {
9602 s/^0 *\(.*\)$/\1/
9603 p
9604 }
9605 }'
9606 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 # Check for a 64-bit object if we didn't find anything.
9608 if test -z "$aix_libpath"; then
9609 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9610 fi
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9615
9616 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9617 # Warning - without using the other run time loading flags,
9618 # -berok will link without error, but may produce a broken library.
9619 no_undefined_flag=' ${wl}-bernotok'
9620 allow_undefined_flag=' ${wl}-berok'
9621 if test "$with_gnu_ld" = yes; then
9622 # We only use this code for GNU lds that support --whole-archive.
9623 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9624 else
9625 # Exported symbols can be pulled into shared objects from archives
9626 whole_archive_flag_spec='$convenience'
9627 fi
9628 archive_cmds_need_lc=yes
9629 # This is similar to how AIX traditionally builds its shared libraries.
9630 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'
9631 fi
9632 fi
9633 ;;
9634
9635 amigaos*)
9636 case $host_cpu in
9637 powerpc)
9638 # see comment about AmigaOS4 .so support
9639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9640 archive_expsym_cmds=''
9641 ;;
9642 m68k)
9643 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)'
9644 hardcode_libdir_flag_spec='-L$libdir'
9645 hardcode_minus_L=yes
9646 ;;
9647 esac
9648 ;;
9649
9650 bsdi[45]*)
9651 export_dynamic_flag_spec=-rdynamic
9652 ;;
9653
9654 cygwin* | mingw* | pw32* | cegcc*)
9655 # When not using gcc, we currently assume that we are using
9656 # Microsoft Visual C++.
9657 # hardcode_libdir_flag_spec is actually meaningless, as there is
9658 # no search path for DLLs.
9659 hardcode_libdir_flag_spec=' '
9660 allow_undefined_flag=unsupported
9661 # Tell ltmain to make .lib files, not .a files.
9662 libext=lib
9663 # Tell ltmain to make .dll files, not .so files.
9664 shrext_cmds=".dll"
9665 # FIXME: Setting linknames here is a bad hack.
9666 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9667 # The linker will automatically build a .lib file if we build a DLL.
9668 old_archive_from_new_cmds='true'
9669 # FIXME: Should let the user specify the lib program.
9670 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9671 fix_srcfile_path='`cygpath -w "$srcfile"`'
9672 enable_shared_with_static_runtimes=yes
9673 ;;
9674
9675 darwin* | rhapsody*)
9676
9677
9678 archive_cmds_need_lc=no
9679 hardcode_direct=no
9680 hardcode_automatic=yes
9681 hardcode_shlibpath_var=unsupported
9682 if test "$lt_cv_ld_force_load" = "yes"; then
9683 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\"`'
9684 else
9685 whole_archive_flag_spec=''
9686 fi
9687 link_all_deplibs=yes
9688 allow_undefined_flag="$_lt_dar_allow_undefined"
9689 case $cc_basename in
9690 ifort*) _lt_dar_can_shared=yes ;;
9691 *) _lt_dar_can_shared=$GCC ;;
9692 esac
9693 if test "$_lt_dar_can_shared" = "yes"; then
9694 output_verbose_link_cmd=func_echo_all
9695 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9696 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9697 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}"
9698 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}"
9699
9700 else
9701 ld_shlibs=no
9702 fi
9703
9704 ;;
9705
9706 dgux*)
9707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9708 hardcode_libdir_flag_spec='-L$libdir'
9709 hardcode_shlibpath_var=no
9710 ;;
9711
9712 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9713 # support. Future versions do this automatically, but an explicit c++rt0.o
9714 # does not break anything, and helps significantly (at the cost of a little
9715 # extra space).
9716 freebsd2.2*)
9717 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9718 hardcode_libdir_flag_spec='-R$libdir'
9719 hardcode_direct=yes
9720 hardcode_shlibpath_var=no
9721 ;;
9722
9723 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9724 freebsd2.*)
9725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_direct=yes
9727 hardcode_minus_L=yes
9728 hardcode_shlibpath_var=no
9729 ;;
9730
9731 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9732 freebsd* | dragonfly*)
9733 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9734 hardcode_libdir_flag_spec='-R$libdir'
9735 hardcode_direct=yes
9736 hardcode_shlibpath_var=no
9737 ;;
9738
9739 hpux9*)
9740 if test "$GCC" = yes; then
9741 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'
9742 else
9743 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'
9744 fi
9745 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9746 hardcode_libdir_separator=:
9747 hardcode_direct=yes
9748
9749 # hardcode_minus_L: Not really in the search PATH,
9750 # but as the default location of the library.
9751 hardcode_minus_L=yes
9752 export_dynamic_flag_spec='${wl}-E'
9753 ;;
9754
9755 hpux10*)
9756 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9758 else
9759 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9760 fi
9761 if test "$with_gnu_ld" = no; then
9762 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9763 hardcode_libdir_flag_spec_ld='+b $libdir'
9764 hardcode_libdir_separator=:
9765 hardcode_direct=yes
9766 hardcode_direct_absolute=yes
9767 export_dynamic_flag_spec='${wl}-E'
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L=yes
9771 fi
9772 ;;
9773
9774 hpux11*)
9775 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9776 case $host_cpu in
9777 hppa*64*)
9778 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9779 ;;
9780 ia64*)
9781 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9782 ;;
9783 *)
9784 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9785 ;;
9786 esac
9787 else
9788 case $host_cpu in
9789 hppa*64*)
9790 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9791 ;;
9792 ia64*)
9793 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9794 ;;
9795 *)
9796
9797 # Older versions of the 11.00 compiler do not understand -b yet
9798 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9800 $as_echo_n "checking if $CC understands -b... " >&6; }
9801 if ${lt_cv_prog_compiler__b+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803 else
9804 lt_cv_prog_compiler__b=no
9805 save_LDFLAGS="$LDFLAGS"
9806 LDFLAGS="$LDFLAGS -b"
9807 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9808 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9809 # The linker can only warn and ignore the option if not recognized
9810 # So say no if there are warnings
9811 if test -s conftest.err; then
9812 # Append any errors to the config.log.
9813 cat conftest.err 1>&5
9814 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9815 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9816 if diff conftest.exp conftest.er2 >/dev/null; then
9817 lt_cv_prog_compiler__b=yes
9818 fi
9819 else
9820 lt_cv_prog_compiler__b=yes
9821 fi
9822 fi
9823 $RM -r conftest*
9824 LDFLAGS="$save_LDFLAGS"
9825
9826 fi
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9828 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9829
9830 if test x"$lt_cv_prog_compiler__b" = xyes; then
9831 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9832 else
9833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9834 fi
9835
9836 ;;
9837 esac
9838 fi
9839 if test "$with_gnu_ld" = no; then
9840 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9841 hardcode_libdir_separator=:
9842
9843 case $host_cpu in
9844 hppa*64*|ia64*)
9845 hardcode_direct=no
9846 hardcode_shlibpath_var=no
9847 ;;
9848 *)
9849 hardcode_direct=yes
9850 hardcode_direct_absolute=yes
9851 export_dynamic_flag_spec='${wl}-E'
9852
9853 # hardcode_minus_L: Not really in the search PATH,
9854 # but as the default location of the library.
9855 hardcode_minus_L=yes
9856 ;;
9857 esac
9858 fi
9859 ;;
9860
9861 irix5* | irix6* | nonstopux*)
9862 if test "$GCC" = yes; then
9863 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'
9864 # Try to use the -exported_symbol ld option, if it does not
9865 # work, assume that -exports_file does not work either and
9866 # implicitly export all symbols.
9867 save_LDFLAGS="$LDFLAGS"
9868 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9871 int foo(void) {}
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874 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'
9875
9876 fi
9877 rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9879 LDFLAGS="$save_LDFLAGS"
9880 else
9881 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'
9882 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'
9883 fi
9884 archive_cmds_need_lc='no'
9885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9886 hardcode_libdir_separator=:
9887 inherit_rpath=yes
9888 link_all_deplibs=yes
9889 ;;
9890
9891 netbsd*)
9892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9894 else
9895 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9896 fi
9897 hardcode_libdir_flag_spec='-R$libdir'
9898 hardcode_direct=yes
9899 hardcode_shlibpath_var=no
9900 ;;
9901
9902 newsos6)
9903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_direct=yes
9905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9906 hardcode_libdir_separator=:
9907 hardcode_shlibpath_var=no
9908 ;;
9909
9910 *nto* | *qnx*)
9911 ;;
9912
9913 openbsd*)
9914 if test -f /usr/libexec/ld.so; then
9915 hardcode_direct=yes
9916 hardcode_shlibpath_var=no
9917 hardcode_direct_absolute=yes
9918 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9919 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9920 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9921 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9922 export_dynamic_flag_spec='${wl}-E'
9923 else
9924 case $host_os in
9925 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9926 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9927 hardcode_libdir_flag_spec='-R$libdir'
9928 ;;
9929 *)
9930 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9931 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9932 ;;
9933 esac
9934 fi
9935 else
9936 ld_shlibs=no
9937 fi
9938 ;;
9939
9940 os2*)
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_minus_L=yes
9943 allow_undefined_flag=unsupported
9944 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'
9945 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9946 ;;
9947
9948 osf3*)
9949 if test "$GCC" = yes; then
9950 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9951 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'
9952 else
9953 allow_undefined_flag=' -expect_unresolved \*'
9954 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'
9955 fi
9956 archive_cmds_need_lc='no'
9957 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9958 hardcode_libdir_separator=:
9959 ;;
9960
9961 osf4* | osf5*) # as osf3* with the addition of -msym flag
9962 if test "$GCC" = yes; then
9963 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9964 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'
9965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9966 else
9967 allow_undefined_flag=' -expect_unresolved \*'
9968 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'
9969 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~
9970 $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'
9971
9972 # Both c and cxx compiler support -rpath directly
9973 hardcode_libdir_flag_spec='-rpath $libdir'
9974 fi
9975 archive_cmds_need_lc='no'
9976 hardcode_libdir_separator=:
9977 ;;
9978
9979 solaris*)
9980 no_undefined_flag=' -z defs'
9981 if test "$GCC" = yes; then
9982 wlarc='${wl}'
9983 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9984 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9985 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9986 else
9987 case `$CC -V 2>&1` in
9988 *"Compilers 5.0"*)
9989 wlarc=''
9990 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9993 ;;
9994 *)
9995 wlarc='${wl}'
9996 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9997 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9998 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9999 ;;
10000 esac
10001 fi
10002 hardcode_libdir_flag_spec='-R$libdir'
10003 hardcode_shlibpath_var=no
10004 case $host_os in
10005 solaris2.[0-5] | solaris2.[0-5].*) ;;
10006 *)
10007 # The compiler driver will combine and reorder linker options,
10008 # but understands `-z linker_flag'. GCC discards it without `$wl',
10009 # but is careful enough not to reorder.
10010 # Supported since Solaris 2.6 (maybe 2.5.1?)
10011 if test "$GCC" = yes; then
10012 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10013 else
10014 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10015 fi
10016 ;;
10017 esac
10018 link_all_deplibs=yes
10019 ;;
10020
10021 sunos4*)
10022 if test "x$host_vendor" = xsequent; then
10023 # Use $CC to link under sequent, because it throws in some extra .o
10024 # files that make .init and .fini sections work.
10025 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10026 else
10027 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10028 fi
10029 hardcode_libdir_flag_spec='-L$libdir'
10030 hardcode_direct=yes
10031 hardcode_minus_L=yes
10032 hardcode_shlibpath_var=no
10033 ;;
10034
10035 sysv4)
10036 case $host_vendor in
10037 sni)
10038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct=yes # is this really true???
10040 ;;
10041 siemens)
10042 ## LD is ld it makes a PLAMLIB
10043 ## CC just makes a GrossModule.
10044 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10045 reload_cmds='$CC -r -o $output$reload_objs'
10046 hardcode_direct=no
10047 ;;
10048 motorola)
10049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10051 ;;
10052 esac
10053 runpath_var='LD_RUN_PATH'
10054 hardcode_shlibpath_var=no
10055 ;;
10056
10057 sysv4.3*)
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_shlibpath_var=no
10060 export_dynamic_flag_spec='-Bexport'
10061 ;;
10062
10063 sysv4*MP*)
10064 if test -d /usr/nec; then
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_shlibpath_var=no
10067 runpath_var=LD_RUN_PATH
10068 hardcode_runpath_var=yes
10069 ld_shlibs=yes
10070 fi
10071 ;;
10072
10073 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10074 no_undefined_flag='${wl}-z,text'
10075 archive_cmds_need_lc=no
10076 hardcode_shlibpath_var=no
10077 runpath_var='LD_RUN_PATH'
10078
10079 if test "$GCC" = yes; then
10080 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082 else
10083 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10084 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 fi
10086 ;;
10087
10088 sysv5* | sco3.2v5* | sco5v6*)
10089 # Note: We can NOT use -z defs as we might desire, because we do not
10090 # link with -lc, and that would cause any symbols used from libc to
10091 # always be unresolved, which means just about no library would
10092 # ever link correctly. If we're not using GNU ld we use -z text
10093 # though, which does catch some bad symbols but isn't as heavy-handed
10094 # as -z defs.
10095 no_undefined_flag='${wl}-z,text'
10096 allow_undefined_flag='${wl}-z,nodefs'
10097 archive_cmds_need_lc=no
10098 hardcode_shlibpath_var=no
10099 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10100 hardcode_libdir_separator=':'
10101 link_all_deplibs=yes
10102 export_dynamic_flag_spec='${wl}-Bexport'
10103 runpath_var='LD_RUN_PATH'
10104
10105 if test "$GCC" = yes; then
10106 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108 else
10109 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111 fi
10112 ;;
10113
10114 uts4*)
10115 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10116 hardcode_libdir_flag_spec='-L$libdir'
10117 hardcode_shlibpath_var=no
10118 ;;
10119
10120 *)
10121 ld_shlibs=no
10122 ;;
10123 esac
10124
10125 if test x$host_vendor = xsni; then
10126 case $host in
10127 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10128 export_dynamic_flag_spec='${wl}-Blargedynsym'
10129 ;;
10130 esac
10131 fi
10132 fi
10133
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10135 $as_echo "$ld_shlibs" >&6; }
10136 test "$ld_shlibs" = no && can_build_shared=no
10137
10138 with_gnu_ld=$with_gnu_ld
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154 #
10155 # Do we need to explicitly link libc?
10156 #
10157 case "x$archive_cmds_need_lc" in
10158 x|xyes)
10159 # Assume -lc should be added
10160 archive_cmds_need_lc=yes
10161
10162 if test "$enable_shared" = yes && test "$GCC" = yes; then
10163 case $archive_cmds in
10164 *'~'*)
10165 # FIXME: we may have to deal with multi-command sequences.
10166 ;;
10167 '$CC '*)
10168 # Test whether the compiler implicitly links with -lc since on some
10169 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10170 # to ld, don't add -lc before -lgcc.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10172 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10173 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176 $RM conftest*
10177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10178
10179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10180 (eval $ac_compile) 2>&5
10181 ac_status=$?
10182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10183 test $ac_status = 0; } 2>conftest.err; then
10184 soname=conftest
10185 lib=conftest
10186 libobjs=conftest.$ac_objext
10187 deplibs=
10188 wl=$lt_prog_compiler_wl
10189 pic_flag=$lt_prog_compiler_pic
10190 compiler_flags=-v
10191 linker_flags=-v
10192 verstring=
10193 output_objdir=.
10194 libname=conftest
10195 lt_save_allow_undefined_flag=$allow_undefined_flag
10196 allow_undefined_flag=
10197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10198 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10199 ac_status=$?
10200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10201 test $ac_status = 0; }
10202 then
10203 lt_cv_archive_cmds_need_lc=no
10204 else
10205 lt_cv_archive_cmds_need_lc=yes
10206 fi
10207 allow_undefined_flag=$lt_save_allow_undefined_flag
10208 else
10209 cat conftest.err 1>&5
10210 fi
10211 $RM conftest*
10212
10213 fi
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10215 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10216 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10217 ;;
10218 esac
10219 fi
10220 ;;
10221 esac
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10380 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10381
10382 if test "$GCC" = yes; then
10383 case $host_os in
10384 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10385 *) lt_awk_arg="/^libraries:/" ;;
10386 esac
10387 case $host_os in
10388 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10389 *) lt_sed_strip_eq="s,=/,/,g" ;;
10390 esac
10391 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10392 case $lt_search_path_spec in
10393 *\;*)
10394 # if the path contains ";" then we assume it to be the separator
10395 # otherwise default to the standard path separator (i.e. ":") - it is
10396 # assumed that no part of a normal pathname contains ";" but that should
10397 # okay in the real world where ";" in dirpaths is itself problematic.
10398 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10399 ;;
10400 *)
10401 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10402 ;;
10403 esac
10404 # Ok, now we have the path, separated by spaces, we can step through it
10405 # and add multilib dir if necessary.
10406 lt_tmp_lt_search_path_spec=
10407 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10408 for lt_sys_path in $lt_search_path_spec; do
10409 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10410 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10411 else
10412 test -d "$lt_sys_path" && \
10413 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10414 fi
10415 done
10416 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10417 BEGIN {RS=" "; FS="/|\n";} {
10418 lt_foo="";
10419 lt_count=0;
10420 for (lt_i = NF; lt_i > 0; lt_i--) {
10421 if ($lt_i != "" && $lt_i != ".") {
10422 if ($lt_i == "..") {
10423 lt_count++;
10424 } else {
10425 if (lt_count == 0) {
10426 lt_foo="/" $lt_i lt_foo;
10427 } else {
10428 lt_count--;
10429 }
10430 }
10431 }
10432 }
10433 if (lt_foo != "") { lt_freq[lt_foo]++; }
10434 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10435 }'`
10436 # AWK program above erroneously prepends '/' to C:/dos/paths
10437 # for these hosts.
10438 case $host_os in
10439 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10440 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10441 esac
10442 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10443 else
10444 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10445 fi
10446 library_names_spec=
10447 libname_spec='lib$name'
10448 soname_spec=
10449 shrext_cmds=".so"
10450 postinstall_cmds=
10451 postuninstall_cmds=
10452 finish_cmds=
10453 finish_eval=
10454 shlibpath_var=
10455 shlibpath_overrides_runpath=unknown
10456 version_type=none
10457 dynamic_linker="$host_os ld.so"
10458 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10459 need_lib_prefix=unknown
10460 hardcode_into_libs=no
10461
10462 # when you set need_version to no, make sure it does not cause -set_version
10463 # flags to be left without arguments
10464 need_version=unknown
10465
10466 case $host_os in
10467 aix3*)
10468 version_type=linux
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10470 shlibpath_var=LIBPATH
10471
10472 # AIX 3 has no versioning support, so we append a major version to the name.
10473 soname_spec='${libname}${release}${shared_ext}$major'
10474 ;;
10475
10476 aix[4-9]*)
10477 version_type=linux
10478 need_lib_prefix=no
10479 need_version=no
10480 hardcode_into_libs=yes
10481 if test "$host_cpu" = ia64; then
10482 # AIX 5 supports IA64
10483 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 else
10486 # With GCC up to 2.95.x, collect2 would create an import file
10487 # for dependence libraries. The import file would start with
10488 # the line `#! .'. This would cause the generated library to
10489 # depend on `.', always an invalid library. This was fixed in
10490 # development snapshots of GCC prior to 3.0.
10491 case $host_os in
10492 aix4 | aix4.[01] | aix4.[01].*)
10493 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10494 echo ' yes '
10495 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10496 :
10497 else
10498 can_build_shared=no
10499 fi
10500 ;;
10501 esac
10502 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10503 # soname into executable. Probably we can add versioning support to
10504 # collect2, so additional links can be useful in future.
10505 if test "$aix_use_runtimelinking" = yes; then
10506 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10507 # instead of lib<name>.a to let people know that these are not
10508 # typical AIX shared libraries.
10509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10510 else
10511 # We preserve .a as extension for shared libraries through AIX4.2
10512 # and later when we are not doing run time linking.
10513 library_names_spec='${libname}${release}.a $libname.a'
10514 soname_spec='${libname}${release}${shared_ext}$major'
10515 fi
10516 shlibpath_var=LIBPATH
10517 fi
10518 ;;
10519
10520 amigaos*)
10521 case $host_cpu in
10522 powerpc)
10523 # Since July 2007 AmigaOS4 officially supports .so libraries.
10524 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10526 ;;
10527 m68k)
10528 library_names_spec='$libname.ixlibrary $libname.a'
10529 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10530 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'
10531 ;;
10532 esac
10533 ;;
10534
10535 beos*)
10536 library_names_spec='${libname}${shared_ext}'
10537 dynamic_linker="$host_os ld.so"
10538 shlibpath_var=LIBRARY_PATH
10539 ;;
10540
10541 bsdi[45]*)
10542 version_type=linux
10543 need_version=no
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10549 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10550 # the default ld.so.conf also contains /usr/contrib/lib and
10551 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10552 # libtool to hard-code these into programs
10553 ;;
10554
10555 cygwin* | mingw* | pw32* | cegcc*)
10556 version_type=windows
10557 shrext_cmds=".dll"
10558 need_version=no
10559 need_lib_prefix=no
10560
10561 case $GCC,$host_os in
10562 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10563 library_names_spec='$libname.dll.a'
10564 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10565 postinstall_cmds='base_file=`basename \${file}`~
10566 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10567 dldir=$destdir/`dirname \$dlpath`~
10568 test -d \$dldir || mkdir -p \$dldir~
10569 $install_prog $dir/$dlname \$dldir/$dlname~
10570 chmod a+x \$dldir/$dlname~
10571 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10572 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10573 fi'
10574 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10575 dlpath=$dir/\$dldll~
10576 $RM \$dlpath'
10577 shlibpath_overrides_runpath=yes
10578
10579 case $host_os in
10580 cygwin*)
10581 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10582 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10583
10584 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10585 ;;
10586 mingw* | cegcc*)
10587 # MinGW DLLs use traditional 'lib' prefix
10588 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10589 ;;
10590 pw32*)
10591 # pw32 DLLs use 'pw' prefix rather than 'lib'
10592 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10593 ;;
10594 esac
10595 ;;
10596
10597 *)
10598 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10599 ;;
10600 esac
10601 dynamic_linker='Win32 ld.exe'
10602 # FIXME: first we should search . and the directory the executable is in
10603 shlibpath_var=PATH
10604 ;;
10605
10606 darwin* | rhapsody*)
10607 dynamic_linker="$host_os dyld"
10608 version_type=darwin
10609 need_lib_prefix=no
10610 need_version=no
10611 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10612 soname_spec='${libname}${release}${major}$shared_ext'
10613 shlibpath_overrides_runpath=yes
10614 shlibpath_var=DYLD_LIBRARY_PATH
10615 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10616
10617 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10619 ;;
10620
10621 dgux*)
10622 version_type=linux
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10626 soname_spec='${libname}${release}${shared_ext}$major'
10627 shlibpath_var=LD_LIBRARY_PATH
10628 ;;
10629
10630 freebsd* | dragonfly*)
10631 # DragonFly does not have aout. When/if they implement a new
10632 # versioning mechanism, adjust this.
10633 if test -x /usr/bin/objformat; then
10634 objformat=`/usr/bin/objformat`
10635 else
10636 case $host_os in
10637 freebsd[23].*) objformat=aout ;;
10638 *) objformat=elf ;;
10639 esac
10640 fi
10641 version_type=freebsd-$objformat
10642 case $version_type in
10643 freebsd-elf*)
10644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10645 need_version=no
10646 need_lib_prefix=no
10647 ;;
10648 freebsd-*)
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10650 need_version=yes
10651 ;;
10652 esac
10653 shlibpath_var=LD_LIBRARY_PATH
10654 case $host_os in
10655 freebsd2.*)
10656 shlibpath_overrides_runpath=yes
10657 ;;
10658 freebsd3.[01]* | freebsdelf3.[01]*)
10659 shlibpath_overrides_runpath=yes
10660 hardcode_into_libs=yes
10661 ;;
10662 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10663 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10664 shlibpath_overrides_runpath=no
10665 hardcode_into_libs=yes
10666 ;;
10667 *) # from 4.6 on, and DragonFly
10668 shlibpath_overrides_runpath=yes
10669 hardcode_into_libs=yes
10670 ;;
10671 esac
10672 ;;
10673
10674 gnu*)
10675 version_type=linux
10676 need_lib_prefix=no
10677 need_version=no
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 hardcode_into_libs=yes
10682 ;;
10683
10684 haiku*)
10685 version_type=linux
10686 need_lib_prefix=no
10687 need_version=no
10688 dynamic_linker="$host_os runtime_loader"
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 shlibpath_var=LIBRARY_PATH
10692 shlibpath_overrides_runpath=yes
10693 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10694 hardcode_into_libs=yes
10695 ;;
10696
10697 hpux9* | hpux10* | hpux11*)
10698 # Give a soname corresponding to the major version so that dld.sl refuses to
10699 # link against other versions.
10700 version_type=sunos
10701 need_lib_prefix=no
10702 need_version=no
10703 case $host_cpu in
10704 ia64*)
10705 shrext_cmds='.so'
10706 hardcode_into_libs=yes
10707 dynamic_linker="$host_os dld.so"
10708 shlibpath_var=LD_LIBRARY_PATH
10709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 if test "X$HPUX_IA64_MODE" = X32; then
10713 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10714 else
10715 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10716 fi
10717 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10718 ;;
10719 hppa*64*)
10720 shrext_cmds='.sl'
10721 hardcode_into_libs=yes
10722 dynamic_linker="$host_os dld.sl"
10723 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10724 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10729 ;;
10730 *)
10731 shrext_cmds='.sl'
10732 dynamic_linker="$host_os dld.sl"
10733 shlibpath_var=SHLIB_PATH
10734 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10736 soname_spec='${libname}${release}${shared_ext}$major'
10737 ;;
10738 esac
10739 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10740 postinstall_cmds='chmod 555 $lib'
10741 # or fails outright, so override atomically:
10742 install_override_mode=555
10743 ;;
10744
10745 interix[3-9]*)
10746 version_type=linux
10747 need_lib_prefix=no
10748 need_version=no
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=no
10754 hardcode_into_libs=yes
10755 ;;
10756
10757 irix5* | irix6* | nonstopux*)
10758 case $host_os in
10759 nonstopux*) version_type=nonstopux ;;
10760 *)
10761 if test "$lt_cv_prog_gnu_ld" = yes; then
10762 version_type=linux
10763 else
10764 version_type=irix
10765 fi ;;
10766 esac
10767 need_lib_prefix=no
10768 need_version=no
10769 soname_spec='${libname}${release}${shared_ext}$major'
10770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10771 case $host_os in
10772 irix5* | nonstopux*)
10773 libsuff= shlibsuff=
10774 ;;
10775 *)
10776 case $LD in # libtool.m4 will add one of these switches to LD
10777 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10778 libsuff= shlibsuff= libmagic=32-bit;;
10779 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10780 libsuff=32 shlibsuff=N32 libmagic=N32;;
10781 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10782 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10783 *) libsuff= shlibsuff= libmagic=never-match;;
10784 esac
10785 ;;
10786 esac
10787 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10788 shlibpath_overrides_runpath=no
10789 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10790 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10791 hardcode_into_libs=yes
10792 ;;
10793
10794 # No shared lib support for Linux oldld, aout, or coff.
10795 linux*oldld* | linux*aout* | linux*coff*)
10796 dynamic_linker=no
10797 ;;
10798
10799 # This must be Linux ELF.
10800 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10801 version_type=linux
10802 need_lib_prefix=no
10803 need_version=no
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 soname_spec='${libname}${release}${shared_ext}$major'
10806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 shlibpath_overrides_runpath=no
10809
10810 # Some binutils ld are patched to set DT_RUNPATH
10811 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 lt_cv_shlibpath_overrides_runpath=no
10815 save_LDFLAGS=$LDFLAGS
10816 save_libdir=$libdir
10817 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10818 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10820 /* end confdefs.h. */
10821
10822 int
10823 main ()
10824 {
10825
10826 ;
10827 return 0;
10828 }
10829 _ACEOF
10830 if ac_fn_c_try_link "$LINENO"; then :
10831 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10832 lt_cv_shlibpath_overrides_runpath=yes
10833 fi
10834 fi
10835 rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837 LDFLAGS=$save_LDFLAGS
10838 libdir=$save_libdir
10839
10840 fi
10841
10842 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10843
10844 # This implies no fast_install, which is unacceptable.
10845 # Some rework will be needed to allow for fast_install
10846 # before this can be enabled.
10847 hardcode_into_libs=yes
10848
10849 # Append ld.so.conf contents to the search path
10850 if test -f /etc/ld.so.conf; then
10851 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' ' '`
10852 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10853 fi
10854
10855 # We used to test for /lib/ld.so.1 and disable shared libraries on
10856 # powerpc, because MkLinux only supported shared libraries with the
10857 # GNU dynamic linker. Since this was broken with cross compilers,
10858 # most powerpc-linux boxes support dynamic linking these days and
10859 # people can always --disable-shared, the test was removed, and we
10860 # assume the GNU/Linux dynamic linker is in use.
10861 dynamic_linker='GNU/Linux ld.so'
10862 ;;
10863
10864 netbsd*)
10865 version_type=sunos
10866 need_lib_prefix=no
10867 need_version=no
10868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10870 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10871 dynamic_linker='NetBSD (a.out) ld.so'
10872 else
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10874 soname_spec='${libname}${release}${shared_ext}$major'
10875 dynamic_linker='NetBSD ld.elf_so'
10876 fi
10877 shlibpath_var=LD_LIBRARY_PATH
10878 shlibpath_overrides_runpath=yes
10879 hardcode_into_libs=yes
10880 ;;
10881
10882 newsos6)
10883 version_type=linux
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes
10887 ;;
10888
10889 *nto* | *qnx*)
10890 version_type=qnx
10891 need_lib_prefix=no
10892 need_version=no
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 shlibpath_var=LD_LIBRARY_PATH
10896 shlibpath_overrides_runpath=no
10897 hardcode_into_libs=yes
10898 dynamic_linker='ldqnx.so'
10899 ;;
10900
10901 openbsd*)
10902 version_type=sunos
10903 sys_lib_dlsearch_path_spec="/usr/lib"
10904 need_lib_prefix=no
10905 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10906 case $host_os in
10907 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10908 *) need_version=no ;;
10909 esac
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10914 case $host_os in
10915 openbsd2.[89] | openbsd2.[89].*)
10916 shlibpath_overrides_runpath=no
10917 ;;
10918 *)
10919 shlibpath_overrides_runpath=yes
10920 ;;
10921 esac
10922 else
10923 shlibpath_overrides_runpath=yes
10924 fi
10925 ;;
10926
10927 os2*)
10928 libname_spec='$name'
10929 shrext_cmds=".dll"
10930 need_lib_prefix=no
10931 library_names_spec='$libname${shared_ext} $libname.a'
10932 dynamic_linker='OS/2 ld.exe'
10933 shlibpath_var=LIBPATH
10934 ;;
10935
10936 osf3* | osf4* | osf5*)
10937 version_type=osf
10938 need_lib_prefix=no
10939 need_version=no
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10944 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10945 ;;
10946
10947 rdos*)
10948 dynamic_linker=no
10949 ;;
10950
10951 solaris*)
10952 version_type=linux
10953 need_lib_prefix=no
10954 need_version=no
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=yes
10959 hardcode_into_libs=yes
10960 # ldd complains unless libraries are executable
10961 postinstall_cmds='chmod +x $lib'
10962 ;;
10963
10964 sunos4*)
10965 version_type=sunos
10966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10967 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes
10970 if test "$with_gnu_ld" = yes; then
10971 need_lib_prefix=no
10972 fi
10973 need_version=yes
10974 ;;
10975
10976 sysv4 | sysv4.3*)
10977 version_type=linux
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 shlibpath_var=LD_LIBRARY_PATH
10981 case $host_vendor in
10982 sni)
10983 shlibpath_overrides_runpath=no
10984 need_lib_prefix=no
10985 runpath_var=LD_RUN_PATH
10986 ;;
10987 siemens)
10988 need_lib_prefix=no
10989 ;;
10990 motorola)
10991 need_lib_prefix=no
10992 need_version=no
10993 shlibpath_overrides_runpath=no
10994 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10995 ;;
10996 esac
10997 ;;
10998
10999 sysv4*MP*)
11000 if test -d /usr/nec ;then
11001 version_type=linux
11002 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11003 soname_spec='$libname${shared_ext}.$major'
11004 shlibpath_var=LD_LIBRARY_PATH
11005 fi
11006 ;;
11007
11008 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11009 version_type=freebsd-elf
11010 need_lib_prefix=no
11011 need_version=no
11012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11013 soname_spec='${libname}${release}${shared_ext}$major'
11014 shlibpath_var=LD_LIBRARY_PATH
11015 shlibpath_overrides_runpath=yes
11016 hardcode_into_libs=yes
11017 if test "$with_gnu_ld" = yes; then
11018 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11019 else
11020 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11021 case $host_os in
11022 sco3.2v5*)
11023 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11024 ;;
11025 esac
11026 fi
11027 sys_lib_dlsearch_path_spec='/usr/lib'
11028 ;;
11029
11030 tpf*)
11031 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11032 version_type=linux
11033 need_lib_prefix=no
11034 need_version=no
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 shlibpath_overrides_runpath=no
11038 hardcode_into_libs=yes
11039 ;;
11040
11041 uts4*)
11042 version_type=linux
11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044 soname_spec='${libname}${release}${shared_ext}$major'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 ;;
11047
11048 *)
11049 dynamic_linker=no
11050 ;;
11051 esac
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11053 $as_echo "$dynamic_linker" >&6; }
11054 test "$dynamic_linker" = no && can_build_shared=no
11055
11056 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11057 if test "$GCC" = yes; then
11058 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11059 fi
11060
11061 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11062 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11063 fi
11064 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11065 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11066 fi
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11160 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11161 hardcode_action=
11162 if test -n "$hardcode_libdir_flag_spec" ||
11163 test -n "$runpath_var" ||
11164 test "X$hardcode_automatic" = "Xyes" ; then
11165
11166 # We can hardcode non-existent directories.
11167 if test "$hardcode_direct" != no &&
11168 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11169 # have to relink, otherwise we might link with an installed library
11170 # when we should be linking with a yet-to-be-installed one
11171 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11172 test "$hardcode_minus_L" != no; then
11173 # Linking always hardcodes the temporary library directory.
11174 hardcode_action=relink
11175 else
11176 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11177 hardcode_action=immediate
11178 fi
11179 else
11180 # We cannot hardcode anything, or else we can only hardcode existing
11181 # directories.
11182 hardcode_action=unsupported
11183 fi
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11185 $as_echo "$hardcode_action" >&6; }
11186
11187 if test "$hardcode_action" = relink ||
11188 test "$inherit_rpath" = yes; then
11189 # Fast installation is not supported
11190 enable_fast_install=no
11191 elif test "$shlibpath_overrides_runpath" = yes ||
11192 test "$enable_shared" = no; then
11193 # Fast installation is not necessary
11194 enable_fast_install=needless
11195 fi
11196
11197
11198
11199
11200
11201
11202 if test "x$enable_dlopen" != xyes; then
11203 enable_dlopen=unknown
11204 enable_dlopen_self=unknown
11205 enable_dlopen_self_static=unknown
11206 else
11207 lt_cv_dlopen=no
11208 lt_cv_dlopen_libs=
11209
11210 case $host_os in
11211 beos*)
11212 lt_cv_dlopen="load_add_on"
11213 lt_cv_dlopen_libs=
11214 lt_cv_dlopen_self=yes
11215 ;;
11216
11217 mingw* | pw32* | cegcc*)
11218 lt_cv_dlopen="LoadLibrary"
11219 lt_cv_dlopen_libs=
11220 ;;
11221
11222 cygwin*)
11223 lt_cv_dlopen="dlopen"
11224 lt_cv_dlopen_libs=
11225 ;;
11226
11227 darwin*)
11228 # if libdl is installed we need to link against it
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11230 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11231 if ${ac_cv_lib_dl_dlopen+:} false; then :
11232 $as_echo_n "(cached) " >&6
11233 else
11234 ac_check_lib_save_LIBS=$LIBS
11235 LIBS="-ldl $LIBS"
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238
11239 /* Override any GCC internal prototype to avoid an error.
11240 Use char because int might match the return type of a GCC
11241 builtin and then its argument prototype would still apply. */
11242 #ifdef __cplusplus
11243 extern "C"
11244 #endif
11245 char dlopen ();
11246 int
11247 main ()
11248 {
11249 return dlopen ();
11250 ;
11251 return 0;
11252 }
11253 _ACEOF
11254 if ac_fn_c_try_link "$LINENO"; then :
11255 ac_cv_lib_dl_dlopen=yes
11256 else
11257 ac_cv_lib_dl_dlopen=no
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext conftest.$ac_ext
11261 LIBS=$ac_check_lib_save_LIBS
11262 fi
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11264 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11265 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11267 else
11268
11269 lt_cv_dlopen="dyld"
11270 lt_cv_dlopen_libs=
11271 lt_cv_dlopen_self=yes
11272
11273 fi
11274
11275 ;;
11276
11277 *)
11278 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11279 if test "x$ac_cv_func_shl_load" = xyes; then :
11280 lt_cv_dlopen="shl_load"
11281 else
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11283 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11284 if ${ac_cv_lib_dld_shl_load+:} false; then :
11285 $as_echo_n "(cached) " >&6
11286 else
11287 ac_check_lib_save_LIBS=$LIBS
11288 LIBS="-ldld $LIBS"
11289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290 /* end confdefs.h. */
11291
11292 /* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11295 #ifdef __cplusplus
11296 extern "C"
11297 #endif
11298 char shl_load ();
11299 int
11300 main ()
11301 {
11302 return shl_load ();
11303 ;
11304 return 0;
11305 }
11306 _ACEOF
11307 if ac_fn_c_try_link "$LINENO"; then :
11308 ac_cv_lib_dld_shl_load=yes
11309 else
11310 ac_cv_lib_dld_shl_load=no
11311 fi
11312 rm -f core conftest.err conftest.$ac_objext \
11313 conftest$ac_exeext conftest.$ac_ext
11314 LIBS=$ac_check_lib_save_LIBS
11315 fi
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11317 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11318 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11319 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11320 else
11321 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11322 if test "x$ac_cv_func_dlopen" = xyes; then :
11323 lt_cv_dlopen="dlopen"
11324 else
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11326 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11327 if ${ac_cv_lib_dl_dlopen+:} false; then :
11328 $as_echo_n "(cached) " >&6
11329 else
11330 ac_check_lib_save_LIBS=$LIBS
11331 LIBS="-ldl $LIBS"
11332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11333 /* end confdefs.h. */
11334
11335 /* Override any GCC internal prototype to avoid an error.
11336 Use char because int might match the return type of a GCC
11337 builtin and then its argument prototype would still apply. */
11338 #ifdef __cplusplus
11339 extern "C"
11340 #endif
11341 char dlopen ();
11342 int
11343 main ()
11344 {
11345 return dlopen ();
11346 ;
11347 return 0;
11348 }
11349 _ACEOF
11350 if ac_fn_c_try_link "$LINENO"; then :
11351 ac_cv_lib_dl_dlopen=yes
11352 else
11353 ac_cv_lib_dl_dlopen=no
11354 fi
11355 rm -f core conftest.err conftest.$ac_objext \
11356 conftest$ac_exeext conftest.$ac_ext
11357 LIBS=$ac_check_lib_save_LIBS
11358 fi
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11360 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11361 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11363 else
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11365 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11366 if ${ac_cv_lib_svld_dlopen+:} false; then :
11367 $as_echo_n "(cached) " >&6
11368 else
11369 ac_check_lib_save_LIBS=$LIBS
11370 LIBS="-lsvld $LIBS"
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373
11374 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 char dlopen ();
11381 int
11382 main ()
11383 {
11384 return dlopen ();
11385 ;
11386 return 0;
11387 }
11388 _ACEOF
11389 if ac_fn_c_try_link "$LINENO"; then :
11390 ac_cv_lib_svld_dlopen=yes
11391 else
11392 ac_cv_lib_svld_dlopen=no
11393 fi
11394 rm -f core conftest.err conftest.$ac_objext \
11395 conftest$ac_exeext conftest.$ac_ext
11396 LIBS=$ac_check_lib_save_LIBS
11397 fi
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11399 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11400 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11401 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11402 else
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11404 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11405 if ${ac_cv_lib_dld_dld_link+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 ac_check_lib_save_LIBS=$LIBS
11409 LIBS="-ldld $LIBS"
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11412
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char dld_link ();
11420 int
11421 main ()
11422 {
11423 return dld_link ();
11424 ;
11425 return 0;
11426 }
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429 ac_cv_lib_dld_dld_link=yes
11430 else
11431 ac_cv_lib_dld_dld_link=no
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11438 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11439 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11440 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11441 fi
11442
11443
11444 fi
11445
11446
11447 fi
11448
11449
11450 fi
11451
11452
11453 fi
11454
11455
11456 fi
11457
11458 ;;
11459 esac
11460
11461 if test "x$lt_cv_dlopen" != xno; then
11462 enable_dlopen=yes
11463 else
11464 enable_dlopen=no
11465 fi
11466
11467 case $lt_cv_dlopen in
11468 dlopen)
11469 save_CPPFLAGS="$CPPFLAGS"
11470 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11471
11472 save_LDFLAGS="$LDFLAGS"
11473 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11474
11475 save_LIBS="$LIBS"
11476 LIBS="$lt_cv_dlopen_libs $LIBS"
11477
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11479 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11480 if ${lt_cv_dlopen_self+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 if test "$cross_compiling" = yes; then :
11484 lt_cv_dlopen_self=cross
11485 else
11486 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11487 lt_status=$lt_dlunknown
11488 cat > conftest.$ac_ext <<_LT_EOF
11489 #line 11489 "configure"
11490 #include "confdefs.h"
11491
11492 #if HAVE_DLFCN_H
11493 #include <dlfcn.h>
11494 #endif
11495
11496 #include <stdio.h>
11497
11498 #ifdef RTLD_GLOBAL
11499 # define LT_DLGLOBAL RTLD_GLOBAL
11500 #else
11501 # ifdef DL_GLOBAL
11502 # define LT_DLGLOBAL DL_GLOBAL
11503 # else
11504 # define LT_DLGLOBAL 0
11505 # endif
11506 #endif
11507
11508 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11509 find out it does not work in some platform. */
11510 #ifndef LT_DLLAZY_OR_NOW
11511 # ifdef RTLD_LAZY
11512 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11513 # else
11514 # ifdef DL_LAZY
11515 # define LT_DLLAZY_OR_NOW DL_LAZY
11516 # else
11517 # ifdef RTLD_NOW
11518 # define LT_DLLAZY_OR_NOW RTLD_NOW
11519 # else
11520 # ifdef DL_NOW
11521 # define LT_DLLAZY_OR_NOW DL_NOW
11522 # else
11523 # define LT_DLLAZY_OR_NOW 0
11524 # endif
11525 # endif
11526 # endif
11527 # endif
11528 #endif
11529
11530 /* When -fvisbility=hidden is used, assume the code has been annotated
11531 correspondingly for the symbols needed. */
11532 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11533 void fnord () __attribute__((visibility("default")));
11534 #endif
11535
11536 void fnord () { int i=42; }
11537 int main ()
11538 {
11539 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11540 int status = $lt_dlunknown;
11541
11542 if (self)
11543 {
11544 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11545 else
11546 {
11547 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11548 else puts (dlerror ());
11549 }
11550 /* dlclose (self); */
11551 }
11552 else
11553 puts (dlerror ());
11554
11555 return status;
11556 }
11557 _LT_EOF
11558 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11559 (eval $ac_link) 2>&5
11560 ac_status=$?
11561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11562 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11563 (./conftest; exit; ) >&5 2>/dev/null
11564 lt_status=$?
11565 case x$lt_status in
11566 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11567 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11568 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11569 esac
11570 else :
11571 # compilation failed
11572 lt_cv_dlopen_self=no
11573 fi
11574 fi
11575 rm -fr conftest*
11576
11577
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11580 $as_echo "$lt_cv_dlopen_self" >&6; }
11581
11582 if test "x$lt_cv_dlopen_self" = xyes; then
11583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11585 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11586 if ${lt_cv_dlopen_self_static+:} false; then :
11587 $as_echo_n "(cached) " >&6
11588 else
11589 if test "$cross_compiling" = yes; then :
11590 lt_cv_dlopen_self_static=cross
11591 else
11592 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11593 lt_status=$lt_dlunknown
11594 cat > conftest.$ac_ext <<_LT_EOF
11595 #line 11595 "configure"
11596 #include "confdefs.h"
11597
11598 #if HAVE_DLFCN_H
11599 #include <dlfcn.h>
11600 #endif
11601
11602 #include <stdio.h>
11603
11604 #ifdef RTLD_GLOBAL
11605 # define LT_DLGLOBAL RTLD_GLOBAL
11606 #else
11607 # ifdef DL_GLOBAL
11608 # define LT_DLGLOBAL DL_GLOBAL
11609 # else
11610 # define LT_DLGLOBAL 0
11611 # endif
11612 #endif
11613
11614 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11615 find out it does not work in some platform. */
11616 #ifndef LT_DLLAZY_OR_NOW
11617 # ifdef RTLD_LAZY
11618 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11619 # else
11620 # ifdef DL_LAZY
11621 # define LT_DLLAZY_OR_NOW DL_LAZY
11622 # else
11623 # ifdef RTLD_NOW
11624 # define LT_DLLAZY_OR_NOW RTLD_NOW
11625 # else
11626 # ifdef DL_NOW
11627 # define LT_DLLAZY_OR_NOW DL_NOW
11628 # else
11629 # define LT_DLLAZY_OR_NOW 0
11630 # endif
11631 # endif
11632 # endif
11633 # endif
11634 #endif
11635
11636 /* When -fvisbility=hidden is used, assume the code has been annotated
11637 correspondingly for the symbols needed. */
11638 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11639 void fnord () __attribute__((visibility("default")));
11640 #endif
11641
11642 void fnord () { int i=42; }
11643 int main ()
11644 {
11645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11646 int status = $lt_dlunknown;
11647
11648 if (self)
11649 {
11650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11651 else
11652 {
11653 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11654 else puts (dlerror ());
11655 }
11656 /* dlclose (self); */
11657 }
11658 else
11659 puts (dlerror ());
11660
11661 return status;
11662 }
11663 _LT_EOF
11664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11665 (eval $ac_link) 2>&5
11666 ac_status=$?
11667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11668 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11669 (./conftest; exit; ) >&5 2>/dev/null
11670 lt_status=$?
11671 case x$lt_status in
11672 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11673 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11674 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11675 esac
11676 else :
11677 # compilation failed
11678 lt_cv_dlopen_self_static=no
11679 fi
11680 fi
11681 rm -fr conftest*
11682
11683
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11686 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11687 fi
11688
11689 CPPFLAGS="$save_CPPFLAGS"
11690 LDFLAGS="$save_LDFLAGS"
11691 LIBS="$save_LIBS"
11692 ;;
11693 esac
11694
11695 case $lt_cv_dlopen_self in
11696 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11697 *) enable_dlopen_self=unknown ;;
11698 esac
11699
11700 case $lt_cv_dlopen_self_static in
11701 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11702 *) enable_dlopen_self_static=unknown ;;
11703 esac
11704 fi
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722 striplib=
11723 old_striplib=
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11725 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11726 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11727 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11728 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11730 $as_echo "yes" >&6; }
11731 else
11732 # FIXME - insert some real tests, host_os isn't really good enough
11733 case $host_os in
11734 darwin*)
11735 if test -n "$STRIP" ; then
11736 striplib="$STRIP -x"
11737 old_striplib="$STRIP -S"
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11739 $as_echo "yes" >&6; }
11740 else
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742 $as_echo "no" >&6; }
11743 fi
11744 ;;
11745 *)
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747 $as_echo "no" >&6; }
11748 ;;
11749 esac
11750 fi
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763 # Report which library types will actually be built
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11765 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11767 $as_echo "$can_build_shared" >&6; }
11768
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11770 $as_echo_n "checking whether to build shared libraries... " >&6; }
11771 test "$can_build_shared" = "no" && enable_shared=no
11772
11773 # On AIX, shared libraries and static libraries use the same namespace, and
11774 # are all built from PIC.
11775 case $host_os in
11776 aix3*)
11777 test "$enable_shared" = yes && enable_static=no
11778 if test -n "$RANLIB"; then
11779 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11780 postinstall_cmds='$RANLIB $lib'
11781 fi
11782 ;;
11783
11784 aix[4-9]*)
11785 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11786 test "$enable_shared" = yes && enable_static=no
11787 fi
11788 ;;
11789 esac
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11791 $as_echo "$enable_shared" >&6; }
11792
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11794 $as_echo_n "checking whether to build static libraries... " >&6; }
11795 # Make sure either enable_shared or enable_static is yes.
11796 test "$enable_shared" = yes || enable_static=yes
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11798 $as_echo "$enable_static" >&6; }
11799
11800
11801
11802
11803 fi
11804 ac_ext=c
11805 ac_cpp='$CPP $CPPFLAGS'
11806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11809
11810 CC="$lt_save_CC"
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824 # Source file extension for Go test sources.
11825 ac_ext=go
11826
11827 # Object file extension for compiled Go test sources.
11828 objext=o
11829 objext_GO=$objext
11830
11831 # Code to be used in simple compile tests
11832 lt_simple_compile_test_code="package main; func main() { }"
11833
11834 # Code to be used in simple link tests
11835 lt_simple_link_test_code='package main; func main() { }'
11836
11837 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11838
11839
11840
11841
11842
11843
11844 # If no C compiler was specified, use CC.
11845 LTCC=${LTCC-"$CC"}
11846
11847 # If no C compiler flags were specified, use CFLAGS.
11848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11849
11850 # Allow CC to be a program name with arguments.
11851 compiler=$CC
11852
11853
11854 # save warnings/boilerplate of simple test code
11855 ac_outfile=conftest.$ac_objext
11856 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11858 _lt_compiler_boilerplate=`cat conftest.err`
11859 $RM conftest*
11860
11861 ac_outfile=conftest.$ac_objext
11862 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11864 _lt_linker_boilerplate=`cat conftest.err`
11865 $RM -r conftest*
11866
11867
11868 # Allow CC to be a program name with arguments.
11869 lt_save_CC="$CC"
11870 lt_save_GCC="$GCC"
11871 GCC=yes
11872 CC=${GOC-"gccgo"}
11873 compiler=$CC
11874 compiler_GO=$CC
11875 LD_GO="$LD"
11876 for cc_temp in $compiler""; do
11877 case $cc_temp in
11878 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11879 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11880 \-*) ;;
11881 *) break;;
11882 esac
11883 done
11884 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11885
11886
11887 # Go did not exist at the time GCC didn't implicitly link libc in.
11888 archive_cmds_need_lc_GO=no
11889
11890 old_archive_cmds_GO=$old_archive_cmds
11891
11892 ## CAVEAT EMPTOR:
11893 ## There is no encapsulation within the following macros, do not change
11894 ## the running order or otherwise move them around unless you know exactly
11895 ## what you are doing...
11896 if test -n "$compiler"; then
11897
11898 lt_prog_compiler_no_builtin_flag_GO=
11899
11900 if test "$GCC" = yes; then
11901 case $cc_basename in
11902 nvcc*)
11903 lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11904 *)
11905 lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11906 esac
11907
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11909 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11910 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11911 $as_echo_n "(cached) " >&6
11912 else
11913 lt_cv_prog_compiler_rtti_exceptions=no
11914 ac_outfile=conftest.$ac_objext
11915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11916 lt_compiler_flag="-fno-rtti -fno-exceptions"
11917 # Insert the option either (1) after the last *FLAGS variable, or
11918 # (2) before a word containing "conftest.", or (3) at the end.
11919 # Note that $ac_compile itself does not contain backslashes and begins
11920 # with a dollar sign (not a hyphen), so the echo should work correctly.
11921 # The option is referenced via a variable to avoid confusing sed.
11922 lt_compile=`echo "$ac_compile" | $SED \
11923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11925 -e 's:$: $lt_compiler_flag:'`
11926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11927 (eval "$lt_compile" 2>conftest.err)
11928 ac_status=$?
11929 cat conftest.err >&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 if (exit $ac_status) && test -s "$ac_outfile"; then
11932 # The compiler can only warn and ignore the option if not recognized
11933 # So say no if there are warnings other than the usual output.
11934 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11935 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11936 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11937 lt_cv_prog_compiler_rtti_exceptions=yes
11938 fi
11939 fi
11940 $RM conftest*
11941
11942 fi
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11944 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11945
11946 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11947 lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11948 else
11949 :
11950 fi
11951
11952 fi
11953
11954
11955
11956 lt_prog_compiler_wl_GO=
11957 lt_prog_compiler_pic_GO=
11958 lt_prog_compiler_static_GO=
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11961 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11962
11963 if test "$GCC" = yes; then
11964 lt_prog_compiler_wl_GO='-Wl,'
11965 lt_prog_compiler_static_GO='-static'
11966
11967 case $host_os in
11968 aix*)
11969 # All AIX code is PIC.
11970 if test "$host_cpu" = ia64; then
11971 # AIX 5 now supports IA64 processor
11972 lt_prog_compiler_static_GO='-Bstatic'
11973 fi
11974 lt_prog_compiler_pic_GO='-fPIC'
11975 ;;
11976
11977 amigaos*)
11978 case $host_cpu in
11979 powerpc)
11980 # see comment about AmigaOS4 .so support
11981 lt_prog_compiler_pic_GO='-fPIC'
11982 ;;
11983 m68k)
11984 # FIXME: we need at least 68020 code to build shared libraries, but
11985 # adding the `-m68020' flag to GCC prevents building anything better,
11986 # like `-m68040'.
11987 lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11988 ;;
11989 esac
11990 ;;
11991
11992 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11993 # PIC is the default for these OSes.
11994 ;;
11995
11996 mingw* | cygwin* | pw32* | os2* | cegcc*)
11997 # This hack is so that the source file can tell whether it is being
11998 # built for inclusion in a dll (and should export symbols for example).
11999 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12000 # (--disable-auto-import) libraries
12001 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12002 ;;
12003
12004 darwin* | rhapsody*)
12005 # PIC is the default on this platform
12006 # Common symbols not allowed in MH_DYLIB files
12007 lt_prog_compiler_pic_GO='-fno-common'
12008 ;;
12009
12010 haiku*)
12011 # PIC is the default for Haiku.
12012 # The "-static" flag exists, but is broken.
12013 lt_prog_compiler_static_GO=
12014 ;;
12015
12016 hpux*)
12017 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12018 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12019 # sets the default TLS model and affects inlining.
12020 case $host_cpu in
12021 hppa*64*)
12022 # +Z the default
12023 ;;
12024 *)
12025 lt_prog_compiler_pic_GO='-fPIC'
12026 ;;
12027 esac
12028 ;;
12029
12030 interix[3-9]*)
12031 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12032 # Instead, we relocate shared libraries at runtime.
12033 ;;
12034
12035 msdosdjgpp*)
12036 # Just because we use GCC doesn't mean we suddenly get shared libraries
12037 # on systems that don't support them.
12038 lt_prog_compiler_can_build_shared_GO=no
12039 enable_shared=no
12040 ;;
12041
12042 *nto* | *qnx*)
12043 # QNX uses GNU C++, but need to define -shared option too, otherwise
12044 # it will coredump.
12045 lt_prog_compiler_pic_GO='-fPIC -shared'
12046 ;;
12047
12048 sysv4*MP*)
12049 if test -d /usr/nec; then
12050 lt_prog_compiler_pic_GO=-Kconform_pic
12051 fi
12052 ;;
12053
12054 *)
12055 lt_prog_compiler_pic_GO='-fPIC'
12056 ;;
12057 esac
12058
12059 case $cc_basename in
12060 nvcc*) # Cuda Compiler Driver 2.2
12061 lt_prog_compiler_wl_GO='-Xlinker '
12062 lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
12063 ;;
12064 esac
12065 else
12066 # PORTME Check for flag to pass linker flags through the system compiler.
12067 case $host_os in
12068 aix*)
12069 lt_prog_compiler_wl_GO='-Wl,'
12070 if test "$host_cpu" = ia64; then
12071 # AIX 5 now supports IA64 processor
12072 lt_prog_compiler_static_GO='-Bstatic'
12073 else
12074 lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
12075 fi
12076 ;;
12077
12078 mingw* | cygwin* | pw32* | os2* | cegcc*)
12079 # This hack is so that the source file can tell whether it is being
12080 # built for inclusion in a dll (and should export symbols for example).
12081 lt_prog_compiler_pic_GO='-DDLL_EXPORT'
12082 ;;
12083
12084 hpux9* | hpux10* | hpux11*)
12085 lt_prog_compiler_wl_GO='-Wl,'
12086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12087 # not for PA HP-UX.
12088 case $host_cpu in
12089 hppa*64*|ia64*)
12090 # +Z the default
12091 ;;
12092 *)
12093 lt_prog_compiler_pic_GO='+Z'
12094 ;;
12095 esac
12096 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12097 lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
12098 ;;
12099
12100 irix5* | irix6* | nonstopux*)
12101 lt_prog_compiler_wl_GO='-Wl,'
12102 # PIC (with -KPIC) is the default.
12103 lt_prog_compiler_static_GO='-non_shared'
12104 ;;
12105
12106 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12107 case $cc_basename in
12108 # old Intel for x86_64 which still supported -KPIC.
12109 ecc*)
12110 lt_prog_compiler_wl_GO='-Wl,'
12111 lt_prog_compiler_pic_GO='-KPIC'
12112 lt_prog_compiler_static_GO='-static'
12113 ;;
12114 # icc used to be incompatible with GCC.
12115 # ICC 10 doesn't accept -KPIC any more.
12116 icc* | ifort*)
12117 lt_prog_compiler_wl_GO='-Wl,'
12118 lt_prog_compiler_pic_GO='-fPIC'
12119 lt_prog_compiler_static_GO='-static'
12120 ;;
12121 # Lahey Fortran 8.1.
12122 lf95*)
12123 lt_prog_compiler_wl_GO='-Wl,'
12124 lt_prog_compiler_pic_GO='--shared'
12125 lt_prog_compiler_static_GO='--static'
12126 ;;
12127 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12128 # Portland Group compilers (*not* the Pentium gcc compiler,
12129 # which looks to be a dead project)
12130 lt_prog_compiler_wl_GO='-Wl,'
12131 lt_prog_compiler_pic_GO='-fpic'
12132 lt_prog_compiler_static_GO='-Bstatic'
12133 ;;
12134 ccc*)
12135 lt_prog_compiler_wl_GO='-Wl,'
12136 # All Alpha code is PIC.
12137 lt_prog_compiler_static_GO='-non_shared'
12138 ;;
12139 xl* | bgxl* | bgf* | mpixl*)
12140 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12141 lt_prog_compiler_wl_GO='-Wl,'
12142 lt_prog_compiler_pic_GO='-qpic'
12143 lt_prog_compiler_static_GO='-qstaticlink'
12144 ;;
12145 *)
12146 case `$CC -V 2>&1 | sed 5q` in
12147 *Sun\ F* | *Sun*Fortran*)
12148 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12149 lt_prog_compiler_pic_GO='-KPIC'
12150 lt_prog_compiler_static_GO='-Bstatic'
12151 lt_prog_compiler_wl_GO=''
12152 ;;
12153 *Sun\ C*)
12154 # Sun C 5.9
12155 lt_prog_compiler_pic_GO='-KPIC'
12156 lt_prog_compiler_static_GO='-Bstatic'
12157 lt_prog_compiler_wl_GO='-Wl,'
12158 ;;
12159 esac
12160 ;;
12161 esac
12162 ;;
12163
12164 newsos6)
12165 lt_prog_compiler_pic_GO='-KPIC'
12166 lt_prog_compiler_static_GO='-Bstatic'
12167 ;;
12168
12169 *nto* | *qnx*)
12170 # QNX uses GNU C++, but need to define -shared option too, otherwise
12171 # it will coredump.
12172 lt_prog_compiler_pic_GO='-fPIC -shared'
12173 ;;
12174
12175 osf3* | osf4* | osf5*)
12176 lt_prog_compiler_wl_GO='-Wl,'
12177 # All OSF/1 code is PIC.
12178 lt_prog_compiler_static_GO='-non_shared'
12179 ;;
12180
12181 rdos*)
12182 lt_prog_compiler_static_GO='-non_shared'
12183 ;;
12184
12185 solaris*)
12186 lt_prog_compiler_pic_GO='-KPIC'
12187 lt_prog_compiler_static_GO='-Bstatic'
12188 case $cc_basename in
12189 f77* | f90* | f95*)
12190 lt_prog_compiler_wl_GO='-Qoption ld ';;
12191 *)
12192 lt_prog_compiler_wl_GO='-Wl,';;
12193 esac
12194 ;;
12195
12196 sunos4*)
12197 lt_prog_compiler_wl_GO='-Qoption ld '
12198 lt_prog_compiler_pic_GO='-PIC'
12199 lt_prog_compiler_static_GO='-Bstatic'
12200 ;;
12201
12202 sysv4 | sysv4.2uw2* | sysv4.3*)
12203 lt_prog_compiler_wl_GO='-Wl,'
12204 lt_prog_compiler_pic_GO='-KPIC'
12205 lt_prog_compiler_static_GO='-Bstatic'
12206 ;;
12207
12208 sysv4*MP*)
12209 if test -d /usr/nec ;then
12210 lt_prog_compiler_pic_GO='-Kconform_pic'
12211 lt_prog_compiler_static_GO='-Bstatic'
12212 fi
12213 ;;
12214
12215 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12216 lt_prog_compiler_wl_GO='-Wl,'
12217 lt_prog_compiler_pic_GO='-KPIC'
12218 lt_prog_compiler_static_GO='-Bstatic'
12219 ;;
12220
12221 unicos*)
12222 lt_prog_compiler_wl_GO='-Wl,'
12223 lt_prog_compiler_can_build_shared_GO=no
12224 ;;
12225
12226 uts4*)
12227 lt_prog_compiler_pic_GO='-pic'
12228 lt_prog_compiler_static_GO='-Bstatic'
12229 ;;
12230
12231 *)
12232 lt_prog_compiler_can_build_shared_GO=no
12233 ;;
12234 esac
12235 fi
12236
12237 case $host_os in
12238 # For platforms which do not support PIC, -DPIC is meaningless:
12239 *djgpp*)
12240 lt_prog_compiler_pic_GO=
12241 ;;
12242 *)
12243 lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
12244 ;;
12245 esac
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
12247 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
12248
12249
12250
12251 #
12252 # Check to make sure the PIC flag actually works.
12253 #
12254 if test -n "$lt_prog_compiler_pic_GO"; then
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
12256 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
12257 if ${lt_cv_prog_compiler_pic_works_GO+:} false; then :
12258 $as_echo_n "(cached) " >&6
12259 else
12260 lt_cv_prog_compiler_pic_works_GO=no
12261 ac_outfile=conftest.$ac_objext
12262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12263 lt_compiler_flag="$lt_prog_compiler_pic_GO"
12264 # Insert the option either (1) after the last *FLAGS variable, or
12265 # (2) before a word containing "conftest.", or (3) at the end.
12266 # Note that $ac_compile itself does not contain backslashes and begins
12267 # with a dollar sign (not a hyphen), so the echo should work correctly.
12268 # The option is referenced via a variable to avoid confusing sed.
12269 lt_compile=`echo "$ac_compile" | $SED \
12270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12272 -e 's:$: $lt_compiler_flag:'`
12273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12274 (eval "$lt_compile" 2>conftest.err)
12275 ac_status=$?
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 if (exit $ac_status) && test -s "$ac_outfile"; then
12279 # The compiler can only warn and ignore the option if not recognized
12280 # So say no if there are warnings other than the usual output.
12281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12284 lt_cv_prog_compiler_pic_works_GO=yes
12285 fi
12286 fi
12287 $RM conftest*
12288
12289 fi
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
12291 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
12292
12293 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
12294 case $lt_prog_compiler_pic_GO in
12295 "" | " "*) ;;
12296 *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
12297 esac
12298 else
12299 lt_prog_compiler_pic_GO=
12300 lt_prog_compiler_can_build_shared_GO=no
12301 fi
12302
12303 fi
12304
12305
12306
12307 #
12308 # Check to make sure the static flag actually works.
12309 #
12310 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12312 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12313 if ${lt_cv_prog_compiler_static_works_GO+:} false; then :
12314 $as_echo_n "(cached) " >&6
12315 else
12316 lt_cv_prog_compiler_static_works_GO=no
12317 save_LDFLAGS="$LDFLAGS"
12318 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12319 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12320 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12321 # The linker can only warn and ignore the option if not recognized
12322 # So say no if there are warnings
12323 if test -s conftest.err; then
12324 # Append any errors to the config.log.
12325 cat conftest.err 1>&5
12326 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12328 if diff conftest.exp conftest.er2 >/dev/null; then
12329 lt_cv_prog_compiler_static_works_GO=yes
12330 fi
12331 else
12332 lt_cv_prog_compiler_static_works_GO=yes
12333 fi
12334 fi
12335 $RM -r conftest*
12336 LDFLAGS="$save_LDFLAGS"
12337
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
12340 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
12341
12342 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
12343 :
12344 else
12345 lt_prog_compiler_static_GO=
12346 fi
12347
12348
12349
12350
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12352 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12353 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12354 $as_echo_n "(cached) " >&6
12355 else
12356 lt_cv_prog_compiler_c_o_GO=no
12357 $RM -r conftest 2>/dev/null
12358 mkdir conftest
12359 cd conftest
12360 mkdir out
12361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12362
12363 lt_compiler_flag="-o out/conftest2.$ac_objext"
12364 # Insert the option either (1) after the last *FLAGS variable, or
12365 # (2) before a word containing "conftest.", or (3) at the end.
12366 # Note that $ac_compile itself does not contain backslashes and begins
12367 # with a dollar sign (not a hyphen), so the echo should work correctly.
12368 lt_compile=`echo "$ac_compile" | $SED \
12369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12371 -e 's:$: $lt_compiler_flag:'`
12372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12373 (eval "$lt_compile" 2>out/conftest.err)
12374 ac_status=$?
12375 cat out/conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12378 then
12379 # The compiler can only warn and ignore the option if not recognized
12380 # So say no if there are warnings
12381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12384 lt_cv_prog_compiler_c_o_GO=yes
12385 fi
12386 fi
12387 chmod u+w . 2>&5
12388 $RM conftest*
12389 # SGI C++ compiler will create directory out/ii_files/ for
12390 # template instantiation
12391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12392 $RM out/* && rmdir out
12393 cd ..
12394 $RM -r conftest
12395 $RM conftest*
12396
12397 fi
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12399 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12400
12401
12402
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12404 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12405 if ${lt_cv_prog_compiler_c_o_GO+:} false; then :
12406 $as_echo_n "(cached) " >&6
12407 else
12408 lt_cv_prog_compiler_c_o_GO=no
12409 $RM -r conftest 2>/dev/null
12410 mkdir conftest
12411 cd conftest
12412 mkdir out
12413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12414
12415 lt_compiler_flag="-o out/conftest2.$ac_objext"
12416 # Insert the option either (1) after the last *FLAGS variable, or
12417 # (2) before a word containing "conftest.", or (3) at the end.
12418 # Note that $ac_compile itself does not contain backslashes and begins
12419 # with a dollar sign (not a hyphen), so the echo should work correctly.
12420 lt_compile=`echo "$ac_compile" | $SED \
12421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12423 -e 's:$: $lt_compiler_flag:'`
12424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12425 (eval "$lt_compile" 2>out/conftest.err)
12426 ac_status=$?
12427 cat out/conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12430 then
12431 # The compiler can only warn and ignore the option if not recognized
12432 # So say no if there are warnings
12433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12436 lt_cv_prog_compiler_c_o_GO=yes
12437 fi
12438 fi
12439 chmod u+w . 2>&5
12440 $RM conftest*
12441 # SGI C++ compiler will create directory out/ii_files/ for
12442 # template instantiation
12443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12444 $RM out/* && rmdir out
12445 cd ..
12446 $RM -r conftest
12447 $RM conftest*
12448
12449 fi
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12451 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12452
12453
12454
12455
12456 hard_links="nottested"
12457 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12458 # do not overwrite the value of need_locks provided by the user
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12460 $as_echo_n "checking if we can lock with hard links... " >&6; }
12461 hard_links=yes
12462 $RM conftest*
12463 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12464 touch conftest.a
12465 ln conftest.a conftest.b 2>&5 || hard_links=no
12466 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12468 $as_echo "$hard_links" >&6; }
12469 if test "$hard_links" = no; then
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12471 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12472 need_locks=warn
12473 fi
12474 else
12475 need_locks=no
12476 fi
12477
12478
12479
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12482
12483 runpath_var=
12484 allow_undefined_flag_GO=
12485 always_export_symbols_GO=no
12486 archive_cmds_GO=
12487 archive_expsym_cmds_GO=
12488 compiler_needs_object_GO=no
12489 enable_shared_with_static_runtimes_GO=no
12490 export_dynamic_flag_spec_GO=
12491 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12492 hardcode_automatic_GO=no
12493 hardcode_direct_GO=no
12494 hardcode_direct_absolute_GO=no
12495 hardcode_libdir_flag_spec_GO=
12496 hardcode_libdir_flag_spec_ld_GO=
12497 hardcode_libdir_separator_GO=
12498 hardcode_minus_L_GO=no
12499 hardcode_shlibpath_var_GO=unsupported
12500 inherit_rpath_GO=no
12501 link_all_deplibs_GO=unknown
12502 module_cmds_GO=
12503 module_expsym_cmds_GO=
12504 old_archive_from_new_cmds_GO=
12505 old_archive_from_expsyms_cmds_GO=
12506 thread_safe_flag_spec_GO=
12507 whole_archive_flag_spec_GO=
12508 # include_expsyms should be a list of space-separated symbols to be *always*
12509 # included in the symbol list
12510 include_expsyms_GO=
12511 # exclude_expsyms can be an extended regexp of symbols to exclude
12512 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12513 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12514 # as well as any symbol that contains `d'.
12515 exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12516 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12517 # platforms (ab)use it in PIC code, but their linkers get confused if
12518 # the symbol is explicitly referenced. Since portable code cannot
12519 # rely on this symbol name, it's probably fine to never include it in
12520 # preloaded symbol tables.
12521 # Exclude shared library initialization/finalization symbols.
12522 extract_expsyms_cmds=
12523
12524 case $host_os in
12525 cygwin* | mingw* | pw32* | cegcc*)
12526 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12527 # When not using gcc, we currently assume that we are using
12528 # Microsoft Visual C++.
12529 if test "$GCC" != yes; then
12530 with_gnu_ld=no
12531 fi
12532 ;;
12533 interix*)
12534 # we just hope/assume this is gcc and not c89 (= MSVC++)
12535 with_gnu_ld=yes
12536 ;;
12537 openbsd*)
12538 with_gnu_ld=no
12539 ;;
12540 esac
12541
12542 ld_shlibs_GO=yes
12543
12544 # On some targets, GNU ld is compatible enough with the native linker
12545 # that we're better off using the native interface for both.
12546 lt_use_gnu_ld_interface=no
12547 if test "$with_gnu_ld" = yes; then
12548 case $host_os in
12549 aix*)
12550 # The AIX port of GNU ld has always aspired to compatibility
12551 # with the native linker. However, as the warning in the GNU ld
12552 # block says, versions before 2.19.5* couldn't really create working
12553 # shared libraries, regardless of the interface used.
12554 case `$LD -v 2>&1` in
12555 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12556 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12557 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12558 *)
12559 lt_use_gnu_ld_interface=yes
12560 ;;
12561 esac
12562 ;;
12563 *)
12564 lt_use_gnu_ld_interface=yes
12565 ;;
12566 esac
12567 fi
12568
12569 if test "$lt_use_gnu_ld_interface" = yes; then
12570 # If archive_cmds runs LD, not CC, wlarc should be empty
12571 wlarc='${wl}'
12572
12573 # Set some defaults for GNU ld with shared library support. These
12574 # are reset later if shared libraries are not supported. Putting them
12575 # here allows them to be overridden if necessary.
12576 runpath_var=LD_RUN_PATH
12577 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12578 export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12579 # ancient GNU ld didn't support --whole-archive et. al.
12580 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12581 whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12582 else
12583 whole_archive_flag_spec_GO=
12584 fi
12585 supports_anon_versioning=no
12586 case `$LD -v 2>&1` in
12587 *GNU\ gold*) supports_anon_versioning=yes ;;
12588 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12589 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12590 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12591 *\ 2.11.*) ;; # other 2.11 versions
12592 *) supports_anon_versioning=yes ;;
12593 esac
12594
12595 # See if GNU ld supports shared libraries.
12596 case $host_os in
12597 aix[3-9]*)
12598 # On AIX/PPC, the GNU linker is very broken
12599 if test "$host_cpu" != ia64; then
12600 ld_shlibs_GO=no
12601 cat <<_LT_EOF 1>&2
12602
12603 *** Warning: the GNU linker, at least up to release 2.19, is reported
12604 *** to be unable to reliably create shared libraries on AIX.
12605 *** Therefore, libtool is disabling shared libraries support. If you
12606 *** really care for shared libraries, you may want to install binutils
12607 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12608 *** You will then need to restart the configuration process.
12609
12610 _LT_EOF
12611 fi
12612 ;;
12613
12614 amigaos*)
12615 case $host_cpu in
12616 powerpc)
12617 # see comment about AmigaOS4 .so support
12618 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12619 archive_expsym_cmds_GO=''
12620 ;;
12621 m68k)
12622 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)'
12623 hardcode_libdir_flag_spec_GO='-L$libdir'
12624 hardcode_minus_L_GO=yes
12625 ;;
12626 esac
12627 ;;
12628
12629 beos*)
12630 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12631 allow_undefined_flag_GO=unsupported
12632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12633 # support --undefined. This deserves some investigation. FIXME
12634 archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12635 else
12636 ld_shlibs_GO=no
12637 fi
12638 ;;
12639
12640 cygwin* | mingw* | pw32* | cegcc*)
12641 # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12642 # as there is no search path for DLLs.
12643 hardcode_libdir_flag_spec_GO='-L$libdir'
12644 export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12645 allow_undefined_flag_GO=unsupported
12646 always_export_symbols_GO=no
12647 enable_shared_with_static_runtimes_GO=yes
12648 export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12649
12650 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12651 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12652 # If the export-symbols file already is a .def file (1st line
12653 # is EXPORTS), use it as is; otherwise, prepend...
12654 archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12655 cp $export_symbols $output_objdir/$soname.def;
12656 else
12657 echo EXPORTS > $output_objdir/$soname.def;
12658 cat $export_symbols >> $output_objdir/$soname.def;
12659 fi~
12660 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12661 else
12662 ld_shlibs_GO=no
12663 fi
12664 ;;
12665
12666 haiku*)
12667 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12668 link_all_deplibs_GO=yes
12669 ;;
12670
12671 interix[3-9]*)
12672 hardcode_direct_GO=no
12673 hardcode_shlibpath_var_GO=no
12674 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12675 export_dynamic_flag_spec_GO='${wl}-E'
12676 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12677 # Instead, shared libraries are loaded at an image base (0x10000000 by
12678 # default) and relocated if they conflict, which is a slow very memory
12679 # consuming and fragmenting process. To avoid this, we pick a random,
12680 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12681 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12682 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'
12683 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'
12684 ;;
12685
12686 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12687 tmp_diet=no
12688 if test "$host_os" = linux-dietlibc; then
12689 case $cc_basename in
12690 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12691 esac
12692 fi
12693 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12694 && test "$tmp_diet" = no
12695 then
12696 tmp_addflag=
12697 tmp_sharedflag='-shared'
12698 case $cc_basename,$host_cpu in
12699 pgcc*) # Portland Group C compiler
12700 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'
12701 tmp_addflag=' $pic_flag'
12702 ;;
12703 pgf77* | pgf90* | pgf95* | pgfortran*)
12704 # Portland Group f77 and f90 compilers
12705 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'
12706 tmp_addflag=' $pic_flag -Mnomain' ;;
12707 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12708 tmp_addflag=' -i_dynamic' ;;
12709 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12710 tmp_addflag=' -i_dynamic -nofor_main' ;;
12711 ifc* | ifort*) # Intel Fortran compiler
12712 tmp_addflag=' -nofor_main' ;;
12713 lf95*) # Lahey Fortran 8.1
12714 whole_archive_flag_spec_GO=
12715 tmp_sharedflag='--shared' ;;
12716 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12717 tmp_sharedflag='-qmkshrobj'
12718 tmp_addflag= ;;
12719 nvcc*) # Cuda Compiler Driver 2.2
12720 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'
12721 compiler_needs_object_GO=yes
12722 ;;
12723 esac
12724 case `$CC -V 2>&1 | sed 5q` in
12725 *Sun\ C*) # Sun C 5.9
12726 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'
12727 compiler_needs_object_GO=yes
12728 tmp_sharedflag='-G' ;;
12729 *Sun\ F*) # Sun Fortran 8.3
12730 tmp_sharedflag='-G' ;;
12731 esac
12732 archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12733
12734 if test "x$supports_anon_versioning" = xyes; then
12735 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12736 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12737 echo "local: *; };" >> $output_objdir/$libname.ver~
12738 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12739 fi
12740
12741 case $cc_basename in
12742 xlf* | bgf* | bgxlf* | mpixlf*)
12743 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12744 whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12745 hardcode_libdir_flag_spec_GO=
12746 hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12747 archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12748 if test "x$supports_anon_versioning" = xyes; then
12749 archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12750 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12751 echo "local: *; };" >> $output_objdir/$libname.ver~
12752 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12753 fi
12754 ;;
12755 esac
12756 else
12757 ld_shlibs_GO=no
12758 fi
12759 ;;
12760
12761 netbsd*)
12762 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12763 archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12764 wlarc=
12765 else
12766 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12767 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12768 fi
12769 ;;
12770
12771 solaris*)
12772 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12773 ld_shlibs_GO=no
12774 cat <<_LT_EOF 1>&2
12775
12776 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12777 *** create shared libraries on Solaris systems. Therefore, libtool
12778 *** is disabling shared libraries support. We urge you to upgrade GNU
12779 *** binutils to release 2.9.1 or newer. Another option is to modify
12780 *** your PATH or compiler configuration so that the native linker is
12781 *** used, and then restart.
12782
12783 _LT_EOF
12784 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12785 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12786 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12787 else
12788 ld_shlibs_GO=no
12789 fi
12790 ;;
12791
12792 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12793 case `$LD -v 2>&1` in
12794 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12795 ld_shlibs_GO=no
12796 cat <<_LT_EOF 1>&2
12797
12798 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12799 *** reliably create shared libraries on SCO systems. Therefore, libtool
12800 *** is disabling shared libraries support. We urge you to upgrade GNU
12801 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12802 *** your PATH or compiler configuration so that the native linker is
12803 *** used, and then restart.
12804
12805 _LT_EOF
12806 ;;
12807 *)
12808 # For security reasons, it is highly recommended that you always
12809 # use absolute paths for naming shared libraries, and exclude the
12810 # DT_RUNPATH tag from executables and libraries. But doing so
12811 # requires that you compile everything twice, which is a pain.
12812 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12813 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12814 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12815 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12816 else
12817 ld_shlibs_GO=no
12818 fi
12819 ;;
12820 esac
12821 ;;
12822
12823 sunos4*)
12824 archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12825 wlarc=
12826 hardcode_direct_GO=yes
12827 hardcode_shlibpath_var_GO=no
12828 ;;
12829
12830 *)
12831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12832 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12834 else
12835 ld_shlibs_GO=no
12836 fi
12837 ;;
12838 esac
12839
12840 if test "$ld_shlibs_GO" = no; then
12841 runpath_var=
12842 hardcode_libdir_flag_spec_GO=
12843 export_dynamic_flag_spec_GO=
12844 whole_archive_flag_spec_GO=
12845 fi
12846 else
12847 # PORTME fill in a description of your system's linker (not GNU ld)
12848 case $host_os in
12849 aix3*)
12850 allow_undefined_flag_GO=unsupported
12851 always_export_symbols_GO=yes
12852 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'
12853 # Note: this linker hardcodes the directories in LIBPATH if there
12854 # are no directories specified by -L.
12855 hardcode_minus_L_GO=yes
12856 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12857 # Neither direct hardcoding nor static linking is supported with a
12858 # broken collect2.
12859 hardcode_direct_GO=unsupported
12860 fi
12861 ;;
12862
12863 aix[4-9]*)
12864 if test "$host_cpu" = ia64; then
12865 # On IA64, the linker does run time linking by default, so we don't
12866 # have to do anything special.
12867 aix_use_runtimelinking=no
12868 exp_sym_flag='-Bexport'
12869 no_entry_flag=""
12870 else
12871 # If we're using GNU nm, then we don't want the "-C" option.
12872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12873 # Also, AIX nm treats weak defined symbols like other global
12874 # defined symbols, whereas GNU nm marks them as "W".
12875 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12876 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'
12877 else
12878 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'
12879 fi
12880 aix_use_runtimelinking=no
12881
12882 # Test if we are trying to use run time linking or normal
12883 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12884 # need to do runtime linking.
12885 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12886 for ld_flag in $LDFLAGS; do
12887 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12888 aix_use_runtimelinking=yes
12889 break
12890 fi
12891 done
12892 ;;
12893 esac
12894
12895 exp_sym_flag='-bexport'
12896 no_entry_flag='-bnoentry'
12897 fi
12898
12899 # When large executables or shared objects are built, AIX ld can
12900 # have problems creating the table of contents. If linking a library
12901 # or program results in "error TOC overflow" add -mminimal-toc to
12902 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12903 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12904
12905 archive_cmds_GO=''
12906 hardcode_direct_GO=yes
12907 hardcode_direct_absolute_GO=yes
12908 hardcode_libdir_separator_GO=':'
12909 link_all_deplibs_GO=yes
12910 file_list_spec_GO='${wl}-f,'
12911
12912 if test "$GCC" = yes; then
12913 case $host_os in aix4.[012]|aix4.[012].*)
12914 # We only want to do this on AIX 4.2 and lower, the check
12915 # below for broken collect2 doesn't work under 4.3+
12916 collect2name=`${CC} -print-prog-name=collect2`
12917 if test -f "$collect2name" &&
12918 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12919 then
12920 # We have reworked collect2
12921 :
12922 else
12923 # We have old collect2
12924 hardcode_direct_GO=unsupported
12925 # It fails to find uninstalled libraries when the uninstalled
12926 # path is not listed in the libpath. Setting hardcode_minus_L
12927 # to unsupported forces relinking
12928 hardcode_minus_L_GO=yes
12929 hardcode_libdir_flag_spec_GO='-L$libdir'
12930 hardcode_libdir_separator_GO=
12931 fi
12932 ;;
12933 esac
12934 shared_flag='-shared'
12935 if test "$aix_use_runtimelinking" = yes; then
12936 shared_flag="$shared_flag "'${wl}-G'
12937 fi
12938 else
12939 # not using gcc
12940 if test "$host_cpu" = ia64; then
12941 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12942 # chokes on -Wl,-G. The following line is correct:
12943 shared_flag='-G'
12944 else
12945 if test "$aix_use_runtimelinking" = yes; then
12946 shared_flag='${wl}-G'
12947 else
12948 shared_flag='${wl}-bM:SRE'
12949 fi
12950 fi
12951 fi
12952
12953 export_dynamic_flag_spec_GO='${wl}-bexpall'
12954 # It seems that -bexpall does not export symbols beginning with
12955 # underscore (_), so it is better to generate a list of symbols to export.
12956 always_export_symbols_GO=yes
12957 if test "$aix_use_runtimelinking" = yes; then
12958 # Warning - without using the other runtime loading flags (-brtl),
12959 # -berok will link without error, but may produce a broken library.
12960 allow_undefined_flag_GO='-berok'
12961 # Determine the default libpath from the value encoded in an
12962 # empty executable.
12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h. */
12965
12966 int
12967 main ()
12968 {
12969
12970 ;
12971 return 0;
12972 }
12973 _ACEOF
12974 if ac_fn_c_try_link "$LINENO"; then :
12975
12976 lt_aix_libpath_sed='
12977 /Import File Strings/,/^$/ {
12978 /^0/ {
12979 s/^0 *\(.*\)$/\1/
12980 p
12981 }
12982 }'
12983 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12984 # Check for a 64-bit object if we didn't find anything.
12985 if test -z "$aix_libpath"; then
12986 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12987 fi
12988 fi
12989 rm -f core conftest.err conftest.$ac_objext \
12990 conftest$ac_exeext conftest.$ac_ext
12991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12992
12993 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12994 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"
12995 else
12996 if test "$host_cpu" = ia64; then
12997 hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12998 allow_undefined_flag_GO="-z nodefs"
12999 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"
13000 else
13001 # Determine the default libpath from the value encoded in an
13002 # empty executable.
13003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004 /* end confdefs.h. */
13005
13006 int
13007 main ()
13008 {
13009
13010 ;
13011 return 0;
13012 }
13013 _ACEOF
13014 if ac_fn_c_try_link "$LINENO"; then :
13015
13016 lt_aix_libpath_sed='
13017 /Import File Strings/,/^$/ {
13018 /^0/ {
13019 s/^0 *\(.*\)$/\1/
13020 p
13021 }
13022 }'
13023 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13024 # Check for a 64-bit object if we didn't find anything.
13025 if test -z "$aix_libpath"; then
13026 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13027 fi
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext \
13030 conftest$ac_exeext conftest.$ac_ext
13031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13032
13033 hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
13034 # Warning - without using the other run time loading flags,
13035 # -berok will link without error, but may produce a broken library.
13036 no_undefined_flag_GO=' ${wl}-bernotok'
13037 allow_undefined_flag_GO=' ${wl}-berok'
13038 if test "$with_gnu_ld" = yes; then
13039 # We only use this code for GNU lds that support --whole-archive.
13040 whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13041 else
13042 # Exported symbols can be pulled into shared objects from archives
13043 whole_archive_flag_spec_GO='$convenience'
13044 fi
13045 archive_cmds_need_lc_GO=yes
13046 # This is similar to how AIX traditionally builds its shared libraries.
13047 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'
13048 fi
13049 fi
13050 ;;
13051
13052 amigaos*)
13053 case $host_cpu in
13054 powerpc)
13055 # see comment about AmigaOS4 .so support
13056 archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13057 archive_expsym_cmds_GO=''
13058 ;;
13059 m68k)
13060 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)'
13061 hardcode_libdir_flag_spec_GO='-L$libdir'
13062 hardcode_minus_L_GO=yes
13063 ;;
13064 esac
13065 ;;
13066
13067 bsdi[45]*)
13068 export_dynamic_flag_spec_GO=-rdynamic
13069 ;;
13070
13071 cygwin* | mingw* | pw32* | cegcc*)
13072 # When not using gcc, we currently assume that we are using
13073 # Microsoft Visual C++.
13074 # hardcode_libdir_flag_spec is actually meaningless, as there is
13075 # no search path for DLLs.
13076 hardcode_libdir_flag_spec_GO=' '
13077 allow_undefined_flag_GO=unsupported
13078 # Tell ltmain to make .lib files, not .a files.
13079 libext=lib
13080 # Tell ltmain to make .dll files, not .so files.
13081 shrext_cmds=".dll"
13082 # FIXME: Setting linknames here is a bad hack.
13083 archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13084 # The linker will automatically build a .lib file if we build a DLL.
13085 old_archive_from_new_cmds_GO='true'
13086 # FIXME: Should let the user specify the lib program.
13087 old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
13088 fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
13089 enable_shared_with_static_runtimes_GO=yes
13090 ;;
13091
13092 darwin* | rhapsody*)
13093
13094
13095 archive_cmds_need_lc_GO=no
13096 hardcode_direct_GO=no
13097 hardcode_automatic_GO=yes
13098 hardcode_shlibpath_var_GO=unsupported
13099 if test "$lt_cv_ld_force_load" = "yes"; then
13100 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\"`'
13101 else
13102 whole_archive_flag_spec_GO=''
13103 fi
13104 link_all_deplibs_GO=yes
13105 allow_undefined_flag_GO="$_lt_dar_allow_undefined"
13106 case $cc_basename in
13107 ifort*) _lt_dar_can_shared=yes ;;
13108 *) _lt_dar_can_shared=$GCC ;;
13109 esac
13110 if test "$_lt_dar_can_shared" = "yes"; then
13111 output_verbose_link_cmd=func_echo_all
13112 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}"
13113 module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13114 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}"
13115 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}"
13116
13117 else
13118 ld_shlibs_GO=no
13119 fi
13120
13121 ;;
13122
13123 dgux*)
13124 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13125 hardcode_libdir_flag_spec_GO='-L$libdir'
13126 hardcode_shlibpath_var_GO=no
13127 ;;
13128
13129 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13130 # support. Future versions do this automatically, but an explicit c++rt0.o
13131 # does not break anything, and helps significantly (at the cost of a little
13132 # extra space).
13133 freebsd2.2*)
13134 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13135 hardcode_libdir_flag_spec_GO='-R$libdir'
13136 hardcode_direct_GO=yes
13137 hardcode_shlibpath_var_GO=no
13138 ;;
13139
13140 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13141 freebsd2.*)
13142 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13143 hardcode_direct_GO=yes
13144 hardcode_minus_L_GO=yes
13145 hardcode_shlibpath_var_GO=no
13146 ;;
13147
13148 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13149 freebsd* | dragonfly*)
13150 archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13151 hardcode_libdir_flag_spec_GO='-R$libdir'
13152 hardcode_direct_GO=yes
13153 hardcode_shlibpath_var_GO=no
13154 ;;
13155
13156 hpux9*)
13157 if test "$GCC" = yes; then
13158 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'
13159 else
13160 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'
13161 fi
13162 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13163 hardcode_libdir_separator_GO=:
13164 hardcode_direct_GO=yes
13165
13166 # hardcode_minus_L: Not really in the search PATH,
13167 # but as the default location of the library.
13168 hardcode_minus_L_GO=yes
13169 export_dynamic_flag_spec_GO='${wl}-E'
13170 ;;
13171
13172 hpux10*)
13173 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13174 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13175 else
13176 archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13177 fi
13178 if test "$with_gnu_ld" = no; then
13179 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13180 hardcode_libdir_flag_spec_ld_GO='+b $libdir'
13181 hardcode_libdir_separator_GO=:
13182 hardcode_direct_GO=yes
13183 hardcode_direct_absolute_GO=yes
13184 export_dynamic_flag_spec_GO='${wl}-E'
13185 # hardcode_minus_L: Not really in the search PATH,
13186 # but as the default location of the library.
13187 hardcode_minus_L_GO=yes
13188 fi
13189 ;;
13190
13191 hpux11*)
13192 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13193 case $host_cpu in
13194 hppa*64*)
13195 archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13196 ;;
13197 ia64*)
13198 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13199 ;;
13200 *)
13201 archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13202 ;;
13203 esac
13204 else
13205 case $host_cpu in
13206 hppa*64*)
13207 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13208 ;;
13209 ia64*)
13210 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13211 ;;
13212 *)
13213 archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13214 ;;
13215 esac
13216 fi
13217 if test "$with_gnu_ld" = no; then
13218 hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
13219 hardcode_libdir_separator_GO=:
13220
13221 case $host_cpu in
13222 hppa*64*|ia64*)
13223 hardcode_direct_GO=no
13224 hardcode_shlibpath_var_GO=no
13225 ;;
13226 *)
13227 hardcode_direct_GO=yes
13228 hardcode_direct_absolute_GO=yes
13229 export_dynamic_flag_spec_GO='${wl}-E'
13230
13231 # hardcode_minus_L: Not really in the search PATH,
13232 # but as the default location of the library.
13233 hardcode_minus_L_GO=yes
13234 ;;
13235 esac
13236 fi
13237 ;;
13238
13239 irix5* | irix6* | nonstopux*)
13240 if test "$GCC" = yes; then
13241 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'
13242 # Try to use the -exported_symbol ld option, if it does not
13243 # work, assume that -exports_file does not work either and
13244 # implicitly export all symbols.
13245 save_LDFLAGS="$LDFLAGS"
13246 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13248 /* end confdefs.h. */
13249 int foo(void) {}
13250 _ACEOF
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 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'
13253
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13257 LDFLAGS="$save_LDFLAGS"
13258 else
13259 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'
13260 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'
13261 fi
13262 archive_cmds_need_lc_GO='no'
13263 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13264 hardcode_libdir_separator_GO=:
13265 inherit_rpath_GO=yes
13266 link_all_deplibs_GO=yes
13267 ;;
13268
13269 netbsd*)
13270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13271 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13272 else
13273 archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13274 fi
13275 hardcode_libdir_flag_spec_GO='-R$libdir'
13276 hardcode_direct_GO=yes
13277 hardcode_shlibpath_var_GO=no
13278 ;;
13279
13280 newsos6)
13281 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13282 hardcode_direct_GO=yes
13283 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13284 hardcode_libdir_separator_GO=:
13285 hardcode_shlibpath_var_GO=no
13286 ;;
13287
13288 *nto* | *qnx*)
13289 ;;
13290
13291 openbsd*)
13292 if test -f /usr/libexec/ld.so; then
13293 hardcode_direct_GO=yes
13294 hardcode_shlibpath_var_GO=no
13295 hardcode_direct_absolute_GO=yes
13296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13297 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13298 archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13299 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13300 export_dynamic_flag_spec_GO='${wl}-E'
13301 else
13302 case $host_os in
13303 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13304 archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13305 hardcode_libdir_flag_spec_GO='-R$libdir'
13306 ;;
13307 *)
13308 archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13309 hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
13310 ;;
13311 esac
13312 fi
13313 else
13314 ld_shlibs_GO=no
13315 fi
13316 ;;
13317
13318 os2*)
13319 hardcode_libdir_flag_spec_GO='-L$libdir'
13320 hardcode_minus_L_GO=yes
13321 allow_undefined_flag_GO=unsupported
13322 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'
13323 old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13324 ;;
13325
13326 osf3*)
13327 if test "$GCC" = yes; then
13328 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13329 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'
13330 else
13331 allow_undefined_flag_GO=' -expect_unresolved \*'
13332 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'
13333 fi
13334 archive_cmds_need_lc_GO='no'
13335 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13336 hardcode_libdir_separator_GO=:
13337 ;;
13338
13339 osf4* | osf5*) # as osf3* with the addition of -msym flag
13340 if test "$GCC" = yes; then
13341 allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
13342 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'
13343 hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
13344 else
13345 allow_undefined_flag_GO=' -expect_unresolved \*'
13346 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'
13347 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~
13348 $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'
13349
13350 # Both c and cxx compiler support -rpath directly
13351 hardcode_libdir_flag_spec_GO='-rpath $libdir'
13352 fi
13353 archive_cmds_need_lc_GO='no'
13354 hardcode_libdir_separator_GO=:
13355 ;;
13356
13357 solaris*)
13358 no_undefined_flag_GO=' -z defs'
13359 if test "$GCC" = yes; then
13360 wlarc='${wl}'
13361 archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13362 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13363 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13364 else
13365 case `$CC -V 2>&1` in
13366 *"Compilers 5.0"*)
13367 wlarc=''
13368 archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13369 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13370 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13371 ;;
13372 *)
13373 wlarc='${wl}'
13374 archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13375 archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13376 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13377 ;;
13378 esac
13379 fi
13380 hardcode_libdir_flag_spec_GO='-R$libdir'
13381 hardcode_shlibpath_var_GO=no
13382 case $host_os in
13383 solaris2.[0-5] | solaris2.[0-5].*) ;;
13384 *)
13385 # The compiler driver will combine and reorder linker options,
13386 # but understands `-z linker_flag'. GCC discards it without `$wl',
13387 # but is careful enough not to reorder.
13388 # Supported since Solaris 2.6 (maybe 2.5.1?)
13389 if test "$GCC" = yes; then
13390 whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13391 else
13392 whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13393 fi
13394 ;;
13395 esac
13396 link_all_deplibs_GO=yes
13397 ;;
13398
13399 sunos4*)
13400 if test "x$host_vendor" = xsequent; then
13401 # Use $CC to link under sequent, because it throws in some extra .o
13402 # files that make .init and .fini sections work.
13403 archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13404 else
13405 archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13406 fi
13407 hardcode_libdir_flag_spec_GO='-L$libdir'
13408 hardcode_direct_GO=yes
13409 hardcode_minus_L_GO=yes
13410 hardcode_shlibpath_var_GO=no
13411 ;;
13412
13413 sysv4)
13414 case $host_vendor in
13415 sni)
13416 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13417 hardcode_direct_GO=yes # is this really true???
13418 ;;
13419 siemens)
13420 ## LD is ld it makes a PLAMLIB
13421 ## CC just makes a GrossModule.
13422 archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13423 reload_cmds_GO='$CC -r -o $output$reload_objs'
13424 hardcode_direct_GO=no
13425 ;;
13426 motorola)
13427 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13428 hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13429 ;;
13430 esac
13431 runpath_var='LD_RUN_PATH'
13432 hardcode_shlibpath_var_GO=no
13433 ;;
13434
13435 sysv4.3*)
13436 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13437 hardcode_shlibpath_var_GO=no
13438 export_dynamic_flag_spec_GO='-Bexport'
13439 ;;
13440
13441 sysv4*MP*)
13442 if test -d /usr/nec; then
13443 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13444 hardcode_shlibpath_var_GO=no
13445 runpath_var=LD_RUN_PATH
13446 hardcode_runpath_var=yes
13447 ld_shlibs_GO=yes
13448 fi
13449 ;;
13450
13451 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13452 no_undefined_flag_GO='${wl}-z,text'
13453 archive_cmds_need_lc_GO=no
13454 hardcode_shlibpath_var_GO=no
13455 runpath_var='LD_RUN_PATH'
13456
13457 if test "$GCC" = yes; then
13458 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13459 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13460 else
13461 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13462 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463 fi
13464 ;;
13465
13466 sysv5* | sco3.2v5* | sco5v6*)
13467 # Note: We can NOT use -z defs as we might desire, because we do not
13468 # link with -lc, and that would cause any symbols used from libc to
13469 # always be unresolved, which means just about no library would
13470 # ever link correctly. If we're not using GNU ld we use -z text
13471 # though, which does catch some bad symbols but isn't as heavy-handed
13472 # as -z defs.
13473 no_undefined_flag_GO='${wl}-z,text'
13474 allow_undefined_flag_GO='${wl}-z,nodefs'
13475 archive_cmds_need_lc_GO=no
13476 hardcode_shlibpath_var_GO=no
13477 hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13478 hardcode_libdir_separator_GO=':'
13479 link_all_deplibs_GO=yes
13480 export_dynamic_flag_spec_GO='${wl}-Bexport'
13481 runpath_var='LD_RUN_PATH'
13482
13483 if test "$GCC" = yes; then
13484 archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13485 archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13486 else
13487 archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13488 archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13489 fi
13490 ;;
13491
13492 uts4*)
13493 archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13494 hardcode_libdir_flag_spec_GO='-L$libdir'
13495 hardcode_shlibpath_var_GO=no
13496 ;;
13497
13498 *)
13499 ld_shlibs_GO=no
13500 ;;
13501 esac
13502
13503 if test x$host_vendor = xsni; then
13504 case $host in
13505 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13506 export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13507 ;;
13508 esac
13509 fi
13510 fi
13511
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13513 $as_echo "$ld_shlibs_GO" >&6; }
13514 test "$ld_shlibs_GO" = no && can_build_shared=no
13515
13516 with_gnu_ld_GO=$with_gnu_ld
13517
13518
13519
13520
13521
13522
13523 #
13524 # Do we need to explicitly link libc?
13525 #
13526 case "x$archive_cmds_need_lc_GO" in
13527 x|xyes)
13528 # Assume -lc should be added
13529 archive_cmds_need_lc_GO=yes
13530
13531 if test "$enable_shared" = yes && test "$GCC" = yes; then
13532 case $archive_cmds_GO in
13533 *'~'*)
13534 # FIXME: we may have to deal with multi-command sequences.
13535 ;;
13536 '$CC '*)
13537 # Test whether the compiler implicitly links with -lc since on some
13538 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13539 # to ld, don't add -lc before -lgcc.
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13541 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13542 if ${lt_cv_archive_cmds_need_lc_GO+:} false; then :
13543 $as_echo_n "(cached) " >&6
13544 else
13545 $RM conftest*
13546 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13547
13548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13549 (eval $ac_compile) 2>&5
13550 ac_status=$?
13551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13552 test $ac_status = 0; } 2>conftest.err; then
13553 soname=conftest
13554 lib=conftest
13555 libobjs=conftest.$ac_objext
13556 deplibs=
13557 wl=$lt_prog_compiler_wl_GO
13558 pic_flag=$lt_prog_compiler_pic_GO
13559 compiler_flags=-v
13560 linker_flags=-v
13561 verstring=
13562 output_objdir=.
13563 libname=conftest
13564 lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13565 allow_undefined_flag_GO=
13566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13567 (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13568 ac_status=$?
13569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13570 test $ac_status = 0; }
13571 then
13572 lt_cv_archive_cmds_need_lc_GO=no
13573 else
13574 lt_cv_archive_cmds_need_lc_GO=yes
13575 fi
13576 allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13577 else
13578 cat conftest.err 1>&5
13579 fi
13580 $RM conftest*
13581
13582 fi
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13584 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13585 archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13586 ;;
13587 esac
13588 fi
13589 ;;
13590 esac
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13656 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13657 hardcode_action_GO=
13658 if test -n "$hardcode_libdir_flag_spec_GO" ||
13659 test -n "$runpath_var_GO" ||
13660 test "X$hardcode_automatic_GO" = "Xyes" ; then
13661
13662 # We can hardcode non-existent directories.
13663 if test "$hardcode_direct_GO" != no &&
13664 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13665 # have to relink, otherwise we might link with an installed library
13666 # when we should be linking with a yet-to-be-installed one
13667 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13668 test "$hardcode_minus_L_GO" != no; then
13669 # Linking always hardcodes the temporary library directory.
13670 hardcode_action_GO=relink
13671 else
13672 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13673 hardcode_action_GO=immediate
13674 fi
13675 else
13676 # We cannot hardcode anything, or else we can only hardcode existing
13677 # directories.
13678 hardcode_action_GO=unsupported
13679 fi
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13681 $as_echo "$hardcode_action_GO" >&6; }
13682
13683 if test "$hardcode_action_GO" = relink ||
13684 test "$inherit_rpath_GO" = yes; then
13685 # Fast installation is not supported
13686 enable_fast_install=no
13687 elif test "$shlibpath_overrides_runpath" = yes ||
13688 test "$enable_shared" = no; then
13689 # Fast installation is not necessary
13690 enable_fast_install=needless
13691 fi
13692
13693
13694
13695
13696
13697
13698
13699 fi
13700
13701 ac_ext=c
13702 ac_cpp='$CPP $CPPFLAGS'
13703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13706
13707
13708 GCC=$lt_save_GCC
13709 CC="$lt_save_CC"
13710
13711
13712
13713
13714 ac_config_commands="$ac_config_commands libtool"
13715
13716
13717
13718
13719 # Only expand once:
13720
13721
13722
13723
13724
13725 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13726
13727
13728 for ac_prog in gawk mawk nawk awk
13729 do
13730 # Extract the first word of "$ac_prog", so it can be a program name with args.
13731 set dummy $ac_prog; ac_word=$2
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13733 $as_echo_n "checking for $ac_word... " >&6; }
13734 if ${ac_cv_prog_AWK+:} false; then :
13735 $as_echo_n "(cached) " >&6
13736 else
13737 if test -n "$AWK"; then
13738 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13739 else
13740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13741 for as_dir in $PATH
13742 do
13743 IFS=$as_save_IFS
13744 test -z "$as_dir" && as_dir=.
13745 for ac_exec_ext in '' $ac_executable_extensions; do
13746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13747 ac_cv_prog_AWK="$ac_prog"
13748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13749 break 2
13750 fi
13751 done
13752 done
13753 IFS=$as_save_IFS
13754
13755 fi
13756 fi
13757 AWK=$ac_cv_prog_AWK
13758 if test -n "$AWK"; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13760 $as_echo "$AWK" >&6; }
13761 else
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13764 fi
13765
13766
13767 test -n "$AWK" && break
13768 done
13769
13770
13771 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13772
13773
13774 # Check whether --enable-werror was given.
13775 if test "${enable_werror+set}" = set; then :
13776 enableval=$enable_werror;
13777 fi
13778
13779 if test "x$enable_werror" != "xno"; then
13780 WERROR="-Werror"
13781 fi
13782
13783
13784 glibgo_toolexecdir=no
13785 glibgo_toolexeclibdir=no
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13788 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13789 # Check whether --enable-version-specific-runtime-libs was given.
13790 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13791 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13792 yes) version_specific_libs=yes ;;
13793 no) version_specific_libs=no ;;
13794 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13795 esac
13796 else
13797 version_specific_libs=no
13798 fi
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13801 $as_echo "$version_specific_libs" >&6; }
13802
13803 # Version-specific runtime libs processing.
13804 if test $version_specific_libs = yes; then
13805 glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13806 glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13807 fi
13808
13809 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13810 # Install a library built with a cross compiler in tooldir, not libdir.
13811 if test -n "$with_cross_host" &&
13812 test x"$with_cross_host" != x"no"; then
13813 nover_glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13814 nover_glibgo_toolexeclibdir='${toolexecdir}/lib'
13815 else
13816 nover_glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13817 nover_glibgo_toolexeclibdir='${libdir}'
13818 fi
13819 multi_os_directory=`$GOC -print-multi-os-directory`
13820 case $multi_os_directory in
13821 .) ;; # Avoid trailing /.
13822 *) nover_glibgo_toolexeclibdir=${nover_glibgo_toolexeclibdir}/${multi_os_directory} ;;
13823 esac
13824
13825 if test x"$glibgo_toolexecdir" = x"no"; then
13826 glibgo_toolexecdir="${nover_glibgo_toolexecdir}"
13827 glibgo_toolexeclibdir="${nover_glibgo_toolexeclibdir}"
13828 fi
13829
13830
13831
13832
13833
13834 # See if the user wants to configure without libffi. Some
13835 # architectures don't support it. FIXME: We should set a default
13836 # based on the host.
13837
13838 # Check whether --with-libffi was given.
13839 if test "${with_libffi+set}" = set; then :
13840 withval=$with_libffi; :
13841 else
13842 with_libffi=${with_libffi_default-yes}
13843 fi
13844
13845
13846 LIBFFI=
13847 LIBFFIINCS=
13848 if test "$with_libffi" != no; then
13849
13850 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13851
13852 LIBFFI=../libffi/libffi_convenience.la
13853 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13854 fi
13855
13856
13857 if test "$with_libffi" != "no"; then
13858 USE_LIBFFI_TRUE=
13859 USE_LIBFFI_FALSE='#'
13860 else
13861 USE_LIBFFI_TRUE='#'
13862 USE_LIBFFI_FALSE=
13863 fi
13864
13865
13866 # See if the user wants to configure without libatomic. This is useful if we are
13867 # on an architecture for which libgo does not need an atomic support library and
13868 # libatomic does not support our C compiler.
13869
13870 # Check whether --with-libatomic was given.
13871 if test "${with_libatomic+set}" = set; then :
13872 withval=$with_libatomic; :
13873 else
13874 with_libatomic=${with_libatomic_default-yes}
13875 fi
13876
13877
13878 LIBATOMIC=
13879 if test "$with_libatomic" != no; then
13880 LIBATOMIC=../libatomic/libatomic_convenience.la
13881 fi
13882
13883
13884 # Used to tell GNU make to include a file without telling automake to
13885 # include it.
13886 go_include="-include"
13887
13888
13889 # All known GOOS values. This is the union of all operating systems
13890 # supported by the gofrontend and all operating systems supported by
13891 # the gc toolchain.
13892 ALLGOOS="aix android darwin dragonfly freebsd hurd illumos irix js linux netbsd openbsd plan9 rtems solaris windows"
13893
13894 is_darwin=no
13895 is_freebsd=no
13896 is_irix=no
13897 is_linux=no
13898 is_netbsd=no
13899 is_openbsd=no
13900 is_dragonfly=no
13901 is_rtems=no
13902 is_solaris=no
13903 is_aix=no
13904 is_hurd=no
13905 GOOS=unknown
13906 case ${host} in
13907 *-*-darwin*) is_darwin=yes; GOOS=darwin ;;
13908 *-*-freebsd*) is_freebsd=yes; GOOS=freebsd ;;
13909 *-*-irix6*) is_irix=yes; GOOS=irix ;;
13910 *-*-linux*) is_linux=yes; GOOS=linux ;;
13911 *-*-netbsd*) is_netbsd=yes; GOOS=netbsd ;;
13912 *-*-openbsd*) is_openbsd=yes; GOOS=openbsd ;;
13913 *-*-dragonfly*) is_dragonfly=yes; GOOS=dragonfly ;;
13914 *-*-rtems*) is_rtems=yes; GOOS=rtems ;;
13915 *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13916 *-*-aix*) is_aix=yes; GOOS=aix ;;
13917 *-*-gnu*) is_hurd=yes; GOOS=hurd ;;
13918 esac
13919 if test $is_darwin = yes; then
13920 LIBGO_IS_DARWIN_TRUE=
13921 LIBGO_IS_DARWIN_FALSE='#'
13922 else
13923 LIBGO_IS_DARWIN_TRUE='#'
13924 LIBGO_IS_DARWIN_FALSE=
13925 fi
13926
13927 if test $is_freebsd = yes; then
13928 LIBGO_IS_FREEBSD_TRUE=
13929 LIBGO_IS_FREEBSD_FALSE='#'
13930 else
13931 LIBGO_IS_FREEBSD_TRUE='#'
13932 LIBGO_IS_FREEBSD_FALSE=
13933 fi
13934
13935 if test $is_irix = yes; then
13936 LIBGO_IS_IRIX_TRUE=
13937 LIBGO_IS_IRIX_FALSE='#'
13938 else
13939 LIBGO_IS_IRIX_TRUE='#'
13940 LIBGO_IS_IRIX_FALSE=
13941 fi
13942
13943 if test $is_linux = yes; then
13944 LIBGO_IS_LINUX_TRUE=
13945 LIBGO_IS_LINUX_FALSE='#'
13946 else
13947 LIBGO_IS_LINUX_TRUE='#'
13948 LIBGO_IS_LINUX_FALSE=
13949 fi
13950
13951 if test $is_netbsd = yes; then
13952 LIBGO_IS_NETBSD_TRUE=
13953 LIBGO_IS_NETBSD_FALSE='#'
13954 else
13955 LIBGO_IS_NETBSD_TRUE='#'
13956 LIBGO_IS_NETBSD_FALSE=
13957 fi
13958
13959 if test $is_openbsd = yes; then
13960 LIBGO_IS_OPENBSD_TRUE=
13961 LIBGO_IS_OPENBSD_FALSE='#'
13962 else
13963 LIBGO_IS_OPENBSD_TRUE='#'
13964 LIBGO_IS_OPENBSD_FALSE=
13965 fi
13966
13967 if test $is_dragonfly = yes; then
13968 LIBGO_IS_DRAGONFLY_TRUE=
13969 LIBGO_IS_DRAGONFLY_FALSE='#'
13970 else
13971 LIBGO_IS_DRAGONFLY_TRUE='#'
13972 LIBGO_IS_DRAGONFLY_FALSE=
13973 fi
13974
13975 if test $is_rtems = yes; then
13976 LIBGO_IS_RTEMS_TRUE=
13977 LIBGO_IS_RTEMS_FALSE='#'
13978 else
13979 LIBGO_IS_RTEMS_TRUE='#'
13980 LIBGO_IS_RTEMS_FALSE=
13981 fi
13982
13983 if test $is_solaris = yes; then
13984 LIBGO_IS_SOLARIS_TRUE=
13985 LIBGO_IS_SOLARIS_FALSE='#'
13986 else
13987 LIBGO_IS_SOLARIS_TRUE='#'
13988 LIBGO_IS_SOLARIS_FALSE=
13989 fi
13990
13991 if test $is_aix = yes; then
13992 LIBGO_IS_AIX_TRUE=
13993 LIBGO_IS_AIX_FALSE='#'
13994 else
13995 LIBGO_IS_AIX_TRUE='#'
13996 LIBGO_IS_AIX_FALSE=
13997 fi
13998
13999 if test $is_hurd = yes; then
14000 LIBGO_IS_HURD_TRUE=
14001 LIBGO_IS_HURD_FALSE='#'
14002 else
14003 LIBGO_IS_HURD_TRUE='#'
14004 LIBGO_IS_HURD_FALSE=
14005 fi
14006
14007 if test $is_darwin = yes -o $is_dragonfly = yes -o $is_freebsd = yes -o $is_netbsd = yes -o $is_openbsd = yes; then
14008 LIBGO_IS_BSD_TRUE=
14009 LIBGO_IS_BSD_FALSE='#'
14010 else
14011 LIBGO_IS_BSD_TRUE='#'
14012 LIBGO_IS_BSD_FALSE=
14013 fi
14014
14015
14016
14017
14018 USE_DEJAGNU=no
14019 case ${host} in
14020 *-*-rtems*) USE_DEJAGNU=yes ;;
14021 ${build}) ;;
14022 *) USE_DEJAGNU=yes ;;
14023 esac
14024
14025
14026 # All known GOARCH values. This is the union of all architectures
14027 # supported by the gofrontend and all architectures supported by the
14028 # gc toolchain.
14029 # To add a new architecture:
14030 # - add it to this list
14031 # - if appropriate, add an entry to ALLGOARCHFAMILY below
14032 # - add an entry to the case on ${host} below to set GOARCH
14033 # - update goarchList in libgo/go/go/build/syslist.go
14034 # - update goarch.sh to report the values for this architecture
14035 # - update go-set-goarch in gcc/testsuite/go.test/go-test.exp
14036 # - update ptrSizeMap and intSizeMap in libgo/go/cmd/cgo/main.go
14037 # - update arch lists in libgo/match.sh
14038 # - update arch lists in libgo/testsuite/gotest
14039 # - update +build lines in several places
14040 # - libgo/go/runtime/lfstack_NNbit.go
14041 # - libgo/go/runtime/hashNN.go
14042 # - libgo/go/runtime/unalignedN.go
14043 # - libgo/go/syscall/endian_XX.go
14044 # - possibly others
14045 # - possibly update files in libgo/go/internal/syscall/unix
14046 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"
14047
14048 # All known GOARCH family values.
14049 ALLGOARCHFAMILY="I386 ALPHA AMD64 ARM ARM64 IA64 M68K MIPS MIPS64 NIOS2 PPC PPC64 RISCV RISCV64 S390 S390X SH SPARC SPARC64 WASM"
14050
14051 GOARCH=unknown
14052 case ${host} in
14053 alpha*-*-*)
14054 GOARCH=alpha
14055 ;;
14056 aarch64-*-*)
14057 GOARCH=arm64
14058 ;;
14059 arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
14060 GOARCH=arm
14061 case ${host} in
14062 arm*b*-*-*)
14063 GOARCH=armbe
14064 ;;
14065 esac
14066 ;;
14067 i[34567]86-*-* | x86_64-*-*)
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070
14071 #ifdef __x86_64__
14072 #error 64-bit
14073 #endif
14074
14075 _ACEOF
14076 if ac_fn_c_try_compile "$LINENO"; then :
14077 GOARCH=386
14078 else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081
14082 #ifdef __ILP32__
14083 #error x32
14084 #endif
14085
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"; then :
14088 GOARCH=amd64
14089 else
14090 GOARCH=amd64p32
14091 fi
14092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14093 fi
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 ;;
14096 ia64-*-*)
14097 GOARCH=ia64
14098 ;;
14099 m68k*-*-*)
14100 GOARCH=m68k
14101 ;;
14102 mips*-*-*)
14103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h. */
14105
14106 #if _MIPS_SIM != _ABIO32
14107 #error not o32
14108 #endif
14109
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112 mips_abi="o32"
14113 else
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14116
14117 #if _MIPS_SIM != _ABIN32
14118 #error not n32
14119 #endif
14120
14121 _ACEOF
14122 if ac_fn_c_try_compile "$LINENO"; then :
14123 mips_abi="n32"
14124 else
14125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h. */
14127
14128 #if _MIPS_SIM != _ABI64
14129 #error not n64
14130 #endif
14131
14132 _ACEOF
14133 if ac_fn_c_try_compile "$LINENO"; then :
14134 mips_abi="n64"
14135 else
14136 as_fn_error $? "unknown MIPS ABI" "$LINENO" 5
14137 mips_abi="n32"
14138 fi
14139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14140 fi
14141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14142 fi
14143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14144 case "$mips_abi" in
14145 "o32") GOARCH=mips ;;
14146 "n32") GOARCH=mips64p32 ;;
14147 "n64") GOARCH=mips64 ;;
14148 esac
14149 case "${host}" in
14150 mips*el-*-*)
14151 GOARCH="${GOARCH}le"
14152 ;;
14153 esac
14154 ;;
14155 nios2-*-*)
14156 GOARCH=nios2
14157 ;;
14158 rs6000*-*-* | powerpc*-*-*)
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14161
14162 #ifdef _ARCH_PPC64
14163 #error 64-bit
14164 #endif
14165
14166 _ACEOF
14167 if ac_fn_c_try_compile "$LINENO"; then :
14168 GOARCH=ppc
14169 else
14170
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173
14174 #if defined(_BIG_ENDIAN) || defined(__BIG_ENDIAN__)
14175 #error 64be
14176 #endif
14177
14178 _ACEOF
14179 if ac_fn_c_try_compile "$LINENO"; then :
14180 GOARCH=ppc64le
14181 else
14182 GOARCH=ppc64
14183 fi
14184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 fi
14186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187 ;;
14188 riscv64-*-*)
14189 GOARCH=riscv64
14190 ;;
14191 s390*-*-*)
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14194
14195 #if defined(__s390x__)
14196 #error 64-bit
14197 #endif
14198
14199 _ACEOF
14200 if ac_fn_c_try_compile "$LINENO"; then :
14201 GOARCH=s390
14202 else
14203 GOARCH=s390x
14204 fi
14205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14206 ;;
14207 sh3eb*-*-* | sh4eb*-*-*)
14208 GOARCH=shbe
14209 ;;
14210 sh3*-*-* | sh4*-*-*)
14211 GOARCH=sh
14212 ;;
14213 sparc*-*-*)
14214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14215 /* end confdefs.h. */
14216
14217 #if defined(__sparcv9) || defined(__arch64__)
14218 #error 64-bit
14219 #endif
14220
14221 _ACEOF
14222 if ac_fn_c_try_compile "$LINENO"; then :
14223 GOARCH=sparc
14224 else
14225 GOARCH=sparc64
14226 fi
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 ;;
14229 esac
14230
14231
14232
14233
14234 if test "$GOARCH" = "386" -o "$GOARCH" = "amd64" -o "$GOARCH" = "amd64p32"; then
14235 LIBGO_IS_X86_TRUE=
14236 LIBGO_IS_X86_FALSE='#'
14237 else
14238 LIBGO_IS_X86_TRUE='#'
14239 LIBGO_IS_X86_FALSE=
14240 fi
14241
14242
14243 FUNCTION_DESCRIPTORS=false
14244 case ${host} in
14245 rs6000*-*-* | powerpc*-*-*)
14246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14247 /* end confdefs.h. */
14248
14249 #if _CALL_ELF == 1
14250 #error descriptors
14251 #endif
14252
14253 _ACEOF
14254 if ac_fn_c_try_compile "$LINENO"; then :
14255 FUNCTION_DESCRIPTORS=false
14256 else
14257 FUNCTION_DESCRIPTORS=true
14258 fi
14259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14260 ;;
14261 esac
14262
14263
14264 GO_LIBCALL_OS_FILE=
14265 GO_LIBCALL_OS_ARCH_FILE=
14266 GO_SYSCALL_OS_FILE=
14267 GO_SYSCALL_OS_ARCH_FILE=
14268 if test -f "${srcdir}/go/syscall/libcall_${GOOS}.go"; then
14269 GO_LIBCALL_OS_FILE="go/syscall/libcall_${GOOS}.go"
14270 fi
14271 if test -f "${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go"; then
14272 GO_LIBCALL_OS_ARCH_FILE="go/syscall/libcall_${GOOS}_${GOARCH}.go"
14273 fi
14274 if test -f "${srcdir}/go/syscall/syscall_${GOOS}.go"; then
14275 GO_SYSCALL_OS_FILE="go/syscall/syscall_${GOOS}.go"
14276 fi
14277 if test -f "${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go"; then
14278 GO_SYSCALL_OS_ARCH_FILE="go/syscall/syscall_${GOOS}_${GOARCH}.go"
14279 fi
14280
14281
14282
14283
14284
14285 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
14286 case "$target" in
14287 mips-sgi-irix6.5*)
14288 # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
14289 # msghdr in <sys/socket.h>.
14290 OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
14291 ;;
14292 *-*-solaris2.*)
14293 # Solaris 10+ needs this so struct msghdr gets the msg_control
14294 # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
14295 # above doesn't work with C99.
14296 OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
14297 ;;
14298 esac
14299
14300
14301
14302 test -z "$HWCAP_CFLAGS" && HWCAP_CFLAGS=''
14303
14304 # Restrict the test to Solaris, other assemblers (e.g. AIX as) have -nH
14305 # with a different meaning.
14306 case ${target_os} in
14307 solaris2*)
14308 ac_save_CFLAGS="$CFLAGS"
14309 CFLAGS="$CFLAGS -Wa,-nH"
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as that supports -Wa,-nH" >&5
14312 $as_echo_n "checking for as that supports -Wa,-nH... " >&6; }
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315
14316 int
14317 main ()
14318 {
14319 return 0;
14320 ;
14321 return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_c_try_compile "$LINENO"; then :
14325 ac_hwcap_flags=yes
14326 else
14327 ac_hwcap_flags=no
14328 fi
14329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 if test "$ac_hwcap_flags" = "yes"; then
14331 HWCAP_CFLAGS="-Wa,-nH $HWCAP_CFLAGS"
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_hwcap_flags" >&5
14334 $as_echo "$ac_hwcap_flags" >&6; }
14335
14336 CFLAGS="$ac_save_CFLAGS"
14337 ;;
14338 esac
14339
14340
14341
14342
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
14344 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
14345 if ${libgo_cv_c_split_stack_supported+:} false; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 CFLAGS_hold=$CFLAGS
14349 CFLAGS="$CFLAGS -fsplit-stack"
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 int i;
14353 _ACEOF
14354 if ac_fn_c_try_compile "$LINENO"; then :
14355 libgo_cv_c_split_stack_supported=yes
14356 else
14357 libgo_cv_c_split_stack_supported=no
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 CFLAGS=$CFLAGS_hold
14361 fi
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
14363 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
14364
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split/non-split linked together" >&5
14366 $as_echo_n "checking whether linker supports split/non-split linked together... " >&6; }
14367 if ${libgo_cv_c_linker_split_non_split+:} false; then :
14368 $as_echo_n "(cached) " >&6
14369 else
14370 cat > conftest1.c << EOF
14371 extern void f();
14372 int main() { f(); return 0; }
14373 EOF
14374 cat > conftest2.c << EOF
14375 void f() {}
14376 EOF
14377 $CC -c -fsplit-stack $CFLAGS $CPPFLAGS conftest1.c >/dev/null 2>&1
14378 $CC -c $CFLAGS $CPPFLAGS conftest2.c > /dev/null 2>&1
14379 if $CC -o conftest conftest1.$ac_objext conftest2.$ac_objext > /dev/null 2>&1; then
14380 libgo_cv_c_linker_split_non_split=yes
14381 else
14382 libgo_cv_c_linker_split_non_split=no
14383 fi
14384 rm -f conftest1.* conftest2.* conftest
14385 fi
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_split_non_split" >&5
14387 $as_echo "$libgo_cv_c_linker_split_non_split" >&6; }
14388
14389 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14390 SPLIT_STACK=-fsplit-stack
14391
14392 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
14393
14394 else
14395 SPLIT_STACK=
14396 fi
14397
14398 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = yes; then
14399 USING_SPLIT_STACK_TRUE=
14400 USING_SPLIT_STACK_FALSE='#'
14401 else
14402 USING_SPLIT_STACK_TRUE='#'
14403 USING_SPLIT_STACK_FALSE=
14404 fi
14405
14406
14407 if test "$libgo_cv_c_split_stack_supported" = yes -a "$libgo_cv_c_linker_split_non_split" = no; then
14408 GO_SPLIT_STACK=-fno-split-stack
14409 else
14410 GO_SPLIT_STACK=
14411 fi
14412
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
14415 $as_echo_n "checking whether linker supports split stack... " >&6; }
14416 if ${libgo_cv_c_linker_supports_split_stack+:} false; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 libgo_cv_c_linker_supports_split_stack=no
14420 if $GOC -Wl,--help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
14421 libgo_cv_c_linker_supports_split_stack=yes
14422 fi
14423 fi
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
14425 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
14426 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
14427
14428 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
14429
14430 fi
14431
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler is llgo" >&5
14433 $as_echo_n "checking whether compiler is llgo... " >&6; }
14434 if ${libgo_cv_c_goc_is_llgo+:} false; then :
14435 $as_echo_n "(cached) " >&6
14436 else
14437 libgo_cv_c_goc_is_llgo=no
14438 if $GOC -dumpversion 2>/dev/null | grep llgo >/dev/null 2>&1; then
14439 libgo_cv_c_goc_is_llgo=yes
14440 fi
14441 fi
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_goc_is_llgo" >&5
14443 $as_echo "$libgo_cv_c_goc_is_llgo" >&6; }
14444 if test "$libgo_cv_c_goc_is_llgo" = yes; then
14445 GOC_IS_LLGO_TRUE=
14446 GOC_IS_LLGO_FALSE='#'
14447 else
14448 GOC_IS_LLGO_TRUE='#'
14449 GOC_IS_LLGO_FALSE=
14450 fi
14451
14452
14453 MATH_LIBS=
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
14455 $as_echo_n "checking for sqrt in -lm... " >&6; }
14456 if ${ac_cv_lib_m_sqrt+:} false; then :
14457 $as_echo_n "(cached) " >&6
14458 else
14459 ac_check_lib_save_LIBS=$LIBS
14460 LIBS="-lm $LIBS"
14461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14462 /* end confdefs.h. */
14463
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14467 #ifdef __cplusplus
14468 extern "C"
14469 #endif
14470 char sqrt ();
14471 int
14472 main ()
14473 {
14474 return sqrt ();
14475 ;
14476 return 0;
14477 }
14478 _ACEOF
14479 if ac_fn_c_try_link "$LINENO"; then :
14480 ac_cv_lib_m_sqrt=yes
14481 else
14482 ac_cv_lib_m_sqrt=no
14483 fi
14484 rm -f core conftest.err conftest.$ac_objext \
14485 conftest$ac_exeext conftest.$ac_ext
14486 LIBS=$ac_check_lib_save_LIBS
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
14489 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
14490 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
14491 MATH_LIBS=-lm
14492 fi
14493
14494
14495
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
14497 $as_echo_n "checking for socket libraries... " >&6; }
14498 if ${libgo_cv_lib_sockets+:} false; then :
14499 $as_echo_n "(cached) " >&6
14500 else
14501 libgo_cv_lib_sockets=
14502 libgo_check_both=no
14503 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
14504 if test "x$ac_cv_func_connect" = xyes; then :
14505 libgo_check_socket=no
14506 else
14507 libgo_check_socket=yes
14508 fi
14509
14510 if test "$libgo_check_socket" = "yes"; then
14511 unset ac_cv_func_connect
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
14513 $as_echo_n "checking for main in -lsocket... " >&6; }
14514 if ${ac_cv_lib_socket_main+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 ac_check_lib_save_LIBS=$LIBS
14518 LIBS="-lsocket $LIBS"
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14521
14522
14523 int
14524 main ()
14525 {
14526 return main ();
14527 ;
14528 return 0;
14529 }
14530 _ACEOF
14531 if ac_fn_c_try_link "$LINENO"; then :
14532 ac_cv_lib_socket_main=yes
14533 else
14534 ac_cv_lib_socket_main=no
14535 fi
14536 rm -f core conftest.err conftest.$ac_objext \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14539 fi
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14541 $as_echo "$ac_cv_lib_socket_main" >&6; }
14542 if test "x$ac_cv_lib_socket_main" = xyes; then :
14543 libgo_cv_lib_sockets="-lsocket"
14544 else
14545 libgo_check_both=yes
14546 fi
14547
14548 fi
14549 if test "$libgo_check_both" = "yes"; then
14550 libgo_old_libs=$LIBS
14551 LIBS="$LIBS -lsocket -lnsl"
14552 unset ac_cv_func_accept
14553 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14554 if test "x$ac_cv_func_accept" = xyes; then :
14555 libgo_check_nsl=no
14556 libgo_cv_lib_sockets="-lsocket -lnsl"
14557 fi
14558
14559 unset ac_cv_func_accept
14560 LIBS=$libgo_old_libs
14561 fi
14562 unset ac_cv_func_gethostbyname
14563 libgo_old_libs="$LIBS"
14564 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14565 if test "x$ac_cv_func_gethostbyname" = xyes; then :
14566
14567 else
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14569 $as_echo_n "checking for main in -lnsl... " >&6; }
14570 if ${ac_cv_lib_nsl_main+:} false; then :
14571 $as_echo_n "(cached) " >&6
14572 else
14573 ac_check_lib_save_LIBS=$LIBS
14574 LIBS="-lnsl $LIBS"
14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h. */
14577
14578
14579 int
14580 main ()
14581 {
14582 return main ();
14583 ;
14584 return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_link "$LINENO"; then :
14588 ac_cv_lib_nsl_main=yes
14589 else
14590 ac_cv_lib_nsl_main=no
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext \
14593 conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14595 fi
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14597 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14598 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14599 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14600 fi
14601
14602 fi
14603
14604 unset ac_cv_func_gethostbyname
14605 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
14606 if test "x$ac_cv_func_sendfile" = xyes; then :
14607
14608 else
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsendfile" >&5
14610 $as_echo_n "checking for main in -lsendfile... " >&6; }
14611 if ${ac_cv_lib_sendfile_main+:} false; then :
14612 $as_echo_n "(cached) " >&6
14613 else
14614 ac_check_lib_save_LIBS=$LIBS
14615 LIBS="-lsendfile $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_sendfile_main=yes
14630 else
14631 ac_cv_lib_sendfile_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_sendfile_main" >&5
14638 $as_echo "$ac_cv_lib_sendfile_main" >&6; }
14639 if test "x$ac_cv_lib_sendfile_main" = xyes; then :
14640 libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lsendfile"
14641 fi
14642
14643 fi
14644
14645 LIBS=$libgo_old_libs
14646
14647 fi
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14649 $as_echo "$libgo_cv_lib_sockets" >&6; }
14650 NET_LIBS="$libgo_cv_lib_sockets"
14651
14652
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14654 $as_echo_n "checking whether -pthread is supported... " >&6; }
14655 if ${libgo_cv_lib_pthread+:} false; then :
14656 $as_echo_n "(cached) " >&6
14657 else
14658 CFLAGS_hold=$CFLAGS
14659 CFLAGS="$CFLAGS -pthread -L../libatomic/.libs"
14660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14661 /* end confdefs.h. */
14662 int i;
14663 _ACEOF
14664 if ac_fn_c_try_compile "$LINENO"; then :
14665 libgo_cv_lib_pthread=yes
14666 else
14667 libgo_cv_lib_pthread=no
14668 fi
14669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 CFLAGS=$CFLAGS_hold
14671 fi
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14673 $as_echo "$libgo_cv_lib_pthread" >&6; }
14674 PTHREAD_CFLAGS=
14675 if test "$libgo_cv_lib_pthread" = yes; then
14676 # RISC-V apparently adds -latomic when using -pthread.
14677 PTHREAD_CFLAGS="-pthread -L../libatomic/.libs"
14678 fi
14679
14680
14681 PTHREAD_LIBS=
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14683 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14684 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
14685 $as_echo_n "(cached) " >&6
14686 else
14687 ac_check_lib_save_LIBS=$LIBS
14688 LIBS="-lpthread $LIBS"
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14691
14692 /* Override any GCC internal prototype to avoid an error.
14693 Use char because int might match the return type of a GCC
14694 builtin and then its argument prototype would still apply. */
14695 #ifdef __cplusplus
14696 extern "C"
14697 #endif
14698 char pthread_create ();
14699 int
14700 main ()
14701 {
14702 return pthread_create ();
14703 ;
14704 return 0;
14705 }
14706 _ACEOF
14707 if ac_fn_c_try_link "$LINENO"; then :
14708 ac_cv_lib_pthread_pthread_create=yes
14709 else
14710 ac_cv_lib_pthread_pthread_create=no
14711 fi
14712 rm -f core conftest.err conftest.$ac_objext \
14713 conftest$ac_exeext conftest.$ac_ext
14714 LIBS=$ac_check_lib_save_LIBS
14715 fi
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14717 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14718 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
14719 PTHREAD_LIBS=-lpthread
14720 fi
14721
14722
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14725 $as_echo_n "checking for library containing sched_yield... " >&6; }
14726 if ${ac_cv_search_sched_yield+:} false; then :
14727 $as_echo_n "(cached) " >&6
14728 else
14729 ac_func_search_save_LIBS=$LIBS
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14732
14733 /* Override any GCC internal prototype to avoid an error.
14734 Use char because int might match the return type of a GCC
14735 builtin and then its argument prototype would still apply. */
14736 #ifdef __cplusplus
14737 extern "C"
14738 #endif
14739 char sched_yield ();
14740 int
14741 main ()
14742 {
14743 return sched_yield ();
14744 ;
14745 return 0;
14746 }
14747 _ACEOF
14748 for ac_lib in '' rt; do
14749 if test -z "$ac_lib"; then
14750 ac_res="none required"
14751 else
14752 ac_res=-l$ac_lib
14753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14754 fi
14755 if ac_fn_c_try_link "$LINENO"; then :
14756 ac_cv_search_sched_yield=$ac_res
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext \
14759 conftest$ac_exeext
14760 if ${ac_cv_search_sched_yield+:} false; then :
14761 break
14762 fi
14763 done
14764 if ${ac_cv_search_sched_yield+:} false; then :
14765
14766 else
14767 ac_cv_search_sched_yield=no
14768 fi
14769 rm conftest.$ac_ext
14770 LIBS=$ac_func_search_save_LIBS
14771 fi
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14773 $as_echo "$ac_cv_search_sched_yield" >&6; }
14774 ac_res=$ac_cv_search_sched_yield
14775 if test "$ac_res" != no; then :
14776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14777
14778 fi
14779
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
14781 $as_echo_n "checking for library containing nanosleep... " >&6; }
14782 if ${ac_cv_search_nanosleep+:} false; then :
14783 $as_echo_n "(cached) " >&6
14784 else
14785 ac_func_search_save_LIBS=$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 nanosleep ();
14796 int
14797 main ()
14798 {
14799 return nanosleep ();
14800 ;
14801 return 0;
14802 }
14803 _ACEOF
14804 for ac_lib in '' rt; do
14805 if test -z "$ac_lib"; then
14806 ac_res="none required"
14807 else
14808 ac_res=-l$ac_lib
14809 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14810 fi
14811 if ac_fn_c_try_link "$LINENO"; then :
14812 ac_cv_search_nanosleep=$ac_res
14813 fi
14814 rm -f core conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext
14816 if ${ac_cv_search_nanosleep+:} false; then :
14817 break
14818 fi
14819 done
14820 if ${ac_cv_search_nanosleep+:} false; then :
14821
14822 else
14823 ac_cv_search_nanosleep=no
14824 fi
14825 rm conftest.$ac_ext
14826 LIBS=$ac_func_search_save_LIBS
14827 fi
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
14829 $as_echo "$ac_cv_search_nanosleep" >&6; }
14830 ac_res=$ac_cv_search_nanosleep
14831 if test "$ac_res" != no; then :
14832 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14833
14834 fi
14835
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14837 $as_echo_n "checking for library containing clock_gettime... " >&6; }
14838 if ${ac_cv_search_clock_gettime+:} false; then :
14839 $as_echo_n "(cached) " >&6
14840 else
14841 ac_func_search_save_LIBS=$LIBS
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844
14845 /* Override any GCC internal prototype to avoid an error.
14846 Use char because int might match the return type of a GCC
14847 builtin and then its argument prototype would still apply. */
14848 #ifdef __cplusplus
14849 extern "C"
14850 #endif
14851 char clock_gettime ();
14852 int
14853 main ()
14854 {
14855 return clock_gettime ();
14856 ;
14857 return 0;
14858 }
14859 _ACEOF
14860 for ac_lib in '' rt; do
14861 if test -z "$ac_lib"; then
14862 ac_res="none required"
14863 else
14864 ac_res=-l$ac_lib
14865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14866 fi
14867 if ac_fn_c_try_link "$LINENO"; then :
14868 ac_cv_search_clock_gettime=$ac_res
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext
14872 if ${ac_cv_search_clock_gettime+:} false; then :
14873 break
14874 fi
14875 done
14876 if ${ac_cv_search_clock_gettime+:} false; then :
14877
14878 else
14879 ac_cv_search_clock_gettime=no
14880 fi
14881 rm conftest.$ac_ext
14882 LIBS=$ac_func_search_save_LIBS
14883 fi
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14885 $as_echo "$ac_cv_search_clock_gettime" >&6; }
14886 ac_res=$ac_cv_search_clock_gettime
14887 if test "$ac_res" != no; then :
14888 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14889
14890 fi
14891
14892
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14894 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14895 if ${ac_cv_c_bigendian+:} false; then :
14896 $as_echo_n "(cached) " >&6
14897 else
14898 ac_cv_c_bigendian=unknown
14899 # See if we're dealing with a universal compiler.
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902 #ifndef __APPLE_CC__
14903 not a universal capable compiler
14904 #endif
14905 typedef int dummy;
14906
14907 _ACEOF
14908 if ac_fn_c_try_compile "$LINENO"; then :
14909
14910 # Check for potential -arch flags. It is not universal unless
14911 # there are at least two -arch flags with different values.
14912 ac_arch=
14913 ac_prev=
14914 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14915 if test -n "$ac_prev"; then
14916 case $ac_word in
14917 i?86 | x86_64 | ppc | ppc64)
14918 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14919 ac_arch=$ac_word
14920 else
14921 ac_cv_c_bigendian=universal
14922 break
14923 fi
14924 ;;
14925 esac
14926 ac_prev=
14927 elif test "x$ac_word" = "x-arch"; then
14928 ac_prev=arch
14929 fi
14930 done
14931 fi
14932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14933 if test $ac_cv_c_bigendian = unknown; then
14934 # See if sys/param.h defines the BYTE_ORDER macro.
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14937 #include <sys/types.h>
14938 #include <sys/param.h>
14939
14940 int
14941 main ()
14942 {
14943 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14944 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14945 && LITTLE_ENDIAN)
14946 bogus endian macros
14947 #endif
14948
14949 ;
14950 return 0;
14951 }
14952 _ACEOF
14953 if ac_fn_c_try_compile "$LINENO"; then :
14954 # It does; now see whether it defined to BIG_ENDIAN or not.
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 #include <sys/types.h>
14958 #include <sys/param.h>
14959
14960 int
14961 main ()
14962 {
14963 #if BYTE_ORDER != BIG_ENDIAN
14964 not big endian
14965 #endif
14966
14967 ;
14968 return 0;
14969 }
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"; then :
14972 ac_cv_c_bigendian=yes
14973 else
14974 ac_cv_c_bigendian=no
14975 fi
14976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 fi
14978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979 fi
14980 if test $ac_cv_c_bigendian = unknown; then
14981 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14983 /* end confdefs.h. */
14984 #include <limits.h>
14985
14986 int
14987 main ()
14988 {
14989 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14990 bogus endian macros
14991 #endif
14992
14993 ;
14994 return 0;
14995 }
14996 _ACEOF
14997 if ac_fn_c_try_compile "$LINENO"; then :
14998 # It does; now see whether it defined to _BIG_ENDIAN or not.
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001 #include <limits.h>
15002
15003 int
15004 main ()
15005 {
15006 #ifndef _BIG_ENDIAN
15007 not big endian
15008 #endif
15009
15010 ;
15011 return 0;
15012 }
15013 _ACEOF
15014 if ac_fn_c_try_compile "$LINENO"; then :
15015 ac_cv_c_bigendian=yes
15016 else
15017 ac_cv_c_bigendian=no
15018 fi
15019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020 fi
15021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15022 fi
15023 if test $ac_cv_c_bigendian = unknown; then
15024 # Compile a test program.
15025 if test "$cross_compiling" = yes; then :
15026 # Try to guess by grepping values from an object file.
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 short int ascii_mm[] =
15030 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15031 short int ascii_ii[] =
15032 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15033 int use_ascii (int i) {
15034 return ascii_mm[i] + ascii_ii[i];
15035 }
15036 short int ebcdic_ii[] =
15037 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15038 short int ebcdic_mm[] =
15039 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15040 int use_ebcdic (int i) {
15041 return ebcdic_mm[i] + ebcdic_ii[i];
15042 }
15043 extern int foo;
15044
15045 int
15046 main ()
15047 {
15048 return use_ascii (foo) == use_ebcdic (foo);
15049 ;
15050 return 0;
15051 }
15052 _ACEOF
15053 if ac_fn_c_try_compile "$LINENO"; then :
15054 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15055 ac_cv_c_bigendian=yes
15056 fi
15057 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15058 if test "$ac_cv_c_bigendian" = unknown; then
15059 ac_cv_c_bigendian=no
15060 else
15061 # finding both strings is unlikely to happen, but who knows?
15062 ac_cv_c_bigendian=unknown
15063 fi
15064 fi
15065 fi
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 else
15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15070 $ac_includes_default
15071 int
15072 main ()
15073 {
15074
15075 /* Are we little or big endian? From Harbison&Steele. */
15076 union
15077 {
15078 long int l;
15079 char c[sizeof (long int)];
15080 } u;
15081 u.l = 1;
15082 return u.c[sizeof (long int) - 1] == 1;
15083
15084 ;
15085 return 0;
15086 }
15087 _ACEOF
15088 if ac_fn_c_try_run "$LINENO"; then :
15089 ac_cv_c_bigendian=no
15090 else
15091 ac_cv_c_bigendian=yes
15092 fi
15093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15094 conftest.$ac_objext conftest.beam conftest.$ac_ext
15095 fi
15096
15097 fi
15098 fi
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15100 $as_echo "$ac_cv_c_bigendian" >&6; }
15101 case $ac_cv_c_bigendian in #(
15102 yes)
15103 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15104 ;; #(
15105 no)
15106 ;; #(
15107 universal)
15108
15109 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15110
15111 ;; #(
15112 *)
15113 as_fn_error $? "unknown endianness
15114 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15115 esac
15116
15117
15118
15119
15120 # Check whether --with-system-libunwind was given.
15121 if test "${with_system_libunwind+set}" = set; then :
15122 withval=$with_system_libunwind;
15123 fi
15124
15125 # If system-libunwind was not specifically set, pick a default setting.
15126 if test x$with_system_libunwind = x; then
15127 case ${target} in
15128 ia64-*-hpux*) with_system_libunwind=yes ;;
15129 *) with_system_libunwind=no ;;
15130 esac
15131 fi
15132 # Based on system-libunwind and target, do we have ipinfo?
15133 if test x$with_system_libunwind = xyes; then
15134 case ${target} in
15135 ia64-*-*) have_unwind_getipinfo=no ;;
15136 *) have_unwind_getipinfo=yes ;;
15137 esac
15138 else
15139 # Darwin before version 9 does not have _Unwind_GetIPInfo.
15140
15141 case ${target} in
15142 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
15143 *) have_unwind_getipinfo=yes ;;
15144 esac
15145
15146 fi
15147
15148 if test x$have_unwind_getipinfo = xyes; then
15149
15150 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
15151
15152 fi
15153
15154
15155 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/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h net/if_arp.h net/route.h netpacket/packet.h sys/prctl.h sys/mount.h sys/vfs.h sys/statfs.h sys/timex.h sys/sysinfo.h utime.h linux/ether.h linux/fs.h linux/ptrace.h linux/reboot.h netinet/in_syst.h netinet/ip.h netinet/ip_mroute.h netinet/if_ether.h
15156 do :
15157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15158 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15159 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15160 cat >>confdefs.h <<_ACEOF
15161 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15162 _ACEOF
15163
15164 fi
15165
15166 done
15167
15168
15169 for ac_header in netinet/icmp6.h
15170 do :
15171 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#include <netinet/in.h>
15172
15173 "
15174 if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
15175 cat >>confdefs.h <<_ACEOF
15176 #define HAVE_NETINET_ICMP6_H 1
15177 _ACEOF
15178
15179 fi
15180
15181 done
15182
15183
15184 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
15185 do :
15186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15187 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
15188 #include <sys/socket.h>
15189 #endif
15190
15191 "
15192 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15193 cat >>confdefs.h <<_ACEOF
15194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15195 _ACEOF
15196
15197 fi
15198
15199 done
15200
15201
15202 if test "$ac_cv_header_sys_mman_h" = yes; then
15203 HAVE_SYS_MMAN_H_TRUE=
15204 HAVE_SYS_MMAN_H_FALSE='#'
15205 else
15206 HAVE_SYS_MMAN_H_TRUE='#'
15207 HAVE_SYS_MMAN_H_FALSE=
15208 fi
15209
15210
15211 for ac_func in strerror_r strsignal wait4 mincore setenv unsetenv dl_iterate_phdr memmem
15212 do :
15213 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15216 cat >>confdefs.h <<_ACEOF
15217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15218 _ACEOF
15219
15220 fi
15221 done
15222
15223 if test "$ac_cv_func_strerror_r" = yes; then
15224 HAVE_STRERROR_R_TRUE=
15225 HAVE_STRERROR_R_FALSE='#'
15226 else
15227 HAVE_STRERROR_R_TRUE='#'
15228 HAVE_STRERROR_R_FALSE=
15229 fi
15230
15231 if test "$ac_cv_func_wait4" = yes; then
15232 HAVE_WAIT4_TRUE=
15233 HAVE_WAIT4_FALSE='#'
15234 else
15235 HAVE_WAIT4_TRUE='#'
15236 HAVE_WAIT4_FALSE=
15237 fi
15238
15239
15240 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
15241 do :
15242 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15243 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15244 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15245 cat >>confdefs.h <<_ACEOF
15246 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15247 _ACEOF
15248
15249 fi
15250 done
15251
15252 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15253 if test "x$ac_cv_type_off_t" = xyes; then :
15254
15255 else
15256
15257 cat >>confdefs.h <<_ACEOF
15258 #define off_t long int
15259 _ACEOF
15260
15261 fi
15262
15263 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
15264 if test "x$ac_cv_type_loff_t" = xyes; then :
15265
15266 cat >>confdefs.h <<_ACEOF
15267 #define HAVE_LOFF_T 1
15268 _ACEOF
15269
15270
15271 fi
15272
15273
15274 LIBS_hold="$LIBS"
15275 LIBS="$LIBS -lm"
15276 for ac_func in cosl expl logl sinl tanl acosl asinl atanl atan2l expm1l ldexpl log10l log1pl
15277 do :
15278 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15279 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15280 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15281 cat >>confdefs.h <<_ACEOF
15282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15283 _ACEOF
15284
15285 fi
15286 done
15287
15288 LIBS="$LIBS_hold"
15289
15290 CFLAGS_hold="$CFLAGS"
15291 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15292 LIBS_hold="$LIBS"
15293 LIBS="$LIBS $PTHREAD_LIBS"
15294 for ac_func in sem_timedwait
15295 do :
15296 ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
15297 if test "x$ac_cv_func_sem_timedwait" = xyes; then :
15298 cat >>confdefs.h <<_ACEOF
15299 #define HAVE_SEM_TIMEDWAIT 1
15300 _ACEOF
15301
15302 fi
15303 done
15304
15305 CFLAGS="$CFLAGS_hold"
15306 LIBS="$LIBS_hold"
15307
15308 LIBS_hold="$LIBS"
15309 LIBS="$LIBS $MATH_LIBS"
15310 for ac_func in matherr
15311 do :
15312 ac_fn_c_check_func "$LINENO" "matherr" "ac_cv_func_matherr"
15313 if test "x$ac_cv_func_matherr" = xyes; then :
15314 cat >>confdefs.h <<_ACEOF
15315 #define HAVE_MATHERR 1
15316 _ACEOF
15317
15318 fi
15319 done
15320
15321 LIBS="$LIBS_hold"
15322
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
15324 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
15325 if ${libgo_cv_c_stringops+:} false; then :
15326 $as_echo_n "(cached) " >&6
15327 else
15328 CFLAGS_hold=$CFLAGS
15329 CFLAGS="$CFLAGS -minline-all-stringops"
15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h. */
15332 int i;
15333 _ACEOF
15334 if ac_fn_c_try_compile "$LINENO"; then :
15335 libgo_cv_c_stringops=yes
15336 else
15337 libgo_cv_c_stringops=no
15338 fi
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 CFLAGS=$CFLAGS_hold
15341 fi
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
15343 $as_echo "$libgo_cv_c_stringops" >&6; }
15344 STRINGOPS_FLAG=
15345 if test "$libgo_cv_c_stringops" = yes; then
15346 STRINGOPS_FLAG=-minline-all-stringops
15347 fi
15348
15349
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -mfancy-math-387" >&5
15351 $as_echo_n "checking whether compiler supports -mfancy-math-387... " >&6; }
15352 if ${libgo_cv_c_fancymath+:} false; then :
15353 $as_echo_n "(cached) " >&6
15354 else
15355 CFLAGS_hold=$CFLAGS
15356 CFLAGS="$CFLAGS -mfancy-math-387"
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359 int i;
15360 _ACEOF
15361 if ac_fn_c_try_compile "$LINENO"; then :
15362 libgo_cv_c_fancymath=yes
15363 else
15364 libgo_cv_c_fancymath=no
15365 fi
15366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15367 CFLAGS=$CFLAGS_hold
15368 fi
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_fancymath" >&5
15370 $as_echo "$libgo_cv_c_fancymath" >&6; }
15371 MATH_FLAG=
15372 if test "$libgo_cv_c_fancymath" = yes; then
15373 MATH_FLAG="-mfancy-math-387"
15374 fi
15375 MATH_FLAG="${MATH_FLAG} -ffp-contract=off -fno-math-errno -fno-trapping-math"
15376
15377
15378 CFLAGS_hold=$CFLAGS
15379 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
15380 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
15381 if test "x$ac_cv_type_off64_t" = xyes; then :
15382
15383 cat >>confdefs.h <<_ACEOF
15384 #define HAVE_OFF64_T 1
15385 _ACEOF
15386
15387
15388 fi
15389
15390 CFLAGS=$CFLAGS_hold
15391
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
15393 $as_echo_n "checking epoll_event size... " >&6; }
15394 if ${libgo_cv_c_epoll_event_size+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size" "#include <sys/epoll.h>"; then :
15398
15399 else
15400 libgo_cv_c_epoll_event_size=0
15401 fi
15402
15403 fi
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
15405 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
15406 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
15407
15408
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
15410 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
15411 if ${libgo_cv_c_epoll_event_fd_offset+:} false; then :
15412 $as_echo_n "(cached) " >&6
15413 else
15414 if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset" "#include <stddef.h>
15415 #include <sys/epoll.h>"; then :
15416
15417 else
15418 libgo_cv_c_epoll_event_fd_offset=0
15419 fi
15420
15421 fi
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
15423 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
15424 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
15425
15426
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429 #include <sys/stat.h>
15430
15431 _ACEOF
15432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15433 $EGREP "timespec_t.*st_atim" >/dev/null 2>&1; then :
15434 have_stat_timespec=yes
15435 else
15436 have_stat_timespec=no
15437 fi
15438 rm -f conftest*
15439
15440 if test $have_stat_timespec = yes; then
15441 HAVE_STAT_TIMESPEC_TRUE=
15442 HAVE_STAT_TIMESPEC_FALSE='#'
15443 else
15444 HAVE_STAT_TIMESPEC_TRUE='#'
15445 HAVE_STAT_TIMESPEC_FALSE=
15446 fi
15447
15448
15449 ac_fn_c_check_type "$LINENO" "struct exception" "ac_cv_type_struct_exception" "#include <math.h>
15450 "
15451 if test "x$ac_cv_type_struct_exception" = xyes; then :
15452 libgo_has_struct_exception=yes
15453 else
15454 libgo_has_struct_exception=no
15455 fi
15456
15457 if test "$libgo_has_struct_exception" = "yes"; then
15458
15459 $as_echo "#define HAVE_STRUCT_EXCEPTION 1" >>confdefs.h
15460
15461 fi
15462
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
15464 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
15465 if ${libgo_cv_lib_setcontext_clobbers_tls+:} false; then :
15466 $as_echo_n "(cached) " >&6
15467 else
15468 CFLAGS_hold="$CFLAGS"
15469 CFLAGS="$PTHREAD_CFLAGS"
15470 LIBS_hold="$LIBS"
15471 LIBS="$LIBS $PTHREAD_LIBS"
15472 # The cast to long int works around a bug in the HP C Compiler
15473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15475 # This bug is HP SR number 8606223364.
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15477 $as_echo_n "checking size of void *... " >&6; }
15478 if ${ac_cv_sizeof_void_p+:} false; then :
15479 $as_echo_n "(cached) " >&6
15480 else
15481 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15482
15483 else
15484 if test "$ac_cv_type_void_p" = yes; then
15485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15487 as_fn_error 77 "cannot compute sizeof (void *)
15488 See \`config.log' for more details" "$LINENO" 5; }
15489 else
15490 ac_cv_sizeof_void_p=0
15491 fi
15492 fi
15493
15494 fi
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15496 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15497
15498
15499
15500 cat >>confdefs.h <<_ACEOF
15501 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15502 _ACEOF
15503
15504
15505 as_fn_arith $ac_cv_sizeof_void_p \* 8 && ptr_type_size=$as_val
15506 if test "$cross_compiling" = yes; then :
15507 case "$target:$ptr_type_size" in
15508 i?86-*-solaris2.1[01]:64 | x86_64*-*-solaris2.1[01]:64)
15509 libgo_cv_lib_setcontext_clobbers_tls=yes ;;
15510 *)
15511 libgo_cv_lib_setcontext_clobbers_tls=no ;;
15512 esac
15513
15514 else
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15517
15518 #include <pthread.h>
15519 #include <stdlib.h>
15520 #include <ucontext.h>
15521 #include <unistd.h>
15522
15523 __thread int tls;
15524
15525 static char stack[10 * 1024 * 1024];
15526 static ucontext_t c;
15527
15528 /* Called via makecontext/setcontext. */
15529
15530 static void
15531 cfn (void)
15532 {
15533 exit (tls);
15534 }
15535
15536 /* Called via pthread_create. */
15537
15538 static void *
15539 tfn (void *dummy)
15540 {
15541 /* The thread should still see this value after calling
15542 setcontext. */
15543 tls = 0;
15544
15545 setcontext (&c);
15546
15547 /* The call to setcontext should not return. */
15548 abort ();
15549 }
15550
15551 int
15552 main ()
15553 {
15554 pthread_t tid;
15555
15556 /* The thread should not see this value. */
15557 tls = 1;
15558
15559 if (getcontext (&c) < 0)
15560 abort ();
15561
15562 c.uc_stack.ss_sp = stack;
15563 #ifdef MAKECONTEXT_STACK_TOP
15564 c.uc_stack.ss_sp += sizeof stack;
15565 #endif
15566 c.uc_stack.ss_flags = 0;
15567 c.uc_stack.ss_size = sizeof stack;
15568 c.uc_link = NULL;
15569 makecontext (&c, cfn, 0);
15570
15571 if (pthread_create (&tid, NULL, tfn, NULL) != 0)
15572 abort ();
15573
15574 if (pthread_join (tid, NULL) != 0)
15575 abort ();
15576
15577 /* The thread should have called exit. */
15578 abort ();
15579 }
15580
15581 _ACEOF
15582 if ac_fn_c_try_run "$LINENO"; then :
15583 libgo_cv_lib_setcontext_clobbers_tls=no
15584 else
15585 libgo_cv_lib_setcontext_clobbers_tls=yes
15586 fi
15587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15588 conftest.$ac_objext conftest.beam conftest.$ac_ext
15589 fi
15590
15591 CFLAGS="$CFLAGS_hold"
15592 LIBS="$LIBS_hold"
15593
15594 fi
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
15596 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
15597 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
15598
15599 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
15600
15601 fi
15602
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
15604 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
15605 if ${libgo_cv_ro_eh_frame+:} false; then :
15606 $as_echo_n "(cached) " >&6
15607 else
15608
15609 libgo_cv_ro_eh_frame=no
15610 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
15611 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
15612 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
15613 libgo_cv_ro_eh_frame=yes
15614 elif grep '.section.*eh_frame.*#alloc' conftest.c \
15615 | grep -v '#write' > /dev/null; then
15616 libgo_cv_ro_eh_frame=yes
15617 fi
15618 fi
15619 rm -f conftest.*
15620
15621 fi
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ro_eh_frame" >&5
15623 $as_echo "$libgo_cv_ro_eh_frame" >&6; }
15624 if test "x$libgo_cv_ro_eh_frame" = xyes; then
15625
15626 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
15627
15628 else
15629
15630 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
15631
15632 fi
15633
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Qunused-arguments" >&5
15635 $as_echo_n "checking if compiler supports -Qunused-arguments... " >&6; }
15636 if ${libgo_cv_c_unused_arguments+:} false; then :
15637 $as_echo_n "(cached) " >&6
15638 else
15639 CFLAGS_hold=$CFLAGS
15640 CFLAGS="$CFLAGS -Qunused-arguments"
15641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15642 /* end confdefs.h. */
15643 int i;
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 libgo_cv_c_unused_arguments=yes
15647 else
15648 libgo_cv_c_unused_arguments=no
15649 fi
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 CFLAGS=$CFLAGS_hold
15652 fi
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_unused_arguments" >&5
15654 $as_echo "$libgo_cv_c_unused_arguments" >&6; }
15655
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if assembler supports GNU comdat group syntax" >&5
15657 $as_echo_n "checking if assembler supports GNU comdat group syntax... " >&6; }
15658 if ${libgo_cv_as_comdat_gnu+:} false; then :
15659 $as_echo_n "(cached) " >&6
15660 else
15661
15662 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
15663 CFLAGS_hold=$CFLAGS
15664 if test "$libgo_cv_c_unused_arguments" = yes; then
15665 CFLAGS="$CFLAGS -Qunused-arguments"
15666 fi
15667 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15668 libgo_cv_as_comdat_gnu=yes
15669 else
15670 libgo_cv_as_comdat_gnu=no
15671 fi
15672 CFLAGS=$CFLAGS_hold
15673
15674 fi
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_comdat_gnu" >&5
15676 $as_echo "$libgo_cv_as_comdat_gnu" >&6; }
15677 if test "x$libgo_cv_as_comdat_gnu" = xyes; then
15678
15679 $as_echo "#define HAVE_AS_COMDAT_GAS 1" >>confdefs.h
15680
15681 fi
15682
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15684 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15685 if ${libgo_cv_as_x86_pcrel+:} false; then :
15686 $as_echo_n "(cached) " >&6
15687 else
15688
15689 libgo_cv_as_x86_pcrel=yes
15690 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15691 CFLAGS_hold=$CFLAGS
15692 if test "$libgo_cv_c_unused_arguments" = yes; then
15693 CFLAGS="$CFLAGS -Qunused-arguments"
15694 fi
15695 if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
15696 libgo_cv_as_x86_pcrel=no
15697 fi
15698 CFLAGS=$CFLAGS_hold
15699
15700 fi
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_pcrel" >&5
15702 $as_echo "$libgo_cv_as_x86_pcrel" >&6; }
15703 if test "x$libgo_cv_as_x86_pcrel" = xyes; then
15704
15705 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15706
15707 fi
15708
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
15710 $as_echo_n "checking assembler supports unwind section type... " >&6; }
15711 if ${libgo_cv_as_x86_64_unwind_section_type+:} false; then :
15712 $as_echo_n "(cached) " >&6
15713 else
15714
15715 libgo_cv_as_x86_64_unwind_section_type=yes
15716 echo '.section .eh_frame,"a",@unwind' > conftest.s
15717 CFLAGS_hold=$CFLAGS
15718 if test "$libgo_cv_c_unused_arguments" = yes; then
15719 CFLAGS="$CFLAGS -Qunused-arguments"
15720 fi
15721 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
15722 libgo_cv_as_x86_64_unwind_section_type=no
15723 fi
15724 CFLAGS=$CFLAGS_hold
15725
15726 fi
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_64_unwind_section_type" >&5
15728 $as_echo "$libgo_cv_as_x86_64_unwind_section_type" >&6; }
15729 if test "x$libgo_cv_as_x86_64_unwind_section_type" = xyes; then
15730
15731 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
15732
15733 fi
15734
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports AES instructions" >&5
15736 $as_echo_n "checking assembler supports AES instructions... " >&6; }
15737 if ${libgo_cv_as_x86_aes+:} false; then :
15738 $as_echo_n "(cached) " >&6
15739 else
15740
15741 libgo_cv_as_x86_aes=yes
15742 echo 'aesenc %xmm0, %xmm1' > conftest.s
15743 CFLAGS_hold=$CFLAGS
15744 if test "$libgo_cv_c_unused_arguments" = yes; then
15745 CFLAGS="$CFLAGS -Qunused-arguments"
15746 fi
15747 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i error > /dev/null; then
15748 libgo_cv_as_x86_aes=no
15749 fi
15750 CFLAGS=$CFLAGS_hold
15751
15752 fi
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_as_x86_aes" >&5
15754 $as_echo "$libgo_cv_as_x86_aes" >&6; }
15755 if test "x$libgo_cv_as_x86_aes" = xyes; then
15756
15757 $as_echo "#define HAVE_AS_X86_AES 1" >>confdefs.h
15758
15759 fi
15760
15761 cat >confcache <<\_ACEOF
15762 # This file is a shell script that caches the results of configure
15763 # tests run on this system so they can be shared between configure
15764 # scripts and configure runs, see configure's option --config-cache.
15765 # It is not useful on other systems. If it contains results you don't
15766 # want to keep, you may remove or edit it.
15767 #
15768 # config.status only pays attention to the cache file if you give it
15769 # the --recheck option to rerun configure.
15770 #
15771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15773 # following values.
15774
15775 _ACEOF
15776
15777 # The following way of writing the cache mishandles newlines in values,
15778 # but we know of no workaround that is simple, portable, and efficient.
15779 # So, we kill variables containing newlines.
15780 # Ultrix sh set writes to stderr and can't be redirected directly,
15781 # and sets the high bit in the cache file unless we assign to the vars.
15782 (
15783 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15784 eval ac_val=\$$ac_var
15785 case $ac_val in #(
15786 *${as_nl}*)
15787 case $ac_var in #(
15788 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15789 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15790 esac
15791 case $ac_var in #(
15792 _ | IFS | as_nl) ;; #(
15793 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15794 *) { eval $ac_var=; unset $ac_var;} ;;
15795 esac ;;
15796 esac
15797 done
15798
15799 (set) 2>&1 |
15800 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15801 *${as_nl}ac_space=\ *)
15802 # `set' does not quote correctly, so add quotes: double-quote
15803 # substitution turns \\\\ into \\, and sed turns \\ into \.
15804 sed -n \
15805 "s/'/'\\\\''/g;
15806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15807 ;; #(
15808 *)
15809 # `set' quotes correctly as required by POSIX, so do not add quotes.
15810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15811 ;;
15812 esac |
15813 sort
15814 ) |
15815 sed '
15816 /^ac_cv_env_/b end
15817 t clear
15818 :clear
15819 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15820 t end
15821 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15822 :end' >>confcache
15823 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15824 if test -w "$cache_file"; then
15825 if test "x$cache_file" != "x/dev/null"; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15827 $as_echo "$as_me: updating cache $cache_file" >&6;}
15828 if test ! -f "$cache_file" || test -h "$cache_file"; then
15829 cat confcache >"$cache_file"
15830 else
15831 case $cache_file in #(
15832 */* | ?:*)
15833 mv -f confcache "$cache_file"$$ &&
15834 mv -f "$cache_file"$$ "$cache_file" ;; #(
15835 *)
15836 mv -f confcache "$cache_file" ;;
15837 esac
15838 fi
15839 fi
15840 else
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15842 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15843 fi
15844 fi
15845 rm -f confcache
15846
15847 if test ${multilib} = yes; then
15848 multilib_arg="--enable-multilib"
15849 else
15850 multilib_arg=
15851 fi
15852
15853 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
15854
15855
15856 ac_config_commands="$ac_config_commands default"
15857
15858
15859 cat >confcache <<\_ACEOF
15860 # This file is a shell script that caches the results of configure
15861 # tests run on this system so they can be shared between configure
15862 # scripts and configure runs, see configure's option --config-cache.
15863 # It is not useful on other systems. If it contains results you don't
15864 # want to keep, you may remove or edit it.
15865 #
15866 # config.status only pays attention to the cache file if you give it
15867 # the --recheck option to rerun configure.
15868 #
15869 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15870 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15871 # following values.
15872
15873 _ACEOF
15874
15875 # The following way of writing the cache mishandles newlines in values,
15876 # but we know of no workaround that is simple, portable, and efficient.
15877 # So, we kill variables containing newlines.
15878 # Ultrix sh set writes to stderr and can't be redirected directly,
15879 # and sets the high bit in the cache file unless we assign to the vars.
15880 (
15881 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15882 eval ac_val=\$$ac_var
15883 case $ac_val in #(
15884 *${as_nl}*)
15885 case $ac_var in #(
15886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15888 esac
15889 case $ac_var in #(
15890 _ | IFS | as_nl) ;; #(
15891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15892 *) { eval $ac_var=; unset $ac_var;} ;;
15893 esac ;;
15894 esac
15895 done
15896
15897 (set) 2>&1 |
15898 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15899 *${as_nl}ac_space=\ *)
15900 # `set' does not quote correctly, so add quotes: double-quote
15901 # substitution turns \\\\ into \\, and sed turns \\ into \.
15902 sed -n \
15903 "s/'/'\\\\''/g;
15904 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15905 ;; #(
15906 *)
15907 # `set' quotes correctly as required by POSIX, so do not add quotes.
15908 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15909 ;;
15910 esac |
15911 sort
15912 ) |
15913 sed '
15914 /^ac_cv_env_/b end
15915 t clear
15916 :clear
15917 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15918 t end
15919 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15920 :end' >>confcache
15921 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15922 if test -w "$cache_file"; then
15923 if test "x$cache_file" != "x/dev/null"; then
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15925 $as_echo "$as_me: updating cache $cache_file" >&6;}
15926 if test ! -f "$cache_file" || test -h "$cache_file"; then
15927 cat confcache >"$cache_file"
15928 else
15929 case $cache_file in #(
15930 */* | ?:*)
15931 mv -f confcache "$cache_file"$$ &&
15932 mv -f "$cache_file"$$ "$cache_file" ;; #(
15933 *)
15934 mv -f confcache "$cache_file" ;;
15935 esac
15936 fi
15937 fi
15938 else
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15940 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15941 fi
15942 fi
15943 rm -f confcache
15944
15945 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15946 # Let make expand exec_prefix.
15947 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15948
15949 DEFS=-DHAVE_CONFIG_H
15950
15951 ac_libobjs=
15952 ac_ltlibobjs=
15953 U=
15954 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15955 # 1. Remove the extension, and $U if already installed.
15956 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15957 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15958 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15959 # will be set to the directory where LIBOBJS objects are built.
15960 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15961 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15962 done
15963 LIBOBJS=$ac_libobjs
15964
15965 LTLIBOBJS=$ac_ltlibobjs
15966
15967
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15969 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15970 if test -n "$am_sleep_pid"; then
15971 # Hide warnings about reused PIDs.
15972 wait $am_sleep_pid 2>/dev/null
15973 fi
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15975 $as_echo "done" >&6; }
15976 if test -n "$EXEEXT"; then
15977 am__EXEEXT_TRUE=
15978 am__EXEEXT_FALSE='#'
15979 else
15980 am__EXEEXT_TRUE='#'
15981 am__EXEEXT_FALSE=
15982 fi
15983
15984 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15985 as_fn_error $? "conditional \"AMDEP\" was never defined.
15986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15987 fi
15988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15989 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15991 fi
15992 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15993 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15995 fi
15996 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15997 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15999 fi
16000 if test -z "${USE_LIBFFI_TRUE}" && test -z "${USE_LIBFFI_FALSE}"; then
16001 as_fn_error $? "conditional \"USE_LIBFFI\" was never defined.
16002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16003 fi
16004 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
16005 as_fn_error $? "conditional \"LIBGO_IS_DARWIN\" was never defined.
16006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16007 fi
16008 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
16009 as_fn_error $? "conditional \"LIBGO_IS_FREEBSD\" was never defined.
16010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16011 fi
16012 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
16013 as_fn_error $? "conditional \"LIBGO_IS_IRIX\" was never defined.
16014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16015 fi
16016 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
16017 as_fn_error $? "conditional \"LIBGO_IS_LINUX\" was never defined.
16018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16019 fi
16020 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
16021 as_fn_error $? "conditional \"LIBGO_IS_NETBSD\" was never defined.
16022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16023 fi
16024 if test -z "${LIBGO_IS_OPENBSD_TRUE}" && test -z "${LIBGO_IS_OPENBSD_FALSE}"; then
16025 as_fn_error $? "conditional \"LIBGO_IS_OPENBSD\" was never defined.
16026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16027 fi
16028 if test -z "${LIBGO_IS_DRAGONFLY_TRUE}" && test -z "${LIBGO_IS_DRAGONFLY_FALSE}"; then
16029 as_fn_error $? "conditional \"LIBGO_IS_DRAGONFLY\" was never defined.
16030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16031 fi
16032 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
16033 as_fn_error $? "conditional \"LIBGO_IS_RTEMS\" was never defined.
16034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16035 fi
16036 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
16037 as_fn_error $? "conditional \"LIBGO_IS_SOLARIS\" was never defined.
16038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16039 fi
16040 if test -z "${LIBGO_IS_AIX_TRUE}" && test -z "${LIBGO_IS_AIX_FALSE}"; then
16041 as_fn_error $? "conditional \"LIBGO_IS_AIX\" was never defined.
16042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16043 fi
16044 if test -z "${LIBGO_IS_HURD_TRUE}" && test -z "${LIBGO_IS_HURD_FALSE}"; then
16045 as_fn_error $? "conditional \"LIBGO_IS_HURD\" was never defined.
16046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16047 fi
16048 if test -z "${LIBGO_IS_BSD_TRUE}" && test -z "${LIBGO_IS_BSD_FALSE}"; then
16049 as_fn_error $? "conditional \"LIBGO_IS_BSD\" was never defined.
16050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16051 fi
16052 if test -z "${LIBGO_IS_X86_TRUE}" && test -z "${LIBGO_IS_X86_FALSE}"; then
16053 as_fn_error $? "conditional \"LIBGO_IS_X86\" was never defined.
16054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16055 fi
16056 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
16057 as_fn_error $? "conditional \"USING_SPLIT_STACK\" was never defined.
16058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16059 fi
16060 if test -z "${GOC_IS_LLGO_TRUE}" && test -z "${GOC_IS_LLGO_FALSE}"; then
16061 as_fn_error $? "conditional \"GOC_IS_LLGO\" was never defined.
16062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16063 fi
16064
16065 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
16066 as_fn_error $? "conditional \"HAVE_SYS_MMAN_H\" was never defined.
16067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16068 fi
16069 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
16070 as_fn_error $? "conditional \"HAVE_STRERROR_R\" was never defined.
16071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16072 fi
16073 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
16074 as_fn_error $? "conditional \"HAVE_WAIT4\" was never defined.
16075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16076 fi
16077 if test -z "${HAVE_STAT_TIMESPEC_TRUE}" && test -z "${HAVE_STAT_TIMESPEC_FALSE}"; then
16078 as_fn_error $? "conditional \"HAVE_STAT_TIMESPEC\" was never defined.
16079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16080 fi
16081
16082 : "${CONFIG_STATUS=./config.status}"
16083 ac_write_fail=0
16084 ac_clean_files_save=$ac_clean_files
16085 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16087 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16088 as_write_fail=0
16089 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16090 #! $SHELL
16091 # Generated by $as_me.
16092 # Run this file to recreate the current configuration.
16093 # Compiler output produced by configure, useful for debugging
16094 # configure, is in config.log if it exists.
16095
16096 debug=false
16097 ac_cs_recheck=false
16098 ac_cs_silent=false
16099
16100 SHELL=\${CONFIG_SHELL-$SHELL}
16101 export SHELL
16102 _ASEOF
16103 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16104 ## -------------------- ##
16105 ## M4sh Initialization. ##
16106 ## -------------------- ##
16107
16108 # Be more Bourne compatible
16109 DUALCASE=1; export DUALCASE # for MKS sh
16110 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16111 emulate sh
16112 NULLCMD=:
16113 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16114 # is contrary to our usage. Disable this feature.
16115 alias -g '${1+"$@"}'='"$@"'
16116 setopt NO_GLOB_SUBST
16117 else
16118 case `(set -o) 2>/dev/null` in #(
16119 *posix*) :
16120 set -o posix ;; #(
16121 *) :
16122 ;;
16123 esac
16124 fi
16125
16126
16127 as_nl='
16128 '
16129 export as_nl
16130 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16131 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16132 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16133 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16134 # Prefer a ksh shell builtin over an external printf program on Solaris,
16135 # but without wasting forks for bash or zsh.
16136 if test -z "$BASH_VERSION$ZSH_VERSION" \
16137 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16138 as_echo='print -r --'
16139 as_echo_n='print -rn --'
16140 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16141 as_echo='printf %s\n'
16142 as_echo_n='printf %s'
16143 else
16144 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16145 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16146 as_echo_n='/usr/ucb/echo -n'
16147 else
16148 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16149 as_echo_n_body='eval
16150 arg=$1;
16151 case $arg in #(
16152 *"$as_nl"*)
16153 expr "X$arg" : "X\\(.*\\)$as_nl";
16154 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16155 esac;
16156 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16157 '
16158 export as_echo_n_body
16159 as_echo_n='sh -c $as_echo_n_body as_echo'
16160 fi
16161 export as_echo_body
16162 as_echo='sh -c $as_echo_body as_echo'
16163 fi
16164
16165 # The user is always right.
16166 if test "${PATH_SEPARATOR+set}" != set; then
16167 PATH_SEPARATOR=:
16168 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16169 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16170 PATH_SEPARATOR=';'
16171 }
16172 fi
16173
16174
16175 # IFS
16176 # We need space, tab and new line, in precisely that order. Quoting is
16177 # there to prevent editors from complaining about space-tab.
16178 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16179 # splitting by setting IFS to empty value.)
16180 IFS=" "" $as_nl"
16181
16182 # Find who we are. Look in the path if we contain no directory separator.
16183 as_myself=
16184 case $0 in #((
16185 *[\\/]* ) as_myself=$0 ;;
16186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16187 for as_dir in $PATH
16188 do
16189 IFS=$as_save_IFS
16190 test -z "$as_dir" && as_dir=.
16191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16192 done
16193 IFS=$as_save_IFS
16194
16195 ;;
16196 esac
16197 # We did not find ourselves, most probably we were run as `sh COMMAND'
16198 # in which case we are not to be found in the path.
16199 if test "x$as_myself" = x; then
16200 as_myself=$0
16201 fi
16202 if test ! -f "$as_myself"; then
16203 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16204 exit 1
16205 fi
16206
16207 # Unset variables that we do not need and which cause bugs (e.g. in
16208 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16209 # suppresses any "Segmentation fault" message there. '((' could
16210 # trigger a bug in pdksh 5.2.14.
16211 for as_var in BASH_ENV ENV MAIL MAILPATH
16212 do eval test x\${$as_var+set} = xset \
16213 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16214 done
16215 PS1='$ '
16216 PS2='> '
16217 PS4='+ '
16218
16219 # NLS nuisances.
16220 LC_ALL=C
16221 export LC_ALL
16222 LANGUAGE=C
16223 export LANGUAGE
16224
16225 # CDPATH.
16226 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16227
16228
16229 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16230 # ----------------------------------------
16231 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16232 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16233 # script with STATUS, using 1 if that was 0.
16234 as_fn_error ()
16235 {
16236 as_status=$1; test $as_status -eq 0 && as_status=1
16237 if test "$4"; then
16238 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16239 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16240 fi
16241 $as_echo "$as_me: error: $2" >&2
16242 as_fn_exit $as_status
16243 } # as_fn_error
16244
16245
16246 # as_fn_set_status STATUS
16247 # -----------------------
16248 # Set $? to STATUS, without forking.
16249 as_fn_set_status ()
16250 {
16251 return $1
16252 } # as_fn_set_status
16253
16254 # as_fn_exit STATUS
16255 # -----------------
16256 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16257 as_fn_exit ()
16258 {
16259 set +e
16260 as_fn_set_status $1
16261 exit $1
16262 } # as_fn_exit
16263
16264 # as_fn_unset VAR
16265 # ---------------
16266 # Portably unset VAR.
16267 as_fn_unset ()
16268 {
16269 { eval $1=; unset $1;}
16270 }
16271 as_unset=as_fn_unset
16272 # as_fn_append VAR VALUE
16273 # ----------------------
16274 # Append the text in VALUE to the end of the definition contained in VAR. Take
16275 # advantage of any shell optimizations that allow amortized linear growth over
16276 # repeated appends, instead of the typical quadratic growth present in naive
16277 # implementations.
16278 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16279 eval 'as_fn_append ()
16280 {
16281 eval $1+=\$2
16282 }'
16283 else
16284 as_fn_append ()
16285 {
16286 eval $1=\$$1\$2
16287 }
16288 fi # as_fn_append
16289
16290 # as_fn_arith ARG...
16291 # ------------------
16292 # Perform arithmetic evaluation on the ARGs, and store the result in the
16293 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16294 # must be portable across $(()) and expr.
16295 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16296 eval 'as_fn_arith ()
16297 {
16298 as_val=$(( $* ))
16299 }'
16300 else
16301 as_fn_arith ()
16302 {
16303 as_val=`expr "$@" || test $? -eq 1`
16304 }
16305 fi # as_fn_arith
16306
16307
16308 if expr a : '\(a\)' >/dev/null 2>&1 &&
16309 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16310 as_expr=expr
16311 else
16312 as_expr=false
16313 fi
16314
16315 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16316 as_basename=basename
16317 else
16318 as_basename=false
16319 fi
16320
16321 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16322 as_dirname=dirname
16323 else
16324 as_dirname=false
16325 fi
16326
16327 as_me=`$as_basename -- "$0" ||
16328 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16329 X"$0" : 'X\(//\)$' \| \
16330 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16331 $as_echo X/"$0" |
16332 sed '/^.*\/\([^/][^/]*\)\/*$/{
16333 s//\1/
16334 q
16335 }
16336 /^X\/\(\/\/\)$/{
16337 s//\1/
16338 q
16339 }
16340 /^X\/\(\/\).*/{
16341 s//\1/
16342 q
16343 }
16344 s/.*/./; q'`
16345
16346 # Avoid depending upon Character Ranges.
16347 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16348 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16349 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16350 as_cr_digits='0123456789'
16351 as_cr_alnum=$as_cr_Letters$as_cr_digits
16352
16353 ECHO_C= ECHO_N= ECHO_T=
16354 case `echo -n x` in #(((((
16355 -n*)
16356 case `echo 'xy\c'` in
16357 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16358 xy) ECHO_C='\c';;
16359 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16360 ECHO_T=' ';;
16361 esac;;
16362 *)
16363 ECHO_N='-n';;
16364 esac
16365
16366 rm -f conf$$ conf$$.exe conf$$.file
16367 if test -d conf$$.dir; then
16368 rm -f conf$$.dir/conf$$.file
16369 else
16370 rm -f conf$$.dir
16371 mkdir conf$$.dir 2>/dev/null
16372 fi
16373 if (echo >conf$$.file) 2>/dev/null; then
16374 if ln -s conf$$.file conf$$ 2>/dev/null; then
16375 as_ln_s='ln -s'
16376 # ... but there are two gotchas:
16377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16379 # In both cases, we have to default to `cp -pR'.
16380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16381 as_ln_s='cp -pR'
16382 elif ln conf$$.file conf$$ 2>/dev/null; then
16383 as_ln_s=ln
16384 else
16385 as_ln_s='cp -pR'
16386 fi
16387 else
16388 as_ln_s='cp -pR'
16389 fi
16390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16391 rmdir conf$$.dir 2>/dev/null
16392
16393
16394 # as_fn_mkdir_p
16395 # -------------
16396 # Create "$as_dir" as a directory, including parents if necessary.
16397 as_fn_mkdir_p ()
16398 {
16399
16400 case $as_dir in #(
16401 -*) as_dir=./$as_dir;;
16402 esac
16403 test -d "$as_dir" || eval $as_mkdir_p || {
16404 as_dirs=
16405 while :; do
16406 case $as_dir in #(
16407 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16408 *) as_qdir=$as_dir;;
16409 esac
16410 as_dirs="'$as_qdir' $as_dirs"
16411 as_dir=`$as_dirname -- "$as_dir" ||
16412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16413 X"$as_dir" : 'X\(//\)[^/]' \| \
16414 X"$as_dir" : 'X\(//\)$' \| \
16415 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16416 $as_echo X"$as_dir" |
16417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16418 s//\1/
16419 q
16420 }
16421 /^X\(\/\/\)[^/].*/{
16422 s//\1/
16423 q
16424 }
16425 /^X\(\/\/\)$/{
16426 s//\1/
16427 q
16428 }
16429 /^X\(\/\).*/{
16430 s//\1/
16431 q
16432 }
16433 s/.*/./; q'`
16434 test -d "$as_dir" && break
16435 done
16436 test -z "$as_dirs" || eval "mkdir $as_dirs"
16437 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16438
16439
16440 } # as_fn_mkdir_p
16441 if mkdir -p . 2>/dev/null; then
16442 as_mkdir_p='mkdir -p "$as_dir"'
16443 else
16444 test -d ./-p && rmdir ./-p
16445 as_mkdir_p=false
16446 fi
16447
16448
16449 # as_fn_executable_p FILE
16450 # -----------------------
16451 # Test if FILE is an executable regular file.
16452 as_fn_executable_p ()
16453 {
16454 test -f "$1" && test -x "$1"
16455 } # as_fn_executable_p
16456 as_test_x='test -x'
16457 as_executable_p=as_fn_executable_p
16458
16459 # Sed expression to map a string onto a valid CPP name.
16460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16461
16462 # Sed expression to map a string onto a valid variable name.
16463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16464
16465
16466 exec 6>&1
16467 ## ----------------------------------- ##
16468 ## Main body of $CONFIG_STATUS script. ##
16469 ## ----------------------------------- ##
16470 _ASEOF
16471 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16472
16473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16474 # Save the log message, to keep $0 and so on meaningful, and to
16475 # report actual input values of CONFIG_FILES etc. instead of their
16476 # values after options handling.
16477 ac_log="
16478 This file was extended by package-unused $as_me version-unused, which was
16479 generated by GNU Autoconf 2.69. Invocation command line was
16480
16481 CONFIG_FILES = $CONFIG_FILES
16482 CONFIG_HEADERS = $CONFIG_HEADERS
16483 CONFIG_LINKS = $CONFIG_LINKS
16484 CONFIG_COMMANDS = $CONFIG_COMMANDS
16485 $ $0 $@
16486
16487 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16488 "
16489
16490 _ACEOF
16491
16492 case $ac_config_files in *"
16493 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16494 esac
16495
16496 case $ac_config_headers in *"
16497 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16498 esac
16499
16500
16501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16502 # Files that config.status was made for.
16503 config_files="$ac_config_files"
16504 config_headers="$ac_config_headers"
16505 config_commands="$ac_config_commands"
16506
16507 _ACEOF
16508
16509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16510 ac_cs_usage="\
16511 \`$as_me' instantiates files and other configuration actions
16512 from templates according to the current configuration. Unless the files
16513 and actions are specified as TAGs, all are instantiated by default.
16514
16515 Usage: $0 [OPTION]... [TAG]...
16516
16517 -h, --help print this help, then exit
16518 -V, --version print version number and configuration settings, then exit
16519 --config print configuration, then exit
16520 -q, --quiet, --silent
16521 do not print progress messages
16522 -d, --debug don't remove temporary files
16523 --recheck update $as_me by reconfiguring in the same conditions
16524 --file=FILE[:TEMPLATE]
16525 instantiate the configuration file FILE
16526 --header=FILE[:TEMPLATE]
16527 instantiate the configuration header FILE
16528
16529 Configuration files:
16530 $config_files
16531
16532 Configuration headers:
16533 $config_headers
16534
16535 Configuration commands:
16536 $config_commands
16537
16538 Report bugs to the package provider."
16539
16540 _ACEOF
16541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16542 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16543 ac_cs_version="\\
16544 package-unused config.status version-unused
16545 configured by $0, generated by GNU Autoconf 2.69,
16546 with options \\"\$ac_cs_config\\"
16547
16548 Copyright (C) 2012 Free Software Foundation, Inc.
16549 This config.status script is free software; the Free Software Foundation
16550 gives unlimited permission to copy, distribute and modify it."
16551
16552 ac_pwd='$ac_pwd'
16553 srcdir='$srcdir'
16554 INSTALL='$INSTALL'
16555 MKDIR_P='$MKDIR_P'
16556 AWK='$AWK'
16557 test -n "\$AWK" || AWK=awk
16558 _ACEOF
16559
16560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16561 # The default lists apply if the user does not specify any file.
16562 ac_need_defaults=:
16563 while test $# != 0
16564 do
16565 case $1 in
16566 --*=?*)
16567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16569 ac_shift=:
16570 ;;
16571 --*=)
16572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16573 ac_optarg=
16574 ac_shift=:
16575 ;;
16576 *)
16577 ac_option=$1
16578 ac_optarg=$2
16579 ac_shift=shift
16580 ;;
16581 esac
16582
16583 case $ac_option in
16584 # Handling of the options.
16585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16586 ac_cs_recheck=: ;;
16587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16588 $as_echo "$ac_cs_version"; exit ;;
16589 --config | --confi | --conf | --con | --co | --c )
16590 $as_echo "$ac_cs_config"; exit ;;
16591 --debug | --debu | --deb | --de | --d | -d )
16592 debug=: ;;
16593 --file | --fil | --fi | --f )
16594 $ac_shift
16595 case $ac_optarg in
16596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16597 '') as_fn_error $? "missing file argument" ;;
16598 esac
16599 as_fn_append CONFIG_FILES " '$ac_optarg'"
16600 ac_need_defaults=false;;
16601 --header | --heade | --head | --hea )
16602 $ac_shift
16603 case $ac_optarg in
16604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16605 esac
16606 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16607 ac_need_defaults=false;;
16608 --he | --h)
16609 # Conflict between --help and --header
16610 as_fn_error $? "ambiguous option: \`$1'
16611 Try \`$0 --help' for more information.";;
16612 --help | --hel | -h )
16613 $as_echo "$ac_cs_usage"; exit ;;
16614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16616 ac_cs_silent=: ;;
16617
16618 # This is an error.
16619 -*) as_fn_error $? "unrecognized option: \`$1'
16620 Try \`$0 --help' for more information." ;;
16621
16622 *) as_fn_append ac_config_targets " $1"
16623 ac_need_defaults=false ;;
16624
16625 esac
16626 shift
16627 done
16628
16629 ac_configure_extra_args=
16630
16631 if $ac_cs_silent; then
16632 exec 6>/dev/null
16633 ac_configure_extra_args="$ac_configure_extra_args --silent"
16634 fi
16635
16636 _ACEOF
16637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16638 if \$ac_cs_recheck; then
16639 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16640 shift
16641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16642 CONFIG_SHELL='$SHELL'
16643 export CONFIG_SHELL
16644 exec "\$@"
16645 fi
16646
16647 _ACEOF
16648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16649 exec 5>>config.log
16650 {
16651 echo
16652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16653 ## Running $as_me. ##
16654 _ASBOX
16655 $as_echo "$ac_log"
16656 } >&5
16657
16658 _ACEOF
16659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16660 #
16661 # INIT-COMMANDS
16662 #
16663
16664 srcdir="$srcdir"
16665 host="$host"
16666 target="$target"
16667 with_multisubdir="$with_multisubdir"
16668 with_multisrctop="$with_multisrctop"
16669 with_target_subdir="$with_target_subdir"
16670 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16671 multi_basedir="$multi_basedir"
16672 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16673 CC="$CC"
16674 CXX="$CXX"
16675 GFORTRAN="$GFORTRAN"
16676 GDC="$GDC"
16677 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16678
16679
16680 # The HP-UX ksh and POSIX shell print the target directory to stdout
16681 # if CDPATH is set.
16682 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16683
16684 sed_quote_subst='$sed_quote_subst'
16685 double_quote_subst='$double_quote_subst'
16686 delay_variable_subst='$delay_variable_subst'
16687 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16688 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16689 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16690 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16691 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16692 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16693 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16694 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16695 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16696 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16697 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16698 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16699 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16700 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16701 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16702 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16703 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16704 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16705 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16706 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16707 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16708 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16709 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16710 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16711 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16712 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16713 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16714 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16715 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16716 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16717 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16718 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16719 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16720 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16721 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16722 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16723 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16724 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16725 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16726 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16727 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16728 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16729 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16730 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16731 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16732 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16733 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16734 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16735 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"`'
16736 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16737 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16738 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16739 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16740 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16741 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16742 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16743 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16744 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16745 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16746 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16747 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16748 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16749 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16750 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16751 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16752 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16753 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16754 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16755 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16756 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16757 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16758 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16759 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16760 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16761 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16762 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16763 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16764 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16765 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16766 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16767 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16768 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16769 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16770 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16771 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16772 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16773 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16774 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16775 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16776 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16777 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16778 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16779 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16780 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16781 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16782 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16783 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16784 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16785 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16786 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16787 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16788 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16789 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16790 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16791 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16792 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16793 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16794 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16795 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16796 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16797 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16798 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16799 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16800 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16801 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16802 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16803 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16804 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16805 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16806 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16807 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
16808 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
16809 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
16810 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16811 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
16812 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
16813 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
16814 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
16815 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
16816 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
16817 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
16818 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
16819 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
16820 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16821 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16822 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
16823 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
16824 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
16825 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
16826 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16827 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
16828 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
16829 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
16830 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16831 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
16832 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
16833 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
16834 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
16835 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
16836 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
16837 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
16838 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
16839 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
16840 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
16841 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
16842 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
16843 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
16844 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
16845 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16846 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
16847 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
16848 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
16849 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
16850
16851 LTCC='$LTCC'
16852 LTCFLAGS='$LTCFLAGS'
16853 compiler='$compiler_DEFAULT'
16854
16855 # A function that is used when there is no print builtin or printf.
16856 func_fallback_echo ()
16857 {
16858 eval 'cat <<_LTECHO_EOF
16859 \$1
16860 _LTECHO_EOF'
16861 }
16862
16863 # Quote evaled strings.
16864 for var in SED \
16865 GREP \
16866 EGREP \
16867 FGREP \
16868 SHELL \
16869 ECHO \
16870 LD \
16871 NM \
16872 LN_S \
16873 lt_SP2NL \
16874 lt_NL2SP \
16875 reload_flag \
16876 OBJDUMP \
16877 deplibs_check_method \
16878 file_magic_cmd \
16879 AR \
16880 AR_FLAGS \
16881 STRIP \
16882 RANLIB \
16883 CC \
16884 CFLAGS \
16885 compiler \
16886 lt_cv_sys_global_symbol_pipe \
16887 lt_cv_sys_global_symbol_to_cdecl \
16888 lt_cv_sys_global_symbol_to_c_name_address \
16889 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16890 lt_prog_compiler_no_builtin_flag \
16891 lt_prog_compiler_wl \
16892 lt_prog_compiler_pic \
16893 lt_prog_compiler_static \
16894 lt_cv_prog_compiler_c_o \
16895 need_locks \
16896 DSYMUTIL \
16897 NMEDIT \
16898 LIPO \
16899 OTOOL \
16900 OTOOL64 \
16901 shrext_cmds \
16902 export_dynamic_flag_spec \
16903 whole_archive_flag_spec \
16904 compiler_needs_object \
16905 with_gnu_ld \
16906 allow_undefined_flag \
16907 no_undefined_flag \
16908 hardcode_libdir_flag_spec \
16909 hardcode_libdir_flag_spec_ld \
16910 hardcode_libdir_separator \
16911 fix_srcfile_path \
16912 exclude_expsyms \
16913 include_expsyms \
16914 file_list_spec \
16915 variables_saved_for_relink \
16916 libname_spec \
16917 library_names_spec \
16918 soname_spec \
16919 install_override_mode \
16920 finish_eval \
16921 old_striplib \
16922 striplib \
16923 LD_GO \
16924 reload_flag_GO \
16925 compiler_GO \
16926 lt_prog_compiler_no_builtin_flag_GO \
16927 lt_prog_compiler_wl_GO \
16928 lt_prog_compiler_pic_GO \
16929 lt_prog_compiler_static_GO \
16930 lt_cv_prog_compiler_c_o_GO \
16931 export_dynamic_flag_spec_GO \
16932 whole_archive_flag_spec_GO \
16933 compiler_needs_object_GO \
16934 with_gnu_ld_GO \
16935 allow_undefined_flag_GO \
16936 no_undefined_flag_GO \
16937 hardcode_libdir_flag_spec_GO \
16938 hardcode_libdir_flag_spec_ld_GO \
16939 hardcode_libdir_separator_GO \
16940 fix_srcfile_path_GO \
16941 exclude_expsyms_GO \
16942 include_expsyms_GO \
16943 file_list_spec_GO; do
16944 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16945 *[\\\\\\\`\\"\\\$]*)
16946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16947 ;;
16948 *)
16949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16950 ;;
16951 esac
16952 done
16953
16954 # Double-quote double-evaled strings.
16955 for var in reload_cmds \
16956 old_postinstall_cmds \
16957 old_postuninstall_cmds \
16958 old_archive_cmds \
16959 extract_expsyms_cmds \
16960 old_archive_from_new_cmds \
16961 old_archive_from_expsyms_cmds \
16962 archive_cmds \
16963 archive_expsym_cmds \
16964 module_cmds \
16965 module_expsym_cmds \
16966 export_symbols_cmds \
16967 prelink_cmds \
16968 postinstall_cmds \
16969 postuninstall_cmds \
16970 finish_cmds \
16971 sys_lib_search_path_spec \
16972 sys_lib_dlsearch_path_spec \
16973 reload_cmds_GO \
16974 old_archive_cmds_GO \
16975 old_archive_from_new_cmds_GO \
16976 old_archive_from_expsyms_cmds_GO \
16977 archive_cmds_GO \
16978 archive_expsym_cmds_GO \
16979 module_cmds_GO \
16980 module_expsym_cmds_GO \
16981 export_symbols_cmds_GO \
16982 prelink_cmds_GO; do
16983 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16984 *[\\\\\\\`\\"\\\$]*)
16985 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16986 ;;
16987 *)
16988 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16989 ;;
16990 esac
16991 done
16992
16993 ac_aux_dir='$ac_aux_dir'
16994 xsi_shell='$xsi_shell'
16995 lt_shell_append='$lt_shell_append'
16996
16997 # See if we are running on zsh, and set the options which allow our
16998 # commands through without removal of \ escapes INIT.
16999 if test -n "\${ZSH_VERSION+set}" ; then
17000 setopt NO_GLOB_SUBST
17001 fi
17002
17003
17004 PACKAGE='$PACKAGE'
17005 VERSION='$VERSION'
17006 TIMESTAMP='$TIMESTAMP'
17007 RM='$RM'
17008 ofile='$ofile'
17009
17010
17011
17012
17013
17014
17015 # Variables needed in config.status (file generation) which aren't already
17016 # passed by autoconf.
17017 SUBDIRS="$SUBDIRS"
17018
17019
17020 _ACEOF
17021
17022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17023
17024 # Handling of arguments.
17025 for ac_config_target in $ac_config_targets
17026 do
17027 case $ac_config_target in
17028 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17029 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17030 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17031 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17032 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17033 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17034 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17035
17036 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17037 esac
17038 done
17039
17040
17041 # If the user did not use the arguments to specify the items to instantiate,
17042 # then the envvar interface is used. Set only those that are not.
17043 # We use the long form for the default assignment because of an extremely
17044 # bizarre bug on SunOS 4.1.3.
17045 if $ac_need_defaults; then
17046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17049 fi
17050
17051 # Have a temporary directory for convenience. Make it in the build tree
17052 # simply because there is no reason against having it here, and in addition,
17053 # creating and moving files from /tmp can sometimes cause problems.
17054 # Hook for its removal unless debugging.
17055 # Note that there is a small window in which the directory will not be cleaned:
17056 # after its creation but before its name has been assigned to `$tmp'.
17057 $debug ||
17058 {
17059 tmp= ac_tmp=
17060 trap 'exit_status=$?
17061 : "${ac_tmp:=$tmp}"
17062 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17063 ' 0
17064 trap 'as_fn_exit 1' 1 2 13 15
17065 }
17066 # Create a (secure) tmp directory for tmp files.
17067
17068 {
17069 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17070 test -d "$tmp"
17071 } ||
17072 {
17073 tmp=./conf$$-$RANDOM
17074 (umask 077 && mkdir "$tmp")
17075 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17076 ac_tmp=$tmp
17077
17078 # Set up the scripts for CONFIG_FILES section.
17079 # No need to generate them if there are no CONFIG_FILES.
17080 # This happens for instance with `./config.status config.h'.
17081 if test -n "$CONFIG_FILES"; then
17082
17083
17084 ac_cr=`echo X | tr X '\015'`
17085 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17086 # But we know of no other shell where ac_cr would be empty at this
17087 # point, so we can use a bashism as a fallback.
17088 if test "x$ac_cr" = x; then
17089 eval ac_cr=\$\'\\r\'
17090 fi
17091 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17092 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17093 ac_cs_awk_cr='\\r'
17094 else
17095 ac_cs_awk_cr=$ac_cr
17096 fi
17097
17098 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17099 _ACEOF
17100
17101
17102 {
17103 echo "cat >conf$$subs.awk <<_ACEOF" &&
17104 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17105 echo "_ACEOF"
17106 } >conf$$subs.sh ||
17107 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17108 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17109 ac_delim='%!_!# '
17110 for ac_last_try in false false false false false :; do
17111 . ./conf$$subs.sh ||
17112 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17113
17114 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17115 if test $ac_delim_n = $ac_delim_num; then
17116 break
17117 elif $ac_last_try; then
17118 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17119 else
17120 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17121 fi
17122 done
17123 rm -f conf$$subs.sh
17124
17125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17126 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17127 _ACEOF
17128 sed -n '
17129 h
17130 s/^/S["/; s/!.*/"]=/
17131 p
17132 g
17133 s/^[^!]*!//
17134 :repl
17135 t repl
17136 s/'"$ac_delim"'$//
17137 t delim
17138 :nl
17139 h
17140 s/\(.\{148\}\)..*/\1/
17141 t more1
17142 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17143 p
17144 n
17145 b repl
17146 :more1
17147 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17148 p
17149 g
17150 s/.\{148\}//
17151 t nl
17152 :delim
17153 h
17154 s/\(.\{148\}\)..*/\1/
17155 t more2
17156 s/["\\]/\\&/g; s/^/"/; s/$/"/
17157 p
17158 b
17159 :more2
17160 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17161 p
17162 g
17163 s/.\{148\}//
17164 t delim
17165 ' <conf$$subs.awk | sed '
17166 /^[^""]/{
17167 N
17168 s/\n//
17169 }
17170 ' >>$CONFIG_STATUS || ac_write_fail=1
17171 rm -f conf$$subs.awk
17172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17173 _ACAWK
17174 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17175 for (key in S) S_is_set[key] = 1
17176 FS = "\a"
17177
17178 }
17179 {
17180 line = $ 0
17181 nfields = split(line, field, "@")
17182 substed = 0
17183 len = length(field[1])
17184 for (i = 2; i < nfields; i++) {
17185 key = field[i]
17186 keylen = length(key)
17187 if (S_is_set[key]) {
17188 value = S[key]
17189 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17190 len += length(value) + length(field[++i])
17191 substed = 1
17192 } else
17193 len += 1 + keylen
17194 }
17195
17196 print line
17197 }
17198
17199 _ACAWK
17200 _ACEOF
17201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17202 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17203 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17204 else
17205 cat
17206 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17207 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17208 _ACEOF
17209
17210 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17211 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17212 # trailing colons and then remove the whole line if VPATH becomes empty
17213 # (actually we leave an empty line to preserve line numbers).
17214 if test "x$srcdir" = x.; then
17215 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17216 h
17217 s///
17218 s/^/:/
17219 s/[ ]*$/:/
17220 s/:\$(srcdir):/:/g
17221 s/:\${srcdir}:/:/g
17222 s/:@srcdir@:/:/g
17223 s/^:*//
17224 s/:*$//
17225 x
17226 s/\(=[ ]*\).*/\1/
17227 G
17228 s/\n//
17229 s/^[^=]*=[ ]*$//
17230 }'
17231 fi
17232
17233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17234 fi # test -n "$CONFIG_FILES"
17235
17236 # Set up the scripts for CONFIG_HEADERS section.
17237 # No need to generate them if there are no CONFIG_HEADERS.
17238 # This happens for instance with `./config.status Makefile'.
17239 if test -n "$CONFIG_HEADERS"; then
17240 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17241 BEGIN {
17242 _ACEOF
17243
17244 # Transform confdefs.h into an awk script `defines.awk', embedded as
17245 # here-document in config.status, that substitutes the proper values into
17246 # config.h.in to produce config.h.
17247
17248 # Create a delimiter string that does not exist in confdefs.h, to ease
17249 # handling of long lines.
17250 ac_delim='%!_!# '
17251 for ac_last_try in false false :; do
17252 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17253 if test -z "$ac_tt"; then
17254 break
17255 elif $ac_last_try; then
17256 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17257 else
17258 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17259 fi
17260 done
17261
17262 # For the awk script, D is an array of macro values keyed by name,
17263 # likewise P contains macro parameters if any. Preserve backslash
17264 # newline sequences.
17265
17266 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17267 sed -n '
17268 s/.\{148\}/&'"$ac_delim"'/g
17269 t rset
17270 :rset
17271 s/^[ ]*#[ ]*define[ ][ ]*/ /
17272 t def
17273 d
17274 :def
17275 s/\\$//
17276 t bsnl
17277 s/["\\]/\\&/g
17278 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17279 D["\1"]=" \3"/p
17280 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17281 d
17282 :bsnl
17283 s/["\\]/\\&/g
17284 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17285 D["\1"]=" \3\\\\\\n"\\/p
17286 t cont
17287 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17288 t cont
17289 d
17290 :cont
17291 n
17292 s/.\{148\}/&'"$ac_delim"'/g
17293 t clear
17294 :clear
17295 s/\\$//
17296 t bsnlc
17297 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17298 d
17299 :bsnlc
17300 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17301 b cont
17302 ' <confdefs.h | sed '
17303 s/'"$ac_delim"'/"\\\
17304 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17305
17306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17307 for (key in D) D_is_set[key] = 1
17308 FS = "\a"
17309 }
17310 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17311 line = \$ 0
17312 split(line, arg, " ")
17313 if (arg[1] == "#") {
17314 defundef = arg[2]
17315 mac1 = arg[3]
17316 } else {
17317 defundef = substr(arg[1], 2)
17318 mac1 = arg[2]
17319 }
17320 split(mac1, mac2, "(") #)
17321 macro = mac2[1]
17322 prefix = substr(line, 1, index(line, defundef) - 1)
17323 if (D_is_set[macro]) {
17324 # Preserve the white space surrounding the "#".
17325 print prefix "define", macro P[macro] D[macro]
17326 next
17327 } else {
17328 # Replace #undef with comments. This is necessary, for example,
17329 # in the case of _POSIX_SOURCE, which is predefined and required
17330 # on some systems where configure will not decide to define it.
17331 if (defundef == "undef") {
17332 print "/*", prefix defundef, macro, "*/"
17333 next
17334 }
17335 }
17336 }
17337 { print }
17338 _ACAWK
17339 _ACEOF
17340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17341 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17342 fi # test -n "$CONFIG_HEADERS"
17343
17344
17345 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17346 shift
17347 for ac_tag
17348 do
17349 case $ac_tag in
17350 :[FHLC]) ac_mode=$ac_tag; continue;;
17351 esac
17352 case $ac_mode$ac_tag in
17353 :[FHL]*:*);;
17354 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17355 :[FH]-) ac_tag=-:-;;
17356 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17357 esac
17358 ac_save_IFS=$IFS
17359 IFS=:
17360 set x $ac_tag
17361 IFS=$ac_save_IFS
17362 shift
17363 ac_file=$1
17364 shift
17365
17366 case $ac_mode in
17367 :L) ac_source=$1;;
17368 :[FH])
17369 ac_file_inputs=
17370 for ac_f
17371 do
17372 case $ac_f in
17373 -) ac_f="$ac_tmp/stdin";;
17374 *) # Look for the file first in the build tree, then in the source tree
17375 # (if the path is not absolute). The absolute path cannot be DOS-style,
17376 # because $ac_f cannot contain `:'.
17377 test -f "$ac_f" ||
17378 case $ac_f in
17379 [\\/$]*) false;;
17380 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17381 esac ||
17382 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17383 esac
17384 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17385 as_fn_append ac_file_inputs " '$ac_f'"
17386 done
17387
17388 # Let's still pretend it is `configure' which instantiates (i.e., don't
17389 # use $as_me), people would be surprised to read:
17390 # /* config.h. Generated by config.status. */
17391 configure_input='Generated from '`
17392 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17393 `' by configure.'
17394 if test x"$ac_file" != x-; then
17395 configure_input="$ac_file. $configure_input"
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17397 $as_echo "$as_me: creating $ac_file" >&6;}
17398 fi
17399 # Neutralize special characters interpreted by sed in replacement strings.
17400 case $configure_input in #(
17401 *\&* | *\|* | *\\* )
17402 ac_sed_conf_input=`$as_echo "$configure_input" |
17403 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17404 *) ac_sed_conf_input=$configure_input;;
17405 esac
17406
17407 case $ac_tag in
17408 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17409 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17410 esac
17411 ;;
17412 esac
17413
17414 ac_dir=`$as_dirname -- "$ac_file" ||
17415 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17416 X"$ac_file" : 'X\(//\)[^/]' \| \
17417 X"$ac_file" : 'X\(//\)$' \| \
17418 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17419 $as_echo X"$ac_file" |
17420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17421 s//\1/
17422 q
17423 }
17424 /^X\(\/\/\)[^/].*/{
17425 s//\1/
17426 q
17427 }
17428 /^X\(\/\/\)$/{
17429 s//\1/
17430 q
17431 }
17432 /^X\(\/\).*/{
17433 s//\1/
17434 q
17435 }
17436 s/.*/./; q'`
17437 as_dir="$ac_dir"; as_fn_mkdir_p
17438 ac_builddir=.
17439
17440 case "$ac_dir" in
17441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17442 *)
17443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17444 # A ".." for each directory in $ac_dir_suffix.
17445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17446 case $ac_top_builddir_sub in
17447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17449 esac ;;
17450 esac
17451 ac_abs_top_builddir=$ac_pwd
17452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17453 # for backward compatibility:
17454 ac_top_builddir=$ac_top_build_prefix
17455
17456 case $srcdir in
17457 .) # We are building in place.
17458 ac_srcdir=.
17459 ac_top_srcdir=$ac_top_builddir_sub
17460 ac_abs_top_srcdir=$ac_pwd ;;
17461 [\\/]* | ?:[\\/]* ) # Absolute name.
17462 ac_srcdir=$srcdir$ac_dir_suffix;
17463 ac_top_srcdir=$srcdir
17464 ac_abs_top_srcdir=$srcdir ;;
17465 *) # Relative name.
17466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17467 ac_top_srcdir=$ac_top_build_prefix$srcdir
17468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17469 esac
17470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17471
17472
17473 case $ac_mode in
17474 :F)
17475 #
17476 # CONFIG_FILE
17477 #
17478
17479 case $INSTALL in
17480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17481 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17482 esac
17483 ac_MKDIR_P=$MKDIR_P
17484 case $MKDIR_P in
17485 [\\/$]* | ?:[\\/]* ) ;;
17486 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17487 esac
17488 _ACEOF
17489
17490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17491 # If the template does not know about datarootdir, expand it.
17492 # FIXME: This hack should be removed a few years after 2.60.
17493 ac_datarootdir_hack=; ac_datarootdir_seen=
17494 ac_sed_dataroot='
17495 /datarootdir/ {
17496 p
17497 q
17498 }
17499 /@datadir@/p
17500 /@docdir@/p
17501 /@infodir@/p
17502 /@localedir@/p
17503 /@mandir@/p'
17504 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17505 *datarootdir*) ac_datarootdir_seen=yes;;
17506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17508 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17509 _ACEOF
17510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17511 ac_datarootdir_hack='
17512 s&@datadir@&$datadir&g
17513 s&@docdir@&$docdir&g
17514 s&@infodir@&$infodir&g
17515 s&@localedir@&$localedir&g
17516 s&@mandir@&$mandir&g
17517 s&\\\${datarootdir}&$datarootdir&g' ;;
17518 esac
17519 _ACEOF
17520
17521 # Neutralize VPATH when `$srcdir' = `.'.
17522 # Shell code in configure.ac might set extrasub.
17523 # FIXME: do we really want to maintain this feature?
17524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17525 ac_sed_extra="$ac_vpsub
17526 $extrasub
17527 _ACEOF
17528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17529 :t
17530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17531 s|@configure_input@|$ac_sed_conf_input|;t t
17532 s&@top_builddir@&$ac_top_builddir_sub&;t t
17533 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17534 s&@srcdir@&$ac_srcdir&;t t
17535 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17536 s&@top_srcdir@&$ac_top_srcdir&;t t
17537 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17538 s&@builddir@&$ac_builddir&;t t
17539 s&@abs_builddir@&$ac_abs_builddir&;t t
17540 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17541 s&@INSTALL@&$ac_INSTALL&;t t
17542 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17543 $ac_datarootdir_hack
17544 "
17545 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17546 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17547
17548 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17549 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17550 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17551 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17553 which seems to be undefined. Please make sure it is defined" >&5
17554 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17555 which seems to be undefined. Please make sure it is defined" >&2;}
17556
17557 rm -f "$ac_tmp/stdin"
17558 case $ac_file in
17559 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17560 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17561 esac \
17562 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17563 ;;
17564 :H)
17565 #
17566 # CONFIG_HEADER
17567 #
17568 if test x"$ac_file" != x-; then
17569 {
17570 $as_echo "/* $configure_input */" \
17571 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17572 } >"$ac_tmp/config.h" \
17573 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17574 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17576 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17577 else
17578 rm -f "$ac_file"
17579 mv "$ac_tmp/config.h" "$ac_file" \
17580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17581 fi
17582 else
17583 $as_echo "/* $configure_input */" \
17584 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17585 || as_fn_error $? "could not create -" "$LINENO" 5
17586 fi
17587 # Compute "$ac_file"'s index in $config_headers.
17588 _am_arg="$ac_file"
17589 _am_stamp_count=1
17590 for _am_header in $config_headers :; do
17591 case $_am_header in
17592 $_am_arg | $_am_arg:* )
17593 break ;;
17594 * )
17595 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17596 esac
17597 done
17598 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17599 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17600 X"$_am_arg" : 'X\(//\)[^/]' \| \
17601 X"$_am_arg" : 'X\(//\)$' \| \
17602 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17603 $as_echo X"$_am_arg" |
17604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17605 s//\1/
17606 q
17607 }
17608 /^X\(\/\/\)[^/].*/{
17609 s//\1/
17610 q
17611 }
17612 /^X\(\/\/\)$/{
17613 s//\1/
17614 q
17615 }
17616 /^X\(\/\).*/{
17617 s//\1/
17618 q
17619 }
17620 s/.*/./; q'`/stamp-h$_am_stamp_count
17621 ;;
17622
17623 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17624 $as_echo "$as_me: executing $ac_file commands" >&6;}
17625 ;;
17626 esac
17627
17628
17629 case $ac_file$ac_mode in
17630 "default-1":C)
17631 # Only add multilib support code if we just rebuilt the top-level
17632 # Makefile.
17633 case " $CONFIG_FILES " in
17634 *" Makefile "*)
17635 ac_file=Makefile . ${multi_basedir}/config-ml.in
17636 ;;
17637 esac ;;
17638 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17639 # Older Autoconf quotes --file arguments for eval, but not when files
17640 # are listed without --file. Let's play safe and only enable the eval
17641 # if we detect the quoting.
17642 case $CONFIG_FILES in
17643 *\'*) eval set x "$CONFIG_FILES" ;;
17644 *) set x $CONFIG_FILES ;;
17645 esac
17646 shift
17647 for mf
17648 do
17649 # Strip MF so we end up with the name of the file.
17650 mf=`echo "$mf" | sed -e 's/:.*$//'`
17651 # Check whether this is an Automake generated Makefile or not.
17652 # We used to match only the files named 'Makefile.in', but
17653 # some people rename them; so instead we look at the file content.
17654 # Grep'ing the first line is not enough: some people post-process
17655 # each Makefile.in and add a new line on top of each file to say so.
17656 # Grep'ing the whole file is not good either: AIX grep has a line
17657 # limit of 2048, but all sed's we know have understand at least 4000.
17658 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17659 dirpart=`$as_dirname -- "$mf" ||
17660 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17661 X"$mf" : 'X\(//\)[^/]' \| \
17662 X"$mf" : 'X\(//\)$' \| \
17663 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17664 $as_echo X"$mf" |
17665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17666 s//\1/
17667 q
17668 }
17669 /^X\(\/\/\)[^/].*/{
17670 s//\1/
17671 q
17672 }
17673 /^X\(\/\/\)$/{
17674 s//\1/
17675 q
17676 }
17677 /^X\(\/\).*/{
17678 s//\1/
17679 q
17680 }
17681 s/.*/./; q'`
17682 else
17683 continue
17684 fi
17685 # Extract the definition of DEPDIR, am__include, and am__quote
17686 # from the Makefile without running 'make'.
17687 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17688 test -z "$DEPDIR" && continue
17689 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17690 test -z "$am__include" && continue
17691 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17692 # Find all dependency output files, they are included files with
17693 # $(DEPDIR) in their names. We invoke sed twice because it is the
17694 # simplest approach to changing $(DEPDIR) to its actual value in the
17695 # expansion.
17696 for file in `sed -n "
17697 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17698 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17699 # Make sure the directory exists.
17700 test -f "$dirpart/$file" && continue
17701 fdir=`$as_dirname -- "$file" ||
17702 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17703 X"$file" : 'X\(//\)[^/]' \| \
17704 X"$file" : 'X\(//\)$' \| \
17705 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17706 $as_echo X"$file" |
17707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17708 s//\1/
17709 q
17710 }
17711 /^X\(\/\/\)[^/].*/{
17712 s//\1/
17713 q
17714 }
17715 /^X\(\/\/\)$/{
17716 s//\1/
17717 q
17718 }
17719 /^X\(\/\).*/{
17720 s//\1/
17721 q
17722 }
17723 s/.*/./; q'`
17724 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17725 # echo "creating $dirpart/$file"
17726 echo '# dummy' > "$dirpart/$file"
17727 done
17728 done
17729 }
17730 ;;
17731 "libtool":C)
17732
17733 # See if we are running on zsh, and set the options which allow our
17734 # commands through without removal of \ escapes.
17735 if test -n "${ZSH_VERSION+set}" ; then
17736 setopt NO_GLOB_SUBST
17737 fi
17738
17739 cfgfile="${ofile}T"
17740 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17741 $RM "$cfgfile"
17742
17743 cat <<_LT_EOF >> "$cfgfile"
17744 #! $SHELL
17745
17746 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17747 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17750 #
17751 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17752 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17753 # Written by Gordon Matzigkeit, 1996
17754 #
17755 # This file is part of GNU Libtool.
17756 #
17757 # GNU Libtool is free software; you can redistribute it and/or
17758 # modify it under the terms of the GNU General Public License as
17759 # published by the Free Software Foundation; either version 2 of
17760 # the License, or (at your option) any later version.
17761 #
17762 # As a special exception to the GNU General Public License,
17763 # if you distribute this file as part of a program or library that
17764 # is built using GNU Libtool, you may include this file under the
17765 # same distribution terms that you use for the rest of that program.
17766 #
17767 # GNU Libtool is distributed in the hope that it will be useful,
17768 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17769 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17770 # GNU General Public License for more details.
17771 #
17772 # You should have received a copy of the GNU General Public License
17773 # along with GNU Libtool; see the file COPYING. If not, a copy
17774 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17775 # obtained by writing to the Free Software Foundation, Inc.,
17776 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17777
17778
17779 # The names of the tagged configurations supported by this script.
17780 available_tags="GO "
17781
17782 # ### BEGIN LIBTOOL CONFIG
17783
17784 # A sed program that does not truncate output.
17785 SED=$lt_SED
17786
17787 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17788 Xsed="\$SED -e 1s/^X//"
17789
17790 # A grep program that handles long lines.
17791 GREP=$lt_GREP
17792
17793 # An ERE matcher.
17794 EGREP=$lt_EGREP
17795
17796 # A literal string matcher.
17797 FGREP=$lt_FGREP
17798
17799 # Shell to use when invoking shell scripts.
17800 SHELL=$lt_SHELL
17801
17802 # An echo program that protects backslashes.
17803 ECHO=$lt_ECHO
17804
17805 # Which release of libtool.m4 was used?
17806 macro_version=$macro_version
17807 macro_revision=$macro_revision
17808
17809 # Whether or not to build shared libraries.
17810 build_libtool_libs=$enable_shared
17811
17812 # Whether or not to build static libraries.
17813 build_old_libs=$enable_static
17814
17815 # What type of objects to build.
17816 pic_mode=$pic_mode
17817
17818 # Whether or not to optimize for fast installation.
17819 fast_install=$enable_fast_install
17820
17821 # The host system.
17822 host_alias=$host_alias
17823 host=$host
17824 host_os=$host_os
17825
17826 # The build system.
17827 build_alias=$build_alias
17828 build=$build
17829 build_os=$build_os
17830
17831 # A BSD- or MS-compatible name lister.
17832 NM=$lt_NM
17833
17834 # Whether we need soft or hard links.
17835 LN_S=$lt_LN_S
17836
17837 # What is the maximum length of a command?
17838 max_cmd_len=$max_cmd_len
17839
17840 # Object file suffix (normally "o").
17841 objext=$ac_objext
17842
17843 # Executable file suffix (normally "").
17844 exeext=$exeext
17845
17846 # whether the shell understands "unset".
17847 lt_unset=$lt_unset
17848
17849 # turn spaces into newlines.
17850 SP2NL=$lt_lt_SP2NL
17851
17852 # turn newlines into spaces.
17853 NL2SP=$lt_lt_NL2SP
17854
17855 # An object symbol dumper.
17856 OBJDUMP=$lt_OBJDUMP
17857
17858 # Method to check whether dependent libraries are shared objects.
17859 deplibs_check_method=$lt_deplibs_check_method
17860
17861 # Command to use when deplibs_check_method == "file_magic".
17862 file_magic_cmd=$lt_file_magic_cmd
17863
17864 # The archiver.
17865 AR=$lt_AR
17866 AR_FLAGS=$lt_AR_FLAGS
17867
17868 # A symbol stripping program.
17869 STRIP=$lt_STRIP
17870
17871 # Commands used to install an old-style archive.
17872 RANLIB=$lt_RANLIB
17873 old_postinstall_cmds=$lt_old_postinstall_cmds
17874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17875
17876 # Whether to use a lock for old archive extraction.
17877 lock_old_archive_extraction=$lock_old_archive_extraction
17878
17879 # A C compiler.
17880 LTCC=$lt_CC
17881
17882 # LTCC compiler flags.
17883 LTCFLAGS=$lt_CFLAGS
17884
17885 # Take the output of nm and produce a listing of raw symbols and C names.
17886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17887
17888 # Transform the output of nm in a proper C declaration.
17889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17890
17891 # Transform the output of nm in a C name address pair.
17892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17893
17894 # Transform the output of nm in a C name address pair when lib prefix is needed.
17895 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17896
17897 # The name of the directory that contains temporary libtool files.
17898 objdir=$objdir
17899
17900 # Used to examine libraries when file_magic_cmd begins with "file".
17901 MAGIC_CMD=$MAGIC_CMD
17902
17903 # Must we lock files when doing compilation?
17904 need_locks=$lt_need_locks
17905
17906 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17907 DSYMUTIL=$lt_DSYMUTIL
17908
17909 # Tool to change global to local symbols on Mac OS X.
17910 NMEDIT=$lt_NMEDIT
17911
17912 # Tool to manipulate fat objects and archives on Mac OS X.
17913 LIPO=$lt_LIPO
17914
17915 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17916 OTOOL=$lt_OTOOL
17917
17918 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17919 OTOOL64=$lt_OTOOL64
17920
17921 # Old archive suffix (normally "a").
17922 libext=$libext
17923
17924 # Shared library suffix (normally ".so").
17925 shrext_cmds=$lt_shrext_cmds
17926
17927 # The commands to extract the exported symbol list from a shared archive.
17928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17929
17930 # Variables whose values should be saved in libtool wrapper scripts and
17931 # restored at link time.
17932 variables_saved_for_relink=$lt_variables_saved_for_relink
17933
17934 # Do we need the "lib" prefix for modules?
17935 need_lib_prefix=$need_lib_prefix
17936
17937 # Do we need a version for libraries?
17938 need_version=$need_version
17939
17940 # Library versioning type.
17941 version_type=$version_type
17942
17943 # Shared library runtime path variable.
17944 runpath_var=$runpath_var
17945
17946 # Shared library path variable.
17947 shlibpath_var=$shlibpath_var
17948
17949 # Is shlibpath searched before the hard-coded library search path?
17950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17951
17952 # Format of library name prefix.
17953 libname_spec=$lt_libname_spec
17954
17955 # List of archive names. First name is the real one, the rest are links.
17956 # The last name is the one that the linker finds with -lNAME
17957 library_names_spec=$lt_library_names_spec
17958
17959 # The coded name of the library, if different from the real name.
17960 soname_spec=$lt_soname_spec
17961
17962 # Permission mode override for installation of shared libraries.
17963 install_override_mode=$lt_install_override_mode
17964
17965 # Command to use after installation of a shared archive.
17966 postinstall_cmds=$lt_postinstall_cmds
17967
17968 # Command to use after uninstallation of a shared archive.
17969 postuninstall_cmds=$lt_postuninstall_cmds
17970
17971 # Commands used to finish a libtool library installation in a directory.
17972 finish_cmds=$lt_finish_cmds
17973
17974 # As "finish_cmds", except a single script fragment to be evaled but
17975 # not shown.
17976 finish_eval=$lt_finish_eval
17977
17978 # Whether we should hardcode library paths into libraries.
17979 hardcode_into_libs=$hardcode_into_libs
17980
17981 # Compile-time system search path for libraries.
17982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17983
17984 # Run-time system search path for libraries.
17985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17986
17987 # Whether dlopen is supported.
17988 dlopen_support=$enable_dlopen
17989
17990 # Whether dlopen of programs is supported.
17991 dlopen_self=$enable_dlopen_self
17992
17993 # Whether dlopen of statically linked programs is supported.
17994 dlopen_self_static=$enable_dlopen_self_static
17995
17996 # Commands to strip libraries.
17997 old_striplib=$lt_old_striplib
17998 striplib=$lt_striplib
17999
18000
18001 # The linker used to build libraries.
18002 LD=$lt_LD
18003
18004 # How to create reloadable object files.
18005 reload_flag=$lt_reload_flag
18006 reload_cmds=$lt_reload_cmds
18007
18008 # Commands used to build an old-style archive.
18009 old_archive_cmds=$lt_old_archive_cmds
18010
18011 # A language specific compiler.
18012 CC=$lt_compiler
18013
18014 # Is the compiler the GNU compiler?
18015 with_gcc=$GCC
18016
18017 # Compiler flag to turn off builtin functions.
18018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18019
18020 # How to pass a linker flag through the compiler.
18021 wl=$lt_lt_prog_compiler_wl
18022
18023 # Additional compiler flags for building library objects.
18024 pic_flag=$lt_lt_prog_compiler_pic
18025
18026 # Compiler flag to prevent dynamic linking.
18027 link_static_flag=$lt_lt_prog_compiler_static
18028
18029 # Does compiler simultaneously support -c and -o options?
18030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18031
18032 # Whether or not to add -lc for building shared libraries.
18033 build_libtool_need_lc=$archive_cmds_need_lc
18034
18035 # Whether or not to disallow shared libs when runtime libs are static.
18036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18037
18038 # Compiler flag to allow reflexive dlopens.
18039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18040
18041 # Compiler flag to generate shared objects directly from archives.
18042 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18043
18044 # Whether the compiler copes with passing no objects directly.
18045 compiler_needs_object=$lt_compiler_needs_object
18046
18047 # Create an old-style archive from a shared archive.
18048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18049
18050 # Create a temporary old-style archive to link instead of a shared archive.
18051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18052
18053 # Commands used to build a shared archive.
18054 archive_cmds=$lt_archive_cmds
18055 archive_expsym_cmds=$lt_archive_expsym_cmds
18056
18057 # Commands used to build a loadable module if different from building
18058 # a shared archive.
18059 module_cmds=$lt_module_cmds
18060 module_expsym_cmds=$lt_module_expsym_cmds
18061
18062 # Whether we are building with GNU ld or not.
18063 with_gnu_ld=$lt_with_gnu_ld
18064
18065 # Flag that allows shared libraries with undefined symbols to be built.
18066 allow_undefined_flag=$lt_allow_undefined_flag
18067
18068 # Flag that enforces no undefined symbols.
18069 no_undefined_flag=$lt_no_undefined_flag
18070
18071 # Flag to hardcode \$libdir into a binary during linking.
18072 # This must work even if \$libdir does not exist
18073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18074
18075 # If ld is used when linking, flag to hardcode \$libdir into a binary
18076 # during linking. This must work even if \$libdir does not exist.
18077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18078
18079 # Whether we need a single "-rpath" flag with a separated argument.
18080 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18081
18082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18083 # DIR into the resulting binary.
18084 hardcode_direct=$hardcode_direct
18085
18086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18087 # DIR into the resulting binary and the resulting library dependency is
18088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18089 # library is relocated.
18090 hardcode_direct_absolute=$hardcode_direct_absolute
18091
18092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18093 # into the resulting binary.
18094 hardcode_minus_L=$hardcode_minus_L
18095
18096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18097 # into the resulting binary.
18098 hardcode_shlibpath_var=$hardcode_shlibpath_var
18099
18100 # Set to "yes" if building a shared library automatically hardcodes DIR
18101 # into the library and all subsequent libraries and executables linked
18102 # against it.
18103 hardcode_automatic=$hardcode_automatic
18104
18105 # Set to yes if linker adds runtime paths of dependent libraries
18106 # to runtime path list.
18107 inherit_rpath=$inherit_rpath
18108
18109 # Whether libtool must link a program against all its dependency libraries.
18110 link_all_deplibs=$link_all_deplibs
18111
18112 # Fix the shell variable \$srcfile for the compiler.
18113 fix_srcfile_path=$lt_fix_srcfile_path
18114
18115 # Set to "yes" if exported symbols are required.
18116 always_export_symbols=$always_export_symbols
18117
18118 # The commands to list exported symbols.
18119 export_symbols_cmds=$lt_export_symbols_cmds
18120
18121 # Symbols that should not be listed in the preloaded symbols.
18122 exclude_expsyms=$lt_exclude_expsyms
18123
18124 # Symbols that must always be exported.
18125 include_expsyms=$lt_include_expsyms
18126
18127 # Commands necessary for linking programs (against libraries) with templates.
18128 prelink_cmds=$lt_prelink_cmds
18129
18130 # Specify filename containing input files.
18131 file_list_spec=$lt_file_list_spec
18132
18133 # How to hardcode a shared library path into an executable.
18134 hardcode_action=$hardcode_action
18135
18136 # ### END LIBTOOL CONFIG
18137
18138 _LT_EOF
18139
18140 case $host_os in
18141 aix3*)
18142 cat <<\_LT_EOF >> "$cfgfile"
18143 # AIX sometimes has problems with the GCC collect2 program. For some
18144 # reason, if we set the COLLECT_NAMES environment variable, the problems
18145 # vanish in a puff of smoke.
18146 if test "X${COLLECT_NAMES+set}" != Xset; then
18147 COLLECT_NAMES=
18148 export COLLECT_NAMES
18149 fi
18150 _LT_EOF
18151 ;;
18152 esac
18153
18154
18155 ltmain="$ac_aux_dir/ltmain.sh"
18156
18157
18158 # We use sed instead of cat because bash on DJGPP gets confused if
18159 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18160 # text mode, it properly converts lines to CR/LF. This bash problem
18161 # is reportedly fixed, but why not run on old versions too?
18162 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18163 || (rm -f "$cfgfile"; exit 1)
18164
18165 case $xsi_shell in
18166 yes)
18167 cat << \_LT_EOF >> "$cfgfile"
18168
18169 # func_dirname file append nondir_replacement
18170 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18171 # otherwise set result to NONDIR_REPLACEMENT.
18172 func_dirname ()
18173 {
18174 case ${1} in
18175 */*) func_dirname_result="${1%/*}${2}" ;;
18176 * ) func_dirname_result="${3}" ;;
18177 esac
18178 }
18179
18180 # func_basename file
18181 func_basename ()
18182 {
18183 func_basename_result="${1##*/}"
18184 }
18185
18186 # func_dirname_and_basename file append nondir_replacement
18187 # perform func_basename and func_dirname in a single function
18188 # call:
18189 # dirname: Compute the dirname of FILE. If nonempty,
18190 # add APPEND to the result, otherwise set result
18191 # to NONDIR_REPLACEMENT.
18192 # value returned in "$func_dirname_result"
18193 # basename: Compute filename of FILE.
18194 # value retuned in "$func_basename_result"
18195 # Implementation must be kept synchronized with func_dirname
18196 # and func_basename. For efficiency, we do not delegate to
18197 # those functions but instead duplicate the functionality here.
18198 func_dirname_and_basename ()
18199 {
18200 case ${1} in
18201 */*) func_dirname_result="${1%/*}${2}" ;;
18202 * ) func_dirname_result="${3}" ;;
18203 esac
18204 func_basename_result="${1##*/}"
18205 }
18206
18207 # func_stripname prefix suffix name
18208 # strip PREFIX and SUFFIX off of NAME.
18209 # PREFIX and SUFFIX must not contain globbing or regex special
18210 # characters, hashes, percent signs, but SUFFIX may contain a leading
18211 # dot (in which case that matches only a dot).
18212 func_stripname ()
18213 {
18214 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18215 # positional parameters, so assign one to ordinary parameter first.
18216 func_stripname_result=${3}
18217 func_stripname_result=${func_stripname_result#"${1}"}
18218 func_stripname_result=${func_stripname_result%"${2}"}
18219 }
18220
18221 # func_opt_split
18222 func_opt_split ()
18223 {
18224 func_opt_split_opt=${1%%=*}
18225 func_opt_split_arg=${1#*=}
18226 }
18227
18228 # func_lo2o object
18229 func_lo2o ()
18230 {
18231 case ${1} in
18232 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18233 *) func_lo2o_result=${1} ;;
18234 esac
18235 }
18236
18237 # func_xform libobj-or-source
18238 func_xform ()
18239 {
18240 func_xform_result=${1%.*}.lo
18241 }
18242
18243 # func_arith arithmetic-term...
18244 func_arith ()
18245 {
18246 func_arith_result=$(( $* ))
18247 }
18248
18249 # func_len string
18250 # STRING may not start with a hyphen.
18251 func_len ()
18252 {
18253 func_len_result=${#1}
18254 }
18255
18256 _LT_EOF
18257 ;;
18258 *) # Bourne compatible functions.
18259 cat << \_LT_EOF >> "$cfgfile"
18260
18261 # func_dirname file append nondir_replacement
18262 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18263 # otherwise set result to NONDIR_REPLACEMENT.
18264 func_dirname ()
18265 {
18266 # Extract subdirectory from the argument.
18267 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18268 if test "X$func_dirname_result" = "X${1}"; then
18269 func_dirname_result="${3}"
18270 else
18271 func_dirname_result="$func_dirname_result${2}"
18272 fi
18273 }
18274
18275 # func_basename file
18276 func_basename ()
18277 {
18278 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18279 }
18280
18281
18282 # func_stripname prefix suffix name
18283 # strip PREFIX and SUFFIX off of NAME.
18284 # PREFIX and SUFFIX must not contain globbing or regex special
18285 # characters, hashes, percent signs, but SUFFIX may contain a leading
18286 # dot (in which case that matches only a dot).
18287 # func_strip_suffix prefix name
18288 func_stripname ()
18289 {
18290 case ${2} in
18291 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18292 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18293 esac
18294 }
18295
18296 # sed scripts:
18297 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18298 my_sed_long_arg='1s/^-[^=]*=//'
18299
18300 # func_opt_split
18301 func_opt_split ()
18302 {
18303 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18304 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18305 }
18306
18307 # func_lo2o object
18308 func_lo2o ()
18309 {
18310 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18311 }
18312
18313 # func_xform libobj-or-source
18314 func_xform ()
18315 {
18316 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18317 }
18318
18319 # func_arith arithmetic-term...
18320 func_arith ()
18321 {
18322 func_arith_result=`expr "$@"`
18323 }
18324
18325 # func_len string
18326 # STRING may not start with a hyphen.
18327 func_len ()
18328 {
18329 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18330 }
18331
18332 _LT_EOF
18333 esac
18334
18335 case $lt_shell_append in
18336 yes)
18337 cat << \_LT_EOF >> "$cfgfile"
18338
18339 # func_append var value
18340 # Append VALUE to the end of shell variable VAR.
18341 func_append ()
18342 {
18343 eval "$1+=\$2"
18344 }
18345 _LT_EOF
18346 ;;
18347 *)
18348 cat << \_LT_EOF >> "$cfgfile"
18349
18350 # func_append var value
18351 # Append VALUE to the end of shell variable VAR.
18352 func_append ()
18353 {
18354 eval "$1=\$$1\$2"
18355 }
18356
18357 _LT_EOF
18358 ;;
18359 esac
18360
18361
18362 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18363 || (rm -f "$cfgfile"; exit 1)
18364
18365 mv -f "$cfgfile" "$ofile" ||
18366 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18367 chmod +x "$ofile"
18368
18369
18370 cat <<_LT_EOF >> "$ofile"
18371
18372 # ### BEGIN LIBTOOL TAG CONFIG: GO
18373
18374 # The linker used to build libraries.
18375 LD=$lt_LD_GO
18376
18377 # How to create reloadable object files.
18378 reload_flag=$lt_reload_flag_GO
18379 reload_cmds=$lt_reload_cmds_GO
18380
18381 # Commands used to build an old-style archive.
18382 old_archive_cmds=$lt_old_archive_cmds_GO
18383
18384 # A language specific compiler.
18385 CC=$lt_compiler_GO
18386
18387 # Is the compiler the GNU compiler?
18388 with_gcc=$GCC_GO
18389
18390 # Compiler flag to turn off builtin functions.
18391 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
18392
18393 # How to pass a linker flag through the compiler.
18394 wl=$lt_lt_prog_compiler_wl_GO
18395
18396 # Additional compiler flags for building library objects.
18397 pic_flag=$lt_lt_prog_compiler_pic_GO
18398
18399 # Compiler flag to prevent dynamic linking.
18400 link_static_flag=$lt_lt_prog_compiler_static_GO
18401
18402 # Does compiler simultaneously support -c and -o options?
18403 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
18404
18405 # Whether or not to add -lc for building shared libraries.
18406 build_libtool_need_lc=$archive_cmds_need_lc_GO
18407
18408 # Whether or not to disallow shared libs when runtime libs are static.
18409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
18410
18411 # Compiler flag to allow reflexive dlopens.
18412 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
18413
18414 # Compiler flag to generate shared objects directly from archives.
18415 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
18416
18417 # Whether the compiler copes with passing no objects directly.
18418 compiler_needs_object=$lt_compiler_needs_object_GO
18419
18420 # Create an old-style archive from a shared archive.
18421 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
18422
18423 # Create a temporary old-style archive to link instead of a shared archive.
18424 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
18425
18426 # Commands used to build a shared archive.
18427 archive_cmds=$lt_archive_cmds_GO
18428 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
18429
18430 # Commands used to build a loadable module if different from building
18431 # a shared archive.
18432 module_cmds=$lt_module_cmds_GO
18433 module_expsym_cmds=$lt_module_expsym_cmds_GO
18434
18435 # Whether we are building with GNU ld or not.
18436 with_gnu_ld=$lt_with_gnu_ld_GO
18437
18438 # Flag that allows shared libraries with undefined symbols to be built.
18439 allow_undefined_flag=$lt_allow_undefined_flag_GO
18440
18441 # Flag that enforces no undefined symbols.
18442 no_undefined_flag=$lt_no_undefined_flag_GO
18443
18444 # Flag to hardcode \$libdir into a binary during linking.
18445 # This must work even if \$libdir does not exist
18446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
18447
18448 # If ld is used when linking, flag to hardcode \$libdir into a binary
18449 # during linking. This must work even if \$libdir does not exist.
18450 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
18451
18452 # Whether we need a single "-rpath" flag with a separated argument.
18453 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
18454
18455 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18456 # DIR into the resulting binary.
18457 hardcode_direct=$hardcode_direct_GO
18458
18459 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18460 # DIR into the resulting binary and the resulting library dependency is
18461 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18462 # library is relocated.
18463 hardcode_direct_absolute=$hardcode_direct_absolute_GO
18464
18465 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18466 # into the resulting binary.
18467 hardcode_minus_L=$hardcode_minus_L_GO
18468
18469 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18470 # into the resulting binary.
18471 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
18472
18473 # Set to "yes" if building a shared library automatically hardcodes DIR
18474 # into the library and all subsequent libraries and executables linked
18475 # against it.
18476 hardcode_automatic=$hardcode_automatic_GO
18477
18478 # Set to yes if linker adds runtime paths of dependent libraries
18479 # to runtime path list.
18480 inherit_rpath=$inherit_rpath_GO
18481
18482 # Whether libtool must link a program against all its dependency libraries.
18483 link_all_deplibs=$link_all_deplibs_GO
18484
18485 # Fix the shell variable \$srcfile for the compiler.
18486 fix_srcfile_path=$lt_fix_srcfile_path_GO
18487
18488 # Set to "yes" if exported symbols are required.
18489 always_export_symbols=$always_export_symbols_GO
18490
18491 # The commands to list exported symbols.
18492 export_symbols_cmds=$lt_export_symbols_cmds_GO
18493
18494 # Symbols that should not be listed in the preloaded symbols.
18495 exclude_expsyms=$lt_exclude_expsyms_GO
18496
18497 # Symbols that must always be exported.
18498 include_expsyms=$lt_include_expsyms_GO
18499
18500 # Commands necessary for linking programs (against libraries) with templates.
18501 prelink_cmds=$lt_prelink_cmds_GO
18502
18503 # Specify filename containing input files.
18504 file_list_spec=$lt_file_list_spec_GO
18505
18506 # How to hardcode a shared library path into an executable.
18507 hardcode_action=$hardcode_action_GO
18508
18509 # ### END LIBTOOL TAG CONFIG: GO
18510 _LT_EOF
18511
18512 ;;
18513 "default":C) if test -n "$CONFIG_FILES"; then
18514 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
18515 # that multilib installs will end up installed in the correct place.
18516 # The testsuite needs it for multilib-aware ABI baseline files.
18517 # To work around this not being passed down from config-ml.in ->
18518 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
18519 # append it here. Only modify Makefiles that have just been created.
18520 #
18521 # Also, get rid of this simulated-VPATH thing that automake does.
18522 cat > vpsed << \_EOF
18523 s!`test -f '$<' || echo '$(srcdir)/'`!!
18524 _EOF
18525 for i in $SUBDIRS; do
18526 case $CONFIG_FILES in
18527 *${i}/Makefile*)
18528 #echo "Adding MULTISUBDIR to $i/Makefile"
18529 sed -f vpsed $i/Makefile > tmp
18530 grep '^MULTISUBDIR =' Makefile >> tmp
18531 mv tmp $i/Makefile
18532 ;;
18533 esac
18534 done
18535 rm vpsed
18536 fi
18537 ;;
18538
18539 esac
18540 done # for ac_tag
18541
18542
18543 as_fn_exit 0
18544 _ACEOF
18545 ac_clean_files=$ac_clean_files_save
18546
18547 test $ac_write_fail = 0 ||
18548 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18549
18550
18551 # configure is writing to config.log, and then calls config.status.
18552 # config.status does its own redirection, appending to config.log.
18553 # Unfortunately, on DOS this fails, as config.log is still kept open
18554 # by configure, so config.status won't be able to write to it; its
18555 # output is simply discarded. So we exec the FD to /dev/null,
18556 # effectively closing config.log, so it can be properly (re)opened and
18557 # appended to by config.status. When coming back to configure, we
18558 # need to make the FD available again.
18559 if test "$no_create" != yes; then
18560 ac_cs_success=:
18561 ac_config_status_args=
18562 test "$silent" = yes &&
18563 ac_config_status_args="$ac_config_status_args --quiet"
18564 exec 5>/dev/null
18565 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18566 exec 5>>config.log
18567 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18568 # would make configure fail if this is the last instruction.
18569 $ac_cs_success || as_fn_exit 1
18570 fi
18571 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18573 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18574 fi
18575