]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
re PR debug/23205 ([C++/unit-at-a-time] stabs debug info omitted for global const...
[thirdparty/gcc.git] / gcc / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
467 *)
468 ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
491 fi
492 else
493 as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
512 fi
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
524 '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
561 PACKAGE_BUGREPORT=
562 PACKAGE_URL=
563
564 ac_unique_file="tree.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='LTLIBOBJS
602 LIBOBJS
603 enable_plugin
604 pluginlibs
605 CLOOGINC
606 CLOOGLIBS
607 PPLINC
608 PPLLIBS
609 GMPINC
610 GMPLIBS
611 target_cpu_default
612 fortran_target_objs
613 cxx_target_objs
614 c_target_objs
615 use_gcc_stdint
616 xm_defines
617 xm_include_list
618 xm_file_list
619 tm_p_include_list
620 tm_p_file_list
621 libgcc_tm_include_list
622 libgcc_tm_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 common_out_object_file
628 common_out_file
629 out_object_file
630 out_file
631 objc_boehm_gc
632 md_file
633 local_prefix
634 lang_tree_files
635 lang_specs_files
636 lang_opt_files
637 install
638 out_host_hook_obj
639 host_xm_defines
640 host_xm_include_list
641 host_xm_file_list
642 host_exeext
643 gcc_gxx_include_dir
644 gcc_config_arguments
645 float_h_file
646 extra_programs
647 extra_passes
648 extra_parts
649 extra_objs
650 extra_headers_list
651 user_headers_inc_next_post
652 user_headers_inc_next_pre
653 extra_gcc_objs
654 TM_MULTILIB_EXCEPTIONS_CONFIG
655 TM_MULTILIB_CONFIG
656 TM_ENDIAN_CONFIG
657 tmake_file
658 xmake_file
659 cpp_install_dir
660 check_languages
661 build_file_translate
662 build_xm_defines
663 build_xm_include_list
664 build_xm_file_list
665 build_install_headers_dir
666 build_exeext
667 all_selected_languages
668 all_languages
669 all_lang_makefrags
670 all_gtfiles
671 all_compilers
672 srcdir
673 subdirs
674 slibdir
675 dollar
676 gcc_tooldir
677 enable_lto
678 MAINT
679 zlibinc
680 zlibdir
681 HOST_LIBS
682 GGC
683 libgcc_visibility
684 gcc_cv_readelf
685 gcc_cv_objdump
686 ORIGINAL_NM_FOR_TARGET
687 gcc_cv_nm
688 ORIGINAL_LD_FOR_TARGET
689 ORIGINAL_PLUGIN_LD_FOR_TARGET
690 gcc_cv_ld
691 ORIGINAL_AS_FOR_TARGET
692 gcc_cv_as
693 enable_fast_install
694 objdir
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 STRIP
701 OBJDUMP
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 collect2
709 STMP_FIXINC
710 BUILD_LDFLAGS
711 BUILD_CFLAGS
712 CC_FOR_BUILD
713 inhibit_libc
714 SYSTEM_HEADER_DIR
715 ALL
716 CROSS
717 CATOBJEXT
718 GENCAT
719 INSTOBJEXT
720 DATADIRNAME
721 CATALOGS
722 POSUB
723 GMSGFMT
724 XGETTEXT
725 INCINTL
726 LIBINTL_DEP
727 LIBINTL
728 USE_NLS
729 extra_opt_files
730 extra_modes_file
731 gthread_flags
732 objext
733 manext
734 LIBICONV_DEP
735 LTLIBICONV
736 LIBICONV
737 LDEXP_LIB
738 GNAT_LIBEXC
739 COLLECT2_LIBS
740 CXXCPP
741 AR
742 NM
743 BISON
744 FLEX
745 GENERATED_MANPAGES
746 BUILD_INFO
747 MAKEINFO
748 have_mktemp_command
749 make_compare_target
750 INSTALL_DATA
751 INSTALL_PROGRAM
752 INSTALL
753 ranlib_flags
754 RANLIB
755 LN
756 LN_S
757 AWK
758 SET_MAKE
759 REPORT_BUGS_TEXI
760 REPORT_BUGS_TO
761 PKGVERSION
762 CONFIGURE_SPECS
763 CROSS_SYSTEM_HEADER_DIR
764 TARGET_SYSTEM_ROOT_DEFINE
765 TARGET_SYSTEM_ROOT
766 enable_shared
767 enable_fixed_point
768 enable_decimal_float
769 enable_multilib
770 ENABLE_BUILD_WITH_CXX
771 coverage_flags
772 valgrind_command
773 valgrind_path_defines
774 valgrind_path
775 TREEBROWSER
776 nocommon_flag
777 warn_cxxflags
778 warn_cflags
779 c_strict_warn
780 strict_warn
781 c_loose_warn
782 loose_warn
783 EGREP
784 GREP
785 CPP
786 OUTPUT_OPTION
787 NO_MINUS_C_MINUS_O
788 GNATMAKE
789 GNATBIND
790 ac_ct_CXX
791 CXXFLAGS
792 CXX
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 GENINSRC
801 target_subdir
802 host_subdir
803 build_subdir
804 build_libsubdir
805 target_noncanonical
806 target_os
807 target_vendor
808 target_cpu
809 target
810 host_os
811 host_vendor
812 host_cpu
813 host
814 build_os
815 build_vendor
816 build_cpu
817 build
818 target_alias
819 host_alias
820 build_alias
821 LIBS
822 ECHO_T
823 ECHO_N
824 ECHO_C
825 DEFS
826 mandir
827 localedir
828 libdir
829 psdir
830 pdfdir
831 dvidir
832 htmldir
833 infodir
834 docdir
835 oldincludedir
836 includedir
837 localstatedir
838 sharedstatedir
839 sysconfdir
840 datadir
841 datarootdir
842 libexecdir
843 sbindir
844 bindir
845 program_transform_name
846 prefix
847 exec_prefix
848 PACKAGE_URL
849 PACKAGE_BUGREPORT
850 PACKAGE_STRING
851 PACKAGE_VERSION
852 PACKAGE_TARNAME
853 PACKAGE_NAME
854 PATH_SEPARATOR
855 SHELL'
856 ac_subst_files='option_includes
857 language_hooks'
858 ac_user_opts='
859 enable_option_checking
860 with_build_libsubdir
861 with_local_prefix
862 with_gxx_include_dir
863 with_cpp_install_dir
864 enable_generated_files_in_srcdir
865 with_gnu_ld
866 with_ld
867 with_demangler_in_ld
868 with_gnu_as
869 with_as
870 enable_largefile
871 enable_werror_always
872 enable_checking
873 enable_coverage
874 enable_gather_detailed_mem_stats
875 enable_build_with_cxx
876 with_stabs
877 enable_multilib
878 enable___cxa_atexit
879 enable_decimal_float
880 enable_fixed_point
881 enable_threads
882 enable_tls
883 enable_objc_gc
884 with_dwarf2
885 enable_shared
886 with_build_sysroot
887 with_sysroot
888 with_specs
889 with_pkgversion
890 with_bugurl
891 enable_languages
892 with_multilib_list
893 enable_rpath
894 with_libiconv_prefix
895 enable_initfini_array
896 enable_sjlj_exceptions
897 with_system_libunwind
898 enable_secureplt
899 enable_leading_mingw64_underscores
900 enable_cld
901 enable_frame_pointer
902 enable_win32_registry
903 enable_static
904 with_pic
905 enable_fast_install
906 enable_libtool_lock
907 with_plugin_ld
908 enable_gnu_indirect_function
909 enable_comdat
910 enable_gnu_unique_object
911 enable_linker_build_id
912 with_long_double_128
913 with_gc
914 with_system_zlib
915 enable_maintainer_mode
916 enable_version_specific_runtime_libs
917 with_slibdir
918 enable_plugin
919 enable_libquadmath_support
920 with_linker_hash_style
921 '
922 ac_precious_vars='build_alias
923 host_alias
924 target_alias
925 CC
926 CFLAGS
927 LDFLAGS
928 LIBS
929 CPPFLAGS
930 CXX
931 CXXFLAGS
932 CCC
933 CPP
934 CXXCPP
935 GMPLIBS
936 GMPINC
937 PPLLIBS
938 PPLINC
939 CLOOGLIBS
940 CLOOGINC'
941
942
943 # Initialize some variables set by options.
944 ac_init_help=
945 ac_init_version=false
946 ac_unrecognized_opts=
947 ac_unrecognized_sep=
948 # The variables have the same names as the options, with
949 # dashes changed to underlines.
950 cache_file=/dev/null
951 exec_prefix=NONE
952 no_create=
953 no_recursion=
954 prefix=NONE
955 program_prefix=NONE
956 program_suffix=NONE
957 program_transform_name=s,x,x,
958 silent=
959 site=
960 srcdir=
961 verbose=
962 x_includes=NONE
963 x_libraries=NONE
964
965 # Installation directory options.
966 # These are left unexpanded so users can "make install exec_prefix=/foo"
967 # and all the variables that are supposed to be based on exec_prefix
968 # by default will actually change.
969 # Use braces instead of parens because sh, perl, etc. also accept them.
970 # (The list follows the same order as the GNU Coding Standards.)
971 bindir='${exec_prefix}/bin'
972 sbindir='${exec_prefix}/sbin'
973 libexecdir='${exec_prefix}/libexec'
974 datarootdir='${prefix}/share'
975 datadir='${datarootdir}'
976 sysconfdir='${prefix}/etc'
977 sharedstatedir='${prefix}/com'
978 localstatedir='${prefix}/var'
979 includedir='${prefix}/include'
980 oldincludedir='/usr/include'
981 docdir='${datarootdir}/doc/${PACKAGE}'
982 infodir='${datarootdir}/info'
983 htmldir='${docdir}'
984 dvidir='${docdir}'
985 pdfdir='${docdir}'
986 psdir='${docdir}'
987 libdir='${exec_prefix}/lib'
988 localedir='${datarootdir}/locale'
989 mandir='${datarootdir}/man'
990
991 ac_prev=
992 ac_dashdash=
993 for ac_option
994 do
995 # If the previous option needs an argument, assign it.
996 if test -n "$ac_prev"; then
997 eval $ac_prev=\$ac_option
998 ac_prev=
999 continue
1000 fi
1001
1002 case $ac_option in
1003 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004 *) ac_optarg=yes ;;
1005 esac
1006
1007 # Accept the important Cygnus configure options, so we can diagnose typos.
1008
1009 case $ac_dashdash$ac_option in
1010 --)
1011 ac_dashdash=yes ;;
1012
1013 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014 ac_prev=bindir ;;
1015 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016 bindir=$ac_optarg ;;
1017
1018 -build | --build | --buil | --bui | --bu)
1019 ac_prev=build_alias ;;
1020 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021 build_alias=$ac_optarg ;;
1022
1023 -cache-file | --cache-file | --cache-fil | --cache-fi \
1024 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025 ac_prev=cache_file ;;
1026 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028 cache_file=$ac_optarg ;;
1029
1030 --config-cache | -C)
1031 cache_file=config.cache ;;
1032
1033 -datadir | --datadir | --datadi | --datad)
1034 ac_prev=datadir ;;
1035 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036 datadir=$ac_optarg ;;
1037
1038 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039 | --dataroo | --dataro | --datar)
1040 ac_prev=datarootdir ;;
1041 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043 datarootdir=$ac_optarg ;;
1044
1045 -disable-* | --disable-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error "invalid feature name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1053 *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1058 esac
1059 eval enable_$ac_useropt=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
1070
1071 -enable-* | --enable-*)
1072 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 as_fn_error "invalid feature name: $ac_useropt"
1076 ac_useropt_orig=$ac_useropt
1077 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078 case $ac_user_opts in
1079 *"
1080 "enable_$ac_useropt"
1081 "*) ;;
1082 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083 ac_unrecognized_sep=', ';;
1084 esac
1085 eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089 | --exec | --exe | --ex)
1090 ac_prev=exec_prefix ;;
1091 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093 | --exec=* | --exe=* | --ex=*)
1094 exec_prefix=$ac_optarg ;;
1095
1096 -gas | --gas | --ga | --g)
1097 # Obsolete; use --with-gas.
1098 with_gas=yes ;;
1099
1100 -help | --help | --hel | --he | -h)
1101 ac_init_help=long ;;
1102 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103 ac_init_help=recursive ;;
1104 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105 ac_init_help=short ;;
1106
1107 -host | --host | --hos | --ho)
1108 ac_prev=host_alias ;;
1109 -host=* | --host=* | --hos=* | --ho=*)
1110 host_alias=$ac_optarg ;;
1111
1112 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113 ac_prev=htmldir ;;
1114 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115 | --ht=*)
1116 htmldir=$ac_optarg ;;
1117
1118 -includedir | --includedir | --includedi | --included | --include \
1119 | --includ | --inclu | --incl | --inc)
1120 ac_prev=includedir ;;
1121 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122 | --includ=* | --inclu=* | --incl=* | --inc=*)
1123 includedir=$ac_optarg ;;
1124
1125 -infodir | --infodir | --infodi | --infod | --info | --inf)
1126 ac_prev=infodir ;;
1127 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128 infodir=$ac_optarg ;;
1129
1130 -libdir | --libdir | --libdi | --libd)
1131 ac_prev=libdir ;;
1132 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133 libdir=$ac_optarg ;;
1134
1135 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136 | --libexe | --libex | --libe)
1137 ac_prev=libexecdir ;;
1138 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139 | --libexe=* | --libex=* | --libe=*)
1140 libexecdir=$ac_optarg ;;
1141
1142 -localedir | --localedir | --localedi | --localed | --locale)
1143 ac_prev=localedir ;;
1144 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145 localedir=$ac_optarg ;;
1146
1147 -localstatedir | --localstatedir | --localstatedi | --localstated \
1148 | --localstate | --localstat | --localsta | --localst | --locals)
1149 ac_prev=localstatedir ;;
1150 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152 localstatedir=$ac_optarg ;;
1153
1154 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155 ac_prev=mandir ;;
1156 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157 mandir=$ac_optarg ;;
1158
1159 -nfp | --nfp | --nf)
1160 # Obsolete; use --without-fp.
1161 with_fp=no ;;
1162
1163 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164 | --no-cr | --no-c | -n)
1165 no_create=yes ;;
1166
1167 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169 no_recursion=yes ;;
1170
1171 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173 | --oldin | --oldi | --old | --ol | --o)
1174 ac_prev=oldincludedir ;;
1175 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178 oldincludedir=$ac_optarg ;;
1179
1180 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181 ac_prev=prefix ;;
1182 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183 prefix=$ac_optarg ;;
1184
1185 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186 | --program-pre | --program-pr | --program-p)
1187 ac_prev=program_prefix ;;
1188 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190 program_prefix=$ac_optarg ;;
1191
1192 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193 | --program-suf | --program-su | --program-s)
1194 ac_prev=program_suffix ;;
1195 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197 program_suffix=$ac_optarg ;;
1198
1199 -program-transform-name | --program-transform-name \
1200 | --program-transform-nam | --program-transform-na \
1201 | --program-transform-n | --program-transform- \
1202 | --program-transform | --program-transfor \
1203 | --program-transfo | --program-transf \
1204 | --program-trans | --program-tran \
1205 | --progr-tra | --program-tr | --program-t)
1206 ac_prev=program_transform_name ;;
1207 -program-transform-name=* | --program-transform-name=* \
1208 | --program-transform-nam=* | --program-transform-na=* \
1209 | --program-transform-n=* | --program-transform-=* \
1210 | --program-transform=* | --program-transfor=* \
1211 | --program-transfo=* | --program-transf=* \
1212 | --program-trans=* | --program-tran=* \
1213 | --progr-tra=* | --program-tr=* | --program-t=*)
1214 program_transform_name=$ac_optarg ;;
1215
1216 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217 ac_prev=pdfdir ;;
1218 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219 pdfdir=$ac_optarg ;;
1220
1221 -psdir | --psdir | --psdi | --psd | --ps)
1222 ac_prev=psdir ;;
1223 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224 psdir=$ac_optarg ;;
1225
1226 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227 | -silent | --silent | --silen | --sile | --sil)
1228 silent=yes ;;
1229
1230 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231 ac_prev=sbindir ;;
1232 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233 | --sbi=* | --sb=*)
1234 sbindir=$ac_optarg ;;
1235
1236 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238 | --sharedst | --shareds | --shared | --share | --shar \
1239 | --sha | --sh)
1240 ac_prev=sharedstatedir ;;
1241 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244 | --sha=* | --sh=*)
1245 sharedstatedir=$ac_optarg ;;
1246
1247 -site | --site | --sit)
1248 ac_prev=site ;;
1249 -site=* | --site=* | --sit=*)
1250 site=$ac_optarg ;;
1251
1252 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253 ac_prev=srcdir ;;
1254 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255 srcdir=$ac_optarg ;;
1256
1257 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258 | --syscon | --sysco | --sysc | --sys | --sy)
1259 ac_prev=sysconfdir ;;
1260 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262 sysconfdir=$ac_optarg ;;
1263
1264 -target | --target | --targe | --targ | --tar | --ta | --t)
1265 ac_prev=target_alias ;;
1266 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267 target_alias=$ac_optarg ;;
1268
1269 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270 verbose=yes ;;
1271
1272 -version | --version | --versio | --versi | --vers | -V)
1273 ac_init_version=: ;;
1274
1275 -with-* | --with-*)
1276 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 as_fn_error "invalid package name: $ac_useropt"
1280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284 "with_$ac_useropt"
1285 "*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=\$ac_optarg ;;
1290
1291 -without-* | --without-*)
1292 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
1294 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 as_fn_error "invalid package name: $ac_useropt"
1296 ac_useropt_orig=$ac_useropt
1297 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298 case $ac_user_opts in
1299 *"
1300 "with_$ac_useropt"
1301 "*) ;;
1302 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303 ac_unrecognized_sep=', ';;
1304 esac
1305 eval with_$ac_useropt=no ;;
1306
1307 --x)
1308 # Obsolete; use --with-x.
1309 with_x=yes ;;
1310
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1317
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1324
1325 -*) as_fn_error "unrecognized option: \`$ac_option'
1326 Try \`$0 --help' for more information."
1327 ;;
1328
1329 *=*)
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 case $ac_envvar in #(
1333 '' | [0-9]* | *[!_$as_cr_alnum]* )
1334 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335 esac
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1338
1339 *)
1340 # FIXME: should be removed in autoconf 3.0.
1341 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345 ;;
1346
1347 esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 as_fn_error "missing argument to $ac_option"
1353 fi
1354
1355 if test -n "$ac_unrecognized_opts"; then
1356 case $enable_option_checking in
1357 no) ;;
1358 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 esac
1361 fi
1362
1363 # Check all directory arguments for consistency.
1364 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365 datadir sysconfdir sharedstatedir localstatedir includedir \
1366 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367 libdir localedir mandir
1368 do
1369 eval ac_val=\$$ac_var
1370 # Remove trailing slashes.
1371 case $ac_val in
1372 */ )
1373 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374 eval $ac_var=\$ac_val;;
1375 esac
1376 # Be sure to have absolute directory names.
1377 case $ac_val in
1378 [\\/$]* | ?:[\\/]* ) continue;;
1379 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380 esac
1381 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 as_fn_error "working directory cannot be determined"
1412 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 as_fn_error "pwd does not report name of working directory"
1414
1415
1416 # Find the source files, if location was not specified.
1417 if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
1419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425 $as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
1443 srcdir=$ac_confdir
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445 srcdir=..
1446 fi
1447 else
1448 ac_srcdir_defaulted=no
1449 fi
1450 if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 fi
1454 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455 ac_abs_confdir=`(
1456 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 pwd)`
1458 # When building in place, set srcdir=.
1459 if test "$ac_abs_confdir" = "$ac_pwd"; then
1460 srcdir=.
1461 fi
1462 # Remove unnecessary trailing slashes from srcdir.
1463 # Double slashes in file names in object file debugging info
1464 # mess up M-x gdb in Emacs.
1465 case $srcdir in
1466 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467 esac
1468 for ac_var in $ac_precious_vars; do
1469 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470 eval ac_env_${ac_var}_value=\$${ac_var}
1471 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473 done
1474
1475 #
1476 # Report the --help message.
1477 #
1478 if test "$ac_init_help" = "long"; then
1479 # Omit some internal or obsolete options to make the list less imposing.
1480 # This message is too long to be a string in the A/UX 3.1 sh.
1481 cat <<_ACEOF
1482 \`configure' configures this package to adapt to many kinds of systems.
1483
1484 Usage: $0 [OPTION]... [VAR=VALUE]...
1485
1486 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487 VAR=VALUE. See below for descriptions of some of the useful variables.
1488
1489 Defaults for the options are specified in brackets.
1490
1491 Configuration:
1492 -h, --help display this help and exit
1493 --help=short display options specific to this package
1494 --help=recursive display the short help of all the included packages
1495 -V, --version display version information and exit
1496 -q, --quiet, --silent do not print \`checking...' messages
1497 --cache-file=FILE cache test results in FILE [disabled]
1498 -C, --config-cache alias for \`--cache-file=config.cache'
1499 -n, --no-create do not create output files
1500 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501
1502 Installation directories:
1503 --prefix=PREFIX install architecture-independent files in PREFIX
1504 [$ac_default_prefix]
1505 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 [PREFIX]
1507
1508 By default, \`make install' will install all the files in
1509 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511 for instance \`--prefix=\$HOME'.
1512
1513 For better control, use the options below.
1514
1515 Fine tuning of the installation directories:
1516 --bindir=DIR user executables [EPREFIX/bin]
1517 --sbindir=DIR system admin executables [EPREFIX/sbin]
1518 --libexecdir=DIR program executables [EPREFIX/libexec]
1519 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522 --libdir=DIR object code libraries [EPREFIX/lib]
1523 --includedir=DIR C header files [PREFIX/include]
1524 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527 --infodir=DIR info documentation [DATAROOTDIR/info]
1528 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529 --mandir=DIR man documentation [DATAROOTDIR/man]
1530 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1531 --htmldir=DIR html documentation [DOCDIR]
1532 --dvidir=DIR dvi documentation [DOCDIR]
1533 --pdfdir=DIR pdf documentation [DOCDIR]
1534 --psdir=DIR ps documentation [DOCDIR]
1535 _ACEOF
1536
1537 cat <<\_ACEOF
1538
1539 Program names:
1540 --program-prefix=PREFIX prepend PREFIX to installed program names
1541 --program-suffix=SUFFIX append SUFFIX to installed program names
1542 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543
1544 System types:
1545 --build=BUILD configure for building on BUILD [guessed]
1546 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547 --target=TARGET configure for building compilers for TARGET [HOST]
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553 cat <<\_ACEOF
1554
1555 Optional Features:
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-generated-files-in-srcdir
1560 put copies of generated files in source dir intended
1561 for creating source tarballs for users without
1562 texinfo bison or flex
1563 --disable-largefile omit support for large files
1564 --enable-werror-always enable -Werror despite compiler version
1565 --enable-checking[=LIST]
1566 enable expensive run-time checks. With LIST, enable
1567 only specific categories of checks. Categories are:
1568 yes,no,all,none,release. Flags are:
1569 assert,df,fold,gc,gcac,gimple,misc,
1570 rtlflag,rtl,runtime,tree,valgrind,types
1571 --enable-coverage[=LEVEL]
1572 enable compiler's code coverage collection. Use to
1573 measure compiler performance and locate unused parts
1574 of the compiler. With LEVEL, specify optimization.
1575 Values are opt, noopt, default is noopt
1576 --enable-gather-detailed-mem-stats
1577 enable detailed memory allocation stats gathering
1578 --enable-build-with-cxx build with C++ compiler instead of C compiler
1579 --enable-multilib enable library support for multiple ABIs
1580 --enable-__cxa_atexit enable __cxa_atexit for C++
1581 --enable-decimal-float={no,yes,bid,dpd}
1582 enable decimal float extension to C. Selecting 'bid'
1583 or 'dpd' choses which decimal floating point format
1584 to use
1585 --enable-fixed-point enable fixed-point arithmetic extension to C
1586 --enable-threads[=LIB] enable thread usage for target GCC, using LIB thread
1587 package
1588 --enable-tls enable or disable generation of tls code overriding
1589 the assembler check for tls support
1590 --enable-objc-gc enable the use of Boehm's garbage collector with the
1591 GNU Objective-C runtime
1592 --disable-shared don't provide a shared libgcc
1593 --enable-languages=LIST specify which front-ends to build
1594 --disable-rpath do not hardcode runtime library paths
1595 --enable-initfini-array use .init_array/.fini_array sections
1596 --enable-sjlj-exceptions
1597 arrange to use setjmp/longjmp exception handling
1598 --enable-secureplt enable -msecure-plt by default for PowerPC
1599 --enable-leading-mingw64-underscores
1600 enable leading underscores on 64 bit mingw targets
1601 --enable-cld enable -mcld by default for 32bit x86
1602 --enable-frame-pointer enable -fno-omit-frame-pointer by default for 32bit
1603 x86
1604 --disable-win32-registry
1605 disable lookup of installation paths in the Registry
1606 on Windows hosts
1607 --enable-win32-registry enable registry lookup (default)
1608 --enable-win32-registry=KEY
1609 use KEY instead of GCC version as the last portion
1610 of the registry key
1611 --enable-shared[=PKGS] build shared libraries [default=yes]
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --enable-gnu-indirect-function
1617 enable the use of the @gnu_indirect_function to
1618 glibc systems
1619 --enable-comdat enable COMDAT group support
1620 --enable-gnu-unique-object
1621 enable the use of the @gnu_unique_object ELF
1622 extension on glibc systems
1623 --enable-linker-build-id
1624 compiler will always pass --build-id to linker
1625 --enable-maintainer-mode
1626 enable make rules and dependencies not useful (and
1627 sometimes confusing) to the casual installer
1628 --enable-version-specific-runtime-libs
1629 specify that runtime libraries should be installed
1630 in a compiler-specific directory
1631 --enable-plugin enable plugin support
1632 --disable-libquadmath-support
1633 disable libquadmath support for Fortran
1634
1635 Optional Packages:
1636 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1637 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1638 --with-build-libsubdir=DIR Directory where to find libraries for build system
1639 --with-local-prefix=DIR specifies directory to put local include
1640 --with-gxx-include-dir=DIR
1641 specifies directory to put g++ header files
1642 --with-cpp-install-dir=DIR
1643 install the user visible C preprocessor in DIR
1644 (relative to PREFIX) as well as PREFIX/bin
1645 --with-gnu-ld arrange to work with GNU ld
1646 --with-ld arrange to use the specified ld (full pathname)
1647 --with-demangler-in-ld try to use demangler in GNU ld
1648 --with-gnu-as arrange to work with GNU as
1649 --with-as arrange to use the specified as (full pathname)
1650 --with-stabs arrange to use stabs instead of host debug format
1651 --with-dwarf2 force the default debug format to be DWARF 2
1652 --with-build-sysroot=sysroot
1653 use sysroot as the system root during the build
1654 --with-sysroot[=DIR] search for usr/lib, usr/include, et al, within DIR
1655 --with-specs=SPECS add SPECS to driver command-line processing
1656 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1657 --with-bugurl=URL Direct users to URL to report a bug
1658 --with-multilib-list select multilibs (SH and x86-64 only)
1659 --with-gnu-ld assume the C compiler uses GNU ld default=no
1660 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1661 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1662 --with-system-libunwind use installed libunwind
1663 --with-pic try to use only PIC/non-PIC objects [default=use
1664 both]
1665 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1666 --with-plugin-ld=[ARG] specify the plugin linker
1667 --with-long-double-128 use 128-bit long double by default
1668 --with-gc={page,zone} choose the garbage collection mechanism to use with
1669 the compiler
1670 --with-system-zlib use installed libz
1671 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1672 --with-linker-hash-style={sysv,gnu,both}
1673 specify the linker hash style
1674
1675 Some influential environment variables:
1676 CC C compiler command
1677 CFLAGS C compiler flags
1678 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1679 nonstandard directory <lib dir>
1680 LIBS libraries to pass to the linker, e.g. -l<library>
1681 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682 you have headers in a nonstandard directory <include dir>
1683 CXX C++ compiler command
1684 CXXFLAGS C++ compiler flags
1685 CPP C preprocessor
1686 CXXCPP C++ preprocessor
1687 GMPLIBS How to link GMP
1688 GMPINC How to find GMP include files
1689 PPLLIBS How to link PPL
1690 PPLINC How to find PPL include files
1691 CLOOGLIBS How to link CLOOG
1692 CLOOGINC How to find CLOOG include files
1693
1694 Use these variables to override the choices made by `configure' or to help
1695 it to find libraries and programs with nonstandard names/locations.
1696
1697 Report bugs to the package provider.
1698 _ACEOF
1699 ac_status=$?
1700 fi
1701
1702 if test "$ac_init_help" = "recursive"; then
1703 # If there are subdirs, report their specific --help.
1704 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1705 test -d "$ac_dir" ||
1706 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1707 continue
1708 ac_builddir=.
1709
1710 case "$ac_dir" in
1711 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712 *)
1713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1714 # A ".." for each directory in $ac_dir_suffix.
1715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1716 case $ac_top_builddir_sub in
1717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1719 esac ;;
1720 esac
1721 ac_abs_top_builddir=$ac_pwd
1722 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1723 # for backward compatibility:
1724 ac_top_builddir=$ac_top_build_prefix
1725
1726 case $srcdir in
1727 .) # We are building in place.
1728 ac_srcdir=.
1729 ac_top_srcdir=$ac_top_builddir_sub
1730 ac_abs_top_srcdir=$ac_pwd ;;
1731 [\\/]* | ?:[\\/]* ) # Absolute name.
1732 ac_srcdir=$srcdir$ac_dir_suffix;
1733 ac_top_srcdir=$srcdir
1734 ac_abs_top_srcdir=$srcdir ;;
1735 *) # Relative name.
1736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1737 ac_top_srcdir=$ac_top_build_prefix$srcdir
1738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1739 esac
1740 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1741
1742 cd "$ac_dir" || { ac_status=$?; continue; }
1743 # Check for guested configure.
1744 if test -f "$ac_srcdir/configure.gnu"; then
1745 echo &&
1746 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1747 elif test -f "$ac_srcdir/configure"; then
1748 echo &&
1749 $SHELL "$ac_srcdir/configure" --help=recursive
1750 else
1751 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1752 fi || ac_status=$?
1753 cd "$ac_pwd" || { ac_status=$?; break; }
1754 done
1755 fi
1756
1757 test -n "$ac_init_help" && exit $ac_status
1758 if $ac_init_version; then
1759 cat <<\_ACEOF
1760 configure
1761 generated by GNU Autoconf 2.64
1762
1763 Copyright (C) 2009 Free Software Foundation, Inc.
1764 This configure script is free software; the Free Software Foundation
1765 gives unlimited permission to copy, distribute and modify it.
1766 _ACEOF
1767 exit
1768 fi
1769
1770 ## ------------------------ ##
1771 ## Autoconf initialization. ##
1772 ## ------------------------ ##
1773
1774 # ac_fn_c_try_compile LINENO
1775 # --------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_c_try_compile ()
1778 {
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1782 case "(($ac_try" in
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1785 esac
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1789 ac_status=$?
1790 if test -s conftest.err; then
1791 grep -v '^ *+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1794 fi
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_c_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806 fi
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1808 return $ac_retval
1809
1810 } # ac_fn_c_try_compile
1811
1812 # ac_fn_cxx_try_compile LINENO
1813 # ----------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_cxx_try_compile ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1832 fi
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_cxx_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843 ac_retval=1
1844 fi
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
1847
1848 } # ac_fn_cxx_try_compile
1849
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_cpp ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1869 fi
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } >/dev/null && {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881 fi
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1883 return $ac_retval
1884
1885 } # ac_fn_c_try_cpp
1886
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1900 fi
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1915 else
1916 ac_header_compiler=no
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1921
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1931 else
1932 ac_header_preproc=no
1933 fi
1934 rm -f conftest.err conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1937
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 yes:no: )
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ;;
1946 no:yes:* )
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 ;;
1958 esac
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 eval "$3=\$ac_header_compiler"
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 fi
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971
1972 } # ac_fn_c_check_header_mongrel
1973
1974 # ac_fn_c_try_run LINENO
1975 # ----------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1977 # that executables *can* be run.
1978 ac_fn_c_try_run ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 $as_echo "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>&5
1989 ac_status=$?
1990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1991 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1992 { { case "(($ac_try" in
1993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1994 *) ac_try_echo=$ac_try;;
1995 esac
1996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1997 $as_echo "$ac_try_echo"; } >&5
1998 (eval "$ac_try") 2>&5
1999 ac_status=$?
2000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2001 test $ac_status = 0; }; }; then :
2002 ac_retval=0
2003 else
2004 $as_echo "$as_me: program exited with status $ac_status" >&5
2005 $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008 ac_retval=$ac_status
2009 fi
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2012 return $ac_retval
2013
2014 } # ac_fn_c_try_run
2015
2016 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2017 # -------------------------------------------------------
2018 # Tests whether HEADER exists and can be compiled using the include files in
2019 # INCLUDES, setting the cache variable VAR accordingly.
2020 ac_fn_c_check_header_compile ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$3=yes"
2035 else
2036 eval "$3=no"
2037 fi
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044
2045 } # ac_fn_c_check_header_compile
2046
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 # computed
2052 ac_fn_c_compute_int ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2064 test_array [0] = 0
2065
2066 ;
2067 return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071 ac_lo=0 ac_mid=0
2072 while :; do
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $4
2076 int
2077 main ()
2078 {
2079 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080 test_array [0] = 0
2081
2082 ;
2083 return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=$ac_mid; break
2088 else
2089 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2090 if test $ac_lo -le $ac_mid; then
2091 ac_lo= ac_hi=
2092 break
2093 fi
2094 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 done
2098 else
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h. */
2101 $4
2102 int
2103 main ()
2104 {
2105 static int test_array [1 - 2 * !(($2) < 0)];
2106 test_array [0] = 0
2107
2108 ;
2109 return 0;
2110 }
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_hi=-1 ac_mid=-1
2114 while :; do
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2117 $4
2118 int
2119 main ()
2120 {
2121 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2122 test_array [0] = 0
2123
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_lo=$ac_mid; break
2130 else
2131 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132 if test $ac_mid -le $ac_hi; then
2133 ac_lo= ac_hi=
2134 break
2135 fi
2136 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140 else
2141 ac_lo= ac_hi=
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 test_array [0] = 0
2157
2158 ;
2159 return 0;
2160 }
2161 _ACEOF
2162 if ac_fn_c_try_compile "$LINENO"; then :
2163 ac_hi=$ac_mid
2164 else
2165 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2166 fi
2167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2168 done
2169 case $ac_lo in #((
2170 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2171 '') ac_retval=1 ;;
2172 esac
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 $4
2177 static long int longval () { return $2; }
2178 static unsigned long int ulongval () { return $2; }
2179 #include <stdio.h>
2180 #include <stdlib.h>
2181 int
2182 main ()
2183 {
2184
2185 FILE *f = fopen ("conftest.val", "w");
2186 if (! f)
2187 return 1;
2188 if (($2) < 0)
2189 {
2190 long int i = longval ();
2191 if (i != ($2))
2192 return 1;
2193 fprintf (f, "%ld", i);
2194 }
2195 else
2196 {
2197 unsigned long int i = ulongval ();
2198 if (i != ($2))
2199 return 1;
2200 fprintf (f, "%lu", i);
2201 }
2202 /* Do not output a trailing newline, as this causes \r\n confusion
2203 on some platforms. */
2204 return ferror (f) || fclose (f) != 0;
2205
2206 ;
2207 return 0;
2208 }
2209 _ACEOF
2210 if ac_fn_c_try_run "$LINENO"; then :
2211 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2212 else
2213 ac_retval=1
2214 fi
2215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2216 conftest.$ac_objext conftest.beam conftest.$ac_ext
2217 rm -f conftest.val
2218
2219 fi
2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2221 return $ac_retval
2222
2223 } # ac_fn_c_compute_int
2224
2225 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2226 # -------------------------------------------
2227 # Tests whether TYPE exists after having included INCLUDES, setting cache
2228 # variable VAR accordingly.
2229 ac_fn_c_check_type ()
2230 {
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2233 $as_echo_n "checking for $2... " >&6; }
2234 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2235 $as_echo_n "(cached) " >&6
2236 else
2237 eval "$3=no"
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $4
2241 int
2242 main ()
2243 {
2244 if (sizeof ($2))
2245 return 0;
2246 ;
2247 return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 if (sizeof (($2)))
2258 return 0;
2259 ;
2260 return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264
2265 else
2266 eval "$3=yes"
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 fi
2270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2271 fi
2272 eval ac_res=\$$3
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2275 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2276
2277 } # ac_fn_c_check_type
2278
2279 # ac_fn_c_find_intX_t LINENO BITS VAR
2280 # -----------------------------------
2281 # Finds a signed integer type with width BITS, setting cache variable VAR
2282 # accordingly.
2283 ac_fn_c_find_intX_t ()
2284 {
2285 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2287 $as_echo_n "checking for int$2_t... " >&6; }
2288 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2289 $as_echo_n "(cached) " >&6
2290 else
2291 eval "$3=no"
2292 for ac_type in int$2_t 'int' 'long int' \
2293 'long long int' 'short int' 'signed char'; do
2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2295 /* end confdefs.h. */
2296 $ac_includes_default
2297 int
2298 main ()
2299 {
2300 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2301 test_array [0] = 0
2302
2303 ;
2304 return 0;
2305 }
2306 _ACEOF
2307 if ac_fn_c_try_compile "$LINENO"; then :
2308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2309 /* end confdefs.h. */
2310 $ac_includes_default
2311 int
2312 main ()
2313 {
2314 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2315 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2316 test_array [0] = 0
2317
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323
2324 else
2325 case $ac_type in #(
2326 int$2_t) :
2327 eval "$3=yes" ;; #(
2328 *) :
2329 eval "$3=\$ac_type" ;;
2330 esac
2331 fi
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 eval as_val=\$$3
2336 if test "x$as_val" = x""no; then :
2337
2338 else
2339 break
2340 fi
2341 done
2342 fi
2343 eval ac_res=\$$3
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347
2348 } # ac_fn_c_find_intX_t
2349
2350 # ac_fn_c_try_link LINENO
2351 # -----------------------
2352 # Try to link conftest.$ac_ext, and return whether this succeeded.
2353 ac_fn_c_try_link ()
2354 {
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 rm -f conftest.$ac_objext conftest$ac_exeext
2357 if { { ac_try="$ac_link"
2358 case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364 (eval "$ac_link") 2>conftest.err
2365 ac_status=$?
2366 if test -s conftest.err; then
2367 grep -v '^ *+' conftest.err >conftest.er1
2368 cat conftest.er1 >&5
2369 mv -f conftest.er1 conftest.err
2370 fi
2371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372 test $ac_status = 0; } && {
2373 test -z "$ac_c_werror_flag" ||
2374 test ! -s conftest.err
2375 } && test -s conftest$ac_exeext && {
2376 test "$cross_compiling" = yes ||
2377 $as_test_x conftest$ac_exeext
2378 }; then :
2379 ac_retval=0
2380 else
2381 $as_echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 ac_retval=1
2385 fi
2386 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2387 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2388 # interfere with the next link command; also delete a directory that is
2389 # left behind by Apple's compiler. We do this before executing the actions.
2390 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2392 return $ac_retval
2393
2394 } # ac_fn_c_try_link
2395
2396 # ac_fn_c_find_uintX_t LINENO BITS VAR
2397 # ------------------------------------
2398 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2399 # accordingly.
2400 ac_fn_c_find_uintX_t ()
2401 {
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2404 $as_echo_n "checking for uint$2_t... " >&6; }
2405 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2406 $as_echo_n "(cached) " >&6
2407 else
2408 eval "$3=no"
2409 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2410 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2413 $ac_includes_default
2414 int
2415 main ()
2416 {
2417 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2418 test_array [0] = 0
2419
2420 ;
2421 return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425 case $ac_type in #(
2426 uint$2_t) :
2427 eval "$3=yes" ;; #(
2428 *) :
2429 eval "$3=\$ac_type" ;;
2430 esac
2431 fi
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 eval as_val=\$$3
2434 if test "x$as_val" = x""no; then :
2435
2436 else
2437 break
2438 fi
2439 done
2440 fi
2441 eval ac_res=\$$3
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 $as_echo "$ac_res" >&6; }
2444 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445
2446 } # ac_fn_c_find_uintX_t
2447
2448 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2449 # ----------------------------------------------
2450 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2451 ac_fn_c_check_header_preproc ()
2452 {
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2455 $as_echo_n "checking for $2... " >&6; }
2456 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h. */
2461 #include <$2>
2462 _ACEOF
2463 if ac_fn_c_try_cpp "$LINENO"; then :
2464 eval "$3=yes"
2465 else
2466 eval "$3=no"
2467 fi
2468 rm -f conftest.err conftest.$ac_ext
2469 fi
2470 eval ac_res=\$$3
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2472 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474
2475 } # ac_fn_c_check_header_preproc
2476
2477 # ac_fn_cxx_try_cpp LINENO
2478 # ------------------------
2479 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2480 ac_fn_cxx_try_cpp ()
2481 {
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 if { { ac_try="$ac_cpp conftest.$ac_ext"
2484 case "(($ac_try" in
2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486 *) ac_try_echo=$ac_try;;
2487 esac
2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2489 $as_echo "$ac_try_echo"; } >&5
2490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2491 ac_status=$?
2492 if test -s conftest.err; then
2493 grep -v '^ *+' conftest.err >conftest.er1
2494 cat conftest.er1 >&5
2495 mv -f conftest.er1 conftest.err
2496 fi
2497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } >/dev/null && {
2499 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2500 test ! -s conftest.err
2501 }; then :
2502 ac_retval=0
2503 else
2504 $as_echo "$as_me: failed program was:" >&5
2505 sed 's/^/| /' conftest.$ac_ext >&5
2506
2507 ac_retval=1
2508 fi
2509 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2510 return $ac_retval
2511
2512 } # ac_fn_cxx_try_cpp
2513
2514 # ac_fn_cxx_check_header_preproc LINENO HEADER VAR
2515 # ------------------------------------------------
2516 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2517 ac_fn_cxx_check_header_preproc ()
2518 {
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 $as_echo_n "checking for $2... " >&6; }
2522 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2523 $as_echo_n "(cached) " >&6
2524 else
2525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2526 /* end confdefs.h. */
2527 #include <$2>
2528 _ACEOF
2529 if ac_fn_cxx_try_cpp "$LINENO"; then :
2530 eval "$3=yes"
2531 else
2532 eval "$3=no"
2533 fi
2534 rm -f conftest.err conftest.$ac_ext
2535 fi
2536 eval ac_res=\$$3
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2538 $as_echo "$ac_res" >&6; }
2539 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2540
2541 } # ac_fn_cxx_check_header_preproc
2542
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2547 {
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2559
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2564
2565 #ifdef __STDC__
2566 # include <limits.h>
2567 #else
2568 # include <assert.h>
2569 #endif
2570
2571 #undef $2
2572
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2576 #ifdef __cplusplus
2577 extern "C"
2578 #endif
2579 char $2 ();
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2584 choke me
2585 #endif
2586
2587 int
2588 main ()
2589 {
2590 return $2 ();
2591 ;
2592 return 0;
2593 }
2594 _ACEOF
2595 if ac_fn_c_try_link "$LINENO"; then :
2596 eval "$3=yes"
2597 else
2598 eval "$3=no"
2599 fi
2600 rm -f core conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2602 fi
2603 eval ac_res=\$$3
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607
2608 } # ac_fn_c_check_func
2609
2610 # ac_fn_cxx_try_link LINENO
2611 # -------------------------
2612 # Try to link conftest.$ac_ext, and return whether this succeeded.
2613 ac_fn_cxx_try_link ()
2614 {
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 rm -f conftest.$ac_objext conftest$ac_exeext
2617 if { { ac_try="$ac_link"
2618 case "(($ac_try" in
2619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2620 *) ac_try_echo=$ac_try;;
2621 esac
2622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2623 $as_echo "$ac_try_echo"; } >&5
2624 (eval "$ac_link") 2>conftest.err
2625 ac_status=$?
2626 if test -s conftest.err; then
2627 grep -v '^ *+' conftest.err >conftest.er1
2628 cat conftest.er1 >&5
2629 mv -f conftest.er1 conftest.err
2630 fi
2631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2632 test $ac_status = 0; } && {
2633 test -z "$ac_cxx_werror_flag" ||
2634 test ! -s conftest.err
2635 } && test -s conftest$ac_exeext && {
2636 test "$cross_compiling" = yes ||
2637 $as_test_x conftest$ac_exeext
2638 }; then :
2639 ac_retval=0
2640 else
2641 $as_echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 ac_retval=1
2645 fi
2646 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2647 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2648 # interfere with the next link command; also delete a directory that is
2649 # left behind by Apple's compiler. We do this before executing the actions.
2650 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2651 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2652 return $ac_retval
2653
2654 } # ac_fn_cxx_try_link
2655 cat >config.log <<_ACEOF
2656 This file contains any messages produced by compilers while
2657 running configure, to aid debugging if configure makes a mistake.
2658
2659 It was created by $as_me, which was
2660 generated by GNU Autoconf 2.64. Invocation command line was
2661
2662 $ $0 $@
2663
2664 _ACEOF
2665 exec 5>>config.log
2666 {
2667 cat <<_ASUNAME
2668 ## --------- ##
2669 ## Platform. ##
2670 ## --------- ##
2671
2672 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2673 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2674 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2675 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2676 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2677
2678 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2679 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2680
2681 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2682 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2683 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2684 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2685 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2686 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2687 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2688
2689 _ASUNAME
2690
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 $as_echo "PATH: $as_dir"
2697 done
2698 IFS=$as_save_IFS
2699
2700 } >&5
2701
2702 cat >&5 <<_ACEOF
2703
2704
2705 ## ----------- ##
2706 ## Core tests. ##
2707 ## ----------- ##
2708
2709 _ACEOF
2710
2711
2712 # Keep a trace of the command line.
2713 # Strip out --no-create and --no-recursion so they do not pile up.
2714 # Strip out --silent because we don't want to record it for future runs.
2715 # Also quote any args containing shell meta-characters.
2716 # Make two passes to allow for proper duplicate-argument suppression.
2717 ac_configure_args=
2718 ac_configure_args0=
2719 ac_configure_args1=
2720 ac_must_keep_next=false
2721 for ac_pass in 1 2
2722 do
2723 for ac_arg
2724 do
2725 case $ac_arg in
2726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2728 | -silent | --silent | --silen | --sile | --sil)
2729 continue ;;
2730 *\'*)
2731 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2732 esac
2733 case $ac_pass in
2734 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2735 2)
2736 as_fn_append ac_configure_args1 " '$ac_arg'"
2737 if test $ac_must_keep_next = true; then
2738 ac_must_keep_next=false # Got value, back to normal.
2739 else
2740 case $ac_arg in
2741 *=* | --config-cache | -C | -disable-* | --disable-* \
2742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2744 | -with-* | --with-* | -without-* | --without-* | --x)
2745 case "$ac_configure_args0 " in
2746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2747 esac
2748 ;;
2749 -* ) ac_must_keep_next=true ;;
2750 esac
2751 fi
2752 as_fn_append ac_configure_args " '$ac_arg'"
2753 ;;
2754 esac
2755 done
2756 done
2757 { ac_configure_args0=; unset ac_configure_args0;}
2758 { ac_configure_args1=; unset ac_configure_args1;}
2759
2760 # When interrupted or exit'd, cleanup temporary files, and complete
2761 # config.log. We remove comments because anyway the quotes in there
2762 # would cause problems or look ugly.
2763 # WARNING: Use '\'' to represent an apostrophe within the trap.
2764 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2765 trap 'exit_status=$?
2766 # Save into config.log some information that might help in debugging.
2767 {
2768 echo
2769
2770 cat <<\_ASBOX
2771 ## ---------------- ##
2772 ## Cache variables. ##
2773 ## ---------------- ##
2774 _ASBOX
2775 echo
2776 # The following way of writing the cache mishandles newlines in values,
2777 (
2778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2779 eval ac_val=\$$ac_var
2780 case $ac_val in #(
2781 *${as_nl}*)
2782 case $ac_var in #(
2783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2785 esac
2786 case $ac_var in #(
2787 _ | IFS | as_nl) ;; #(
2788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2789 *) { eval $ac_var=; unset $ac_var;} ;;
2790 esac ;;
2791 esac
2792 done
2793 (set) 2>&1 |
2794 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2795 *${as_nl}ac_space=\ *)
2796 sed -n \
2797 "s/'\''/'\''\\\\'\'''\''/g;
2798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2799 ;; #(
2800 *)
2801 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2802 ;;
2803 esac |
2804 sort
2805 )
2806 echo
2807
2808 cat <<\_ASBOX
2809 ## ----------------- ##
2810 ## Output variables. ##
2811 ## ----------------- ##
2812 _ASBOX
2813 echo
2814 for ac_var in $ac_subst_vars
2815 do
2816 eval ac_val=\$$ac_var
2817 case $ac_val in
2818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2819 esac
2820 $as_echo "$ac_var='\''$ac_val'\''"
2821 done | sort
2822 echo
2823
2824 if test -n "$ac_subst_files"; then
2825 cat <<\_ASBOX
2826 ## ------------------- ##
2827 ## File substitutions. ##
2828 ## ------------------- ##
2829 _ASBOX
2830 echo
2831 for ac_var in $ac_subst_files
2832 do
2833 eval ac_val=\$$ac_var
2834 case $ac_val in
2835 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2836 esac
2837 $as_echo "$ac_var='\''$ac_val'\''"
2838 done | sort
2839 echo
2840 fi
2841
2842 if test -s confdefs.h; then
2843 cat <<\_ASBOX
2844 ## ----------- ##
2845 ## confdefs.h. ##
2846 ## ----------- ##
2847 _ASBOX
2848 echo
2849 cat confdefs.h
2850 echo
2851 fi
2852 test "$ac_signal" != 0 &&
2853 $as_echo "$as_me: caught signal $ac_signal"
2854 $as_echo "$as_me: exit $exit_status"
2855 } >&5
2856 rm -f core *.core core.conftest.* &&
2857 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2858 exit $exit_status
2859 ' 0
2860 for ac_signal in 1 2 13 15; do
2861 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2862 done
2863 ac_signal=0
2864
2865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2866 rm -f -r conftest* confdefs.h
2867
2868 $as_echo "/* confdefs.h */" > confdefs.h
2869
2870 # Predefined preprocessor variables.
2871
2872 cat >>confdefs.h <<_ACEOF
2873 #define PACKAGE_NAME "$PACKAGE_NAME"
2874 _ACEOF
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2878 _ACEOF
2879
2880 cat >>confdefs.h <<_ACEOF
2881 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2882 _ACEOF
2883
2884 cat >>confdefs.h <<_ACEOF
2885 #define PACKAGE_STRING "$PACKAGE_STRING"
2886 _ACEOF
2887
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2890 _ACEOF
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_URL "$PACKAGE_URL"
2894 _ACEOF
2895
2896
2897 # Let the site file select an alternate cache file if it wants to.
2898 # Prefer an explicitly selected file to automatically selected ones.
2899 ac_site_file1=NONE
2900 ac_site_file2=NONE
2901 if test -n "$CONFIG_SITE"; then
2902 ac_site_file1=$CONFIG_SITE
2903 elif test "x$prefix" != xNONE; then
2904 ac_site_file1=$prefix/share/config.site
2905 ac_site_file2=$prefix/etc/config.site
2906 else
2907 ac_site_file1=$ac_default_prefix/share/config.site
2908 ac_site_file2=$ac_default_prefix/etc/config.site
2909 fi
2910 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2911 do
2912 test "x$ac_site_file" = xNONE && continue
2913 if test -r "$ac_site_file"; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2915 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2916 sed 's/^/| /' "$ac_site_file" >&5
2917 . "$ac_site_file"
2918 fi
2919 done
2920
2921 if test -r "$cache_file"; then
2922 # Some versions of bash will fail to source /dev/null (special
2923 # files actually), so we avoid doing that.
2924 if test -f "$cache_file"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2926 $as_echo "$as_me: loading cache $cache_file" >&6;}
2927 case $cache_file in
2928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2929 *) . "./$cache_file";;
2930 esac
2931 fi
2932 else
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2934 $as_echo "$as_me: creating cache $cache_file" >&6;}
2935 >$cache_file
2936 fi
2937
2938 # Check that the precious variables saved in the cache have kept the same
2939 # value.
2940 ac_cache_corrupted=false
2941 for ac_var in $ac_precious_vars; do
2942 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2943 eval ac_new_set=\$ac_env_${ac_var}_set
2944 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2945 eval ac_new_val=\$ac_env_${ac_var}_value
2946 case $ac_old_set,$ac_new_set in
2947 set,)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2949 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2950 ac_cache_corrupted=: ;;
2951 ,set)
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2953 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2954 ac_cache_corrupted=: ;;
2955 ,);;
2956 *)
2957 if test "x$ac_old_val" != "x$ac_new_val"; then
2958 # differences in whitespace do not lead to failure.
2959 ac_old_val_w=`echo x $ac_old_val`
2960 ac_new_val_w=`echo x $ac_new_val`
2961 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2963 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2964 ac_cache_corrupted=:
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2967 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2968 eval $ac_var=\$ac_old_val
2969 fi
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2971 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2973 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2974 fi;;
2975 esac
2976 # Pass precious variables to config.status.
2977 if test "$ac_new_set" = set; then
2978 case $ac_new_val in
2979 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2980 *) ac_arg=$ac_var=$ac_new_val ;;
2981 esac
2982 case " $ac_configure_args " in
2983 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2984 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2985 esac
2986 fi
2987 done
2988 if $ac_cache_corrupted; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2992 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2993 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2994 fi
2995 ## -------------------- ##
2996 ## Main body of script. ##
2997 ## -------------------- ##
2998
2999 ac_ext=c
3000 ac_cpp='$CPP $CPPFLAGS'
3001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004
3005
3006
3007
3008
3009
3010 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3011
3012
3013 gcc_version=`cat $srcdir/BASE-VER`
3014
3015 # Determine the host, build, and target systems
3016 ac_aux_dir=
3017 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3018 for ac_t in install-sh install.sh shtool; do
3019 if test -f "$ac_dir/$ac_t"; then
3020 ac_aux_dir=$ac_dir
3021 ac_install_sh="$ac_aux_dir/$ac_t -c"
3022 break 2
3023 fi
3024 done
3025 done
3026 if test -z "$ac_aux_dir"; then
3027 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3028 fi
3029
3030 # These three variables are undocumented and unsupported,
3031 # and are intended to be withdrawn in a future Autoconf release.
3032 # They can cause serious problems if a builder's source tree is in a directory
3033 # whose full name contains unusual characters.
3034 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3035 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3036 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3037
3038
3039 # Make sure we can run config.sub.
3040 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3041 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3042
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3044 $as_echo_n "checking build system type... " >&6; }
3045 if test "${ac_cv_build+set}" = set; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 ac_build_alias=$build_alias
3049 test "x$ac_build_alias" = x &&
3050 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3051 test "x$ac_build_alias" = x &&
3052 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3053 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3054 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3055
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3058 $as_echo "$ac_cv_build" >&6; }
3059 case $ac_cv_build in
3060 *-*-*) ;;
3061 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3062 esac
3063 build=$ac_cv_build
3064 ac_save_IFS=$IFS; IFS='-'
3065 set x $ac_cv_build
3066 shift
3067 build_cpu=$1
3068 build_vendor=$2
3069 shift; shift
3070 # Remember, the first character of IFS is used to create $*,
3071 # except with old shells:
3072 build_os=$*
3073 IFS=$ac_save_IFS
3074 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3075
3076
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3078 $as_echo_n "checking host system type... " >&6; }
3079 if test "${ac_cv_host+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test "x$host_alias" = x; then
3083 ac_cv_host=$ac_cv_build
3084 else
3085 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3086 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3087 fi
3088
3089 fi
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3091 $as_echo "$ac_cv_host" >&6; }
3092 case $ac_cv_host in
3093 *-*-*) ;;
3094 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3095 esac
3096 host=$ac_cv_host
3097 ac_save_IFS=$IFS; IFS='-'
3098 set x $ac_cv_host
3099 shift
3100 host_cpu=$1
3101 host_vendor=$2
3102 shift; shift
3103 # Remember, the first character of IFS is used to create $*,
3104 # except with old shells:
3105 host_os=$*
3106 IFS=$ac_save_IFS
3107 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3108
3109
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3111 $as_echo_n "checking target system type... " >&6; }
3112 if test "${ac_cv_target+set}" = set; then :
3113 $as_echo_n "(cached) " >&6
3114 else
3115 if test "x$target_alias" = x; then
3116 ac_cv_target=$ac_cv_host
3117 else
3118 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3119 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3120 fi
3121
3122 fi
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3124 $as_echo "$ac_cv_target" >&6; }
3125 case $ac_cv_target in
3126 *-*-*) ;;
3127 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3128 esac
3129 target=$ac_cv_target
3130 ac_save_IFS=$IFS; IFS='-'
3131 set x $ac_cv_target
3132 shift
3133 target_cpu=$1
3134 target_vendor=$2
3135 shift; shift
3136 # Remember, the first character of IFS is used to create $*,
3137 # except with old shells:
3138 target_os=$*
3139 IFS=$ac_save_IFS
3140 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3141
3142
3143 # The aliases save the names the user supplied, while $host etc.
3144 # will get canonicalized.
3145 test -n "$target_alias" &&
3146 test "$program_prefix$program_suffix$program_transform_name" = \
3147 NONENONEs,x,x, &&
3148 program_prefix=${target_alias}-
3149
3150 # Determine the noncanonical target name, for directory use.
3151 case ${build_alias} in
3152 "") build_noncanonical=${build} ;;
3153 *) build_noncanonical=${build_alias} ;;
3154 esac
3155
3156 case ${host_alias} in
3157 "") host_noncanonical=${build_noncanonical} ;;
3158 *) host_noncanonical=${host_alias} ;;
3159 esac
3160
3161 case ${target_alias} in
3162 "") target_noncanonical=${host_noncanonical} ;;
3163 *) target_noncanonical=${target_alias} ;;
3164 esac
3165
3166
3167
3168
3169 # Determine the target- and build-specific subdirectories
3170
3171 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3172 # have matching libraries, they should use host libraries: Makefile.tpl
3173 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3174 # However, they still use the build modules, because the corresponding
3175 # host modules (e.g. bison) are only built for the host when bootstrap
3176 # finishes. So:
3177 # - build_subdir is where we find build modules, and never changes.
3178 # - build_libsubdir is where we find build libraries, and can be overridden.
3179
3180 # Prefix 'build-' so this never conflicts with target_subdir.
3181 build_subdir="build-${build_noncanonical}"
3182
3183 # Check whether --with-build-libsubdir was given.
3184 if test "${with_build_libsubdir+set}" = set; then :
3185 withval=$with_build_libsubdir; build_libsubdir="$withval"
3186 else
3187 build_libsubdir="$build_subdir"
3188 fi
3189
3190 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3191 if ( test $srcdir = . && test -d gcc ) \
3192 || test -d $srcdir/../host-${host_noncanonical}; then
3193 host_subdir="host-${host_noncanonical}"
3194 else
3195 host_subdir=.
3196 fi
3197 # No prefix.
3198 target_subdir=${target_noncanonical}
3199
3200
3201 # Set program_transform_name
3202 test "$program_prefix" != NONE &&
3203 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3204 # Use a double $ so make ignores it.
3205 test "$program_suffix" != NONE &&
3206 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3207 # Double any \ or $.
3208 # By default was `s,x,x', remove it if useless.
3209 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3210 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3211
3212
3213 # Check for bogus environment variables.
3214 # Test if LIBRARY_PATH contains the notation for the current directory
3215 # since this would lead to problems installing/building glibc.
3216 # LIBRARY_PATH contains the current directory if one of the following
3217 # is true:
3218 # - one of the terminals (":" and ";") is the first or last sign
3219 # - two terminals occur directly after each other
3220 # - the path contains an element with a dot in it
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3222 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3223 case ${LIBRARY_PATH} in
3224 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3225 library_path_setting="contains current directory"
3226 ;;
3227 *)
3228 library_path_setting="ok"
3229 ;;
3230 esac
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3232 $as_echo "$library_path_setting" >&6; }
3233 if test "$library_path_setting" != "ok"; then
3234 as_fn_error "
3235 *** LIBRARY_PATH shouldn't contain the current directory when
3236 *** building gcc. Please change the environment variable
3237 *** and run configure again." "$LINENO" 5
3238 fi
3239
3240 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3241 # since this would lead to problems installing/building glibc.
3242 # GCC_EXEC_PREFIX contains the current directory if one of the following
3243 # is true:
3244 # - one of the terminals (":" and ";") is the first or last sign
3245 # - two terminals occur directly after each other
3246 # - the path contains an element with a dot in it
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3248 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3249 case ${GCC_EXEC_PREFIX} in
3250 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3251 gcc_exec_prefix_setting="contains current directory"
3252 ;;
3253 *)
3254 gcc_exec_prefix_setting="ok"
3255 ;;
3256 esac
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3258 $as_echo "$gcc_exec_prefix_setting" >&6; }
3259 if test "$gcc_exec_prefix_setting" != "ok"; then
3260 as_fn_error "
3261 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3262 *** building gcc. Please change the environment variable
3263 *** and run configure again." "$LINENO" 5
3264 fi
3265
3266 # -----------
3267 # Directories
3268 # -----------
3269
3270 # Specify the local prefix
3271 local_prefix=
3272
3273 # Check whether --with-local-prefix was given.
3274 if test "${with_local_prefix+set}" = set; then :
3275 withval=$with_local_prefix; case "${withval}" in
3276 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3277 no) ;;
3278 *) local_prefix=$with_local_prefix ;;
3279 esac
3280 fi
3281
3282
3283 # Default local prefix if it is empty
3284 if test x$local_prefix = x; then
3285 local_prefix=/usr/local
3286 fi
3287
3288 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3289 # passed in by the toplevel make and thus we'd get different behavior
3290 # depending on where we built the sources.
3291 gcc_gxx_include_dir=
3292 # Specify the g++ header file directory
3293
3294 # Check whether --with-gxx-include-dir was given.
3295 if test "${with_gxx_include_dir+set}" = set; then :
3296 withval=$with_gxx_include_dir; case "${withval}" in
3297 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3298 no) ;;
3299 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3300 esac
3301 fi
3302
3303
3304 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3305 if test x${gcc_gxx_include_dir} = x; then
3306 if test x${enable_version_specific_runtime_libs} = xyes; then
3307 gcc_gxx_include_dir='${libsubdir}/include/c++'
3308 else
3309 libstdcxx_incdir='include/c++/$(version)'
3310 if test x$host != x$target; then
3311 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3312 fi
3313 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3314 fi
3315 fi
3316
3317
3318 # Check whether --with-cpp_install_dir was given.
3319 if test "${with_cpp_install_dir+set}" = set; then :
3320 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3321 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3322 elif test x$withval != xno; then
3323 cpp_install_dir=$withval
3324 fi
3325 fi
3326
3327
3328 # We would like to our source tree to be readonly. However when releases or
3329 # pre-releases are generated, the flex/bison generated files as well as the
3330 # various formats of manuals need to be included along with the rest of the
3331 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3332 # just that.
3333
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3335 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3336 # Check whether --enable-generated-files-in-srcdir was given.
3337 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3338 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3339 else
3340 generated_files_in_srcdir=no
3341 fi
3342
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3345 $as_echo "$generated_files_in_srcdir" >&6; }
3346
3347 if test "$generated_files_in_srcdir" = "yes"; then
3348 GENINSRC=''
3349 else
3350 GENINSRC='#'
3351 fi
3352
3353
3354 # -------------------
3355 # Find default linker
3356 # -------------------
3357
3358 # With GNU ld
3359
3360 # Check whether --with-gnu-ld was given.
3361 if test "${with_gnu_ld+set}" = set; then :
3362 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3363 else
3364 gnu_ld_flag=no
3365 fi
3366
3367
3368 # With pre-defined ld
3369
3370 # Check whether --with-ld was given.
3371 if test "${with_ld+set}" = set; then :
3372 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3373 fi
3374
3375 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3376 if test ! -x "$DEFAULT_LINKER"; then
3377 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3378 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3379 gnu_ld_flag=yes
3380 fi
3381
3382 cat >>confdefs.h <<_ACEOF
3383 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3384 _ACEOF
3385
3386 fi
3387
3388 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3389
3390 cat >>confdefs.h <<_ACEOF
3391 #define HAVE_GNU_LD $gnu_ld
3392 _ACEOF
3393
3394
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3396 $as_echo_n "checking whether a default linker was specified... " >&6; }
3397 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3398 if test x"$gnu_ld_flag" = x"no"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3400 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3403 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3404 fi
3405 else
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410 # With demangler in GNU ld
3411
3412 # Check whether --with-demangler-in-ld was given.
3413 if test "${with_demangler_in_ld+set}" = set; then :
3414 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3415 else
3416 demangler_in_ld=no
3417 fi
3418
3419
3420 # ----------------------
3421 # Find default assembler
3422 # ----------------------
3423
3424 # With GNU as
3425
3426 # Check whether --with-gnu-as was given.
3427 if test "${with_gnu_as+set}" = set; then :
3428 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3429 else
3430 gas_flag=no
3431 fi
3432
3433
3434
3435 # Check whether --with-as was given.
3436 if test "${with_as+set}" = set; then :
3437 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3438 fi
3439
3440 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3441 if test ! -x "$DEFAULT_ASSEMBLER"; then
3442 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3443 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3444 gas_flag=yes
3445 fi
3446
3447 cat >>confdefs.h <<_ACEOF
3448 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3449 _ACEOF
3450
3451 fi
3452
3453 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3454
3455 cat >>confdefs.h <<_ACEOF
3456 #define HAVE_GNU_AS $gnu_as
3457 _ACEOF
3458
3459
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3461 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3462 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3463 if test x"$gas_flag" = x"no"; then
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3465 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3466 else
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3468 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3469 fi
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475 # ---------------
3476 # Find C compiler
3477 # ---------------
3478
3479 # If a non-executable a.out is present (e.g. created by GNU as above even if
3480 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3481 # file, even when creating an executable, so an execution test fails.
3482 # Remove possible default executable files to avoid this.
3483 #
3484 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3485 # Autoconf includes it.
3486 rm -f a.out a.exe b.out
3487
3488 # Find the native compiler
3489 ac_ext=c
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 $as_echo "$CC" >&6; }
3526 else
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$ac_cv_prog_CC"; then
3534 ac_ct_CC=$CC
3535 # Extract the first word of "gcc", so it can be a program name with args.
3536 set dummy gcc; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 test -z "$as_dir" && as_dir=.
3550 for ac_exec_ext in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC="gcc"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554 break 2
3555 fi
3556 done
3557 done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571 if test "x$ac_ct_CC" = x; then
3572 CC=""
3573 else
3574 case $cross_compiling:$ac_tool_warned in
3575 yes:)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3578 ac_tool_warned=yes ;;
3579 esac
3580 CC=$ac_ct_CC
3581 fi
3582 else
3583 CC="$ac_cv_prog_CC"
3584 fi
3585
3586 if test -z "$CC"; then
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3589 set dummy ${ac_tool_prefix}cc; ac_word=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC="${ac_tool_prefix}cc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 break 2
3608 fi
3609 done
3610 done
3611 IFS=$as_save_IFS
3612
3613 fi
3614 fi
3615 CC=$ac_cv_prog_CC
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3619 else
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 fi
3623
3624
3625 fi
3626 fi
3627 if test -z "$CC"; then
3628 # Extract the first word of "cc", so it can be a program name with args.
3629 set dummy cc; ac_word=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -n "$CC"; then
3636 ac_cv_prog_CC="$CC" # Let the user override the test.
3637 else
3638 ac_prog_rejected=no
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3647 ac_prog_rejected=yes
3648 continue
3649 fi
3650 ac_cv_prog_CC="cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3653 fi
3654 done
3655 done
3656 IFS=$as_save_IFS
3657
3658 if test $ac_prog_rejected = yes; then
3659 # We found a bogon in the path, so make sure we never use it.
3660 set dummy $ac_cv_prog_CC
3661 shift
3662 if test $# != 0; then
3663 # We chose a different compiler from the bogus one.
3664 # However, it has the same basename, so the bogon will be chosen
3665 # first if we set CC to just the basename; use the full file name.
3666 shift
3667 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3668 fi
3669 fi
3670 fi
3671 fi
3672 CC=$ac_cv_prog_CC
3673 if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675 $as_echo "$CC" >&6; }
3676 else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3679 fi
3680
3681
3682 fi
3683 if test -z "$CC"; then
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in cl.exe
3686 do
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if test "${ac_cv_prog_CC+set}" = set; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CC"; then
3695 ac_cv_prog_CC="$CC" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708 done
3709 done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CC=$ac_cv_prog_CC
3715 if test -n "$CC"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3717 $as_echo "$CC" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723
3724 test -n "$CC" && break
3725 done
3726 fi
3727 if test -z "$CC"; then
3728 ac_ct_CC=$CC
3729 for ac_prog in cl.exe
3730 do
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$ac_ct_CC"; then
3739 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3748 ac_cv_prog_ac_ct_CC="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3759 if test -n "$ac_ct_CC"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3761 $as_echo "$ac_ct_CC" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768 test -n "$ac_ct_CC" && break
3769 done
3770
3771 if test "x$ac_ct_CC" = x; then
3772 CC=""
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780 CC=$ac_ct_CC
3781 fi
3782 fi
3783
3784 fi
3785
3786
3787 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3789 as_fn_error "no acceptable C compiler found in \$PATH
3790 See \`config.log' for more details." "$LINENO" 5; }
3791
3792 # Provide some information about the compiler.
3793 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3794 set X $ac_compile
3795 ac_compiler=$2
3796 for ac_option in --version -v -V -qversion; do
3797 { { ac_try="$ac_compiler $ac_option >&5"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3805 ac_status=$?
3806 if test -s conftest.err; then
3807 sed '10a\
3808 ... rest of stderr output deleted ...
3809 10q' conftest.err >conftest.er1
3810 cat conftest.er1 >&5
3811 rm -f conftest.er1 conftest.err
3812 fi
3813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814 test $ac_status = 0; }
3815 done
3816
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819
3820 int
3821 main ()
3822 {
3823
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 ac_clean_files_save=$ac_clean_files
3829 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3830 # Try to create an executable without -o first, disregard a.out.
3831 # It will help us diagnose broken compilers, and finding out an intuition
3832 # of exeext.
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3834 $as_echo_n "checking for C compiler default output file name... " >&6; }
3835 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836
3837 # The possible output files:
3838 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839
3840 ac_rmfiles=
3841 for ac_file in $ac_files
3842 do
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3846 esac
3847 done
3848 rm -f $ac_rmfiles
3849
3850 if { { ac_try="$ac_link_default"
3851 case "(($ac_try" in
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3854 esac
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link_default") 2>&5
3858 ac_status=$?
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3862 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3863 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3864 # so that the user can short-circuit this test for compilers unknown to
3865 # Autoconf.
3866 for ac_file in $ac_files ''
3867 do
3868 test -f "$ac_file" || continue
3869 case $ac_file in
3870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871 ;;
3872 [ab].out )
3873 # We found the default executable, but exeext='' is most
3874 # certainly right.
3875 break;;
3876 *.* )
3877 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3878 then :; else
3879 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 fi
3881 # We set ac_cv_exeext here because the later test for it is not
3882 # safe: cross compilers may not add the suffix if given an `-o'
3883 # argument, so we may need to know it at that point already.
3884 # Even if this section looks crufty: it has the advantage of
3885 # actually working.
3886 break;;
3887 * )
3888 break;;
3889 esac
3890 done
3891 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892
3893 else
3894 ac_file=''
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3897 $as_echo "$ac_file" >&6; }
3898 if test -z "$ac_file"; then :
3899 $as_echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3904 { as_fn_set_status 77
3905 as_fn_error "C compiler cannot create executables
3906 See \`config.log' for more details." "$LINENO" 5; }; }
3907 fi
3908 ac_exeext=$ac_cv_exeext
3909
3910 # Check that the compiler produces executables we can run. If not, either
3911 # the compiler is broken, or we cross compile.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 # If not cross compiling, check that we can run a simple program.
3915 if test "$cross_compiling" != yes; then
3916 if { ac_try='./$ac_file'
3917 { { case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923 (eval "$ac_try") 2>&5
3924 ac_status=$?
3925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926 test $ac_status = 0; }; }; then
3927 cross_compiling=no
3928 else
3929 if test "$cross_compiling" = maybe; then
3930 cross_compiling=yes
3931 else
3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3934 as_fn_error "cannot run C compiled programs.
3935 If you meant to cross compile, use \`--host'.
3936 See \`config.log' for more details." "$LINENO" 5; }
3937 fi
3938 fi
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3942
3943 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3944 ac_clean_files=$ac_clean_files_save
3945 # Check that the compiler produces executables we can run. If not, either
3946 # the compiler is broken, or we cross compile.
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3948 $as_echo_n "checking whether we are cross compiling... " >&6; }
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3950 $as_echo "$cross_compiling" >&6; }
3951
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3953 $as_echo_n "checking for suffix of executables... " >&6; }
3954 if { { ac_try="$ac_link"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_link") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3966 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3967 # work properly (i.e., refer to `conftest.exe'), while it won't with
3968 # `rm'.
3969 for ac_file in conftest.exe conftest conftest.*; do
3970 test -f "$ac_file" || continue
3971 case $ac_file in
3972 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3973 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3974 break;;
3975 * ) break;;
3976 esac
3977 done
3978 else
3979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3981 as_fn_error "cannot compute suffix of executables: cannot compile and link
3982 See \`config.log' for more details." "$LINENO" 5; }
3983 fi
3984 rm -f conftest$ac_cv_exeext
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3986 $as_echo "$ac_cv_exeext" >&6; }
3987
3988 rm -f conftest.$ac_ext
3989 EXEEXT=$ac_cv_exeext
3990 ac_exeext=$EXEEXT
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998
3999 int
4000 main ()
4001 {
4002
4003 ;
4004 return 0;
4005 }
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4016 ac_status=$?
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024 break;;
4025 esac
4026 done
4027 else
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4035 fi
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053 #ifndef __GNUC__
4054 choke me
4055 #endif
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_compiler_gnu=yes
4063 else
4064 ac_compiler_gnu=no
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4068
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073 GCC=yes
4074 else
4075 GCC=
4076 fi
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4086 ac_cv_prog_cc_g=no
4087 CFLAGS="-g"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090
4091 int
4092 main ()
4093 {
4094
4095 ;
4096 return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_prog_cc_g=yes
4101 else
4102 CFLAGS=""
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105
4106 int
4107 main ()
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4115
4116 else
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="-g"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121
4122 int
4123 main ()
4124 {
4125
4126 ;
4127 return 0;
4128 }
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_g=yes
4132 fi
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4146 CFLAGS="-g -O2"
4147 else
4148 CFLAGS="-g"
4149 fi
4150 else
4151 if test "$GCC" = yes; then
4152 CFLAGS="-O2"
4153 else
4154 CFLAGS=
4155 fi
4156 fi
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174 char **p;
4175 int i;
4176 {
4177 return p[i];
4178 }
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4180 {
4181 char *s;
4182 va_list v;
4183 va_start (v,p);
4184 s = g (p, va_arg (v,int));
4185 va_end (v);
4186 return s;
4187 }
4188
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4197
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4202
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4209 int
4210 main ()
4211 {
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4213 ;
4214 return 0;
4215 }
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4219 do
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4223 fi
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4229
4230 fi
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4233 x)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236 xno)
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4239 *)
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4245
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254 if test "x$CC" != xcc; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4256 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4259 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 fi
4261 set dummy $CC; ac_cc=`$as_echo "$2" |
4262 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4263 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268
4269 int
4270 main ()
4271 {
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # We do the test twice because some compilers refuse to overwrite an
4279 # existing .o file with -o, though they will create one.
4280 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4281 rm -f conftest2.*
4282 if { { case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4287 $as_echo "$ac_try_echo"; } >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; } &&
4292 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295 esac
4296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297 $as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
4299 ac_status=$?
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; };
4302 then
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4304 if test "x$CC" != xcc; then
4305 # Test first that cc exists at all.
4306 if { ac_try='cc -c conftest.$ac_ext >&5'
4307 { { case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_try") 2>&5
4314 ac_status=$?
4315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4316 test $ac_status = 0; }; }; then
4317 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4318 rm -f conftest2.*
4319 if { { case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_try") 2>&5
4326 ac_status=$?
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; } &&
4329 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4334 $as_echo "$ac_try_echo"; } >&5
4335 (eval "$ac_try") 2>&5
4336 ac_status=$?
4337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4338 test $ac_status = 0; };
4339 then
4340 # cc works too.
4341 :
4342 else
4343 # cc exists but doesn't like -o.
4344 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4345 fi
4346 fi
4347 fi
4348 else
4349 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 fi
4351 rm -f core conftest*
4352
4353 fi
4354 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360
4361 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4362
4363 fi
4364
4365 # expand $ac_aux_dir to an absolute path
4366 am_aux_dir=`cd $ac_aux_dir && pwd`
4367
4368 # FIXME: we rely on the cache variable name because
4369 # there is no other way.
4370 set dummy $CC
4371 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4372 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4373 if test "$am_t" != yes; then
4374 # Losing compiler, so override with the script.
4375 # FIXME: It is wrong to rewrite CC.
4376 # But if we don't then we get into trouble of one sort or another.
4377 # A longer-term fix would be to have automake use am__CC in this case,
4378 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4379 CC="$am_aux_dir/compile $CC"
4380 fi
4381
4382
4383 ac_ext=cpp
4384 ac_cpp='$CXXCPP $CPPFLAGS'
4385 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4386 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4388 if test -z "$CXX"; then
4389 if test -n "$CCC"; then
4390 CXX=$CCC
4391 else
4392 if test -n "$ac_tool_prefix"; then
4393 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4394 do
4395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4398 $as_echo_n "checking for $ac_word... " >&6; }
4399 if test "${ac_cv_prog_CXX+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -n "$CXX"; then
4403 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4404 else
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4415 fi
4416 done
4417 done
4418 IFS=$as_save_IFS
4419
4420 fi
4421 fi
4422 CXX=$ac_cv_prog_CXX
4423 if test -n "$CXX"; then
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4425 $as_echo "$CXX" >&6; }
4426 else
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4428 $as_echo "no" >&6; }
4429 fi
4430
4431
4432 test -n "$CXX" && break
4433 done
4434 fi
4435 if test -z "$CXX"; then
4436 ac_ct_CXX=$CXX
4437 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4438 do
4439 # Extract the first word of "$ac_prog", so it can be a program name with args.
4440 set dummy $ac_prog; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 if test -n "$ac_ct_CXX"; then
4447 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4451 do
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_ac_ct_CXX="$ac_prog"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4459 fi
4460 done
4461 done
4462 IFS=$as_save_IFS
4463
4464 fi
4465 fi
4466 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4467 if test -n "$ac_ct_CXX"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4469 $as_echo "$ac_ct_CXX" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474
4475
4476 test -n "$ac_ct_CXX" && break
4477 done
4478
4479 if test "x$ac_ct_CXX" = x; then
4480 CXX="g++"
4481 else
4482 case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488 CXX=$ac_ct_CXX
4489 fi
4490 fi
4491
4492 fi
4493 fi
4494 # Provide some information about the compiler.
4495 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4496 set X $ac_compile
4497 ac_compiler=$2
4498 for ac_option in --version -v -V -qversion; do
4499 { { ac_try="$ac_compiler $ac_option >&5"
4500 case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4507 ac_status=$?
4508 if test -s conftest.err; then
4509 sed '10a\
4510 ... rest of stderr output deleted ...
4511 10q' conftest.err >conftest.er1
4512 cat conftest.er1 >&5
4513 rm -f conftest.er1 conftest.err
4514 fi
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }
4517 done
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4520 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4521 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 int
4528 main ()
4529 {
4530 #ifndef __GNUC__
4531 choke me
4532 #endif
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 if ac_fn_cxx_try_compile "$LINENO"; then :
4539 ac_compiler_gnu=yes
4540 else
4541 ac_compiler_gnu=no
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4548 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4549 if test $ac_compiler_gnu = yes; then
4550 GXX=yes
4551 else
4552 GXX=
4553 fi
4554 ac_test_CXXFLAGS=${CXXFLAGS+set}
4555 ac_save_CXXFLAGS=$CXXFLAGS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4557 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4558 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4562 ac_cxx_werror_flag=yes
4563 ac_cv_prog_cxx_g=no
4564 CXXFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4566 /* end confdefs.h. */
4567
4568 int
4569 main ()
4570 {
4571
4572 ;
4573 return 0;
4574 }
4575 _ACEOF
4576 if ac_fn_cxx_try_compile "$LINENO"; then :
4577 ac_cv_prog_cxx_g=yes
4578 else
4579 CXXFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4582
4583 int
4584 main ()
4585 {
4586
4587 ;
4588 return 0;
4589 }
4590 _ACEOF
4591 if ac_fn_cxx_try_compile "$LINENO"; then :
4592
4593 else
4594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4595 CXXFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 if ac_fn_cxx_try_compile "$LINENO"; then :
4608 ac_cv_prog_cxx_g=yes
4609 fi
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 fi
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4618 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4619 if test "$ac_test_CXXFLAGS" = set; then
4620 CXXFLAGS=$ac_save_CXXFLAGS
4621 elif test $ac_cv_prog_cxx_g = yes; then
4622 if test "$GXX" = yes; then
4623 CXXFLAGS="-g -O2"
4624 else
4625 CXXFLAGS="-g"
4626 fi
4627 else
4628 if test "$GXX" = yes; then
4629 CXXFLAGS="-O2"
4630 else
4631 CXXFLAGS=
4632 fi
4633 fi
4634 ac_ext=c
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4639
4640
4641
4642
4643 if test -n "$ac_tool_prefix"; then
4644 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4645 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$GNATBIND"; then
4652 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi
4670 fi
4671 GNATBIND=$ac_cv_prog_GNATBIND
4672 if test -n "$GNATBIND"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4674 $as_echo "$GNATBIND" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4678 fi
4679
4680
4681 fi
4682 if test -z "$ac_cv_prog_GNATBIND"; then
4683 ac_ct_GNATBIND=$GNATBIND
4684 # Extract the first word of "gnatbind", so it can be a program name with args.
4685 set dummy gnatbind; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$ac_ct_GNATBIND"; then
4692 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4712 if test -n "$ac_ct_GNATBIND"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4714 $as_echo "$ac_ct_GNATBIND" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720 if test "x$ac_ct_GNATBIND" = x; then
4721 GNATBIND="no"
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729 GNATBIND=$ac_ct_GNATBIND
4730 fi
4731 else
4732 GNATBIND="$ac_cv_prog_GNATBIND"
4733 fi
4734
4735 if test -n "$ac_tool_prefix"; then
4736 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4737 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$GNATMAKE"; then
4744 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4756 fi
4757 done
4758 done
4759 IFS=$as_save_IFS
4760
4761 fi
4762 fi
4763 GNATMAKE=$ac_cv_prog_GNATMAKE
4764 if test -n "$GNATMAKE"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4766 $as_echo "$GNATMAKE" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4770 fi
4771
4772
4773 fi
4774 if test -z "$ac_cv_prog_GNATMAKE"; then
4775 ac_ct_GNATMAKE=$GNATMAKE
4776 # Extract the first word of "gnatmake", so it can be a program name with args.
4777 set dummy gnatmake; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$ac_ct_GNATMAKE"; then
4784 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4804 if test -n "$ac_ct_GNATMAKE"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4806 $as_echo "$ac_ct_GNATMAKE" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812 if test "x$ac_ct_GNATMAKE" = x; then
4813 GNATMAKE="no"
4814 else
4815 case $cross_compiling:$ac_tool_warned in
4816 yes:)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4819 ac_tool_warned=yes ;;
4820 esac
4821 GNATMAKE=$ac_ct_GNATMAKE
4822 fi
4823 else
4824 GNATMAKE="$ac_cv_prog_GNATMAKE"
4825 fi
4826
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4828 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4829 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 cat >conftest.adb <<EOF
4833 procedure conftest is begin null; end conftest;
4834 EOF
4835 acx_cv_cc_gcc_supports_ada=no
4836 # There is a bug in old released versions of GCC which causes the
4837 # driver to exit successfully when the appropriate language module
4838 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4839 # Therefore we must check for the error message as well as an
4840 # unsuccessful exit.
4841 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4842 # given a .adb file, but produce no object file. So we must check
4843 # if an object file was really produced to guard against this.
4844 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4845 if test x"$errors" = x && test -f conftest.$ac_objext; then
4846 acx_cv_cc_gcc_supports_ada=yes
4847 fi
4848 rm -f conftest.*
4849 fi
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4851 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4852
4853 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4854 have_gnat=yes
4855 else
4856 have_gnat=no
4857 fi
4858
4859
4860 # autoconf is lame and doesn't give us any substitution variable for this.
4861 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4862 NO_MINUS_C_MINUS_O=yes
4863 else
4864 OUTPUT_OPTION='-o $@'
4865 fi
4866
4867
4868
4869 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4870 # optimizations to be activated explicitly by the toplevel.
4871 case "$CC" in
4872 */prev-gcc/xgcc*) ;;
4873 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4874 esac
4875
4876
4877 # -------------------------
4878 # Check C compiler features
4879 # -------------------------
4880
4881
4882 ac_ext=c
4883 ac_cpp='$CPP $CPPFLAGS'
4884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4888 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4889 # On Suns, sometimes $CPP names a directory.
4890 if test -n "$CPP" && test -d "$CPP"; then
4891 CPP=
4892 fi
4893 if test -z "$CPP"; then
4894 if test "${ac_cv_prog_CPP+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 # Double quotes because CPP needs to be expanded
4898 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4899 do
4900 ac_preproc_ok=false
4901 for ac_c_preproc_warn_flag in '' yes
4902 do
4903 # Use a header file that comes with gcc, so configuring glibc
4904 # with a fresh cross-compiler works.
4905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906 # <limits.h> exists even on freestanding compilers.
4907 # On the NeXT, cc -E runs the code through the compiler's parser,
4908 # not just through cpp. "Syntax error" is here to catch this case.
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #ifdef __STDC__
4912 # include <limits.h>
4913 #else
4914 # include <assert.h>
4915 #endif
4916 Syntax error
4917 _ACEOF
4918 if ac_fn_c_try_cpp "$LINENO"; then :
4919
4920 else
4921 # Broken: fails on valid input.
4922 continue
4923 fi
4924 rm -f conftest.err conftest.$ac_ext
4925
4926 # OK, works on sane cases. Now check whether nonexistent headers
4927 # can be detected and how.
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 #include <ac_nonexistent.h>
4931 _ACEOF
4932 if ac_fn_c_try_cpp "$LINENO"; then :
4933 # Broken: success on invalid input.
4934 continue
4935 else
4936 # Passes both tests.
4937 ac_preproc_ok=:
4938 break
4939 fi
4940 rm -f conftest.err conftest.$ac_ext
4941
4942 done
4943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944 rm -f conftest.err conftest.$ac_ext
4945 if $ac_preproc_ok; then :
4946 break
4947 fi
4948
4949 done
4950 ac_cv_prog_CPP=$CPP
4951
4952 fi
4953 CPP=$ac_cv_prog_CPP
4954 else
4955 ac_cv_prog_CPP=$CPP
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4958 $as_echo "$CPP" >&6; }
4959 ac_preproc_ok=false
4960 for ac_c_preproc_warn_flag in '' yes
4961 do
4962 # Use a header file that comes with gcc, so configuring glibc
4963 # with a fresh cross-compiler works.
4964 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965 # <limits.h> exists even on freestanding compilers.
4966 # On the NeXT, cc -E runs the code through the compiler's parser,
4967 # not just through cpp. "Syntax error" is here to catch this case.
4968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4970 #ifdef __STDC__
4971 # include <limits.h>
4972 #else
4973 # include <assert.h>
4974 #endif
4975 Syntax error
4976 _ACEOF
4977 if ac_fn_c_try_cpp "$LINENO"; then :
4978
4979 else
4980 # Broken: fails on valid input.
4981 continue
4982 fi
4983 rm -f conftest.err conftest.$ac_ext
4984
4985 # OK, works on sane cases. Now check whether nonexistent headers
4986 # can be detected and how.
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 #include <ac_nonexistent.h>
4990 _ACEOF
4991 if ac_fn_c_try_cpp "$LINENO"; then :
4992 # Broken: success on invalid input.
4993 continue
4994 else
4995 # Passes both tests.
4996 ac_preproc_ok=:
4997 break
4998 fi
4999 rm -f conftest.err conftest.$ac_ext
5000
5001 done
5002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003 rm -f conftest.err conftest.$ac_ext
5004 if $ac_preproc_ok; then :
5005
5006 else
5007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5009 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5010 See \`config.log' for more details." "$LINENO" 5; }
5011 fi
5012
5013 ac_ext=c
5014 ac_cpp='$CPP $CPPFLAGS'
5015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018
5019
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5021 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5022 if test "${ac_cv_path_GREP+set}" = set; then :
5023 $as_echo_n "(cached) " >&6
5024 else
5025 if test -z "$GREP"; then
5026 ac_path_GREP_found=false
5027 # Loop through the user's path and test for each of PROGNAME-LIST
5028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5030 do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 for ac_prog in grep ggrep; do
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5036 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5037 # Check for GNU ac_path_GREP and select it if it is found.
5038 # Check for GNU $ac_path_GREP
5039 case `"$ac_path_GREP" --version 2>&1` in
5040 *GNU*)
5041 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5042 *)
5043 ac_count=0
5044 $as_echo_n 0123456789 >"conftest.in"
5045 while :
5046 do
5047 cat "conftest.in" "conftest.in" >"conftest.tmp"
5048 mv "conftest.tmp" "conftest.in"
5049 cp "conftest.in" "conftest.nl"
5050 $as_echo 'GREP' >> "conftest.nl"
5051 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5052 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5053 as_fn_arith $ac_count + 1 && ac_count=$as_val
5054 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5055 # Best one so far, save it but keep looking for a better one
5056 ac_cv_path_GREP="$ac_path_GREP"
5057 ac_path_GREP_max=$ac_count
5058 fi
5059 # 10*(2^10) chars as input seems more than enough
5060 test $ac_count -gt 10 && break
5061 done
5062 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5063 esac
5064
5065 $ac_path_GREP_found && break 3
5066 done
5067 done
5068 done
5069 IFS=$as_save_IFS
5070 if test -z "$ac_cv_path_GREP"; then
5071 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5072 fi
5073 else
5074 ac_cv_path_GREP=$GREP
5075 fi
5076
5077 fi
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5079 $as_echo "$ac_cv_path_GREP" >&6; }
5080 GREP="$ac_cv_path_GREP"
5081
5082
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5084 $as_echo_n "checking for egrep... " >&6; }
5085 if test "${ac_cv_path_EGREP+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5089 then ac_cv_path_EGREP="$GREP -E"
5090 else
5091 if test -z "$EGREP"; then
5092 ac_path_EGREP_found=false
5093 # Loop through the user's path and test for each of PROGNAME-LIST
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5096 do
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_prog in egrep; do
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5102 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5103 # Check for GNU ac_path_EGREP and select it if it is found.
5104 # Check for GNU $ac_path_EGREP
5105 case `"$ac_path_EGREP" --version 2>&1` in
5106 *GNU*)
5107 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5108 *)
5109 ac_count=0
5110 $as_echo_n 0123456789 >"conftest.in"
5111 while :
5112 do
5113 cat "conftest.in" "conftest.in" >"conftest.tmp"
5114 mv "conftest.tmp" "conftest.in"
5115 cp "conftest.in" "conftest.nl"
5116 $as_echo 'EGREP' >> "conftest.nl"
5117 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5118 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5119 as_fn_arith $ac_count + 1 && ac_count=$as_val
5120 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5121 # Best one so far, save it but keep looking for a better one
5122 ac_cv_path_EGREP="$ac_path_EGREP"
5123 ac_path_EGREP_max=$ac_count
5124 fi
5125 # 10*(2^10) chars as input seems more than enough
5126 test $ac_count -gt 10 && break
5127 done
5128 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5129 esac
5130
5131 $ac_path_EGREP_found && break 3
5132 done
5133 done
5134 done
5135 IFS=$as_save_IFS
5136 if test -z "$ac_cv_path_EGREP"; then
5137 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5138 fi
5139 else
5140 ac_cv_path_EGREP=$EGREP
5141 fi
5142
5143 fi
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5146 $as_echo "$ac_cv_path_EGREP" >&6; }
5147 EGREP="$ac_cv_path_EGREP"
5148
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5151 $as_echo_n "checking for ANSI C header files... " >&6; }
5152 if test "${ac_cv_header_stdc+set}" = set; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #include <stdlib.h>
5158 #include <stdarg.h>
5159 #include <string.h>
5160 #include <float.h>
5161
5162 int
5163 main ()
5164 {
5165
5166 ;
5167 return 0;
5168 }
5169 _ACEOF
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 ac_cv_header_stdc=yes
5172 else
5173 ac_cv_header_stdc=no
5174 fi
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5176
5177 if test $ac_cv_header_stdc = yes; then
5178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #include <string.h>
5182
5183 _ACEOF
5184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5185 $EGREP "memchr" >/dev/null 2>&1; then :
5186
5187 else
5188 ac_cv_header_stdc=no
5189 fi
5190 rm -f conftest*
5191
5192 fi
5193
5194 if test $ac_cv_header_stdc = yes; then
5195 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198 #include <stdlib.h>
5199
5200 _ACEOF
5201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5202 $EGREP "free" >/dev/null 2>&1; then :
5203
5204 else
5205 ac_cv_header_stdc=no
5206 fi
5207 rm -f conftest*
5208
5209 fi
5210
5211 if test $ac_cv_header_stdc = yes; then
5212 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5213 if test "$cross_compiling" = yes; then :
5214 :
5215 else
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5218 #include <ctype.h>
5219 #include <stdlib.h>
5220 #if ((' ' & 0x0FF) == 0x020)
5221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5223 #else
5224 # define ISLOWER(c) \
5225 (('a' <= (c) && (c) <= 'i') \
5226 || ('j' <= (c) && (c) <= 'r') \
5227 || ('s' <= (c) && (c) <= 'z'))
5228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5229 #endif
5230
5231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5232 int
5233 main ()
5234 {
5235 int i;
5236 for (i = 0; i < 256; i++)
5237 if (XOR (islower (i), ISLOWER (i))
5238 || toupper (i) != TOUPPER (i))
5239 return 2;
5240 return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_c_try_run "$LINENO"; then :
5244
5245 else
5246 ac_cv_header_stdc=no
5247 fi
5248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5249 conftest.$ac_objext conftest.beam conftest.$ac_ext
5250 fi
5251
5252 fi
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5255 $as_echo "$ac_cv_header_stdc" >&6; }
5256 if test $ac_cv_header_stdc = yes; then
5257
5258 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5259
5260 fi
5261
5262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5263 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5264 inttypes.h stdint.h unistd.h
5265 do :
5266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5268 "
5269 eval as_val=\$$as_ac_Header
5270 if test "x$as_val" = x""yes; then :
5271 cat >>confdefs.h <<_ACEOF
5272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5273 _ACEOF
5274
5275 fi
5276
5277 done
5278
5279
5280
5281 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5282 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5283 MINIX=yes
5284 else
5285 MINIX=
5286 fi
5287
5288
5289 if test "$MINIX" = yes; then
5290
5291 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5292
5293
5294 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5295
5296
5297 $as_echo "#define _MINIX 1" >>confdefs.h
5298
5299 fi
5300
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5303 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5304 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309
5310 # define __EXTENSIONS__ 1
5311 $ac_includes_default
5312 int
5313 main ()
5314 {
5315
5316 ;
5317 return 0;
5318 }
5319 _ACEOF
5320 if ac_fn_c_try_compile "$LINENO"; then :
5321 ac_cv_safe_to_define___extensions__=yes
5322 else
5323 ac_cv_safe_to_define___extensions__=no
5324 fi
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 fi
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5328 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5329 test $ac_cv_safe_to_define___extensions__ = yes &&
5330 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5331
5332 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5333
5334 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5335
5336 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5337
5338 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5339
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5347 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5348 # On Suns, sometimes $CPP names a directory.
5349 if test -n "$CPP" && test -d "$CPP"; then
5350 CPP=
5351 fi
5352 if test -z "$CPP"; then
5353 if test "${ac_cv_prog_CPP+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5356 # Double quotes because CPP needs to be expanded
5357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5358 do
5359 ac_preproc_ok=false
5360 for ac_c_preproc_warn_flag in '' yes
5361 do
5362 # Use a header file that comes with gcc, so configuring glibc
5363 # with a fresh cross-compiler works.
5364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365 # <limits.h> exists even on freestanding compilers.
5366 # On the NeXT, cc -E runs the code through the compiler's parser,
5367 # not just through cpp. "Syntax error" is here to catch this case.
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5370 #ifdef __STDC__
5371 # include <limits.h>
5372 #else
5373 # include <assert.h>
5374 #endif
5375 Syntax error
5376 _ACEOF
5377 if ac_fn_c_try_cpp "$LINENO"; then :
5378
5379 else
5380 # Broken: fails on valid input.
5381 continue
5382 fi
5383 rm -f conftest.err conftest.$ac_ext
5384
5385 # OK, works on sane cases. Now check whether nonexistent headers
5386 # can be detected and how.
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 #include <ac_nonexistent.h>
5390 _ACEOF
5391 if ac_fn_c_try_cpp "$LINENO"; then :
5392 # Broken: success on invalid input.
5393 continue
5394 else
5395 # Passes both tests.
5396 ac_preproc_ok=:
5397 break
5398 fi
5399 rm -f conftest.err conftest.$ac_ext
5400
5401 done
5402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5403 rm -f conftest.err conftest.$ac_ext
5404 if $ac_preproc_ok; then :
5405 break
5406 fi
5407
5408 done
5409 ac_cv_prog_CPP=$CPP
5410
5411 fi
5412 CPP=$ac_cv_prog_CPP
5413 else
5414 ac_cv_prog_CPP=$CPP
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5417 $as_echo "$CPP" >&6; }
5418 ac_preproc_ok=false
5419 for ac_c_preproc_warn_flag in '' yes
5420 do
5421 # Use a header file that comes with gcc, so configuring glibc
5422 # with a fresh cross-compiler works.
5423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5424 # <limits.h> exists even on freestanding compilers.
5425 # On the NeXT, cc -E runs the code through the compiler's parser,
5426 # not just through cpp. "Syntax error" is here to catch this case.
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 #ifdef __STDC__
5430 # include <limits.h>
5431 #else
5432 # include <assert.h>
5433 #endif
5434 Syntax error
5435 _ACEOF
5436 if ac_fn_c_try_cpp "$LINENO"; then :
5437
5438 else
5439 # Broken: fails on valid input.
5440 continue
5441 fi
5442 rm -f conftest.err conftest.$ac_ext
5443
5444 # OK, works on sane cases. Now check whether nonexistent headers
5445 # can be detected and how.
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5448 #include <ac_nonexistent.h>
5449 _ACEOF
5450 if ac_fn_c_try_cpp "$LINENO"; then :
5451 # Broken: success on invalid input.
5452 continue
5453 else
5454 # Passes both tests.
5455 ac_preproc_ok=:
5456 break
5457 fi
5458 rm -f conftest.err conftest.$ac_ext
5459
5460 done
5461 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5462 rm -f conftest.err conftest.$ac_ext
5463 if $ac_preproc_ok; then :
5464
5465 else
5466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5468 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5469 See \`config.log' for more details." "$LINENO" 5; }
5470 fi
5471
5472 ac_ext=c
5473 ac_cpp='$CPP $CPPFLAGS'
5474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5479 $as_echo_n "checking for inline... " >&6; }
5480 if test "${ac_cv_c_inline+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 ac_cv_c_inline=no
5484 for ac_kw in inline __inline__ __inline; do
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487 #ifndef __cplusplus
5488 typedef int foo_t;
5489 static $ac_kw foo_t static_foo () {return 0; }
5490 $ac_kw foo_t foo () {return 0; }
5491 #endif
5492
5493 _ACEOF
5494 if ac_fn_c_try_compile "$LINENO"; then :
5495 ac_cv_c_inline=$ac_kw
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 test "$ac_cv_c_inline" != no && break
5499 done
5500
5501 fi
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5503 $as_echo "$ac_cv_c_inline" >&6; }
5504
5505 case $ac_cv_c_inline in
5506 inline | yes) ;;
5507 *)
5508 case $ac_cv_c_inline in
5509 no) ac_val=;;
5510 *) ac_val=$ac_cv_c_inline;;
5511 esac
5512 cat >>confdefs.h <<_ACEOF
5513 #ifndef __cplusplus
5514 #define inline $ac_val
5515 #endif
5516 _ACEOF
5517 ;;
5518 esac
5519
5520
5521 # Check whether --enable-largefile was given.
5522 if test "${enable_largefile+set}" = set; then :
5523 enableval=$enable_largefile;
5524 fi
5525
5526 if test "$enable_largefile" != no; then
5527
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5529 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5530 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 ac_cv_sys_largefile_CC=no
5534 if test "$GCC" != yes; then
5535 ac_save_CC=$CC
5536 while :; do
5537 # IRIX 6.2 and later do not support large files by default,
5538 # so use the C compiler's -n32 option if that helps.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <sys/types.h>
5542 /* Check that off_t can represent 2**63 - 1 correctly.
5543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5544 since some C++ compilers masquerading as C compilers
5545 incorrectly reject 9223372036854775807. */
5546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5548 && LARGE_OFF_T % 2147483647 == 1)
5549 ? 1 : -1];
5550 int
5551 main ()
5552 {
5553
5554 ;
5555 return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 break
5560 fi
5561 rm -f core conftest.err conftest.$ac_objext
5562 CC="$CC -n32"
5563 if ac_fn_c_try_compile "$LINENO"; then :
5564 ac_cv_sys_largefile_CC=' -n32'; break
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext
5567 break
5568 done
5569 CC=$ac_save_CC
5570 rm -f conftest.$ac_ext
5571 fi
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5574 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5575 if test "$ac_cv_sys_largefile_CC" != no; then
5576 CC=$CC$ac_cv_sys_largefile_CC
5577 fi
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5580 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5581 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 while :; do
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 #include <sys/types.h>
5588 /* Check that off_t can represent 2**63 - 1 correctly.
5589 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5590 since some C++ compilers masquerading as C compilers
5591 incorrectly reject 9223372036854775807. */
5592 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5593 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5594 && LARGE_OFF_T % 2147483647 == 1)
5595 ? 1 : -1];
5596 int
5597 main ()
5598 {
5599
5600 ;
5601 return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"; then :
5605 ac_cv_sys_file_offset_bits=no; break
5606 fi
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5609 /* end confdefs.h. */
5610 #define _FILE_OFFSET_BITS 64
5611 #include <sys/types.h>
5612 /* Check that off_t can represent 2**63 - 1 correctly.
5613 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5614 since some C++ compilers masquerading as C compilers
5615 incorrectly reject 9223372036854775807. */
5616 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5617 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5618 && LARGE_OFF_T % 2147483647 == 1)
5619 ? 1 : -1];
5620 int
5621 main ()
5622 {
5623
5624 ;
5625 return 0;
5626 }
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 ac_cv_sys_file_offset_bits=64; break
5630 fi
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 ac_cv_sys_file_offset_bits=unknown
5633 break
5634 done
5635 fi
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5637 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5638 case $ac_cv_sys_file_offset_bits in #(
5639 no | unknown) ;;
5640 *)
5641 cat >>confdefs.h <<_ACEOF
5642 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5643 _ACEOF
5644 ;;
5645 esac
5646 rm -rf conftest*
5647 if test $ac_cv_sys_file_offset_bits = unknown; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5649 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5650 if test "${ac_cv_sys_large_files+set}" = set; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 while :; do
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <sys/types.h>
5657 /* Check that off_t can represent 2**63 - 1 correctly.
5658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659 since some C++ compilers masquerading as C compilers
5660 incorrectly reject 9223372036854775807. */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663 && LARGE_OFF_T % 2147483647 == 1)
5664 ? 1 : -1];
5665 int
5666 main ()
5667 {
5668
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 if ac_fn_c_try_compile "$LINENO"; then :
5674 ac_cv_sys_large_files=no; break
5675 fi
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5678 /* end confdefs.h. */
5679 #define _LARGE_FILES 1
5680 #include <sys/types.h>
5681 /* Check that off_t can represent 2**63 - 1 correctly.
5682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5683 since some C++ compilers masquerading as C compilers
5684 incorrectly reject 9223372036854775807. */
5685 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5686 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5687 && LARGE_OFF_T % 2147483647 == 1)
5688 ? 1 : -1];
5689 int
5690 main ()
5691 {
5692
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_compile "$LINENO"; then :
5698 ac_cv_sys_large_files=1; break
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701 ac_cv_sys_large_files=unknown
5702 break
5703 done
5704 fi
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5706 $as_echo "$ac_cv_sys_large_files" >&6; }
5707 case $ac_cv_sys_large_files in #(
5708 no | unknown) ;;
5709 *)
5710 cat >>confdefs.h <<_ACEOF
5711 #define _LARGE_FILES $ac_cv_sys_large_files
5712 _ACEOF
5713 ;;
5714 esac
5715 rm -rf conftest*
5716 fi
5717 fi
5718
5719
5720 # sizeof(char) is 1 by definition.
5721 # The cast to long int works around a bug in the HP C Compiler
5722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5724 # This bug is HP SR number 8606223364.
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5726 $as_echo_n "checking size of void *... " >&6; }
5727 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5729 else
5730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5731
5732 else
5733 if test "$ac_cv_type_void_p" = yes; then
5734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5736 { as_fn_set_status 77
5737 as_fn_error "cannot compute sizeof (void *)
5738 See \`config.log' for more details." "$LINENO" 5; }; }
5739 else
5740 ac_cv_sizeof_void_p=0
5741 fi
5742 fi
5743
5744 fi
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5746 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5747
5748
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5752 _ACEOF
5753
5754
5755 # The cast to long int works around a bug in the HP C Compiler
5756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5758 # This bug is HP SR number 8606223364.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5760 $as_echo_n "checking size of short... " >&6; }
5761 if test "${ac_cv_sizeof_short+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5765
5766 else
5767 if test "$ac_cv_type_short" = yes; then
5768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5770 { as_fn_set_status 77
5771 as_fn_error "cannot compute sizeof (short)
5772 See \`config.log' for more details." "$LINENO" 5; }; }
5773 else
5774 ac_cv_sizeof_short=0
5775 fi
5776 fi
5777
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5780 $as_echo "$ac_cv_sizeof_short" >&6; }
5781
5782
5783
5784 cat >>confdefs.h <<_ACEOF
5785 #define SIZEOF_SHORT $ac_cv_sizeof_short
5786 _ACEOF
5787
5788
5789 # The cast to long int works around a bug in the HP C Compiler
5790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5792 # This bug is HP SR number 8606223364.
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5794 $as_echo_n "checking size of int... " >&6; }
5795 if test "${ac_cv_sizeof_int+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5799
5800 else
5801 if test "$ac_cv_type_int" = yes; then
5802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5804 { as_fn_set_status 77
5805 as_fn_error "cannot compute sizeof (int)
5806 See \`config.log' for more details." "$LINENO" 5; }; }
5807 else
5808 ac_cv_sizeof_int=0
5809 fi
5810 fi
5811
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5814 $as_echo "$ac_cv_sizeof_int" >&6; }
5815
5816
5817
5818 cat >>confdefs.h <<_ACEOF
5819 #define SIZEOF_INT $ac_cv_sizeof_int
5820 _ACEOF
5821
5822
5823 # The cast to long int works around a bug in the HP C Compiler
5824 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5825 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5826 # This bug is HP SR number 8606223364.
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5828 $as_echo_n "checking size of long... " >&6; }
5829 if test "${ac_cv_sizeof_long+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5833
5834 else
5835 if test "$ac_cv_type_long" = yes; then
5836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5838 { as_fn_set_status 77
5839 as_fn_error "cannot compute sizeof (long)
5840 See \`config.log' for more details." "$LINENO" 5; }; }
5841 else
5842 ac_cv_sizeof_long=0
5843 fi
5844 fi
5845
5846 fi
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5848 $as_echo "$ac_cv_sizeof_long" >&6; }
5849
5850
5851
5852 cat >>confdefs.h <<_ACEOF
5853 #define SIZEOF_LONG $ac_cv_sizeof_long
5854 _ACEOF
5855
5856
5857 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5858 if test "x$ac_cv_type_long_long" = x""yes; then :
5859
5860 cat >>confdefs.h <<_ACEOF
5861 #define HAVE_LONG_LONG 1
5862 _ACEOF
5863
5864 # The cast to long int works around a bug in the HP C Compiler
5865 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5866 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5867 # This bug is HP SR number 8606223364.
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5869 $as_echo_n "checking size of long long... " >&6; }
5870 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5874
5875 else
5876 if test "$ac_cv_type_long_long" = yes; then
5877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 { as_fn_set_status 77
5880 as_fn_error "cannot compute sizeof (long long)
5881 See \`config.log' for more details." "$LINENO" 5; }; }
5882 else
5883 ac_cv_sizeof_long_long=0
5884 fi
5885 fi
5886
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5889 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5890
5891
5892
5893 cat >>confdefs.h <<_ACEOF
5894 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5895 _ACEOF
5896
5897
5898 fi
5899
5900 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5901 if test "x$ac_cv_type___int64" = x""yes; then :
5902
5903 cat >>confdefs.h <<_ACEOF
5904 #define HAVE___INT64 1
5905 _ACEOF
5906
5907 # The cast to long int works around a bug in the HP C Compiler
5908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5909 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5910 # This bug is HP SR number 8606223364.
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5912 $as_echo_n "checking size of __int64... " >&6; }
5913 if test "${ac_cv_sizeof___int64+set}" = set; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5917
5918 else
5919 if test "$ac_cv_type___int64" = yes; then
5920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5922 { as_fn_set_status 77
5923 as_fn_error "cannot compute sizeof (__int64)
5924 See \`config.log' for more details." "$LINENO" 5; }; }
5925 else
5926 ac_cv_sizeof___int64=0
5927 fi
5928 fi
5929
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5932 $as_echo "$ac_cv_sizeof___int64" >&6; }
5933
5934
5935
5936 cat >>confdefs.h <<_ACEOF
5937 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5938 _ACEOF
5939
5940
5941 fi
5942
5943 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5944 case $ac_cv_c_int8_t in #(
5945 no|yes) ;; #(
5946 *)
5947
5948 cat >>confdefs.h <<_ACEOF
5949 #define int8_t $ac_cv_c_int8_t
5950 _ACEOF
5951 ;;
5952 esac
5953
5954 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5955 case $ac_cv_c_int16_t in #(
5956 no|yes) ;; #(
5957 *)
5958
5959 cat >>confdefs.h <<_ACEOF
5960 #define int16_t $ac_cv_c_int16_t
5961 _ACEOF
5962 ;;
5963 esac
5964
5965 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5966 case $ac_cv_c_int32_t in #(
5967 no|yes) ;; #(
5968 *)
5969
5970 cat >>confdefs.h <<_ACEOF
5971 #define int32_t $ac_cv_c_int32_t
5972 _ACEOF
5973 ;;
5974 esac
5975
5976 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5977 case $ac_cv_c_int64_t in #(
5978 no|yes) ;; #(
5979 *)
5980
5981 cat >>confdefs.h <<_ACEOF
5982 #define int64_t $ac_cv_c_int64_t
5983 _ACEOF
5984 ;;
5985 esac
5986
5987
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5989 $as_echo_n "checking for long long int... " >&6; }
5990 if test "${ac_cv_type_long_long_int+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995
5996 /* For now, do not test the preprocessor; as of 2007 there are too many
5997 implementations with broken preprocessors. Perhaps this can
5998 be revisited in 2012. In the meantime, code should not expect
5999 #if to work with literals wider than 32 bits. */
6000 /* Test literals. */
6001 long long int ll = 9223372036854775807ll;
6002 long long int nll = -9223372036854775807LL;
6003 unsigned long long int ull = 18446744073709551615ULL;
6004 /* Test constant expressions. */
6005 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6006 ? 1 : -1)];
6007 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6008 ? 1 : -1)];
6009 int i = 63;
6010 int
6011 main ()
6012 {
6013 /* Test availability of runtime routines for shift and division. */
6014 long long int llmax = 9223372036854775807ll;
6015 unsigned long long int ullmax = 18446744073709551615ull;
6016 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6017 | (llmax / ll) | (llmax % ll)
6018 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6019 | (ullmax / ull) | (ullmax % ull));
6020 ;
6021 return 0;
6022 }
6023
6024 _ACEOF
6025 if ac_fn_c_try_link "$LINENO"; then :
6026 if test "$cross_compiling" = yes; then :
6027 ac_cv_type_long_long_int=yes
6028 else
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <limits.h>
6032 #ifndef LLONG_MAX
6033 # define HALF \
6034 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6035 # define LLONG_MAX (HALF - 1 + HALF)
6036 #endif
6037 int
6038 main ()
6039 {
6040 long long int n = 1;
6041 int i;
6042 for (i = 0; ; i++)
6043 {
6044 long long int m = n << i;
6045 if (m >> i != n)
6046 return 1;
6047 if (LLONG_MAX / 2 < m)
6048 break;
6049 }
6050 return 0;
6051 ;
6052 return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_run "$LINENO"; then :
6056 ac_cv_type_long_long_int=yes
6057 else
6058 ac_cv_type_long_long_int=no
6059 fi
6060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6061 conftest.$ac_objext conftest.beam conftest.$ac_ext
6062 fi
6063
6064 else
6065 ac_cv_type_long_long_int=no
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6069 fi
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6071 $as_echo "$ac_cv_type_long_long_int" >&6; }
6072 if test $ac_cv_type_long_long_int = yes; then
6073
6074 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6075
6076 fi
6077
6078
6079
6080 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6081 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6082
6083 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
6084
6085 else
6086 test $ac_cv_type_long_long_int = yes \
6087 && ac_type='long long int' \
6088 || ac_type='long int'
6089
6090 cat >>confdefs.h <<_ACEOF
6091 #define intmax_t $ac_type
6092 _ACEOF
6093
6094 fi
6095
6096
6097
6098 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
6099 if test "x$ac_cv_type_intptr_t" = x""yes; then :
6100
6101 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
6102
6103 else
6104 for ac_type in 'int' 'long int' 'long long int'; do
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 $ac_includes_default
6108 int
6109 main ()
6110 {
6111 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6112 test_array [0] = 0
6113
6114 ;
6115 return 0;
6116 }
6117 _ACEOF
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119
6120 cat >>confdefs.h <<_ACEOF
6121 #define intptr_t $ac_type
6122 _ACEOF
6123
6124 ac_type=
6125 fi
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 test -z "$ac_type" && break
6128 done
6129 fi
6130
6131
6132 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6133 case $ac_cv_c_uint8_t in #(
6134 no|yes) ;; #(
6135 *)
6136
6137 $as_echo "#define _UINT8_T 1" >>confdefs.h
6138
6139
6140 cat >>confdefs.h <<_ACEOF
6141 #define uint8_t $ac_cv_c_uint8_t
6142 _ACEOF
6143 ;;
6144 esac
6145
6146 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6147 case $ac_cv_c_uint16_t in #(
6148 no|yes) ;; #(
6149 *)
6150
6151
6152 cat >>confdefs.h <<_ACEOF
6153 #define uint16_t $ac_cv_c_uint16_t
6154 _ACEOF
6155 ;;
6156 esac
6157
6158 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6159 case $ac_cv_c_uint32_t in #(
6160 no|yes) ;; #(
6161 *)
6162
6163 $as_echo "#define _UINT32_T 1" >>confdefs.h
6164
6165
6166 cat >>confdefs.h <<_ACEOF
6167 #define uint32_t $ac_cv_c_uint32_t
6168 _ACEOF
6169 ;;
6170 esac
6171
6172 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6173 case $ac_cv_c_uint64_t in #(
6174 no|yes) ;; #(
6175 *)
6176
6177 $as_echo "#define _UINT64_T 1" >>confdefs.h
6178
6179
6180 cat >>confdefs.h <<_ACEOF
6181 #define uint64_t $ac_cv_c_uint64_t
6182 _ACEOF
6183 ;;
6184 esac
6185
6186
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6188 $as_echo_n "checking for unsigned long long int... " >&6; }
6189 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6190 $as_echo_n "(cached) " >&6
6191 else
6192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194
6195 /* For now, do not test the preprocessor; as of 2007 there are too many
6196 implementations with broken preprocessors. Perhaps this can
6197 be revisited in 2012. In the meantime, code should not expect
6198 #if to work with literals wider than 32 bits. */
6199 /* Test literals. */
6200 long long int ll = 9223372036854775807ll;
6201 long long int nll = -9223372036854775807LL;
6202 unsigned long long int ull = 18446744073709551615ULL;
6203 /* Test constant expressions. */
6204 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6205 ? 1 : -1)];
6206 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6207 ? 1 : -1)];
6208 int i = 63;
6209 int
6210 main ()
6211 {
6212 /* Test availability of runtime routines for shift and division. */
6213 long long int llmax = 9223372036854775807ll;
6214 unsigned long long int ullmax = 18446744073709551615ull;
6215 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6216 | (llmax / ll) | (llmax % ll)
6217 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6218 | (ullmax / ull) | (ullmax % ull));
6219 ;
6220 return 0;
6221 }
6222
6223 _ACEOF
6224 if ac_fn_c_try_link "$LINENO"; then :
6225 ac_cv_type_unsigned_long_long_int=yes
6226 else
6227 ac_cv_type_unsigned_long_long_int=no
6228 fi
6229 rm -f core conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
6231 fi
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6233 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6234 if test $ac_cv_type_unsigned_long_long_int = yes; then
6235
6236 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6237
6238 fi
6239
6240
6241
6242 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6243 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6244
6245 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6246
6247 else
6248 test $ac_cv_type_unsigned_long_long_int = yes \
6249 && ac_type='unsigned long long int' \
6250 || ac_type='unsigned long int'
6251
6252 cat >>confdefs.h <<_ACEOF
6253 #define uintmax_t $ac_type
6254 _ACEOF
6255
6256 fi
6257
6258
6259
6260 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6261 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6262
6263 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6264
6265 else
6266 for ac_type in 'unsigned int' 'unsigned long int' \
6267 'unsigned long long int'; do
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
6274 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6275 test_array [0] = 0
6276
6277 ;
6278 return 0;
6279 }
6280 _ACEOF
6281 if ac_fn_c_try_compile "$LINENO"; then :
6282
6283 cat >>confdefs.h <<_ACEOF
6284 #define uintptr_t $ac_type
6285 _ACEOF
6286
6287 ac_type=
6288 fi
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 test -z "$ac_type" && break
6291 done
6292 fi
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308 # ---------------------
6309 # Warnings and checking
6310 # ---------------------
6311
6312 # Check $CC warning features (if it's GCC).
6313 # We want to use -pedantic, but we don't want warnings about
6314 # * 'long long'
6315 # * variadic macros
6316 # * overlong strings
6317 # So, we only use -pedantic if we can disable those warnings.
6318
6319 loose_warn=
6320 save_CFLAGS="$CFLAGS"
6321 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6322 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6323
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6325 $as_echo_n "checking whether $CC supports $option... " >&6; }
6326 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 CFLAGS="$option"
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332
6333 int
6334 main ()
6335 {
6336
6337 ;
6338 return 0;
6339 }
6340 _ACEOF
6341 if ac_fn_c_try_compile "$LINENO"; then :
6342 eval "$as_acx_Woption=yes"
6343 else
6344 eval "$as_acx_Woption=no"
6345 fi
6346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347
6348 fi
6349 eval ac_res=\$$as_acx_Woption
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6351 $as_echo "$ac_res" >&6; }
6352 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6353 loose_warn="$loose_warn${loose_warn:+ }$option"
6354 fi
6355 done
6356 CFLAGS="$save_CFLAGS"
6357
6358 c_loose_warn=
6359 save_CFLAGS="$CFLAGS"
6360 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6361 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6362
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6364 $as_echo_n "checking whether $CC supports $option... " >&6; }
6365 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 CFLAGS="$option"
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371
6372 int
6373 main ()
6374 {
6375
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 if ac_fn_c_try_compile "$LINENO"; then :
6381 eval "$as_acx_Woption=yes"
6382 else
6383 eval "$as_acx_Woption=no"
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386
6387 fi
6388 eval ac_res=\$$as_acx_Woption
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6390 $as_echo "$ac_res" >&6; }
6391 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6392 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6393 fi
6394 done
6395 CFLAGS="$save_CFLAGS"
6396
6397 strict_warn=
6398 save_CFLAGS="$CFLAGS"
6399 for option in -Wmissing-format-attribute; do
6400 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6403 $as_echo_n "checking whether $CC supports $option... " >&6; }
6404 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 CFLAGS="$option"
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410
6411 int
6412 main ()
6413 {
6414
6415 ;
6416 return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_compile "$LINENO"; then :
6420 eval "$as_acx_Woption=yes"
6421 else
6422 eval "$as_acx_Woption=no"
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425
6426 fi
6427 eval ac_res=\$$as_acx_Woption
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6429 $as_echo "$ac_res" >&6; }
6430 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6431 strict_warn="$strict_warn${strict_warn:+ }$option"
6432 fi
6433 done
6434 CFLAGS="$save_CFLAGS"
6435
6436 c_strict_warn=
6437 save_CFLAGS="$CFLAGS"
6438 for option in -Wold-style-definition -Wc++-compat; do
6439 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6442 $as_echo_n "checking whether $CC supports $option... " >&6; }
6443 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6444 $as_echo_n "(cached) " >&6
6445 else
6446 CFLAGS="$option"
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449
6450 int
6451 main ()
6452 {
6453
6454 ;
6455 return 0;
6456 }
6457 _ACEOF
6458 if ac_fn_c_try_compile "$LINENO"; then :
6459 eval "$as_acx_Woption=yes"
6460 else
6461 eval "$as_acx_Woption=no"
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464
6465 fi
6466 eval ac_res=\$$as_acx_Woption
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6468 $as_echo "$ac_res" >&6; }
6469 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6470 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6471 fi
6472 done
6473 CFLAGS="$save_CFLAGS"
6474
6475 if test "$GCC" = yes; then :
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6477 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6478 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 save_CFLAGS="$CFLAGS"
6482 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6485
6486 int
6487 main ()
6488 {
6489
6490 ;
6491 return 0;
6492 }
6493 _ACEOF
6494 if ac_fn_c_try_compile "$LINENO"; then :
6495 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6496 else
6497 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6498 fi
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6500 CFLAGS="$save_CFLAGS"
6501 fi
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6503 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6504 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6505 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6506 fi
6507
6508 fi
6509
6510 # Check whether --enable-werror-always was given.
6511 if test "${enable_werror_always+set}" = set; then :
6512 enableval=$enable_werror_always;
6513 else
6514 enable_werror_always=no
6515 fi
6516
6517 if test $enable_werror_always = yes; then :
6518 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6519 fi
6520
6521
6522
6523 # The above macros do nothing if the compiler is not GCC. However, the
6524 # Makefile has more goo to add other flags, so these variables are used
6525 # to enable warnings only for GCC.
6526 warn_cflags=
6527 warn_cxxflags=
6528 if test "x$GCC" = "xyes"; then
6529 warn_cflags='$(GCC_WARN_CFLAGS)'
6530 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6531 fi
6532
6533
6534
6535 # Enable expensive internal checks
6536 is_release=
6537 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6538 is_release=yes
6539 fi
6540
6541 # Check whether --enable-checking was given.
6542 if test "${enable_checking+set}" = set; then :
6543 enableval=$enable_checking; ac_checking_flags="${enableval}"
6544 else
6545
6546 # Determine the default checks.
6547 if test x$is_release = x ; then
6548 ac_checking_flags=yes
6549 else
6550 ac_checking_flags=release
6551 fi
6552 fi
6553
6554 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6555 for check in release $ac_checking_flags
6556 do
6557 case $check in
6558 # these set all the flags to specific states
6559 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6560 ac_fold_checking= ; ac_gc_checking=1 ;
6561 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6562 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6563 ac_tree_checking=1 ; ac_valgrind_checking= ;
6564 ac_types_checking=1 ;;
6565 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6566 ac_fold_checking= ; ac_gc_checking= ;
6567 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6568 ac_rtlflag_checking= ; ac_runtime_checking= ;
6569 ac_tree_checking= ; ac_valgrind_checking= ;
6570 ac_types_checking= ;;
6571 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6572 ac_fold_checking=1 ; ac_gc_checking=1 ;
6573 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6574 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6575 ac_tree_checking=1 ; ac_valgrind_checking= ;
6576 ac_types_checking=1 ;;
6577 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6578 ac_fold_checking= ; ac_gc_checking= ;
6579 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6580 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6581 ac_tree_checking= ; ac_valgrind_checking= ;
6582 ac_types_checking= ;;
6583 # these enable particular checks
6584 assert) ac_assert_checking=1 ;;
6585 df) ac_df_checking=1 ;;
6586 fold) ac_fold_checking=1 ;;
6587 gc) ac_gc_checking=1 ;;
6588 gcac) ac_gc_always_collect=1 ;;
6589 gimple) ac_gimple_checking=1 ;;
6590 misc) ac_checking=1 ;;
6591 rtl) ac_rtl_checking=1 ;;
6592 rtlflag) ac_rtlflag_checking=1 ;;
6593 runtime) ac_runtime_checking=1 ;;
6594 tree) ac_tree_checking=1 ;;
6595 types) ac_types_checking=1 ;;
6596 valgrind) ac_valgrind_checking=1 ;;
6597 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6598 esac
6599 done
6600 IFS="$ac_save_IFS"
6601
6602 nocommon_flag=""
6603 if test x$ac_checking != x ; then
6604
6605 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6606
6607 nocommon_flag=-fno-common
6608 fi
6609
6610 if test x$ac_df_checking != x ; then
6611
6612 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6613
6614 fi
6615 if test x$ac_assert_checking != x ; then
6616
6617 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6618
6619 fi
6620 if test x$ac_gimple_checking != x ; then
6621
6622 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6623
6624 fi
6625
6626 if test x$ac_runtime_checking != x ; then
6627
6628 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6629
6630 fi
6631 if test x$ac_tree_checking != x ; then
6632
6633 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6634
6635 TREEBROWSER=tree-browser.o
6636 fi
6637 if test x$ac_types_checking != x ; then
6638
6639 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6640
6641 fi
6642
6643 if test x$ac_rtl_checking != x ; then
6644
6645 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6646
6647 fi
6648 if test x$ac_rtlflag_checking != x ; then
6649
6650 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6651
6652 fi
6653 if test x$ac_gc_checking != x ; then
6654
6655 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6656
6657 fi
6658 if test x$ac_gc_always_collect != x ; then
6659
6660 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6661
6662 fi
6663 if test x$ac_fold_checking != x ; then
6664
6665 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6666
6667 fi
6668 valgrind_path_defines=
6669 valgrind_command=
6670
6671 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6672 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6673 have_valgrind_h=yes
6674 else
6675 have_valgrind_h=no
6676 fi
6677
6678
6679
6680 if test x$ac_valgrind_checking != x ; then
6681 # It is certainly possible that there's valgrind but no valgrind.h.
6682 # GCC relies on making annotations so we must have both.
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6684 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6686 /* end confdefs.h. */
6687 #include <valgrind/memcheck.h>
6688 #ifndef VALGRIND_DISCARD
6689 #error VALGRIND_DISCARD not defined
6690 #endif
6691 _ACEOF
6692 if ac_fn_c_try_cpp "$LINENO"; then :
6693 gcc_cv_header_valgrind_memcheck_h=yes
6694 else
6695 gcc_cv_header_valgrind_memcheck_h=no
6696 fi
6697 rm -f conftest.err conftest.$ac_ext
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6699 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6701 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 #include <memcheck.h>
6705 #ifndef VALGRIND_DISCARD
6706 #error VALGRIND_DISCARD not defined
6707 #endif
6708 _ACEOF
6709 if ac_fn_c_try_cpp "$LINENO"; then :
6710 gcc_cv_header_memcheck_h=yes
6711 else
6712 gcc_cv_header_memcheck_h=no
6713 fi
6714 rm -f conftest.err conftest.$ac_ext
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6716 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6717
6718 # Prepare PATH_SEPARATOR.
6719 # The user is always right.
6720 if test "${PATH_SEPARATOR+set}" != set; then
6721 echo "#! /bin/sh" >conf$$.sh
6722 echo "exit 0" >>conf$$.sh
6723 chmod +x conf$$.sh
6724 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6725 PATH_SEPARATOR=';'
6726 else
6727 PATH_SEPARATOR=:
6728 fi
6729 rm -f conf$$.sh
6730 fi
6731
6732 # Find out how to test for executable files. Don't use a zero-byte file,
6733 # as systems may use methods other than mode bits to determine executability.
6734 cat >conf$$.file <<_ASEOF
6735 #! /bin/sh
6736 exit 0
6737 _ASEOF
6738 chmod +x conf$$.file
6739 if test -x conf$$.file >/dev/null 2>&1; then
6740 ac_executable_p="test -x"
6741 else
6742 ac_executable_p="test -f"
6743 fi
6744 rm -f conf$$.file
6745
6746 # Extract the first word of "valgrind", so it can be a program name with args.
6747 set dummy valgrind; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6751 $as_echo_n "(cached) " >&6
6752 else
6753 case "$valgrind_path" in
6754 [\\/]* | ?:[\\/]*)
6755 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6756 ;;
6757 *)
6758 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6759 for ac_dir in $PATH; do
6760 IFS="$ac_save_IFS"
6761 test -z "$ac_dir" && ac_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6764 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6765 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6766 break 2
6767 fi
6768 fi
6769 done
6770 done
6771 IFS="$ac_save_IFS"
6772 ;;
6773 esac
6774 fi
6775 valgrind_path="$ac_cv_path_valgrind_path"
6776 if test -n "$valgrind_path"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6778 $as_echo "$valgrind_path" >&6; }
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6782 fi
6783
6784 if test "x$valgrind_path" = "x" \
6785 || (test $have_valgrind_h = no \
6786 && test $gcc_cv_header_memcheck_h = no \
6787 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6788 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6789 fi
6790 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6791 valgrind_command="$valgrind_path -q"
6792
6793 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6794
6795 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6796
6797 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6798
6799 fi
6800 if test $gcc_cv_header_memcheck_h = yes; then
6801
6802 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6803
6804 fi
6805 fi
6806
6807
6808
6809 # Enable code coverage collection
6810 # Check whether --enable-coverage was given.
6811 if test "${enable_coverage+set}" = set; then :
6812 enableval=$enable_coverage; case "${enableval}" in
6813 yes|noopt)
6814 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6815 ;;
6816 opt)
6817 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6818 ;;
6819 no)
6820 # a.k.a. --disable-coverage
6821 coverage_flags=""
6822 ;;
6823 *)
6824 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6825 ;;
6826 esac
6827 else
6828 coverage_flags=""
6829 fi
6830
6831
6832
6833 # Check whether --enable-gather-detailed-mem-stats was given.
6834 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6835 enableval=$enable_gather_detailed_mem_stats;
6836 else
6837 enable_gather_detailed_mem_stats=no
6838 fi
6839
6840 if test x$enable_gather_detailed_mem_stats = xyes ; then
6841
6842 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6843
6844 fi
6845
6846 # -------------------------------
6847 # Miscenalleous configure options
6848 # -------------------------------
6849
6850 # See if we are building gcc with C++.
6851 # Check whether --enable-build-with-cxx was given.
6852 if test "${enable_build_with_cxx+set}" = set; then :
6853 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6854 else
6855 ENABLE_BUILD_WITH_CXX=no
6856 fi
6857
6858
6859 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
6860
6861 $as_echo "#define ENABLE_BUILD_WITH_CXX 1" >>confdefs.h
6862
6863 fi
6864
6865 # With stabs
6866
6867 # Check whether --with-stabs was given.
6868 if test "${with_stabs+set}" = set; then :
6869 withval=$with_stabs; stabs="$with_stabs"
6870 else
6871 stabs=no
6872 fi
6873
6874
6875 # Determine whether or not multilibs are enabled.
6876 # Check whether --enable-multilib was given.
6877 if test "${enable_multilib+set}" = set; then :
6878 enableval=$enable_multilib;
6879 else
6880 enable_multilib=yes
6881 fi
6882
6883
6884
6885 # Enable __cxa_atexit for C++.
6886 # Check whether --enable-__cxa_atexit was given.
6887 if test "${enable___cxa_atexit+set}" = set; then :
6888 enableval=$enable___cxa_atexit;
6889 fi
6890
6891
6892 # Enable C extension for decimal float if target supports it.
6893
6894 # Check whether --enable-decimal-float was given.
6895 if test "${enable_decimal_float+set}" = set; then :
6896 enableval=$enable_decimal_float;
6897 case $enable_decimal_float in
6898 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
6899 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6900 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6901 esac
6902
6903 else
6904
6905 case $target in
6906 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
6907 i?86*-*-mingw* | x86_64*-*-mingw* | \
6908 i?86*-*-cygwin*)
6909 enable_decimal_float=yes
6910 ;;
6911 *)
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target, ignored" >&5
6913 $as_echo "$as_me: WARNING: decimal float is not supported for this target, ignored" >&2;}
6914 enable_decimal_float=no
6915 ;;
6916 esac
6917
6918 fi
6919
6920
6921 # x86's use BID format instead of DPD
6922 case x$enable_decimal_float in
6923 xyes)
6924 case $target in
6925 i?86*-*-* | x86_64*-*-*)
6926 enable_decimal_float=bid
6927 ;;
6928 *)
6929 enable_decimal_float=dpd
6930 ;;
6931 esac
6932 default_decimal_float=$enable_decimal_float
6933 ;;
6934 xno)
6935 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6936 # dependency on libdecnumber.
6937 default_decimal_float=dpd
6938 ;;
6939 esac
6940
6941
6942
6943
6944 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6945
6946 cat >>confdefs.h <<_ACEOF
6947 #define ENABLE_DECIMAL_FLOAT $dfp
6948 _ACEOF
6949
6950
6951 # Use default_decimal_float for dependency.
6952 enable_decimal_float=$default_decimal_float
6953
6954 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6955
6956 cat >>confdefs.h <<_ACEOF
6957 #define ENABLE_DECIMAL_BID_FORMAT $bid
6958 _ACEOF
6959
6960
6961 # Enable C extension for fixed-point arithmetic.
6962 # Check whether --enable-fixed-point was given.
6963 if test "${enable_fixed_point+set}" = set; then :
6964 enableval=$enable_fixed_point;
6965 else
6966
6967 case $target in
6968 mips*-*-*)
6969 case $host in
6970 mips*-sgi-irix*)
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX, ignored" >&5
6972 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX, ignored" >&2;}
6973 enable_fixed_point=no
6974 ;;
6975 *)
6976 enable_fixed_point=yes
6977 ;;
6978 esac
6979 ;;
6980 *)
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target, ignored" >&5
6982 $as_echo "$as_me: WARNING: fixed-point is not supported for this target, ignored" >&2;}
6983 enable_fixed_point=no
6984 ;;
6985 esac
6986
6987 fi
6988
6989
6990
6991 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6992
6993 cat >>confdefs.h <<_ACEOF
6994 #define ENABLE_FIXED_POINT $fixedpoint
6995 _ACEOF
6996
6997
6998 # Enable threads
6999 # Pass with no value to take the default
7000 # Pass with a value to specify a thread package
7001 # Check whether --enable-threads was given.
7002 if test "${enable_threads+set}" = set; then :
7003 enableval=$enable_threads;
7004 else
7005 enable_threads=''
7006 fi
7007
7008
7009 # Check whether --enable-tls was given.
7010 if test "${enable_tls+set}" = set; then :
7011 enableval=$enable_tls;
7012 case $enable_tls in
7013 yes | no) ;;
7014 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
7015 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
7016 esac
7017
7018 else
7019 enable_tls=''
7020 fi
7021
7022
7023 # Check whether --enable-objc-gc was given.
7024 if test "${enable_objc_gc+set}" = set; then :
7025 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
7026 objc_boehm_gc=''
7027 else
7028 objc_boehm_gc=1
7029 fi
7030 else
7031 objc_boehm_gc=''
7032 fi
7033
7034
7035
7036 # Check whether --with-dwarf2 was given.
7037 if test "${with_dwarf2+set}" = set; then :
7038 withval=$with_dwarf2; dwarf2="$with_dwarf2"
7039 else
7040 dwarf2=no
7041 fi
7042
7043
7044 # Check whether --enable-shared was given.
7045 if test "${enable_shared+set}" = set; then :
7046 enableval=$enable_shared;
7047 case $enable_shared in
7048 yes | no) ;;
7049 *)
7050 enable_shared=no
7051 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
7052 for pkg in $enableval; do
7053 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
7054 enable_shared=yes
7055 fi
7056 done
7057 IFS="$ac_save_ifs"
7058 ;;
7059 esac
7060
7061 else
7062 enable_shared=yes
7063 fi
7064
7065
7066
7067
7068 # Check whether --with-build-sysroot was given.
7069 if test "${with_build_sysroot+set}" = set; then :
7070 withval=$with_build_sysroot;
7071 fi
7072
7073
7074
7075 # Check whether --with-sysroot was given.
7076 if test "${with_sysroot+set}" = set; then :
7077 withval=$with_sysroot;
7078 case ${with_sysroot} in
7079 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
7080 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
7081 esac
7082
7083 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
7084 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
7085
7086 if test "x$prefix" = xNONE; then
7087 test_prefix=/usr/local
7088 else
7089 test_prefix=$prefix
7090 fi
7091 if test "x$exec_prefix" = xNONE; then
7092 test_exec_prefix=$test_prefix
7093 else
7094 test_exec_prefix=$exec_prefix
7095 fi
7096 case ${TARGET_SYSTEM_ROOT} in
7097 "${test_prefix}"|"${test_prefix}/"*|\
7098 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
7099 '${prefix}'|'${prefix}/'*|\
7100 '${exec_prefix}'|'${exec_prefix}/'*)
7101 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
7102 TARGET_SYSTEM_ROOT_DEFINE="$t"
7103 ;;
7104 esac
7105
7106 else
7107
7108 TARGET_SYSTEM_ROOT=
7109 TARGET_SYSTEM_ROOT_DEFINE=
7110 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
7111
7112 fi
7113
7114
7115
7116
7117
7118
7119 # Check whether --with-specs was given.
7120 if test "${with_specs+set}" = set; then :
7121 withval=$with_specs; CONFIGURE_SPECS=$withval
7122 else
7123 CONFIGURE_SPECS=
7124
7125 fi
7126
7127
7128
7129
7130
7131 # Check whether --with-pkgversion was given.
7132 if test "${with_pkgversion+set}" = set; then :
7133 withval=$with_pkgversion; case "$withval" in
7134 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7135 no) PKGVERSION= ;;
7136 *) PKGVERSION="($withval) " ;;
7137 esac
7138 else
7139 PKGVERSION="(GCC) "
7140
7141 fi
7142
7143
7144
7145
7146
7147 # Check whether --with-bugurl was given.
7148 if test "${with_bugurl+set}" = set; then :
7149 withval=$with_bugurl; case "$withval" in
7150 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7151 no) BUGURL=
7152 ;;
7153 *) BUGURL="$withval"
7154 ;;
7155 esac
7156 else
7157 BUGURL="http://gcc.gnu.org/bugs.html"
7158
7159 fi
7160
7161 case ${BUGURL} in
7162 "")
7163 REPORT_BUGS_TO=
7164 REPORT_BUGS_TEXI=
7165 ;;
7166 *)
7167 REPORT_BUGS_TO="<$BUGURL>"
7168 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7169 ;;
7170 esac;
7171
7172
7173
7174
7175 # Sanity check enable_languages in case someone does not run the toplevel
7176 # configure # script.
7177 # Check whether --enable-languages was given.
7178 if test "${enable_languages+set}" = set; then :
7179 enableval=$enable_languages; case ,${enable_languages}, in
7180 ,,|,yes,)
7181 # go safe -- we cannot be much sure without the toplevel
7182 # configure's
7183 # analysis of which target libs are present and usable
7184 enable_languages=c
7185 ;;
7186 *,all,*)
7187 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7188 ;;
7189 *,c,*)
7190 ;;
7191 *)
7192 enable_languages=c,${enable_languages}
7193 ;;
7194 esac
7195 else
7196 enable_languages=c
7197 fi
7198
7199
7200
7201 # Check whether --with-multilib-list was given.
7202 if test "${with_multilib_list+set}" = set; then :
7203 withval=$with_multilib_list; :
7204 else
7205 with_multilib_list=default
7206 fi
7207
7208
7209 # -------------------------
7210 # Checks for other programs
7211 # -------------------------
7212
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7215 set x ${MAKE-make}
7216 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7217 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7218 $as_echo_n "(cached) " >&6
7219 else
7220 cat >conftest.make <<\_ACEOF
7221 SHELL = /bin/sh
7222 all:
7223 @echo '@@@%%%=$(MAKE)=@@@%%%'
7224 _ACEOF
7225 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7227 *@@@%%%=?*=@@@%%%*)
7228 eval ac_cv_prog_make_${ac_make}_set=yes;;
7229 *)
7230 eval ac_cv_prog_make_${ac_make}_set=no;;
7231 esac
7232 rm -f conftest.make
7233 fi
7234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7236 $as_echo "yes" >&6; }
7237 SET_MAKE=
7238 else
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 SET_MAKE="MAKE=${MAKE-make}"
7242 fi
7243
7244
7245 # Find some useful tools
7246 for ac_prog in gawk mawk nawk awk
7247 do
7248 # Extract the first word of "$ac_prog", so it can be a program name with args.
7249 set dummy $ac_prog; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if test "${ac_cv_prog_AWK+set}" = set; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 if test -n "$AWK"; then
7256 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7265 ac_cv_prog_AWK="$ac_prog"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7268 fi
7269 done
7270 done
7271 IFS=$as_save_IFS
7272
7273 fi
7274 fi
7275 AWK=$ac_cv_prog_AWK
7276 if test -n "$AWK"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7278 $as_echo "$AWK" >&6; }
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283
7284
7285 test -n "$AWK" && break
7286 done
7287
7288 # We need awk to create options.c and options.h.
7289 # Bail out if it's missing.
7290 case ${AWK} in
7291 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7292 esac
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7295 $as_echo_n "checking whether ln -s works... " >&6; }
7296 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 rm -f conftestdata_t
7300 echo >conftestdata_f
7301 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7302 then
7303 gcc_cv_prog_LN_S="ln -s"
7304 else
7305 if ln conftestdata_f conftestdata_t 2>/dev/null
7306 then
7307 gcc_cv_prog_LN_S=ln
7308 else
7309 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7310 then
7311 gcc_cv_prog_LN_S="cp -p"
7312 else
7313 gcc_cv_prog_LN_S=cp
7314 fi
7315 fi
7316 fi
7317 rm -f conftestdata_f conftestdata_t
7318
7319 fi
7320 LN_S="$gcc_cv_prog_LN_S"
7321 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7323 $as_echo "yes" >&6; }
7324 else
7325 if test "$gcc_cv_prog_LN_S" = "ln"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7327 $as_echo "no, using ln" >&6; }
7328 else
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7330 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7331 fi
7332 fi
7333
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7335 $as_echo_n "checking whether ln works... " >&6; }
7336 if test "${acx_cv_prog_LN+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
7338 else
7339 rm -f conftestdata_t
7340 echo >conftestdata_f
7341 if ln conftestdata_f conftestdata_t 2>/dev/null
7342 then
7343 acx_cv_prog_LN=ln
7344 else
7345 acx_cv_prog_LN=no
7346 fi
7347 rm -f conftestdata_f conftestdata_t
7348
7349 fi
7350 if test $acx_cv_prog_LN = no; then
7351 LN="$LN_S"
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7353 $as_echo "no, using $LN" >&6; }
7354 else
7355 LN="$acx_cv_prog_LN"
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7357 $as_echo "yes" >&6; }
7358 fi
7359
7360 if test -n "$ac_tool_prefix"; then
7361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 if test -n "$RANLIB"; then
7369 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7381 fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 RANLIB=$ac_cv_prog_RANLIB
7389 if test -n "$RANLIB"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7391 $as_echo "$RANLIB" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398 fi
7399 if test -z "$ac_cv_prog_RANLIB"; then
7400 ac_ct_RANLIB=$RANLIB
7401 # Extract the first word of "ranlib", so it can be a program name with args.
7402 set dummy ranlib; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$ac_ct_RANLIB"; then
7409 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_prog_ac_ct_RANLIB="ranlib"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7429 if test -n "$ac_ct_RANLIB"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7431 $as_echo "$ac_ct_RANLIB" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437 if test "x$ac_ct_RANLIB" = x; then
7438 RANLIB=":"
7439 else
7440 case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446 RANLIB=$ac_ct_RANLIB
7447 fi
7448 else
7449 RANLIB="$ac_cv_prog_RANLIB"
7450 fi
7451
7452 case "${host}" in
7453 *-*-darwin*)
7454 # By default, the Darwin ranlib will not treat common symbols as
7455 # definitions when building the archive table of contents. Other
7456 # ranlibs do that; pass an option to the Darwin ranlib that makes
7457 # it behave similarly.
7458 ranlib_flags="-c"
7459 ;;
7460 *)
7461 ranlib_flags=""
7462 esac
7463
7464
7465 # Find a good install program. We prefer a C program (faster),
7466 # so one script is as good as another. But avoid the broken or
7467 # incompatible versions:
7468 # SysV /etc/install, /usr/sbin/install
7469 # SunOS /usr/etc/install
7470 # IRIX /sbin/install
7471 # AIX /bin/install
7472 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7473 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7474 # ./install, which can be erroneously created by make from ./install.sh.
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7476 $as_echo_n "checking for a BSD compatible install... " >&6; }
7477 if test -z "$INSTALL"; then
7478 if test "${ac_cv_path_install+set}" = set; then :
7479 $as_echo_n "(cached) " >&6
7480 else
7481 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7482 for ac_dir in $PATH; do
7483 # Account for people who put trailing slashes in PATH elements.
7484 case "$ac_dir/" in
7485 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7486 *)
7487 # OSF1 and SCO ODT 3.0 have their own names for install.
7488 for ac_prog in ginstall scoinst install; do
7489 if test -f $ac_dir/$ac_prog; then
7490 if test $ac_prog = install &&
7491 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7492 # AIX install. It has an incompatible calling convention.
7493 # OSF/1 installbsd also uses dspmsg, but is usable.
7494 :
7495 else
7496 ac_cv_path_install="$ac_dir/$ac_prog -c"
7497 break 2
7498 fi
7499 fi
7500 done
7501 ;;
7502 esac
7503 done
7504 IFS="$ac_save_IFS"
7505
7506 fi
7507 if test "${ac_cv_path_install+set}" = set; then
7508 INSTALL="$ac_cv_path_install"
7509 else
7510 # As a last resort, use the slow shell script. We don't cache a
7511 # path for INSTALL within a source directory, because that will
7512 # break other packages using the cache if that directory is
7513 # removed, or if the path is relative.
7514 INSTALL="$ac_install_sh"
7515 fi
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7518 $as_echo "$INSTALL" >&6; }
7519
7520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7521 # It thinks the first close brace ends the variable substitution.
7522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7523
7524 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7525
7526
7527 # See if cmp has --ignore-initial.
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7529 $as_echo_n "checking for cmp's capabilities... " >&6; }
7530 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7531 $as_echo_n "(cached) " >&6
7532 else
7533 echo abfoo >t1
7534 echo cdfoo >t2
7535 gcc_cv_prog_cmp_skip=slowcompare
7536 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7537 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7538 :
7539 else
7540 gcc_cv_prog_cmp_skip=gnucompare
7541 fi
7542 fi
7543 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7544 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7545 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7546 :
7547 else
7548 gcc_cv_prog_cmp_skip=fastcompare
7549 fi
7550 fi
7551 fi
7552 rm t1 t2
7553
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7556 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7557 make_compare_target=$gcc_cv_prog_cmp_skip
7558
7559
7560
7561 # See if we have the mktemp command.
7562 # Extract the first word of "mktemp", so it can be a program name with args.
7563 set dummy mktemp; ac_word=$2
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7565 $as_echo_n "checking for $ac_word... " >&6; }
7566 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7567 $as_echo_n "(cached) " >&6
7568 else
7569 if test -n "$have_mktemp_command"; then
7570 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7571 else
7572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7573 for as_dir in $PATH
7574 do
7575 IFS=$as_save_IFS
7576 test -z "$as_dir" && as_dir=.
7577 for ac_exec_ext in '' $ac_executable_extensions; do
7578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7579 ac_cv_prog_have_mktemp_command="yes"
7580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7581 break 2
7582 fi
7583 done
7584 done
7585 IFS=$as_save_IFS
7586
7587 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7588 fi
7589 fi
7590 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7591 if test -n "$have_mktemp_command"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7593 $as_echo "$have_mktemp_command" >&6; }
7594 else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599
7600
7601 # See if makeinfo has been installed and is modern enough
7602 # that we can use it.
7603
7604 # Extract the first word of "makeinfo", so it can be a program name with args.
7605 set dummy makeinfo; ac_word=$2
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7607 $as_echo_n "checking for $ac_word... " >&6; }
7608 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7609 $as_echo_n "(cached) " >&6
7610 else
7611 if test -n "$MAKEINFO"; then
7612 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617 IFS=$as_save_IFS
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_MAKEINFO="makeinfo"
7622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 break 2
7624 fi
7625 done
7626 done
7627 IFS=$as_save_IFS
7628
7629 fi
7630 fi
7631 MAKEINFO=$ac_cv_prog_MAKEINFO
7632 if test -n "$MAKEINFO"; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7634 $as_echo "$MAKEINFO" >&6; }
7635 else
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639
7640
7641 if test -n "$MAKEINFO"; then
7642 # Found it, now check the version.
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7644 $as_echo_n "checking for modern makeinfo... " >&6; }
7645 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7649 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7650
7651 case $ac_prog_version in
7652 '') gcc_cv_prog_makeinfo_modern=no;;
7653 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7654 *) gcc_cv_prog_makeinfo_modern=no;;
7655 esac
7656
7657 fi
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7659 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7660 else
7661 gcc_cv_prog_makeinfo_modern=no
7662 fi
7663 if test $gcc_cv_prog_makeinfo_modern = no; then
7664 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7665 fi
7666
7667 if test $gcc_cv_prog_makeinfo_modern = no; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7669 *** Makeinfo is missing or too old.
7670 *** Info documentation will not be built." >&5
7671 $as_echo "$as_me: WARNING:
7672 *** Makeinfo is missing or too old.
7673 *** Info documentation will not be built." >&2;}
7674 BUILD_INFO=
7675 else
7676 BUILD_INFO=info
7677 fi
7678
7679
7680 # Is pod2man recent enough to regenerate manpages?
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7682 $as_echo_n "checking for recent Pod::Man... " >&6; }
7683 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7685 $as_echo "yes" >&6; }
7686 GENERATED_MANPAGES=generated-manpages
7687 else
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 GENERATED_MANPAGES=
7691 fi
7692
7693
7694 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7695
7696 # How about lex?
7697 for ac_prog in flex
7698 do
7699 # Extract the first word of "$ac_prog", so it can be a program name with args.
7700 set dummy $ac_prog; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if test "${ac_cv_prog_FLEX+set}" = set; then :
7704 $as_echo_n "(cached) " >&6
7705 else
7706 if test -n "$FLEX"; then
7707 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712 IFS=$as_save_IFS
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7716 ac_cv_prog_FLEX="$ac_prog"
7717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7718 break 2
7719 fi
7720 done
7721 done
7722 IFS=$as_save_IFS
7723
7724 fi
7725 fi
7726 FLEX=$ac_cv_prog_FLEX
7727 if test -n "$FLEX"; then
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7729 $as_echo "$FLEX" >&6; }
7730 else
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7733 fi
7734
7735
7736 test -n "$FLEX" && break
7737 done
7738 test -n "$FLEX" || FLEX="$MISSING flex"
7739
7740
7741 # Bison?
7742 for ac_prog in bison
7743 do
7744 # Extract the first word of "$ac_prog", so it can be a program name with args.
7745 set dummy $ac_prog; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_BISON+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 if test -n "$BISON"; then
7752 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_BISON="$ac_prog"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 BISON=$ac_cv_prog_BISON
7772 if test -n "$BISON"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7774 $as_echo "$BISON" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780
7781 test -n "$BISON" && break
7782 done
7783 test -n "$BISON" || BISON="$MISSING bison"
7784
7785
7786 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7787 # check for build == host before using them.
7788
7789 # NM
7790 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7791 && test -d ../binutils ; then
7792 NM='${objdir}/../binutils/nm-new'
7793 else
7794 # Extract the first word of "nm", so it can be a program name with args.
7795 set dummy nm; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_NM+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -n "$NM"; then
7802 ac_cv_prog_NM="$NM" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_NM="nm"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7814 fi
7815 done
7816 done
7817 IFS=$as_save_IFS
7818
7819 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7820 fi
7821 fi
7822 NM=$ac_cv_prog_NM
7823 if test -n "$NM"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7825 $as_echo "$NM" >&6; }
7826 else
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7828 $as_echo "no" >&6; }
7829 fi
7830
7831
7832 fi
7833
7834 # AR
7835 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7836 && test -d ../binutils ; then
7837 AR='${objdir}/../binutils/ar'
7838 else
7839 # Extract the first word of "ar", so it can be a program name with args.
7840 set dummy ar; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if test "${ac_cv_prog_AR+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 if test -n "$AR"; then
7847 ac_cv_prog_AR="$AR" # Let the user override the test.
7848 else
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_prog_AR="ar"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7865 fi
7866 fi
7867 AR=$ac_cv_prog_AR
7868 if test -n "$AR"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7870 $as_echo "$AR" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875
7876
7877 fi
7878
7879
7880 # --------------------
7881 # Checks for C headers
7882 # --------------------
7883
7884 # Need to reject headers which give warnings, so that the -Werror bootstrap
7885 # works later. *sigh* This needs to come before all header checks.
7886
7887 ac_c_preproc_warn_flag=yes
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7890 $as_echo_n "checking for ANSI C header files... " >&6; }
7891 if test "${ac_cv_header_stdc+set}" = set; then :
7892 $as_echo_n "(cached) " >&6
7893 else
7894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h. */
7896 #include <stdlib.h>
7897 #include <stdarg.h>
7898 #include <string.h>
7899 #include <float.h>
7900
7901 int
7902 main ()
7903 {
7904
7905 ;
7906 return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_compile "$LINENO"; then :
7910 ac_cv_header_stdc=yes
7911 else
7912 ac_cv_header_stdc=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915
7916 if test $ac_cv_header_stdc = yes; then
7917 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 #include <string.h>
7921
7922 _ACEOF
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924 $EGREP "memchr" >/dev/null 2>&1; then :
7925
7926 else
7927 ac_cv_header_stdc=no
7928 fi
7929 rm -f conftest*
7930
7931 fi
7932
7933 if test $ac_cv_header_stdc = yes; then
7934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 #include <stdlib.h>
7938
7939 _ACEOF
7940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7941 $EGREP "free" >/dev/null 2>&1; then :
7942
7943 else
7944 ac_cv_header_stdc=no
7945 fi
7946 rm -f conftest*
7947
7948 fi
7949
7950 if test $ac_cv_header_stdc = yes; then
7951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7952 if test "$cross_compiling" = yes; then :
7953 :
7954 else
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 #include <ctype.h>
7958 #include <stdlib.h>
7959 #if ((' ' & 0x0FF) == 0x020)
7960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7962 #else
7963 # define ISLOWER(c) \
7964 (('a' <= (c) && (c) <= 'i') \
7965 || ('j' <= (c) && (c) <= 'r') \
7966 || ('s' <= (c) && (c) <= 'z'))
7967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7968 #endif
7969
7970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7971 int
7972 main ()
7973 {
7974 int i;
7975 for (i = 0; i < 256; i++)
7976 if (XOR (islower (i), ISLOWER (i))
7977 || toupper (i) != TOUPPER (i))
7978 return 2;
7979 return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_run "$LINENO"; then :
7983
7984 else
7985 ac_cv_header_stdc=no
7986 fi
7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7988 conftest.$ac_objext conftest.beam conftest.$ac_ext
7989 fi
7990
7991 fi
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7994 $as_echo "$ac_cv_header_stdc" >&6; }
7995 if test $ac_cv_header_stdc = yes; then
7996
7997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7998
7999 fi
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8002 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8003 if test "${ac_cv_header_time+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 #include <sys/types.h>
8009 #include <sys/time.h>
8010 #include <time.h>
8011
8012 int
8013 main ()
8014 {
8015 if ((struct tm *) 0)
8016 return 0;
8017 ;
8018 return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_compile "$LINENO"; then :
8022 ac_cv_header_time=yes
8023 else
8024 ac_cv_header_time=no
8025 fi
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 fi
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8029 $as_echo "$ac_cv_header_time" >&6; }
8030 if test $ac_cv_header_time = yes; then
8031
8032 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8033
8034 fi
8035
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
8037 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
8038 if test "${gcc_cv_header_string+set}" = set; then :
8039 $as_echo_n "(cached) " >&6
8040 else
8041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8043 #include <string.h>
8044 #include <strings.h>
8045 int
8046 main ()
8047 {
8048
8049 ;
8050 return 0;
8051 }
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"; then :
8054 gcc_cv_header_string=yes
8055 else
8056 gcc_cv_header_string=no
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
8061 $as_echo "$gcc_cv_header_string" >&6; }
8062 if test $gcc_cv_header_string = yes; then
8063
8064 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
8065
8066 fi
8067
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8069 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8070 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
8072 else
8073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8075 #include <sys/types.h>
8076 #include <sys/wait.h>
8077 #ifndef WEXITSTATUS
8078 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8079 #endif
8080 #ifndef WIFEXITED
8081 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8082 #endif
8083
8084 int
8085 main ()
8086 {
8087 int s;
8088 wait (&s);
8089 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8090 ;
8091 return 0;
8092 }
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095 ac_cv_header_sys_wait_h=yes
8096 else
8097 ac_cv_header_sys_wait_h=no
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8102 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8103 if test $ac_cv_header_sys_wait_h = yes; then
8104
8105 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8106
8107 fi
8108
8109 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
8110 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
8111 sys/resource.h sys/param.h sys/times.h sys/stat.h \
8112 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
8113 do :
8114 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8115 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
8116 eval as_val=\$$as_ac_Header
8117 if test "x$as_val" = x""yes; then :
8118 cat >>confdefs.h <<_ACEOF
8119 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8120 _ACEOF
8121
8122 fi
8123 done
8124
8125
8126 # Check for thread headers.
8127 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8128 if test "x$ac_cv_header_thread_h" = x""yes; then :
8129 have_thread_h=yes
8130 else
8131 have_thread_h=
8132 fi
8133
8134 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8135 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8136 have_pthread_h=yes
8137 else
8138 have_pthread_h=
8139 fi
8140
8141
8142 # These tests can't be done till we know if we have limits.h.
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8144 $as_echo_n "checking for CHAR_BIT... " >&6; }
8145 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 #ifdef HAVE_LIMITS_H
8151 #include <limits.h>
8152 #endif
8153 #ifdef CHAR_BIT
8154 found
8155 #endif
8156 _ACEOF
8157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8158 $EGREP "found" >/dev/null 2>&1; then :
8159 gcc_cv_decl_char_bit=yes
8160 else
8161 gcc_cv_decl_char_bit=no
8162 fi
8163 rm -f conftest*
8164
8165
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8168 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8169 if test $gcc_cv_decl_char_bit = no; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8171 $as_echo_n "checking number of bits in a byte... " >&6; }
8172 if test "${gcc_cv_c_nbby+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 i=8
8176 gcc_cv_c_nbby=
8177 while test $i -lt 65; do
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180
8181 int
8182 main ()
8183 {
8184 switch(0) {
8185 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8186 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8187 ; }
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193 gcc_cv_c_nbby=$i; break
8194 fi
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 i=`expr $i + 1`
8197 done
8198 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8199
8200 fi
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8202 $as_echo "$gcc_cv_c_nbby" >&6; }
8203 if test $gcc_cv_c_nbby = failed; then
8204 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8205 else
8206
8207 cat >>confdefs.h <<_ACEOF
8208 #define CHAR_BIT $gcc_cv_c_nbby
8209 _ACEOF
8210
8211 fi
8212 fi
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8214 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8215 if test "${ac_cv_c_bigendian+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8217 else
8218 ac_cv_c_bigendian=unknown
8219 # See if we're dealing with a universal compiler.
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8222 #ifndef __APPLE_CC__
8223 not a universal capable compiler
8224 #endif
8225 typedef int dummy;
8226
8227 _ACEOF
8228 if ac_fn_c_try_compile "$LINENO"; then :
8229
8230 # Check for potential -arch flags. It is not universal unless
8231 # there are at least two -arch flags with different values.
8232 ac_arch=
8233 ac_prev=
8234 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8235 if test -n "$ac_prev"; then
8236 case $ac_word in
8237 i?86 | x86_64 | ppc | ppc64)
8238 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8239 ac_arch=$ac_word
8240 else
8241 ac_cv_c_bigendian=universal
8242 break
8243 fi
8244 ;;
8245 esac
8246 ac_prev=
8247 elif test "x$ac_word" = "x-arch"; then
8248 ac_prev=arch
8249 fi
8250 done
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 if test $ac_cv_c_bigendian = unknown; then
8254 # See if sys/param.h defines the BYTE_ORDER macro.
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8257 #include <sys/types.h>
8258 #include <sys/param.h>
8259
8260 int
8261 main ()
8262 {
8263 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8264 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8265 && LITTLE_ENDIAN)
8266 bogus endian macros
8267 #endif
8268
8269 ;
8270 return 0;
8271 }
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"; then :
8274 # It does; now see whether it defined to BIG_ENDIAN or not.
8275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8276 /* end confdefs.h. */
8277 #include <sys/types.h>
8278 #include <sys/param.h>
8279
8280 int
8281 main ()
8282 {
8283 #if BYTE_ORDER != BIG_ENDIAN
8284 not big endian
8285 #endif
8286
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292 ac_cv_c_bigendian=yes
8293 else
8294 ac_cv_c_bigendian=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 fi
8300 if test $ac_cv_c_bigendian = unknown; then
8301 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 #include <limits.h>
8305
8306 int
8307 main ()
8308 {
8309 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8310 bogus endian macros
8311 #endif
8312
8313 ;
8314 return 0;
8315 }
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 # It does; now see whether it defined to _BIG_ENDIAN or not.
8319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8320 /* end confdefs.h. */
8321 #include <limits.h>
8322
8323 int
8324 main ()
8325 {
8326 #ifndef _BIG_ENDIAN
8327 not big endian
8328 #endif
8329
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335 ac_cv_c_bigendian=yes
8336 else
8337 ac_cv_c_bigendian=no
8338 fi
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 fi
8343 if test $ac_cv_c_bigendian = unknown; then
8344 # Compile a test program.
8345 if test "$cross_compiling" = yes; then :
8346 # Try to guess by grepping values from an object file.
8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8348 /* end confdefs.h. */
8349 short int ascii_mm[] =
8350 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8351 short int ascii_ii[] =
8352 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8353 int use_ascii (int i) {
8354 return ascii_mm[i] + ascii_ii[i];
8355 }
8356 short int ebcdic_ii[] =
8357 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8358 short int ebcdic_mm[] =
8359 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8360 int use_ebcdic (int i) {
8361 return ebcdic_mm[i] + ebcdic_ii[i];
8362 }
8363 extern int foo;
8364
8365 int
8366 main ()
8367 {
8368 return use_ascii (foo) == use_ebcdic (foo);
8369 ;
8370 return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8375 ac_cv_c_bigendian=yes
8376 fi
8377 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8378 if test "$ac_cv_c_bigendian" = unknown; then
8379 ac_cv_c_bigendian=no
8380 else
8381 # finding both strings is unlikely to happen, but who knows?
8382 ac_cv_c_bigendian=unknown
8383 fi
8384 fi
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8387 else
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 $ac_includes_default
8391 int
8392 main ()
8393 {
8394
8395 /* Are we little or big endian? From Harbison&Steele. */
8396 union
8397 {
8398 long int l;
8399 char c[sizeof (long int)];
8400 } u;
8401 u.l = 1;
8402 return u.c[sizeof (long int) - 1] == 1;
8403
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_run "$LINENO"; then :
8409 ac_cv_c_bigendian=no
8410 else
8411 ac_cv_c_bigendian=yes
8412 fi
8413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8414 conftest.$ac_objext conftest.beam conftest.$ac_ext
8415 fi
8416
8417 fi
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8420 $as_echo "$ac_cv_c_bigendian" >&6; }
8421 case $ac_cv_c_bigendian in #(
8422 yes)
8423 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8424 ;; #(
8425 no)
8426 ;; #(
8427 universal)
8428
8429 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8430
8431 ;; #(
8432 *)
8433 as_fn_error "unknown endianness
8434 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8435 esac
8436
8437
8438 # ----------------------
8439 # Checks for C++ headers
8440 # ----------------------
8441
8442 ac_ext=cpp
8443 ac_cpp='$CXXCPP $CPPFLAGS'
8444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8448 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8449 if test -z "$CXXCPP"; then
8450 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 # Double quotes because CXXCPP needs to be expanded
8454 for CXXCPP in "$CXX -E" "/lib/cpp"
8455 do
8456 ac_preproc_ok=false
8457 for ac_cxx_preproc_warn_flag in '' yes
8458 do
8459 # Use a header file that comes with gcc, so configuring glibc
8460 # with a fresh cross-compiler works.
8461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8462 # <limits.h> exists even on freestanding compilers.
8463 # On the NeXT, cc -E runs the code through the compiler's parser,
8464 # not just through cpp. "Syntax error" is here to catch this case.
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #ifdef __STDC__
8468 # include <limits.h>
8469 #else
8470 # include <assert.h>
8471 #endif
8472 Syntax error
8473 _ACEOF
8474 if ac_fn_cxx_try_cpp "$LINENO"; then :
8475
8476 else
8477 # Broken: fails on valid input.
8478 continue
8479 fi
8480 rm -f conftest.err conftest.$ac_ext
8481
8482 # OK, works on sane cases. Now check whether nonexistent headers
8483 # can be detected and how.
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 #include <ac_nonexistent.h>
8487 _ACEOF
8488 if ac_fn_cxx_try_cpp "$LINENO"; then :
8489 # Broken: success on invalid input.
8490 continue
8491 else
8492 # Passes both tests.
8493 ac_preproc_ok=:
8494 break
8495 fi
8496 rm -f conftest.err conftest.$ac_ext
8497
8498 done
8499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8500 rm -f conftest.err conftest.$ac_ext
8501 if $ac_preproc_ok; then :
8502 break
8503 fi
8504
8505 done
8506 ac_cv_prog_CXXCPP=$CXXCPP
8507
8508 fi
8509 CXXCPP=$ac_cv_prog_CXXCPP
8510 else
8511 ac_cv_prog_CXXCPP=$CXXCPP
8512 fi
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8514 $as_echo "$CXXCPP" >&6; }
8515 ac_preproc_ok=false
8516 for ac_cxx_preproc_warn_flag in '' yes
8517 do
8518 # Use a header file that comes with gcc, so configuring glibc
8519 # with a fresh cross-compiler works.
8520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8521 # <limits.h> exists even on freestanding compilers.
8522 # On the NeXT, cc -E runs the code through the compiler's parser,
8523 # not just through cpp. "Syntax error" is here to catch this case.
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 #ifdef __STDC__
8527 # include <limits.h>
8528 #else
8529 # include <assert.h>
8530 #endif
8531 Syntax error
8532 _ACEOF
8533 if ac_fn_cxx_try_cpp "$LINENO"; then :
8534
8535 else
8536 # Broken: fails on valid input.
8537 continue
8538 fi
8539 rm -f conftest.err conftest.$ac_ext
8540
8541 # OK, works on sane cases. Now check whether nonexistent headers
8542 # can be detected and how.
8543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544 /* end confdefs.h. */
8545 #include <ac_nonexistent.h>
8546 _ACEOF
8547 if ac_fn_cxx_try_cpp "$LINENO"; then :
8548 # Broken: success on invalid input.
8549 continue
8550 else
8551 # Passes both tests.
8552 ac_preproc_ok=:
8553 break
8554 fi
8555 rm -f conftest.err conftest.$ac_ext
8556
8557 done
8558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8559 rm -f conftest.err conftest.$ac_ext
8560 if $ac_preproc_ok; then :
8561
8562 else
8563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8566 See \`config.log' for more details." >&5
8567 $as_echo "$as_me: WARNING: C++ preprocessor \"$CXXCPP\" fails sanity check
8568 See \`config.log' for more details." >&2;}; }
8569 fi
8570
8571 ac_ext=c
8572 ac_cpp='$CPP $CPPFLAGS'
8573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8576
8577
8578 ac_ext=cpp
8579 ac_cpp='$CXXCPP $CPPFLAGS'
8580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8583
8584
8585
8586
8587 for ac_header in unordered_map
8588 do :
8589 ac_fn_cxx_check_header_preproc "$LINENO" "unordered_map" "ac_cv_header_unordered_map"
8590 if test "x$ac_cv_header_unordered_map" = x""yes; then :
8591 cat >>confdefs.h <<_ACEOF
8592 #define HAVE_UNORDERED_MAP 1
8593 _ACEOF
8594
8595 fi
8596 done
8597
8598 for ac_header in tr1/unordered_map
8599 do :
8600 ac_fn_cxx_check_header_preproc "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map"
8601 if test "x$ac_cv_header_tr1_unordered_map" = x""yes; then :
8602 cat >>confdefs.h <<_ACEOF
8603 #define HAVE_TR1_UNORDERED_MAP 1
8604 _ACEOF
8605
8606 fi
8607 done
8608
8609 for ac_header in ext/hash_map
8610 do :
8611 ac_fn_cxx_check_header_preproc "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map"
8612 if test "x$ac_cv_header_ext_hash_map" = x""yes; then :
8613 cat >>confdefs.h <<_ACEOF
8614 #define HAVE_EXT_HASH_MAP 1
8615 _ACEOF
8616
8617 fi
8618 done
8619
8620
8621 ac_ext=c
8622 ac_cpp='$CPP $CPPFLAGS'
8623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8626
8627
8628 # --------
8629 # UNSORTED
8630 # --------
8631
8632
8633 # These libraries may be used by collect2.
8634 # We may need a special search path to get them linked.
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8636 $as_echo_n "checking for collect2 libraries... " >&6; }
8637 if test "${gcc_cv_collect2_libs+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 save_LIBS="$LIBS"
8641 for libs in '' -lld -lmld \
8642 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8643 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8644 do
8645 LIBS="$libs"
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8648
8649 /* Override any GCC internal prototype to avoid an error.
8650 Use char because int might match the return type of a GCC
8651 builtin and then its argument prototype would still apply. */
8652 #ifdef __cplusplus
8653 extern "C"
8654 #endif
8655 char ldopen ();
8656 int
8657 main ()
8658 {
8659 return ldopen ();
8660 ;
8661 return 0;
8662 }
8663 _ACEOF
8664 if ac_fn_c_try_link "$LINENO"; then :
8665 gcc_cv_collect2_libs="$libs"; break
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8669 done
8670 LIBS="$save_LIBS"
8671 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8672 fi
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8674 $as_echo "$gcc_cv_collect2_libs" >&6; }
8675 case $gcc_cv_collect2_libs in
8676 "none required") ;;
8677 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8678 esac
8679
8680
8681 # When building Ada code on Alpha, we need exc_resume which is usually in
8682 # -lexc. So test for it.
8683 save_LIBS="$LIBS"
8684 LIBS=
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8686 $as_echo_n "checking for library containing exc_resume... " >&6; }
8687 if test "${ac_cv_search_exc_resume+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 ac_func_search_save_LIBS=$LIBS
8691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8692 /* end confdefs.h. */
8693
8694 /* Override any GCC internal prototype to avoid an error.
8695 Use char because int might match the return type of a GCC
8696 builtin and then its argument prototype would still apply. */
8697 #ifdef __cplusplus
8698 extern "C"
8699 #endif
8700 char exc_resume ();
8701 int
8702 main ()
8703 {
8704 return exc_resume ();
8705 ;
8706 return 0;
8707 }
8708 _ACEOF
8709 for ac_lib in '' exc; do
8710 if test -z "$ac_lib"; then
8711 ac_res="none required"
8712 else
8713 ac_res=-l$ac_lib
8714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8715 fi
8716 if ac_fn_c_try_link "$LINENO"; then :
8717 ac_cv_search_exc_resume=$ac_res
8718 fi
8719 rm -f core conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext
8721 if test "${ac_cv_search_exc_resume+set}" = set; then :
8722 break
8723 fi
8724 done
8725 if test "${ac_cv_search_exc_resume+set}" = set; then :
8726
8727 else
8728 ac_cv_search_exc_resume=no
8729 fi
8730 rm conftest.$ac_ext
8731 LIBS=$ac_func_search_save_LIBS
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8734 $as_echo "$ac_cv_search_exc_resume" >&6; }
8735 ac_res=$ac_cv_search_exc_resume
8736 if test "$ac_res" != no; then :
8737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8738
8739 fi
8740
8741 GNAT_LIBEXC="$LIBS"
8742 LIBS="$save_LIBS"
8743
8744
8745 # Some systems put ldexp and frexp in libm instead of libc; assume
8746 # they're both in the same place. jcf-dump needs them.
8747 save_LIBS="$LIBS"
8748 LIBS=
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8750 $as_echo_n "checking for library containing ldexp... " >&6; }
8751 if test "${ac_cv_search_ldexp+set}" = set; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 ac_func_search_save_LIBS=$LIBS
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757
8758 /* Override any GCC internal prototype to avoid an error.
8759 Use char because int might match the return type of a GCC
8760 builtin and then its argument prototype would still apply. */
8761 #ifdef __cplusplus
8762 extern "C"
8763 #endif
8764 char ldexp ();
8765 int
8766 main ()
8767 {
8768 return ldexp ();
8769 ;
8770 return 0;
8771 }
8772 _ACEOF
8773 for ac_lib in '' m; do
8774 if test -z "$ac_lib"; then
8775 ac_res="none required"
8776 else
8777 ac_res=-l$ac_lib
8778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8779 fi
8780 if ac_fn_c_try_link "$LINENO"; then :
8781 ac_cv_search_ldexp=$ac_res
8782 fi
8783 rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext
8785 if test "${ac_cv_search_ldexp+set}" = set; then :
8786 break
8787 fi
8788 done
8789 if test "${ac_cv_search_ldexp+set}" = set; then :
8790
8791 else
8792 ac_cv_search_ldexp=no
8793 fi
8794 rm conftest.$ac_ext
8795 LIBS=$ac_func_search_save_LIBS
8796 fi
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8798 $as_echo "$ac_cv_search_ldexp" >&6; }
8799 ac_res=$ac_cv_search_ldexp
8800 if test "$ac_res" != no; then :
8801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8802
8803 fi
8804
8805 LDEXP_LIB="$LIBS"
8806 LIBS="$save_LIBS"
8807
8808
8809 # Use <inttypes.h> only if it exists,
8810 # doesn't clash with <sys/types.h>, and declares intmax_t.
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8812 $as_echo_n "checking for inttypes.h... " >&6; }
8813 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 #include <sys/types.h>
8819 #include <inttypes.h>
8820 int
8821 main ()
8822 {
8823 intmax_t i = -1;
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"; then :
8829 gcc_cv_header_inttypes_h=yes
8830 else
8831 gcc_cv_header_inttypes_h=no
8832 fi
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 fi
8835
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8837 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8838 if test $gcc_cv_header_inttypes_h = yes; then
8839
8840 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8841
8842 fi
8843
8844
8845
8846 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8847 sysconf strsignal getrusage nl_langinfo \
8848 gettimeofday mbstowcs wcswidth mmap setlocale \
8849 clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
8850 do :
8851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8853 eval as_val=\$$as_ac_var
8854 if test "x$as_val" = x""yes; then :
8855 cat >>confdefs.h <<_ACEOF
8856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8857 _ACEOF
8858
8859 fi
8860 done
8861
8862
8863 if test x$ac_cv_func_mbstowcs = xyes; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8865 $as_echo_n "checking whether mbstowcs works... " >&6; }
8866 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 if test "$cross_compiling" = yes; then :
8870 gcc_cv_func_mbstowcs_works=yes
8871 else
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 #include <stdlib.h>
8875 int main()
8876 {
8877 mbstowcs(0, "", 0);
8878 return 0;
8879 }
8880 _ACEOF
8881 if ac_fn_c_try_run "$LINENO"; then :
8882 gcc_cv_func_mbstowcs_works=yes
8883 else
8884 gcc_cv_func_mbstowcs_works=no
8885 fi
8886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8887 conftest.$ac_objext conftest.beam conftest.$ac_ext
8888 fi
8889
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8892 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8893 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8894
8895 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8896
8897 fi
8898 fi
8899
8900 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8901 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8902
8903 else
8904
8905 cat >>confdefs.h <<_ACEOF
8906 #define ssize_t int
8907 _ACEOF
8908
8909 fi
8910
8911 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8912 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8913
8914 else
8915
8916 cat >>confdefs.h <<_ACEOF
8917 #define caddr_t char *
8918 _ACEOF
8919
8920 fi
8921
8922
8923
8924 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8925 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8926 gcc_header_sys_mman_h=yes
8927 else
8928 gcc_header_sys_mman_h=no
8929 fi
8930
8931 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8932 if test "x$ac_cv_func_mmap" = x""yes; then :
8933 gcc_func_mmap=yes
8934 else
8935 gcc_func_mmap=no
8936 fi
8937
8938 if test "$gcc_header_sys_mman_h" != yes \
8939 || test "$gcc_func_mmap" != yes; then
8940 gcc_cv_func_mmap_file=no
8941 gcc_cv_func_mmap_dev_zero=no
8942 gcc_cv_func_mmap_anon=no
8943 else
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8945 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8946 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8947 $as_echo_n "(cached) " >&6
8948 else
8949 # Add a system to this blacklist if
8950 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8951 # memory area containing the same data that you'd get if you applied
8952 # read() to the same fd. The only system known to have a problem here
8953 # is VMS, where text files have record structure.
8954 case "$host_os" in
8955 vms* | ultrix*)
8956 gcc_cv_func_mmap_file=no ;;
8957 *)
8958 gcc_cv_func_mmap_file=yes;;
8959 esac
8960 fi
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8962 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8964 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8965 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
8967 else
8968 # Add a system to this blacklist if it has mmap() but /dev/zero
8969 # does not exist, or if mmapping /dev/zero does not give anonymous
8970 # zeroed pages with both the following properties:
8971 # 1. If you map N consecutive pages in with one call, and then
8972 # unmap any subset of those pages, the pages that were not
8973 # explicitly unmapped remain accessible.
8974 # 2. If you map two adjacent blocks of memory and then unmap them
8975 # both at once, they must both go away.
8976 # Systems known to be in this category are Windows (all variants),
8977 # VMS, and Darwin.
8978 case "$host_os" in
8979 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8980 gcc_cv_func_mmap_dev_zero=no ;;
8981 *)
8982 gcc_cv_func_mmap_dev_zero=yes;;
8983 esac
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8986 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8987
8988 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8990 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8991 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 #include <sys/types.h>
8997 #include <sys/mman.h>
8998 #include <unistd.h>
8999
9000 #ifndef MAP_ANONYMOUS
9001 #define MAP_ANONYMOUS MAP_ANON
9002 #endif
9003
9004 int
9005 main ()
9006 {
9007 int n = MAP_ANONYMOUS;
9008 ;
9009 return 0;
9010 }
9011 _ACEOF
9012 if ac_fn_c_try_compile "$LINENO"; then :
9013 gcc_cv_decl_map_anon=yes
9014 else
9015 gcc_cv_decl_map_anon=no
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
9020 $as_echo "$gcc_cv_decl_map_anon" >&6; }
9021
9022 if test $gcc_cv_decl_map_anon = no; then
9023 gcc_cv_func_mmap_anon=no
9024 else
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
9026 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
9027 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
9028 $as_echo_n "(cached) " >&6
9029 else
9030 # Add a system to this blacklist if it has mmap() and MAP_ANON or
9031 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
9032 # doesn't give anonymous zeroed pages with the same properties listed
9033 # above for use of /dev/zero.
9034 # Systems known to be in this category are Windows, VMS, and SCO Unix.
9035 case "$host_os" in
9036 vms* | cygwin* | pe | mingw* | sco* | udk* )
9037 gcc_cv_func_mmap_anon=no ;;
9038 *)
9039 gcc_cv_func_mmap_anon=yes;;
9040 esac
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
9043 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
9044 fi
9045 fi
9046
9047 if test $gcc_cv_func_mmap_file = yes; then
9048
9049 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
9050
9051 fi
9052 if test $gcc_cv_func_mmap_dev_zero = yes; then
9053
9054 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
9055
9056 fi
9057 if test $gcc_cv_func_mmap_anon = yes; then
9058
9059 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
9060
9061 fi
9062
9063
9064 case "${host}" in
9065 *-*-*vms*)
9066 # Under VMS, vfork works very differently than on Unix. The standard test
9067 # won't work, and it isn't easily adaptable. It makes more sense to
9068 # just force it.
9069 ac_cv_func_vfork_works=yes
9070 ;;
9071 esac
9072 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9073 if test "x$ac_cv_type_pid_t" = x""yes; then :
9074
9075 else
9076
9077 cat >>confdefs.h <<_ACEOF
9078 #define pid_t int
9079 _ACEOF
9080
9081 fi
9082
9083 for ac_header in vfork.h
9084 do :
9085 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
9086 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9087 cat >>confdefs.h <<_ACEOF
9088 #define HAVE_VFORK_H 1
9089 _ACEOF
9090
9091 fi
9092 done
9093
9094 for ac_func in fork vfork
9095 do :
9096 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9097 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9098 eval as_val=\$$as_ac_var
9099 if test "x$as_val" = x""yes; then :
9100 cat >>confdefs.h <<_ACEOF
9101 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9102 _ACEOF
9103
9104 fi
9105 done
9106
9107 if test "x$ac_cv_func_fork" = xyes; then
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9109 $as_echo_n "checking for working fork... " >&6; }
9110 if test "${ac_cv_func_fork_works+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 if test "$cross_compiling" = yes; then :
9114 ac_cv_func_fork_works=cross
9115 else
9116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9117 /* end confdefs.h. */
9118 $ac_includes_default
9119 int
9120 main ()
9121 {
9122
9123 /* By Ruediger Kuhlmann. */
9124 return fork () < 0;
9125
9126 ;
9127 return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_run "$LINENO"; then :
9131 ac_cv_func_fork_works=yes
9132 else
9133 ac_cv_func_fork_works=no
9134 fi
9135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9136 conftest.$ac_objext conftest.beam conftest.$ac_ext
9137 fi
9138
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9141 $as_echo "$ac_cv_func_fork_works" >&6; }
9142
9143 else
9144 ac_cv_func_fork_works=$ac_cv_func_fork
9145 fi
9146 if test "x$ac_cv_func_fork_works" = xcross; then
9147 case $host in
9148 *-*-amigaos* | *-*-msdosdjgpp*)
9149 # Override, as these systems have only a dummy fork() stub
9150 ac_cv_func_fork_works=no
9151 ;;
9152 *)
9153 ac_cv_func_fork_works=yes
9154 ;;
9155 esac
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9157 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9158 fi
9159 ac_cv_func_vfork_works=$ac_cv_func_vfork
9160 if test "x$ac_cv_func_vfork" = xyes; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9162 $as_echo_n "checking for working vfork... " >&6; }
9163 if test "${ac_cv_func_vfork_works+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 if test "$cross_compiling" = yes; then :
9167 ac_cv_func_vfork_works=cross
9168 else
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 /* Thanks to Paul Eggert for this test. */
9172 $ac_includes_default
9173 #include <sys/wait.h>
9174 #ifdef HAVE_VFORK_H
9175 # include <vfork.h>
9176 #endif
9177 /* On some sparc systems, changes by the child to local and incoming
9178 argument registers are propagated back to the parent. The compiler
9179 is told about this with #include <vfork.h>, but some compilers
9180 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9181 static variable whose address is put into a register that is
9182 clobbered by the vfork. */
9183 static void
9184 #ifdef __cplusplus
9185 sparc_address_test (int arg)
9186 # else
9187 sparc_address_test (arg) int arg;
9188 #endif
9189 {
9190 static pid_t child;
9191 if (!child) {
9192 child = vfork ();
9193 if (child < 0) {
9194 perror ("vfork");
9195 _exit(2);
9196 }
9197 if (!child) {
9198 arg = getpid();
9199 write(-1, "", 0);
9200 _exit (arg);
9201 }
9202 }
9203 }
9204
9205 int
9206 main ()
9207 {
9208 pid_t parent = getpid ();
9209 pid_t child;
9210
9211 sparc_address_test (0);
9212
9213 child = vfork ();
9214
9215 if (child == 0) {
9216 /* Here is another test for sparc vfork register problems. This
9217 test uses lots of local variables, at least as many local
9218 variables as main has allocated so far including compiler
9219 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9220 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9221 reuse the register of parent for one of the local variables,
9222 since it will think that parent can't possibly be used any more
9223 in this routine. Assigning to the local variable will thus
9224 munge parent in the parent process. */
9225 pid_t
9226 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9227 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9228 /* Convince the compiler that p..p7 are live; otherwise, it might
9229 use the same hardware register for all 8 local variables. */
9230 if (p != p1 || p != p2 || p != p3 || p != p4
9231 || p != p5 || p != p6 || p != p7)
9232 _exit(1);
9233
9234 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9235 from child file descriptors. If the child closes a descriptor
9236 before it execs or exits, this munges the parent's descriptor
9237 as well. Test for this by closing stdout in the child. */
9238 _exit(close(fileno(stdout)) != 0);
9239 } else {
9240 int status;
9241 struct stat st;
9242
9243 while (wait(&status) != child)
9244 ;
9245 return (
9246 /* Was there some problem with vforking? */
9247 child < 0
9248
9249 /* Did the child fail? (This shouldn't happen.) */
9250 || status
9251
9252 /* Did the vfork/compiler bug occur? */
9253 || parent != getpid()
9254
9255 /* Did the file descriptor bug occur? */
9256 || fstat(fileno(stdout), &st) != 0
9257 );
9258 }
9259 }
9260 _ACEOF
9261 if ac_fn_c_try_run "$LINENO"; then :
9262 ac_cv_func_vfork_works=yes
9263 else
9264 ac_cv_func_vfork_works=no
9265 fi
9266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9267 conftest.$ac_objext conftest.beam conftest.$ac_ext
9268 fi
9269
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
9272 $as_echo "$ac_cv_func_vfork_works" >&6; }
9273
9274 fi;
9275 if test "x$ac_cv_func_fork_works" = xcross; then
9276 ac_cv_func_vfork_works=$ac_cv_func_vfork
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
9278 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
9279 fi
9280
9281 if test "x$ac_cv_func_vfork_works" = xyes; then
9282
9283 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
9284
9285 else
9286
9287 $as_echo "#define vfork fork" >>confdefs.h
9288
9289 fi
9290 if test "x$ac_cv_func_fork_works" = xyes; then
9291
9292 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
9293
9294 fi
9295
9296
9297
9298 if test "X$prefix" = "XNONE"; then
9299 acl_final_prefix="$ac_default_prefix"
9300 else
9301 acl_final_prefix="$prefix"
9302 fi
9303 if test "X$exec_prefix" = "XNONE"; then
9304 acl_final_exec_prefix='${prefix}'
9305 else
9306 acl_final_exec_prefix="$exec_prefix"
9307 fi
9308 acl_save_prefix="$prefix"
9309 prefix="$acl_final_prefix"
9310 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9311 prefix="$acl_save_prefix"
9312
9313
9314 # Check whether --with-gnu-ld was given.
9315 if test "${with_gnu_ld+set}" = set; then :
9316 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9317 else
9318 with_gnu_ld=no
9319 fi
9320
9321 # Prepare PATH_SEPARATOR.
9322 # The user is always right.
9323 if test "${PATH_SEPARATOR+set}" != set; then
9324 echo "#! /bin/sh" >conf$$.sh
9325 echo "exit 0" >>conf$$.sh
9326 chmod +x conf$$.sh
9327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9328 PATH_SEPARATOR=';'
9329 else
9330 PATH_SEPARATOR=:
9331 fi
9332 rm -f conf$$.sh
9333 fi
9334 ac_prog=ld
9335 if test "$GCC" = yes; then
9336 # Check if gcc -print-prog-name=ld gives a path.
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9338 $as_echo_n "checking for ld used by GCC... " >&6; }
9339 case $host in
9340 *-*-mingw*)
9341 # gcc leaves a trailing carriage return which upsets mingw
9342 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9343 *)
9344 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9345 esac
9346 case $ac_prog in
9347 # Accept absolute paths.
9348 [\\/]* | [A-Za-z]:[\\/]*)
9349 re_direlt='/[^/][^/]*/\.\./'
9350 # Canonicalize the path of ld
9351 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9352 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9353 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9354 done
9355 test -z "$LD" && LD="$ac_prog"
9356 ;;
9357 "")
9358 # If it fails, then pretend we aren't using GCC.
9359 ac_prog=ld
9360 ;;
9361 *)
9362 # If it is relative, then search for the first ld in PATH.
9363 with_gnu_ld=unknown
9364 ;;
9365 esac
9366 elif test "$with_gnu_ld" = yes; then
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9368 $as_echo_n "checking for GNU ld... " >&6; }
9369 else
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9371 $as_echo_n "checking for non-GNU ld... " >&6; }
9372 fi
9373 if test "${acl_cv_path_LD+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 if test -z "$LD"; then
9377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9378 for ac_dir in $PATH; do
9379 test -z "$ac_dir" && ac_dir=.
9380 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9381 acl_cv_path_LD="$ac_dir/$ac_prog"
9382 # Check to see if the program is GNU ld. I'd rather use --version,
9383 # but apparently some GNU ld's only accept -v.
9384 # Break only if it was the GNU/non-GNU ld that we prefer.
9385 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9386 test "$with_gnu_ld" != no && break
9387 else
9388 test "$with_gnu_ld" != yes && break
9389 fi
9390 fi
9391 done
9392 IFS="$ac_save_ifs"
9393 else
9394 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9395 fi
9396 fi
9397
9398 LD="$acl_cv_path_LD"
9399 if test -n "$LD"; then
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9401 $as_echo "$LD" >&6; }
9402 else
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9408 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9409 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9410 $as_echo_n "(cached) " >&6
9411 else
9412 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9413 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9414 acl_cv_prog_gnu_ld=yes
9415 else
9416 acl_cv_prog_gnu_ld=no
9417 fi
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9420 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9421 with_gnu_ld=$acl_cv_prog_gnu_ld
9422
9423
9424
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9426 $as_echo_n "checking for shared library run path origin... " >&6; }
9427 if test "${acl_cv_rpath+set}" = set; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430
9431 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9432 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9433 . ./conftest.sh
9434 rm -f ./conftest.sh
9435 acl_cv_rpath=done
9436
9437 fi
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9439 $as_echo "$acl_cv_rpath" >&6; }
9440 wl="$acl_cv_wl"
9441 libext="$acl_cv_libext"
9442 shlibext="$acl_cv_shlibext"
9443 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9444 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9445 hardcode_direct="$acl_cv_hardcode_direct"
9446 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9447 # Check whether --enable-rpath was given.
9448 if test "${enable_rpath+set}" = set; then :
9449 enableval=$enable_rpath; :
9450 else
9451 enable_rpath=yes
9452 fi
9453
9454
9455
9456
9457
9458
9459
9460
9461 use_additional=yes
9462
9463 acl_save_prefix="$prefix"
9464 prefix="$acl_final_prefix"
9465 acl_save_exec_prefix="$exec_prefix"
9466 exec_prefix="$acl_final_exec_prefix"
9467
9468 eval additional_includedir=\"$includedir\"
9469 eval additional_libdir=\"$libdir\"
9470
9471 exec_prefix="$acl_save_exec_prefix"
9472 prefix="$acl_save_prefix"
9473
9474
9475 # Check whether --with-libiconv-prefix was given.
9476 if test "${with_libiconv_prefix+set}" = set; then :
9477 withval=$with_libiconv_prefix;
9478 if test "X$withval" = "Xno"; then
9479 use_additional=no
9480 else
9481 if test "X$withval" = "X"; then
9482
9483 acl_save_prefix="$prefix"
9484 prefix="$acl_final_prefix"
9485 acl_save_exec_prefix="$exec_prefix"
9486 exec_prefix="$acl_final_exec_prefix"
9487
9488 eval additional_includedir=\"$includedir\"
9489 eval additional_libdir=\"$libdir\"
9490
9491 exec_prefix="$acl_save_exec_prefix"
9492 prefix="$acl_save_prefix"
9493
9494 else
9495 additional_includedir="$withval/include"
9496 additional_libdir="$withval/lib"
9497 fi
9498 fi
9499
9500 fi
9501
9502 LIBICONV=
9503 LTLIBICONV=
9504 INCICONV=
9505 rpathdirs=
9506 ltrpathdirs=
9507 names_already_handled=
9508 names_next_round='iconv '
9509 while test -n "$names_next_round"; do
9510 names_this_round="$names_next_round"
9511 names_next_round=
9512 for name in $names_this_round; do
9513 already_handled=
9514 for n in $names_already_handled; do
9515 if test "$n" = "$name"; then
9516 already_handled=yes
9517 break
9518 fi
9519 done
9520 if test -z "$already_handled"; then
9521 names_already_handled="$names_already_handled $name"
9522 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9523 eval value=\"\$HAVE_LIB$uppername\"
9524 if test -n "$value"; then
9525 if test "$value" = yes; then
9526 eval value=\"\$LIB$uppername\"
9527 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9528 eval value=\"\$LTLIB$uppername\"
9529 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9530 else
9531 :
9532 fi
9533 else
9534 found_dir=
9535 found_la=
9536 found_so=
9537 found_a=
9538 if test $use_additional = yes; then
9539 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9540 found_dir="$additional_libdir"
9541 found_so="$additional_libdir/lib$name.$shlibext"
9542 if test -f "$additional_libdir/lib$name.la"; then
9543 found_la="$additional_libdir/lib$name.la"
9544 fi
9545 else
9546 if test -f "$additional_libdir/lib$name.$libext"; then
9547 found_dir="$additional_libdir"
9548 found_a="$additional_libdir/lib$name.$libext"
9549 if test -f "$additional_libdir/lib$name.la"; then
9550 found_la="$additional_libdir/lib$name.la"
9551 fi
9552 fi
9553 fi
9554 fi
9555 if test "X$found_dir" = "X"; then
9556 for x in $LDFLAGS $LTLIBICONV; do
9557
9558 acl_save_prefix="$prefix"
9559 prefix="$acl_final_prefix"
9560 acl_save_exec_prefix="$exec_prefix"
9561 exec_prefix="$acl_final_exec_prefix"
9562 eval x=\"$x\"
9563 exec_prefix="$acl_save_exec_prefix"
9564 prefix="$acl_save_prefix"
9565
9566 case "$x" in
9567 -L*)
9568 dir=`echo "X$x" | sed -e 's/^X-L//'`
9569 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9570 found_dir="$dir"
9571 found_so="$dir/lib$name.$shlibext"
9572 if test -f "$dir/lib$name.la"; then
9573 found_la="$dir/lib$name.la"
9574 fi
9575 else
9576 if test -f "$dir/lib$name.$libext"; then
9577 found_dir="$dir"
9578 found_a="$dir/lib$name.$libext"
9579 if test -f "$dir/lib$name.la"; then
9580 found_la="$dir/lib$name.la"
9581 fi
9582 fi
9583 fi
9584 ;;
9585 esac
9586 if test "X$found_dir" != "X"; then
9587 break
9588 fi
9589 done
9590 fi
9591 if test "X$found_dir" != "X"; then
9592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9593 if test "X$found_so" != "X"; then
9594 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9595 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9596 else
9597 haveit=
9598 for x in $ltrpathdirs; do
9599 if test "X$x" = "X$found_dir"; then
9600 haveit=yes
9601 break
9602 fi
9603 done
9604 if test -z "$haveit"; then
9605 ltrpathdirs="$ltrpathdirs $found_dir"
9606 fi
9607 if test "$hardcode_direct" = yes; then
9608 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9609 else
9610 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9611 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9612 haveit=
9613 for x in $rpathdirs; do
9614 if test "X$x" = "X$found_dir"; then
9615 haveit=yes
9616 break
9617 fi
9618 done
9619 if test -z "$haveit"; then
9620 rpathdirs="$rpathdirs $found_dir"
9621 fi
9622 else
9623 haveit=
9624 for x in $LDFLAGS $LIBICONV; do
9625
9626 acl_save_prefix="$prefix"
9627 prefix="$acl_final_prefix"
9628 acl_save_exec_prefix="$exec_prefix"
9629 exec_prefix="$acl_final_exec_prefix"
9630 eval x=\"$x\"
9631 exec_prefix="$acl_save_exec_prefix"
9632 prefix="$acl_save_prefix"
9633
9634 if test "X$x" = "X-L$found_dir"; then
9635 haveit=yes
9636 break
9637 fi
9638 done
9639 if test -z "$haveit"; then
9640 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9641 fi
9642 if test "$hardcode_minus_L" != no; then
9643 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9644 else
9645 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9646 fi
9647 fi
9648 fi
9649 fi
9650 else
9651 if test "X$found_a" != "X"; then
9652 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9653 else
9654 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9655 fi
9656 fi
9657 additional_includedir=
9658 case "$found_dir" in
9659 */lib | */lib/)
9660 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9661 additional_includedir="$basedir/include"
9662 ;;
9663 esac
9664 if test "X$additional_includedir" != "X"; then
9665 if test "X$additional_includedir" != "X/usr/include"; then
9666 haveit=
9667 if test "X$additional_includedir" = "X/usr/local/include"; then
9668 if test -n "$GCC"; then
9669 case $host_os in
9670 linux*) haveit=yes;;
9671 esac
9672 fi
9673 fi
9674 if test -z "$haveit"; then
9675 for x in $CPPFLAGS $INCICONV; do
9676
9677 acl_save_prefix="$prefix"
9678 prefix="$acl_final_prefix"
9679 acl_save_exec_prefix="$exec_prefix"
9680 exec_prefix="$acl_final_exec_prefix"
9681 eval x=\"$x\"
9682 exec_prefix="$acl_save_exec_prefix"
9683 prefix="$acl_save_prefix"
9684
9685 if test "X$x" = "X-I$additional_includedir"; then
9686 haveit=yes
9687 break
9688 fi
9689 done
9690 if test -z "$haveit"; then
9691 if test -d "$additional_includedir"; then
9692 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9693 fi
9694 fi
9695 fi
9696 fi
9697 fi
9698 if test -n "$found_la"; then
9699 save_libdir="$libdir"
9700 case "$found_la" in
9701 */* | *\\*) . "$found_la" ;;
9702 *) . "./$found_la" ;;
9703 esac
9704 libdir="$save_libdir"
9705 for dep in $dependency_libs; do
9706 case "$dep" in
9707 -L*)
9708 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9709 if test "X$additional_libdir" != "X/usr/lib"; then
9710 haveit=
9711 if test "X$additional_libdir" = "X/usr/local/lib"; then
9712 if test -n "$GCC"; then
9713 case $host_os in
9714 linux*) haveit=yes;;
9715 esac
9716 fi
9717 fi
9718 if test -z "$haveit"; then
9719 haveit=
9720 for x in $LDFLAGS $LIBICONV; do
9721
9722 acl_save_prefix="$prefix"
9723 prefix="$acl_final_prefix"
9724 acl_save_exec_prefix="$exec_prefix"
9725 exec_prefix="$acl_final_exec_prefix"
9726 eval x=\"$x\"
9727 exec_prefix="$acl_save_exec_prefix"
9728 prefix="$acl_save_prefix"
9729
9730 if test "X$x" = "X-L$additional_libdir"; then
9731 haveit=yes
9732 break
9733 fi
9734 done
9735 if test -z "$haveit"; then
9736 if test -d "$additional_libdir"; then
9737 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9738 fi
9739 fi
9740 haveit=
9741 for x in $LDFLAGS $LTLIBICONV; do
9742
9743 acl_save_prefix="$prefix"
9744 prefix="$acl_final_prefix"
9745 acl_save_exec_prefix="$exec_prefix"
9746 exec_prefix="$acl_final_exec_prefix"
9747 eval x=\"$x\"
9748 exec_prefix="$acl_save_exec_prefix"
9749 prefix="$acl_save_prefix"
9750
9751 if test "X$x" = "X-L$additional_libdir"; then
9752 haveit=yes
9753 break
9754 fi
9755 done
9756 if test -z "$haveit"; then
9757 if test -d "$additional_libdir"; then
9758 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9759 fi
9760 fi
9761 fi
9762 fi
9763 ;;
9764 -R*)
9765 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9766 if test "$enable_rpath" != no; then
9767 haveit=
9768 for x in $rpathdirs; do
9769 if test "X$x" = "X$dir"; then
9770 haveit=yes
9771 break
9772 fi
9773 done
9774 if test -z "$haveit"; then
9775 rpathdirs="$rpathdirs $dir"
9776 fi
9777 haveit=
9778 for x in $ltrpathdirs; do
9779 if test "X$x" = "X$dir"; then
9780 haveit=yes
9781 break
9782 fi
9783 done
9784 if test -z "$haveit"; then
9785 ltrpathdirs="$ltrpathdirs $dir"
9786 fi
9787 fi
9788 ;;
9789 -l*)
9790 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9791 ;;
9792 *.la)
9793 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9794 ;;
9795 *)
9796 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9797 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9798 ;;
9799 esac
9800 done
9801 fi
9802 else
9803 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9804 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9805 fi
9806 fi
9807 fi
9808 done
9809 done
9810 if test "X$rpathdirs" != "X"; then
9811 if test -n "$hardcode_libdir_separator"; then
9812 alldirs=
9813 for found_dir in $rpathdirs; do
9814 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9815 done
9816 acl_save_libdir="$libdir"
9817 libdir="$alldirs"
9818 eval flag=\"$hardcode_libdir_flag_spec\"
9819 libdir="$acl_save_libdir"
9820 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9821 else
9822 for found_dir in $rpathdirs; do
9823 acl_save_libdir="$libdir"
9824 libdir="$found_dir"
9825 eval flag=\"$hardcode_libdir_flag_spec\"
9826 libdir="$acl_save_libdir"
9827 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9828 done
9829 fi
9830 fi
9831 if test "X$ltrpathdirs" != "X"; then
9832 for found_dir in $ltrpathdirs; do
9833 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9834 done
9835 fi
9836
9837
9838
9839
9840
9841
9842
9843 am_save_CPPFLAGS="$CPPFLAGS"
9844
9845 for element in $INCICONV; do
9846 haveit=
9847 for x in $CPPFLAGS; do
9848
9849 acl_save_prefix="$prefix"
9850 prefix="$acl_final_prefix"
9851 acl_save_exec_prefix="$exec_prefix"
9852 exec_prefix="$acl_final_exec_prefix"
9853 eval x=\"$x\"
9854 exec_prefix="$acl_save_exec_prefix"
9855 prefix="$acl_save_prefix"
9856
9857 if test "X$x" = "X$element"; then
9858 haveit=yes
9859 break
9860 fi
9861 done
9862 if test -z "$haveit"; then
9863 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9864 fi
9865 done
9866
9867
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9869 $as_echo_n "checking for iconv... " >&6; }
9870 if test "${am_cv_func_iconv+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
9872 else
9873
9874 am_cv_func_iconv="no, consider installing GNU libiconv"
9875 am_cv_lib_iconv=no
9876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9877 /* end confdefs.h. */
9878 #include <stdlib.h>
9879 #include <iconv.h>
9880 int
9881 main ()
9882 {
9883 iconv_t cd = iconv_open("","");
9884 iconv(cd,NULL,NULL,NULL,NULL);
9885 iconv_close(cd);
9886 ;
9887 return 0;
9888 }
9889 _ACEOF
9890 if ac_fn_c_try_link "$LINENO"; then :
9891 am_cv_func_iconv=yes
9892 fi
9893 rm -f core conftest.err conftest.$ac_objext \
9894 conftest$ac_exeext conftest.$ac_ext
9895 if test "$am_cv_func_iconv" != yes; then
9896 am_save_LIBS="$LIBS"
9897 LIBS="$LIBS $LIBICONV"
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900 #include <stdlib.h>
9901 #include <iconv.h>
9902 int
9903 main ()
9904 {
9905 iconv_t cd = iconv_open("","");
9906 iconv(cd,NULL,NULL,NULL,NULL);
9907 iconv_close(cd);
9908 ;
9909 return 0;
9910 }
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"; then :
9913 am_cv_lib_iconv=yes
9914 am_cv_func_iconv=yes
9915 fi
9916 rm -f core conftest.err conftest.$ac_objext \
9917 conftest$ac_exeext conftest.$ac_ext
9918 LIBS="$am_save_LIBS"
9919 fi
9920
9921 fi
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9923 $as_echo "$am_cv_func_iconv" >&6; }
9924 if test "$am_cv_func_iconv" = yes; then
9925
9926 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9927
9928 fi
9929 if test "$am_cv_lib_iconv" = yes; then
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9931 $as_echo_n "checking how to link with libiconv... " >&6; }
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9933 $as_echo "$LIBICONV" >&6; }
9934 else
9935 CPPFLAGS="$am_save_CPPFLAGS"
9936 LIBICONV=
9937 LTLIBICONV=
9938 fi
9939
9940
9941
9942 if test "$am_cv_func_iconv" = yes; then
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9944 $as_echo_n "checking for iconv declaration... " >&6; }
9945 if test "${am_cv_proto_iconv+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
9947 else
9948
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9951
9952 #include <stdlib.h>
9953 #include <iconv.h>
9954 extern
9955 #ifdef __cplusplus
9956 "C"
9957 #endif
9958 #if defined(__STDC__) || defined(__cplusplus)
9959 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9960 #else
9961 size_t iconv();
9962 #endif
9963
9964 int
9965 main ()
9966 {
9967
9968 ;
9969 return 0;
9970 }
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973 am_cv_proto_iconv_arg1=""
9974 else
9975 am_cv_proto_iconv_arg1="const"
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9979 fi
9980
9981 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9983 }$am_cv_proto_iconv" >&5
9984 $as_echo "${ac_t:-
9985 }$am_cv_proto_iconv" >&6; }
9986
9987 cat >>confdefs.h <<_ACEOF
9988 #define ICONV_CONST $am_cv_proto_iconv_arg1
9989 _ACEOF
9990
9991 fi
9992
9993 # Until we have in-tree GNU iconv:
9994 LIBICONV_DEP=
9995
9996
9997
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9999 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10000 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
10002 else
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 #include <locale.h>
10006 int
10007 main ()
10008 {
10009 return LC_MESSAGES
10010 ;
10011 return 0;
10012 }
10013 _ACEOF
10014 if ac_fn_c_try_link "$LINENO"; then :
10015 am_cv_val_LC_MESSAGES=yes
10016 else
10017 am_cv_val_LC_MESSAGES=no
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021 fi
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10023 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10024 if test $am_cv_val_LC_MESSAGES = yes; then
10025
10026 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10027
10028 fi
10029
10030
10031
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10033 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10034 if test "${am_cv_langinfo_codeset+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10039 #include <langinfo.h>
10040 int
10041 main ()
10042 {
10043 char* cs = nl_langinfo(CODESET);
10044 ;
10045 return 0;
10046 }
10047 _ACEOF
10048 if ac_fn_c_try_link "$LINENO"; then :
10049 am_cv_langinfo_codeset=yes
10050 else
10051 am_cv_langinfo_codeset=no
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext \
10054 conftest$ac_exeext conftest.$ac_ext
10055
10056 fi
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10058 $as_echo "$am_cv_langinfo_codeset" >&6; }
10059 if test $am_cv_langinfo_codeset = yes; then
10060
10061 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10062
10063 fi
10064
10065
10066 # We will need to find libiberty.h and ansidecl.h
10067 saved_CFLAGS="$CFLAGS"
10068 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
10069 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
10070 strsignal strstr strverscmp \
10071 errno snprintf vsnprintf vasprintf malloc realloc calloc \
10072 free basename getopt clock getpagesize clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
10073 do
10074 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10076 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10077 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 #undef $ac_tr_decl
10083 #define $ac_tr_decl 1
10084
10085 #include "ansidecl.h"
10086 #include "system.h"
10087
10088 int
10089 main ()
10090 {
10091 #ifndef $ac_func
10092 char *(*pfn) = (char *(*)) $ac_func ;
10093 #endif
10094 ;
10095 return 0;
10096 }
10097 _ACEOF
10098 if ac_fn_c_try_compile "$LINENO"; then :
10099 eval "gcc_cv_have_decl_$ac_func=yes"
10100 else
10101 eval "gcc_cv_have_decl_$ac_func=no"
10102 fi
10103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10104 fi
10105
10106 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10108 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10109 #define $ac_tr_decl 1
10110 _ACEOF
10111
10112 else
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10114 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10115 #define $ac_tr_decl 0
10116 _ACEOF
10117
10118 fi
10119
10120 done
10121
10122
10123 for ac_func in getrlimit setrlimit getrusage
10124 do
10125 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10127 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10128 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10129 $as_echo_n "(cached) " >&6
10130 else
10131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10132 /* end confdefs.h. */
10133 #undef $ac_tr_decl
10134 #define $ac_tr_decl 1
10135
10136 #include "ansidecl.h"
10137 #include "system.h"
10138 #ifdef HAVE_SYS_RESOURCE_H
10139 #include <sys/resource.h>
10140 #endif
10141
10142
10143 int
10144 main ()
10145 {
10146 #ifndef $ac_func
10147 char *(*pfn) = (char *(*)) $ac_func ;
10148 #endif
10149 ;
10150 return 0;
10151 }
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154 eval "gcc_cv_have_decl_$ac_func=yes"
10155 else
10156 eval "gcc_cv_have_decl_$ac_func=no"
10157 fi
10158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10159 fi
10160
10161 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10163 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10164 #define $ac_tr_decl 1
10165 _ACEOF
10166
10167 else
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10170 #define $ac_tr_decl 0
10171 _ACEOF
10172
10173 fi
10174
10175 done
10176
10177
10178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10179 /* end confdefs.h. */
10180
10181 #include "ansidecl.h"
10182 #include "system.h"
10183 #ifdef HAVE_SYS_RESOURCE_H
10184 #include <sys/resource.h>
10185 #endif
10186
10187 int
10188 main ()
10189 {
10190 rlim_t l = 0;
10191 ;
10192 return 0;
10193 }
10194 _ACEOF
10195 if ac_fn_c_try_compile "$LINENO"; then :
10196
10197 else
10198
10199 $as_echo "#define rlim_t long" >>confdefs.h
10200
10201 fi
10202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10203
10204 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
10205 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
10206 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
10207 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
10208 for ac_func in ldgetname
10209 do
10210 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10212 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10213 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10214 $as_echo_n "(cached) " >&6
10215 else
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 #undef $ac_tr_decl
10219 #define $ac_tr_decl 1
10220
10221 #include "ansidecl.h"
10222 #include "system.h"
10223 #ifdef HAVE_LDFCN_H
10224 #undef FREAD
10225 #undef FWRITE
10226 #include <ldfcn.h>
10227 #endif
10228
10229
10230 int
10231 main ()
10232 {
10233 #ifndef $ac_func
10234 char *(*pfn) = (char *(*)) $ac_func ;
10235 #endif
10236 ;
10237 return 0;
10238 }
10239 _ACEOF
10240 if ac_fn_c_try_compile "$LINENO"; then :
10241 eval "gcc_cv_have_decl_$ac_func=yes"
10242 else
10243 eval "gcc_cv_have_decl_$ac_func=no"
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10246 fi
10247
10248 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10250 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10251 #define $ac_tr_decl 1
10252 _ACEOF
10253
10254 else
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10257 #define $ac_tr_decl 0
10258 _ACEOF
10259
10260 fi
10261
10262 done
10263
10264
10265 for ac_func in times
10266 do
10267 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10269 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10270 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #undef $ac_tr_decl
10276 #define $ac_tr_decl 1
10277
10278 #include "ansidecl.h"
10279 #include "system.h"
10280 #ifdef HAVE_SYS_TIMES_H
10281 #include <sys/times.h>
10282 #endif
10283
10284
10285 int
10286 main ()
10287 {
10288 #ifndef $ac_func
10289 char *(*pfn) = (char *(*)) $ac_func ;
10290 #endif
10291 ;
10292 return 0;
10293 }
10294 _ACEOF
10295 if ac_fn_c_try_compile "$LINENO"; then :
10296 eval "gcc_cv_have_decl_$ac_func=yes"
10297 else
10298 eval "gcc_cv_have_decl_$ac_func=no"
10299 fi
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301 fi
10302
10303 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10306 #define $ac_tr_decl 1
10307 _ACEOF
10308
10309 else
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10312 #define $ac_tr_decl 0
10313 _ACEOF
10314
10315 fi
10316
10317 done
10318
10319
10320 for ac_func in sigaltstack
10321 do
10322 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10324 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10325 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10326 $as_echo_n "(cached) " >&6
10327 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 #undef $ac_tr_decl
10331 #define $ac_tr_decl 1
10332
10333 #include "ansidecl.h"
10334 #include "system.h"
10335 #include <signal.h>
10336
10337
10338 int
10339 main ()
10340 {
10341 #ifndef $ac_func
10342 char *(*pfn) = (char *(*)) $ac_func ;
10343 #endif
10344 ;
10345 return 0;
10346 }
10347 _ACEOF
10348 if ac_fn_c_try_compile "$LINENO"; then :
10349 eval "gcc_cv_have_decl_$ac_func=yes"
10350 else
10351 eval "gcc_cv_have_decl_$ac_func=no"
10352 fi
10353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10354 fi
10355
10356 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10358 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10359 #define $ac_tr_decl 1
10360 _ACEOF
10361
10362 else
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10365 #define $ac_tr_decl 0
10366 _ACEOF
10367
10368 fi
10369
10370 done
10371
10372
10373 # More time-related stuff.
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10375 $as_echo_n "checking for struct tms... " >&6; }
10376 if test "${ac_cv_struct_tms+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
10378 else
10379
10380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10381 /* end confdefs.h. */
10382
10383 #include "ansidecl.h"
10384 #include "system.h"
10385 #ifdef HAVE_SYS_TIMES_H
10386 #include <sys/times.h>
10387 #endif
10388
10389 int
10390 main ()
10391 {
10392 struct tms tms;
10393 ;
10394 return 0;
10395 }
10396 _ACEOF
10397 if ac_fn_c_try_compile "$LINENO"; then :
10398 ac_cv_struct_tms=yes
10399 else
10400 ac_cv_struct_tms=no
10401 fi
10402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10403 fi
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10405 $as_echo "$ac_cv_struct_tms" >&6; }
10406 if test $ac_cv_struct_tms = yes; then
10407
10408 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10409
10410 fi
10411
10412 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10413 # revisit after autoconf 2.50.
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10415 $as_echo_n "checking for clock_t... " >&6; }
10416 if test "${gcc_cv_type_clock_t+set}" = set; then :
10417 $as_echo_n "(cached) " >&6
10418 else
10419
10420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10421 /* end confdefs.h. */
10422
10423 #include "ansidecl.h"
10424 #include "system.h"
10425
10426 int
10427 main ()
10428 {
10429 clock_t x;
10430 ;
10431 return 0;
10432 }
10433 _ACEOF
10434 if ac_fn_c_try_compile "$LINENO"; then :
10435 gcc_cv_type_clock_t=yes
10436 else
10437 gcc_cv_type_clock_t=no
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 fi
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10442 $as_echo "$gcc_cv_type_clock_t" >&6; }
10443 if test $gcc_cv_type_clock_t = yes; then
10444
10445 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10446
10447 fi
10448
10449 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10450 CFLAGS="$saved_CFLAGS"
10451
10452 # Check whether --enable-initfini-array was given.
10453 if test "${enable_initfini_array+set}" = set; then :
10454 enableval=$enable_initfini_array;
10455 else
10456
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10458 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10459 if test "${gcc_cv_initfini_array+set}" = set; then :
10460 $as_echo_n "(cached) " >&6
10461 else
10462 if test "x${build}" = "x${target}" && test "x${build}" = "x${host}"; then
10463 if test "$cross_compiling" = yes; then :
10464 gcc_cv_initfini_array=no
10465 else
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468
10469 #ifdef __ia64__
10470 /* We turn on .preinit_array/.init_array/.fini_array support for ia64
10471 if it can be used. */
10472 static int x = -1;
10473 int main (void) { return x; }
10474 int foo (void) { x = 0; }
10475 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10476 #else
10477 extern void abort ();
10478 static int count;
10479
10480 static void
10481 init1005 ()
10482 {
10483 if (count != 0)
10484 abort ();
10485 count = 1005;
10486 }
10487 void (*const init_array1005) ()
10488 __attribute__ ((section (".init_array.01005"), aligned (sizeof (void *))))
10489 = { init1005 };
10490 static void
10491 fini1005 ()
10492 {
10493 if (count != 1005)
10494 abort ();
10495 }
10496 void (*const fini_array1005) ()
10497 __attribute__ ((section (".fini_array.01005"), aligned (sizeof (void *))))
10498 = { fini1005 };
10499
10500 static void
10501 ctor1007 ()
10502 {
10503 if (count != 1005)
10504 abort ();
10505 count = 1007;
10506 }
10507 void (*const ctors1007) ()
10508 __attribute__ ((section (".ctors.64528"), aligned (sizeof (void *))))
10509 = { ctor1007 };
10510 static void
10511 dtor1007 ()
10512 {
10513 if (count != 1007)
10514 abort ();
10515 count = 1005;
10516 }
10517 void (*const dtors1007) ()
10518 __attribute__ ((section (".dtors.64528"), aligned (sizeof (void *))))
10519 = { dtor1007 };
10520
10521 static void
10522 init65530 ()
10523 {
10524 if (count != 1007)
10525 abort ();
10526 count = 65530;
10527 }
10528 void (*const init_array65530) ()
10529 __attribute__ ((section (".init_array.65530"), aligned (sizeof (void *))))
10530 = { init65530 };
10531 static void
10532 fini65530 ()
10533 {
10534 if (count != 65530)
10535 abort ();
10536 count = 1007;
10537 }
10538 void (*const fini_array65530) ()
10539 __attribute__ ((section (".fini_array.65530"), aligned (sizeof (void *))))
10540 = { fini65530 };
10541
10542 static void
10543 ctor65535 ()
10544 {
10545 if (count != 65530)
10546 abort ();
10547 count = 65535;
10548 }
10549 void (*const ctors65535) ()
10550 __attribute__ ((section (".ctors"), aligned (sizeof (void *))))
10551 = { ctor65535 };
10552 static void
10553 dtor65535 ()
10554 {
10555 if (count != 65535)
10556 abort ();
10557 count = 65530;
10558 }
10559 void (*const dtors65535) ()
10560 __attribute__ ((section (".dtors"), aligned (sizeof (void *))))
10561 = { dtor65535 };
10562
10563 int
10564 main ()
10565 {
10566 return 0;
10567 }
10568 #endif
10569
10570 _ACEOF
10571 if ac_fn_c_try_run "$LINENO"; then :
10572 gcc_cv_initfini_array=yes
10573 else
10574 gcc_cv_initfini_array=no
10575 fi
10576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10577 conftest.$ac_objext conftest.beam conftest.$ac_ext
10578 fi
10579
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cross compile... guessing" >&5
10582 $as_echo_n "checking cross compile... guessing... " >&6; }
10583 gcc_cv_initfini_array=no
10584 fi
10585 fi
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10587 $as_echo "$gcc_cv_initfini_array" >&6; }
10588 enable_initfini_array=$gcc_cv_initfini_array
10589
10590 fi
10591
10592 if test $enable_initfini_array = yes; then
10593
10594 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10595
10596 fi
10597
10598 # mkdir takes a single argument on some systems.
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10600 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10601 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606
10607 #include <sys/types.h>
10608 #ifdef HAVE_SYS_STAT_H
10609 # include <sys/stat.h>
10610 #endif
10611 #ifdef HAVE_UNISTD_H
10612 # include <unistd.h>
10613 #endif
10614 #ifdef HAVE_DIRECT_H
10615 # include <direct.h>
10616 #endif
10617 int
10618 main ()
10619 {
10620 mkdir ("foo", 0);
10621 ;
10622 return 0;
10623 }
10624 _ACEOF
10625 if ac_fn_c_try_compile "$LINENO"; then :
10626 gcc_cv_mkdir_takes_one_arg=no
10627 else
10628 gcc_cv_mkdir_takes_one_arg=yes
10629 fi
10630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10631 fi
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10633 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10634 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10635
10636 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10637
10638 fi
10639
10640
10641 # File extensions
10642 manext='.1'
10643 objext='.o'
10644
10645
10646
10647 # With Setjmp/Longjmp based exception handling.
10648 # Check whether --enable-sjlj-exceptions was given.
10649 if test "${enable_sjlj_exceptions+set}" = set; then :
10650 enableval=$enable_sjlj_exceptions; case $target in
10651 *-*-hpux10*)
10652 if test $enableval != yes; then
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10654 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10655 enableval=yes
10656 fi
10657 ;;
10658 esac
10659 force_sjlj_exceptions=yes
10660 else
10661 case $target in
10662 *-*-hpux10*)
10663 force_sjlj_exceptions=yes
10664 enableval=yes
10665 ;;
10666 *)
10667 force_sjlj_exceptions=no
10668 ;;
10669 esac
10670 fi
10671
10672 if test $force_sjlj_exceptions = yes; then
10673 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10674
10675 cat >>confdefs.h <<_ACEOF
10676 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10677 _ACEOF
10678
10679 fi
10680
10681 # For platforms with the unwind ABI which includes an unwind library,
10682 # libunwind, we can choose to use the system libunwind.
10683 # config.gcc also contains tests of with_system_libunwind.
10684
10685
10686 # Check whether --with-system-libunwind was given.
10687 if test "${with_system_libunwind+set}" = set; then :
10688 withval=$with_system_libunwind;
10689 fi
10690
10691 # If system-libunwind was not specifically set, pick a default setting.
10692 if test x$with_system_libunwind = x; then
10693 case ${target} in
10694 ia64-*-hpux*) with_system_libunwind=yes ;;
10695 *) with_system_libunwind=no ;;
10696 esac
10697 fi
10698 # Based on system-libunwind and target, do we have ipinfo?
10699 if test x$with_system_libunwind = xyes; then
10700 case ${target} in
10701 ia64-*-*) have_unwind_getipinfo=no ;;
10702 *) have_unwind_getipinfo=yes ;;
10703 esac
10704 else
10705 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10706
10707 case ${target} in
10708 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10709 *) have_unwind_getipinfo=yes ;;
10710 esac
10711
10712 fi
10713
10714 if test x$have_unwind_getipinfo = xyes; then
10715
10716 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10717
10718 fi
10719
10720
10721 # --------------------------------------------------------
10722 # Build, host, and target specific configuration fragments
10723 # --------------------------------------------------------
10724
10725 # Collect build-machine-specific information.
10726 . ${srcdir}/config.build
10727
10728 # Collect host-machine-specific information.
10729 . ${srcdir}/config.host
10730
10731 target_gtfiles=
10732
10733 # Collect target-machine-specific information.
10734 . ${srcdir}/config.gcc
10735
10736 extra_objs="${host_extra_objs} ${extra_objs}"
10737 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10738
10739 # Default the target-machine variables that were not explicitly set.
10740 if test x"$tm_file" = x
10741 then tm_file=$cpu_type/$cpu_type.h; fi
10742
10743 if test x"$extra_headers" = x
10744 then extra_headers=; fi
10745
10746 if test x$md_file = x
10747 then md_file=$cpu_type/$cpu_type.md; fi
10748
10749 if test x$out_file = x
10750 then out_file=$cpu_type/$cpu_type.c; fi
10751
10752 if test x"$tmake_file" = x
10753 then tmake_file=$cpu_type/t-$cpu_type
10754 fi
10755
10756 if test x"$dwarf2" = xyes
10757 then tm_file="$tm_file tm-dwarf2.h"
10758 fi
10759
10760 # Say what files are being used for the output code and MD file.
10761 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10762 echo "Using \`$srcdir/config/$md_file' as machine description file."
10763
10764 # If any of the xm_file variables contain nonexistent files, warn
10765 # about them and drop them.
10766
10767 bx=
10768 for x in $build_xm_file; do
10769 if test -f $srcdir/config/$x
10770 then bx="$bx $x"
10771 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10772 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10773 fi
10774 done
10775 build_xm_file="$bx"
10776
10777 hx=
10778 for x in $host_xm_file; do
10779 if test -f $srcdir/config/$x
10780 then hx="$hx $x"
10781 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10782 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10783 fi
10784 done
10785 host_xm_file="$hx"
10786
10787 tx=
10788 for x in $xm_file; do
10789 if test -f $srcdir/config/$x
10790 then tx="$tx $x"
10791 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10792 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10793 fi
10794 done
10795 xm_file="$tx"
10796
10797 count=a
10798 for f in $tm_file; do
10799 count=${count}x
10800 done
10801 if test $count = ax; then
10802 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10803 else
10804 echo "Using the following target machine macro files:"
10805 for f in $tm_file; do
10806 echo " $srcdir/config/$f"
10807 done
10808 fi
10809
10810 if test x$need_64bit_hwint = xyes; then
10811
10812 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10813
10814 fi
10815
10816 if test x$use_long_long_for_widest_fast_int = xyes; then
10817
10818 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10819
10820 fi
10821
10822 count=a
10823 for f in $host_xm_file; do
10824 count=${count}x
10825 done
10826 if test $count = a; then
10827 :
10828 elif test $count = ax; then
10829 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10830 else
10831 echo "Using the following host machine macro files:"
10832 for f in $host_xm_file; do
10833 echo " $srcdir/config/$f"
10834 done
10835 fi
10836 echo "Using ${out_host_hook_obj} for host machine hooks."
10837
10838 if test "$host_xm_file" != "$build_xm_file"; then
10839 count=a
10840 for f in $build_xm_file; do
10841 count=${count}x
10842 done
10843 if test $count = a; then
10844 :
10845 elif test $count = ax; then
10846 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10847 else
10848 echo "Using the following build machine macro files:"
10849 for f in $build_xm_file; do
10850 echo " $srcdir/config/$f"
10851 done
10852 fi
10853 fi
10854
10855 case ${host} in
10856 powerpc*-*-darwin*)
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10858 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10859 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10863 /* end confdefs.h. */
10864
10865 #include <sys/cdefs.h>
10866 #include <sys/signal.h>
10867 #include <ucontext.h>
10868 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10869
10870 _ACEOF
10871 if ac_fn_c_try_compile "$LINENO"; then :
10872 gcc_cv_mcontext_underscores=no
10873 else
10874 gcc_cv_mcontext_underscores=yes
10875 fi
10876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10877 fi
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10879 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10880 if test $gcc_cv_mcontext_underscores = yes; then
10881
10882 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10883
10884 fi
10885 ;;
10886 esac
10887
10888 # ---------
10889 # Threading
10890 # ---------
10891
10892 # Check if a valid thread package
10893 case ${enable_threads} in
10894 "" | no)
10895 # No threads
10896 target_thread_file='single'
10897 ;;
10898 yes)
10899 # default
10900 target_thread_file='single'
10901 ;;
10902 aix | dce | lynx | mipssde | posix | posix95 | rtems | \
10903 single | tpf | vxworks | win32)
10904 target_thread_file=${enable_threads}
10905 ;;
10906 *)
10907 echo "${enable_threads} is an unknown thread package" 1>&2
10908 exit 1
10909 ;;
10910 esac
10911
10912 if test x${thread_file} = x; then
10913 # No thread file set by target-specific clauses in config.gcc,
10914 # so use file chosen by default logic above
10915 thread_file=${target_thread_file}
10916 fi
10917
10918 # Make gthr-default.h if we have a thread file.
10919 gthread_flags=
10920 if test $thread_file != single; then
10921 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10922 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10923 rm -f gthr-default.h-t
10924 else
10925 mv -f gthr-default.h-t gthr-default.h
10926 fi
10927 gthread_flags=-DHAVE_GTHR_DEFAULT
10928 fi
10929
10930
10931 # --------
10932 # UNSORTED
10933 # --------
10934
10935 use_cxa_atexit=no
10936 if test x$enable___cxa_atexit = xyes || \
10937 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10938 if test x$host = x$target; then
10939 case $host in
10940 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10941 # keyed to flag_use_cxa_atexit
10942 *-*-mingw32*)
10943 use_cxa_atexit=yes
10944 ;;
10945 *)
10946 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10947 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10948 use_cxa_atexit=yes
10949 else
10950 echo "__cxa_atexit can't be enabled on this target"
10951 fi
10952
10953 ;;
10954 esac
10955 else
10956 # We can't check for __cxa_atexit when building a cross, so assume
10957 # it is available
10958 use_cxa_atexit=yes
10959 fi
10960 if test x$use_cxa_atexit = xyes; then
10961
10962 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10963
10964 fi
10965 fi
10966
10967 # Look for a file containing extra machine modes.
10968 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10969 extra_modes_file='$(srcdir)'/config/${extra_modes}
10970
10971
10972 cat >>confdefs.h <<_ACEOF
10973 #define EXTRA_MODES_FILE "config/$extra_modes"
10974 _ACEOF
10975
10976 fi
10977
10978 # Convert extra_options into a form suitable for Makefile use.
10979 extra_opt_files=
10980 all_opt_files=
10981 for f in $extra_options; do
10982 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10983 all_opt_files="$all_opt_files $srcdir/config/$f"
10984 done
10985
10986
10987 # auto-host.h is the file containing items generated by autoconf and is
10988 # the first file included by config.h.
10989 # If host=build, it is correct to have bconfig include auto-host.h
10990 # as well. If host!=build, we are in error and need to do more
10991 # work to find out the build config parameters.
10992 if test x$host = x$build
10993 then
10994 build_auto=auto-host.h
10995 else
10996 # We create a subdir, then run autoconf in the subdir.
10997 # To prevent recursion we set host and build for the new
10998 # invocation of configure to the build for this invocation
10999 # of configure.
11000 tempdir=build.$$
11001 rm -rf $tempdir
11002 mkdir $tempdir
11003 cd $tempdir
11004 case ${srcdir} in
11005 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
11006 *) realsrcdir=../${srcdir};;
11007 esac
11008 saved_CFLAGS="${CFLAGS}"
11009 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
11010 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
11011 ${realsrcdir}/configure \
11012 --enable-languages=${enable_languages-all} \
11013 --target=$target_alias --host=$build_alias --build=$build_alias
11014 CFLAGS="${saved_CFLAGS}"
11015
11016 # We just finished tests for the build machine, so rename
11017 # the file auto-build.h in the gcc directory.
11018 mv auto-host.h ../auto-build.h
11019 cd ..
11020 rm -rf $tempdir
11021 build_auto=auto-build.h
11022 fi
11023
11024
11025 tm_file="${tm_file} defaults.h"
11026 tm_p_file="${tm_p_file} tm-preds.h"
11027 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
11028 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
11029 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
11030 # put this back in temporarily.
11031 xm_file="auto-host.h ansidecl.h ${xm_file}"
11032
11033 # --------
11034 # UNSORTED
11035 # --------
11036
11037 # Compile in configure arguments.
11038 if test -f configargs.h ; then
11039 # Being re-configured.
11040 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
11041 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
11042 else
11043 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
11044 fi
11045
11046 # Double all backslashes and backslash all quotes to turn
11047 # gcc_config_arguments into a C string.
11048 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
11049 $gcc_config_arguments
11050 EOF
11051 gcc_config_arguments_str=`cat conftest.out`
11052 rm -f conftest.out
11053
11054 cat > configargs.h <<EOF
11055 /* Generated automatically. */
11056 static const char configuration_arguments[] = "$gcc_config_arguments_str";
11057 static const char thread_model[] = "$thread_file";
11058
11059 static const struct {
11060 const char *name, *value;
11061 } configure_default_options[] = $configure_default_options;
11062 EOF
11063
11064 gcc_BASEVER=`cat $srcdir/BASE-VER`
11065 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
11066 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
11067 if test -f $srcdir/REVISION ; then
11068 gcc_REVISION=`cat $srcdir/REVISION`
11069 else
11070 gcc_REVISION=""
11071 fi
11072 cat > plugin-version.h <<EOF
11073 #include "configargs.h"
11074
11075 #define GCCPLUGIN_VERSION_MAJOR `echo $gcc_BASEVER | sed -e 's/^\([0-9]*\).*$/\1/'`
11076 #define GCCPLUGIN_VERSION_MINOR `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.\([0-9]*\).*$/\1/'`
11077 #define GCCPLUGIN_VERSION_PATCHLEVEL `echo $gcc_BASEVER | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$/\1/'`
11078 #define GCCPLUGIN_VERSION (GCCPLUGIN_VERSION_MAJOR*1000 + GCCPLUGIN_VERSION_MINOR)
11079
11080 static char basever[] = "$gcc_BASEVER";
11081 static char datestamp[] = "$gcc_DATESTAMP";
11082 static char devphase[] = "$gcc_DEVPHASE";
11083 static char revision[] = "$gcc_REVISION";
11084
11085 /* FIXME plugins: We should make the version information more precise.
11086 One way to do is to add a checksum. */
11087
11088 static struct plugin_gcc_version gcc_version = {basever, datestamp,
11089 devphase, revision,
11090 configuration_arguments};
11091 EOF
11092
11093 # Internationalization
11094 # If we haven't got the data from the intl directory,
11095 # assume NLS is disabled.
11096 USE_NLS=no
11097 LIBINTL=
11098 LIBINTL_DEP=
11099 INCINTL=
11100 XGETTEXT=
11101 GMSGFMT=
11102 POSUB=
11103
11104 if test -f ../intl/config.intl; then
11105 . ../intl/config.intl
11106 fi
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11108 $as_echo_n "checking whether NLS is requested... " >&6; }
11109 if test x"$USE_NLS" != xyes; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11112 else
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11114 $as_echo "yes" >&6; }
11115
11116 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
11117
11118
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
11120 $as_echo_n "checking for catalogs to be installed... " >&6; }
11121 # Look for .po and .gmo files in the source directory.
11122 CATALOGS=
11123 XLINGUAS=
11124 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
11125 # If there aren't any .gmo files the shell will give us the
11126 # literal string "../path/to/srcdir/po/*.gmo" which has to be
11127 # weeded out.
11128 case "$cat" in *\**)
11129 continue;;
11130 esac
11131 # The quadruple backslash is collapsed to a double backslash
11132 # by the backticks, then collapsed again by the double quotes,
11133 # leaving us with one backslash in the sed expression (right
11134 # before the dot that mustn't act as a wildcard).
11135 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
11136 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
11137 # The user is allowed to set LINGUAS to a list of languages to
11138 # install catalogs for. If it's empty that means "all of them."
11139 if test "x$LINGUAS" = x; then
11140 CATALOGS="$CATALOGS $cat"
11141 XLINGUAS="$XLINGUAS $lang"
11142 else
11143 case "$LINGUAS" in *$lang*)
11144 CATALOGS="$CATALOGS $cat"
11145 XLINGUAS="$XLINGUAS $lang"
11146 ;;
11147 esac
11148 fi
11149 done
11150 LINGUAS="$XLINGUAS"
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
11152 $as_echo "$LINGUAS" >&6; }
11153
11154
11155 DATADIRNAME=share
11156
11157 INSTOBJEXT=.mo
11158
11159 GENCAT=gencat
11160
11161 CATOBJEXT=.gmo
11162
11163 fi
11164
11165 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
11166 # -liconv on the link line twice.
11167 case "$LIBINTL" in *$LIBICONV*)
11168 LIBICONV= ;;
11169 esac
11170
11171 # Check whether --enable-secureplt was given.
11172 if test "${enable_secureplt+set}" = set; then :
11173 enableval=$enable_secureplt;
11174 fi
11175
11176
11177 # Check whether --enable-leading-mingw64-underscores was given.
11178 if test "${enable_leading_mingw64_underscores+set}" = set; then :
11179 enableval=$enable_leading_mingw64_underscores;
11180 fi
11181
11182 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
11183
11184 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
11185
11186 fi
11187
11188 # Check whether --enable-cld was given.
11189 if test "${enable_cld+set}" = set; then :
11190 enableval=$enable_cld;
11191 else
11192 enable_cld=no
11193 fi
11194
11195
11196 # Check whether --enable-frame-pointer was given.
11197 if test "${enable_frame_pointer+set}" = set; then :
11198 enableval=$enable_frame_pointer;
11199 else
11200
11201 case $target_os in
11202 linux* | darwin[8912]*)
11203 # Enable -fomit-frame-pointer by default for Linux and Darwin with
11204 # DWARF2.
11205 enable_frame_pointer=no
11206 ;;
11207 *)
11208 enable_frame_pointer=yes
11209 ;;
11210 esac
11211
11212 fi
11213
11214
11215 # Windows32 Registry support for specifying GCC installation paths.
11216 # Check whether --enable-win32-registry was given.
11217 if test "${enable_win32_registry+set}" = set; then :
11218 enableval=$enable_win32_registry;
11219 fi
11220
11221
11222 case $host_os in
11223 win32 | pe | cygwin* | mingw32* | uwin*)
11224 if test "x$enable_win32_registry" != xno; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
11226 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
11227 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 ac_func_search_save_LIBS=$LIBS
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11233
11234 /* Override any GCC internal prototype to avoid an error.
11235 Use char because int might match the return type of a GCC
11236 builtin and then its argument prototype would still apply. */
11237 #ifdef __cplusplus
11238 extern "C"
11239 #endif
11240 char RegOpenKeyExA ();
11241 int
11242 main ()
11243 {
11244 return RegOpenKeyExA ();
11245 ;
11246 return 0;
11247 }
11248 _ACEOF
11249 for ac_lib in '' advapi32; do
11250 if test -z "$ac_lib"; then
11251 ac_res="none required"
11252 else
11253 ac_res=-l$ac_lib
11254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11255 fi
11256 if ac_fn_c_try_link "$LINENO"; then :
11257 ac_cv_search_RegOpenKeyExA=$ac_res
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext \
11260 conftest$ac_exeext
11261 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11262 break
11263 fi
11264 done
11265 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
11266
11267 else
11268 ac_cv_search_RegOpenKeyExA=no
11269 fi
11270 rm conftest.$ac_ext
11271 LIBS=$ac_func_search_save_LIBS
11272 fi
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
11274 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
11275 ac_res=$ac_cv_search_RegOpenKeyExA
11276 if test "$ac_res" != no; then :
11277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11278
11279 else
11280 enable_win32_registry=no
11281 fi
11282
11283 fi
11284
11285 if test "x$enable_win32_registry" != xno; then
11286
11287 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
11288
11289
11290 if test "x$enable_win32_registry" != xyes \
11291 && test "x$enable_win32_registry" != x; then
11292
11293 cat >>confdefs.h <<_ACEOF
11294 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
11295 _ACEOF
11296
11297 fi
11298 fi
11299 ;;
11300 esac
11301
11302 # Get an absolute path to the GCC top-level source directory
11303 holddir=`${PWDCMD-pwd}`
11304 cd $srcdir
11305 topdir=`${PWDCMD-pwd}`
11306 cd $holddir
11307
11308 # Conditionalize the makefile for this host machine.
11309 xmake_file=
11310 for f in ${host_xmake_file}
11311 do
11312 if test -f ${srcdir}/config/$f
11313 then
11314 xmake_file="${xmake_file} \$(srcdir)/config/$f"
11315 fi
11316 done
11317
11318 # Conditionalize the makefile for this target machine.
11319 tmake_file_=
11320 for f in ${tmake_file}
11321 do
11322 if test -f ${srcdir}/config/$f
11323 then
11324 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
11325 fi
11326 done
11327 tmake_file="${tmake_file_}"
11328
11329 out_object_file=`basename $out_file .c`.o
11330 common_out_object_file=`basename $common_out_file .c`.o
11331
11332 tm_file_list="options.h"
11333 tm_include_list="options.h insn-constants.h"
11334 for f in $tm_file; do
11335 case $f in
11336 ./* )
11337 f=`echo $f | sed 's/^..//'`
11338 tm_file_list="${tm_file_list} $f"
11339 tm_include_list="${tm_include_list} $f"
11340 ;;
11341 defaults.h )
11342 tm_file_list="${tm_file_list} \$(srcdir)/$f"
11343 tm_include_list="${tm_include_list} $f"
11344 ;;
11345 * )
11346 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
11347 tm_include_list="${tm_include_list} config/$f"
11348 ;;
11349 esac
11350 done
11351
11352 libgcc_tm_file_list=
11353 libgcc_tm_include_list=
11354 for f in $libgcc_tm_file; do
11355 libgcc_tm_file_list="${libgcc_tm_file_list} \$(srcdir)/../libgcc/config/$f"
11356 libgcc_tm_include_list="${libgcc_tm_include_list} ../libgcc/config/$f"
11357 done
11358
11359 tm_p_file_list=
11360 tm_p_include_list=
11361 for f in $tm_p_file; do
11362 case $f in
11363 tm-preds.h )
11364 tm_p_file_list="${tm_p_file_list} $f"
11365 tm_p_include_list="${tm_p_include_list} $f"
11366 ;;
11367 * )
11368 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
11369 tm_p_include_list="${tm_p_include_list} config/$f"
11370 esac
11371 done
11372
11373 xm_file_list=
11374 xm_include_list=
11375 for f in $xm_file; do
11376 case $f in
11377 ansidecl.h )
11378 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
11379 xm_include_list="${xm_include_list} $f"
11380 ;;
11381 auto-host.h )
11382 xm_file_list="${xm_file_list} $f"
11383 xm_include_list="${xm_include_list} $f"
11384 ;;
11385 * )
11386 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
11387 xm_include_list="${xm_include_list} config/$f"
11388 ;;
11389 esac
11390 done
11391
11392 host_xm_file_list=
11393 host_xm_include_list=
11394 for f in $host_xm_file; do
11395 case $f in
11396 ansidecl.h )
11397 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
11398 host_xm_include_list="${host_xm_include_list} $f"
11399 ;;
11400 auto-host.h )
11401 host_xm_file_list="${host_xm_file_list} $f"
11402 host_xm_include_list="${host_xm_include_list} $f"
11403 ;;
11404 * )
11405 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
11406 host_xm_include_list="${host_xm_include_list} config/$f"
11407 ;;
11408 esac
11409 done
11410
11411 build_xm_file_list=
11412 for f in $build_xm_file; do
11413 case $f in
11414 ansidecl.h )
11415 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
11416 build_xm_include_list="${build_xm_include_list} $f"
11417 ;;
11418 auto-build.h | auto-host.h )
11419 build_xm_file_list="${build_xm_file_list} $f"
11420 build_xm_include_list="${build_xm_include_list} $f"
11421 ;;
11422 * )
11423 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
11424 build_xm_include_list="${build_xm_include_list} config/$f"
11425 ;;
11426 esac
11427 done
11428
11429 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
11430 # cross-compiler which does not use the native headers and libraries.
11431 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
11432 CROSS=
11433 ALL=all.internal
11434 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11435
11436 if test "x$with_build_sysroot" != x; then
11437 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
11438 else
11439 # This value is used, even on a native system, because
11440 # CROSS_SYSTEM_HEADER_DIR is just
11441 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
11442 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
11443 fi
11444
11445 if test x$host != x$target
11446 then
11447 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
11448 ALL=all.cross
11449 SYSTEM_HEADER_DIR=$build_system_header_dir
11450 case "$host","$target" in
11451 # Darwin crosses can use the host system's libraries and headers,
11452 # because of the fat library support. Of course, it must be the
11453 # same version of Darwin on both sides. Allow the user to
11454 # just say --target=foo-darwin without a version number to mean
11455 # "the version on this system".
11456 *-*-darwin*,*-*-darwin*)
11457 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11458 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11459 if test $hostos = $targetos -o $targetos = darwin ; then
11460 CROSS=
11461 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11462 with_headers=yes
11463 fi
11464 ;;
11465
11466 i?86-*-*,x86_64-*-* \
11467 | powerpc*-*-*,powerpc64*-*-*)
11468 CROSS="$CROSS -DNATIVE_CROSS" ;;
11469 esac
11470
11471 case $target in
11472 *-*-mingw*)
11473 if test "x$with_headers" = x; then
11474 with_headers=yes
11475 fi
11476 ;;
11477 *)
11478 ;;
11479 esac
11480 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11481 SYSTEM_HEADER_DIR=$build_system_header_dir
11482 fi
11483
11484 # If this is a cross-compiler that does not
11485 # have its own set of headers then define
11486 # inhibit_libc
11487
11488 # If this is using newlib, without having the headers available now,
11489 # then define inhibit_libc in LIBGCC2_CFLAGS.
11490 # This prevents libgcc2 from containing any code which requires libc
11491 # support.
11492 : ${inhibit_libc=false}
11493 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11494 test x$with_newlib = xyes ; } &&
11495 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11496 inhibit_libc=true
11497 fi
11498
11499
11500 # When building gcc with a cross-compiler, we need to adjust things so
11501 # that the generator programs are still built with the native compiler.
11502 # Also, we cannot run fixincludes.
11503
11504 # These are the normal (build=host) settings:
11505 CC_FOR_BUILD='$(CC)'
11506 BUILD_CFLAGS='$(ALL_CFLAGS)'
11507 BUILD_LDFLAGS='$(LDFLAGS)'
11508 STMP_FIXINC=stmp-fixinc
11509
11510 # And these apply if build != host, or we are generating coverage data
11511 if test x$build != x$host || test "x$coverage_flags" != x
11512 then
11513 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11514 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11515 fi
11516
11517 # Expand extra_headers to include complete path.
11518 # This substitutes for lots of t-* files.
11519 extra_headers_list=
11520 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11521 for file in ${extra_headers} ; do
11522 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11523 done
11524
11525 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11526 if test x"$use_gcc_tgmath" = xyes
11527 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11528 fi
11529
11530 # Define collect2 in Makefile.
11531 case $host_can_use_collect2 in
11532 no) collect2= ;;
11533 *) collect2='collect2$(exeext)' ;;
11534 esac
11535
11536
11537 # Add a definition of USE_COLLECT2 if system wants one.
11538 case $use_collect2 in
11539 no) use_collect2= ;;
11540 "") ;;
11541 *)
11542 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11543 xm_defines="${xm_defines} USE_COLLECT2"
11544 case $host_can_use_collect2 in
11545 no)
11546 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11547 ;;
11548 esac
11549 ;;
11550 esac
11551
11552
11553 cat >>confdefs.h <<_ACEOF
11554 #define LTOPLUGINSONAME "${host_lto_plugin_soname}"
11555 _ACEOF
11556
11557
11558 # ---------------------------
11559 # Assembler & linker features
11560 # ---------------------------
11561
11562 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11563 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11564 # However when ld-new is first executed from the build tree, libtool will
11565 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11566 # to the build tree. While doing this we need to use the previous-stage
11567 # linker, or we have an infinite loop. The presence of a shell script as
11568 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11569 # the gcc/collect-ld script. So we need to know how libtool works, or
11570 # exec-tool will fail.
11571
11572
11573 case `pwd` in
11574 *\ * | *\ *)
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11576 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11577 esac
11578
11579
11580
11581 macro_version='2.2.7a'
11582 macro_revision='1.3134'
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596 ltmain="$ac_aux_dir/ltmain.sh"
11597
11598 # Backslashify metacharacters that are still active within
11599 # double-quoted strings.
11600 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11601
11602 # Same as above, but do not quote variable references.
11603 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11604
11605 # Sed substitution to delay expansion of an escaped shell variable in a
11606 # double_quote_subst'ed string.
11607 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11608
11609 # Sed substitution to delay expansion of an escaped single quote.
11610 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11611
11612 # Sed substitution to avoid accidental globbing in evaled expressions
11613 no_glob_subst='s/\*/\\\*/g'
11614
11615 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11616 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11617 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11620 $as_echo_n "checking how to print strings... " >&6; }
11621 # Test print first, because it will be a builtin if present.
11622 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11623 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11624 ECHO='print -r --'
11625 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11626 ECHO='printf %s\n'
11627 else
11628 # Use this function as a fallback that always works.
11629 func_fallback_echo ()
11630 {
11631 eval 'cat <<_LTECHO_EOF
11632 $1
11633 _LTECHO_EOF'
11634 }
11635 ECHO='func_fallback_echo'
11636 fi
11637
11638 # func_echo_all arg...
11639 # Invoke $ECHO with all args, space-separated.
11640 func_echo_all ()
11641 {
11642 $ECHO ""
11643 }
11644
11645 case "$ECHO" in
11646 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11647 $as_echo "printf" >&6; } ;;
11648 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11649 $as_echo "print -r" >&6; } ;;
11650 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11651 $as_echo "cat" >&6; } ;;
11652 esac
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11668 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11669 if test "${ac_cv_path_SED+set}" = set; then :
11670 $as_echo_n "(cached) " >&6
11671 else
11672 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11673 for ac_i in 1 2 3 4 5 6 7; do
11674 ac_script="$ac_script$as_nl$ac_script"
11675 done
11676 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11677 { ac_script=; unset ac_script;}
11678 if test -z "$SED"; then
11679 ac_path_SED_found=false
11680 # Loop through the user's path and test for each of PROGNAME-LIST
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11683 do
11684 IFS=$as_save_IFS
11685 test -z "$as_dir" && as_dir=.
11686 for ac_prog in sed gsed; do
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11689 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11690 # Check for GNU ac_path_SED and select it if it is found.
11691 # Check for GNU $ac_path_SED
11692 case `"$ac_path_SED" --version 2>&1` in
11693 *GNU*)
11694 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11695 *)
11696 ac_count=0
11697 $as_echo_n 0123456789 >"conftest.in"
11698 while :
11699 do
11700 cat "conftest.in" "conftest.in" >"conftest.tmp"
11701 mv "conftest.tmp" "conftest.in"
11702 cp "conftest.in" "conftest.nl"
11703 $as_echo '' >> "conftest.nl"
11704 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11706 as_fn_arith $ac_count + 1 && ac_count=$as_val
11707 if test $ac_count -gt ${ac_path_SED_max-0}; then
11708 # Best one so far, save it but keep looking for a better one
11709 ac_cv_path_SED="$ac_path_SED"
11710 ac_path_SED_max=$ac_count
11711 fi
11712 # 10*(2^10) chars as input seems more than enough
11713 test $ac_count -gt 10 && break
11714 done
11715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11716 esac
11717
11718 $ac_path_SED_found && break 3
11719 done
11720 done
11721 done
11722 IFS=$as_save_IFS
11723 if test -z "$ac_cv_path_SED"; then
11724 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11725 fi
11726 else
11727 ac_cv_path_SED=$SED
11728 fi
11729
11730 fi
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11732 $as_echo "$ac_cv_path_SED" >&6; }
11733 SED="$ac_cv_path_SED"
11734 rm -f conftest.sed
11735
11736 test -z "$SED" && SED=sed
11737 Xsed="$SED -e 1s/^X//"
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11750 $as_echo_n "checking for fgrep... " >&6; }
11751 if test "${ac_cv_path_FGREP+set}" = set; then :
11752 $as_echo_n "(cached) " >&6
11753 else
11754 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11755 then ac_cv_path_FGREP="$GREP -F"
11756 else
11757 if test -z "$FGREP"; then
11758 ac_path_FGREP_found=false
11759 # Loop through the user's path and test for each of PROGNAME-LIST
11760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11762 do
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
11765 for ac_prog in fgrep; do
11766 for ac_exec_ext in '' $ac_executable_extensions; do
11767 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11768 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11769 # Check for GNU ac_path_FGREP and select it if it is found.
11770 # Check for GNU $ac_path_FGREP
11771 case `"$ac_path_FGREP" --version 2>&1` in
11772 *GNU*)
11773 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11774 *)
11775 ac_count=0
11776 $as_echo_n 0123456789 >"conftest.in"
11777 while :
11778 do
11779 cat "conftest.in" "conftest.in" >"conftest.tmp"
11780 mv "conftest.tmp" "conftest.in"
11781 cp "conftest.in" "conftest.nl"
11782 $as_echo 'FGREP' >> "conftest.nl"
11783 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11784 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11785 as_fn_arith $ac_count + 1 && ac_count=$as_val
11786 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11787 # Best one so far, save it but keep looking for a better one
11788 ac_cv_path_FGREP="$ac_path_FGREP"
11789 ac_path_FGREP_max=$ac_count
11790 fi
11791 # 10*(2^10) chars as input seems more than enough
11792 test $ac_count -gt 10 && break
11793 done
11794 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11795 esac
11796
11797 $ac_path_FGREP_found && break 3
11798 done
11799 done
11800 done
11801 IFS=$as_save_IFS
11802 if test -z "$ac_cv_path_FGREP"; then
11803 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11804 fi
11805 else
11806 ac_cv_path_FGREP=$FGREP
11807 fi
11808
11809 fi
11810 fi
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11812 $as_echo "$ac_cv_path_FGREP" >&6; }
11813 FGREP="$ac_cv_path_FGREP"
11814
11815
11816 test -z "$GREP" && GREP=grep
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836 # Check whether --with-gnu-ld was given.
11837 if test "${with_gnu_ld+set}" = set; then :
11838 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11839 else
11840 with_gnu_ld=no
11841 fi
11842
11843 ac_prog=ld
11844 if test "$GCC" = yes; then
11845 # Check if gcc -print-prog-name=ld gives a path.
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11847 $as_echo_n "checking for ld used by $CC... " >&6; }
11848 case $host in
11849 *-*-mingw*)
11850 # gcc leaves a trailing carriage return which upsets mingw
11851 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11852 *)
11853 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11854 esac
11855 case $ac_prog in
11856 # Accept absolute paths.
11857 [\\/]* | ?:[\\/]*)
11858 re_direlt='/[^/][^/]*/\.\./'
11859 # Canonicalize the pathname of ld
11860 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11861 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11862 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11863 done
11864 test -z "$LD" && LD="$ac_prog"
11865 ;;
11866 "")
11867 # If it fails, then pretend we aren't using GCC.
11868 ac_prog=ld
11869 ;;
11870 *)
11871 # If it is relative, then search for the first ld in PATH.
11872 with_gnu_ld=unknown
11873 ;;
11874 esac
11875 elif test "$with_gnu_ld" = yes; then
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11877 $as_echo_n "checking for GNU ld... " >&6; }
11878 else
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11880 $as_echo_n "checking for non-GNU ld... " >&6; }
11881 fi
11882 if test "${lt_cv_path_LD+set}" = set; then :
11883 $as_echo_n "(cached) " >&6
11884 else
11885 if test -z "$LD"; then
11886 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11887 for ac_dir in $PATH; do
11888 IFS="$lt_save_ifs"
11889 test -z "$ac_dir" && ac_dir=.
11890 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11891 lt_cv_path_LD="$ac_dir/$ac_prog"
11892 # Check to see if the program is GNU ld. I'd rather use --version,
11893 # but apparently some variants of GNU ld only accept -v.
11894 # Break only if it was the GNU/non-GNU ld that we prefer.
11895 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11896 *GNU* | *'with BFD'*)
11897 test "$with_gnu_ld" != no && break
11898 ;;
11899 *)
11900 test "$with_gnu_ld" != yes && break
11901 ;;
11902 esac
11903 fi
11904 done
11905 IFS="$lt_save_ifs"
11906 else
11907 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11908 fi
11909 fi
11910
11911 LD="$lt_cv_path_LD"
11912 if test -n "$LD"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11914 $as_echo "$LD" >&6; }
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11918 fi
11919 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11921 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11922 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11923 $as_echo_n "(cached) " >&6
11924 else
11925 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11926 case `$LD -v 2>&1 </dev/null` in
11927 *GNU* | *'with BFD'*)
11928 lt_cv_prog_gnu_ld=yes
11929 ;;
11930 *)
11931 lt_cv_prog_gnu_ld=no
11932 ;;
11933 esac
11934 fi
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11936 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11937 with_gnu_ld=$lt_cv_prog_gnu_ld
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11948 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11949 if test "${lt_cv_path_NM+set}" = set; then :
11950 $as_echo_n "(cached) " >&6
11951 else
11952 if test -n "$NM"; then
11953 # Let the user override the test.
11954 lt_cv_path_NM="$NM"
11955 else
11956 lt_nm_to_check="${ac_tool_prefix}nm"
11957 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11958 lt_nm_to_check="$lt_nm_to_check nm"
11959 fi
11960 for lt_tmp_nm in $lt_nm_to_check; do
11961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11962 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11963 IFS="$lt_save_ifs"
11964 test -z "$ac_dir" && ac_dir=.
11965 tmp_nm="$ac_dir/$lt_tmp_nm"
11966 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11967 # Check to see if the nm accepts a BSD-compat flag.
11968 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11969 # nm: unknown option "B" ignored
11970 # Tru64's nm complains that /dev/null is an invalid object file
11971 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11972 */dev/null* | *'Invalid file or object type'*)
11973 lt_cv_path_NM="$tmp_nm -B"
11974 break
11975 ;;
11976 *)
11977 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11978 */dev/null*)
11979 lt_cv_path_NM="$tmp_nm -p"
11980 break
11981 ;;
11982 *)
11983 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11984 continue # so that we can try to find one that supports BSD flags
11985 ;;
11986 esac
11987 ;;
11988 esac
11989 fi
11990 done
11991 IFS="$lt_save_ifs"
11992 done
11993 : ${lt_cv_path_NM=no}
11994 fi
11995 fi
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11997 $as_echo "$lt_cv_path_NM" >&6; }
11998 if test "$lt_cv_path_NM" != "no"; then
11999 NM="$lt_cv_path_NM"
12000 else
12001 # Didn't find any BSD compatible name lister, look for dumpbin.
12002 if test -n "$DUMPBIN"; then :
12003 # Let the user override the test.
12004 else
12005 if test -n "$ac_tool_prefix"; then
12006 for ac_prog in dumpbin "link -dump"
12007 do
12008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011 $as_echo_n "checking for $ac_word... " >&6; }
12012 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
12014 else
12015 if test -n "$DUMPBIN"; then
12016 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12017 else
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12020 do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12025 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027 break 2
12028 fi
12029 done
12030 done
12031 IFS=$as_save_IFS
12032
12033 fi
12034 fi
12035 DUMPBIN=$ac_cv_prog_DUMPBIN
12036 if test -n "$DUMPBIN"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12038 $as_echo "$DUMPBIN" >&6; }
12039 else
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041 $as_echo "no" >&6; }
12042 fi
12043
12044
12045 test -n "$DUMPBIN" && break
12046 done
12047 fi
12048 if test -z "$DUMPBIN"; then
12049 ac_ct_DUMPBIN=$DUMPBIN
12050 for ac_prog in dumpbin "link -dump"
12051 do
12052 # Extract the first word of "$ac_prog", so it can be a program name with args.
12053 set dummy $ac_prog; ac_word=$2
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12055 $as_echo_n "checking for $ac_word... " >&6; }
12056 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
12057 $as_echo_n "(cached) " >&6
12058 else
12059 if test -n "$ac_ct_DUMPBIN"; then
12060 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12061 else
12062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12063 for as_dir in $PATH
12064 do
12065 IFS=$as_save_IFS
12066 test -z "$as_dir" && as_dir=.
12067 for ac_exec_ext in '' $ac_executable_extensions; do
12068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12069 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12071 break 2
12072 fi
12073 done
12074 done
12075 IFS=$as_save_IFS
12076
12077 fi
12078 fi
12079 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12080 if test -n "$ac_ct_DUMPBIN"; then
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12082 $as_echo "$ac_ct_DUMPBIN" >&6; }
12083 else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12085 $as_echo "no" >&6; }
12086 fi
12087
12088
12089 test -n "$ac_ct_DUMPBIN" && break
12090 done
12091
12092 if test "x$ac_ct_DUMPBIN" = x; then
12093 DUMPBIN=":"
12094 else
12095 case $cross_compiling:$ac_tool_warned in
12096 yes:)
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12099 ac_tool_warned=yes ;;
12100 esac
12101 DUMPBIN=$ac_ct_DUMPBIN
12102 fi
12103 fi
12104
12105 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
12106 *COFF*)
12107 DUMPBIN="$DUMPBIN -symbols"
12108 ;;
12109 *)
12110 DUMPBIN=:
12111 ;;
12112 esac
12113 fi
12114
12115 if test "$DUMPBIN" != ":"; then
12116 NM="$DUMPBIN"
12117 fi
12118 fi
12119 test -z "$NM" && NM=nm
12120
12121
12122
12123
12124
12125
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12127 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
12128 if test "${lt_cv_nm_interface+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
12130 else
12131 lt_cv_nm_interface="BSD nm"
12132 echo "int some_variable = 0;" > conftest.$ac_ext
12133 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12134 (eval "$ac_compile" 2>conftest.err)
12135 cat conftest.err >&5
12136 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12137 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12138 cat conftest.err >&5
12139 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12140 cat conftest.out >&5
12141 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12142 lt_cv_nm_interface="MS dumpbin"
12143 fi
12144 rm -f conftest*
12145 fi
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12147 $as_echo "$lt_cv_nm_interface" >&6; }
12148
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12150 $as_echo_n "checking whether ln -s works... " >&6; }
12151 LN_S=$as_ln_s
12152 if test "$LN_S" = "ln -s"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12154 $as_echo "yes" >&6; }
12155 else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12157 $as_echo "no, using $LN_S" >&6; }
12158 fi
12159
12160 # find the maximum length of command line arguments
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12162 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12163 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 i=0
12167 teststring="ABCD"
12168
12169 case $build_os in
12170 msdosdjgpp*)
12171 # On DJGPP, this test can blow up pretty badly due to problems in libc
12172 # (any single argument exceeding 2000 bytes causes a buffer overrun
12173 # during glob expansion). Even if it were fixed, the result of this
12174 # check would be larger than it should be.
12175 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12176 ;;
12177
12178 gnu*)
12179 # Under GNU Hurd, this test is not required because there is
12180 # no limit to the length of command line arguments.
12181 # Libtool will interpret -1 as no limit whatsoever
12182 lt_cv_sys_max_cmd_len=-1;
12183 ;;
12184
12185 cygwin* | mingw* | cegcc*)
12186 # On Win9x/ME, this test blows up -- it succeeds, but takes
12187 # about 5 minutes as the teststring grows exponentially.
12188 # Worse, since 9x/ME are not pre-emptively multitasking,
12189 # you end up with a "frozen" computer, even though with patience
12190 # the test eventually succeeds (with a max line length of 256k).
12191 # Instead, let's just punt: use the minimum linelength reported by
12192 # all of the supported platforms: 8192 (on NT/2K/XP).
12193 lt_cv_sys_max_cmd_len=8192;
12194 ;;
12195
12196 mint*)
12197 # On MiNT this can take a long time and run out of memory.
12198 lt_cv_sys_max_cmd_len=8192;
12199 ;;
12200
12201 amigaos*)
12202 # On AmigaOS with pdksh, this test takes hours, literally.
12203 # So we just punt and use a minimum line length of 8192.
12204 lt_cv_sys_max_cmd_len=8192;
12205 ;;
12206
12207 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12208 # This has been around since 386BSD, at least. Likely further.
12209 if test -x /sbin/sysctl; then
12210 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12211 elif test -x /usr/sbin/sysctl; then
12212 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12213 else
12214 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12215 fi
12216 # And add a safety zone
12217 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12218 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12219 ;;
12220
12221 interix*)
12222 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12223 lt_cv_sys_max_cmd_len=196608
12224 ;;
12225
12226 osf*)
12227 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12228 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12229 # nice to cause kernel panics so lets avoid the loop below.
12230 # First set a reasonable default.
12231 lt_cv_sys_max_cmd_len=16384
12232 #
12233 if test -x /sbin/sysconfig; then
12234 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12235 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12236 esac
12237 fi
12238 ;;
12239 sco3.2v5*)
12240 lt_cv_sys_max_cmd_len=102400
12241 ;;
12242 sysv5* | sco5v6* | sysv4.2uw2*)
12243 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12244 if test -n "$kargmax"; then
12245 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12246 else
12247 lt_cv_sys_max_cmd_len=32768
12248 fi
12249 ;;
12250 *)
12251 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12252 if test -n "$lt_cv_sys_max_cmd_len"; then
12253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12255 else
12256 # Make teststring a little bigger before we do anything with it.
12257 # a 1K string should be a reasonable start.
12258 for i in 1 2 3 4 5 6 7 8 ; do
12259 teststring=$teststring$teststring
12260 done
12261 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12262 # If test is not a shell built-in, we'll probably end up computing a
12263 # maximum length that is only half of the actual maximum length, but
12264 # we can't tell.
12265 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
12266 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12267 test $i != 17 # 1/2 MB should be enough
12268 do
12269 i=`expr $i + 1`
12270 teststring=$teststring$teststring
12271 done
12272 # Only check the string length outside the loop.
12273 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12274 teststring=
12275 # Add a significant safety factor because C++ compilers can tack on
12276 # massive amounts of additional arguments before passing them to the
12277 # linker. It appears as though 1/2 is a usable value.
12278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12279 fi
12280 ;;
12281 esac
12282
12283 fi
12284
12285 if test -n $lt_cv_sys_max_cmd_len ; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12287 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12288 else
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12290 $as_echo "none" >&6; }
12291 fi
12292 max_cmd_len=$lt_cv_sys_max_cmd_len
12293
12294
12295
12296
12297
12298
12299 : ${CP="cp -f"}
12300 : ${MV="mv -f"}
12301 : ${RM="rm -f"}
12302
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12304 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12305 # Try some XSI features
12306 xsi_shell=no
12307 ( _lt_dummy="a/b/c"
12308 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12309 = c,a/b,, \
12310 && eval 'test $(( 1 + 1 )) -eq 2 \
12311 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12312 && xsi_shell=yes
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12314 $as_echo "$xsi_shell" >&6; }
12315
12316
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12318 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12319 lt_shell_append=no
12320 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12321 >/dev/null 2>&1 \
12322 && lt_shell_append=yes
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12324 $as_echo "$lt_shell_append" >&6; }
12325
12326
12327 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12328 lt_unset=unset
12329 else
12330 lt_unset=false
12331 fi
12332
12333
12334
12335
12336
12337 # test EBCDIC or ASCII
12338 case `echo X|tr X '\101'` in
12339 A) # ASCII based system
12340 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12341 lt_SP2NL='tr \040 \012'
12342 lt_NL2SP='tr \015\012 \040\040'
12343 ;;
12344 *) # EBCDIC based system
12345 lt_SP2NL='tr \100 \n'
12346 lt_NL2SP='tr \r\n \100\100'
12347 ;;
12348 esac
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12359 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12360 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12361 $as_echo_n "(cached) " >&6
12362 else
12363 lt_cv_ld_reload_flag='-r'
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12366 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12367 reload_flag=$lt_cv_ld_reload_flag
12368 case $reload_flag in
12369 "" | " "*) ;;
12370 *) reload_flag=" $reload_flag" ;;
12371 esac
12372 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12373 case $host_os in
12374 darwin*)
12375 if test "$GCC" = yes; then
12376 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12377 else
12378 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12379 fi
12380 ;;
12381 esac
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391 if test -n "$ac_tool_prefix"; then
12392 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12393 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395 $as_echo_n "checking for $ac_word... " >&6; }
12396 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12397 $as_echo_n "(cached) " >&6
12398 else
12399 if test -n "$OBJDUMP"; then
12400 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12401 else
12402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $PATH
12404 do
12405 IFS=$as_save_IFS
12406 test -z "$as_dir" && as_dir=.
12407 for ac_exec_ext in '' $ac_executable_extensions; do
12408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12409 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411 break 2
12412 fi
12413 done
12414 done
12415 IFS=$as_save_IFS
12416
12417 fi
12418 fi
12419 OBJDUMP=$ac_cv_prog_OBJDUMP
12420 if test -n "$OBJDUMP"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12422 $as_echo "$OBJDUMP" >&6; }
12423 else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425 $as_echo "no" >&6; }
12426 fi
12427
12428
12429 fi
12430 if test -z "$ac_cv_prog_OBJDUMP"; then
12431 ac_ct_OBJDUMP=$OBJDUMP
12432 # Extract the first word of "objdump", so it can be a program name with args.
12433 set dummy objdump; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12435 $as_echo_n "checking for $ac_word... " >&6; }
12436 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 if test -n "$ac_ct_OBJDUMP"; then
12440 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12441 else
12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443 for as_dir in $PATH
12444 do
12445 IFS=$as_save_IFS
12446 test -z "$as_dir" && as_dir=.
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12449 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12451 break 2
12452 fi
12453 done
12454 done
12455 IFS=$as_save_IFS
12456
12457 fi
12458 fi
12459 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12460 if test -n "$ac_ct_OBJDUMP"; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12462 $as_echo "$ac_ct_OBJDUMP" >&6; }
12463 else
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12466 fi
12467
12468 if test "x$ac_ct_OBJDUMP" = x; then
12469 OBJDUMP="false"
12470 else
12471 case $cross_compiling:$ac_tool_warned in
12472 yes:)
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12475 ac_tool_warned=yes ;;
12476 esac
12477 OBJDUMP=$ac_ct_OBJDUMP
12478 fi
12479 else
12480 OBJDUMP="$ac_cv_prog_OBJDUMP"
12481 fi
12482
12483 test -z "$OBJDUMP" && OBJDUMP=objdump
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12494 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12495 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12496 $as_echo_n "(cached) " >&6
12497 else
12498 lt_cv_file_magic_cmd='$MAGIC_CMD'
12499 lt_cv_file_magic_test_file=
12500 lt_cv_deplibs_check_method='unknown'
12501 # Need to set the preceding variable on all platforms that support
12502 # interlibrary dependencies.
12503 # 'none' -- dependencies not supported.
12504 # `unknown' -- same as none, but documents that we really don't know.
12505 # 'pass_all' -- all dependencies passed with no checks.
12506 # 'test_compile' -- check by making test program.
12507 # 'file_magic [[regex]]' -- check by looking for files in library path
12508 # which responds to the $file_magic_cmd with a given extended regex.
12509 # If you have `file' or equivalent on your system and you're not sure
12510 # whether `pass_all' will *always* work, you probably want this one.
12511
12512 case $host_os in
12513 aix[4-9]*)
12514 lt_cv_deplibs_check_method=pass_all
12515 ;;
12516
12517 beos*)
12518 lt_cv_deplibs_check_method=pass_all
12519 ;;
12520
12521 bsdi[45]*)
12522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12523 lt_cv_file_magic_cmd='/usr/bin/file -L'
12524 lt_cv_file_magic_test_file=/shlib/libc.so
12525 ;;
12526
12527 cygwin*)
12528 # func_win32_libid is a shell function defined in ltmain.sh
12529 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12530 lt_cv_file_magic_cmd='func_win32_libid'
12531 ;;
12532
12533 mingw* | pw32*)
12534 # Base MSYS/MinGW do not provide the 'file' command needed by
12535 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12536 # unless we find 'file', for example because we are cross-compiling.
12537 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12538 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12540 lt_cv_file_magic_cmd='func_win32_libid'
12541 else
12542 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12543 lt_cv_file_magic_cmd='$OBJDUMP -f'
12544 fi
12545 ;;
12546
12547 cegcc*)
12548 # use the weaker test based on 'objdump'. See mingw*.
12549 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12550 lt_cv_file_magic_cmd='$OBJDUMP -f'
12551 ;;
12552
12553 darwin* | rhapsody*)
12554 lt_cv_deplibs_check_method=pass_all
12555 ;;
12556
12557 freebsd* | dragonfly*)
12558 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12559 case $host_cpu in
12560 i*86 )
12561 # Not sure whether the presence of OpenBSD here was a mistake.
12562 # Let's accept both of them until this is cleared up.
12563 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12564 lt_cv_file_magic_cmd=/usr/bin/file
12565 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12566 ;;
12567 esac
12568 else
12569 lt_cv_deplibs_check_method=pass_all
12570 fi
12571 ;;
12572
12573 gnu*)
12574 lt_cv_deplibs_check_method=pass_all
12575 ;;
12576
12577 haiku*)
12578 lt_cv_deplibs_check_method=pass_all
12579 ;;
12580
12581 hpux10.20* | hpux11*)
12582 lt_cv_file_magic_cmd=/usr/bin/file
12583 case $host_cpu in
12584 ia64*)
12585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12586 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12587 ;;
12588 hppa*64*)
12589 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]'
12590 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12591 ;;
12592 *)
12593 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12594 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12595 ;;
12596 esac
12597 ;;
12598
12599 interix[3-9]*)
12600 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12602 ;;
12603
12604 irix5* | irix6* | nonstopux*)
12605 case $LD in
12606 *-32|*"-32 ") libmagic=32-bit;;
12607 *-n32|*"-n32 ") libmagic=N32;;
12608 *-64|*"-64 ") libmagic=64-bit;;
12609 *) libmagic=never-match;;
12610 esac
12611 lt_cv_deplibs_check_method=pass_all
12612 ;;
12613
12614 # This must be Linux ELF.
12615 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12616 lt_cv_deplibs_check_method=pass_all
12617 ;;
12618
12619 netbsd*)
12620 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12622 else
12623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12624 fi
12625 ;;
12626
12627 newos6*)
12628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12629 lt_cv_file_magic_cmd=/usr/bin/file
12630 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12631 ;;
12632
12633 *nto* | *qnx*)
12634 lt_cv_deplibs_check_method=pass_all
12635 ;;
12636
12637 openbsd*)
12638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12640 else
12641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12642 fi
12643 ;;
12644
12645 osf3* | osf4* | osf5*)
12646 lt_cv_deplibs_check_method=pass_all
12647 ;;
12648
12649 rdos*)
12650 lt_cv_deplibs_check_method=pass_all
12651 ;;
12652
12653 solaris*)
12654 lt_cv_deplibs_check_method=pass_all
12655 ;;
12656
12657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12658 lt_cv_deplibs_check_method=pass_all
12659 ;;
12660
12661 sysv4 | sysv4.3*)
12662 case $host_vendor in
12663 motorola)
12664 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]'
12665 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12666 ;;
12667 ncr)
12668 lt_cv_deplibs_check_method=pass_all
12669 ;;
12670 sequent)
12671 lt_cv_file_magic_cmd='/bin/file'
12672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12673 ;;
12674 sni)
12675 lt_cv_file_magic_cmd='/bin/file'
12676 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12677 lt_cv_file_magic_test_file=/lib/libc.so
12678 ;;
12679 siemens)
12680 lt_cv_deplibs_check_method=pass_all
12681 ;;
12682 pc)
12683 lt_cv_deplibs_check_method=pass_all
12684 ;;
12685 esac
12686 ;;
12687
12688 tpf*)
12689 lt_cv_deplibs_check_method=pass_all
12690 ;;
12691 esac
12692
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12695 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12696 file_magic_cmd=$lt_cv_file_magic_cmd
12697 deplibs_check_method=$lt_cv_deplibs_check_method
12698 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711 if test -n "$ac_tool_prefix"; then
12712 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12713 set dummy ${ac_tool_prefix}ar; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if test "${ac_cv_prog_AR+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12718 else
12719 if test -n "$AR"; then
12720 ac_cv_prog_AR="$AR" # Let the user override the test.
12721 else
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12724 do
12725 IFS=$as_save_IFS
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729 ac_cv_prog_AR="${ac_tool_prefix}ar"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12731 break 2
12732 fi
12733 done
12734 done
12735 IFS=$as_save_IFS
12736
12737 fi
12738 fi
12739 AR=$ac_cv_prog_AR
12740 if test -n "$AR"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12742 $as_echo "$AR" >&6; }
12743 else
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12746 fi
12747
12748
12749 fi
12750 if test -z "$ac_cv_prog_AR"; then
12751 ac_ct_AR=$AR
12752 # Extract the first word of "ar", so it can be a program name with args.
12753 set dummy ar; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 if test -n "$ac_ct_AR"; then
12760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12761 else
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12764 do
12765 IFS=$as_save_IFS
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12769 ac_cv_prog_ac_ct_AR="ar"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771 break 2
12772 fi
12773 done
12774 done
12775 IFS=$as_save_IFS
12776
12777 fi
12778 fi
12779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12780 if test -n "$ac_ct_AR"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12782 $as_echo "$ac_ct_AR" >&6; }
12783 else
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12786 fi
12787
12788 if test "x$ac_ct_AR" = x; then
12789 AR="false"
12790 else
12791 case $cross_compiling:$ac_tool_warned in
12792 yes:)
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12795 ac_tool_warned=yes ;;
12796 esac
12797 AR=$ac_ct_AR
12798 fi
12799 else
12800 AR="$ac_cv_prog_AR"
12801 fi
12802
12803 test -z "$AR" && AR=ar
12804 test -z "$AR_FLAGS" && AR_FLAGS=cru
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816 if test -n "$ac_tool_prefix"; then
12817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12818 set dummy ${ac_tool_prefix}strip; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if test "${ac_cv_prog_STRIP+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12823 else
12824 if test -n "$STRIP"; then
12825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12826 else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830 IFS=$as_save_IFS
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
12833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836 break 2
12837 fi
12838 done
12839 done
12840 IFS=$as_save_IFS
12841
12842 fi
12843 fi
12844 STRIP=$ac_cv_prog_STRIP
12845 if test -n "$STRIP"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12847 $as_echo "$STRIP" >&6; }
12848 else
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12851 fi
12852
12853
12854 fi
12855 if test -z "$ac_cv_prog_STRIP"; then
12856 ac_ct_STRIP=$STRIP
12857 # Extract the first word of "strip", so it can be a program name with args.
12858 set dummy strip; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 if test -n "$ac_ct_STRIP"; then
12865 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12866 else
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874 ac_cv_prog_ac_ct_STRIP="strip"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12876 break 2
12877 fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12885 if test -n "$ac_ct_STRIP"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12887 $as_echo "$ac_ct_STRIP" >&6; }
12888 else
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891 fi
12892
12893 if test "x$ac_ct_STRIP" = x; then
12894 STRIP=":"
12895 else
12896 case $cross_compiling:$ac_tool_warned in
12897 yes:)
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12900 ac_tool_warned=yes ;;
12901 esac
12902 STRIP=$ac_ct_STRIP
12903 fi
12904 else
12905 STRIP="$ac_cv_prog_STRIP"
12906 fi
12907
12908 test -z "$STRIP" && STRIP=:
12909
12910
12911
12912
12913
12914
12915 if test -n "$ac_tool_prefix"; then
12916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12922 else
12923 if test -n "$RANLIB"; then
12924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12925 else
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12928 do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12935 break 2
12936 fi
12937 done
12938 done
12939 IFS=$as_save_IFS
12940
12941 fi
12942 fi
12943 RANLIB=$ac_cv_prog_RANLIB
12944 if test -n "$RANLIB"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12946 $as_echo "$RANLIB" >&6; }
12947 else
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12950 fi
12951
12952
12953 fi
12954 if test -z "$ac_cv_prog_RANLIB"; then
12955 ac_ct_RANLIB=$RANLIB
12956 # Extract the first word of "ranlib", so it can be a program name with args.
12957 set dummy ranlib; ac_word=$2
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959 $as_echo_n "checking for $ac_word... " >&6; }
12960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12962 else
12963 if test -n "$ac_ct_RANLIB"; then
12964 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12965 else
12966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967 for as_dir in $PATH
12968 do
12969 IFS=$as_save_IFS
12970 test -z "$as_dir" && as_dir=.
12971 for ac_exec_ext in '' $ac_executable_extensions; do
12972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12973 ac_cv_prog_ac_ct_RANLIB="ranlib"
12974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12975 break 2
12976 fi
12977 done
12978 done
12979 IFS=$as_save_IFS
12980
12981 fi
12982 fi
12983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12984 if test -n "$ac_ct_RANLIB"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12986 $as_echo "$ac_ct_RANLIB" >&6; }
12987 else
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12990 fi
12991
12992 if test "x$ac_ct_RANLIB" = x; then
12993 RANLIB=":"
12994 else
12995 case $cross_compiling:$ac_tool_warned in
12996 yes:)
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12999 ac_tool_warned=yes ;;
13000 esac
13001 RANLIB=$ac_ct_RANLIB
13002 fi
13003 else
13004 RANLIB="$ac_cv_prog_RANLIB"
13005 fi
13006
13007 test -z "$RANLIB" && RANLIB=:
13008
13009
13010
13011
13012
13013
13014 # Determine commands to create old-style static archives.
13015 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13016 old_postinstall_cmds='chmod 644 $oldlib'
13017 old_postuninstall_cmds=
13018
13019 if test -n "$RANLIB"; then
13020 case $host_os in
13021 openbsd*)
13022 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13023 ;;
13024 *)
13025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13026 ;;
13027 esac
13028 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13029 fi
13030
13031 case $host_os in
13032 darwin*)
13033 lock_old_archive_extraction=yes ;;
13034 *)
13035 lock_old_archive_extraction=no ;;
13036 esac
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076 # If no C compiler was specified, use CC.
13077 LTCC=${LTCC-"$CC"}
13078
13079 # If no C compiler flags were specified, use CFLAGS.
13080 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13081
13082 # Allow CC to be a program name with arguments.
13083 compiler=$CC
13084
13085
13086 # Check for command to grab the raw symbol name followed by C symbol from nm.
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13088 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13089 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092
13093 # These are sane defaults that work on at least a few old systems.
13094 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13095
13096 # Character class describing NM global symbol codes.
13097 symcode='[BCDEGRST]'
13098
13099 # Regexp to match symbols that can be accessed directly from C.
13100 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13101
13102 # Define system-specific variables.
13103 case $host_os in
13104 aix*)
13105 symcode='[BCDT]'
13106 ;;
13107 cygwin* | mingw* | pw32* | cegcc*)
13108 symcode='[ABCDGISTW]'
13109 ;;
13110 hpux*)
13111 if test "$host_cpu" = ia64; then
13112 symcode='[ABCDEGRST]'
13113 fi
13114 ;;
13115 irix* | nonstopux*)
13116 symcode='[BCDEGRST]'
13117 ;;
13118 osf*)
13119 symcode='[BCDEGQRST]'
13120 ;;
13121 solaris*)
13122 symcode='[BDRT]'
13123 ;;
13124 sco3.2v5*)
13125 symcode='[DT]'
13126 ;;
13127 sysv4.2uw2*)
13128 symcode='[DT]'
13129 ;;
13130 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13131 symcode='[ABDT]'
13132 ;;
13133 sysv4)
13134 symcode='[DFNSTU]'
13135 ;;
13136 esac
13137
13138 # If we're using GNU nm, then use its standard symbol codes.
13139 case `$NM -V 2>&1` in
13140 *GNU* | *'with BFD'*)
13141 symcode='[ABCDGIRSTW]' ;;
13142 esac
13143
13144 # Transform an extracted symbol line into a proper C declaration.
13145 # Some systems (esp. on ia64) link data and code symbols differently,
13146 # so use this general approach.
13147 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13148
13149 # Transform an extracted symbol line into symbol name and symbol address
13150 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13151 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'"
13152
13153 # Handle CRLF in mingw tool chain
13154 opt_cr=
13155 case $build_os in
13156 mingw*)
13157 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13158 ;;
13159 esac
13160
13161 # Try without a prefix underscore, then with it.
13162 for ac_symprfx in "" "_"; do
13163
13164 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13165 symxfrm="\\1 $ac_symprfx\\2 \\2"
13166
13167 # Write the raw and C identifiers.
13168 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13169 # Fake it for dumpbin and say T for any non-static function
13170 # and D for any global variable.
13171 # Also find C++ and __fastcall symbols from MSVC++,
13172 # which start with @ or ?.
13173 lt_cv_sys_global_symbol_pipe="$AWK '"\
13174 " {last_section=section; section=\$ 3};"\
13175 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13176 " \$ 0!~/External *\|/{next};"\
13177 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13178 " {if(hide[section]) next};"\
13179 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13180 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13181 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13182 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13183 " ' prfx=^$ac_symprfx"
13184 else
13185 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13186 fi
13187
13188 # Check to see that the pipe works correctly.
13189 pipe_works=no
13190
13191 rm -f conftest*
13192 cat > conftest.$ac_ext <<_LT_EOF
13193 #ifdef __cplusplus
13194 extern "C" {
13195 #endif
13196 char nm_test_var;
13197 void nm_test_func(void);
13198 void nm_test_func(void){}
13199 #ifdef __cplusplus
13200 }
13201 #endif
13202 int main(){nm_test_var='a';nm_test_func();return(0);}
13203 _LT_EOF
13204
13205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13206 (eval $ac_compile) 2>&5
13207 ac_status=$?
13208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13209 test $ac_status = 0; }; then
13210 # Now try to grab the symbols.
13211 nlist=conftest.nm
13212 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13213 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13214 ac_status=$?
13215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13216 test $ac_status = 0; } && test -s "$nlist"; then
13217 # Try sorting and uniquifying the output.
13218 if sort "$nlist" | uniq > "$nlist"T; then
13219 mv -f "$nlist"T "$nlist"
13220 else
13221 rm -f "$nlist"T
13222 fi
13223
13224 # Make sure that we snagged all the symbols we need.
13225 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13226 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13227 cat <<_LT_EOF > conftest.$ac_ext
13228 #ifdef __cplusplus
13229 extern "C" {
13230 #endif
13231
13232 _LT_EOF
13233 # Now generate the symbol file.
13234 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13235
13236 cat <<_LT_EOF >> conftest.$ac_ext
13237
13238 /* The mapping between symbol names and symbols. */
13239 const struct {
13240 const char *name;
13241 void *address;
13242 }
13243 lt__PROGRAM__LTX_preloaded_symbols[] =
13244 {
13245 { "@PROGRAM@", (void *) 0 },
13246 _LT_EOF
13247 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13248 cat <<\_LT_EOF >> conftest.$ac_ext
13249 {0, (void *) 0}
13250 };
13251
13252 /* This works around a problem in FreeBSD linker */
13253 #ifdef FREEBSD_WORKAROUND
13254 static const void *lt_preloaded_setup() {
13255 return lt__PROGRAM__LTX_preloaded_symbols;
13256 }
13257 #endif
13258
13259 #ifdef __cplusplus
13260 }
13261 #endif
13262 _LT_EOF
13263 # Now try linking the two files.
13264 mv conftest.$ac_objext conftstm.$ac_objext
13265 lt_save_LIBS="$LIBS"
13266 lt_save_CFLAGS="$CFLAGS"
13267 LIBS="conftstm.$ac_objext"
13268 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13269 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13270 (eval $ac_link) 2>&5
13271 ac_status=$?
13272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13273 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13274 pipe_works=yes
13275 fi
13276 LIBS="$lt_save_LIBS"
13277 CFLAGS="$lt_save_CFLAGS"
13278 else
13279 echo "cannot find nm_test_func in $nlist" >&5
13280 fi
13281 else
13282 echo "cannot find nm_test_var in $nlist" >&5
13283 fi
13284 else
13285 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13286 fi
13287 else
13288 echo "$progname: failed program was:" >&5
13289 cat conftest.$ac_ext >&5
13290 fi
13291 rm -rf conftest* conftst*
13292
13293 # Do not use the global_symbol_pipe unless it works.
13294 if test "$pipe_works" = yes; then
13295 break
13296 else
13297 lt_cv_sys_global_symbol_pipe=
13298 fi
13299 done
13300
13301 fi
13302
13303 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13304 lt_cv_sys_global_symbol_to_cdecl=
13305 fi
13306 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13308 $as_echo "failed" >&6; }
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13311 $as_echo "ok" >&6; }
13312 fi
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335 # Check whether --enable-libtool-lock was given.
13336 if test "${enable_libtool_lock+set}" = set; then :
13337 enableval=$enable_libtool_lock;
13338 fi
13339
13340 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13341
13342 # Some flags need to be propagated to the compiler or linker for good
13343 # libtool support.
13344 case $host in
13345 ia64-*-hpux*)
13346 # Find out which ABI we are using.
13347 echo 'int i;' > conftest.$ac_ext
13348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13349 (eval $ac_compile) 2>&5
13350 ac_status=$?
13351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13352 test $ac_status = 0; }; then
13353 case `/usr/bin/file conftest.$ac_objext` in
13354 *ELF-32*)
13355 HPUX_IA64_MODE="32"
13356 ;;
13357 *ELF-64*)
13358 HPUX_IA64_MODE="64"
13359 ;;
13360 esac
13361 fi
13362 rm -rf conftest*
13363 ;;
13364 *-*-irix6*)
13365 # Find out which ABI we are using.
13366 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13368 (eval $ac_compile) 2>&5
13369 ac_status=$?
13370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371 test $ac_status = 0; }; then
13372 if test "$lt_cv_prog_gnu_ld" = yes; then
13373 case `/usr/bin/file conftest.$ac_objext` in
13374 *32-bit*)
13375 LD="${LD-ld} -melf32bsmip"
13376 ;;
13377 *N32*)
13378 LD="${LD-ld} -melf32bmipn32"
13379 ;;
13380 *64-bit*)
13381 LD="${LD-ld} -melf64bmip"
13382 ;;
13383 esac
13384 else
13385 case `/usr/bin/file conftest.$ac_objext` in
13386 *32-bit*)
13387 LD="${LD-ld} -32"
13388 ;;
13389 *N32*)
13390 LD="${LD-ld} -n32"
13391 ;;
13392 *64-bit*)
13393 LD="${LD-ld} -64"
13394 ;;
13395 esac
13396 fi
13397 fi
13398 rm -rf conftest*
13399 ;;
13400
13401 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13402 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13403 # Find out which ABI we are using.
13404 echo 'int i;' > conftest.$ac_ext
13405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13406 (eval $ac_compile) 2>&5
13407 ac_status=$?
13408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13409 test $ac_status = 0; }; then
13410 case `/usr/bin/file conftest.o` in
13411 *32-bit*)
13412 case $host in
13413 x86_64-*kfreebsd*-gnu)
13414 LD="${LD-ld} -m elf_i386_fbsd"
13415 ;;
13416 x86_64-*linux*)
13417 LD="${LD-ld} -m elf_i386"
13418 ;;
13419 ppc64-*linux*|powerpc64-*linux*)
13420 LD="${LD-ld} -m elf32ppclinux"
13421 ;;
13422 s390x-*linux*)
13423 LD="${LD-ld} -m elf_s390"
13424 ;;
13425 sparc64-*linux*)
13426 LD="${LD-ld} -m elf32_sparc"
13427 ;;
13428 esac
13429 ;;
13430 *64-bit*)
13431 case $host in
13432 x86_64-*kfreebsd*-gnu)
13433 LD="${LD-ld} -m elf_x86_64_fbsd"
13434 ;;
13435 x86_64-*linux*)
13436 LD="${LD-ld} -m elf_x86_64"
13437 ;;
13438 ppc*-*linux*|powerpc*-*linux*)
13439 LD="${LD-ld} -m elf64ppc"
13440 ;;
13441 s390*-*linux*|s390*-*tpf*)
13442 LD="${LD-ld} -m elf64_s390"
13443 ;;
13444 sparc*-*linux*)
13445 LD="${LD-ld} -m elf64_sparc"
13446 ;;
13447 esac
13448 ;;
13449 esac
13450 fi
13451 rm -rf conftest*
13452 ;;
13453
13454 *-*-sco3.2v5*)
13455 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13456 SAVE_CFLAGS="$CFLAGS"
13457 CFLAGS="$CFLAGS -belf"
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13459 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13460 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13461 $as_echo_n "(cached) " >&6
13462 else
13463 ac_ext=c
13464 ac_cpp='$CPP $CPPFLAGS'
13465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13468
13469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470 /* end confdefs.h. */
13471
13472 int
13473 main ()
13474 {
13475
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_link "$LINENO"; then :
13481 lt_cv_cc_needs_belf=yes
13482 else
13483 lt_cv_cc_needs_belf=no
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 ac_ext=c
13488 ac_cpp='$CPP $CPPFLAGS'
13489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13492
13493 fi
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13495 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13496 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13497 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13498 CFLAGS="$SAVE_CFLAGS"
13499 fi
13500 ;;
13501 sparc*-*solaris*)
13502 # Find out which ABI we are using.
13503 echo 'int i;' > conftest.$ac_ext
13504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13505 (eval $ac_compile) 2>&5
13506 ac_status=$?
13507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13508 test $ac_status = 0; }; then
13509 case `/usr/bin/file conftest.o` in
13510 *64-bit*)
13511 case $lt_cv_prog_gnu_ld in
13512 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13513 *)
13514 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13515 LD="${LD-ld} -64"
13516 fi
13517 ;;
13518 esac
13519 ;;
13520 esac
13521 fi
13522 rm -rf conftest*
13523 ;;
13524 esac
13525
13526 need_locks="$enable_libtool_lock"
13527
13528
13529 case $host_os in
13530 rhapsody* | darwin*)
13531 if test -n "$ac_tool_prefix"; then
13532 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13533 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13535 $as_echo_n "checking for $ac_word... " >&6; }
13536 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13537 $as_echo_n "(cached) " >&6
13538 else
13539 if test -n "$DSYMUTIL"; then
13540 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13541 else
13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13543 for as_dir in $PATH
13544 do
13545 IFS=$as_save_IFS
13546 test -z "$as_dir" && as_dir=.
13547 for ac_exec_ext in '' $ac_executable_extensions; do
13548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13549 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13551 break 2
13552 fi
13553 done
13554 done
13555 IFS=$as_save_IFS
13556
13557 fi
13558 fi
13559 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13560 if test -n "$DSYMUTIL"; then
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13562 $as_echo "$DSYMUTIL" >&6; }
13563 else
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13565 $as_echo "no" >&6; }
13566 fi
13567
13568
13569 fi
13570 if test -z "$ac_cv_prog_DSYMUTIL"; then
13571 ac_ct_DSYMUTIL=$DSYMUTIL
13572 # Extract the first word of "dsymutil", so it can be a program name with args.
13573 set dummy dsymutil; ac_word=$2
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13575 $as_echo_n "checking for $ac_word... " >&6; }
13576 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13577 $as_echo_n "(cached) " >&6
13578 else
13579 if test -n "$ac_ct_DSYMUTIL"; then
13580 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13581 else
13582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13583 for as_dir in $PATH
13584 do
13585 IFS=$as_save_IFS
13586 test -z "$as_dir" && as_dir=.
13587 for ac_exec_ext in '' $ac_executable_extensions; do
13588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13589 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13591 break 2
13592 fi
13593 done
13594 done
13595 IFS=$as_save_IFS
13596
13597 fi
13598 fi
13599 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13600 if test -n "$ac_ct_DSYMUTIL"; then
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13602 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13603 else
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13606 fi
13607
13608 if test "x$ac_ct_DSYMUTIL" = x; then
13609 DSYMUTIL=":"
13610 else
13611 case $cross_compiling:$ac_tool_warned in
13612 yes:)
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13615 ac_tool_warned=yes ;;
13616 esac
13617 DSYMUTIL=$ac_ct_DSYMUTIL
13618 fi
13619 else
13620 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13621 fi
13622
13623 if test -n "$ac_tool_prefix"; then
13624 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13625 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13627 $as_echo_n "checking for $ac_word... " >&6; }
13628 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 if test -n "$NMEDIT"; then
13632 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13633 else
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13636 do
13637 IFS=$as_save_IFS
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13641 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13643 break 2
13644 fi
13645 done
13646 done
13647 IFS=$as_save_IFS
13648
13649 fi
13650 fi
13651 NMEDIT=$ac_cv_prog_NMEDIT
13652 if test -n "$NMEDIT"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13654 $as_echo "$NMEDIT" >&6; }
13655 else
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13657 $as_echo "no" >&6; }
13658 fi
13659
13660
13661 fi
13662 if test -z "$ac_cv_prog_NMEDIT"; then
13663 ac_ct_NMEDIT=$NMEDIT
13664 # Extract the first word of "nmedit", so it can be a program name with args.
13665 set dummy nmedit; ac_word=$2
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13667 $as_echo_n "checking for $ac_word... " >&6; }
13668 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 if test -n "$ac_ct_NMEDIT"; then
13672 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13673 else
13674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13675 for as_dir in $PATH
13676 do
13677 IFS=$as_save_IFS
13678 test -z "$as_dir" && as_dir=.
13679 for ac_exec_ext in '' $ac_executable_extensions; do
13680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13681 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13683 break 2
13684 fi
13685 done
13686 done
13687 IFS=$as_save_IFS
13688
13689 fi
13690 fi
13691 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13692 if test -n "$ac_ct_NMEDIT"; then
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13694 $as_echo "$ac_ct_NMEDIT" >&6; }
13695 else
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13697 $as_echo "no" >&6; }
13698 fi
13699
13700 if test "x$ac_ct_NMEDIT" = x; then
13701 NMEDIT=":"
13702 else
13703 case $cross_compiling:$ac_tool_warned in
13704 yes:)
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13707 ac_tool_warned=yes ;;
13708 esac
13709 NMEDIT=$ac_ct_NMEDIT
13710 fi
13711 else
13712 NMEDIT="$ac_cv_prog_NMEDIT"
13713 fi
13714
13715 if test -n "$ac_tool_prefix"; then
13716 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13717 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13719 $as_echo_n "checking for $ac_word... " >&6; }
13720 if test "${ac_cv_prog_LIPO+set}" = set; then :
13721 $as_echo_n "(cached) " >&6
13722 else
13723 if test -n "$LIPO"; then
13724 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13725 else
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13728 do
13729 IFS=$as_save_IFS
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
13732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13733 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13735 break 2
13736 fi
13737 done
13738 done
13739 IFS=$as_save_IFS
13740
13741 fi
13742 fi
13743 LIPO=$ac_cv_prog_LIPO
13744 if test -n "$LIPO"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13746 $as_echo "$LIPO" >&6; }
13747 else
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13749 $as_echo "no" >&6; }
13750 fi
13751
13752
13753 fi
13754 if test -z "$ac_cv_prog_LIPO"; then
13755 ac_ct_LIPO=$LIPO
13756 # Extract the first word of "lipo", so it can be a program name with args.
13757 set dummy lipo; ac_word=$2
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13759 $as_echo_n "checking for $ac_word... " >&6; }
13760 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13761 $as_echo_n "(cached) " >&6
13762 else
13763 if test -n "$ac_ct_LIPO"; then
13764 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13765 else
13766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13767 for as_dir in $PATH
13768 do
13769 IFS=$as_save_IFS
13770 test -z "$as_dir" && as_dir=.
13771 for ac_exec_ext in '' $ac_executable_extensions; do
13772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13773 ac_cv_prog_ac_ct_LIPO="lipo"
13774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13775 break 2
13776 fi
13777 done
13778 done
13779 IFS=$as_save_IFS
13780
13781 fi
13782 fi
13783 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13784 if test -n "$ac_ct_LIPO"; then
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13786 $as_echo "$ac_ct_LIPO" >&6; }
13787 else
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13789 $as_echo "no" >&6; }
13790 fi
13791
13792 if test "x$ac_ct_LIPO" = x; then
13793 LIPO=":"
13794 else
13795 case $cross_compiling:$ac_tool_warned in
13796 yes:)
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13799 ac_tool_warned=yes ;;
13800 esac
13801 LIPO=$ac_ct_LIPO
13802 fi
13803 else
13804 LIPO="$ac_cv_prog_LIPO"
13805 fi
13806
13807 if test -n "$ac_tool_prefix"; then
13808 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13809 set dummy ${ac_tool_prefix}otool; ac_word=$2
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13811 $as_echo_n "checking for $ac_word... " >&6; }
13812 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13813 $as_echo_n "(cached) " >&6
13814 else
13815 if test -n "$OTOOL"; then
13816 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13817 else
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $PATH
13820 do
13821 IFS=$as_save_IFS
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13825 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13827 break 2
13828 fi
13829 done
13830 done
13831 IFS=$as_save_IFS
13832
13833 fi
13834 fi
13835 OTOOL=$ac_cv_prog_OTOOL
13836 if test -n "$OTOOL"; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13838 $as_echo "$OTOOL" >&6; }
13839 else
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13841 $as_echo "no" >&6; }
13842 fi
13843
13844
13845 fi
13846 if test -z "$ac_cv_prog_OTOOL"; then
13847 ac_ct_OTOOL=$OTOOL
13848 # Extract the first word of "otool", so it can be a program name with args.
13849 set dummy otool; ac_word=$2
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13851 $as_echo_n "checking for $ac_word... " >&6; }
13852 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13853 $as_echo_n "(cached) " >&6
13854 else
13855 if test -n "$ac_ct_OTOOL"; then
13856 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13857 else
13858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13859 for as_dir in $PATH
13860 do
13861 IFS=$as_save_IFS
13862 test -z "$as_dir" && as_dir=.
13863 for ac_exec_ext in '' $ac_executable_extensions; do
13864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13865 ac_cv_prog_ac_ct_OTOOL="otool"
13866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13867 break 2
13868 fi
13869 done
13870 done
13871 IFS=$as_save_IFS
13872
13873 fi
13874 fi
13875 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13876 if test -n "$ac_ct_OTOOL"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13878 $as_echo "$ac_ct_OTOOL" >&6; }
13879 else
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881 $as_echo "no" >&6; }
13882 fi
13883
13884 if test "x$ac_ct_OTOOL" = x; then
13885 OTOOL=":"
13886 else
13887 case $cross_compiling:$ac_tool_warned in
13888 yes:)
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13891 ac_tool_warned=yes ;;
13892 esac
13893 OTOOL=$ac_ct_OTOOL
13894 fi
13895 else
13896 OTOOL="$ac_cv_prog_OTOOL"
13897 fi
13898
13899 if test -n "$ac_tool_prefix"; then
13900 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13901 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13903 $as_echo_n "checking for $ac_word... " >&6; }
13904 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 if test -n "$OTOOL64"; then
13908 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13909 else
13910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911 for as_dir in $PATH
13912 do
13913 IFS=$as_save_IFS
13914 test -z "$as_dir" && as_dir=.
13915 for ac_exec_ext in '' $ac_executable_extensions; do
13916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13917 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13919 break 2
13920 fi
13921 done
13922 done
13923 IFS=$as_save_IFS
13924
13925 fi
13926 fi
13927 OTOOL64=$ac_cv_prog_OTOOL64
13928 if test -n "$OTOOL64"; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13930 $as_echo "$OTOOL64" >&6; }
13931 else
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13934 fi
13935
13936
13937 fi
13938 if test -z "$ac_cv_prog_OTOOL64"; then
13939 ac_ct_OTOOL64=$OTOOL64
13940 # Extract the first word of "otool64", so it can be a program name with args.
13941 set dummy otool64; ac_word=$2
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13943 $as_echo_n "checking for $ac_word... " >&6; }
13944 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13945 $as_echo_n "(cached) " >&6
13946 else
13947 if test -n "$ac_ct_OTOOL64"; then
13948 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13949 else
13950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13951 for as_dir in $PATH
13952 do
13953 IFS=$as_save_IFS
13954 test -z "$as_dir" && as_dir=.
13955 for ac_exec_ext in '' $ac_executable_extensions; do
13956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13957 ac_cv_prog_ac_ct_OTOOL64="otool64"
13958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13959 break 2
13960 fi
13961 done
13962 done
13963 IFS=$as_save_IFS
13964
13965 fi
13966 fi
13967 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13968 if test -n "$ac_ct_OTOOL64"; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13970 $as_echo "$ac_ct_OTOOL64" >&6; }
13971 else
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13973 $as_echo "no" >&6; }
13974 fi
13975
13976 if test "x$ac_ct_OTOOL64" = x; then
13977 OTOOL64=":"
13978 else
13979 case $cross_compiling:$ac_tool_warned in
13980 yes:)
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13983 ac_tool_warned=yes ;;
13984 esac
13985 OTOOL64=$ac_ct_OTOOL64
13986 fi
13987 else
13988 OTOOL64="$ac_cv_prog_OTOOL64"
13989 fi
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14018 $as_echo_n "checking for -single_module linker flag... " >&6; }
14019 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 lt_cv_apple_cc_single_mod=no
14023 if test -z "${LT_MULTI_MODULE}"; then
14024 # By default we will add the -single_module flag. You can override
14025 # by either setting the environment variable LT_MULTI_MODULE
14026 # non-empty at configure time, or by adding -multi_module to the
14027 # link flags.
14028 rm -rf libconftest.dylib*
14029 echo "int foo(void){return 1;}" > conftest.c
14030 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14031 -dynamiclib -Wl,-single_module conftest.c" >&5
14032 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14033 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14034 _lt_result=$?
14035 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14036 lt_cv_apple_cc_single_mod=yes
14037 else
14038 cat conftest.err >&5
14039 fi
14040 rm -rf libconftest.dylib*
14041 rm -f conftest.*
14042 fi
14043 fi
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14045 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14047 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14048 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14049 $as_echo_n "(cached) " >&6
14050 else
14051 lt_cv_ld_exported_symbols_list=no
14052 save_LDFLAGS=$LDFLAGS
14053 echo "_main" > conftest.sym
14054 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057
14058 int
14059 main ()
14060 {
14061
14062 ;
14063 return 0;
14064 }
14065 _ACEOF
14066 if ac_fn_c_try_link "$LINENO"; then :
14067 lt_cv_ld_exported_symbols_list=yes
14068 else
14069 lt_cv_ld_exported_symbols_list=no
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14073 LDFLAGS="$save_LDFLAGS"
14074
14075 fi
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14077 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14079 $as_echo_n "checking for -force_load linker flag... " >&6; }
14080 if test "${lt_cv_ld_force_load+set}" = set; then :
14081 $as_echo_n "(cached) " >&6
14082 else
14083 lt_cv_ld_force_load=no
14084 cat > conftest.c << _LT_EOF
14085 int forced_loaded() { return 2;}
14086 _LT_EOF
14087 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14088 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14089 echo "$AR cru libconftest.a conftest.o" >&5
14090 $AR cru libconftest.a conftest.o 2>&5
14091 cat > conftest.c << _LT_EOF
14092 int main() { return 0;}
14093 _LT_EOF
14094 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14095 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14096 _lt_result=$?
14097 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
14098 lt_cv_ld_force_load=yes
14099 else
14100 cat conftest.err >&5
14101 fi
14102 rm -f conftest.err libconftest.a conftest conftest.c
14103 rm -rf conftest.dSYM
14104
14105 fi
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14107 $as_echo "$lt_cv_ld_force_load" >&6; }
14108 case $host_os in
14109 rhapsody* | darwin1.[012])
14110 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14111 darwin1.*)
14112 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14113 darwin*) # darwin 5.x on
14114 # if running on 10.5 or later, the deployment target defaults
14115 # to the OS version, if on x86, and 10.4, the deployment
14116 # target defaults to 10.4. Don't you love it?
14117 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14118 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14119 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14120 10.[012]*)
14121 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14122 10.*)
14123 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14124 esac
14125 ;;
14126 esac
14127 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14128 _lt_dar_single_mod='$single_module'
14129 fi
14130 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14131 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14132 else
14133 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14134 fi
14135 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
14136 _lt_dsymutil='~$DSYMUTIL $lib || :'
14137 else
14138 _lt_dsymutil=
14139 fi
14140 ;;
14141 esac
14142
14143 for ac_header in dlfcn.h
14144 do :
14145 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
14146 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14147 cat >>confdefs.h <<_ACEOF
14148 #define HAVE_DLFCN_H 1
14149 _ACEOF
14150
14151 fi
14152 done
14153
14154
14155
14156
14157
14158 # Set options
14159
14160
14161
14162 enable_dlopen=no
14163
14164
14165 enable_win32_dll=no
14166
14167
14168 # Check whether --enable-shared was given.
14169 if test "${enable_shared+set}" = set; then :
14170 enableval=$enable_shared; p=${PACKAGE-default}
14171 case $enableval in
14172 yes) enable_shared=yes ;;
14173 no) enable_shared=no ;;
14174 *)
14175 enable_shared=no
14176 # Look at the argument we got. We use all the common list separators.
14177 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14178 for pkg in $enableval; do
14179 IFS="$lt_save_ifs"
14180 if test "X$pkg" = "X$p"; then
14181 enable_shared=yes
14182 fi
14183 done
14184 IFS="$lt_save_ifs"
14185 ;;
14186 esac
14187 else
14188 enable_shared=yes
14189 fi
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199 # Check whether --enable-static was given.
14200 if test "${enable_static+set}" = set; then :
14201 enableval=$enable_static; p=${PACKAGE-default}
14202 case $enableval in
14203 yes) enable_static=yes ;;
14204 no) enable_static=no ;;
14205 *)
14206 enable_static=no
14207 # Look at the argument we got. We use all the common list separators.
14208 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14209 for pkg in $enableval; do
14210 IFS="$lt_save_ifs"
14211 if test "X$pkg" = "X$p"; then
14212 enable_static=yes
14213 fi
14214 done
14215 IFS="$lt_save_ifs"
14216 ;;
14217 esac
14218 else
14219 enable_static=yes
14220 fi
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231 # Check whether --with-pic was given.
14232 if test "${with_pic+set}" = set; then :
14233 withval=$with_pic; pic_mode="$withval"
14234 else
14235 pic_mode=default
14236 fi
14237
14238
14239 test -z "$pic_mode" && pic_mode=default
14240
14241
14242
14243
14244
14245
14246
14247 # Check whether --enable-fast-install was given.
14248 if test "${enable_fast_install+set}" = set; then :
14249 enableval=$enable_fast_install; p=${PACKAGE-default}
14250 case $enableval in
14251 yes) enable_fast_install=yes ;;
14252 no) enable_fast_install=no ;;
14253 *)
14254 enable_fast_install=no
14255 # Look at the argument we got. We use all the common list separators.
14256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14257 for pkg in $enableval; do
14258 IFS="$lt_save_ifs"
14259 if test "X$pkg" = "X$p"; then
14260 enable_fast_install=yes
14261 fi
14262 done
14263 IFS="$lt_save_ifs"
14264 ;;
14265 esac
14266 else
14267 enable_fast_install=yes
14268 fi
14269
14270
14271
14272
14273
14274
14275
14276
14277
14278
14279
14280 # This can be used to rebuild libtool when needed
14281 LIBTOOL_DEPS="$ltmain"
14282
14283 # Always use our own libtool.
14284 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14285
14286
14287
14288
14289
14290
14291
14292
14293
14294
14295
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311 test -z "$LN_S" && LN_S="ln -s"
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326 if test -n "${ZSH_VERSION+set}" ; then
14327 setopt NO_GLOB_SUBST
14328 fi
14329
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14331 $as_echo_n "checking for objdir... " >&6; }
14332 if test "${lt_cv_objdir+set}" = set; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 rm -f .libs 2>/dev/null
14336 mkdir .libs 2>/dev/null
14337 if test -d .libs; then
14338 lt_cv_objdir=.libs
14339 else
14340 # MS-DOS does not allow filenames that begin with a dot.
14341 lt_cv_objdir=_libs
14342 fi
14343 rmdir .libs 2>/dev/null
14344 fi
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14346 $as_echo "$lt_cv_objdir" >&6; }
14347 objdir=$lt_cv_objdir
14348
14349
14350
14351
14352
14353 cat >>confdefs.h <<_ACEOF
14354 #define LT_OBJDIR "$lt_cv_objdir/"
14355 _ACEOF
14356
14357
14358
14359
14360 case $host_os in
14361 aix3*)
14362 # AIX sometimes has problems with the GCC collect2 program. For some
14363 # reason, if we set the COLLECT_NAMES environment variable, the problems
14364 # vanish in a puff of smoke.
14365 if test "X${COLLECT_NAMES+set}" != Xset; then
14366 COLLECT_NAMES=
14367 export COLLECT_NAMES
14368 fi
14369 ;;
14370 esac
14371
14372 # Global variables:
14373 ofile=libtool
14374 can_build_shared=yes
14375
14376 # All known linkers require a `.a' archive for static linking (except MSVC,
14377 # which needs '.lib').
14378 libext=a
14379
14380 with_gnu_ld="$lt_cv_prog_gnu_ld"
14381
14382 old_CC="$CC"
14383 old_CFLAGS="$CFLAGS"
14384
14385 # Set sane defaults for various variables
14386 test -z "$CC" && CC=cc
14387 test -z "$LTCC" && LTCC=$CC
14388 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14389 test -z "$LD" && LD=ld
14390 test -z "$ac_objext" && ac_objext=o
14391
14392 for cc_temp in $compiler""; do
14393 case $cc_temp in
14394 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14395 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14396 \-*) ;;
14397 *) break;;
14398 esac
14399 done
14400 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14401
14402
14403 # Only perform the check for file, if the check method requires it
14404 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14405 case $deplibs_check_method in
14406 file_magic*)
14407 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14409 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14410 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14411 $as_echo_n "(cached) " >&6
14412 else
14413 case $MAGIC_CMD in
14414 [\\/*] | ?:[\\/]*)
14415 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14416 ;;
14417 *)
14418 lt_save_MAGIC_CMD="$MAGIC_CMD"
14419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14420 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14421 for ac_dir in $ac_dummy; do
14422 IFS="$lt_save_ifs"
14423 test -z "$ac_dir" && ac_dir=.
14424 if test -f $ac_dir/${ac_tool_prefix}file; then
14425 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14426 if test -n "$file_magic_test_file"; then
14427 case $deplibs_check_method in
14428 "file_magic "*)
14429 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14432 $EGREP "$file_magic_regex" > /dev/null; then
14433 :
14434 else
14435 cat <<_LT_EOF 1>&2
14436
14437 *** Warning: the command libtool uses to detect shared libraries,
14438 *** $file_magic_cmd, produces output that libtool cannot recognize.
14439 *** The result is that libtool may fail to recognize shared libraries
14440 *** as such. This will affect the creation of libtool libraries that
14441 *** depend on shared libraries, but programs linked with such libtool
14442 *** libraries will work regardless of this problem. Nevertheless, you
14443 *** may want to report the problem to your system manager and/or to
14444 *** bug-libtool@gnu.org
14445
14446 _LT_EOF
14447 fi ;;
14448 esac
14449 fi
14450 break
14451 fi
14452 done
14453 IFS="$lt_save_ifs"
14454 MAGIC_CMD="$lt_save_MAGIC_CMD"
14455 ;;
14456 esac
14457 fi
14458
14459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14460 if test -n "$MAGIC_CMD"; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14462 $as_echo "$MAGIC_CMD" >&6; }
14463 else
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 $as_echo "no" >&6; }
14466 fi
14467
14468
14469
14470
14471
14472 if test -z "$lt_cv_path_MAGIC_CMD"; then
14473 if test -n "$ac_tool_prefix"; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14475 $as_echo_n "checking for file... " >&6; }
14476 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14477 $as_echo_n "(cached) " >&6
14478 else
14479 case $MAGIC_CMD in
14480 [\\/*] | ?:[\\/]*)
14481 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14482 ;;
14483 *)
14484 lt_save_MAGIC_CMD="$MAGIC_CMD"
14485 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14486 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14487 for ac_dir in $ac_dummy; do
14488 IFS="$lt_save_ifs"
14489 test -z "$ac_dir" && ac_dir=.
14490 if test -f $ac_dir/file; then
14491 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14492 if test -n "$file_magic_test_file"; then
14493 case $deplibs_check_method in
14494 "file_magic "*)
14495 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14496 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14497 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14498 $EGREP "$file_magic_regex" > /dev/null; then
14499 :
14500 else
14501 cat <<_LT_EOF 1>&2
14502
14503 *** Warning: the command libtool uses to detect shared libraries,
14504 *** $file_magic_cmd, produces output that libtool cannot recognize.
14505 *** The result is that libtool may fail to recognize shared libraries
14506 *** as such. This will affect the creation of libtool libraries that
14507 *** depend on shared libraries, but programs linked with such libtool
14508 *** libraries will work regardless of this problem. Nevertheless, you
14509 *** may want to report the problem to your system manager and/or to
14510 *** bug-libtool@gnu.org
14511
14512 _LT_EOF
14513 fi ;;
14514 esac
14515 fi
14516 break
14517 fi
14518 done
14519 IFS="$lt_save_ifs"
14520 MAGIC_CMD="$lt_save_MAGIC_CMD"
14521 ;;
14522 esac
14523 fi
14524
14525 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14526 if test -n "$MAGIC_CMD"; then
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14528 $as_echo "$MAGIC_CMD" >&6; }
14529 else
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14531 $as_echo "no" >&6; }
14532 fi
14533
14534
14535 else
14536 MAGIC_CMD=:
14537 fi
14538 fi
14539
14540 fi
14541 ;;
14542 esac
14543
14544 # Use C for the default configuration in the libtool script
14545
14546 lt_save_CC="$CC"
14547 ac_ext=c
14548 ac_cpp='$CPP $CPPFLAGS'
14549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14552
14553
14554 # Source file extension for C test sources.
14555 ac_ext=c
14556
14557 # Object file extension for compiled C test sources.
14558 objext=o
14559 objext=$objext
14560
14561 # Code to be used in simple compile tests
14562 lt_simple_compile_test_code="int some_variable = 0;"
14563
14564 # Code to be used in simple link tests
14565 lt_simple_link_test_code='int main(){return(0);}'
14566
14567
14568
14569
14570
14571
14572
14573 # If no C compiler was specified, use CC.
14574 LTCC=${LTCC-"$CC"}
14575
14576 # If no C compiler flags were specified, use CFLAGS.
14577 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14578
14579 # Allow CC to be a program name with arguments.
14580 compiler=$CC
14581
14582 # Save the default compiler, since it gets overwritten when the other
14583 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14584 compiler_DEFAULT=$CC
14585
14586 # save warnings/boilerplate of simple test code
14587 ac_outfile=conftest.$ac_objext
14588 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14589 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14590 _lt_compiler_boilerplate=`cat conftest.err`
14591 $RM conftest*
14592
14593 ac_outfile=conftest.$ac_objext
14594 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14595 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14596 _lt_linker_boilerplate=`cat conftest.err`
14597 $RM -r conftest*
14598
14599
14600 ## CAVEAT EMPTOR:
14601 ## There is no encapsulation within the following macros, do not change
14602 ## the running order or otherwise move them around unless you know exactly
14603 ## what you are doing...
14604 if test -n "$compiler"; then
14605
14606 lt_prog_compiler_no_builtin_flag=
14607
14608 if test "$GCC" = yes; then
14609 case $cc_basename in
14610 nvcc*)
14611 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14612 *)
14613 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14614 esac
14615
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14617 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14618 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14619 $as_echo_n "(cached) " >&6
14620 else
14621 lt_cv_prog_compiler_rtti_exceptions=no
14622 ac_outfile=conftest.$ac_objext
14623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14624 lt_compiler_flag="-fno-rtti -fno-exceptions"
14625 # Insert the option either (1) after the last *FLAGS variable, or
14626 # (2) before a word containing "conftest.", or (3) at the end.
14627 # Note that $ac_compile itself does not contain backslashes and begins
14628 # with a dollar sign (not a hyphen), so the echo should work correctly.
14629 # The option is referenced via a variable to avoid confusing sed.
14630 lt_compile=`echo "$ac_compile" | $SED \
14631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14633 -e 's:$: $lt_compiler_flag:'`
14634 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14635 (eval "$lt_compile" 2>conftest.err)
14636 ac_status=$?
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 if (exit $ac_status) && test -s "$ac_outfile"; then
14640 # The compiler can only warn and ignore the option if not recognized
14641 # So say no if there are warnings other than the usual output.
14642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14643 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14644 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14645 lt_cv_prog_compiler_rtti_exceptions=yes
14646 fi
14647 fi
14648 $RM conftest*
14649
14650 fi
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14652 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14653
14654 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14655 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14656 else
14657 :
14658 fi
14659
14660 fi
14661
14662
14663
14664
14665
14666
14667 lt_prog_compiler_wl=
14668 lt_prog_compiler_pic=
14669 lt_prog_compiler_static=
14670
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14672 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14673
14674 if test "$GCC" = yes; then
14675 lt_prog_compiler_wl='-Wl,'
14676 lt_prog_compiler_static='-static'
14677
14678 case $host_os in
14679 aix*)
14680 # All AIX code is PIC.
14681 if test "$host_cpu" = ia64; then
14682 # AIX 5 now supports IA64 processor
14683 lt_prog_compiler_static='-Bstatic'
14684 fi
14685 ;;
14686
14687 amigaos*)
14688 case $host_cpu in
14689 powerpc)
14690 # see comment about AmigaOS4 .so support
14691 lt_prog_compiler_pic='-fPIC'
14692 ;;
14693 m68k)
14694 # FIXME: we need at least 68020 code to build shared libraries, but
14695 # adding the `-m68020' flag to GCC prevents building anything better,
14696 # like `-m68040'.
14697 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14698 ;;
14699 esac
14700 ;;
14701
14702 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14703 # PIC is the default for these OSes.
14704 ;;
14705
14706 mingw* | cygwin* | pw32* | os2* | cegcc*)
14707 # This hack is so that the source file can tell whether it is being
14708 # built for inclusion in a dll (and should export symbols for example).
14709 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14710 # (--disable-auto-import) libraries
14711 lt_prog_compiler_pic='-DDLL_EXPORT'
14712 ;;
14713
14714 darwin* | rhapsody*)
14715 # PIC is the default on this platform
14716 # Common symbols not allowed in MH_DYLIB files
14717 lt_prog_compiler_pic='-fno-common'
14718 ;;
14719
14720 haiku*)
14721 # PIC is the default for Haiku.
14722 # The "-static" flag exists, but is broken.
14723 lt_prog_compiler_static=
14724 ;;
14725
14726 hpux*)
14727 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14728 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14729 # sets the default TLS model and affects inlining.
14730 case $host_cpu in
14731 hppa*64*)
14732 # +Z the default
14733 ;;
14734 *)
14735 lt_prog_compiler_pic='-fPIC'
14736 ;;
14737 esac
14738 ;;
14739
14740 interix[3-9]*)
14741 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14742 # Instead, we relocate shared libraries at runtime.
14743 ;;
14744
14745 msdosdjgpp*)
14746 # Just because we use GCC doesn't mean we suddenly get shared libraries
14747 # on systems that don't support them.
14748 lt_prog_compiler_can_build_shared=no
14749 enable_shared=no
14750 ;;
14751
14752 *nto* | *qnx*)
14753 # QNX uses GNU C++, but need to define -shared option too, otherwise
14754 # it will coredump.
14755 lt_prog_compiler_pic='-fPIC -shared'
14756 ;;
14757
14758 sysv4*MP*)
14759 if test -d /usr/nec; then
14760 lt_prog_compiler_pic=-Kconform_pic
14761 fi
14762 ;;
14763
14764 *)
14765 lt_prog_compiler_pic='-fPIC'
14766 ;;
14767 esac
14768
14769 case $cc_basename in
14770 nvcc*) # Cuda Compiler Driver 2.2
14771 lt_prog_compiler_wl='-Xlinker '
14772 lt_prog_compiler_pic='-Xcompiler -fPIC'
14773 ;;
14774 esac
14775 else
14776 # PORTME Check for flag to pass linker flags through the system compiler.
14777 case $host_os in
14778 aix*)
14779 lt_prog_compiler_wl='-Wl,'
14780 if test "$host_cpu" = ia64; then
14781 # AIX 5 now supports IA64 processor
14782 lt_prog_compiler_static='-Bstatic'
14783 else
14784 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14785 fi
14786 ;;
14787
14788 mingw* | cygwin* | pw32* | os2* | cegcc*)
14789 # This hack is so that the source file can tell whether it is being
14790 # built for inclusion in a dll (and should export symbols for example).
14791 lt_prog_compiler_pic='-DDLL_EXPORT'
14792 ;;
14793
14794 hpux9* | hpux10* | hpux11*)
14795 lt_prog_compiler_wl='-Wl,'
14796 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14797 # not for PA HP-UX.
14798 case $host_cpu in
14799 hppa*64*|ia64*)
14800 # +Z the default
14801 ;;
14802 *)
14803 lt_prog_compiler_pic='+Z'
14804 ;;
14805 esac
14806 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14807 lt_prog_compiler_static='${wl}-a ${wl}archive'
14808 ;;
14809
14810 irix5* | irix6* | nonstopux*)
14811 lt_prog_compiler_wl='-Wl,'
14812 # PIC (with -KPIC) is the default.
14813 lt_prog_compiler_static='-non_shared'
14814 ;;
14815
14816 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14817 case $cc_basename in
14818 # old Intel for x86_64 which still supported -KPIC.
14819 ecc*)
14820 lt_prog_compiler_wl='-Wl,'
14821 lt_prog_compiler_pic='-KPIC'
14822 lt_prog_compiler_static='-static'
14823 ;;
14824 # icc used to be incompatible with GCC.
14825 # ICC 10 doesn't accept -KPIC any more.
14826 icc* | ifort*)
14827 lt_prog_compiler_wl='-Wl,'
14828 lt_prog_compiler_pic='-fPIC'
14829 lt_prog_compiler_static='-static'
14830 ;;
14831 # Lahey Fortran 8.1.
14832 lf95*)
14833 lt_prog_compiler_wl='-Wl,'
14834 lt_prog_compiler_pic='--shared'
14835 lt_prog_compiler_static='--static'
14836 ;;
14837 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14838 # Portland Group compilers (*not* the Pentium gcc compiler,
14839 # which looks to be a dead project)
14840 lt_prog_compiler_wl='-Wl,'
14841 lt_prog_compiler_pic='-fpic'
14842 lt_prog_compiler_static='-Bstatic'
14843 ;;
14844 ccc*)
14845 lt_prog_compiler_wl='-Wl,'
14846 # All Alpha code is PIC.
14847 lt_prog_compiler_static='-non_shared'
14848 ;;
14849 xl* | bgxl* | bgf* | mpixl*)
14850 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14851 lt_prog_compiler_wl='-Wl,'
14852 lt_prog_compiler_pic='-qpic'
14853 lt_prog_compiler_static='-qstaticlink'
14854 ;;
14855 *)
14856 case `$CC -V 2>&1 | sed 5q` in
14857 *Sun\ F* | *Sun*Fortran*)
14858 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14859 lt_prog_compiler_pic='-KPIC'
14860 lt_prog_compiler_static='-Bstatic'
14861 lt_prog_compiler_wl=''
14862 ;;
14863 *Sun\ C*)
14864 # Sun C 5.9
14865 lt_prog_compiler_pic='-KPIC'
14866 lt_prog_compiler_static='-Bstatic'
14867 lt_prog_compiler_wl='-Wl,'
14868 ;;
14869 esac
14870 ;;
14871 esac
14872 ;;
14873
14874 newsos6)
14875 lt_prog_compiler_pic='-KPIC'
14876 lt_prog_compiler_static='-Bstatic'
14877 ;;
14878
14879 *nto* | *qnx*)
14880 # QNX uses GNU C++, but need to define -shared option too, otherwise
14881 # it will coredump.
14882 lt_prog_compiler_pic='-fPIC -shared'
14883 ;;
14884
14885 osf3* | osf4* | osf5*)
14886 lt_prog_compiler_wl='-Wl,'
14887 # All OSF/1 code is PIC.
14888 lt_prog_compiler_static='-non_shared'
14889 ;;
14890
14891 rdos*)
14892 lt_prog_compiler_static='-non_shared'
14893 ;;
14894
14895 solaris*)
14896 lt_prog_compiler_pic='-KPIC'
14897 lt_prog_compiler_static='-Bstatic'
14898 case $cc_basename in
14899 f77* | f90* | f95*)
14900 lt_prog_compiler_wl='-Qoption ld ';;
14901 *)
14902 lt_prog_compiler_wl='-Wl,';;
14903 esac
14904 ;;
14905
14906 sunos4*)
14907 lt_prog_compiler_wl='-Qoption ld '
14908 lt_prog_compiler_pic='-PIC'
14909 lt_prog_compiler_static='-Bstatic'
14910 ;;
14911
14912 sysv4 | sysv4.2uw2* | sysv4.3*)
14913 lt_prog_compiler_wl='-Wl,'
14914 lt_prog_compiler_pic='-KPIC'
14915 lt_prog_compiler_static='-Bstatic'
14916 ;;
14917
14918 sysv4*MP*)
14919 if test -d /usr/nec ;then
14920 lt_prog_compiler_pic='-Kconform_pic'
14921 lt_prog_compiler_static='-Bstatic'
14922 fi
14923 ;;
14924
14925 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14926 lt_prog_compiler_wl='-Wl,'
14927 lt_prog_compiler_pic='-KPIC'
14928 lt_prog_compiler_static='-Bstatic'
14929 ;;
14930
14931 unicos*)
14932 lt_prog_compiler_wl='-Wl,'
14933 lt_prog_compiler_can_build_shared=no
14934 ;;
14935
14936 uts4*)
14937 lt_prog_compiler_pic='-pic'
14938 lt_prog_compiler_static='-Bstatic'
14939 ;;
14940
14941 *)
14942 lt_prog_compiler_can_build_shared=no
14943 ;;
14944 esac
14945 fi
14946
14947 case $host_os in
14948 # For platforms which do not support PIC, -DPIC is meaningless:
14949 *djgpp*)
14950 lt_prog_compiler_pic=
14951 ;;
14952 *)
14953 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14954 ;;
14955 esac
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14957 $as_echo "$lt_prog_compiler_pic" >&6; }
14958
14959
14960
14961
14962
14963
14964 #
14965 # Check to make sure the PIC flag actually works.
14966 #
14967 if test -n "$lt_prog_compiler_pic"; then
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14969 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14970 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 lt_cv_prog_compiler_pic_works=no
14974 ac_outfile=conftest.$ac_objext
14975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14976 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14977 # Insert the option either (1) after the last *FLAGS variable, or
14978 # (2) before a word containing "conftest.", or (3) at the end.
14979 # Note that $ac_compile itself does not contain backslashes and begins
14980 # with a dollar sign (not a hyphen), so the echo should work correctly.
14981 # The option is referenced via a variable to avoid confusing sed.
14982 lt_compile=`echo "$ac_compile" | $SED \
14983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14985 -e 's:$: $lt_compiler_flag:'`
14986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14987 (eval "$lt_compile" 2>conftest.err)
14988 ac_status=$?
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 if (exit $ac_status) && test -s "$ac_outfile"; then
14992 # The compiler can only warn and ignore the option if not recognized
14993 # So say no if there are warnings other than the usual output.
14994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14997 lt_cv_prog_compiler_pic_works=yes
14998 fi
14999 fi
15000 $RM conftest*
15001
15002 fi
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15004 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15005
15006 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15007 case $lt_prog_compiler_pic in
15008 "" | " "*) ;;
15009 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15010 esac
15011 else
15012 lt_prog_compiler_pic=
15013 lt_prog_compiler_can_build_shared=no
15014 fi
15015
15016 fi
15017
15018
15019
15020
15021
15022
15023 #
15024 # Check to make sure the static flag actually works.
15025 #
15026 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15028 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15029 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 lt_cv_prog_compiler_static_works=no
15033 save_LDFLAGS="$LDFLAGS"
15034 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15035 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15036 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15037 # The linker can only warn and ignore the option if not recognized
15038 # So say no if there are warnings
15039 if test -s conftest.err; then
15040 # Append any errors to the config.log.
15041 cat conftest.err 1>&5
15042 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15043 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15044 if diff conftest.exp conftest.er2 >/dev/null; then
15045 lt_cv_prog_compiler_static_works=yes
15046 fi
15047 else
15048 lt_cv_prog_compiler_static_works=yes
15049 fi
15050 fi
15051 $RM -r conftest*
15052 LDFLAGS="$save_LDFLAGS"
15053
15054 fi
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15056 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15057
15058 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15059 :
15060 else
15061 lt_prog_compiler_static=
15062 fi
15063
15064
15065
15066
15067
15068
15069
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15072 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075 lt_cv_prog_compiler_c_o=no
15076 $RM -r conftest 2>/dev/null
15077 mkdir conftest
15078 cd conftest
15079 mkdir out
15080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15081
15082 lt_compiler_flag="-o out/conftest2.$ac_objext"
15083 # Insert the option either (1) after the last *FLAGS variable, or
15084 # (2) before a word containing "conftest.", or (3) at the end.
15085 # Note that $ac_compile itself does not contain backslashes and begins
15086 # with a dollar sign (not a hyphen), so the echo should work correctly.
15087 lt_compile=`echo "$ac_compile" | $SED \
15088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15090 -e 's:$: $lt_compiler_flag:'`
15091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15092 (eval "$lt_compile" 2>out/conftest.err)
15093 ac_status=$?
15094 cat out/conftest.err >&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15097 then
15098 # The compiler can only warn and ignore the option if not recognized
15099 # So say no if there are warnings
15100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15103 lt_cv_prog_compiler_c_o=yes
15104 fi
15105 fi
15106 chmod u+w . 2>&5
15107 $RM conftest*
15108 # SGI C++ compiler will create directory out/ii_files/ for
15109 # template instantiation
15110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15111 $RM out/* && rmdir out
15112 cd ..
15113 $RM -r conftest
15114 $RM conftest*
15115
15116 fi
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15118 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15119
15120
15121
15122
15123
15124
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15127 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15128 $as_echo_n "(cached) " >&6
15129 else
15130 lt_cv_prog_compiler_c_o=no
15131 $RM -r conftest 2>/dev/null
15132 mkdir conftest
15133 cd conftest
15134 mkdir out
15135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15136
15137 lt_compiler_flag="-o out/conftest2.$ac_objext"
15138 # Insert the option either (1) after the last *FLAGS variable, or
15139 # (2) before a word containing "conftest.", or (3) at the end.
15140 # Note that $ac_compile itself does not contain backslashes and begins
15141 # with a dollar sign (not a hyphen), so the echo should work correctly.
15142 lt_compile=`echo "$ac_compile" | $SED \
15143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15145 -e 's:$: $lt_compiler_flag:'`
15146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15147 (eval "$lt_compile" 2>out/conftest.err)
15148 ac_status=$?
15149 cat out/conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15152 then
15153 # The compiler can only warn and ignore the option if not recognized
15154 # So say no if there are warnings
15155 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15156 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15157 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15158 lt_cv_prog_compiler_c_o=yes
15159 fi
15160 fi
15161 chmod u+w . 2>&5
15162 $RM conftest*
15163 # SGI C++ compiler will create directory out/ii_files/ for
15164 # template instantiation
15165 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15166 $RM out/* && rmdir out
15167 cd ..
15168 $RM -r conftest
15169 $RM conftest*
15170
15171 fi
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15173 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15174
15175
15176
15177
15178 hard_links="nottested"
15179 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15180 # do not overwrite the value of need_locks provided by the user
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15182 $as_echo_n "checking if we can lock with hard links... " >&6; }
15183 hard_links=yes
15184 $RM conftest*
15185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15186 touch conftest.a
15187 ln conftest.a conftest.b 2>&5 || hard_links=no
15188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15190 $as_echo "$hard_links" >&6; }
15191 if test "$hard_links" = no; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15193 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15194 need_locks=warn
15195 fi
15196 else
15197 need_locks=no
15198 fi
15199
15200
15201
15202
15203
15204
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15206 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15207
15208 runpath_var=
15209 allow_undefined_flag=
15210 always_export_symbols=no
15211 archive_cmds=
15212 archive_expsym_cmds=
15213 compiler_needs_object=no
15214 enable_shared_with_static_runtimes=no
15215 export_dynamic_flag_spec=
15216 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15217 hardcode_automatic=no
15218 hardcode_direct=no
15219 hardcode_direct_absolute=no
15220 hardcode_libdir_flag_spec=
15221 hardcode_libdir_flag_spec_ld=
15222 hardcode_libdir_separator=
15223 hardcode_minus_L=no
15224 hardcode_shlibpath_var=unsupported
15225 inherit_rpath=no
15226 link_all_deplibs=unknown
15227 module_cmds=
15228 module_expsym_cmds=
15229 old_archive_from_new_cmds=
15230 old_archive_from_expsyms_cmds=
15231 thread_safe_flag_spec=
15232 whole_archive_flag_spec=
15233 # include_expsyms should be a list of space-separated symbols to be *always*
15234 # included in the symbol list
15235 include_expsyms=
15236 # exclude_expsyms can be an extended regexp of symbols to exclude
15237 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15238 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15239 # as well as any symbol that contains `d'.
15240 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15241 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15242 # platforms (ab)use it in PIC code, but their linkers get confused if
15243 # the symbol is explicitly referenced. Since portable code cannot
15244 # rely on this symbol name, it's probably fine to never include it in
15245 # preloaded symbol tables.
15246 # Exclude shared library initialization/finalization symbols.
15247 extract_expsyms_cmds=
15248
15249 case $host_os in
15250 cygwin* | mingw* | pw32* | cegcc*)
15251 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15252 # When not using gcc, we currently assume that we are using
15253 # Microsoft Visual C++.
15254 if test "$GCC" != yes; then
15255 with_gnu_ld=no
15256 fi
15257 ;;
15258 interix*)
15259 # we just hope/assume this is gcc and not c89 (= MSVC++)
15260 with_gnu_ld=yes
15261 ;;
15262 openbsd*)
15263 with_gnu_ld=no
15264 ;;
15265 esac
15266
15267 ld_shlibs=yes
15268
15269 # On some targets, GNU ld is compatible enough with the native linker
15270 # that we're better off using the native interface for both.
15271 lt_use_gnu_ld_interface=no
15272 if test "$with_gnu_ld" = yes; then
15273 case $host_os in
15274 aix*)
15275 # The AIX port of GNU ld has always aspired to compatibility
15276 # with the native linker. However, as the warning in the GNU ld
15277 # block says, versions before 2.19.5* couldn't really create working
15278 # shared libraries, regardless of the interface used.
15279 case `$LD -v 2>&1` in
15280 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15281 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15282 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15283 *)
15284 lt_use_gnu_ld_interface=yes
15285 ;;
15286 esac
15287 ;;
15288 *)
15289 lt_use_gnu_ld_interface=yes
15290 ;;
15291 esac
15292 fi
15293
15294 if test "$lt_use_gnu_ld_interface" = yes; then
15295 # If archive_cmds runs LD, not CC, wlarc should be empty
15296 wlarc='${wl}'
15297
15298 # Set some defaults for GNU ld with shared library support. These
15299 # are reset later if shared libraries are not supported. Putting them
15300 # here allows them to be overridden if necessary.
15301 runpath_var=LD_RUN_PATH
15302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15303 export_dynamic_flag_spec='${wl}--export-dynamic'
15304 # ancient GNU ld didn't support --whole-archive et. al.
15305 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15306 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15307 else
15308 whole_archive_flag_spec=
15309 fi
15310 supports_anon_versioning=no
15311 case `$LD -v 2>&1` in
15312 *GNU\ gold*) supports_anon_versioning=yes ;;
15313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15316 *\ 2.11.*) ;; # other 2.11 versions
15317 *) supports_anon_versioning=yes ;;
15318 esac
15319
15320 # See if GNU ld supports shared libraries.
15321 case $host_os in
15322 aix[3-9]*)
15323 # On AIX/PPC, the GNU linker is very broken
15324 if test "$host_cpu" != ia64; then
15325 ld_shlibs=no
15326 cat <<_LT_EOF 1>&2
15327
15328 *** Warning: the GNU linker, at least up to release 2.19, is reported
15329 *** to be unable to reliably create shared libraries on AIX.
15330 *** Therefore, libtool is disabling shared libraries support. If you
15331 *** really care for shared libraries, you may want to install binutils
15332 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15333 *** You will then need to restart the configuration process.
15334
15335 _LT_EOF
15336 fi
15337 ;;
15338
15339 amigaos*)
15340 case $host_cpu in
15341 powerpc)
15342 # see comment about AmigaOS4 .so support
15343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15344 archive_expsym_cmds=''
15345 ;;
15346 m68k)
15347 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)'
15348 hardcode_libdir_flag_spec='-L$libdir'
15349 hardcode_minus_L=yes
15350 ;;
15351 esac
15352 ;;
15353
15354 beos*)
15355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15356 allow_undefined_flag=unsupported
15357 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15358 # support --undefined. This deserves some investigation. FIXME
15359 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15360 else
15361 ld_shlibs=no
15362 fi
15363 ;;
15364
15365 cygwin* | mingw* | pw32* | cegcc*)
15366 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15367 # as there is no search path for DLLs.
15368 hardcode_libdir_flag_spec='-L$libdir'
15369 export_dynamic_flag_spec='${wl}--export-all-symbols'
15370 allow_undefined_flag=unsupported
15371 always_export_symbols=no
15372 enable_shared_with_static_runtimes=yes
15373 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15374
15375 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15377 # If the export-symbols file already is a .def file (1st line
15378 # is EXPORTS), use it as is; otherwise, prepend...
15379 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15380 cp $export_symbols $output_objdir/$soname.def;
15381 else
15382 echo EXPORTS > $output_objdir/$soname.def;
15383 cat $export_symbols >> $output_objdir/$soname.def;
15384 fi~
15385 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15386 else
15387 ld_shlibs=no
15388 fi
15389 ;;
15390
15391 haiku*)
15392 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15393 link_all_deplibs=yes
15394 ;;
15395
15396 interix[3-9]*)
15397 hardcode_direct=no
15398 hardcode_shlibpath_var=no
15399 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15400 export_dynamic_flag_spec='${wl}-E'
15401 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15402 # Instead, shared libraries are loaded at an image base (0x10000000 by
15403 # default) and relocated if they conflict, which is a slow very memory
15404 # consuming and fragmenting process. To avoid this, we pick a random,
15405 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15406 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15407 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15408 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'
15409 ;;
15410
15411 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15412 tmp_diet=no
15413 if test "$host_os" = linux-dietlibc; then
15414 case $cc_basename in
15415 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15416 esac
15417 fi
15418 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15419 && test "$tmp_diet" = no
15420 then
15421 tmp_addflag=
15422 tmp_sharedflag='-shared'
15423 case $cc_basename,$host_cpu in
15424 pgcc*) # Portland Group C compiler
15425 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'
15426 tmp_addflag=' $pic_flag'
15427 ;;
15428 pgf77* | pgf90* | pgf95* | pgfortran*)
15429 # Portland Group f77 and f90 compilers
15430 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'
15431 tmp_addflag=' $pic_flag -Mnomain' ;;
15432 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15433 tmp_addflag=' -i_dynamic' ;;
15434 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15435 tmp_addflag=' -i_dynamic -nofor_main' ;;
15436 ifc* | ifort*) # Intel Fortran compiler
15437 tmp_addflag=' -nofor_main' ;;
15438 lf95*) # Lahey Fortran 8.1
15439 whole_archive_flag_spec=
15440 tmp_sharedflag='--shared' ;;
15441 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15442 tmp_sharedflag='-qmkshrobj'
15443 tmp_addflag= ;;
15444 nvcc*) # Cuda Compiler Driver 2.2
15445 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'
15446 compiler_needs_object=yes
15447 ;;
15448 esac
15449 case `$CC -V 2>&1 | sed 5q` in
15450 *Sun\ C*) # Sun C 5.9
15451 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'
15452 compiler_needs_object=yes
15453 tmp_sharedflag='-G' ;;
15454 *Sun\ F*) # Sun Fortran 8.3
15455 tmp_sharedflag='-G' ;;
15456 esac
15457 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15458
15459 if test "x$supports_anon_versioning" = xyes; then
15460 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15462 echo "local: *; };" >> $output_objdir/$libname.ver~
15463 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15464 fi
15465
15466 case $cc_basename in
15467 xlf* | bgf* | bgxlf* | mpixlf*)
15468 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15469 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15470 hardcode_libdir_flag_spec=
15471 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15472 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15473 if test "x$supports_anon_versioning" = xyes; then
15474 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15475 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15476 echo "local: *; };" >> $output_objdir/$libname.ver~
15477 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15478 fi
15479 ;;
15480 esac
15481 else
15482 ld_shlibs=no
15483 fi
15484 ;;
15485
15486 netbsd*)
15487 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15488 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15489 wlarc=
15490 else
15491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15492 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15493 fi
15494 ;;
15495
15496 solaris*)
15497 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15498 ld_shlibs=no
15499 cat <<_LT_EOF 1>&2
15500
15501 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15502 *** create shared libraries on Solaris systems. Therefore, libtool
15503 *** is disabling shared libraries support. We urge you to upgrade GNU
15504 *** binutils to release 2.9.1 or newer. Another option is to modify
15505 *** your PATH or compiler configuration so that the native linker is
15506 *** used, and then restart.
15507
15508 _LT_EOF
15509 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15511 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15512 else
15513 ld_shlibs=no
15514 fi
15515 ;;
15516
15517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15518 case `$LD -v 2>&1` in
15519 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15520 ld_shlibs=no
15521 cat <<_LT_EOF 1>&2
15522
15523 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15524 *** reliably create shared libraries on SCO systems. Therefore, libtool
15525 *** is disabling shared libraries support. We urge you to upgrade GNU
15526 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15527 *** your PATH or compiler configuration so that the native linker is
15528 *** used, and then restart.
15529
15530 _LT_EOF
15531 ;;
15532 *)
15533 # For security reasons, it is highly recommended that you always
15534 # use absolute paths for naming shared libraries, and exclude the
15535 # DT_RUNPATH tag from executables and libraries. But doing so
15536 # requires that you compile everything twice, which is a pain.
15537 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15538 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15539 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15540 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15541 else
15542 ld_shlibs=no
15543 fi
15544 ;;
15545 esac
15546 ;;
15547
15548 sunos4*)
15549 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15550 wlarc=
15551 hardcode_direct=yes
15552 hardcode_shlibpath_var=no
15553 ;;
15554
15555 *)
15556 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15558 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15559 else
15560 ld_shlibs=no
15561 fi
15562 ;;
15563 esac
15564
15565 if test "$ld_shlibs" = no; then
15566 runpath_var=
15567 hardcode_libdir_flag_spec=
15568 export_dynamic_flag_spec=
15569 whole_archive_flag_spec=
15570 fi
15571 else
15572 # PORTME fill in a description of your system's linker (not GNU ld)
15573 case $host_os in
15574 aix3*)
15575 allow_undefined_flag=unsupported
15576 always_export_symbols=yes
15577 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'
15578 # Note: this linker hardcodes the directories in LIBPATH if there
15579 # are no directories specified by -L.
15580 hardcode_minus_L=yes
15581 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15582 # Neither direct hardcoding nor static linking is supported with a
15583 # broken collect2.
15584 hardcode_direct=unsupported
15585 fi
15586 ;;
15587
15588 aix[4-9]*)
15589 if test "$host_cpu" = ia64; then
15590 # On IA64, the linker does run time linking by default, so we don't
15591 # have to do anything special.
15592 aix_use_runtimelinking=no
15593 exp_sym_flag='-Bexport'
15594 no_entry_flag=""
15595 else
15596 # If we're using GNU nm, then we don't want the "-C" option.
15597 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15598 # Also, AIX nm treats weak defined symbols like other global
15599 # defined symbols, whereas GNU nm marks them as "W".
15600 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15601 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'
15602 else
15603 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'
15604 fi
15605 aix_use_runtimelinking=no
15606
15607 # Test if we are trying to use run time linking or normal
15608 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15609 # need to do runtime linking.
15610 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15611 for ld_flag in $LDFLAGS; do
15612 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15613 aix_use_runtimelinking=yes
15614 break
15615 fi
15616 done
15617 ;;
15618 esac
15619
15620 exp_sym_flag='-bexport'
15621 no_entry_flag='-bnoentry'
15622 fi
15623
15624 # When large executables or shared objects are built, AIX ld can
15625 # have problems creating the table of contents. If linking a library
15626 # or program results in "error TOC overflow" add -mminimal-toc to
15627 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15628 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15629
15630 archive_cmds=''
15631 hardcode_direct=yes
15632 hardcode_direct_absolute=yes
15633 hardcode_libdir_separator=':'
15634 link_all_deplibs=yes
15635 file_list_spec='${wl}-f,'
15636
15637 if test "$GCC" = yes; then
15638 case $host_os in aix4.[012]|aix4.[012].*)
15639 # We only want to do this on AIX 4.2 and lower, the check
15640 # below for broken collect2 doesn't work under 4.3+
15641 collect2name=`${CC} -print-prog-name=collect2`
15642 if test -f "$collect2name" &&
15643 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15644 then
15645 # We have reworked collect2
15646 :
15647 else
15648 # We have old collect2
15649 hardcode_direct=unsupported
15650 # It fails to find uninstalled libraries when the uninstalled
15651 # path is not listed in the libpath. Setting hardcode_minus_L
15652 # to unsupported forces relinking
15653 hardcode_minus_L=yes
15654 hardcode_libdir_flag_spec='-L$libdir'
15655 hardcode_libdir_separator=
15656 fi
15657 ;;
15658 esac
15659 shared_flag='-shared'
15660 if test "$aix_use_runtimelinking" = yes; then
15661 shared_flag="$shared_flag "'${wl}-G'
15662 fi
15663 else
15664 # not using gcc
15665 if test "$host_cpu" = ia64; then
15666 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15667 # chokes on -Wl,-G. The following line is correct:
15668 shared_flag='-G'
15669 else
15670 if test "$aix_use_runtimelinking" = yes; then
15671 shared_flag='${wl}-G'
15672 else
15673 shared_flag='${wl}-bM:SRE'
15674 fi
15675 fi
15676 fi
15677
15678 export_dynamic_flag_spec='${wl}-bexpall'
15679 # It seems that -bexpall does not export symbols beginning with
15680 # underscore (_), so it is better to generate a list of symbols to export.
15681 always_export_symbols=yes
15682 if test "$aix_use_runtimelinking" = yes; then
15683 # Warning - without using the other runtime loading flags (-brtl),
15684 # -berok will link without error, but may produce a broken library.
15685 allow_undefined_flag='-berok'
15686 # Determine the default libpath from the value encoded in an
15687 # empty executable.
15688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15689 /* end confdefs.h. */
15690
15691 int
15692 main ()
15693 {
15694
15695 ;
15696 return 0;
15697 }
15698 _ACEOF
15699 if ac_fn_c_try_link "$LINENO"; then :
15700
15701 lt_aix_libpath_sed='
15702 /Import File Strings/,/^$/ {
15703 /^0/ {
15704 s/^0 *\(.*\)$/\1/
15705 p
15706 }
15707 }'
15708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15709 # Check for a 64-bit object if we didn't find anything.
15710 if test -z "$aix_libpath"; then
15711 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15712 fi
15713 fi
15714 rm -f core conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15717
15718 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15719 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"
15720 else
15721 if test "$host_cpu" = ia64; then
15722 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15723 allow_undefined_flag="-z nodefs"
15724 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"
15725 else
15726 # Determine the default libpath from the value encoded in an
15727 # empty executable.
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15730
15731 int
15732 main ()
15733 {
15734
15735 ;
15736 return 0;
15737 }
15738 _ACEOF
15739 if ac_fn_c_try_link "$LINENO"; then :
15740
15741 lt_aix_libpath_sed='
15742 /Import File Strings/,/^$/ {
15743 /^0/ {
15744 s/^0 *\(.*\)$/\1/
15745 p
15746 }
15747 }'
15748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15749 # Check for a 64-bit object if we didn't find anything.
15750 if test -z "$aix_libpath"; then
15751 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15752 fi
15753 fi
15754 rm -f core conftest.err conftest.$ac_objext \
15755 conftest$ac_exeext conftest.$ac_ext
15756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15757
15758 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15759 # Warning - without using the other run time loading flags,
15760 # -berok will link without error, but may produce a broken library.
15761 no_undefined_flag=' ${wl}-bernotok'
15762 allow_undefined_flag=' ${wl}-berok'
15763 if test "$with_gnu_ld" = yes; then
15764 # We only use this code for GNU lds that support --whole-archive.
15765 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15766 else
15767 # Exported symbols can be pulled into shared objects from archives
15768 whole_archive_flag_spec='$convenience'
15769 fi
15770 archive_cmds_need_lc=yes
15771 # This is similar to how AIX traditionally builds its shared libraries.
15772 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'
15773 fi
15774 fi
15775 ;;
15776
15777 amigaos*)
15778 case $host_cpu in
15779 powerpc)
15780 # see comment about AmigaOS4 .so support
15781 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15782 archive_expsym_cmds=''
15783 ;;
15784 m68k)
15785 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)'
15786 hardcode_libdir_flag_spec='-L$libdir'
15787 hardcode_minus_L=yes
15788 ;;
15789 esac
15790 ;;
15791
15792 bsdi[45]*)
15793 export_dynamic_flag_spec=-rdynamic
15794 ;;
15795
15796 cygwin* | mingw* | pw32* | cegcc*)
15797 # When not using gcc, we currently assume that we are using
15798 # Microsoft Visual C++.
15799 # hardcode_libdir_flag_spec is actually meaningless, as there is
15800 # no search path for DLLs.
15801 hardcode_libdir_flag_spec=' '
15802 allow_undefined_flag=unsupported
15803 # Tell ltmain to make .lib files, not .a files.
15804 libext=lib
15805 # Tell ltmain to make .dll files, not .so files.
15806 shrext_cmds=".dll"
15807 # FIXME: Setting linknames here is a bad hack.
15808 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15809 # The linker will automatically build a .lib file if we build a DLL.
15810 old_archive_from_new_cmds='true'
15811 # FIXME: Should let the user specify the lib program.
15812 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15813 fix_srcfile_path='`cygpath -w "$srcfile"`'
15814 enable_shared_with_static_runtimes=yes
15815 ;;
15816
15817 darwin* | rhapsody*)
15818
15819
15820 archive_cmds_need_lc=no
15821 hardcode_direct=no
15822 hardcode_automatic=yes
15823 hardcode_shlibpath_var=unsupported
15824 if test "$lt_cv_ld_force_load" = "yes"; then
15825 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\"`'
15826 else
15827 whole_archive_flag_spec=''
15828 fi
15829 link_all_deplibs=yes
15830 allow_undefined_flag="$_lt_dar_allow_undefined"
15831 case $cc_basename in
15832 ifort*) _lt_dar_can_shared=yes ;;
15833 *) _lt_dar_can_shared=$GCC ;;
15834 esac
15835 if test "$_lt_dar_can_shared" = "yes"; then
15836 output_verbose_link_cmd=func_echo_all
15837 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15838 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15839 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}"
15840 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}"
15841
15842 else
15843 ld_shlibs=no
15844 fi
15845
15846 ;;
15847
15848 dgux*)
15849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850 hardcode_libdir_flag_spec='-L$libdir'
15851 hardcode_shlibpath_var=no
15852 ;;
15853
15854 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15855 # support. Future versions do this automatically, but an explicit c++rt0.o
15856 # does not break anything, and helps significantly (at the cost of a little
15857 # extra space).
15858 freebsd2.2*)
15859 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15860 hardcode_libdir_flag_spec='-R$libdir'
15861 hardcode_direct=yes
15862 hardcode_shlibpath_var=no
15863 ;;
15864
15865 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15866 freebsd2*)
15867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15868 hardcode_direct=yes
15869 hardcode_minus_L=yes
15870 hardcode_shlibpath_var=no
15871 ;;
15872
15873 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15874 freebsd* | dragonfly*)
15875 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15876 hardcode_libdir_flag_spec='-R$libdir'
15877 hardcode_direct=yes
15878 hardcode_shlibpath_var=no
15879 ;;
15880
15881 hpux9*)
15882 if test "$GCC" = yes; then
15883 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'
15884 else
15885 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'
15886 fi
15887 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15888 hardcode_libdir_separator=:
15889 hardcode_direct=yes
15890
15891 # hardcode_minus_L: Not really in the search PATH,
15892 # but as the default location of the library.
15893 hardcode_minus_L=yes
15894 export_dynamic_flag_spec='${wl}-E'
15895 ;;
15896
15897 hpux10*)
15898 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15899 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15900 else
15901 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15902 fi
15903 if test "$with_gnu_ld" = no; then
15904 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15905 hardcode_libdir_flag_spec_ld='+b $libdir'
15906 hardcode_libdir_separator=:
15907 hardcode_direct=yes
15908 hardcode_direct_absolute=yes
15909 export_dynamic_flag_spec='${wl}-E'
15910 # hardcode_minus_L: Not really in the search PATH,
15911 # but as the default location of the library.
15912 hardcode_minus_L=yes
15913 fi
15914 ;;
15915
15916 hpux11*)
15917 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15918 case $host_cpu in
15919 hppa*64*)
15920 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15921 ;;
15922 ia64*)
15923 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15924 ;;
15925 *)
15926 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15927 ;;
15928 esac
15929 else
15930 case $host_cpu in
15931 hppa*64*)
15932 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15933 ;;
15934 ia64*)
15935 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15936 ;;
15937 *)
15938
15939 # Older versions of the 11.00 compiler do not understand -b yet
15940 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15942 $as_echo_n "checking if $CC understands -b... " >&6; }
15943 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15944 $as_echo_n "(cached) " >&6
15945 else
15946 lt_cv_prog_compiler__b=no
15947 save_LDFLAGS="$LDFLAGS"
15948 LDFLAGS="$LDFLAGS -b"
15949 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15950 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15951 # The linker can only warn and ignore the option if not recognized
15952 # So say no if there are warnings
15953 if test -s conftest.err; then
15954 # Append any errors to the config.log.
15955 cat conftest.err 1>&5
15956 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15957 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15958 if diff conftest.exp conftest.er2 >/dev/null; then
15959 lt_cv_prog_compiler__b=yes
15960 fi
15961 else
15962 lt_cv_prog_compiler__b=yes
15963 fi
15964 fi
15965 $RM -r conftest*
15966 LDFLAGS="$save_LDFLAGS"
15967
15968 fi
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15970 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15971
15972 if test x"$lt_cv_prog_compiler__b" = xyes; then
15973 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15974 else
15975 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15976 fi
15977
15978 ;;
15979 esac
15980 fi
15981 if test "$with_gnu_ld" = no; then
15982 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15983 hardcode_libdir_separator=:
15984
15985 case $host_cpu in
15986 hppa*64*|ia64*)
15987 hardcode_direct=no
15988 hardcode_shlibpath_var=no
15989 ;;
15990 *)
15991 hardcode_direct=yes
15992 hardcode_direct_absolute=yes
15993 export_dynamic_flag_spec='${wl}-E'
15994
15995 # hardcode_minus_L: Not really in the search PATH,
15996 # but as the default location of the library.
15997 hardcode_minus_L=yes
15998 ;;
15999 esac
16000 fi
16001 ;;
16002
16003 irix5* | irix6* | nonstopux*)
16004 if test "$GCC" = yes; then
16005 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'
16006 # Try to use the -exported_symbol ld option, if it does not
16007 # work, assume that -exports_file does not work either and
16008 # implicitly export all symbols.
16009 save_LDFLAGS="$LDFLAGS"
16010 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 int foo(void) {}
16014 _ACEOF
16015 if ac_fn_c_try_link "$LINENO"; then :
16016 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'
16017
16018 fi
16019 rm -f core conftest.err conftest.$ac_objext \
16020 conftest$ac_exeext conftest.$ac_ext
16021 LDFLAGS="$save_LDFLAGS"
16022 else
16023 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'
16024 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'
16025 fi
16026 archive_cmds_need_lc='no'
16027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16028 hardcode_libdir_separator=:
16029 inherit_rpath=yes
16030 link_all_deplibs=yes
16031 ;;
16032
16033 netbsd*)
16034 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16036 else
16037 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16038 fi
16039 hardcode_libdir_flag_spec='-R$libdir'
16040 hardcode_direct=yes
16041 hardcode_shlibpath_var=no
16042 ;;
16043
16044 newsos6)
16045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16046 hardcode_direct=yes
16047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16048 hardcode_libdir_separator=:
16049 hardcode_shlibpath_var=no
16050 ;;
16051
16052 *nto* | *qnx*)
16053 ;;
16054
16055 openbsd*)
16056 if test -f /usr/libexec/ld.so; then
16057 hardcode_direct=yes
16058 hardcode_shlibpath_var=no
16059 hardcode_direct_absolute=yes
16060 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16062 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16063 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16064 export_dynamic_flag_spec='${wl}-E'
16065 else
16066 case $host_os in
16067 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16068 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16069 hardcode_libdir_flag_spec='-R$libdir'
16070 ;;
16071 *)
16072 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16073 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16074 ;;
16075 esac
16076 fi
16077 else
16078 ld_shlibs=no
16079 fi
16080 ;;
16081
16082 os2*)
16083 hardcode_libdir_flag_spec='-L$libdir'
16084 hardcode_minus_L=yes
16085 allow_undefined_flag=unsupported
16086 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'
16087 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16088 ;;
16089
16090 osf3*)
16091 if test "$GCC" = yes; then
16092 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16093 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'
16094 else
16095 allow_undefined_flag=' -expect_unresolved \*'
16096 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'
16097 fi
16098 archive_cmds_need_lc='no'
16099 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16100 hardcode_libdir_separator=:
16101 ;;
16102
16103 osf4* | osf5*) # as osf3* with the addition of -msym flag
16104 if test "$GCC" = yes; then
16105 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16106 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'
16107 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16108 else
16109 allow_undefined_flag=' -expect_unresolved \*'
16110 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'
16111 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~
16112 $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'
16113
16114 # Both c and cxx compiler support -rpath directly
16115 hardcode_libdir_flag_spec='-rpath $libdir'
16116 fi
16117 archive_cmds_need_lc='no'
16118 hardcode_libdir_separator=:
16119 ;;
16120
16121 solaris*)
16122 no_undefined_flag=' -z defs'
16123 if test "$GCC" = yes; then
16124 wlarc='${wl}'
16125 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16126 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16127 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16128 else
16129 case `$CC -V 2>&1` in
16130 *"Compilers 5.0"*)
16131 wlarc=''
16132 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16133 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16134 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16135 ;;
16136 *)
16137 wlarc='${wl}'
16138 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16139 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16140 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16141 ;;
16142 esac
16143 fi
16144 hardcode_libdir_flag_spec='-R$libdir'
16145 hardcode_shlibpath_var=no
16146 case $host_os in
16147 solaris2.[0-5] | solaris2.[0-5].*) ;;
16148 *)
16149 # The compiler driver will combine and reorder linker options,
16150 # but understands `-z linker_flag'. GCC discards it without `$wl',
16151 # but is careful enough not to reorder.
16152 # Supported since Solaris 2.6 (maybe 2.5.1?)
16153 if test "$GCC" = yes; then
16154 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16155 else
16156 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16157 fi
16158 ;;
16159 esac
16160 link_all_deplibs=yes
16161 ;;
16162
16163 sunos4*)
16164 if test "x$host_vendor" = xsequent; then
16165 # Use $CC to link under sequent, because it throws in some extra .o
16166 # files that make .init and .fini sections work.
16167 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16168 else
16169 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16170 fi
16171 hardcode_libdir_flag_spec='-L$libdir'
16172 hardcode_direct=yes
16173 hardcode_minus_L=yes
16174 hardcode_shlibpath_var=no
16175 ;;
16176
16177 sysv4)
16178 case $host_vendor in
16179 sni)
16180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16181 hardcode_direct=yes # is this really true???
16182 ;;
16183 siemens)
16184 ## LD is ld it makes a PLAMLIB
16185 ## CC just makes a GrossModule.
16186 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16187 reload_cmds='$CC -r -o $output$reload_objs'
16188 hardcode_direct=no
16189 ;;
16190 motorola)
16191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16193 ;;
16194 esac
16195 runpath_var='LD_RUN_PATH'
16196 hardcode_shlibpath_var=no
16197 ;;
16198
16199 sysv4.3*)
16200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16201 hardcode_shlibpath_var=no
16202 export_dynamic_flag_spec='-Bexport'
16203 ;;
16204
16205 sysv4*MP*)
16206 if test -d /usr/nec; then
16207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_shlibpath_var=no
16209 runpath_var=LD_RUN_PATH
16210 hardcode_runpath_var=yes
16211 ld_shlibs=yes
16212 fi
16213 ;;
16214
16215 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16216 no_undefined_flag='${wl}-z,text'
16217 archive_cmds_need_lc=no
16218 hardcode_shlibpath_var=no
16219 runpath_var='LD_RUN_PATH'
16220
16221 if test "$GCC" = yes; then
16222 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16223 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 else
16225 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16226 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16227 fi
16228 ;;
16229
16230 sysv5* | sco3.2v5* | sco5v6*)
16231 # Note: We can NOT use -z defs as we might desire, because we do not
16232 # link with -lc, and that would cause any symbols used from libc to
16233 # always be unresolved, which means just about no library would
16234 # ever link correctly. If we're not using GNU ld we use -z text
16235 # though, which does catch some bad symbols but isn't as heavy-handed
16236 # as -z defs.
16237 no_undefined_flag='${wl}-z,text'
16238 allow_undefined_flag='${wl}-z,nodefs'
16239 archive_cmds_need_lc=no
16240 hardcode_shlibpath_var=no
16241 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16242 hardcode_libdir_separator=':'
16243 link_all_deplibs=yes
16244 export_dynamic_flag_spec='${wl}-Bexport'
16245 runpath_var='LD_RUN_PATH'
16246
16247 if test "$GCC" = yes; then
16248 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16249 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16250 else
16251 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16252 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16253 fi
16254 ;;
16255
16256 uts4*)
16257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16258 hardcode_libdir_flag_spec='-L$libdir'
16259 hardcode_shlibpath_var=no
16260 ;;
16261
16262 *)
16263 ld_shlibs=no
16264 ;;
16265 esac
16266
16267 if test x$host_vendor = xsni; then
16268 case $host in
16269 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16270 export_dynamic_flag_spec='${wl}-Blargedynsym'
16271 ;;
16272 esac
16273 fi
16274 fi
16275
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16277 $as_echo "$ld_shlibs" >&6; }
16278 test "$ld_shlibs" = no && can_build_shared=no
16279
16280 with_gnu_ld=$with_gnu_ld
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296 #
16297 # Do we need to explicitly link libc?
16298 #
16299 case "x$archive_cmds_need_lc" in
16300 x|xyes)
16301 # Assume -lc should be added
16302 archive_cmds_need_lc=yes
16303
16304 if test "$enable_shared" = yes && test "$GCC" = yes; then
16305 case $archive_cmds in
16306 *'~'*)
16307 # FIXME: we may have to deal with multi-command sequences.
16308 ;;
16309 '$CC '*)
16310 # Test whether the compiler implicitly links with -lc since on some
16311 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16312 # to ld, don't add -lc before -lgcc.
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16314 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16315 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16316 $as_echo_n "(cached) " >&6
16317 else
16318 $RM conftest*
16319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16320
16321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16322 (eval $ac_compile) 2>&5
16323 ac_status=$?
16324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16325 test $ac_status = 0; } 2>conftest.err; then
16326 soname=conftest
16327 lib=conftest
16328 libobjs=conftest.$ac_objext
16329 deplibs=
16330 wl=$lt_prog_compiler_wl
16331 pic_flag=$lt_prog_compiler_pic
16332 compiler_flags=-v
16333 linker_flags=-v
16334 verstring=
16335 output_objdir=.
16336 libname=conftest
16337 lt_save_allow_undefined_flag=$allow_undefined_flag
16338 allow_undefined_flag=
16339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16340 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16341 ac_status=$?
16342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16343 test $ac_status = 0; }
16344 then
16345 lt_cv_archive_cmds_need_lc=no
16346 else
16347 lt_cv_archive_cmds_need_lc=yes
16348 fi
16349 allow_undefined_flag=$lt_save_allow_undefined_flag
16350 else
16351 cat conftest.err 1>&5
16352 fi
16353 $RM conftest*
16354
16355 fi
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16357 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16358 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16359 ;;
16360 esac
16361 fi
16362 ;;
16363 esac
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400
16401
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
16495
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519
16520
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16522 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16523
16524 if test "$GCC" = yes; then
16525 case $host_os in
16526 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16527 *) lt_awk_arg="/^libraries:/" ;;
16528 esac
16529 case $host_os in
16530 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16531 *) lt_sed_strip_eq="s,=/,/,g" ;;
16532 esac
16533 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16534 case $lt_search_path_spec in
16535 *\;*)
16536 # if the path contains ";" then we assume it to be the separator
16537 # otherwise default to the standard path separator (i.e. ":") - it is
16538 # assumed that no part of a normal pathname contains ";" but that should
16539 # okay in the real world where ";" in dirpaths is itself problematic.
16540 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16541 ;;
16542 *)
16543 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16544 ;;
16545 esac
16546 # Ok, now we have the path, separated by spaces, we can step through it
16547 # and add multilib dir if necessary.
16548 lt_tmp_lt_search_path_spec=
16549 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16550 for lt_sys_path in $lt_search_path_spec; do
16551 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16552 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16553 else
16554 test -d "$lt_sys_path" && \
16555 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16556 fi
16557 done
16558 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16559 BEGIN {RS=" "; FS="/|\n";} {
16560 lt_foo="";
16561 lt_count=0;
16562 for (lt_i = NF; lt_i > 0; lt_i--) {
16563 if ($lt_i != "" && $lt_i != ".") {
16564 if ($lt_i == "..") {
16565 lt_count++;
16566 } else {
16567 if (lt_count == 0) {
16568 lt_foo="/" $lt_i lt_foo;
16569 } else {
16570 lt_count--;
16571 }
16572 }
16573 }
16574 }
16575 if (lt_foo != "") { lt_freq[lt_foo]++; }
16576 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16577 }'`
16578 # AWK program above erroneously prepends '/' to C:/dos/paths
16579 # for these hosts.
16580 case $host_os in
16581 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16582 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16583 esac
16584 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16585 else
16586 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16587 fi
16588 library_names_spec=
16589 libname_spec='lib$name'
16590 soname_spec=
16591 shrext_cmds=".so"
16592 postinstall_cmds=
16593 postuninstall_cmds=
16594 finish_cmds=
16595 finish_eval=
16596 shlibpath_var=
16597 shlibpath_overrides_runpath=unknown
16598 version_type=none
16599 dynamic_linker="$host_os ld.so"
16600 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16601 need_lib_prefix=unknown
16602 hardcode_into_libs=no
16603
16604 # when you set need_version to no, make sure it does not cause -set_version
16605 # flags to be left without arguments
16606 need_version=unknown
16607
16608 case $host_os in
16609 aix3*)
16610 version_type=linux
16611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16612 shlibpath_var=LIBPATH
16613
16614 # AIX 3 has no versioning support, so we append a major version to the name.
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 ;;
16617
16618 aix[4-9]*)
16619 version_type=linux
16620 need_lib_prefix=no
16621 need_version=no
16622 hardcode_into_libs=yes
16623 if test "$host_cpu" = ia64; then
16624 # AIX 5 supports IA64
16625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16626 shlibpath_var=LD_LIBRARY_PATH
16627 else
16628 # With GCC up to 2.95.x, collect2 would create an import file
16629 # for dependence libraries. The import file would start with
16630 # the line `#! .'. This would cause the generated library to
16631 # depend on `.', always an invalid library. This was fixed in
16632 # development snapshots of GCC prior to 3.0.
16633 case $host_os in
16634 aix4 | aix4.[01] | aix4.[01].*)
16635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16636 echo ' yes '
16637 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16638 :
16639 else
16640 can_build_shared=no
16641 fi
16642 ;;
16643 esac
16644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16645 # soname into executable. Probably we can add versioning support to
16646 # collect2, so additional links can be useful in future.
16647 if test "$aix_use_runtimelinking" = yes; then
16648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16649 # instead of lib<name>.a to let people know that these are not
16650 # typical AIX shared libraries.
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 else
16653 # We preserve .a as extension for shared libraries through AIX4.2
16654 # and later when we are not doing run time linking.
16655 library_names_spec='${libname}${release}.a $libname.a'
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 fi
16658 shlibpath_var=LIBPATH
16659 fi
16660 ;;
16661
16662 amigaos*)
16663 case $host_cpu in
16664 powerpc)
16665 # Since July 2007 AmigaOS4 officially supports .so libraries.
16666 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16668 ;;
16669 m68k)
16670 library_names_spec='$libname.ixlibrary $libname.a'
16671 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16672 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'
16673 ;;
16674 esac
16675 ;;
16676
16677 beos*)
16678 library_names_spec='${libname}${shared_ext}'
16679 dynamic_linker="$host_os ld.so"
16680 shlibpath_var=LIBRARY_PATH
16681 ;;
16682
16683 bsdi[45]*)
16684 version_type=linux
16685 need_version=no
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687 soname_spec='${libname}${release}${shared_ext}$major'
16688 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16689 shlibpath_var=LD_LIBRARY_PATH
16690 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16691 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16692 # the default ld.so.conf also contains /usr/contrib/lib and
16693 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16694 # libtool to hard-code these into programs
16695 ;;
16696
16697 cygwin* | mingw* | pw32* | cegcc*)
16698 version_type=windows
16699 shrext_cmds=".dll"
16700 need_version=no
16701 need_lib_prefix=no
16702
16703 case $GCC,$host_os in
16704 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16705 library_names_spec='$libname.dll.a'
16706 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16707 postinstall_cmds='base_file=`basename \${file}`~
16708 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16709 dldir=$destdir/`dirname \$dlpath`~
16710 test -d \$dldir || mkdir -p \$dldir~
16711 $install_prog $dir/$dlname \$dldir/$dlname~
16712 chmod a+x \$dldir/$dlname~
16713 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16714 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16715 fi'
16716 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16717 dlpath=$dir/\$dldll~
16718 $RM \$dlpath'
16719 shlibpath_overrides_runpath=yes
16720
16721 case $host_os in
16722 cygwin*)
16723 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16724 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16725
16726 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16727 ;;
16728 mingw* | cegcc*)
16729 # MinGW DLLs use traditional 'lib' prefix
16730 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16731 ;;
16732 pw32*)
16733 # pw32 DLLs use 'pw' prefix rather than 'lib'
16734 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16735 ;;
16736 esac
16737 ;;
16738
16739 *)
16740 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16741 ;;
16742 esac
16743 dynamic_linker='Win32 ld.exe'
16744 # FIXME: first we should search . and the directory the executable is in
16745 shlibpath_var=PATH
16746 ;;
16747
16748 darwin* | rhapsody*)
16749 dynamic_linker="$host_os dyld"
16750 version_type=darwin
16751 need_lib_prefix=no
16752 need_version=no
16753 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16754 soname_spec='${libname}${release}${major}$shared_ext'
16755 shlibpath_overrides_runpath=yes
16756 shlibpath_var=DYLD_LIBRARY_PATH
16757 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16758
16759 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16761 ;;
16762
16763 dgux*)
16764 version_type=linux
16765 need_lib_prefix=no
16766 need_version=no
16767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16768 soname_spec='${libname}${release}${shared_ext}$major'
16769 shlibpath_var=LD_LIBRARY_PATH
16770 ;;
16771
16772 freebsd* | dragonfly*)
16773 # DragonFly does not have aout. When/if they implement a new
16774 # versioning mechanism, adjust this.
16775 if test -x /usr/bin/objformat; then
16776 objformat=`/usr/bin/objformat`
16777 else
16778 case $host_os in
16779 freebsd[123]*) objformat=aout ;;
16780 *) objformat=elf ;;
16781 esac
16782 fi
16783 version_type=freebsd-$objformat
16784 case $version_type in
16785 freebsd-elf*)
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16787 need_version=no
16788 need_lib_prefix=no
16789 ;;
16790 freebsd-*)
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16792 need_version=yes
16793 ;;
16794 esac
16795 shlibpath_var=LD_LIBRARY_PATH
16796 case $host_os in
16797 freebsd2*)
16798 shlibpath_overrides_runpath=yes
16799 ;;
16800 freebsd3.[01]* | freebsdelf3.[01]*)
16801 shlibpath_overrides_runpath=yes
16802 hardcode_into_libs=yes
16803 ;;
16804 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16805 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16806 shlibpath_overrides_runpath=no
16807 hardcode_into_libs=yes
16808 ;;
16809 *) # from 4.6 on, and DragonFly
16810 shlibpath_overrides_runpath=yes
16811 hardcode_into_libs=yes
16812 ;;
16813 esac
16814 ;;
16815
16816 gnu*)
16817 version_type=linux
16818 need_lib_prefix=no
16819 need_version=no
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16821 soname_spec='${libname}${release}${shared_ext}$major'
16822 shlibpath_var=LD_LIBRARY_PATH
16823 hardcode_into_libs=yes
16824 ;;
16825
16826 haiku*)
16827 version_type=linux
16828 need_lib_prefix=no
16829 need_version=no
16830 dynamic_linker="$host_os runtime_loader"
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 shlibpath_var=LIBRARY_PATH
16834 shlibpath_overrides_runpath=yes
16835 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16836 hardcode_into_libs=yes
16837 ;;
16838
16839 hpux9* | hpux10* | hpux11*)
16840 # Give a soname corresponding to the major version so that dld.sl refuses to
16841 # link against other versions.
16842 version_type=sunos
16843 need_lib_prefix=no
16844 need_version=no
16845 case $host_cpu in
16846 ia64*)
16847 shrext_cmds='.so'
16848 hardcode_into_libs=yes
16849 dynamic_linker="$host_os dld.so"
16850 shlibpath_var=LD_LIBRARY_PATH
16851 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16853 soname_spec='${libname}${release}${shared_ext}$major'
16854 if test "X$HPUX_IA64_MODE" = X32; then
16855 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16856 else
16857 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16858 fi
16859 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16860 ;;
16861 hppa*64*)
16862 shrext_cmds='.sl'
16863 hardcode_into_libs=yes
16864 dynamic_linker="$host_os dld.sl"
16865 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16866 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16869 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16870 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16871 ;;
16872 *)
16873 shrext_cmds='.sl'
16874 dynamic_linker="$host_os dld.sl"
16875 shlibpath_var=SHLIB_PATH
16876 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878 soname_spec='${libname}${release}${shared_ext}$major'
16879 ;;
16880 esac
16881 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16882 postinstall_cmds='chmod 555 $lib'
16883 # or fails outright, so override atomically:
16884 install_override_mode=555
16885 ;;
16886
16887 interix[3-9]*)
16888 version_type=linux
16889 need_lib_prefix=no
16890 need_version=no
16891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16892 soname_spec='${libname}${release}${shared_ext}$major'
16893 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16894 shlibpath_var=LD_LIBRARY_PATH
16895 shlibpath_overrides_runpath=no
16896 hardcode_into_libs=yes
16897 ;;
16898
16899 irix5* | irix6* | nonstopux*)
16900 case $host_os in
16901 nonstopux*) version_type=nonstopux ;;
16902 *)
16903 if test "$lt_cv_prog_gnu_ld" = yes; then
16904 version_type=linux
16905 else
16906 version_type=irix
16907 fi ;;
16908 esac
16909 need_lib_prefix=no
16910 need_version=no
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16913 case $host_os in
16914 irix5* | nonstopux*)
16915 libsuff= shlibsuff=
16916 ;;
16917 *)
16918 case $LD in # libtool.m4 will add one of these switches to LD
16919 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16920 libsuff= shlibsuff= libmagic=32-bit;;
16921 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16922 libsuff=32 shlibsuff=N32 libmagic=N32;;
16923 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16924 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16925 *) libsuff= shlibsuff= libmagic=never-match;;
16926 esac
16927 ;;
16928 esac
16929 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16930 shlibpath_overrides_runpath=no
16931 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16932 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16933 hardcode_into_libs=yes
16934 ;;
16935
16936 # No shared lib support for Linux oldld, aout, or coff.
16937 linux*oldld* | linux*aout* | linux*coff*)
16938 dynamic_linker=no
16939 ;;
16940
16941 # This must be Linux ELF.
16942 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16943 version_type=linux
16944 need_lib_prefix=no
16945 need_version=no
16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16949 shlibpath_var=LD_LIBRARY_PATH
16950 shlibpath_overrides_runpath=no
16951
16952 # Some binutils ld are patched to set DT_RUNPATH
16953 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16956 lt_cv_shlibpath_overrides_runpath=no
16957 save_LDFLAGS=$LDFLAGS
16958 save_libdir=$libdir
16959 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16960 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16963
16964 int
16965 main ()
16966 {
16967
16968 ;
16969 return 0;
16970 }
16971 _ACEOF
16972 if ac_fn_c_try_link "$LINENO"; then :
16973 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16974 lt_cv_shlibpath_overrides_runpath=yes
16975 fi
16976 fi
16977 rm -f core conftest.err conftest.$ac_objext \
16978 conftest$ac_exeext conftest.$ac_ext
16979 LDFLAGS=$save_LDFLAGS
16980 libdir=$save_libdir
16981
16982 fi
16983
16984 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16985
16986 # This implies no fast_install, which is unacceptable.
16987 # Some rework will be needed to allow for fast_install
16988 # before this can be enabled.
16989 hardcode_into_libs=yes
16990
16991 # Append ld.so.conf contents to the search path
16992 if test -f /etc/ld.so.conf; then
16993 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' ' '`
16994 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16995 fi
16996
16997 # We used to test for /lib/ld.so.1 and disable shared libraries on
16998 # powerpc, because MkLinux only supported shared libraries with the
16999 # GNU dynamic linker. Since this was broken with cross compilers,
17000 # most powerpc-linux boxes support dynamic linking these days and
17001 # people can always --disable-shared, the test was removed, and we
17002 # assume the GNU/Linux dynamic linker is in use.
17003 dynamic_linker='GNU/Linux ld.so'
17004 ;;
17005
17006 netbsd*)
17007 version_type=sunos
17008 need_lib_prefix=no
17009 need_version=no
17010 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17013 dynamic_linker='NetBSD (a.out) ld.so'
17014 else
17015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17016 soname_spec='${libname}${release}${shared_ext}$major'
17017 dynamic_linker='NetBSD ld.elf_so'
17018 fi
17019 shlibpath_var=LD_LIBRARY_PATH
17020 shlibpath_overrides_runpath=yes
17021 hardcode_into_libs=yes
17022 ;;
17023
17024 newsos6)
17025 version_type=linux
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17027 shlibpath_var=LD_LIBRARY_PATH
17028 shlibpath_overrides_runpath=yes
17029 ;;
17030
17031 *nto* | *qnx*)
17032 version_type=qnx
17033 need_lib_prefix=no
17034 need_version=no
17035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036 soname_spec='${libname}${release}${shared_ext}$major'
17037 shlibpath_var=LD_LIBRARY_PATH
17038 shlibpath_overrides_runpath=no
17039 hardcode_into_libs=yes
17040 dynamic_linker='ldqnx.so'
17041 ;;
17042
17043 openbsd*)
17044 version_type=sunos
17045 sys_lib_dlsearch_path_spec="/usr/lib"
17046 need_lib_prefix=no
17047 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17048 case $host_os in
17049 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17050 *) need_version=no ;;
17051 esac
17052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17054 shlibpath_var=LD_LIBRARY_PATH
17055 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17056 case $host_os in
17057 openbsd2.[89] | openbsd2.[89].*)
17058 shlibpath_overrides_runpath=no
17059 ;;
17060 *)
17061 shlibpath_overrides_runpath=yes
17062 ;;
17063 esac
17064 else
17065 shlibpath_overrides_runpath=yes
17066 fi
17067 ;;
17068
17069 os2*)
17070 libname_spec='$name'
17071 shrext_cmds=".dll"
17072 need_lib_prefix=no
17073 library_names_spec='$libname${shared_ext} $libname.a'
17074 dynamic_linker='OS/2 ld.exe'
17075 shlibpath_var=LIBPATH
17076 ;;
17077
17078 osf3* | osf4* | osf5*)
17079 version_type=osf
17080 need_lib_prefix=no
17081 need_version=no
17082 soname_spec='${libname}${release}${shared_ext}$major'
17083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17084 shlibpath_var=LD_LIBRARY_PATH
17085 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17086 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17087 ;;
17088
17089 rdos*)
17090 dynamic_linker=no
17091 ;;
17092
17093 solaris*)
17094 version_type=linux
17095 need_lib_prefix=no
17096 need_version=no
17097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17098 soname_spec='${libname}${release}${shared_ext}$major'
17099 shlibpath_var=LD_LIBRARY_PATH
17100 shlibpath_overrides_runpath=yes
17101 hardcode_into_libs=yes
17102 # ldd complains unless libraries are executable
17103 postinstall_cmds='chmod +x $lib'
17104 ;;
17105
17106 sunos4*)
17107 version_type=sunos
17108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17109 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17110 shlibpath_var=LD_LIBRARY_PATH
17111 shlibpath_overrides_runpath=yes
17112 if test "$with_gnu_ld" = yes; then
17113 need_lib_prefix=no
17114 fi
17115 need_version=yes
17116 ;;
17117
17118 sysv4 | sysv4.3*)
17119 version_type=linux
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121 soname_spec='${libname}${release}${shared_ext}$major'
17122 shlibpath_var=LD_LIBRARY_PATH
17123 case $host_vendor in
17124 sni)
17125 shlibpath_overrides_runpath=no
17126 need_lib_prefix=no
17127 runpath_var=LD_RUN_PATH
17128 ;;
17129 siemens)
17130 need_lib_prefix=no
17131 ;;
17132 motorola)
17133 need_lib_prefix=no
17134 need_version=no
17135 shlibpath_overrides_runpath=no
17136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17137 ;;
17138 esac
17139 ;;
17140
17141 sysv4*MP*)
17142 if test -d /usr/nec ;then
17143 version_type=linux
17144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17145 soname_spec='$libname${shared_ext}.$major'
17146 shlibpath_var=LD_LIBRARY_PATH
17147 fi
17148 ;;
17149
17150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17151 version_type=freebsd-elf
17152 need_lib_prefix=no
17153 need_version=no
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17156 shlibpath_var=LD_LIBRARY_PATH
17157 shlibpath_overrides_runpath=yes
17158 hardcode_into_libs=yes
17159 if test "$with_gnu_ld" = yes; then
17160 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17161 else
17162 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17163 case $host_os in
17164 sco3.2v5*)
17165 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17166 ;;
17167 esac
17168 fi
17169 sys_lib_dlsearch_path_spec='/usr/lib'
17170 ;;
17171
17172 tpf*)
17173 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17174 version_type=linux
17175 need_lib_prefix=no
17176 need_version=no
17177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 shlibpath_overrides_runpath=no
17180 hardcode_into_libs=yes
17181 ;;
17182
17183 uts4*)
17184 version_type=linux
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 ;;
17189
17190 *)
17191 dynamic_linker=no
17192 ;;
17193 esac
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17195 $as_echo "$dynamic_linker" >&6; }
17196 test "$dynamic_linker" = no && can_build_shared=no
17197
17198 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17199 if test "$GCC" = yes; then
17200 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17201 fi
17202
17203 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17204 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17205 fi
17206 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17207 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17208 fi
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220
17221
17222
17223
17224
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17302 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17303 hardcode_action=
17304 if test -n "$hardcode_libdir_flag_spec" ||
17305 test -n "$runpath_var" ||
17306 test "X$hardcode_automatic" = "Xyes" ; then
17307
17308 # We can hardcode non-existent directories.
17309 if test "$hardcode_direct" != no &&
17310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17311 # have to relink, otherwise we might link with an installed library
17312 # when we should be linking with a yet-to-be-installed one
17313 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17314 test "$hardcode_minus_L" != no; then
17315 # Linking always hardcodes the temporary library directory.
17316 hardcode_action=relink
17317 else
17318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17319 hardcode_action=immediate
17320 fi
17321 else
17322 # We cannot hardcode anything, or else we can only hardcode existing
17323 # directories.
17324 hardcode_action=unsupported
17325 fi
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17327 $as_echo "$hardcode_action" >&6; }
17328
17329 if test "$hardcode_action" = relink ||
17330 test "$inherit_rpath" = yes; then
17331 # Fast installation is not supported
17332 enable_fast_install=no
17333 elif test "$shlibpath_overrides_runpath" = yes ||
17334 test "$enable_shared" = no; then
17335 # Fast installation is not necessary
17336 enable_fast_install=needless
17337 fi
17338
17339
17340
17341
17342
17343
17344 if test "x$enable_dlopen" != xyes; then
17345 enable_dlopen=unknown
17346 enable_dlopen_self=unknown
17347 enable_dlopen_self_static=unknown
17348 else
17349 lt_cv_dlopen=no
17350 lt_cv_dlopen_libs=
17351
17352 case $host_os in
17353 beos*)
17354 lt_cv_dlopen="load_add_on"
17355 lt_cv_dlopen_libs=
17356 lt_cv_dlopen_self=yes
17357 ;;
17358
17359 mingw* | pw32* | cegcc*)
17360 lt_cv_dlopen="LoadLibrary"
17361 lt_cv_dlopen_libs=
17362 ;;
17363
17364 cygwin*)
17365 lt_cv_dlopen="dlopen"
17366 lt_cv_dlopen_libs=
17367 ;;
17368
17369 darwin*)
17370 # if libdl is installed we need to link against it
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17372 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17373 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17374 $as_echo_n "(cached) " >&6
17375 else
17376 ac_check_lib_save_LIBS=$LIBS
17377 LIBS="-ldl $LIBS"
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380
17381 /* Override any GCC internal prototype to avoid an error.
17382 Use char because int might match the return type of a GCC
17383 builtin and then its argument prototype would still apply. */
17384 #ifdef __cplusplus
17385 extern "C"
17386 #endif
17387 char dlopen ();
17388 int
17389 main ()
17390 {
17391 return dlopen ();
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 if ac_fn_c_try_link "$LINENO"; then :
17397 ac_cv_lib_dl_dlopen=yes
17398 else
17399 ac_cv_lib_dl_dlopen=no
17400 fi
17401 rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17403 LIBS=$ac_check_lib_save_LIBS
17404 fi
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17406 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17407 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17408 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17409 else
17410
17411 lt_cv_dlopen="dyld"
17412 lt_cv_dlopen_libs=
17413 lt_cv_dlopen_self=yes
17414
17415 fi
17416
17417 ;;
17418
17419 *)
17420 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17421 if test "x$ac_cv_func_shl_load" = x""yes; then :
17422 lt_cv_dlopen="shl_load"
17423 else
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17425 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17426 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17427 $as_echo_n "(cached) " >&6
17428 else
17429 ac_check_lib_save_LIBS=$LIBS
17430 LIBS="-ldld $LIBS"
17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17432 /* end confdefs.h. */
17433
17434 /* Override any GCC internal prototype to avoid an error.
17435 Use char because int might match the return type of a GCC
17436 builtin and then its argument prototype would still apply. */
17437 #ifdef __cplusplus
17438 extern "C"
17439 #endif
17440 char shl_load ();
17441 int
17442 main ()
17443 {
17444 return shl_load ();
17445 ;
17446 return 0;
17447 }
17448 _ACEOF
17449 if ac_fn_c_try_link "$LINENO"; then :
17450 ac_cv_lib_dld_shl_load=yes
17451 else
17452 ac_cv_lib_dld_shl_load=no
17453 fi
17454 rm -f core conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
17456 LIBS=$ac_check_lib_save_LIBS
17457 fi
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17459 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17460 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17461 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17462 else
17463 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17464 if test "x$ac_cv_func_dlopen" = x""yes; then :
17465 lt_cv_dlopen="dlopen"
17466 else
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17468 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17469 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17470 $as_echo_n "(cached) " >&6
17471 else
17472 ac_check_lib_save_LIBS=$LIBS
17473 LIBS="-ldl $LIBS"
17474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17475 /* end confdefs.h. */
17476
17477 /* Override any GCC internal prototype to avoid an error.
17478 Use char because int might match the return type of a GCC
17479 builtin and then its argument prototype would still apply. */
17480 #ifdef __cplusplus
17481 extern "C"
17482 #endif
17483 char dlopen ();
17484 int
17485 main ()
17486 {
17487 return dlopen ();
17488 ;
17489 return 0;
17490 }
17491 _ACEOF
17492 if ac_fn_c_try_link "$LINENO"; then :
17493 ac_cv_lib_dl_dlopen=yes
17494 else
17495 ac_cv_lib_dl_dlopen=no
17496 fi
17497 rm -f core conftest.err conftest.$ac_objext \
17498 conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17500 fi
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17502 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17503 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17505 else
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17507 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17508 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17509 $as_echo_n "(cached) " >&6
17510 else
17511 ac_check_lib_save_LIBS=$LIBS
17512 LIBS="-lsvld $LIBS"
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514 /* end confdefs.h. */
17515
17516 /* Override any GCC internal prototype to avoid an error.
17517 Use char because int might match the return type of a GCC
17518 builtin and then its argument prototype would still apply. */
17519 #ifdef __cplusplus
17520 extern "C"
17521 #endif
17522 char dlopen ();
17523 int
17524 main ()
17525 {
17526 return dlopen ();
17527 ;
17528 return 0;
17529 }
17530 _ACEOF
17531 if ac_fn_c_try_link "$LINENO"; then :
17532 ac_cv_lib_svld_dlopen=yes
17533 else
17534 ac_cv_lib_svld_dlopen=no
17535 fi
17536 rm -f core conftest.err conftest.$ac_objext \
17537 conftest$ac_exeext conftest.$ac_ext
17538 LIBS=$ac_check_lib_save_LIBS
17539 fi
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17541 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17542 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17543 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17544 else
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17546 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17547 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17548 $as_echo_n "(cached) " >&6
17549 else
17550 ac_check_lib_save_LIBS=$LIBS
17551 LIBS="-ldld $LIBS"
17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h. */
17554
17555 /* Override any GCC internal prototype to avoid an error.
17556 Use char because int might match the return type of a GCC
17557 builtin and then its argument prototype would still apply. */
17558 #ifdef __cplusplus
17559 extern "C"
17560 #endif
17561 char dld_link ();
17562 int
17563 main ()
17564 {
17565 return dld_link ();
17566 ;
17567 return 0;
17568 }
17569 _ACEOF
17570 if ac_fn_c_try_link "$LINENO"; then :
17571 ac_cv_lib_dld_dld_link=yes
17572 else
17573 ac_cv_lib_dld_dld_link=no
17574 fi
17575 rm -f core conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
17577 LIBS=$ac_check_lib_save_LIBS
17578 fi
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17580 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17581 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17582 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17583 fi
17584
17585
17586 fi
17587
17588
17589 fi
17590
17591
17592 fi
17593
17594
17595 fi
17596
17597
17598 fi
17599
17600 ;;
17601 esac
17602
17603 if test "x$lt_cv_dlopen" != xno; then
17604 enable_dlopen=yes
17605 else
17606 enable_dlopen=no
17607 fi
17608
17609 case $lt_cv_dlopen in
17610 dlopen)
17611 save_CPPFLAGS="$CPPFLAGS"
17612 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17613
17614 save_LDFLAGS="$LDFLAGS"
17615 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17616
17617 save_LIBS="$LIBS"
17618 LIBS="$lt_cv_dlopen_libs $LIBS"
17619
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17621 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17622 if test "${lt_cv_dlopen_self+set}" = set; then :
17623 $as_echo_n "(cached) " >&6
17624 else
17625 if test "$cross_compiling" = yes; then :
17626 lt_cv_dlopen_self=cross
17627 else
17628 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17629 lt_status=$lt_dlunknown
17630 cat > conftest.$ac_ext <<_LT_EOF
17631 #line 17631 "configure"
17632 #include "confdefs.h"
17633
17634 #if HAVE_DLFCN_H
17635 #include <dlfcn.h>
17636 #endif
17637
17638 #include <stdio.h>
17639
17640 #ifdef RTLD_GLOBAL
17641 # define LT_DLGLOBAL RTLD_GLOBAL
17642 #else
17643 # ifdef DL_GLOBAL
17644 # define LT_DLGLOBAL DL_GLOBAL
17645 # else
17646 # define LT_DLGLOBAL 0
17647 # endif
17648 #endif
17649
17650 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17651 find out it does not work in some platform. */
17652 #ifndef LT_DLLAZY_OR_NOW
17653 # ifdef RTLD_LAZY
17654 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17655 # else
17656 # ifdef DL_LAZY
17657 # define LT_DLLAZY_OR_NOW DL_LAZY
17658 # else
17659 # ifdef RTLD_NOW
17660 # define LT_DLLAZY_OR_NOW RTLD_NOW
17661 # else
17662 # ifdef DL_NOW
17663 # define LT_DLLAZY_OR_NOW DL_NOW
17664 # else
17665 # define LT_DLLAZY_OR_NOW 0
17666 # endif
17667 # endif
17668 # endif
17669 # endif
17670 #endif
17671
17672 /* When -fvisbility=hidden is used, assume the code has been annotated
17673 correspondingly for the symbols needed. */
17674 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17675 void fnord () __attribute__((visibility("default")));
17676 #endif
17677
17678 void fnord () { int i=42; }
17679 int main ()
17680 {
17681 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17682 int status = $lt_dlunknown;
17683
17684 if (self)
17685 {
17686 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17687 else
17688 {
17689 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17690 else puts (dlerror ());
17691 }
17692 /* dlclose (self); */
17693 }
17694 else
17695 puts (dlerror ());
17696
17697 return status;
17698 }
17699 _LT_EOF
17700 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17701 (eval $ac_link) 2>&5
17702 ac_status=$?
17703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17704 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17705 (./conftest; exit; ) >&5 2>/dev/null
17706 lt_status=$?
17707 case x$lt_status in
17708 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17709 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17710 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17711 esac
17712 else :
17713 # compilation failed
17714 lt_cv_dlopen_self=no
17715 fi
17716 fi
17717 rm -fr conftest*
17718
17719
17720 fi
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17722 $as_echo "$lt_cv_dlopen_self" >&6; }
17723
17724 if test "x$lt_cv_dlopen_self" = xyes; then
17725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17727 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17728 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17729 $as_echo_n "(cached) " >&6
17730 else
17731 if test "$cross_compiling" = yes; then :
17732 lt_cv_dlopen_self_static=cross
17733 else
17734 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17735 lt_status=$lt_dlunknown
17736 cat > conftest.$ac_ext <<_LT_EOF
17737 #line 17737 "configure"
17738 #include "confdefs.h"
17739
17740 #if HAVE_DLFCN_H
17741 #include <dlfcn.h>
17742 #endif
17743
17744 #include <stdio.h>
17745
17746 #ifdef RTLD_GLOBAL
17747 # define LT_DLGLOBAL RTLD_GLOBAL
17748 #else
17749 # ifdef DL_GLOBAL
17750 # define LT_DLGLOBAL DL_GLOBAL
17751 # else
17752 # define LT_DLGLOBAL 0
17753 # endif
17754 #endif
17755
17756 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17757 find out it does not work in some platform. */
17758 #ifndef LT_DLLAZY_OR_NOW
17759 # ifdef RTLD_LAZY
17760 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17761 # else
17762 # ifdef DL_LAZY
17763 # define LT_DLLAZY_OR_NOW DL_LAZY
17764 # else
17765 # ifdef RTLD_NOW
17766 # define LT_DLLAZY_OR_NOW RTLD_NOW
17767 # else
17768 # ifdef DL_NOW
17769 # define LT_DLLAZY_OR_NOW DL_NOW
17770 # else
17771 # define LT_DLLAZY_OR_NOW 0
17772 # endif
17773 # endif
17774 # endif
17775 # endif
17776 #endif
17777
17778 /* When -fvisbility=hidden is used, assume the code has been annotated
17779 correspondingly for the symbols needed. */
17780 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17781 void fnord () __attribute__((visibility("default")));
17782 #endif
17783
17784 void fnord () { int i=42; }
17785 int main ()
17786 {
17787 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17788 int status = $lt_dlunknown;
17789
17790 if (self)
17791 {
17792 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17793 else
17794 {
17795 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17796 else puts (dlerror ());
17797 }
17798 /* dlclose (self); */
17799 }
17800 else
17801 puts (dlerror ());
17802
17803 return status;
17804 }
17805 _LT_EOF
17806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17807 (eval $ac_link) 2>&5
17808 ac_status=$?
17809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17810 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17811 (./conftest; exit; ) >&5 2>/dev/null
17812 lt_status=$?
17813 case x$lt_status in
17814 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17815 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17816 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17817 esac
17818 else :
17819 # compilation failed
17820 lt_cv_dlopen_self_static=no
17821 fi
17822 fi
17823 rm -fr conftest*
17824
17825
17826 fi
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17828 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17829 fi
17830
17831 CPPFLAGS="$save_CPPFLAGS"
17832 LDFLAGS="$save_LDFLAGS"
17833 LIBS="$save_LIBS"
17834 ;;
17835 esac
17836
17837 case $lt_cv_dlopen_self in
17838 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17839 *) enable_dlopen_self=unknown ;;
17840 esac
17841
17842 case $lt_cv_dlopen_self_static in
17843 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17844 *) enable_dlopen_self_static=unknown ;;
17845 esac
17846 fi
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864 striplib=
17865 old_striplib=
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17867 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17868 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17869 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17870 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17872 $as_echo "yes" >&6; }
17873 else
17874 # FIXME - insert some real tests, host_os isn't really good enough
17875 case $host_os in
17876 darwin*)
17877 if test -n "$STRIP" ; then
17878 striplib="$STRIP -x"
17879 old_striplib="$STRIP -S"
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17881 $as_echo "yes" >&6; }
17882 else
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17884 $as_echo "no" >&6; }
17885 fi
17886 ;;
17887 *)
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17889 $as_echo "no" >&6; }
17890 ;;
17891 esac
17892 fi
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905 # Report which library types will actually be built
17906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17907 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17909 $as_echo "$can_build_shared" >&6; }
17910
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17912 $as_echo_n "checking whether to build shared libraries... " >&6; }
17913 test "$can_build_shared" = "no" && enable_shared=no
17914
17915 # On AIX, shared libraries and static libraries use the same namespace, and
17916 # are all built from PIC.
17917 case $host_os in
17918 aix3*)
17919 test "$enable_shared" = yes && enable_static=no
17920 if test -n "$RANLIB"; then
17921 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17922 postinstall_cmds='$RANLIB $lib'
17923 fi
17924 ;;
17925
17926 aix[4-9]*)
17927 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17928 test "$enable_shared" = yes && enable_static=no
17929 fi
17930 ;;
17931 esac
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17933 $as_echo "$enable_shared" >&6; }
17934
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17936 $as_echo_n "checking whether to build static libraries... " >&6; }
17937 # Make sure either enable_shared or enable_static is yes.
17938 test "$enable_shared" = yes || enable_static=yes
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17940 $as_echo "$enable_static" >&6; }
17941
17942
17943
17944
17945 fi
17946 ac_ext=c
17947 ac_cpp='$CPP $CPPFLAGS'
17948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17951
17952 CC="$lt_save_CC"
17953
17954 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17955 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17956 (test "X$CXX" != "Xg++"))) ; then
17957 ac_ext=cpp
17958 ac_cpp='$CXXCPP $CPPFLAGS'
17959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17963 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17964 if test -z "$CXXCPP"; then
17965 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17966 $as_echo_n "(cached) " >&6
17967 else
17968 # Double quotes because CXXCPP needs to be expanded
17969 for CXXCPP in "$CXX -E" "/lib/cpp"
17970 do
17971 ac_preproc_ok=false
17972 for ac_cxx_preproc_warn_flag in '' yes
17973 do
17974 # Use a header file that comes with gcc, so configuring glibc
17975 # with a fresh cross-compiler works.
17976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17977 # <limits.h> exists even on freestanding compilers.
17978 # On the NeXT, cc -E runs the code through the compiler's parser,
17979 # not just through cpp. "Syntax error" is here to catch this case.
17980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17981 /* end confdefs.h. */
17982 #ifdef __STDC__
17983 # include <limits.h>
17984 #else
17985 # include <assert.h>
17986 #endif
17987 Syntax error
17988 _ACEOF
17989 if ac_fn_cxx_try_cpp "$LINENO"; then :
17990
17991 else
17992 # Broken: fails on valid input.
17993 continue
17994 fi
17995 rm -f conftest.err conftest.$ac_ext
17996
17997 # OK, works on sane cases. Now check whether nonexistent headers
17998 # can be detected and how.
17999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18000 /* end confdefs.h. */
18001 #include <ac_nonexistent.h>
18002 _ACEOF
18003 if ac_fn_cxx_try_cpp "$LINENO"; then :
18004 # Broken: success on invalid input.
18005 continue
18006 else
18007 # Passes both tests.
18008 ac_preproc_ok=:
18009 break
18010 fi
18011 rm -f conftest.err conftest.$ac_ext
18012
18013 done
18014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18015 rm -f conftest.err conftest.$ac_ext
18016 if $ac_preproc_ok; then :
18017 break
18018 fi
18019
18020 done
18021 ac_cv_prog_CXXCPP=$CXXCPP
18022
18023 fi
18024 CXXCPP=$ac_cv_prog_CXXCPP
18025 else
18026 ac_cv_prog_CXXCPP=$CXXCPP
18027 fi
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18029 $as_echo "$CXXCPP" >&6; }
18030 ac_preproc_ok=false
18031 for ac_cxx_preproc_warn_flag in '' yes
18032 do
18033 # Use a header file that comes with gcc, so configuring glibc
18034 # with a fresh cross-compiler works.
18035 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18036 # <limits.h> exists even on freestanding compilers.
18037 # On the NeXT, cc -E runs the code through the compiler's parser,
18038 # not just through cpp. "Syntax error" is here to catch this case.
18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18041 #ifdef __STDC__
18042 # include <limits.h>
18043 #else
18044 # include <assert.h>
18045 #endif
18046 Syntax error
18047 _ACEOF
18048 if ac_fn_cxx_try_cpp "$LINENO"; then :
18049
18050 else
18051 # Broken: fails on valid input.
18052 continue
18053 fi
18054 rm -f conftest.err conftest.$ac_ext
18055
18056 # OK, works on sane cases. Now check whether nonexistent headers
18057 # can be detected and how.
18058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059 /* end confdefs.h. */
18060 #include <ac_nonexistent.h>
18061 _ACEOF
18062 if ac_fn_cxx_try_cpp "$LINENO"; then :
18063 # Broken: success on invalid input.
18064 continue
18065 else
18066 # Passes both tests.
18067 ac_preproc_ok=:
18068 break
18069 fi
18070 rm -f conftest.err conftest.$ac_ext
18071
18072 done
18073 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18074 rm -f conftest.err conftest.$ac_ext
18075 if $ac_preproc_ok; then :
18076
18077 else
18078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18080 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
18081 See \`config.log' for more details." "$LINENO" 5; }
18082 fi
18083
18084 ac_ext=c
18085 ac_cpp='$CPP $CPPFLAGS'
18086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18089
18090 else
18091 _lt_caught_CXX_error=yes
18092 fi
18093
18094 ac_ext=cpp
18095 ac_cpp='$CXXCPP $CPPFLAGS'
18096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18099
18100 archive_cmds_need_lc_CXX=no
18101 allow_undefined_flag_CXX=
18102 always_export_symbols_CXX=no
18103 archive_expsym_cmds_CXX=
18104 compiler_needs_object_CXX=no
18105 export_dynamic_flag_spec_CXX=
18106 hardcode_direct_CXX=no
18107 hardcode_direct_absolute_CXX=no
18108 hardcode_libdir_flag_spec_CXX=
18109 hardcode_libdir_flag_spec_ld_CXX=
18110 hardcode_libdir_separator_CXX=
18111 hardcode_minus_L_CXX=no
18112 hardcode_shlibpath_var_CXX=unsupported
18113 hardcode_automatic_CXX=no
18114 inherit_rpath_CXX=no
18115 module_cmds_CXX=
18116 module_expsym_cmds_CXX=
18117 link_all_deplibs_CXX=unknown
18118 old_archive_cmds_CXX=$old_archive_cmds
18119 reload_flag_CXX=$reload_flag
18120 reload_cmds_CXX=$reload_cmds
18121 no_undefined_flag_CXX=
18122 whole_archive_flag_spec_CXX=
18123 enable_shared_with_static_runtimes_CXX=no
18124
18125 # Source file extension for C++ test sources.
18126 ac_ext=cpp
18127
18128 # Object file extension for compiled C++ test sources.
18129 objext=o
18130 objext_CXX=$objext
18131
18132 # No sense in running all these tests if we already determined that
18133 # the CXX compiler isn't working. Some variables (like enable_shared)
18134 # are currently assumed to apply to all compilers on this platform,
18135 # and will be corrupted by setting them based on a non-working compiler.
18136 if test "$_lt_caught_CXX_error" != yes; then
18137 # Code to be used in simple compile tests
18138 lt_simple_compile_test_code="int some_variable = 0;"
18139
18140 # Code to be used in simple link tests
18141 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18142
18143 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18144
18145
18146
18147
18148
18149
18150 # If no C compiler was specified, use CC.
18151 LTCC=${LTCC-"$CC"}
18152
18153 # If no C compiler flags were specified, use CFLAGS.
18154 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18155
18156 # Allow CC to be a program name with arguments.
18157 compiler=$CC
18158
18159
18160 # save warnings/boilerplate of simple test code
18161 ac_outfile=conftest.$ac_objext
18162 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18163 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18164 _lt_compiler_boilerplate=`cat conftest.err`
18165 $RM conftest*
18166
18167 ac_outfile=conftest.$ac_objext
18168 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18169 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18170 _lt_linker_boilerplate=`cat conftest.err`
18171 $RM -r conftest*
18172
18173
18174 # Allow CC to be a program name with arguments.
18175 lt_save_CC=$CC
18176 lt_save_LD=$LD
18177 lt_save_GCC=$GCC
18178 GCC=$GXX
18179 lt_save_with_gnu_ld=$with_gnu_ld
18180 lt_save_path_LD=$lt_cv_path_LD
18181 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18182 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18183 else
18184 $as_unset lt_cv_prog_gnu_ld
18185 fi
18186 if test -n "${lt_cv_path_LDCXX+set}"; then
18187 lt_cv_path_LD=$lt_cv_path_LDCXX
18188 else
18189 $as_unset lt_cv_path_LD
18190 fi
18191 test -z "${LDCXX+set}" || LD=$LDCXX
18192 CC=${CXX-"c++"}
18193 compiler=$CC
18194 compiler_CXX=$CC
18195 for cc_temp in $compiler""; do
18196 case $cc_temp in
18197 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18198 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18199 \-*) ;;
18200 *) break;;
18201 esac
18202 done
18203 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18204
18205
18206 if test -n "$compiler"; then
18207 # We don't want -fno-exception when compiling C++ code, so set the
18208 # no_builtin_flag separately
18209 if test "$GXX" = yes; then
18210 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18211 else
18212 lt_prog_compiler_no_builtin_flag_CXX=
18213 fi
18214
18215 if test "$GXX" = yes; then
18216 # Set up default GNU C++ configuration
18217
18218
18219
18220 # Check whether --with-gnu-ld was given.
18221 if test "${with_gnu_ld+set}" = set; then :
18222 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18223 else
18224 with_gnu_ld=no
18225 fi
18226
18227 ac_prog=ld
18228 if test "$GCC" = yes; then
18229 # Check if gcc -print-prog-name=ld gives a path.
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18231 $as_echo_n "checking for ld used by $CC... " >&6; }
18232 case $host in
18233 *-*-mingw*)
18234 # gcc leaves a trailing carriage return which upsets mingw
18235 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18236 *)
18237 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18238 esac
18239 case $ac_prog in
18240 # Accept absolute paths.
18241 [\\/]* | ?:[\\/]*)
18242 re_direlt='/[^/][^/]*/\.\./'
18243 # Canonicalize the pathname of ld
18244 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18245 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18246 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18247 done
18248 test -z "$LD" && LD="$ac_prog"
18249 ;;
18250 "")
18251 # If it fails, then pretend we aren't using GCC.
18252 ac_prog=ld
18253 ;;
18254 *)
18255 # If it is relative, then search for the first ld in PATH.
18256 with_gnu_ld=unknown
18257 ;;
18258 esac
18259 elif test "$with_gnu_ld" = yes; then
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18261 $as_echo_n "checking for GNU ld... " >&6; }
18262 else
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18264 $as_echo_n "checking for non-GNU ld... " >&6; }
18265 fi
18266 if test "${lt_cv_path_LD+set}" = set; then :
18267 $as_echo_n "(cached) " >&6
18268 else
18269 if test -z "$LD"; then
18270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18271 for ac_dir in $PATH; do
18272 IFS="$lt_save_ifs"
18273 test -z "$ac_dir" && ac_dir=.
18274 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18275 lt_cv_path_LD="$ac_dir/$ac_prog"
18276 # Check to see if the program is GNU ld. I'd rather use --version,
18277 # but apparently some variants of GNU ld only accept -v.
18278 # Break only if it was the GNU/non-GNU ld that we prefer.
18279 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18280 *GNU* | *'with BFD'*)
18281 test "$with_gnu_ld" != no && break
18282 ;;
18283 *)
18284 test "$with_gnu_ld" != yes && break
18285 ;;
18286 esac
18287 fi
18288 done
18289 IFS="$lt_save_ifs"
18290 else
18291 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18292 fi
18293 fi
18294
18295 LD="$lt_cv_path_LD"
18296 if test -n "$LD"; then
18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18298 $as_echo "$LD" >&6; }
18299 else
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18301 $as_echo "no" >&6; }
18302 fi
18303 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18305 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18306 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18307 $as_echo_n "(cached) " >&6
18308 else
18309 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18310 case `$LD -v 2>&1 </dev/null` in
18311 *GNU* | *'with BFD'*)
18312 lt_cv_prog_gnu_ld=yes
18313 ;;
18314 *)
18315 lt_cv_prog_gnu_ld=no
18316 ;;
18317 esac
18318 fi
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18320 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18321 with_gnu_ld=$lt_cv_prog_gnu_ld
18322
18323
18324
18325
18326
18327
18328
18329 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18330 # archiving commands below assume that GNU ld is being used.
18331 if test "$with_gnu_ld" = yes; then
18332 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18333 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18334
18335 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18337
18338 # If archive_cmds runs LD, not CC, wlarc should be empty
18339 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18340 # investigate it a little bit more. (MM)
18341 wlarc='${wl}'
18342
18343 # ancient GNU ld didn't support --whole-archive et. al.
18344 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18345 $GREP 'no-whole-archive' > /dev/null; then
18346 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18347 else
18348 whole_archive_flag_spec_CXX=
18349 fi
18350 else
18351 with_gnu_ld=no
18352 wlarc=
18353
18354 # A generic and very simple default shared library creation
18355 # command for GNU C++ for the case where it uses the native
18356 # linker, instead of GNU ld. If possible, this setting should
18357 # overridden to take advantage of the native linker features on
18358 # the platform it is being used on.
18359 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18360 fi
18361
18362 # Commands to make compiler produce verbose output that lists
18363 # what "hidden" libraries, object files and flags are used when
18364 # linking a shared library.
18365 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18366
18367 else
18368 GXX=no
18369 with_gnu_ld=no
18370 wlarc=
18371 fi
18372
18373 # PORTME: fill in a description of your system's C++ link characteristics
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18375 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18376 ld_shlibs_CXX=yes
18377 case $host_os in
18378 aix3*)
18379 # FIXME: insert proper C++ library support
18380 ld_shlibs_CXX=no
18381 ;;
18382 aix[4-9]*)
18383 if test "$host_cpu" = ia64; then
18384 # On IA64, the linker does run time linking by default, so we don't
18385 # have to do anything special.
18386 aix_use_runtimelinking=no
18387 exp_sym_flag='-Bexport'
18388 no_entry_flag=""
18389 else
18390 aix_use_runtimelinking=no
18391
18392 # Test if we are trying to use run time linking or normal
18393 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18394 # need to do runtime linking.
18395 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18396 for ld_flag in $LDFLAGS; do
18397 case $ld_flag in
18398 *-brtl*)
18399 aix_use_runtimelinking=yes
18400 break
18401 ;;
18402 esac
18403 done
18404 ;;
18405 esac
18406
18407 exp_sym_flag='-bexport'
18408 no_entry_flag='-bnoentry'
18409 fi
18410
18411 # When large executables or shared objects are built, AIX ld can
18412 # have problems creating the table of contents. If linking a library
18413 # or program results in "error TOC overflow" add -mminimal-toc to
18414 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18415 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18416
18417 archive_cmds_CXX=''
18418 hardcode_direct_CXX=yes
18419 hardcode_direct_absolute_CXX=yes
18420 hardcode_libdir_separator_CXX=':'
18421 link_all_deplibs_CXX=yes
18422 file_list_spec_CXX='${wl}-f,'
18423
18424 if test "$GXX" = yes; then
18425 case $host_os in aix4.[012]|aix4.[012].*)
18426 # We only want to do this on AIX 4.2 and lower, the check
18427 # below for broken collect2 doesn't work under 4.3+
18428 collect2name=`${CC} -print-prog-name=collect2`
18429 if test -f "$collect2name" &&
18430 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18431 then
18432 # We have reworked collect2
18433 :
18434 else
18435 # We have old collect2
18436 hardcode_direct_CXX=unsupported
18437 # It fails to find uninstalled libraries when the uninstalled
18438 # path is not listed in the libpath. Setting hardcode_minus_L
18439 # to unsupported forces relinking
18440 hardcode_minus_L_CXX=yes
18441 hardcode_libdir_flag_spec_CXX='-L$libdir'
18442 hardcode_libdir_separator_CXX=
18443 fi
18444 esac
18445 shared_flag='-shared'
18446 if test "$aix_use_runtimelinking" = yes; then
18447 shared_flag="$shared_flag "'${wl}-G'
18448 fi
18449 else
18450 # not using gcc
18451 if test "$host_cpu" = ia64; then
18452 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18453 # chokes on -Wl,-G. The following line is correct:
18454 shared_flag='-G'
18455 else
18456 if test "$aix_use_runtimelinking" = yes; then
18457 shared_flag='${wl}-G'
18458 else
18459 shared_flag='${wl}-bM:SRE'
18460 fi
18461 fi
18462 fi
18463
18464 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18465 # It seems that -bexpall does not export symbols beginning with
18466 # underscore (_), so it is better to generate a list of symbols to
18467 # export.
18468 always_export_symbols_CXX=yes
18469 if test "$aix_use_runtimelinking" = yes; then
18470 # Warning - without using the other runtime loading flags (-brtl),
18471 # -berok will link without error, but may produce a broken library.
18472 allow_undefined_flag_CXX='-berok'
18473 # Determine the default libpath from the value encoded in an empty
18474 # executable.
18475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476 /* end confdefs.h. */
18477
18478 int
18479 main ()
18480 {
18481
18482 ;
18483 return 0;
18484 }
18485 _ACEOF
18486 if ac_fn_cxx_try_link "$LINENO"; then :
18487
18488 lt_aix_libpath_sed='
18489 /Import File Strings/,/^$/ {
18490 /^0/ {
18491 s/^0 *\(.*\)$/\1/
18492 p
18493 }
18494 }'
18495 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18496 # Check for a 64-bit object if we didn't find anything.
18497 if test -z "$aix_libpath"; then
18498 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18499 fi
18500 fi
18501 rm -f core conftest.err conftest.$ac_objext \
18502 conftest$ac_exeext conftest.$ac_ext
18503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18504
18505 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18506
18507 archive_expsym_cmds_CXX='$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"
18508 else
18509 if test "$host_cpu" = ia64; then
18510 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18511 allow_undefined_flag_CXX="-z nodefs"
18512 archive_expsym_cmds_CXX="\$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"
18513 else
18514 # Determine the default libpath from the value encoded in an
18515 # empty executable.
18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18517 /* end confdefs.h. */
18518
18519 int
18520 main ()
18521 {
18522
18523 ;
18524 return 0;
18525 }
18526 _ACEOF
18527 if ac_fn_cxx_try_link "$LINENO"; then :
18528
18529 lt_aix_libpath_sed='
18530 /Import File Strings/,/^$/ {
18531 /^0/ {
18532 s/^0 *\(.*\)$/\1/
18533 p
18534 }
18535 }'
18536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18537 # Check for a 64-bit object if we didn't find anything.
18538 if test -z "$aix_libpath"; then
18539 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18540 fi
18541 fi
18542 rm -f core conftest.err conftest.$ac_objext \
18543 conftest$ac_exeext conftest.$ac_ext
18544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18545
18546 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18547 # Warning - without using the other run time loading flags,
18548 # -berok will link without error, but may produce a broken library.
18549 no_undefined_flag_CXX=' ${wl}-bernotok'
18550 allow_undefined_flag_CXX=' ${wl}-berok'
18551 if test "$with_gnu_ld" = yes; then
18552 # We only use this code for GNU lds that support --whole-archive.
18553 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18554 else
18555 # Exported symbols can be pulled into shared objects from archives
18556 whole_archive_flag_spec_CXX='$convenience'
18557 fi
18558 archive_cmds_need_lc_CXX=yes
18559 # This is similar to how AIX traditionally builds its shared
18560 # libraries.
18561 archive_expsym_cmds_CXX="\$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'
18562 fi
18563 fi
18564 ;;
18565
18566 beos*)
18567 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18568 allow_undefined_flag_CXX=unsupported
18569 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18570 # support --undefined. This deserves some investigation. FIXME
18571 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18572 else
18573 ld_shlibs_CXX=no
18574 fi
18575 ;;
18576
18577 chorus*)
18578 case $cc_basename in
18579 *)
18580 # FIXME: insert proper C++ library support
18581 ld_shlibs_CXX=no
18582 ;;
18583 esac
18584 ;;
18585
18586 cygwin* | mingw* | pw32* | cegcc*)
18587 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18588 # as there is no search path for DLLs.
18589 hardcode_libdir_flag_spec_CXX='-L$libdir'
18590 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18591 allow_undefined_flag_CXX=unsupported
18592 always_export_symbols_CXX=no
18593 enable_shared_with_static_runtimes_CXX=yes
18594
18595 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18596 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18597 # If the export-symbols file already is a .def file (1st line
18598 # is EXPORTS), use it as is; otherwise, prepend...
18599 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18600 cp $export_symbols $output_objdir/$soname.def;
18601 else
18602 echo EXPORTS > $output_objdir/$soname.def;
18603 cat $export_symbols >> $output_objdir/$soname.def;
18604 fi~
18605 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18606 else
18607 ld_shlibs_CXX=no
18608 fi
18609 ;;
18610 darwin* | rhapsody*)
18611
18612
18613 archive_cmds_need_lc_CXX=no
18614 hardcode_direct_CXX=no
18615 hardcode_automatic_CXX=yes
18616 hardcode_shlibpath_var_CXX=unsupported
18617 if test "$lt_cv_ld_force_load" = "yes"; then
18618 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18619 else
18620 whole_archive_flag_spec_CXX=''
18621 fi
18622 link_all_deplibs_CXX=yes
18623 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18624 case $cc_basename in
18625 ifort*) _lt_dar_can_shared=yes ;;
18626 *) _lt_dar_can_shared=$GCC ;;
18627 esac
18628 if test "$_lt_dar_can_shared" = "yes"; then
18629 output_verbose_link_cmd=func_echo_all
18630 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18631 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18632 archive_expsym_cmds_CXX="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}"
18633 module_expsym_cmds_CXX="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}"
18634 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18635 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
18636 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
18637 fi
18638
18639 else
18640 ld_shlibs_CXX=no
18641 fi
18642
18643 ;;
18644
18645 dgux*)
18646 case $cc_basename in
18647 ec++*)
18648 # FIXME: insert proper C++ library support
18649 ld_shlibs_CXX=no
18650 ;;
18651 ghcx*)
18652 # Green Hills C++ Compiler
18653 # FIXME: insert proper C++ library support
18654 ld_shlibs_CXX=no
18655 ;;
18656 *)
18657 # FIXME: insert proper C++ library support
18658 ld_shlibs_CXX=no
18659 ;;
18660 esac
18661 ;;
18662
18663 freebsd[12]*)
18664 # C++ shared libraries reported to be fairly broken before
18665 # switch to ELF
18666 ld_shlibs_CXX=no
18667 ;;
18668
18669 freebsd-elf*)
18670 archive_cmds_need_lc_CXX=no
18671 ;;
18672
18673 freebsd* | dragonfly*)
18674 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18675 # conventions
18676 ld_shlibs_CXX=yes
18677 ;;
18678
18679 gnu*)
18680 ;;
18681
18682 haiku*)
18683 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18684 link_all_deplibs_CXX=yes
18685 ;;
18686
18687 hpux9*)
18688 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18689 hardcode_libdir_separator_CXX=:
18690 export_dynamic_flag_spec_CXX='${wl}-E'
18691 hardcode_direct_CXX=yes
18692 hardcode_minus_L_CXX=yes # Not in the search PATH,
18693 # but as the default
18694 # location of the library.
18695
18696 case $cc_basename in
18697 CC*)
18698 # FIXME: insert proper C++ library support
18699 ld_shlibs_CXX=no
18700 ;;
18701 aCC*)
18702 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18703 # Commands to make compiler produce verbose output that lists
18704 # what "hidden" libraries, object files and flags are used when
18705 # linking a shared library.
18706 #
18707 # There doesn't appear to be a way to prevent this compiler from
18708 # explicitly linking system object files so we need to strip them
18709 # from the output so that they don't get included in the library
18710 # dependencies.
18711 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18712 ;;
18713 *)
18714 if test "$GXX" = yes; then
18715 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18716 else
18717 # FIXME: insert proper C++ library support
18718 ld_shlibs_CXX=no
18719 fi
18720 ;;
18721 esac
18722 ;;
18723
18724 hpux10*|hpux11*)
18725 if test $with_gnu_ld = no; then
18726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18727 hardcode_libdir_separator_CXX=:
18728
18729 case $host_cpu in
18730 hppa*64*|ia64*)
18731 ;;
18732 *)
18733 export_dynamic_flag_spec_CXX='${wl}-E'
18734 ;;
18735 esac
18736 fi
18737 case $host_cpu in
18738 hppa*64*|ia64*)
18739 hardcode_direct_CXX=no
18740 hardcode_shlibpath_var_CXX=no
18741 ;;
18742 *)
18743 hardcode_direct_CXX=yes
18744 hardcode_direct_absolute_CXX=yes
18745 hardcode_minus_L_CXX=yes # Not in the search PATH,
18746 # but as the default
18747 # location of the library.
18748 ;;
18749 esac
18750
18751 case $cc_basename in
18752 CC*)
18753 # FIXME: insert proper C++ library support
18754 ld_shlibs_CXX=no
18755 ;;
18756 aCC*)
18757 case $host_cpu in
18758 hppa*64*)
18759 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18760 ;;
18761 ia64*)
18762 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18763 ;;
18764 *)
18765 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18766 ;;
18767 esac
18768 # Commands to make compiler produce verbose output that lists
18769 # what "hidden" libraries, object files and flags are used when
18770 # linking a shared library.
18771 #
18772 # There doesn't appear to be a way to prevent this compiler from
18773 # explicitly linking system object files so we need to strip them
18774 # from the output so that they don't get included in the library
18775 # dependencies.
18776 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18777 ;;
18778 *)
18779 if test "$GXX" = yes; then
18780 if test $with_gnu_ld = no; then
18781 case $host_cpu in
18782 hppa*64*)
18783 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18784 ;;
18785 ia64*)
18786 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18787 ;;
18788 *)
18789 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18790 ;;
18791 esac
18792 fi
18793 else
18794 # FIXME: insert proper C++ library support
18795 ld_shlibs_CXX=no
18796 fi
18797 ;;
18798 esac
18799 ;;
18800
18801 interix[3-9]*)
18802 hardcode_direct_CXX=no
18803 hardcode_shlibpath_var_CXX=no
18804 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18805 export_dynamic_flag_spec_CXX='${wl}-E'
18806 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18807 # Instead, shared libraries are loaded at an image base (0x10000000 by
18808 # default) and relocated if they conflict, which is a slow very memory
18809 # consuming and fragmenting process. To avoid this, we pick a random,
18810 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18811 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18812 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18813 archive_expsym_cmds_CXX='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'
18814 ;;
18815 irix5* | irix6*)
18816 case $cc_basename in
18817 CC*)
18818 # SGI C++
18819 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18820
18821 # Archives containing C++ object files must be created using
18822 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18823 # necessary to make sure instantiated templates are included
18824 # in the archive.
18825 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18826 ;;
18827 *)
18828 if test "$GXX" = yes; then
18829 if test "$with_gnu_ld" = no; then
18830 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
18831 else
18832 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
18833 fi
18834 fi
18835 link_all_deplibs_CXX=yes
18836 ;;
18837 esac
18838 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18839 hardcode_libdir_separator_CXX=:
18840 inherit_rpath_CXX=yes
18841 ;;
18842
18843 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18844 case $cc_basename in
18845 KCC*)
18846 # Kuck and Associates, Inc. (KAI) C++ Compiler
18847
18848 # KCC will only create a shared library if the output file
18849 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18850 # to its proper name (with version) after linking.
18851 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18852 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
18853 # Commands to make compiler produce verbose output that lists
18854 # what "hidden" libraries, object files and flags are used when
18855 # linking a shared library.
18856 #
18857 # There doesn't appear to be a way to prevent this compiler from
18858 # explicitly linking system object files so we need to strip them
18859 # from the output so that they don't get included in the library
18860 # dependencies.
18861 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18862
18863 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18865
18866 # Archives containing C++ object files must be created using
18867 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18868 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18869 ;;
18870 icpc* | ecpc* )
18871 # Intel C++
18872 with_gnu_ld=yes
18873 # version 8.0 and above of icpc choke on multiply defined symbols
18874 # if we add $predep_objects and $postdep_objects, however 7.1 and
18875 # earlier do not add the objects themselves.
18876 case `$CC -V 2>&1` in
18877 *"Version 7."*)
18878 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18879 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18880 ;;
18881 *) # Version 8.0 or newer
18882 tmp_idyn=
18883 case $host_cpu in
18884 ia64*) tmp_idyn=' -i_dynamic';;
18885 esac
18886 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18887 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18888 ;;
18889 esac
18890 archive_cmds_need_lc_CXX=no
18891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18892 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18893 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18894 ;;
18895 pgCC* | pgcpp*)
18896 # Portland Group C++ compiler
18897 case `$CC -V` in
18898 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18899 prelink_cmds_CXX='tpldir=Template.dir~
18900 rm -rf $tpldir~
18901 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18902 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18903 old_archive_cmds_CXX='tpldir=Template.dir~
18904 rm -rf $tpldir~
18905 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18906 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18907 $RANLIB $oldlib'
18908 archive_cmds_CXX='tpldir=Template.dir~
18909 rm -rf $tpldir~
18910 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18911 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18912 archive_expsym_cmds_CXX='tpldir=Template.dir~
18913 rm -rf $tpldir~
18914 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18915 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18916 ;;
18917 *) # Version 6 and above use weak symbols
18918 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18919 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18920 ;;
18921 esac
18922
18923 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18925 whole_archive_flag_spec_CXX='${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'
18926 ;;
18927 cxx*)
18928 # Compaq C++
18929 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18930 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18931
18932 runpath_var=LD_RUN_PATH
18933 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18934 hardcode_libdir_separator_CXX=:
18935
18936 # Commands to make compiler produce verbose output that lists
18937 # what "hidden" libraries, object files and flags are used when
18938 # linking a shared library.
18939 #
18940 # There doesn't appear to be a way to prevent this compiler from
18941 # explicitly linking system object files so we need to strip them
18942 # from the output so that they don't get included in the library
18943 # dependencies.
18944 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
18945 ;;
18946 xl* | mpixl* | bgxl*)
18947 # IBM XL 8.0 on PPC, with GNU ld
18948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18949 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18950 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18951 if test "x$supports_anon_versioning" = xyes; then
18952 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18953 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18954 echo "local: *; };" >> $output_objdir/$libname.ver~
18955 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18956 fi
18957 ;;
18958 *)
18959 case `$CC -V 2>&1 | sed 5q` in
18960 *Sun\ C*)
18961 # Sun C++ 5.9
18962 no_undefined_flag_CXX=' -zdefs'
18963 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18964 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
18965 hardcode_libdir_flag_spec_CXX='-R$libdir'
18966 whole_archive_flag_spec_CXX='${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'
18967 compiler_needs_object_CXX=yes
18968
18969 # Not sure whether something based on
18970 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18971 # would be better.
18972 output_verbose_link_cmd='func_echo_all'
18973
18974 # Archives containing C++ object files must be created using
18975 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18976 # necessary to make sure instantiated templates are included
18977 # in the archive.
18978 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18979 ;;
18980 esac
18981 ;;
18982 esac
18983 ;;
18984
18985 lynxos*)
18986 # FIXME: insert proper C++ library support
18987 ld_shlibs_CXX=no
18988 ;;
18989
18990 m88k*)
18991 # FIXME: insert proper C++ library support
18992 ld_shlibs_CXX=no
18993 ;;
18994
18995 mvs*)
18996 case $cc_basename in
18997 cxx*)
18998 # FIXME: insert proper C++ library support
18999 ld_shlibs_CXX=no
19000 ;;
19001 *)
19002 # FIXME: insert proper C++ library support
19003 ld_shlibs_CXX=no
19004 ;;
19005 esac
19006 ;;
19007
19008 netbsd*)
19009 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19010 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19011 wlarc=
19012 hardcode_libdir_flag_spec_CXX='-R$libdir'
19013 hardcode_direct_CXX=yes
19014 hardcode_shlibpath_var_CXX=no
19015 fi
19016 # Workaround some broken pre-1.5 toolchains
19017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19018 ;;
19019
19020 *nto* | *qnx*)
19021 ld_shlibs_CXX=yes
19022 ;;
19023
19024 openbsd2*)
19025 # C++ shared libraries are fairly broken
19026 ld_shlibs_CXX=no
19027 ;;
19028
19029 openbsd*)
19030 if test -f /usr/libexec/ld.so; then
19031 hardcode_direct_CXX=yes
19032 hardcode_shlibpath_var_CXX=no
19033 hardcode_direct_absolute_CXX=yes
19034 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19035 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19037 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19038 export_dynamic_flag_spec_CXX='${wl}-E'
19039 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19040 fi
19041 output_verbose_link_cmd=func_echo_all
19042 else
19043 ld_shlibs_CXX=no
19044 fi
19045 ;;
19046
19047 osf3* | osf4* | osf5*)
19048 case $cc_basename in
19049 KCC*)
19050 # Kuck and Associates, Inc. (KAI) C++ Compiler
19051
19052 # KCC will only create a shared library if the output file
19053 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19054 # to its proper name (with version) after linking.
19055 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19056
19057 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19058 hardcode_libdir_separator_CXX=:
19059
19060 # Archives containing C++ object files must be created using
19061 # the KAI C++ compiler.
19062 case $host in
19063 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19064 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19065 esac
19066 ;;
19067 RCC*)
19068 # Rational C++ 2.4.1
19069 # FIXME: insert proper C++ library support
19070 ld_shlibs_CXX=no
19071 ;;
19072 cxx*)
19073 case $host in
19074 osf3*)
19075 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19076 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19077 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19078 ;;
19079 *)
19080 allow_undefined_flag_CXX=' -expect_unresolved \*'
19081 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19082 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19083 echo "-hidden">> $lib.exp~
19084 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19085 $RM $lib.exp'
19086 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19087 ;;
19088 esac
19089
19090 hardcode_libdir_separator_CXX=:
19091
19092 # Commands to make compiler produce verbose output that lists
19093 # what "hidden" libraries, object files and flags are used when
19094 # linking a shared library.
19095 #
19096 # There doesn't appear to be a way to prevent this compiler from
19097 # explicitly linking system object files so we need to strip them
19098 # from the output so that they don't get included in the library
19099 # dependencies.
19100 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19101 ;;
19102 *)
19103 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19104 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19105 case $host in
19106 osf3*)
19107 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
19108 ;;
19109 *)
19110 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
19111 ;;
19112 esac
19113
19114 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19115 hardcode_libdir_separator_CXX=:
19116
19117 # Commands to make compiler produce verbose output that lists
19118 # what "hidden" libraries, object files and flags are used when
19119 # linking a shared library.
19120 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19121
19122 else
19123 # FIXME: insert proper C++ library support
19124 ld_shlibs_CXX=no
19125 fi
19126 ;;
19127 esac
19128 ;;
19129
19130 psos*)
19131 # FIXME: insert proper C++ library support
19132 ld_shlibs_CXX=no
19133 ;;
19134
19135 sunos4*)
19136 case $cc_basename in
19137 CC*)
19138 # Sun C++ 4.x
19139 # FIXME: insert proper C++ library support
19140 ld_shlibs_CXX=no
19141 ;;
19142 lcc*)
19143 # Lucid
19144 # FIXME: insert proper C++ library support
19145 ld_shlibs_CXX=no
19146 ;;
19147 *)
19148 # FIXME: insert proper C++ library support
19149 ld_shlibs_CXX=no
19150 ;;
19151 esac
19152 ;;
19153
19154 solaris*)
19155 case $cc_basename in
19156 CC*)
19157 # Sun C++ 4.2, 5.x and Centerline C++
19158 archive_cmds_need_lc_CXX=yes
19159 no_undefined_flag_CXX=' -zdefs'
19160 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19161 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19162 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19163
19164 hardcode_libdir_flag_spec_CXX='-R$libdir'
19165 hardcode_shlibpath_var_CXX=no
19166 case $host_os in
19167 solaris2.[0-5] | solaris2.[0-5].*) ;;
19168 *)
19169 # The compiler driver will combine and reorder linker options,
19170 # but understands `-z linker_flag'.
19171 # Supported since Solaris 2.6 (maybe 2.5.1?)
19172 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19173 ;;
19174 esac
19175 link_all_deplibs_CXX=yes
19176
19177 output_verbose_link_cmd='func_echo_all'
19178
19179 # Archives containing C++ object files must be created using
19180 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19181 # necessary to make sure instantiated templates are included
19182 # in the archive.
19183 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19184 ;;
19185 gcx*)
19186 # Green Hills C++ Compiler
19187 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19188
19189 # The C++ compiler must be used to create the archive.
19190 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19191 ;;
19192 *)
19193 # GNU C++ compiler with Solaris linker
19194 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19195 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19196 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19197 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19198 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19199 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19200
19201 # Commands to make compiler produce verbose output that lists
19202 # what "hidden" libraries, object files and flags are used when
19203 # linking a shared library.
19204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19205 else
19206 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19207 # platform.
19208 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19209 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19210 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19211
19212 # Commands to make compiler produce verbose output that lists
19213 # what "hidden" libraries, object files and flags are used when
19214 # linking a shared library.
19215 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19216 fi
19217
19218 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19219 case $host_os in
19220 solaris2.[0-5] | solaris2.[0-5].*) ;;
19221 *)
19222 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19223 ;;
19224 esac
19225 fi
19226 ;;
19227 esac
19228 ;;
19229
19230 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19231 no_undefined_flag_CXX='${wl}-z,text'
19232 archive_cmds_need_lc_CXX=no
19233 hardcode_shlibpath_var_CXX=no
19234 runpath_var='LD_RUN_PATH'
19235
19236 case $cc_basename in
19237 CC*)
19238 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19239 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19240 ;;
19241 *)
19242 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19243 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19244 ;;
19245 esac
19246 ;;
19247
19248 sysv5* | sco3.2v5* | sco5v6*)
19249 # Note: We can NOT use -z defs as we might desire, because we do not
19250 # link with -lc, and that would cause any symbols used from libc to
19251 # always be unresolved, which means just about no library would
19252 # ever link correctly. If we're not using GNU ld we use -z text
19253 # though, which does catch some bad symbols but isn't as heavy-handed
19254 # as -z defs.
19255 no_undefined_flag_CXX='${wl}-z,text'
19256 allow_undefined_flag_CXX='${wl}-z,nodefs'
19257 archive_cmds_need_lc_CXX=no
19258 hardcode_shlibpath_var_CXX=no
19259 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19260 hardcode_libdir_separator_CXX=':'
19261 link_all_deplibs_CXX=yes
19262 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19263 runpath_var='LD_RUN_PATH'
19264
19265 case $cc_basename in
19266 CC*)
19267 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19268 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19269 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19270 '"$old_archive_cmds_CXX"
19271 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19272 '"$reload_cmds_CXX"
19273 ;;
19274 *)
19275 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19276 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19277 ;;
19278 esac
19279 ;;
19280
19281 tandem*)
19282 case $cc_basename in
19283 NCC*)
19284 # NonStop-UX NCC 3.20
19285 # FIXME: insert proper C++ library support
19286 ld_shlibs_CXX=no
19287 ;;
19288 *)
19289 # FIXME: insert proper C++ library support
19290 ld_shlibs_CXX=no
19291 ;;
19292 esac
19293 ;;
19294
19295 vxworks*)
19296 # FIXME: insert proper C++ library support
19297 ld_shlibs_CXX=no
19298 ;;
19299
19300 *)
19301 # FIXME: insert proper C++ library support
19302 ld_shlibs_CXX=no
19303 ;;
19304 esac
19305
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19307 $as_echo "$ld_shlibs_CXX" >&6; }
19308 test "$ld_shlibs_CXX" = no && can_build_shared=no
19309
19310 GCC_CXX="$GXX"
19311 LD_CXX="$LD"
19312
19313 ## CAVEAT EMPTOR:
19314 ## There is no encapsulation within the following macros, do not change
19315 ## the running order or otherwise move them around unless you know exactly
19316 ## what you are doing...
19317 # Dependencies to place before and after the object being linked:
19318 predep_objects_CXX=
19319 postdep_objects_CXX=
19320 predeps_CXX=
19321 postdeps_CXX=
19322 compiler_lib_search_path_CXX=
19323
19324 cat > conftest.$ac_ext <<_LT_EOF
19325 class Foo
19326 {
19327 public:
19328 Foo (void) { a = 0; }
19329 private:
19330 int a;
19331 };
19332 _LT_EOF
19333
19334 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19335 (eval $ac_compile) 2>&5
19336 ac_status=$?
19337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19338 test $ac_status = 0; }; then
19339 # Parse the compiler output and extract the necessary
19340 # objects, libraries and library flags.
19341
19342 # Sentinel used to keep track of whether or not we are before
19343 # the conftest object file.
19344 pre_test_object_deps_done=no
19345
19346 for p in `eval "$output_verbose_link_cmd"`; do
19347 case $p in
19348
19349 -L* | -R* | -l*)
19350 # Some compilers place space between "-{L,R}" and the path.
19351 # Remove the space.
19352 if test $p = "-L" ||
19353 test $p = "-R"; then
19354 prev=$p
19355 continue
19356 else
19357 prev=
19358 fi
19359
19360 if test "$pre_test_object_deps_done" = no; then
19361 case $p in
19362 -L* | -R*)
19363 # Internal compiler library paths should come after those
19364 # provided the user. The postdeps already come after the
19365 # user supplied libs so there is no need to process them.
19366 if test -z "$compiler_lib_search_path_CXX"; then
19367 compiler_lib_search_path_CXX="${prev}${p}"
19368 else
19369 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19370 fi
19371 ;;
19372 # The "-l" case would never come before the object being
19373 # linked, so don't bother handling this case.
19374 esac
19375 else
19376 if test -z "$postdeps_CXX"; then
19377 postdeps_CXX="${prev}${p}"
19378 else
19379 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19380 fi
19381 fi
19382 ;;
19383
19384 *.$objext)
19385 # This assumes that the test object file only shows up
19386 # once in the compiler output.
19387 if test "$p" = "conftest.$objext"; then
19388 pre_test_object_deps_done=yes
19389 continue
19390 fi
19391
19392 if test "$pre_test_object_deps_done" = no; then
19393 if test -z "$predep_objects_CXX"; then
19394 predep_objects_CXX="$p"
19395 else
19396 predep_objects_CXX="$predep_objects_CXX $p"
19397 fi
19398 else
19399 if test -z "$postdep_objects_CXX"; then
19400 postdep_objects_CXX="$p"
19401 else
19402 postdep_objects_CXX="$postdep_objects_CXX $p"
19403 fi
19404 fi
19405 ;;
19406
19407 *) ;; # Ignore the rest.
19408
19409 esac
19410 done
19411
19412 # Clean up.
19413 rm -f a.out a.exe
19414 else
19415 echo "libtool.m4: error: problem compiling CXX test program"
19416 fi
19417
19418 $RM -f confest.$objext
19419
19420 # PORTME: override above test on systems where it is broken
19421 case $host_os in
19422 interix[3-9]*)
19423 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19424 # hack all around it, let's just trust "g++" to DTRT.
19425 predep_objects_CXX=
19426 postdep_objects_CXX=
19427 postdeps_CXX=
19428 ;;
19429
19430 linux*)
19431 case `$CC -V 2>&1 | sed 5q` in
19432 *Sun\ C*)
19433 # Sun C++ 5.9
19434
19435 # The more standards-conforming stlport4 library is
19436 # incompatible with the Cstd library. Avoid specifying
19437 # it if it's in CXXFLAGS. Ignore libCrun as
19438 # -library=stlport4 depends on it.
19439 case " $CXX $CXXFLAGS " in
19440 *" -library=stlport4 "*)
19441 solaris_use_stlport4=yes
19442 ;;
19443 esac
19444
19445 if test "$solaris_use_stlport4" != yes; then
19446 postdeps_CXX='-library=Cstd -library=Crun'
19447 fi
19448 ;;
19449 esac
19450 ;;
19451
19452 solaris*)
19453 case $cc_basename in
19454 CC*)
19455 # The more standards-conforming stlport4 library is
19456 # incompatible with the Cstd library. Avoid specifying
19457 # it if it's in CXXFLAGS. Ignore libCrun as
19458 # -library=stlport4 depends on it.
19459 case " $CXX $CXXFLAGS " in
19460 *" -library=stlport4 "*)
19461 solaris_use_stlport4=yes
19462 ;;
19463 esac
19464
19465 # Adding this requires a known-good setup of shared libraries for
19466 # Sun compiler versions before 5.6, else PIC objects from an old
19467 # archive will be linked into the output, leading to subtle bugs.
19468 if test "$solaris_use_stlport4" != yes; then
19469 postdeps_CXX='-library=Cstd -library=Crun'
19470 fi
19471 ;;
19472 esac
19473 ;;
19474 esac
19475
19476
19477 case " $postdeps_CXX " in
19478 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19479 esac
19480 compiler_lib_search_dirs_CXX=
19481 if test -n "${compiler_lib_search_path_CXX}"; then
19482 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19483 fi
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510
19511
19512
19513
19514
19515 lt_prog_compiler_wl_CXX=
19516 lt_prog_compiler_pic_CXX=
19517 lt_prog_compiler_static_CXX=
19518
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19520 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19521
19522 # C++ specific cases for pic, static, wl, etc.
19523 if test "$GXX" = yes; then
19524 lt_prog_compiler_wl_CXX='-Wl,'
19525 lt_prog_compiler_static_CXX='-static'
19526
19527 case $host_os in
19528 aix*)
19529 # All AIX code is PIC.
19530 if test "$host_cpu" = ia64; then
19531 # AIX 5 now supports IA64 processor
19532 lt_prog_compiler_static_CXX='-Bstatic'
19533 fi
19534 ;;
19535
19536 amigaos*)
19537 case $host_cpu in
19538 powerpc)
19539 # see comment about AmigaOS4 .so support
19540 lt_prog_compiler_pic_CXX='-fPIC'
19541 ;;
19542 m68k)
19543 # FIXME: we need at least 68020 code to build shared libraries, but
19544 # adding the `-m68020' flag to GCC prevents building anything better,
19545 # like `-m68040'.
19546 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19547 ;;
19548 esac
19549 ;;
19550
19551 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19552 # PIC is the default for these OSes.
19553 ;;
19554 mingw* | cygwin* | os2* | pw32* | cegcc*)
19555 # This hack is so that the source file can tell whether it is being
19556 # built for inclusion in a dll (and should export symbols for example).
19557 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19558 # (--disable-auto-import) libraries
19559 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19560 ;;
19561 darwin* | rhapsody*)
19562 # PIC is the default on this platform
19563 # Common symbols not allowed in MH_DYLIB files
19564 lt_prog_compiler_pic_CXX='-fno-common'
19565 ;;
19566 *djgpp*)
19567 # DJGPP does not support shared libraries at all
19568 lt_prog_compiler_pic_CXX=
19569 ;;
19570 haiku*)
19571 # PIC is the default for Haiku.
19572 # The "-static" flag exists, but is broken.
19573 lt_prog_compiler_static_CXX=
19574 ;;
19575 interix[3-9]*)
19576 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19577 # Instead, we relocate shared libraries at runtime.
19578 ;;
19579 sysv4*MP*)
19580 if test -d /usr/nec; then
19581 lt_prog_compiler_pic_CXX=-Kconform_pic
19582 fi
19583 ;;
19584 hpux*)
19585 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19586 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19587 # sets the default TLS model and affects inlining.
19588 case $host_cpu in
19589 hppa*64*)
19590 ;;
19591 *)
19592 lt_prog_compiler_pic_CXX='-fPIC'
19593 ;;
19594 esac
19595 ;;
19596 *qnx* | *nto*)
19597 # QNX uses GNU C++, but need to define -shared option too, otherwise
19598 # it will coredump.
19599 lt_prog_compiler_pic_CXX='-fPIC -shared'
19600 ;;
19601 *)
19602 lt_prog_compiler_pic_CXX='-fPIC'
19603 ;;
19604 esac
19605 else
19606 case $host_os in
19607 aix[4-9]*)
19608 # All AIX code is PIC.
19609 if test "$host_cpu" = ia64; then
19610 # AIX 5 now supports IA64 processor
19611 lt_prog_compiler_static_CXX='-Bstatic'
19612 else
19613 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19614 fi
19615 ;;
19616 chorus*)
19617 case $cc_basename in
19618 cxch68*)
19619 # Green Hills C++ Compiler
19620 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19621 ;;
19622 esac
19623 ;;
19624 dgux*)
19625 case $cc_basename in
19626 ec++*)
19627 lt_prog_compiler_pic_CXX='-KPIC'
19628 ;;
19629 ghcx*)
19630 # Green Hills C++ Compiler
19631 lt_prog_compiler_pic_CXX='-pic'
19632 ;;
19633 *)
19634 ;;
19635 esac
19636 ;;
19637 freebsd* | dragonfly*)
19638 # FreeBSD uses GNU C++
19639 ;;
19640 hpux9* | hpux10* | hpux11*)
19641 case $cc_basename in
19642 CC*)
19643 lt_prog_compiler_wl_CXX='-Wl,'
19644 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19645 if test "$host_cpu" != ia64; then
19646 lt_prog_compiler_pic_CXX='+Z'
19647 fi
19648 ;;
19649 aCC*)
19650 lt_prog_compiler_wl_CXX='-Wl,'
19651 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19652 case $host_cpu in
19653 hppa*64*|ia64*)
19654 # +Z the default
19655 ;;
19656 *)
19657 lt_prog_compiler_pic_CXX='+Z'
19658 ;;
19659 esac
19660 ;;
19661 *)
19662 ;;
19663 esac
19664 ;;
19665 interix*)
19666 # This is c89, which is MS Visual C++ (no shared libs)
19667 # Anyone wants to do a port?
19668 ;;
19669 irix5* | irix6* | nonstopux*)
19670 case $cc_basename in
19671 CC*)
19672 lt_prog_compiler_wl_CXX='-Wl,'
19673 lt_prog_compiler_static_CXX='-non_shared'
19674 # CC pic flag -KPIC is the default.
19675 ;;
19676 *)
19677 ;;
19678 esac
19679 ;;
19680 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19681 case $cc_basename in
19682 KCC*)
19683 # KAI C++ Compiler
19684 lt_prog_compiler_wl_CXX='--backend -Wl,'
19685 lt_prog_compiler_pic_CXX='-fPIC'
19686 ;;
19687 ecpc* )
19688 # old Intel C++ for x86_64 which still supported -KPIC.
19689 lt_prog_compiler_wl_CXX='-Wl,'
19690 lt_prog_compiler_pic_CXX='-KPIC'
19691 lt_prog_compiler_static_CXX='-static'
19692 ;;
19693 icpc* )
19694 # Intel C++, used to be incompatible with GCC.
19695 # ICC 10 doesn't accept -KPIC any more.
19696 lt_prog_compiler_wl_CXX='-Wl,'
19697 lt_prog_compiler_pic_CXX='-fPIC'
19698 lt_prog_compiler_static_CXX='-static'
19699 ;;
19700 pgCC* | pgcpp*)
19701 # Portland Group C++ compiler
19702 lt_prog_compiler_wl_CXX='-Wl,'
19703 lt_prog_compiler_pic_CXX='-fpic'
19704 lt_prog_compiler_static_CXX='-Bstatic'
19705 ;;
19706 cxx*)
19707 # Compaq C++
19708 # Make sure the PIC flag is empty. It appears that all Alpha
19709 # Linux and Compaq Tru64 Unix objects are PIC.
19710 lt_prog_compiler_pic_CXX=
19711 lt_prog_compiler_static_CXX='-non_shared'
19712 ;;
19713 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19714 # IBM XL 8.0, 9.0 on PPC and BlueGene
19715 lt_prog_compiler_wl_CXX='-Wl,'
19716 lt_prog_compiler_pic_CXX='-qpic'
19717 lt_prog_compiler_static_CXX='-qstaticlink'
19718 ;;
19719 *)
19720 case `$CC -V 2>&1 | sed 5q` in
19721 *Sun\ C*)
19722 # Sun C++ 5.9
19723 lt_prog_compiler_pic_CXX='-KPIC'
19724 lt_prog_compiler_static_CXX='-Bstatic'
19725 lt_prog_compiler_wl_CXX='-Qoption ld '
19726 ;;
19727 esac
19728 ;;
19729 esac
19730 ;;
19731 lynxos*)
19732 ;;
19733 m88k*)
19734 ;;
19735 mvs*)
19736 case $cc_basename in
19737 cxx*)
19738 lt_prog_compiler_pic_CXX='-W c,exportall'
19739 ;;
19740 *)
19741 ;;
19742 esac
19743 ;;
19744 netbsd*)
19745 ;;
19746 *qnx* | *nto*)
19747 # QNX uses GNU C++, but need to define -shared option too, otherwise
19748 # it will coredump.
19749 lt_prog_compiler_pic_CXX='-fPIC -shared'
19750 ;;
19751 osf3* | osf4* | osf5*)
19752 case $cc_basename in
19753 KCC*)
19754 lt_prog_compiler_wl_CXX='--backend -Wl,'
19755 ;;
19756 RCC*)
19757 # Rational C++ 2.4.1
19758 lt_prog_compiler_pic_CXX='-pic'
19759 ;;
19760 cxx*)
19761 # Digital/Compaq C++
19762 lt_prog_compiler_wl_CXX='-Wl,'
19763 # Make sure the PIC flag is empty. It appears that all Alpha
19764 # Linux and Compaq Tru64 Unix objects are PIC.
19765 lt_prog_compiler_pic_CXX=
19766 lt_prog_compiler_static_CXX='-non_shared'
19767 ;;
19768 *)
19769 ;;
19770 esac
19771 ;;
19772 psos*)
19773 ;;
19774 solaris*)
19775 case $cc_basename in
19776 CC*)
19777 # Sun C++ 4.2, 5.x and Centerline C++
19778 lt_prog_compiler_pic_CXX='-KPIC'
19779 lt_prog_compiler_static_CXX='-Bstatic'
19780 lt_prog_compiler_wl_CXX='-Qoption ld '
19781 ;;
19782 gcx*)
19783 # Green Hills C++ Compiler
19784 lt_prog_compiler_pic_CXX='-PIC'
19785 ;;
19786 *)
19787 ;;
19788 esac
19789 ;;
19790 sunos4*)
19791 case $cc_basename in
19792 CC*)
19793 # Sun C++ 4.x
19794 lt_prog_compiler_pic_CXX='-pic'
19795 lt_prog_compiler_static_CXX='-Bstatic'
19796 ;;
19797 lcc*)
19798 # Lucid
19799 lt_prog_compiler_pic_CXX='-pic'
19800 ;;
19801 *)
19802 ;;
19803 esac
19804 ;;
19805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19806 case $cc_basename in
19807 CC*)
19808 lt_prog_compiler_wl_CXX='-Wl,'
19809 lt_prog_compiler_pic_CXX='-KPIC'
19810 lt_prog_compiler_static_CXX='-Bstatic'
19811 ;;
19812 esac
19813 ;;
19814 tandem*)
19815 case $cc_basename in
19816 NCC*)
19817 # NonStop-UX NCC 3.20
19818 lt_prog_compiler_pic_CXX='-KPIC'
19819 ;;
19820 *)
19821 ;;
19822 esac
19823 ;;
19824 vxworks*)
19825 ;;
19826 *)
19827 lt_prog_compiler_can_build_shared_CXX=no
19828 ;;
19829 esac
19830 fi
19831
19832 case $host_os in
19833 # For platforms which do not support PIC, -DPIC is meaningless:
19834 *djgpp*)
19835 lt_prog_compiler_pic_CXX=
19836 ;;
19837 *)
19838 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19839 ;;
19840 esac
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19842 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19843
19844
19845
19846 #
19847 # Check to make sure the PIC flag actually works.
19848 #
19849 if test -n "$lt_prog_compiler_pic_CXX"; then
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19851 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19852 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19853 $as_echo_n "(cached) " >&6
19854 else
19855 lt_cv_prog_compiler_pic_works_CXX=no
19856 ac_outfile=conftest.$ac_objext
19857 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19858 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19859 # Insert the option either (1) after the last *FLAGS variable, or
19860 # (2) before a word containing "conftest.", or (3) at the end.
19861 # Note that $ac_compile itself does not contain backslashes and begins
19862 # with a dollar sign (not a hyphen), so the echo should work correctly.
19863 # The option is referenced via a variable to avoid confusing sed.
19864 lt_compile=`echo "$ac_compile" | $SED \
19865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19867 -e 's:$: $lt_compiler_flag:'`
19868 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19869 (eval "$lt_compile" 2>conftest.err)
19870 ac_status=$?
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 if (exit $ac_status) && test -s "$ac_outfile"; then
19874 # The compiler can only warn and ignore the option if not recognized
19875 # So say no if there are warnings other than the usual output.
19876 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19877 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19878 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19879 lt_cv_prog_compiler_pic_works_CXX=yes
19880 fi
19881 fi
19882 $RM conftest*
19883
19884 fi
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19886 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19887
19888 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19889 case $lt_prog_compiler_pic_CXX in
19890 "" | " "*) ;;
19891 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19892 esac
19893 else
19894 lt_prog_compiler_pic_CXX=
19895 lt_prog_compiler_can_build_shared_CXX=no
19896 fi
19897
19898 fi
19899
19900
19901
19902 #
19903 # Check to make sure the static flag actually works.
19904 #
19905 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19907 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19908 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19909 $as_echo_n "(cached) " >&6
19910 else
19911 lt_cv_prog_compiler_static_works_CXX=no
19912 save_LDFLAGS="$LDFLAGS"
19913 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19914 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19915 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19916 # The linker can only warn and ignore the option if not recognized
19917 # So say no if there are warnings
19918 if test -s conftest.err; then
19919 # Append any errors to the config.log.
19920 cat conftest.err 1>&5
19921 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19923 if diff conftest.exp conftest.er2 >/dev/null; then
19924 lt_cv_prog_compiler_static_works_CXX=yes
19925 fi
19926 else
19927 lt_cv_prog_compiler_static_works_CXX=yes
19928 fi
19929 fi
19930 $RM -r conftest*
19931 LDFLAGS="$save_LDFLAGS"
19932
19933 fi
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19935 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19936
19937 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19938 :
19939 else
19940 lt_prog_compiler_static_CXX=
19941 fi
19942
19943
19944
19945
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19947 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19948 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19949 $as_echo_n "(cached) " >&6
19950 else
19951 lt_cv_prog_compiler_c_o_CXX=no
19952 $RM -r conftest 2>/dev/null
19953 mkdir conftest
19954 cd conftest
19955 mkdir out
19956 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19957
19958 lt_compiler_flag="-o out/conftest2.$ac_objext"
19959 # Insert the option either (1) after the last *FLAGS variable, or
19960 # (2) before a word containing "conftest.", or (3) at the end.
19961 # Note that $ac_compile itself does not contain backslashes and begins
19962 # with a dollar sign (not a hyphen), so the echo should work correctly.
19963 lt_compile=`echo "$ac_compile" | $SED \
19964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19966 -e 's:$: $lt_compiler_flag:'`
19967 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19968 (eval "$lt_compile" 2>out/conftest.err)
19969 ac_status=$?
19970 cat out/conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19973 then
19974 # The compiler can only warn and ignore the option if not recognized
19975 # So say no if there are warnings
19976 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19977 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19978 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19979 lt_cv_prog_compiler_c_o_CXX=yes
19980 fi
19981 fi
19982 chmod u+w . 2>&5
19983 $RM conftest*
19984 # SGI C++ compiler will create directory out/ii_files/ for
19985 # template instantiation
19986 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19987 $RM out/* && rmdir out
19988 cd ..
19989 $RM -r conftest
19990 $RM conftest*
19991
19992 fi
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19994 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19995
19996
19997
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19999 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20000 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20001 $as_echo_n "(cached) " >&6
20002 else
20003 lt_cv_prog_compiler_c_o_CXX=no
20004 $RM -r conftest 2>/dev/null
20005 mkdir conftest
20006 cd conftest
20007 mkdir out
20008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20009
20010 lt_compiler_flag="-o out/conftest2.$ac_objext"
20011 # Insert the option either (1) after the last *FLAGS variable, or
20012 # (2) before a word containing "conftest.", or (3) at the end.
20013 # Note that $ac_compile itself does not contain backslashes and begins
20014 # with a dollar sign (not a hyphen), so the echo should work correctly.
20015 lt_compile=`echo "$ac_compile" | $SED \
20016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20018 -e 's:$: $lt_compiler_flag:'`
20019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20020 (eval "$lt_compile" 2>out/conftest.err)
20021 ac_status=$?
20022 cat out/conftest.err >&5
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20025 then
20026 # The compiler can only warn and ignore the option if not recognized
20027 # So say no if there are warnings
20028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20031 lt_cv_prog_compiler_c_o_CXX=yes
20032 fi
20033 fi
20034 chmod u+w . 2>&5
20035 $RM conftest*
20036 # SGI C++ compiler will create directory out/ii_files/ for
20037 # template instantiation
20038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20039 $RM out/* && rmdir out
20040 cd ..
20041 $RM -r conftest
20042 $RM conftest*
20043
20044 fi
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20046 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20047
20048
20049
20050
20051 hard_links="nottested"
20052 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20053 # do not overwrite the value of need_locks provided by the user
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20055 $as_echo_n "checking if we can lock with hard links... " >&6; }
20056 hard_links=yes
20057 $RM conftest*
20058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20059 touch conftest.a
20060 ln conftest.a conftest.b 2>&5 || hard_links=no
20061 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20063 $as_echo "$hard_links" >&6; }
20064 if test "$hard_links" = no; then
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20066 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20067 need_locks=warn
20068 fi
20069 else
20070 need_locks=no
20071 fi
20072
20073
20074
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20076 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20077
20078 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20079 case $host_os in
20080 aix[4-9]*)
20081 # If we're using GNU nm, then we don't want the "-C" option.
20082 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20083 # Also, AIX nm treats weak defined symbols like other global defined
20084 # symbols, whereas GNU nm marks them as "W".
20085 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20086 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20087 else
20088 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20089 fi
20090 ;;
20091 pw32*)
20092 export_symbols_cmds_CXX="$ltdll_cmds"
20093 ;;
20094 cygwin* | mingw* | cegcc*)
20095 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20096 ;;
20097 *)
20098 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20099 ;;
20100 esac
20101 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20102
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20104 $as_echo "$ld_shlibs_CXX" >&6; }
20105 test "$ld_shlibs_CXX" = no && can_build_shared=no
20106
20107 with_gnu_ld_CXX=$with_gnu_ld
20108
20109
20110
20111
20112
20113
20114 #
20115 # Do we need to explicitly link libc?
20116 #
20117 case "x$archive_cmds_need_lc_CXX" in
20118 x|xyes)
20119 # Assume -lc should be added
20120 archive_cmds_need_lc_CXX=yes
20121
20122 if test "$enable_shared" = yes && test "$GCC" = yes; then
20123 case $archive_cmds_CXX in
20124 *'~'*)
20125 # FIXME: we may have to deal with multi-command sequences.
20126 ;;
20127 '$CC '*)
20128 # Test whether the compiler implicitly links with -lc since on some
20129 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20130 # to ld, don't add -lc before -lgcc.
20131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20132 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20133 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
20134 $as_echo_n "(cached) " >&6
20135 else
20136 $RM conftest*
20137 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20138
20139 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20140 (eval $ac_compile) 2>&5
20141 ac_status=$?
20142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20143 test $ac_status = 0; } 2>conftest.err; then
20144 soname=conftest
20145 lib=conftest
20146 libobjs=conftest.$ac_objext
20147 deplibs=
20148 wl=$lt_prog_compiler_wl_CXX
20149 pic_flag=$lt_prog_compiler_pic_CXX
20150 compiler_flags=-v
20151 linker_flags=-v
20152 verstring=
20153 output_objdir=.
20154 libname=conftest
20155 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20156 allow_undefined_flag_CXX=
20157 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20158 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20159 ac_status=$?
20160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20161 test $ac_status = 0; }
20162 then
20163 lt_cv_archive_cmds_need_lc_CXX=no
20164 else
20165 lt_cv_archive_cmds_need_lc_CXX=yes
20166 fi
20167 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20168 else
20169 cat conftest.err 1>&5
20170 fi
20171 $RM conftest*
20172
20173 fi
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20175 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20176 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20177 ;;
20178 esac
20179 fi
20180 ;;
20181 esac
20182
20183
20184
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197
20198
20199
20200
20201
20202
20203
20204
20205
20206
20207
20208
20209
20210
20211
20212
20213
20214
20215
20216
20217
20218
20219
20220
20221
20222
20223
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241
20242
20243
20244
20245
20246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20247 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20248
20249 library_names_spec=
20250 libname_spec='lib$name'
20251 soname_spec=
20252 shrext_cmds=".so"
20253 postinstall_cmds=
20254 postuninstall_cmds=
20255 finish_cmds=
20256 finish_eval=
20257 shlibpath_var=
20258 shlibpath_overrides_runpath=unknown
20259 version_type=none
20260 dynamic_linker="$host_os ld.so"
20261 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20262 need_lib_prefix=unknown
20263 hardcode_into_libs=no
20264
20265 # when you set need_version to no, make sure it does not cause -set_version
20266 # flags to be left without arguments
20267 need_version=unknown
20268
20269 case $host_os in
20270 aix3*)
20271 version_type=linux
20272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20273 shlibpath_var=LIBPATH
20274
20275 # AIX 3 has no versioning support, so we append a major version to the name.
20276 soname_spec='${libname}${release}${shared_ext}$major'
20277 ;;
20278
20279 aix[4-9]*)
20280 version_type=linux
20281 need_lib_prefix=no
20282 need_version=no
20283 hardcode_into_libs=yes
20284 if test "$host_cpu" = ia64; then
20285 # AIX 5 supports IA64
20286 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20287 shlibpath_var=LD_LIBRARY_PATH
20288 else
20289 # With GCC up to 2.95.x, collect2 would create an import file
20290 # for dependence libraries. The import file would start with
20291 # the line `#! .'. This would cause the generated library to
20292 # depend on `.', always an invalid library. This was fixed in
20293 # development snapshots of GCC prior to 3.0.
20294 case $host_os in
20295 aix4 | aix4.[01] | aix4.[01].*)
20296 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20297 echo ' yes '
20298 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20299 :
20300 else
20301 can_build_shared=no
20302 fi
20303 ;;
20304 esac
20305 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20306 # soname into executable. Probably we can add versioning support to
20307 # collect2, so additional links can be useful in future.
20308 if test "$aix_use_runtimelinking" = yes; then
20309 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20310 # instead of lib<name>.a to let people know that these are not
20311 # typical AIX shared libraries.
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20313 else
20314 # We preserve .a as extension for shared libraries through AIX4.2
20315 # and later when we are not doing run time linking.
20316 library_names_spec='${libname}${release}.a $libname.a'
20317 soname_spec='${libname}${release}${shared_ext}$major'
20318 fi
20319 shlibpath_var=LIBPATH
20320 fi
20321 ;;
20322
20323 amigaos*)
20324 case $host_cpu in
20325 powerpc)
20326 # Since July 2007 AmigaOS4 officially supports .so libraries.
20327 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 ;;
20330 m68k)
20331 library_names_spec='$libname.ixlibrary $libname.a'
20332 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20333 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'
20334 ;;
20335 esac
20336 ;;
20337
20338 beos*)
20339 library_names_spec='${libname}${shared_ext}'
20340 dynamic_linker="$host_os ld.so"
20341 shlibpath_var=LIBRARY_PATH
20342 ;;
20343
20344 bsdi[45]*)
20345 version_type=linux
20346 need_version=no
20347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20348 soname_spec='${libname}${release}${shared_ext}$major'
20349 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20350 shlibpath_var=LD_LIBRARY_PATH
20351 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20352 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20353 # the default ld.so.conf also contains /usr/contrib/lib and
20354 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20355 # libtool to hard-code these into programs
20356 ;;
20357
20358 cygwin* | mingw* | pw32* | cegcc*)
20359 version_type=windows
20360 shrext_cmds=".dll"
20361 need_version=no
20362 need_lib_prefix=no
20363
20364 case $GCC,$host_os in
20365 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20366 library_names_spec='$libname.dll.a'
20367 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20368 postinstall_cmds='base_file=`basename \${file}`~
20369 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20370 dldir=$destdir/`dirname \$dlpath`~
20371 test -d \$dldir || mkdir -p \$dldir~
20372 $install_prog $dir/$dlname \$dldir/$dlname~
20373 chmod a+x \$dldir/$dlname~
20374 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20375 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20376 fi'
20377 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20378 dlpath=$dir/\$dldll~
20379 $RM \$dlpath'
20380 shlibpath_overrides_runpath=yes
20381
20382 case $host_os in
20383 cygwin*)
20384 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20385 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20386
20387 ;;
20388 mingw* | cegcc*)
20389 # MinGW DLLs use traditional 'lib' prefix
20390 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20391 ;;
20392 pw32*)
20393 # pw32 DLLs use 'pw' prefix rather than 'lib'
20394 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20395 ;;
20396 esac
20397 ;;
20398
20399 *)
20400 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20401 ;;
20402 esac
20403 dynamic_linker='Win32 ld.exe'
20404 # FIXME: first we should search . and the directory the executable is in
20405 shlibpath_var=PATH
20406 ;;
20407
20408 darwin* | rhapsody*)
20409 dynamic_linker="$host_os dyld"
20410 version_type=darwin
20411 need_lib_prefix=no
20412 need_version=no
20413 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20414 soname_spec='${libname}${release}${major}$shared_ext'
20415 shlibpath_overrides_runpath=yes
20416 shlibpath_var=DYLD_LIBRARY_PATH
20417 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20418
20419 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20420 ;;
20421
20422 dgux*)
20423 version_type=linux
20424 need_lib_prefix=no
20425 need_version=no
20426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20427 soname_spec='${libname}${release}${shared_ext}$major'
20428 shlibpath_var=LD_LIBRARY_PATH
20429 ;;
20430
20431 freebsd* | dragonfly*)
20432 # DragonFly does not have aout. When/if they implement a new
20433 # versioning mechanism, adjust this.
20434 if test -x /usr/bin/objformat; then
20435 objformat=`/usr/bin/objformat`
20436 else
20437 case $host_os in
20438 freebsd[123]*) objformat=aout ;;
20439 *) objformat=elf ;;
20440 esac
20441 fi
20442 version_type=freebsd-$objformat
20443 case $version_type in
20444 freebsd-elf*)
20445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20446 need_version=no
20447 need_lib_prefix=no
20448 ;;
20449 freebsd-*)
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20451 need_version=yes
20452 ;;
20453 esac
20454 shlibpath_var=LD_LIBRARY_PATH
20455 case $host_os in
20456 freebsd2*)
20457 shlibpath_overrides_runpath=yes
20458 ;;
20459 freebsd3.[01]* | freebsdelf3.[01]*)
20460 shlibpath_overrides_runpath=yes
20461 hardcode_into_libs=yes
20462 ;;
20463 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20464 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20465 shlibpath_overrides_runpath=no
20466 hardcode_into_libs=yes
20467 ;;
20468 *) # from 4.6 on, and DragonFly
20469 shlibpath_overrides_runpath=yes
20470 hardcode_into_libs=yes
20471 ;;
20472 esac
20473 ;;
20474
20475 gnu*)
20476 version_type=linux
20477 need_lib_prefix=no
20478 need_version=no
20479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20480 soname_spec='${libname}${release}${shared_ext}$major'
20481 shlibpath_var=LD_LIBRARY_PATH
20482 hardcode_into_libs=yes
20483 ;;
20484
20485 haiku*)
20486 version_type=linux
20487 need_lib_prefix=no
20488 need_version=no
20489 dynamic_linker="$host_os runtime_loader"
20490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20491 soname_spec='${libname}${release}${shared_ext}$major'
20492 shlibpath_var=LIBRARY_PATH
20493 shlibpath_overrides_runpath=yes
20494 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
20495 hardcode_into_libs=yes
20496 ;;
20497
20498 hpux9* | hpux10* | hpux11*)
20499 # Give a soname corresponding to the major version so that dld.sl refuses to
20500 # link against other versions.
20501 version_type=sunos
20502 need_lib_prefix=no
20503 need_version=no
20504 case $host_cpu in
20505 ia64*)
20506 shrext_cmds='.so'
20507 hardcode_into_libs=yes
20508 dynamic_linker="$host_os dld.so"
20509 shlibpath_var=LD_LIBRARY_PATH
20510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20512 soname_spec='${libname}${release}${shared_ext}$major'
20513 if test "X$HPUX_IA64_MODE" = X32; then
20514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20515 else
20516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20517 fi
20518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20519 ;;
20520 hppa*64*)
20521 shrext_cmds='.sl'
20522 hardcode_into_libs=yes
20523 dynamic_linker="$host_os dld.sl"
20524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20527 soname_spec='${libname}${release}${shared_ext}$major'
20528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20530 ;;
20531 *)
20532 shrext_cmds='.sl'
20533 dynamic_linker="$host_os dld.sl"
20534 shlibpath_var=SHLIB_PATH
20535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20537 soname_spec='${libname}${release}${shared_ext}$major'
20538 ;;
20539 esac
20540 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20541 postinstall_cmds='chmod 555 $lib'
20542 # or fails outright, so override atomically:
20543 install_override_mode=555
20544 ;;
20545
20546 interix[3-9]*)
20547 version_type=linux
20548 need_lib_prefix=no
20549 need_version=no
20550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20551 soname_spec='${libname}${release}${shared_ext}$major'
20552 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20553 shlibpath_var=LD_LIBRARY_PATH
20554 shlibpath_overrides_runpath=no
20555 hardcode_into_libs=yes
20556 ;;
20557
20558 irix5* | irix6* | nonstopux*)
20559 case $host_os in
20560 nonstopux*) version_type=nonstopux ;;
20561 *)
20562 if test "$lt_cv_prog_gnu_ld" = yes; then
20563 version_type=linux
20564 else
20565 version_type=irix
20566 fi ;;
20567 esac
20568 need_lib_prefix=no
20569 need_version=no
20570 soname_spec='${libname}${release}${shared_ext}$major'
20571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20572 case $host_os in
20573 irix5* | nonstopux*)
20574 libsuff= shlibsuff=
20575 ;;
20576 *)
20577 case $LD in # libtool.m4 will add one of these switches to LD
20578 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20579 libsuff= shlibsuff= libmagic=32-bit;;
20580 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20581 libsuff=32 shlibsuff=N32 libmagic=N32;;
20582 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20583 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20584 *) libsuff= shlibsuff= libmagic=never-match;;
20585 esac
20586 ;;
20587 esac
20588 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20589 shlibpath_overrides_runpath=no
20590 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20591 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20592 hardcode_into_libs=yes
20593 ;;
20594
20595 # No shared lib support for Linux oldld, aout, or coff.
20596 linux*oldld* | linux*aout* | linux*coff*)
20597 dynamic_linker=no
20598 ;;
20599
20600 # This must be Linux ELF.
20601 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20602 version_type=linux
20603 need_lib_prefix=no
20604 need_version=no
20605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606 soname_spec='${libname}${release}${shared_ext}$major'
20607 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20608 shlibpath_var=LD_LIBRARY_PATH
20609 shlibpath_overrides_runpath=no
20610
20611 # Some binutils ld are patched to set DT_RUNPATH
20612 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20613 $as_echo_n "(cached) " >&6
20614 else
20615 lt_cv_shlibpath_overrides_runpath=no
20616 save_LDFLAGS=$LDFLAGS
20617 save_libdir=$libdir
20618 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20619 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20621 /* end confdefs.h. */
20622
20623 int
20624 main ()
20625 {
20626
20627 ;
20628 return 0;
20629 }
20630 _ACEOF
20631 if ac_fn_cxx_try_link "$LINENO"; then :
20632 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20633 lt_cv_shlibpath_overrides_runpath=yes
20634 fi
20635 fi
20636 rm -f core conftest.err conftest.$ac_objext \
20637 conftest$ac_exeext conftest.$ac_ext
20638 LDFLAGS=$save_LDFLAGS
20639 libdir=$save_libdir
20640
20641 fi
20642
20643 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20644
20645 # This implies no fast_install, which is unacceptable.
20646 # Some rework will be needed to allow for fast_install
20647 # before this can be enabled.
20648 hardcode_into_libs=yes
20649
20650 # Append ld.so.conf contents to the search path
20651 if test -f /etc/ld.so.conf; then
20652 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' ' '`
20653 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20654 fi
20655
20656 # We used to test for /lib/ld.so.1 and disable shared libraries on
20657 # powerpc, because MkLinux only supported shared libraries with the
20658 # GNU dynamic linker. Since this was broken with cross compilers,
20659 # most powerpc-linux boxes support dynamic linking these days and
20660 # people can always --disable-shared, the test was removed, and we
20661 # assume the GNU/Linux dynamic linker is in use.
20662 dynamic_linker='GNU/Linux ld.so'
20663 ;;
20664
20665 netbsd*)
20666 version_type=sunos
20667 need_lib_prefix=no
20668 need_version=no
20669 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20672 dynamic_linker='NetBSD (a.out) ld.so'
20673 else
20674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20675 soname_spec='${libname}${release}${shared_ext}$major'
20676 dynamic_linker='NetBSD ld.elf_so'
20677 fi
20678 shlibpath_var=LD_LIBRARY_PATH
20679 shlibpath_overrides_runpath=yes
20680 hardcode_into_libs=yes
20681 ;;
20682
20683 newsos6)
20684 version_type=linux
20685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20686 shlibpath_var=LD_LIBRARY_PATH
20687 shlibpath_overrides_runpath=yes
20688 ;;
20689
20690 *nto* | *qnx*)
20691 version_type=qnx
20692 need_lib_prefix=no
20693 need_version=no
20694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695 soname_spec='${libname}${release}${shared_ext}$major'
20696 shlibpath_var=LD_LIBRARY_PATH
20697 shlibpath_overrides_runpath=no
20698 hardcode_into_libs=yes
20699 dynamic_linker='ldqnx.so'
20700 ;;
20701
20702 openbsd*)
20703 version_type=sunos
20704 sys_lib_dlsearch_path_spec="/usr/lib"
20705 need_lib_prefix=no
20706 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20707 case $host_os in
20708 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20709 *) need_version=no ;;
20710 esac
20711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20713 shlibpath_var=LD_LIBRARY_PATH
20714 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20715 case $host_os in
20716 openbsd2.[89] | openbsd2.[89].*)
20717 shlibpath_overrides_runpath=no
20718 ;;
20719 *)
20720 shlibpath_overrides_runpath=yes
20721 ;;
20722 esac
20723 else
20724 shlibpath_overrides_runpath=yes
20725 fi
20726 ;;
20727
20728 os2*)
20729 libname_spec='$name'
20730 shrext_cmds=".dll"
20731 need_lib_prefix=no
20732 library_names_spec='$libname${shared_ext} $libname.a'
20733 dynamic_linker='OS/2 ld.exe'
20734 shlibpath_var=LIBPATH
20735 ;;
20736
20737 osf3* | osf4* | osf5*)
20738 version_type=osf
20739 need_lib_prefix=no
20740 need_version=no
20741 soname_spec='${libname}${release}${shared_ext}$major'
20742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20743 shlibpath_var=LD_LIBRARY_PATH
20744 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20745 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20746 ;;
20747
20748 rdos*)
20749 dynamic_linker=no
20750 ;;
20751
20752 solaris*)
20753 version_type=linux
20754 need_lib_prefix=no
20755 need_version=no
20756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20757 soname_spec='${libname}${release}${shared_ext}$major'
20758 shlibpath_var=LD_LIBRARY_PATH
20759 shlibpath_overrides_runpath=yes
20760 hardcode_into_libs=yes
20761 # ldd complains unless libraries are executable
20762 postinstall_cmds='chmod +x $lib'
20763 ;;
20764
20765 sunos4*)
20766 version_type=sunos
20767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20768 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20769 shlibpath_var=LD_LIBRARY_PATH
20770 shlibpath_overrides_runpath=yes
20771 if test "$with_gnu_ld" = yes; then
20772 need_lib_prefix=no
20773 fi
20774 need_version=yes
20775 ;;
20776
20777 sysv4 | sysv4.3*)
20778 version_type=linux
20779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20780 soname_spec='${libname}${release}${shared_ext}$major'
20781 shlibpath_var=LD_LIBRARY_PATH
20782 case $host_vendor in
20783 sni)
20784 shlibpath_overrides_runpath=no
20785 need_lib_prefix=no
20786 runpath_var=LD_RUN_PATH
20787 ;;
20788 siemens)
20789 need_lib_prefix=no
20790 ;;
20791 motorola)
20792 need_lib_prefix=no
20793 need_version=no
20794 shlibpath_overrides_runpath=no
20795 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20796 ;;
20797 esac
20798 ;;
20799
20800 sysv4*MP*)
20801 if test -d /usr/nec ;then
20802 version_type=linux
20803 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20804 soname_spec='$libname${shared_ext}.$major'
20805 shlibpath_var=LD_LIBRARY_PATH
20806 fi
20807 ;;
20808
20809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20810 version_type=freebsd-elf
20811 need_lib_prefix=no
20812 need_version=no
20813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20814 soname_spec='${libname}${release}${shared_ext}$major'
20815 shlibpath_var=LD_LIBRARY_PATH
20816 shlibpath_overrides_runpath=yes
20817 hardcode_into_libs=yes
20818 if test "$with_gnu_ld" = yes; then
20819 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20820 else
20821 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20822 case $host_os in
20823 sco3.2v5*)
20824 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20825 ;;
20826 esac
20827 fi
20828 sys_lib_dlsearch_path_spec='/usr/lib'
20829 ;;
20830
20831 tpf*)
20832 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20833 version_type=linux
20834 need_lib_prefix=no
20835 need_version=no
20836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20837 shlibpath_var=LD_LIBRARY_PATH
20838 shlibpath_overrides_runpath=no
20839 hardcode_into_libs=yes
20840 ;;
20841
20842 uts4*)
20843 version_type=linux
20844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20845 soname_spec='${libname}${release}${shared_ext}$major'
20846 shlibpath_var=LD_LIBRARY_PATH
20847 ;;
20848
20849 *)
20850 dynamic_linker=no
20851 ;;
20852 esac
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20854 $as_echo "$dynamic_linker" >&6; }
20855 test "$dynamic_linker" = no && can_build_shared=no
20856
20857 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20858 if test "$GCC" = yes; then
20859 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20860 fi
20861
20862 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20863 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20864 fi
20865 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20866 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20867 fi
20868
20869
20870
20871
20872
20873
20874
20875
20876
20877
20878
20879
20880
20881
20882
20883
20884
20885
20886
20887
20888
20889
20890
20891
20892
20893
20894
20895
20896
20897
20898
20899
20900
20901
20902
20903
20904
20905
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20907 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20908 hardcode_action_CXX=
20909 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20910 test -n "$runpath_var_CXX" ||
20911 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20912
20913 # We can hardcode non-existent directories.
20914 if test "$hardcode_direct_CXX" != no &&
20915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20916 # have to relink, otherwise we might link with an installed library
20917 # when we should be linking with a yet-to-be-installed one
20918 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20919 test "$hardcode_minus_L_CXX" != no; then
20920 # Linking always hardcodes the temporary library directory.
20921 hardcode_action_CXX=relink
20922 else
20923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20924 hardcode_action_CXX=immediate
20925 fi
20926 else
20927 # We cannot hardcode anything, or else we can only hardcode existing
20928 # directories.
20929 hardcode_action_CXX=unsupported
20930 fi
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20932 $as_echo "$hardcode_action_CXX" >&6; }
20933
20934 if test "$hardcode_action_CXX" = relink ||
20935 test "$inherit_rpath_CXX" = yes; then
20936 # Fast installation is not supported
20937 enable_fast_install=no
20938 elif test "$shlibpath_overrides_runpath" = yes ||
20939 test "$enable_shared" = no; then
20940 # Fast installation is not necessary
20941 enable_fast_install=needless
20942 fi
20943
20944
20945
20946
20947
20948
20949
20950 fi # test -n "$compiler"
20951
20952 CC=$lt_save_CC
20953 LDCXX=$LD
20954 LD=$lt_save_LD
20955 GCC=$lt_save_GCC
20956 with_gnu_ld=$lt_save_with_gnu_ld
20957 lt_cv_path_LDCXX=$lt_cv_path_LD
20958 lt_cv_path_LD=$lt_save_path_LD
20959 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20960 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20961 fi # test "$_lt_caught_CXX_error" != yes
20962
20963 ac_ext=c
20964 ac_cpp='$CPP $CPPFLAGS'
20965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984 # Only expand once:
20985
20986
20987
20988
20989
20990 # Identify the assembler which will work hand-in-glove with the newly
20991 # built GCC, so that we can examine its features. This is the assembler
20992 # which will be driven by the driver program.
20993 #
20994 # If build != host, and we aren't building gas in-tree, we identify a
20995 # build->target assembler and hope that it will have the same features
20996 # as the host->target assembler we'll be using.
20997 gcc_cv_gas_major_version=
20998 gcc_cv_gas_minor_version=
20999 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
21000
21001 if test "${gcc_cv_as+set}" = set; then :
21002
21003 else
21004
21005 if test -x "$DEFAULT_ASSEMBLER"; then
21006 gcc_cv_as="$DEFAULT_ASSEMBLER"
21007 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
21008 && test -f ../gas/Makefile \
21009 && test x$build = x$host; then
21010 gcc_cv_as=../gas/as-new$build_exeext
21011 elif test -x as$build_exeext; then
21012 # Build using assembler in the current directory.
21013 gcc_cv_as=./as$build_exeext
21014 elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
21015 gcc_cv_as="$AS_FOR_TARGET"
21016 else
21017 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
21018 set dummy $AS_FOR_TARGET; ac_word=$2
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21020 $as_echo_n "checking for $ac_word... " >&6; }
21021 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
21022 $as_echo_n "(cached) " >&6
21023 else
21024 case $gcc_cv_as in
21025 [\\/]* | ?:[\\/]*)
21026 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
21027 ;;
21028 *)
21029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21030 for as_dir in $PATH
21031 do
21032 IFS=$as_save_IFS
21033 test -z "$as_dir" && as_dir=.
21034 for ac_exec_ext in '' $ac_executable_extensions; do
21035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21036 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
21037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21038 break 2
21039 fi
21040 done
21041 done
21042 IFS=$as_save_IFS
21043
21044 ;;
21045 esac
21046 fi
21047 gcc_cv_as=$ac_cv_path_gcc_cv_as
21048 if test -n "$gcc_cv_as"; then
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21050 $as_echo "$gcc_cv_as" >&6; }
21051 else
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21053 $as_echo "no" >&6; }
21054 fi
21055
21056
21057 fi
21058 fi
21059
21060 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
21061
21062 case "$ORIGINAL_AS_FOR_TARGET" in
21063 ./as | ./as$build_exeext) ;;
21064 *) ac_config_files="$ac_config_files as:exec-tool.in"
21065 ;;
21066 esac
21067
21068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
21069 $as_echo_n "checking what assembler to use... " >&6; }
21070 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
21071 # Single tree build which includes gas. We want to prefer it
21072 # over whatever linker top-level may have detected, since
21073 # we'll use what we're building after installation anyway.
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
21075 $as_echo "newly built gas" >&6; }
21076 in_tree_gas=yes
21077 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21078 for f in $gcc_cv_as_bfd_srcdir/configure \
21079 $gcc_cv_as_gas_srcdir/configure \
21080 $gcc_cv_as_gas_srcdir/configure.in \
21081 $gcc_cv_as_gas_srcdir/Makefile.in ; do
21082 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21083 if test x$gcc_cv_gas_version != x; then
21084 break
21085 fi
21086 done
21087 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
21088 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21089 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
21090 case $gcc_cv_gas_patch_version in
21091 "") gcc_cv_gas_patch_version="0" ;;
21092 esac
21093 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
21094 + $gcc_cv_gas_minor_version \) \* 1000 \
21095 + $gcc_cv_gas_patch_version`
21096
21097 in_tree_gas_is_elf=no
21098 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
21099 || (grep 'obj_format = multi' ../gas/Makefile \
21100 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
21101 then
21102 in_tree_gas_is_elf=yes
21103 fi
21104 else
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
21106 $as_echo "$gcc_cv_as" >&6; }
21107 in_tree_gas=no
21108 fi
21109
21110 # Identify the linker which will work hand-in-glove with the newly
21111 # built GCC, so that we can examine its features. This is the linker
21112 # which will be driven by the driver program.
21113 #
21114 # If build != host, and we aren't building gas in-tree, we identify a
21115 # build->target linker and hope that it will have the same features
21116 # as the host->target linker we'll be using.
21117 gcc_cv_gld_major_version=
21118 gcc_cv_gld_minor_version=
21119 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
21120 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
21121
21122 if test "${gcc_cv_ld+set}" = set; then :
21123
21124 else
21125
21126 if test -x "$DEFAULT_LINKER"; then
21127 gcc_cv_ld="$DEFAULT_LINKER"
21128 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
21129 && test -f ../ld/Makefile \
21130 && test x$build = x$host; then
21131 gcc_cv_ld=../ld/ld-new$build_exeext
21132 elif test -x collect-ld$build_exeext; then
21133 # Build using linker in the current directory.
21134 gcc_cv_ld=./collect-ld$build_exeext
21135 elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
21136 gcc_cv_ld="$LD_FOR_TARGET"
21137 else
21138 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
21139 set dummy $LD_FOR_TARGET; ac_word=$2
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21141 $as_echo_n "checking for $ac_word... " >&6; }
21142 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
21143 $as_echo_n "(cached) " >&6
21144 else
21145 case $gcc_cv_ld in
21146 [\\/]* | ?:[\\/]*)
21147 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
21148 ;;
21149 *)
21150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21151 for as_dir in $PATH
21152 do
21153 IFS=$as_save_IFS
21154 test -z "$as_dir" && as_dir=.
21155 for ac_exec_ext in '' $ac_executable_extensions; do
21156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21157 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
21158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21159 break 2
21160 fi
21161 done
21162 done
21163 IFS=$as_save_IFS
21164
21165 ;;
21166 esac
21167 fi
21168 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
21169 if test -n "$gcc_cv_ld"; then
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21171 $as_echo "$gcc_cv_ld" >&6; }
21172 else
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21174 $as_echo "no" >&6; }
21175 fi
21176
21177
21178 fi
21179 fi
21180
21181 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
21182 PLUGIN_LD=`basename $gcc_cv_ld`
21183
21184 # Check whether --with-plugin-ld was given.
21185 if test "${with_plugin_ld+set}" = set; then :
21186 withval=$with_plugin_ld; if test x"$withval" != x; then
21187 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
21188 PLUGIN_LD="$withval"
21189 fi
21190 fi
21191
21192
21193
21194 cat >>confdefs.h <<_ACEOF
21195 #define PLUGIN_LD "$PLUGIN_LD"
21196 _ACEOF
21197
21198
21199 # Check to see if we are using gold instead of ld
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
21201 $as_echo_n "checking whether we are using gold... " >&6; }
21202 ld_is_gold=no
21203 if test x$gcc_cv_ld != x; then
21204 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
21205 | grep "GNU gold" > /dev/null; then
21206 ld_is_gold=yes
21207 fi
21208 fi
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
21210 $as_echo "$ld_is_gold" >&6; }
21211
21212 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
21213
21214 case "$ORIGINAL_LD_FOR_TARGET" in
21215 ./collect-ld | ./collect-ld$build_exeext) ;;
21216 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
21217 ;;
21218 esac
21219
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
21221 $as_echo_n "checking what linker to use... " >&6; }
21222 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext \
21223 || test "$gcc_cv_ld" = ../gold/ld-new$build_exeext; then
21224 # Single tree build which includes ld. We want to prefer it
21225 # over whatever linker top-level may have detected, since
21226 # we'll use what we're building after installation anyway.
21227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
21228 $as_echo "newly built ld" >&6; }
21229 in_tree_ld=yes
21230 in_tree_ld_is_elf=no
21231 if (grep 'EMUL = .*elf' ../ld/Makefile \
21232 || grep 'EMUL = .*linux' ../ld/Makefile \
21233 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
21234 in_tree_ld_is_elf=yes
21235 elif test "$ld_is_gold" = yes; then
21236 in_tree_ld_is_elf=yes
21237 fi
21238 for f in $gcc_cv_ld_bfd_srcdir/configure $gcc_cv_ld_gld_srcdir/configure $gcc_cv_ld_gld_srcdir/configure.in $gcc_cv_ld_gld_srcdir/Makefile.in
21239 do
21240 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
21241 if test x$gcc_cv_gld_version != x; then
21242 break
21243 fi
21244 done
21245 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
21246 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
21247 else
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
21249 $as_echo "$gcc_cv_ld" >&6; }
21250 in_tree_ld=no
21251 fi
21252
21253 # Figure out what nm we will be using.
21254 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
21255 if test "${gcc_cv_nm+set}" = set; then :
21256
21257 else
21258
21259 if test -f $gcc_cv_binutils_srcdir/configure.in \
21260 && test -f ../binutils/Makefile \
21261 && test x$build = x$host; then
21262 gcc_cv_nm=../binutils/nm-new$build_exeext
21263 elif test -x nm$build_exeext; then
21264 gcc_cv_nm=./nm$build_exeext
21265 elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
21266 gcc_cv_nm="$NM_FOR_TARGET"
21267 else
21268 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
21269 set dummy $NM_FOR_TARGET; ac_word=$2
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21271 $as_echo_n "checking for $ac_word... " >&6; }
21272 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
21273 $as_echo_n "(cached) " >&6
21274 else
21275 case $gcc_cv_nm in
21276 [\\/]* | ?:[\\/]*)
21277 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
21278 ;;
21279 *)
21280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21281 for as_dir in $PATH
21282 do
21283 IFS=$as_save_IFS
21284 test -z "$as_dir" && as_dir=.
21285 for ac_exec_ext in '' $ac_executable_extensions; do
21286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21287 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
21288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21289 break 2
21290 fi
21291 done
21292 done
21293 IFS=$as_save_IFS
21294
21295 ;;
21296 esac
21297 fi
21298 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
21299 if test -n "$gcc_cv_nm"; then
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21301 $as_echo "$gcc_cv_nm" >&6; }
21302 else
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21304 $as_echo "no" >&6; }
21305 fi
21306
21307
21308 fi
21309 fi
21310
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
21312 $as_echo_n "checking what nm to use... " >&6; }
21313 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
21314 # Single tree build which includes binutils.
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
21316 $as_echo "newly built nm" >&6; }
21317 in_tree_nm=yes
21318 else
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
21320 $as_echo "$gcc_cv_nm" >&6; }
21321 in_tree_nm=no
21322 fi
21323
21324 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
21325
21326 case "$ORIGINAL_NM_FOR_TARGET" in
21327 ./nm | ./nm$build_exeext) ;;
21328 *) ac_config_files="$ac_config_files nm:exec-tool.in"
21329 ;;
21330 esac
21331
21332
21333 # Figure out what objdump we will be using.
21334 if test "${gcc_cv_objdump+set}" = set; then :
21335
21336 else
21337
21338 if test -f $gcc_cv_binutils_srcdir/configure.in \
21339 && test -f ../binutils/Makefile \
21340 && test x$build = x$host; then
21341 # Single tree build which includes binutils.
21342 gcc_cv_objdump=../binutils/objdump$build_exeext
21343 elif test -x objdump$build_exeext; then
21344 gcc_cv_objdump=./objdump$build_exeext
21345 elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
21346 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
21347 else
21348 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
21349 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21351 $as_echo_n "checking for $ac_word... " >&6; }
21352 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
21353 $as_echo_n "(cached) " >&6
21354 else
21355 case $gcc_cv_objdump in
21356 [\\/]* | ?:[\\/]*)
21357 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
21358 ;;
21359 *)
21360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21361 for as_dir in $PATH
21362 do
21363 IFS=$as_save_IFS
21364 test -z "$as_dir" && as_dir=.
21365 for ac_exec_ext in '' $ac_executable_extensions; do
21366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21367 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
21368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21369 break 2
21370 fi
21371 done
21372 done
21373 IFS=$as_save_IFS
21374
21375 ;;
21376 esac
21377 fi
21378 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
21379 if test -n "$gcc_cv_objdump"; then
21380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21381 $as_echo "$gcc_cv_objdump" >&6; }
21382 else
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21384 $as_echo "no" >&6; }
21385 fi
21386
21387
21388 fi
21389 fi
21390
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
21392 $as_echo_n "checking what objdump to use... " >&6; }
21393 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
21394 # Single tree build which includes binutils.
21395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
21396 $as_echo "newly built objdump" >&6; }
21397 elif test x$gcc_cv_objdump = x; then
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21399 $as_echo "not found" >&6; }
21400 else
21401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
21402 $as_echo "$gcc_cv_objdump" >&6; }
21403 fi
21404
21405 # Figure out what readelf we will be using.
21406 if test "${gcc_cv_readelf+set}" = set; then :
21407
21408 else
21409
21410 if test -f $gcc_cv_binutils_srcdir/configure.in \
21411 && test -f ../binutils/Makefile \
21412 && test x$build = x$host; then
21413 # Single tree build which includes binutils.
21414 gcc_cv_readelf=../binutils/readelf$build_exeext
21415 elif test -x readelf$build_exeext; then
21416 gcc_cv_readelf=./readelf$build_exeext
21417 else
21418 # Extract the first word of "readelf", so it can be a program name with args.
21419 set dummy readelf; ac_word=$2
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21421 $as_echo_n "checking for $ac_word... " >&6; }
21422 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
21423 $as_echo_n "(cached) " >&6
21424 else
21425 case $gcc_cv_readelf in
21426 [\\/]* | ?:[\\/]*)
21427 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
21428 ;;
21429 *)
21430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21431 for as_dir in $PATH
21432 do
21433 IFS=$as_save_IFS
21434 test -z "$as_dir" && as_dir=.
21435 for ac_exec_ext in '' $ac_executable_extensions; do
21436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21437 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
21438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21439 break 2
21440 fi
21441 done
21442 done
21443 IFS=$as_save_IFS
21444
21445 ;;
21446 esac
21447 fi
21448 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
21449 if test -n "$gcc_cv_readelf"; then
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21451 $as_echo "$gcc_cv_readelf" >&6; }
21452 else
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21454 $as_echo "no" >&6; }
21455 fi
21456
21457
21458 fi
21459 fi
21460
21461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
21462 $as_echo_n "checking what readelf to use... " >&6; }
21463 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
21464 # Single tree build which includes binutils.
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
21466 $as_echo "newly built readelf" >&6; }
21467 elif test x$gcc_cv_readelf = x; then
21468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21469 $as_echo "not found" >&6; }
21470 else
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
21472 $as_echo "$gcc_cv_readelf" >&6; }
21473 fi
21474
21475 # Figure out what assembler alignment features are present.
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
21477 $as_echo_n "checking assembler flags... " >&6; }
21478 if test "${gcc_cv_as_flags+set}" = set; then :
21479 $as_echo_n "(cached) " >&6
21480 else
21481 case "$target" in
21482 i[34567]86-*-linux*)
21483 gcc_cv_as_flags="--32"
21484 ;;
21485 powerpc*-*-darwin*)
21486 gcc_cv_as_flags="-arch ppc"
21487 ;;
21488 *)
21489 gcc_cv_as_flags=" "
21490 ;;
21491 esac
21492 fi
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
21494 $as_echo "$gcc_cv_as_flags" >&6; }
21495
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
21497 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
21498 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
21499 $as_echo_n "(cached) " >&6
21500 else
21501 gcc_cv_as_balign_and_p2align=no
21502 if test $in_tree_gas = yes; then
21503 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
21504 then gcc_cv_as_balign_and_p2align=yes
21505 fi
21506 elif test x$gcc_cv_as != x; then
21507 $as_echo '.balign 4
21508 .p2align 2' > conftest.s
21509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21511 (eval $ac_try) 2>&5
21512 ac_status=$?
21513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21514 test $ac_status = 0; }; }
21515 then
21516 gcc_cv_as_balign_and_p2align=yes
21517 else
21518 echo "configure: failed program was" >&5
21519 cat conftest.s >&5
21520 fi
21521 rm -f conftest.o conftest.s
21522 fi
21523 fi
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21525 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21526 if test $gcc_cv_as_balign_and_p2align = yes; then
21527
21528 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21529
21530 fi
21531
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21533 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21534 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21535 $as_echo_n "(cached) " >&6
21536 else
21537 gcc_cv_as_max_skip_p2align=no
21538 if test $in_tree_gas = yes; then
21539 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21540 then gcc_cv_as_max_skip_p2align=yes
21541 fi
21542 elif test x$gcc_cv_as != x; then
21543 $as_echo '.p2align 4,,7' > conftest.s
21544 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21546 (eval $ac_try) 2>&5
21547 ac_status=$?
21548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21549 test $ac_status = 0; }; }
21550 then
21551 gcc_cv_as_max_skip_p2align=yes
21552 else
21553 echo "configure: failed program was" >&5
21554 cat conftest.s >&5
21555 fi
21556 rm -f conftest.o conftest.s
21557 fi
21558 fi
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21560 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21561 if test $gcc_cv_as_max_skip_p2align = yes; then
21562
21563 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21564
21565 fi
21566
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21568 $as_echo_n "checking assembler for .literal16... " >&6; }
21569 if test "${gcc_cv_as_literal16+set}" = set; then :
21570 $as_echo_n "(cached) " >&6
21571 else
21572 gcc_cv_as_literal16=no
21573 if test $in_tree_gas = yes; then
21574 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21575 then gcc_cv_as_literal16=yes
21576 fi
21577 elif test x$gcc_cv_as != x; then
21578 $as_echo '.literal16' > conftest.s
21579 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21584 test $ac_status = 0; }; }
21585 then
21586 gcc_cv_as_literal16=yes
21587 else
21588 echo "configure: failed program was" >&5
21589 cat conftest.s >&5
21590 fi
21591 rm -f conftest.o conftest.s
21592 fi
21593 fi
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21595 $as_echo "$gcc_cv_as_literal16" >&6; }
21596 if test $gcc_cv_as_literal16 = yes; then
21597
21598 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21599
21600 fi
21601
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21603 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21604 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21605 $as_echo_n "(cached) " >&6
21606 else
21607 gcc_cv_as_subsection_m1=no
21608 if test $in_tree_gas = yes; then
21609 if test $in_tree_gas_is_elf = yes \
21610 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21611 then gcc_cv_as_subsection_m1=yes
21612 fi
21613 elif test x$gcc_cv_as != x; then
21614 $as_echo 'conftest_label1: .word 0
21615 .subsection -1
21616 conftest_label2: .word 0
21617 .previous' > conftest.s
21618 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21620 (eval $ac_try) 2>&5
21621 ac_status=$?
21622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21623 test $ac_status = 0; }; }
21624 then
21625 if test x$gcc_cv_nm != x; then
21626 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21627 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21628 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21629 then :
21630 else gcc_cv_as_subsection_m1=yes
21631 fi
21632 rm -f conftest.nm1 conftest.nm2
21633 fi
21634 else
21635 echo "configure: failed program was" >&5
21636 cat conftest.s >&5
21637 fi
21638 rm -f conftest.o conftest.s
21639 fi
21640 fi
21641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21642 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21643 if test $gcc_cv_as_subsection_m1 = yes; then
21644
21645 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21646
21647 fi
21648
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21650 $as_echo_n "checking assembler for .weak... " >&6; }
21651 if test "${gcc_cv_as_weak+set}" = set; then :
21652 $as_echo_n "(cached) " >&6
21653 else
21654 gcc_cv_as_weak=no
21655 if test $in_tree_gas = yes; then
21656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21657 then gcc_cv_as_weak=yes
21658 fi
21659 elif test x$gcc_cv_as != x; then
21660 $as_echo ' .weak foobar' > conftest.s
21661 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21663 (eval $ac_try) 2>&5
21664 ac_status=$?
21665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21666 test $ac_status = 0; }; }
21667 then
21668 gcc_cv_as_weak=yes
21669 else
21670 echo "configure: failed program was" >&5
21671 cat conftest.s >&5
21672 fi
21673 rm -f conftest.o conftest.s
21674 fi
21675 fi
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21677 $as_echo "$gcc_cv_as_weak" >&6; }
21678 if test $gcc_cv_as_weak = yes; then
21679
21680 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21681
21682 fi
21683
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21685 $as_echo_n "checking assembler for .weakref... " >&6; }
21686 if test "${gcc_cv_as_weakref+set}" = set; then :
21687 $as_echo_n "(cached) " >&6
21688 else
21689 gcc_cv_as_weakref=no
21690 if test $in_tree_gas = yes; then
21691 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21692 then gcc_cv_as_weakref=yes
21693 fi
21694 elif test x$gcc_cv_as != x; then
21695 $as_echo ' .weakref foobar, barfnot' > conftest.s
21696 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21698 (eval $ac_try) 2>&5
21699 ac_status=$?
21700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21701 test $ac_status = 0; }; }
21702 then
21703 gcc_cv_as_weakref=yes
21704 else
21705 echo "configure: failed program was" >&5
21706 cat conftest.s >&5
21707 fi
21708 rm -f conftest.o conftest.s
21709 fi
21710 fi
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21712 $as_echo "$gcc_cv_as_weakref" >&6; }
21713 if test $gcc_cv_as_weakref = yes; then
21714
21715 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21716
21717 fi
21718
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21720 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21721 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21722 $as_echo_n "(cached) " >&6
21723 else
21724 gcc_cv_as_nsubspa_comdat=no
21725 if test $in_tree_gas = yes; then
21726 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21727 then gcc_cv_as_nsubspa_comdat=yes
21728 fi
21729 elif test x$gcc_cv_as != x; then
21730 $as_echo ' .SPACE $TEXT$
21731 .NSUBSPA $CODE$,COMDAT' > conftest.s
21732 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21737 test $ac_status = 0; }; }
21738 then
21739 gcc_cv_as_nsubspa_comdat=yes
21740 else
21741 echo "configure: failed program was" >&5
21742 cat conftest.s >&5
21743 fi
21744 rm -f conftest.o conftest.s
21745 fi
21746 fi
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21748 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21749 if test $gcc_cv_as_nsubspa_comdat = yes; then
21750
21751 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21752
21753 fi
21754
21755 # .hidden needs to be supported in both the assembler and the linker,
21756 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21757 # This is irritatingly difficult to feature test for; we have to check the
21758 # date string after the version number. If we've got an in-tree
21759 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21760 # to be safe.
21761 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21763 $as_echo_n "checking assembler for .hidden... " >&6; }
21764 if test "${gcc_cv_as_hidden+set}" = set; then :
21765 $as_echo_n "(cached) " >&6
21766 else
21767 gcc_cv_as_hidden=no
21768 if test $in_tree_gas = yes; then
21769 if test $in_tree_gas_is_elf = yes \
21770 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21771 then gcc_cv_as_hidden=yes
21772 fi
21773 elif test x$gcc_cv_as != x; then
21774 $as_echo ' .hidden foobar
21775 foobar:' > conftest.s
21776 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21778 (eval $ac_try) 2>&5
21779 ac_status=$?
21780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21781 test $ac_status = 0; }; }
21782 then
21783
21784 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21785 # STV_HIDDEN, so disable .hidden support if so.
21786 case "${target}" in
21787 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
21788 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21789 cat > conftest.s <<EOF
21790 .globl hidden
21791 .hidden hidden
21792 hidden:
21793 .globl default
21794 .set default,hidden
21795 EOF
21796 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21797 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21798 grep '\.hidden default' > /dev/null; then
21799 gcc_cv_as_hidden=no
21800 else
21801 gcc_cv_as_hidden=yes
21802 fi
21803 else
21804 # Assume bug is present if objdump is missing.
21805 gcc_cv_as_hidden=no
21806 fi
21807 ;;
21808 *)
21809 gcc_cv_as_hidden=yes
21810 ;;
21811 esac
21812 else
21813 echo "configure: failed program was" >&5
21814 cat conftest.s >&5
21815 fi
21816 rm -f conftest.o conftest.s
21817 fi
21818 fi
21819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21820 $as_echo "$gcc_cv_as_hidden" >&6; }
21821
21822 case "${target}" in
21823 *-*-darwin*)
21824 # Darwin as has some visibility support, though with a different syntax.
21825 gcc_cv_as_hidden=yes
21826 ;;
21827 esac
21828
21829 # gnu_indirect_function type is an extension proposed at
21830 # http://groups.google/com/group/generic-abi/files. It allows dynamic runtime
21831 # selection of function implementation
21832 # Check whether --enable-gnu-indirect-function was given.
21833 if test "${enable_gnu_indirect_function+set}" = set; then :
21834 enableval=$enable_gnu_indirect_function; case $enable_gnu_indirect_function in
21835 yes | no) ;;
21836 *) as_fn_error "'$enable_gnu_indirect_function' is an invalid value for --enable-gnu-indirect-function.
21837 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
21838 esac
21839 else
21840 enable_gnu_indirect_function="$default_gnu_indirect_function"
21841 fi
21842
21843 if test x$enable_gnu_indirect_function = xyes; then
21844
21845 $as_echo "#define HAVE_GNU_INDIRECT_FUNCTION 1" >>confdefs.h
21846
21847 fi
21848
21849 if test $in_tree_ld != yes ; then
21850 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21851 if echo "$ld_ver" | grep GNU > /dev/null; then
21852 if test x"$ld_is_gold" = xyes; then
21853 # GNU gold --version looks like this:
21854 #
21855 # GNU gold (GNU Binutils 2.21.51.20110225) 1.11
21856 #
21857 # We extract the binutils version which is more familiar and specific
21858 # than the gold version.
21859 ld_vers=`echo $ld_ver | sed -n \
21860 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
21861 else
21862 # GNU ld --version looks like this:
21863 #
21864 # GNU ld (GNU Binutils) 2.21.51.20110225
21865 ld_vers=`echo $ld_ver | sed -n \
21866 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21867 fi
21868 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'`
21869 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21870 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21871 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21872 else
21873 case "${target}" in
21874 *-*-solaris2*)
21875 #
21876 # Solaris 2 ld -V output looks like this for a regular version:
21877 #
21878 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21879 #
21880 # but test versions add stuff at the end:
21881 #
21882 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21883 #
21884 ld_ver=`$gcc_cv_ld -V 2>&1`
21885 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21886 ld_vers=`echo $ld_ver | sed -n \
21887 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21888 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21889 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21890 fi
21891 ;;
21892 esac
21893 fi
21894 fi
21895
21896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21897 $as_echo_n "checking linker for .hidden support... " >&6; }
21898 if test "${gcc_cv_ld_hidden+set}" = set; then :
21899 $as_echo_n "(cached) " >&6
21900 else
21901 if test $in_tree_ld = yes ; then
21902 gcc_cv_ld_hidden=no
21903 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 \
21904 && test $in_tree_ld_is_elf = yes; then
21905 gcc_cv_ld_hidden=yes
21906 fi
21907 else
21908 gcc_cv_ld_hidden=yes
21909 if test x"$ld_is_gold" = xyes; then
21910 :
21911 elif echo "$ld_ver" | grep GNU > /dev/null; then
21912 if test 0"$ld_date" -lt 20020404; then
21913 if test -n "$ld_date"; then
21914 # If there was date string, but was earlier than 2002-04-04, fail
21915 gcc_cv_ld_hidden=no
21916 elif test -z "$ld_vers"; then
21917 # If there was no date string nor ld version number, something is wrong
21918 gcc_cv_ld_hidden=no
21919 else
21920 test -z "$ld_vers_patch" && ld_vers_patch=0
21921 if test "$ld_vers_major" -lt 2; then
21922 gcc_cv_ld_hidden=no
21923 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21924 gcc_cv_ld_hidden="no"
21925 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21926 gcc_cv_ld_hidden=no
21927 fi
21928 fi
21929 fi
21930 else
21931 case "${target}" in
21932 *-*-darwin*)
21933 # Darwin ld has some visibility support.
21934 gcc_cv_ld_hidden=yes
21935 ;;
21936 hppa64*-*-hpux* | ia64*-*-hpux*)
21937 gcc_cv_ld_hidden=yes
21938 ;;
21939 *-*-solaris2.8*)
21940 # .hidden support was backported to Solaris 8, starting with ld
21941 # version 1.276.
21942 if test "$ld_vers_minor" -ge 276; then
21943 gcc_cv_ld_hidden=yes
21944 else
21945 gcc_cv_ld_hidden=no
21946 fi
21947 ;;
21948 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21949 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21950 # .symbolic was only added in Solaris 9 12/02.
21951 gcc_cv_ld_hidden=yes
21952 ;;
21953 *)
21954 gcc_cv_ld_hidden=no
21955 ;;
21956 esac
21957 fi
21958 fi
21959 fi
21960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21961 $as_echo "$gcc_cv_ld_hidden" >&6; }
21962 libgcc_visibility=no
21963
21964
21965 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21966 libgcc_visibility=yes
21967
21968 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21969
21970 fi
21971
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21973 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21974 gcc_cv_ld_ro_rw_mix=unknown
21975 if test $in_tree_ld = yes ; then
21976 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 \
21977 && test $in_tree_ld_is_elf = yes; then
21978 gcc_cv_ld_ro_rw_mix=read-write
21979 fi
21980 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21981 echo '.section myfoosect, "a"' > conftest1.s
21982 echo '.section myfoosect, "aw"' > conftest2.s
21983 echo '.byte 1' >> conftest2.s
21984 echo '.section myfoosect, "a"' > conftest3.s
21985 echo '.byte 0' >> conftest3.s
21986 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21987 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21988 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21989 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21990 conftest2.o conftest3.o > /dev/null 2>&1; then
21991 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21992 | sed -e '/myfoosect/!d' -e N`
21993 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21994 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21995 gcc_cv_ld_ro_rw_mix=read-only
21996 else
21997 gcc_cv_ld_ro_rw_mix=read-write
21998 fi
21999 fi
22000 fi
22001 rm -f conftest.* conftest[123].*
22002 fi
22003 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
22004
22005 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
22006
22007 fi
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
22009 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
22010
22011 # Check if we have .[us]leb128, and support symbol arithmetic with it.
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
22013 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
22014 if test "${gcc_cv_as_leb128+set}" = set; then :
22015 $as_echo_n "(cached) " >&6
22016 else
22017 gcc_cv_as_leb128=no
22018 if test $in_tree_gas = yes; then
22019 if test $in_tree_gas_is_elf = yes \
22020 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22021 then gcc_cv_as_leb128=yes
22022 fi
22023 elif test x$gcc_cv_as != x; then
22024 $as_echo ' .data
22025 .uleb128 L2 - L1
22026 L1:
22027 .uleb128 1280
22028 .sleb128 -1010
22029 L2:' > conftest.s
22030 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22035 test $ac_status = 0; }; }
22036 then
22037 # GAS versions before 2.11 do not support uleb128,
22038 # despite appearing to.
22039 # ??? There exists an elf-specific test that will crash
22040 # the assembler. Perhaps it's better to figure out whether
22041 # arbitrary sections are supported and try the test.
22042 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
22043 if echo "$as_ver" | grep GNU > /dev/null; then
22044 as_vers=`echo $as_ver | sed -n \
22045 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
22046 as_major=`expr "$as_vers" : '\([0-9]*\)'`
22047 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
22048 if test $as_major -eq 2 && test $as_minor -lt 11
22049 then :
22050 else gcc_cv_as_leb128=yes
22051 fi
22052 fi
22053 else
22054 echo "configure: failed program was" >&5
22055 cat conftest.s >&5
22056 fi
22057 rm -f conftest.o conftest.s
22058 fi
22059 fi
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
22061 $as_echo "$gcc_cv_as_leb128" >&6; }
22062 if test $gcc_cv_as_leb128 = yes; then
22063
22064 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
22065
22066 fi
22067
22068 # Check if we have assembler support for unwind directives.
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
22070 $as_echo_n "checking assembler for cfi directives... " >&6; }
22071 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
22072 $as_echo_n "(cached) " >&6
22073 else
22074 gcc_cv_as_cfi_directive=no
22075 if test x$gcc_cv_as != x; then
22076 $as_echo ' .text
22077 .cfi_startproc
22078 .cfi_offset 0, 0
22079 .cfi_same_value 1
22080 .cfi_def_cfa 1, 2
22081 .cfi_escape 1, 2, 3, 4, 5
22082 .cfi_endproc' > conftest.s
22083 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22085 (eval $ac_try) 2>&5
22086 ac_status=$?
22087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22088 test $ac_status = 0; }; }
22089 then
22090 case "$target" in
22091 *-*-solaris*)
22092 # If the linker used on Solaris (like Sun ld) isn't capable of merging
22093 # read-only and read-write sections, we need to make sure that the
22094 # assembler used emits read-write .eh_frame sections.
22095 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
22096 if test "x$gcc_cv_objdump" != x; then
22097 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22098 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
22099 gcc_cv_as_cfi_directive=no
22100 else
22101 case "$target" in
22102 i?86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]*)
22103 # On Solaris/x86, make sure that GCC and gas agree on using
22104 # read-only .eh_frame sections for 64-bit.
22105 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
22106 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
22107 sed -e /.eh_frame/!d -e N | \
22108 grep READONLY > /dev/null; then
22109 gcc_cv_as_cfi_directive=yes
22110 else
22111 gcc_cv_as_cfi_directive=no
22112 fi
22113 ;;
22114 *)
22115 gcc_cv_as_cfi_directive=yes
22116 ;;
22117 esac
22118 fi
22119 else
22120 # no objdump, err on the side of caution
22121 gcc_cv_as_cfi_directive=no
22122 fi
22123 else
22124 gcc_cv_as_cfi_directive=yes
22125 fi
22126 ;;
22127 *-*-*)
22128 gcc_cv_as_cfi_directive=yes
22129 ;;
22130 esac
22131 else
22132 echo "configure: failed program was" >&5
22133 cat conftest.s >&5
22134 fi
22135 rm -f conftest.o conftest.s
22136 fi
22137 fi
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
22139 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
22140
22141 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
22143 $as_echo_n "checking assembler for working cfi advance... " >&6; }
22144 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
22145 $as_echo_n "(cached) " >&6
22146 else
22147 gcc_cv_as_cfi_advance_working=no
22148 if test x$gcc_cv_as != x; then
22149 $as_echo ' .text
22150 .cfi_startproc
22151 .cfi_adjust_cfa_offset 64
22152 .skip 75040, 0
22153 .cfi_adjust_cfa_offset 128
22154 .cfi_endproc' > conftest.s
22155 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22157 (eval $ac_try) 2>&5
22158 ac_status=$?
22159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22160 test $ac_status = 0; }; }
22161 then
22162
22163 if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
22164 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
22165 gcc_cv_as_cfi_advance_working=yes
22166 fi
22167
22168 else
22169 echo "configure: failed program was" >&5
22170 cat conftest.s >&5
22171 fi
22172 rm -f conftest.o conftest.s
22173 fi
22174 fi
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
22176 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
22177
22178 else
22179 # no objdump, err on the side of caution
22180 gcc_cv_as_cfi_advance_working=no
22181 fi
22182
22183
22184 cat >>confdefs.h <<_ACEOF
22185 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
22186 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
22187 _ACEOF
22188
22189
22190
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
22192 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
22193 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
22194 $as_echo_n "(cached) " >&6
22195 else
22196 gcc_cv_as_cfi_personality_directive=no
22197 if test x$gcc_cv_as != x; then
22198 $as_echo ' .text
22199 .cfi_startproc
22200 .cfi_personality 0, symbol
22201 .cfi_endproc' > conftest.s
22202 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22204 (eval $ac_try) 2>&5
22205 ac_status=$?
22206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22207 test $ac_status = 0; }; }
22208 then
22209 gcc_cv_as_cfi_personality_directive=yes
22210 else
22211 echo "configure: failed program was" >&5
22212 cat conftest.s >&5
22213 fi
22214 rm -f conftest.o conftest.s
22215 fi
22216 fi
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
22218 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
22219
22220
22221 cat >>confdefs.h <<_ACEOF
22222 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
22223 then echo 1; else echo 0; fi`
22224 _ACEOF
22225
22226
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
22228 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
22229 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
22230 $as_echo_n "(cached) " >&6
22231 else
22232 gcc_cv_as_cfi_sections_directive=no
22233 if test x$gcc_cv_as != x; then
22234 $as_echo ' .text
22235 .cfi_sections .debug_frame, .eh_frame
22236 .cfi_startproc
22237 .cfi_endproc' > conftest.s
22238 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22240 (eval $ac_try) 2>&5
22241 ac_status=$?
22242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22243 test $ac_status = 0; }; }
22244 then
22245 case $target_os in
22246 win32 | pe | cygwin* | mingw32* | uwin*)
22247 # Need to check that we generated the correct relocation for the
22248 # .debug_frame section. This was fixed for binutils 2.21.
22249 gcc_cv_as_cfi_sections_directive=no
22250 if test "x$gcc_cv_objdump" != x; then
22251 if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
22252 grep secrel > /dev/null; then
22253 gcc_cv_as_cfi_sections_directive=yes
22254 fi
22255 fi
22256 ;;
22257 *)
22258 gcc_cv_as_cfi_sections_directive=yes
22259 ;;
22260 esac
22261 else
22262 echo "configure: failed program was" >&5
22263 cat conftest.s >&5
22264 fi
22265 rm -f conftest.o conftest.s
22266 fi
22267 fi
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
22269 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
22270
22271
22272
22273 cat >>confdefs.h <<_ACEOF
22274 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
22275 then echo 1; else echo 0; fi`
22276 _ACEOF
22277
22278
22279 # GAS versions up to and including 2.11.0 may mis-optimize
22280 # .eh_frame data.
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
22282 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
22283 if test "${gcc_cv_as_eh_frame+set}" = set; then :
22284 $as_echo_n "(cached) " >&6
22285 else
22286 gcc_cv_as_eh_frame=no
22287 if test $in_tree_gas = yes; then
22288 if test $in_tree_gas_is_elf = yes \
22289 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22290 then gcc_cv_as_eh_frame=yes
22291 fi
22292 elif test x$gcc_cv_as != x; then
22293 $as_echo ' .text
22294 .LFB1:
22295 .4byte 0
22296 .L1:
22297 .4byte 0
22298 .LFE1:
22299 .section .eh_frame,"aw",@progbits
22300 __FRAME_BEGIN__:
22301 .4byte .LECIE1-.LSCIE1
22302 .LSCIE1:
22303 .4byte 0x0
22304 .byte 0x1
22305 .ascii "z\0"
22306 .byte 0x1
22307 .byte 0x78
22308 .byte 0x1a
22309 .byte 0x0
22310 .byte 0x4
22311 .4byte 1
22312 .p2align 1
22313 .LECIE1:
22314 .LSFDE1:
22315 .4byte .LEFDE1-.LASFDE1
22316 .LASFDE1:
22317 .4byte .LASFDE1-__FRAME_BEGIN__
22318 .4byte .LFB1
22319 .4byte .LFE1-.LFB1
22320 .byte 0x4
22321 .4byte .LFE1-.LFB1
22322 .byte 0x4
22323 .4byte .L1-.LFB1
22324 .LEFDE1:' > conftest.s
22325 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22327 (eval $ac_try) 2>&5
22328 ac_status=$?
22329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22330 test $ac_status = 0; }; }
22331 then
22332 cat > conftest.lit <<EOF
22333 0000 10000000 00000000 017a0001 781a0004 .........z..x...
22334 0010 01000000 12000000 18000000 00000000 ................
22335 0020 08000000 04080000 0044 .........D
22336 EOF
22337 cat > conftest.big <<EOF
22338 0000 00000010 00000000 017a0001 781a0004 .........z..x...
22339 0010 00000001 00000012 00000018 00000000 ................
22340 0020 00000008 04000000 0844 .........D
22341 EOF
22342 # If the assembler didn't choke, and we can objdump,
22343 # and we got the correct data, then succeed.
22344 # The text in the here-document typically retains its unix-style line
22345 # endings, while the output of objdump will use host line endings.
22346 # Therefore, use diff -b for the comparisons.
22347 if test x$gcc_cv_objdump != x \
22348 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
22349 | tail -3 > conftest.got \
22350 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
22351 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
22352 then
22353 gcc_cv_as_eh_frame=yes
22354 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
22355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22356 (eval $ac_try) 2>&5
22357 ac_status=$?
22358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22359 test $ac_status = 0; }; }; then
22360 gcc_cv_as_eh_frame=buggy
22361 else
22362 # Uh oh, what do we do now?
22363 gcc_cv_as_eh_frame=no
22364 fi
22365 else
22366 echo "configure: failed program was" >&5
22367 cat conftest.s >&5
22368 fi
22369 rm -f conftest.o conftest.s
22370 fi
22371 fi
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
22373 $as_echo "$gcc_cv_as_eh_frame" >&6; }
22374
22375
22376 if test $gcc_cv_as_eh_frame = buggy; then
22377
22378 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
22379
22380 fi
22381
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22383 $as_echo_n "checking assembler for section merging support... " >&6; }
22384 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22385 $as_echo_n "(cached) " >&6
22386 else
22387 gcc_cv_as_shf_merge=no
22388 if test $in_tree_gas = yes; then
22389 if test $in_tree_gas_is_elf = yes \
22390 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22391 then gcc_cv_as_shf_merge=yes
22392 fi
22393 elif test x$gcc_cv_as != x; then
22394 $as_echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
22395 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22397 (eval $ac_try) 2>&5
22398 ac_status=$?
22399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22400 test $ac_status = 0; }; }
22401 then
22402 gcc_cv_as_shf_merge=yes
22403 else
22404 echo "configure: failed program was" >&5
22405 cat conftest.s >&5
22406 fi
22407 rm -f conftest.o conftest.s
22408 fi
22409 fi
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22411 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22412
22413 if test $gcc_cv_as_shf_merge = no; then
22414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
22415 $as_echo_n "checking assembler for section merging support... " >&6; }
22416 if test "${gcc_cv_as_shf_merge+set}" = set; then :
22417 $as_echo_n "(cached) " >&6
22418 else
22419 gcc_cv_as_shf_merge=no
22420 if test $in_tree_gas = yes; then
22421 if test $in_tree_gas_is_elf = yes \
22422 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22423 then gcc_cv_as_shf_merge=yes
22424 fi
22425 elif test x$gcc_cv_as != x; then
22426 $as_echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
22427 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22429 (eval $ac_try) 2>&5
22430 ac_status=$?
22431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22432 test $ac_status = 0; }; }
22433 then
22434 gcc_cv_as_shf_merge=yes
22435 else
22436 echo "configure: failed program was" >&5
22437 cat conftest.s >&5
22438 fi
22439 rm -f conftest.o conftest.s
22440 fi
22441 fi
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
22443 $as_echo "$gcc_cv_as_shf_merge" >&6; }
22444
22445 fi
22446
22447 cat >>confdefs.h <<_ACEOF
22448 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
22449 _ACEOF
22450
22451
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as)" >&5
22453 $as_echo_n "checking assembler for COMDAT group support (GNU as)... " >&6; }
22454 if test "${gcc_cv_as_comdat_group+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22456 else
22457 gcc_cv_as_comdat_group=no
22458 if test $in_tree_gas = yes; then
22459 if test $in_tree_gas_is_elf = yes \
22460 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22461 then gcc_cv_as_comdat_group=yes
22462 fi
22463 elif test x$gcc_cv_as != x; then
22464 $as_echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
22465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22467 (eval $ac_try) 2>&5
22468 ac_status=$?
22469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22470 test $ac_status = 0; }; }
22471 then
22472 gcc_cv_as_comdat_group=yes
22473 else
22474 echo "configure: failed program was" >&5
22475 cat conftest.s >&5
22476 fi
22477 rm -f conftest.o conftest.s
22478 fi
22479 fi
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
22481 $as_echo "$gcc_cv_as_comdat_group" >&6; }
22482
22483 if test $gcc_cv_as_comdat_group = yes; then
22484 gcc_cv_as_comdat_group_percent=no
22485 gcc_cv_as_comdat_group_group=no
22486 else
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (GNU as, %type)" >&5
22488 $as_echo_n "checking assembler for COMDAT group support (GNU as, %type)... " >&6; }
22489 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
22490 $as_echo_n "(cached) " >&6
22491 else
22492 gcc_cv_as_comdat_group_percent=no
22493 if test $in_tree_gas = yes; then
22494 if test $in_tree_gas_is_elf = yes \
22495 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
22496 then gcc_cv_as_comdat_group_percent=yes
22497 fi
22498 elif test x$gcc_cv_as != x; then
22499 $as_echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
22500 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
22501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22502 (eval $ac_try) 2>&5
22503 ac_status=$?
22504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22505 test $ac_status = 0; }; }
22506 then
22507 gcc_cv_as_comdat_group_percent=yes
22508 else
22509 echo "configure: failed program was" >&5
22510 cat conftest.s >&5
22511 fi
22512 rm -f conftest.o conftest.s
22513 fi
22514 fi
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
22516 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
22517
22518 if test $gcc_cv_as_comdat_group_percent = yes; then
22519 gcc_cv_as_comdat_group_group=no
22520 else
22521 case "${target}" in
22522 # Sun as uses a completely different syntax.
22523 *-*-solaris2*)
22524 case "${target}" in
22525 sparc*-*-solaris2*)
22526 conftest_s='
22527 .group foo,".text%foo",#comdat
22528 .section ".text%foo", #alloc,#execinstr,#progbits
22529 .globl foo
22530 foo:
22531 '
22532 ;;
22533 i?86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
22534 conftest_s='
22535 .group foo,.text%foo,#comdat
22536 .section .text%foo, "ax", @progbits
22537 .globl foo
22538 foo:
22539 '
22540 ;;
22541 esac
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support (Sun as, .group)" >&5
22543 $as_echo_n "checking assembler for COMDAT group support (Sun as, .group)... " >&6; }
22544 if test "${gcc_cv_as_comdat_group_group+set}" = set; then :
22545 $as_echo_n "(cached) " >&6
22546 else
22547 gcc_cv_as_comdat_group_group=no
22548 if test x$gcc_cv_as != x; then
22549 $as_echo "$conftest_s" > conftest.s
22550 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22552 (eval $ac_try) 2>&5
22553 ac_status=$?
22554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22555 test $ac_status = 0; }; }
22556 then
22557 gcc_cv_as_comdat_group_group=yes
22558 else
22559 echo "configure: failed program was" >&5
22560 cat conftest.s >&5
22561 fi
22562 rm -f conftest.o conftest.s
22563 fi
22564 fi
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_group" >&5
22566 $as_echo "$gcc_cv_as_comdat_group_group" >&6; }
22567
22568 ;;
22569 esac
22570 fi
22571 fi
22572 if test x"$ld_is_gold" = xyes; then
22573 comdat_group=yes
22574 elif test $in_tree_ld = yes ; then
22575 comdat_group=no
22576 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
22577 && test $in_tree_ld_is_elf = yes; then
22578 comdat_group=yes
22579 fi
22580 elif echo "$ld_ver" | grep GNU > /dev/null; then
22581 comdat_group=yes
22582 if test 0"$ld_date" -lt 20050308; then
22583 if test -n "$ld_date"; then
22584 # If there was date string, but was earlier than 2005-03-08, fail
22585 comdat_group=no
22586 elif test "$ld_vers_major" -lt 2; then
22587 comdat_group=no
22588 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
22589 comdat_group=no
22590 fi
22591 fi
22592 else
22593 case "${target}" in
22594 *-*-solaris2.1[1-9]*)
22595 comdat_group=no
22596 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
22597 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
22598 # version 1.688.
22599 #
22600 # If using Sun as for COMDAT group as emitted by GCC, one needs at
22601 # least ld version 1.2267.
22602 if test "$ld_vers_major" -gt 1; then
22603 comdat_group=yes
22604 elif test "x$gas_flag" = xyes && test "$ld_vers_minor" -ge 1688; then
22605 comdat_group=yes
22606 elif test "$ld_vers_minor" -ge 2267; then
22607 comdat_group=yes
22608 fi
22609 ;;
22610 *)
22611 # Assume linkers other than GNU ld don't support COMDAT group.
22612 comdat_group=no
22613 ;;
22614 esac
22615 fi
22616 # Allow overriding the automatic COMDAT group tests above.
22617 # Check whether --enable-comdat was given.
22618 if test "${enable_comdat+set}" = set; then :
22619 enableval=$enable_comdat; comdat_group="$enable_comdat"
22620 fi
22621
22622 if test $comdat_group = no; then
22623 gcc_cv_as_comdat_group=no
22624 gcc_cv_as_comdat_group_percent=no
22625 gcc_cv_as_comdat_group_group=no
22626 fi
22627
22628 cat >>confdefs.h <<_ACEOF
22629 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes \
22630 || test $gcc_cv_as_comdat_group_percent = yes \
22631 || test $gcc_cv_as_comdat_group_group = yes; then echo 1; else echo 0; fi`
22632 _ACEOF
22633
22634
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
22636 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
22637 if test "${gcc_cv_as_discriminator+set}" = set; then :
22638 $as_echo_n "(cached) " >&6
22639 else
22640 gcc_cv_as_discriminator=no
22641 if test $in_tree_gas = yes; then
22642 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
22643 then gcc_cv_as_discriminator=yes
22644 fi
22645 elif test x$gcc_cv_as != x; then
22646 $as_echo ' .text
22647 .file 1 "conf.c"
22648 .loc 1 1 0 discriminator 1' > conftest.s
22649 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22651 (eval $ac_try) 2>&5
22652 ac_status=$?
22653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22654 test $ac_status = 0; }; }
22655 then
22656 gcc_cv_as_discriminator=yes
22657 else
22658 echo "configure: failed program was" >&5
22659 cat conftest.s >&5
22660 fi
22661 rm -f conftest.o conftest.s
22662 fi
22663 fi
22664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22665 $as_echo "$gcc_cv_as_discriminator" >&6; }
22666 if test $gcc_cv_as_discriminator = yes; then
22667
22668 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22669
22670 fi
22671
22672 # Thread-local storage - the check is heavily parameterized.
22673 conftest_s=
22674 tls_first_major=
22675 tls_first_minor=
22676 tls_as_opt=
22677 case "$target" in
22678 alpha*-*-*)
22679 conftest_s='
22680 .section ".tdata","awT",@progbits
22681 foo: .long 25
22682 .text
22683 ldq $27,__tls_get_addr($29) !literal!1
22684 lda $16,foo($29) !tlsgd!1
22685 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22686 ldq $27,__tls_get_addr($29) !literal!2
22687 lda $16,foo($29) !tlsldm!2
22688 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22689 ldq $1,foo($29) !gotdtprel
22690 ldah $2,foo($29) !dtprelhi
22691 lda $3,foo($2) !dtprello
22692 lda $4,foo($29) !dtprel
22693 ldq $1,foo($29) !gottprel
22694 ldah $2,foo($29) !tprelhi
22695 lda $3,foo($2) !tprello
22696 lda $4,foo($29) !tprel'
22697 tls_first_major=2
22698 tls_first_minor=13
22699 tls_as_opt=--fatal-warnings
22700 ;;
22701 cris-*-*|crisv32-*-*)
22702 conftest_s='
22703 .section ".tdata","awT",@progbits
22704 x: .long 25
22705 .text
22706 move.d x:IE,$r10
22707 nop'
22708 tls_first_major=2
22709 tls_first_minor=20
22710 tls_as_opt=--fatal-warnings
22711 ;;
22712 frv*-*-*)
22713 conftest_s='
22714 .section ".tdata","awT",@progbits
22715 x: .long 25
22716 .text
22717 call #gettlsoff(x)'
22718 tls_first_major=2
22719 tls_first_minor=14
22720 ;;
22721 hppa*-*-linux*)
22722 conftest_s='
22723 t1: .reg %r20
22724 t2: .reg %r21
22725 gp: .reg %r19
22726 .section ".tdata","awT",@progbits
22727 foo: .long 25
22728 .text
22729 .align 4
22730 addil LT%foo-$tls_gdidx$,gp
22731 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22732 b __tls_get_addr
22733 nop
22734 addil LT%foo-$tls_ldidx$,gp
22735 b __tls_get_addr
22736 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22737 addil LR%foo-$tls_dtpoff$,%ret0
22738 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22739 mfctl %cr27,%t1
22740 addil LT%foo-$tls_ieoff$,gp
22741 ldw RT%foo-$tls_ieoff$(%r1),%t2
22742 add %t1,%t2,%t3
22743 mfctl %cr27,%t1
22744 addil LR%foo-$tls_leoff$,%t1
22745 ldo RR%foo-$tls_leoff$(%r1),%t2'
22746 tls_first_major=2
22747 tls_first_minor=15
22748 tls_as_opt=--fatal-warnings
22749 ;;
22750 arm*-*-*)
22751 conftest_s='
22752 .section ".tdata","awT",%progbits
22753 foo: .long 25
22754 .text
22755 .word foo(gottpoff)
22756 .word foo(tpoff)
22757 .word foo(tlsgd)
22758 .word foo(tlsldm)
22759 .word foo(tlsldo)'
22760 tls_first_major=2
22761 tls_first_minor=17
22762 ;;
22763 i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
22764 case "$target" in
22765 i[34567]86-*-solaris2.*)
22766 on_solaris=yes
22767 tga_func=___tls_get_addr
22768 ;;
22769 x86_64-*-solaris2.1[0-9]*)
22770 on_solaris=yes
22771 tga_func=__tls_get_addr
22772 ;;
22773 *)
22774 on_solaris=no
22775 ;;
22776 esac
22777 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22778 conftest_s='
22779 .section .tdata,"awt",@progbits'
22780 tls_first_major=0
22781 tls_first_minor=0
22782
22783 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22784
22785 else
22786 conftest_s='
22787 .section ".tdata","awT",@progbits'
22788 tls_first_major=2
22789 tls_first_minor=14
22790 tls_as_opt="--fatal-warnings"
22791 fi
22792 conftest_s="$conftest_s
22793 foo: .long 25
22794 .text
22795 movl %gs:0, %eax
22796 leal foo@tlsgd(,%ebx,1), %eax
22797 leal foo@tlsldm(%ebx), %eax
22798 leal foo@dtpoff(%eax), %edx
22799 movl foo@gottpoff(%ebx), %eax
22800 subl foo@gottpoff(%ebx), %eax
22801 addl foo@gotntpoff(%ebx), %eax
22802 movl foo@indntpoff, %eax
22803 movl \$foo@tpoff, %eax
22804 subl \$foo@tpoff, %eax
22805 leal foo@ntpoff(%ecx), %eax"
22806 ;;
22807 x86_64-*-*)
22808 conftest_s='
22809 .section ".tdata","awT",@progbits
22810 foo: .long 25
22811 .text
22812 movq %fs:0, %rax
22813 leaq foo@TLSGD(%rip), %rdi
22814 leaq foo@TLSLD(%rip), %rdi
22815 leaq foo@DTPOFF(%rax), %rdx
22816 movq foo@GOTTPOFF(%rip), %rax
22817 movq $foo@TPOFF, %rax'
22818 tls_first_major=2
22819 tls_first_minor=14
22820 tls_as_opt=--fatal-warnings
22821 ;;
22822 ia64-*-*)
22823 conftest_s='
22824 .section ".tdata","awT",@progbits
22825 foo: data8 25
22826 .text
22827 addl r16 = @ltoff(@dtpmod(foo#)), gp
22828 addl r17 = @ltoff(@dtprel(foo#)), gp
22829 addl r18 = @ltoff(@tprel(foo#)), gp
22830 addl r19 = @dtprel(foo#), gp
22831 adds r21 = @dtprel(foo#), r13
22832 movl r23 = @dtprel(foo#)
22833 addl r20 = @tprel(foo#), gp
22834 adds r22 = @tprel(foo#), r13
22835 movl r24 = @tprel(foo#)'
22836 tls_first_major=2
22837 tls_first_minor=13
22838 tls_as_opt=--fatal-warnings
22839 ;;
22840 mips*-*-*)
22841 conftest_s='
22842 .section .tdata,"awT",@progbits
22843 x:
22844 .word 2
22845 .text
22846 addiu $4, $28, %tlsgd(x)
22847 addiu $4, $28, %tlsldm(x)
22848 lui $4, %dtprel_hi(x)
22849 addiu $4, $4, %dtprel_lo(x)
22850 lw $4, %gottprel(x)($28)
22851 lui $4, %tprel_hi(x)
22852 addiu $4, $4, %tprel_lo(x)'
22853 tls_first_major=2
22854 tls_first_minor=16
22855 tls_as_opt='-32 --fatal-warnings'
22856 ;;
22857 m68k-*-*)
22858 conftest_s='
22859 .section .tdata,"awT",@progbits
22860 x:
22861 .word 2
22862 .text
22863 foo:
22864 move.l x@TLSGD(%a5),%a0
22865 move.l x@TLSLDM(%a5),%a0
22866 move.l x@TLSLDO(%a5),%a0
22867 move.l x@TLSIE(%a5),%a0
22868 move.l x@TLSLE(%a5),%a0'
22869 tls_first_major=2
22870 tls_first_minor=19
22871 tls_as_opt='--fatal-warnings'
22872 ;;
22873 powerpc-*-*)
22874 conftest_s='
22875 .section ".tdata","awT",@progbits
22876 .align 2
22877 ld0: .space 4
22878 ld1: .space 4
22879 x1: .space 4
22880 x2: .space 4
22881 x3: .space 4
22882 .text
22883 addi 3,31,ld0@got@tlsgd
22884 bl __tls_get_addr
22885 addi 3,31,x1@got@tlsld
22886 bl __tls_get_addr
22887 addi 9,3,x1@dtprel
22888 addis 9,3,x2@dtprel@ha
22889 addi 9,9,x2@dtprel@l
22890 lwz 9,x3@got@tprel(31)
22891 add 9,9,x@tls
22892 addi 9,2,x1@tprel
22893 addis 9,2,x2@tprel@ha
22894 addi 9,9,x2@tprel@l'
22895 tls_first_major=2
22896 tls_first_minor=14
22897 tls_as_opt="-a32 --fatal-warnings"
22898 ;;
22899 powerpc64-*-*)
22900 conftest_s='
22901 .section ".tdata","awT",@progbits
22902 .align 3
22903 ld0: .space 8
22904 ld1: .space 8
22905 x1: .space 8
22906 x2: .space 8
22907 x3: .space 8
22908 .text
22909 addi 3,2,ld0@got@tlsgd
22910 bl .__tls_get_addr
22911 nop
22912 addi 3,2,ld1@toc
22913 bl .__tls_get_addr
22914 nop
22915 addi 3,2,x1@got@tlsld
22916 bl .__tls_get_addr
22917 nop
22918 addi 9,3,x1@dtprel
22919 bl .__tls_get_addr
22920 nop
22921 addis 9,3,x2@dtprel@ha
22922 addi 9,9,x2@dtprel@l
22923 bl .__tls_get_addr
22924 nop
22925 ld 9,x3@got@dtprel(2)
22926 add 9,9,3
22927 bl .__tls_get_addr
22928 nop'
22929 tls_first_major=2
22930 tls_first_minor=14
22931 tls_as_opt="-a64 --fatal-warnings"
22932 ;;
22933 s390-*-*)
22934 conftest_s='
22935 .section ".tdata","awT",@progbits
22936 foo: .long 25
22937 .text
22938 .long foo@TLSGD
22939 .long foo@TLSLDM
22940 .long foo@DTPOFF
22941 .long foo@NTPOFF
22942 .long foo@GOTNTPOFF
22943 .long foo@INDNTPOFF
22944 l %r1,foo@GOTNTPOFF(%r12)
22945 l %r1,0(%r1):tls_load:foo
22946 bas %r14,0(%r1,%r13):tls_gdcall:foo
22947 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22948 tls_first_major=2
22949 tls_first_minor=14
22950 tls_as_opt="-m31 --fatal-warnings"
22951 ;;
22952 s390x-*-*)
22953 conftest_s='
22954 .section ".tdata","awT",@progbits
22955 foo: .long 25
22956 .text
22957 .quad foo@TLSGD
22958 .quad foo@TLSLDM
22959 .quad foo@DTPOFF
22960 .quad foo@NTPOFF
22961 .quad foo@GOTNTPOFF
22962 lg %r1,foo@GOTNTPOFF(%r12)
22963 larl %r1,foo@INDNTPOFF
22964 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22965 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22966 tls_first_major=2
22967 tls_first_minor=14
22968 tls_as_opt="-m64 -Aesame --fatal-warnings"
22969 ;;
22970 sh-*-* | sh[34]-*-*)
22971 conftest_s='
22972 .section ".tdata","awT",@progbits
22973 foo: .long 25
22974 .text
22975 .long foo@TLSGD
22976 .long foo@TLSLDM
22977 .long foo@DTPOFF
22978 .long foo@GOTTPOFF
22979 .long foo@TPOFF'
22980 tls_first_major=2
22981 tls_first_minor=13
22982 tls_as_opt=--fatal-warnings
22983 ;;
22984 sparc*-*-*)
22985 case "$target" in
22986 sparc*-sun-solaris2.*)
22987 on_solaris=yes
22988 tga_func=__tls_get_addr
22989 ;;
22990 *)
22991 on_solaris=no
22992 ;;
22993 esac
22994 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22995 conftest_s='
22996 .section ".tdata",#alloc,#write,#tls'
22997 tls_first_major=0
22998 tls_first_minor=0
22999 else
23000 conftest_s='
23001 .section ".tdata","awT",@progbits'
23002 tls_first_major=2
23003 tls_first_minor=14
23004 tls_as_opt="-32 --fatal-warnings"
23005 fi
23006 conftest_s="$conftest_s
23007 foo: .long 25
23008 .text
23009 sethi %tgd_hi22(foo), %o0
23010 add %o0, %tgd_lo10(foo), %o1
23011 add %l7, %o1, %o0, %tgd_add(foo)
23012 call __tls_get_addr, %tgd_call(foo)
23013 sethi %tldm_hi22(foo), %l1
23014 add %l1, %tldm_lo10(foo), %l2
23015 add %l7, %l2, %o0, %tldm_add(foo)
23016 call __tls_get_addr, %tldm_call(foo)
23017 sethi %tldo_hix22(foo), %l3
23018 xor %l3, %tldo_lox10(foo), %l4
23019 add %o0, %l4, %l5, %tldo_add(foo)
23020 sethi %tie_hi22(foo), %o3
23021 add %o3, %tie_lo10(foo), %o3
23022 ld [%l7 + %o3], %o2, %tie_ld(foo)
23023 add %g7, %o2, %o4, %tie_add(foo)
23024 sethi %tle_hix22(foo), %l1
23025 xor %l1, %tle_lox10(foo), %o5
23026 ld [%g7 + %o5], %o1"
23027 ;;
23028 xtensa*-*-*)
23029 conftest_s='
23030 .section ".tdata","awT",@progbits
23031 foo: .long 25
23032 .text
23033 movi a8, foo@TLSFUNC
23034 movi a10, foo@TLSARG
23035 callx8.tls a8, foo@TLSCALL'
23036 tls_first_major=2
23037 tls_first_minor=19
23038 ;;
23039 esac
23040 set_have_as_tls=no
23041 if test "x$enable_tls" = xno ; then
23042 : # TLS explicitly disabled.
23043 elif test "x$enable_tls" = xyes ; then
23044 set_have_as_tls=yes # TLS explicitly enabled.
23045 elif test -z "$tls_first_major"; then
23046 : # If we don't have a check, assume no support.
23047 else
23048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
23049 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
23050 if test "${gcc_cv_as_tls+set}" = set; then :
23051 $as_echo_n "(cached) " >&6
23052 else
23053 gcc_cv_as_tls=no
23054 if test $in_tree_gas = yes; then
23055 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
23056 then gcc_cv_as_tls=yes
23057 fi
23058 elif test x$gcc_cv_as != x; then
23059 $as_echo "$conftest_s" > conftest.s
23060 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
23061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23062 (eval $ac_try) 2>&5
23063 ac_status=$?
23064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23065 test $ac_status = 0; }; }
23066 then
23067 gcc_cv_as_tls=yes
23068 else
23069 echo "configure: failed program was" >&5
23070 cat conftest.s >&5
23071 fi
23072 rm -f conftest.o conftest.s
23073 fi
23074 fi
23075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
23076 $as_echo "$gcc_cv_as_tls" >&6; }
23077 if test $gcc_cv_as_tls = yes; then
23078 set_have_as_tls=yes
23079 fi
23080 fi
23081 case "$target" in
23082 *-*-irix6*)
23083 # IRIX 6.5 rld and libc.so lack TLS support, so even if gas and gld
23084 # with TLS support are in use, native TLS cannot work.
23085 set_have_as_tls=no
23086 ;;
23087 *-*-osf*)
23088 # Tru64 UNIX loader and libc.so lack TLS support, so even if gas and
23089 # gld with TLS support are in use, native TLS cannot work.
23090 set_have_as_tls=no
23091 ;;
23092 # TLS was introduced in the Solaris 9 FCS release and backported to
23093 # Solaris 8 patches. Support for GNU-style TLS on x86 was only
23094 # introduced in Solaris 9 4/04, replacing the earlier Sun style that Sun
23095 # ld and GCC don't support any longer.
23096 *-*-solaris2.*)
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker and ld.so.1 TLS support" >&5
23098 $as_echo_n "checking linker and ld.so.1 TLS support... " >&6; }
23099 ld_tls_support=no
23100 # Check ld and ld.so.1 TLS support.
23101 if echo "$ld_ver" | grep GNU > /dev/null; then
23102 # Assume all interesting versions of GNU ld have TLS support.
23103 # FIXME: still need ld.so.1 support, i.e. ld version checks below.
23104 ld_tls_support=yes
23105 else
23106 case "$target" in
23107 # Solaris 8/x86 ld has GNU style TLS support since version 1.280.
23108 i?86-*-solaris2.8)
23109 min_tls_ld_vers_minor=280
23110 ;;
23111 # Solaris 8/SPARC ld has TLS support since version 1.272.
23112 sparc*-*-solaris2.8)
23113 min_tls_ld_vers_minor=272
23114 ;;
23115 # Solaris 9/x86 ld has GNU style TLS support since version 1.374.
23116 i?86-*-solaris2.9)
23117 min_tls_ld_vers_minor=374
23118 ;;
23119 # Solaris 9/SPARC and Solaris 10+ ld have TLS support since FCS.
23120 sparc*-*-solaris2.9 | *-*-solaris2.1[0-9]*)
23121 min_tls_ld_vers_minor=343
23122 ;;
23123 esac
23124 if test "$ld_vers_major" -gt 1 || \
23125 test "$ld_vers_minor" -ge "$min_tls_ld_vers_minor"; then
23126 ld_tls_support=yes
23127 else
23128 set_have_as_tls=no
23129 fi
23130 fi
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_tls_support" >&5
23132 $as_echo "$ld_tls_support" >&6; }
23133
23134 save_LIBS="$LIBS"
23135 save_LDFLAGS="$LDFLAGS"
23136 LIBS=
23137 LDFLAGS=
23138
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alternate thread library" >&5
23140 $as_echo_n "checking alternate thread library... " >&6; }
23141 case "$target" in
23142 # TLS support was backported to Solaris 8 patches, but only lives in
23143 # the alternate thread library which became the default in Solaris 9.
23144 # We want to always use that, irrespective of TLS support.
23145 *-*-solaris2.8)
23146 # Take multilib subdir into account. There's no spec to handle
23147 # this. The 64 symlink exists since Solaris 8.
23148 lwp_dir=/usr/lib/lwp
23149 lwp_spec="-L$lwp_dir%{m64:/64} -R$lwp_dir%{m64:/64}"
23150 LDFLAGS="-L$lwp_dir -R$lwp_dir"
23151 ;;
23152 *-*-solaris2*)
23153 lwp_dir="none"
23154 lwp_spec=""
23155 ;;
23156 esac
23157 # Always define LIB_THREAD_LDFLAGS_SPEC, even without TLS support.
23158
23159 cat >>confdefs.h <<_ACEOF
23160 #define LIB_THREAD_LDFLAGS_SPEC "$lwp_spec"
23161 _ACEOF
23162
23163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lwp_dir" >&5
23164 $as_echo "$lwp_dir" >&6; }
23165
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking library containing $tga_func" >&5
23167 $as_echo_n "checking library containing $tga_func... " >&6; }
23168 # Before Solaris 10, __tls_get_addr (SPARC/x64) resp. ___tls_get_addr
23169 # (32-bit x86) only lived in libthread, so check for that. Keep
23170 # set_have_as_tls if found, disable if not.
23171 as_ac_Search=`$as_echo "ac_cv_search_$tga_func" | $as_tr_sh`
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing $tga_func" >&5
23173 $as_echo_n "checking for library containing $tga_func... " >&6; }
23174 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23175 $as_echo_n "(cached) " >&6
23176 else
23177 ac_func_search_save_LIBS=$LIBS
23178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179 /* end confdefs.h. */
23180
23181 /* Override any GCC internal prototype to avoid an error.
23182 Use char because int might match the return type of a GCC
23183 builtin and then its argument prototype would still apply. */
23184 #ifdef __cplusplus
23185 extern "C"
23186 #endif
23187 char $tga_func ();
23188 int
23189 main ()
23190 {
23191 return $tga_func ();
23192 ;
23193 return 0;
23194 }
23195 _ACEOF
23196 for ac_lib in '' thread; do
23197 if test -z "$ac_lib"; then
23198 ac_res="none required"
23199 else
23200 ac_res=-l$ac_lib
23201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23202 fi
23203 if ac_fn_c_try_link "$LINENO"; then :
23204 eval "$as_ac_Search=\$ac_res"
23205 fi
23206 rm -f core conftest.err conftest.$ac_objext \
23207 conftest$ac_exeext
23208 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23209 break
23210 fi
23211 done
23212 if { as_var=$as_ac_Search; eval "test \"\${$as_var+set}\" = set"; }; then :
23213
23214 else
23215 eval "$as_ac_Search=no"
23216 fi
23217 rm conftest.$ac_ext
23218 LIBS=$ac_func_search_save_LIBS
23219 fi
23220 eval ac_res=\$$as_ac_Search
23221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23222 $as_echo "$ac_res" >&6; }
23223 eval ac_res=\$$as_ac_Search
23224 if test "$ac_res" != no; then :
23225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23226
23227 else
23228 set_have_as_tls=no
23229 fi
23230
23231 # Clear LIBS if we cannot support TLS.
23232 if test $set_have_as_tls = no; then
23233 LIBS=
23234 fi
23235 # Always define LIB_TLS_SPEC, even without TLS support.
23236
23237 cat >>confdefs.h <<_ACEOF
23238 #define LIB_TLS_SPEC "$LIBS"
23239 _ACEOF
23240
23241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBS" >&5
23242 $as_echo "$LIBS" >&6; }
23243
23244 LIBS="$save_LIBS"
23245 LDFLAGS="$save_LDFLAGS"
23246 ;;
23247 esac
23248 if test $set_have_as_tls = yes ; then
23249
23250 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
23251
23252 fi
23253
23254 # Target-specific assembler checks.
23255
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
23257 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
23258 gcc_cv_ld_static_dynamic=no
23259 gcc_cv_ld_static_option='-Bstatic'
23260 gcc_cv_ld_dynamic_option='-Bdynamic'
23261 if test $in_tree_ld = yes ; then
23262 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2; then
23263 gcc_cv_ld_static_dynamic=yes
23264 fi
23265 elif test x$gcc_cv_ld != x; then
23266 # Check if linker supports -Bstatic/-Bdynamic option
23267 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
23268 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
23269 gcc_cv_ld_static_dynamic=yes
23270 else
23271 case "$target" in
23272 # Tru64 UNIX support -noso/-so_archive instead of -Bstatic/-Bdynamic.
23273 alpha*-dec-osf*)
23274 gcc_cv_ld_static_dynamic=yes
23275 gcc_cv_ld_static_option="-noso"
23276 gcc_cv_ld_dynamic_option="-so_archive"
23277 ;;
23278 # IRIX 6 ld supports -Bstatic/-Bdynamic.
23279 mips-sgi-irix6*)
23280 gcc_cv_ld_static_dynamic=yes
23281 ;;
23282 # Solaris 2 ld always supports -Bstatic/-Bdynamic.
23283 *-*-solaris2*)
23284 gcc_cv_ld_static_dynamic=yes
23285 ;;
23286 esac
23287 fi
23288 fi
23289 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
23290
23291 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
23292
23293
23294 cat >>confdefs.h <<_ACEOF
23295 #define LD_STATIC_OPTION "$gcc_cv_ld_static_option"
23296 _ACEOF
23297
23298
23299 cat >>confdefs.h <<_ACEOF
23300 #define LD_DYNAMIC_OPTION "$gcc_cv_ld_dynamic_option"
23301 _ACEOF
23302
23303 fi
23304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
23305 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
23306
23307 if test x"$demangler_in_ld" = xyes; then
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
23309 $as_echo_n "checking linker --demangle support... " >&6; }
23310 gcc_cv_ld_demangle=no
23311 if test $in_tree_ld = yes; then
23312 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 14 -o "$gcc_cv_gld_major_version" -gt 2; then \
23313 gcc_cv_ld_demangle=yes
23314 fi
23315 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
23316 # Check if the GNU linker supports --demangle option
23317 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
23318 gcc_cv_ld_demangle=yes
23319 fi
23320 fi
23321 if test x"$gcc_cv_ld_demangle" = xyes; then
23322
23323 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
23324
23325 fi
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
23327 $as_echo "$gcc_cv_ld_demangle" >&6; }
23328 fi
23329
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker plugin support" >&5
23331 $as_echo_n "checking linker plugin support... " >&6; }
23332 gcc_cv_lto_plugin=0
23333 if test -f liblto_plugin.la; then
23334 save_ld_ver="$ld_ver"
23335 save_ld_vers_major="$ld_vers_major"
23336 save_ld_vers_minor="$ld_vers_minor"
23337 save_ld_is_gold="$ld_is_gold"
23338
23339 ld_is_gold=no
23340
23341 if test $in_tree_ld = yes -a x"$ORIGINAL_PLUGIN_LD_FOR_TARGET" = x"$gcc_cv_ld"; then
23342 ld_ver="GNU ld"
23343 # FIXME: ld_is_gold?
23344 ld_vers_major="$gcc_cv_gld_major_version"
23345 ld_vers_minor="$gcc_cv_gld_minor_version"
23346 else
23347 # Determine plugin linker version.
23348 # FIXME: Partial duplicate from above, generalize.
23349 ld_ver=`$ORIGINAL_PLUGIN_LD_FOR_TARGET --version 2>/dev/null | sed 1q`
23350 if echo "$ld_ver" | grep GNU > /dev/null; then
23351 if echo "$ld_ver" | grep "GNU gold" > /dev/null; then
23352 ld_is_gold=yes
23353 ld_vers=`echo $ld_ver | sed -n \
23354 -e 's,^[^)]*[ ]\([0-9][0-9]*\.[0-9][0-9]*[^)]*\)) .*$,\1,p'`
23355 else
23356 ld_vers=`echo $ld_ver | sed -n \
23357 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
23358 fi
23359 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
23360 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
23361 fi
23362 fi
23363
23364 # Determine plugin support.
23365 if echo "$ld_ver" | grep GNU > /dev/null; then
23366 # Require GNU ld or gold 2.21+ for plugin support by default.
23367 if test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -ge 21; then
23368 gcc_cv_lto_plugin=2
23369 # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
23370 elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
23371 gcc_cv_lto_plugin=1
23372 fi
23373 fi
23374
23375 ld_ver="$save_ld_ver"
23376 ld_vers_major="$save_ld_vers_major"
23377 ld_vers_minor="$save_ld_vers_minor"
23378 ld_is_gold="$save_ld_is_gold"
23379 fi
23380
23381 cat >>confdefs.h <<_ACEOF
23382 #define HAVE_LTO_PLUGIN $gcc_cv_lto_plugin
23383 _ACEOF
23384
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_lto_plugin" >&5
23386 $as_echo "$gcc_cv_lto_plugin" >&6; }
23387
23388 case "$target" in
23389 # All TARGET_ABI_OSF targets.
23390 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23392 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23393 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
23394 $as_echo_n "(cached) " >&6
23395 else
23396 gcc_cv_as_alpha_explicit_relocs=no
23397 if test $in_tree_gas = yes; then
23398 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
23399 then gcc_cv_as_alpha_explicit_relocs=yes
23400 fi
23401 elif test x$gcc_cv_as != x; then
23402 $as_echo ' .set nomacro
23403 .text
23404 extbl $3, $2, $3 !lituse_bytoff!1
23405 ldq $2, a($29) !literal!1
23406 ldq $4, b($29) !literal!2
23407 ldq_u $3, 0($2) !lituse_base!1
23408 ldq $27, f($29) !literal!5
23409 jsr $26, ($27), f !lituse_jsr!5
23410 ldah $29, 0($26) !gpdisp!3
23411 lda $0, c($29) !gprel
23412 ldah $1, d($29) !gprelhigh
23413 lda $1, d($1) !gprellow
23414 lda $29, 0($29) !gpdisp!3' > conftest.s
23415 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23417 (eval $ac_try) 2>&5
23418 ac_status=$?
23419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23420 test $ac_status = 0; }; }
23421 then
23422 gcc_cv_as_alpha_explicit_relocs=yes
23423 else
23424 echo "configure: failed program was" >&5
23425 cat conftest.s >&5
23426 fi
23427 rm -f conftest.o conftest.s
23428 fi
23429 fi
23430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
23431 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
23432 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
23433
23434 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
23435
23436 fi
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
23438 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
23439 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
23440 $as_echo_n "(cached) " >&6
23441 else
23442 gcc_cv_as_alpha_jsrdirect_relocs=no
23443 if test $in_tree_gas = yes; then
23444 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
23445 then gcc_cv_as_alpha_jsrdirect_relocs=yes
23446 fi
23447 elif test x$gcc_cv_as != x; then
23448 $as_echo ' .set nomacro
23449 .text
23450 ldq $27, a($29) !literal!1
23451 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
23452 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23454 (eval $ac_try) 2>&5
23455 ac_status=$?
23456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23457 test $ac_status = 0; }; }
23458 then
23459 gcc_cv_as_alpha_jsrdirect_relocs=yes
23460 else
23461 echo "configure: failed program was" >&5
23462 cat conftest.s >&5
23463 fi
23464 rm -f conftest.o conftest.s
23465 fi
23466 fi
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
23468 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
23469 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
23470
23471 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
23472
23473 fi
23474 ;;
23475
23476 cris-*-*)
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
23478 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
23479 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
23480 $as_echo_n "(cached) " >&6
23481 else
23482 gcc_cv_as_cris_no_mul_bug=no
23483 if test $in_tree_gas = yes; then
23484 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23485 then gcc_cv_as_cris_no_mul_bug=yes
23486 fi
23487 elif test x$gcc_cv_as != x; then
23488 $as_echo '.text' > conftest.s
23489 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
23490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23491 (eval $ac_try) 2>&5
23492 ac_status=$?
23493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23494 test $ac_status = 0; }; }
23495 then
23496 gcc_cv_as_cris_no_mul_bug=yes
23497 else
23498 echo "configure: failed program was" >&5
23499 cat conftest.s >&5
23500 fi
23501 rm -f conftest.o conftest.s
23502 fi
23503 fi
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
23505 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
23506 if test $gcc_cv_as_cris_no_mul_bug = yes; then
23507
23508 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
23509
23510 fi
23511 ;;
23512
23513 sparc*-*-*)
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
23515 $as_echo_n "checking assembler for .register... " >&6; }
23516 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
23517 $as_echo_n "(cached) " >&6
23518 else
23519 gcc_cv_as_sparc_register_op=no
23520 if test x$gcc_cv_as != x; then
23521 $as_echo '.register %g2, #scratch' > conftest.s
23522 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23527 test $ac_status = 0; }; }
23528 then
23529 gcc_cv_as_sparc_register_op=yes
23530 else
23531 echo "configure: failed program was" >&5
23532 cat conftest.s >&5
23533 fi
23534 rm -f conftest.o conftest.s
23535 fi
23536 fi
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
23538 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
23539 if test $gcc_cv_as_sparc_register_op = yes; then
23540
23541 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
23542
23543 fi
23544
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
23546 $as_echo_n "checking assembler for -relax option... " >&6; }
23547 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
23548 $as_echo_n "(cached) " >&6
23549 else
23550 gcc_cv_as_sparc_relax=no
23551 if test x$gcc_cv_as != x; then
23552 $as_echo '.text' > conftest.s
23553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
23554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23555 (eval $ac_try) 2>&5
23556 ac_status=$?
23557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23558 test $ac_status = 0; }; }
23559 then
23560 gcc_cv_as_sparc_relax=yes
23561 else
23562 echo "configure: failed program was" >&5
23563 cat conftest.s >&5
23564 fi
23565 rm -f conftest.o conftest.s
23566 fi
23567 fi
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
23569 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
23570 if test $gcc_cv_as_sparc_relax = yes; then
23571
23572 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
23573
23574 fi
23575
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
23577 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
23578 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
23579 $as_echo_n "(cached) " >&6
23580 else
23581 gcc_cv_as_sparc_gotdata_op=no
23582 if test x$gcc_cv_as != x; then
23583 $as_echo '.text
23584 .align 4
23585 foo:
23586 nop
23587 bar:
23588 sethi %gdop_hix22(foo), %g1
23589 xor %g1, %gdop_lox10(foo), %g1
23590 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
23591 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23593 (eval $ac_try) 2>&5
23594 ac_status=$?
23595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23596 test $ac_status = 0; }; }
23597 then
23598 if test x$gcc_cv_ld != x \
23599 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23600 if test x$gcc_cv_objdump != x; then
23601 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
23602 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
23603 gcc_cv_as_sparc_gotdata_op=no
23604 else
23605 gcc_cv_as_sparc_gotdata_op=yes
23606 fi
23607 fi
23608 fi
23609 rm -f conftest
23610 else
23611 echo "configure: failed program was" >&5
23612 cat conftest.s >&5
23613 fi
23614 rm -f conftest.o conftest.s
23615 fi
23616 fi
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
23618 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
23619 if test $gcc_cv_as_sparc_gotdata_op = yes; then
23620
23621 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
23622
23623 fi
23624
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
23626 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
23627 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
23628 $as_echo_n "(cached) " >&6
23629 else
23630 gcc_cv_as_sparc_ua_pcrel=no
23631 if test x$gcc_cv_as != x; then
23632 $as_echo '.text
23633 foo:
23634 nop
23635 .data
23636 .align 4
23637 .byte 0
23638 .uaword %r_disp32(foo)' > conftest.s
23639 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23644 test $ac_status = 0; }; }
23645 then
23646 if test x$gcc_cv_ld != x \
23647 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
23648 gcc_cv_as_sparc_ua_pcrel=yes
23649 fi
23650 rm -f conftest
23651 else
23652 echo "configure: failed program was" >&5
23653 cat conftest.s >&5
23654 fi
23655 rm -f conftest.o conftest.s
23656 fi
23657 fi
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
23659 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
23660 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
23661
23662 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
23663
23664
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
23666 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
23667 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
23668 $as_echo_n "(cached) " >&6
23669 else
23670 gcc_cv_as_sparc_ua_pcrel_hidden=no
23671 if test x$gcc_cv_as != x; then
23672 $as_echo '.data
23673 .align 4
23674 .byte 0x31
23675 .uaword %r_disp32(foo)
23676 .byte 0x32, 0x33, 0x34
23677 .global foo
23678 .hidden foo
23679 foo:
23680 .skip 4' > conftest.s
23681 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
23682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23683 (eval $ac_try) 2>&5
23684 ac_status=$?
23685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23686 test $ac_status = 0; }; }
23687 then
23688 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
23689 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
23690 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
23691 | grep ' 31000000 07323334' > /dev/null 2>&1; then
23692 if $gcc_cv_objdump -R conftest 2> /dev/null \
23693 | grep 'DISP32' > /dev/null 2>&1; then
23694 :
23695 else
23696 gcc_cv_as_sparc_ua_pcrel_hidden=yes
23697 fi
23698 fi
23699 rm -f conftest
23700 else
23701 echo "configure: failed program was" >&5
23702 cat conftest.s >&5
23703 fi
23704 rm -f conftest.o conftest.s
23705 fi
23706 fi
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
23708 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
23709 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
23710
23711 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
23712
23713 fi
23714
23715 fi # unaligned pcrel relocs
23716
23717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
23718 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
23719 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
23720 $as_echo_n "(cached) " >&6
23721 else
23722 gcc_cv_as_sparc_offsetable_lo10=no
23723 if test x$gcc_cv_as != x; then
23724 $as_echo '.text
23725 or %g1, %lo(ab) + 12, %g1
23726 or %g1, %lo(ab + 12), %g1' > conftest.s
23727 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
23728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23729 (eval $ac_try) 2>&5
23730 ac_status=$?
23731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23732 test $ac_status = 0; }; }
23733 then
23734 if test x$gcc_cv_objdump != x \
23735 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
23736 | grep ' 82106000 82106000' > /dev/null 2>&1; then
23737 gcc_cv_as_sparc_offsetable_lo10=yes
23738 fi
23739 else
23740 echo "configure: failed program was" >&5
23741 cat conftest.s >&5
23742 fi
23743 rm -f conftest.o conftest.s
23744 fi
23745 fi
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
23747 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
23748 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
23749
23750 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
23751
23752 fi
23753 ;;
23754
23755 i[34567]86-*-* | x86_64-*-*)
23756 case $target_os in
23757 cygwin*)
23758 # Full C++ conformance when using a shared libstdc++-v3 requires some
23759 # support from the Cygwin DLL, which in more recent versions exports
23760 # wrappers to aid in interposing and redirecting operators new, delete,
23761 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
23762 # are configuring for a version of Cygwin that exports the wrappers.
23763 if test x$host = x$target; then
23764 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
23765 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
23766 gcc_ac_cygwin_dll_wrappers=yes
23767 else
23768 gcc_ac_cygwin_dll_wrappers=no
23769 fi
23770
23771 else
23772 # Can't check presence of libc functions during cross-compile, so
23773 # we just have to assume we're building for an up-to-date target.
23774 gcc_ac_cygwin_dll_wrappers=yes
23775 fi
23776
23777 cat >>confdefs.h <<_ACEOF
23778 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
23779 _ACEOF
23780
23781 esac
23782 case $target_os in
23783 cygwin* | pe | mingw32*)
23784 # Recent binutils allows the three-operand form of ".comm" on PE. This
23785 # definition is used unconditionally to initialise the default state of
23786 # the target option variable that governs usage of the feature.
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
23788 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
23789 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
23790 $as_echo_n "(cached) " >&6
23791 else
23792 gcc_cv_as_comm_has_align=no
23793 if test $in_tree_gas = yes; then
23794 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23795 then gcc_cv_as_comm_has_align=yes
23796 fi
23797 elif test x$gcc_cv_as != x; then
23798 $as_echo '.comm foo,1,32' > conftest.s
23799 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23801 (eval $ac_try) 2>&5
23802 ac_status=$?
23803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23804 test $ac_status = 0; }; }
23805 then
23806 gcc_cv_as_comm_has_align=yes
23807 else
23808 echo "configure: failed program was" >&5
23809 cat conftest.s >&5
23810 fi
23811 rm -f conftest.o conftest.s
23812 fi
23813 fi
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
23815 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
23816
23817
23818 cat >>confdefs.h <<_ACEOF
23819 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
23820 _ACEOF
23821
23822 # Used for DWARF 2 in PE
23823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
23824 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
23825 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
23826 $as_echo_n "(cached) " >&6
23827 else
23828 gcc_cv_as_ix86_pe_secrel32=no
23829 if test $in_tree_gas = yes; then
23830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
23831 then gcc_cv_as_ix86_pe_secrel32=yes
23832 fi
23833 elif test x$gcc_cv_as != x; then
23834 $as_echo '.text
23835 foo: nop
23836 .data
23837 .secrel32 foo' > conftest.s
23838 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23841 ac_status=$?
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }
23844 then
23845 if test x$gcc_cv_ld != x \
23846 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
23847 gcc_cv_as_ix86_pe_secrel32=yes
23848 fi
23849 rm -f conftest
23850 else
23851 echo "configure: failed program was" >&5
23852 cat conftest.s >&5
23853 fi
23854 rm -f conftest.o conftest.s
23855 fi
23856 fi
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
23858 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
23859 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
23860
23861 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
23862
23863 fi
23864 # Test if the assembler supports the extended form of the .section
23865 # directive that specifies section alignment. LTO support uses this,
23866 # but normally only after installation, so we warn but don't fail the
23867 # configure if LTO is enabled but the assembler does not support it.
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
23869 $as_echo_n "checking assembler for .section with alignment... " >&6; }
23870 if test "${gcc_cv_as_section_has_align+set}" = set; then :
23871 $as_echo_n "(cached) " >&6
23872 else
23873 gcc_cv_as_section_has_align=no
23874 if test $in_tree_gas = yes; then
23875 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23876 then gcc_cv_as_section_has_align=yes
23877 fi
23878 elif test x$gcc_cv_as != x; then
23879 $as_echo '.section lto_test,"dr0"' > conftest.s
23880 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23885 test $ac_status = 0; }; }
23886 then
23887 gcc_cv_as_section_has_align=yes
23888 else
23889 echo "configure: failed program was" >&5
23890 cat conftest.s >&5
23891 fi
23892 rm -f conftest.o conftest.s
23893 fi
23894 fi
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23896 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23897
23898 if test x$gcc_cv_as_section_has_align != xyes; then
23899 case ",$enable_languages," in
23900 *,lto,*)
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&5
23902 $as_echo "$as_me: WARNING: LTO for $target requires binutils >= 2.20.1, but version found appears insufficient; LTO will not work until binutils is upgraded." >&2;}
23903 ;;
23904 esac
23905 fi
23906 ;;
23907 esac
23908
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23910 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23911 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23912 $as_echo_n "(cached) " >&6
23913 else
23914 gcc_cv_as_ix86_filds=no
23915 if test x$gcc_cv_as != x; then
23916 $as_echo 'filds mem; fists mem' > conftest.s
23917 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23919 (eval $ac_try) 2>&5
23920 ac_status=$?
23921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23922 test $ac_status = 0; }; }
23923 then
23924 gcc_cv_as_ix86_filds=yes
23925 else
23926 echo "configure: failed program was" >&5
23927 cat conftest.s >&5
23928 fi
23929 rm -f conftest.o conftest.s
23930 fi
23931 fi
23932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23933 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23934 if test $gcc_cv_as_ix86_filds = yes; then
23935
23936 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23937
23938 fi
23939
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23941 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23942 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23943 $as_echo_n "(cached) " >&6
23944 else
23945 gcc_cv_as_ix86_fildq=no
23946 if test x$gcc_cv_as != x; then
23947 $as_echo 'fildq mem; fistpq mem' > conftest.s
23948 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23950 (eval $ac_try) 2>&5
23951 ac_status=$?
23952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23953 test $ac_status = 0; }; }
23954 then
23955 gcc_cv_as_ix86_fildq=yes
23956 else
23957 echo "configure: failed program was" >&5
23958 cat conftest.s >&5
23959 fi
23960 rm -f conftest.o conftest.s
23961 fi
23962 fi
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23964 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23965 if test $gcc_cv_as_ix86_fildq = yes; then
23966
23967 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23968
23969 fi
23970
23971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23972 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23973 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23974 $as_echo_n "(cached) " >&6
23975 else
23976 gcc_cv_as_ix86_cmov_sun_syntax=no
23977 if test x$gcc_cv_as != x; then
23978 $as_echo 'cmovl.l %edx, %eax' > conftest.s
23979 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23981 (eval $ac_try) 2>&5
23982 ac_status=$?
23983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23984 test $ac_status = 0; }; }
23985 then
23986 gcc_cv_as_ix86_cmov_sun_syntax=yes
23987 else
23988 echo "configure: failed program was" >&5
23989 cat conftest.s >&5
23990 fi
23991 rm -f conftest.o conftest.s
23992 fi
23993 fi
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23995 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23996 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23997
23998 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23999
24000 fi
24001
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
24003 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
24004 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
24005 $as_echo_n "(cached) " >&6
24006 else
24007 gcc_cv_as_ix86_ffreep=no
24008 if test x$gcc_cv_as != x; then
24009 $as_echo 'ffreep %st(1)' > conftest.s
24010 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24015 test $ac_status = 0; }; }
24016 then
24017 gcc_cv_as_ix86_ffreep=yes
24018 else
24019 echo "configure: failed program was" >&5
24020 cat conftest.s >&5
24021 fi
24022 rm -f conftest.o conftest.s
24023 fi
24024 fi
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
24026 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
24027 if test $gcc_cv_as_ix86_ffreep = yes; then
24028
24029 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
24030
24031 fi
24032
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
24034 $as_echo_n "checking assembler for .quad directive... " >&6; }
24035 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
24036 $as_echo_n "(cached) " >&6
24037 else
24038 gcc_cv_as_ix86_quad=no
24039 if test x$gcc_cv_as != x; then
24040 $as_echo '.quad 0' > conftest.s
24041 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24043 (eval $ac_try) 2>&5
24044 ac_status=$?
24045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24046 test $ac_status = 0; }; }
24047 then
24048 gcc_cv_as_ix86_quad=yes
24049 else
24050 echo "configure: failed program was" >&5
24051 cat conftest.s >&5
24052 fi
24053 rm -f conftest.o conftest.s
24054 fi
24055 fi
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
24057 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
24058 if test $gcc_cv_as_ix86_quad = yes; then
24059
24060 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
24061
24062 fi
24063
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
24065 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
24066 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
24067 $as_echo_n "(cached) " >&6
24068 else
24069 gcc_cv_as_ix86_sahf=no
24070 if test x$gcc_cv_as != x; then
24071 $as_echo '.code64
24072 sahf' > conftest.s
24073 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24075 (eval $ac_try) 2>&5
24076 ac_status=$?
24077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24078 test $ac_status = 0; }; }
24079 then
24080 gcc_cv_as_ix86_sahf=yes
24081 else
24082 echo "configure: failed program was" >&5
24083 cat conftest.s >&5
24084 fi
24085 rm -f conftest.o conftest.s
24086 fi
24087 fi
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
24089 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
24090 if test $gcc_cv_as_ix86_sahf = yes; then
24091
24092 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
24093
24094 fi
24095
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
24097 $as_echo_n "checking assembler for swap suffix... " >&6; }
24098 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
24099 $as_echo_n "(cached) " >&6
24100 else
24101 gcc_cv_as_ix86_swap=no
24102 if test x$gcc_cv_as != x; then
24103 $as_echo 'movl.s %esp, %ebp' > conftest.s
24104 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24106 (eval $ac_try) 2>&5
24107 ac_status=$?
24108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24109 test $ac_status = 0; }; }
24110 then
24111 gcc_cv_as_ix86_swap=yes
24112 else
24113 echo "configure: failed program was" >&5
24114 cat conftest.s >&5
24115 fi
24116 rm -f conftest.o conftest.s
24117 fi
24118 fi
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
24120 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
24121 if test $gcc_cv_as_ix86_swap = yes; then
24122
24123 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
24124
24125 fi
24126
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
24128 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
24129 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
24130 $as_echo_n "(cached) " >&6
24131 else
24132 gcc_cv_as_ix86_diff_sect_delta=no
24133 if test x$gcc_cv_as != x; then
24134 $as_echo '.section .rodata
24135 .L1:
24136 .long .L2-.L1
24137 .long .L3-.L1
24138 .text
24139 .L3: nop
24140 .L2: nop' > conftest.s
24141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24143 (eval $ac_try) 2>&5
24144 ac_status=$?
24145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24146 test $ac_status = 0; }; }
24147 then
24148 gcc_cv_as_ix86_diff_sect_delta=yes
24149 else
24150 echo "configure: failed program was" >&5
24151 cat conftest.s >&5
24152 fi
24153 rm -f conftest.o conftest.s
24154 fi
24155 fi
24156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
24157 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
24158 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
24159
24160 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
24161
24162 fi
24163
24164 # These two are used unconditionally by i386.[ch]; it is to be defined
24165 # to 1 if the feature is present, 0 otherwise.
24166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
24167 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
24168 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
24169 $as_echo_n "(cached) " >&6
24170 else
24171 gcc_cv_as_ix86_gotoff_in_data=no
24172 if test $in_tree_gas = yes; then
24173 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24174 then gcc_cv_as_ix86_gotoff_in_data=yes
24175 fi
24176 elif test x$gcc_cv_as != x; then
24177 $as_echo ' .text
24178 .L0:
24179 nop
24180 .data
24181 .long .L0@GOTOFF' > conftest.s
24182 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24184 (eval $ac_try) 2>&5
24185 ac_status=$?
24186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24187 test $ac_status = 0; }; }
24188 then
24189 gcc_cv_as_ix86_gotoff_in_data=yes
24190 else
24191 echo "configure: failed program was" >&5
24192 cat conftest.s >&5
24193 fi
24194 rm -f conftest.o conftest.s
24195 fi
24196 fi
24197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
24198 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
24199
24200
24201 cat >>confdefs.h <<_ACEOF
24202 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
24203 _ACEOF
24204
24205
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
24207 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
24208 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
24209 $as_echo_n "(cached) " >&6
24210 else
24211 gcc_cv_as_ix86_rep_lock_prefix=no
24212 if test x$gcc_cv_as != x; then
24213 $as_echo 'rep movsl
24214 lock addl %edi, (%eax,%esi)
24215 lock orl $0, (%esp)' > conftest.s
24216 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24218 (eval $ac_try) 2>&5
24219 ac_status=$?
24220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24221 test $ac_status = 0; }; }
24222 then
24223 gcc_cv_as_ix86_rep_lock_prefix=yes
24224 else
24225 echo "configure: failed program was" >&5
24226 cat conftest.s >&5
24227 fi
24228 rm -f conftest.o conftest.s
24229 fi
24230 fi
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
24232 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
24233 if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then
24234
24235 $as_echo "#define HAVE_AS_IX86_REP_LOCK_PREFIX 1" >>confdefs.h
24236
24237 fi
24238
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_GD_PLT reloc" >&5
24240 $as_echo_n "checking assembler for R_386_TLS_GD_PLT reloc... " >&6; }
24241 if test "${gcc_cv_as_ix86_tlsgdplt+set}" = set; then :
24242 $as_echo_n "(cached) " >&6
24243 else
24244 gcc_cv_as_ix86_tlsgdplt=no
24245 if test x$gcc_cv_as != x; then
24246 $as_echo 'call tls_gd@tlsgdplt' > conftest.s
24247 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24248 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24249 (eval $ac_try) 2>&5
24250 ac_status=$?
24251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24252 test $ac_status = 0; }; }
24253 then
24254 gcc_cv_as_ix86_tlsgdplt=yes
24255 else
24256 echo "configure: failed program was" >&5
24257 cat conftest.s >&5
24258 fi
24259 rm -f conftest.o conftest.s
24260 fi
24261 fi
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsgdplt" >&5
24263 $as_echo "$gcc_cv_as_ix86_tlsgdplt" >&6; }
24264 if test $gcc_cv_as_ix86_tlsgdplt = yes; then
24265
24266 $as_echo "#define HAVE_AS_IX86_TLSGDPLT 1" >>confdefs.h
24267
24268 fi
24269
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for R_386_TLS_LDM_PLT reloc" >&5
24271 $as_echo_n "checking assembler for R_386_TLS_LDM_PLT reloc... " >&6; }
24272 if test "${gcc_cv_as_ix86_tlsldmplt+set}" = set; then :
24273 $as_echo_n "(cached) " >&6
24274 else
24275 gcc_cv_as_ix86_tlsldmplt=no
24276 if test x$gcc_cv_as != x; then
24277 $as_echo 'call tls_ld@tlsldmplt' > conftest.s
24278 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24280 (eval $ac_try) 2>&5
24281 ac_status=$?
24282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24283 test $ac_status = 0; }; }
24284 then
24285 gcc_cv_as_ix86_tlsldmplt=yes
24286 else
24287 echo "configure: failed program was" >&5
24288 cat conftest.s >&5
24289 fi
24290 rm -f conftest.o conftest.s
24291 fi
24292 fi
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_tlsldmplt" >&5
24294 $as_echo "$gcc_cv_as_ix86_tlsldmplt" >&6; }
24295 if test $gcc_cv_as_ix86_tlsldmplt = yes; then
24296
24297 $as_echo "#define HAVE_AS_IX86_TLSLDMPLT 1" >>confdefs.h
24298
24299 fi
24300
24301 ;;
24302
24303 ia64*-*-*)
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
24305 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
24306 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
24307 $as_echo_n "(cached) " >&6
24308 else
24309 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
24310 if test $in_tree_gas = yes; then
24311 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24312 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24313 fi
24314 elif test x$gcc_cv_as != x; then
24315 $as_echo ' .text
24316 addl r15 = @ltoffx(x#), gp
24317 ;;
24318 ld8.mov r16 = [r15], x#' > conftest.s
24319 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24324 test $ac_status = 0; }; }
24325 then
24326 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
24327 else
24328 echo "configure: failed program was" >&5
24329 cat conftest.s >&5
24330 fi
24331 rm -f conftest.o conftest.s
24332 fi
24333 fi
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
24335 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
24336 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
24337
24338 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
24339
24340 fi
24341
24342 ;;
24343
24344 powerpc*-*-*)
24345 case $target in
24346 *-*-aix*) conftest_s=' .machine "pwr5"
24347 .csect .text[PR]
24348 mfcr 3,128';;
24349 *-*-darwin*)
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
24351 $as_echo_n "checking assembler for .machine directive support... " >&6; }
24352 if test "${gcc_cv_as_machine_directive+set}" = set; then :
24353 $as_echo_n "(cached) " >&6
24354 else
24355 gcc_cv_as_machine_directive=no
24356 if test x$gcc_cv_as != x; then
24357 $as_echo ' .machine ppc7400' > conftest.s
24358 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24363 test $ac_status = 0; }; }
24364 then
24365 gcc_cv_as_machine_directive=yes
24366 else
24367 echo "configure: failed program was" >&5
24368 cat conftest.s >&5
24369 fi
24370 rm -f conftest.o conftest.s
24371 fi
24372 fi
24373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
24374 $as_echo "$gcc_cv_as_machine_directive" >&6; }
24375
24376 if test x$gcc_cv_as_machine_directive != xyes; then
24377 echo "*** This target requires an assembler supporting \".machine\"" >&2
24378 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
24379 test x$build = x$target && exit 1
24380 fi
24381 conftest_s=' .text
24382 mfcr r3,128';;
24383 *) conftest_s=' .machine power4
24384 .text
24385 mfcr 3,128';;
24386 esac
24387
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
24389 $as_echo_n "checking assembler for mfcr field support... " >&6; }
24390 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
24391 $as_echo_n "(cached) " >&6
24392 else
24393 gcc_cv_as_powerpc_mfcrf=no
24394 if test $in_tree_gas = yes; then
24395 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24396 then gcc_cv_as_powerpc_mfcrf=yes
24397 fi
24398 elif test x$gcc_cv_as != x; then
24399 $as_echo "$conftest_s" > conftest.s
24400 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24402 (eval $ac_try) 2>&5
24403 ac_status=$?
24404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24405 test $ac_status = 0; }; }
24406 then
24407 gcc_cv_as_powerpc_mfcrf=yes
24408 else
24409 echo "configure: failed program was" >&5
24410 cat conftest.s >&5
24411 fi
24412 rm -f conftest.o conftest.s
24413 fi
24414 fi
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
24416 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
24417 if test $gcc_cv_as_powerpc_mfcrf = yes; then
24418
24419 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
24420
24421 fi
24422
24423 case $target in
24424 *-*-aix*) conftest_s=' .machine "pwr5"
24425 .csect .text[PR]
24426 popcntb 3,3';;
24427 *) conftest_s=' .machine power5
24428 .text
24429 popcntb 3,3';;
24430 esac
24431
24432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
24433 $as_echo_n "checking assembler for popcntb support... " >&6; }
24434 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
24435 $as_echo_n "(cached) " >&6
24436 else
24437 gcc_cv_as_powerpc_popcntb=no
24438 if test $in_tree_gas = yes; then
24439 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24440 then gcc_cv_as_powerpc_popcntb=yes
24441 fi
24442 elif test x$gcc_cv_as != x; then
24443 $as_echo "$conftest_s" > conftest.s
24444 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24446 (eval $ac_try) 2>&5
24447 ac_status=$?
24448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24449 test $ac_status = 0; }; }
24450 then
24451 gcc_cv_as_powerpc_popcntb=yes
24452 else
24453 echo "configure: failed program was" >&5
24454 cat conftest.s >&5
24455 fi
24456 rm -f conftest.o conftest.s
24457 fi
24458 fi
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
24460 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
24461 if test $gcc_cv_as_powerpc_popcntb = yes; then
24462
24463 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
24464
24465 fi
24466
24467 case $target in
24468 *-*-aix*) conftest_s=' .machine "pwr5x"
24469 .csect .text[PR]
24470 frin 1,1';;
24471 *) conftest_s=' .machine power5
24472 .text
24473 frin 1,1';;
24474 esac
24475
24476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
24477 $as_echo_n "checking assembler for fp round support... " >&6; }
24478 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
24479 $as_echo_n "(cached) " >&6
24480 else
24481 gcc_cv_as_powerpc_fprnd=no
24482 if test $in_tree_gas = yes; then
24483 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24484 then gcc_cv_as_powerpc_fprnd=yes
24485 fi
24486 elif test x$gcc_cv_as != x; then
24487 $as_echo "$conftest_s" > conftest.s
24488 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24490 (eval $ac_try) 2>&5
24491 ac_status=$?
24492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24493 test $ac_status = 0; }; }
24494 then
24495 gcc_cv_as_powerpc_fprnd=yes
24496 else
24497 echo "configure: failed program was" >&5
24498 cat conftest.s >&5
24499 fi
24500 rm -f conftest.o conftest.s
24501 fi
24502 fi
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
24504 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
24505 if test $gcc_cv_as_powerpc_fprnd = yes; then
24506
24507 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
24508
24509 fi
24510
24511 case $target in
24512 *-*-aix*) conftest_s=' .machine "pwr6"
24513 .csect .text[PR]
24514 mffgpr 1,3';;
24515 *) conftest_s=' .machine power6
24516 .text
24517 mffgpr 1,3';;
24518 esac
24519
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
24521 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
24522 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
24523 $as_echo_n "(cached) " >&6
24524 else
24525 gcc_cv_as_powerpc_mfpgpr=no
24526 if test $in_tree_gas = yes; then
24527 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24528 then gcc_cv_as_powerpc_mfpgpr=yes
24529 fi
24530 elif test x$gcc_cv_as != x; then
24531 $as_echo "$conftest_s" > conftest.s
24532 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }
24538 then
24539 gcc_cv_as_powerpc_mfpgpr=yes
24540 else
24541 echo "configure: failed program was" >&5
24542 cat conftest.s >&5
24543 fi
24544 rm -f conftest.o conftest.s
24545 fi
24546 fi
24547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
24548 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
24549 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
24550
24551 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
24552
24553 fi
24554
24555 case $target in
24556 *-*-aix*) conftest_s=' .csect .text[PR]
24557 LCF..0:
24558 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
24559 *-*-darwin*)
24560 conftest_s=' .text
24561 LCF0:
24562 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
24563 *) conftest_s=' .text
24564 .LCF0:
24565 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
24566 esac
24567
24568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
24569 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
24570 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
24571 $as_echo_n "(cached) " >&6
24572 else
24573 gcc_cv_as_powerpc_rel16=no
24574 if test $in_tree_gas = yes; then
24575 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
24576 then gcc_cv_as_powerpc_rel16=yes
24577 fi
24578 elif test x$gcc_cv_as != x; then
24579 $as_echo "$conftest_s" > conftest.s
24580 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24582 (eval $ac_try) 2>&5
24583 ac_status=$?
24584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24585 test $ac_status = 0; }; }
24586 then
24587 gcc_cv_as_powerpc_rel16=yes
24588 else
24589 echo "configure: failed program was" >&5
24590 cat conftest.s >&5
24591 fi
24592 rm -f conftest.o conftest.s
24593 fi
24594 fi
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
24596 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
24597 if test $gcc_cv_as_powerpc_rel16 = yes; then
24598
24599 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
24600
24601 fi
24602
24603 case $target in
24604 *-*-aix*) conftest_s=' .machine "pwr6"
24605 .csect .text[PR]
24606 cmpb 3,4,5';;
24607 *) conftest_s=' .machine power6
24608 .text
24609 cmpb 3,4,5';;
24610 esac
24611
24612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
24613 $as_echo_n "checking assembler for compare bytes support... " >&6; }
24614 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
24615 $as_echo_n "(cached) " >&6
24616 else
24617 gcc_cv_as_powerpc_cmpb=no
24618 if test $in_tree_gas = yes; then
24619 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24620 then gcc_cv_as_powerpc_cmpb=yes
24621 fi
24622 elif test x$gcc_cv_as != x; then
24623 $as_echo "$conftest_s" > conftest.s
24624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24626 (eval $ac_try) 2>&5
24627 ac_status=$?
24628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24629 test $ac_status = 0; }; }
24630 then
24631 gcc_cv_as_powerpc_cmpb=yes
24632 else
24633 echo "configure: failed program was" >&5
24634 cat conftest.s >&5
24635 fi
24636 rm -f conftest.o conftest.s
24637 fi
24638 fi
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
24640 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
24641 if test $gcc_cv_as_powerpc_cmpb = yes; then
24642
24643 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
24644
24645 fi
24646
24647 case $target in
24648 *-*-aix*) conftest_s=' .machine "pwr6"
24649 .csect .text[PR]
24650 dadd 1,2,3';;
24651 *) conftest_s=' .machine power6
24652 .text
24653 dadd 1,2,3';;
24654 esac
24655
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
24657 $as_echo_n "checking assembler for decimal float support... " >&6; }
24658 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
24659 $as_echo_n "(cached) " >&6
24660 else
24661 gcc_cv_as_powerpc_dfp=no
24662 if test $in_tree_gas = yes; then
24663 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24664 then gcc_cv_as_powerpc_dfp=yes
24665 fi
24666 elif test x$gcc_cv_as != x; then
24667 $as_echo "$conftest_s" > conftest.s
24668 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24670 (eval $ac_try) 2>&5
24671 ac_status=$?
24672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24673 test $ac_status = 0; }; }
24674 then
24675 gcc_cv_as_powerpc_dfp=yes
24676 else
24677 echo "configure: failed program was" >&5
24678 cat conftest.s >&5
24679 fi
24680 rm -f conftest.o conftest.s
24681 fi
24682 fi
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
24684 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
24685 if test $gcc_cv_as_powerpc_dfp = yes; then
24686
24687 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
24688
24689 fi
24690
24691 case $target in
24692 *-*-aix*) conftest_s=' .machine "pwr7"
24693 .csect .text[PR]
24694 lxvd2x 1,2,3';;
24695 *) conftest_s=' .machine power7
24696 .text
24697 lxvd2x 1,2,3';;
24698 esac
24699
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
24701 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
24702 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
24703 $as_echo_n "(cached) " >&6
24704 else
24705 gcc_cv_as_powerpc_vsx=no
24706 if test $in_tree_gas = yes; then
24707 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24708 then gcc_cv_as_powerpc_vsx=yes
24709 fi
24710 elif test x$gcc_cv_as != x; then
24711 $as_echo "$conftest_s" > conftest.s
24712 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24714 (eval $ac_try) 2>&5
24715 ac_status=$?
24716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24717 test $ac_status = 0; }; }
24718 then
24719 gcc_cv_as_powerpc_vsx=yes
24720 else
24721 echo "configure: failed program was" >&5
24722 cat conftest.s >&5
24723 fi
24724 rm -f conftest.o conftest.s
24725 fi
24726 fi
24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
24728 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
24729 if test $gcc_cv_as_powerpc_vsx = yes; then
24730
24731 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
24732
24733 fi
24734
24735 case $target in
24736 *-*-aix*) conftest_s=' .machine "pwr7"
24737 .csect .text[PR]
24738 popcntd 3,3';;
24739 *) conftest_s=' .machine power7
24740 .text
24741 popcntd 3,3';;
24742 esac
24743
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
24745 $as_echo_n "checking assembler for popcntd support... " >&6; }
24746 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
24747 $as_echo_n "(cached) " >&6
24748 else
24749 gcc_cv_as_powerpc_popcntd=no
24750 if test $in_tree_gas = yes; then
24751 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24752 then gcc_cv_as_powerpc_popcntd=yes
24753 fi
24754 elif test x$gcc_cv_as != x; then
24755 $as_echo "$conftest_s" > conftest.s
24756 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24758 (eval $ac_try) 2>&5
24759 ac_status=$?
24760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24761 test $ac_status = 0; }; }
24762 then
24763 gcc_cv_as_powerpc_popcntd=yes
24764 else
24765 echo "configure: failed program was" >&5
24766 cat conftest.s >&5
24767 fi
24768 rm -f conftest.o conftest.s
24769 fi
24770 fi
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
24772 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
24773 if test $gcc_cv_as_powerpc_popcntd = yes; then
24774
24775 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
24776
24777 fi
24778
24779 case $target in
24780 *-*-aix*) conftest_s=' .csect .text[PR]
24781 lwsync';;
24782 *) conftest_s=' .text
24783 lwsync';;
24784 esac
24785
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
24787 $as_echo_n "checking assembler for lwsync support... " >&6; }
24788 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
24789 $as_echo_n "(cached) " >&6
24790 else
24791 gcc_cv_as_powerpc_lwsync=no
24792 if test $in_tree_gas = yes; then
24793 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
24794 then gcc_cv_as_powerpc_lwsync=yes
24795 fi
24796 elif test x$gcc_cv_as != x; then
24797 $as_echo "$conftest_s" > conftest.s
24798 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24800 (eval $ac_try) 2>&5
24801 ac_status=$?
24802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24803 test $ac_status = 0; }; }
24804 then
24805 gcc_cv_as_powerpc_lwsync=yes
24806 else
24807 echo "configure: failed program was" >&5
24808 cat conftest.s >&5
24809 fi
24810 rm -f conftest.o conftest.s
24811 fi
24812 fi
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
24814 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
24815 if test $gcc_cv_as_powerpc_lwsync = yes; then
24816
24817 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
24818
24819 fi
24820
24821 case $target in
24822 *-*-aix*) conftest_s=' .machine "476"
24823 .csect .text[PR]
24824 dci 0';;
24825 *) conftest_s=' .machine "476"
24826 .text
24827 dci 0';;
24828 esac
24829
24830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
24831 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
24832 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
24833 $as_echo_n "(cached) " >&6
24834 else
24835 gcc_cv_as_powerpc_dci=no
24836 if test $in_tree_gas = yes; then
24837 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
24838 then gcc_cv_as_powerpc_dci=yes
24839 fi
24840 elif test x$gcc_cv_as != x; then
24841 $as_echo "$conftest_s" > conftest.s
24842 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
24843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24844 (eval $ac_try) 2>&5
24845 ac_status=$?
24846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24847 test $ac_status = 0; }; }
24848 then
24849 gcc_cv_as_powerpc_dci=yes
24850 else
24851 echo "configure: failed program was" >&5
24852 cat conftest.s >&5
24853 fi
24854 rm -f conftest.o conftest.s
24855 fi
24856 fi
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
24858 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
24859 if test $gcc_cv_as_powerpc_dci = yes; then
24860
24861 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
24862
24863 fi
24864
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24866 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24867 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
24868 $as_echo_n "(cached) " >&6
24869 else
24870 gcc_cv_as_powerpc_gnu_attribute=no
24871 if test $in_tree_gas = yes; then
24872 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24873 then gcc_cv_as_powerpc_gnu_attribute=yes
24874 fi
24875 elif test x$gcc_cv_as != x; then
24876 $as_echo '.gnu_attribute 4,1' > conftest.s
24877 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24879 (eval $ac_try) 2>&5
24880 ac_status=$?
24881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24882 test $ac_status = 0; }; }
24883 then
24884 gcc_cv_as_powerpc_gnu_attribute=yes
24885 else
24886 echo "configure: failed program was" >&5
24887 cat conftest.s >&5
24888 fi
24889 rm -f conftest.o conftest.s
24890 fi
24891 fi
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
24893 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
24894 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
24895
24896 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24897
24898 fi
24899
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
24901 $as_echo_n "checking assembler for tls marker support... " >&6; }
24902 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
24903 $as_echo_n "(cached) " >&6
24904 else
24905 gcc_cv_as_powerpc_tls_markers=no
24906 if test $in_tree_gas = yes; then
24907 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
24908 then gcc_cv_as_powerpc_tls_markers=yes
24909 fi
24910 elif test x$gcc_cv_as != x; then
24911 $as_echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
24912 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24917 test $ac_status = 0; }; }
24918 then
24919 gcc_cv_as_powerpc_tls_markers=yes
24920 else
24921 echo "configure: failed program was" >&5
24922 cat conftest.s >&5
24923 fi
24924 rm -f conftest.o conftest.s
24925 fi
24926 fi
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
24928 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
24929 if test $gcc_cv_as_powerpc_tls_markers = yes; then
24930
24931 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
24932
24933 fi
24934
24935 case $target in
24936 *-*-aix*)
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24938 $as_echo_n "checking assembler for .ref support... " >&6; }
24939 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24940 $as_echo_n "(cached) " >&6
24941 else
24942 gcc_cv_as_aix_ref=no
24943 if test $in_tree_gas = yes; then
24944 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24945 then :
24946 fi
24947 elif test x$gcc_cv_as != x; then
24948 $as_echo ' .csect stuff[rw]
24949 stuff:
24950 .long 1
24951 .extern sym
24952 .ref sym
24953 ' > conftest.s
24954 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24959 test $ac_status = 0; }; }
24960 then
24961 gcc_cv_as_aix_ref=yes
24962 else
24963 echo "configure: failed program was" >&5
24964 cat conftest.s >&5
24965 fi
24966 rm -f conftest.o conftest.s
24967 fi
24968 fi
24969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24970 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24971 if test $gcc_cv_as_aix_ref = yes; then
24972
24973 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24974
24975 fi
24976 ;;
24977 esac
24978 ;;
24979
24980 mips*-*-*)
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24982 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24983 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24984 $as_echo_n "(cached) " >&6
24985 else
24986 gcc_cv_as_mips_explicit_relocs=no
24987 if test $in_tree_gas = yes; then
24988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24989 then gcc_cv_as_mips_explicit_relocs=yes
24990 fi
24991 elif test x$gcc_cv_as != x; then
24992 $as_echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24993 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24995 (eval $ac_try) 2>&5
24996 ac_status=$?
24997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24998 test $ac_status = 0; }; }
24999 then
25000 gcc_cv_as_mips_explicit_relocs=yes
25001 else
25002 echo "configure: failed program was" >&5
25003 cat conftest.s >&5
25004 fi
25005 rm -f conftest.o conftest.s
25006 fi
25007 fi
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
25009 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
25010 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25011 if test x$target_cpu_default = x
25012 then target_cpu_default=MASK_EXPLICIT_RELOCS
25013 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
25014 fi
25015 fi
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
25017 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
25018 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
25019 $as_echo_n "(cached) " >&6
25020 else
25021 gcc_cv_as_mips_no_shared=no
25022 if test $in_tree_gas = yes; then
25023 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
25024 then gcc_cv_as_mips_no_shared=yes
25025 fi
25026 elif test x$gcc_cv_as != x; then
25027 $as_echo 'nop' > conftest.s
25028 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25031 ac_status=$?
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; }
25034 then
25035 gcc_cv_as_mips_no_shared=yes
25036 else
25037 echo "configure: failed program was" >&5
25038 cat conftest.s >&5
25039 fi
25040 rm -f conftest.o conftest.s
25041 fi
25042 fi
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
25044 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
25045 if test $gcc_cv_as_mips_no_shared = yes; then
25046
25047 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
25048
25049 fi
25050
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
25052 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
25053 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
25054 $as_echo_n "(cached) " >&6
25055 else
25056 gcc_cv_as_mips_gnu_attribute=no
25057 if test $in_tree_gas = yes; then
25058 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25059 then gcc_cv_as_mips_gnu_attribute=yes
25060 fi
25061 elif test x$gcc_cv_as != x; then
25062 $as_echo '.gnu_attribute 4,1' > conftest.s
25063 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25068 test $ac_status = 0; }; }
25069 then
25070 gcc_cv_as_mips_gnu_attribute=yes
25071 else
25072 echo "configure: failed program was" >&5
25073 cat conftest.s >&5
25074 fi
25075 rm -f conftest.o conftest.s
25076 fi
25077 fi
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
25079 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
25080 if test $gcc_cv_as_mips_gnu_attribute = yes; then
25081
25082 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
25083
25084 fi
25085
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
25087 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
25088 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
25089 $as_echo_n "(cached) " >&6
25090 else
25091 gcc_cv_as_mips_dtprelword=no
25092 if test $in_tree_gas = yes; then
25093 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25094 then gcc_cv_as_mips_dtprelword=yes
25095 fi
25096 elif test x$gcc_cv_as != x; then
25097 $as_echo '.section .tdata,"awT",@progbits
25098 x:
25099 .word 2
25100 .text
25101 .dtprelword x+0x8000' > conftest.s
25102 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25104 (eval $ac_try) 2>&5
25105 ac_status=$?
25106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25107 test $ac_status = 0; }; }
25108 then
25109 gcc_cv_as_mips_dtprelword=yes
25110 else
25111 echo "configure: failed program was" >&5
25112 cat conftest.s >&5
25113 fi
25114 rm -f conftest.o conftest.s
25115 fi
25116 fi
25117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
25118 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
25119 if test $gcc_cv_as_mips_dtprelword = yes; then
25120
25121 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
25122
25123 fi
25124
25125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for DSPR1 mult with four accumulators support" >&5
25126 $as_echo_n "checking assembler for DSPR1 mult with four accumulators support... " >&6; }
25127 if test "${gcc_cv_as_mips_dspr1_mult+set}" = set; then :
25128 $as_echo_n "(cached) " >&6
25129 else
25130 gcc_cv_as_mips_dspr1_mult=no
25131 if test x$gcc_cv_as != x; then
25132 $as_echo ' .set mips32r2
25133 .set nodspr2
25134 .set dsp
25135 madd $ac3,$4,$5
25136 maddu $ac3,$4,$5
25137 msub $ac3,$4,$5
25138 msubu $ac3,$4,$5
25139 mult $ac3,$4,$5
25140 multu $ac3,$4,$5' > conftest.s
25141 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25143 (eval $ac_try) 2>&5
25144 ac_status=$?
25145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25146 test $ac_status = 0; }; }
25147 then
25148 gcc_cv_as_mips_dspr1_mult=yes
25149 else
25150 echo "configure: failed program was" >&5
25151 cat conftest.s >&5
25152 fi
25153 rm -f conftest.o conftest.s
25154 fi
25155 fi
25156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dspr1_mult" >&5
25157 $as_echo "$gcc_cv_as_mips_dspr1_mult" >&6; }
25158 if test $gcc_cv_as_mips_dspr1_mult = yes; then
25159
25160 $as_echo "#define HAVE_AS_DSPR1_MULT 1" >>confdefs.h
25161
25162 fi
25163
25164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
25165 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
25166 gcc_cv_as_ld_jalr_reloc=no
25167 if test $gcc_cv_as_mips_explicit_relocs = yes; then
25168 if test $in_tree_ld = yes ; then
25169 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 20 -o "$gcc_cv_gld_major_version" -gt 2 \
25170 && test $in_tree_ld_is_elf = yes; then
25171 gcc_cv_as_ld_jalr_reloc=yes
25172 fi
25173 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
25174 echo ' .ent x' > conftest.s
25175 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
25176 echo ' ld $25,%call16(y)($28)' >> conftest.s
25177 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
25178 echo '1: jalr $25' >> conftest.s
25179 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
25180 echo '1: jalr $25' >> conftest.s
25181 echo ' .end x' >> conftest.s
25182 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
25183 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
25184 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
25185 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
25186 gcc_cv_as_ld_jalr_reloc=yes
25187 fi
25188 fi
25189 rm -f conftest.*
25190 fi
25191 fi
25192 if test $gcc_cv_as_ld_jalr_reloc = yes; then
25193 if test x$target_cpu_default = x; then
25194 target_cpu_default=MASK_RELAX_PIC_CALLS
25195 else
25196 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
25197 fi
25198 fi
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
25200 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
25201
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
25203 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
25204 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
25205 $as_echo_n "(cached) " >&6
25206 else
25207 gcc_cv_ld_mips_personality_relaxation=no
25208 if test $in_tree_ld = yes ; then
25209 if test "$gcc_cv_gld_major_version" -eq 2 \
25210 -a "$gcc_cv_gld_minor_version" -ge 21 \
25211 -o "$gcc_cv_gld_major_version" -gt 2; then
25212 gcc_cv_ld_mips_personality_relaxation=yes
25213 fi
25214 elif test x$gcc_cv_as != x \
25215 -a x$gcc_cv_ld != x \
25216 -a x$gcc_cv_readelf != x ; then
25217 cat > conftest.s <<EOF
25218 .cfi_startproc
25219 .cfi_personality 0x80,indirect_ptr
25220 .ent test
25221 test:
25222 nop
25223 .end test
25224 .cfi_endproc
25225
25226 .section .data,"aw",@progbits
25227 indirect_ptr:
25228 .dc.a personality
25229 EOF
25230 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
25231 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
25232 if $gcc_cv_readelf -d conftest 2>&1 \
25233 | grep TEXTREL > /dev/null 2>&1; then
25234 :
25235 elif $gcc_cv_readelf --relocs conftest 2>&1 \
25236 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
25237 :
25238 else
25239 gcc_cv_ld_mips_personality_relaxation=yes
25240 fi
25241 fi
25242 fi
25243 rm -f conftest.s conftest.o conftest
25244 fi
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
25246 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
25247 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
25248
25249 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
25250
25251 fi
25252 ;;
25253 esac
25254
25255 # Mips and HP-UX need the GNU assembler.
25256 # Linux on IA64 might be able to use the Intel assembler.
25257
25258 case "$target" in
25259 mips*-*-* | *-*-hpux* )
25260 if test x$gas_flag = xyes \
25261 || test x"$host" != x"$build" \
25262 || test ! -x "$gcc_cv_as" \
25263 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
25264 :
25265 else
25266 echo "*** This configuration requires the GNU assembler" >&2
25267 exit 1
25268 fi
25269 ;;
25270 esac
25271
25272 # ??? Not all targets support dwarf2 debug_line, even within a version
25273 # of gas. Moreover, we need to emit a valid instruction to trigger any
25274 # info to the output file. So, as supported targets are added to gas 2.11,
25275 # add some instruction here to (also) show we expect this might work.
25276 # ??? Once 2.11 is released, probably need to add first known working
25277 # version to the per-target configury.
25278 case "$cpu_type" in
25279 alpha | arm | avr | bfin | cris | i386 | m32c | m68k | microblaze | mips \
25280 | pa | rs6000 | score | sparc | spu | xstormy16 | xtensa)
25281 insn="nop"
25282 ;;
25283 ia64 | s390)
25284 insn="nop 0"
25285 ;;
25286 mmix)
25287 insn="swym 0"
25288 ;;
25289 esac
25290 if test x"$insn" != x; then
25291 conftest_s="\
25292 .file 1 \"conftest.s\"
25293 .loc 1 3 0
25294 $insn"
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
25296 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
25297 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
25298 $as_echo_n "(cached) " >&6
25299 else
25300 gcc_cv_as_dwarf2_debug_line=no
25301 if test $in_tree_gas = yes; then
25302 if test $in_tree_gas_is_elf = yes \
25303 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25304 then gcc_cv_as_dwarf2_debug_line=yes
25305 fi
25306 elif test x$gcc_cv_as != x; then
25307 $as_echo "$conftest_s" > conftest.s
25308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25310 (eval $ac_try) 2>&5
25311 ac_status=$?
25312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25313 test $ac_status = 0; }; }
25314 then
25315 if test x$gcc_cv_objdump != x \
25316 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
25317 | grep debug_line > /dev/null 2>&1; then
25318 gcc_cv_as_dwarf2_debug_line=yes
25319 fi
25320 else
25321 echo "configure: failed program was" >&5
25322 cat conftest.s >&5
25323 fi
25324 rm -f conftest.o conftest.s
25325 fi
25326 fi
25327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
25328 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
25329
25330
25331 # The .debug_line file table must be in the exact order that
25332 # we specified the files, since these indices are also used
25333 # by DW_AT_decl_file. Approximate this test by testing if
25334 # the assembler bitches if the same index is assigned twice.
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
25336 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
25337 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
25338 $as_echo_n "(cached) " >&6
25339 else
25340 gcc_cv_as_dwarf2_file_buggy=no
25341 if test x$gcc_cv_as != x; then
25342 $as_echo ' .file 1 "foo.s"
25343 .file 1 "bar.s"' > conftest.s
25344 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25346 (eval $ac_try) 2>&5
25347 ac_status=$?
25348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25349 test $ac_status = 0; }; }
25350 then
25351 gcc_cv_as_dwarf2_file_buggy=yes
25352 else
25353 echo "configure: failed program was" >&5
25354 cat conftest.s >&5
25355 fi
25356 rm -f conftest.o conftest.s
25357 fi
25358 fi
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
25360 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
25361
25362
25363 if test $gcc_cv_as_dwarf2_debug_line = yes \
25364 && test $gcc_cv_as_dwarf2_file_buggy = no; then
25365
25366 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
25367
25368 fi
25369
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
25371 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
25372 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
25373 $as_echo_n "(cached) " >&6
25374 else
25375 gcc_cv_as_gdwarf2_flag=no
25376 if test $in_tree_gas = yes; then
25377 if test $in_tree_gas_is_elf = yes \
25378 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25379 then gcc_cv_as_gdwarf2_flag=yes
25380 fi
25381 elif test x$gcc_cv_as != x; then
25382 $as_echo "$insn" > conftest.s
25383 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
25384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25385 (eval $ac_try) 2>&5
25386 ac_status=$?
25387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25388 test $ac_status = 0; }; }
25389 then
25390 gcc_cv_as_gdwarf2_flag=yes
25391 else
25392 echo "configure: failed program was" >&5
25393 cat conftest.s >&5
25394 fi
25395 rm -f conftest.o conftest.s
25396 fi
25397 fi
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
25399 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
25400 if test $gcc_cv_as_gdwarf2_flag = yes; then
25401
25402 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
25403
25404 fi
25405
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
25407 $as_echo_n "checking assembler for --gstabs option... " >&6; }
25408 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
25409 $as_echo_n "(cached) " >&6
25410 else
25411 gcc_cv_as_gstabs_flag=no
25412 if test $in_tree_gas = yes; then
25413 if test $in_tree_gas_is_elf = yes \
25414 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
25415 then gcc_cv_as_gstabs_flag=yes
25416 fi
25417 elif test x$gcc_cv_as != x; then
25418 $as_echo "$insn" > conftest.s
25419 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
25420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25421 (eval $ac_try) 2>&5
25422 ac_status=$?
25423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25424 test $ac_status = 0; }; }
25425 then
25426 # The native Solaris 9/Intel assembler doesn't understand --gstabs
25427 # and warns about it, but still exits successfully. So check for
25428 # this.
25429 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
25430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25434 test $ac_status = 0; }; }
25435 then :
25436 else gcc_cv_as_gstabs_flag=yes
25437 fi
25438 else
25439 echo "configure: failed program was" >&5
25440 cat conftest.s >&5
25441 fi
25442 rm -f conftest.o conftest.s
25443 fi
25444 fi
25445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
25446 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
25447 if test $gcc_cv_as_gstabs_flag = yes; then
25448
25449 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
25450
25451 fi
25452
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
25454 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
25455 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
25456 $as_echo_n "(cached) " >&6
25457 else
25458 gcc_cv_as_debug_prefix_map_flag=no
25459 if test $in_tree_gas = yes; then
25460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
25461 then gcc_cv_as_debug_prefix_map_flag=yes
25462 fi
25463 elif test x$gcc_cv_as != x; then
25464 $as_echo "$insn" > conftest.s
25465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
25466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25467 (eval $ac_try) 2>&5
25468 ac_status=$?
25469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25470 test $ac_status = 0; }; }
25471 then
25472 gcc_cv_as_debug_prefix_map_flag=yes
25473 else
25474 echo "configure: failed program was" >&5
25475 cat conftest.s >&5
25476 fi
25477 rm -f conftest.o conftest.s
25478 fi
25479 fi
25480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
25481 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
25482 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
25483
25484 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
25485
25486 fi
25487 fi
25488
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
25490 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
25491 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25493 else
25494 gcc_cv_as_lcomm_with_alignment=no
25495 if test x$gcc_cv_as != x; then
25496 $as_echo '.lcomm bar,4,16' > conftest.s
25497 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25499 (eval $ac_try) 2>&5
25500 ac_status=$?
25501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25502 test $ac_status = 0; }; }
25503 then
25504 gcc_cv_as_lcomm_with_alignment=yes
25505 else
25506 echo "configure: failed program was" >&5
25507 cat conftest.s >&5
25508 fi
25509 rm -f conftest.o conftest.s
25510 fi
25511 fi
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
25513 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
25514 if test $gcc_cv_as_lcomm_with_alignment = yes; then
25515
25516 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
25517
25518 fi
25519
25520 # Check whether --enable-gnu-unique-object was given.
25521 if test "${enable_gnu_unique_object+set}" = set; then :
25522 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
25523 yes | no) ;;
25524 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
25525 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
25526 esac
25527 else
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
25529 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
25530 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
25531 $as_echo_n "(cached) " >&6
25532 else
25533 gcc_cv_as_gnu_unique_object=no
25534 if test $in_tree_gas = yes; then
25535 if test $in_tree_gas_is_elf = yes \
25536 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
25537 then gcc_cv_as_gnu_unique_object=yes
25538 fi
25539 elif test x$gcc_cv_as != x; then
25540 $as_echo '.type foo, @gnu_unique_object' > conftest.s
25541 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
25542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25543 (eval $ac_try) 2>&5
25544 ac_status=$?
25545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25546 test $ac_status = 0; }; }
25547 then
25548 gcc_cv_as_gnu_unique_object=yes
25549 else
25550 echo "configure: failed program was" >&5
25551 cat conftest.s >&5
25552 fi
25553 rm -f conftest.o conftest.s
25554 fi
25555 fi
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
25557 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
25558 if test $gcc_cv_as_gnu_unique_object = yes; then
25559 # Also check for ld.so support, i.e. glibc 2.11 or higher.
25560 if test x$host = x$build -a x$host = x$target &&
25561 ldd --version 2>/dev/null &&
25562 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
25563 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
25564 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
25565 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
25566 if test "$glibcnum" -ge 2011 ; then
25567 enable_gnu_unique_object=yes
25568 fi
25569 fi
25570 fi
25571 fi
25572
25573 if test x$enable_gnu_unique_object = xyes; then
25574
25575 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
25576
25577 fi
25578
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
25580 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
25581 if test "${gcc_cv_as_line_zero+set}" = set; then :
25582 $as_echo_n "(cached) " >&6
25583 else
25584 gcc_cv_as_line_zero=no
25585 if test $in_tree_gas = yes; then
25586 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
25587 then gcc_cv_as_line_zero=yes
25588 fi
25589 elif test "x$gcc_cv_as" != x; then
25590 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
25591 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; } &&
25597 test "x`cat conftest.out`" = x
25598 then
25599 gcc_cv_as_line_zero=yes
25600 else
25601 echo "configure: failed program was" >&5
25602 cat conftest.s >&5
25603 echo "configure: error output was" >&5
25604 cat conftest.out >&5
25605 fi
25606 rm -f conftest.o conftest.s conftest.out
25607 fi
25608 fi
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
25610 $as_echo "$gcc_cv_as_line_zero" >&6; }
25611 if test "x$gcc_cv_as_line_zero" = xyes; then
25612
25613 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
25614
25615 fi
25616
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
25618 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
25619 gcc_cv_ld_eh_frame_hdr=no
25620 if test $in_tree_ld = yes ; then
25621 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 12 -o "$gcc_cv_gld_major_version" -gt 2 \
25622 && test $in_tree_ld_is_elf = yes; then
25623 gcc_cv_ld_eh_frame_hdr=yes
25624 fi
25625 elif test x$gcc_cv_ld != x; then
25626 if echo "$ld_ver" | grep GNU > /dev/null; then
25627 # Check if linker supports --eh-frame-hdr option
25628 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
25629 gcc_cv_ld_eh_frame_hdr=yes
25630 fi
25631 else
25632 case "$target" in
25633 *-*-solaris2*)
25634 # Sun ld has various bugs in .eh_frame_hdr support before version 1.2251.
25635 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 2251; then
25636 gcc_cv_ld_eh_frame_hdr=yes
25637 fi
25638 ;;
25639 esac
25640 fi
25641 fi
25642
25643 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
25644
25645 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
25646
25647 fi
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
25649 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
25650
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
25652 $as_echo_n "checking linker position independent executable support... " >&6; }
25653 gcc_cv_ld_pie=no
25654 if test $in_tree_ld = yes ; then
25655 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 15 -o "$gcc_cv_gld_major_version" -gt 2 \
25656 && test $in_tree_ld_is_elf = yes; then
25657 gcc_cv_ld_pie=yes
25658 fi
25659 elif test x$gcc_cv_ld != x; then
25660 # Check if linker supports -pie option
25661 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
25662 gcc_cv_ld_pie=yes
25663 fi
25664 fi
25665 if test x"$gcc_cv_ld_pie" = xyes; then
25666
25667 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
25668
25669 fi
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
25671 $as_echo "$gcc_cv_ld_pie" >&6; }
25672
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
25674 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
25675 gcc_cv_ld_eh_gc_sections=no
25676 if test $in_tree_ld = yes ; then
25677 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 17 -o "$gcc_cv_gld_major_version" -gt 2 \
25678 && test $in_tree_ld_is_elf = yes; then
25679 gcc_cv_ld_eh_gc_sections=yes
25680 fi
25681 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
25682 cat > conftest.s <<EOF
25683 .section .text
25684 .globl _start
25685 .type _start, @function
25686 _start:
25687 .long foo
25688 .size _start, .-_start
25689 .section .text.foo,"ax",@progbits
25690 .type foo, @function
25691 foo:
25692 .long 0
25693 .size foo, .-foo
25694 .section .gcc_except_table.foo,"a",@progbits
25695 .L0:
25696 .long 0
25697 .section .eh_frame,"a",@progbits
25698 .long .L0
25699 EOF
25700 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25701 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25702 | grep "gc-sections option ignored" > /dev/null; then
25703 gcc_cv_ld_eh_gc_sections=no
25704 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25705 | grep gcc_except_table > /dev/null; then
25706 gcc_cv_ld_eh_gc_sections=yes
25707 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
25708 if test x$gcc_cv_as_comdat_group != xyes; then
25709 gcc_cv_ld_eh_gc_sections=no
25710 cat > conftest.s <<EOF
25711 .section .text
25712 .globl _start
25713 .type _start, @function
25714 _start:
25715 .long foo
25716 .size _start, .-_start
25717 .section .gnu.linkonce.t.foo,"ax",@progbits
25718 .type foo, @function
25719 foo:
25720 .long 0
25721 .size foo, .-foo
25722 .section .gcc_except_table.foo,"a",@progbits
25723 .L0:
25724 .long 0
25725 .section .eh_frame,"a",@progbits
25726 .long .L0
25727 EOF
25728 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25729 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25730 | grep "gc-sections option ignored" > /dev/null; then
25731 gcc_cv_ld_eh_gc_sections=no
25732 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25733 | grep gcc_except_table > /dev/null; then
25734 gcc_cv_ld_eh_gc_sections=yes
25735 fi
25736 fi
25737 fi
25738 fi
25739 fi
25740 rm -f conftest.s conftest.o conftest
25741 fi
25742 case "$target" in
25743 hppa*-*-linux*)
25744 # ??? This apparently exposes a binutils bug with PC-relative relocations.
25745 gcc_cv_ld_eh_gc_sections=no
25746 ;;
25747 esac
25748 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
25749
25750 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
25751
25752 fi
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
25754 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
25755
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH garbage collection of sections bug" >&5
25757 $as_echo_n "checking linker EH garbage collection of sections bug... " >&6; }
25758 gcc_cv_ld_eh_gc_sections_bug=no
25759 if test $in_tree_ld = yes ; then
25760 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -lt 19 -o "$gcc_cv_gld_major_version" -lt 2 \
25761 && test $in_tree_ld_is_elf = yes; then
25762 gcc_cv_ld_eh_gc_sections_bug=yes
25763 fi
25764 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x -a x$gcc_cv_as_comdat_group = xyes; then
25765 gcc_cv_ld_eh_gc_sections_bug=yes
25766 cat > conftest.s <<EOF
25767 .section .text
25768 .globl _start
25769 .type _start, @function
25770 _start:
25771 .long foo
25772 .size _start, .-_start
25773 .section .text.startup.foo,"ax",@progbits
25774 .type foo, @function
25775 foo:
25776 .long 0
25777 .size foo, .-foo
25778 .section .gcc_except_table.foo,"a",@progbits
25779 .L0:
25780 .long 0
25781 .section .eh_frame,"a",@progbits
25782 .long .L0
25783 EOF
25784 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
25785 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
25786 | grep "gc-sections option ignored" > /dev/null; then
25787 :
25788 elif $gcc_cv_objdump -h conftest 2> /dev/null \
25789 | grep gcc_except_table > /dev/null; then
25790 gcc_cv_ld_eh_gc_sections_bug=no
25791 fi
25792 fi
25793 rm -f conftest.s conftest.o conftest
25794 fi
25795 if test x$gcc_cv_ld_eh_gc_sections_bug = xyes; then
25796
25797 $as_echo "#define HAVE_LD_EH_GC_SECTIONS_BUG 1" >>confdefs.h
25798
25799 fi
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections_bug" >&5
25801 $as_echo "$gcc_cv_ld_eh_gc_sections_bug" >&6; }
25802
25803 # --------
25804 # UNSORTED
25805 # --------
25806
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
25808 $as_echo_n "checking linker --as-needed support... " >&6; }
25809 if test "${gcc_cv_ld_as_needed+set}" = set; then :
25810 $as_echo_n "(cached) " >&6
25811 else
25812 gcc_cv_ld_as_needed=no
25813 if test $in_tree_ld = yes ; then
25814 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
25815 && test $in_tree_ld_is_elf = yes; then
25816 gcc_cv_ld_as_needed=yes
25817 fi
25818 elif test x$gcc_cv_ld != x; then
25819 # Check if linker supports --as-needed and --no-as-needed options
25820 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
25821 gcc_cv_ld_as_needed=yes
25822 fi
25823 fi
25824
25825 fi
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
25827 $as_echo "$gcc_cv_ld_as_needed" >&6; }
25828 if test x"$gcc_cv_ld_as_needed" = xyes; then
25829
25830 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
25831
25832 fi
25833
25834 case "$target:$tm_file" in
25835 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
25837 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
25838 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
25839 $as_echo_n "(cached) " >&6
25840 else
25841 gcc_cv_ld_no_dot_syms=no
25842 if test $in_tree_ld = yes ; then
25843 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2; then
25844 gcc_cv_ld_no_dot_syms=yes
25845 fi
25846 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25847 cat > conftest1.s <<EOF
25848 .text
25849 bl .foo
25850 EOF
25851 cat > conftest2.s <<EOF
25852 .section ".opd","aw"
25853 .align 3
25854 .globl foo
25855 .type foo,@function
25856 foo:
25857 .quad .LEfoo,.TOC.@tocbase,0
25858 .text
25859 .LEfoo:
25860 blr
25861 .size foo,.-.LEfoo
25862 EOF
25863 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
25864 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
25865 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
25866 gcc_cv_ld_no_dot_syms=yes
25867 fi
25868 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
25869 fi
25870
25871 fi
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
25873 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
25874 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
25875
25876 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
25877
25878 fi
25879
25880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
25881 $as_echo_n "checking linker large toc support... " >&6; }
25882 if test "${gcc_cv_ld_large_toc+set}" = set; then :
25883 $as_echo_n "(cached) " >&6
25884 else
25885 gcc_cv_ld_large_toc=no
25886 if test $in_tree_ld = yes ; then
25887 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 21 -o "$gcc_cv_gld_major_version" -gt 2; then
25888 gcc_cv_ld_large_toc=yes
25889 fi
25890 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
25891 cat > conftest.s <<EOF
25892 .section ".tbss","awT",@nobits
25893 .align 3
25894 ie0: .space 8
25895 .global _start
25896 .text
25897 _start:
25898 addis 9,13,ie0@got@tprel@ha
25899 ld 9,ie0@got@tprel@l(9)
25900 EOF
25901 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
25902 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
25903 gcc_cv_ld_large_toc=yes
25904 fi
25905 rm -f conftest conftest.o conftest.s
25906 fi
25907
25908 fi
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
25910 $as_echo "$gcc_cv_ld_large_toc" >&6; }
25911 if test x"$gcc_cv_ld_large_toc" = xyes; then
25912
25913 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
25914
25915 fi
25916 ;;
25917 esac
25918
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
25920 $as_echo_n "checking linker --build-id support... " >&6; }
25921 if test "${gcc_cv_ld_buildid+set}" = set; then :
25922 $as_echo_n "(cached) " >&6
25923 else
25924 gcc_cv_ld_buildid=no
25925 if test $in_tree_ld = yes ; then
25926 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25927 "$gcc_cv_gld_minor_version" -ge 18 -o \
25928 "$gcc_cv_gld_major_version" -gt 2 \
25929 && test $in_tree_ld_is_elf = yes; then
25930 gcc_cv_ld_buildid=yes
25931 fi
25932 elif test x$gcc_cv_ld != x; then
25933 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
25934 gcc_cv_ld_buildid=yes
25935 fi
25936 fi
25937 fi
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
25939 $as_echo "$gcc_cv_ld_buildid" >&6; }
25940 if test x"$gcc_cv_ld_buildid" = xyes; then
25941
25942 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
25943
25944 fi
25945
25946 # Check whether --enable-linker-build-id was given.
25947 if test "${enable_linker_build_id+set}" = set; then :
25948 enableval=$enable_linker_build_id;
25949 else
25950 enable_linker_build_id=no
25951 fi
25952
25953
25954 if test x"$enable_linker_build_id" = xyes; then
25955 if test x"$gcc_cv_ld_buildid" = xyes; then
25956
25957 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
25958
25959 else
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
25961 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
25962 fi
25963 fi
25964
25965 # In binutils 2.21, GNU ld gained support for new emulations fully
25966 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
25967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
25968 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
25969 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
25970 $as_echo_n "(cached) " >&6
25971 else
25972 gcc_cv_ld_sol2_emulation=no
25973 if test $in_tree_ld = yes ; then
25974 if test "$gcc_cv_gld_major_version" -eq 2 -a \
25975 "$gcc_cv_gld_minor_version" -ge 21 -o \
25976 "$gcc_cv_gld_major_version" -gt 2 \
25977 && test $in_tree_ld_is_elf = yes; then
25978 gcc_cv_ld_sol2_emulation=yes
25979 fi
25980 elif test x$gcc_cv_ld != x; then
25981 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
25982 grep _sol2 > /dev/null; then
25983 gcc_cv_ld_sol2_emulation=yes
25984 fi
25985 fi
25986 fi
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
25988 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
25989 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
25990
25991 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
25992
25993 fi
25994
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
25996 $as_echo_n "checking linker --sysroot support... " >&6; }
25997 if test "${gcc_cv_ld_sysroot+set}" = set; then :
25998 $as_echo_n "(cached) " >&6
25999 else
26000 gcc_cv_ld_sysroot=no
26001 if test $in_tree_ld = yes ; then
26002 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 ; then
26003 gcc_cv_ld_sysroot=yes
26004 fi
26005 elif test x$gcc_cv_ld != x; then
26006 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
26007 gcc_cv_ld_sysroot=yes
26008 fi
26009 fi
26010 fi
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
26012 $as_echo "$gcc_cv_ld_sysroot" >&6; }
26013 if test x"$gcc_cv_ld_sysroot" = xyes; then
26014
26015 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
26016
26017 fi
26018
26019 if test x$with_sysroot = x && test x$host = x$target \
26020 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
26021 && test "$prefix" != "NONE"; then
26022
26023 cat >>confdefs.h <<_ACEOF
26024 #define PREFIX_INCLUDE_DIR "$prefix/include"
26025 _ACEOF
26026
26027 fi
26028
26029 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
26030 if test "x$with_headers" != x; then
26031 target_header_dir=$with_headers
26032 elif test "x$with_sysroot" = x; then
26033 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
26034 elif test "x$with_build_sysroot" != "x"; then
26035 target_header_dir="${with_build_sysroot}/usr/include"
26036 elif test "x$with_sysroot" = xyes; then
26037 target_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
26038 else
26039 target_header_dir="${with_sysroot}/usr/include"
26040 fi
26041 else
26042 target_header_dir=/usr/include
26043 fi
26044
26045 # Test for stack protector support in target C library.
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
26047 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
26048 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
26049 $as_echo_n "(cached) " >&6
26050 else
26051 gcc_cv_libc_provides_ssp=no
26052 case "$target" in
26053 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
26054 # glibc 2.4 and later provides __stack_chk_fail and
26055 # either __stack_chk_guard, or TLS access to stack guard canary.
26056 if test -f $target_header_dir/features.h \
26057 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
26058 $target_header_dir/features.h > /dev/null; then
26059 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
26060 $target_header_dir/features.h > /dev/null; then
26061 gcc_cv_libc_provides_ssp=yes
26062 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
26063 $target_header_dir/features.h > /dev/null \
26064 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
26065 $target_header_dir/features.h > /dev/null; then
26066 gcc_cv_libc_provides_ssp=yes
26067 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
26068 $target_header_dir/features.h > /dev/null && \
26069 test -f $target_header_dir/bits/uClibc_config.h && \
26070 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
26071 $target_header_dir/bits/uClibc_config.h > /dev/null; then
26072 gcc_cv_libc_provides_ssp=yes
26073 fi
26074 fi
26075 ;;
26076 *-*-gnu*)
26077 # Avoid complicated tests (see
26078 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
26079 # simply assert that glibc does provide this, which is true for all
26080 # realistically usable GNU/Hurd configurations.
26081 gcc_cv_libc_provides_ssp=yes;;
26082 *-*-darwin* | *-*-freebsd*)
26083 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
26084 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
26085 gcc_cv_libc_provides_ssp=yes
26086 else
26087 echo "no __stack_chk_fail on this target"
26088 fi
26089
26090 ;;
26091 *) gcc_cv_libc_provides_ssp=no ;;
26092 esac
26093 fi
26094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
26095 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
26096
26097 if test x$gcc_cv_libc_provides_ssp = xyes; then
26098
26099 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
26100
26101 fi
26102
26103 # Test for <sys/sdt.h> on the target.
26104
26105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/sdt.h in the target C library" >&5
26106 $as_echo_n "checking sys/sdt.h in the target C library... " >&6; }
26107 have_sys_sdt_h=no
26108 if test -f $target_header_dir/sys/sdt.h; then
26109
26110 $as_echo "#define HAVE_SYS_SDT_H 1" >>confdefs.h
26111
26112 fi
26113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sys_sdt_h" >&5
26114 $as_echo "$have_sys_sdt_h" >&6; }
26115
26116 # Check if TFmode long double should be used by default or not.
26117 # Some glibc targets used DFmode long double, but with glibc 2.4
26118 # and later they can use TFmode.
26119 case "$target" in
26120 powerpc*-*-linux* | \
26121 sparc*-*-linux* | \
26122 s390*-*-linux* | \
26123 alpha*-*-linux*)
26124
26125 # Check whether --with-long-double-128 was given.
26126 if test "${with_long_double_128+set}" = set; then :
26127 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
26128 else
26129 gcc_cv_target_ldbl128=no
26130 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
26131 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
26132 && gcc_cv_target_ldbl128=yes
26133
26134 fi
26135
26136 ;;
26137 esac
26138 if test x$gcc_cv_target_ldbl128 = xyes; then
26139
26140 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
26141
26142 fi
26143
26144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dl_iterate_phdr in target C library" >&5
26145 $as_echo_n "checking dl_iterate_phdr in target C library... " >&6; }
26146 gcc_cv_target_dl_iterate_phdr=unknown
26147 case "$target" in
26148 *-*-solaris2*)
26149 # <link.h> needs both a dl_iterate_phdr declaration and support for
26150 # compilation with largefile support.
26151 if grep dl_iterate_phdr $target_header_dir/link.h > /dev/null 2>&1 \
26152 && grep 'large file capable' $target_header_dir/link.h > /dev/null 2>&1; then
26153 gcc_cv_target_dl_iterate_phdr=yes
26154 else
26155 gcc_cv_target_dl_iterate_phdr=no
26156 fi
26157 ;;
26158 esac
26159
26160 if test x$gcc_cv_target_dl_iterate_phdr = xyes; then
26161
26162 $as_echo "#define TARGET_DL_ITERATE_PHDR 1" >>confdefs.h
26163
26164 fi
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_target_dl_iterate_phdr" >&5
26166 $as_echo "$gcc_cv_target_dl_iterate_phdr" >&6; }
26167
26168 # Find out what GC implementation we want, or may, use.
26169
26170 # Check whether --with-gc was given.
26171 if test "${with_gc+set}" = set; then :
26172 withval=$with_gc; case "$withval" in
26173 page)
26174 GGC=ggc-$withval
26175 ;;
26176 zone)
26177 GGC=ggc-$withval
26178
26179 $as_echo "#define GGC_ZONE 1" >>confdefs.h
26180
26181 ;;
26182 *)
26183 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
26184 ;;
26185 esac
26186 else
26187 GGC=ggc-page
26188 fi
26189
26190
26191 echo "Using $GGC for garbage collection."
26192
26193 # Libraries to use on the host. This will normally be set by the top
26194 # level Makefile. Here we simply capture the value for our Makefile.
26195 if test -z "${HOST_LIBS+set}"; then
26196 HOST_LIBS=
26197 fi
26198
26199
26200 # Use the system's zlib library.
26201 zlibdir=-L../zlib
26202 zlibinc="-I\$(srcdir)/../zlib"
26203
26204 # Check whether --with-system-zlib was given.
26205 if test "${with_system_zlib+set}" = set; then :
26206 withval=$with_system_zlib; zlibdir=
26207 zlibinc=
26208
26209 fi
26210
26211
26212
26213
26214
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
26216 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
26217 # Check whether --enable-maintainer-mode was given.
26218 if test "${enable_maintainer_mode+set}" = set; then :
26219 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
26220 else
26221 maintainer_mode=no
26222 fi
26223
26224
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
26226 $as_echo "$maintainer_mode" >&6; }
26227
26228 if test "$maintainer_mode" = "yes"; then
26229 MAINT=''
26230 else
26231 MAINT='#'
26232 fi
26233
26234 # --------------
26235 # Language hooks
26236 # --------------
26237
26238 # Make empty files to contain the specs and options for each language.
26239 # Then add #include lines to for a compiler that has specs and/or options.
26240
26241 subdirs=
26242 lang_opt_files=
26243 lang_specs_files=
26244 lang_tree_files=
26245 # These (without "all_") are set in each config-lang.in.
26246 # `language' must be a single word so is spelled singularly.
26247 all_languages=
26248 all_compilers=
26249 all_outputs='Makefile'
26250 # List of language makefile fragments.
26251 all_lang_makefrags=
26252 # Additional files for gengtype
26253 all_gtfiles="$target_gtfiles"
26254
26255 # These are the languages that are set in --enable-languages,
26256 # and are available in the GCC tree.
26257 all_selected_languages=
26258
26259 # Add the language fragments.
26260 # Languages are added via two mechanisms. Some information must be
26261 # recorded in makefile variables, these are defined in config-lang.in.
26262 # We accumulate them and plug them into the main Makefile.
26263 # The other mechanism is a set of hooks for each of the main targets
26264 # like `clean', `install', etc.
26265
26266 language_hooks="Make-hooks"
26267
26268 for lang in ${srcdir}/*/config-lang.in
26269 do
26270 test "$lang" = "${srcdir}/*/config-lang.in" && continue
26271
26272 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
26273 if test "x$lang_alias" = x
26274 then
26275 echo "$lang doesn't set \$language." 1>&2
26276 exit 1
26277 fi
26278 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
26279 subdirs="$subdirs $subdir"
26280
26281 # $gcc_subdir is where the gcc integration files are to be found
26282 # for a language, both for internal compiler purposes (compiler
26283 # sources implementing front-end to GCC tree converters), and for
26284 # build infrastructure purposes (Make-lang.in, etc.)
26285 #
26286 # This will be <subdir> (relative to $srcdir) if a line like
26287 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
26288 # is found in <langdir>/config-lang.in, and will remain <langdir>
26289 # otherwise.
26290 #
26291 # Except for the language alias (fetched above), the regular
26292 # "config-lang.in" contents are always retrieved from $gcc_subdir,
26293 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
26294 # only this and the language alias.
26295
26296 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
26297 if [ "$gcc_subdir" = "" ]; then
26298 gcc_subdir="$subdir"
26299 fi
26300
26301 case ",$enable_languages," in
26302 *,$lang_alias,*)
26303 all_selected_languages="$all_selected_languages $lang_alias"
26304 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
26305 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
26306 fi
26307 ;;
26308 esac
26309
26310 language=
26311 boot_language=
26312 compilers=
26313 outputs=
26314 gtfiles=
26315 subdir_requires=
26316 . ${srcdir}/$gcc_subdir/config-lang.in
26317 if test "x$language" = x
26318 then
26319 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
26320 exit 1
26321 fi
26322
26323 ok=:
26324 case ",$enable_languages," in
26325 *,$lang_alias,*) ;;
26326 *)
26327 for i in $subdir_requires; do
26328 test -f "${srcdir}/$i/config-lang.in" && continue
26329 ok=false
26330 break
26331 done
26332 ;;
26333 esac
26334 $ok || continue
26335
26336 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
26337 if test -f $srcdir/$gcc_subdir/lang.opt; then
26338 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
26339 all_opt_files="$all_opt_files $srcdir/$gcc_subdir/lang.opt"
26340 fi
26341 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
26342 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
26343 fi
26344 all_languages="$all_languages $language"
26345 all_compilers="$all_compilers $compilers"
26346 all_outputs="$all_outputs $outputs"
26347 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
26348 case ",$enable_languages," in
26349 *,lto,*)
26350
26351 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
26352
26353 enable_lto=yes
26354
26355 ;;
26356 *) ;;
26357 esac
26358 done
26359
26360 # Pick up gtfiles for c
26361 gtfiles=
26362 . ${srcdir}/c-config-lang.in
26363 all_gtfiles="$all_gtfiles [c] $gtfiles"
26364
26365 check_languages=
26366 for language in $all_selected_languages
26367 do
26368 check_languages="$check_languages check-$language"
26369 done
26370
26371 # We link each language in with a set of hooks, reached indirectly via
26372 # lang.${target}. Only do so for selected languages.
26373
26374 rm -f Make-hooks
26375 touch Make-hooks
26376 target_list="all.cross start.encap rest.encap tags \
26377 install-common install-man install-info install-pdf install-html dvi \
26378 pdf html uninstall info man srcextra srcman srcinfo \
26379 mostlyclean clean distclean maintainer-clean install-plugin"
26380
26381 for t in $target_list
26382 do
26383 x=
26384 for lang in $all_selected_languages
26385 do
26386 x="$x $lang.$t"
26387 done
26388 echo "lang.$t: $x" >> Make-hooks
26389 done
26390
26391 # --------
26392 # Option include files
26393 # --------
26394
26395 ${AWK} -f $srcdir/opt-include.awk $all_opt_files > option-includes.mk
26396 option_includes="option-includes.mk"
26397
26398
26399 # --------
26400 # UNSORTED
26401 # --------
26402
26403 # Create .gdbinit.
26404
26405 echo "dir ." > .gdbinit
26406 echo "dir ${srcdir}" >> .gdbinit
26407 if test x$gdb_needs_out_file_path = xyes
26408 then
26409 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
26410 fi
26411 if test "x$subdirs" != x; then
26412 for s in $subdirs
26413 do
26414 echo "dir ${srcdir}/$s" >> .gdbinit
26415 done
26416 fi
26417 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
26418
26419 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
26420
26421
26422
26423 # Find a directory in which to install a shared libgcc.
26424
26425 # Check whether --enable-version-specific-runtime-libs was given.
26426 if test "${enable_version_specific_runtime_libs+set}" = set; then :
26427 enableval=$enable_version_specific_runtime_libs;
26428 fi
26429
26430
26431
26432 # Check whether --with-slibdir was given.
26433 if test "${with_slibdir+set}" = set; then :
26434 withval=$with_slibdir; slibdir="$with_slibdir"
26435 else
26436 if test "${enable_version_specific_runtime_libs+set}" = set; then
26437 slibdir='$(libsubdir)'
26438 elif test "$host" != "$target"; then
26439 slibdir='$(build_tooldir)/lib'
26440 else
26441 slibdir='$(libdir)'
26442 fi
26443 fi
26444
26445
26446
26447 # Substitute configuration variables
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459
26460
26461
26462
26463
26464
26465
26466
26467
26468
26469
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499
26500
26501
26502
26503
26504
26505
26506
26507
26508
26509
26510
26511
26512
26513
26514 # Echo link setup.
26515 if test x${build} = x${host} ; then
26516 if test x${host} = x${target} ; then
26517 echo "Links are now set up to build a native compiler for ${target}." 1>&2
26518 else
26519 echo "Links are now set up to build a cross-compiler" 1>&2
26520 echo " from ${host} to ${target}." 1>&2
26521 fi
26522 else
26523 if test x${host} = x${target} ; then
26524 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
26525 echo " for ${target}." 1>&2
26526 else
26527 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
26528 echo " from ${host} to ${target}." 1>&2
26529 fi
26530 fi
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540 if test "x${CLOOGLIBS}" != "x" ; then
26541
26542 $as_echo "#define HAVE_cloog 1" >>confdefs.h
26543
26544 fi
26545
26546 # Check for plugin support
26547 # Check whether --enable-plugin was given.
26548 if test "${enable_plugin+set}" = set; then :
26549 enableval=$enable_plugin; enable_plugin=$enableval
26550 else
26551 enable_plugin=yes; default_plugin=yes
26552 fi
26553
26554
26555 pluginlibs=
26556
26557 case "${host}" in
26558 *-*-darwin*)
26559 if test x$build = x$host; then
26560 export_sym_check="nm${exeext} -g"
26561 elif test x$host = x$target; then
26562 export_sym_check="$gcc_cv_nm -g"
26563 else
26564 export_sym_check=
26565 fi
26566 ;;
26567 *)
26568 if test x$build = x$host; then
26569 export_sym_check="objdump${exeext} -T"
26570 elif test x$host = x$target; then
26571 export_sym_check="$gcc_cv_objdump -T"
26572 else
26573 export_sym_check=
26574 fi
26575 ;;
26576 esac
26577
26578 if test x"$enable_plugin" = x"yes"; then
26579
26580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
26581 $as_echo_n "checking for exported symbols... " >&6; }
26582 if test "x$export_sym_check" != x; then
26583 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
26584 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
26585 if $export_sym_check conftest | grep foobar > /dev/null; then
26586 : # No need to use a flag
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26588 $as_echo "yes" >&6; }
26589 else
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26591 $as_echo "yes" >&6; }
26592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
26593 $as_echo_n "checking for -rdynamic... " >&6; }
26594 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
26595 if $export_sym_check conftest | grep foobar > /dev/null; then
26596 plugin_rdynamic=yes
26597 pluginlibs="-rdynamic"
26598 else
26599 plugin_rdynamic=no
26600 enable_plugin=no
26601 fi
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
26603 $as_echo "$plugin_rdynamic" >&6; }
26604 fi
26605 else
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to check" >&5
26607 $as_echo "unable to check" >&6; }
26608 fi
26609
26610 # Check -ldl
26611 saved_LIBS="$LIBS"
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
26613 $as_echo_n "checking for library containing dlopen... " >&6; }
26614 if test "${ac_cv_search_dlopen+set}" = set; then :
26615 $as_echo_n "(cached) " >&6
26616 else
26617 ac_func_search_save_LIBS=$LIBS
26618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26619 /* end confdefs.h. */
26620
26621 /* Override any GCC internal prototype to avoid an error.
26622 Use char because int might match the return type of a GCC
26623 builtin and then its argument prototype would still apply. */
26624 #ifdef __cplusplus
26625 extern "C"
26626 #endif
26627 char dlopen ();
26628 int
26629 main ()
26630 {
26631 return dlopen ();
26632 ;
26633 return 0;
26634 }
26635 _ACEOF
26636 for ac_lib in '' dl; do
26637 if test -z "$ac_lib"; then
26638 ac_res="none required"
26639 else
26640 ac_res=-l$ac_lib
26641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26642 fi
26643 if ac_fn_c_try_link "$LINENO"; then :
26644 ac_cv_search_dlopen=$ac_res
26645 fi
26646 rm -f core conftest.err conftest.$ac_objext \
26647 conftest$ac_exeext
26648 if test "${ac_cv_search_dlopen+set}" = set; then :
26649 break
26650 fi
26651 done
26652 if test "${ac_cv_search_dlopen+set}" = set; then :
26653
26654 else
26655 ac_cv_search_dlopen=no
26656 fi
26657 rm conftest.$ac_ext
26658 LIBS=$ac_func_search_save_LIBS
26659 fi
26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
26661 $as_echo "$ac_cv_search_dlopen" >&6; }
26662 ac_res=$ac_cv_search_dlopen
26663 if test "$ac_res" != no; then :
26664 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26665
26666 fi
26667
26668 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
26669 pluginlibs="$pluginlibs -ldl"
26670 fi
26671 LIBS="$saved_LIBS"
26672
26673 # Check that we can build shared objects with -fPIC -shared
26674 saved_LDFLAGS="$LDFLAGS"
26675 saved_CFLAGS="$CFLAGS"
26676 case "${host}" in
26677 *-*-darwin*)
26678 CFLAGS=`echo $CFLAGS | sed s/-mdynamic-no-pic//g`
26679 CFLAGS="$CFLAGS -fPIC"
26680 LDFLAGS="$LDFLAGS -shared -undefined dynamic_lookup"
26681 ;;
26682 *)
26683 CFLAGS="$CFLAGS -fPIC"
26684 LDFLAGS="$LDFLAGS -fPIC -shared"
26685 ;;
26686 esac
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
26688 $as_echo_n "checking for -fPIC -shared... " >&6; }
26689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26690 /* end confdefs.h. */
26691 extern int X;
26692 int
26693 main ()
26694 {
26695 return X == 0;
26696 ;
26697 return 0;
26698 }
26699 _ACEOF
26700 if ac_fn_c_try_link "$LINENO"; then :
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26702 $as_echo "yes" >&6; }; have_pic_shared=yes
26703 else
26704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26705 $as_echo "no" >&6; }; have_pic_shared=no
26706 fi
26707 rm -f core conftest.err conftest.$ac_objext \
26708 conftest$ac_exeext conftest.$ac_ext
26709 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
26710 pluginlibs=
26711 enable_plugin=no
26712 fi
26713 LDFLAGS="$saved_LDFLAGS"
26714 CFLAGS="$saved_CFLAGS"
26715
26716 # If plugin support had been requested but not available, fail.
26717 if test x"$enable_plugin" = x"no" ; then
26718 if test x"$default_plugin" != x"yes"; then
26719 as_fn_error "
26720 Building GCC with plugin support requires a host that supports
26721 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
26722 fi
26723 fi
26724 fi
26725
26726
26727
26728 if test x"$enable_plugin" = x"yes"; then
26729
26730 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
26731
26732 fi
26733
26734
26735 # Check whether --enable-libquadmath-support was given.
26736 if test "${enable_libquadmath_support+set}" = set; then :
26737 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
26738 else
26739 ENABLE_LIBQUADMATH_SUPPORT=yes
26740 fi
26741
26742 if test "${ENABLE_LIBQUADMATH_SUPPORT}" != "no" ; then
26743
26744 $as_echo "#define ENABLE_LIBQUADMATH_SUPPORT 1" >>confdefs.h
26745
26746 fi
26747
26748
26749 # Specify what hash style to use by default.
26750
26751 # Check whether --with-linker-hash-style was given.
26752 if test "${with_linker_hash_style+set}" = set; then :
26753 withval=$with_linker_hash_style; case x"$withval" in
26754 xsysv)
26755 LINKER_HASH_STYLE=sysv
26756 ;;
26757 xgnu)
26758 LINKER_HASH_STYLE=gnu
26759 ;;
26760 xboth)
26761 LINKER_HASH_STYLE=both
26762 ;;
26763 *)
26764 as_fn_error "$withval is an invalid option to --with-linker-hash-style" "$LINENO" 5
26765 ;;
26766 esac
26767 else
26768 LINKER_HASH_STYLE=''
26769 fi
26770
26771 if test x"${LINKER_HASH_STYLE}" != x; then
26772
26773 cat >>confdefs.h <<_ACEOF
26774 #define LINKER_HASH_STYLE "$LINKER_HASH_STYLE"
26775 _ACEOF
26776
26777 fi
26778
26779 # Configure the subdirectories
26780 # AC_CONFIG_SUBDIRS($subdirs)
26781
26782 # Create the Makefile
26783 # and configure language subdirectories
26784 ac_config_files="$ac_config_files $all_outputs"
26785
26786
26787 ac_config_commands="$ac_config_commands default"
26788
26789 cat >confcache <<\_ACEOF
26790 # This file is a shell script that caches the results of configure
26791 # tests run on this system so they can be shared between configure
26792 # scripts and configure runs, see configure's option --config-cache.
26793 # It is not useful on other systems. If it contains results you don't
26794 # want to keep, you may remove or edit it.
26795 #
26796 # config.status only pays attention to the cache file if you give it
26797 # the --recheck option to rerun configure.
26798 #
26799 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26800 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26801 # following values.
26802
26803 _ACEOF
26804
26805 # The following way of writing the cache mishandles newlines in values,
26806 # but we know of no workaround that is simple, portable, and efficient.
26807 # So, we kill variables containing newlines.
26808 # Ultrix sh set writes to stderr and can't be redirected directly,
26809 # and sets the high bit in the cache file unless we assign to the vars.
26810 (
26811 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26812 eval ac_val=\$$ac_var
26813 case $ac_val in #(
26814 *${as_nl}*)
26815 case $ac_var in #(
26816 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26817 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26818 esac
26819 case $ac_var in #(
26820 _ | IFS | as_nl) ;; #(
26821 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26822 *) { eval $ac_var=; unset $ac_var;} ;;
26823 esac ;;
26824 esac
26825 done
26826
26827 (set) 2>&1 |
26828 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26829 *${as_nl}ac_space=\ *)
26830 # `set' does not quote correctly, so add quotes: double-quote
26831 # substitution turns \\\\ into \\, and sed turns \\ into \.
26832 sed -n \
26833 "s/'/'\\\\''/g;
26834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26835 ;; #(
26836 *)
26837 # `set' quotes correctly as required by POSIX, so do not add quotes.
26838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26839 ;;
26840 esac |
26841 sort
26842 ) |
26843 sed '
26844 /^ac_cv_env_/b end
26845 t clear
26846 :clear
26847 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26848 t end
26849 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26850 :end' >>confcache
26851 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26852 if test -w "$cache_file"; then
26853 test "x$cache_file" != "x/dev/null" &&
26854 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26855 $as_echo "$as_me: updating cache $cache_file" >&6;}
26856 cat confcache >$cache_file
26857 else
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26859 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26860 fi
26861 fi
26862 rm -f confcache
26863
26864 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26865 # Let make expand exec_prefix.
26866 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26867
26868 DEFS=-DHAVE_CONFIG_H
26869
26870 ac_libobjs=
26871 ac_ltlibobjs=
26872 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26873 # 1. Remove the extension, and $U if already installed.
26874 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26875 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26876 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26877 # will be set to the directory where LIBOBJS objects are built.
26878 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26879 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26880 done
26881 LIBOBJS=$ac_libobjs
26882
26883 LTLIBOBJS=$ac_ltlibobjs
26884
26885
26886
26887
26888 : ${CONFIG_STATUS=./config.status}
26889 ac_write_fail=0
26890 ac_clean_files_save=$ac_clean_files
26891 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26893 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26894 as_write_fail=0
26895 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26896 #! $SHELL
26897 # Generated by $as_me.
26898 # Run this file to recreate the current configuration.
26899 # Compiler output produced by configure, useful for debugging
26900 # configure, is in config.log if it exists.
26901
26902 debug=false
26903 ac_cs_recheck=false
26904 ac_cs_silent=false
26905
26906 SHELL=\${CONFIG_SHELL-$SHELL}
26907 export SHELL
26908 _ASEOF
26909 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26910 ## -------------------- ##
26911 ## M4sh Initialization. ##
26912 ## -------------------- ##
26913
26914 # Be more Bourne compatible
26915 DUALCASE=1; export DUALCASE # for MKS sh
26916 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26917 emulate sh
26918 NULLCMD=:
26919 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26920 # is contrary to our usage. Disable this feature.
26921 alias -g '${1+"$@"}'='"$@"'
26922 setopt NO_GLOB_SUBST
26923 else
26924 case `(set -o) 2>/dev/null` in #(
26925 *posix*) :
26926 set -o posix ;; #(
26927 *) :
26928 ;;
26929 esac
26930 fi
26931
26932
26933 as_nl='
26934 '
26935 export as_nl
26936 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26937 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26938 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26939 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26940 # Prefer a ksh shell builtin over an external printf program on Solaris,
26941 # but without wasting forks for bash or zsh.
26942 if test -z "$BASH_VERSION$ZSH_VERSION" \
26943 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26944 as_echo='print -r --'
26945 as_echo_n='print -rn --'
26946 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26947 as_echo='printf %s\n'
26948 as_echo_n='printf %s'
26949 else
26950 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26951 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26952 as_echo_n='/usr/ucb/echo -n'
26953 else
26954 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26955 as_echo_n_body='eval
26956 arg=$1;
26957 case $arg in #(
26958 *"$as_nl"*)
26959 expr "X$arg" : "X\\(.*\\)$as_nl";
26960 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26961 esac;
26962 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26963 '
26964 export as_echo_n_body
26965 as_echo_n='sh -c $as_echo_n_body as_echo'
26966 fi
26967 export as_echo_body
26968 as_echo='sh -c $as_echo_body as_echo'
26969 fi
26970
26971 # The user is always right.
26972 if test "${PATH_SEPARATOR+set}" != set; then
26973 PATH_SEPARATOR=:
26974 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26975 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26976 PATH_SEPARATOR=';'
26977 }
26978 fi
26979
26980
26981 # IFS
26982 # We need space, tab and new line, in precisely that order. Quoting is
26983 # there to prevent editors from complaining about space-tab.
26984 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26985 # splitting by setting IFS to empty value.)
26986 IFS=" "" $as_nl"
26987
26988 # Find who we are. Look in the path if we contain no directory separator.
26989 case $0 in #((
26990 *[\\/]* ) as_myself=$0 ;;
26991 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26992 for as_dir in $PATH
26993 do
26994 IFS=$as_save_IFS
26995 test -z "$as_dir" && as_dir=.
26996 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26997 done
26998 IFS=$as_save_IFS
26999
27000 ;;
27001 esac
27002 # We did not find ourselves, most probably we were run as `sh COMMAND'
27003 # in which case we are not to be found in the path.
27004 if test "x$as_myself" = x; then
27005 as_myself=$0
27006 fi
27007 if test ! -f "$as_myself"; then
27008 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27009 exit 1
27010 fi
27011
27012 # Unset variables that we do not need and which cause bugs (e.g. in
27013 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
27014 # suppresses any "Segmentation fault" message there. '((' could
27015 # trigger a bug in pdksh 5.2.14.
27016 for as_var in BASH_ENV ENV MAIL MAILPATH
27017 do eval test x\${$as_var+set} = xset \
27018 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
27019 done
27020 PS1='$ '
27021 PS2='> '
27022 PS4='+ '
27023
27024 # NLS nuisances.
27025 LC_ALL=C
27026 export LC_ALL
27027 LANGUAGE=C
27028 export LANGUAGE
27029
27030 # CDPATH.
27031 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27032
27033
27034 # as_fn_error ERROR [LINENO LOG_FD]
27035 # ---------------------------------
27036 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
27037 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
27038 # script with status $?, using 1 if that was 0.
27039 as_fn_error ()
27040 {
27041 as_status=$?; test $as_status -eq 0 && as_status=1
27042 if test "$3"; then
27043 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
27044 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
27045 fi
27046 $as_echo "$as_me: error: $1" >&2
27047 as_fn_exit $as_status
27048 } # as_fn_error
27049
27050
27051 # as_fn_set_status STATUS
27052 # -----------------------
27053 # Set $? to STATUS, without forking.
27054 as_fn_set_status ()
27055 {
27056 return $1
27057 } # as_fn_set_status
27058
27059 # as_fn_exit STATUS
27060 # -----------------
27061 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27062 as_fn_exit ()
27063 {
27064 set +e
27065 as_fn_set_status $1
27066 exit $1
27067 } # as_fn_exit
27068
27069 # as_fn_unset VAR
27070 # ---------------
27071 # Portably unset VAR.
27072 as_fn_unset ()
27073 {
27074 { eval $1=; unset $1;}
27075 }
27076 as_unset=as_fn_unset
27077 # as_fn_append VAR VALUE
27078 # ----------------------
27079 # Append the text in VALUE to the end of the definition contained in VAR. Take
27080 # advantage of any shell optimizations that allow amortized linear growth over
27081 # repeated appends, instead of the typical quadratic growth present in naive
27082 # implementations.
27083 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27084 eval 'as_fn_append ()
27085 {
27086 eval $1+=\$2
27087 }'
27088 else
27089 as_fn_append ()
27090 {
27091 eval $1=\$$1\$2
27092 }
27093 fi # as_fn_append
27094
27095 # as_fn_arith ARG...
27096 # ------------------
27097 # Perform arithmetic evaluation on the ARGs, and store the result in the
27098 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27099 # must be portable across $(()) and expr.
27100 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27101 eval 'as_fn_arith ()
27102 {
27103 as_val=$(( $* ))
27104 }'
27105 else
27106 as_fn_arith ()
27107 {
27108 as_val=`expr "$@" || test $? -eq 1`
27109 }
27110 fi # as_fn_arith
27111
27112
27113 if expr a : '\(a\)' >/dev/null 2>&1 &&
27114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27115 as_expr=expr
27116 else
27117 as_expr=false
27118 fi
27119
27120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27121 as_basename=basename
27122 else
27123 as_basename=false
27124 fi
27125
27126 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27127 as_dirname=dirname
27128 else
27129 as_dirname=false
27130 fi
27131
27132 as_me=`$as_basename -- "$0" ||
27133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27134 X"$0" : 'X\(//\)$' \| \
27135 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27136 $as_echo X/"$0" |
27137 sed '/^.*\/\([^/][^/]*\)\/*$/{
27138 s//\1/
27139 q
27140 }
27141 /^X\/\(\/\/\)$/{
27142 s//\1/
27143 q
27144 }
27145 /^X\/\(\/\).*/{
27146 s//\1/
27147 q
27148 }
27149 s/.*/./; q'`
27150
27151 # Avoid depending upon Character Ranges.
27152 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27153 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27154 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27155 as_cr_digits='0123456789'
27156 as_cr_alnum=$as_cr_Letters$as_cr_digits
27157
27158 ECHO_C= ECHO_N= ECHO_T=
27159 case `echo -n x` in #(((((
27160 -n*)
27161 case `echo 'xy\c'` in
27162 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27163 xy) ECHO_C='\c';;
27164 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27165 ECHO_T=' ';;
27166 esac;;
27167 *)
27168 ECHO_N='-n';;
27169 esac
27170
27171 rm -f conf$$ conf$$.exe conf$$.file
27172 if test -d conf$$.dir; then
27173 rm -f conf$$.dir/conf$$.file
27174 else
27175 rm -f conf$$.dir
27176 mkdir conf$$.dir 2>/dev/null
27177 fi
27178 if (echo >conf$$.file) 2>/dev/null; then
27179 if ln -s conf$$.file conf$$ 2>/dev/null; then
27180 as_ln_s='ln -s'
27181 # ... but there are two gotchas:
27182 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27183 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27184 # In both cases, we have to default to `cp -p'.
27185 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27186 as_ln_s='cp -p'
27187 elif ln conf$$.file conf$$ 2>/dev/null; then
27188 as_ln_s=ln
27189 else
27190 as_ln_s='cp -p'
27191 fi
27192 else
27193 as_ln_s='cp -p'
27194 fi
27195 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27196 rmdir conf$$.dir 2>/dev/null
27197
27198
27199 # as_fn_mkdir_p
27200 # -------------
27201 # Create "$as_dir" as a directory, including parents if necessary.
27202 as_fn_mkdir_p ()
27203 {
27204
27205 case $as_dir in #(
27206 -*) as_dir=./$as_dir;;
27207 esac
27208 test -d "$as_dir" || eval $as_mkdir_p || {
27209 as_dirs=
27210 while :; do
27211 case $as_dir in #(
27212 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27213 *) as_qdir=$as_dir;;
27214 esac
27215 as_dirs="'$as_qdir' $as_dirs"
27216 as_dir=`$as_dirname -- "$as_dir" ||
27217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27218 X"$as_dir" : 'X\(//\)[^/]' \| \
27219 X"$as_dir" : 'X\(//\)$' \| \
27220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27221 $as_echo X"$as_dir" |
27222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27223 s//\1/
27224 q
27225 }
27226 /^X\(\/\/\)[^/].*/{
27227 s//\1/
27228 q
27229 }
27230 /^X\(\/\/\)$/{
27231 s//\1/
27232 q
27233 }
27234 /^X\(\/\).*/{
27235 s//\1/
27236 q
27237 }
27238 s/.*/./; q'`
27239 test -d "$as_dir" && break
27240 done
27241 test -z "$as_dirs" || eval "mkdir $as_dirs"
27242 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27243
27244
27245 } # as_fn_mkdir_p
27246 if mkdir -p . 2>/dev/null; then
27247 as_mkdir_p='mkdir -p "$as_dir"'
27248 else
27249 test -d ./-p && rmdir ./-p
27250 as_mkdir_p=false
27251 fi
27252
27253 if test -x / >/dev/null 2>&1; then
27254 as_test_x='test -x'
27255 else
27256 if ls -dL / >/dev/null 2>&1; then
27257 as_ls_L_option=L
27258 else
27259 as_ls_L_option=
27260 fi
27261 as_test_x='
27262 eval sh -c '\''
27263 if test -d "$1"; then
27264 test -d "$1/.";
27265 else
27266 case $1 in #(
27267 -*)set "./$1";;
27268 esac;
27269 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27270 ???[sx]*):;;*)false;;esac;fi
27271 '\'' sh
27272 '
27273 fi
27274 as_executable_p=$as_test_x
27275
27276 # Sed expression to map a string onto a valid CPP name.
27277 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27278
27279 # Sed expression to map a string onto a valid variable name.
27280 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27281
27282
27283 exec 6>&1
27284 ## ----------------------------------- ##
27285 ## Main body of $CONFIG_STATUS script. ##
27286 ## ----------------------------------- ##
27287 _ASEOF
27288 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27289
27290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27291 # Save the log message, to keep $0 and so on meaningful, and to
27292 # report actual input values of CONFIG_FILES etc. instead of their
27293 # values after options handling.
27294 ac_log="
27295 This file was extended by $as_me, which was
27296 generated by GNU Autoconf 2.64. Invocation command line was
27297
27298 CONFIG_FILES = $CONFIG_FILES
27299 CONFIG_HEADERS = $CONFIG_HEADERS
27300 CONFIG_LINKS = $CONFIG_LINKS
27301 CONFIG_COMMANDS = $CONFIG_COMMANDS
27302 $ $0 $@
27303
27304 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27305 "
27306
27307 _ACEOF
27308
27309 case $ac_config_files in *"
27310 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27311 esac
27312
27313 case $ac_config_headers in *"
27314 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27315 esac
27316
27317
27318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27319 # Files that config.status was made for.
27320 config_files="$ac_config_files"
27321 config_headers="$ac_config_headers"
27322 config_commands="$ac_config_commands"
27323
27324 _ACEOF
27325
27326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27327 ac_cs_usage="\
27328 \`$as_me' instantiates files and other configuration actions
27329 from templates according to the current configuration. Unless the files
27330 and actions are specified as TAGs, all are instantiated by default.
27331
27332 Usage: $0 [OPTION]... [TAG]...
27333
27334 -h, --help print this help, then exit
27335 -V, --version print version number and configuration settings, then exit
27336 -q, --quiet, --silent
27337 do not print progress messages
27338 -d, --debug don't remove temporary files
27339 --recheck update $as_me by reconfiguring in the same conditions
27340 --file=FILE[:TEMPLATE]
27341 instantiate the configuration file FILE
27342 --header=FILE[:TEMPLATE]
27343 instantiate the configuration header FILE
27344
27345 Configuration files:
27346 $config_files
27347
27348 Configuration headers:
27349 $config_headers
27350
27351 Configuration commands:
27352 $config_commands
27353
27354 Report bugs to the package provider."
27355
27356 _ACEOF
27357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27358 ac_cs_version="\\
27359 config.status
27360 configured by $0, generated by GNU Autoconf 2.64,
27361 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27362
27363 Copyright (C) 2009 Free Software Foundation, Inc.
27364 This config.status script is free software; the Free Software Foundation
27365 gives unlimited permission to copy, distribute and modify it."
27366
27367 ac_pwd='$ac_pwd'
27368 srcdir='$srcdir'
27369 AWK='$AWK'
27370 test -n "\$AWK" || AWK=awk
27371 _ACEOF
27372
27373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27374 # The default lists apply if the user does not specify any file.
27375 ac_need_defaults=:
27376 while test $# != 0
27377 do
27378 case $1 in
27379 --*=*)
27380 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27381 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27382 ac_shift=:
27383 ;;
27384 *)
27385 ac_option=$1
27386 ac_optarg=$2
27387 ac_shift=shift
27388 ;;
27389 esac
27390
27391 case $ac_option in
27392 # Handling of the options.
27393 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27394 ac_cs_recheck=: ;;
27395 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27396 $as_echo "$ac_cs_version"; exit ;;
27397 --debug | --debu | --deb | --de | --d | -d )
27398 debug=: ;;
27399 --file | --fil | --fi | --f )
27400 $ac_shift
27401 case $ac_optarg in
27402 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27403 esac
27404 as_fn_append CONFIG_FILES " '$ac_optarg'"
27405 ac_need_defaults=false;;
27406 --header | --heade | --head | --hea )
27407 $ac_shift
27408 case $ac_optarg in
27409 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27410 esac
27411 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27412 ac_need_defaults=false;;
27413 --he | --h)
27414 # Conflict between --help and --header
27415 as_fn_error "ambiguous option: \`$1'
27416 Try \`$0 --help' for more information.";;
27417 --help | --hel | -h )
27418 $as_echo "$ac_cs_usage"; exit ;;
27419 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27420 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27421 ac_cs_silent=: ;;
27422
27423 # This is an error.
27424 -*) as_fn_error "unrecognized option: \`$1'
27425 Try \`$0 --help' for more information." ;;
27426
27427 *) as_fn_append ac_config_targets " $1"
27428 ac_need_defaults=false ;;
27429
27430 esac
27431 shift
27432 done
27433
27434 ac_configure_extra_args=
27435
27436 if $ac_cs_silent; then
27437 exec 6>/dev/null
27438 ac_configure_extra_args="$ac_configure_extra_args --silent"
27439 fi
27440
27441 _ACEOF
27442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27443 if \$ac_cs_recheck; then
27444 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27445 shift
27446 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27447 CONFIG_SHELL='$SHELL'
27448 export CONFIG_SHELL
27449 exec "\$@"
27450 fi
27451
27452 _ACEOF
27453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27454 exec 5>>config.log
27455 {
27456 echo
27457 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27458 ## Running $as_me. ##
27459 _ASBOX
27460 $as_echo "$ac_log"
27461 } >&5
27462
27463 _ACEOF
27464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27465 #
27466 # INIT-COMMANDS
27467 #
27468 subdirs='$subdirs'
27469
27470 _ACEOF
27471
27472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27473
27474 # Handling of arguments.
27475 for ac_config_target in $ac_config_targets
27476 do
27477 case $ac_config_target in
27478 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
27479 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
27480 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
27481 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
27482 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
27483 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27484
27485 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27486 esac
27487 done
27488
27489
27490 # If the user did not use the arguments to specify the items to instantiate,
27491 # then the envvar interface is used. Set only those that are not.
27492 # We use the long form for the default assignment because of an extremely
27493 # bizarre bug on SunOS 4.1.3.
27494 if $ac_need_defaults; then
27495 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27496 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27497 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27498 fi
27499
27500 # Have a temporary directory for convenience. Make it in the build tree
27501 # simply because there is no reason against having it here, and in addition,
27502 # creating and moving files from /tmp can sometimes cause problems.
27503 # Hook for its removal unless debugging.
27504 # Note that there is a small window in which the directory will not be cleaned:
27505 # after its creation but before its name has been assigned to `$tmp'.
27506 $debug ||
27507 {
27508 tmp=
27509 trap 'exit_status=$?
27510 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27511 ' 0
27512 trap 'as_fn_exit 1' 1 2 13 15
27513 }
27514 # Create a (secure) tmp directory for tmp files.
27515
27516 {
27517 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27518 test -n "$tmp" && test -d "$tmp"
27519 } ||
27520 {
27521 tmp=./conf$$-$RANDOM
27522 (umask 077 && mkdir "$tmp")
27523 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27524
27525 # Set up the scripts for CONFIG_FILES section.
27526 # No need to generate them if there are no CONFIG_FILES.
27527 # This happens for instance with `./config.status config.h'.
27528 if test -n "$CONFIG_FILES"; then
27529
27530 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
27531 ac_cs_awk_getline=:
27532 ac_cs_awk_pipe_init=
27533 ac_cs_awk_read_file='
27534 while ((getline aline < (F[key])) > 0)
27535 print(aline)
27536 close(F[key])'
27537 ac_cs_awk_pipe_fini=
27538 else
27539 ac_cs_awk_getline=false
27540 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
27541 ac_cs_awk_read_file='
27542 print "|#_!!_#|"
27543 print "cat " F[key] " &&"
27544 '$ac_cs_awk_pipe_init
27545 # The final `:' finishes the AND list.
27546 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
27547 fi
27548 ac_cr=`echo X | tr X '\015'`
27549 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27550 # But we know of no other shell where ac_cr would be empty at this
27551 # point, so we can use a bashism as a fallback.
27552 if test "x$ac_cr" = x; then
27553 eval ac_cr=\$\'\\r\'
27554 fi
27555 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27556 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27557 ac_cs_awk_cr='\r'
27558 else
27559 ac_cs_awk_cr=$ac_cr
27560 fi
27561
27562 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27563 _ACEOF
27564
27565 # Create commands to substitute file output variables.
27566 {
27567 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
27568 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
27569 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
27570 echo "_ACAWK" &&
27571 echo "_ACEOF"
27572 } >conf$$files.sh &&
27573 . ./conf$$files.sh ||
27574 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27575 rm -f conf$$files.sh
27576
27577 {
27578 echo "cat >conf$$subs.awk <<_ACEOF" &&
27579 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27580 echo "_ACEOF"
27581 } >conf$$subs.sh ||
27582 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27583 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27584 ac_delim='%!_!# '
27585 for ac_last_try in false false false false false :; do
27586 . ./conf$$subs.sh ||
27587 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27588
27589 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27590 if test $ac_delim_n = $ac_delim_num; then
27591 break
27592 elif $ac_last_try; then
27593 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27594 else
27595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27596 fi
27597 done
27598 rm -f conf$$subs.sh
27599
27600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27601 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27602 _ACEOF
27603 sed -n '
27604 h
27605 s/^/S["/; s/!.*/"]=/
27606 p
27607 g
27608 s/^[^!]*!//
27609 :repl
27610 t repl
27611 s/'"$ac_delim"'$//
27612 t delim
27613 :nl
27614 h
27615 s/\(.\{148\}\).*/\1/
27616 t more1
27617 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27618 p
27619 n
27620 b repl
27621 :more1
27622 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27623 p
27624 g
27625 s/.\{148\}//
27626 t nl
27627 :delim
27628 h
27629 s/\(.\{148\}\).*/\1/
27630 t more2
27631 s/["\\]/\\&/g; s/^/"/; s/$/"/
27632 p
27633 b
27634 :more2
27635 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27636 p
27637 g
27638 s/.\{148\}//
27639 t delim
27640 ' <conf$$subs.awk | sed '
27641 /^[^""]/{
27642 N
27643 s/\n//
27644 }
27645 ' >>$CONFIG_STATUS || ac_write_fail=1
27646 rm -f conf$$subs.awk
27647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27648 _ACAWK
27649 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27650 for (key in S) S_is_set[key] = 1
27651 FS = "\a"
27652 \$ac_cs_awk_pipe_init
27653 }
27654 {
27655 line = $ 0
27656 nfields = split(line, field, "@")
27657 substed = 0
27658 len = length(field[1])
27659 for (i = 2; i < nfields; i++) {
27660 key = field[i]
27661 keylen = length(key)
27662 if (S_is_set[key]) {
27663 value = S[key]
27664 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27665 len += length(value) + length(field[++i])
27666 substed = 1
27667 } else
27668 len += 1 + keylen
27669 }
27670 if (nfields == 3 && !substed) {
27671 key = field[2]
27672 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
27673 \$ac_cs_awk_read_file
27674 next
27675 }
27676 }
27677 print line
27678 }
27679 \$ac_cs_awk_pipe_fini
27680 _ACAWK
27681 _ACEOF
27682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27683 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27684 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27685 else
27686 cat
27687 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27688 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27689 _ACEOF
27690
27691 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27692 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27693 # trailing colons and then remove the whole line if VPATH becomes empty
27694 # (actually we leave an empty line to preserve line numbers).
27695 if test "x$srcdir" = x.; then
27696 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27697 s/:*\$(srcdir):*/:/
27698 s/:*\${srcdir}:*/:/
27699 s/:*@srcdir@:*/:/
27700 s/^\([^=]*=[ ]*\):*/\1/
27701 s/:*$//
27702 s/^[^=]*=[ ]*$//
27703 }'
27704 fi
27705
27706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27707 fi # test -n "$CONFIG_FILES"
27708
27709 # Set up the scripts for CONFIG_HEADERS section.
27710 # No need to generate them if there are no CONFIG_HEADERS.
27711 # This happens for instance with `./config.status Makefile'.
27712 if test -n "$CONFIG_HEADERS"; then
27713 cat >"$tmp/defines.awk" <<\_ACAWK ||
27714 BEGIN {
27715 _ACEOF
27716
27717 # Transform confdefs.h into an awk script `defines.awk', embedded as
27718 # here-document in config.status, that substitutes the proper values into
27719 # config.h.in to produce config.h.
27720
27721 # Create a delimiter string that does not exist in confdefs.h, to ease
27722 # handling of long lines.
27723 ac_delim='%!_!# '
27724 for ac_last_try in false false :; do
27725 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27726 if test -z "$ac_t"; then
27727 break
27728 elif $ac_last_try; then
27729 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27730 else
27731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27732 fi
27733 done
27734
27735 # For the awk script, D is an array of macro values keyed by name,
27736 # likewise P contains macro parameters if any. Preserve backslash
27737 # newline sequences.
27738
27739 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27740 sed -n '
27741 s/.\{148\}/&'"$ac_delim"'/g
27742 t rset
27743 :rset
27744 s/^[ ]*#[ ]*define[ ][ ]*/ /
27745 t def
27746 d
27747 :def
27748 s/\\$//
27749 t bsnl
27750 s/["\\]/\\&/g
27751 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27752 D["\1"]=" \3"/p
27753 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27754 d
27755 :bsnl
27756 s/["\\]/\\&/g
27757 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27758 D["\1"]=" \3\\\\\\n"\\/p
27759 t cont
27760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27761 t cont
27762 d
27763 :cont
27764 n
27765 s/.\{148\}/&'"$ac_delim"'/g
27766 t clear
27767 :clear
27768 s/\\$//
27769 t bsnlc
27770 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27771 d
27772 :bsnlc
27773 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27774 b cont
27775 ' <confdefs.h | sed '
27776 s/'"$ac_delim"'/"\\\
27777 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27778
27779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27780 for (key in D) D_is_set[key] = 1
27781 FS = "\a"
27782 }
27783 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27784 line = \$ 0
27785 split(line, arg, " ")
27786 if (arg[1] == "#") {
27787 defundef = arg[2]
27788 mac1 = arg[3]
27789 } else {
27790 defundef = substr(arg[1], 2)
27791 mac1 = arg[2]
27792 }
27793 split(mac1, mac2, "(") #)
27794 macro = mac2[1]
27795 prefix = substr(line, 1, index(line, defundef) - 1)
27796 if (D_is_set[macro]) {
27797 # Preserve the white space surrounding the "#".
27798 print prefix "define", macro P[macro] D[macro]
27799 next
27800 } else {
27801 # Replace #undef with comments. This is necessary, for example,
27802 # in the case of _POSIX_SOURCE, which is predefined and required
27803 # on some systems where configure will not decide to define it.
27804 if (defundef == "undef") {
27805 print "/*", prefix defundef, macro, "*/"
27806 next
27807 }
27808 }
27809 }
27810 { print }
27811 _ACAWK
27812 _ACEOF
27813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27814 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27815 fi # test -n "$CONFIG_HEADERS"
27816
27817
27818 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27819 shift
27820 for ac_tag
27821 do
27822 case $ac_tag in
27823 :[FHLC]) ac_mode=$ac_tag; continue;;
27824 esac
27825 case $ac_mode$ac_tag in
27826 :[FHL]*:*);;
27827 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27828 :[FH]-) ac_tag=-:-;;
27829 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27830 esac
27831 ac_save_IFS=$IFS
27832 IFS=:
27833 set x $ac_tag
27834 IFS=$ac_save_IFS
27835 shift
27836 ac_file=$1
27837 shift
27838
27839 case $ac_mode in
27840 :L) ac_source=$1;;
27841 :[FH])
27842 ac_file_inputs=
27843 for ac_f
27844 do
27845 case $ac_f in
27846 -) ac_f="$tmp/stdin";;
27847 *) # Look for the file first in the build tree, then in the source tree
27848 # (if the path is not absolute). The absolute path cannot be DOS-style,
27849 # because $ac_f cannot contain `:'.
27850 test -f "$ac_f" ||
27851 case $ac_f in
27852 [\\/$]*) false;;
27853 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27854 esac ||
27855 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27856 esac
27857 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27858 as_fn_append ac_file_inputs " '$ac_f'"
27859 done
27860
27861 # Let's still pretend it is `configure' which instantiates (i.e., don't
27862 # use $as_me), people would be surprised to read:
27863 # /* config.h. Generated by config.status. */
27864 configure_input='Generated from '`
27865 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27866 `' by configure.'
27867 if test x"$ac_file" != x-; then
27868 configure_input="$ac_file. $configure_input"
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27870 $as_echo "$as_me: creating $ac_file" >&6;}
27871 fi
27872 # Neutralize special characters interpreted by sed in replacement strings.
27873 case $configure_input in #(
27874 *\&* | *\|* | *\\* )
27875 ac_sed_conf_input=`$as_echo "$configure_input" |
27876 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27877 *) ac_sed_conf_input=$configure_input;;
27878 esac
27879
27880 case $ac_tag in
27881 *:-:* | *:-) cat >"$tmp/stdin" \
27882 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27883 esac
27884 ;;
27885 esac
27886
27887 ac_dir=`$as_dirname -- "$ac_file" ||
27888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27889 X"$ac_file" : 'X\(//\)[^/]' \| \
27890 X"$ac_file" : 'X\(//\)$' \| \
27891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27892 $as_echo X"$ac_file" |
27893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27894 s//\1/
27895 q
27896 }
27897 /^X\(\/\/\)[^/].*/{
27898 s//\1/
27899 q
27900 }
27901 /^X\(\/\/\)$/{
27902 s//\1/
27903 q
27904 }
27905 /^X\(\/\).*/{
27906 s//\1/
27907 q
27908 }
27909 s/.*/./; q'`
27910 as_dir="$ac_dir"; as_fn_mkdir_p
27911 ac_builddir=.
27912
27913 case "$ac_dir" in
27914 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27915 *)
27916 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27917 # A ".." for each directory in $ac_dir_suffix.
27918 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27919 case $ac_top_builddir_sub in
27920 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27921 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27922 esac ;;
27923 esac
27924 ac_abs_top_builddir=$ac_pwd
27925 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27926 # for backward compatibility:
27927 ac_top_builddir=$ac_top_build_prefix
27928
27929 case $srcdir in
27930 .) # We are building in place.
27931 ac_srcdir=.
27932 ac_top_srcdir=$ac_top_builddir_sub
27933 ac_abs_top_srcdir=$ac_pwd ;;
27934 [\\/]* | ?:[\\/]* ) # Absolute name.
27935 ac_srcdir=$srcdir$ac_dir_suffix;
27936 ac_top_srcdir=$srcdir
27937 ac_abs_top_srcdir=$srcdir ;;
27938 *) # Relative name.
27939 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27940 ac_top_srcdir=$ac_top_build_prefix$srcdir
27941 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27942 esac
27943 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27944
27945
27946 case $ac_mode in
27947 :F)
27948 #
27949 # CONFIG_FILE
27950 #
27951
27952 _ACEOF
27953
27954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27955 # If the template does not know about datarootdir, expand it.
27956 # FIXME: This hack should be removed a few years after 2.60.
27957 ac_datarootdir_hack=; ac_datarootdir_seen=
27958 ac_sed_dataroot='
27959 /datarootdir/ {
27960 p
27961 q
27962 }
27963 /@datadir@/p
27964 /@docdir@/p
27965 /@infodir@/p
27966 /@localedir@/p
27967 /@mandir@/p'
27968 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27969 *datarootdir*) ac_datarootdir_seen=yes;;
27970 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27972 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27973 _ACEOF
27974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27975 ac_datarootdir_hack='
27976 s&@datadir@&$datadir&g
27977 s&@docdir@&$docdir&g
27978 s&@infodir@&$infodir&g
27979 s&@localedir@&$localedir&g
27980 s&@mandir@&$mandir&g
27981 s&\\\${datarootdir}&$datarootdir&g' ;;
27982 esac
27983 _ACEOF
27984
27985 # Neutralize VPATH when `$srcdir' = `.'.
27986 # Shell code in configure.ac might set extrasub.
27987 # FIXME: do we really want to maintain this feature?
27988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27989 ac_sed_extra="$ac_vpsub
27990 $extrasub
27991 _ACEOF
27992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27993 :t
27994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27995 s|@configure_input@|$ac_sed_conf_input|;t t
27996 s&@top_builddir@&$ac_top_builddir_sub&;t t
27997 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27998 s&@srcdir@&$ac_srcdir&;t t
27999 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28000 s&@top_srcdir@&$ac_top_srcdir&;t t
28001 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28002 s&@builddir@&$ac_builddir&;t t
28003 s&@abs_builddir@&$ac_abs_builddir&;t t
28004 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28005 $ac_datarootdir_hack
28006 "
28007 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
28008 if $ac_cs_awk_getline; then
28009 $AWK -f "$tmp/subs.awk"
28010 else
28011 $AWK -f "$tmp/subs.awk" | $SHELL
28012 fi >$tmp/out \
28013 || as_fn_error "could not create $ac_file" "$LINENO" 5
28014
28015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28016 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28019 which seems to be undefined. Please make sure it is defined." >&5
28020 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28021 which seems to be undefined. Please make sure it is defined." >&2;}
28022
28023 rm -f "$tmp/stdin"
28024 case $ac_file in
28025 -) cat "$tmp/out" && rm -f "$tmp/out";;
28026 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28027 esac \
28028 || as_fn_error "could not create $ac_file" "$LINENO" 5
28029 ;;
28030 :H)
28031 #
28032 # CONFIG_HEADER
28033 #
28034 if test x"$ac_file" != x-; then
28035 {
28036 $as_echo "/* $configure_input */" \
28037 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28038 } >"$tmp/config.h" \
28039 || as_fn_error "could not create $ac_file" "$LINENO" 5
28040 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28042 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28043 else
28044 rm -f "$ac_file"
28045 mv "$tmp/config.h" "$ac_file" \
28046 || as_fn_error "could not create $ac_file" "$LINENO" 5
28047 fi
28048 else
28049 $as_echo "/* $configure_input */" \
28050 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28051 || as_fn_error "could not create -" "$LINENO" 5
28052 fi
28053 ;;
28054
28055 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28056 $as_echo "$as_me: executing $ac_file commands" >&6;}
28057 ;;
28058 esac
28059
28060
28061 case $ac_file$ac_mode in
28062 "as":F) chmod +x as ;;
28063 "collect-ld":F) chmod +x collect-ld ;;
28064 "nm":F) chmod +x nm ;;
28065 "default":C)
28066 case ${CONFIG_HEADERS} in
28067 *auto-host.h:config.in*)
28068 echo > cstamp-h ;;
28069 esac
28070 # Make sure all the subdirs exist.
28071 for d in $subdirs doc build common c-family
28072 do
28073 test -d $d || mkdir $d
28074 done
28075 ;;
28076
28077 esac
28078 done # for ac_tag
28079
28080
28081 as_fn_exit 0
28082 _ACEOF
28083 ac_clean_files=$ac_clean_files_save
28084
28085 test $ac_write_fail = 0 ||
28086 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28087
28088
28089 # configure is writing to config.log, and then calls config.status.
28090 # config.status does its own redirection, appending to config.log.
28091 # Unfortunately, on DOS this fails, as config.log is still kept open
28092 # by configure, so config.status won't be able to write to it; its
28093 # output is simply discarded. So we exec the FD to /dev/null,
28094 # effectively closing config.log, so it can be properly (re)opened and
28095 # appended to by config.status. When coming back to configure, we
28096 # need to make the FD available again.
28097 if test "$no_create" != yes; then
28098 ac_cs_success=:
28099 ac_config_status_args=
28100 test "$silent" = yes &&
28101 ac_config_status_args="$ac_config_status_args --quiet"
28102 exec 5>/dev/null
28103 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28104 exec 5>>config.log
28105 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28106 # would make configure fail if this is the last instruction.
28107 $ac_cs_success || as_fn_exit $?
28108 fi
28109 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28111 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28112 fi
28113
28114