]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/configure
configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check for "lock addl".
[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 LIBELFINC
606 LIBELFLIBS
607 CLOOGINC
608 CLOOGLIBS
609 PPLINC
610 PPLLIBS
611 GMPINC
612 GMPLIBS
613 target_cpu_default
614 fortran_target_objs
615 cxx_target_objs
616 c_target_objs
617 use_gcc_stdint
618 xm_defines
619 xm_include_list
620 xm_file_list
621 tm_p_include_list
622 tm_p_file_list
623 tm_defines
624 tm_include_list
625 tm_file_list
626 thread_file
627 out_object_file
628 out_file
629 objc_boehm_gc
630 md_file
631 local_prefix
632 lang_tree_files
633 lang_specs_files
634 lang_opt_files
635 install
636 out_host_hook_obj
637 host_xm_defines
638 host_xm_include_list
639 host_xm_file_list
640 host_exeext
641 gcc_gxx_include_dir
642 gcc_config_arguments
643 float_h_file
644 extra_programs
645 extra_passes
646 extra_parts
647 extra_objs
648 extra_headers_list
649 extra_gcc_objs
650 TM_MULTILIB_EXCEPTIONS_CONFIG
651 TM_MULTILIB_CONFIG
652 TM_ENDIAN_CONFIG
653 tmake_file
654 xmake_file
655 cpp_install_dir
656 check_languages
657 build_file_translate
658 build_xm_defines
659 build_xm_include_list
660 build_xm_file_list
661 build_install_headers_dir
662 build_exeext
663 all_selected_languages
664 all_languages
665 all_lang_makefrags
666 all_gtfiles
667 all_compilers
668 srcdir
669 subdirs
670 slibdir
671 dollar
672 gcc_tooldir
673 LTO_USE_LIBELF
674 LTO_BINARY_READER
675 enable_lto
676 MAINT
677 zlibinc
678 zlibdir
679 HOST_LIBS
680 GGC
681 libgcc_visibility
682 gcc_cv_readelf
683 gcc_cv_objdump
684 ORIGINAL_NM_FOR_TARGET
685 gcc_cv_nm
686 ORIGINAL_LD_FOR_TARGET
687 ORIGINAL_PLUGIN_LD_FOR_TARGET
688 gcc_cv_ld
689 ORIGINAL_AS_FOR_TARGET
690 gcc_cv_as
691 enable_fast_install
692 objdir
693 CXXCPP
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 STRIP
700 OBJDUMP
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 SED
706 LIBTOOL
707 collect2
708 STMP_FIXINC
709 BUILD_LDFLAGS
710 BUILD_CFLAGS
711 CC_FOR_BUILD
712 inhibit_libc
713 SYSTEM_HEADER_DIR
714 ALL
715 CROSS
716 CATOBJEXT
717 GENCAT
718 INSTOBJEXT
719 DATADIRNAME
720 CATALOGS
721 POSUB
722 GMSGFMT
723 XGETTEXT
724 INCINTL
725 LIBINTL_DEP
726 LIBINTL
727 USE_NLS
728 extra_opt_files
729 extra_modes_file
730 gthread_flags
731 objext
732 manext
733 LIBICONV_DEP
734 LTLIBICONV
735 LIBICONV
736 LDEXP_LIB
737 GNAT_LIBEXC
738 COLLECT2_LIBS
739 AR
740 NM
741 BISON
742 FLEX
743 GENERATED_MANPAGES
744 BUILD_INFO
745 MAKEINFO
746 have_mktemp_command
747 make_compare_target
748 INSTALL_DATA
749 INSTALL_PROGRAM
750 INSTALL
751 ranlib_flags
752 RANLIB
753 LN
754 LN_S
755 AWK
756 SET_MAKE
757 REPORT_BUGS_TEXI
758 REPORT_BUGS_TO
759 PKGVERSION
760 onestep
761 CONFIGURE_SPECS
762 CROSS_SYSTEM_HEADER_DIR
763 TARGET_SYSTEM_ROOT_DEFINE
764 TARGET_SYSTEM_ROOT
765 enable_shared
766 enable_fixed_point
767 enable_decimal_float
768 enable_multilib
769 ENABLE_BUILD_WITH_CXX
770 coverage_flags
771 valgrind_command
772 valgrind_path_defines
773 valgrind_path
774 TREEBROWSER
775 nocommon_flag
776 warn_cxxflags
777 warn_cflags
778 c_strict_warn
779 strict_warn
780 c_loose_warn
781 loose_warn
782 EGREP
783 GREP
784 CPP
785 OUTPUT_OPTION
786 NO_MINUS_C_MINUS_O
787 GNATMAKE
788 GNATBIND
789 ac_ct_CXX
790 CXXFLAGS
791 CXX
792 OBJEXT
793 EXEEXT
794 ac_ct_CC
795 CPPFLAGS
796 LDFLAGS
797 CFLAGS
798 CC
799 GENINSRC
800 target_subdir
801 host_subdir
802 build_subdir
803 build_libsubdir
804 target_noncanonical
805 target_os
806 target_vendor
807 target_cpu
808 target
809 host_os
810 host_vendor
811 host_cpu
812 host
813 build_os
814 build_vendor
815 build_cpu
816 build
817 target_alias
818 host_alias
819 build_alias
820 LIBS
821 ECHO_T
822 ECHO_N
823 ECHO_C
824 DEFS
825 mandir
826 localedir
827 libdir
828 psdir
829 pdfdir
830 dvidir
831 htmldir
832 infodir
833 docdir
834 oldincludedir
835 includedir
836 localstatedir
837 sharedstatedir
838 sysconfdir
839 datadir
840 datarootdir
841 libexecdir
842 sbindir
843 bindir
844 program_transform_name
845 prefix
846 exec_prefix
847 PACKAGE_URL
848 PACKAGE_BUGREPORT
849 PACKAGE_STRING
850 PACKAGE_VERSION
851 PACKAGE_TARNAME
852 PACKAGE_NAME
853 PATH_SEPARATOR
854 SHELL'
855 ac_subst_files='language_hooks'
856 ac_user_opts='
857 enable_option_checking
858 with_build_libsubdir
859 with_local_prefix
860 with_gxx_include_dir
861 with_cpp_install_dir
862 enable_generated_files_in_srcdir
863 with_gnu_ld
864 with_ld
865 with_demangler_in_ld
866 with_gnu_as
867 with_as
868 enable_werror_always
869 enable_checking
870 enable_coverage
871 enable_gather_detailed_mem_stats
872 enable_build_with_cxx
873 with_stabs
874 enable_multilib
875 enable___cxa_atexit
876 enable_decimal_float
877 enable_fixed_point
878 enable_threads
879 enable_tls
880 enable_objc_gc
881 with_dwarf2
882 enable_shared
883 with_build_sysroot
884 with_sysroot
885 with_specs
886 enable_intermodule
887 with_pkgversion
888 with_bugurl
889 enable_languages
890 with_multilib_list
891 enable_rpath
892 with_libiconv_prefix
893 enable_initfini_array
894 enable_sjlj_exceptions
895 with_system_libunwind
896 enable_secureplt
897 enable_leading_mingw64_underscores
898 enable_cld
899 enable_win32_registry
900 enable_static
901 with_pic
902 enable_fast_install
903 enable_libtool_lock
904 with_plugin_ld
905 enable_comdat
906 enable_gnu_unique_object
907 enable_linker_build_id
908 with_long_double_128
909 with_gc
910 with_system_zlib
911 enable_maintainer_mode
912 enable_version_specific_runtime_libs
913 with_slibdir
914 enable_plugin
915 '
916 ac_precious_vars='build_alias
917 host_alias
918 target_alias
919 CC
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
924 CXX
925 CXXFLAGS
926 CCC
927 CPP
928 CXXCPP
929 GMPLIBS
930 GMPINC
931 PPLLIBS
932 PPLINC
933 CLOOGLIBS
934 CLOOGINC
935 LIBELFLIBS
936 LIBELFINC'
937
938
939 # Initialize some variables set by options.
940 ac_init_help=
941 ac_init_version=false
942 ac_unrecognized_opts=
943 ac_unrecognized_sep=
944 # The variables have the same names as the options, with
945 # dashes changed to underlines.
946 cache_file=/dev/null
947 exec_prefix=NONE
948 no_create=
949 no_recursion=
950 prefix=NONE
951 program_prefix=NONE
952 program_suffix=NONE
953 program_transform_name=s,x,x,
954 silent=
955 site=
956 srcdir=
957 verbose=
958 x_includes=NONE
959 x_libraries=NONE
960
961 # Installation directory options.
962 # These are left unexpanded so users can "make install exec_prefix=/foo"
963 # and all the variables that are supposed to be based on exec_prefix
964 # by default will actually change.
965 # Use braces instead of parens because sh, perl, etc. also accept them.
966 # (The list follows the same order as the GNU Coding Standards.)
967 bindir='${exec_prefix}/bin'
968 sbindir='${exec_prefix}/sbin'
969 libexecdir='${exec_prefix}/libexec'
970 datarootdir='${prefix}/share'
971 datadir='${datarootdir}'
972 sysconfdir='${prefix}/etc'
973 sharedstatedir='${prefix}/com'
974 localstatedir='${prefix}/var'
975 includedir='${prefix}/include'
976 oldincludedir='/usr/include'
977 docdir='${datarootdir}/doc/${PACKAGE}'
978 infodir='${datarootdir}/info'
979 htmldir='${docdir}'
980 dvidir='${docdir}'
981 pdfdir='${docdir}'
982 psdir='${docdir}'
983 libdir='${exec_prefix}/lib'
984 localedir='${datarootdir}/locale'
985 mandir='${datarootdir}/man'
986
987 ac_prev=
988 ac_dashdash=
989 for ac_option
990 do
991 # If the previous option needs an argument, assign it.
992 if test -n "$ac_prev"; then
993 eval $ac_prev=\$ac_option
994 ac_prev=
995 continue
996 fi
997
998 case $ac_option in
999 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1000 *) ac_optarg=yes ;;
1001 esac
1002
1003 # Accept the important Cygnus configure options, so we can diagnose typos.
1004
1005 case $ac_dashdash$ac_option in
1006 --)
1007 ac_dashdash=yes ;;
1008
1009 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1010 ac_prev=bindir ;;
1011 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1012 bindir=$ac_optarg ;;
1013
1014 -build | --build | --buil | --bui | --bu)
1015 ac_prev=build_alias ;;
1016 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1017 build_alias=$ac_optarg ;;
1018
1019 -cache-file | --cache-file | --cache-fil | --cache-fi \
1020 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1021 ac_prev=cache_file ;;
1022 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1023 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1024 cache_file=$ac_optarg ;;
1025
1026 --config-cache | -C)
1027 cache_file=config.cache ;;
1028
1029 -datadir | --datadir | --datadi | --datad)
1030 ac_prev=datadir ;;
1031 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1032 datadir=$ac_optarg ;;
1033
1034 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1035 | --dataroo | --dataro | --datar)
1036 ac_prev=datarootdir ;;
1037 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1038 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1039 datarootdir=$ac_optarg ;;
1040
1041 -disable-* | --disable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=no ;;
1056
1057 -docdir | --docdir | --docdi | --doc | --do)
1058 ac_prev=docdir ;;
1059 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1060 docdir=$ac_optarg ;;
1061
1062 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1063 ac_prev=dvidir ;;
1064 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1065 dvidir=$ac_optarg ;;
1066
1067 -enable-* | --enable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076 "enable_$ac_useropt"
1077 "*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=\$ac_optarg ;;
1082
1083 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1084 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1085 | --exec | --exe | --ex)
1086 ac_prev=exec_prefix ;;
1087 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1088 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1089 | --exec=* | --exe=* | --ex=*)
1090 exec_prefix=$ac_optarg ;;
1091
1092 -gas | --gas | --ga | --g)
1093 # Obsolete; use --with-gas.
1094 with_gas=yes ;;
1095
1096 -help | --help | --hel | --he | -h)
1097 ac_init_help=long ;;
1098 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1099 ac_init_help=recursive ;;
1100 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1101 ac_init_help=short ;;
1102
1103 -host | --host | --hos | --ho)
1104 ac_prev=host_alias ;;
1105 -host=* | --host=* | --hos=* | --ho=*)
1106 host_alias=$ac_optarg ;;
1107
1108 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1109 ac_prev=htmldir ;;
1110 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1111 | --ht=*)
1112 htmldir=$ac_optarg ;;
1113
1114 -includedir | --includedir | --includedi | --included | --include \
1115 | --includ | --inclu | --incl | --inc)
1116 ac_prev=includedir ;;
1117 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1118 | --includ=* | --inclu=* | --incl=* | --inc=*)
1119 includedir=$ac_optarg ;;
1120
1121 -infodir | --infodir | --infodi | --infod | --info | --inf)
1122 ac_prev=infodir ;;
1123 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1124 infodir=$ac_optarg ;;
1125
1126 -libdir | --libdir | --libdi | --libd)
1127 ac_prev=libdir ;;
1128 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1129 libdir=$ac_optarg ;;
1130
1131 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1132 | --libexe | --libex | --libe)
1133 ac_prev=libexecdir ;;
1134 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1135 | --libexe=* | --libex=* | --libe=*)
1136 libexecdir=$ac_optarg ;;
1137
1138 -localedir | --localedir | --localedi | --localed | --locale)
1139 ac_prev=localedir ;;
1140 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1141 localedir=$ac_optarg ;;
1142
1143 -localstatedir | --localstatedir | --localstatedi | --localstated \
1144 | --localstate | --localstat | --localsta | --localst | --locals)
1145 ac_prev=localstatedir ;;
1146 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1147 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1148 localstatedir=$ac_optarg ;;
1149
1150 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1151 ac_prev=mandir ;;
1152 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1153 mandir=$ac_optarg ;;
1154
1155 -nfp | --nfp | --nf)
1156 # Obsolete; use --without-fp.
1157 with_fp=no ;;
1158
1159 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1160 | --no-cr | --no-c | -n)
1161 no_create=yes ;;
1162
1163 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1164 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1165 no_recursion=yes ;;
1166
1167 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1168 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1169 | --oldin | --oldi | --old | --ol | --o)
1170 ac_prev=oldincludedir ;;
1171 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1172 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1173 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1174 oldincludedir=$ac_optarg ;;
1175
1176 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1177 ac_prev=prefix ;;
1178 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1179 prefix=$ac_optarg ;;
1180
1181 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1182 | --program-pre | --program-pr | --program-p)
1183 ac_prev=program_prefix ;;
1184 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1185 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1186 program_prefix=$ac_optarg ;;
1187
1188 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1189 | --program-suf | --program-su | --program-s)
1190 ac_prev=program_suffix ;;
1191 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1192 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1193 program_suffix=$ac_optarg ;;
1194
1195 -program-transform-name | --program-transform-name \
1196 | --program-transform-nam | --program-transform-na \
1197 | --program-transform-n | --program-transform- \
1198 | --program-transform | --program-transfor \
1199 | --program-transfo | --program-transf \
1200 | --program-trans | --program-tran \
1201 | --progr-tra | --program-tr | --program-t)
1202 ac_prev=program_transform_name ;;
1203 -program-transform-name=* | --program-transform-name=* \
1204 | --program-transform-nam=* | --program-transform-na=* \
1205 | --program-transform-n=* | --program-transform-=* \
1206 | --program-transform=* | --program-transfor=* \
1207 | --program-transfo=* | --program-transf=* \
1208 | --program-trans=* | --program-tran=* \
1209 | --progr-tra=* | --program-tr=* | --program-t=*)
1210 program_transform_name=$ac_optarg ;;
1211
1212 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1213 ac_prev=pdfdir ;;
1214 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1215 pdfdir=$ac_optarg ;;
1216
1217 -psdir | --psdir | --psdi | --psd | --ps)
1218 ac_prev=psdir ;;
1219 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1220 psdir=$ac_optarg ;;
1221
1222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1223 | -silent | --silent | --silen | --sile | --sil)
1224 silent=yes ;;
1225
1226 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1227 ac_prev=sbindir ;;
1228 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1229 | --sbi=* | --sb=*)
1230 sbindir=$ac_optarg ;;
1231
1232 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1233 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1234 | --sharedst | --shareds | --shared | --share | --shar \
1235 | --sha | --sh)
1236 ac_prev=sharedstatedir ;;
1237 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1238 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1239 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1240 | --sha=* | --sh=*)
1241 sharedstatedir=$ac_optarg ;;
1242
1243 -site | --site | --sit)
1244 ac_prev=site ;;
1245 -site=* | --site=* | --sit=*)
1246 site=$ac_optarg ;;
1247
1248 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1249 ac_prev=srcdir ;;
1250 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1251 srcdir=$ac_optarg ;;
1252
1253 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1254 | --syscon | --sysco | --sysc | --sys | --sy)
1255 ac_prev=sysconfdir ;;
1256 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1257 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1258 sysconfdir=$ac_optarg ;;
1259
1260 -target | --target | --targe | --targ | --tar | --ta | --t)
1261 ac_prev=target_alias ;;
1262 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1263 target_alias=$ac_optarg ;;
1264
1265 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1266 verbose=yes ;;
1267
1268 -version | --version | --versio | --versi | --vers | -V)
1269 ac_init_version=: ;;
1270
1271 -with-* | --with-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
1286
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1295 *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval with_$ac_useropt=no ;;
1302
1303 --x)
1304 # Obsolete; use --with-x.
1305 with_x=yes ;;
1306
1307 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1308 | --x-incl | --x-inc | --x-in | --x-i)
1309 ac_prev=x_includes ;;
1310 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1311 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1312 x_includes=$ac_optarg ;;
1313
1314 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1315 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1316 ac_prev=x_libraries ;;
1317 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1318 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1319 x_libraries=$ac_optarg ;;
1320
1321 -*) as_fn_error "unrecognized option: \`$ac_option'
1322 Try \`$0 --help' for more information."
1323 ;;
1324
1325 *=*)
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
1328 case $ac_envvar in #(
1329 '' | [0-9]* | *[!_$as_cr_alnum]* )
1330 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1331 esac
1332 eval $ac_envvar=\$ac_optarg
1333 export $ac_envvar ;;
1334
1335 *)
1336 # FIXME: should be removed in autoconf 3.0.
1337 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1338 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1339 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1340 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1341 ;;
1342
1343 esac
1344 done
1345
1346 if test -n "$ac_prev"; then
1347 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1348 as_fn_error "missing argument to $ac_option"
1349 fi
1350
1351 if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1353 no) ;;
1354 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1355 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1356 esac
1357 fi
1358
1359 # Check all directory arguments for consistency.
1360 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1361 datadir sysconfdir sharedstatedir localstatedir includedir \
1362 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1363 libdir localedir mandir
1364 do
1365 eval ac_val=\$$ac_var
1366 # Remove trailing slashes.
1367 case $ac_val in
1368 */ )
1369 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1370 eval $ac_var=\$ac_val;;
1371 esac
1372 # Be sure to have absolute directory names.
1373 case $ac_val in
1374 [\\/$]* | ?:[\\/]* ) continue;;
1375 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1376 esac
1377 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1378 done
1379
1380 # There might be people who depend on the old broken behavior: `$host'
1381 # used to hold the argument of --host etc.
1382 # FIXME: To remove some day.
1383 build=$build_alias
1384 host=$host_alias
1385 target=$target_alias
1386
1387 # FIXME: To remove some day.
1388 if test "x$host_alias" != x; then
1389 if test "x$build_alias" = x; then
1390 cross_compiling=maybe
1391 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1392 If a cross compiler is detected then cross compile mode will be used." >&2
1393 elif test "x$build_alias" != "x$host_alias"; then
1394 cross_compiling=yes
1395 fi
1396 fi
1397
1398 ac_tool_prefix=
1399 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1400
1401 test "$silent" = yes && exec 6>/dev/null
1402
1403
1404 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1405 ac_ls_di=`ls -di .` &&
1406 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1407 as_fn_error "working directory cannot be determined"
1408 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1409 as_fn_error "pwd does not report name of working directory"
1410
1411
1412 # Find the source files, if location was not specified.
1413 if test -z "$srcdir"; then
1414 ac_srcdir_defaulted=yes
1415 # Try the directory containing this script, then the parent directory.
1416 ac_confdir=`$as_dirname -- "$as_myself" ||
1417 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1418 X"$as_myself" : 'X\(//\)[^/]' \| \
1419 X"$as_myself" : 'X\(//\)$' \| \
1420 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1421 $as_echo X"$as_myself" |
1422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1423 s//\1/
1424 q
1425 }
1426 /^X\(\/\/\)[^/].*/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)$/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\).*/{
1435 s//\1/
1436 q
1437 }
1438 s/.*/./; q'`
1439 srcdir=$ac_confdir
1440 if test ! -r "$srcdir/$ac_unique_file"; then
1441 srcdir=..
1442 fi
1443 else
1444 ac_srcdir_defaulted=no
1445 fi
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1448 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1449 fi
1450 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1451 ac_abs_confdir=`(
1452 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1453 pwd)`
1454 # When building in place, set srcdir=.
1455 if test "$ac_abs_confdir" = "$ac_pwd"; then
1456 srcdir=.
1457 fi
1458 # Remove unnecessary trailing slashes from srcdir.
1459 # Double slashes in file names in object file debugging info
1460 # mess up M-x gdb in Emacs.
1461 case $srcdir in
1462 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1463 esac
1464 for ac_var in $ac_precious_vars; do
1465 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1466 eval ac_env_${ac_var}_value=\$${ac_var}
1467 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1468 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1469 done
1470
1471 #
1472 # Report the --help message.
1473 #
1474 if test "$ac_init_help" = "long"; then
1475 # Omit some internal or obsolete options to make the list less imposing.
1476 # This message is too long to be a string in the A/UX 3.1 sh.
1477 cat <<_ACEOF
1478 \`configure' configures this package to adapt to many kinds of systems.
1479
1480 Usage: $0 [OPTION]... [VAR=VALUE]...
1481
1482 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1483 VAR=VALUE. See below for descriptions of some of the useful variables.
1484
1485 Defaults for the options are specified in brackets.
1486
1487 Configuration:
1488 -h, --help display this help and exit
1489 --help=short display options specific to this package
1490 --help=recursive display the short help of all the included packages
1491 -V, --version display version information and exit
1492 -q, --quiet, --silent do not print \`checking...' messages
1493 --cache-file=FILE cache test results in FILE [disabled]
1494 -C, --config-cache alias for \`--cache-file=config.cache'
1495 -n, --no-create do not create output files
1496 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1497
1498 Installation directories:
1499 --prefix=PREFIX install architecture-independent files in PREFIX
1500 [$ac_default_prefix]
1501 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1502 [PREFIX]
1503
1504 By default, \`make install' will install all the files in
1505 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1506 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1507 for instance \`--prefix=\$HOME'.
1508
1509 For better control, use the options below.
1510
1511 Fine tuning of the installation directories:
1512 --bindir=DIR user executables [EPREFIX/bin]
1513 --sbindir=DIR system admin executables [EPREFIX/sbin]
1514 --libexecdir=DIR program executables [EPREFIX/libexec]
1515 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1516 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1517 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1518 --libdir=DIR object code libraries [EPREFIX/lib]
1519 --includedir=DIR C header files [PREFIX/include]
1520 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1521 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1522 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1523 --infodir=DIR info documentation [DATAROOTDIR/info]
1524 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1525 --mandir=DIR man documentation [DATAROOTDIR/man]
1526 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1527 --htmldir=DIR html documentation [DOCDIR]
1528 --dvidir=DIR dvi documentation [DOCDIR]
1529 --pdfdir=DIR pdf documentation [DOCDIR]
1530 --psdir=DIR ps documentation [DOCDIR]
1531 _ACEOF
1532
1533 cat <<\_ACEOF
1534
1535 Program names:
1536 --program-prefix=PREFIX prepend PREFIX to installed program names
1537 --program-suffix=SUFFIX append SUFFIX to installed program names
1538 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1539
1540 System types:
1541 --build=BUILD configure for building on BUILD [guessed]
1542 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1543 --target=TARGET configure for building compilers for TARGET [HOST]
1544 _ACEOF
1545 fi
1546
1547 if test -n "$ac_init_help"; then
1548
1549 cat <<\_ACEOF
1550
1551 Optional Features:
1552 --disable-option-checking ignore unrecognized --enable/--with options
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1555 --enable-generated-files-in-srcdir
1556 put copies of generated files in source dir
1557 intended for creating source tarballs for users
1558 without texinfo bison or flex.
1559 --enable-werror-always enable -Werror despite compiler version
1560 --enable-checking=LIST
1561 enable expensive run-time checks. With LIST,
1562 enable only specific categories of checks.
1563 Categories are: yes,no,all,none,release.
1564 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1565 rtlflag,rtl,runtime,tree,valgrind,types.
1566 --enable-coverage=LEVEL
1567 enable compiler's code coverage collection.
1568 Use to measure compiler performance and locate
1569 unused parts of the compiler. With LEVEL, specify
1570 optimization. Values are opt, noopt,
1571 default is noopt
1572 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1573 --enable-build-with-cxx build with C++ compiler instead of C compiler
1574 --enable-multilib enable library support for multiple ABIs
1575 --enable-__cxa_atexit enable __cxa_atexit for C++
1576 --enable-decimal-float={no,yes,bid,dpd}
1577 enable decimal float extension to C. Selecting 'bid'
1578 or 'dpd' choses which decimal floating point format
1579 to use
1580 --enable-fixed-point enable fixed-point arithmetic extension to C
1581 --enable-threads enable thread usage for target GCC
1582 --enable-threads=LIB use LIB thread package for target GCC
1583 --enable-tls enable or disable generation of tls code
1584 overriding the assembler check for tls support
1585 --enable-objc-gc enable the use of Boehm's garbage collector with
1586 the GNU Objective-C runtime
1587 --disable-shared don't provide a shared libgcc
1588 --enable-intermodule build the compiler in one step
1589 --enable-languages=LIST specify which front-ends to build
1590 --disable-rpath do not hardcode runtime library paths
1591 --enable-initfini-array use .init_array/.fini_array sections
1592 --enable-sjlj-exceptions
1593 arrange to use setjmp/longjmp exception handling
1594 --enable-secureplt enable -msecure-plt by default for PowerPC
1595 --enable-leading-mingw64-underscores
1596 Enable leading underscores on 64 bit mingw targets
1597 --enable-cld enable -mcld by default for 32bit x86
1598 --disable-win32-registry
1599 disable lookup of installation paths in the
1600 Registry on Windows hosts
1601 --enable-win32-registry enable registry lookup (default)
1602 --enable-win32-registry=KEY
1603 use KEY instead of GCC version as the last portion
1604 of the registry key
1605 --enable-shared[=PKGS] build shared libraries [default=yes]
1606 --enable-static[=PKGS] build static libraries [default=yes]
1607 --enable-fast-install[=PKGS]
1608 optimize for fast installation [default=yes]
1609 --disable-libtool-lock avoid locking (might break parallel builds)
1610 --enable-comdat enable COMDAT group support
1611 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1612 glibc systems
1613 --enable-linker-build-id
1614 compiler will always pass --build-id to linker
1615 --enable-maintainer-mode
1616 enable make rules and dependencies not useful
1617 (and sometimes confusing) to the casual installer
1618 --enable-version-specific-runtime-libs
1619 specify that runtime libraries should be
1620 installed in a compiler-specific directory
1621 --enable-plugin enable plugin support
1622
1623 Optional Packages:
1624 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1625 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1626 --with-build-libsubdir=DIR Directory where to find libraries for build system
1627 --with-local-prefix=DIR specifies directory to put local include
1628 --with-gxx-include-dir=DIR
1629 specifies directory to put g++ header files
1630 --with-cpp-install-dir=DIR
1631 install the user visible C preprocessor in DIR
1632 (relative to PREFIX) as well as PREFIX/bin
1633 --with-gnu-ld arrange to work with GNU ld.
1634 --with-ld arrange to use the specified ld (full pathname)
1635 --with-demangler-in-ld try to use demangler in GNU ld.
1636 --with-gnu-as arrange to work with GNU as
1637 --with-as arrange to use the specified as (full pathname)
1638 --with-stabs arrange to use stabs instead of host debug format
1639 --with-dwarf2 force the default debug format to be DWARF 2
1640 --with-build-sysroot=sysroot
1641 use sysroot as the system root during the build
1642 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1643 --with-specs=SPECS add SPECS to driver command-line processing
1644 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1645 --with-bugurl=URL Direct users to URL to report a bug
1646 --with-multilib-list Select multilibs (SH only)
1647 --with-gnu-ld assume the C compiler uses GNU ld default=no
1648 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1649 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1650 --with-system-libunwind use installed libunwind
1651 --with-pic try to use only PIC/non-PIC objects [default=use
1652 both]
1653 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1654 --with-plugin-ld=[ARG] specify the plugin linker
1655 --with-long-double-128 Use 128-bit long double by default.
1656 --with-gc={page,zone} choose the garbage collection mechanism to use
1657 with the compiler
1658 --with-system-zlib use installed libz
1659 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1660
1661 Some influential environment variables:
1662 CC C compiler command
1663 CFLAGS C compiler flags
1664 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1665 nonstandard directory <lib dir>
1666 LIBS libraries to pass to the linker, e.g. -l<library>
1667 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1668 you have headers in a nonstandard directory <include dir>
1669 CXX C++ compiler command
1670 CXXFLAGS C++ compiler flags
1671 CPP C preprocessor
1672 CXXCPP C++ preprocessor
1673 GMPLIBS How to link GMP
1674 GMPINC How to find GMP include files
1675 PPLLIBS How to link PPL
1676 PPLINC How to find PPL include files
1677 CLOOGLIBS How to link CLOOG
1678 CLOOGINC How to find CLOOG include files
1679 LIBELFLIBS How to link libelf
1680 LIBELFINC How to find libelf include files
1681
1682 Use these variables to override the choices made by `configure' or to help
1683 it to find libraries and programs with nonstandard names/locations.
1684
1685 Report bugs to the package provider.
1686 _ACEOF
1687 ac_status=$?
1688 fi
1689
1690 if test "$ac_init_help" = "recursive"; then
1691 # If there are subdirs, report their specific --help.
1692 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1693 test -d "$ac_dir" ||
1694 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1695 continue
1696 ac_builddir=.
1697
1698 case "$ac_dir" in
1699 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1700 *)
1701 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1702 # A ".." for each directory in $ac_dir_suffix.
1703 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1704 case $ac_top_builddir_sub in
1705 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1707 esac ;;
1708 esac
1709 ac_abs_top_builddir=$ac_pwd
1710 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1711 # for backward compatibility:
1712 ac_top_builddir=$ac_top_build_prefix
1713
1714 case $srcdir in
1715 .) # We are building in place.
1716 ac_srcdir=.
1717 ac_top_srcdir=$ac_top_builddir_sub
1718 ac_abs_top_srcdir=$ac_pwd ;;
1719 [\\/]* | ?:[\\/]* ) # Absolute name.
1720 ac_srcdir=$srcdir$ac_dir_suffix;
1721 ac_top_srcdir=$srcdir
1722 ac_abs_top_srcdir=$srcdir ;;
1723 *) # Relative name.
1724 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1725 ac_top_srcdir=$ac_top_build_prefix$srcdir
1726 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1727 esac
1728 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1729
1730 cd "$ac_dir" || { ac_status=$?; continue; }
1731 # Check for guested configure.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1738 else
1739 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 fi || ac_status=$?
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1742 done
1743 fi
1744
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1747 cat <<\_ACEOF
1748 configure
1749 generated by GNU Autoconf 2.64
1750
1751 Copyright (C) 2009 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755 exit
1756 fi
1757
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1761
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789 else
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794 fi
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 return $ac_retval
1797
1798 } # ac_fn_c_try_compile
1799
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1804 {
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832 fi
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 return $ac_retval
1835
1836 } # ac_fn_cxx_try_compile
1837
1838 # ac_fn_c_try_cpp LINENO
1839 # ----------------------
1840 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_cpp ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_cpp conftest.$ac_ext"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1857 fi
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } >/dev/null && {
1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1861 test ! -s conftest.err
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869 fi
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1872
1873 } # ac_fn_c_try_cpp
1874
1875 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1876 # -------------------------------------------------------
1877 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1878 # the include files in INCLUDES and setting the cache variable VAR
1879 # accordingly.
1880 ac_fn_c_check_header_mongrel ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1887 $as_echo_n "(cached) " >&6
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 else
1893 # Is the header compilable?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1895 $as_echo_n "checking $2 usability... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 $4
1899 #include <$2>
1900 _ACEOF
1901 if ac_fn_c_try_compile "$LINENO"; then :
1902 ac_header_compiler=yes
1903 else
1904 ac_header_compiler=no
1905 fi
1906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1908 $as_echo "$ac_header_compiler" >&6; }
1909
1910 # Is the header present?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1912 $as_echo_n "checking $2 presence... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1915 #include <$2>
1916 _ACEOF
1917 if ac_fn_c_try_cpp "$LINENO"; then :
1918 ac_header_preproc=yes
1919 else
1920 ac_header_preproc=no
1921 fi
1922 rm -f conftest.err conftest.$ac_ext
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1924 $as_echo "$ac_header_preproc" >&6; }
1925
1926 # So? What about this header?
1927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1928 yes:no: )
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1930 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1932 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 ;;
1934 no:yes:* )
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1936 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1938 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1940 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1942 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 esac
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948 $as_echo_n "checking for $2... " >&6; }
1949 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1950 $as_echo_n "(cached) " >&6
1951 else
1952 eval "$3=\$ac_header_compiler"
1953 fi
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 fi
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959
1960 } # ac_fn_c_check_header_mongrel
1961
1962 # ac_fn_c_try_run LINENO
1963 # ----------------------
1964 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1965 # that executables *can* be run.
1966 ac_fn_c_try_run ()
1967 {
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 if { { ac_try="$ac_link"
1970 case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_link") 2>&5
1977 ac_status=$?
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1980 { { case "(($ac_try" in
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1983 esac
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_try") 2>&5
1987 ac_status=$?
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; }; }; then :
1990 ac_retval=0
1991 else
1992 $as_echo "$as_me: program exited with status $ac_status" >&5
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996 ac_retval=$ac_status
1997 fi
1998 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1999 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 return $ac_retval
2001
2002 } # ac_fn_c_try_run
2003
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2014 $as_echo_n "(cached) " >&6
2015 else
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $4
2019 #include <$2>
2020 _ACEOF
2021 if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$3=yes"
2023 else
2024 eval "$3=no"
2025 fi
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2027 fi
2028 eval ac_res=\$$3
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2032
2033 } # ac_fn_c_check_header_compile
2034
2035 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2036 # --------------------------------------------
2037 # Tries to find the compile-time value of EXPR in a program that includes
2038 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2039 # computed
2040 ac_fn_c_compute_int ()
2041 {
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 if test "$cross_compiling" = yes; then
2044 # Depending upon the size, compute the lo and hi bounds.
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 $4
2048 int
2049 main ()
2050 {
2051 static int test_array [1 - 2 * !(($2) >= 0)];
2052 test_array [0] = 0
2053
2054 ;
2055 return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_lo=0 ac_mid=0
2060 while :; do
2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h. */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2068 test_array [0] = 0
2069
2070 ;
2071 return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075 ac_hi=$ac_mid; break
2076 else
2077 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2078 if test $ac_lo -le $ac_mid; then
2079 ac_lo= ac_hi=
2080 break
2081 fi
2082 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 done
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 $4
2090 int
2091 main ()
2092 {
2093 static int test_array [1 - 2 * !(($2) < 0)];
2094 test_array [0] = 0
2095
2096 ;
2097 return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101 ac_hi=-1 ac_mid=-1
2102 while :; do
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2110 test_array [0] = 0
2111
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 if ac_fn_c_try_compile "$LINENO"; then :
2117 ac_lo=$ac_mid; break
2118 else
2119 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2120 if test $ac_mid -le $ac_hi; then
2121 ac_lo= ac_hi=
2122 break
2123 fi
2124 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 done
2128 else
2129 ac_lo= ac_hi=
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 # Binary search between lo and hi bounds.
2135 while test "x$ac_lo" != "x$ac_hi"; do
2136 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 $4
2140 int
2141 main ()
2142 {
2143 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144 test_array [0] = 0
2145
2146 ;
2147 return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_hi=$ac_mid
2152 else
2153 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 done
2157 case $ac_lo in #((
2158 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2159 '') ac_retval=1 ;;
2160 esac
2161 else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2164 $4
2165 static long int longval () { return $2; }
2166 static unsigned long int ulongval () { return $2; }
2167 #include <stdio.h>
2168 #include <stdlib.h>
2169 int
2170 main ()
2171 {
2172
2173 FILE *f = fopen ("conftest.val", "w");
2174 if (! f)
2175 return 1;
2176 if (($2) < 0)
2177 {
2178 long int i = longval ();
2179 if (i != ($2))
2180 return 1;
2181 fprintf (f, "%ld", i);
2182 }
2183 else
2184 {
2185 unsigned long int i = ulongval ();
2186 if (i != ($2))
2187 return 1;
2188 fprintf (f, "%lu", i);
2189 }
2190 /* Do not output a trailing newline, as this causes \r\n confusion
2191 on some platforms. */
2192 return ferror (f) || fclose (f) != 0;
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_run "$LINENO"; then :
2199 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2200 else
2201 ac_retval=1
2202 fi
2203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2204 conftest.$ac_objext conftest.beam conftest.$ac_ext
2205 rm -f conftest.val
2206
2207 fi
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 return $ac_retval
2210
2211 } # ac_fn_c_compute_int
2212
2213 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2214 # -------------------------------------------
2215 # Tests whether TYPE exists after having included INCLUDES, setting cache
2216 # variable VAR accordingly.
2217 ac_fn_c_check_type ()
2218 {
2219 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221 $as_echo_n "checking for $2... " >&6; }
2222 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2223 $as_echo_n "(cached) " >&6
2224 else
2225 eval "$3=no"
2226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h. */
2228 $4
2229 int
2230 main ()
2231 {
2232 if (sizeof ($2))
2233 return 0;
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2241 $4
2242 int
2243 main ()
2244 {
2245 if (sizeof (($2)))
2246 return 0;
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252
2253 else
2254 eval "$3=yes"
2255 fi
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 fi
2258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 fi
2260 eval ac_res=\$$3
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262 $as_echo "$ac_res" >&6; }
2263 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2264
2265 } # ac_fn_c_check_type
2266
2267 # ac_fn_c_find_intX_t LINENO BITS VAR
2268 # -----------------------------------
2269 # Finds a signed integer type with width BITS, setting cache variable VAR
2270 # accordingly.
2271 ac_fn_c_find_intX_t ()
2272 {
2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2275 $as_echo_n "checking for int$2_t... " >&6; }
2276 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2277 $as_echo_n "(cached) " >&6
2278 else
2279 eval "$3=no"
2280 for ac_type in int$2_t 'int' 'long int' \
2281 'long long int' 'short int' 'signed char'; do
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2284 $ac_includes_default
2285 int
2286 main ()
2287 {
2288 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2289 test_array [0] = 0
2290
2291 ;
2292 return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2298 $ac_includes_default
2299 int
2300 main ()
2301 {
2302 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2303 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2304 test_array [0] = 0
2305
2306 ;
2307 return 0;
2308 }
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2311
2312 else
2313 case $ac_type in #(
2314 int$2_t) :
2315 eval "$3=yes" ;; #(
2316 *) :
2317 eval "$3=\$ac_type" ;;
2318 esac
2319 fi
2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 eval as_val=\$$3
2324 if test "x$as_val" = x""no; then :
2325
2326 else
2327 break
2328 fi
2329 done
2330 fi
2331 eval ac_res=\$$3
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2334 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2335
2336 } # ac_fn_c_find_intX_t
2337
2338 # ac_fn_c_try_link LINENO
2339 # -----------------------
2340 # Try to link conftest.$ac_ext, and return whether this succeeded.
2341 ac_fn_c_try_link ()
2342 {
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 rm -f conftest.$ac_objext conftest$ac_exeext
2345 if { { ac_try="$ac_link"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link") 2>conftest.err
2353 ac_status=$?
2354 if test -s conftest.err; then
2355 grep -v '^ *+' conftest.err >conftest.er1
2356 cat conftest.er1 >&5
2357 mv -f conftest.er1 conftest.err
2358 fi
2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360 test $ac_status = 0; } && {
2361 test -z "$ac_c_werror_flag" ||
2362 test ! -s conftest.err
2363 } && test -s conftest$ac_exeext && {
2364 test "$cross_compiling" = yes ||
2365 $as_test_x conftest$ac_exeext
2366 }; then :
2367 ac_retval=0
2368 else
2369 $as_echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 ac_retval=1
2373 fi
2374 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376 # interfere with the next link command; also delete a directory that is
2377 # left behind by Apple's compiler. We do this before executing the actions.
2378 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2379 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 return $ac_retval
2381
2382 } # ac_fn_c_try_link
2383
2384 # ac_fn_c_find_uintX_t LINENO BITS VAR
2385 # ------------------------------------
2386 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2387 # accordingly.
2388 ac_fn_c_find_uintX_t ()
2389 {
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2392 $as_echo_n "checking for uint$2_t... " >&6; }
2393 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 eval "$3=no"
2397 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2398 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2401 $ac_includes_default
2402 int
2403 main ()
2404 {
2405 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2406 test_array [0] = 0
2407
2408 ;
2409 return 0;
2410 }
2411 _ACEOF
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413 case $ac_type in #(
2414 uint$2_t) :
2415 eval "$3=yes" ;; #(
2416 *) :
2417 eval "$3=\$ac_type" ;;
2418 esac
2419 fi
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 eval as_val=\$$3
2422 if test "x$as_val" = x""no; then :
2423
2424 else
2425 break
2426 fi
2427 done
2428 fi
2429 eval ac_res=\$$3
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433
2434 } # ac_fn_c_find_uintX_t
2435
2436 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2437 # ----------------------------------------------
2438 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2439 ac_fn_c_check_header_preproc ()
2440 {
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2446 else
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2449 #include <$2>
2450 _ACEOF
2451 if ac_fn_c_try_cpp "$LINENO"; then :
2452 eval "$3=yes"
2453 else
2454 eval "$3=no"
2455 fi
2456 rm -f conftest.err conftest.$ac_ext
2457 fi
2458 eval ac_res=\$$3
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2462
2463 } # ac_fn_c_check_header_preproc
2464
2465 # ac_fn_c_check_func LINENO FUNC VAR
2466 # ----------------------------------
2467 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2468 ac_fn_c_check_func ()
2469 {
2470 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2478 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2480 #define $2 innocuous_$2
2481
2482 /* System header to define __stub macros and hopefully few prototypes,
2483 which can conflict with char $2 (); below.
2484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485 <limits.h> exists even on freestanding compilers. */
2486
2487 #ifdef __STDC__
2488 # include <limits.h>
2489 #else
2490 # include <assert.h>
2491 #endif
2492
2493 #undef $2
2494
2495 /* Override any GCC internal prototype to avoid an error.
2496 Use char because int might match the return type of a GCC
2497 builtin and then its argument prototype would still apply. */
2498 #ifdef __cplusplus
2499 extern "C"
2500 #endif
2501 char $2 ();
2502 /* The GNU C library defines this for functions which it implements
2503 to always fail with ENOSYS. Some functions are actually named
2504 something starting with __ and the normal name is an alias. */
2505 #if defined __stub_$2 || defined __stub___$2
2506 choke me
2507 #endif
2508
2509 int
2510 main ()
2511 {
2512 return $2 ();
2513 ;
2514 return 0;
2515 }
2516 _ACEOF
2517 if ac_fn_c_try_link "$LINENO"; then :
2518 eval "$3=yes"
2519 else
2520 eval "$3=no"
2521 fi
2522 rm -f core conftest.err conftest.$ac_objext \
2523 conftest$ac_exeext conftest.$ac_ext
2524 fi
2525 eval ac_res=\$$3
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2527 $as_echo "$ac_res" >&6; }
2528 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2529
2530 } # ac_fn_c_check_func
2531
2532 # ac_fn_cxx_try_cpp LINENO
2533 # ------------------------
2534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2535 ac_fn_cxx_try_cpp ()
2536 {
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 if { { ac_try="$ac_cpp conftest.$ac_ext"
2539 case "(($ac_try" in
2540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541 *) ac_try_echo=$ac_try;;
2542 esac
2543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2544 $as_echo "$ac_try_echo"; } >&5
2545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2546 ac_status=$?
2547 if test -s conftest.err; then
2548 grep -v '^ *+' conftest.err >conftest.er1
2549 cat conftest.er1 >&5
2550 mv -f conftest.er1 conftest.err
2551 fi
2552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2553 test $ac_status = 0; } >/dev/null && {
2554 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2555 test ! -s conftest.err
2556 }; then :
2557 ac_retval=0
2558 else
2559 $as_echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 ac_retval=1
2563 fi
2564 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 return $ac_retval
2566
2567 } # ac_fn_cxx_try_cpp
2568
2569 # ac_fn_cxx_try_link LINENO
2570 # -------------------------
2571 # Try to link conftest.$ac_ext, and return whether this succeeded.
2572 ac_fn_cxx_try_link ()
2573 {
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 rm -f conftest.$ac_objext conftest$ac_exeext
2576 if { { ac_try="$ac_link"
2577 case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580 esac
2581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2582 $as_echo "$ac_try_echo"; } >&5
2583 (eval "$ac_link") 2>conftest.err
2584 ac_status=$?
2585 if test -s conftest.err; then
2586 grep -v '^ *+' conftest.err >conftest.er1
2587 cat conftest.er1 >&5
2588 mv -f conftest.er1 conftest.err
2589 fi
2590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2591 test $ac_status = 0; } && {
2592 test -z "$ac_cxx_werror_flag" ||
2593 test ! -s conftest.err
2594 } && test -s conftest$ac_exeext && {
2595 test "$cross_compiling" = yes ||
2596 $as_test_x conftest$ac_exeext
2597 }; then :
2598 ac_retval=0
2599 else
2600 $as_echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2602
2603 ac_retval=1
2604 fi
2605 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2606 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2607 # interfere with the next link command; also delete a directory that is
2608 # left behind by Apple's compiler. We do this before executing the actions.
2609 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2611 return $ac_retval
2612
2613 } # ac_fn_cxx_try_link
2614 cat >config.log <<_ACEOF
2615 This file contains any messages produced by compilers while
2616 running configure, to aid debugging if configure makes a mistake.
2617
2618 It was created by $as_me, which was
2619 generated by GNU Autoconf 2.64. Invocation command line was
2620
2621 $ $0 $@
2622
2623 _ACEOF
2624 exec 5>>config.log
2625 {
2626 cat <<_ASUNAME
2627 ## --------- ##
2628 ## Platform. ##
2629 ## --------- ##
2630
2631 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2632 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2633 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2634 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2635 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2636
2637 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2638 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2639
2640 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2641 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2642 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2643 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2644 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2645 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2646 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2647
2648 _ASUNAME
2649
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 $as_echo "PATH: $as_dir"
2656 done
2657 IFS=$as_save_IFS
2658
2659 } >&5
2660
2661 cat >&5 <<_ACEOF
2662
2663
2664 ## ----------- ##
2665 ## Core tests. ##
2666 ## ----------- ##
2667
2668 _ACEOF
2669
2670
2671 # Keep a trace of the command line.
2672 # Strip out --no-create and --no-recursion so they do not pile up.
2673 # Strip out --silent because we don't want to record it for future runs.
2674 # Also quote any args containing shell meta-characters.
2675 # Make two passes to allow for proper duplicate-argument suppression.
2676 ac_configure_args=
2677 ac_configure_args0=
2678 ac_configure_args1=
2679 ac_must_keep_next=false
2680 for ac_pass in 1 2
2681 do
2682 for ac_arg
2683 do
2684 case $ac_arg in
2685 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2687 | -silent | --silent | --silen | --sile | --sil)
2688 continue ;;
2689 *\'*)
2690 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2691 esac
2692 case $ac_pass in
2693 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2694 2)
2695 as_fn_append ac_configure_args1 " '$ac_arg'"
2696 if test $ac_must_keep_next = true; then
2697 ac_must_keep_next=false # Got value, back to normal.
2698 else
2699 case $ac_arg in
2700 *=* | --config-cache | -C | -disable-* | --disable-* \
2701 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2702 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2703 | -with-* | --with-* | -without-* | --without-* | --x)
2704 case "$ac_configure_args0 " in
2705 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2706 esac
2707 ;;
2708 -* ) ac_must_keep_next=true ;;
2709 esac
2710 fi
2711 as_fn_append ac_configure_args " '$ac_arg'"
2712 ;;
2713 esac
2714 done
2715 done
2716 { ac_configure_args0=; unset ac_configure_args0;}
2717 { ac_configure_args1=; unset ac_configure_args1;}
2718
2719 # When interrupted or exit'd, cleanup temporary files, and complete
2720 # config.log. We remove comments because anyway the quotes in there
2721 # would cause problems or look ugly.
2722 # WARNING: Use '\'' to represent an apostrophe within the trap.
2723 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2724 trap 'exit_status=$?
2725 # Save into config.log some information that might help in debugging.
2726 {
2727 echo
2728
2729 cat <<\_ASBOX
2730 ## ---------------- ##
2731 ## Cache variables. ##
2732 ## ---------------- ##
2733 _ASBOX
2734 echo
2735 # The following way of writing the cache mishandles newlines in values,
2736 (
2737 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2738 eval ac_val=\$$ac_var
2739 case $ac_val in #(
2740 *${as_nl}*)
2741 case $ac_var in #(
2742 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2743 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2744 esac
2745 case $ac_var in #(
2746 _ | IFS | as_nl) ;; #(
2747 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2748 *) { eval $ac_var=; unset $ac_var;} ;;
2749 esac ;;
2750 esac
2751 done
2752 (set) 2>&1 |
2753 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2754 *${as_nl}ac_space=\ *)
2755 sed -n \
2756 "s/'\''/'\''\\\\'\'''\''/g;
2757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2758 ;; #(
2759 *)
2760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2761 ;;
2762 esac |
2763 sort
2764 )
2765 echo
2766
2767 cat <<\_ASBOX
2768 ## ----------------- ##
2769 ## Output variables. ##
2770 ## ----------------- ##
2771 _ASBOX
2772 echo
2773 for ac_var in $ac_subst_vars
2774 do
2775 eval ac_val=\$$ac_var
2776 case $ac_val in
2777 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2778 esac
2779 $as_echo "$ac_var='\''$ac_val'\''"
2780 done | sort
2781 echo
2782
2783 if test -n "$ac_subst_files"; then
2784 cat <<\_ASBOX
2785 ## ------------------- ##
2786 ## File substitutions. ##
2787 ## ------------------- ##
2788 _ASBOX
2789 echo
2790 for ac_var in $ac_subst_files
2791 do
2792 eval ac_val=\$$ac_var
2793 case $ac_val in
2794 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2795 esac
2796 $as_echo "$ac_var='\''$ac_val'\''"
2797 done | sort
2798 echo
2799 fi
2800
2801 if test -s confdefs.h; then
2802 cat <<\_ASBOX
2803 ## ----------- ##
2804 ## confdefs.h. ##
2805 ## ----------- ##
2806 _ASBOX
2807 echo
2808 cat confdefs.h
2809 echo
2810 fi
2811 test "$ac_signal" != 0 &&
2812 $as_echo "$as_me: caught signal $ac_signal"
2813 $as_echo "$as_me: exit $exit_status"
2814 } >&5
2815 rm -f core *.core core.conftest.* &&
2816 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2817 exit $exit_status
2818 ' 0
2819 for ac_signal in 1 2 13 15; do
2820 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2821 done
2822 ac_signal=0
2823
2824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2825 rm -f -r conftest* confdefs.h
2826
2827 $as_echo "/* confdefs.h */" > confdefs.h
2828
2829 # Predefined preprocessor variables.
2830
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_NAME "$PACKAGE_NAME"
2833 _ACEOF
2834
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2837 _ACEOF
2838
2839 cat >>confdefs.h <<_ACEOF
2840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2841 _ACEOF
2842
2843 cat >>confdefs.h <<_ACEOF
2844 #define PACKAGE_STRING "$PACKAGE_STRING"
2845 _ACEOF
2846
2847 cat >>confdefs.h <<_ACEOF
2848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2849 _ACEOF
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define PACKAGE_URL "$PACKAGE_URL"
2853 _ACEOF
2854
2855
2856 # Let the site file select an alternate cache file if it wants to.
2857 # Prefer an explicitly selected file to automatically selected ones.
2858 ac_site_file1=NONE
2859 ac_site_file2=NONE
2860 if test -n "$CONFIG_SITE"; then
2861 ac_site_file1=$CONFIG_SITE
2862 elif test "x$prefix" != xNONE; then
2863 ac_site_file1=$prefix/share/config.site
2864 ac_site_file2=$prefix/etc/config.site
2865 else
2866 ac_site_file1=$ac_default_prefix/share/config.site
2867 ac_site_file2=$ac_default_prefix/etc/config.site
2868 fi
2869 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2870 do
2871 test "x$ac_site_file" = xNONE && continue
2872 if test -r "$ac_site_file"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2874 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2875 sed 's/^/| /' "$ac_site_file" >&5
2876 . "$ac_site_file"
2877 fi
2878 done
2879
2880 if test -r "$cache_file"; then
2881 # Some versions of bash will fail to source /dev/null (special
2882 # files actually), so we avoid doing that.
2883 if test -f "$cache_file"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2885 $as_echo "$as_me: loading cache $cache_file" >&6;}
2886 case $cache_file in
2887 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2888 *) . "./$cache_file";;
2889 esac
2890 fi
2891 else
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2893 $as_echo "$as_me: creating cache $cache_file" >&6;}
2894 >$cache_file
2895 fi
2896
2897 # Check that the precious variables saved in the cache have kept the same
2898 # value.
2899 ac_cache_corrupted=false
2900 for ac_var in $ac_precious_vars; do
2901 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2902 eval ac_new_set=\$ac_env_${ac_var}_set
2903 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2904 eval ac_new_val=\$ac_env_${ac_var}_value
2905 case $ac_old_set,$ac_new_set in
2906 set,)
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2908 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2909 ac_cache_corrupted=: ;;
2910 ,set)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2913 ac_cache_corrupted=: ;;
2914 ,);;
2915 *)
2916 if test "x$ac_old_val" != "x$ac_new_val"; then
2917 # differences in whitespace do not lead to failure.
2918 ac_old_val_w=`echo x $ac_old_val`
2919 ac_new_val_w=`echo x $ac_new_val`
2920 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2922 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2923 ac_cache_corrupted=:
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2926 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2927 eval $ac_var=\$ac_old_val
2928 fi
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2930 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2932 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2933 fi;;
2934 esac
2935 # Pass precious variables to config.status.
2936 if test "$ac_new_set" = set; then
2937 case $ac_new_val in
2938 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2939 *) ac_arg=$ac_var=$ac_new_val ;;
2940 esac
2941 case " $ac_configure_args " in
2942 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2943 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2944 esac
2945 fi
2946 done
2947 if $ac_cache_corrupted; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2951 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2952 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2953 fi
2954 ## -------------------- ##
2955 ## Main body of script. ##
2956 ## -------------------- ##
2957
2958 ac_ext=c
2959 ac_cpp='$CPP $CPPFLAGS'
2960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2963
2964
2965
2966
2967
2968
2969 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2970
2971
2972 gcc_version=`cat $srcdir/BASE-VER`
2973
2974 # Determine the host, build, and target systems
2975 ac_aux_dir=
2976 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2977 for ac_t in install-sh install.sh shtool; do
2978 if test -f "$ac_dir/$ac_t"; then
2979 ac_aux_dir=$ac_dir
2980 ac_install_sh="$ac_aux_dir/$ac_t -c"
2981 break 2
2982 fi
2983 done
2984 done
2985 if test -z "$ac_aux_dir"; then
2986 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2987 fi
2988
2989 # These three variables are undocumented and unsupported,
2990 # and are intended to be withdrawn in a future Autoconf release.
2991 # They can cause serious problems if a builder's source tree is in a directory
2992 # whose full name contains unusual characters.
2993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2996
2997
2998 # Make sure we can run config.sub.
2999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3000 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3001
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3003 $as_echo_n "checking build system type... " >&6; }
3004 if test "${ac_cv_build+set}" = set; then :
3005 $as_echo_n "(cached) " >&6
3006 else
3007 ac_build_alias=$build_alias
3008 test "x$ac_build_alias" = x &&
3009 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3010 test "x$ac_build_alias" = x &&
3011 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3013 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3014
3015 fi
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3017 $as_echo "$ac_cv_build" >&6; }
3018 case $ac_cv_build in
3019 *-*-*) ;;
3020 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3021 esac
3022 build=$ac_cv_build
3023 ac_save_IFS=$IFS; IFS='-'
3024 set x $ac_cv_build
3025 shift
3026 build_cpu=$1
3027 build_vendor=$2
3028 shift; shift
3029 # Remember, the first character of IFS is used to create $*,
3030 # except with old shells:
3031 build_os=$*
3032 IFS=$ac_save_IFS
3033 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3034
3035
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3037 $as_echo_n "checking host system type... " >&6; }
3038 if test "${ac_cv_host+set}" = set; then :
3039 $as_echo_n "(cached) " >&6
3040 else
3041 if test "x$host_alias" = x; then
3042 ac_cv_host=$ac_cv_build
3043 else
3044 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3045 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3046 fi
3047
3048 fi
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3050 $as_echo "$ac_cv_host" >&6; }
3051 case $ac_cv_host in
3052 *-*-*) ;;
3053 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3054 esac
3055 host=$ac_cv_host
3056 ac_save_IFS=$IFS; IFS='-'
3057 set x $ac_cv_host
3058 shift
3059 host_cpu=$1
3060 host_vendor=$2
3061 shift; shift
3062 # Remember, the first character of IFS is used to create $*,
3063 # except with old shells:
3064 host_os=$*
3065 IFS=$ac_save_IFS
3066 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3067
3068
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3070 $as_echo_n "checking target system type... " >&6; }
3071 if test "${ac_cv_target+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test "x$target_alias" = x; then
3075 ac_cv_target=$ac_cv_host
3076 else
3077 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3078 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3079 fi
3080
3081 fi
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3083 $as_echo "$ac_cv_target" >&6; }
3084 case $ac_cv_target in
3085 *-*-*) ;;
3086 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3087 esac
3088 target=$ac_cv_target
3089 ac_save_IFS=$IFS; IFS='-'
3090 set x $ac_cv_target
3091 shift
3092 target_cpu=$1
3093 target_vendor=$2
3094 shift; shift
3095 # Remember, the first character of IFS is used to create $*,
3096 # except with old shells:
3097 target_os=$*
3098 IFS=$ac_save_IFS
3099 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3100
3101
3102 # The aliases save the names the user supplied, while $host etc.
3103 # will get canonicalized.
3104 test -n "$target_alias" &&
3105 test "$program_prefix$program_suffix$program_transform_name" = \
3106 NONENONEs,x,x, &&
3107 program_prefix=${target_alias}-
3108
3109 # Determine the noncanonical target name, for directory use.
3110 case ${build_alias} in
3111 "") build_noncanonical=${build} ;;
3112 *) build_noncanonical=${build_alias} ;;
3113 esac
3114
3115 case ${host_alias} in
3116 "") host_noncanonical=${build_noncanonical} ;;
3117 *) host_noncanonical=${host_alias} ;;
3118 esac
3119
3120 case ${target_alias} in
3121 "") target_noncanonical=${host_noncanonical} ;;
3122 *) target_noncanonical=${target_alias} ;;
3123 esac
3124
3125
3126
3127
3128 # Determine the target- and build-specific subdirectories
3129
3130 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3131 # have matching libraries, they should use host libraries: Makefile.tpl
3132 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3133 # However, they still use the build modules, because the corresponding
3134 # host modules (e.g. bison) are only built for the host when bootstrap
3135 # finishes. So:
3136 # - build_subdir is where we find build modules, and never changes.
3137 # - build_libsubdir is where we find build libraries, and can be overridden.
3138
3139 # Prefix 'build-' so this never conflicts with target_subdir.
3140 build_subdir="build-${build_noncanonical}"
3141
3142 # Check whether --with-build-libsubdir was given.
3143 if test "${with_build_libsubdir+set}" = set; then :
3144 withval=$with_build_libsubdir; build_libsubdir="$withval"
3145 else
3146 build_libsubdir="$build_subdir"
3147 fi
3148
3149 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3150 if ( test $srcdir = . && test -d gcc ) \
3151 || test -d $srcdir/../host-${host_noncanonical}; then
3152 host_subdir="host-${host_noncanonical}"
3153 else
3154 host_subdir=.
3155 fi
3156 # No prefix.
3157 target_subdir=${target_noncanonical}
3158
3159
3160 # Set program_transform_name
3161 test "$program_prefix" != NONE &&
3162 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3163 # Use a double $ so make ignores it.
3164 test "$program_suffix" != NONE &&
3165 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3166 # Double any \ or $.
3167 # By default was `s,x,x', remove it if useless.
3168 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3169 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3170
3171
3172 # Check for bogus environment variables.
3173 # Test if LIBRARY_PATH contains the notation for the current directory
3174 # since this would lead to problems installing/building glibc.
3175 # LIBRARY_PATH contains the current directory if one of the following
3176 # is true:
3177 # - one of the terminals (":" and ";") is the first or last sign
3178 # - two terminals occur directly after each other
3179 # - the path contains an element with a dot in it
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3181 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3182 case ${LIBRARY_PATH} in
3183 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3184 library_path_setting="contains current directory"
3185 ;;
3186 *)
3187 library_path_setting="ok"
3188 ;;
3189 esac
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3191 $as_echo "$library_path_setting" >&6; }
3192 if test "$library_path_setting" != "ok"; then
3193 as_fn_error "
3194 *** LIBRARY_PATH shouldn't contain the current directory when
3195 *** building gcc. Please change the environment variable
3196 *** and run configure again." "$LINENO" 5
3197 fi
3198
3199 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3200 # since this would lead to problems installing/building glibc.
3201 # GCC_EXEC_PREFIX contains the current directory if one of the following
3202 # is true:
3203 # - one of the terminals (":" and ";") is the first or last sign
3204 # - two terminals occur directly after each other
3205 # - the path contains an element with a dot in it
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3207 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3208 case ${GCC_EXEC_PREFIX} in
3209 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3210 gcc_exec_prefix_setting="contains current directory"
3211 ;;
3212 *)
3213 gcc_exec_prefix_setting="ok"
3214 ;;
3215 esac
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3217 $as_echo "$gcc_exec_prefix_setting" >&6; }
3218 if test "$gcc_exec_prefix_setting" != "ok"; then
3219 as_fn_error "
3220 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3221 *** building gcc. Please change the environment variable
3222 *** and run configure again." "$LINENO" 5
3223 fi
3224
3225 # -----------
3226 # Directories
3227 # -----------
3228
3229 # Specify the local prefix
3230 local_prefix=
3231
3232 # Check whether --with-local-prefix was given.
3233 if test "${with_local_prefix+set}" = set; then :
3234 withval=$with_local_prefix; case "${withval}" in
3235 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3236 no) ;;
3237 *) local_prefix=$with_local_prefix ;;
3238 esac
3239 fi
3240
3241
3242 # Default local prefix if it is empty
3243 if test x$local_prefix = x; then
3244 local_prefix=/usr/local
3245 fi
3246
3247 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3248 # passed in by the toplevel make and thus we'd get different behavior
3249 # depending on where we built the sources.
3250 gcc_gxx_include_dir=
3251 # Specify the g++ header file directory
3252
3253 # Check whether --with-gxx-include-dir was given.
3254 if test "${with_gxx_include_dir+set}" = set; then :
3255 withval=$with_gxx_include_dir; case "${withval}" in
3256 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3257 no) ;;
3258 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3259 esac
3260 fi
3261
3262
3263 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3264 if test x${gcc_gxx_include_dir} = x; then
3265 if test x${enable_version_specific_runtime_libs} = xyes; then
3266 gcc_gxx_include_dir='${libsubdir}/include/c++'
3267 else
3268 libstdcxx_incdir='include/c++/$(version)'
3269 if test x$host != x$target; then
3270 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3271 fi
3272 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3273 fi
3274 fi
3275
3276
3277 # Check whether --with-cpp_install_dir was given.
3278 if test "${with_cpp_install_dir+set}" = set; then :
3279 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3280 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3281 elif test x$withval != xno; then
3282 cpp_install_dir=$withval
3283 fi
3284 fi
3285
3286
3287 # We would like to our source tree to be readonly. However when releases or
3288 # pre-releases are generated, the flex/bison generated files as well as the
3289 # various formats of manuals need to be included along with the rest of the
3290 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3291 # just that.
3292
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3294 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3295 # Check whether --enable-generated-files-in-srcdir was given.
3296 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3297 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3298 else
3299 generated_files_in_srcdir=no
3300 fi
3301
3302
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3304 $as_echo "$generated_files_in_srcdir" >&6; }
3305
3306 if test "$generated_files_in_srcdir" = "yes"; then
3307 GENINSRC=''
3308 else
3309 GENINSRC='#'
3310 fi
3311
3312
3313 # -------------------
3314 # Find default linker
3315 # -------------------
3316
3317 # With GNU ld
3318
3319 # Check whether --with-gnu-ld was given.
3320 if test "${with_gnu_ld+set}" = set; then :
3321 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3322 else
3323 gnu_ld_flag=no
3324 fi
3325
3326
3327 # With pre-defined ld
3328
3329 # Check whether --with-ld was given.
3330 if test "${with_ld+set}" = set; then :
3331 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3332 fi
3333
3334 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3335 if test ! -x "$DEFAULT_LINKER"; then
3336 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3337 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3338 gnu_ld_flag=yes
3339 fi
3340
3341 cat >>confdefs.h <<_ACEOF
3342 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3343 _ACEOF
3344
3345 fi
3346
3347 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3348
3349 cat >>confdefs.h <<_ACEOF
3350 #define HAVE_GNU_LD $gnu_ld
3351 _ACEOF
3352
3353
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3355 $as_echo_n "checking whether a default linker was specified... " >&6; }
3356 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3357 if test x"$gnu_ld_flag" = x"no"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3359 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3362 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3363 fi
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 fi
3368
3369 # With demangler in GNU ld
3370
3371 # Check whether --with-demangler-in-ld was given.
3372 if test "${with_demangler_in_ld+set}" = set; then :
3373 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3374 else
3375 demangler_in_ld=no
3376 fi
3377
3378
3379 # ----------------------
3380 # Find default assembler
3381 # ----------------------
3382
3383 # With GNU as
3384
3385 # Check whether --with-gnu-as was given.
3386 if test "${with_gnu_as+set}" = set; then :
3387 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3388 else
3389 gas_flag=no
3390 fi
3391
3392
3393
3394 # Check whether --with-as was given.
3395 if test "${with_as+set}" = set; then :
3396 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3397 fi
3398
3399 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3400 if test ! -x "$DEFAULT_ASSEMBLER"; then
3401 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3402 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3403 gas_flag=yes
3404 fi
3405
3406 cat >>confdefs.h <<_ACEOF
3407 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3408 _ACEOF
3409
3410 fi
3411
3412 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3413
3414 cat >>confdefs.h <<_ACEOF
3415 #define HAVE_GNU_AS $gnu_as
3416 _ACEOF
3417
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3420 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3421 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3422 if test x"$gas_flag" = x"no"; then
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3424 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3425 else
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3427 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3428 fi
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3433
3434 # ---------------
3435 # Find C compiler
3436 # ---------------
3437
3438 # If a non-executable a.out is present (e.g. created by GNU as above even if
3439 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3440 # file, even when creating an executable, so an execution test fails.
3441 # Remove possible default executable files to avoid this.
3442 #
3443 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3444 # Autoconf includes it.
3445 rm -f a.out a.exe b.out
3446
3447 # Find the native compiler
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453 if test -n "$ac_tool_prefix"; then
3454 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3455 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if test "${ac_cv_prog_CC+set}" = set; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$CC"; then
3462 ac_cv_prog_CC="$CC" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 CC=$ac_cv_prog_CC
3482 if test -n "$CC"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3484 $as_echo "$CC" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490
3491 fi
3492 if test -z "$ac_cv_prog_CC"; then
3493 ac_ct_CC=$CC
3494 # Extract the first word of "gcc", so it can be a program name with args.
3495 set dummy gcc; ac_word=$2
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3497 $as_echo_n "checking for $ac_word... " >&6; }
3498 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3499 $as_echo_n "(cached) " >&6
3500 else
3501 if test -n "$ac_ct_CC"; then
3502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3503 else
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 for as_dir in $PATH
3506 do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
3509 for ac_exec_ext in '' $ac_executable_extensions; do
3510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3511 ac_cv_prog_ac_ct_CC="gcc"
3512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3513 break 2
3514 fi
3515 done
3516 done
3517 IFS=$as_save_IFS
3518
3519 fi
3520 fi
3521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3522 if test -n "$ac_ct_CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3524 $as_echo "$ac_ct_CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530 if test "x$ac_ct_CC" = x; then
3531 CC=""
3532 else
3533 case $cross_compiling:$ac_tool_warned in
3534 yes:)
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned=yes ;;
3538 esac
3539 CC=$ac_ct_CC
3540 fi
3541 else
3542 CC="$ac_cv_prog_CC"
3543 fi
3544
3545 if test -z "$CC"; then
3546 if test -n "$ac_tool_prefix"; then
3547 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3548 set dummy ${ac_tool_prefix}cc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_CC+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3553 else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_CC="${ac_tool_prefix}cc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568 done
3569 done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 CC=$ac_cv_prog_CC
3575 if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577 $as_echo "$CC" >&6; }
3578 else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584 fi
3585 fi
3586 if test -z "$CC"; then
3587 # Extract the first word of "cc", so it can be a program name with args.
3588 set dummy cc; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if test "${ac_cv_prog_CC+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596 else
3597 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3606 ac_prog_rejected=yes
3607 continue
3608 fi
3609 ac_cv_prog_CC="cc"
3610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613 done
3614 done
3615 IFS=$as_save_IFS
3616
3617 if test $ac_prog_rejected = yes; then
3618 # We found a bogon in the path, so make sure we never use it.
3619 set dummy $ac_cv_prog_CC
3620 shift
3621 if test $# != 0; then
3622 # We chose a different compiler from the bogus one.
3623 # However, it has the same basename, so the bogon will be chosen
3624 # first if we set CC to just the basename; use the full file name.
3625 shift
3626 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3627 fi
3628 fi
3629 fi
3630 fi
3631 CC=$ac_cv_prog_CC
3632 if test -n "$CC"; then
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3634 $as_echo "$CC" >&6; }
3635 else
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 fi
3639
3640
3641 fi
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 for ac_prog in cl.exe
3645 do
3646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if test "${ac_cv_prog_CC+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if test -n "$CC"; then
3654 ac_cv_prog_CC="$CC" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667 done
3668 done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 CC=$ac_cv_prog_CC
3674 if test -n "$CC"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3676 $as_echo "$CC" >&6; }
3677 else
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683 test -n "$CC" && break
3684 done
3685 fi
3686 if test -z "$CC"; then
3687 ac_ct_CC=$CC
3688 for ac_prog in cl.exe
3689 do
3690 # Extract the first word of "$ac_prog", so it can be a program name with args.
3691 set dummy $ac_prog; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$ac_ct_CC"; then
3698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_ac_ct_CC="$ac_prog"
3708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3710 fi
3711 done
3712 done
3713 IFS=$as_save_IFS
3714
3715 fi
3716 fi
3717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3718 if test -n "$ac_ct_CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3720 $as_echo "$ac_ct_CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 fi
3725
3726
3727 test -n "$ac_ct_CC" && break
3728 done
3729
3730 if test "x$ac_ct_CC" = x; then
3731 CC=""
3732 else
3733 case $cross_compiling:$ac_tool_warned in
3734 yes:)
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3737 ac_tool_warned=yes ;;
3738 esac
3739 CC=$ac_ct_CC
3740 fi
3741 fi
3742
3743 fi
3744
3745
3746 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3748 as_fn_error "no acceptable C compiler found in \$PATH
3749 See \`config.log' for more details." "$LINENO" 5; }
3750
3751 # Provide some information about the compiler.
3752 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3753 set X $ac_compile
3754 ac_compiler=$2
3755 for ac_option in --version -v -V -qversion; do
3756 { { ac_try="$ac_compiler $ac_option >&5"
3757 case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760 esac
3761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762 $as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3764 ac_status=$?
3765 if test -s conftest.err; then
3766 sed '10a\
3767 ... rest of stderr output deleted ...
3768 10q' conftest.err >conftest.er1
3769 cat conftest.er1 >&5
3770 rm -f conftest.er1 conftest.err
3771 fi
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }
3774 done
3775
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778
3779 int
3780 main ()
3781 {
3782
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 ac_clean_files_save=$ac_clean_files
3788 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3789 # Try to create an executable without -o first, disregard a.out.
3790 # It will help us diagnose broken compilers, and finding out an intuition
3791 # of exeext.
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3793 $as_echo_n "checking for C compiler default output file name... " >&6; }
3794 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3795
3796 # The possible output files:
3797 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3798
3799 ac_rmfiles=
3800 for ac_file in $ac_files
3801 do
3802 case $ac_file in
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3804 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3805 esac
3806 done
3807 rm -f $ac_rmfiles
3808
3809 if { { ac_try="$ac_link_default"
3810 case "(($ac_try" in
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3813 esac
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_link_default") 2>&5
3817 ac_status=$?
3818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819 test $ac_status = 0; }; then :
3820 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3821 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3822 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3823 # so that the user can short-circuit this test for compilers unknown to
3824 # Autoconf.
3825 for ac_file in $ac_files ''
3826 do
3827 test -f "$ac_file" || continue
3828 case $ac_file in
3829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3830 ;;
3831 [ab].out )
3832 # We found the default executable, but exeext='' is most
3833 # certainly right.
3834 break;;
3835 *.* )
3836 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3837 then :; else
3838 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3839 fi
3840 # We set ac_cv_exeext here because the later test for it is not
3841 # safe: cross compilers may not add the suffix if given an `-o'
3842 # argument, so we may need to know it at that point already.
3843 # Even if this section looks crufty: it has the advantage of
3844 # actually working.
3845 break;;
3846 * )
3847 break;;
3848 esac
3849 done
3850 test "$ac_cv_exeext" = no && ac_cv_exeext=
3851
3852 else
3853 ac_file=''
3854 fi
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3856 $as_echo "$ac_file" >&6; }
3857 if test -z "$ac_file"; then :
3858 $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 { as_fn_set_status 77
3864 as_fn_error "C compiler cannot create executables
3865 See \`config.log' for more details." "$LINENO" 5; }; }
3866 fi
3867 ac_exeext=$ac_cv_exeext
3868
3869 # Check that the compiler produces executables we can run. If not, either
3870 # the compiler is broken, or we cross compile.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3872 $as_echo_n "checking whether the C compiler works... " >&6; }
3873 # If not cross compiling, check that we can run a simple program.
3874 if test "$cross_compiling" != yes; then
3875 if { ac_try='./$ac_file'
3876 { { case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 $as_echo "$ac_try_echo"; } >&5
3882 (eval "$ac_try") 2>&5
3883 ac_status=$?
3884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }; }; then
3886 cross_compiling=no
3887 else
3888 if test "$cross_compiling" = maybe; then
3889 cross_compiling=yes
3890 else
3891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3893 as_fn_error "cannot run C compiled programs.
3894 If you meant to cross compile, use \`--host'.
3895 See \`config.log' for more details." "$LINENO" 5; }
3896 fi
3897 fi
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 $as_echo "yes" >&6; }
3901
3902 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3903 ac_clean_files=$ac_clean_files_save
3904 # Check that the compiler produces executables we can run. If not, either
3905 # the compiler is broken, or we cross compile.
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3907 $as_echo_n "checking whether we are cross compiling... " >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3909 $as_echo "$cross_compiling" >&6; }
3910
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 $as_echo_n "checking for suffix of executables... " >&6; }
3913 if { { ac_try="$ac_link"
3914 case "(($ac_try" in
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3917 esac
3918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3919 $as_echo "$ac_try_echo"; } >&5
3920 (eval "$ac_link") 2>&5
3921 ac_status=$?
3922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }; then :
3924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3926 # work properly (i.e., refer to `conftest.exe'), while it won't with
3927 # `rm'.
3928 for ac_file in conftest.exe conftest conftest.*; do
3929 test -f "$ac_file" || continue
3930 case $ac_file in
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3933 break;;
3934 * ) break;;
3935 esac
3936 done
3937 else
3938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3940 as_fn_error "cannot compute suffix of executables: cannot compile and link
3941 See \`config.log' for more details." "$LINENO" 5; }
3942 fi
3943 rm -f conftest$ac_cv_exeext
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3945 $as_echo "$ac_cv_exeext" >&6; }
3946
3947 rm -f conftest.$ac_ext
3948 EXEEXT=$ac_cv_exeext
3949 ac_exeext=$EXEEXT
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3951 $as_echo_n "checking for suffix of object files... " >&6; }
3952 if test "${ac_cv_objext+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957
3958 int
3959 main ()
3960 {
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.o conftest.obj
3967 if { { ac_try="$ac_compile"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_compile") 2>&5
3975 ac_status=$?
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then :
3978 for ac_file in conftest.o conftest.obj conftest.*; do
3979 test -f "$ac_file" || continue;
3980 case $ac_file in
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3983 break;;
3984 esac
3985 done
3986 else
3987 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error "cannot compute suffix of object files: cannot compile
3993 See \`config.log' for more details." "$LINENO" 5; }
3994 fi
3995 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3998 $as_echo "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext
4000 ac_objext=$OBJEXT
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008
4009 int
4010 main ()
4011 {
4012 #ifndef __GNUC__
4013 choke me
4014 #endif
4015
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_compiler_gnu=yes
4022 else
4023 ac_compiler_gnu=no
4024 fi
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027
4028 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then
4032 GCC=yes
4033 else
4034 GCC=
4035 fi
4036 ac_test_CFLAGS=${CFLAGS+set}
4037 ac_save_CFLAGS=$CFLAGS
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4039 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4040 if test "${ac_cv_prog_cc_g+set}" = set; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 ac_save_c_werror_flag=$ac_c_werror_flag
4044 ac_c_werror_flag=yes
4045 ac_cv_prog_cc_g=no
4046 CFLAGS="-g"
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main ()
4052 {
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_prog_cc_g=yes
4060 else
4061 CFLAGS=""
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064
4065 int
4066 main ()
4067 {
4068
4069 ;
4070 return 0;
4071 }
4072 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"; then :
4074
4075 else
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4077 CFLAGS="-g"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080
4081 int
4082 main ()
4083 {
4084
4085 ;
4086 return 0;
4087 }
4088 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090 ac_cv_prog_cc_g=yes
4091 fi
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 fi
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_c_werror_flag=$ac_save_c_werror_flag
4098 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4100 $as_echo "$ac_cv_prog_cc_g" >&6; }
4101 if test "$ac_test_CFLAGS" = set; then
4102 CFLAGS=$ac_save_CFLAGS
4103 elif test $ac_cv_prog_cc_g = yes; then
4104 if test "$GCC" = yes; then
4105 CFLAGS="-g -O2"
4106 else
4107 CFLAGS="-g"
4108 fi
4109 else
4110 if test "$GCC" = yes; then
4111 CFLAGS="-O2"
4112 else
4113 CFLAGS=
4114 fi
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4117 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4118 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 ac_cv_prog_cc_c89=no
4122 ac_save_CC=$CC
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #include <stdarg.h>
4126 #include <stdio.h>
4127 #include <sys/types.h>
4128 #include <sys/stat.h>
4129 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4130 struct buf { int x; };
4131 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4132 static char *e (p, i)
4133 char **p;
4134 int i;
4135 {
4136 return p[i];
4137 }
4138 static char *f (char * (*g) (char **, int), char **p, ...)
4139 {
4140 char *s;
4141 va_list v;
4142 va_start (v,p);
4143 s = g (p, va_arg (v,int));
4144 va_end (v);
4145 return s;
4146 }
4147
4148 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4149 function prototypes and stuff, but not '\xHH' hex character constants.
4150 These don't provoke an error unfortunately, instead are silently treated
4151 as 'x'. The following induces an error, until -std is added to get
4152 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4153 array size at least. It's necessary to write '\x00'==0 to get something
4154 that's true only with -std. */
4155 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4156
4157 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4158 inside strings and character constants. */
4159 #define FOO(x) 'x'
4160 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4161
4162 int test (int i, double x);
4163 struct s1 {int (*f) (int a);};
4164 struct s2 {int (*f) (double a);};
4165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4166 int argc;
4167 char **argv;
4168 int
4169 main ()
4170 {
4171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4172 ;
4173 return 0;
4174 }
4175 _ACEOF
4176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4178 do
4179 CC="$ac_save_CC $ac_arg"
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_c89=$ac_arg
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext
4184 test "x$ac_cv_prog_cc_c89" != "xno" && break
4185 done
4186 rm -f conftest.$ac_ext
4187 CC=$ac_save_CC
4188
4189 fi
4190 # AC_CACHE_VAL
4191 case "x$ac_cv_prog_cc_c89" in
4192 x)
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194 $as_echo "none needed" >&6; } ;;
4195 xno)
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197 $as_echo "unsupported" >&6; } ;;
4198 *)
4199 CC="$CC $ac_cv_prog_cc_c89"
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4202 esac
4203 if test "x$ac_cv_prog_cc_c89" != xno; then :
4204
4205 fi
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
4213 if test "x$CC" != xcc; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4215 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4216 else
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4218 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4219 fi
4220 set dummy $CC; ac_cc=`$as_echo "$2" |
4221 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4222 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227
4228 int
4229 main ()
4230 {
4231
4232 ;
4233 return 0;
4234 }
4235 _ACEOF
4236 # Make sure it works both with $CC and with simple cc.
4237 # We do the test twice because some compilers refuse to overwrite an
4238 # existing .o file with -o, though they will create one.
4239 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4240 rm -f conftest2.*
4241 if { { case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4246 $as_echo "$ac_try_echo"; } >&5
4247 (eval "$ac_try") 2>&5
4248 ac_status=$?
4249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250 test $ac_status = 0; } &&
4251 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4254 esac
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_try") 2>&5
4258 ac_status=$?
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; };
4261 then
4262 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4263 if test "x$CC" != xcc; then
4264 # Test first that cc exists at all.
4265 if { ac_try='cc -c conftest.$ac_ext >&5'
4266 { { case "(($ac_try" in
4267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4268 *) ac_try_echo=$ac_try;;
4269 esac
4270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4271 $as_echo "$ac_try_echo"; } >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275 test $ac_status = 0; }; }; then
4276 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4277 rm -f conftest2.*
4278 if { { case "(($ac_try" in
4279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4280 *) ac_try_echo=$ac_try;;
4281 esac
4282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4283 $as_echo "$ac_try_echo"; } >&5
4284 (eval "$ac_try") 2>&5
4285 ac_status=$?
4286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4287 test $ac_status = 0; } &&
4288 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291 esac
4292 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4293 $as_echo "$ac_try_echo"; } >&5
4294 (eval "$ac_try") 2>&5
4295 ac_status=$?
4296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4297 test $ac_status = 0; };
4298 then
4299 # cc works too.
4300 :
4301 else
4302 # cc exists but doesn't like -o.
4303 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4304 fi
4305 fi
4306 fi
4307 else
4308 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4309 fi
4310 rm -f core conftest*
4311
4312 fi
4313 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4315 $as_echo "yes" >&6; }
4316 else
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319
4320 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4321
4322 fi
4323
4324 # expand $ac_aux_dir to an absolute path
4325 am_aux_dir=`cd $ac_aux_dir && pwd`
4326
4327 # FIXME: we rely on the cache variable name because
4328 # there is no other way.
4329 set dummy $CC
4330 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4331 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4332 if test "$am_t" != yes; then
4333 # Losing compiler, so override with the script.
4334 # FIXME: It is wrong to rewrite CC.
4335 # But if we don't then we get into trouble of one sort or another.
4336 # A longer-term fix would be to have automake use am__CC in this case,
4337 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4338 CC="$am_aux_dir/compile $CC"
4339 fi
4340
4341
4342 ac_ext=cpp
4343 ac_cpp='$CXXCPP $CPPFLAGS'
4344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4347 if test -z "$CXX"; then
4348 if test -n "$CCC"; then
4349 CXX=$CCC
4350 else
4351 if test -n "$ac_tool_prefix"; then
4352 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4353 do
4354 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4355 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_prog_CXX+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4360 else
4361 if test -n "$CXX"; then
4362 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4363 else
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 for as_dir in $PATH
4366 do
4367 IFS=$as_save_IFS
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4373 break 2
4374 fi
4375 done
4376 done
4377 IFS=$as_save_IFS
4378
4379 fi
4380 fi
4381 CXX=$ac_cv_prog_CXX
4382 if test -n "$CXX"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4384 $as_echo "$CXX" >&6; }
4385 else
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389
4390
4391 test -n "$CXX" && break
4392 done
4393 fi
4394 if test -z "$CXX"; then
4395 ac_ct_CXX=$CXX
4396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4397 do
4398 # Extract the first word of "$ac_prog", so it can be a program name with args.
4399 set dummy $ac_prog; ac_word=$2
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4401 $as_echo_n "checking for $ac_word... " >&6; }
4402 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4403 $as_echo_n "(cached) " >&6
4404 else
4405 if test -n "$ac_ct_CXX"; then
4406 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_ac_ct_CXX="$ac_prog"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 fi
4424 fi
4425 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4426 if test -n "$ac_ct_CXX"; then
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4428 $as_echo "$ac_ct_CXX" >&6; }
4429 else
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431 $as_echo "no" >&6; }
4432 fi
4433
4434
4435 test -n "$ac_ct_CXX" && break
4436 done
4437
4438 if test "x$ac_ct_CXX" = x; then
4439 CXX="g++"
4440 else
4441 case $cross_compiling:$ac_tool_warned in
4442 yes:)
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4446 esac
4447 CXX=$ac_ct_CXX
4448 fi
4449 fi
4450
4451 fi
4452 fi
4453 # Provide some information about the compiler.
4454 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4455 set X $ac_compile
4456 ac_compiler=$2
4457 for ac_option in --version -v -V -qversion; do
4458 { { ac_try="$ac_compiler $ac_option >&5"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464 $as_echo "$ac_try_echo"; } >&5
4465 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4466 ac_status=$?
4467 if test -s conftest.err; then
4468 sed '10a\
4469 ... rest of stderr output deleted ...
4470 10q' conftest.err >conftest.er1
4471 cat conftest.er1 >&5
4472 rm -f conftest.er1 conftest.err
4473 fi
4474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475 test $ac_status = 0; }
4476 done
4477
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4479 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4480 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4485
4486 int
4487 main ()
4488 {
4489 #ifndef __GNUC__
4490 choke me
4491 #endif
4492
4493 ;
4494 return 0;
4495 }
4496 _ACEOF
4497 if ac_fn_cxx_try_compile "$LINENO"; then :
4498 ac_compiler_gnu=yes
4499 else
4500 ac_compiler_gnu=no
4501 fi
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4504
4505 fi
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4507 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4508 if test $ac_compiler_gnu = yes; then
4509 GXX=yes
4510 else
4511 GXX=
4512 fi
4513 ac_test_CXXFLAGS=${CXXFLAGS+set}
4514 ac_save_CXXFLAGS=$CXXFLAGS
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4516 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4517 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4521 ac_cxx_werror_flag=yes
4522 ac_cv_prog_cxx_g=no
4523 CXXFLAGS="-g"
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526
4527 int
4528 main ()
4529 {
4530
4531 ;
4532 return 0;
4533 }
4534 _ACEOF
4535 if ac_fn_cxx_try_compile "$LINENO"; then :
4536 ac_cv_prog_cxx_g=yes
4537 else
4538 CXXFLAGS=""
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4541
4542 int
4543 main ()
4544 {
4545
4546 ;
4547 return 0;
4548 }
4549 _ACEOF
4550 if ac_fn_cxx_try_compile "$LINENO"; then :
4551
4552 else
4553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4554 CXXFLAGS="-g"
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4557
4558 int
4559 main ()
4560 {
4561
4562 ;
4563 return 0;
4564 }
4565 _ACEOF
4566 if ac_fn_cxx_try_compile "$LINENO"; then :
4567 ac_cv_prog_cxx_g=yes
4568 fi
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4570 fi
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 fi
4573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4574 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4575 fi
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4577 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4578 if test "$ac_test_CXXFLAGS" = set; then
4579 CXXFLAGS=$ac_save_CXXFLAGS
4580 elif test $ac_cv_prog_cxx_g = yes; then
4581 if test "$GXX" = yes; then
4582 CXXFLAGS="-g -O2"
4583 else
4584 CXXFLAGS="-g"
4585 fi
4586 else
4587 if test "$GXX" = yes; then
4588 CXXFLAGS="-O2"
4589 else
4590 CXXFLAGS=
4591 fi
4592 fi
4593 ac_ext=c
4594 ac_cpp='$CPP $CPPFLAGS'
4595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599
4600
4601
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4604 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$GNATBIND"; then
4611 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4623 fi
4624 done
4625 done
4626 IFS=$as_save_IFS
4627
4628 fi
4629 fi
4630 GNATBIND=$ac_cv_prog_GNATBIND
4631 if test -n "$GNATBIND"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4633 $as_echo "$GNATBIND" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4637 fi
4638
4639
4640 fi
4641 if test -z "$ac_cv_prog_GNATBIND"; then
4642 ac_ct_GNATBIND=$GNATBIND
4643 # Extract the first word of "gnatbind", so it can be a program name with args.
4644 set dummy gnatbind; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4649 else
4650 if test -n "$ac_ct_GNATBIND"; then
4651 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4652 else
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_exec_ext in '' $ac_executable_extensions; do
4659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4660 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 break 2
4663 fi
4664 done
4665 done
4666 IFS=$as_save_IFS
4667
4668 fi
4669 fi
4670 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4671 if test -n "$ac_ct_GNATBIND"; then
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4673 $as_echo "$ac_ct_GNATBIND" >&6; }
4674 else
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4676 $as_echo "no" >&6; }
4677 fi
4678
4679 if test "x$ac_ct_GNATBIND" = x; then
4680 GNATBIND="no"
4681 else
4682 case $cross_compiling:$ac_tool_warned in
4683 yes:)
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4686 ac_tool_warned=yes ;;
4687 esac
4688 GNATBIND=$ac_ct_GNATBIND
4689 fi
4690 else
4691 GNATBIND="$ac_cv_prog_GNATBIND"
4692 fi
4693
4694 if test -n "$ac_tool_prefix"; then
4695 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4696 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$GNATMAKE"; then
4703 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4707 do
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 GNATMAKE=$ac_cv_prog_GNATMAKE
4723 if test -n "$GNATMAKE"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4725 $as_echo "$GNATMAKE" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4729 fi
4730
4731
4732 fi
4733 if test -z "$ac_cv_prog_GNATMAKE"; then
4734 ac_ct_GNATMAKE=$GNATMAKE
4735 # Extract the first word of "gnatmake", so it can be a program name with args.
4736 set dummy gnatmake; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$ac_ct_GNATMAKE"; then
4743 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4747 do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756 done
4757 done
4758 IFS=$as_save_IFS
4759
4760 fi
4761 fi
4762 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4763 if test -n "$ac_ct_GNATMAKE"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4765 $as_echo "$ac_ct_GNATMAKE" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4769 fi
4770
4771 if test "x$ac_ct_GNATMAKE" = x; then
4772 GNATMAKE="no"
4773 else
4774 case $cross_compiling:$ac_tool_warned in
4775 yes:)
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4778 ac_tool_warned=yes ;;
4779 esac
4780 GNATMAKE=$ac_ct_GNATMAKE
4781 fi
4782 else
4783 GNATMAKE="$ac_cv_prog_GNATMAKE"
4784 fi
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4787 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4788 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 cat >conftest.adb <<EOF
4792 procedure conftest is begin null; end conftest;
4793 EOF
4794 acx_cv_cc_gcc_supports_ada=no
4795 # There is a bug in old released versions of GCC which causes the
4796 # driver to exit successfully when the appropriate language module
4797 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4798 # Therefore we must check for the error message as well as an
4799 # unsuccessful exit.
4800 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4801 # given a .adb file, but produce no object file. So we must check
4802 # if an object file was really produced to guard against this.
4803 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4804 if test x"$errors" = x && test -f conftest.$ac_objext; then
4805 acx_cv_cc_gcc_supports_ada=yes
4806 fi
4807 rm -f conftest.*
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4810 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4811
4812 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4813 have_gnat=yes
4814 else
4815 have_gnat=no
4816 fi
4817
4818
4819 # autoconf is lame and doesn't give us any substitution variable for this.
4820 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4821 NO_MINUS_C_MINUS_O=yes
4822 else
4823 OUTPUT_OPTION='-o $@'
4824 fi
4825
4826
4827
4828 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4829 # optimizations to be activated explicitly by the toplevel.
4830 case "$CC" in
4831 */prev-gcc/xgcc*) ;;
4832 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4833 esac
4834
4835
4836 # -------------------------
4837 # Check C compiler features
4838 # -------------------------
4839
4840
4841 ac_ext=c
4842 ac_cpp='$CPP $CPPFLAGS'
4843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4847 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4848 # On Suns, sometimes $CPP names a directory.
4849 if test -n "$CPP" && test -d "$CPP"; then
4850 CPP=
4851 fi
4852 if test -z "$CPP"; then
4853 if test "${ac_cv_prog_CPP+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 # Double quotes because CPP needs to be expanded
4857 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4858 do
4859 ac_preproc_ok=false
4860 for ac_c_preproc_warn_flag in '' yes
4861 do
4862 # Use a header file that comes with gcc, so configuring glibc
4863 # with a fresh cross-compiler works.
4864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4865 # <limits.h> exists even on freestanding compilers.
4866 # On the NeXT, cc -E runs the code through the compiler's parser,
4867 # not just through cpp. "Syntax error" is here to catch this case.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #ifdef __STDC__
4871 # include <limits.h>
4872 #else
4873 # include <assert.h>
4874 #endif
4875 Syntax error
4876 _ACEOF
4877 if ac_fn_c_try_cpp "$LINENO"; then :
4878
4879 else
4880 # Broken: fails on valid input.
4881 continue
4882 fi
4883 rm -f conftest.err conftest.$ac_ext
4884
4885 # OK, works on sane cases. Now check whether nonexistent headers
4886 # can be detected and how.
4887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* end confdefs.h. */
4889 #include <ac_nonexistent.h>
4890 _ACEOF
4891 if ac_fn_c_try_cpp "$LINENO"; then :
4892 # Broken: success on invalid input.
4893 continue
4894 else
4895 # Passes both tests.
4896 ac_preproc_ok=:
4897 break
4898 fi
4899 rm -f conftest.err conftest.$ac_ext
4900
4901 done
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.$ac_ext
4904 if $ac_preproc_ok; then :
4905 break
4906 fi
4907
4908 done
4909 ac_cv_prog_CPP=$CPP
4910
4911 fi
4912 CPP=$ac_cv_prog_CPP
4913 else
4914 ac_cv_prog_CPP=$CPP
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4917 $as_echo "$CPP" >&6; }
4918 ac_preproc_ok=false
4919 for ac_c_preproc_warn_flag in '' yes
4920 do
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 #ifdef __STDC__
4930 # include <limits.h>
4931 #else
4932 # include <assert.h>
4933 #endif
4934 Syntax error
4935 _ACEOF
4936 if ac_fn_c_try_cpp "$LINENO"; then :
4937
4938 else
4939 # Broken: fails on valid input.
4940 continue
4941 fi
4942 rm -f conftest.err conftest.$ac_ext
4943
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947 /* end confdefs.h. */
4948 #include <ac_nonexistent.h>
4949 _ACEOF
4950 if ac_fn_c_try_cpp "$LINENO"; then :
4951 # Broken: success on invalid input.
4952 continue
4953 else
4954 # Passes both tests.
4955 ac_preproc_ok=:
4956 break
4957 fi
4958 rm -f conftest.err conftest.$ac_ext
4959
4960 done
4961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4962 rm -f conftest.err conftest.$ac_ext
4963 if $ac_preproc_ok; then :
4964
4965 else
4966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4968 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4969 See \`config.log' for more details." "$LINENO" 5; }
4970 fi
4971
4972 ac_ext=c
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4980 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4981 if test "${ac_cv_path_GREP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if test -z "$GREP"; then
4985 ac_path_GREP_found=false
4986 # Loop through the user's path and test for each of PROGNAME-LIST
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4989 do
4990 IFS=$as_save_IFS
4991 test -z "$as_dir" && as_dir=.
4992 for ac_prog in grep ggrep; do
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4995 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4996 # Check for GNU ac_path_GREP and select it if it is found.
4997 # Check for GNU $ac_path_GREP
4998 case `"$ac_path_GREP" --version 2>&1` in
4999 *GNU*)
5000 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5001 *)
5002 ac_count=0
5003 $as_echo_n 0123456789 >"conftest.in"
5004 while :
5005 do
5006 cat "conftest.in" "conftest.in" >"conftest.tmp"
5007 mv "conftest.tmp" "conftest.in"
5008 cp "conftest.in" "conftest.nl"
5009 $as_echo 'GREP' >> "conftest.nl"
5010 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5012 as_fn_arith $ac_count + 1 && ac_count=$as_val
5013 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5014 # Best one so far, save it but keep looking for a better one
5015 ac_cv_path_GREP="$ac_path_GREP"
5016 ac_path_GREP_max=$ac_count
5017 fi
5018 # 10*(2^10) chars as input seems more than enough
5019 test $ac_count -gt 10 && break
5020 done
5021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5022 esac
5023
5024 $ac_path_GREP_found && break 3
5025 done
5026 done
5027 done
5028 IFS=$as_save_IFS
5029 if test -z "$ac_cv_path_GREP"; then
5030 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5031 fi
5032 else
5033 ac_cv_path_GREP=$GREP
5034 fi
5035
5036 fi
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5038 $as_echo "$ac_cv_path_GREP" >&6; }
5039 GREP="$ac_cv_path_GREP"
5040
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5043 $as_echo_n "checking for egrep... " >&6; }
5044 if test "${ac_cv_path_EGREP+set}" = set; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5048 then ac_cv_path_EGREP="$GREP -E"
5049 else
5050 if test -z "$EGREP"; then
5051 ac_path_EGREP_found=false
5052 # Loop through the user's path and test for each of PROGNAME-LIST
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5055 do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_prog in egrep; do
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5062 # Check for GNU ac_path_EGREP and select it if it is found.
5063 # Check for GNU $ac_path_EGREP
5064 case `"$ac_path_EGREP" --version 2>&1` in
5065 *GNU*)
5066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5067 *)
5068 ac_count=0
5069 $as_echo_n 0123456789 >"conftest.in"
5070 while :
5071 do
5072 cat "conftest.in" "conftest.in" >"conftest.tmp"
5073 mv "conftest.tmp" "conftest.in"
5074 cp "conftest.in" "conftest.nl"
5075 $as_echo 'EGREP' >> "conftest.nl"
5076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5078 as_fn_arith $ac_count + 1 && ac_count=$as_val
5079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5080 # Best one so far, save it but keep looking for a better one
5081 ac_cv_path_EGREP="$ac_path_EGREP"
5082 ac_path_EGREP_max=$ac_count
5083 fi
5084 # 10*(2^10) chars as input seems more than enough
5085 test $ac_count -gt 10 && break
5086 done
5087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5088 esac
5089
5090 $ac_path_EGREP_found && break 3
5091 done
5092 done
5093 done
5094 IFS=$as_save_IFS
5095 if test -z "$ac_cv_path_EGREP"; then
5096 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097 fi
5098 else
5099 ac_cv_path_EGREP=$EGREP
5100 fi
5101
5102 fi
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5105 $as_echo "$ac_cv_path_EGREP" >&6; }
5106 EGREP="$ac_cv_path_EGREP"
5107
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5110 $as_echo_n "checking for ANSI C header files... " >&6; }
5111 if test "${ac_cv_header_stdc+set}" = set; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 #include <stdlib.h>
5117 #include <stdarg.h>
5118 #include <string.h>
5119 #include <float.h>
5120
5121 int
5122 main ()
5123 {
5124
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 if ac_fn_c_try_compile "$LINENO"; then :
5130 ac_cv_header_stdc=yes
5131 else
5132 ac_cv_header_stdc=no
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135
5136 if test $ac_cv_header_stdc = yes; then
5137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <string.h>
5141
5142 _ACEOF
5143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5144 $EGREP "memchr" >/dev/null 2>&1; then :
5145
5146 else
5147 ac_cv_header_stdc=no
5148 fi
5149 rm -f conftest*
5150
5151 fi
5152
5153 if test $ac_cv_header_stdc = yes; then
5154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 #include <stdlib.h>
5158
5159 _ACEOF
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5161 $EGREP "free" >/dev/null 2>&1; then :
5162
5163 else
5164 ac_cv_header_stdc=no
5165 fi
5166 rm -f conftest*
5167
5168 fi
5169
5170 if test $ac_cv_header_stdc = yes; then
5171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5172 if test "$cross_compiling" = yes; then :
5173 :
5174 else
5175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5177 #include <ctype.h>
5178 #include <stdlib.h>
5179 #if ((' ' & 0x0FF) == 0x020)
5180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5182 #else
5183 # define ISLOWER(c) \
5184 (('a' <= (c) && (c) <= 'i') \
5185 || ('j' <= (c) && (c) <= 'r') \
5186 || ('s' <= (c) && (c) <= 'z'))
5187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5188 #endif
5189
5190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5191 int
5192 main ()
5193 {
5194 int i;
5195 for (i = 0; i < 256; i++)
5196 if (XOR (islower (i), ISLOWER (i))
5197 || toupper (i) != TOUPPER (i))
5198 return 2;
5199 return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_run "$LINENO"; then :
5203
5204 else
5205 ac_cv_header_stdc=no
5206 fi
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5208 conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 fi
5210
5211 fi
5212 fi
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5214 $as_echo "$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5216
5217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5218
5219 fi
5220
5221 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5223 inttypes.h stdint.h unistd.h
5224 do :
5225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5226 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5227 "
5228 eval as_val=\$$as_ac_Header
5229 if test "x$as_val" = x""yes; then :
5230 cat >>confdefs.h <<_ACEOF
5231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232 _ACEOF
5233
5234 fi
5235
5236 done
5237
5238
5239
5240 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5242 MINIX=yes
5243 else
5244 MINIX=
5245 fi
5246
5247
5248 if test "$MINIX" = yes; then
5249
5250 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5251
5252
5253 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5254
5255
5256 $as_echo "#define _MINIX 1" >>confdefs.h
5257
5258 fi
5259
5260
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5262 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5263 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
5265 else
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268
5269 # define __EXTENSIONS__ 1
5270 $ac_includes_default
5271 int
5272 main ()
5273 {
5274
5275 ;
5276 return 0;
5277 }
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"; then :
5280 ac_cv_safe_to_define___extensions__=yes
5281 else
5282 ac_cv_safe_to_define___extensions__=no
5283 fi
5284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5287 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5288 test $ac_cv_safe_to_define___extensions__ = yes &&
5289 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5290
5291 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5292
5293 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5294
5295 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5296
5297 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5298
5299
5300 ac_ext=c
5301 ac_cpp='$CPP $CPPFLAGS'
5302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5306 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5307 # On Suns, sometimes $CPP names a directory.
5308 if test -n "$CPP" && test -d "$CPP"; then
5309 CPP=
5310 fi
5311 if test -z "$CPP"; then
5312 if test "${ac_cv_prog_CPP+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 # Double quotes because CPP needs to be expanded
5316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5317 do
5318 ac_preproc_ok=false
5319 for ac_c_preproc_warn_flag in '' yes
5320 do
5321 # Use a header file that comes with gcc, so configuring glibc
5322 # with a fresh cross-compiler works.
5323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5324 # <limits.h> exists even on freestanding compilers.
5325 # On the NeXT, cc -E runs the code through the compiler's parser,
5326 # not just through cpp. "Syntax error" is here to catch this case.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 #ifdef __STDC__
5330 # include <limits.h>
5331 #else
5332 # include <assert.h>
5333 #endif
5334 Syntax error
5335 _ACEOF
5336 if ac_fn_c_try_cpp "$LINENO"; then :
5337
5338 else
5339 # Broken: fails on valid input.
5340 continue
5341 fi
5342 rm -f conftest.err conftest.$ac_ext
5343
5344 # OK, works on sane cases. Now check whether nonexistent headers
5345 # can be detected and how.
5346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5348 #include <ac_nonexistent.h>
5349 _ACEOF
5350 if ac_fn_c_try_cpp "$LINENO"; then :
5351 # Broken: success on invalid input.
5352 continue
5353 else
5354 # Passes both tests.
5355 ac_preproc_ok=:
5356 break
5357 fi
5358 rm -f conftest.err conftest.$ac_ext
5359
5360 done
5361 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5362 rm -f conftest.err conftest.$ac_ext
5363 if $ac_preproc_ok; then :
5364 break
5365 fi
5366
5367 done
5368 ac_cv_prog_CPP=$CPP
5369
5370 fi
5371 CPP=$ac_cv_prog_CPP
5372 else
5373 ac_cv_prog_CPP=$CPP
5374 fi
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5376 $as_echo "$CPP" >&6; }
5377 ac_preproc_ok=false
5378 for ac_c_preproc_warn_flag in '' yes
5379 do
5380 # Use a header file that comes with gcc, so configuring glibc
5381 # with a fresh cross-compiler works.
5382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5383 # <limits.h> exists even on freestanding compilers.
5384 # On the NeXT, cc -E runs the code through the compiler's parser,
5385 # not just through cpp. "Syntax error" is here to catch this case.
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #ifdef __STDC__
5389 # include <limits.h>
5390 #else
5391 # include <assert.h>
5392 #endif
5393 Syntax error
5394 _ACEOF
5395 if ac_fn_c_try_cpp "$LINENO"; then :
5396
5397 else
5398 # Broken: fails on valid input.
5399 continue
5400 fi
5401 rm -f conftest.err conftest.$ac_ext
5402
5403 # OK, works on sane cases. Now check whether nonexistent headers
5404 # can be detected and how.
5405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5408 _ACEOF
5409 if ac_fn_c_try_cpp "$LINENO"; then :
5410 # Broken: success on invalid input.
5411 continue
5412 else
5413 # Passes both tests.
5414 ac_preproc_ok=:
5415 break
5416 fi
5417 rm -f conftest.err conftest.$ac_ext
5418
5419 done
5420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5421 rm -f conftest.err conftest.$ac_ext
5422 if $ac_preproc_ok; then :
5423
5424 else
5425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5427 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5428 See \`config.log' for more details." "$LINENO" 5; }
5429 fi
5430
5431 ac_ext=c
5432 ac_cpp='$CPP $CPPFLAGS'
5433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5436
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5438 $as_echo_n "checking for inline... " >&6; }
5439 if test "${ac_cv_c_inline+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 ac_cv_c_inline=no
5443 for ac_kw in inline __inline__ __inline; do
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5446 #ifndef __cplusplus
5447 typedef int foo_t;
5448 static $ac_kw foo_t static_foo () {return 0; }
5449 $ac_kw foo_t foo () {return 0; }
5450 #endif
5451
5452 _ACEOF
5453 if ac_fn_c_try_compile "$LINENO"; then :
5454 ac_cv_c_inline=$ac_kw
5455 fi
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 test "$ac_cv_c_inline" != no && break
5458 done
5459
5460 fi
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5462 $as_echo "$ac_cv_c_inline" >&6; }
5463
5464 case $ac_cv_c_inline in
5465 inline | yes) ;;
5466 *)
5467 case $ac_cv_c_inline in
5468 no) ac_val=;;
5469 *) ac_val=$ac_cv_c_inline;;
5470 esac
5471 cat >>confdefs.h <<_ACEOF
5472 #ifndef __cplusplus
5473 #define inline $ac_val
5474 #endif
5475 _ACEOF
5476 ;;
5477 esac
5478
5479
5480 # sizeof(char) is 1 by definition.
5481 # The cast to long int works around a bug in the HP C Compiler
5482 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5483 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5484 # This bug is HP SR number 8606223364.
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5486 $as_echo_n "checking size of void *... " >&6; }
5487 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5491
5492 else
5493 if test "$ac_cv_type_void_p" = yes; then
5494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5496 { as_fn_set_status 77
5497 as_fn_error "cannot compute sizeof (void *)
5498 See \`config.log' for more details." "$LINENO" 5; }; }
5499 else
5500 ac_cv_sizeof_void_p=0
5501 fi
5502 fi
5503
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5506 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5507
5508
5509
5510 cat >>confdefs.h <<_ACEOF
5511 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5512 _ACEOF
5513
5514
5515 # The cast to long int works around a bug in the HP C Compiler
5516 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5517 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5518 # This bug is HP SR number 8606223364.
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5520 $as_echo_n "checking size of short... " >&6; }
5521 if test "${ac_cv_sizeof_short+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5525
5526 else
5527 if test "$ac_cv_type_short" = yes; then
5528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5530 { as_fn_set_status 77
5531 as_fn_error "cannot compute sizeof (short)
5532 See \`config.log' for more details." "$LINENO" 5; }; }
5533 else
5534 ac_cv_sizeof_short=0
5535 fi
5536 fi
5537
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5540 $as_echo "$ac_cv_sizeof_short" >&6; }
5541
5542
5543
5544 cat >>confdefs.h <<_ACEOF
5545 #define SIZEOF_SHORT $ac_cv_sizeof_short
5546 _ACEOF
5547
5548
5549 # The cast to long int works around a bug in the HP C Compiler
5550 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5551 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5552 # This bug is HP SR number 8606223364.
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5554 $as_echo_n "checking size of int... " >&6; }
5555 if test "${ac_cv_sizeof_int+set}" = set; then :
5556 $as_echo_n "(cached) " >&6
5557 else
5558 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5559
5560 else
5561 if test "$ac_cv_type_int" = yes; then
5562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5564 { as_fn_set_status 77
5565 as_fn_error "cannot compute sizeof (int)
5566 See \`config.log' for more details." "$LINENO" 5; }; }
5567 else
5568 ac_cv_sizeof_int=0
5569 fi
5570 fi
5571
5572 fi
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5574 $as_echo "$ac_cv_sizeof_int" >&6; }
5575
5576
5577
5578 cat >>confdefs.h <<_ACEOF
5579 #define SIZEOF_INT $ac_cv_sizeof_int
5580 _ACEOF
5581
5582
5583 # The cast to long int works around a bug in the HP C Compiler
5584 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5585 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5586 # This bug is HP SR number 8606223364.
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5588 $as_echo_n "checking size of long... " >&6; }
5589 if test "${ac_cv_sizeof_long+set}" = set; then :
5590 $as_echo_n "(cached) " >&6
5591 else
5592 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5593
5594 else
5595 if test "$ac_cv_type_long" = yes; then
5596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5598 { as_fn_set_status 77
5599 as_fn_error "cannot compute sizeof (long)
5600 See \`config.log' for more details." "$LINENO" 5; }; }
5601 else
5602 ac_cv_sizeof_long=0
5603 fi
5604 fi
5605
5606 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5608 $as_echo "$ac_cv_sizeof_long" >&6; }
5609
5610
5611
5612 cat >>confdefs.h <<_ACEOF
5613 #define SIZEOF_LONG $ac_cv_sizeof_long
5614 _ACEOF
5615
5616
5617 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5618 if test "x$ac_cv_type_long_long" = x""yes; then :
5619
5620 cat >>confdefs.h <<_ACEOF
5621 #define HAVE_LONG_LONG 1
5622 _ACEOF
5623
5624 # The cast to long int works around a bug in the HP C Compiler
5625 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5626 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5627 # This bug is HP SR number 8606223364.
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5629 $as_echo_n "checking size of long long... " >&6; }
5630 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5634
5635 else
5636 if test "$ac_cv_type_long_long" = yes; then
5637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5639 { as_fn_set_status 77
5640 as_fn_error "cannot compute sizeof (long long)
5641 See \`config.log' for more details." "$LINENO" 5; }; }
5642 else
5643 ac_cv_sizeof_long_long=0
5644 fi
5645 fi
5646
5647 fi
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5649 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5650
5651
5652
5653 cat >>confdefs.h <<_ACEOF
5654 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5655 _ACEOF
5656
5657
5658 fi
5659
5660 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5661 if test "x$ac_cv_type___int64" = x""yes; then :
5662
5663 cat >>confdefs.h <<_ACEOF
5664 #define HAVE___INT64 1
5665 _ACEOF
5666
5667 # The cast to long int works around a bug in the HP C Compiler
5668 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5669 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5670 # This bug is HP SR number 8606223364.
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5672 $as_echo_n "checking size of __int64... " >&6; }
5673 if test "${ac_cv_sizeof___int64+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5675 else
5676 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5677
5678 else
5679 if test "$ac_cv_type___int64" = yes; then
5680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5682 { as_fn_set_status 77
5683 as_fn_error "cannot compute sizeof (__int64)
5684 See \`config.log' for more details." "$LINENO" 5; }; }
5685 else
5686 ac_cv_sizeof___int64=0
5687 fi
5688 fi
5689
5690 fi
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5692 $as_echo "$ac_cv_sizeof___int64" >&6; }
5693
5694
5695
5696 cat >>confdefs.h <<_ACEOF
5697 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5698 _ACEOF
5699
5700
5701 fi
5702
5703 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5704 case $ac_cv_c_int8_t in #(
5705 no|yes) ;; #(
5706 *)
5707
5708 cat >>confdefs.h <<_ACEOF
5709 #define int8_t $ac_cv_c_int8_t
5710 _ACEOF
5711 ;;
5712 esac
5713
5714 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5715 case $ac_cv_c_int16_t in #(
5716 no|yes) ;; #(
5717 *)
5718
5719 cat >>confdefs.h <<_ACEOF
5720 #define int16_t $ac_cv_c_int16_t
5721 _ACEOF
5722 ;;
5723 esac
5724
5725 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5726 case $ac_cv_c_int32_t in #(
5727 no|yes) ;; #(
5728 *)
5729
5730 cat >>confdefs.h <<_ACEOF
5731 #define int32_t $ac_cv_c_int32_t
5732 _ACEOF
5733 ;;
5734 esac
5735
5736 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5737 case $ac_cv_c_int64_t in #(
5738 no|yes) ;; #(
5739 *)
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define int64_t $ac_cv_c_int64_t
5743 _ACEOF
5744 ;;
5745 esac
5746
5747
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5749 $as_echo_n "checking for long long int... " >&6; }
5750 if test "${ac_cv_type_long_long_int+set}" = set; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5755
5756 /* For now, do not test the preprocessor; as of 2007 there are too many
5757 implementations with broken preprocessors. Perhaps this can
5758 be revisited in 2012. In the meantime, code should not expect
5759 #if to work with literals wider than 32 bits. */
5760 /* Test literals. */
5761 long long int ll = 9223372036854775807ll;
5762 long long int nll = -9223372036854775807LL;
5763 unsigned long long int ull = 18446744073709551615ULL;
5764 /* Test constant expressions. */
5765 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5766 ? 1 : -1)];
5767 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5768 ? 1 : -1)];
5769 int i = 63;
5770 int
5771 main ()
5772 {
5773 /* Test availability of runtime routines for shift and division. */
5774 long long int llmax = 9223372036854775807ll;
5775 unsigned long long int ullmax = 18446744073709551615ull;
5776 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5777 | (llmax / ll) | (llmax % ll)
5778 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5779 | (ullmax / ull) | (ullmax % ull));
5780 ;
5781 return 0;
5782 }
5783
5784 _ACEOF
5785 if ac_fn_c_try_link "$LINENO"; then :
5786 if test "$cross_compiling" = yes; then :
5787 ac_cv_type_long_long_int=yes
5788 else
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #include <limits.h>
5792 #ifndef LLONG_MAX
5793 # define HALF \
5794 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5795 # define LLONG_MAX (HALF - 1 + HALF)
5796 #endif
5797 int
5798 main ()
5799 {
5800 long long int n = 1;
5801 int i;
5802 for (i = 0; ; i++)
5803 {
5804 long long int m = n << i;
5805 if (m >> i != n)
5806 return 1;
5807 if (LLONG_MAX / 2 < m)
5808 break;
5809 }
5810 return 0;
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 if ac_fn_c_try_run "$LINENO"; then :
5816 ac_cv_type_long_long_int=yes
5817 else
5818 ac_cv_type_long_long_int=no
5819 fi
5820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5821 conftest.$ac_objext conftest.beam conftest.$ac_ext
5822 fi
5823
5824 else
5825 ac_cv_type_long_long_int=no
5826 fi
5827 rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829 fi
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5831 $as_echo "$ac_cv_type_long_long_int" >&6; }
5832 if test $ac_cv_type_long_long_int = yes; then
5833
5834 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5835
5836 fi
5837
5838
5839
5840 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5841 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5842
5843 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5844
5845 else
5846 test $ac_cv_type_long_long_int = yes \
5847 && ac_type='long long int' \
5848 || ac_type='long int'
5849
5850 cat >>confdefs.h <<_ACEOF
5851 #define intmax_t $ac_type
5852 _ACEOF
5853
5854 fi
5855
5856
5857
5858 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5859 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5860
5861 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5862
5863 else
5864 for ac_type in 'int' 'long int' 'long long int'; do
5865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 $ac_includes_default
5868 int
5869 main ()
5870 {
5871 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
5872 test_array [0] = 0
5873
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 if ac_fn_c_try_compile "$LINENO"; then :
5879
5880 cat >>confdefs.h <<_ACEOF
5881 #define intptr_t $ac_type
5882 _ACEOF
5883
5884 ac_type=
5885 fi
5886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5887 test -z "$ac_type" && break
5888 done
5889 fi
5890
5891
5892 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5893 case $ac_cv_c_uint8_t in #(
5894 no|yes) ;; #(
5895 *)
5896
5897 $as_echo "#define _UINT8_T 1" >>confdefs.h
5898
5899
5900 cat >>confdefs.h <<_ACEOF
5901 #define uint8_t $ac_cv_c_uint8_t
5902 _ACEOF
5903 ;;
5904 esac
5905
5906 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5907 case $ac_cv_c_uint16_t in #(
5908 no|yes) ;; #(
5909 *)
5910
5911
5912 cat >>confdefs.h <<_ACEOF
5913 #define uint16_t $ac_cv_c_uint16_t
5914 _ACEOF
5915 ;;
5916 esac
5917
5918 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5919 case $ac_cv_c_uint32_t in #(
5920 no|yes) ;; #(
5921 *)
5922
5923 $as_echo "#define _UINT32_T 1" >>confdefs.h
5924
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define uint32_t $ac_cv_c_uint32_t
5928 _ACEOF
5929 ;;
5930 esac
5931
5932 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5933 case $ac_cv_c_uint64_t in #(
5934 no|yes) ;; #(
5935 *)
5936
5937 $as_echo "#define _UINT64_T 1" >>confdefs.h
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define uint64_t $ac_cv_c_uint64_t
5942 _ACEOF
5943 ;;
5944 esac
5945
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5948 $as_echo_n "checking for unsigned long long int... " >&6; }
5949 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h. */
5954
5955 /* For now, do not test the preprocessor; as of 2007 there are too many
5956 implementations with broken preprocessors. Perhaps this can
5957 be revisited in 2012. In the meantime, code should not expect
5958 #if to work with literals wider than 32 bits. */
5959 /* Test literals. */
5960 long long int ll = 9223372036854775807ll;
5961 long long int nll = -9223372036854775807LL;
5962 unsigned long long int ull = 18446744073709551615ULL;
5963 /* Test constant expressions. */
5964 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5965 ? 1 : -1)];
5966 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5967 ? 1 : -1)];
5968 int i = 63;
5969 int
5970 main ()
5971 {
5972 /* Test availability of runtime routines for shift and division. */
5973 long long int llmax = 9223372036854775807ll;
5974 unsigned long long int ullmax = 18446744073709551615ull;
5975 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5976 | (llmax / ll) | (llmax % ll)
5977 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5978 | (ullmax / ull) | (ullmax % ull));
5979 ;
5980 return 0;
5981 }
5982
5983 _ACEOF
5984 if ac_fn_c_try_link "$LINENO"; then :
5985 ac_cv_type_unsigned_long_long_int=yes
5986 else
5987 ac_cv_type_unsigned_long_long_int=no
5988 fi
5989 rm -f core conftest.err conftest.$ac_objext \
5990 conftest$ac_exeext conftest.$ac_ext
5991 fi
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5993 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5994 if test $ac_cv_type_unsigned_long_long_int = yes; then
5995
5996 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5997
5998 fi
5999
6000
6001
6002 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6003 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6004
6005 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6006
6007 else
6008 test $ac_cv_type_unsigned_long_long_int = yes \
6009 && ac_type='unsigned long long int' \
6010 || ac_type='unsigned long int'
6011
6012 cat >>confdefs.h <<_ACEOF
6013 #define uintmax_t $ac_type
6014 _ACEOF
6015
6016 fi
6017
6018
6019
6020 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6021 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6022
6023 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6024
6025 else
6026 for ac_type in 'unsigned int' 'unsigned long int' \
6027 'unsigned long long int'; do
6028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h. */
6030 $ac_includes_default
6031 int
6032 main ()
6033 {
6034 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6035 test_array [0] = 0
6036
6037 ;
6038 return 0;
6039 }
6040 _ACEOF
6041 if ac_fn_c_try_compile "$LINENO"; then :
6042
6043 cat >>confdefs.h <<_ACEOF
6044 #define uintptr_t $ac_type
6045 _ACEOF
6046
6047 ac_type=
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 test -z "$ac_type" && break
6051 done
6052 fi
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068 # ---------------------
6069 # Warnings and checking
6070 # ---------------------
6071
6072 # Check $CC warning features (if it's GCC).
6073 # We want to use -pedantic, but we don't want warnings about
6074 # * 'long long'
6075 # * variadic macros
6076 # * overlong strings
6077 # So, we only use -pedantic if we can disable those warnings.
6078
6079 loose_warn=
6080 save_CFLAGS="$CFLAGS"
6081 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6082 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6083
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6085 $as_echo_n "checking whether $CC supports $option... " >&6; }
6086 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6087 $as_echo_n "(cached) " >&6
6088 else
6089 CFLAGS="$option"
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092
6093 int
6094 main ()
6095 {
6096
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 if ac_fn_c_try_compile "$LINENO"; then :
6102 eval "$as_acx_Woption=yes"
6103 else
6104 eval "$as_acx_Woption=no"
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107
6108 fi
6109 eval ac_res=\$$as_acx_Woption
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6111 $as_echo "$ac_res" >&6; }
6112 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6113 loose_warn="$loose_warn${loose_warn:+ }$option"
6114 fi
6115 done
6116 CFLAGS="$save_CFLAGS"
6117
6118 c_loose_warn=
6119 save_CFLAGS="$CFLAGS"
6120 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6121 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6122
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6124 $as_echo_n "checking whether $CC supports $option... " >&6; }
6125 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 CFLAGS="$option"
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131
6132 int
6133 main ()
6134 {
6135
6136 ;
6137 return 0;
6138 }
6139 _ACEOF
6140 if ac_fn_c_try_compile "$LINENO"; then :
6141 eval "$as_acx_Woption=yes"
6142 else
6143 eval "$as_acx_Woption=no"
6144 fi
6145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6146
6147 fi
6148 eval ac_res=\$$as_acx_Woption
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6150 $as_echo "$ac_res" >&6; }
6151 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6152 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6153 fi
6154 done
6155 CFLAGS="$save_CFLAGS"
6156
6157 strict_warn=
6158 save_CFLAGS="$CFLAGS"
6159 for option in -Wmissing-format-attribute; do
6160 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6161
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6163 $as_echo_n "checking whether $CC supports $option... " >&6; }
6164 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 CFLAGS="$option"
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169 /* end confdefs.h. */
6170
6171 int
6172 main ()
6173 {
6174
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 if ac_fn_c_try_compile "$LINENO"; then :
6180 eval "$as_acx_Woption=yes"
6181 else
6182 eval "$as_acx_Woption=no"
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185
6186 fi
6187 eval ac_res=\$$as_acx_Woption
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6189 $as_echo "$ac_res" >&6; }
6190 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6191 strict_warn="$strict_warn${strict_warn:+ }$option"
6192 fi
6193 done
6194 CFLAGS="$save_CFLAGS"
6195
6196 c_strict_warn=
6197 save_CFLAGS="$CFLAGS"
6198 for option in -Wold-style-definition -Wc++-compat; do
6199 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6200
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6202 $as_echo_n "checking whether $CC supports $option... " >&6; }
6203 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6204 $as_echo_n "(cached) " >&6
6205 else
6206 CFLAGS="$option"
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209
6210 int
6211 main ()
6212 {
6213
6214 ;
6215 return 0;
6216 }
6217 _ACEOF
6218 if ac_fn_c_try_compile "$LINENO"; then :
6219 eval "$as_acx_Woption=yes"
6220 else
6221 eval "$as_acx_Woption=no"
6222 fi
6223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224
6225 fi
6226 eval ac_res=\$$as_acx_Woption
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6228 $as_echo "$ac_res" >&6; }
6229 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6230 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6231 fi
6232 done
6233 CFLAGS="$save_CFLAGS"
6234
6235 if test "$GCC" = yes; then :
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6237 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6238 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 save_CFLAGS="$CFLAGS"
6242 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6244 /* end confdefs.h. */
6245
6246 int
6247 main ()
6248 {
6249
6250 ;
6251 return 0;
6252 }
6253 _ACEOF
6254 if ac_fn_c_try_compile "$LINENO"; then :
6255 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6256 else
6257 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6258 fi
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 CFLAGS="$save_CFLAGS"
6261 fi
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6263 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6264 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6265 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6266 fi
6267
6268 fi
6269
6270 # Check whether --enable-werror-always was given.
6271 if test "${enable_werror_always+set}" = set; then :
6272 enableval=$enable_werror_always;
6273 else
6274 enable_werror_always=no
6275 fi
6276
6277 if test $enable_werror_always = yes; then :
6278 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6279 fi
6280
6281
6282
6283 # The above macros do nothing if the compiler is not GCC. However, the
6284 # Makefile has more goo to add other flags, so these variables are used
6285 # to enable warnings only for GCC.
6286 warn_cflags=
6287 warn_cxxflags=
6288 if test "x$GCC" = "xyes"; then
6289 warn_cflags='$(GCC_WARN_CFLAGS)'
6290 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6291 fi
6292
6293
6294
6295 # Enable expensive internal checks
6296 is_release=
6297 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6298 is_release=yes
6299 fi
6300
6301 # Check whether --enable-checking was given.
6302 if test "${enable_checking+set}" = set; then :
6303 enableval=$enable_checking; ac_checking_flags="${enableval}"
6304 else
6305
6306 # Determine the default checks.
6307 if test x$is_release = x ; then
6308 ac_checking_flags=yes
6309 else
6310 ac_checking_flags=release
6311 fi
6312 fi
6313
6314 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6315 for check in release $ac_checking_flags
6316 do
6317 case $check in
6318 # these set all the flags to specific states
6319 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6320 ac_fold_checking= ; ac_gc_checking=1 ;
6321 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6322 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6323 ac_tree_checking=1 ; ac_valgrind_checking= ;
6324 ac_types_checking=1 ;;
6325 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6326 ac_fold_checking= ; ac_gc_checking= ;
6327 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6328 ac_rtlflag_checking= ; ac_runtime_checking= ;
6329 ac_tree_checking= ; ac_valgrind_checking= ;
6330 ac_types_checking= ;;
6331 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6332 ac_fold_checking=1 ; ac_gc_checking=1 ;
6333 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6334 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6335 ac_tree_checking=1 ; ac_valgrind_checking= ;
6336 ac_types_checking=1 ;;
6337 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6338 ac_fold_checking= ; ac_gc_checking= ;
6339 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6340 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6341 ac_tree_checking= ; ac_valgrind_checking= ;
6342 ac_types_checking= ;;
6343 # these enable particular checks
6344 assert) ac_assert_checking=1 ;;
6345 df) ac_df_checking=1 ;;
6346 fold) ac_fold_checking=1 ;;
6347 gc) ac_gc_checking=1 ;;
6348 gcac) ac_gc_always_collect=1 ;;
6349 gimple) ac_gimple_checking=1 ;;
6350 misc) ac_checking=1 ;;
6351 rtl) ac_rtl_checking=1 ;;
6352 rtlflag) ac_rtlflag_checking=1 ;;
6353 runtime) ac_runtime_checking=1 ;;
6354 tree) ac_tree_checking=1 ;;
6355 types) ac_types_checking=1 ;;
6356 valgrind) ac_valgrind_checking=1 ;;
6357 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6358 esac
6359 done
6360 IFS="$ac_save_IFS"
6361
6362 nocommon_flag=""
6363 if test x$ac_checking != x ; then
6364
6365 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6366
6367 nocommon_flag=-fno-common
6368 fi
6369
6370 if test x$ac_df_checking != x ; then
6371
6372 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6373
6374 fi
6375 if test x$ac_assert_checking != x ; then
6376
6377 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6378
6379 fi
6380 if test x$ac_gimple_checking != x ; then
6381
6382 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6383
6384 fi
6385
6386 if test x$ac_runtime_checking != x ; then
6387
6388 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6389
6390 fi
6391 if test x$ac_tree_checking != x ; then
6392
6393 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6394
6395 TREEBROWSER=tree-browser.o
6396 fi
6397 if test x$ac_types_checking != x ; then
6398
6399 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6400
6401 fi
6402
6403 if test x$ac_rtl_checking != x ; then
6404
6405 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6406
6407 fi
6408 if test x$ac_rtlflag_checking != x ; then
6409
6410 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6411
6412 fi
6413 if test x$ac_gc_checking != x ; then
6414
6415 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6416
6417 fi
6418 if test x$ac_gc_always_collect != x ; then
6419
6420 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6421
6422 fi
6423 if test x$ac_fold_checking != x ; then
6424
6425 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6426
6427 fi
6428 valgrind_path_defines=
6429 valgrind_command=
6430
6431 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6432 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6433 have_valgrind_h=yes
6434 else
6435 have_valgrind_h=no
6436 fi
6437
6438
6439
6440 if test x$ac_valgrind_checking != x ; then
6441 # It is certainly possible that there's valgrind but no valgrind.h.
6442 # GCC relies on making annotations so we must have both.
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6444 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 #include <valgrind/memcheck.h>
6448 #ifndef VALGRIND_DISCARD
6449 #error VALGRIND_DISCARD not defined
6450 #endif
6451 _ACEOF
6452 if ac_fn_c_try_cpp "$LINENO"; then :
6453 gcc_cv_header_valgrind_memcheck_h=yes
6454 else
6455 gcc_cv_header_valgrind_memcheck_h=no
6456 fi
6457 rm -f conftest.err conftest.$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6459 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6461 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6464 #include <memcheck.h>
6465 #ifndef VALGRIND_DISCARD
6466 #error VALGRIND_DISCARD not defined
6467 #endif
6468 _ACEOF
6469 if ac_fn_c_try_cpp "$LINENO"; then :
6470 gcc_cv_header_memcheck_h=yes
6471 else
6472 gcc_cv_header_memcheck_h=no
6473 fi
6474 rm -f conftest.err conftest.$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6476 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6477
6478 # Prepare PATH_SEPARATOR.
6479 # The user is always right.
6480 if test "${PATH_SEPARATOR+set}" != set; then
6481 echo "#! /bin/sh" >conf$$.sh
6482 echo "exit 0" >>conf$$.sh
6483 chmod +x conf$$.sh
6484 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6485 PATH_SEPARATOR=';'
6486 else
6487 PATH_SEPARATOR=:
6488 fi
6489 rm -f conf$$.sh
6490 fi
6491
6492 # Find out how to test for executable files. Don't use a zero-byte file,
6493 # as systems may use methods other than mode bits to determine executability.
6494 cat >conf$$.file <<_ASEOF
6495 #! /bin/sh
6496 exit 0
6497 _ASEOF
6498 chmod +x conf$$.file
6499 if test -x conf$$.file >/dev/null 2>&1; then
6500 ac_executable_p="test -x"
6501 else
6502 ac_executable_p="test -f"
6503 fi
6504 rm -f conf$$.file
6505
6506 # Extract the first word of "valgrind", so it can be a program name with args.
6507 set dummy valgrind; ac_word=$2
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509 $as_echo_n "checking for $ac_word... " >&6; }
6510 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 case "$valgrind_path" in
6514 [\\/]* | ?:[\\/]*)
6515 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6516 ;;
6517 *)
6518 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6519 for ac_dir in $PATH; do
6520 IFS="$ac_save_IFS"
6521 test -z "$ac_dir" && ac_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6524 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6525 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6526 break 2
6527 fi
6528 fi
6529 done
6530 done
6531 IFS="$ac_save_IFS"
6532 ;;
6533 esac
6534 fi
6535 valgrind_path="$ac_cv_path_valgrind_path"
6536 if test -n "$valgrind_path"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6538 $as_echo "$valgrind_path" >&6; }
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6542 fi
6543
6544 if test "x$valgrind_path" = "x" \
6545 || (test $have_valgrind_h = no \
6546 && test $gcc_cv_header_memcheck_h = no \
6547 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6548 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6549 fi
6550 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6551 valgrind_command="$valgrind_path -q"
6552
6553 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6554
6555 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6556
6557 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6558
6559 fi
6560 if test $gcc_cv_header_memcheck_h = yes; then
6561
6562 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6563
6564 fi
6565 fi
6566
6567
6568
6569 # Enable code coverage collection
6570 # Check whether --enable-coverage was given.
6571 if test "${enable_coverage+set}" = set; then :
6572 enableval=$enable_coverage; case "${enableval}" in
6573 yes|noopt)
6574 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6575 ;;
6576 opt)
6577 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6578 ;;
6579 no)
6580 # a.k.a. --disable-coverage
6581 coverage_flags=""
6582 ;;
6583 *)
6584 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6585 ;;
6586 esac
6587 else
6588 coverage_flags=""
6589 fi
6590
6591
6592
6593 # Check whether --enable-gather-detailed-mem-stats was given.
6594 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6595 enableval=$enable_gather_detailed_mem_stats;
6596 else
6597 enable_gather_detailed_mem_stats=no
6598 fi
6599
6600 if test x$enable_gather_detailed_mem_stats = xyes ; then
6601
6602 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6603
6604 fi
6605
6606 # -------------------------------
6607 # Miscenalleous configure options
6608 # -------------------------------
6609
6610 # See if we are building gcc with C++.
6611 # Check whether --enable-build-with-cxx was given.
6612 if test "${enable_build_with_cxx+set}" = set; then :
6613 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6614 else
6615 ENABLE_BUILD_WITH_CXX=no
6616 fi
6617
6618
6619
6620 # With stabs
6621
6622 # Check whether --with-stabs was given.
6623 if test "${with_stabs+set}" = set; then :
6624 withval=$with_stabs; stabs="$with_stabs"
6625 else
6626 stabs=no
6627 fi
6628
6629
6630 # Determine whether or not multilibs are enabled.
6631 # Check whether --enable-multilib was given.
6632 if test "${enable_multilib+set}" = set; then :
6633 enableval=$enable_multilib;
6634 else
6635 enable_multilib=yes
6636 fi
6637
6638
6639
6640 # Enable __cxa_atexit for C++.
6641 # Check whether --enable-__cxa_atexit was given.
6642 if test "${enable___cxa_atexit+set}" = set; then :
6643 enableval=$enable___cxa_atexit;
6644 fi
6645
6646
6647 # Enable C extension for decimal float if target supports it.
6648 # Check whether --enable-decimal-float was given.
6649 if test "${enable_decimal_float+set}" = set; then :
6650 enableval=$enable_decimal_float;
6651 case $enable_decimal_float in
6652 yes | no | bid | dpd) ;;
6653 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6654 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6655 esac
6656
6657 else
6658
6659 case $target in
6660 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6661 enable_decimal_float=yes
6662 ;;
6663 *)
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6665 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6666 enable_decimal_float=no
6667 ;;
6668 esac
6669
6670 fi
6671
6672
6673 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6674
6675 cat >>confdefs.h <<_ACEOF
6676 #define ENABLE_DECIMAL_FLOAT $dfp
6677 _ACEOF
6678
6679
6680 # x86's use BID format instead of DPD
6681 case x$enable_decimal_float in
6682 xyes)
6683 case $target in
6684 i?86*-*-linux* | x86_64*-*-linux*)
6685 enable_decimal_float=bid
6686 ;;
6687 *)
6688 enable_decimal_float=dpd
6689 ;;
6690 esac
6691 ;;
6692 xno)
6693 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6694 # dependency on libdecnumber.
6695 enable_decimal_float=dpd
6696 ;;
6697 esac
6698
6699
6700 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6701
6702 cat >>confdefs.h <<_ACEOF
6703 #define ENABLE_DECIMAL_BID_FORMAT $bid
6704 _ACEOF
6705
6706
6707 # Enable C extension for fixed-point arithmetic.
6708 # Check whether --enable-fixed-point was given.
6709 if test "${enable_fixed_point+set}" = set; then :
6710 enableval=$enable_fixed_point;
6711
6712 else
6713
6714 case $target in
6715 mips*-*-*)
6716 case $host in
6717 mips*-sgi-irix*)
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6719 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6720 enable_fixed_point=no
6721 ;;
6722 *)
6723 enable_fixed_point=yes
6724 ;;
6725 esac
6726 ;;
6727 *)
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6729 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6730 enable_fixed_point=no
6731 ;;
6732 esac
6733
6734 fi
6735
6736
6737
6738 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6739
6740 cat >>confdefs.h <<_ACEOF
6741 #define ENABLE_FIXED_POINT $fixedpoint
6742 _ACEOF
6743
6744
6745 # Enable threads
6746 # Pass with no value to take the default
6747 # Pass with a value to specify a thread package
6748 # Check whether --enable-threads was given.
6749 if test "${enable_threads+set}" = set; then :
6750 enableval=$enable_threads;
6751 else
6752 enable_threads=''
6753 fi
6754
6755
6756 # Check whether --enable-tls was given.
6757 if test "${enable_tls+set}" = set; then :
6758 enableval=$enable_tls;
6759 case $enable_tls in
6760 yes | no) ;;
6761 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6762 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6763 esac
6764
6765 else
6766 enable_tls=''
6767 fi
6768
6769
6770 # Check whether --enable-objc-gc was given.
6771 if test "${enable_objc_gc+set}" = set; then :
6772 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6773 objc_boehm_gc=''
6774 else
6775 objc_boehm_gc=1
6776 fi
6777 else
6778 objc_boehm_gc=''
6779 fi
6780
6781
6782
6783 # Check whether --with-dwarf2 was given.
6784 if test "${with_dwarf2+set}" = set; then :
6785 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6786 else
6787 dwarf2=no
6788 fi
6789
6790
6791 # Check whether --enable-shared was given.
6792 if test "${enable_shared+set}" = set; then :
6793 enableval=$enable_shared;
6794 case $enable_shared in
6795 yes | no) ;;
6796 *)
6797 enable_shared=no
6798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6799 for pkg in $enableval; do
6800 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6801 enable_shared=yes
6802 fi
6803 done
6804 IFS="$ac_save_ifs"
6805 ;;
6806 esac
6807
6808 else
6809 enable_shared=yes
6810 fi
6811
6812
6813
6814
6815 # Check whether --with-build-sysroot was given.
6816 if test "${with_build_sysroot+set}" = set; then :
6817 withval=$with_build_sysroot;
6818 fi
6819
6820
6821
6822 # Check whether --with-sysroot was given.
6823 if test "${with_sysroot+set}" = set; then :
6824 withval=$with_sysroot;
6825 case ${with_sysroot} in
6826 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6827 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6828 esac
6829
6830 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6831 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6832
6833 if test "x$prefix" = xNONE; then
6834 test_prefix=/usr/local
6835 else
6836 test_prefix=$prefix
6837 fi
6838 if test "x$exec_prefix" = xNONE; then
6839 test_exec_prefix=$test_prefix
6840 else
6841 test_exec_prefix=$exec_prefix
6842 fi
6843 case ${TARGET_SYSTEM_ROOT} in
6844 "${test_prefix}"|"${test_prefix}/"*|\
6845 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6846 '${prefix}'|'${prefix}/'*|\
6847 '${exec_prefix}'|'${exec_prefix}/'*)
6848 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6849 TARGET_SYSTEM_ROOT_DEFINE="$t"
6850 ;;
6851 esac
6852
6853 else
6854
6855 TARGET_SYSTEM_ROOT=
6856 TARGET_SYSTEM_ROOT_DEFINE=
6857 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6858
6859 fi
6860
6861
6862
6863
6864
6865
6866 # Check whether --with-specs was given.
6867 if test "${with_specs+set}" = set; then :
6868 withval=$with_specs; CONFIGURE_SPECS=$withval
6869 else
6870 CONFIGURE_SPECS=
6871
6872 fi
6873
6874
6875
6876 # Build with intermodule optimisations
6877 # Check whether --enable-intermodule was given.
6878 if test "${enable_intermodule+set}" = set; then :
6879 enableval=$enable_intermodule; case ${enable_intermodule} in
6880 yes) onestep="-onestep";;
6881 *) onestep="";;
6882 esac
6883 else
6884 onestep=""
6885 fi
6886
6887
6888
6889
6890
6891 # Check whether --with-pkgversion was given.
6892 if test "${with_pkgversion+set}" = set; then :
6893 withval=$with_pkgversion; case "$withval" in
6894 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6895 no) PKGVERSION= ;;
6896 *) PKGVERSION="($withval) " ;;
6897 esac
6898 else
6899 PKGVERSION="(GCC) "
6900
6901 fi
6902
6903
6904
6905
6906
6907 # Check whether --with-bugurl was given.
6908 if test "${with_bugurl+set}" = set; then :
6909 withval=$with_bugurl; case "$withval" in
6910 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6911 no) BUGURL=
6912 ;;
6913 *) BUGURL="$withval"
6914 ;;
6915 esac
6916 else
6917 BUGURL="http://gcc.gnu.org/bugs.html"
6918
6919 fi
6920
6921 case ${BUGURL} in
6922 "")
6923 REPORT_BUGS_TO=
6924 REPORT_BUGS_TEXI=
6925 ;;
6926 *)
6927 REPORT_BUGS_TO="<$BUGURL>"
6928 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6929 ;;
6930 esac;
6931
6932
6933
6934
6935 # Sanity check enable_languages in case someone does not run the toplevel
6936 # configure # script.
6937 # Check whether --enable-languages was given.
6938 if test "${enable_languages+set}" = set; then :
6939 enableval=$enable_languages; case ,${enable_languages}, in
6940 ,,|,yes,)
6941 # go safe -- we cannot be much sure without the toplevel
6942 # configure's
6943 # analysis of which target libs are present and usable
6944 enable_languages=c
6945 ;;
6946 *,all,*)
6947 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6948 ;;
6949 *,c,*)
6950 ;;
6951 *)
6952 enable_languages=c,${enable_languages}
6953 ;;
6954 esac
6955 else
6956 enable_languages=c
6957 fi
6958
6959
6960
6961 # Check whether --with-multilib-list was given.
6962 if test "${with_multilib_list+set}" = set; then :
6963 withval=$with_multilib_list; :
6964 else
6965 with_multilib_list=default
6966 fi
6967
6968
6969 # -------------------------
6970 # Checks for other programs
6971 # -------------------------
6972
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6974 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6975 set x ${MAKE-make}
6976 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6977 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 cat >conftest.make <<\_ACEOF
6981 SHELL = /bin/sh
6982 all:
6983 @echo '@@@%%%=$(MAKE)=@@@%%%'
6984 _ACEOF
6985 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6986 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6987 *@@@%%%=?*=@@@%%%*)
6988 eval ac_cv_prog_make_${ac_make}_set=yes;;
6989 *)
6990 eval ac_cv_prog_make_${ac_make}_set=no;;
6991 esac
6992 rm -f conftest.make
6993 fi
6994 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6996 $as_echo "yes" >&6; }
6997 SET_MAKE=
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 SET_MAKE="MAKE=${MAKE-make}"
7002 fi
7003
7004
7005 # Find some useful tools
7006 for ac_prog in gawk mawk nawk awk
7007 do
7008 # Extract the first word of "$ac_prog", so it can be a program name with args.
7009 set dummy $ac_prog; ac_word=$2
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7011 $as_echo_n "checking for $ac_word... " >&6; }
7012 if test "${ac_cv_prog_AWK+set}" = set; then :
7013 $as_echo_n "(cached) " >&6
7014 else
7015 if test -n "$AWK"; then
7016 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7017 else
7018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019 for as_dir in $PATH
7020 do
7021 IFS=$as_save_IFS
7022 test -z "$as_dir" && as_dir=.
7023 for ac_exec_ext in '' $ac_executable_extensions; do
7024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025 ac_cv_prog_AWK="$ac_prog"
7026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7027 break 2
7028 fi
7029 done
7030 done
7031 IFS=$as_save_IFS
7032
7033 fi
7034 fi
7035 AWK=$ac_cv_prog_AWK
7036 if test -n "$AWK"; then
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7038 $as_echo "$AWK" >&6; }
7039 else
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7041 $as_echo "no" >&6; }
7042 fi
7043
7044
7045 test -n "$AWK" && break
7046 done
7047
7048 # We need awk to create options.c and options.h.
7049 # Bail out if it's missing.
7050 case ${AWK} in
7051 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7052 esac
7053
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7055 $as_echo_n "checking whether ln -s works... " >&6; }
7056 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 rm -f conftestdata_t
7060 echo >conftestdata_f
7061 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7062 then
7063 gcc_cv_prog_LN_S="ln -s"
7064 else
7065 if ln conftestdata_f conftestdata_t 2>/dev/null
7066 then
7067 gcc_cv_prog_LN_S=ln
7068 else
7069 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7070 then
7071 gcc_cv_prog_LN_S="cp -p"
7072 else
7073 gcc_cv_prog_LN_S=cp
7074 fi
7075 fi
7076 fi
7077 rm -f conftestdata_f conftestdata_t
7078
7079 fi
7080 LN_S="$gcc_cv_prog_LN_S"
7081 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7083 $as_echo "yes" >&6; }
7084 else
7085 if test "$gcc_cv_prog_LN_S" = "ln"; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7087 $as_echo "no, using ln" >&6; }
7088 else
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7090 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7091 fi
7092 fi
7093
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7095 $as_echo_n "checking whether ln works... " >&6; }
7096 if test "${acx_cv_prog_LN+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 rm -f conftestdata_t
7100 echo >conftestdata_f
7101 if ln conftestdata_f conftestdata_t 2>/dev/null
7102 then
7103 acx_cv_prog_LN=ln
7104 else
7105 acx_cv_prog_LN=no
7106 fi
7107 rm -f conftestdata_f conftestdata_t
7108
7109 fi
7110 if test $acx_cv_prog_LN = no; then
7111 LN="$LN_S"
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7113 $as_echo "no, using $LN" >&6; }
7114 else
7115 LN="$acx_cv_prog_LN"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7117 $as_echo "yes" >&6; }
7118 fi
7119
7120 if test -n "$ac_tool_prefix"; then
7121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7122 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7126 $as_echo_n "(cached) " >&6
7127 else
7128 if test -n "$RANLIB"; then
7129 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134 IFS=$as_save_IFS
7135 test -z "$as_dir" && as_dir=.
7136 for ac_exec_ext in '' $ac_executable_extensions; do
7137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140 break 2
7141 fi
7142 done
7143 done
7144 IFS=$as_save_IFS
7145
7146 fi
7147 fi
7148 RANLIB=$ac_cv_prog_RANLIB
7149 if test -n "$RANLIB"; then
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7151 $as_echo "$RANLIB" >&6; }
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157
7158 fi
7159 if test -z "$ac_cv_prog_RANLIB"; then
7160 ac_ct_RANLIB=$RANLIB
7161 # Extract the first word of "ranlib", so it can be a program name with args.
7162 set dummy ranlib; ac_word=$2
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7164 $as_echo_n "checking for $ac_word... " >&6; }
7165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7166 $as_echo_n "(cached) " >&6
7167 else
7168 if test -n "$ac_ct_RANLIB"; then
7169 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7170 else
7171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172 for as_dir in $PATH
7173 do
7174 IFS=$as_save_IFS
7175 test -z "$as_dir" && as_dir=.
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178 ac_cv_prog_ac_ct_RANLIB="ranlib"
7179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7180 break 2
7181 fi
7182 done
7183 done
7184 IFS=$as_save_IFS
7185
7186 fi
7187 fi
7188 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7189 if test -n "$ac_ct_RANLIB"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7191 $as_echo "$ac_ct_RANLIB" >&6; }
7192 else
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7194 $as_echo "no" >&6; }
7195 fi
7196
7197 if test "x$ac_ct_RANLIB" = x; then
7198 RANLIB=":"
7199 else
7200 case $cross_compiling:$ac_tool_warned in
7201 yes:)
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7204 ac_tool_warned=yes ;;
7205 esac
7206 RANLIB=$ac_ct_RANLIB
7207 fi
7208 else
7209 RANLIB="$ac_cv_prog_RANLIB"
7210 fi
7211
7212 case "${host}" in
7213 *-*-darwin*)
7214 # By default, the Darwin ranlib will not treat common symbols as
7215 # definitions when building the archive table of contents. Other
7216 # ranlibs do that; pass an option to the Darwin ranlib that makes
7217 # it behave similarly.
7218 ranlib_flags="-c"
7219 ;;
7220 *)
7221 ranlib_flags=""
7222 esac
7223
7224
7225 # Find a good install program. We prefer a C program (faster),
7226 # so one script is as good as another. But avoid the broken or
7227 # incompatible versions:
7228 # SysV /etc/install, /usr/sbin/install
7229 # SunOS /usr/etc/install
7230 # IRIX /sbin/install
7231 # AIX /bin/install
7232 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7233 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7234 # ./install, which can be erroneously created by make from ./install.sh.
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7236 $as_echo_n "checking for a BSD compatible install... " >&6; }
7237 if test -z "$INSTALL"; then
7238 if test "${ac_cv_path_install+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7242 for ac_dir in $PATH; do
7243 # Account for people who put trailing slashes in PATH elements.
7244 case "$ac_dir/" in
7245 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7246 *)
7247 # OSF1 and SCO ODT 3.0 have their own names for install.
7248 for ac_prog in ginstall scoinst install; do
7249 if test -f $ac_dir/$ac_prog; then
7250 if test $ac_prog = install &&
7251 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7252 # AIX install. It has an incompatible calling convention.
7253 # OSF/1 installbsd also uses dspmsg, but is usable.
7254 :
7255 else
7256 ac_cv_path_install="$ac_dir/$ac_prog -c"
7257 break 2
7258 fi
7259 fi
7260 done
7261 ;;
7262 esac
7263 done
7264 IFS="$ac_save_IFS"
7265
7266 fi
7267 if test "${ac_cv_path_install+set}" = set; then
7268 INSTALL="$ac_cv_path_install"
7269 else
7270 # As a last resort, use the slow shell script. We don't cache a
7271 # path for INSTALL within a source directory, because that will
7272 # break other packages using the cache if that directory is
7273 # removed, or if the path is relative.
7274 INSTALL="$ac_install_sh"
7275 fi
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7278 $as_echo "$INSTALL" >&6; }
7279
7280 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7281 # It thinks the first close brace ends the variable substitution.
7282 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7283
7284 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7285
7286
7287 # See if cmp has --ignore-initial.
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7289 $as_echo_n "checking for cmp's capabilities... " >&6; }
7290 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7291 $as_echo_n "(cached) " >&6
7292 else
7293 echo abfoo >t1
7294 echo cdfoo >t2
7295 gcc_cv_prog_cmp_skip=slowcompare
7296 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7297 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7298 :
7299 else
7300 gcc_cv_prog_cmp_skip=gnucompare
7301 fi
7302 fi
7303 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7304 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7305 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7306 :
7307 else
7308 gcc_cv_prog_cmp_skip=fastcompare
7309 fi
7310 fi
7311 fi
7312 rm t1 t2
7313
7314 fi
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7316 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7317 make_compare_target=$gcc_cv_prog_cmp_skip
7318
7319
7320
7321 # See if we have the mktemp command.
7322 # Extract the first word of "mktemp", so it can be a program name with args.
7323 set dummy mktemp; ac_word=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 if test -n "$have_mktemp_command"; then
7330 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7331 else
7332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 for as_dir in $PATH
7334 do
7335 IFS=$as_save_IFS
7336 test -z "$as_dir" && as_dir=.
7337 for ac_exec_ext in '' $ac_executable_extensions; do
7338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7339 ac_cv_prog_have_mktemp_command="yes"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7341 break 2
7342 fi
7343 done
7344 done
7345 IFS=$as_save_IFS
7346
7347 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7348 fi
7349 fi
7350 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7351 if test -n "$have_mktemp_command"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7353 $as_echo "$have_mktemp_command" >&6; }
7354 else
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7356 $as_echo "no" >&6; }
7357 fi
7358
7359
7360
7361 # See if makeinfo has been installed and is modern enough
7362 # that we can use it.
7363
7364 # Extract the first word of "makeinfo", so it can be a program name with args.
7365 set dummy makeinfo; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$MAKEINFO"; then
7372 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_MAKEINFO="makeinfo"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7384 fi
7385 done
7386 done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 MAKEINFO=$ac_cv_prog_MAKEINFO
7392 if test -n "$MAKEINFO"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7394 $as_echo "$MAKEINFO" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400
7401 if test -n "$MAKEINFO"; then
7402 # Found it, now check the version.
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7404 $as_echo_n "checking for modern makeinfo... " >&6; }
7405 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7409 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7410
7411 case $ac_prog_version in
7412 '') gcc_cv_prog_makeinfo_modern=no;;
7413 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7414 *) gcc_cv_prog_makeinfo_modern=no;;
7415 esac
7416
7417 fi
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7419 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7420 else
7421 gcc_cv_prog_makeinfo_modern=no
7422 fi
7423 if test $gcc_cv_prog_makeinfo_modern = no; then
7424 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7425 fi
7426
7427 if test $gcc_cv_prog_makeinfo_modern = no; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7429 *** Makeinfo is missing or too old.
7430 *** Info documentation will not be built." >&5
7431 $as_echo "$as_me: WARNING:
7432 *** Makeinfo is missing or too old.
7433 *** Info documentation will not be built." >&2;}
7434 BUILD_INFO=
7435 else
7436 BUILD_INFO=info
7437 fi
7438
7439
7440 # Is pod2man recent enough to regenerate manpages?
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7442 $as_echo_n "checking for recent Pod::Man... " >&6; }
7443 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7445 $as_echo "yes" >&6; }
7446 GENERATED_MANPAGES=generated-manpages
7447 else
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7449 $as_echo "no" >&6; }
7450 GENERATED_MANPAGES=
7451 fi
7452
7453
7454 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7455
7456 # How about lex?
7457 for ac_prog in flex
7458 do
7459 # Extract the first word of "$ac_prog", so it can be a program name with args.
7460 set dummy $ac_prog; ac_word=$2
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7462 $as_echo_n "checking for $ac_word... " >&6; }
7463 if test "${ac_cv_prog_FLEX+set}" = set; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if test -n "$FLEX"; then
7467 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7468 else
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472 IFS=$as_save_IFS
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_prog_FLEX="$ac_prog"
7477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7478 break 2
7479 fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484 fi
7485 fi
7486 FLEX=$ac_cv_prog_FLEX
7487 if test -n "$FLEX"; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7489 $as_echo "$FLEX" >&6; }
7490 else
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7492 $as_echo "no" >&6; }
7493 fi
7494
7495
7496 test -n "$FLEX" && break
7497 done
7498 test -n "$FLEX" || FLEX="$MISSING flex"
7499
7500
7501 # Bison?
7502 for ac_prog in bison
7503 do
7504 # Extract the first word of "$ac_prog", so it can be a program name with args.
7505 set dummy $ac_prog; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if test "${ac_cv_prog_BISON+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$BISON"; then
7512 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_BISON="$ac_prog"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 BISON=$ac_cv_prog_BISON
7532 if test -n "$BISON"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7534 $as_echo "$BISON" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540
7541 test -n "$BISON" && break
7542 done
7543 test -n "$BISON" || BISON="$MISSING bison"
7544
7545
7546 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7547 # check for build == host before using them.
7548
7549 # NM
7550 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7551 && test -d ../binutils ; then
7552 NM='${objdir}/../binutils/nm-new'
7553 else
7554 # Extract the first word of "nm", so it can be a program name with args.
7555 set dummy nm; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_NM+set}" = set; then :
7559 $as_echo_n "(cached) " >&6
7560 else
7561 if test -n "$NM"; then
7562 ac_cv_prog_NM="$NM" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567 IFS=$as_save_IFS
7568 test -z "$as_dir" && as_dir=.
7569 for ac_exec_ext in '' $ac_executable_extensions; do
7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571 ac_cv_prog_NM="nm"
7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573 break 2
7574 fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7580 fi
7581 fi
7582 NM=$ac_cv_prog_NM
7583 if test -n "$NM"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7585 $as_echo "$NM" >&6; }
7586 else
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588 $as_echo "no" >&6; }
7589 fi
7590
7591
7592 fi
7593
7594 # AR
7595 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7596 && test -d ../binutils ; then
7597 AR='${objdir}/../binutils/ar'
7598 else
7599 # Extract the first word of "ar", so it can be a program name with args.
7600 set dummy ar; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_AR+set}" = set; then :
7604 $as_echo_n "(cached) " >&6
7605 else
7606 if test -n "$AR"; then
7607 ac_cv_prog_AR="$AR" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612 IFS=$as_save_IFS
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_AR="ar"
7617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618 break 2
7619 fi
7620 done
7621 done
7622 IFS=$as_save_IFS
7623
7624 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7625 fi
7626 fi
7627 AR=$ac_cv_prog_AR
7628 if test -n "$AR"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7630 $as_echo "$AR" >&6; }
7631 else
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633 $as_echo "no" >&6; }
7634 fi
7635
7636
7637 fi
7638
7639
7640 # --------------------
7641 # Checks for C headers
7642 # --------------------
7643
7644 # Need to reject headers which give warnings, so that the -Werror bootstrap
7645 # works later. *sigh* This needs to come before all header checks.
7646
7647 ac_c_preproc_warn_flag=yes
7648
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7650 $as_echo_n "checking for ANSI C header files... " >&6; }
7651 if test "${ac_cv_header_stdc+set}" = set; then :
7652 $as_echo_n "(cached) " >&6
7653 else
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655 /* end confdefs.h. */
7656 #include <stdlib.h>
7657 #include <stdarg.h>
7658 #include <string.h>
7659 #include <float.h>
7660
7661 int
7662 main ()
7663 {
7664
7665 ;
7666 return 0;
7667 }
7668 _ACEOF
7669 if ac_fn_c_try_compile "$LINENO"; then :
7670 ac_cv_header_stdc=yes
7671 else
7672 ac_cv_header_stdc=no
7673 fi
7674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675
7676 if test $ac_cv_header_stdc = yes; then
7677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 #include <string.h>
7681
7682 _ACEOF
7683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7684 $EGREP "memchr" >/dev/null 2>&1; then :
7685
7686 else
7687 ac_cv_header_stdc=no
7688 fi
7689 rm -f conftest*
7690
7691 fi
7692
7693 if test $ac_cv_header_stdc = yes; then
7694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 #include <stdlib.h>
7698
7699 _ACEOF
7700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7701 $EGREP "free" >/dev/null 2>&1; then :
7702
7703 else
7704 ac_cv_header_stdc=no
7705 fi
7706 rm -f conftest*
7707
7708 fi
7709
7710 if test $ac_cv_header_stdc = yes; then
7711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7712 if test "$cross_compiling" = yes; then :
7713 :
7714 else
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7717 #include <ctype.h>
7718 #include <stdlib.h>
7719 #if ((' ' & 0x0FF) == 0x020)
7720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7722 #else
7723 # define ISLOWER(c) \
7724 (('a' <= (c) && (c) <= 'i') \
7725 || ('j' <= (c) && (c) <= 'r') \
7726 || ('s' <= (c) && (c) <= 'z'))
7727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7728 #endif
7729
7730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7731 int
7732 main ()
7733 {
7734 int i;
7735 for (i = 0; i < 256; i++)
7736 if (XOR (islower (i), ISLOWER (i))
7737 || toupper (i) != TOUPPER (i))
7738 return 2;
7739 return 0;
7740 }
7741 _ACEOF
7742 if ac_fn_c_try_run "$LINENO"; then :
7743
7744 else
7745 ac_cv_header_stdc=no
7746 fi
7747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7748 conftest.$ac_objext conftest.beam conftest.$ac_ext
7749 fi
7750
7751 fi
7752 fi
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7754 $as_echo "$ac_cv_header_stdc" >&6; }
7755 if test $ac_cv_header_stdc = yes; then
7756
7757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7758
7759 fi
7760
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7762 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7763 if test "${ac_cv_header_time+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768 #include <sys/types.h>
7769 #include <sys/time.h>
7770 #include <time.h>
7771
7772 int
7773 main ()
7774 {
7775 if ((struct tm *) 0)
7776 return 0;
7777 ;
7778 return 0;
7779 }
7780 _ACEOF
7781 if ac_fn_c_try_compile "$LINENO"; then :
7782 ac_cv_header_time=yes
7783 else
7784 ac_cv_header_time=no
7785 fi
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7789 $as_echo "$ac_cv_header_time" >&6; }
7790 if test $ac_cv_header_time = yes; then
7791
7792 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7793
7794 fi
7795
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7797 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7798 if test "${gcc_cv_header_string+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7802 /* end confdefs.h. */
7803 #include <string.h>
7804 #include <strings.h>
7805 int
7806 main ()
7807 {
7808
7809 ;
7810 return 0;
7811 }
7812 _ACEOF
7813 if ac_fn_c_try_compile "$LINENO"; then :
7814 gcc_cv_header_string=yes
7815 else
7816 gcc_cv_header_string=no
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 fi
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7821 $as_echo "$gcc_cv_header_string" >&6; }
7822 if test $gcc_cv_header_string = yes; then
7823
7824 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7825
7826 fi
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7829 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7830 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 #include <sys/types.h>
7836 #include <sys/wait.h>
7837 #ifndef WEXITSTATUS
7838 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7839 #endif
7840 #ifndef WIFEXITED
7841 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7842 #endif
7843
7844 int
7845 main ()
7846 {
7847 int s;
7848 wait (&s);
7849 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 if ac_fn_c_try_compile "$LINENO"; then :
7855 ac_cv_header_sys_wait_h=yes
7856 else
7857 ac_cv_header_sys_wait_h=no
7858 fi
7859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 fi
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7862 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7863 if test $ac_cv_header_sys_wait_h = yes; then
7864
7865 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7866
7867 fi
7868
7869 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7870 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7871 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7872 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7873 do :
7874 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7875 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7876 eval as_val=\$$as_ac_Header
7877 if test "x$as_val" = x""yes; then :
7878 cat >>confdefs.h <<_ACEOF
7879 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7880 _ACEOF
7881
7882 fi
7883 done
7884
7885
7886 # Check for thread headers.
7887 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7888 if test "x$ac_cv_header_thread_h" = x""yes; then :
7889 have_thread_h=yes
7890 else
7891 have_thread_h=
7892 fi
7893
7894 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7895 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7896 have_pthread_h=yes
7897 else
7898 have_pthread_h=
7899 fi
7900
7901
7902 # These tests can't be done till we know if we have limits.h.
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7904 $as_echo_n "checking for CHAR_BIT... " >&6; }
7905 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7909 /* end confdefs.h. */
7910 #ifdef HAVE_LIMITS_H
7911 #include <limits.h>
7912 #endif
7913 #ifdef CHAR_BIT
7914 found
7915 #endif
7916 _ACEOF
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918 $EGREP "found" >/dev/null 2>&1; then :
7919 gcc_cv_decl_char_bit=yes
7920 else
7921 gcc_cv_decl_char_bit=no
7922 fi
7923 rm -f conftest*
7924
7925
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7928 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7929 if test $gcc_cv_decl_char_bit = no; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7931 $as_echo_n "checking number of bits in a byte... " >&6; }
7932 if test "${gcc_cv_c_nbby+set}" = set; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 i=8
7936 gcc_cv_c_nbby=
7937 while test $i -lt 65; do
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940
7941 int
7942 main ()
7943 {
7944 switch(0) {
7945 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7946 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7947 ; }
7948 ;
7949 return 0;
7950 }
7951 _ACEOF
7952 if ac_fn_c_try_compile "$LINENO"; then :
7953 gcc_cv_c_nbby=$i; break
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 i=`expr $i + 1`
7957 done
7958 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7959
7960 fi
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7962 $as_echo "$gcc_cv_c_nbby" >&6; }
7963 if test $gcc_cv_c_nbby = failed; then
7964 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7965 else
7966
7967 cat >>confdefs.h <<_ACEOF
7968 #define CHAR_BIT $gcc_cv_c_nbby
7969 _ACEOF
7970
7971 fi
7972 fi
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7974 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7975 if test "${ac_cv_c_bigendian+set}" = set; then :
7976 $as_echo_n "(cached) " >&6
7977 else
7978 ac_cv_c_bigendian=unknown
7979 # See if we're dealing with a universal compiler.
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982 #ifndef __APPLE_CC__
7983 not a universal capable compiler
7984 #endif
7985 typedef int dummy;
7986
7987 _ACEOF
7988 if ac_fn_c_try_compile "$LINENO"; then :
7989
7990 # Check for potential -arch flags. It is not universal unless
7991 # there are at least two -arch flags with different values.
7992 ac_arch=
7993 ac_prev=
7994 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7995 if test -n "$ac_prev"; then
7996 case $ac_word in
7997 i?86 | x86_64 | ppc | ppc64)
7998 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7999 ac_arch=$ac_word
8000 else
8001 ac_cv_c_bigendian=universal
8002 break
8003 fi
8004 ;;
8005 esac
8006 ac_prev=
8007 elif test "x$ac_word" = "x-arch"; then
8008 ac_prev=arch
8009 fi
8010 done
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 if test $ac_cv_c_bigendian = unknown; then
8014 # See if sys/param.h defines the BYTE_ORDER macro.
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8016 /* end confdefs.h. */
8017 #include <sys/types.h>
8018 #include <sys/param.h>
8019
8020 int
8021 main ()
8022 {
8023 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8024 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8025 && LITTLE_ENDIAN)
8026 bogus endian macros
8027 #endif
8028
8029 ;
8030 return 0;
8031 }
8032 _ACEOF
8033 if ac_fn_c_try_compile "$LINENO"; then :
8034 # It does; now see whether it defined to BIG_ENDIAN or not.
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #include <sys/types.h>
8038 #include <sys/param.h>
8039
8040 int
8041 main ()
8042 {
8043 #if BYTE_ORDER != BIG_ENDIAN
8044 not big endian
8045 #endif
8046
8047 ;
8048 return 0;
8049 }
8050 _ACEOF
8051 if ac_fn_c_try_compile "$LINENO"; then :
8052 ac_cv_c_bigendian=yes
8053 else
8054 ac_cv_c_bigendian=no
8055 fi
8056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8057 fi
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8059 fi
8060 if test $ac_cv_c_bigendian = unknown; then
8061 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 #include <limits.h>
8065
8066 int
8067 main ()
8068 {
8069 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8070 bogus endian macros
8071 #endif
8072
8073 ;
8074 return 0;
8075 }
8076 _ACEOF
8077 if ac_fn_c_try_compile "$LINENO"; then :
8078 # It does; now see whether it defined to _BIG_ENDIAN or not.
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 #include <limits.h>
8082
8083 int
8084 main ()
8085 {
8086 #ifndef _BIG_ENDIAN
8087 not big endian
8088 #endif
8089
8090 ;
8091 return 0;
8092 }
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"; then :
8095 ac_cv_c_bigendian=yes
8096 else
8097 ac_cv_c_bigendian=no
8098 fi
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 fi
8103 if test $ac_cv_c_bigendian = unknown; then
8104 # Compile a test program.
8105 if test "$cross_compiling" = yes; then :
8106 # Try to guess by grepping values from an object file.
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 short int ascii_mm[] =
8110 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8111 short int ascii_ii[] =
8112 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8113 int use_ascii (int i) {
8114 return ascii_mm[i] + ascii_ii[i];
8115 }
8116 short int ebcdic_ii[] =
8117 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8118 short int ebcdic_mm[] =
8119 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8120 int use_ebcdic (int i) {
8121 return ebcdic_mm[i] + ebcdic_ii[i];
8122 }
8123 extern int foo;
8124
8125 int
8126 main ()
8127 {
8128 return use_ascii (foo) == use_ebcdic (foo);
8129 ;
8130 return 0;
8131 }
8132 _ACEOF
8133 if ac_fn_c_try_compile "$LINENO"; then :
8134 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8135 ac_cv_c_bigendian=yes
8136 fi
8137 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8138 if test "$ac_cv_c_bigendian" = unknown; then
8139 ac_cv_c_bigendian=no
8140 else
8141 # finding both strings is unlikely to happen, but who knows?
8142 ac_cv_c_bigendian=unknown
8143 fi
8144 fi
8145 fi
8146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8147 else
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 $ac_includes_default
8151 int
8152 main ()
8153 {
8154
8155 /* Are we little or big endian? From Harbison&Steele. */
8156 union
8157 {
8158 long int l;
8159 char c[sizeof (long int)];
8160 } u;
8161 u.l = 1;
8162 return u.c[sizeof (long int) - 1] == 1;
8163
8164 ;
8165 return 0;
8166 }
8167 _ACEOF
8168 if ac_fn_c_try_run "$LINENO"; then :
8169 ac_cv_c_bigendian=no
8170 else
8171 ac_cv_c_bigendian=yes
8172 fi
8173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8174 conftest.$ac_objext conftest.beam conftest.$ac_ext
8175 fi
8176
8177 fi
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8180 $as_echo "$ac_cv_c_bigendian" >&6; }
8181 case $ac_cv_c_bigendian in #(
8182 yes)
8183 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8184 ;; #(
8185 no)
8186 ;; #(
8187 universal)
8188
8189 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8190
8191 ;; #(
8192 *)
8193 as_fn_error "unknown endianness
8194 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8195 esac
8196
8197
8198 # --------
8199 # UNSORTED
8200 # --------
8201
8202
8203 # These libraries may be used by collect2.
8204 # We may need a special search path to get them linked.
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8206 $as_echo_n "checking for collect2 libraries... " >&6; }
8207 if test "${gcc_cv_collect2_libs+set}" = set; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 save_LIBS="$LIBS"
8211 for libs in '' -lld -lmld \
8212 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8213 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8214 do
8215 LIBS="$libs"
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218
8219 /* Override any GCC internal prototype to avoid an error.
8220 Use char because int might match the return type of a GCC
8221 builtin and then its argument prototype would still apply. */
8222 #ifdef __cplusplus
8223 extern "C"
8224 #endif
8225 char ldopen ();
8226 int
8227 main ()
8228 {
8229 return ldopen ();
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 if ac_fn_c_try_link "$LINENO"; then :
8235 gcc_cv_collect2_libs="$libs"; break
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8239 done
8240 LIBS="$save_LIBS"
8241 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8244 $as_echo "$gcc_cv_collect2_libs" >&6; }
8245 case $gcc_cv_collect2_libs in
8246 "none required") ;;
8247 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8248 esac
8249
8250
8251 # When building Ada code on Alpha, we need exc_resume which is usually in
8252 # -lexc. So test for it.
8253 save_LIBS="$LIBS"
8254 LIBS=
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8256 $as_echo_n "checking for library containing exc_resume... " >&6; }
8257 if test "${ac_cv_search_exc_resume+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260 ac_func_search_save_LIBS=$LIBS
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8263
8264 /* Override any GCC internal prototype to avoid an error.
8265 Use char because int might match the return type of a GCC
8266 builtin and then its argument prototype would still apply. */
8267 #ifdef __cplusplus
8268 extern "C"
8269 #endif
8270 char exc_resume ();
8271 int
8272 main ()
8273 {
8274 return exc_resume ();
8275 ;
8276 return 0;
8277 }
8278 _ACEOF
8279 for ac_lib in '' exc; do
8280 if test -z "$ac_lib"; then
8281 ac_res="none required"
8282 else
8283 ac_res=-l$ac_lib
8284 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8285 fi
8286 if ac_fn_c_try_link "$LINENO"; then :
8287 ac_cv_search_exc_resume=$ac_res
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext
8291 if test "${ac_cv_search_exc_resume+set}" = set; then :
8292 break
8293 fi
8294 done
8295 if test "${ac_cv_search_exc_resume+set}" = set; then :
8296
8297 else
8298 ac_cv_search_exc_resume=no
8299 fi
8300 rm conftest.$ac_ext
8301 LIBS=$ac_func_search_save_LIBS
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8304 $as_echo "$ac_cv_search_exc_resume" >&6; }
8305 ac_res=$ac_cv_search_exc_resume
8306 if test "$ac_res" != no; then :
8307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8308
8309 fi
8310
8311 GNAT_LIBEXC="$LIBS"
8312 LIBS="$save_LIBS"
8313
8314
8315 # Some systems put ldexp and frexp in libm instead of libc; assume
8316 # they're both in the same place. jcf-dump needs them.
8317 save_LIBS="$LIBS"
8318 LIBS=
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8320 $as_echo_n "checking for library containing ldexp... " >&6; }
8321 if test "${ac_cv_search_ldexp+set}" = set; then :
8322 $as_echo_n "(cached) " >&6
8323 else
8324 ac_func_search_save_LIBS=$LIBS
8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8326 /* end confdefs.h. */
8327
8328 /* Override any GCC internal prototype to avoid an error.
8329 Use char because int might match the return type of a GCC
8330 builtin and then its argument prototype would still apply. */
8331 #ifdef __cplusplus
8332 extern "C"
8333 #endif
8334 char ldexp ();
8335 int
8336 main ()
8337 {
8338 return ldexp ();
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 for ac_lib in '' m; do
8344 if test -z "$ac_lib"; then
8345 ac_res="none required"
8346 else
8347 ac_res=-l$ac_lib
8348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8349 fi
8350 if ac_fn_c_try_link "$LINENO"; then :
8351 ac_cv_search_ldexp=$ac_res
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext \
8354 conftest$ac_exeext
8355 if test "${ac_cv_search_ldexp+set}" = set; then :
8356 break
8357 fi
8358 done
8359 if test "${ac_cv_search_ldexp+set}" = set; then :
8360
8361 else
8362 ac_cv_search_ldexp=no
8363 fi
8364 rm conftest.$ac_ext
8365 LIBS=$ac_func_search_save_LIBS
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8368 $as_echo "$ac_cv_search_ldexp" >&6; }
8369 ac_res=$ac_cv_search_ldexp
8370 if test "$ac_res" != no; then :
8371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8372
8373 fi
8374
8375 LDEXP_LIB="$LIBS"
8376 LIBS="$save_LIBS"
8377
8378
8379 # Use <inttypes.h> only if it exists,
8380 # doesn't clash with <sys/types.h>, and declares intmax_t.
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8382 $as_echo_n "checking for inttypes.h... " >&6; }
8383 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8387 /* end confdefs.h. */
8388 #include <sys/types.h>
8389 #include <inttypes.h>
8390 int
8391 main ()
8392 {
8393 intmax_t i = -1;
8394 ;
8395 return 0;
8396 }
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"; then :
8399 gcc_cv_header_inttypes_h=yes
8400 else
8401 gcc_cv_header_inttypes_h=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8407 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8408 if test $gcc_cv_header_inttypes_h = yes; then
8409
8410 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8411
8412 fi
8413
8414
8415
8416 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8417 sysconf strsignal getrusage nl_langinfo \
8418 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8419 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
8420 do :
8421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8422 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8423 eval as_val=\$$as_ac_var
8424 if test "x$as_val" = x""yes; then :
8425 cat >>confdefs.h <<_ACEOF
8426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8427 _ACEOF
8428
8429 fi
8430 done
8431
8432
8433 save_CPPFLAGS="$CPPFLAGS"
8434 save_LIBS="$LIBS"
8435 LIBS="$LIBS $LIBELFLIBS"
8436 for ac_func in elf_getshdrstrndx
8437 do :
8438 ac_fn_c_check_func "$LINENO" "elf_getshdrstrndx" "ac_cv_func_elf_getshdrstrndx"
8439 if test "x$ac_cv_func_elf_getshdrstrndx" = x""yes; then :
8440 cat >>confdefs.h <<_ACEOF
8441 #define HAVE_ELF_GETSHDRSTRNDX 1
8442 _ACEOF
8443
8444 else
8445 for ac_func in elf_getshstrndx
8446 do :
8447 ac_fn_c_check_func "$LINENO" "elf_getshstrndx" "ac_cv_func_elf_getshstrndx"
8448 if test "x$ac_cv_func_elf_getshstrndx" = x""yes; then :
8449 cat >>confdefs.h <<_ACEOF
8450 #define HAVE_ELF_GETSHSTRNDX 1
8451 _ACEOF
8452 if test "$cross_compiling" = yes; then :
8453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8455 as_fn_error "cannot run test program while cross compiling
8456 See \`config.log' for more details." "$LINENO" 5; }
8457 else
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 #include <stdlib.h>
8461 #include <libelf.h>
8462 int main()
8463 {
8464 return elf_getshstrndx (NULL, 0) == 0;
8465 }
8466 _ACEOF
8467 if ac_fn_c_try_run "$LINENO"; then :
8468
8469 $as_echo "#define HAVE_ELF_GETSHSTRNDX_GABI 1" >>confdefs.h
8470
8471 fi
8472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8473 conftest.$ac_objext conftest.beam conftest.$ac_ext
8474 fi
8475
8476 fi
8477 done
8478
8479
8480 fi
8481 done
8482
8483 LIBS="$save_LIBS"
8484 CPPFLAGS="$save_CPPFLAGS"
8485
8486 if test x$ac_cv_func_mbstowcs = xyes; then
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8488 $as_echo_n "checking whether mbstowcs works... " >&6; }
8489 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 if test "$cross_compiling" = yes; then :
8493 gcc_cv_func_mbstowcs_works=yes
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 #include <stdlib.h>
8498 int main()
8499 {
8500 mbstowcs(0, "", 0);
8501 return 0;
8502 }
8503 _ACEOF
8504 if ac_fn_c_try_run "$LINENO"; then :
8505 gcc_cv_func_mbstowcs_works=yes
8506 else
8507 gcc_cv_func_mbstowcs_works=no
8508 fi
8509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8510 conftest.$ac_objext conftest.beam conftest.$ac_ext
8511 fi
8512
8513 fi
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8515 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8516 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8517
8518 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8519
8520 fi
8521 fi
8522
8523 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8524 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8525
8526 else
8527
8528 cat >>confdefs.h <<_ACEOF
8529 #define ssize_t int
8530 _ACEOF
8531
8532 fi
8533
8534 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8535 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8536
8537 else
8538
8539 cat >>confdefs.h <<_ACEOF
8540 #define caddr_t char *
8541 _ACEOF
8542
8543 fi
8544
8545
8546
8547 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8548 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8549 gcc_header_sys_mman_h=yes
8550 else
8551 gcc_header_sys_mman_h=no
8552 fi
8553
8554 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8555 if test "x$ac_cv_func_mmap" = x""yes; then :
8556 gcc_func_mmap=yes
8557 else
8558 gcc_func_mmap=no
8559 fi
8560
8561 if test "$gcc_header_sys_mman_h" != yes \
8562 || test "$gcc_func_mmap" != yes; then
8563 gcc_cv_func_mmap_file=no
8564 gcc_cv_func_mmap_dev_zero=no
8565 gcc_cv_func_mmap_anon=no
8566 else
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8568 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8569 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 # Add a system to this blacklist if
8573 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8574 # memory area containing the same data that you'd get if you applied
8575 # read() to the same fd. The only system known to have a problem here
8576 # is VMS, where text files have record structure.
8577 case "$host_os" in
8578 vms* | ultrix*)
8579 gcc_cv_func_mmap_file=no ;;
8580 *)
8581 gcc_cv_func_mmap_file=yes;;
8582 esac
8583 fi
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8585 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8587 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8588 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8589 $as_echo_n "(cached) " >&6
8590 else
8591 # Add a system to this blacklist if it has mmap() but /dev/zero
8592 # does not exist, or if mmapping /dev/zero does not give anonymous
8593 # zeroed pages with both the following properties:
8594 # 1. If you map N consecutive pages in with one call, and then
8595 # unmap any subset of those pages, the pages that were not
8596 # explicitly unmapped remain accessible.
8597 # 2. If you map two adjacent blocks of memory and then unmap them
8598 # both at once, they must both go away.
8599 # Systems known to be in this category are Windows (all variants),
8600 # VMS, and Darwin.
8601 case "$host_os" in
8602 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8603 gcc_cv_func_mmap_dev_zero=no ;;
8604 *)
8605 gcc_cv_func_mmap_dev_zero=yes;;
8606 esac
8607 fi
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8609 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8610
8611 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8613 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8614 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
8616 else
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619 #include <sys/types.h>
8620 #include <sys/mman.h>
8621 #include <unistd.h>
8622
8623 #ifndef MAP_ANONYMOUS
8624 #define MAP_ANONYMOUS MAP_ANON
8625 #endif
8626
8627 int
8628 main ()
8629 {
8630 int n = MAP_ANONYMOUS;
8631 ;
8632 return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_compile "$LINENO"; then :
8636 gcc_cv_decl_map_anon=yes
8637 else
8638 gcc_cv_decl_map_anon=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8643 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8644
8645 if test $gcc_cv_decl_map_anon = no; then
8646 gcc_cv_func_mmap_anon=no
8647 else
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8649 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8650 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8654 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8655 # doesn't give anonymous zeroed pages with the same properties listed
8656 # above for use of /dev/zero.
8657 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8658 case "$host_os" in
8659 vms* | cygwin* | pe | mingw* | sco* | udk* )
8660 gcc_cv_func_mmap_anon=no ;;
8661 *)
8662 gcc_cv_func_mmap_anon=yes;;
8663 esac
8664 fi
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8666 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8667 fi
8668 fi
8669
8670 if test $gcc_cv_func_mmap_file = yes; then
8671
8672 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8673
8674 fi
8675 if test $gcc_cv_func_mmap_dev_zero = yes; then
8676
8677 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8678
8679 fi
8680 if test $gcc_cv_func_mmap_anon = yes; then
8681
8682 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8683
8684 fi
8685
8686
8687 case "${host}" in
8688 *-*-*vms*)
8689 # Under VMS, vfork works very differently than on Unix. The standard test
8690 # won't work, and it isn't easily adaptable. It makes more sense to
8691 # just force it.
8692 ac_cv_func_vfork_works=yes
8693 ;;
8694 esac
8695 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8696 if test "x$ac_cv_type_pid_t" = x""yes; then :
8697
8698 else
8699
8700 cat >>confdefs.h <<_ACEOF
8701 #define pid_t int
8702 _ACEOF
8703
8704 fi
8705
8706 for ac_header in vfork.h
8707 do :
8708 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8709 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_VFORK_H 1
8712 _ACEOF
8713
8714 fi
8715 done
8716
8717 for ac_func in fork vfork
8718 do :
8719 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8721 eval as_val=\$$as_ac_var
8722 if test "x$as_val" = x""yes; then :
8723 cat >>confdefs.h <<_ACEOF
8724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8725 _ACEOF
8726
8727 fi
8728 done
8729
8730 if test "x$ac_cv_func_fork" = xyes; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8732 $as_echo_n "checking for working fork... " >&6; }
8733 if test "${ac_cv_func_fork_works+set}" = set; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 if test "$cross_compiling" = yes; then :
8737 ac_cv_func_fork_works=cross
8738 else
8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 $ac_includes_default
8742 int
8743 main ()
8744 {
8745
8746 /* By Ruediger Kuhlmann. */
8747 return fork () < 0;
8748
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 if ac_fn_c_try_run "$LINENO"; then :
8754 ac_cv_func_fork_works=yes
8755 else
8756 ac_cv_func_fork_works=no
8757 fi
8758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8759 conftest.$ac_objext conftest.beam conftest.$ac_ext
8760 fi
8761
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8764 $as_echo "$ac_cv_func_fork_works" >&6; }
8765
8766 else
8767 ac_cv_func_fork_works=$ac_cv_func_fork
8768 fi
8769 if test "x$ac_cv_func_fork_works" = xcross; then
8770 case $host in
8771 *-*-amigaos* | *-*-msdosdjgpp*)
8772 # Override, as these systems have only a dummy fork() stub
8773 ac_cv_func_fork_works=no
8774 ;;
8775 *)
8776 ac_cv_func_fork_works=yes
8777 ;;
8778 esac
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8780 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8781 fi
8782 ac_cv_func_vfork_works=$ac_cv_func_vfork
8783 if test "x$ac_cv_func_vfork" = xyes; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8785 $as_echo_n "checking for working vfork... " >&6; }
8786 if test "${ac_cv_func_vfork_works+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 if test "$cross_compiling" = yes; then :
8790 ac_cv_func_vfork_works=cross
8791 else
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794 /* Thanks to Paul Eggert for this test. */
8795 $ac_includes_default
8796 #include <sys/wait.h>
8797 #ifdef HAVE_VFORK_H
8798 # include <vfork.h>
8799 #endif
8800 /* On some sparc systems, changes by the child to local and incoming
8801 argument registers are propagated back to the parent. The compiler
8802 is told about this with #include <vfork.h>, but some compilers
8803 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8804 static variable whose address is put into a register that is
8805 clobbered by the vfork. */
8806 static void
8807 #ifdef __cplusplus
8808 sparc_address_test (int arg)
8809 # else
8810 sparc_address_test (arg) int arg;
8811 #endif
8812 {
8813 static pid_t child;
8814 if (!child) {
8815 child = vfork ();
8816 if (child < 0) {
8817 perror ("vfork");
8818 _exit(2);
8819 }
8820 if (!child) {
8821 arg = getpid();
8822 write(-1, "", 0);
8823 _exit (arg);
8824 }
8825 }
8826 }
8827
8828 int
8829 main ()
8830 {
8831 pid_t parent = getpid ();
8832 pid_t child;
8833
8834 sparc_address_test (0);
8835
8836 child = vfork ();
8837
8838 if (child == 0) {
8839 /* Here is another test for sparc vfork register problems. This
8840 test uses lots of local variables, at least as many local
8841 variables as main has allocated so far including compiler
8842 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8843 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8844 reuse the register of parent for one of the local variables,
8845 since it will think that parent can't possibly be used any more
8846 in this routine. Assigning to the local variable will thus
8847 munge parent in the parent process. */
8848 pid_t
8849 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8850 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8851 /* Convince the compiler that p..p7 are live; otherwise, it might
8852 use the same hardware register for all 8 local variables. */
8853 if (p != p1 || p != p2 || p != p3 || p != p4
8854 || p != p5 || p != p6 || p != p7)
8855 _exit(1);
8856
8857 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8858 from child file descriptors. If the child closes a descriptor
8859 before it execs or exits, this munges the parent's descriptor
8860 as well. Test for this by closing stdout in the child. */
8861 _exit(close(fileno(stdout)) != 0);
8862 } else {
8863 int status;
8864 struct stat st;
8865
8866 while (wait(&status) != child)
8867 ;
8868 return (
8869 /* Was there some problem with vforking? */
8870 child < 0
8871
8872 /* Did the child fail? (This shouldn't happen.) */
8873 || status
8874
8875 /* Did the vfork/compiler bug occur? */
8876 || parent != getpid()
8877
8878 /* Did the file descriptor bug occur? */
8879 || fstat(fileno(stdout), &st) != 0
8880 );
8881 }
8882 }
8883 _ACEOF
8884 if ac_fn_c_try_run "$LINENO"; then :
8885 ac_cv_func_vfork_works=yes
8886 else
8887 ac_cv_func_vfork_works=no
8888 fi
8889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8890 conftest.$ac_objext conftest.beam conftest.$ac_ext
8891 fi
8892
8893 fi
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8895 $as_echo "$ac_cv_func_vfork_works" >&6; }
8896
8897 fi;
8898 if test "x$ac_cv_func_fork_works" = xcross; then
8899 ac_cv_func_vfork_works=$ac_cv_func_vfork
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8901 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8902 fi
8903
8904 if test "x$ac_cv_func_vfork_works" = xyes; then
8905
8906 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8907
8908 else
8909
8910 $as_echo "#define vfork fork" >>confdefs.h
8911
8912 fi
8913 if test "x$ac_cv_func_fork_works" = xyes; then
8914
8915 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8916
8917 fi
8918
8919
8920
8921 if test "X$prefix" = "XNONE"; then
8922 acl_final_prefix="$ac_default_prefix"
8923 else
8924 acl_final_prefix="$prefix"
8925 fi
8926 if test "X$exec_prefix" = "XNONE"; then
8927 acl_final_exec_prefix='${prefix}'
8928 else
8929 acl_final_exec_prefix="$exec_prefix"
8930 fi
8931 acl_save_prefix="$prefix"
8932 prefix="$acl_final_prefix"
8933 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8934 prefix="$acl_save_prefix"
8935
8936
8937 # Check whether --with-gnu-ld was given.
8938 if test "${with_gnu_ld+set}" = set; then :
8939 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8940 else
8941 with_gnu_ld=no
8942 fi
8943
8944 # Prepare PATH_SEPARATOR.
8945 # The user is always right.
8946 if test "${PATH_SEPARATOR+set}" != set; then
8947 echo "#! /bin/sh" >conf$$.sh
8948 echo "exit 0" >>conf$$.sh
8949 chmod +x conf$$.sh
8950 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8951 PATH_SEPARATOR=';'
8952 else
8953 PATH_SEPARATOR=:
8954 fi
8955 rm -f conf$$.sh
8956 fi
8957 ac_prog=ld
8958 if test "$GCC" = yes; then
8959 # Check if gcc -print-prog-name=ld gives a path.
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8961 $as_echo_n "checking for ld used by GCC... " >&6; }
8962 case $host in
8963 *-*-mingw*)
8964 # gcc leaves a trailing carriage return which upsets mingw
8965 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8966 *)
8967 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8968 esac
8969 case $ac_prog in
8970 # Accept absolute paths.
8971 [\\/]* | [A-Za-z]:[\\/]*)
8972 re_direlt='/[^/][^/]*/\.\./'
8973 # Canonicalize the path of ld
8974 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8975 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8976 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8977 done
8978 test -z "$LD" && LD="$ac_prog"
8979 ;;
8980 "")
8981 # If it fails, then pretend we aren't using GCC.
8982 ac_prog=ld
8983 ;;
8984 *)
8985 # If it is relative, then search for the first ld in PATH.
8986 with_gnu_ld=unknown
8987 ;;
8988 esac
8989 elif test "$with_gnu_ld" = yes; then
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8991 $as_echo_n "checking for GNU ld... " >&6; }
8992 else
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8994 $as_echo_n "checking for non-GNU ld... " >&6; }
8995 fi
8996 if test "${acl_cv_path_LD+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 if test -z "$LD"; then
9000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9001 for ac_dir in $PATH; do
9002 test -z "$ac_dir" && ac_dir=.
9003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9004 acl_cv_path_LD="$ac_dir/$ac_prog"
9005 # Check to see if the program is GNU ld. I'd rather use --version,
9006 # but apparently some GNU ld's only accept -v.
9007 # Break only if it was the GNU/non-GNU ld that we prefer.
9008 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9009 test "$with_gnu_ld" != no && break
9010 else
9011 test "$with_gnu_ld" != yes && break
9012 fi
9013 fi
9014 done
9015 IFS="$ac_save_ifs"
9016 else
9017 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9018 fi
9019 fi
9020
9021 LD="$acl_cv_path_LD"
9022 if test -n "$LD"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9024 $as_echo "$LD" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9031 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9032 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
9034 else
9035 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9036 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9037 acl_cv_prog_gnu_ld=yes
9038 else
9039 acl_cv_prog_gnu_ld=no
9040 fi
9041 fi
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9043 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9044 with_gnu_ld=$acl_cv_prog_gnu_ld
9045
9046
9047
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9049 $as_echo_n "checking for shared library run path origin... " >&6; }
9050 if test "${acl_cv_rpath+set}" = set; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053
9054 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9055 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9056 . ./conftest.sh
9057 rm -f ./conftest.sh
9058 acl_cv_rpath=done
9059
9060 fi
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9062 $as_echo "$acl_cv_rpath" >&6; }
9063 wl="$acl_cv_wl"
9064 libext="$acl_cv_libext"
9065 shlibext="$acl_cv_shlibext"
9066 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9067 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9068 hardcode_direct="$acl_cv_hardcode_direct"
9069 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9070 # Check whether --enable-rpath was given.
9071 if test "${enable_rpath+set}" = set; then :
9072 enableval=$enable_rpath; :
9073 else
9074 enable_rpath=yes
9075 fi
9076
9077
9078
9079
9080
9081
9082
9083
9084 use_additional=yes
9085
9086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9090
9091 eval additional_includedir=\"$includedir\"
9092 eval additional_libdir=\"$libdir\"
9093
9094 exec_prefix="$acl_save_exec_prefix"
9095 prefix="$acl_save_prefix"
9096
9097
9098 # Check whether --with-libiconv-prefix was given.
9099 if test "${with_libiconv_prefix+set}" = set; then :
9100 withval=$with_libiconv_prefix;
9101 if test "X$withval" = "Xno"; then
9102 use_additional=no
9103 else
9104 if test "X$withval" = "X"; then
9105
9106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9110
9111 eval additional_includedir=\"$includedir\"
9112 eval additional_libdir=\"$libdir\"
9113
9114 exec_prefix="$acl_save_exec_prefix"
9115 prefix="$acl_save_prefix"
9116
9117 else
9118 additional_includedir="$withval/include"
9119 additional_libdir="$withval/lib"
9120 fi
9121 fi
9122
9123 fi
9124
9125 LIBICONV=
9126 LTLIBICONV=
9127 INCICONV=
9128 rpathdirs=
9129 ltrpathdirs=
9130 names_already_handled=
9131 names_next_round='iconv '
9132 while test -n "$names_next_round"; do
9133 names_this_round="$names_next_round"
9134 names_next_round=
9135 for name in $names_this_round; do
9136 already_handled=
9137 for n in $names_already_handled; do
9138 if test "$n" = "$name"; then
9139 already_handled=yes
9140 break
9141 fi
9142 done
9143 if test -z "$already_handled"; then
9144 names_already_handled="$names_already_handled $name"
9145 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9146 eval value=\"\$HAVE_LIB$uppername\"
9147 if test -n "$value"; then
9148 if test "$value" = yes; then
9149 eval value=\"\$LIB$uppername\"
9150 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9151 eval value=\"\$LTLIB$uppername\"
9152 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9153 else
9154 :
9155 fi
9156 else
9157 found_dir=
9158 found_la=
9159 found_so=
9160 found_a=
9161 if test $use_additional = yes; then
9162 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9163 found_dir="$additional_libdir"
9164 found_so="$additional_libdir/lib$name.$shlibext"
9165 if test -f "$additional_libdir/lib$name.la"; then
9166 found_la="$additional_libdir/lib$name.la"
9167 fi
9168 else
9169 if test -f "$additional_libdir/lib$name.$libext"; then
9170 found_dir="$additional_libdir"
9171 found_a="$additional_libdir/lib$name.$libext"
9172 if test -f "$additional_libdir/lib$name.la"; then
9173 found_la="$additional_libdir/lib$name.la"
9174 fi
9175 fi
9176 fi
9177 fi
9178 if test "X$found_dir" = "X"; then
9179 for x in $LDFLAGS $LTLIBICONV; do
9180
9181 acl_save_prefix="$prefix"
9182 prefix="$acl_final_prefix"
9183 acl_save_exec_prefix="$exec_prefix"
9184 exec_prefix="$acl_final_exec_prefix"
9185 eval x=\"$x\"
9186 exec_prefix="$acl_save_exec_prefix"
9187 prefix="$acl_save_prefix"
9188
9189 case "$x" in
9190 -L*)
9191 dir=`echo "X$x" | sed -e 's/^X-L//'`
9192 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9193 found_dir="$dir"
9194 found_so="$dir/lib$name.$shlibext"
9195 if test -f "$dir/lib$name.la"; then
9196 found_la="$dir/lib$name.la"
9197 fi
9198 else
9199 if test -f "$dir/lib$name.$libext"; then
9200 found_dir="$dir"
9201 found_a="$dir/lib$name.$libext"
9202 if test -f "$dir/lib$name.la"; then
9203 found_la="$dir/lib$name.la"
9204 fi
9205 fi
9206 fi
9207 ;;
9208 esac
9209 if test "X$found_dir" != "X"; then
9210 break
9211 fi
9212 done
9213 fi
9214 if test "X$found_dir" != "X"; then
9215 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9216 if test "X$found_so" != "X"; then
9217 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9218 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9219 else
9220 haveit=
9221 for x in $ltrpathdirs; do
9222 if test "X$x" = "X$found_dir"; then
9223 haveit=yes
9224 break
9225 fi
9226 done
9227 if test -z "$haveit"; then
9228 ltrpathdirs="$ltrpathdirs $found_dir"
9229 fi
9230 if test "$hardcode_direct" = yes; then
9231 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9232 else
9233 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9234 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9235 haveit=
9236 for x in $rpathdirs; do
9237 if test "X$x" = "X$found_dir"; then
9238 haveit=yes
9239 break
9240 fi
9241 done
9242 if test -z "$haveit"; then
9243 rpathdirs="$rpathdirs $found_dir"
9244 fi
9245 else
9246 haveit=
9247 for x in $LDFLAGS $LIBICONV; do
9248
9249 acl_save_prefix="$prefix"
9250 prefix="$acl_final_prefix"
9251 acl_save_exec_prefix="$exec_prefix"
9252 exec_prefix="$acl_final_exec_prefix"
9253 eval x=\"$x\"
9254 exec_prefix="$acl_save_exec_prefix"
9255 prefix="$acl_save_prefix"
9256
9257 if test "X$x" = "X-L$found_dir"; then
9258 haveit=yes
9259 break
9260 fi
9261 done
9262 if test -z "$haveit"; then
9263 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9264 fi
9265 if test "$hardcode_minus_L" != no; then
9266 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9267 else
9268 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9269 fi
9270 fi
9271 fi
9272 fi
9273 else
9274 if test "X$found_a" != "X"; then
9275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9276 else
9277 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9278 fi
9279 fi
9280 additional_includedir=
9281 case "$found_dir" in
9282 */lib | */lib/)
9283 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9284 additional_includedir="$basedir/include"
9285 ;;
9286 esac
9287 if test "X$additional_includedir" != "X"; then
9288 if test "X$additional_includedir" != "X/usr/include"; then
9289 haveit=
9290 if test "X$additional_includedir" = "X/usr/local/include"; then
9291 if test -n "$GCC"; then
9292 case $host_os in
9293 linux*) haveit=yes;;
9294 esac
9295 fi
9296 fi
9297 if test -z "$haveit"; then
9298 for x in $CPPFLAGS $INCICONV; do
9299
9300 acl_save_prefix="$prefix"
9301 prefix="$acl_final_prefix"
9302 acl_save_exec_prefix="$exec_prefix"
9303 exec_prefix="$acl_final_exec_prefix"
9304 eval x=\"$x\"
9305 exec_prefix="$acl_save_exec_prefix"
9306 prefix="$acl_save_prefix"
9307
9308 if test "X$x" = "X-I$additional_includedir"; then
9309 haveit=yes
9310 break
9311 fi
9312 done
9313 if test -z "$haveit"; then
9314 if test -d "$additional_includedir"; then
9315 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9316 fi
9317 fi
9318 fi
9319 fi
9320 fi
9321 if test -n "$found_la"; then
9322 save_libdir="$libdir"
9323 case "$found_la" in
9324 */* | *\\*) . "$found_la" ;;
9325 *) . "./$found_la" ;;
9326 esac
9327 libdir="$save_libdir"
9328 for dep in $dependency_libs; do
9329 case "$dep" in
9330 -L*)
9331 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9332 if test "X$additional_libdir" != "X/usr/lib"; then
9333 haveit=
9334 if test "X$additional_libdir" = "X/usr/local/lib"; then
9335 if test -n "$GCC"; then
9336 case $host_os in
9337 linux*) haveit=yes;;
9338 esac
9339 fi
9340 fi
9341 if test -z "$haveit"; then
9342 haveit=
9343 for x in $LDFLAGS $LIBICONV; do
9344
9345 acl_save_prefix="$prefix"
9346 prefix="$acl_final_prefix"
9347 acl_save_exec_prefix="$exec_prefix"
9348 exec_prefix="$acl_final_exec_prefix"
9349 eval x=\"$x\"
9350 exec_prefix="$acl_save_exec_prefix"
9351 prefix="$acl_save_prefix"
9352
9353 if test "X$x" = "X-L$additional_libdir"; then
9354 haveit=yes
9355 break
9356 fi
9357 done
9358 if test -z "$haveit"; then
9359 if test -d "$additional_libdir"; then
9360 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9361 fi
9362 fi
9363 haveit=
9364 for x in $LDFLAGS $LTLIBICONV; do
9365
9366 acl_save_prefix="$prefix"
9367 prefix="$acl_final_prefix"
9368 acl_save_exec_prefix="$exec_prefix"
9369 exec_prefix="$acl_final_exec_prefix"
9370 eval x=\"$x\"
9371 exec_prefix="$acl_save_exec_prefix"
9372 prefix="$acl_save_prefix"
9373
9374 if test "X$x" = "X-L$additional_libdir"; then
9375 haveit=yes
9376 break
9377 fi
9378 done
9379 if test -z "$haveit"; then
9380 if test -d "$additional_libdir"; then
9381 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9382 fi
9383 fi
9384 fi
9385 fi
9386 ;;
9387 -R*)
9388 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9389 if test "$enable_rpath" != no; then
9390 haveit=
9391 for x in $rpathdirs; do
9392 if test "X$x" = "X$dir"; then
9393 haveit=yes
9394 break
9395 fi
9396 done
9397 if test -z "$haveit"; then
9398 rpathdirs="$rpathdirs $dir"
9399 fi
9400 haveit=
9401 for x in $ltrpathdirs; do
9402 if test "X$x" = "X$dir"; then
9403 haveit=yes
9404 break
9405 fi
9406 done
9407 if test -z "$haveit"; then
9408 ltrpathdirs="$ltrpathdirs $dir"
9409 fi
9410 fi
9411 ;;
9412 -l*)
9413 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9414 ;;
9415 *.la)
9416 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9417 ;;
9418 *)
9419 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9420 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9421 ;;
9422 esac
9423 done
9424 fi
9425 else
9426 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9427 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9428 fi
9429 fi
9430 fi
9431 done
9432 done
9433 if test "X$rpathdirs" != "X"; then
9434 if test -n "$hardcode_libdir_separator"; then
9435 alldirs=
9436 for found_dir in $rpathdirs; do
9437 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9438 done
9439 acl_save_libdir="$libdir"
9440 libdir="$alldirs"
9441 eval flag=\"$hardcode_libdir_flag_spec\"
9442 libdir="$acl_save_libdir"
9443 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9444 else
9445 for found_dir in $rpathdirs; do
9446 acl_save_libdir="$libdir"
9447 libdir="$found_dir"
9448 eval flag=\"$hardcode_libdir_flag_spec\"
9449 libdir="$acl_save_libdir"
9450 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9451 done
9452 fi
9453 fi
9454 if test "X$ltrpathdirs" != "X"; then
9455 for found_dir in $ltrpathdirs; do
9456 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9457 done
9458 fi
9459
9460
9461
9462
9463
9464
9465
9466 am_save_CPPFLAGS="$CPPFLAGS"
9467
9468 for element in $INCICONV; do
9469 haveit=
9470 for x in $CPPFLAGS; do
9471
9472 acl_save_prefix="$prefix"
9473 prefix="$acl_final_prefix"
9474 acl_save_exec_prefix="$exec_prefix"
9475 exec_prefix="$acl_final_exec_prefix"
9476 eval x=\"$x\"
9477 exec_prefix="$acl_save_exec_prefix"
9478 prefix="$acl_save_prefix"
9479
9480 if test "X$x" = "X$element"; then
9481 haveit=yes
9482 break
9483 fi
9484 done
9485 if test -z "$haveit"; then
9486 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9487 fi
9488 done
9489
9490
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9492 $as_echo_n "checking for iconv... " >&6; }
9493 if test "${am_cv_func_iconv+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496
9497 am_cv_func_iconv="no, consider installing GNU libiconv"
9498 am_cv_lib_iconv=no
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 #include <stdlib.h>
9502 #include <iconv.h>
9503 int
9504 main ()
9505 {
9506 iconv_t cd = iconv_open("","");
9507 iconv(cd,NULL,NULL,NULL,NULL);
9508 iconv_close(cd);
9509 ;
9510 return 0;
9511 }
9512 _ACEOF
9513 if ac_fn_c_try_link "$LINENO"; then :
9514 am_cv_func_iconv=yes
9515 fi
9516 rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 if test "$am_cv_func_iconv" != yes; then
9519 am_save_LIBS="$LIBS"
9520 LIBS="$LIBS $LIBICONV"
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 #include <stdlib.h>
9524 #include <iconv.h>
9525 int
9526 main ()
9527 {
9528 iconv_t cd = iconv_open("","");
9529 iconv(cd,NULL,NULL,NULL,NULL);
9530 iconv_close(cd);
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 if ac_fn_c_try_link "$LINENO"; then :
9536 am_cv_lib_iconv=yes
9537 am_cv_func_iconv=yes
9538 fi
9539 rm -f core conftest.err conftest.$ac_objext \
9540 conftest$ac_exeext conftest.$ac_ext
9541 LIBS="$am_save_LIBS"
9542 fi
9543
9544 fi
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9546 $as_echo "$am_cv_func_iconv" >&6; }
9547 if test "$am_cv_func_iconv" = yes; then
9548
9549 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9550
9551 fi
9552 if test "$am_cv_lib_iconv" = yes; then
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9554 $as_echo_n "checking how to link with libiconv... " >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9556 $as_echo "$LIBICONV" >&6; }
9557 else
9558 CPPFLAGS="$am_save_CPPFLAGS"
9559 LIBICONV=
9560 LTLIBICONV=
9561 fi
9562
9563
9564
9565 if test "$am_cv_func_iconv" = yes; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9567 $as_echo_n "checking for iconv declaration... " >&6; }
9568 if test "${am_cv_proto_iconv+set}" = set; then :
9569 $as_echo_n "(cached) " >&6
9570 else
9571
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574
9575 #include <stdlib.h>
9576 #include <iconv.h>
9577 extern
9578 #ifdef __cplusplus
9579 "C"
9580 #endif
9581 #if defined(__STDC__) || defined(__cplusplus)
9582 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9583 #else
9584 size_t iconv();
9585 #endif
9586
9587 int
9588 main ()
9589 {
9590
9591 ;
9592 return 0;
9593 }
9594 _ACEOF
9595 if ac_fn_c_try_compile "$LINENO"; then :
9596 am_cv_proto_iconv_arg1=""
9597 else
9598 am_cv_proto_iconv_arg1="const"
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 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);"
9602 fi
9603
9604 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9606 }$am_cv_proto_iconv" >&5
9607 $as_echo "${ac_t:-
9608 }$am_cv_proto_iconv" >&6; }
9609
9610 cat >>confdefs.h <<_ACEOF
9611 #define ICONV_CONST $am_cv_proto_iconv_arg1
9612 _ACEOF
9613
9614 fi
9615
9616 # Until we have in-tree GNU iconv:
9617 LIBICONV_DEP=
9618
9619
9620
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9622 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9623 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9624 $as_echo_n "(cached) " >&6
9625 else
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 #include <locale.h>
9629 int
9630 main ()
9631 {
9632 return LC_MESSAGES
9633 ;
9634 return 0;
9635 }
9636 _ACEOF
9637 if ac_fn_c_try_link "$LINENO"; then :
9638 am_cv_val_LC_MESSAGES=yes
9639 else
9640 am_cv_val_LC_MESSAGES=no
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 fi
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9646 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9647 if test $am_cv_val_LC_MESSAGES = yes; then
9648
9649 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9650
9651 fi
9652
9653
9654
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9656 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9657 if test "${am_cv_langinfo_codeset+set}" = set; then :
9658 $as_echo_n "(cached) " >&6
9659 else
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 #include <langinfo.h>
9663 int
9664 main ()
9665 {
9666 char* cs = nl_langinfo(CODESET);
9667 ;
9668 return 0;
9669 }
9670 _ACEOF
9671 if ac_fn_c_try_link "$LINENO"; then :
9672 am_cv_langinfo_codeset=yes
9673 else
9674 am_cv_langinfo_codeset=no
9675 fi
9676 rm -f core conftest.err conftest.$ac_objext \
9677 conftest$ac_exeext conftest.$ac_ext
9678
9679 fi
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9681 $as_echo "$am_cv_langinfo_codeset" >&6; }
9682 if test $am_cv_langinfo_codeset = yes; then
9683
9684 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9685
9686 fi
9687
9688
9689 # We will need to find libiberty.h and ansidecl.h
9690 saved_CFLAGS="$CFLAGS"
9691 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9692 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9693 strsignal strstr strverscmp \
9694 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9695 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
9696 do
9697 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9699 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9700 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 #undef $ac_tr_decl
9706 #define $ac_tr_decl 1
9707
9708 #include "ansidecl.h"
9709 #include "system.h"
9710
9711 int
9712 main ()
9713 {
9714 #ifndef $ac_func
9715 char *(*pfn) = (char *(*)) $ac_func ;
9716 #endif
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_c_try_compile "$LINENO"; then :
9722 eval "gcc_cv_have_decl_$ac_func=yes"
9723 else
9724 eval "gcc_cv_have_decl_$ac_func=no"
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9727 fi
9728
9729 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9731 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9732 #define $ac_tr_decl 1
9733 _ACEOF
9734
9735 else
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9737 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9738 #define $ac_tr_decl 0
9739 _ACEOF
9740
9741 fi
9742
9743 done
9744
9745
9746 for ac_func in getrlimit setrlimit getrusage
9747 do
9748 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9750 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9751 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 #undef $ac_tr_decl
9757 #define $ac_tr_decl 1
9758
9759 #include "ansidecl.h"
9760 #include "system.h"
9761 #ifdef HAVE_SYS_RESOURCE_H
9762 #include <sys/resource.h>
9763 #endif
9764
9765
9766 int
9767 main ()
9768 {
9769 #ifndef $ac_func
9770 char *(*pfn) = (char *(*)) $ac_func ;
9771 #endif
9772 ;
9773 return 0;
9774 }
9775 _ACEOF
9776 if ac_fn_c_try_compile "$LINENO"; then :
9777 eval "gcc_cv_have_decl_$ac_func=yes"
9778 else
9779 eval "gcc_cv_have_decl_$ac_func=no"
9780 fi
9781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9782 fi
9783
9784 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9786 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9787 #define $ac_tr_decl 1
9788 _ACEOF
9789
9790 else
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9793 #define $ac_tr_decl 0
9794 _ACEOF
9795
9796 fi
9797
9798 done
9799
9800
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803
9804 #include "ansidecl.h"
9805 #include "system.h"
9806 #ifdef HAVE_SYS_RESOURCE_H
9807 #include <sys/resource.h>
9808 #endif
9809
9810 int
9811 main ()
9812 {
9813 rlim_t l = 0;
9814 ;
9815 return 0;
9816 }
9817 _ACEOF
9818 if ac_fn_c_try_compile "$LINENO"; then :
9819
9820 else
9821
9822 $as_echo "#define rlim_t long" >>confdefs.h
9823
9824 fi
9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9826
9827 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9828 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9829 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9830 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9831 for ac_func in ldgetname
9832 do
9833 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9835 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9836 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9840 /* end confdefs.h. */
9841 #undef $ac_tr_decl
9842 #define $ac_tr_decl 1
9843
9844 #include "ansidecl.h"
9845 #include "system.h"
9846 #ifdef HAVE_LDFCN_H
9847 #undef FREAD
9848 #undef FWRITE
9849 #include <ldfcn.h>
9850 #endif
9851
9852
9853 int
9854 main ()
9855 {
9856 #ifndef $ac_func
9857 char *(*pfn) = (char *(*)) $ac_func ;
9858 #endif
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 if ac_fn_c_try_compile "$LINENO"; then :
9864 eval "gcc_cv_have_decl_$ac_func=yes"
9865 else
9866 eval "gcc_cv_have_decl_$ac_func=no"
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9869 fi
9870
9871 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9873 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9874 #define $ac_tr_decl 1
9875 _ACEOF
9876
9877 else
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9880 #define $ac_tr_decl 0
9881 _ACEOF
9882
9883 fi
9884
9885 done
9886
9887
9888 for ac_func in times
9889 do
9890 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9892 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9893 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9898 #undef $ac_tr_decl
9899 #define $ac_tr_decl 1
9900
9901 #include "ansidecl.h"
9902 #include "system.h"
9903 #ifdef HAVE_SYS_TIMES_H
9904 #include <sys/times.h>
9905 #endif
9906
9907
9908 int
9909 main ()
9910 {
9911 #ifndef $ac_func
9912 char *(*pfn) = (char *(*)) $ac_func ;
9913 #endif
9914 ;
9915 return 0;
9916 }
9917 _ACEOF
9918 if ac_fn_c_try_compile "$LINENO"; then :
9919 eval "gcc_cv_have_decl_$ac_func=yes"
9920 else
9921 eval "gcc_cv_have_decl_$ac_func=no"
9922 fi
9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9924 fi
9925
9926 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9928 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9929 #define $ac_tr_decl 1
9930 _ACEOF
9931
9932 else
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9935 #define $ac_tr_decl 0
9936 _ACEOF
9937
9938 fi
9939
9940 done
9941
9942
9943 for ac_func in sigaltstack
9944 do
9945 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9947 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9948 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9949 $as_echo_n "(cached) " >&6
9950 else
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953 #undef $ac_tr_decl
9954 #define $ac_tr_decl 1
9955
9956 #include "ansidecl.h"
9957 #include "system.h"
9958 #include <signal.h>
9959
9960
9961 int
9962 main ()
9963 {
9964 #ifndef $ac_func
9965 char *(*pfn) = (char *(*)) $ac_func ;
9966 #endif
9967 ;
9968 return 0;
9969 }
9970 _ACEOF
9971 if ac_fn_c_try_compile "$LINENO"; then :
9972 eval "gcc_cv_have_decl_$ac_func=yes"
9973 else
9974 eval "gcc_cv_have_decl_$ac_func=no"
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 fi
9978
9979 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9981 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9982 #define $ac_tr_decl 1
9983 _ACEOF
9984
9985 else
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9987 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9988 #define $ac_tr_decl 0
9989 _ACEOF
9990
9991 fi
9992
9993 done
9994
9995
9996 # More time-related stuff.
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9998 $as_echo_n "checking for struct tms... " >&6; }
9999 if test "${ac_cv_struct_tms+set}" = set; then :
10000 $as_echo_n "(cached) " >&6
10001 else
10002
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005
10006 #include "ansidecl.h"
10007 #include "system.h"
10008 #ifdef HAVE_SYS_TIMES_H
10009 #include <sys/times.h>
10010 #endif
10011
10012 int
10013 main ()
10014 {
10015 struct tms tms;
10016 ;
10017 return 0;
10018 }
10019 _ACEOF
10020 if ac_fn_c_try_compile "$LINENO"; then :
10021 ac_cv_struct_tms=yes
10022 else
10023 ac_cv_struct_tms=no
10024 fi
10025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 fi
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10028 $as_echo "$ac_cv_struct_tms" >&6; }
10029 if test $ac_cv_struct_tms = yes; then
10030
10031 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10032
10033 fi
10034
10035 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10036 # revisit after autoconf 2.50.
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10038 $as_echo_n "checking for clock_t... " >&6; }
10039 if test "${gcc_cv_type_clock_t+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
10041 else
10042
10043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045
10046 #include "ansidecl.h"
10047 #include "system.h"
10048
10049 int
10050 main ()
10051 {
10052 clock_t x;
10053 ;
10054 return 0;
10055 }
10056 _ACEOF
10057 if ac_fn_c_try_compile "$LINENO"; then :
10058 gcc_cv_type_clock_t=yes
10059 else
10060 gcc_cv_type_clock_t=no
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10065 $as_echo "$gcc_cv_type_clock_t" >&6; }
10066 if test $gcc_cv_type_clock_t = yes; then
10067
10068 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10069
10070 fi
10071
10072 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10073 CFLAGS="$saved_CFLAGS"
10074
10075 # Check whether --enable-initfini-array was given.
10076 if test "${enable_initfini_array+set}" = set; then :
10077 enableval=$enable_initfini_array;
10078 else
10079
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10081 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10082 if test "${gcc_cv_initfini_array+set}" = set; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 if test "$cross_compiling" = yes; then :
10086 gcc_cv_initfini_array=no
10087 else
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090
10091 static int x = -1;
10092 int main (void) { return x; }
10093 int foo (void) { x = 0; }
10094 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10095 _ACEOF
10096 if ac_fn_c_try_run "$LINENO"; then :
10097 gcc_cv_initfini_array=yes
10098 else
10099 gcc_cv_initfini_array=no
10100 fi
10101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10102 conftest.$ac_objext conftest.beam conftest.$ac_ext
10103 fi
10104
10105 fi
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10107 $as_echo "$gcc_cv_initfini_array" >&6; }
10108 enable_initfini_array=$gcc_cv_initfini_array
10109
10110 fi
10111
10112 if test $enable_initfini_array = yes; then
10113
10114 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10115
10116 fi
10117
10118 # mkdir takes a single argument on some systems.
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10120 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10121 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10122 $as_echo_n "(cached) " >&6
10123 else
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10126
10127 #include <sys/types.h>
10128 #ifdef HAVE_SYS_STAT_H
10129 # include <sys/stat.h>
10130 #endif
10131 #ifdef HAVE_UNISTD_H
10132 # include <unistd.h>
10133 #endif
10134 #ifdef HAVE_DIRECT_H
10135 # include <direct.h>
10136 #endif
10137 int
10138 main ()
10139 {
10140 mkdir ("foo", 0);
10141 ;
10142 return 0;
10143 }
10144 _ACEOF
10145 if ac_fn_c_try_compile "$LINENO"; then :
10146 gcc_cv_mkdir_takes_one_arg=no
10147 else
10148 gcc_cv_mkdir_takes_one_arg=yes
10149 fi
10150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10153 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10154 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10155
10156 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10157
10158 fi
10159
10160
10161 # File extensions
10162 manext='.1'
10163 objext='.o'
10164
10165
10166
10167 # With Setjmp/Longjmp based exception handling.
10168 # Check whether --enable-sjlj-exceptions was given.
10169 if test "${enable_sjlj_exceptions+set}" = set; then :
10170 enableval=$enable_sjlj_exceptions; case $target in
10171 *-*-hpux10*)
10172 if test $enableval != yes; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10174 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10175 enableval=yes
10176 fi
10177 ;;
10178 esac
10179 force_sjlj_exceptions=yes
10180 else
10181 case $target in
10182 *-*-hpux10*)
10183 force_sjlj_exceptions=yes
10184 enableval=yes
10185 ;;
10186 *)
10187 force_sjlj_exceptions=no
10188 ;;
10189 esac
10190 fi
10191
10192 if test $force_sjlj_exceptions = yes; then
10193 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10194
10195 cat >>confdefs.h <<_ACEOF
10196 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10197 _ACEOF
10198
10199 fi
10200
10201 # For platforms with the unwind ABI which includes an unwind library,
10202 # libunwind, we can choose to use the system libunwind.
10203 # config.gcc also contains tests of with_system_libunwind.
10204
10205
10206 # Check whether --with-system-libunwind was given.
10207 if test "${with_system_libunwind+set}" = set; then :
10208 withval=$with_system_libunwind;
10209 fi
10210
10211 # If system-libunwind was not specifically set, pick a default setting.
10212 if test x$with_system_libunwind = x; then
10213 case ${target} in
10214 ia64-*-hpux*) with_system_libunwind=yes ;;
10215 *) with_system_libunwind=no ;;
10216 esac
10217 fi
10218 # Based on system-libunwind and target, do we have ipinfo?
10219 if test x$with_system_libunwind = xyes; then
10220 case ${target} in
10221 ia64-*-*) have_unwind_getipinfo=no ;;
10222 *) have_unwind_getipinfo=yes ;;
10223 esac
10224 else
10225 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10226
10227 case ${target} in
10228 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10229 *) have_unwind_getipinfo=yes ;;
10230 esac
10231
10232 fi
10233
10234 if test x$have_unwind_getipinfo = xyes; then
10235
10236 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10237
10238 fi
10239
10240
10241 # --------------------------------------------------------
10242 # Build, host, and target specific configuration fragments
10243 # --------------------------------------------------------
10244
10245 # Collect build-machine-specific information.
10246 . ${srcdir}/config.build
10247
10248 # Collect host-machine-specific information.
10249 . ${srcdir}/config.host
10250
10251 target_gtfiles=
10252
10253 # Collect target-machine-specific information.
10254 . ${srcdir}/config.gcc
10255
10256 extra_objs="${host_extra_objs} ${extra_objs}"
10257 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10258
10259 # Default the target-machine variables that were not explicitly set.
10260 if test x"$tm_file" = x
10261 then tm_file=$cpu_type/$cpu_type.h; fi
10262
10263 if test x"$extra_headers" = x
10264 then extra_headers=; fi
10265
10266 if test x$md_file = x
10267 then md_file=$cpu_type/$cpu_type.md; fi
10268
10269 if test x$out_file = x
10270 then out_file=$cpu_type/$cpu_type.c; fi
10271
10272 if test x"$tmake_file" = x
10273 then tmake_file=$cpu_type/t-$cpu_type
10274 fi
10275
10276 if test x"$dwarf2" = xyes
10277 then tm_file="$tm_file tm-dwarf2.h"
10278 fi
10279
10280 # Say what files are being used for the output code and MD file.
10281 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10282 echo "Using \`$srcdir/config/$md_file' as machine description file."
10283
10284 # If any of the xm_file variables contain nonexistent files, warn
10285 # about them and drop them.
10286
10287 bx=
10288 for x in $build_xm_file; do
10289 if test -f $srcdir/config/$x
10290 then bx="$bx $x"
10291 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10292 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10293 fi
10294 done
10295 build_xm_file="$bx"
10296
10297 hx=
10298 for x in $host_xm_file; do
10299 if test -f $srcdir/config/$x
10300 then hx="$hx $x"
10301 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10302 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10303 fi
10304 done
10305 host_xm_file="$hx"
10306
10307 tx=
10308 for x in $xm_file; do
10309 if test -f $srcdir/config/$x
10310 then tx="$tx $x"
10311 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10312 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10313 fi
10314 done
10315 xm_file="$tx"
10316
10317 count=a
10318 for f in $tm_file; do
10319 count=${count}x
10320 done
10321 if test $count = ax; then
10322 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10323 else
10324 echo "Using the following target machine macro files:"
10325 for f in $tm_file; do
10326 echo " $srcdir/config/$f"
10327 done
10328 fi
10329
10330 if test x$need_64bit_hwint = xyes; then
10331
10332 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10333
10334 fi
10335
10336 if test x$use_long_long_for_widest_fast_int = xyes; then
10337
10338 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10339
10340 fi
10341
10342 count=a
10343 for f in $host_xm_file; do
10344 count=${count}x
10345 done
10346 if test $count = a; then
10347 :
10348 elif test $count = ax; then
10349 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10350 else
10351 echo "Using the following host machine macro files:"
10352 for f in $host_xm_file; do
10353 echo " $srcdir/config/$f"
10354 done
10355 fi
10356 echo "Using ${out_host_hook_obj} for host machine hooks."
10357
10358 if test "$host_xm_file" != "$build_xm_file"; then
10359 count=a
10360 for f in $build_xm_file; do
10361 count=${count}x
10362 done
10363 if test $count = a; then
10364 :
10365 elif test $count = ax; then
10366 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10367 else
10368 echo "Using the following build machine macro files:"
10369 for f in $build_xm_file; do
10370 echo " $srcdir/config/$f"
10371 done
10372 fi
10373 fi
10374
10375 case ${host} in
10376 powerpc*-*-darwin*)
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10378 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10379 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10380 $as_echo_n "(cached) " >&6
10381 else
10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10383 /* end confdefs.h. */
10384
10385 #include <sys/cdefs.h>
10386 #include <sys/signal.h>
10387 #include <ucontext.h>
10388 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10389
10390 _ACEOF
10391 if ac_fn_c_try_compile "$LINENO"; then :
10392 gcc_cv_mcontext_underscores=no
10393 else
10394 gcc_cv_mcontext_underscores=yes
10395 fi
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10399 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10400 if test $gcc_cv_mcontext_underscores = yes; then
10401
10402 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10403
10404 fi
10405 ;;
10406 esac
10407
10408 # ---------
10409 # Threading
10410 # ---------
10411
10412 # Check if a valid thread package
10413 case ${enable_threads} in
10414 "" | no)
10415 # No threads
10416 target_thread_file='single'
10417 ;;
10418 yes)
10419 # default
10420 target_thread_file='single'
10421 ;;
10422 aix | dce | gnat | irix | posix | posix95 | rtems | \
10423 single | solaris | vxworks | win32 | mipssde)
10424 target_thread_file=${enable_threads}
10425 ;;
10426 *)
10427 echo "${enable_threads} is an unknown thread package" 1>&2
10428 exit 1
10429 ;;
10430 esac
10431
10432 if test x${thread_file} = x; then
10433 # No thread file set by target-specific clauses in config.gcc,
10434 # so use file chosen by default logic above
10435 thread_file=${target_thread_file}
10436 fi
10437
10438 # Make gthr-default.h if we have a thread file.
10439 gthread_flags=
10440 if test $thread_file != single; then
10441 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10442 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10443 rm -f gthr-default.h-t
10444 else
10445 mv -f gthr-default.h-t gthr-default.h
10446 fi
10447 gthread_flags=-DHAVE_GTHR_DEFAULT
10448 fi
10449
10450
10451 # --------
10452 # UNSORTED
10453 # --------
10454
10455 use_cxa_atexit=no
10456 if test x$enable___cxa_atexit = xyes || \
10457 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10458 if test x$host = x$target; then
10459 case $host in
10460 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10461 # keyed to flag_use_cxa_atexit
10462 *-*-mingw32*)
10463 use_cxa_atexit=yes
10464 ;;
10465 *)
10466 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10467 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10468 use_cxa_atexit=yes
10469 else
10470 echo "__cxa_atexit can't be enabled on this target"
10471 fi
10472
10473 ;;
10474 esac
10475 else
10476 # We can't check for __cxa_atexit when building a cross, so assume
10477 # it is available
10478 use_cxa_atexit=yes
10479 fi
10480 if test x$use_cxa_atexit = xyes; then
10481
10482 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10483
10484 fi
10485 fi
10486
10487 # Look for a file containing extra machine modes.
10488 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10489 extra_modes_file='$(srcdir)'/config/${extra_modes}
10490
10491
10492 cat >>confdefs.h <<_ACEOF
10493 #define EXTRA_MODES_FILE "config/$extra_modes"
10494 _ACEOF
10495
10496 fi
10497
10498 # Convert extra_options into a form suitable for Makefile use.
10499 extra_opt_files=
10500 for f in $extra_options; do
10501 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10502 done
10503
10504
10505 # auto-host.h is the file containing items generated by autoconf and is
10506 # the first file included by config.h.
10507 # If host=build, it is correct to have bconfig include auto-host.h
10508 # as well. If host!=build, we are in error and need to do more
10509 # work to find out the build config parameters.
10510 if test x$host = x$build
10511 then
10512 build_auto=auto-host.h
10513 else
10514 # We create a subdir, then run autoconf in the subdir.
10515 # To prevent recursion we set host and build for the new
10516 # invocation of configure to the build for this invocation
10517 # of configure.
10518 tempdir=build.$$
10519 rm -rf $tempdir
10520 mkdir $tempdir
10521 cd $tempdir
10522 case ${srcdir} in
10523 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10524 *) realsrcdir=../${srcdir};;
10525 esac
10526 saved_CFLAGS="${CFLAGS}"
10527 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10528 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10529 ${realsrcdir}/configure \
10530 --enable-languages=${enable_languages-all} \
10531 --target=$target_alias --host=$build_alias --build=$build_alias
10532 CFLAGS="${saved_CFLAGS}"
10533
10534 # We just finished tests for the build machine, so rename
10535 # the file auto-build.h in the gcc directory.
10536 mv auto-host.h ../auto-build.h
10537 cd ..
10538 rm -rf $tempdir
10539 build_auto=auto-build.h
10540 fi
10541
10542
10543 tm_file="${tm_file} defaults.h"
10544 tm_p_file="${tm_p_file} tm-preds.h"
10545 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10546 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10547 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10548 # put this back in temporarily.
10549 xm_file="auto-host.h ansidecl.h ${xm_file}"
10550
10551 # --------
10552 # UNSORTED
10553 # --------
10554
10555 # Compile in configure arguments.
10556 if test -f configargs.h ; then
10557 # Being re-configured.
10558 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10559 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10560 else
10561 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10562 fi
10563
10564 # Double all backslashes and backslash all quotes to turn
10565 # gcc_config_arguments into a C string.
10566 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10567 $gcc_config_arguments
10568 EOF
10569 gcc_config_arguments_str=`cat conftest.out`
10570 rm -f conftest.out
10571
10572 cat > configargs.h <<EOF
10573 /* Generated automatically. */
10574 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10575 static const char thread_model[] = "$thread_file";
10576
10577 static const struct {
10578 const char *name, *value;
10579 } configure_default_options[] = $configure_default_options;
10580 EOF
10581
10582 gcc_BASEVER=`cat $srcdir/BASE-VER`
10583 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10584 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10585 if test -f $srcdir/REVISION ; then
10586 gcc_REVISION=`cat $srcdir/REVISION`
10587 else
10588 gcc_REVISION=""
10589 fi
10590 cat > plugin-version.h <<EOF
10591 #include "configargs.h"
10592
10593 static char basever[] = "$gcc_BASEVER";
10594 static char datestamp[] = "$gcc_DATESTAMP";
10595 static char devphase[] = "$gcc_DEVPHASE";
10596 static char revision[] = "$gcc_REVISION";
10597
10598 /* FIXME plugins: We should make the version information more precise.
10599 One way to do is to add a checksum. */
10600
10601 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10602 devphase, revision,
10603 configuration_arguments};
10604 EOF
10605
10606 # Internationalization
10607 # If we haven't got the data from the intl directory,
10608 # assume NLS is disabled.
10609 USE_NLS=no
10610 LIBINTL=
10611 LIBINTL_DEP=
10612 INCINTL=
10613 XGETTEXT=
10614 GMSGFMT=
10615 POSUB=
10616
10617 if test -f ../intl/config.intl; then
10618 . ../intl/config.intl
10619 fi
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10621 $as_echo_n "checking whether NLS is requested... " >&6; }
10622 if test x"$USE_NLS" != xyes; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10625 else
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10627 $as_echo "yes" >&6; }
10628
10629 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10630
10631
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10633 $as_echo_n "checking for catalogs to be installed... " >&6; }
10634 # Look for .po and .gmo files in the source directory.
10635 CATALOGS=
10636 XLINGUAS=
10637 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10638 # If there aren't any .gmo files the shell will give us the
10639 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10640 # weeded out.
10641 case "$cat" in *\**)
10642 continue;;
10643 esac
10644 # The quadruple backslash is collapsed to a double backslash
10645 # by the backticks, then collapsed again by the double quotes,
10646 # leaving us with one backslash in the sed expression (right
10647 # before the dot that mustn't act as a wildcard).
10648 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10649 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10650 # The user is allowed to set LINGUAS to a list of languages to
10651 # install catalogs for. If it's empty that means "all of them."
10652 if test "x$LINGUAS" = x; then
10653 CATALOGS="$CATALOGS $cat"
10654 XLINGUAS="$XLINGUAS $lang"
10655 else
10656 case "$LINGUAS" in *$lang*)
10657 CATALOGS="$CATALOGS $cat"
10658 XLINGUAS="$XLINGUAS $lang"
10659 ;;
10660 esac
10661 fi
10662 done
10663 LINGUAS="$XLINGUAS"
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10665 $as_echo "$LINGUAS" >&6; }
10666
10667
10668 DATADIRNAME=share
10669
10670 INSTOBJEXT=.mo
10671
10672 GENCAT=gencat
10673
10674 CATOBJEXT=.gmo
10675
10676 fi
10677
10678 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10679 # -liconv on the link line twice.
10680 case "$LIBINTL" in *$LIBICONV*)
10681 LIBICONV= ;;
10682 esac
10683
10684 # Check whether --enable-secureplt was given.
10685 if test "${enable_secureplt+set}" = set; then :
10686 enableval=$enable_secureplt;
10687 fi
10688
10689
10690 # Check whether --enable-leading-mingw64-underscores was given.
10691 if test "${enable_leading_mingw64_underscores+set}" = set; then :
10692 enableval=$enable_leading_mingw64_underscores;
10693 fi
10694
10695 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
10696
10697 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
10698
10699 fi
10700
10701 # Check whether --enable-cld was given.
10702 if test "${enable_cld+set}" = set; then :
10703 enableval=$enable_cld;
10704 else
10705 enable_cld=no
10706 fi
10707
10708
10709 # Windows32 Registry support for specifying GCC installation paths.
10710 # Check whether --enable-win32-registry was given.
10711 if test "${enable_win32_registry+set}" = set; then :
10712 enableval=$enable_win32_registry;
10713 fi
10714
10715
10716 case $host_os in
10717 win32 | pe | cygwin* | mingw32* | uwin*)
10718 if test "x$enable_win32_registry" != xno; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10720 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10721 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10722 $as_echo_n "(cached) " >&6
10723 else
10724 ac_func_search_save_LIBS=$LIBS
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10727
10728 /* Override any GCC internal prototype to avoid an error.
10729 Use char because int might match the return type of a GCC
10730 builtin and then its argument prototype would still apply. */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char RegOpenKeyExA ();
10735 int
10736 main ()
10737 {
10738 return RegOpenKeyExA ();
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 for ac_lib in '' advapi32; do
10744 if test -z "$ac_lib"; then
10745 ac_res="none required"
10746 else
10747 ac_res=-l$ac_lib
10748 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10749 fi
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 ac_cv_search_RegOpenKeyExA=$ac_res
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext
10755 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10756 break
10757 fi
10758 done
10759 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10760
10761 else
10762 ac_cv_search_RegOpenKeyExA=no
10763 fi
10764 rm conftest.$ac_ext
10765 LIBS=$ac_func_search_save_LIBS
10766 fi
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10768 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10769 ac_res=$ac_cv_search_RegOpenKeyExA
10770 if test "$ac_res" != no; then :
10771 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10772
10773 else
10774 enable_win32_registry=no
10775 fi
10776
10777 fi
10778
10779 if test "x$enable_win32_registry" != xno; then
10780
10781 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10782
10783
10784 if test "x$enable_win32_registry" != xyes \
10785 && test "x$enable_win32_registry" != x; then
10786
10787 cat >>confdefs.h <<_ACEOF
10788 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10789 _ACEOF
10790
10791 fi
10792 fi
10793 ;;
10794 esac
10795
10796 # Get an absolute path to the GCC top-level source directory
10797 holddir=`${PWDCMD-pwd}`
10798 cd $srcdir
10799 topdir=`${PWDCMD-pwd}`
10800 cd $holddir
10801
10802 # Conditionalize the makefile for this host machine.
10803 xmake_file=
10804 for f in ${host_xmake_file}
10805 do
10806 if test -f ${srcdir}/config/$f
10807 then
10808 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10809 fi
10810 done
10811
10812 # Conditionalize the makefile for this target machine.
10813 tmake_file_=
10814 for f in ${tmake_file}
10815 do
10816 if test -f ${srcdir}/config/$f
10817 then
10818 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10819 fi
10820 done
10821 tmake_file="${tmake_file_}"
10822
10823 out_object_file=`basename $out_file .c`.o
10824
10825 tm_file_list="options.h"
10826 tm_include_list="options.h insn-constants.h"
10827 for f in $tm_file; do
10828 case $f in
10829 ./* )
10830 f=`echo $f | sed 's/^..//'`
10831 tm_file_list="${tm_file_list} $f"
10832 tm_include_list="${tm_include_list} $f"
10833 ;;
10834 defaults.h )
10835 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10836 tm_include_list="${tm_include_list} $f"
10837 ;;
10838 * )
10839 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10840 tm_include_list="${tm_include_list} config/$f"
10841 ;;
10842 esac
10843 done
10844
10845 tm_p_file_list=
10846 tm_p_include_list=
10847 for f in $tm_p_file; do
10848 case $f in
10849 tm-preds.h )
10850 tm_p_file_list="${tm_p_file_list} $f"
10851 tm_p_include_list="${tm_p_include_list} $f"
10852 ;;
10853 * )
10854 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10855 tm_p_include_list="${tm_p_include_list} config/$f"
10856 esac
10857 done
10858
10859 xm_file_list=
10860 xm_include_list=
10861 for f in $xm_file; do
10862 case $f in
10863 ansidecl.h )
10864 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10865 xm_include_list="${xm_include_list} $f"
10866 ;;
10867 auto-host.h )
10868 xm_file_list="${xm_file_list} $f"
10869 xm_include_list="${xm_include_list} $f"
10870 ;;
10871 * )
10872 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10873 xm_include_list="${xm_include_list} config/$f"
10874 ;;
10875 esac
10876 done
10877
10878 host_xm_file_list=
10879 host_xm_include_list=
10880 for f in $host_xm_file; do
10881 case $f in
10882 ansidecl.h )
10883 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10884 host_xm_include_list="${host_xm_include_list} $f"
10885 ;;
10886 auto-host.h )
10887 host_xm_file_list="${host_xm_file_list} $f"
10888 host_xm_include_list="${host_xm_include_list} $f"
10889 ;;
10890 * )
10891 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10892 host_xm_include_list="${host_xm_include_list} config/$f"
10893 ;;
10894 esac
10895 done
10896
10897 build_xm_file_list=
10898 for f in $build_xm_file; do
10899 case $f in
10900 ansidecl.h )
10901 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10902 build_xm_include_list="${build_xm_include_list} $f"
10903 ;;
10904 auto-build.h | auto-host.h )
10905 build_xm_file_list="${build_xm_file_list} $f"
10906 build_xm_include_list="${build_xm_include_list} $f"
10907 ;;
10908 * )
10909 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10910 build_xm_include_list="${build_xm_include_list} config/$f"
10911 ;;
10912 esac
10913 done
10914
10915 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10916 # cross-compiler which does not use the native headers and libraries.
10917 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10918 CROSS=
10919 ALL=all.internal
10920 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10921
10922 if test "x$with_build_sysroot" != x; then
10923 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10924 else
10925 # This value is used, even on a native system, because
10926 # CROSS_SYSTEM_HEADER_DIR is just
10927 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10928 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10929 fi
10930
10931 if test x$host != x$target
10932 then
10933 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10934 ALL=all.cross
10935 SYSTEM_HEADER_DIR=$build_system_header_dir
10936 case "$host","$target" in
10937 # Darwin crosses can use the host system's libraries and headers,
10938 # because of the fat library support. Of course, it must be the
10939 # same version of Darwin on both sides. Allow the user to
10940 # just say --target=foo-darwin without a version number to mean
10941 # "the version on this system".
10942 *-*-darwin*,*-*-darwin*)
10943 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10944 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10945 if test $hostos = $targetos -o $targetos = darwin ; then
10946 CROSS=
10947 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10948 with_headers=yes
10949 fi
10950 ;;
10951
10952 i?86-*-*,x86_64-*-* \
10953 | powerpc*-*-*,powerpc64*-*-*)
10954 CROSS="$CROSS -DNATIVE_CROSS" ;;
10955 esac
10956 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10957 SYSTEM_HEADER_DIR=$build_system_header_dir
10958 fi
10959
10960 # If this is a cross-compiler that does not
10961 # have its own set of headers then define
10962 # inhibit_libc
10963
10964 # If this is using newlib, without having the headers available now,
10965 # then define inhibit_libc in LIBGCC2_CFLAGS.
10966 # This prevents libgcc2 from containing any code which requires libc
10967 # support.
10968 : ${inhibit_libc=false}
10969 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10970 test x$with_newlib = xyes ; } &&
10971 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10972 inhibit_libc=true
10973 fi
10974
10975
10976 # When building gcc with a cross-compiler, we need to adjust things so
10977 # that the generator programs are still built with the native compiler.
10978 # Also, we cannot run fixincludes.
10979
10980 # These are the normal (build=host) settings:
10981 CC_FOR_BUILD='$(CC)'
10982 BUILD_CFLAGS='$(ALL_CFLAGS)'
10983 BUILD_LDFLAGS='$(LDFLAGS)'
10984 STMP_FIXINC=stmp-fixinc
10985
10986 # And these apply if build != host, or we are generating coverage data
10987 if test x$build != x$host || test "x$coverage_flags" != x
10988 then
10989 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10990 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10991 fi
10992
10993 # Expand extra_headers to include complete path.
10994 # This substitutes for lots of t-* files.
10995 extra_headers_list=
10996 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10997 for file in ${extra_headers} ; do
10998 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10999 done
11000
11001 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11002 if test x"$use_gcc_tgmath" = xyes
11003 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11004 fi
11005
11006 # Define collect2 in Makefile.
11007 case $host_can_use_collect2 in
11008 no) collect2= ;;
11009 *) collect2='collect2$(exeext)' ;;
11010 esac
11011
11012
11013 # Add a definition of USE_COLLECT2 if system wants one.
11014 case $use_collect2 in
11015 no) use_collect2= ;;
11016 "") ;;
11017 *)
11018 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11019 xm_defines="${xm_defines} USE_COLLECT2"
11020 case $host_can_use_collect2 in
11021 no)
11022 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11023 ;;
11024 esac
11025 ;;
11026 esac
11027
11028 # ---------------------------
11029 # Assembler & linker features
11030 # ---------------------------
11031
11032 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11033 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11034 # However when ld-new is first executed from the build tree, libtool will
11035 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11036 # to the build tree. While doing this we need to use the previous-stage
11037 # linker, or we have an infinite loop. The presence of a shell script as
11038 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11039 # the gcc/collect-ld script. So we need to know how libtool works, or
11040 # exec-tool will fail.
11041
11042
11043 case `pwd` in
11044 *\ * | *\ *)
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11046 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11047 esac
11048
11049
11050
11051 macro_version='2.2.7a'
11052 macro_revision='1.3134'
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066 ltmain="$ac_aux_dir/ltmain.sh"
11067
11068 # Backslashify metacharacters that are still active within
11069 # double-quoted strings.
11070 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11071
11072 # Same as above, but do not quote variable references.
11073 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11074
11075 # Sed substitution to delay expansion of an escaped shell variable in a
11076 # double_quote_subst'ed string.
11077 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11078
11079 # Sed substitution to delay expansion of an escaped single quote.
11080 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11081
11082 # Sed substitution to avoid accidental globbing in evaled expressions
11083 no_glob_subst='s/\*/\\\*/g'
11084
11085 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11086 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
11087 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
11088
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
11090 $as_echo_n "checking how to print strings... " >&6; }
11091 # Test print first, because it will be a builtin if present.
11092 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
11093 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
11094 ECHO='print -r --'
11095 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
11096 ECHO='printf %s\n'
11097 else
11098 # Use this function as a fallback that always works.
11099 func_fallback_echo ()
11100 {
11101 eval 'cat <<_LTECHO_EOF
11102 $1
11103 _LTECHO_EOF'
11104 }
11105 ECHO='func_fallback_echo'
11106 fi
11107
11108 # func_echo_all arg...
11109 # Invoke $ECHO with all args, space-separated.
11110 func_echo_all ()
11111 {
11112 $ECHO ""
11113 }
11114
11115 case "$ECHO" in
11116 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
11117 $as_echo "printf" >&6; } ;;
11118 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
11119 $as_echo "print -r" >&6; } ;;
11120 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
11121 $as_echo "cat" >&6; } ;;
11122 esac
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11138 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11139 if test "${ac_cv_path_SED+set}" = set; then :
11140 $as_echo_n "(cached) " >&6
11141 else
11142 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11143 for ac_i in 1 2 3 4 5 6 7; do
11144 ac_script="$ac_script$as_nl$ac_script"
11145 done
11146 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11147 { ac_script=; unset ac_script;}
11148 if test -z "$SED"; then
11149 ac_path_SED_found=false
11150 # Loop through the user's path and test for each of PROGNAME-LIST
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11153 do
11154 IFS=$as_save_IFS
11155 test -z "$as_dir" && as_dir=.
11156 for ac_prog in sed gsed; do
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11159 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11160 # Check for GNU ac_path_SED and select it if it is found.
11161 # Check for GNU $ac_path_SED
11162 case `"$ac_path_SED" --version 2>&1` in
11163 *GNU*)
11164 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11165 *)
11166 ac_count=0
11167 $as_echo_n 0123456789 >"conftest.in"
11168 while :
11169 do
11170 cat "conftest.in" "conftest.in" >"conftest.tmp"
11171 mv "conftest.tmp" "conftest.in"
11172 cp "conftest.in" "conftest.nl"
11173 $as_echo '' >> "conftest.nl"
11174 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11175 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11176 as_fn_arith $ac_count + 1 && ac_count=$as_val
11177 if test $ac_count -gt ${ac_path_SED_max-0}; then
11178 # Best one so far, save it but keep looking for a better one
11179 ac_cv_path_SED="$ac_path_SED"
11180 ac_path_SED_max=$ac_count
11181 fi
11182 # 10*(2^10) chars as input seems more than enough
11183 test $ac_count -gt 10 && break
11184 done
11185 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11186 esac
11187
11188 $ac_path_SED_found && break 3
11189 done
11190 done
11191 done
11192 IFS=$as_save_IFS
11193 if test -z "$ac_cv_path_SED"; then
11194 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11195 fi
11196 else
11197 ac_cv_path_SED=$SED
11198 fi
11199
11200 fi
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11202 $as_echo "$ac_cv_path_SED" >&6; }
11203 SED="$ac_cv_path_SED"
11204 rm -f conftest.sed
11205
11206 test -z "$SED" && SED=sed
11207 Xsed="$SED -e 1s/^X//"
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11220 $as_echo_n "checking for fgrep... " >&6; }
11221 if test "${ac_cv_path_FGREP+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
11223 else
11224 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11225 then ac_cv_path_FGREP="$GREP -F"
11226 else
11227 if test -z "$FGREP"; then
11228 ac_path_FGREP_found=false
11229 # Loop through the user's path and test for each of PROGNAME-LIST
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11232 do
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
11235 for ac_prog in fgrep; do
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11238 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11239 # Check for GNU ac_path_FGREP and select it if it is found.
11240 # Check for GNU $ac_path_FGREP
11241 case `"$ac_path_FGREP" --version 2>&1` in
11242 *GNU*)
11243 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11244 *)
11245 ac_count=0
11246 $as_echo_n 0123456789 >"conftest.in"
11247 while :
11248 do
11249 cat "conftest.in" "conftest.in" >"conftest.tmp"
11250 mv "conftest.tmp" "conftest.in"
11251 cp "conftest.in" "conftest.nl"
11252 $as_echo 'FGREP' >> "conftest.nl"
11253 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11255 as_fn_arith $ac_count + 1 && ac_count=$as_val
11256 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11257 # Best one so far, save it but keep looking for a better one
11258 ac_cv_path_FGREP="$ac_path_FGREP"
11259 ac_path_FGREP_max=$ac_count
11260 fi
11261 # 10*(2^10) chars as input seems more than enough
11262 test $ac_count -gt 10 && break
11263 done
11264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11265 esac
11266
11267 $ac_path_FGREP_found && break 3
11268 done
11269 done
11270 done
11271 IFS=$as_save_IFS
11272 if test -z "$ac_cv_path_FGREP"; then
11273 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11274 fi
11275 else
11276 ac_cv_path_FGREP=$FGREP
11277 fi
11278
11279 fi
11280 fi
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11282 $as_echo "$ac_cv_path_FGREP" >&6; }
11283 FGREP="$ac_cv_path_FGREP"
11284
11285
11286 test -z "$GREP" && GREP=grep
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306 # Check whether --with-gnu-ld was given.
11307 if test "${with_gnu_ld+set}" = set; then :
11308 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11309 else
11310 with_gnu_ld=no
11311 fi
11312
11313 ac_prog=ld
11314 if test "$GCC" = yes; then
11315 # Check if gcc -print-prog-name=ld gives a path.
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11317 $as_echo_n "checking for ld used by $CC... " >&6; }
11318 case $host in
11319 *-*-mingw*)
11320 # gcc leaves a trailing carriage return which upsets mingw
11321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11322 *)
11323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11324 esac
11325 case $ac_prog in
11326 # Accept absolute paths.
11327 [\\/]* | ?:[\\/]*)
11328 re_direlt='/[^/][^/]*/\.\./'
11329 # Canonicalize the pathname of ld
11330 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11331 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11332 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11333 done
11334 test -z "$LD" && LD="$ac_prog"
11335 ;;
11336 "")
11337 # If it fails, then pretend we aren't using GCC.
11338 ac_prog=ld
11339 ;;
11340 *)
11341 # If it is relative, then search for the first ld in PATH.
11342 with_gnu_ld=unknown
11343 ;;
11344 esac
11345 elif test "$with_gnu_ld" = yes; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11347 $as_echo_n "checking for GNU ld... " >&6; }
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11350 $as_echo_n "checking for non-GNU ld... " >&6; }
11351 fi
11352 if test "${lt_cv_path_LD+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
11354 else
11355 if test -z "$LD"; then
11356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11357 for ac_dir in $PATH; do
11358 IFS="$lt_save_ifs"
11359 test -z "$ac_dir" && ac_dir=.
11360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11361 lt_cv_path_LD="$ac_dir/$ac_prog"
11362 # Check to see if the program is GNU ld. I'd rather use --version,
11363 # but apparently some variants of GNU ld only accept -v.
11364 # Break only if it was the GNU/non-GNU ld that we prefer.
11365 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11366 *GNU* | *'with BFD'*)
11367 test "$with_gnu_ld" != no && break
11368 ;;
11369 *)
11370 test "$with_gnu_ld" != yes && break
11371 ;;
11372 esac
11373 fi
11374 done
11375 IFS="$lt_save_ifs"
11376 else
11377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11378 fi
11379 fi
11380
11381 LD="$lt_cv_path_LD"
11382 if test -n "$LD"; then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11384 $as_echo "$LD" >&6; }
11385 else
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387 $as_echo "no" >&6; }
11388 fi
11389 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11392 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11396 case `$LD -v 2>&1 </dev/null` in
11397 *GNU* | *'with BFD'*)
11398 lt_cv_prog_gnu_ld=yes
11399 ;;
11400 *)
11401 lt_cv_prog_gnu_ld=no
11402 ;;
11403 esac
11404 fi
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11406 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11407 with_gnu_ld=$lt_cv_prog_gnu_ld
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11418 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11419 if test "${lt_cv_path_NM+set}" = set; then :
11420 $as_echo_n "(cached) " >&6
11421 else
11422 if test -n "$NM"; then
11423 # Let the user override the test.
11424 lt_cv_path_NM="$NM"
11425 else
11426 lt_nm_to_check="${ac_tool_prefix}nm"
11427 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11428 lt_nm_to_check="$lt_nm_to_check nm"
11429 fi
11430 for lt_tmp_nm in $lt_nm_to_check; do
11431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11432 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11433 IFS="$lt_save_ifs"
11434 test -z "$ac_dir" && ac_dir=.
11435 tmp_nm="$ac_dir/$lt_tmp_nm"
11436 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11437 # Check to see if the nm accepts a BSD-compat flag.
11438 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11439 # nm: unknown option "B" ignored
11440 # Tru64's nm complains that /dev/null is an invalid object file
11441 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11442 */dev/null* | *'Invalid file or object type'*)
11443 lt_cv_path_NM="$tmp_nm -B"
11444 break
11445 ;;
11446 *)
11447 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11448 */dev/null*)
11449 lt_cv_path_NM="$tmp_nm -p"
11450 break
11451 ;;
11452 *)
11453 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11454 continue # so that we can try to find one that supports BSD flags
11455 ;;
11456 esac
11457 ;;
11458 esac
11459 fi
11460 done
11461 IFS="$lt_save_ifs"
11462 done
11463 : ${lt_cv_path_NM=no}
11464 fi
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11467 $as_echo "$lt_cv_path_NM" >&6; }
11468 if test "$lt_cv_path_NM" != "no"; then
11469 NM="$lt_cv_path_NM"
11470 else
11471 # Didn't find any BSD compatible name lister, look for dumpbin.
11472 if test -n "$DUMPBIN"; then :
11473 # Let the user override the test.
11474 else
11475 if test -n "$ac_tool_prefix"; then
11476 for ac_prog in dumpbin "link -dump"
11477 do
11478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11481 $as_echo_n "checking for $ac_word... " >&6; }
11482 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11483 $as_echo_n "(cached) " >&6
11484 else
11485 if test -n "$DUMPBIN"; then
11486 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11487 else
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11490 do
11491 IFS=$as_save_IFS
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11495 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 break 2
11498 fi
11499 done
11500 done
11501 IFS=$as_save_IFS
11502
11503 fi
11504 fi
11505 DUMPBIN=$ac_cv_prog_DUMPBIN
11506 if test -n "$DUMPBIN"; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11508 $as_echo "$DUMPBIN" >&6; }
11509 else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11511 $as_echo "no" >&6; }
11512 fi
11513
11514
11515 test -n "$DUMPBIN" && break
11516 done
11517 fi
11518 if test -z "$DUMPBIN"; then
11519 ac_ct_DUMPBIN=$DUMPBIN
11520 for ac_prog in dumpbin "link -dump"
11521 do
11522 # Extract the first word of "$ac_prog", so it can be a program name with args.
11523 set dummy $ac_prog; ac_word=$2
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11525 $as_echo_n "checking for $ac_word... " >&6; }
11526 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11527 $as_echo_n "(cached) " >&6
11528 else
11529 if test -n "$ac_ct_DUMPBIN"; then
11530 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11531 else
11532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533 for as_dir in $PATH
11534 do
11535 IFS=$as_save_IFS
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
11538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11539 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 break 2
11542 fi
11543 done
11544 done
11545 IFS=$as_save_IFS
11546
11547 fi
11548 fi
11549 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11550 if test -n "$ac_ct_DUMPBIN"; then
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11552 $as_echo "$ac_ct_DUMPBIN" >&6; }
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; }
11556 fi
11557
11558
11559 test -n "$ac_ct_DUMPBIN" && break
11560 done
11561
11562 if test "x$ac_ct_DUMPBIN" = x; then
11563 DUMPBIN=":"
11564 else
11565 case $cross_compiling:$ac_tool_warned in
11566 yes:)
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11569 ac_tool_warned=yes ;;
11570 esac
11571 DUMPBIN=$ac_ct_DUMPBIN
11572 fi
11573 fi
11574
11575 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
11576 *COFF*)
11577 DUMPBIN="$DUMPBIN -symbols"
11578 ;;
11579 *)
11580 DUMPBIN=:
11581 ;;
11582 esac
11583 fi
11584
11585 if test "$DUMPBIN" != ":"; then
11586 NM="$DUMPBIN"
11587 fi
11588 fi
11589 test -z "$NM" && NM=nm
11590
11591
11592
11593
11594
11595
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11597 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11598 if test "${lt_cv_nm_interface+set}" = set; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 lt_cv_nm_interface="BSD nm"
11602 echo "int some_variable = 0;" > conftest.$ac_ext
11603 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
11604 (eval "$ac_compile" 2>conftest.err)
11605 cat conftest.err >&5
11606 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11607 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11608 cat conftest.err >&5
11609 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
11610 cat conftest.out >&5
11611 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11612 lt_cv_nm_interface="MS dumpbin"
11613 fi
11614 rm -f conftest*
11615 fi
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11617 $as_echo "$lt_cv_nm_interface" >&6; }
11618
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11620 $as_echo_n "checking whether ln -s works... " >&6; }
11621 LN_S=$as_ln_s
11622 if test "$LN_S" = "ln -s"; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11624 $as_echo "yes" >&6; }
11625 else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11627 $as_echo "no, using $LN_S" >&6; }
11628 fi
11629
11630 # find the maximum length of command line arguments
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11632 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11633 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11634 $as_echo_n "(cached) " >&6
11635 else
11636 i=0
11637 teststring="ABCD"
11638
11639 case $build_os in
11640 msdosdjgpp*)
11641 # On DJGPP, this test can blow up pretty badly due to problems in libc
11642 # (any single argument exceeding 2000 bytes causes a buffer overrun
11643 # during glob expansion). Even if it were fixed, the result of this
11644 # check would be larger than it should be.
11645 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11646 ;;
11647
11648 gnu*)
11649 # Under GNU Hurd, this test is not required because there is
11650 # no limit to the length of command line arguments.
11651 # Libtool will interpret -1 as no limit whatsoever
11652 lt_cv_sys_max_cmd_len=-1;
11653 ;;
11654
11655 cygwin* | mingw* | cegcc*)
11656 # On Win9x/ME, this test blows up -- it succeeds, but takes
11657 # about 5 minutes as the teststring grows exponentially.
11658 # Worse, since 9x/ME are not pre-emptively multitasking,
11659 # you end up with a "frozen" computer, even though with patience
11660 # the test eventually succeeds (with a max line length of 256k).
11661 # Instead, let's just punt: use the minimum linelength reported by
11662 # all of the supported platforms: 8192 (on NT/2K/XP).
11663 lt_cv_sys_max_cmd_len=8192;
11664 ;;
11665
11666 mint*)
11667 # On MiNT this can take a long time and run out of memory.
11668 lt_cv_sys_max_cmd_len=8192;
11669 ;;
11670
11671 amigaos*)
11672 # On AmigaOS with pdksh, this test takes hours, literally.
11673 # So we just punt and use a minimum line length of 8192.
11674 lt_cv_sys_max_cmd_len=8192;
11675 ;;
11676
11677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11678 # This has been around since 386BSD, at least. Likely further.
11679 if test -x /sbin/sysctl; then
11680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11681 elif test -x /usr/sbin/sysctl; then
11682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11683 else
11684 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11685 fi
11686 # And add a safety zone
11687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11689 ;;
11690
11691 interix*)
11692 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11693 lt_cv_sys_max_cmd_len=196608
11694 ;;
11695
11696 osf*)
11697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11699 # nice to cause kernel panics so lets avoid the loop below.
11700 # First set a reasonable default.
11701 lt_cv_sys_max_cmd_len=16384
11702 #
11703 if test -x /sbin/sysconfig; then
11704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11706 esac
11707 fi
11708 ;;
11709 sco3.2v5*)
11710 lt_cv_sys_max_cmd_len=102400
11711 ;;
11712 sysv5* | sco5v6* | sysv4.2uw2*)
11713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11714 if test -n "$kargmax"; then
11715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11716 else
11717 lt_cv_sys_max_cmd_len=32768
11718 fi
11719 ;;
11720 *)
11721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11722 if test -n "$lt_cv_sys_max_cmd_len"; then
11723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11725 else
11726 # Make teststring a little bigger before we do anything with it.
11727 # a 1K string should be a reasonable start.
11728 for i in 1 2 3 4 5 6 7 8 ; do
11729 teststring=$teststring$teststring
11730 done
11731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11732 # If test is not a shell built-in, we'll probably end up computing a
11733 # maximum length that is only half of the actual maximum length, but
11734 # we can't tell.
11735 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
11736 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
11737 test $i != 17 # 1/2 MB should be enough
11738 do
11739 i=`expr $i + 1`
11740 teststring=$teststring$teststring
11741 done
11742 # Only check the string length outside the loop.
11743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11744 teststring=
11745 # Add a significant safety factor because C++ compilers can tack on
11746 # massive amounts of additional arguments before passing them to the
11747 # linker. It appears as though 1/2 is a usable value.
11748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11749 fi
11750 ;;
11751 esac
11752
11753 fi
11754
11755 if test -n $lt_cv_sys_max_cmd_len ; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11757 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11758 else
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11760 $as_echo "none" >&6; }
11761 fi
11762 max_cmd_len=$lt_cv_sys_max_cmd_len
11763
11764
11765
11766
11767
11768
11769 : ${CP="cp -f"}
11770 : ${MV="mv -f"}
11771 : ${RM="rm -f"}
11772
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11774 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11775 # Try some XSI features
11776 xsi_shell=no
11777 ( _lt_dummy="a/b/c"
11778 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11779 = c,a/b,, \
11780 && eval 'test $(( 1 + 1 )) -eq 2 \
11781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11782 && xsi_shell=yes
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11784 $as_echo "$xsi_shell" >&6; }
11785
11786
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11788 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11789 lt_shell_append=no
11790 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11791 >/dev/null 2>&1 \
11792 && lt_shell_append=yes
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11794 $as_echo "$lt_shell_append" >&6; }
11795
11796
11797 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11798 lt_unset=unset
11799 else
11800 lt_unset=false
11801 fi
11802
11803
11804
11805
11806
11807 # test EBCDIC or ASCII
11808 case `echo X|tr X '\101'` in
11809 A) # ASCII based system
11810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11811 lt_SP2NL='tr \040 \012'
11812 lt_NL2SP='tr \015\012 \040\040'
11813 ;;
11814 *) # EBCDIC based system
11815 lt_SP2NL='tr \100 \n'
11816 lt_NL2SP='tr \r\n \100\100'
11817 ;;
11818 esac
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11829 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11830 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11831 $as_echo_n "(cached) " >&6
11832 else
11833 lt_cv_ld_reload_flag='-r'
11834 fi
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11836 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11837 reload_flag=$lt_cv_ld_reload_flag
11838 case $reload_flag in
11839 "" | " "*) ;;
11840 *) reload_flag=" $reload_flag" ;;
11841 esac
11842 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11843 case $host_os in
11844 darwin*)
11845 if test "$GCC" = yes; then
11846 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11847 else
11848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11849 fi
11850 ;;
11851 esac
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861 if test -n "$ac_tool_prefix"; then
11862 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11863 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11865 $as_echo_n "checking for $ac_word... " >&6; }
11866 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11867 $as_echo_n "(cached) " >&6
11868 else
11869 if test -n "$OBJDUMP"; then
11870 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11871 else
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11874 do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11879 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11881 break 2
11882 fi
11883 done
11884 done
11885 IFS=$as_save_IFS
11886
11887 fi
11888 fi
11889 OBJDUMP=$ac_cv_prog_OBJDUMP
11890 if test -n "$OBJDUMP"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11892 $as_echo "$OBJDUMP" >&6; }
11893 else
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11895 $as_echo "no" >&6; }
11896 fi
11897
11898
11899 fi
11900 if test -z "$ac_cv_prog_OBJDUMP"; then
11901 ac_ct_OBJDUMP=$OBJDUMP
11902 # Extract the first word of "objdump", so it can be a program name with args.
11903 set dummy objdump; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11905 $as_echo_n "checking for $ac_word... " >&6; }
11906 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11907 $as_echo_n "(cached) " >&6
11908 else
11909 if test -n "$ac_ct_OBJDUMP"; then
11910 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11911 else
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11914 do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11919 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11921 break 2
11922 fi
11923 done
11924 done
11925 IFS=$as_save_IFS
11926
11927 fi
11928 fi
11929 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11930 if test -n "$ac_ct_OBJDUMP"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11932 $as_echo "$ac_ct_OBJDUMP" >&6; }
11933 else
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11935 $as_echo "no" >&6; }
11936 fi
11937
11938 if test "x$ac_ct_OBJDUMP" = x; then
11939 OBJDUMP="false"
11940 else
11941 case $cross_compiling:$ac_tool_warned in
11942 yes:)
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11945 ac_tool_warned=yes ;;
11946 esac
11947 OBJDUMP=$ac_ct_OBJDUMP
11948 fi
11949 else
11950 OBJDUMP="$ac_cv_prog_OBJDUMP"
11951 fi
11952
11953 test -z "$OBJDUMP" && OBJDUMP=objdump
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11964 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11965 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11966 $as_echo_n "(cached) " >&6
11967 else
11968 lt_cv_file_magic_cmd='$MAGIC_CMD'
11969 lt_cv_file_magic_test_file=
11970 lt_cv_deplibs_check_method='unknown'
11971 # Need to set the preceding variable on all platforms that support
11972 # interlibrary dependencies.
11973 # 'none' -- dependencies not supported.
11974 # `unknown' -- same as none, but documents that we really don't know.
11975 # 'pass_all' -- all dependencies passed with no checks.
11976 # 'test_compile' -- check by making test program.
11977 # 'file_magic [[regex]]' -- check by looking for files in library path
11978 # which responds to the $file_magic_cmd with a given extended regex.
11979 # If you have `file' or equivalent on your system and you're not sure
11980 # whether `pass_all' will *always* work, you probably want this one.
11981
11982 case $host_os in
11983 aix[4-9]*)
11984 lt_cv_deplibs_check_method=pass_all
11985 ;;
11986
11987 beos*)
11988 lt_cv_deplibs_check_method=pass_all
11989 ;;
11990
11991 bsdi[45]*)
11992 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11993 lt_cv_file_magic_cmd='/usr/bin/file -L'
11994 lt_cv_file_magic_test_file=/shlib/libc.so
11995 ;;
11996
11997 cygwin*)
11998 # func_win32_libid is a shell function defined in ltmain.sh
11999 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12000 lt_cv_file_magic_cmd='func_win32_libid'
12001 ;;
12002
12003 mingw* | pw32*)
12004 # Base MSYS/MinGW do not provide the 'file' command needed by
12005 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12006 # unless we find 'file', for example because we are cross-compiling.
12007 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
12008 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
12009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12010 lt_cv_file_magic_cmd='func_win32_libid'
12011 else
12012 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12013 lt_cv_file_magic_cmd='$OBJDUMP -f'
12014 fi
12015 ;;
12016
12017 cegcc*)
12018 # use the weaker test based on 'objdump'. See mingw*.
12019 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12020 lt_cv_file_magic_cmd='$OBJDUMP -f'
12021 ;;
12022
12023 darwin* | rhapsody*)
12024 lt_cv_deplibs_check_method=pass_all
12025 ;;
12026
12027 freebsd* | dragonfly*)
12028 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12029 case $host_cpu in
12030 i*86 )
12031 # Not sure whether the presence of OpenBSD here was a mistake.
12032 # Let's accept both of them until this is cleared up.
12033 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12034 lt_cv_file_magic_cmd=/usr/bin/file
12035 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12036 ;;
12037 esac
12038 else
12039 lt_cv_deplibs_check_method=pass_all
12040 fi
12041 ;;
12042
12043 gnu*)
12044 lt_cv_deplibs_check_method=pass_all
12045 ;;
12046
12047 haiku*)
12048 lt_cv_deplibs_check_method=pass_all
12049 ;;
12050
12051 hpux10.20* | hpux11*)
12052 lt_cv_file_magic_cmd=/usr/bin/file
12053 case $host_cpu in
12054 ia64*)
12055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12056 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12057 ;;
12058 hppa*64*)
12059 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]'
12060 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12061 ;;
12062 *)
12063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12064 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12065 ;;
12066 esac
12067 ;;
12068
12069 interix[3-9]*)
12070 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12072 ;;
12073
12074 irix5* | irix6* | nonstopux*)
12075 case $LD in
12076 *-32|*"-32 ") libmagic=32-bit;;
12077 *-n32|*"-n32 ") libmagic=N32;;
12078 *-64|*"-64 ") libmagic=64-bit;;
12079 *) libmagic=never-match;;
12080 esac
12081 lt_cv_deplibs_check_method=pass_all
12082 ;;
12083
12084 # This must be Linux ELF.
12085 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12086 lt_cv_deplibs_check_method=pass_all
12087 ;;
12088
12089 netbsd*)
12090 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12092 else
12093 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12094 fi
12095 ;;
12096
12097 newos6*)
12098 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12099 lt_cv_file_magic_cmd=/usr/bin/file
12100 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12101 ;;
12102
12103 *nto* | *qnx*)
12104 lt_cv_deplibs_check_method=pass_all
12105 ;;
12106
12107 openbsd*)
12108 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12110 else
12111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12112 fi
12113 ;;
12114
12115 osf3* | osf4* | osf5*)
12116 lt_cv_deplibs_check_method=pass_all
12117 ;;
12118
12119 rdos*)
12120 lt_cv_deplibs_check_method=pass_all
12121 ;;
12122
12123 solaris*)
12124 lt_cv_deplibs_check_method=pass_all
12125 ;;
12126
12127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12128 lt_cv_deplibs_check_method=pass_all
12129 ;;
12130
12131 sysv4 | sysv4.3*)
12132 case $host_vendor in
12133 motorola)
12134 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]'
12135 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12136 ;;
12137 ncr)
12138 lt_cv_deplibs_check_method=pass_all
12139 ;;
12140 sequent)
12141 lt_cv_file_magic_cmd='/bin/file'
12142 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12143 ;;
12144 sni)
12145 lt_cv_file_magic_cmd='/bin/file'
12146 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12147 lt_cv_file_magic_test_file=/lib/libc.so
12148 ;;
12149 siemens)
12150 lt_cv_deplibs_check_method=pass_all
12151 ;;
12152 pc)
12153 lt_cv_deplibs_check_method=pass_all
12154 ;;
12155 esac
12156 ;;
12157
12158 tpf*)
12159 lt_cv_deplibs_check_method=pass_all
12160 ;;
12161 esac
12162
12163 fi
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12165 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12166 file_magic_cmd=$lt_cv_file_magic_cmd
12167 deplibs_check_method=$lt_cv_deplibs_check_method
12168 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181 if test -n "$ac_tool_prefix"; then
12182 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12183 set dummy ${ac_tool_prefix}ar; ac_word=$2
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185 $as_echo_n "checking for $ac_word... " >&6; }
12186 if test "${ac_cv_prog_AR+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
12188 else
12189 if test -n "$AR"; then
12190 ac_cv_prog_AR="$AR" # Let the user override the test.
12191 else
12192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH
12194 do
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12199 ac_cv_prog_AR="${ac_tool_prefix}ar"
12200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12201 break 2
12202 fi
12203 done
12204 done
12205 IFS=$as_save_IFS
12206
12207 fi
12208 fi
12209 AR=$ac_cv_prog_AR
12210 if test -n "$AR"; then
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12212 $as_echo "$AR" >&6; }
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215 $as_echo "no" >&6; }
12216 fi
12217
12218
12219 fi
12220 if test -z "$ac_cv_prog_AR"; then
12221 ac_ct_AR=$AR
12222 # Extract the first word of "ar", so it can be a program name with args.
12223 set dummy ar; ac_word=$2
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12225 $as_echo_n "checking for $ac_word... " >&6; }
12226 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12227 $as_echo_n "(cached) " >&6
12228 else
12229 if test -n "$ac_ct_AR"; then
12230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12231 else
12232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233 for as_dir in $PATH
12234 do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
12237 for ac_exec_ext in '' $ac_executable_extensions; do
12238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12239 ac_cv_prog_ac_ct_AR="ar"
12240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12241 break 2
12242 fi
12243 done
12244 done
12245 IFS=$as_save_IFS
12246
12247 fi
12248 fi
12249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12250 if test -n "$ac_ct_AR"; then
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12252 $as_echo "$ac_ct_AR" >&6; }
12253 else
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12255 $as_echo "no" >&6; }
12256 fi
12257
12258 if test "x$ac_ct_AR" = x; then
12259 AR="false"
12260 else
12261 case $cross_compiling:$ac_tool_warned in
12262 yes:)
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12265 ac_tool_warned=yes ;;
12266 esac
12267 AR=$ac_ct_AR
12268 fi
12269 else
12270 AR="$ac_cv_prog_AR"
12271 fi
12272
12273 test -z "$AR" && AR=ar
12274 test -z "$AR_FLAGS" && AR_FLAGS=cru
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286 if test -n "$ac_tool_prefix"; then
12287 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12288 set dummy ${ac_tool_prefix}strip; ac_word=$2
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12290 $as_echo_n "checking for $ac_word... " >&6; }
12291 if test "${ac_cv_prog_STRIP+set}" = set; then :
12292 $as_echo_n "(cached) " >&6
12293 else
12294 if test -n "$STRIP"; then
12295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12296 else
12297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12298 for as_dir in $PATH
12299 do
12300 IFS=$as_save_IFS
12301 test -z "$as_dir" && as_dir=.
12302 for ac_exec_ext in '' $ac_executable_extensions; do
12303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12304 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12306 break 2
12307 fi
12308 done
12309 done
12310 IFS=$as_save_IFS
12311
12312 fi
12313 fi
12314 STRIP=$ac_cv_prog_STRIP
12315 if test -n "$STRIP"; then
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12317 $as_echo "$STRIP" >&6; }
12318 else
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12320 $as_echo "no" >&6; }
12321 fi
12322
12323
12324 fi
12325 if test -z "$ac_cv_prog_STRIP"; then
12326 ac_ct_STRIP=$STRIP
12327 # Extract the first word of "strip", so it can be a program name with args.
12328 set dummy strip; ac_word=$2
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12330 $as_echo_n "checking for $ac_word... " >&6; }
12331 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12332 $as_echo_n "(cached) " >&6
12333 else
12334 if test -n "$ac_ct_STRIP"; then
12335 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12336 else
12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338 for as_dir in $PATH
12339 do
12340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
12342 for ac_exec_ext in '' $ac_executable_extensions; do
12343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12344 ac_cv_prog_ac_ct_STRIP="strip"
12345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12346 break 2
12347 fi
12348 done
12349 done
12350 IFS=$as_save_IFS
12351
12352 fi
12353 fi
12354 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12355 if test -n "$ac_ct_STRIP"; then
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12357 $as_echo "$ac_ct_STRIP" >&6; }
12358 else
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12360 $as_echo "no" >&6; }
12361 fi
12362
12363 if test "x$ac_ct_STRIP" = x; then
12364 STRIP=":"
12365 else
12366 case $cross_compiling:$ac_tool_warned in
12367 yes:)
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12370 ac_tool_warned=yes ;;
12371 esac
12372 STRIP=$ac_ct_STRIP
12373 fi
12374 else
12375 STRIP="$ac_cv_prog_STRIP"
12376 fi
12377
12378 test -z "$STRIP" && STRIP=:
12379
12380
12381
12382
12383
12384
12385 if test -n "$ac_tool_prefix"; then
12386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12387 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12389 $as_echo_n "checking for $ac_word... " >&6; }
12390 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 if test -n "$RANLIB"; then
12394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12395 else
12396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399 IFS=$as_save_IFS
12400 test -z "$as_dir" && as_dir=.
12401 for ac_exec_ext in '' $ac_executable_extensions; do
12402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405 break 2
12406 fi
12407 done
12408 done
12409 IFS=$as_save_IFS
12410
12411 fi
12412 fi
12413 RANLIB=$ac_cv_prog_RANLIB
12414 if test -n "$RANLIB"; then
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12416 $as_echo "$RANLIB" >&6; }
12417 else
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12419 $as_echo "no" >&6; }
12420 fi
12421
12422
12423 fi
12424 if test -z "$ac_cv_prog_RANLIB"; then
12425 ac_ct_RANLIB=$RANLIB
12426 # Extract the first word of "ranlib", so it can be a program name with args.
12427 set dummy ranlib; ac_word=$2
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429 $as_echo_n "checking for $ac_word... " >&6; }
12430 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 if test -n "$ac_ct_RANLIB"; then
12434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12435 else
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12438 do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_prog_ac_ct_RANLIB="ranlib"
12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445 break 2
12446 fi
12447 done
12448 done
12449 IFS=$as_save_IFS
12450
12451 fi
12452 fi
12453 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12454 if test -n "$ac_ct_RANLIB"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12456 $as_echo "$ac_ct_RANLIB" >&6; }
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12460 fi
12461
12462 if test "x$ac_ct_RANLIB" = x; then
12463 RANLIB=":"
12464 else
12465 case $cross_compiling:$ac_tool_warned in
12466 yes:)
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12469 ac_tool_warned=yes ;;
12470 esac
12471 RANLIB=$ac_ct_RANLIB
12472 fi
12473 else
12474 RANLIB="$ac_cv_prog_RANLIB"
12475 fi
12476
12477 test -z "$RANLIB" && RANLIB=:
12478
12479
12480
12481
12482
12483
12484 # Determine commands to create old-style static archives.
12485 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12486 old_postinstall_cmds='chmod 644 $oldlib'
12487 old_postuninstall_cmds=
12488
12489 if test -n "$RANLIB"; then
12490 case $host_os in
12491 openbsd*)
12492 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12493 ;;
12494 *)
12495 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12496 ;;
12497 esac
12498 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12499 fi
12500
12501 case $host_os in
12502 darwin*)
12503 lock_old_archive_extraction=yes ;;
12504 *)
12505 lock_old_archive_extraction=no ;;
12506 esac
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546 # If no C compiler was specified, use CC.
12547 LTCC=${LTCC-"$CC"}
12548
12549 # If no C compiler flags were specified, use CFLAGS.
12550 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12551
12552 # Allow CC to be a program name with arguments.
12553 compiler=$CC
12554
12555
12556 # Check for command to grab the raw symbol name followed by C symbol from nm.
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12558 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12559 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562
12563 # These are sane defaults that work on at least a few old systems.
12564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12565
12566 # Character class describing NM global symbol codes.
12567 symcode='[BCDEGRST]'
12568
12569 # Regexp to match symbols that can be accessed directly from C.
12570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12571
12572 # Define system-specific variables.
12573 case $host_os in
12574 aix*)
12575 symcode='[BCDT]'
12576 ;;
12577 cygwin* | mingw* | pw32* | cegcc*)
12578 symcode='[ABCDGISTW]'
12579 ;;
12580 hpux*)
12581 if test "$host_cpu" = ia64; then
12582 symcode='[ABCDEGRST]'
12583 fi
12584 ;;
12585 irix* | nonstopux*)
12586 symcode='[BCDEGRST]'
12587 ;;
12588 osf*)
12589 symcode='[BCDEGQRST]'
12590 ;;
12591 solaris*)
12592 symcode='[BDRT]'
12593 ;;
12594 sco3.2v5*)
12595 symcode='[DT]'
12596 ;;
12597 sysv4.2uw2*)
12598 symcode='[DT]'
12599 ;;
12600 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12601 symcode='[ABDT]'
12602 ;;
12603 sysv4)
12604 symcode='[DFNSTU]'
12605 ;;
12606 esac
12607
12608 # If we're using GNU nm, then use its standard symbol codes.
12609 case `$NM -V 2>&1` in
12610 *GNU* | *'with BFD'*)
12611 symcode='[ABCDGIRSTW]' ;;
12612 esac
12613
12614 # Transform an extracted symbol line into a proper C declaration.
12615 # Some systems (esp. on ia64) link data and code symbols differently,
12616 # so use this general approach.
12617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12618
12619 # Transform an extracted symbol line into symbol name and symbol address
12620 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12621 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'"
12622
12623 # Handle CRLF in mingw tool chain
12624 opt_cr=
12625 case $build_os in
12626 mingw*)
12627 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12628 ;;
12629 esac
12630
12631 # Try without a prefix underscore, then with it.
12632 for ac_symprfx in "" "_"; do
12633
12634 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12635 symxfrm="\\1 $ac_symprfx\\2 \\2"
12636
12637 # Write the raw and C identifiers.
12638 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12639 # Fake it for dumpbin and say T for any non-static function
12640 # and D for any global variable.
12641 # Also find C++ and __fastcall symbols from MSVC++,
12642 # which start with @ or ?.
12643 lt_cv_sys_global_symbol_pipe="$AWK '"\
12644 " {last_section=section; section=\$ 3};"\
12645 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12646 " \$ 0!~/External *\|/{next};"\
12647 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12648 " {if(hide[section]) next};"\
12649 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12650 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12651 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12652 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12653 " ' prfx=^$ac_symprfx"
12654 else
12655 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12656 fi
12657
12658 # Check to see that the pipe works correctly.
12659 pipe_works=no
12660
12661 rm -f conftest*
12662 cat > conftest.$ac_ext <<_LT_EOF
12663 #ifdef __cplusplus
12664 extern "C" {
12665 #endif
12666 char nm_test_var;
12667 void nm_test_func(void);
12668 void nm_test_func(void){}
12669 #ifdef __cplusplus
12670 }
12671 #endif
12672 int main(){nm_test_var='a';nm_test_func();return(0);}
12673 _LT_EOF
12674
12675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12676 (eval $ac_compile) 2>&5
12677 ac_status=$?
12678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12679 test $ac_status = 0; }; then
12680 # Now try to grab the symbols.
12681 nlist=conftest.nm
12682 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12683 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
12684 ac_status=$?
12685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12686 test $ac_status = 0; } && test -s "$nlist"; then
12687 # Try sorting and uniquifying the output.
12688 if sort "$nlist" | uniq > "$nlist"T; then
12689 mv -f "$nlist"T "$nlist"
12690 else
12691 rm -f "$nlist"T
12692 fi
12693
12694 # Make sure that we snagged all the symbols we need.
12695 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12696 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12697 cat <<_LT_EOF > conftest.$ac_ext
12698 #ifdef __cplusplus
12699 extern "C" {
12700 #endif
12701
12702 _LT_EOF
12703 # Now generate the symbol file.
12704 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12705
12706 cat <<_LT_EOF >> conftest.$ac_ext
12707
12708 /* The mapping between symbol names and symbols. */
12709 const struct {
12710 const char *name;
12711 void *address;
12712 }
12713 lt__PROGRAM__LTX_preloaded_symbols[] =
12714 {
12715 { "@PROGRAM@", (void *) 0 },
12716 _LT_EOF
12717 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12718 cat <<\_LT_EOF >> conftest.$ac_ext
12719 {0, (void *) 0}
12720 };
12721
12722 /* This works around a problem in FreeBSD linker */
12723 #ifdef FREEBSD_WORKAROUND
12724 static const void *lt_preloaded_setup() {
12725 return lt__PROGRAM__LTX_preloaded_symbols;
12726 }
12727 #endif
12728
12729 #ifdef __cplusplus
12730 }
12731 #endif
12732 _LT_EOF
12733 # Now try linking the two files.
12734 mv conftest.$ac_objext conftstm.$ac_objext
12735 lt_save_LIBS="$LIBS"
12736 lt_save_CFLAGS="$CFLAGS"
12737 LIBS="conftstm.$ac_objext"
12738 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12740 (eval $ac_link) 2>&5
12741 ac_status=$?
12742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12743 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12744 pipe_works=yes
12745 fi
12746 LIBS="$lt_save_LIBS"
12747 CFLAGS="$lt_save_CFLAGS"
12748 else
12749 echo "cannot find nm_test_func in $nlist" >&5
12750 fi
12751 else
12752 echo "cannot find nm_test_var in $nlist" >&5
12753 fi
12754 else
12755 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12756 fi
12757 else
12758 echo "$progname: failed program was:" >&5
12759 cat conftest.$ac_ext >&5
12760 fi
12761 rm -rf conftest* conftst*
12762
12763 # Do not use the global_symbol_pipe unless it works.
12764 if test "$pipe_works" = yes; then
12765 break
12766 else
12767 lt_cv_sys_global_symbol_pipe=
12768 fi
12769 done
12770
12771 fi
12772
12773 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12774 lt_cv_sys_global_symbol_to_cdecl=
12775 fi
12776 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12778 $as_echo "failed" >&6; }
12779 else
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12781 $as_echo "ok" >&6; }
12782 fi
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805 # Check whether --enable-libtool-lock was given.
12806 if test "${enable_libtool_lock+set}" = set; then :
12807 enableval=$enable_libtool_lock;
12808 fi
12809
12810 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12811
12812 # Some flags need to be propagated to the compiler or linker for good
12813 # libtool support.
12814 case $host in
12815 ia64-*-hpux*)
12816 # Find out which ABI we are using.
12817 echo 'int i;' > conftest.$ac_ext
12818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12819 (eval $ac_compile) 2>&5
12820 ac_status=$?
12821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12822 test $ac_status = 0; }; then
12823 case `/usr/bin/file conftest.$ac_objext` in
12824 *ELF-32*)
12825 HPUX_IA64_MODE="32"
12826 ;;
12827 *ELF-64*)
12828 HPUX_IA64_MODE="64"
12829 ;;
12830 esac
12831 fi
12832 rm -rf conftest*
12833 ;;
12834 *-*-irix6*)
12835 # Find out which ABI we are using.
12836 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
12837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12838 (eval $ac_compile) 2>&5
12839 ac_status=$?
12840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12841 test $ac_status = 0; }; then
12842 if test "$lt_cv_prog_gnu_ld" = yes; then
12843 case `/usr/bin/file conftest.$ac_objext` in
12844 *32-bit*)
12845 LD="${LD-ld} -melf32bsmip"
12846 ;;
12847 *N32*)
12848 LD="${LD-ld} -melf32bmipn32"
12849 ;;
12850 *64-bit*)
12851 LD="${LD-ld} -melf64bmip"
12852 ;;
12853 esac
12854 else
12855 case `/usr/bin/file conftest.$ac_objext` in
12856 *32-bit*)
12857 LD="${LD-ld} -32"
12858 ;;
12859 *N32*)
12860 LD="${LD-ld} -n32"
12861 ;;
12862 *64-bit*)
12863 LD="${LD-ld} -64"
12864 ;;
12865 esac
12866 fi
12867 fi
12868 rm -rf conftest*
12869 ;;
12870
12871 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12872 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12873 # Find out which ABI we are using.
12874 echo 'int i;' > conftest.$ac_ext
12875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12876 (eval $ac_compile) 2>&5
12877 ac_status=$?
12878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12879 test $ac_status = 0; }; then
12880 case `/usr/bin/file conftest.o` in
12881 *32-bit*)
12882 case $host in
12883 x86_64-*kfreebsd*-gnu)
12884 LD="${LD-ld} -m elf_i386_fbsd"
12885 ;;
12886 x86_64-*linux*)
12887 LD="${LD-ld} -m elf_i386"
12888 ;;
12889 ppc64-*linux*|powerpc64-*linux*)
12890 LD="${LD-ld} -m elf32ppclinux"
12891 ;;
12892 s390x-*linux*)
12893 LD="${LD-ld} -m elf_s390"
12894 ;;
12895 sparc64-*linux*)
12896 LD="${LD-ld} -m elf32_sparc"
12897 ;;
12898 esac
12899 ;;
12900 *64-bit*)
12901 case $host in
12902 x86_64-*kfreebsd*-gnu)
12903 LD="${LD-ld} -m elf_x86_64_fbsd"
12904 ;;
12905 x86_64-*linux*)
12906 LD="${LD-ld} -m elf_x86_64"
12907 ;;
12908 ppc*-*linux*|powerpc*-*linux*)
12909 LD="${LD-ld} -m elf64ppc"
12910 ;;
12911 s390*-*linux*|s390*-*tpf*)
12912 LD="${LD-ld} -m elf64_s390"
12913 ;;
12914 sparc*-*linux*)
12915 LD="${LD-ld} -m elf64_sparc"
12916 ;;
12917 esac
12918 ;;
12919 esac
12920 fi
12921 rm -rf conftest*
12922 ;;
12923
12924 *-*-sco3.2v5*)
12925 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12926 SAVE_CFLAGS="$CFLAGS"
12927 CFLAGS="$CFLAGS -belf"
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12929 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12930 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12931 $as_echo_n "(cached) " >&6
12932 else
12933 ac_ext=c
12934 ac_cpp='$CPP $CPPFLAGS'
12935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12938
12939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12940 /* end confdefs.h. */
12941
12942 int
12943 main ()
12944 {
12945
12946 ;
12947 return 0;
12948 }
12949 _ACEOF
12950 if ac_fn_c_try_link "$LINENO"; then :
12951 lt_cv_cc_needs_belf=yes
12952 else
12953 lt_cv_cc_needs_belf=no
12954 fi
12955 rm -f core conftest.err conftest.$ac_objext \
12956 conftest$ac_exeext conftest.$ac_ext
12957 ac_ext=c
12958 ac_cpp='$CPP $CPPFLAGS'
12959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12962
12963 fi
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12965 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12966 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12967 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12968 CFLAGS="$SAVE_CFLAGS"
12969 fi
12970 ;;
12971 sparc*-*solaris*)
12972 # Find out which ABI we are using.
12973 echo 'int i;' > conftest.$ac_ext
12974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12975 (eval $ac_compile) 2>&5
12976 ac_status=$?
12977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12978 test $ac_status = 0; }; then
12979 case `/usr/bin/file conftest.o` in
12980 *64-bit*)
12981 case $lt_cv_prog_gnu_ld in
12982 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12983 *)
12984 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12985 LD="${LD-ld} -64"
12986 fi
12987 ;;
12988 esac
12989 ;;
12990 esac
12991 fi
12992 rm -rf conftest*
12993 ;;
12994 esac
12995
12996 need_locks="$enable_libtool_lock"
12997
12998
12999 case $host_os in
13000 rhapsody* | darwin*)
13001 if test -n "$ac_tool_prefix"; then
13002 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13003 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13005 $as_echo_n "checking for $ac_word... " >&6; }
13006 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 if test -n "$DSYMUTIL"; then
13010 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13011 else
13012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13013 for as_dir in $PATH
13014 do
13015 IFS=$as_save_IFS
13016 test -z "$as_dir" && as_dir=.
13017 for ac_exec_ext in '' $ac_executable_extensions; do
13018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13019 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13021 break 2
13022 fi
13023 done
13024 done
13025 IFS=$as_save_IFS
13026
13027 fi
13028 fi
13029 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13030 if test -n "$DSYMUTIL"; then
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13032 $as_echo "$DSYMUTIL" >&6; }
13033 else
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13035 $as_echo "no" >&6; }
13036 fi
13037
13038
13039 fi
13040 if test -z "$ac_cv_prog_DSYMUTIL"; then
13041 ac_ct_DSYMUTIL=$DSYMUTIL
13042 # Extract the first word of "dsymutil", so it can be a program name with args.
13043 set dummy dsymutil; ac_word=$2
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13045 $as_echo_n "checking for $ac_word... " >&6; }
13046 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049 if test -n "$ac_ct_DSYMUTIL"; then
13050 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13051 else
13052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13053 for as_dir in $PATH
13054 do
13055 IFS=$as_save_IFS
13056 test -z "$as_dir" && as_dir=.
13057 for ac_exec_ext in '' $ac_executable_extensions; do
13058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 break 2
13062 fi
13063 done
13064 done
13065 IFS=$as_save_IFS
13066
13067 fi
13068 fi
13069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13070 if test -n "$ac_ct_DSYMUTIL"; then
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13072 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13076 fi
13077
13078 if test "x$ac_ct_DSYMUTIL" = x; then
13079 DSYMUTIL=":"
13080 else
13081 case $cross_compiling:$ac_tool_warned in
13082 yes:)
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13085 ac_tool_warned=yes ;;
13086 esac
13087 DSYMUTIL=$ac_ct_DSYMUTIL
13088 fi
13089 else
13090 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13091 fi
13092
13093 if test -n "$ac_tool_prefix"; then
13094 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13095 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13097 $as_echo_n "checking for $ac_word... " >&6; }
13098 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101 if test -n "$NMEDIT"; then
13102 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13103 else
13104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13106 do
13107 IFS=$as_save_IFS
13108 test -z "$as_dir" && as_dir=.
13109 for ac_exec_ext in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113 break 2
13114 fi
13115 done
13116 done
13117 IFS=$as_save_IFS
13118
13119 fi
13120 fi
13121 NMEDIT=$ac_cv_prog_NMEDIT
13122 if test -n "$NMEDIT"; then
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13124 $as_echo "$NMEDIT" >&6; }
13125 else
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13127 $as_echo "no" >&6; }
13128 fi
13129
13130
13131 fi
13132 if test -z "$ac_cv_prog_NMEDIT"; then
13133 ac_ct_NMEDIT=$NMEDIT
13134 # Extract the first word of "nmedit", so it can be a program name with args.
13135 set dummy nmedit; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13137 $as_echo_n "checking for $ac_word... " >&6; }
13138 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13139 $as_echo_n "(cached) " >&6
13140 else
13141 if test -n "$ac_ct_NMEDIT"; then
13142 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13143 else
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13146 do
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13151 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13153 break 2
13154 fi
13155 done
13156 done
13157 IFS=$as_save_IFS
13158
13159 fi
13160 fi
13161 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13162 if test -n "$ac_ct_NMEDIT"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13164 $as_echo "$ac_ct_NMEDIT" >&6; }
13165 else
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13168 fi
13169
13170 if test "x$ac_ct_NMEDIT" = x; then
13171 NMEDIT=":"
13172 else
13173 case $cross_compiling:$ac_tool_warned in
13174 yes:)
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13177 ac_tool_warned=yes ;;
13178 esac
13179 NMEDIT=$ac_ct_NMEDIT
13180 fi
13181 else
13182 NMEDIT="$ac_cv_prog_NMEDIT"
13183 fi
13184
13185 if test -n "$ac_tool_prefix"; then
13186 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13187 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13189 $as_echo_n "checking for $ac_word... " >&6; }
13190 if test "${ac_cv_prog_LIPO+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 if test -n "$LIPO"; then
13194 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13195 else
13196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13197 for as_dir in $PATH
13198 do
13199 IFS=$as_save_IFS
13200 test -z "$as_dir" && as_dir=.
13201 for ac_exec_ext in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13205 break 2
13206 fi
13207 done
13208 done
13209 IFS=$as_save_IFS
13210
13211 fi
13212 fi
13213 LIPO=$ac_cv_prog_LIPO
13214 if test -n "$LIPO"; then
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13216 $as_echo "$LIPO" >&6; }
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13220 fi
13221
13222
13223 fi
13224 if test -z "$ac_cv_prog_LIPO"; then
13225 ac_ct_LIPO=$LIPO
13226 # Extract the first word of "lipo", so it can be a program name with args.
13227 set dummy lipo; ac_word=$2
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13229 $as_echo_n "checking for $ac_word... " >&6; }
13230 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13231 $as_echo_n "(cached) " >&6
13232 else
13233 if test -n "$ac_ct_LIPO"; then
13234 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13235 else
13236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237 for as_dir in $PATH
13238 do
13239 IFS=$as_save_IFS
13240 test -z "$as_dir" && as_dir=.
13241 for ac_exec_ext in '' $ac_executable_extensions; do
13242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13243 ac_cv_prog_ac_ct_LIPO="lipo"
13244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13245 break 2
13246 fi
13247 done
13248 done
13249 IFS=$as_save_IFS
13250
13251 fi
13252 fi
13253 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13254 if test -n "$ac_ct_LIPO"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13256 $as_echo "$ac_ct_LIPO" >&6; }
13257 else
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13259 $as_echo "no" >&6; }
13260 fi
13261
13262 if test "x$ac_ct_LIPO" = x; then
13263 LIPO=":"
13264 else
13265 case $cross_compiling:$ac_tool_warned in
13266 yes:)
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13269 ac_tool_warned=yes ;;
13270 esac
13271 LIPO=$ac_ct_LIPO
13272 fi
13273 else
13274 LIPO="$ac_cv_prog_LIPO"
13275 fi
13276
13277 if test -n "$ac_tool_prefix"; then
13278 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13279 set dummy ${ac_tool_prefix}otool; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13283 $as_echo_n "(cached) " >&6
13284 else
13285 if test -n "$OTOOL"; then
13286 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13287 else
13288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13289 for as_dir in $PATH
13290 do
13291 IFS=$as_save_IFS
13292 test -z "$as_dir" && as_dir=.
13293 for ac_exec_ext in '' $ac_executable_extensions; do
13294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13295 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13297 break 2
13298 fi
13299 done
13300 done
13301 IFS=$as_save_IFS
13302
13303 fi
13304 fi
13305 OTOOL=$ac_cv_prog_OTOOL
13306 if test -n "$OTOOL"; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13308 $as_echo "$OTOOL" >&6; }
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13311 $as_echo "no" >&6; }
13312 fi
13313
13314
13315 fi
13316 if test -z "$ac_cv_prog_OTOOL"; then
13317 ac_ct_OTOOL=$OTOOL
13318 # Extract the first word of "otool", so it can be a program name with args.
13319 set dummy otool; ac_word=$2
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13321 $as_echo_n "checking for $ac_word... " >&6; }
13322 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 if test -n "$ac_ct_OTOOL"; then
13326 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13327 else
13328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13329 for as_dir in $PATH
13330 do
13331 IFS=$as_save_IFS
13332 test -z "$as_dir" && as_dir=.
13333 for ac_exec_ext in '' $ac_executable_extensions; do
13334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13335 ac_cv_prog_ac_ct_OTOOL="otool"
13336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 break 2
13338 fi
13339 done
13340 done
13341 IFS=$as_save_IFS
13342
13343 fi
13344 fi
13345 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13346 if test -n "$ac_ct_OTOOL"; then
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13348 $as_echo "$ac_ct_OTOOL" >&6; }
13349 else
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13352 fi
13353
13354 if test "x$ac_ct_OTOOL" = x; then
13355 OTOOL=":"
13356 else
13357 case $cross_compiling:$ac_tool_warned in
13358 yes:)
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13361 ac_tool_warned=yes ;;
13362 esac
13363 OTOOL=$ac_ct_OTOOL
13364 fi
13365 else
13366 OTOOL="$ac_cv_prog_OTOOL"
13367 fi
13368
13369 if test -n "$ac_tool_prefix"; then
13370 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13371 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13373 $as_echo_n "checking for $ac_word... " >&6; }
13374 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 if test -n "$OTOOL64"; then
13378 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13379 else
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381 for as_dir in $PATH
13382 do
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13387 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13389 break 2
13390 fi
13391 done
13392 done
13393 IFS=$as_save_IFS
13394
13395 fi
13396 fi
13397 OTOOL64=$ac_cv_prog_OTOOL64
13398 if test -n "$OTOOL64"; then
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13400 $as_echo "$OTOOL64" >&6; }
13401 else
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13403 $as_echo "no" >&6; }
13404 fi
13405
13406
13407 fi
13408 if test -z "$ac_cv_prog_OTOOL64"; then
13409 ac_ct_OTOOL64=$OTOOL64
13410 # Extract the first word of "otool64", so it can be a program name with args.
13411 set dummy otool64; ac_word=$2
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413 $as_echo_n "checking for $ac_word... " >&6; }
13414 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
13416 else
13417 if test -n "$ac_ct_OTOOL64"; then
13418 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13419 else
13420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421 for as_dir in $PATH
13422 do
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13427 ac_cv_prog_ac_ct_OTOOL64="otool64"
13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13429 break 2
13430 fi
13431 done
13432 done
13433 IFS=$as_save_IFS
13434
13435 fi
13436 fi
13437 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13438 if test -n "$ac_ct_OTOOL64"; then
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13440 $as_echo "$ac_ct_OTOOL64" >&6; }
13441 else
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13444 fi
13445
13446 if test "x$ac_ct_OTOOL64" = x; then
13447 OTOOL64=":"
13448 else
13449 case $cross_compiling:$ac_tool_warned in
13450 yes:)
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13453 ac_tool_warned=yes ;;
13454 esac
13455 OTOOL64=$ac_ct_OTOOL64
13456 fi
13457 else
13458 OTOOL64="$ac_cv_prog_OTOOL64"
13459 fi
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13488 $as_echo_n "checking for -single_module linker flag... " >&6; }
13489 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 lt_cv_apple_cc_single_mod=no
13493 if test -z "${LT_MULTI_MODULE}"; then
13494 # By default we will add the -single_module flag. You can override
13495 # by either setting the environment variable LT_MULTI_MODULE
13496 # non-empty at configure time, or by adding -multi_module to the
13497 # link flags.
13498 rm -rf libconftest.dylib*
13499 echo "int foo(void){return 1;}" > conftest.c
13500 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13501 -dynamiclib -Wl,-single_module conftest.c" >&5
13502 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13503 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13504 _lt_result=$?
13505 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13506 lt_cv_apple_cc_single_mod=yes
13507 else
13508 cat conftest.err >&5
13509 fi
13510 rm -rf libconftest.dylib*
13511 rm -f conftest.*
13512 fi
13513 fi
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13515 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13517 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13518 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 lt_cv_ld_exported_symbols_list=no
13522 save_LDFLAGS=$LDFLAGS
13523 echo "_main" > conftest.sym
13524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h. */
13527
13528 int
13529 main ()
13530 {
13531
13532 ;
13533 return 0;
13534 }
13535 _ACEOF
13536 if ac_fn_c_try_link "$LINENO"; then :
13537 lt_cv_ld_exported_symbols_list=yes
13538 else
13539 lt_cv_ld_exported_symbols_list=no
13540 fi
13541 rm -f core conftest.err conftest.$ac_objext \
13542 conftest$ac_exeext conftest.$ac_ext
13543 LDFLAGS="$save_LDFLAGS"
13544
13545 fi
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13547 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13549 $as_echo_n "checking for -force_load linker flag... " >&6; }
13550 if test "${lt_cv_ld_force_load+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 lt_cv_ld_force_load=no
13554 cat > conftest.c << _LT_EOF
13555 int forced_loaded() { return 2;}
13556 _LT_EOF
13557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13559 echo "$AR cru libconftest.a conftest.o" >&5
13560 $AR cru libconftest.a conftest.o 2>&5
13561 cat > conftest.c << _LT_EOF
13562 int main() { return 0;}
13563 _LT_EOF
13564 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13565 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13566 _lt_result=$?
13567 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
13568 lt_cv_ld_force_load=yes
13569 else
13570 cat conftest.err >&5
13571 fi
13572 rm -f conftest.err libconftest.a conftest conftest.c
13573 rm -rf conftest.dSYM
13574
13575 fi
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13577 $as_echo "$lt_cv_ld_force_load" >&6; }
13578 case $host_os in
13579 rhapsody* | darwin1.[012])
13580 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13581 darwin1.*)
13582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13583 darwin*) # darwin 5.x on
13584 # if running on 10.5 or later, the deployment target defaults
13585 # to the OS version, if on x86, and 10.4, the deployment
13586 # target defaults to 10.4. Don't you love it?
13587 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13588 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13589 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13590 10.[012]*)
13591 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13592 10.*)
13593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13594 esac
13595 ;;
13596 esac
13597 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13598 _lt_dar_single_mod='$single_module'
13599 fi
13600 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13601 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13602 else
13603 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13604 fi
13605 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
13606 _lt_dsymutil='~$DSYMUTIL $lib || :'
13607 else
13608 _lt_dsymutil=
13609 fi
13610 ;;
13611 esac
13612
13613 for ac_header in dlfcn.h
13614 do :
13615 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13616 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13617 cat >>confdefs.h <<_ACEOF
13618 #define HAVE_DLFCN_H 1
13619 _ACEOF
13620
13621 fi
13622 done
13623
13624
13625
13626
13627
13628
13629 # Set options
13630
13631
13632
13633 enable_dlopen=no
13634
13635
13636 enable_win32_dll=no
13637
13638
13639 # Check whether --enable-shared was given.
13640 if test "${enable_shared+set}" = set; then :
13641 enableval=$enable_shared; p=${PACKAGE-default}
13642 case $enableval in
13643 yes) enable_shared=yes ;;
13644 no) enable_shared=no ;;
13645 *)
13646 enable_shared=no
13647 # Look at the argument we got. We use all the common list separators.
13648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13649 for pkg in $enableval; do
13650 IFS="$lt_save_ifs"
13651 if test "X$pkg" = "X$p"; then
13652 enable_shared=yes
13653 fi
13654 done
13655 IFS="$lt_save_ifs"
13656 ;;
13657 esac
13658 else
13659 enable_shared=yes
13660 fi
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670 # Check whether --enable-static was given.
13671 if test "${enable_static+set}" = set; then :
13672 enableval=$enable_static; p=${PACKAGE-default}
13673 case $enableval in
13674 yes) enable_static=yes ;;
13675 no) enable_static=no ;;
13676 *)
13677 enable_static=no
13678 # Look at the argument we got. We use all the common list separators.
13679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13680 for pkg in $enableval; do
13681 IFS="$lt_save_ifs"
13682 if test "X$pkg" = "X$p"; then
13683 enable_static=yes
13684 fi
13685 done
13686 IFS="$lt_save_ifs"
13687 ;;
13688 esac
13689 else
13690 enable_static=yes
13691 fi
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702 # Check whether --with-pic was given.
13703 if test "${with_pic+set}" = set; then :
13704 withval=$with_pic; pic_mode="$withval"
13705 else
13706 pic_mode=default
13707 fi
13708
13709
13710 test -z "$pic_mode" && pic_mode=default
13711
13712
13713
13714
13715
13716
13717
13718 # Check whether --enable-fast-install was given.
13719 if test "${enable_fast_install+set}" = set; then :
13720 enableval=$enable_fast_install; p=${PACKAGE-default}
13721 case $enableval in
13722 yes) enable_fast_install=yes ;;
13723 no) enable_fast_install=no ;;
13724 *)
13725 enable_fast_install=no
13726 # Look at the argument we got. We use all the common list separators.
13727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13728 for pkg in $enableval; do
13729 IFS="$lt_save_ifs"
13730 if test "X$pkg" = "X$p"; then
13731 enable_fast_install=yes
13732 fi
13733 done
13734 IFS="$lt_save_ifs"
13735 ;;
13736 esac
13737 else
13738 enable_fast_install=yes
13739 fi
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751 # This can be used to rebuild libtool when needed
13752 LIBTOOL_DEPS="$ltmain"
13753
13754 # Always use our own libtool.
13755 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13756
13757
13758
13759
13760
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782 test -z "$LN_S" && LN_S="ln -s"
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797 if test -n "${ZSH_VERSION+set}" ; then
13798 setopt NO_GLOB_SUBST
13799 fi
13800
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13802 $as_echo_n "checking for objdir... " >&6; }
13803 if test "${lt_cv_objdir+set}" = set; then :
13804 $as_echo_n "(cached) " >&6
13805 else
13806 rm -f .libs 2>/dev/null
13807 mkdir .libs 2>/dev/null
13808 if test -d .libs; then
13809 lt_cv_objdir=.libs
13810 else
13811 # MS-DOS does not allow filenames that begin with a dot.
13812 lt_cv_objdir=_libs
13813 fi
13814 rmdir .libs 2>/dev/null
13815 fi
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13817 $as_echo "$lt_cv_objdir" >&6; }
13818 objdir=$lt_cv_objdir
13819
13820
13821
13822
13823
13824 cat >>confdefs.h <<_ACEOF
13825 #define LT_OBJDIR "$lt_cv_objdir/"
13826 _ACEOF
13827
13828
13829
13830
13831 case $host_os in
13832 aix3*)
13833 # AIX sometimes has problems with the GCC collect2 program. For some
13834 # reason, if we set the COLLECT_NAMES environment variable, the problems
13835 # vanish in a puff of smoke.
13836 if test "X${COLLECT_NAMES+set}" != Xset; then
13837 COLLECT_NAMES=
13838 export COLLECT_NAMES
13839 fi
13840 ;;
13841 esac
13842
13843 # Global variables:
13844 ofile=libtool
13845 can_build_shared=yes
13846
13847 # All known linkers require a `.a' archive for static linking (except MSVC,
13848 # which needs '.lib').
13849 libext=a
13850
13851 with_gnu_ld="$lt_cv_prog_gnu_ld"
13852
13853 old_CC="$CC"
13854 old_CFLAGS="$CFLAGS"
13855
13856 # Set sane defaults for various variables
13857 test -z "$CC" && CC=cc
13858 test -z "$LTCC" && LTCC=$CC
13859 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13860 test -z "$LD" && LD=ld
13861 test -z "$ac_objext" && ac_objext=o
13862
13863 for cc_temp in $compiler""; do
13864 case $cc_temp in
13865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13867 \-*) ;;
13868 *) break;;
13869 esac
13870 done
13871 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13872
13873
13874 # Only perform the check for file, if the check method requires it
13875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13876 case $deplibs_check_method in
13877 file_magic*)
13878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13880 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13881 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 case $MAGIC_CMD in
13885 [\\/*] | ?:[\\/]*)
13886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13887 ;;
13888 *)
13889 lt_save_MAGIC_CMD="$MAGIC_CMD"
13890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13892 for ac_dir in $ac_dummy; do
13893 IFS="$lt_save_ifs"
13894 test -z "$ac_dir" && ac_dir=.
13895 if test -f $ac_dir/${ac_tool_prefix}file; then
13896 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13897 if test -n "$file_magic_test_file"; then
13898 case $deplibs_check_method in
13899 "file_magic "*)
13900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13903 $EGREP "$file_magic_regex" > /dev/null; then
13904 :
13905 else
13906 cat <<_LT_EOF 1>&2
13907
13908 *** Warning: the command libtool uses to detect shared libraries,
13909 *** $file_magic_cmd, produces output that libtool cannot recognize.
13910 *** The result is that libtool may fail to recognize shared libraries
13911 *** as such. This will affect the creation of libtool libraries that
13912 *** depend on shared libraries, but programs linked with such libtool
13913 *** libraries will work regardless of this problem. Nevertheless, you
13914 *** may want to report the problem to your system manager and/or to
13915 *** bug-libtool@gnu.org
13916
13917 _LT_EOF
13918 fi ;;
13919 esac
13920 fi
13921 break
13922 fi
13923 done
13924 IFS="$lt_save_ifs"
13925 MAGIC_CMD="$lt_save_MAGIC_CMD"
13926 ;;
13927 esac
13928 fi
13929
13930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13931 if test -n "$MAGIC_CMD"; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13933 $as_echo "$MAGIC_CMD" >&6; }
13934 else
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936 $as_echo "no" >&6; }
13937 fi
13938
13939
13940
13941
13942
13943 if test -z "$lt_cv_path_MAGIC_CMD"; then
13944 if test -n "$ac_tool_prefix"; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13946 $as_echo_n "checking for file... " >&6; }
13947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13948 $as_echo_n "(cached) " >&6
13949 else
13950 case $MAGIC_CMD in
13951 [\\/*] | ?:[\\/]*)
13952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13953 ;;
13954 *)
13955 lt_save_MAGIC_CMD="$MAGIC_CMD"
13956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13958 for ac_dir in $ac_dummy; do
13959 IFS="$lt_save_ifs"
13960 test -z "$ac_dir" && ac_dir=.
13961 if test -f $ac_dir/file; then
13962 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13963 if test -n "$file_magic_test_file"; then
13964 case $deplibs_check_method in
13965 "file_magic "*)
13966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13969 $EGREP "$file_magic_regex" > /dev/null; then
13970 :
13971 else
13972 cat <<_LT_EOF 1>&2
13973
13974 *** Warning: the command libtool uses to detect shared libraries,
13975 *** $file_magic_cmd, produces output that libtool cannot recognize.
13976 *** The result is that libtool may fail to recognize shared libraries
13977 *** as such. This will affect the creation of libtool libraries that
13978 *** depend on shared libraries, but programs linked with such libtool
13979 *** libraries will work regardless of this problem. Nevertheless, you
13980 *** may want to report the problem to your system manager and/or to
13981 *** bug-libtool@gnu.org
13982
13983 _LT_EOF
13984 fi ;;
13985 esac
13986 fi
13987 break
13988 fi
13989 done
13990 IFS="$lt_save_ifs"
13991 MAGIC_CMD="$lt_save_MAGIC_CMD"
13992 ;;
13993 esac
13994 fi
13995
13996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13997 if test -n "$MAGIC_CMD"; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13999 $as_echo "$MAGIC_CMD" >&6; }
14000 else
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14003 fi
14004
14005
14006 else
14007 MAGIC_CMD=:
14008 fi
14009 fi
14010
14011 fi
14012 ;;
14013 esac
14014
14015 # Use C for the default configuration in the libtool script
14016
14017 lt_save_CC="$CC"
14018 ac_ext=c
14019 ac_cpp='$CPP $CPPFLAGS'
14020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14023
14024
14025 # Source file extension for C test sources.
14026 ac_ext=c
14027
14028 # Object file extension for compiled C test sources.
14029 objext=o
14030 objext=$objext
14031
14032 # Code to be used in simple compile tests
14033 lt_simple_compile_test_code="int some_variable = 0;"
14034
14035 # Code to be used in simple link tests
14036 lt_simple_link_test_code='int main(){return(0);}'
14037
14038
14039
14040
14041
14042
14043
14044 # If no C compiler was specified, use CC.
14045 LTCC=${LTCC-"$CC"}
14046
14047 # If no C compiler flags were specified, use CFLAGS.
14048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14049
14050 # Allow CC to be a program name with arguments.
14051 compiler=$CC
14052
14053 # Save the default compiler, since it gets overwritten when the other
14054 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14055 compiler_DEFAULT=$CC
14056
14057 # save warnings/boilerplate of simple test code
14058 ac_outfile=conftest.$ac_objext
14059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14061 _lt_compiler_boilerplate=`cat conftest.err`
14062 $RM conftest*
14063
14064 ac_outfile=conftest.$ac_objext
14065 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14067 _lt_linker_boilerplate=`cat conftest.err`
14068 $RM -r conftest*
14069
14070
14071 ## CAVEAT EMPTOR:
14072 ## There is no encapsulation within the following macros, do not change
14073 ## the running order or otherwise move them around unless you know exactly
14074 ## what you are doing...
14075 if test -n "$compiler"; then
14076
14077 lt_prog_compiler_no_builtin_flag=
14078
14079 if test "$GCC" = yes; then
14080 case $cc_basename in
14081 nvcc*)
14082 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
14083 *)
14084 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
14085 esac
14086
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14088 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14090 $as_echo_n "(cached) " >&6
14091 else
14092 lt_cv_prog_compiler_rtti_exceptions=no
14093 ac_outfile=conftest.$ac_objext
14094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14095 lt_compiler_flag="-fno-rtti -fno-exceptions"
14096 # Insert the option either (1) after the last *FLAGS variable, or
14097 # (2) before a word containing "conftest.", or (3) at the end.
14098 # Note that $ac_compile itself does not contain backslashes and begins
14099 # with a dollar sign (not a hyphen), so the echo should work correctly.
14100 # The option is referenced via a variable to avoid confusing sed.
14101 lt_compile=`echo "$ac_compile" | $SED \
14102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14104 -e 's:$: $lt_compiler_flag:'`
14105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14106 (eval "$lt_compile" 2>conftest.err)
14107 ac_status=$?
14108 cat conftest.err >&5
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 if (exit $ac_status) && test -s "$ac_outfile"; then
14111 # The compiler can only warn and ignore the option if not recognized
14112 # So say no if there are warnings other than the usual output.
14113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14116 lt_cv_prog_compiler_rtti_exceptions=yes
14117 fi
14118 fi
14119 $RM conftest*
14120
14121 fi
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14123 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14124
14125 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14127 else
14128 :
14129 fi
14130
14131 fi
14132
14133
14134
14135
14136
14137
14138 lt_prog_compiler_wl=
14139 lt_prog_compiler_pic=
14140 lt_prog_compiler_static=
14141
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14143 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14144
14145 if test "$GCC" = yes; then
14146 lt_prog_compiler_wl='-Wl,'
14147 lt_prog_compiler_static='-static'
14148
14149 case $host_os in
14150 aix*)
14151 # All AIX code is PIC.
14152 if test "$host_cpu" = ia64; then
14153 # AIX 5 now supports IA64 processor
14154 lt_prog_compiler_static='-Bstatic'
14155 fi
14156 ;;
14157
14158 amigaos*)
14159 case $host_cpu in
14160 powerpc)
14161 # see comment about AmigaOS4 .so support
14162 lt_prog_compiler_pic='-fPIC'
14163 ;;
14164 m68k)
14165 # FIXME: we need at least 68020 code to build shared libraries, but
14166 # adding the `-m68020' flag to GCC prevents building anything better,
14167 # like `-m68040'.
14168 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14169 ;;
14170 esac
14171 ;;
14172
14173 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14174 # PIC is the default for these OSes.
14175 ;;
14176
14177 mingw* | cygwin* | pw32* | os2* | cegcc*)
14178 # This hack is so that the source file can tell whether it is being
14179 # built for inclusion in a dll (and should export symbols for example).
14180 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14181 # (--disable-auto-import) libraries
14182 lt_prog_compiler_pic='-DDLL_EXPORT'
14183 ;;
14184
14185 darwin* | rhapsody*)
14186 # PIC is the default on this platform
14187 # Common symbols not allowed in MH_DYLIB files
14188 lt_prog_compiler_pic='-fno-common'
14189 ;;
14190
14191 haiku*)
14192 # PIC is the default for Haiku.
14193 # The "-static" flag exists, but is broken.
14194 lt_prog_compiler_static=
14195 ;;
14196
14197 hpux*)
14198 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14199 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14200 # sets the default TLS model and affects inlining.
14201 case $host_cpu in
14202 hppa*64*)
14203 # +Z the default
14204 ;;
14205 *)
14206 lt_prog_compiler_pic='-fPIC'
14207 ;;
14208 esac
14209 ;;
14210
14211 interix[3-9]*)
14212 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14213 # Instead, we relocate shared libraries at runtime.
14214 ;;
14215
14216 msdosdjgpp*)
14217 # Just because we use GCC doesn't mean we suddenly get shared libraries
14218 # on systems that don't support them.
14219 lt_prog_compiler_can_build_shared=no
14220 enable_shared=no
14221 ;;
14222
14223 *nto* | *qnx*)
14224 # QNX uses GNU C++, but need to define -shared option too, otherwise
14225 # it will coredump.
14226 lt_prog_compiler_pic='-fPIC -shared'
14227 ;;
14228
14229 sysv4*MP*)
14230 if test -d /usr/nec; then
14231 lt_prog_compiler_pic=-Kconform_pic
14232 fi
14233 ;;
14234
14235 *)
14236 lt_prog_compiler_pic='-fPIC'
14237 ;;
14238 esac
14239
14240 case $cc_basename in
14241 nvcc*) # Cuda Compiler Driver 2.2
14242 lt_prog_compiler_wl='-Xlinker '
14243 lt_prog_compiler_pic='-Xcompiler -fPIC'
14244 ;;
14245 esac
14246 else
14247 # PORTME Check for flag to pass linker flags through the system compiler.
14248 case $host_os in
14249 aix*)
14250 lt_prog_compiler_wl='-Wl,'
14251 if test "$host_cpu" = ia64; then
14252 # AIX 5 now supports IA64 processor
14253 lt_prog_compiler_static='-Bstatic'
14254 else
14255 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14256 fi
14257 ;;
14258
14259 mingw* | cygwin* | pw32* | os2* | cegcc*)
14260 # This hack is so that the source file can tell whether it is being
14261 # built for inclusion in a dll (and should export symbols for example).
14262 lt_prog_compiler_pic='-DDLL_EXPORT'
14263 ;;
14264
14265 hpux9* | hpux10* | hpux11*)
14266 lt_prog_compiler_wl='-Wl,'
14267 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14268 # not for PA HP-UX.
14269 case $host_cpu in
14270 hppa*64*|ia64*)
14271 # +Z the default
14272 ;;
14273 *)
14274 lt_prog_compiler_pic='+Z'
14275 ;;
14276 esac
14277 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14278 lt_prog_compiler_static='${wl}-a ${wl}archive'
14279 ;;
14280
14281 irix5* | irix6* | nonstopux*)
14282 lt_prog_compiler_wl='-Wl,'
14283 # PIC (with -KPIC) is the default.
14284 lt_prog_compiler_static='-non_shared'
14285 ;;
14286
14287 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14288 case $cc_basename in
14289 # old Intel for x86_64 which still supported -KPIC.
14290 ecc*)
14291 lt_prog_compiler_wl='-Wl,'
14292 lt_prog_compiler_pic='-KPIC'
14293 lt_prog_compiler_static='-static'
14294 ;;
14295 # icc used to be incompatible with GCC.
14296 # ICC 10 doesn't accept -KPIC any more.
14297 icc* | ifort*)
14298 lt_prog_compiler_wl='-Wl,'
14299 lt_prog_compiler_pic='-fPIC'
14300 lt_prog_compiler_static='-static'
14301 ;;
14302 # Lahey Fortran 8.1.
14303 lf95*)
14304 lt_prog_compiler_wl='-Wl,'
14305 lt_prog_compiler_pic='--shared'
14306 lt_prog_compiler_static='--static'
14307 ;;
14308 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14309 # Portland Group compilers (*not* the Pentium gcc compiler,
14310 # which looks to be a dead project)
14311 lt_prog_compiler_wl='-Wl,'
14312 lt_prog_compiler_pic='-fpic'
14313 lt_prog_compiler_static='-Bstatic'
14314 ;;
14315 ccc*)
14316 lt_prog_compiler_wl='-Wl,'
14317 # All Alpha code is PIC.
14318 lt_prog_compiler_static='-non_shared'
14319 ;;
14320 xl* | bgxl* | bgf* | mpixl*)
14321 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14322 lt_prog_compiler_wl='-Wl,'
14323 lt_prog_compiler_pic='-qpic'
14324 lt_prog_compiler_static='-qstaticlink'
14325 ;;
14326 *)
14327 case `$CC -V 2>&1 | sed 5q` in
14328 *Sun\ F* | *Sun*Fortran*)
14329 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14330 lt_prog_compiler_pic='-KPIC'
14331 lt_prog_compiler_static='-Bstatic'
14332 lt_prog_compiler_wl=''
14333 ;;
14334 *Sun\ C*)
14335 # Sun C 5.9
14336 lt_prog_compiler_pic='-KPIC'
14337 lt_prog_compiler_static='-Bstatic'
14338 lt_prog_compiler_wl='-Wl,'
14339 ;;
14340 esac
14341 ;;
14342 esac
14343 ;;
14344
14345 newsos6)
14346 lt_prog_compiler_pic='-KPIC'
14347 lt_prog_compiler_static='-Bstatic'
14348 ;;
14349
14350 *nto* | *qnx*)
14351 # QNX uses GNU C++, but need to define -shared option too, otherwise
14352 # it will coredump.
14353 lt_prog_compiler_pic='-fPIC -shared'
14354 ;;
14355
14356 osf3* | osf4* | osf5*)
14357 lt_prog_compiler_wl='-Wl,'
14358 # All OSF/1 code is PIC.
14359 lt_prog_compiler_static='-non_shared'
14360 ;;
14361
14362 rdos*)
14363 lt_prog_compiler_static='-non_shared'
14364 ;;
14365
14366 solaris*)
14367 lt_prog_compiler_pic='-KPIC'
14368 lt_prog_compiler_static='-Bstatic'
14369 case $cc_basename in
14370 f77* | f90* | f95*)
14371 lt_prog_compiler_wl='-Qoption ld ';;
14372 *)
14373 lt_prog_compiler_wl='-Wl,';;
14374 esac
14375 ;;
14376
14377 sunos4*)
14378 lt_prog_compiler_wl='-Qoption ld '
14379 lt_prog_compiler_pic='-PIC'
14380 lt_prog_compiler_static='-Bstatic'
14381 ;;
14382
14383 sysv4 | sysv4.2uw2* | sysv4.3*)
14384 lt_prog_compiler_wl='-Wl,'
14385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-Bstatic'
14387 ;;
14388
14389 sysv4*MP*)
14390 if test -d /usr/nec ;then
14391 lt_prog_compiler_pic='-Kconform_pic'
14392 lt_prog_compiler_static='-Bstatic'
14393 fi
14394 ;;
14395
14396 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14397 lt_prog_compiler_wl='-Wl,'
14398 lt_prog_compiler_pic='-KPIC'
14399 lt_prog_compiler_static='-Bstatic'
14400 ;;
14401
14402 unicos*)
14403 lt_prog_compiler_wl='-Wl,'
14404 lt_prog_compiler_can_build_shared=no
14405 ;;
14406
14407 uts4*)
14408 lt_prog_compiler_pic='-pic'
14409 lt_prog_compiler_static='-Bstatic'
14410 ;;
14411
14412 *)
14413 lt_prog_compiler_can_build_shared=no
14414 ;;
14415 esac
14416 fi
14417
14418 case $host_os in
14419 # For platforms which do not support PIC, -DPIC is meaningless:
14420 *djgpp*)
14421 lt_prog_compiler_pic=
14422 ;;
14423 *)
14424 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14425 ;;
14426 esac
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14428 $as_echo "$lt_prog_compiler_pic" >&6; }
14429
14430
14431
14432
14433
14434
14435 #
14436 # Check to make sure the PIC flag actually works.
14437 #
14438 if test -n "$lt_prog_compiler_pic"; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14440 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14441 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14442 $as_echo_n "(cached) " >&6
14443 else
14444 lt_cv_prog_compiler_pic_works=no
14445 ac_outfile=conftest.$ac_objext
14446 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14447 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14448 # Insert the option either (1) after the last *FLAGS variable, or
14449 # (2) before a word containing "conftest.", or (3) at the end.
14450 # Note that $ac_compile itself does not contain backslashes and begins
14451 # with a dollar sign (not a hyphen), so the echo should work correctly.
14452 # The option is referenced via a variable to avoid confusing sed.
14453 lt_compile=`echo "$ac_compile" | $SED \
14454 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14456 -e 's:$: $lt_compiler_flag:'`
14457 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14458 (eval "$lt_compile" 2>conftest.err)
14459 ac_status=$?
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 if (exit $ac_status) && test -s "$ac_outfile"; then
14463 # The compiler can only warn and ignore the option if not recognized
14464 # So say no if there are warnings other than the usual output.
14465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14466 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14467 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14468 lt_cv_prog_compiler_pic_works=yes
14469 fi
14470 fi
14471 $RM conftest*
14472
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14475 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14476
14477 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14478 case $lt_prog_compiler_pic in
14479 "" | " "*) ;;
14480 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14481 esac
14482 else
14483 lt_prog_compiler_pic=
14484 lt_prog_compiler_can_build_shared=no
14485 fi
14486
14487 fi
14488
14489
14490
14491
14492
14493
14494 #
14495 # Check to make sure the static flag actually works.
14496 #
14497 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14499 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14500 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14502 else
14503 lt_cv_prog_compiler_static_works=no
14504 save_LDFLAGS="$LDFLAGS"
14505 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14506 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14507 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14508 # The linker can only warn and ignore the option if not recognized
14509 # So say no if there are warnings
14510 if test -s conftest.err; then
14511 # Append any errors to the config.log.
14512 cat conftest.err 1>&5
14513 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14515 if diff conftest.exp conftest.er2 >/dev/null; then
14516 lt_cv_prog_compiler_static_works=yes
14517 fi
14518 else
14519 lt_cv_prog_compiler_static_works=yes
14520 fi
14521 fi
14522 $RM -r conftest*
14523 LDFLAGS="$save_LDFLAGS"
14524
14525 fi
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14527 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14528
14529 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14530 :
14531 else
14532 lt_prog_compiler_static=
14533 fi
14534
14535
14536
14537
14538
14539
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14542 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14543 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546 lt_cv_prog_compiler_c_o=no
14547 $RM -r conftest 2>/dev/null
14548 mkdir conftest
14549 cd conftest
14550 mkdir out
14551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14552
14553 lt_compiler_flag="-o out/conftest2.$ac_objext"
14554 # Insert the option either (1) after the last *FLAGS variable, or
14555 # (2) before a word containing "conftest.", or (3) at the end.
14556 # Note that $ac_compile itself does not contain backslashes and begins
14557 # with a dollar sign (not a hyphen), so the echo should work correctly.
14558 lt_compile=`echo "$ac_compile" | $SED \
14559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14561 -e 's:$: $lt_compiler_flag:'`
14562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14563 (eval "$lt_compile" 2>out/conftest.err)
14564 ac_status=$?
14565 cat out/conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14568 then
14569 # The compiler can only warn and ignore the option if not recognized
14570 # So say no if there are warnings
14571 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14572 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14573 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14574 lt_cv_prog_compiler_c_o=yes
14575 fi
14576 fi
14577 chmod u+w . 2>&5
14578 $RM conftest*
14579 # SGI C++ compiler will create directory out/ii_files/ for
14580 # template instantiation
14581 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14582 $RM out/* && rmdir out
14583 cd ..
14584 $RM -r conftest
14585 $RM conftest*
14586
14587 fi
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14589 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14590
14591
14592
14593
14594
14595
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14597 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14598 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 lt_cv_prog_compiler_c_o=no
14602 $RM -r conftest 2>/dev/null
14603 mkdir conftest
14604 cd conftest
14605 mkdir out
14606 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14607
14608 lt_compiler_flag="-o out/conftest2.$ac_objext"
14609 # Insert the option either (1) after the last *FLAGS variable, or
14610 # (2) before a word containing "conftest.", or (3) at the end.
14611 # Note that $ac_compile itself does not contain backslashes and begins
14612 # with a dollar sign (not a hyphen), so the echo should work correctly.
14613 lt_compile=`echo "$ac_compile" | $SED \
14614 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14615 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14616 -e 's:$: $lt_compiler_flag:'`
14617 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14618 (eval "$lt_compile" 2>out/conftest.err)
14619 ac_status=$?
14620 cat out/conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14623 then
14624 # The compiler can only warn and ignore the option if not recognized
14625 # So say no if there are warnings
14626 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14627 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14628 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14629 lt_cv_prog_compiler_c_o=yes
14630 fi
14631 fi
14632 chmod u+w . 2>&5
14633 $RM conftest*
14634 # SGI C++ compiler will create directory out/ii_files/ for
14635 # template instantiation
14636 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14637 $RM out/* && rmdir out
14638 cd ..
14639 $RM -r conftest
14640 $RM conftest*
14641
14642 fi
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14644 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14645
14646
14647
14648
14649 hard_links="nottested"
14650 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14651 # do not overwrite the value of need_locks provided by the user
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14653 $as_echo_n "checking if we can lock with hard links... " >&6; }
14654 hard_links=yes
14655 $RM conftest*
14656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14657 touch conftest.a
14658 ln conftest.a conftest.b 2>&5 || hard_links=no
14659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14661 $as_echo "$hard_links" >&6; }
14662 if test "$hard_links" = no; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14664 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14665 need_locks=warn
14666 fi
14667 else
14668 need_locks=no
14669 fi
14670
14671
14672
14673
14674
14675
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14678
14679 runpath_var=
14680 allow_undefined_flag=
14681 always_export_symbols=no
14682 archive_cmds=
14683 archive_expsym_cmds=
14684 compiler_needs_object=no
14685 enable_shared_with_static_runtimes=no
14686 export_dynamic_flag_spec=
14687 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14688 hardcode_automatic=no
14689 hardcode_direct=no
14690 hardcode_direct_absolute=no
14691 hardcode_libdir_flag_spec=
14692 hardcode_libdir_flag_spec_ld=
14693 hardcode_libdir_separator=
14694 hardcode_minus_L=no
14695 hardcode_shlibpath_var=unsupported
14696 inherit_rpath=no
14697 link_all_deplibs=unknown
14698 module_cmds=
14699 module_expsym_cmds=
14700 old_archive_from_new_cmds=
14701 old_archive_from_expsyms_cmds=
14702 thread_safe_flag_spec=
14703 whole_archive_flag_spec=
14704 # include_expsyms should be a list of space-separated symbols to be *always*
14705 # included in the symbol list
14706 include_expsyms=
14707 # exclude_expsyms can be an extended regexp of symbols to exclude
14708 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14709 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14710 # as well as any symbol that contains `d'.
14711 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14712 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14713 # platforms (ab)use it in PIC code, but their linkers get confused if
14714 # the symbol is explicitly referenced. Since portable code cannot
14715 # rely on this symbol name, it's probably fine to never include it in
14716 # preloaded symbol tables.
14717 # Exclude shared library initialization/finalization symbols.
14718 extract_expsyms_cmds=
14719
14720 case $host_os in
14721 cygwin* | mingw* | pw32* | cegcc*)
14722 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14723 # When not using gcc, we currently assume that we are using
14724 # Microsoft Visual C++.
14725 if test "$GCC" != yes; then
14726 with_gnu_ld=no
14727 fi
14728 ;;
14729 interix*)
14730 # we just hope/assume this is gcc and not c89 (= MSVC++)
14731 with_gnu_ld=yes
14732 ;;
14733 openbsd*)
14734 with_gnu_ld=no
14735 ;;
14736 esac
14737
14738 ld_shlibs=yes
14739
14740 # On some targets, GNU ld is compatible enough with the native linker
14741 # that we're better off using the native interface for both.
14742 lt_use_gnu_ld_interface=no
14743 if test "$with_gnu_ld" = yes; then
14744 case $host_os in
14745 aix*)
14746 # The AIX port of GNU ld has always aspired to compatibility
14747 # with the native linker. However, as the warning in the GNU ld
14748 # block says, versions before 2.19.5* couldn't really create working
14749 # shared libraries, regardless of the interface used.
14750 case `$LD -v 2>&1` in
14751 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14752 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14753 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14754 *)
14755 lt_use_gnu_ld_interface=yes
14756 ;;
14757 esac
14758 ;;
14759 *)
14760 lt_use_gnu_ld_interface=yes
14761 ;;
14762 esac
14763 fi
14764
14765 if test "$lt_use_gnu_ld_interface" = yes; then
14766 # If archive_cmds runs LD, not CC, wlarc should be empty
14767 wlarc='${wl}'
14768
14769 # Set some defaults for GNU ld with shared library support. These
14770 # are reset later if shared libraries are not supported. Putting them
14771 # here allows them to be overridden if necessary.
14772 runpath_var=LD_RUN_PATH
14773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14774 export_dynamic_flag_spec='${wl}--export-dynamic'
14775 # ancient GNU ld didn't support --whole-archive et. al.
14776 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14777 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14778 else
14779 whole_archive_flag_spec=
14780 fi
14781 supports_anon_versioning=no
14782 case `$LD -v 2>&1` in
14783 *GNU\ gold*) supports_anon_versioning=yes ;;
14784 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14785 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14786 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14787 *\ 2.11.*) ;; # other 2.11 versions
14788 *) supports_anon_versioning=yes ;;
14789 esac
14790
14791 # See if GNU ld supports shared libraries.
14792 case $host_os in
14793 aix[3-9]*)
14794 # On AIX/PPC, the GNU linker is very broken
14795 if test "$host_cpu" != ia64; then
14796 ld_shlibs=no
14797 cat <<_LT_EOF 1>&2
14798
14799 *** Warning: the GNU linker, at least up to release 2.19, is reported
14800 *** to be unable to reliably create shared libraries on AIX.
14801 *** Therefore, libtool is disabling shared libraries support. If you
14802 *** really care for shared libraries, you may want to install binutils
14803 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14804 *** You will then need to restart the configuration process.
14805
14806 _LT_EOF
14807 fi
14808 ;;
14809
14810 amigaos*)
14811 case $host_cpu in
14812 powerpc)
14813 # see comment about AmigaOS4 .so support
14814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14815 archive_expsym_cmds=''
14816 ;;
14817 m68k)
14818 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)'
14819 hardcode_libdir_flag_spec='-L$libdir'
14820 hardcode_minus_L=yes
14821 ;;
14822 esac
14823 ;;
14824
14825 beos*)
14826 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14827 allow_undefined_flag=unsupported
14828 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14829 # support --undefined. This deserves some investigation. FIXME
14830 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14831 else
14832 ld_shlibs=no
14833 fi
14834 ;;
14835
14836 cygwin* | mingw* | pw32* | cegcc*)
14837 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14838 # as there is no search path for DLLs.
14839 hardcode_libdir_flag_spec='-L$libdir'
14840 export_dynamic_flag_spec='${wl}--export-all-symbols'
14841 allow_undefined_flag=unsupported
14842 always_export_symbols=no
14843 enable_shared_with_static_runtimes=yes
14844 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14845
14846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14848 # If the export-symbols file already is a .def file (1st line
14849 # is EXPORTS), use it as is; otherwise, prepend...
14850 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14851 cp $export_symbols $output_objdir/$soname.def;
14852 else
14853 echo EXPORTS > $output_objdir/$soname.def;
14854 cat $export_symbols >> $output_objdir/$soname.def;
14855 fi~
14856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14857 else
14858 ld_shlibs=no
14859 fi
14860 ;;
14861
14862 haiku*)
14863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864 link_all_deplibs=yes
14865 ;;
14866
14867 interix[3-9]*)
14868 hardcode_direct=no
14869 hardcode_shlibpath_var=no
14870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14871 export_dynamic_flag_spec='${wl}-E'
14872 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14873 # Instead, shared libraries are loaded at an image base (0x10000000 by
14874 # default) and relocated if they conflict, which is a slow very memory
14875 # consuming and fragmenting process. To avoid this, we pick a random,
14876 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14877 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14878 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14879 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'
14880 ;;
14881
14882 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14883 tmp_diet=no
14884 if test "$host_os" = linux-dietlibc; then
14885 case $cc_basename in
14886 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14887 esac
14888 fi
14889 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14890 && test "$tmp_diet" = no
14891 then
14892 tmp_addflag=
14893 tmp_sharedflag='-shared'
14894 case $cc_basename,$host_cpu in
14895 pgcc*) # Portland Group C compiler
14896 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'
14897 tmp_addflag=' $pic_flag'
14898 ;;
14899 pgf77* | pgf90* | pgf95* | pgfortran*)
14900 # Portland Group f77 and f90 compilers
14901 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'
14902 tmp_addflag=' $pic_flag -Mnomain' ;;
14903 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14904 tmp_addflag=' -i_dynamic' ;;
14905 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14906 tmp_addflag=' -i_dynamic -nofor_main' ;;
14907 ifc* | ifort*) # Intel Fortran compiler
14908 tmp_addflag=' -nofor_main' ;;
14909 lf95*) # Lahey Fortran 8.1
14910 whole_archive_flag_spec=
14911 tmp_sharedflag='--shared' ;;
14912 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14913 tmp_sharedflag='-qmkshrobj'
14914 tmp_addflag= ;;
14915 nvcc*) # Cuda Compiler Driver 2.2
14916 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'
14917 compiler_needs_object=yes
14918 ;;
14919 esac
14920 case `$CC -V 2>&1 | sed 5q` in
14921 *Sun\ C*) # Sun C 5.9
14922 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'
14923 compiler_needs_object=yes
14924 tmp_sharedflag='-G' ;;
14925 *Sun\ F*) # Sun Fortran 8.3
14926 tmp_sharedflag='-G' ;;
14927 esac
14928 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14929
14930 if test "x$supports_anon_versioning" = xyes; then
14931 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14933 echo "local: *; };" >> $output_objdir/$libname.ver~
14934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14935 fi
14936
14937 case $cc_basename in
14938 xlf* | bgf* | bgxlf* | mpixlf*)
14939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14940 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14941 hardcode_libdir_flag_spec=
14942 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14943 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14944 if test "x$supports_anon_versioning" = xyes; then
14945 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14947 echo "local: *; };" >> $output_objdir/$libname.ver~
14948 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14949 fi
14950 ;;
14951 esac
14952 else
14953 ld_shlibs=no
14954 fi
14955 ;;
14956
14957 netbsd*)
14958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14959 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14960 wlarc=
14961 else
14962 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14963 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14964 fi
14965 ;;
14966
14967 solaris*)
14968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14969 ld_shlibs=no
14970 cat <<_LT_EOF 1>&2
14971
14972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14973 *** create shared libraries on Solaris systems. Therefore, libtool
14974 *** is disabling shared libraries support. We urge you to upgrade GNU
14975 *** binutils to release 2.9.1 or newer. Another option is to modify
14976 *** your PATH or compiler configuration so that the native linker is
14977 *** used, and then restart.
14978
14979 _LT_EOF
14980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14983 else
14984 ld_shlibs=no
14985 fi
14986 ;;
14987
14988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14989 case `$LD -v 2>&1` in
14990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14991 ld_shlibs=no
14992 cat <<_LT_EOF 1>&2
14993
14994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14995 *** reliably create shared libraries on SCO systems. Therefore, libtool
14996 *** is disabling shared libraries support. We urge you to upgrade GNU
14997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14998 *** your PATH or compiler configuration so that the native linker is
14999 *** used, and then restart.
15000
15001 _LT_EOF
15002 ;;
15003 *)
15004 # For security reasons, it is highly recommended that you always
15005 # use absolute paths for naming shared libraries, and exclude the
15006 # DT_RUNPATH tag from executables and libraries. But doing so
15007 # requires that you compile everything twice, which is a pain.
15008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15009 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15010 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15011 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15012 else
15013 ld_shlibs=no
15014 fi
15015 ;;
15016 esac
15017 ;;
15018
15019 sunos4*)
15020 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15021 wlarc=
15022 hardcode_direct=yes
15023 hardcode_shlibpath_var=no
15024 ;;
15025
15026 *)
15027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15030 else
15031 ld_shlibs=no
15032 fi
15033 ;;
15034 esac
15035
15036 if test "$ld_shlibs" = no; then
15037 runpath_var=
15038 hardcode_libdir_flag_spec=
15039 export_dynamic_flag_spec=
15040 whole_archive_flag_spec=
15041 fi
15042 else
15043 # PORTME fill in a description of your system's linker (not GNU ld)
15044 case $host_os in
15045 aix3*)
15046 allow_undefined_flag=unsupported
15047 always_export_symbols=yes
15048 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'
15049 # Note: this linker hardcodes the directories in LIBPATH if there
15050 # are no directories specified by -L.
15051 hardcode_minus_L=yes
15052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15053 # Neither direct hardcoding nor static linking is supported with a
15054 # broken collect2.
15055 hardcode_direct=unsupported
15056 fi
15057 ;;
15058
15059 aix[4-9]*)
15060 if test "$host_cpu" = ia64; then
15061 # On IA64, the linker does run time linking by default, so we don't
15062 # have to do anything special.
15063 aix_use_runtimelinking=no
15064 exp_sym_flag='-Bexport'
15065 no_entry_flag=""
15066 else
15067 # If we're using GNU nm, then we don't want the "-C" option.
15068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15069 # Also, AIX nm treats weak defined symbols like other global
15070 # defined symbols, whereas GNU nm marks them as "W".
15071 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15072 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'
15073 else
15074 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'
15075 fi
15076 aix_use_runtimelinking=no
15077
15078 # Test if we are trying to use run time linking or normal
15079 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15080 # need to do runtime linking.
15081 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15082 for ld_flag in $LDFLAGS; do
15083 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15084 aix_use_runtimelinking=yes
15085 break
15086 fi
15087 done
15088 ;;
15089 esac
15090
15091 exp_sym_flag='-bexport'
15092 no_entry_flag='-bnoentry'
15093 fi
15094
15095 # When large executables or shared objects are built, AIX ld can
15096 # have problems creating the table of contents. If linking a library
15097 # or program results in "error TOC overflow" add -mminimal-toc to
15098 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15099 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15100
15101 archive_cmds=''
15102 hardcode_direct=yes
15103 hardcode_direct_absolute=yes
15104 hardcode_libdir_separator=':'
15105 link_all_deplibs=yes
15106 file_list_spec='${wl}-f,'
15107
15108 if test "$GCC" = yes; then
15109 case $host_os in aix4.[012]|aix4.[012].*)
15110 # We only want to do this on AIX 4.2 and lower, the check
15111 # below for broken collect2 doesn't work under 4.3+
15112 collect2name=`${CC} -print-prog-name=collect2`
15113 if test -f "$collect2name" &&
15114 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15115 then
15116 # We have reworked collect2
15117 :
15118 else
15119 # We have old collect2
15120 hardcode_direct=unsupported
15121 # It fails to find uninstalled libraries when the uninstalled
15122 # path is not listed in the libpath. Setting hardcode_minus_L
15123 # to unsupported forces relinking
15124 hardcode_minus_L=yes
15125 hardcode_libdir_flag_spec='-L$libdir'
15126 hardcode_libdir_separator=
15127 fi
15128 ;;
15129 esac
15130 shared_flag='-shared'
15131 if test "$aix_use_runtimelinking" = yes; then
15132 shared_flag="$shared_flag "'${wl}-G'
15133 fi
15134 else
15135 # not using gcc
15136 if test "$host_cpu" = ia64; then
15137 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15138 # chokes on -Wl,-G. The following line is correct:
15139 shared_flag='-G'
15140 else
15141 if test "$aix_use_runtimelinking" = yes; then
15142 shared_flag='${wl}-G'
15143 else
15144 shared_flag='${wl}-bM:SRE'
15145 fi
15146 fi
15147 fi
15148
15149 export_dynamic_flag_spec='${wl}-bexpall'
15150 # It seems that -bexpall does not export symbols beginning with
15151 # underscore (_), so it is better to generate a list of symbols to export.
15152 always_export_symbols=yes
15153 if test "$aix_use_runtimelinking" = yes; then
15154 # Warning - without using the other runtime loading flags (-brtl),
15155 # -berok will link without error, but may produce a broken library.
15156 allow_undefined_flag='-berok'
15157 # Determine the default libpath from the value encoded in an
15158 # empty executable.
15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15161
15162 int
15163 main ()
15164 {
15165
15166 ;
15167 return 0;
15168 }
15169 _ACEOF
15170 if ac_fn_c_try_link "$LINENO"; then :
15171
15172 lt_aix_libpath_sed='
15173 /Import File Strings/,/^$/ {
15174 /^0/ {
15175 s/^0 *\(.*\)$/\1/
15176 p
15177 }
15178 }'
15179 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15180 # Check for a 64-bit object if we didn't find anything.
15181 if test -z "$aix_libpath"; then
15182 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15183 fi
15184 fi
15185 rm -f core conftest.err conftest.$ac_objext \
15186 conftest$ac_exeext conftest.$ac_ext
15187 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15188
15189 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15190 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"
15191 else
15192 if test "$host_cpu" = ia64; then
15193 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15194 allow_undefined_flag="-z nodefs"
15195 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"
15196 else
15197 # Determine the default libpath from the value encoded in an
15198 # empty executable.
15199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15200 /* end confdefs.h. */
15201
15202 int
15203 main ()
15204 {
15205
15206 ;
15207 return 0;
15208 }
15209 _ACEOF
15210 if ac_fn_c_try_link "$LINENO"; then :
15211
15212 lt_aix_libpath_sed='
15213 /Import File Strings/,/^$/ {
15214 /^0/ {
15215 s/^0 *\(.*\)$/\1/
15216 p
15217 }
15218 }'
15219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15220 # Check for a 64-bit object if we didn't find anything.
15221 if test -z "$aix_libpath"; then
15222 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15223 fi
15224 fi
15225 rm -f core conftest.err conftest.$ac_objext \
15226 conftest$ac_exeext conftest.$ac_ext
15227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15228
15229 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15230 # Warning - without using the other run time loading flags,
15231 # -berok will link without error, but may produce a broken library.
15232 no_undefined_flag=' ${wl}-bernotok'
15233 allow_undefined_flag=' ${wl}-berok'
15234 if test "$with_gnu_ld" = yes; then
15235 # We only use this code for GNU lds that support --whole-archive.
15236 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15237 else
15238 # Exported symbols can be pulled into shared objects from archives
15239 whole_archive_flag_spec='$convenience'
15240 fi
15241 archive_cmds_need_lc=yes
15242 # This is similar to how AIX traditionally builds its shared libraries.
15243 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'
15244 fi
15245 fi
15246 ;;
15247
15248 amigaos*)
15249 case $host_cpu in
15250 powerpc)
15251 # see comment about AmigaOS4 .so support
15252 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15253 archive_expsym_cmds=''
15254 ;;
15255 m68k)
15256 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)'
15257 hardcode_libdir_flag_spec='-L$libdir'
15258 hardcode_minus_L=yes
15259 ;;
15260 esac
15261 ;;
15262
15263 bsdi[45]*)
15264 export_dynamic_flag_spec=-rdynamic
15265 ;;
15266
15267 cygwin* | mingw* | pw32* | cegcc*)
15268 # When not using gcc, we currently assume that we are using
15269 # Microsoft Visual C++.
15270 # hardcode_libdir_flag_spec is actually meaningless, as there is
15271 # no search path for DLLs.
15272 hardcode_libdir_flag_spec=' '
15273 allow_undefined_flag=unsupported
15274 # Tell ltmain to make .lib files, not .a files.
15275 libext=lib
15276 # Tell ltmain to make .dll files, not .so files.
15277 shrext_cmds=".dll"
15278 # FIXME: Setting linknames here is a bad hack.
15279 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15280 # The linker will automatically build a .lib file if we build a DLL.
15281 old_archive_from_new_cmds='true'
15282 # FIXME: Should let the user specify the lib program.
15283 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15284 fix_srcfile_path='`cygpath -w "$srcfile"`'
15285 enable_shared_with_static_runtimes=yes
15286 ;;
15287
15288 darwin* | rhapsody*)
15289
15290
15291 archive_cmds_need_lc=no
15292 hardcode_direct=no
15293 hardcode_automatic=yes
15294 hardcode_shlibpath_var=unsupported
15295 if test "$lt_cv_ld_force_load" = "yes"; then
15296 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\"`'
15297 else
15298 whole_archive_flag_spec=''
15299 fi
15300 link_all_deplibs=yes
15301 allow_undefined_flag="$_lt_dar_allow_undefined"
15302 case $cc_basename in
15303 ifort*) _lt_dar_can_shared=yes ;;
15304 *) _lt_dar_can_shared=$GCC ;;
15305 esac
15306 if test "$_lt_dar_can_shared" = "yes"; then
15307 output_verbose_link_cmd=func_echo_all
15308 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15309 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15310 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}"
15311 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}"
15312
15313 else
15314 ld_shlibs=no
15315 fi
15316
15317 ;;
15318
15319 dgux*)
15320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15321 hardcode_libdir_flag_spec='-L$libdir'
15322 hardcode_shlibpath_var=no
15323 ;;
15324
15325 freebsd1*)
15326 ld_shlibs=no
15327 ;;
15328
15329 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15330 # support. Future versions do this automatically, but an explicit c++rt0.o
15331 # does not break anything, and helps significantly (at the cost of a little
15332 # extra space).
15333 freebsd2.2*)
15334 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15335 hardcode_libdir_flag_spec='-R$libdir'
15336 hardcode_direct=yes
15337 hardcode_shlibpath_var=no
15338 ;;
15339
15340 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15341 freebsd2*)
15342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15343 hardcode_direct=yes
15344 hardcode_minus_L=yes
15345 hardcode_shlibpath_var=no
15346 ;;
15347
15348 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15349 freebsd* | dragonfly*)
15350 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15351 hardcode_libdir_flag_spec='-R$libdir'
15352 hardcode_direct=yes
15353 hardcode_shlibpath_var=no
15354 ;;
15355
15356 hpux9*)
15357 if test "$GCC" = yes; then
15358 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'
15359 else
15360 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'
15361 fi
15362 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15363 hardcode_libdir_separator=:
15364 hardcode_direct=yes
15365
15366 # hardcode_minus_L: Not really in the search PATH,
15367 # but as the default location of the library.
15368 hardcode_minus_L=yes
15369 export_dynamic_flag_spec='${wl}-E'
15370 ;;
15371
15372 hpux10*)
15373 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15374 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15375 else
15376 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15377 fi
15378 if test "$with_gnu_ld" = no; then
15379 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15380 hardcode_libdir_flag_spec_ld='+b $libdir'
15381 hardcode_libdir_separator=:
15382 hardcode_direct=yes
15383 hardcode_direct_absolute=yes
15384 export_dynamic_flag_spec='${wl}-E'
15385 # hardcode_minus_L: Not really in the search PATH,
15386 # but as the default location of the library.
15387 hardcode_minus_L=yes
15388 fi
15389 ;;
15390
15391 hpux11*)
15392 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
15393 case $host_cpu in
15394 hppa*64*)
15395 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15396 ;;
15397 ia64*)
15398 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15399 ;;
15400 *)
15401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15402 ;;
15403 esac
15404 else
15405 case $host_cpu in
15406 hppa*64*)
15407 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15408 ;;
15409 ia64*)
15410 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15411 ;;
15412 *)
15413
15414 # Older versions of the 11.00 compiler do not understand -b yet
15415 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15417 $as_echo_n "checking if $CC understands -b... " >&6; }
15418 if test "${lt_cv_prog_compiler__b+set}" = set; then :
15419 $as_echo_n "(cached) " >&6
15420 else
15421 lt_cv_prog_compiler__b=no
15422 save_LDFLAGS="$LDFLAGS"
15423 LDFLAGS="$LDFLAGS -b"
15424 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15425 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15426 # The linker can only warn and ignore the option if not recognized
15427 # So say no if there are warnings
15428 if test -s conftest.err; then
15429 # Append any errors to the config.log.
15430 cat conftest.err 1>&5
15431 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15432 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15433 if diff conftest.exp conftest.er2 >/dev/null; then
15434 lt_cv_prog_compiler__b=yes
15435 fi
15436 else
15437 lt_cv_prog_compiler__b=yes
15438 fi
15439 fi
15440 $RM -r conftest*
15441 LDFLAGS="$save_LDFLAGS"
15442
15443 fi
15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15445 $as_echo "$lt_cv_prog_compiler__b" >&6; }
15446
15447 if test x"$lt_cv_prog_compiler__b" = xyes; then
15448 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15449 else
15450 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15451 fi
15452
15453 ;;
15454 esac
15455 fi
15456 if test "$with_gnu_ld" = no; then
15457 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15458 hardcode_libdir_separator=:
15459
15460 case $host_cpu in
15461 hppa*64*|ia64*)
15462 hardcode_direct=no
15463 hardcode_shlibpath_var=no
15464 ;;
15465 *)
15466 hardcode_direct=yes
15467 hardcode_direct_absolute=yes
15468 export_dynamic_flag_spec='${wl}-E'
15469
15470 # hardcode_minus_L: Not really in the search PATH,
15471 # but as the default location of the library.
15472 hardcode_minus_L=yes
15473 ;;
15474 esac
15475 fi
15476 ;;
15477
15478 irix5* | irix6* | nonstopux*)
15479 if test "$GCC" = yes; then
15480 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'
15481 # Try to use the -exported_symbol ld option, if it does not
15482 # work, assume that -exports_file does not work either and
15483 # implicitly export all symbols.
15484 save_LDFLAGS="$LDFLAGS"
15485 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15488 int foo(void) {}
15489 _ACEOF
15490 if ac_fn_c_try_link "$LINENO"; then :
15491 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'
15492
15493 fi
15494 rm -f core conftest.err conftest.$ac_objext \
15495 conftest$ac_exeext conftest.$ac_ext
15496 LDFLAGS="$save_LDFLAGS"
15497 else
15498 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'
15499 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'
15500 fi
15501 archive_cmds_need_lc='no'
15502 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15503 hardcode_libdir_separator=:
15504 inherit_rpath=yes
15505 link_all_deplibs=yes
15506 ;;
15507
15508 netbsd*)
15509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15510 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15511 else
15512 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15513 fi
15514 hardcode_libdir_flag_spec='-R$libdir'
15515 hardcode_direct=yes
15516 hardcode_shlibpath_var=no
15517 ;;
15518
15519 newsos6)
15520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15521 hardcode_direct=yes
15522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15523 hardcode_libdir_separator=:
15524 hardcode_shlibpath_var=no
15525 ;;
15526
15527 *nto* | *qnx*)
15528 ;;
15529
15530 openbsd*)
15531 if test -f /usr/libexec/ld.so; then
15532 hardcode_direct=yes
15533 hardcode_shlibpath_var=no
15534 hardcode_direct_absolute=yes
15535 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15536 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15538 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15539 export_dynamic_flag_spec='${wl}-E'
15540 else
15541 case $host_os in
15542 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15544 hardcode_libdir_flag_spec='-R$libdir'
15545 ;;
15546 *)
15547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15548 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15549 ;;
15550 esac
15551 fi
15552 else
15553 ld_shlibs=no
15554 fi
15555 ;;
15556
15557 os2*)
15558 hardcode_libdir_flag_spec='-L$libdir'
15559 hardcode_minus_L=yes
15560 allow_undefined_flag=unsupported
15561 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'
15562 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15563 ;;
15564
15565 osf3*)
15566 if test "$GCC" = yes; then
15567 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15568 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'
15569 else
15570 allow_undefined_flag=' -expect_unresolved \*'
15571 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'
15572 fi
15573 archive_cmds_need_lc='no'
15574 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15575 hardcode_libdir_separator=:
15576 ;;
15577
15578 osf4* | osf5*) # as osf3* with the addition of -msym flag
15579 if test "$GCC" = yes; then
15580 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15581 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'
15582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15583 else
15584 allow_undefined_flag=' -expect_unresolved \*'
15585 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'
15586 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~
15587 $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'
15588
15589 # Both c and cxx compiler support -rpath directly
15590 hardcode_libdir_flag_spec='-rpath $libdir'
15591 fi
15592 archive_cmds_need_lc='no'
15593 hardcode_libdir_separator=:
15594 ;;
15595
15596 solaris*)
15597 no_undefined_flag=' -z defs'
15598 if test "$GCC" = yes; then
15599 wlarc='${wl}'
15600 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15601 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15602 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15603 else
15604 case `$CC -V 2>&1` in
15605 *"Compilers 5.0"*)
15606 wlarc=''
15607 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15608 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15609 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15610 ;;
15611 *)
15612 wlarc='${wl}'
15613 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15615 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15616 ;;
15617 esac
15618 fi
15619 hardcode_libdir_flag_spec='-R$libdir'
15620 hardcode_shlibpath_var=no
15621 case $host_os in
15622 solaris2.[0-5] | solaris2.[0-5].*) ;;
15623 *)
15624 # The compiler driver will combine and reorder linker options,
15625 # but understands `-z linker_flag'. GCC discards it without `$wl',
15626 # but is careful enough not to reorder.
15627 # Supported since Solaris 2.6 (maybe 2.5.1?)
15628 if test "$GCC" = yes; then
15629 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15630 else
15631 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15632 fi
15633 ;;
15634 esac
15635 link_all_deplibs=yes
15636 ;;
15637
15638 sunos4*)
15639 if test "x$host_vendor" = xsequent; then
15640 # Use $CC to link under sequent, because it throws in some extra .o
15641 # files that make .init and .fini sections work.
15642 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15643 else
15644 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15645 fi
15646 hardcode_libdir_flag_spec='-L$libdir'
15647 hardcode_direct=yes
15648 hardcode_minus_L=yes
15649 hardcode_shlibpath_var=no
15650 ;;
15651
15652 sysv4)
15653 case $host_vendor in
15654 sni)
15655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15656 hardcode_direct=yes # is this really true???
15657 ;;
15658 siemens)
15659 ## LD is ld it makes a PLAMLIB
15660 ## CC just makes a GrossModule.
15661 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15662 reload_cmds='$CC -r -o $output$reload_objs'
15663 hardcode_direct=no
15664 ;;
15665 motorola)
15666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15667 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15668 ;;
15669 esac
15670 runpath_var='LD_RUN_PATH'
15671 hardcode_shlibpath_var=no
15672 ;;
15673
15674 sysv4.3*)
15675 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15676 hardcode_shlibpath_var=no
15677 export_dynamic_flag_spec='-Bexport'
15678 ;;
15679
15680 sysv4*MP*)
15681 if test -d /usr/nec; then
15682 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15683 hardcode_shlibpath_var=no
15684 runpath_var=LD_RUN_PATH
15685 hardcode_runpath_var=yes
15686 ld_shlibs=yes
15687 fi
15688 ;;
15689
15690 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15691 no_undefined_flag='${wl}-z,text'
15692 archive_cmds_need_lc=no
15693 hardcode_shlibpath_var=no
15694 runpath_var='LD_RUN_PATH'
15695
15696 if test "$GCC" = yes; then
15697 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15698 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15699 else
15700 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15701 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15702 fi
15703 ;;
15704
15705 sysv5* | sco3.2v5* | sco5v6*)
15706 # Note: We can NOT use -z defs as we might desire, because we do not
15707 # link with -lc, and that would cause any symbols used from libc to
15708 # always be unresolved, which means just about no library would
15709 # ever link correctly. If we're not using GNU ld we use -z text
15710 # though, which does catch some bad symbols but isn't as heavy-handed
15711 # as -z defs.
15712 no_undefined_flag='${wl}-z,text'
15713 allow_undefined_flag='${wl}-z,nodefs'
15714 archive_cmds_need_lc=no
15715 hardcode_shlibpath_var=no
15716 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15717 hardcode_libdir_separator=':'
15718 link_all_deplibs=yes
15719 export_dynamic_flag_spec='${wl}-Bexport'
15720 runpath_var='LD_RUN_PATH'
15721
15722 if test "$GCC" = yes; then
15723 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15724 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15725 else
15726 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15727 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15728 fi
15729 ;;
15730
15731 uts4*)
15732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15733 hardcode_libdir_flag_spec='-L$libdir'
15734 hardcode_shlibpath_var=no
15735 ;;
15736
15737 *)
15738 ld_shlibs=no
15739 ;;
15740 esac
15741
15742 if test x$host_vendor = xsni; then
15743 case $host in
15744 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15745 export_dynamic_flag_spec='${wl}-Blargedynsym'
15746 ;;
15747 esac
15748 fi
15749 fi
15750
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15752 $as_echo "$ld_shlibs" >&6; }
15753 test "$ld_shlibs" = no && can_build_shared=no
15754
15755 with_gnu_ld=$with_gnu_ld
15756
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771 #
15772 # Do we need to explicitly link libc?
15773 #
15774 case "x$archive_cmds_need_lc" in
15775 x|xyes)
15776 # Assume -lc should be added
15777 archive_cmds_need_lc=yes
15778
15779 if test "$enable_shared" = yes && test "$GCC" = yes; then
15780 case $archive_cmds in
15781 *'~'*)
15782 # FIXME: we may have to deal with multi-command sequences.
15783 ;;
15784 '$CC '*)
15785 # Test whether the compiler implicitly links with -lc since on some
15786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15787 # to ld, don't add -lc before -lgcc.
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15789 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15790 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15791 $as_echo_n "(cached) " >&6
15792 else
15793 $RM conftest*
15794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15795
15796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15797 (eval $ac_compile) 2>&5
15798 ac_status=$?
15799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15800 test $ac_status = 0; } 2>conftest.err; then
15801 soname=conftest
15802 lib=conftest
15803 libobjs=conftest.$ac_objext
15804 deplibs=
15805 wl=$lt_prog_compiler_wl
15806 pic_flag=$lt_prog_compiler_pic
15807 compiler_flags=-v
15808 linker_flags=-v
15809 verstring=
15810 output_objdir=.
15811 libname=conftest
15812 lt_save_allow_undefined_flag=$allow_undefined_flag
15813 allow_undefined_flag=
15814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15815 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15816 ac_status=$?
15817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15818 test $ac_status = 0; }
15819 then
15820 lt_cv_archive_cmds_need_lc=no
15821 else
15822 lt_cv_archive_cmds_need_lc=yes
15823 fi
15824 allow_undefined_flag=$lt_save_allow_undefined_flag
15825 else
15826 cat conftest.err 1>&5
15827 fi
15828 $RM conftest*
15829
15830 fi
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15832 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15833 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15834 ;;
15835 esac
15836 fi
15837 ;;
15838 esac
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15997 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15998
15999 if test "$GCC" = yes; then
16000 case $host_os in
16001 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16002 *) lt_awk_arg="/^libraries:/" ;;
16003 esac
16004 case $host_os in
16005 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
16006 *) lt_sed_strip_eq="s,=/,/,g" ;;
16007 esac
16008 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
16009 case $lt_search_path_spec in
16010 *\;*)
16011 # if the path contains ";" then we assume it to be the separator
16012 # otherwise default to the standard path separator (i.e. ":") - it is
16013 # assumed that no part of a normal pathname contains ";" but that should
16014 # okay in the real world where ";" in dirpaths is itself problematic.
16015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
16016 ;;
16017 *)
16018 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16019 ;;
16020 esac
16021 # Ok, now we have the path, separated by spaces, we can step through it
16022 # and add multilib dir if necessary.
16023 lt_tmp_lt_search_path_spec=
16024 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16025 for lt_sys_path in $lt_search_path_spec; do
16026 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16027 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16028 else
16029 test -d "$lt_sys_path" && \
16030 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16031 fi
16032 done
16033 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
16034 BEGIN {RS=" "; FS="/|\n";} {
16035 lt_foo="";
16036 lt_count=0;
16037 for (lt_i = NF; lt_i > 0; lt_i--) {
16038 if ($lt_i != "" && $lt_i != ".") {
16039 if ($lt_i == "..") {
16040 lt_count++;
16041 } else {
16042 if (lt_count == 0) {
16043 lt_foo="/" $lt_i lt_foo;
16044 } else {
16045 lt_count--;
16046 }
16047 }
16048 }
16049 }
16050 if (lt_foo != "") { lt_freq[lt_foo]++; }
16051 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16052 }'`
16053 # AWK program above erroneously prepends '/' to C:/dos/paths
16054 # for these hosts.
16055 case $host_os in
16056 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16057 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16058 esac
16059 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
16060 else
16061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16062 fi
16063 library_names_spec=
16064 libname_spec='lib$name'
16065 soname_spec=
16066 shrext_cmds=".so"
16067 postinstall_cmds=
16068 postuninstall_cmds=
16069 finish_cmds=
16070 finish_eval=
16071 shlibpath_var=
16072 shlibpath_overrides_runpath=unknown
16073 version_type=none
16074 dynamic_linker="$host_os ld.so"
16075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16076 need_lib_prefix=unknown
16077 hardcode_into_libs=no
16078
16079 # when you set need_version to no, make sure it does not cause -set_version
16080 # flags to be left without arguments
16081 need_version=unknown
16082
16083 case $host_os in
16084 aix3*)
16085 version_type=linux
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16087 shlibpath_var=LIBPATH
16088
16089 # AIX 3 has no versioning support, so we append a major version to the name.
16090 soname_spec='${libname}${release}${shared_ext}$major'
16091 ;;
16092
16093 aix[4-9]*)
16094 version_type=linux
16095 need_lib_prefix=no
16096 need_version=no
16097 hardcode_into_libs=yes
16098 if test "$host_cpu" = ia64; then
16099 # AIX 5 supports IA64
16100 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 else
16103 # With GCC up to 2.95.x, collect2 would create an import file
16104 # for dependence libraries. The import file would start with
16105 # the line `#! .'. This would cause the generated library to
16106 # depend on `.', always an invalid library. This was fixed in
16107 # development snapshots of GCC prior to 3.0.
16108 case $host_os in
16109 aix4 | aix4.[01] | aix4.[01].*)
16110 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16111 echo ' yes '
16112 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16113 :
16114 else
16115 can_build_shared=no
16116 fi
16117 ;;
16118 esac
16119 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16120 # soname into executable. Probably we can add versioning support to
16121 # collect2, so additional links can be useful in future.
16122 if test "$aix_use_runtimelinking" = yes; then
16123 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16124 # instead of lib<name>.a to let people know that these are not
16125 # typical AIX shared libraries.
16126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16127 else
16128 # We preserve .a as extension for shared libraries through AIX4.2
16129 # and later when we are not doing run time linking.
16130 library_names_spec='${libname}${release}.a $libname.a'
16131 soname_spec='${libname}${release}${shared_ext}$major'
16132 fi
16133 shlibpath_var=LIBPATH
16134 fi
16135 ;;
16136
16137 amigaos*)
16138 case $host_cpu in
16139 powerpc)
16140 # Since July 2007 AmigaOS4 officially supports .so libraries.
16141 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143 ;;
16144 m68k)
16145 library_names_spec='$libname.ixlibrary $libname.a'
16146 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16147 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'
16148 ;;
16149 esac
16150 ;;
16151
16152 beos*)
16153 library_names_spec='${libname}${shared_ext}'
16154 dynamic_linker="$host_os ld.so"
16155 shlibpath_var=LIBRARY_PATH
16156 ;;
16157
16158 bsdi[45]*)
16159 version_type=linux
16160 need_version=no
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162 soname_spec='${libname}${release}${shared_ext}$major'
16163 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16164 shlibpath_var=LD_LIBRARY_PATH
16165 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16166 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16167 # the default ld.so.conf also contains /usr/contrib/lib and
16168 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16169 # libtool to hard-code these into programs
16170 ;;
16171
16172 cygwin* | mingw* | pw32* | cegcc*)
16173 version_type=windows
16174 shrext_cmds=".dll"
16175 need_version=no
16176 need_lib_prefix=no
16177
16178 case $GCC,$host_os in
16179 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16180 library_names_spec='$libname.dll.a'
16181 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16182 postinstall_cmds='base_file=`basename \${file}`~
16183 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16184 dldir=$destdir/`dirname \$dlpath`~
16185 test -d \$dldir || mkdir -p \$dldir~
16186 $install_prog $dir/$dlname \$dldir/$dlname~
16187 chmod a+x \$dldir/$dlname~
16188 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16189 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16190 fi'
16191 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16192 dlpath=$dir/\$dldll~
16193 $RM \$dlpath'
16194 shlibpath_overrides_runpath=yes
16195
16196 case $host_os in
16197 cygwin*)
16198 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16199 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16200
16201 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
16202 ;;
16203 mingw* | cegcc*)
16204 # MinGW DLLs use traditional 'lib' prefix
16205 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16206 ;;
16207 pw32*)
16208 # pw32 DLLs use 'pw' prefix rather than 'lib'
16209 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16210 ;;
16211 esac
16212 ;;
16213
16214 *)
16215 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16216 ;;
16217 esac
16218 dynamic_linker='Win32 ld.exe'
16219 # FIXME: first we should search . and the directory the executable is in
16220 shlibpath_var=PATH
16221 ;;
16222
16223 darwin* | rhapsody*)
16224 dynamic_linker="$host_os dyld"
16225 version_type=darwin
16226 need_lib_prefix=no
16227 need_version=no
16228 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16229 soname_spec='${libname}${release}${major}$shared_ext'
16230 shlibpath_overrides_runpath=yes
16231 shlibpath_var=DYLD_LIBRARY_PATH
16232 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16233
16234 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16236 ;;
16237
16238 dgux*)
16239 version_type=linux
16240 need_lib_prefix=no
16241 need_version=no
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LD_LIBRARY_PATH
16245 ;;
16246
16247 freebsd1*)
16248 dynamic_linker=no
16249 ;;
16250
16251 freebsd* | dragonfly*)
16252 # DragonFly does not have aout. When/if they implement a new
16253 # versioning mechanism, adjust this.
16254 if test -x /usr/bin/objformat; then
16255 objformat=`/usr/bin/objformat`
16256 else
16257 case $host_os in
16258 freebsd[123]*) objformat=aout ;;
16259 *) objformat=elf ;;
16260 esac
16261 fi
16262 version_type=freebsd-$objformat
16263 case $version_type in
16264 freebsd-elf*)
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16266 need_version=no
16267 need_lib_prefix=no
16268 ;;
16269 freebsd-*)
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16271 need_version=yes
16272 ;;
16273 esac
16274 shlibpath_var=LD_LIBRARY_PATH
16275 case $host_os in
16276 freebsd2*)
16277 shlibpath_overrides_runpath=yes
16278 ;;
16279 freebsd3.[01]* | freebsdelf3.[01]*)
16280 shlibpath_overrides_runpath=yes
16281 hardcode_into_libs=yes
16282 ;;
16283 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16284 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16285 shlibpath_overrides_runpath=no
16286 hardcode_into_libs=yes
16287 ;;
16288 *) # from 4.6 on, and DragonFly
16289 shlibpath_overrides_runpath=yes
16290 hardcode_into_libs=yes
16291 ;;
16292 esac
16293 ;;
16294
16295 gnu*)
16296 version_type=linux
16297 need_lib_prefix=no
16298 need_version=no
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16300 soname_spec='${libname}${release}${shared_ext}$major'
16301 shlibpath_var=LD_LIBRARY_PATH
16302 hardcode_into_libs=yes
16303 ;;
16304
16305 haiku*)
16306 version_type=linux
16307 need_lib_prefix=no
16308 need_version=no
16309 dynamic_linker="$host_os runtime_loader"
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 shlibpath_var=LIBRARY_PATH
16313 shlibpath_overrides_runpath=yes
16314 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16315 hardcode_into_libs=yes
16316 ;;
16317
16318 hpux9* | hpux10* | hpux11*)
16319 # Give a soname corresponding to the major version so that dld.sl refuses to
16320 # link against other versions.
16321 version_type=sunos
16322 need_lib_prefix=no
16323 need_version=no
16324 case $host_cpu in
16325 ia64*)
16326 shrext_cmds='.so'
16327 hardcode_into_libs=yes
16328 dynamic_linker="$host_os dld.so"
16329 shlibpath_var=LD_LIBRARY_PATH
16330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 if test "X$HPUX_IA64_MODE" = X32; then
16334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16335 else
16336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16337 fi
16338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16339 ;;
16340 hppa*64*)
16341 shrext_cmds='.sl'
16342 hardcode_into_libs=yes
16343 dynamic_linker="$host_os dld.sl"
16344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16350 ;;
16351 *)
16352 shrext_cmds='.sl'
16353 dynamic_linker="$host_os dld.sl"
16354 shlibpath_var=SHLIB_PATH
16355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16358 ;;
16359 esac
16360 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16361 postinstall_cmds='chmod 555 $lib'
16362 # or fails outright, so override atomically:
16363 install_override_mode=555
16364 ;;
16365
16366 interix[3-9]*)
16367 version_type=linux
16368 need_lib_prefix=no
16369 need_version=no
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16371 soname_spec='${libname}${release}${shared_ext}$major'
16372 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16373 shlibpath_var=LD_LIBRARY_PATH
16374 shlibpath_overrides_runpath=no
16375 hardcode_into_libs=yes
16376 ;;
16377
16378 irix5* | irix6* | nonstopux*)
16379 case $host_os in
16380 nonstopux*) version_type=nonstopux ;;
16381 *)
16382 if test "$lt_cv_prog_gnu_ld" = yes; then
16383 version_type=linux
16384 else
16385 version_type=irix
16386 fi ;;
16387 esac
16388 need_lib_prefix=no
16389 need_version=no
16390 soname_spec='${libname}${release}${shared_ext}$major'
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16392 case $host_os in
16393 irix5* | nonstopux*)
16394 libsuff= shlibsuff=
16395 ;;
16396 *)
16397 case $LD in # libtool.m4 will add one of these switches to LD
16398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16399 libsuff= shlibsuff= libmagic=32-bit;;
16400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16401 libsuff=32 shlibsuff=N32 libmagic=N32;;
16402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16403 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16404 *) libsuff= shlibsuff= libmagic=never-match;;
16405 esac
16406 ;;
16407 esac
16408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16409 shlibpath_overrides_runpath=no
16410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16412 hardcode_into_libs=yes
16413 ;;
16414
16415 # No shared lib support for Linux oldld, aout, or coff.
16416 linux*oldld* | linux*aout* | linux*coff*)
16417 dynamic_linker=no
16418 ;;
16419
16420 # This must be Linux ELF.
16421 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16422 version_type=linux
16423 need_lib_prefix=no
16424 need_version=no
16425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16426 soname_spec='${libname}${release}${shared_ext}$major'
16427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=no
16430
16431 # Some binutils ld are patched to set DT_RUNPATH
16432 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16433 $as_echo_n "(cached) " >&6
16434 else
16435 lt_cv_shlibpath_overrides_runpath=no
16436 save_LDFLAGS=$LDFLAGS
16437 save_libdir=$libdir
16438 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16439 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16441 /* end confdefs.h. */
16442
16443 int
16444 main ()
16445 {
16446
16447 ;
16448 return 0;
16449 }
16450 _ACEOF
16451 if ac_fn_c_try_link "$LINENO"; then :
16452 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16453 lt_cv_shlibpath_overrides_runpath=yes
16454 fi
16455 fi
16456 rm -f core conftest.err conftest.$ac_objext \
16457 conftest$ac_exeext conftest.$ac_ext
16458 LDFLAGS=$save_LDFLAGS
16459 libdir=$save_libdir
16460
16461 fi
16462
16463 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16464
16465 # This implies no fast_install, which is unacceptable.
16466 # Some rework will be needed to allow for fast_install
16467 # before this can be enabled.
16468 hardcode_into_libs=yes
16469
16470 # Append ld.so.conf contents to the search path
16471 if test -f /etc/ld.so.conf; then
16472 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' ' '`
16473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16474 fi
16475
16476 # We used to test for /lib/ld.so.1 and disable shared libraries on
16477 # powerpc, because MkLinux only supported shared libraries with the
16478 # GNU dynamic linker. Since this was broken with cross compilers,
16479 # most powerpc-linux boxes support dynamic linking these days and
16480 # people can always --disable-shared, the test was removed, and we
16481 # assume the GNU/Linux dynamic linker is in use.
16482 dynamic_linker='GNU/Linux ld.so'
16483 ;;
16484
16485 netbsd*)
16486 version_type=sunos
16487 need_lib_prefix=no
16488 need_version=no
16489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16492 dynamic_linker='NetBSD (a.out) ld.so'
16493 else
16494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16495 soname_spec='${libname}${release}${shared_ext}$major'
16496 dynamic_linker='NetBSD ld.elf_so'
16497 fi
16498 shlibpath_var=LD_LIBRARY_PATH
16499 shlibpath_overrides_runpath=yes
16500 hardcode_into_libs=yes
16501 ;;
16502
16503 newsos6)
16504 version_type=linux
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16506 shlibpath_var=LD_LIBRARY_PATH
16507 shlibpath_overrides_runpath=yes
16508 ;;
16509
16510 *nto* | *qnx*)
16511 version_type=qnx
16512 need_lib_prefix=no
16513 need_version=no
16514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16515 soname_spec='${libname}${release}${shared_ext}$major'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 shlibpath_overrides_runpath=no
16518 hardcode_into_libs=yes
16519 dynamic_linker='ldqnx.so'
16520 ;;
16521
16522 openbsd*)
16523 version_type=sunos
16524 sys_lib_dlsearch_path_spec="/usr/lib"
16525 need_lib_prefix=no
16526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16527 case $host_os in
16528 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16529 *) need_version=no ;;
16530 esac
16531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16533 shlibpath_var=LD_LIBRARY_PATH
16534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16535 case $host_os in
16536 openbsd2.[89] | openbsd2.[89].*)
16537 shlibpath_overrides_runpath=no
16538 ;;
16539 *)
16540 shlibpath_overrides_runpath=yes
16541 ;;
16542 esac
16543 else
16544 shlibpath_overrides_runpath=yes
16545 fi
16546 ;;
16547
16548 os2*)
16549 libname_spec='$name'
16550 shrext_cmds=".dll"
16551 need_lib_prefix=no
16552 library_names_spec='$libname${shared_ext} $libname.a'
16553 dynamic_linker='OS/2 ld.exe'
16554 shlibpath_var=LIBPATH
16555 ;;
16556
16557 osf3* | osf4* | osf5*)
16558 version_type=osf
16559 need_lib_prefix=no
16560 need_version=no
16561 soname_spec='${libname}${release}${shared_ext}$major'
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 shlibpath_var=LD_LIBRARY_PATH
16564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16566 ;;
16567
16568 rdos*)
16569 dynamic_linker=no
16570 ;;
16571
16572 solaris*)
16573 version_type=linux
16574 need_lib_prefix=no
16575 need_version=no
16576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16577 soname_spec='${libname}${release}${shared_ext}$major'
16578 shlibpath_var=LD_LIBRARY_PATH
16579 shlibpath_overrides_runpath=yes
16580 hardcode_into_libs=yes
16581 # ldd complains unless libraries are executable
16582 postinstall_cmds='chmod +x $lib'
16583 ;;
16584
16585 sunos4*)
16586 version_type=sunos
16587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16589 shlibpath_var=LD_LIBRARY_PATH
16590 shlibpath_overrides_runpath=yes
16591 if test "$with_gnu_ld" = yes; then
16592 need_lib_prefix=no
16593 fi
16594 need_version=yes
16595 ;;
16596
16597 sysv4 | sysv4.3*)
16598 version_type=linux
16599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16600 soname_spec='${libname}${release}${shared_ext}$major'
16601 shlibpath_var=LD_LIBRARY_PATH
16602 case $host_vendor in
16603 sni)
16604 shlibpath_overrides_runpath=no
16605 need_lib_prefix=no
16606 runpath_var=LD_RUN_PATH
16607 ;;
16608 siemens)
16609 need_lib_prefix=no
16610 ;;
16611 motorola)
16612 need_lib_prefix=no
16613 need_version=no
16614 shlibpath_overrides_runpath=no
16615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16616 ;;
16617 esac
16618 ;;
16619
16620 sysv4*MP*)
16621 if test -d /usr/nec ;then
16622 version_type=linux
16623 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16624 soname_spec='$libname${shared_ext}.$major'
16625 shlibpath_var=LD_LIBRARY_PATH
16626 fi
16627 ;;
16628
16629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16630 version_type=freebsd-elf
16631 need_lib_prefix=no
16632 need_version=no
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16634 soname_spec='${libname}${release}${shared_ext}$major'
16635 shlibpath_var=LD_LIBRARY_PATH
16636 shlibpath_overrides_runpath=yes
16637 hardcode_into_libs=yes
16638 if test "$with_gnu_ld" = yes; then
16639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16640 else
16641 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16642 case $host_os in
16643 sco3.2v5*)
16644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16645 ;;
16646 esac
16647 fi
16648 sys_lib_dlsearch_path_spec='/usr/lib'
16649 ;;
16650
16651 tpf*)
16652 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16653 version_type=linux
16654 need_lib_prefix=no
16655 need_version=no
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657 shlibpath_var=LD_LIBRARY_PATH
16658 shlibpath_overrides_runpath=no
16659 hardcode_into_libs=yes
16660 ;;
16661
16662 uts4*)
16663 version_type=linux
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16665 soname_spec='${libname}${release}${shared_ext}$major'
16666 shlibpath_var=LD_LIBRARY_PATH
16667 ;;
16668
16669 *)
16670 dynamic_linker=no
16671 ;;
16672 esac
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16674 $as_echo "$dynamic_linker" >&6; }
16675 test "$dynamic_linker" = no && can_build_shared=no
16676
16677 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16678 if test "$GCC" = yes; then
16679 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16680 fi
16681
16682 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16683 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16684 fi
16685 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16686 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16687 fi
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16781 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16782 hardcode_action=
16783 if test -n "$hardcode_libdir_flag_spec" ||
16784 test -n "$runpath_var" ||
16785 test "X$hardcode_automatic" = "Xyes" ; then
16786
16787 # We can hardcode non-existent directories.
16788 if test "$hardcode_direct" != no &&
16789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16790 # have to relink, otherwise we might link with an installed library
16791 # when we should be linking with a yet-to-be-installed one
16792 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16793 test "$hardcode_minus_L" != no; then
16794 # Linking always hardcodes the temporary library directory.
16795 hardcode_action=relink
16796 else
16797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16798 hardcode_action=immediate
16799 fi
16800 else
16801 # We cannot hardcode anything, or else we can only hardcode existing
16802 # directories.
16803 hardcode_action=unsupported
16804 fi
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16806 $as_echo "$hardcode_action" >&6; }
16807
16808 if test "$hardcode_action" = relink ||
16809 test "$inherit_rpath" = yes; then
16810 # Fast installation is not supported
16811 enable_fast_install=no
16812 elif test "$shlibpath_overrides_runpath" = yes ||
16813 test "$enable_shared" = no; then
16814 # Fast installation is not necessary
16815 enable_fast_install=needless
16816 fi
16817
16818
16819
16820
16821
16822
16823 if test "x$enable_dlopen" != xyes; then
16824 enable_dlopen=unknown
16825 enable_dlopen_self=unknown
16826 enable_dlopen_self_static=unknown
16827 else
16828 lt_cv_dlopen=no
16829 lt_cv_dlopen_libs=
16830
16831 case $host_os in
16832 beos*)
16833 lt_cv_dlopen="load_add_on"
16834 lt_cv_dlopen_libs=
16835 lt_cv_dlopen_self=yes
16836 ;;
16837
16838 mingw* | pw32* | cegcc*)
16839 lt_cv_dlopen="LoadLibrary"
16840 lt_cv_dlopen_libs=
16841 ;;
16842
16843 cygwin*)
16844 lt_cv_dlopen="dlopen"
16845 lt_cv_dlopen_libs=
16846 ;;
16847
16848 darwin*)
16849 # if libdl is installed we need to link against it
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16851 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16852 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 ac_check_lib_save_LIBS=$LIBS
16856 LIBS="-ldl $LIBS"
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859
16860 /* Override any GCC internal prototype to avoid an error.
16861 Use char because int might match the return type of a GCC
16862 builtin and then its argument prototype would still apply. */
16863 #ifdef __cplusplus
16864 extern "C"
16865 #endif
16866 char dlopen ();
16867 int
16868 main ()
16869 {
16870 return dlopen ();
16871 ;
16872 return 0;
16873 }
16874 _ACEOF
16875 if ac_fn_c_try_link "$LINENO"; then :
16876 ac_cv_lib_dl_dlopen=yes
16877 else
16878 ac_cv_lib_dl_dlopen=no
16879 fi
16880 rm -f core conftest.err conftest.$ac_objext \
16881 conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16883 fi
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16885 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16886 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16888 else
16889
16890 lt_cv_dlopen="dyld"
16891 lt_cv_dlopen_libs=
16892 lt_cv_dlopen_self=yes
16893
16894 fi
16895
16896 ;;
16897
16898 *)
16899 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16900 if test "x$ac_cv_func_shl_load" = x""yes; then :
16901 lt_cv_dlopen="shl_load"
16902 else
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16904 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16905 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16906 $as_echo_n "(cached) " >&6
16907 else
16908 ac_check_lib_save_LIBS=$LIBS
16909 LIBS="-ldld $LIBS"
16910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16911 /* end confdefs.h. */
16912
16913 /* Override any GCC internal prototype to avoid an error.
16914 Use char because int might match the return type of a GCC
16915 builtin and then its argument prototype would still apply. */
16916 #ifdef __cplusplus
16917 extern "C"
16918 #endif
16919 char shl_load ();
16920 int
16921 main ()
16922 {
16923 return shl_load ();
16924 ;
16925 return 0;
16926 }
16927 _ACEOF
16928 if ac_fn_c_try_link "$LINENO"; then :
16929 ac_cv_lib_dld_shl_load=yes
16930 else
16931 ac_cv_lib_dld_shl_load=no
16932 fi
16933 rm -f core conftest.err conftest.$ac_objext \
16934 conftest$ac_exeext conftest.$ac_ext
16935 LIBS=$ac_check_lib_save_LIBS
16936 fi
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16938 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16939 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16940 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16941 else
16942 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16943 if test "x$ac_cv_func_dlopen" = x""yes; then :
16944 lt_cv_dlopen="dlopen"
16945 else
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16947 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16948 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16949 $as_echo_n "(cached) " >&6
16950 else
16951 ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-ldl $LIBS"
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16955
16956 /* Override any GCC internal prototype to avoid an error.
16957 Use char because int might match the return type of a GCC
16958 builtin and then its argument prototype would still apply. */
16959 #ifdef __cplusplus
16960 extern "C"
16961 #endif
16962 char dlopen ();
16963 int
16964 main ()
16965 {
16966 return dlopen ();
16967 ;
16968 return 0;
16969 }
16970 _ACEOF
16971 if ac_fn_c_try_link "$LINENO"; then :
16972 ac_cv_lib_dl_dlopen=yes
16973 else
16974 ac_cv_lib_dl_dlopen=no
16975 fi
16976 rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978 LIBS=$ac_check_lib_save_LIBS
16979 fi
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16981 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16982 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16984 else
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16986 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16987 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16988 $as_echo_n "(cached) " >&6
16989 else
16990 ac_check_lib_save_LIBS=$LIBS
16991 LIBS="-lsvld $LIBS"
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16994
16995 /* Override any GCC internal prototype to avoid an error.
16996 Use char because int might match the return type of a GCC
16997 builtin and then its argument prototype would still apply. */
16998 #ifdef __cplusplus
16999 extern "C"
17000 #endif
17001 char dlopen ();
17002 int
17003 main ()
17004 {
17005 return dlopen ();
17006 ;
17007 return 0;
17008 }
17009 _ACEOF
17010 if ac_fn_c_try_link "$LINENO"; then :
17011 ac_cv_lib_svld_dlopen=yes
17012 else
17013 ac_cv_lib_svld_dlopen=no
17014 fi
17015 rm -f core conftest.err conftest.$ac_objext \
17016 conftest$ac_exeext conftest.$ac_ext
17017 LIBS=$ac_check_lib_save_LIBS
17018 fi
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17020 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17021 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17023 else
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17025 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17026 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17027 $as_echo_n "(cached) " >&6
17028 else
17029 ac_check_lib_save_LIBS=$LIBS
17030 LIBS="-ldld $LIBS"
17031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17032 /* end confdefs.h. */
17033
17034 /* Override any GCC internal prototype to avoid an error.
17035 Use char because int might match the return type of a GCC
17036 builtin and then its argument prototype would still apply. */
17037 #ifdef __cplusplus
17038 extern "C"
17039 #endif
17040 char dld_link ();
17041 int
17042 main ()
17043 {
17044 return dld_link ();
17045 ;
17046 return 0;
17047 }
17048 _ACEOF
17049 if ac_fn_c_try_link "$LINENO"; then :
17050 ac_cv_lib_dld_dld_link=yes
17051 else
17052 ac_cv_lib_dld_dld_link=no
17053 fi
17054 rm -f core conftest.err conftest.$ac_objext \
17055 conftest$ac_exeext conftest.$ac_ext
17056 LIBS=$ac_check_lib_save_LIBS
17057 fi
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17059 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17060 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17061 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17062 fi
17063
17064
17065 fi
17066
17067
17068 fi
17069
17070
17071 fi
17072
17073
17074 fi
17075
17076
17077 fi
17078
17079 ;;
17080 esac
17081
17082 if test "x$lt_cv_dlopen" != xno; then
17083 enable_dlopen=yes
17084 else
17085 enable_dlopen=no
17086 fi
17087
17088 case $lt_cv_dlopen in
17089 dlopen)
17090 save_CPPFLAGS="$CPPFLAGS"
17091 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17092
17093 save_LDFLAGS="$LDFLAGS"
17094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17095
17096 save_LIBS="$LIBS"
17097 LIBS="$lt_cv_dlopen_libs $LIBS"
17098
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17100 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17101 if test "${lt_cv_dlopen_self+set}" = set; then :
17102 $as_echo_n "(cached) " >&6
17103 else
17104 if test "$cross_compiling" = yes; then :
17105 lt_cv_dlopen_self=cross
17106 else
17107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17108 lt_status=$lt_dlunknown
17109 cat > conftest.$ac_ext <<_LT_EOF
17110 #line 17110 "configure"
17111 #include "confdefs.h"
17112
17113 #if HAVE_DLFCN_H
17114 #include <dlfcn.h>
17115 #endif
17116
17117 #include <stdio.h>
17118
17119 #ifdef RTLD_GLOBAL
17120 # define LT_DLGLOBAL RTLD_GLOBAL
17121 #else
17122 # ifdef DL_GLOBAL
17123 # define LT_DLGLOBAL DL_GLOBAL
17124 # else
17125 # define LT_DLGLOBAL 0
17126 # endif
17127 #endif
17128
17129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17130 find out it does not work in some platform. */
17131 #ifndef LT_DLLAZY_OR_NOW
17132 # ifdef RTLD_LAZY
17133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17134 # else
17135 # ifdef DL_LAZY
17136 # define LT_DLLAZY_OR_NOW DL_LAZY
17137 # else
17138 # ifdef RTLD_NOW
17139 # define LT_DLLAZY_OR_NOW RTLD_NOW
17140 # else
17141 # ifdef DL_NOW
17142 # define LT_DLLAZY_OR_NOW DL_NOW
17143 # else
17144 # define LT_DLLAZY_OR_NOW 0
17145 # endif
17146 # endif
17147 # endif
17148 # endif
17149 #endif
17150
17151 /* When -fvisbility=hidden is used, assume the code has been annotated
17152 correspondingly for the symbols needed. */
17153 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17154 void fnord () __attribute__((visibility("default")));
17155 #endif
17156
17157 void fnord () { int i=42; }
17158 int main ()
17159 {
17160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17161 int status = $lt_dlunknown;
17162
17163 if (self)
17164 {
17165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17166 else
17167 {
17168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17169 else puts (dlerror ());
17170 }
17171 /* dlclose (self); */
17172 }
17173 else
17174 puts (dlerror ());
17175
17176 return status;
17177 }
17178 _LT_EOF
17179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17180 (eval $ac_link) 2>&5
17181 ac_status=$?
17182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17183 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17184 (./conftest; exit; ) >&5 2>/dev/null
17185 lt_status=$?
17186 case x$lt_status in
17187 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17188 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17189 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17190 esac
17191 else :
17192 # compilation failed
17193 lt_cv_dlopen_self=no
17194 fi
17195 fi
17196 rm -fr conftest*
17197
17198
17199 fi
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17201 $as_echo "$lt_cv_dlopen_self" >&6; }
17202
17203 if test "x$lt_cv_dlopen_self" = xyes; then
17204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17206 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17207 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17208 $as_echo_n "(cached) " >&6
17209 else
17210 if test "$cross_compiling" = yes; then :
17211 lt_cv_dlopen_self_static=cross
17212 else
17213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17214 lt_status=$lt_dlunknown
17215 cat > conftest.$ac_ext <<_LT_EOF
17216 #line 17216 "configure"
17217 #include "confdefs.h"
17218
17219 #if HAVE_DLFCN_H
17220 #include <dlfcn.h>
17221 #endif
17222
17223 #include <stdio.h>
17224
17225 #ifdef RTLD_GLOBAL
17226 # define LT_DLGLOBAL RTLD_GLOBAL
17227 #else
17228 # ifdef DL_GLOBAL
17229 # define LT_DLGLOBAL DL_GLOBAL
17230 # else
17231 # define LT_DLGLOBAL 0
17232 # endif
17233 #endif
17234
17235 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17236 find out it does not work in some platform. */
17237 #ifndef LT_DLLAZY_OR_NOW
17238 # ifdef RTLD_LAZY
17239 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17240 # else
17241 # ifdef DL_LAZY
17242 # define LT_DLLAZY_OR_NOW DL_LAZY
17243 # else
17244 # ifdef RTLD_NOW
17245 # define LT_DLLAZY_OR_NOW RTLD_NOW
17246 # else
17247 # ifdef DL_NOW
17248 # define LT_DLLAZY_OR_NOW DL_NOW
17249 # else
17250 # define LT_DLLAZY_OR_NOW 0
17251 # endif
17252 # endif
17253 # endif
17254 # endif
17255 #endif
17256
17257 /* When -fvisbility=hidden is used, assume the code has been annotated
17258 correspondingly for the symbols needed. */
17259 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
17260 void fnord () __attribute__((visibility("default")));
17261 #endif
17262
17263 void fnord () { int i=42; }
17264 int main ()
17265 {
17266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17267 int status = $lt_dlunknown;
17268
17269 if (self)
17270 {
17271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17272 else
17273 {
17274 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17275 else puts (dlerror ());
17276 }
17277 /* dlclose (self); */
17278 }
17279 else
17280 puts (dlerror ());
17281
17282 return status;
17283 }
17284 _LT_EOF
17285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17286 (eval $ac_link) 2>&5
17287 ac_status=$?
17288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17289 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17290 (./conftest; exit; ) >&5 2>/dev/null
17291 lt_status=$?
17292 case x$lt_status in
17293 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17294 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17295 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17296 esac
17297 else :
17298 # compilation failed
17299 lt_cv_dlopen_self_static=no
17300 fi
17301 fi
17302 rm -fr conftest*
17303
17304
17305 fi
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17307 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17308 fi
17309
17310 CPPFLAGS="$save_CPPFLAGS"
17311 LDFLAGS="$save_LDFLAGS"
17312 LIBS="$save_LIBS"
17313 ;;
17314 esac
17315
17316 case $lt_cv_dlopen_self in
17317 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17318 *) enable_dlopen_self=unknown ;;
17319 esac
17320
17321 case $lt_cv_dlopen_self_static in
17322 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17323 *) enable_dlopen_self_static=unknown ;;
17324 esac
17325 fi
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343 striplib=
17344 old_striplib=
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17346 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17347 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17351 $as_echo "yes" >&6; }
17352 else
17353 # FIXME - insert some real tests, host_os isn't really good enough
17354 case $host_os in
17355 darwin*)
17356 if test -n "$STRIP" ; then
17357 striplib="$STRIP -x"
17358 old_striplib="$STRIP -S"
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17360 $as_echo "yes" >&6; }
17361 else
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17363 $as_echo "no" >&6; }
17364 fi
17365 ;;
17366 *)
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368 $as_echo "no" >&6; }
17369 ;;
17370 esac
17371 fi
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384 # Report which library types will actually be built
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17386 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17388 $as_echo "$can_build_shared" >&6; }
17389
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17391 $as_echo_n "checking whether to build shared libraries... " >&6; }
17392 test "$can_build_shared" = "no" && enable_shared=no
17393
17394 # On AIX, shared libraries and static libraries use the same namespace, and
17395 # are all built from PIC.
17396 case $host_os in
17397 aix3*)
17398 test "$enable_shared" = yes && enable_static=no
17399 if test -n "$RANLIB"; then
17400 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17401 postinstall_cmds='$RANLIB $lib'
17402 fi
17403 ;;
17404
17405 aix[4-9]*)
17406 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17407 test "$enable_shared" = yes && enable_static=no
17408 fi
17409 ;;
17410 esac
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17412 $as_echo "$enable_shared" >&6; }
17413
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17415 $as_echo_n "checking whether to build static libraries... " >&6; }
17416 # Make sure either enable_shared or enable_static is yes.
17417 test "$enable_shared" = yes || enable_static=yes
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17419 $as_echo "$enable_static" >&6; }
17420
17421
17422
17423
17424 fi
17425 ac_ext=c
17426 ac_cpp='$CPP $CPPFLAGS'
17427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17430
17431 CC="$lt_save_CC"
17432
17433 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17434 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17435 (test "X$CXX" != "Xg++"))) ; then
17436 ac_ext=cpp
17437 ac_cpp='$CXXCPP $CPPFLAGS'
17438 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17439 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17440 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17442 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17443 if test -z "$CXXCPP"; then
17444 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
17445 $as_echo_n "(cached) " >&6
17446 else
17447 # Double quotes because CXXCPP needs to be expanded
17448 for CXXCPP in "$CXX -E" "/lib/cpp"
17449 do
17450 ac_preproc_ok=false
17451 for ac_cxx_preproc_warn_flag in '' yes
17452 do
17453 # Use a header file that comes with gcc, so configuring glibc
17454 # with a fresh cross-compiler works.
17455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 # <limits.h> exists even on freestanding compilers.
17457 # On the NeXT, cc -E runs the code through the compiler's parser,
17458 # not just through cpp. "Syntax error" is here to catch this case.
17459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17460 /* end confdefs.h. */
17461 #ifdef __STDC__
17462 # include <limits.h>
17463 #else
17464 # include <assert.h>
17465 #endif
17466 Syntax error
17467 _ACEOF
17468 if ac_fn_cxx_try_cpp "$LINENO"; then :
17469
17470 else
17471 # Broken: fails on valid input.
17472 continue
17473 fi
17474 rm -f conftest.err conftest.$ac_ext
17475
17476 # OK, works on sane cases. Now check whether nonexistent headers
17477 # can be detected and how.
17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17479 /* end confdefs.h. */
17480 #include <ac_nonexistent.h>
17481 _ACEOF
17482 if ac_fn_cxx_try_cpp "$LINENO"; then :
17483 # Broken: success on invalid input.
17484 continue
17485 else
17486 # Passes both tests.
17487 ac_preproc_ok=:
17488 break
17489 fi
17490 rm -f conftest.err conftest.$ac_ext
17491
17492 done
17493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17494 rm -f conftest.err conftest.$ac_ext
17495 if $ac_preproc_ok; then :
17496 break
17497 fi
17498
17499 done
17500 ac_cv_prog_CXXCPP=$CXXCPP
17501
17502 fi
17503 CXXCPP=$ac_cv_prog_CXXCPP
17504 else
17505 ac_cv_prog_CXXCPP=$CXXCPP
17506 fi
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17508 $as_echo "$CXXCPP" >&6; }
17509 ac_preproc_ok=false
17510 for ac_cxx_preproc_warn_flag in '' yes
17511 do
17512 # Use a header file that comes with gcc, so configuring glibc
17513 # with a fresh cross-compiler works.
17514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17515 # <limits.h> exists even on freestanding compilers.
17516 # On the NeXT, cc -E runs the code through the compiler's parser,
17517 # not just through cpp. "Syntax error" is here to catch this case.
17518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17519 /* end confdefs.h. */
17520 #ifdef __STDC__
17521 # include <limits.h>
17522 #else
17523 # include <assert.h>
17524 #endif
17525 Syntax error
17526 _ACEOF
17527 if ac_fn_cxx_try_cpp "$LINENO"; then :
17528
17529 else
17530 # Broken: fails on valid input.
17531 continue
17532 fi
17533 rm -f conftest.err conftest.$ac_ext
17534
17535 # OK, works on sane cases. Now check whether nonexistent headers
17536 # can be detected and how.
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17539 #include <ac_nonexistent.h>
17540 _ACEOF
17541 if ac_fn_cxx_try_cpp "$LINENO"; then :
17542 # Broken: success on invalid input.
17543 continue
17544 else
17545 # Passes both tests.
17546 ac_preproc_ok=:
17547 break
17548 fi
17549 rm -f conftest.err conftest.$ac_ext
17550
17551 done
17552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17553 rm -f conftest.err conftest.$ac_ext
17554 if $ac_preproc_ok; then :
17555
17556 else
17557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17559 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
17560 See \`config.log' for more details." "$LINENO" 5; }
17561 fi
17562
17563 ac_ext=c
17564 ac_cpp='$CPP $CPPFLAGS'
17565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17568
17569 else
17570 _lt_caught_CXX_error=yes
17571 fi
17572
17573 ac_ext=cpp
17574 ac_cpp='$CXXCPP $CPPFLAGS'
17575 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17576 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17577 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17578
17579 archive_cmds_need_lc_CXX=no
17580 allow_undefined_flag_CXX=
17581 always_export_symbols_CXX=no
17582 archive_expsym_cmds_CXX=
17583 compiler_needs_object_CXX=no
17584 export_dynamic_flag_spec_CXX=
17585 hardcode_direct_CXX=no
17586 hardcode_direct_absolute_CXX=no
17587 hardcode_libdir_flag_spec_CXX=
17588 hardcode_libdir_flag_spec_ld_CXX=
17589 hardcode_libdir_separator_CXX=
17590 hardcode_minus_L_CXX=no
17591 hardcode_shlibpath_var_CXX=unsupported
17592 hardcode_automatic_CXX=no
17593 inherit_rpath_CXX=no
17594 module_cmds_CXX=
17595 module_expsym_cmds_CXX=
17596 link_all_deplibs_CXX=unknown
17597 old_archive_cmds_CXX=$old_archive_cmds
17598 reload_flag_CXX=$reload_flag
17599 reload_cmds_CXX=$reload_cmds
17600 no_undefined_flag_CXX=
17601 whole_archive_flag_spec_CXX=
17602 enable_shared_with_static_runtimes_CXX=no
17603
17604 # Source file extension for C++ test sources.
17605 ac_ext=cpp
17606
17607 # Object file extension for compiled C++ test sources.
17608 objext=o
17609 objext_CXX=$objext
17610
17611 # No sense in running all these tests if we already determined that
17612 # the CXX compiler isn't working. Some variables (like enable_shared)
17613 # are currently assumed to apply to all compilers on this platform,
17614 # and will be corrupted by setting them based on a non-working compiler.
17615 if test "$_lt_caught_CXX_error" != yes; then
17616 # Code to be used in simple compile tests
17617 lt_simple_compile_test_code="int some_variable = 0;"
17618
17619 # Code to be used in simple link tests
17620 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17621
17622 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17623
17624
17625
17626
17627
17628
17629 # If no C compiler was specified, use CC.
17630 LTCC=${LTCC-"$CC"}
17631
17632 # If no C compiler flags were specified, use CFLAGS.
17633 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17634
17635 # Allow CC to be a program name with arguments.
17636 compiler=$CC
17637
17638
17639 # save warnings/boilerplate of simple test code
17640 ac_outfile=conftest.$ac_objext
17641 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17642 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17643 _lt_compiler_boilerplate=`cat conftest.err`
17644 $RM conftest*
17645
17646 ac_outfile=conftest.$ac_objext
17647 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17648 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17649 _lt_linker_boilerplate=`cat conftest.err`
17650 $RM -r conftest*
17651
17652
17653 # Allow CC to be a program name with arguments.
17654 lt_save_CC=$CC
17655 lt_save_LD=$LD
17656 lt_save_GCC=$GCC
17657 GCC=$GXX
17658 lt_save_with_gnu_ld=$with_gnu_ld
17659 lt_save_path_LD=$lt_cv_path_LD
17660 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17661 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17662 else
17663 $as_unset lt_cv_prog_gnu_ld
17664 fi
17665 if test -n "${lt_cv_path_LDCXX+set}"; then
17666 lt_cv_path_LD=$lt_cv_path_LDCXX
17667 else
17668 $as_unset lt_cv_path_LD
17669 fi
17670 test -z "${LDCXX+set}" || LD=$LDCXX
17671 CC=${CXX-"c++"}
17672 compiler=$CC
17673 compiler_CXX=$CC
17674 for cc_temp in $compiler""; do
17675 case $cc_temp in
17676 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17677 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17678 \-*) ;;
17679 *) break;;
17680 esac
17681 done
17682 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17683
17684
17685 if test -n "$compiler"; then
17686 # We don't want -fno-exception when compiling C++ code, so set the
17687 # no_builtin_flag separately
17688 if test "$GXX" = yes; then
17689 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17690 else
17691 lt_prog_compiler_no_builtin_flag_CXX=
17692 fi
17693
17694 if test "$GXX" = yes; then
17695 # Set up default GNU C++ configuration
17696
17697
17698
17699 # Check whether --with-gnu-ld was given.
17700 if test "${with_gnu_ld+set}" = set; then :
17701 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17702 else
17703 with_gnu_ld=no
17704 fi
17705
17706 ac_prog=ld
17707 if test "$GCC" = yes; then
17708 # Check if gcc -print-prog-name=ld gives a path.
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17710 $as_echo_n "checking for ld used by $CC... " >&6; }
17711 case $host in
17712 *-*-mingw*)
17713 # gcc leaves a trailing carriage return which upsets mingw
17714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17715 *)
17716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17717 esac
17718 case $ac_prog in
17719 # Accept absolute paths.
17720 [\\/]* | ?:[\\/]*)
17721 re_direlt='/[^/][^/]*/\.\./'
17722 # Canonicalize the pathname of ld
17723 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17724 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17725 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17726 done
17727 test -z "$LD" && LD="$ac_prog"
17728 ;;
17729 "")
17730 # If it fails, then pretend we aren't using GCC.
17731 ac_prog=ld
17732 ;;
17733 *)
17734 # If it is relative, then search for the first ld in PATH.
17735 with_gnu_ld=unknown
17736 ;;
17737 esac
17738 elif test "$with_gnu_ld" = yes; then
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17740 $as_echo_n "checking for GNU ld... " >&6; }
17741 else
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17743 $as_echo_n "checking for non-GNU ld... " >&6; }
17744 fi
17745 if test "${lt_cv_path_LD+set}" = set; then :
17746 $as_echo_n "(cached) " >&6
17747 else
17748 if test -z "$LD"; then
17749 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17750 for ac_dir in $PATH; do
17751 IFS="$lt_save_ifs"
17752 test -z "$ac_dir" && ac_dir=.
17753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17754 lt_cv_path_LD="$ac_dir/$ac_prog"
17755 # Check to see if the program is GNU ld. I'd rather use --version,
17756 # but apparently some variants of GNU ld only accept -v.
17757 # Break only if it was the GNU/non-GNU ld that we prefer.
17758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17759 *GNU* | *'with BFD'*)
17760 test "$with_gnu_ld" != no && break
17761 ;;
17762 *)
17763 test "$with_gnu_ld" != yes && break
17764 ;;
17765 esac
17766 fi
17767 done
17768 IFS="$lt_save_ifs"
17769 else
17770 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17771 fi
17772 fi
17773
17774 LD="$lt_cv_path_LD"
17775 if test -n "$LD"; then
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17777 $as_echo "$LD" >&6; }
17778 else
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17780 $as_echo "no" >&6; }
17781 fi
17782 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17784 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17785 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17787 else
17788 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17789 case `$LD -v 2>&1 </dev/null` in
17790 *GNU* | *'with BFD'*)
17791 lt_cv_prog_gnu_ld=yes
17792 ;;
17793 *)
17794 lt_cv_prog_gnu_ld=no
17795 ;;
17796 esac
17797 fi
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17799 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17800 with_gnu_ld=$lt_cv_prog_gnu_ld
17801
17802
17803
17804
17805
17806
17807
17808 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17809 # archiving commands below assume that GNU ld is being used.
17810 if test "$with_gnu_ld" = yes; then
17811 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17812 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'
17813
17814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17815 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17816
17817 # If archive_cmds runs LD, not CC, wlarc should be empty
17818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17819 # investigate it a little bit more. (MM)
17820 wlarc='${wl}'
17821
17822 # ancient GNU ld didn't support --whole-archive et. al.
17823 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17824 $GREP 'no-whole-archive' > /dev/null; then
17825 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17826 else
17827 whole_archive_flag_spec_CXX=
17828 fi
17829 else
17830 with_gnu_ld=no
17831 wlarc=
17832
17833 # A generic and very simple default shared library creation
17834 # command for GNU C++ for the case where it uses the native
17835 # linker, instead of GNU ld. If possible, this setting should
17836 # overridden to take advantage of the native linker features on
17837 # the platform it is being used on.
17838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17839 fi
17840
17841 # Commands to make compiler produce verbose output that lists
17842 # what "hidden" libraries, object files and flags are used when
17843 # linking a shared library.
17844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17845
17846 else
17847 GXX=no
17848 with_gnu_ld=no
17849 wlarc=
17850 fi
17851
17852 # PORTME: fill in a description of your system's C++ link characteristics
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17855 ld_shlibs_CXX=yes
17856 case $host_os in
17857 aix3*)
17858 # FIXME: insert proper C++ library support
17859 ld_shlibs_CXX=no
17860 ;;
17861 aix[4-9]*)
17862 if test "$host_cpu" = ia64; then
17863 # On IA64, the linker does run time linking by default, so we don't
17864 # have to do anything special.
17865 aix_use_runtimelinking=no
17866 exp_sym_flag='-Bexport'
17867 no_entry_flag=""
17868 else
17869 aix_use_runtimelinking=no
17870
17871 # Test if we are trying to use run time linking or normal
17872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17873 # need to do runtime linking.
17874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17875 for ld_flag in $LDFLAGS; do
17876 case $ld_flag in
17877 *-brtl*)
17878 aix_use_runtimelinking=yes
17879 break
17880 ;;
17881 esac
17882 done
17883 ;;
17884 esac
17885
17886 exp_sym_flag='-bexport'
17887 no_entry_flag='-bnoentry'
17888 fi
17889
17890 # When large executables or shared objects are built, AIX ld can
17891 # have problems creating the table of contents. If linking a library
17892 # or program results in "error TOC overflow" add -mminimal-toc to
17893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17895
17896 archive_cmds_CXX=''
17897 hardcode_direct_CXX=yes
17898 hardcode_direct_absolute_CXX=yes
17899 hardcode_libdir_separator_CXX=':'
17900 link_all_deplibs_CXX=yes
17901 file_list_spec_CXX='${wl}-f,'
17902
17903 if test "$GXX" = yes; then
17904 case $host_os in aix4.[012]|aix4.[012].*)
17905 # We only want to do this on AIX 4.2 and lower, the check
17906 # below for broken collect2 doesn't work under 4.3+
17907 collect2name=`${CC} -print-prog-name=collect2`
17908 if test -f "$collect2name" &&
17909 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17910 then
17911 # We have reworked collect2
17912 :
17913 else
17914 # We have old collect2
17915 hardcode_direct_CXX=unsupported
17916 # It fails to find uninstalled libraries when the uninstalled
17917 # path is not listed in the libpath. Setting hardcode_minus_L
17918 # to unsupported forces relinking
17919 hardcode_minus_L_CXX=yes
17920 hardcode_libdir_flag_spec_CXX='-L$libdir'
17921 hardcode_libdir_separator_CXX=
17922 fi
17923 esac
17924 shared_flag='-shared'
17925 if test "$aix_use_runtimelinking" = yes; then
17926 shared_flag="$shared_flag "'${wl}-G'
17927 fi
17928 else
17929 # not using gcc
17930 if test "$host_cpu" = ia64; then
17931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17932 # chokes on -Wl,-G. The following line is correct:
17933 shared_flag='-G'
17934 else
17935 if test "$aix_use_runtimelinking" = yes; then
17936 shared_flag='${wl}-G'
17937 else
17938 shared_flag='${wl}-bM:SRE'
17939 fi
17940 fi
17941 fi
17942
17943 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17944 # It seems that -bexpall does not export symbols beginning with
17945 # underscore (_), so it is better to generate a list of symbols to
17946 # export.
17947 always_export_symbols_CXX=yes
17948 if test "$aix_use_runtimelinking" = yes; then
17949 # Warning - without using the other runtime loading flags (-brtl),
17950 # -berok will link without error, but may produce a broken library.
17951 allow_undefined_flag_CXX='-berok'
17952 # Determine the default libpath from the value encoded in an empty
17953 # executable.
17954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955 /* end confdefs.h. */
17956
17957 int
17958 main ()
17959 {
17960
17961 ;
17962 return 0;
17963 }
17964 _ACEOF
17965 if ac_fn_cxx_try_link "$LINENO"; then :
17966
17967 lt_aix_libpath_sed='
17968 /Import File Strings/,/^$/ {
17969 /^0/ {
17970 s/^0 *\(.*\)$/\1/
17971 p
17972 }
17973 }'
17974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17975 # Check for a 64-bit object if we didn't find anything.
17976 if test -z "$aix_libpath"; then
17977 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17978 fi
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17983
17984 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17985
17986 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"
17987 else
17988 if test "$host_cpu" = ia64; then
17989 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17990 allow_undefined_flag_CXX="-z nodefs"
17991 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"
17992 else
17993 # Determine the default libpath from the value encoded in an
17994 # empty executable.
17995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997
17998 int
17999 main ()
18000 {
18001
18002 ;
18003 return 0;
18004 }
18005 _ACEOF
18006 if ac_fn_cxx_try_link "$LINENO"; then :
18007
18008 lt_aix_libpath_sed='
18009 /Import File Strings/,/^$/ {
18010 /^0/ {
18011 s/^0 *\(.*\)$/\1/
18012 p
18013 }
18014 }'
18015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18016 # Check for a 64-bit object if we didn't find anything.
18017 if test -z "$aix_libpath"; then
18018 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18019 fi
18020 fi
18021 rm -f core conftest.err conftest.$ac_objext \
18022 conftest$ac_exeext conftest.$ac_ext
18023 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18024
18025 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18026 # Warning - without using the other run time loading flags,
18027 # -berok will link without error, but may produce a broken library.
18028 no_undefined_flag_CXX=' ${wl}-bernotok'
18029 allow_undefined_flag_CXX=' ${wl}-berok'
18030 if test "$with_gnu_ld" = yes; then
18031 # We only use this code for GNU lds that support --whole-archive.
18032 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18033 else
18034 # Exported symbols can be pulled into shared objects from archives
18035 whole_archive_flag_spec_CXX='$convenience'
18036 fi
18037 archive_cmds_need_lc_CXX=yes
18038 # This is similar to how AIX traditionally builds its shared
18039 # libraries.
18040 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'
18041 fi
18042 fi
18043 ;;
18044
18045 beos*)
18046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18047 allow_undefined_flag_CXX=unsupported
18048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18049 # support --undefined. This deserves some investigation. FIXME
18050 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18051 else
18052 ld_shlibs_CXX=no
18053 fi
18054 ;;
18055
18056 chorus*)
18057 case $cc_basename in
18058 *)
18059 # FIXME: insert proper C++ library support
18060 ld_shlibs_CXX=no
18061 ;;
18062 esac
18063 ;;
18064
18065 cygwin* | mingw* | pw32* | cegcc*)
18066 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18067 # as there is no search path for DLLs.
18068 hardcode_libdir_flag_spec_CXX='-L$libdir'
18069 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18070 allow_undefined_flag_CXX=unsupported
18071 always_export_symbols_CXX=no
18072 enable_shared_with_static_runtimes_CXX=yes
18073
18074 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18075 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'
18076 # If the export-symbols file already is a .def file (1st line
18077 # is EXPORTS), use it as is; otherwise, prepend...
18078 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18079 cp $export_symbols $output_objdir/$soname.def;
18080 else
18081 echo EXPORTS > $output_objdir/$soname.def;
18082 cat $export_symbols >> $output_objdir/$soname.def;
18083 fi~
18084 $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'
18085 else
18086 ld_shlibs_CXX=no
18087 fi
18088 ;;
18089 darwin* | rhapsody*)
18090
18091
18092 archive_cmds_need_lc_CXX=no
18093 hardcode_direct_CXX=no
18094 hardcode_automatic_CXX=yes
18095 hardcode_shlibpath_var_CXX=unsupported
18096 if test "$lt_cv_ld_force_load" = "yes"; then
18097 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\"`'
18098 else
18099 whole_archive_flag_spec_CXX=''
18100 fi
18101 link_all_deplibs_CXX=yes
18102 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18103 case $cc_basename in
18104 ifort*) _lt_dar_can_shared=yes ;;
18105 *) _lt_dar_can_shared=$GCC ;;
18106 esac
18107 if test "$_lt_dar_can_shared" = "yes"; then
18108 output_verbose_link_cmd=func_echo_all
18109 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}"
18110 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18111 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}"
18112 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}"
18113 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18114 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}"
18115 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}"
18116 fi
18117
18118 else
18119 ld_shlibs_CXX=no
18120 fi
18121
18122 ;;
18123
18124 dgux*)
18125 case $cc_basename in
18126 ec++*)
18127 # FIXME: insert proper C++ library support
18128 ld_shlibs_CXX=no
18129 ;;
18130 ghcx*)
18131 # Green Hills C++ Compiler
18132 # FIXME: insert proper C++ library support
18133 ld_shlibs_CXX=no
18134 ;;
18135 *)
18136 # FIXME: insert proper C++ library support
18137 ld_shlibs_CXX=no
18138 ;;
18139 esac
18140 ;;
18141
18142 freebsd[12]*)
18143 # C++ shared libraries reported to be fairly broken before
18144 # switch to ELF
18145 ld_shlibs_CXX=no
18146 ;;
18147
18148 freebsd-elf*)
18149 archive_cmds_need_lc_CXX=no
18150 ;;
18151
18152 freebsd* | dragonfly*)
18153 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18154 # conventions
18155 ld_shlibs_CXX=yes
18156 ;;
18157
18158 gnu*)
18159 ;;
18160
18161 haiku*)
18162 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18163 link_all_deplibs_CXX=yes
18164 ;;
18165
18166 hpux9*)
18167 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18168 hardcode_libdir_separator_CXX=:
18169 export_dynamic_flag_spec_CXX='${wl}-E'
18170 hardcode_direct_CXX=yes
18171 hardcode_minus_L_CXX=yes # Not in the search PATH,
18172 # but as the default
18173 # location of the library.
18174
18175 case $cc_basename in
18176 CC*)
18177 # FIXME: insert proper C++ library support
18178 ld_shlibs_CXX=no
18179 ;;
18180 aCC*)
18181 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'
18182 # Commands to make compiler produce verbose output that lists
18183 # what "hidden" libraries, object files and flags are used when
18184 # linking a shared library.
18185 #
18186 # There doesn't appear to be a way to prevent this compiler from
18187 # explicitly linking system object files so we need to strip them
18188 # from the output so that they don't get included in the library
18189 # dependencies.
18190 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"'
18191 ;;
18192 *)
18193 if test "$GXX" = yes; then
18194 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'
18195 else
18196 # FIXME: insert proper C++ library support
18197 ld_shlibs_CXX=no
18198 fi
18199 ;;
18200 esac
18201 ;;
18202
18203 hpux10*|hpux11*)
18204 if test $with_gnu_ld = no; then
18205 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18206 hardcode_libdir_separator_CXX=:
18207
18208 case $host_cpu in
18209 hppa*64*|ia64*)
18210 ;;
18211 *)
18212 export_dynamic_flag_spec_CXX='${wl}-E'
18213 ;;
18214 esac
18215 fi
18216 case $host_cpu in
18217 hppa*64*|ia64*)
18218 hardcode_direct_CXX=no
18219 hardcode_shlibpath_var_CXX=no
18220 ;;
18221 *)
18222 hardcode_direct_CXX=yes
18223 hardcode_direct_absolute_CXX=yes
18224 hardcode_minus_L_CXX=yes # Not in the search PATH,
18225 # but as the default
18226 # location of the library.
18227 ;;
18228 esac
18229
18230 case $cc_basename in
18231 CC*)
18232 # FIXME: insert proper C++ library support
18233 ld_shlibs_CXX=no
18234 ;;
18235 aCC*)
18236 case $host_cpu in
18237 hppa*64*)
18238 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18239 ;;
18240 ia64*)
18241 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18242 ;;
18243 *)
18244 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18245 ;;
18246 esac
18247 # Commands to make compiler produce verbose output that lists
18248 # what "hidden" libraries, object files and flags are used when
18249 # linking a shared library.
18250 #
18251 # There doesn't appear to be a way to prevent this compiler from
18252 # explicitly linking system object files so we need to strip them
18253 # from the output so that they don't get included in the library
18254 # dependencies.
18255 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"'
18256 ;;
18257 *)
18258 if test "$GXX" = yes; then
18259 if test $with_gnu_ld = no; then
18260 case $host_cpu in
18261 hppa*64*)
18262 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18263 ;;
18264 ia64*)
18265 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18266 ;;
18267 *)
18268 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'
18269 ;;
18270 esac
18271 fi
18272 else
18273 # FIXME: insert proper C++ library support
18274 ld_shlibs_CXX=no
18275 fi
18276 ;;
18277 esac
18278 ;;
18279
18280 interix[3-9]*)
18281 hardcode_direct_CXX=no
18282 hardcode_shlibpath_var_CXX=no
18283 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18284 export_dynamic_flag_spec_CXX='${wl}-E'
18285 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18286 # Instead, shared libraries are loaded at an image base (0x10000000 by
18287 # default) and relocated if they conflict, which is a slow very memory
18288 # consuming and fragmenting process. To avoid this, we pick a random,
18289 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18290 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18291 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'
18292 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'
18293 ;;
18294 irix5* | irix6*)
18295 case $cc_basename in
18296 CC*)
18297 # SGI C++
18298 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'
18299
18300 # Archives containing C++ object files must be created using
18301 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18302 # necessary to make sure instantiated templates are included
18303 # in the archive.
18304 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18305 ;;
18306 *)
18307 if test "$GXX" = yes; then
18308 if test "$with_gnu_ld" = no; then
18309 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'
18310 else
18311 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'
18312 fi
18313 fi
18314 link_all_deplibs_CXX=yes
18315 ;;
18316 esac
18317 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18318 hardcode_libdir_separator_CXX=:
18319 inherit_rpath_CXX=yes
18320 ;;
18321
18322 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18323 case $cc_basename in
18324 KCC*)
18325 # Kuck and Associates, Inc. (KAI) C++ Compiler
18326
18327 # KCC will only create a shared library if the output file
18328 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18329 # to its proper name (with version) after linking.
18330 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'
18331 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'
18332 # Commands to make compiler produce verbose output that lists
18333 # what "hidden" libraries, object files and flags are used when
18334 # linking a shared library.
18335 #
18336 # There doesn't appear to be a way to prevent this compiler from
18337 # explicitly linking system object files so we need to strip them
18338 # from the output so that they don't get included in the library
18339 # dependencies.
18340 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"'
18341
18342 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18344
18345 # Archives containing C++ object files must be created using
18346 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18347 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18348 ;;
18349 icpc* | ecpc* )
18350 # Intel C++
18351 with_gnu_ld=yes
18352 # version 8.0 and above of icpc choke on multiply defined symbols
18353 # if we add $predep_objects and $postdep_objects, however 7.1 and
18354 # earlier do not add the objects themselves.
18355 case `$CC -V 2>&1` in
18356 *"Version 7."*)
18357 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18358 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'
18359 ;;
18360 *) # Version 8.0 or newer
18361 tmp_idyn=
18362 case $host_cpu in
18363 ia64*) tmp_idyn=' -i_dynamic';;
18364 esac
18365 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18366 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'
18367 ;;
18368 esac
18369 archive_cmds_need_lc_CXX=no
18370 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18371 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18372 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18373 ;;
18374 pgCC* | pgcpp*)
18375 # Portland Group C++ compiler
18376 case `$CC -V` in
18377 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18378 prelink_cmds_CXX='tpldir=Template.dir~
18379 rm -rf $tpldir~
18380 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18381 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18382 old_archive_cmds_CXX='tpldir=Template.dir~
18383 rm -rf $tpldir~
18384 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18385 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18386 $RANLIB $oldlib'
18387 archive_cmds_CXX='tpldir=Template.dir~
18388 rm -rf $tpldir~
18389 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18390 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18391 archive_expsym_cmds_CXX='tpldir=Template.dir~
18392 rm -rf $tpldir~
18393 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18394 $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'
18395 ;;
18396 *) # Version 6 and above use weak symbols
18397 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18398 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'
18399 ;;
18400 esac
18401
18402 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18403 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18404 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'
18405 ;;
18406 cxx*)
18407 # Compaq C++
18408 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18409 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'
18410
18411 runpath_var=LD_RUN_PATH
18412 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18413 hardcode_libdir_separator_CXX=:
18414
18415 # Commands to make compiler produce verbose output that lists
18416 # what "hidden" libraries, object files and flags are used when
18417 # linking a shared library.
18418 #
18419 # There doesn't appear to be a way to prevent this compiler from
18420 # explicitly linking system object files so we need to strip them
18421 # from the output so that they don't get included in the library
18422 # dependencies.
18423 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'
18424 ;;
18425 xl* | mpixl* | bgxl*)
18426 # IBM XL 8.0 on PPC, with GNU ld
18427 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18428 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18429 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18430 if test "x$supports_anon_versioning" = xyes; then
18431 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18432 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18433 echo "local: *; };" >> $output_objdir/$libname.ver~
18434 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18435 fi
18436 ;;
18437 *)
18438 case `$CC -V 2>&1 | sed 5q` in
18439 *Sun\ C*)
18440 # Sun C++ 5.9
18441 no_undefined_flag_CXX=' -zdefs'
18442 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18443 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'
18444 hardcode_libdir_flag_spec_CXX='-R$libdir'
18445 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'
18446 compiler_needs_object_CXX=yes
18447
18448 # Not sure whether something based on
18449 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18450 # would be better.
18451 output_verbose_link_cmd='func_echo_all'
18452
18453 # Archives containing C++ object files must be created using
18454 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18455 # necessary to make sure instantiated templates are included
18456 # in the archive.
18457 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18458 ;;
18459 esac
18460 ;;
18461 esac
18462 ;;
18463
18464 lynxos*)
18465 # FIXME: insert proper C++ library support
18466 ld_shlibs_CXX=no
18467 ;;
18468
18469 m88k*)
18470 # FIXME: insert proper C++ library support
18471 ld_shlibs_CXX=no
18472 ;;
18473
18474 mvs*)
18475 case $cc_basename in
18476 cxx*)
18477 # FIXME: insert proper C++ library support
18478 ld_shlibs_CXX=no
18479 ;;
18480 *)
18481 # FIXME: insert proper C++ library support
18482 ld_shlibs_CXX=no
18483 ;;
18484 esac
18485 ;;
18486
18487 netbsd*)
18488 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18489 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18490 wlarc=
18491 hardcode_libdir_flag_spec_CXX='-R$libdir'
18492 hardcode_direct_CXX=yes
18493 hardcode_shlibpath_var_CXX=no
18494 fi
18495 # Workaround some broken pre-1.5 toolchains
18496 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18497 ;;
18498
18499 *nto* | *qnx*)
18500 ld_shlibs_CXX=yes
18501 ;;
18502
18503 openbsd2*)
18504 # C++ shared libraries are fairly broken
18505 ld_shlibs_CXX=no
18506 ;;
18507
18508 openbsd*)
18509 if test -f /usr/libexec/ld.so; then
18510 hardcode_direct_CXX=yes
18511 hardcode_shlibpath_var_CXX=no
18512 hardcode_direct_absolute_CXX=yes
18513 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18514 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18516 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18517 export_dynamic_flag_spec_CXX='${wl}-E'
18518 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18519 fi
18520 output_verbose_link_cmd=func_echo_all
18521 else
18522 ld_shlibs_CXX=no
18523 fi
18524 ;;
18525
18526 osf3* | osf4* | osf5*)
18527 case $cc_basename in
18528 KCC*)
18529 # Kuck and Associates, Inc. (KAI) C++ Compiler
18530
18531 # KCC will only create a shared library if the output file
18532 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18533 # to its proper name (with version) after linking.
18534 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'
18535
18536 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18537 hardcode_libdir_separator_CXX=:
18538
18539 # Archives containing C++ object files must be created using
18540 # the KAI C++ compiler.
18541 case $host in
18542 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18543 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18544 esac
18545 ;;
18546 RCC*)
18547 # Rational C++ 2.4.1
18548 # FIXME: insert proper C++ library support
18549 ld_shlibs_CXX=no
18550 ;;
18551 cxx*)
18552 case $host in
18553 osf3*)
18554 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18555 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'
18556 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18557 ;;
18558 *)
18559 allow_undefined_flag_CXX=' -expect_unresolved \*'
18560 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'
18561 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18562 echo "-hidden">> $lib.exp~
18563 $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~
18564 $RM $lib.exp'
18565 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18566 ;;
18567 esac
18568
18569 hardcode_libdir_separator_CXX=:
18570
18571 # Commands to make compiler produce verbose output that lists
18572 # what "hidden" libraries, object files and flags are used when
18573 # linking a shared library.
18574 #
18575 # There doesn't appear to be a way to prevent this compiler from
18576 # explicitly linking system object files so we need to strip them
18577 # from the output so that they don't get included in the library
18578 # dependencies.
18579 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"'
18580 ;;
18581 *)
18582 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18583 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18584 case $host in
18585 osf3*)
18586 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'
18587 ;;
18588 *)
18589 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'
18590 ;;
18591 esac
18592
18593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18594 hardcode_libdir_separator_CXX=:
18595
18596 # Commands to make compiler produce verbose output that lists
18597 # what "hidden" libraries, object files and flags are used when
18598 # linking a shared library.
18599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18600
18601 else
18602 # FIXME: insert proper C++ library support
18603 ld_shlibs_CXX=no
18604 fi
18605 ;;
18606 esac
18607 ;;
18608
18609 psos*)
18610 # FIXME: insert proper C++ library support
18611 ld_shlibs_CXX=no
18612 ;;
18613
18614 sunos4*)
18615 case $cc_basename in
18616 CC*)
18617 # Sun C++ 4.x
18618 # FIXME: insert proper C++ library support
18619 ld_shlibs_CXX=no
18620 ;;
18621 lcc*)
18622 # Lucid
18623 # FIXME: insert proper C++ library support
18624 ld_shlibs_CXX=no
18625 ;;
18626 *)
18627 # FIXME: insert proper C++ library support
18628 ld_shlibs_CXX=no
18629 ;;
18630 esac
18631 ;;
18632
18633 solaris*)
18634 case $cc_basename in
18635 CC*)
18636 # Sun C++ 4.2, 5.x and Centerline C++
18637 archive_cmds_need_lc_CXX=yes
18638 no_undefined_flag_CXX=' -zdefs'
18639 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18640 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18641 $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'
18642
18643 hardcode_libdir_flag_spec_CXX='-R$libdir'
18644 hardcode_shlibpath_var_CXX=no
18645 case $host_os in
18646 solaris2.[0-5] | solaris2.[0-5].*) ;;
18647 *)
18648 # The compiler driver will combine and reorder linker options,
18649 # but understands `-z linker_flag'.
18650 # Supported since Solaris 2.6 (maybe 2.5.1?)
18651 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18652 ;;
18653 esac
18654 link_all_deplibs_CXX=yes
18655
18656 output_verbose_link_cmd='func_echo_all'
18657
18658 # Archives containing C++ object files must be created using
18659 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18660 # necessary to make sure instantiated templates are included
18661 # in the archive.
18662 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18663 ;;
18664 gcx*)
18665 # Green Hills C++ Compiler
18666 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18667
18668 # The C++ compiler must be used to create the archive.
18669 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18670 ;;
18671 *)
18672 # GNU C++ compiler with Solaris linker
18673 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18674 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18675 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18676 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18677 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18678 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18679
18680 # Commands to make compiler produce verbose output that lists
18681 # what "hidden" libraries, object files and flags are used when
18682 # linking a shared library.
18683 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18684 else
18685 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18686 # platform.
18687 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18688 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18689 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18690
18691 # Commands to make compiler produce verbose output that lists
18692 # what "hidden" libraries, object files and flags are used when
18693 # linking a shared library.
18694 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18695 fi
18696
18697 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18698 case $host_os in
18699 solaris2.[0-5] | solaris2.[0-5].*) ;;
18700 *)
18701 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18702 ;;
18703 esac
18704 fi
18705 ;;
18706 esac
18707 ;;
18708
18709 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18710 no_undefined_flag_CXX='${wl}-z,text'
18711 archive_cmds_need_lc_CXX=no
18712 hardcode_shlibpath_var_CXX=no
18713 runpath_var='LD_RUN_PATH'
18714
18715 case $cc_basename in
18716 CC*)
18717 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18718 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18719 ;;
18720 *)
18721 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18722 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18723 ;;
18724 esac
18725 ;;
18726
18727 sysv5* | sco3.2v5* | sco5v6*)
18728 # Note: We can NOT use -z defs as we might desire, because we do not
18729 # link with -lc, and that would cause any symbols used from libc to
18730 # always be unresolved, which means just about no library would
18731 # ever link correctly. If we're not using GNU ld we use -z text
18732 # though, which does catch some bad symbols but isn't as heavy-handed
18733 # as -z defs.
18734 no_undefined_flag_CXX='${wl}-z,text'
18735 allow_undefined_flag_CXX='${wl}-z,nodefs'
18736 archive_cmds_need_lc_CXX=no
18737 hardcode_shlibpath_var_CXX=no
18738 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18739 hardcode_libdir_separator_CXX=':'
18740 link_all_deplibs_CXX=yes
18741 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18742 runpath_var='LD_RUN_PATH'
18743
18744 case $cc_basename in
18745 CC*)
18746 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18747 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18748 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18749 '"$old_archive_cmds_CXX"
18750 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18751 '"$reload_cmds_CXX"
18752 ;;
18753 *)
18754 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18755 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18756 ;;
18757 esac
18758 ;;
18759
18760 tandem*)
18761 case $cc_basename in
18762 NCC*)
18763 # NonStop-UX NCC 3.20
18764 # FIXME: insert proper C++ library support
18765 ld_shlibs_CXX=no
18766 ;;
18767 *)
18768 # FIXME: insert proper C++ library support
18769 ld_shlibs_CXX=no
18770 ;;
18771 esac
18772 ;;
18773
18774 vxworks*)
18775 # FIXME: insert proper C++ library support
18776 ld_shlibs_CXX=no
18777 ;;
18778
18779 *)
18780 # FIXME: insert proper C++ library support
18781 ld_shlibs_CXX=no
18782 ;;
18783 esac
18784
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18786 $as_echo "$ld_shlibs_CXX" >&6; }
18787 test "$ld_shlibs_CXX" = no && can_build_shared=no
18788
18789 GCC_CXX="$GXX"
18790 LD_CXX="$LD"
18791
18792 ## CAVEAT EMPTOR:
18793 ## There is no encapsulation within the following macros, do not change
18794 ## the running order or otherwise move them around unless you know exactly
18795 ## what you are doing...
18796 # Dependencies to place before and after the object being linked:
18797 predep_objects_CXX=
18798 postdep_objects_CXX=
18799 predeps_CXX=
18800 postdeps_CXX=
18801 compiler_lib_search_path_CXX=
18802
18803 cat > conftest.$ac_ext <<_LT_EOF
18804 class Foo
18805 {
18806 public:
18807 Foo (void) { a = 0; }
18808 private:
18809 int a;
18810 };
18811 _LT_EOF
18812
18813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18814 (eval $ac_compile) 2>&5
18815 ac_status=$?
18816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18817 test $ac_status = 0; }; then
18818 # Parse the compiler output and extract the necessary
18819 # objects, libraries and library flags.
18820
18821 # Sentinel used to keep track of whether or not we are before
18822 # the conftest object file.
18823 pre_test_object_deps_done=no
18824
18825 for p in `eval "$output_verbose_link_cmd"`; do
18826 case $p in
18827
18828 -L* | -R* | -l*)
18829 # Some compilers place space between "-{L,R}" and the path.
18830 # Remove the space.
18831 if test $p = "-L" ||
18832 test $p = "-R"; then
18833 prev=$p
18834 continue
18835 else
18836 prev=
18837 fi
18838
18839 if test "$pre_test_object_deps_done" = no; then
18840 case $p in
18841 -L* | -R*)
18842 # Internal compiler library paths should come after those
18843 # provided the user. The postdeps already come after the
18844 # user supplied libs so there is no need to process them.
18845 if test -z "$compiler_lib_search_path_CXX"; then
18846 compiler_lib_search_path_CXX="${prev}${p}"
18847 else
18848 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18849 fi
18850 ;;
18851 # The "-l" case would never come before the object being
18852 # linked, so don't bother handling this case.
18853 esac
18854 else
18855 if test -z "$postdeps_CXX"; then
18856 postdeps_CXX="${prev}${p}"
18857 else
18858 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18859 fi
18860 fi
18861 ;;
18862
18863 *.$objext)
18864 # This assumes that the test object file only shows up
18865 # once in the compiler output.
18866 if test "$p" = "conftest.$objext"; then
18867 pre_test_object_deps_done=yes
18868 continue
18869 fi
18870
18871 if test "$pre_test_object_deps_done" = no; then
18872 if test -z "$predep_objects_CXX"; then
18873 predep_objects_CXX="$p"
18874 else
18875 predep_objects_CXX="$predep_objects_CXX $p"
18876 fi
18877 else
18878 if test -z "$postdep_objects_CXX"; then
18879 postdep_objects_CXX="$p"
18880 else
18881 postdep_objects_CXX="$postdep_objects_CXX $p"
18882 fi
18883 fi
18884 ;;
18885
18886 *) ;; # Ignore the rest.
18887
18888 esac
18889 done
18890
18891 # Clean up.
18892 rm -f a.out a.exe
18893 else
18894 echo "libtool.m4: error: problem compiling CXX test program"
18895 fi
18896
18897 $RM -f confest.$objext
18898
18899 # PORTME: override above test on systems where it is broken
18900 case $host_os in
18901 interix[3-9]*)
18902 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18903 # hack all around it, let's just trust "g++" to DTRT.
18904 predep_objects_CXX=
18905 postdep_objects_CXX=
18906 postdeps_CXX=
18907 ;;
18908
18909 linux*)
18910 case `$CC -V 2>&1 | sed 5q` in
18911 *Sun\ C*)
18912 # Sun C++ 5.9
18913
18914 # The more standards-conforming stlport4 library is
18915 # incompatible with the Cstd library. Avoid specifying
18916 # it if it's in CXXFLAGS. Ignore libCrun as
18917 # -library=stlport4 depends on it.
18918 case " $CXX $CXXFLAGS " in
18919 *" -library=stlport4 "*)
18920 solaris_use_stlport4=yes
18921 ;;
18922 esac
18923
18924 if test "$solaris_use_stlport4" != yes; then
18925 postdeps_CXX='-library=Cstd -library=Crun'
18926 fi
18927 ;;
18928 esac
18929 ;;
18930
18931 solaris*)
18932 case $cc_basename in
18933 CC*)
18934 # The more standards-conforming stlport4 library is
18935 # incompatible with the Cstd library. Avoid specifying
18936 # it if it's in CXXFLAGS. Ignore libCrun as
18937 # -library=stlport4 depends on it.
18938 case " $CXX $CXXFLAGS " in
18939 *" -library=stlport4 "*)
18940 solaris_use_stlport4=yes
18941 ;;
18942 esac
18943
18944 # Adding this requires a known-good setup of shared libraries for
18945 # Sun compiler versions before 5.6, else PIC objects from an old
18946 # archive will be linked into the output, leading to subtle bugs.
18947 if test "$solaris_use_stlport4" != yes; then
18948 postdeps_CXX='-library=Cstd -library=Crun'
18949 fi
18950 ;;
18951 esac
18952 ;;
18953 esac
18954
18955
18956 case " $postdeps_CXX " in
18957 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18958 esac
18959 compiler_lib_search_dirs_CXX=
18960 if test -n "${compiler_lib_search_path_CXX}"; then
18961 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18962 fi
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994 lt_prog_compiler_wl_CXX=
18995 lt_prog_compiler_pic_CXX=
18996 lt_prog_compiler_static_CXX=
18997
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18999 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19000
19001 # C++ specific cases for pic, static, wl, etc.
19002 if test "$GXX" = yes; then
19003 lt_prog_compiler_wl_CXX='-Wl,'
19004 lt_prog_compiler_static_CXX='-static'
19005
19006 case $host_os in
19007 aix*)
19008 # All AIX code is PIC.
19009 if test "$host_cpu" = ia64; then
19010 # AIX 5 now supports IA64 processor
19011 lt_prog_compiler_static_CXX='-Bstatic'
19012 fi
19013 ;;
19014
19015 amigaos*)
19016 case $host_cpu in
19017 powerpc)
19018 # see comment about AmigaOS4 .so support
19019 lt_prog_compiler_pic_CXX='-fPIC'
19020 ;;
19021 m68k)
19022 # FIXME: we need at least 68020 code to build shared libraries, but
19023 # adding the `-m68020' flag to GCC prevents building anything better,
19024 # like `-m68040'.
19025 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19026 ;;
19027 esac
19028 ;;
19029
19030 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19031 # PIC is the default for these OSes.
19032 ;;
19033 mingw* | cygwin* | os2* | pw32* | cegcc*)
19034 # This hack is so that the source file can tell whether it is being
19035 # built for inclusion in a dll (and should export symbols for example).
19036 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19037 # (--disable-auto-import) libraries
19038 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19039 ;;
19040 darwin* | rhapsody*)
19041 # PIC is the default on this platform
19042 # Common symbols not allowed in MH_DYLIB files
19043 lt_prog_compiler_pic_CXX='-fno-common'
19044 ;;
19045 *djgpp*)
19046 # DJGPP does not support shared libraries at all
19047 lt_prog_compiler_pic_CXX=
19048 ;;
19049 haiku*)
19050 # PIC is the default for Haiku.
19051 # The "-static" flag exists, but is broken.
19052 lt_prog_compiler_static_CXX=
19053 ;;
19054 interix[3-9]*)
19055 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19056 # Instead, we relocate shared libraries at runtime.
19057 ;;
19058 sysv4*MP*)
19059 if test -d /usr/nec; then
19060 lt_prog_compiler_pic_CXX=-Kconform_pic
19061 fi
19062 ;;
19063 hpux*)
19064 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19065 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19066 # sets the default TLS model and affects inlining.
19067 case $host_cpu in
19068 hppa*64*)
19069 ;;
19070 *)
19071 lt_prog_compiler_pic_CXX='-fPIC'
19072 ;;
19073 esac
19074 ;;
19075 *qnx* | *nto*)
19076 # QNX uses GNU C++, but need to define -shared option too, otherwise
19077 # it will coredump.
19078 lt_prog_compiler_pic_CXX='-fPIC -shared'
19079 ;;
19080 *)
19081 lt_prog_compiler_pic_CXX='-fPIC'
19082 ;;
19083 esac
19084 else
19085 case $host_os in
19086 aix[4-9]*)
19087 # All AIX code is PIC.
19088 if test "$host_cpu" = ia64; then
19089 # AIX 5 now supports IA64 processor
19090 lt_prog_compiler_static_CXX='-Bstatic'
19091 else
19092 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19093 fi
19094 ;;
19095 chorus*)
19096 case $cc_basename in
19097 cxch68*)
19098 # Green Hills C++ Compiler
19099 # _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"
19100 ;;
19101 esac
19102 ;;
19103 dgux*)
19104 case $cc_basename in
19105 ec++*)
19106 lt_prog_compiler_pic_CXX='-KPIC'
19107 ;;
19108 ghcx*)
19109 # Green Hills C++ Compiler
19110 lt_prog_compiler_pic_CXX='-pic'
19111 ;;
19112 *)
19113 ;;
19114 esac
19115 ;;
19116 freebsd* | dragonfly*)
19117 # FreeBSD uses GNU C++
19118 ;;
19119 hpux9* | hpux10* | hpux11*)
19120 case $cc_basename in
19121 CC*)
19122 lt_prog_compiler_wl_CXX='-Wl,'
19123 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19124 if test "$host_cpu" != ia64; then
19125 lt_prog_compiler_pic_CXX='+Z'
19126 fi
19127 ;;
19128 aCC*)
19129 lt_prog_compiler_wl_CXX='-Wl,'
19130 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19131 case $host_cpu in
19132 hppa*64*|ia64*)
19133 # +Z the default
19134 ;;
19135 *)
19136 lt_prog_compiler_pic_CXX='+Z'
19137 ;;
19138 esac
19139 ;;
19140 *)
19141 ;;
19142 esac
19143 ;;
19144 interix*)
19145 # This is c89, which is MS Visual C++ (no shared libs)
19146 # Anyone wants to do a port?
19147 ;;
19148 irix5* | irix6* | nonstopux*)
19149 case $cc_basename in
19150 CC*)
19151 lt_prog_compiler_wl_CXX='-Wl,'
19152 lt_prog_compiler_static_CXX='-non_shared'
19153 # CC pic flag -KPIC is the default.
19154 ;;
19155 *)
19156 ;;
19157 esac
19158 ;;
19159 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19160 case $cc_basename in
19161 KCC*)
19162 # KAI C++ Compiler
19163 lt_prog_compiler_wl_CXX='--backend -Wl,'
19164 lt_prog_compiler_pic_CXX='-fPIC'
19165 ;;
19166 ecpc* )
19167 # old Intel C++ for x86_64 which still supported -KPIC.
19168 lt_prog_compiler_wl_CXX='-Wl,'
19169 lt_prog_compiler_pic_CXX='-KPIC'
19170 lt_prog_compiler_static_CXX='-static'
19171 ;;
19172 icpc* )
19173 # Intel C++, used to be incompatible with GCC.
19174 # ICC 10 doesn't accept -KPIC any more.
19175 lt_prog_compiler_wl_CXX='-Wl,'
19176 lt_prog_compiler_pic_CXX='-fPIC'
19177 lt_prog_compiler_static_CXX='-static'
19178 ;;
19179 pgCC* | pgcpp*)
19180 # Portland Group C++ compiler
19181 lt_prog_compiler_wl_CXX='-Wl,'
19182 lt_prog_compiler_pic_CXX='-fpic'
19183 lt_prog_compiler_static_CXX='-Bstatic'
19184 ;;
19185 cxx*)
19186 # Compaq C++
19187 # Make sure the PIC flag is empty. It appears that all Alpha
19188 # Linux and Compaq Tru64 Unix objects are PIC.
19189 lt_prog_compiler_pic_CXX=
19190 lt_prog_compiler_static_CXX='-non_shared'
19191 ;;
19192 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19193 # IBM XL 8.0, 9.0 on PPC and BlueGene
19194 lt_prog_compiler_wl_CXX='-Wl,'
19195 lt_prog_compiler_pic_CXX='-qpic'
19196 lt_prog_compiler_static_CXX='-qstaticlink'
19197 ;;
19198 *)
19199 case `$CC -V 2>&1 | sed 5q` in
19200 *Sun\ C*)
19201 # Sun C++ 5.9
19202 lt_prog_compiler_pic_CXX='-KPIC'
19203 lt_prog_compiler_static_CXX='-Bstatic'
19204 lt_prog_compiler_wl_CXX='-Qoption ld '
19205 ;;
19206 esac
19207 ;;
19208 esac
19209 ;;
19210 lynxos*)
19211 ;;
19212 m88k*)
19213 ;;
19214 mvs*)
19215 case $cc_basename in
19216 cxx*)
19217 lt_prog_compiler_pic_CXX='-W c,exportall'
19218 ;;
19219 *)
19220 ;;
19221 esac
19222 ;;
19223 netbsd*)
19224 ;;
19225 *qnx* | *nto*)
19226 # QNX uses GNU C++, but need to define -shared option too, otherwise
19227 # it will coredump.
19228 lt_prog_compiler_pic_CXX='-fPIC -shared'
19229 ;;
19230 osf3* | osf4* | osf5*)
19231 case $cc_basename in
19232 KCC*)
19233 lt_prog_compiler_wl_CXX='--backend -Wl,'
19234 ;;
19235 RCC*)
19236 # Rational C++ 2.4.1
19237 lt_prog_compiler_pic_CXX='-pic'
19238 ;;
19239 cxx*)
19240 # Digital/Compaq C++
19241 lt_prog_compiler_wl_CXX='-Wl,'
19242 # Make sure the PIC flag is empty. It appears that all Alpha
19243 # Linux and Compaq Tru64 Unix objects are PIC.
19244 lt_prog_compiler_pic_CXX=
19245 lt_prog_compiler_static_CXX='-non_shared'
19246 ;;
19247 *)
19248 ;;
19249 esac
19250 ;;
19251 psos*)
19252 ;;
19253 solaris*)
19254 case $cc_basename in
19255 CC*)
19256 # Sun C++ 4.2, 5.x and Centerline C++
19257 lt_prog_compiler_pic_CXX='-KPIC'
19258 lt_prog_compiler_static_CXX='-Bstatic'
19259 lt_prog_compiler_wl_CXX='-Qoption ld '
19260 ;;
19261 gcx*)
19262 # Green Hills C++ Compiler
19263 lt_prog_compiler_pic_CXX='-PIC'
19264 ;;
19265 *)
19266 ;;
19267 esac
19268 ;;
19269 sunos4*)
19270 case $cc_basename in
19271 CC*)
19272 # Sun C++ 4.x
19273 lt_prog_compiler_pic_CXX='-pic'
19274 lt_prog_compiler_static_CXX='-Bstatic'
19275 ;;
19276 lcc*)
19277 # Lucid
19278 lt_prog_compiler_pic_CXX='-pic'
19279 ;;
19280 *)
19281 ;;
19282 esac
19283 ;;
19284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19285 case $cc_basename in
19286 CC*)
19287 lt_prog_compiler_wl_CXX='-Wl,'
19288 lt_prog_compiler_pic_CXX='-KPIC'
19289 lt_prog_compiler_static_CXX='-Bstatic'
19290 ;;
19291 esac
19292 ;;
19293 tandem*)
19294 case $cc_basename in
19295 NCC*)
19296 # NonStop-UX NCC 3.20
19297 lt_prog_compiler_pic_CXX='-KPIC'
19298 ;;
19299 *)
19300 ;;
19301 esac
19302 ;;
19303 vxworks*)
19304 ;;
19305 *)
19306 lt_prog_compiler_can_build_shared_CXX=no
19307 ;;
19308 esac
19309 fi
19310
19311 case $host_os in
19312 # For platforms which do not support PIC, -DPIC is meaningless:
19313 *djgpp*)
19314 lt_prog_compiler_pic_CXX=
19315 ;;
19316 *)
19317 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19318 ;;
19319 esac
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19321 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19322
19323
19324
19325 #
19326 # Check to make sure the PIC flag actually works.
19327 #
19328 if test -n "$lt_prog_compiler_pic_CXX"; then
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19330 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19331 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19332 $as_echo_n "(cached) " >&6
19333 else
19334 lt_cv_prog_compiler_pic_works_CXX=no
19335 ac_outfile=conftest.$ac_objext
19336 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19337 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19338 # Insert the option either (1) after the last *FLAGS variable, or
19339 # (2) before a word containing "conftest.", or (3) at the end.
19340 # Note that $ac_compile itself does not contain backslashes and begins
19341 # with a dollar sign (not a hyphen), so the echo should work correctly.
19342 # The option is referenced via a variable to avoid confusing sed.
19343 lt_compile=`echo "$ac_compile" | $SED \
19344 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19346 -e 's:$: $lt_compiler_flag:'`
19347 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19348 (eval "$lt_compile" 2>conftest.err)
19349 ac_status=$?
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 if (exit $ac_status) && test -s "$ac_outfile"; then
19353 # The compiler can only warn and ignore the option if not recognized
19354 # So say no if there are warnings other than the usual output.
19355 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19356 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19357 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19358 lt_cv_prog_compiler_pic_works_CXX=yes
19359 fi
19360 fi
19361 $RM conftest*
19362
19363 fi
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19365 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19366
19367 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19368 case $lt_prog_compiler_pic_CXX in
19369 "" | " "*) ;;
19370 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19371 esac
19372 else
19373 lt_prog_compiler_pic_CXX=
19374 lt_prog_compiler_can_build_shared_CXX=no
19375 fi
19376
19377 fi
19378
19379
19380
19381 #
19382 # Check to make sure the static flag actually works.
19383 #
19384 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19386 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19387 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19388 $as_echo_n "(cached) " >&6
19389 else
19390 lt_cv_prog_compiler_static_works_CXX=no
19391 save_LDFLAGS="$LDFLAGS"
19392 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19393 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19394 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19395 # The linker can only warn and ignore the option if not recognized
19396 # So say no if there are warnings
19397 if test -s conftest.err; then
19398 # Append any errors to the config.log.
19399 cat conftest.err 1>&5
19400 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19401 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19402 if diff conftest.exp conftest.er2 >/dev/null; then
19403 lt_cv_prog_compiler_static_works_CXX=yes
19404 fi
19405 else
19406 lt_cv_prog_compiler_static_works_CXX=yes
19407 fi
19408 fi
19409 $RM -r conftest*
19410 LDFLAGS="$save_LDFLAGS"
19411
19412 fi
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19414 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19415
19416 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19417 :
19418 else
19419 lt_prog_compiler_static_CXX=
19420 fi
19421
19422
19423
19424
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19426 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19427 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19428 $as_echo_n "(cached) " >&6
19429 else
19430 lt_cv_prog_compiler_c_o_CXX=no
19431 $RM -r conftest 2>/dev/null
19432 mkdir conftest
19433 cd conftest
19434 mkdir out
19435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19436
19437 lt_compiler_flag="-o out/conftest2.$ac_objext"
19438 # Insert the option either (1) after the last *FLAGS variable, or
19439 # (2) before a word containing "conftest.", or (3) at the end.
19440 # Note that $ac_compile itself does not contain backslashes and begins
19441 # with a dollar sign (not a hyphen), so the echo should work correctly.
19442 lt_compile=`echo "$ac_compile" | $SED \
19443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19445 -e 's:$: $lt_compiler_flag:'`
19446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19447 (eval "$lt_compile" 2>out/conftest.err)
19448 ac_status=$?
19449 cat out/conftest.err >&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19452 then
19453 # The compiler can only warn and ignore the option if not recognized
19454 # So say no if there are warnings
19455 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19456 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19457 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19458 lt_cv_prog_compiler_c_o_CXX=yes
19459 fi
19460 fi
19461 chmod u+w . 2>&5
19462 $RM conftest*
19463 # SGI C++ compiler will create directory out/ii_files/ for
19464 # template instantiation
19465 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19466 $RM out/* && rmdir out
19467 cd ..
19468 $RM -r conftest
19469 $RM conftest*
19470
19471 fi
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19473 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19474
19475
19476
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19478 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19479 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19480 $as_echo_n "(cached) " >&6
19481 else
19482 lt_cv_prog_compiler_c_o_CXX=no
19483 $RM -r conftest 2>/dev/null
19484 mkdir conftest
19485 cd conftest
19486 mkdir out
19487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19488
19489 lt_compiler_flag="-o out/conftest2.$ac_objext"
19490 # Insert the option either (1) after the last *FLAGS variable, or
19491 # (2) before a word containing "conftest.", or (3) at the end.
19492 # Note that $ac_compile itself does not contain backslashes and begins
19493 # with a dollar sign (not a hyphen), so the echo should work correctly.
19494 lt_compile=`echo "$ac_compile" | $SED \
19495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19497 -e 's:$: $lt_compiler_flag:'`
19498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19499 (eval "$lt_compile" 2>out/conftest.err)
19500 ac_status=$?
19501 cat out/conftest.err >&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19504 then
19505 # The compiler can only warn and ignore the option if not recognized
19506 # So say no if there are warnings
19507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
19508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19510 lt_cv_prog_compiler_c_o_CXX=yes
19511 fi
19512 fi
19513 chmod u+w . 2>&5
19514 $RM conftest*
19515 # SGI C++ compiler will create directory out/ii_files/ for
19516 # template instantiation
19517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19518 $RM out/* && rmdir out
19519 cd ..
19520 $RM -r conftest
19521 $RM conftest*
19522
19523 fi
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19525 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19526
19527
19528
19529
19530 hard_links="nottested"
19531 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19532 # do not overwrite the value of need_locks provided by the user
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19534 $as_echo_n "checking if we can lock with hard links... " >&6; }
19535 hard_links=yes
19536 $RM conftest*
19537 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19538 touch conftest.a
19539 ln conftest.a conftest.b 2>&5 || hard_links=no
19540 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19542 $as_echo "$hard_links" >&6; }
19543 if test "$hard_links" = no; then
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19545 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19546 need_locks=warn
19547 fi
19548 else
19549 need_locks=no
19550 fi
19551
19552
19553
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19555 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19556
19557 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19558 case $host_os in
19559 aix[4-9]*)
19560 # If we're using GNU nm, then we don't want the "-C" option.
19561 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19562 # Also, AIX nm treats weak defined symbols like other global defined
19563 # symbols, whereas GNU nm marks them as "W".
19564 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19565 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'
19566 else
19567 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'
19568 fi
19569 ;;
19570 pw32*)
19571 export_symbols_cmds_CXX="$ltdll_cmds"
19572 ;;
19573 cygwin* | mingw* | cegcc*)
19574 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'
19575 ;;
19576 *)
19577 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19578 ;;
19579 esac
19580 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19581
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19583 $as_echo "$ld_shlibs_CXX" >&6; }
19584 test "$ld_shlibs_CXX" = no && can_build_shared=no
19585
19586 with_gnu_ld_CXX=$with_gnu_ld
19587
19588
19589
19590
19591
19592
19593 #
19594 # Do we need to explicitly link libc?
19595 #
19596 case "x$archive_cmds_need_lc_CXX" in
19597 x|xyes)
19598 # Assume -lc should be added
19599 archive_cmds_need_lc_CXX=yes
19600
19601 if test "$enable_shared" = yes && test "$GCC" = yes; then
19602 case $archive_cmds_CXX in
19603 *'~'*)
19604 # FIXME: we may have to deal with multi-command sequences.
19605 ;;
19606 '$CC '*)
19607 # Test whether the compiler implicitly links with -lc since on some
19608 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19609 # to ld, don't add -lc before -lgcc.
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19611 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19612 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 $RM conftest*
19616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19617
19618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19619 (eval $ac_compile) 2>&5
19620 ac_status=$?
19621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622 test $ac_status = 0; } 2>conftest.err; then
19623 soname=conftest
19624 lib=conftest
19625 libobjs=conftest.$ac_objext
19626 deplibs=
19627 wl=$lt_prog_compiler_wl_CXX
19628 pic_flag=$lt_prog_compiler_pic_CXX
19629 compiler_flags=-v
19630 linker_flags=-v
19631 verstring=
19632 output_objdir=.
19633 libname=conftest
19634 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19635 allow_undefined_flag_CXX=
19636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19637 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19638 ac_status=$?
19639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19640 test $ac_status = 0; }
19641 then
19642 lt_cv_archive_cmds_need_lc_CXX=no
19643 else
19644 lt_cv_archive_cmds_need_lc_CXX=yes
19645 fi
19646 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19647 else
19648 cat conftest.err 1>&5
19649 fi
19650 $RM conftest*
19651
19652 fi
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19654 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19655 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19656 ;;
19657 esac
19658 fi
19659 ;;
19660 esac
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19726 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19727
19728 library_names_spec=
19729 libname_spec='lib$name'
19730 soname_spec=
19731 shrext_cmds=".so"
19732 postinstall_cmds=
19733 postuninstall_cmds=
19734 finish_cmds=
19735 finish_eval=
19736 shlibpath_var=
19737 shlibpath_overrides_runpath=unknown
19738 version_type=none
19739 dynamic_linker="$host_os ld.so"
19740 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19741 need_lib_prefix=unknown
19742 hardcode_into_libs=no
19743
19744 # when you set need_version to no, make sure it does not cause -set_version
19745 # flags to be left without arguments
19746 need_version=unknown
19747
19748 case $host_os in
19749 aix3*)
19750 version_type=linux
19751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19752 shlibpath_var=LIBPATH
19753
19754 # AIX 3 has no versioning support, so we append a major version to the name.
19755 soname_spec='${libname}${release}${shared_ext}$major'
19756 ;;
19757
19758 aix[4-9]*)
19759 version_type=linux
19760 need_lib_prefix=no
19761 need_version=no
19762 hardcode_into_libs=yes
19763 if test "$host_cpu" = ia64; then
19764 # AIX 5 supports IA64
19765 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19766 shlibpath_var=LD_LIBRARY_PATH
19767 else
19768 # With GCC up to 2.95.x, collect2 would create an import file
19769 # for dependence libraries. The import file would start with
19770 # the line `#! .'. This would cause the generated library to
19771 # depend on `.', always an invalid library. This was fixed in
19772 # development snapshots of GCC prior to 3.0.
19773 case $host_os in
19774 aix4 | aix4.[01] | aix4.[01].*)
19775 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19776 echo ' yes '
19777 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19778 :
19779 else
19780 can_build_shared=no
19781 fi
19782 ;;
19783 esac
19784 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19785 # soname into executable. Probably we can add versioning support to
19786 # collect2, so additional links can be useful in future.
19787 if test "$aix_use_runtimelinking" = yes; then
19788 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19789 # instead of lib<name>.a to let people know that these are not
19790 # typical AIX shared libraries.
19791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19792 else
19793 # We preserve .a as extension for shared libraries through AIX4.2
19794 # and later when we are not doing run time linking.
19795 library_names_spec='${libname}${release}.a $libname.a'
19796 soname_spec='${libname}${release}${shared_ext}$major'
19797 fi
19798 shlibpath_var=LIBPATH
19799 fi
19800 ;;
19801
19802 amigaos*)
19803 case $host_cpu in
19804 powerpc)
19805 # Since July 2007 AmigaOS4 officially supports .so libraries.
19806 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19808 ;;
19809 m68k)
19810 library_names_spec='$libname.ixlibrary $libname.a'
19811 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19812 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'
19813 ;;
19814 esac
19815 ;;
19816
19817 beos*)
19818 library_names_spec='${libname}${shared_ext}'
19819 dynamic_linker="$host_os ld.so"
19820 shlibpath_var=LIBRARY_PATH
19821 ;;
19822
19823 bsdi[45]*)
19824 version_type=linux
19825 need_version=no
19826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19827 soname_spec='${libname}${release}${shared_ext}$major'
19828 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19829 shlibpath_var=LD_LIBRARY_PATH
19830 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19831 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19832 # the default ld.so.conf also contains /usr/contrib/lib and
19833 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19834 # libtool to hard-code these into programs
19835 ;;
19836
19837 cygwin* | mingw* | pw32* | cegcc*)
19838 version_type=windows
19839 shrext_cmds=".dll"
19840 need_version=no
19841 need_lib_prefix=no
19842
19843 case $GCC,$host_os in
19844 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19845 library_names_spec='$libname.dll.a'
19846 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19847 postinstall_cmds='base_file=`basename \${file}`~
19848 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19849 dldir=$destdir/`dirname \$dlpath`~
19850 test -d \$dldir || mkdir -p \$dldir~
19851 $install_prog $dir/$dlname \$dldir/$dlname~
19852 chmod a+x \$dldir/$dlname~
19853 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19854 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19855 fi'
19856 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19857 dlpath=$dir/\$dldll~
19858 $RM \$dlpath'
19859 shlibpath_overrides_runpath=yes
19860
19861 case $host_os in
19862 cygwin*)
19863 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19864 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19865
19866 ;;
19867 mingw* | cegcc*)
19868 # MinGW DLLs use traditional 'lib' prefix
19869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19870 ;;
19871 pw32*)
19872 # pw32 DLLs use 'pw' prefix rather than 'lib'
19873 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19874 ;;
19875 esac
19876 ;;
19877
19878 *)
19879 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19880 ;;
19881 esac
19882 dynamic_linker='Win32 ld.exe'
19883 # FIXME: first we should search . and the directory the executable is in
19884 shlibpath_var=PATH
19885 ;;
19886
19887 darwin* | rhapsody*)
19888 dynamic_linker="$host_os dyld"
19889 version_type=darwin
19890 need_lib_prefix=no
19891 need_version=no
19892 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19893 soname_spec='${libname}${release}${major}$shared_ext'
19894 shlibpath_overrides_runpath=yes
19895 shlibpath_var=DYLD_LIBRARY_PATH
19896 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19897
19898 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19899 ;;
19900
19901 dgux*)
19902 version_type=linux
19903 need_lib_prefix=no
19904 need_version=no
19905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19906 soname_spec='${libname}${release}${shared_ext}$major'
19907 shlibpath_var=LD_LIBRARY_PATH
19908 ;;
19909
19910 freebsd1*)
19911 dynamic_linker=no
19912 ;;
19913
19914 freebsd* | dragonfly*)
19915 # DragonFly does not have aout. When/if they implement a new
19916 # versioning mechanism, adjust this.
19917 if test -x /usr/bin/objformat; then
19918 objformat=`/usr/bin/objformat`
19919 else
19920 case $host_os in
19921 freebsd[123]*) objformat=aout ;;
19922 *) objformat=elf ;;
19923 esac
19924 fi
19925 version_type=freebsd-$objformat
19926 case $version_type in
19927 freebsd-elf*)
19928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19929 need_version=no
19930 need_lib_prefix=no
19931 ;;
19932 freebsd-*)
19933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19934 need_version=yes
19935 ;;
19936 esac
19937 shlibpath_var=LD_LIBRARY_PATH
19938 case $host_os in
19939 freebsd2*)
19940 shlibpath_overrides_runpath=yes
19941 ;;
19942 freebsd3.[01]* | freebsdelf3.[01]*)
19943 shlibpath_overrides_runpath=yes
19944 hardcode_into_libs=yes
19945 ;;
19946 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19947 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19948 shlibpath_overrides_runpath=no
19949 hardcode_into_libs=yes
19950 ;;
19951 *) # from 4.6 on, and DragonFly
19952 shlibpath_overrides_runpath=yes
19953 hardcode_into_libs=yes
19954 ;;
19955 esac
19956 ;;
19957
19958 gnu*)
19959 version_type=linux
19960 need_lib_prefix=no
19961 need_version=no
19962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19963 soname_spec='${libname}${release}${shared_ext}$major'
19964 shlibpath_var=LD_LIBRARY_PATH
19965 hardcode_into_libs=yes
19966 ;;
19967
19968 haiku*)
19969 version_type=linux
19970 need_lib_prefix=no
19971 need_version=no
19972 dynamic_linker="$host_os runtime_loader"
19973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19974 soname_spec='${libname}${release}${shared_ext}$major'
19975 shlibpath_var=LIBRARY_PATH
19976 shlibpath_overrides_runpath=yes
19977 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
19978 hardcode_into_libs=yes
19979 ;;
19980
19981 hpux9* | hpux10* | hpux11*)
19982 # Give a soname corresponding to the major version so that dld.sl refuses to
19983 # link against other versions.
19984 version_type=sunos
19985 need_lib_prefix=no
19986 need_version=no
19987 case $host_cpu in
19988 ia64*)
19989 shrext_cmds='.so'
19990 hardcode_into_libs=yes
19991 dynamic_linker="$host_os dld.so"
19992 shlibpath_var=LD_LIBRARY_PATH
19993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19995 soname_spec='${libname}${release}${shared_ext}$major'
19996 if test "X$HPUX_IA64_MODE" = X32; then
19997 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19998 else
19999 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20000 fi
20001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20002 ;;
20003 hppa*64*)
20004 shrext_cmds='.sl'
20005 hardcode_into_libs=yes
20006 dynamic_linker="$host_os dld.sl"
20007 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20008 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20010 soname_spec='${libname}${release}${shared_ext}$major'
20011 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20013 ;;
20014 *)
20015 shrext_cmds='.sl'
20016 dynamic_linker="$host_os dld.sl"
20017 shlibpath_var=SHLIB_PATH
20018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20020 soname_spec='${libname}${release}${shared_ext}$major'
20021 ;;
20022 esac
20023 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20024 postinstall_cmds='chmod 555 $lib'
20025 # or fails outright, so override atomically:
20026 install_override_mode=555
20027 ;;
20028
20029 interix[3-9]*)
20030 version_type=linux
20031 need_lib_prefix=no
20032 need_version=no
20033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20036 shlibpath_var=LD_LIBRARY_PATH
20037 shlibpath_overrides_runpath=no
20038 hardcode_into_libs=yes
20039 ;;
20040
20041 irix5* | irix6* | nonstopux*)
20042 case $host_os in
20043 nonstopux*) version_type=nonstopux ;;
20044 *)
20045 if test "$lt_cv_prog_gnu_ld" = yes; then
20046 version_type=linux
20047 else
20048 version_type=irix
20049 fi ;;
20050 esac
20051 need_lib_prefix=no
20052 need_version=no
20053 soname_spec='${libname}${release}${shared_ext}$major'
20054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20055 case $host_os in
20056 irix5* | nonstopux*)
20057 libsuff= shlibsuff=
20058 ;;
20059 *)
20060 case $LD in # libtool.m4 will add one of these switches to LD
20061 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20062 libsuff= shlibsuff= libmagic=32-bit;;
20063 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20064 libsuff=32 shlibsuff=N32 libmagic=N32;;
20065 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20066 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20067 *) libsuff= shlibsuff= libmagic=never-match;;
20068 esac
20069 ;;
20070 esac
20071 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20072 shlibpath_overrides_runpath=no
20073 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20074 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20075 hardcode_into_libs=yes
20076 ;;
20077
20078 # No shared lib support for Linux oldld, aout, or coff.
20079 linux*oldld* | linux*aout* | linux*coff*)
20080 dynamic_linker=no
20081 ;;
20082
20083 # This must be Linux ELF.
20084 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20085 version_type=linux
20086 need_lib_prefix=no
20087 need_version=no
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20089 soname_spec='${libname}${release}${shared_ext}$major'
20090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20091 shlibpath_var=LD_LIBRARY_PATH
20092 shlibpath_overrides_runpath=no
20093
20094 # Some binutils ld are patched to set DT_RUNPATH
20095 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20096 $as_echo_n "(cached) " >&6
20097 else
20098 lt_cv_shlibpath_overrides_runpath=no
20099 save_LDFLAGS=$LDFLAGS
20100 save_libdir=$libdir
20101 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20102 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104 /* end confdefs.h. */
20105
20106 int
20107 main ()
20108 {
20109
20110 ;
20111 return 0;
20112 }
20113 _ACEOF
20114 if ac_fn_cxx_try_link "$LINENO"; then :
20115 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20116 lt_cv_shlibpath_overrides_runpath=yes
20117 fi
20118 fi
20119 rm -f core conftest.err conftest.$ac_objext \
20120 conftest$ac_exeext conftest.$ac_ext
20121 LDFLAGS=$save_LDFLAGS
20122 libdir=$save_libdir
20123
20124 fi
20125
20126 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20127
20128 # This implies no fast_install, which is unacceptable.
20129 # Some rework will be needed to allow for fast_install
20130 # before this can be enabled.
20131 hardcode_into_libs=yes
20132
20133 # Append ld.so.conf contents to the search path
20134 if test -f /etc/ld.so.conf; then
20135 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' ' '`
20136 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20137 fi
20138
20139 # We used to test for /lib/ld.so.1 and disable shared libraries on
20140 # powerpc, because MkLinux only supported shared libraries with the
20141 # GNU dynamic linker. Since this was broken with cross compilers,
20142 # most powerpc-linux boxes support dynamic linking these days and
20143 # people can always --disable-shared, the test was removed, and we
20144 # assume the GNU/Linux dynamic linker is in use.
20145 dynamic_linker='GNU/Linux ld.so'
20146 ;;
20147
20148 netbsd*)
20149 version_type=sunos
20150 need_lib_prefix=no
20151 need_version=no
20152 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20154 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20155 dynamic_linker='NetBSD (a.out) ld.so'
20156 else
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 dynamic_linker='NetBSD ld.elf_so'
20160 fi
20161 shlibpath_var=LD_LIBRARY_PATH
20162 shlibpath_overrides_runpath=yes
20163 hardcode_into_libs=yes
20164 ;;
20165
20166 newsos6)
20167 version_type=linux
20168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20169 shlibpath_var=LD_LIBRARY_PATH
20170 shlibpath_overrides_runpath=yes
20171 ;;
20172
20173 *nto* | *qnx*)
20174 version_type=qnx
20175 need_lib_prefix=no
20176 need_version=no
20177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20178 soname_spec='${libname}${release}${shared_ext}$major'
20179 shlibpath_var=LD_LIBRARY_PATH
20180 shlibpath_overrides_runpath=no
20181 hardcode_into_libs=yes
20182 dynamic_linker='ldqnx.so'
20183 ;;
20184
20185 openbsd*)
20186 version_type=sunos
20187 sys_lib_dlsearch_path_spec="/usr/lib"
20188 need_lib_prefix=no
20189 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20190 case $host_os in
20191 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20192 *) need_version=no ;;
20193 esac
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20196 shlibpath_var=LD_LIBRARY_PATH
20197 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20198 case $host_os in
20199 openbsd2.[89] | openbsd2.[89].*)
20200 shlibpath_overrides_runpath=no
20201 ;;
20202 *)
20203 shlibpath_overrides_runpath=yes
20204 ;;
20205 esac
20206 else
20207 shlibpath_overrides_runpath=yes
20208 fi
20209 ;;
20210
20211 os2*)
20212 libname_spec='$name'
20213 shrext_cmds=".dll"
20214 need_lib_prefix=no
20215 library_names_spec='$libname${shared_ext} $libname.a'
20216 dynamic_linker='OS/2 ld.exe'
20217 shlibpath_var=LIBPATH
20218 ;;
20219
20220 osf3* | osf4* | osf5*)
20221 version_type=osf
20222 need_lib_prefix=no
20223 need_version=no
20224 soname_spec='${libname}${release}${shared_ext}$major'
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20226 shlibpath_var=LD_LIBRARY_PATH
20227 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20228 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20229 ;;
20230
20231 rdos*)
20232 dynamic_linker=no
20233 ;;
20234
20235 solaris*)
20236 version_type=linux
20237 need_lib_prefix=no
20238 need_version=no
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240 soname_spec='${libname}${release}${shared_ext}$major'
20241 shlibpath_var=LD_LIBRARY_PATH
20242 shlibpath_overrides_runpath=yes
20243 hardcode_into_libs=yes
20244 # ldd complains unless libraries are executable
20245 postinstall_cmds='chmod +x $lib'
20246 ;;
20247
20248 sunos4*)
20249 version_type=sunos
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20251 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20252 shlibpath_var=LD_LIBRARY_PATH
20253 shlibpath_overrides_runpath=yes
20254 if test "$with_gnu_ld" = yes; then
20255 need_lib_prefix=no
20256 fi
20257 need_version=yes
20258 ;;
20259
20260 sysv4 | sysv4.3*)
20261 version_type=linux
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 case $host_vendor in
20266 sni)
20267 shlibpath_overrides_runpath=no
20268 need_lib_prefix=no
20269 runpath_var=LD_RUN_PATH
20270 ;;
20271 siemens)
20272 need_lib_prefix=no
20273 ;;
20274 motorola)
20275 need_lib_prefix=no
20276 need_version=no
20277 shlibpath_overrides_runpath=no
20278 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20279 ;;
20280 esac
20281 ;;
20282
20283 sysv4*MP*)
20284 if test -d /usr/nec ;then
20285 version_type=linux
20286 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20287 soname_spec='$libname${shared_ext}.$major'
20288 shlibpath_var=LD_LIBRARY_PATH
20289 fi
20290 ;;
20291
20292 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20293 version_type=freebsd-elf
20294 need_lib_prefix=no
20295 need_version=no
20296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20297 soname_spec='${libname}${release}${shared_ext}$major'
20298 shlibpath_var=LD_LIBRARY_PATH
20299 shlibpath_overrides_runpath=yes
20300 hardcode_into_libs=yes
20301 if test "$with_gnu_ld" = yes; then
20302 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20303 else
20304 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20305 case $host_os in
20306 sco3.2v5*)
20307 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20308 ;;
20309 esac
20310 fi
20311 sys_lib_dlsearch_path_spec='/usr/lib'
20312 ;;
20313
20314 tpf*)
20315 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20316 version_type=linux
20317 need_lib_prefix=no
20318 need_version=no
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20320 shlibpath_var=LD_LIBRARY_PATH
20321 shlibpath_overrides_runpath=no
20322 hardcode_into_libs=yes
20323 ;;
20324
20325 uts4*)
20326 version_type=linux
20327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20328 soname_spec='${libname}${release}${shared_ext}$major'
20329 shlibpath_var=LD_LIBRARY_PATH
20330 ;;
20331
20332 *)
20333 dynamic_linker=no
20334 ;;
20335 esac
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20337 $as_echo "$dynamic_linker" >&6; }
20338 test "$dynamic_linker" = no && can_build_shared=no
20339
20340 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20341 if test "$GCC" = yes; then
20342 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20343 fi
20344
20345 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20346 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20347 fi
20348 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20349 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20350 fi
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363
20364
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379
20380
20381
20382
20383
20384
20385
20386
20387
20388
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20390 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20391 hardcode_action_CXX=
20392 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20393 test -n "$runpath_var_CXX" ||
20394 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20395
20396 # We can hardcode non-existent directories.
20397 if test "$hardcode_direct_CXX" != no &&
20398 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20399 # have to relink, otherwise we might link with an installed library
20400 # when we should be linking with a yet-to-be-installed one
20401 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20402 test "$hardcode_minus_L_CXX" != no; then
20403 # Linking always hardcodes the temporary library directory.
20404 hardcode_action_CXX=relink
20405 else
20406 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20407 hardcode_action_CXX=immediate
20408 fi
20409 else
20410 # We cannot hardcode anything, or else we can only hardcode existing
20411 # directories.
20412 hardcode_action_CXX=unsupported
20413 fi
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20415 $as_echo "$hardcode_action_CXX" >&6; }
20416
20417 if test "$hardcode_action_CXX" = relink ||
20418 test "$inherit_rpath_CXX" = yes; then
20419 # Fast installation is not supported
20420 enable_fast_install=no
20421 elif test "$shlibpath_overrides_runpath" = yes ||
20422 test "$enable_shared" = no; then
20423 # Fast installation is not necessary
20424 enable_fast_install=needless
20425 fi
20426
20427
20428
20429
20430
20431
20432
20433 fi # test -n "$compiler"
20434
20435 CC=$lt_save_CC
20436 LDCXX=$LD
20437 LD=$lt_save_LD
20438 GCC=$lt_save_GCC
20439 with_gnu_ld=$lt_save_with_gnu_ld
20440 lt_cv_path_LDCXX=$lt_cv_path_LD
20441 lt_cv_path_LD=$lt_save_path_LD
20442 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20443 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20444 fi # test "$_lt_caught_CXX_error" != yes
20445
20446 ac_ext=c
20447 ac_cpp='$CPP $CPPFLAGS'
20448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467 # Only expand once:
20468
20469
20470
20471
20472
20473 # Identify the assembler which will work hand-in-glove with the newly
20474 # built GCC, so that we can examine its features. This is the assembler
20475 # which will be driven by the driver program.
20476 #
20477 # If build != host, and we aren't building gas in-tree, we identify a
20478 # build->target assembler and hope that it will have the same features
20479 # as the host->target assembler we'll be using.
20480 gcc_cv_gas_major_version=
20481 gcc_cv_gas_minor_version=
20482 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20483
20484 if test "${gcc_cv_as+set}" = set; then :
20485
20486 else
20487
20488 if test -x "$DEFAULT_ASSEMBLER"; then
20489 gcc_cv_as="$DEFAULT_ASSEMBLER"
20490 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20491 && test -f ../gas/Makefile \
20492 && test x$build = x$host; then
20493 gcc_cv_as=../gas/as-new$build_exeext
20494 elif test -x as$build_exeext; then
20495 # Build using assembler in the current directory.
20496 gcc_cv_as=./as$build_exeext
20497 elif test -x $AS_FOR_TARGET; then
20498 gcc_cv_as="$AS_FOR_TARGET"
20499 else
20500 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20501 set dummy $AS_FOR_TARGET; ac_word=$2
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20503 $as_echo_n "checking for $ac_word... " >&6; }
20504 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20505 $as_echo_n "(cached) " >&6
20506 else
20507 case $gcc_cv_as in
20508 [\\/]* | ?:[\\/]*)
20509 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20510 ;;
20511 *)
20512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20513 for as_dir in $PATH
20514 do
20515 IFS=$as_save_IFS
20516 test -z "$as_dir" && as_dir=.
20517 for ac_exec_ext in '' $ac_executable_extensions; do
20518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20519 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20521 break 2
20522 fi
20523 done
20524 done
20525 IFS=$as_save_IFS
20526
20527 ;;
20528 esac
20529 fi
20530 gcc_cv_as=$ac_cv_path_gcc_cv_as
20531 if test -n "$gcc_cv_as"; then
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20533 $as_echo "$gcc_cv_as" >&6; }
20534 else
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20536 $as_echo "no" >&6; }
20537 fi
20538
20539
20540 fi
20541 fi
20542
20543 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20544
20545 case "$ORIGINAL_AS_FOR_TARGET" in
20546 ./as | ./as$build_exeext) ;;
20547 *) ac_config_files="$ac_config_files as:exec-tool.in"
20548 ;;
20549 esac
20550
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20552 $as_echo_n "checking what assembler to use... " >&6; }
20553 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20554 # Single tree build which includes gas. We want to prefer it
20555 # over whatever linker top-level may have detected, since
20556 # we'll use what we're building after installation anyway.
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20558 $as_echo "newly built gas" >&6; }
20559 in_tree_gas=yes
20560 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20561 for f in $gcc_cv_as_bfd_srcdir/configure \
20562 $gcc_cv_as_gas_srcdir/configure \
20563 $gcc_cv_as_gas_srcdir/configure.in \
20564 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20565 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20566 if test x$gcc_cv_gas_version != x; then
20567 break
20568 fi
20569 done
20570 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20571 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20572 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20573 case $gcc_cv_gas_patch_version in
20574 "") gcc_cv_gas_patch_version="0" ;;
20575 esac
20576 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20577 + $gcc_cv_gas_minor_version \) \* 1000 \
20578 + $gcc_cv_gas_patch_version`
20579
20580 in_tree_gas_is_elf=no
20581 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20582 || (grep 'obj_format = multi' ../gas/Makefile \
20583 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20584 then
20585 in_tree_gas_is_elf=yes
20586 fi
20587 else
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20589 $as_echo "$gcc_cv_as" >&6; }
20590 in_tree_gas=no
20591 fi
20592
20593 # Identify the linker which will work hand-in-glove with the newly
20594 # built GCC, so that we can examine its features. This is the linker
20595 # which will be driven by the driver program.
20596 #
20597 # If build != host, and we aren't building gas in-tree, we identify a
20598 # build->target linker and hope that it will have the same features
20599 # as the host->target linker we'll be using.
20600 gcc_cv_gld_major_version=
20601 gcc_cv_gld_minor_version=
20602 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20603 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20604
20605 if test "${gcc_cv_ld+set}" = set; then :
20606
20607 else
20608
20609 if test -x "$DEFAULT_LINKER"; then
20610 gcc_cv_ld="$DEFAULT_LINKER"
20611 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20612 && test -f ../ld/Makefile \
20613 && test x$build = x$host; then
20614 gcc_cv_ld=../ld/ld-new$build_exeext
20615 elif test -x collect-ld$build_exeext; then
20616 # Build using linker in the current directory.
20617 gcc_cv_ld=./collect-ld$build_exeext
20618 elif test -x $LD_FOR_TARGET; then
20619 gcc_cv_ld="$LD_FOR_TARGET"
20620 else
20621 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20622 set dummy $LD_FOR_TARGET; ac_word=$2
20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20624 $as_echo_n "checking for $ac_word... " >&6; }
20625 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20626 $as_echo_n "(cached) " >&6
20627 else
20628 case $gcc_cv_ld in
20629 [\\/]* | ?:[\\/]*)
20630 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20631 ;;
20632 *)
20633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20634 for as_dir in $PATH
20635 do
20636 IFS=$as_save_IFS
20637 test -z "$as_dir" && as_dir=.
20638 for ac_exec_ext in '' $ac_executable_extensions; do
20639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20640 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20642 break 2
20643 fi
20644 done
20645 done
20646 IFS=$as_save_IFS
20647
20648 ;;
20649 esac
20650 fi
20651 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20652 if test -n "$gcc_cv_ld"; then
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20654 $as_echo "$gcc_cv_ld" >&6; }
20655 else
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20657 $as_echo "no" >&6; }
20658 fi
20659
20660
20661 fi
20662 fi
20663
20664 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20665 PLUGIN_LD=`basename $gcc_cv_ld`
20666
20667 # Check whether --with-plugin-ld was given.
20668 if test "${with_plugin_ld+set}" = set; then :
20669 withval=$with_plugin_ld; if test x"$withval" != x; then
20670 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20671 PLUGIN_LD="$withval"
20672 fi
20673 fi
20674
20675
20676
20677 cat >>confdefs.h <<_ACEOF
20678 #define PLUGIN_LD "$PLUGIN_LD"
20679 _ACEOF
20680
20681
20682 # Check to see if we are using gold instead of ld
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gold" >&5
20684 $as_echo_n "checking whether we are using gold... " >&6; }
20685 ld_is_gold=no
20686 if test x$gcc_cv_ld != x; then
20687 if $gcc_cv_ld --version 2>/dev/null | sed 1q \
20688 | grep "GNU gold" > /dev/null; then
20689 ld_is_gold=yes
20690 fi
20691 fi
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_is_gold" >&5
20693 $as_echo "$ld_is_gold" >&6; }
20694
20695 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20696
20697 case "$ORIGINAL_LD_FOR_TARGET" in
20698 ./collect-ld | ./collect-ld$build_exeext) ;;
20699 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20700 ;;
20701 esac
20702
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20704 $as_echo_n "checking what linker to use... " >&6; }
20705 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20706 # Single tree build which includes ld. We want to prefer it
20707 # over whatever linker top-level may have detected, since
20708 # we'll use what we're building after installation anyway.
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20710 $as_echo "newly built ld" >&6; }
20711 in_tree_ld=yes
20712 in_tree_ld_is_elf=no
20713 if (grep 'EMUL = .*elf' ../ld/Makefile \
20714 || grep 'EMUL = .*linux' ../ld/Makefile \
20715 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20716 in_tree_ld_is_elf=yes
20717 fi
20718 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
20719 do
20720 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20721 if test x$gcc_cv_gld_version != x; then
20722 break
20723 fi
20724 done
20725 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20726 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20727 else
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20729 $as_echo "$gcc_cv_ld" >&6; }
20730 in_tree_ld=no
20731 fi
20732
20733 # Figure out what nm we will be using.
20734 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20735 if test "${gcc_cv_nm+set}" = set; then :
20736
20737 else
20738
20739 if test -f $gcc_cv_binutils_srcdir/configure.in \
20740 && test -f ../binutils/Makefile \
20741 && test x$build = x$host; then
20742 gcc_cv_nm=../binutils/nm-new$build_exeext
20743 elif test -x nm$build_exeext; then
20744 gcc_cv_nm=./nm$build_exeext
20745 elif test -x $NM_FOR_TARGET; then
20746 gcc_cv_nm="$NM_FOR_TARGET"
20747 else
20748 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20749 set dummy $NM_FOR_TARGET; ac_word=$2
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20751 $as_echo_n "checking for $ac_word... " >&6; }
20752 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20753 $as_echo_n "(cached) " >&6
20754 else
20755 case $gcc_cv_nm in
20756 [\\/]* | ?:[\\/]*)
20757 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20758 ;;
20759 *)
20760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20761 for as_dir in $PATH
20762 do
20763 IFS=$as_save_IFS
20764 test -z "$as_dir" && as_dir=.
20765 for ac_exec_ext in '' $ac_executable_extensions; do
20766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20767 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20769 break 2
20770 fi
20771 done
20772 done
20773 IFS=$as_save_IFS
20774
20775 ;;
20776 esac
20777 fi
20778 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20779 if test -n "$gcc_cv_nm"; then
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20781 $as_echo "$gcc_cv_nm" >&6; }
20782 else
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20784 $as_echo "no" >&6; }
20785 fi
20786
20787
20788 fi
20789 fi
20790
20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20792 $as_echo_n "checking what nm to use... " >&6; }
20793 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20794 # Single tree build which includes binutils.
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20796 $as_echo "newly built nm" >&6; }
20797 in_tree_nm=yes
20798 else
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20800 $as_echo "$gcc_cv_nm" >&6; }
20801 in_tree_nm=no
20802 fi
20803
20804 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20805
20806 case "$ORIGINAL_NM_FOR_TARGET" in
20807 ./nm | ./nm$build_exeext) ;;
20808 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20809 ;;
20810 esac
20811
20812
20813 # Figure out what objdump we will be using.
20814 if test "${gcc_cv_objdump+set}" = set; then :
20815
20816 else
20817
20818 if test -f $gcc_cv_binutils_srcdir/configure.in \
20819 && test -f ../binutils/Makefile \
20820 && test x$build = x$host; then
20821 # Single tree build which includes binutils.
20822 gcc_cv_objdump=../binutils/objdump$build_exeext
20823 elif test -x objdump$build_exeext; then
20824 gcc_cv_objdump=./objdump$build_exeext
20825 elif test -x $OBJDUMP_FOR_TARGET; then
20826 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20827 else
20828 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20829 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20831 $as_echo_n "checking for $ac_word... " >&6; }
20832 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20834 else
20835 case $gcc_cv_objdump in
20836 [\\/]* | ?:[\\/]*)
20837 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20838 ;;
20839 *)
20840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20841 for as_dir in $PATH
20842 do
20843 IFS=$as_save_IFS
20844 test -z "$as_dir" && as_dir=.
20845 for ac_exec_ext in '' $ac_executable_extensions; do
20846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20847 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20849 break 2
20850 fi
20851 done
20852 done
20853 IFS=$as_save_IFS
20854
20855 ;;
20856 esac
20857 fi
20858 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20859 if test -n "$gcc_cv_objdump"; then
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20861 $as_echo "$gcc_cv_objdump" >&6; }
20862 else
20863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20864 $as_echo "no" >&6; }
20865 fi
20866
20867
20868 fi
20869 fi
20870
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20872 $as_echo_n "checking what objdump to use... " >&6; }
20873 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20874 # Single tree build which includes binutils.
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20876 $as_echo "newly built objdump" >&6; }
20877 elif test x$gcc_cv_objdump = x; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20879 $as_echo "not found" >&6; }
20880 else
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20882 $as_echo "$gcc_cv_objdump" >&6; }
20883 fi
20884
20885 # Figure out what readelf we will be using.
20886 if test "${gcc_cv_readelf+set}" = set; then :
20887
20888 else
20889
20890 if test -f $gcc_cv_binutils_srcdir/configure.in \
20891 && test -f ../binutils/Makefile \
20892 && test x$build = x$host; then
20893 # Single tree build which includes binutils.
20894 gcc_cv_readelf=../binutils/readelf$build_exeext
20895 elif test -x readelf$build_exeext; then
20896 gcc_cv_readelf=./readelf$build_exeext
20897 else
20898 # Extract the first word of "readelf", so it can be a program name with args.
20899 set dummy readelf; ac_word=$2
20900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20901 $as_echo_n "checking for $ac_word... " >&6; }
20902 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20903 $as_echo_n "(cached) " >&6
20904 else
20905 case $gcc_cv_readelf in
20906 [\\/]* | ?:[\\/]*)
20907 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20908 ;;
20909 *)
20910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20911 for as_dir in $PATH
20912 do
20913 IFS=$as_save_IFS
20914 test -z "$as_dir" && as_dir=.
20915 for ac_exec_ext in '' $ac_executable_extensions; do
20916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20917 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20919 break 2
20920 fi
20921 done
20922 done
20923 IFS=$as_save_IFS
20924
20925 ;;
20926 esac
20927 fi
20928 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20929 if test -n "$gcc_cv_readelf"; then
20930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20931 $as_echo "$gcc_cv_readelf" >&6; }
20932 else
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934 $as_echo "no" >&6; }
20935 fi
20936
20937
20938 fi
20939 fi
20940
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20942 $as_echo_n "checking what readelf to use... " >&6; }
20943 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20944 # Single tree build which includes binutils.
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20946 $as_echo "newly built readelf" >&6; }
20947 elif test x$gcc_cv_readelf = x; then
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20949 $as_echo "not found" >&6; }
20950 else
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20952 $as_echo "$gcc_cv_readelf" >&6; }
20953 fi
20954
20955 # Figure out what assembler alignment features are present.
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler flags" >&5
20957 $as_echo_n "checking assembler flags... " >&6; }
20958 if test "${gcc_cv_as_flags+set}" = set; then :
20959 $as_echo_n "(cached) " >&6
20960 else
20961 case "$target" in
20962 i[34567]86-*-linux*)
20963 gcc_cv_as_flags="--32"
20964 ;;
20965 *)
20966 gcc_cv_as_flags=" "
20967 ;;
20968 esac
20969 fi
20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_flags" >&5
20971 $as_echo "$gcc_cv_as_flags" >&6; }
20972
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20974 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20975 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20976 $as_echo_n "(cached) " >&6
20977 else
20978 gcc_cv_as_balign_and_p2align=no
20979 if test $in_tree_gas = yes; then
20980 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20981 then gcc_cv_as_balign_and_p2align=yes
20982 fi
20983 elif test x$gcc_cv_as != x; then
20984 echo '.balign 4
20985 .p2align 2' > conftest.s
20986 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
20987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20988 (eval $ac_try) 2>&5
20989 ac_status=$?
20990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20991 test $ac_status = 0; }; }
20992 then
20993 gcc_cv_as_balign_and_p2align=yes
20994 else
20995 echo "configure: failed program was" >&5
20996 cat conftest.s >&5
20997 fi
20998 rm -f conftest.o conftest.s
20999 fi
21000 fi
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21002 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21003 if test $gcc_cv_as_balign_and_p2align = yes; then
21004
21005 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21006
21007 fi
21008
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21010 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21011 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21012 $as_echo_n "(cached) " >&6
21013 else
21014 gcc_cv_as_max_skip_p2align=no
21015 if test $in_tree_gas = yes; then
21016 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21017 then gcc_cv_as_max_skip_p2align=yes
21018 fi
21019 elif test x$gcc_cv_as != x; then
21020 echo '.p2align 4,,7' > conftest.s
21021 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21026 test $ac_status = 0; }; }
21027 then
21028 gcc_cv_as_max_skip_p2align=yes
21029 else
21030 echo "configure: failed program was" >&5
21031 cat conftest.s >&5
21032 fi
21033 rm -f conftest.o conftest.s
21034 fi
21035 fi
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21037 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21038 if test $gcc_cv_as_max_skip_p2align = yes; then
21039
21040 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21041
21042 fi
21043
21044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21045 $as_echo_n "checking assembler for .literal16... " >&6; }
21046 if test "${gcc_cv_as_literal16+set}" = set; then :
21047 $as_echo_n "(cached) " >&6
21048 else
21049 gcc_cv_as_literal16=no
21050 if test $in_tree_gas = yes; then
21051 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21052 then gcc_cv_as_literal16=yes
21053 fi
21054 elif test x$gcc_cv_as != x; then
21055 echo '.literal16' > conftest.s
21056 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21058 (eval $ac_try) 2>&5
21059 ac_status=$?
21060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21061 test $ac_status = 0; }; }
21062 then
21063 gcc_cv_as_literal16=yes
21064 else
21065 echo "configure: failed program was" >&5
21066 cat conftest.s >&5
21067 fi
21068 rm -f conftest.o conftest.s
21069 fi
21070 fi
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21072 $as_echo "$gcc_cv_as_literal16" >&6; }
21073 if test $gcc_cv_as_literal16 = yes; then
21074
21075 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21076
21077 fi
21078
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21080 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21081 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21082 $as_echo_n "(cached) " >&6
21083 else
21084 gcc_cv_as_subsection_m1=no
21085 if test $in_tree_gas = yes; then
21086 if test $in_tree_gas_is_elf = yes \
21087 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21088 then gcc_cv_as_subsection_m1=yes
21089 fi
21090 elif test x$gcc_cv_as != x; then
21091 echo 'conftest_label1: .word 0
21092 .subsection -1
21093 conftest_label2: .word 0
21094 .previous' > conftest.s
21095 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21100 test $ac_status = 0; }; }
21101 then
21102 if test x$gcc_cv_nm != x; then
21103 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21104 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21105 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21106 then :
21107 else gcc_cv_as_subsection_m1=yes
21108 fi
21109 rm -f conftest.nm1 conftest.nm2
21110 fi
21111 else
21112 echo "configure: failed program was" >&5
21113 cat conftest.s >&5
21114 fi
21115 rm -f conftest.o conftest.s
21116 fi
21117 fi
21118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21119 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21120 if test $gcc_cv_as_subsection_m1 = yes; then
21121
21122 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21123
21124 fi
21125
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21127 $as_echo_n "checking assembler for .weak... " >&6; }
21128 if test "${gcc_cv_as_weak+set}" = set; then :
21129 $as_echo_n "(cached) " >&6
21130 else
21131 gcc_cv_as_weak=no
21132 if test $in_tree_gas = yes; then
21133 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21134 then gcc_cv_as_weak=yes
21135 fi
21136 elif test x$gcc_cv_as != x; then
21137 echo ' .weak foobar' > conftest.s
21138 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21143 test $ac_status = 0; }; }
21144 then
21145 gcc_cv_as_weak=yes
21146 else
21147 echo "configure: failed program was" >&5
21148 cat conftest.s >&5
21149 fi
21150 rm -f conftest.o conftest.s
21151 fi
21152 fi
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21154 $as_echo "$gcc_cv_as_weak" >&6; }
21155 if test $gcc_cv_as_weak = yes; then
21156
21157 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21158
21159 fi
21160
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21162 $as_echo_n "checking assembler for .weakref... " >&6; }
21163 if test "${gcc_cv_as_weakref+set}" = set; then :
21164 $as_echo_n "(cached) " >&6
21165 else
21166 gcc_cv_as_weakref=no
21167 if test $in_tree_gas = yes; then
21168 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21169 then gcc_cv_as_weakref=yes
21170 fi
21171 elif test x$gcc_cv_as != x; then
21172 echo ' .weakref foobar, barfnot' > conftest.s
21173 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21178 test $ac_status = 0; }; }
21179 then
21180 gcc_cv_as_weakref=yes
21181 else
21182 echo "configure: failed program was" >&5
21183 cat conftest.s >&5
21184 fi
21185 rm -f conftest.o conftest.s
21186 fi
21187 fi
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21189 $as_echo "$gcc_cv_as_weakref" >&6; }
21190 if test $gcc_cv_as_weakref = yes; then
21191
21192 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21193
21194 fi
21195
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21197 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21198 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21199 $as_echo_n "(cached) " >&6
21200 else
21201 gcc_cv_as_nsubspa_comdat=no
21202 if test $in_tree_gas = yes; then
21203 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21204 then gcc_cv_as_nsubspa_comdat=yes
21205 fi
21206 elif test x$gcc_cv_as != x; then
21207 echo ' .SPACE $TEXT$
21208 .NSUBSPA $CODE$,COMDAT' > conftest.s
21209 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21211 (eval $ac_try) 2>&5
21212 ac_status=$?
21213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21214 test $ac_status = 0; }; }
21215 then
21216 gcc_cv_as_nsubspa_comdat=yes
21217 else
21218 echo "configure: failed program was" >&5
21219 cat conftest.s >&5
21220 fi
21221 rm -f conftest.o conftest.s
21222 fi
21223 fi
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21225 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21226 if test $gcc_cv_as_nsubspa_comdat = yes; then
21227
21228 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21229
21230 fi
21231
21232 # .hidden needs to be supported in both the assembler and the linker,
21233 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21234 # This is irritatingly difficult to feature test for; we have to check the
21235 # date string after the version number. If we've got an in-tree
21236 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21237 # to be safe.
21238 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21240 $as_echo_n "checking assembler for .hidden... " >&6; }
21241 if test "${gcc_cv_as_hidden+set}" = set; then :
21242 $as_echo_n "(cached) " >&6
21243 else
21244 gcc_cv_as_hidden=no
21245 if test $in_tree_gas = yes; then
21246 if test $in_tree_gas_is_elf = yes \
21247 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21248 then gcc_cv_as_hidden=yes
21249 fi
21250 elif test x$gcc_cv_as != x; then
21251 echo ' .hidden foobar
21252 foobar:' > conftest.s
21253 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21258 test $ac_status = 0; }; }
21259 then
21260
21261 # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
21262 # STV_HIDDEN, so disable .hidden support if so.
21263 case "${target}" in
21264 i?86-*-solaris2*)
21265 if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
21266 cat > conftest.s <<EOF
21267 .globl hidden
21268 .hidden hidden
21269 hidden:
21270 .globl default
21271 .set default,hidden
21272 EOF
21273 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1 \
21274 && $gcc_cv_objdump -t conftest.o 2>/dev/null | \
21275 grep '\.hidden default' > /dev/null; then
21276 gcc_cv_as_hidden=no
21277 else
21278 gcc_cv_as_hidden=yes
21279 fi
21280 else
21281 # Assume bug is present if objdump is missing.
21282 gcc_cv_as_hidden=no
21283 fi
21284 ;;
21285 *)
21286 gcc_cv_as_hidden=yes
21287 ;;
21288 esac
21289 else
21290 echo "configure: failed program was" >&5
21291 cat conftest.s >&5
21292 fi
21293 rm -f conftest.o conftest.s
21294 fi
21295 fi
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21297 $as_echo "$gcc_cv_as_hidden" >&6; }
21298
21299
21300 if test $in_tree_ld != yes ; then
21301 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21302 if test x"$ld_is_gold" = xyes; then
21303 gcc_cv_ld_hidden=yes
21304 elif echo "$ld_ver" | grep GNU > /dev/null; then
21305 ld_vers=`echo $ld_ver | sed -n \
21306 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21307 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'`
21308 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21309 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21310 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21311 else
21312 case "${target}" in
21313 *-*-solaris2*)
21314 #
21315 # Solaris 2 ld -V output looks like this for a regular version:
21316 #
21317 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1699
21318 #
21319 # but test versions add stuff at the end:
21320 #
21321 # ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1701:onnv-ab196087-6931056-03/25/10
21322 #
21323 ld_ver=`$gcc_cv_ld -V 2>&1`
21324 if echo "$ld_ver" | grep 'Solaris Link Editors' > /dev/null; then
21325 ld_vers=`echo $ld_ver | sed -n \
21326 -e 's,^.*: 5\.[0-9][0-9]*-\([0-9]\.[0-9][0-9]*\).*$,\1,p'`
21327 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21328 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21329 fi
21330 ;;
21331 esac
21332 fi
21333 fi
21334
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21336 $as_echo_n "checking linker for .hidden support... " >&6; }
21337 if test "${gcc_cv_ld_hidden+set}" = set; then :
21338 $as_echo_n "(cached) " >&6
21339 else
21340 if test $in_tree_ld = yes ; then
21341 gcc_cv_ld_hidden=no
21342 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 \
21343 && test $in_tree_ld_is_elf = yes; then
21344 gcc_cv_ld_hidden=yes
21345 fi
21346 else
21347 gcc_cv_ld_hidden=yes
21348 if echo "$ld_ver" | grep GNU > /dev/null; then
21349 if test 0"$ld_date" -lt 20020404; then
21350 if test -n "$ld_date"; then
21351 # If there was date string, but was earlier than 2002-04-04, fail
21352 gcc_cv_ld_hidden=no
21353 elif test -z "$ld_vers"; then
21354 # If there was no date string nor ld version number, something is wrong
21355 gcc_cv_ld_hidden=no
21356 else
21357 test -z "$ld_vers_patch" && ld_vers_patch=0
21358 if test "$ld_vers_major" -lt 2; then
21359 gcc_cv_ld_hidden=no
21360 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21361 gcc_cv_ld_hidden="no"
21362 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21363 gcc_cv_ld_hidden=no
21364 fi
21365 fi
21366 fi
21367 else
21368 case "${target}" in
21369 hppa64*-*-hpux* | ia64*-*-hpux*)
21370 gcc_cv_ld_hidden=yes
21371 ;;
21372 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21373 # Support for .hidden in Sun ld appeared in Solaris 9 FCS, but
21374 # .symbolic was only added in Solaris 9 12/02.
21375 gcc_cv_ld_hidden=yes
21376 ;;
21377 *)
21378 gcc_cv_ld_hidden=no
21379 ;;
21380 esac
21381 fi
21382 fi
21383 fi
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21385 $as_echo "$gcc_cv_ld_hidden" >&6; }
21386 libgcc_visibility=no
21387
21388
21389 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21390 libgcc_visibility=yes
21391
21392 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21393
21394 fi
21395
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21397 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21398 gcc_cv_ld_ro_rw_mix=unknown
21399 if test $in_tree_ld = yes ; then
21400 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 \
21401 && test $in_tree_ld_is_elf = yes; then
21402 gcc_cv_ld_ro_rw_mix=read-write
21403 fi
21404 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21405 echo '.section myfoosect, "a"' > conftest1.s
21406 echo '.section myfoosect, "aw"' > conftest2.s
21407 echo '.byte 1' >> conftest2.s
21408 echo '.section myfoosect, "a"' > conftest3.s
21409 echo '.byte 0' >> conftest3.s
21410 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21411 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21412 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21413 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21414 conftest2.o conftest3.o > /dev/null 2>&1; then
21415 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21416 | sed -e '/myfoosect/!d' -e N`
21417 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21418 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21419 gcc_cv_ld_ro_rw_mix=read-only
21420 else
21421 gcc_cv_ld_ro_rw_mix=read-write
21422 fi
21423 fi
21424 fi
21425 rm -f conftest.* conftest[123].*
21426 fi
21427 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21428
21429 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21430
21431 fi
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21433 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21434
21435 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21437 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21438 if test "${gcc_cv_as_leb128+set}" = set; then :
21439 $as_echo_n "(cached) " >&6
21440 else
21441 gcc_cv_as_leb128=no
21442 if test $in_tree_gas = yes; then
21443 if test $in_tree_gas_is_elf = yes \
21444 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21445 then gcc_cv_as_leb128=yes
21446 fi
21447 elif test x$gcc_cv_as != x; then
21448 echo ' .data
21449 .uleb128 L2 - L1
21450 L1:
21451 .uleb128 1280
21452 .sleb128 -1010
21453 L2:' > conftest.s
21454 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21456 (eval $ac_try) 2>&5
21457 ac_status=$?
21458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21459 test $ac_status = 0; }; }
21460 then
21461 # GAS versions before 2.11 do not support uleb128,
21462 # despite appearing to.
21463 # ??? There exists an elf-specific test that will crash
21464 # the assembler. Perhaps it's better to figure out whether
21465 # arbitrary sections are supported and try the test.
21466 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21467 if echo "$as_ver" | grep GNU > /dev/null; then
21468 as_vers=`echo $as_ver | sed -n \
21469 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21470 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21471 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21472 if test $as_major -eq 2 && test $as_minor -lt 11
21473 then :
21474 else gcc_cv_as_leb128=yes
21475 fi
21476 fi
21477 else
21478 echo "configure: failed program was" >&5
21479 cat conftest.s >&5
21480 fi
21481 rm -f conftest.o conftest.s
21482 fi
21483 fi
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21485 $as_echo "$gcc_cv_as_leb128" >&6; }
21486 if test $gcc_cv_as_leb128 = yes; then
21487
21488 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21489
21490 fi
21491
21492 # Check if we have assembler support for unwind directives.
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21494 $as_echo_n "checking assembler for cfi directives... " >&6; }
21495 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21496 $as_echo_n "(cached) " >&6
21497 else
21498 gcc_cv_as_cfi_directive=no
21499 if test x$gcc_cv_as != x; then
21500 echo ' .text
21501 .cfi_startproc
21502 .cfi_offset 0, 0
21503 .cfi_same_value 1
21504 .cfi_def_cfa 1, 2
21505 .cfi_escape 1, 2, 3, 4, 5
21506 .cfi_endproc' > conftest.s
21507 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21509 (eval $ac_try) 2>&5
21510 ac_status=$?
21511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21512 test $ac_status = 0; }; }
21513 then
21514 case "$target" in
21515 *-*-solaris*)
21516 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21517 # read-only and read-write sections, we need to make sure that the
21518 # assembler used emits read-write .eh_frame sections.
21519 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21520 if test "x$gcc_cv_objdump" != x; then
21521 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21522 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21523 gcc_cv_as_cfi_directive=no
21524 else
21525 case "$target" in
21526 i?86-*-solaris2.1[0-9]*)
21527 # On Solaris/x86, make sure that GCC and gas agree on using
21528 # read-only .eh_frame sections for 64-bit.
21529 if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
21530 $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21531 sed -e /.eh_frame/!d -e N | \
21532 grep READONLY > /dev/null; then
21533 gcc_cv_as_cfi_directive=yes
21534 else
21535 gcc_cv_as_cfi_directive=no
21536 fi
21537 ;;
21538 *)
21539 gcc_cv_as_cfi_directive=yes
21540 ;;
21541 esac
21542 fi
21543 else
21544 # no objdump, err on the side of caution
21545 gcc_cv_as_cfi_directive=no
21546 fi
21547 else
21548 gcc_cv_as_cfi_directive=yes
21549 fi
21550 ;;
21551 *-*-*)
21552 gcc_cv_as_cfi_directive=yes
21553 ;;
21554 esac
21555 else
21556 echo "configure: failed program was" >&5
21557 cat conftest.s >&5
21558 fi
21559 rm -f conftest.o conftest.s
21560 fi
21561 fi
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21563 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21564
21565 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21567 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21568 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21569 $as_echo_n "(cached) " >&6
21570 else
21571 gcc_cv_as_cfi_advance_working=no
21572 if test x$gcc_cv_as != x; then
21573 echo ' .text
21574 .cfi_startproc
21575 .cfi_adjust_cfa_offset 64
21576 .skip 75040, 0
21577 .cfi_adjust_cfa_offset 128
21578 .cfi_endproc' > 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
21587 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21588 | grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
21589 gcc_cv_as_cfi_advance_working=yes
21590 fi
21591
21592 else
21593 echo "configure: failed program was" >&5
21594 cat conftest.s >&5
21595 fi
21596 rm -f conftest.o conftest.s
21597 fi
21598 fi
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21600 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21601
21602 else
21603 # no readelf, err on the side of caution
21604 gcc_cv_as_cfi_advance_working=no
21605 fi
21606
21607 cat >>confdefs.h <<_ACEOF
21608 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21609 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21610 _ACEOF
21611
21612
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21614 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21615 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21616 $as_echo_n "(cached) " >&6
21617 else
21618 gcc_cv_as_cfi_personality_directive=no
21619 if test x$gcc_cv_as != x; then
21620 echo ' .text
21621 .cfi_startproc
21622 .cfi_personality 0, symbol
21623 .cfi_endproc' > conftest.s
21624 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21626 (eval $ac_try) 2>&5
21627 ac_status=$?
21628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21629 test $ac_status = 0; }; }
21630 then
21631 gcc_cv_as_cfi_personality_directive=yes
21632 else
21633 echo "configure: failed program was" >&5
21634 cat conftest.s >&5
21635 fi
21636 rm -f conftest.o conftest.s
21637 fi
21638 fi
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21640 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21641
21642
21643 cat >>confdefs.h <<_ACEOF
21644 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21645 then echo 1; else echo 0; fi`
21646 _ACEOF
21647
21648
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21650 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21651 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21652 $as_echo_n "(cached) " >&6
21653 else
21654 gcc_cv_as_cfi_sections_directive=no
21655 if test x$gcc_cv_as != x; then
21656 echo ' .text
21657 .cfi_sections .debug_frame, .eh_frame
21658 .cfi_startproc
21659 .cfi_endproc' > conftest.s
21660 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21662 (eval $ac_try) 2>&5
21663 ac_status=$?
21664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21665 test $ac_status = 0; }; }
21666 then
21667 gcc_cv_as_cfi_sections_directive=yes
21668 else
21669 echo "configure: failed program was" >&5
21670 cat conftest.s >&5
21671 fi
21672 rm -f conftest.o conftest.s
21673 fi
21674 fi
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21676 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21677
21678
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21681 then echo 1; else echo 0; fi`
21682 _ACEOF
21683
21684
21685 # GAS versions up to and including 2.11.0 may mis-optimize
21686 # .eh_frame data.
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21688 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21689 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21690 $as_echo_n "(cached) " >&6
21691 else
21692 gcc_cv_as_eh_frame=no
21693 if test $in_tree_gas = yes; then
21694 if test $in_tree_gas_is_elf = yes \
21695 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21696 then gcc_cv_as_eh_frame=yes
21697 fi
21698 elif test x$gcc_cv_as != x; then
21699 echo ' .text
21700 .LFB1:
21701 .4byte 0
21702 .L1:
21703 .4byte 0
21704 .LFE1:
21705 .section .eh_frame,"aw",@progbits
21706 __FRAME_BEGIN__:
21707 .4byte .LECIE1-.LSCIE1
21708 .LSCIE1:
21709 .4byte 0x0
21710 .byte 0x1
21711 .ascii "z\0"
21712 .byte 0x1
21713 .byte 0x78
21714 .byte 0x1a
21715 .byte 0x0
21716 .byte 0x4
21717 .4byte 1
21718 .p2align 1
21719 .LECIE1:
21720 .LSFDE1:
21721 .4byte .LEFDE1-.LASFDE1
21722 .LASFDE1:
21723 .4byte .LASFDE1-__FRAME_BEGIN__
21724 .4byte .LFB1
21725 .4byte .LFE1-.LFB1
21726 .byte 0x4
21727 .4byte .LFE1-.LFB1
21728 .byte 0x4
21729 .4byte .L1-.LFB1
21730 .LEFDE1:' > conftest.s
21731 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21733 (eval $ac_try) 2>&5
21734 ac_status=$?
21735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21736 test $ac_status = 0; }; }
21737 then
21738 cat > conftest.lit <<EOF
21739 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21740 0010 01000000 12000000 18000000 00000000 ................
21741 0020 08000000 04080000 0044 .........D
21742 EOF
21743 cat > conftest.big <<EOF
21744 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21745 0010 00000001 00000012 00000018 00000000 ................
21746 0020 00000008 04000000 0844 .........D
21747 EOF
21748 # If the assembler didn't choke, and we can objdump,
21749 # and we got the correct data, then succeed.
21750 # The text in the here-document typically retains its unix-style line
21751 # endings, while the output of objdump will use host line endings.
21752 # Therefore, use diff -b for the comparisons.
21753 if test x$gcc_cv_objdump != x \
21754 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21755 | tail -3 > conftest.got \
21756 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21757 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21758 then
21759 gcc_cv_as_eh_frame=yes
21760 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21765 test $ac_status = 0; }; }; then
21766 gcc_cv_as_eh_frame=buggy
21767 else
21768 # Uh oh, what do we do now?
21769 gcc_cv_as_eh_frame=no
21770 fi
21771 else
21772 echo "configure: failed program was" >&5
21773 cat conftest.s >&5
21774 fi
21775 rm -f conftest.o conftest.s
21776 fi
21777 fi
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21779 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21780
21781
21782 if test $gcc_cv_as_eh_frame = buggy; then
21783
21784 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21785
21786 fi
21787
21788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21789 $as_echo_n "checking assembler for section merging support... " >&6; }
21790 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21791 $as_echo_n "(cached) " >&6
21792 else
21793 gcc_cv_as_shf_merge=no
21794 if test $in_tree_gas = yes; then
21795 if test $in_tree_gas_is_elf = yes \
21796 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21797 then gcc_cv_as_shf_merge=yes
21798 fi
21799 elif test x$gcc_cv_as != x; then
21800 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21801 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21803 (eval $ac_try) 2>&5
21804 ac_status=$?
21805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21806 test $ac_status = 0; }; }
21807 then
21808 gcc_cv_as_shf_merge=yes
21809 else
21810 echo "configure: failed program was" >&5
21811 cat conftest.s >&5
21812 fi
21813 rm -f conftest.o conftest.s
21814 fi
21815 fi
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21817 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21818
21819 if test $gcc_cv_as_shf_merge = no; then
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21821 $as_echo_n "checking assembler for section merging support... " >&6; }
21822 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21823 $as_echo_n "(cached) " >&6
21824 else
21825 gcc_cv_as_shf_merge=no
21826 if test $in_tree_gas = yes; then
21827 if test $in_tree_gas_is_elf = yes \
21828 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21829 then gcc_cv_as_shf_merge=yes
21830 fi
21831 elif test x$gcc_cv_as != x; then
21832 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21833 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21838 test $ac_status = 0; }; }
21839 then
21840 gcc_cv_as_shf_merge=yes
21841 else
21842 echo "configure: failed program was" >&5
21843 cat conftest.s >&5
21844 fi
21845 rm -f conftest.o conftest.s
21846 fi
21847 fi
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21849 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21850
21851 fi
21852
21853 cat >>confdefs.h <<_ACEOF
21854 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21855 _ACEOF
21856
21857
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21859 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21860 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21861 $as_echo_n "(cached) " >&6
21862 else
21863 gcc_cv_as_comdat_group=no
21864 if test $in_tree_gas = yes; then
21865 if test $in_tree_gas_is_elf = yes \
21866 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21867 then gcc_cv_as_comdat_group=yes
21868 fi
21869 elif test x$gcc_cv_as != x; then
21870 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21871 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21873 (eval $ac_try) 2>&5
21874 ac_status=$?
21875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21876 test $ac_status = 0; }; }
21877 then
21878 gcc_cv_as_comdat_group=yes
21879 else
21880 echo "configure: failed program was" >&5
21881 cat conftest.s >&5
21882 fi
21883 rm -f conftest.o conftest.s
21884 fi
21885 fi
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21887 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21888
21889 if test $gcc_cv_as_comdat_group = yes; then
21890 gcc_cv_as_comdat_group_percent=no
21891 else
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21893 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21894 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21896 else
21897 gcc_cv_as_comdat_group_percent=no
21898 if test $in_tree_gas = yes; then
21899 if test $in_tree_gas_is_elf = yes \
21900 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21901 then gcc_cv_as_comdat_group_percent=yes
21902 fi
21903 elif test x$gcc_cv_as != x; then
21904 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21905 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --fatal-warnings -o conftest.o conftest.s >&5'
21906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; }
21911 then
21912 gcc_cv_as_comdat_group_percent=yes
21913 else
21914 echo "configure: failed program was" >&5
21915 cat conftest.s >&5
21916 fi
21917 rm -f conftest.o conftest.s
21918 fi
21919 fi
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21921 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21922
21923 fi
21924 if test x"$ld_is_gold" = xyes; then
21925 comdat_group=yes
21926 elif test $in_tree_ld = yes ; then
21927 comdat_group=no
21928 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 \
21929 && test $in_tree_ld_is_elf = yes; then
21930 comdat_group=yes
21931 fi
21932 elif echo "$ld_ver" | grep GNU > /dev/null; then
21933 comdat_group=yes
21934 if test 0"$ld_date" -lt 20050308; then
21935 if test -n "$ld_date"; then
21936 # If there was date string, but was earlier than 2005-03-08, fail
21937 comdat_group=no
21938 elif test "$ld_vers_major" -lt 2; then
21939 comdat_group=no
21940 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21941 comdat_group=no
21942 fi
21943 fi
21944 else
21945 case "${target}" in
21946 *-*-solaris2.1[1-9]*)
21947 # Sun ld has COMDAT group support since Solaris 9, but it doesn't
21948 # interoperate with GNU as until Solaris 11 build 130, i.e. ld
21949 # version 1.688.
21950 #
21951 # FIXME: Maybe need to refine later when COMDAT group support with
21952 # Sun as is implemented.
21953 if test "$ld_vers_major" -gt 1 || test "$ld_vers_minor" -ge 1688; then
21954 comdat_group=yes
21955 else
21956 comdat_group=no
21957 fi
21958 ;;
21959 *)
21960 # Assume linkers other than GNU ld don't support COMDAT group.
21961 comdat_group=no
21962 ;;
21963 esac
21964 fi
21965 # Allow overriding the automatic COMDAT group tests above.
21966 # Check whether --enable-comdat was given.
21967 if test "${enable_comdat+set}" = set; then :
21968 enableval=$enable_comdat; comdat_group="$enable_comdat"
21969 fi
21970
21971 if test $comdat_group = no; then
21972 gcc_cv_as_comdat_group=no
21973 gcc_cv_as_comdat_group_percent=no
21974 fi
21975
21976 cat >>confdefs.h <<_ACEOF
21977 #define HAVE_COMDAT_GROUP `if test $gcc_cv_as_comdat_group = yes || test $gcc_cv_as_comdat_group_percent = yes; then echo 1; else echo 0; fi`
21978 _ACEOF
21979
21980
21981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21982 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21983 if test "${gcc_cv_as_discriminator+set}" = set; then :
21984 $as_echo_n "(cached) " >&6
21985 else
21986 gcc_cv_as_discriminator=no
21987 if test $in_tree_gas = yes; then
21988 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21989 then gcc_cv_as_discriminator=yes
21990 fi
21991 elif test x$gcc_cv_as != x; then
21992 echo ' .text
21993 .file 1 "conf.c"
21994 .loc 1 1 0 discriminator 1' > conftest.s
21995 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
21996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22000 test $ac_status = 0; }; }
22001 then
22002 gcc_cv_as_discriminator=yes
22003 else
22004 echo "configure: failed program was" >&5
22005 cat conftest.s >&5
22006 fi
22007 rm -f conftest.o conftest.s
22008 fi
22009 fi
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
22011 $as_echo "$gcc_cv_as_discriminator" >&6; }
22012 if test $gcc_cv_as_discriminator = yes; then
22013
22014 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
22015
22016 fi
22017
22018 # Thread-local storage - the check is heavily parameterized.
22019 conftest_s=
22020 tls_first_major=
22021 tls_first_minor=
22022 tls_as_opt=
22023 case "$target" in
22024 alpha*-*-*)
22025 conftest_s='
22026 .section ".tdata","awT",@progbits
22027 foo: .long 25
22028 .text
22029 ldq $27,__tls_get_addr($29) !literal!1
22030 lda $16,foo($29) !tlsgd!1
22031 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
22032 ldq $27,__tls_get_addr($29) !literal!2
22033 lda $16,foo($29) !tlsldm!2
22034 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
22035 ldq $1,foo($29) !gotdtprel
22036 ldah $2,foo($29) !dtprelhi
22037 lda $3,foo($2) !dtprello
22038 lda $4,foo($29) !dtprel
22039 ldq $1,foo($29) !gottprel
22040 ldah $2,foo($29) !tprelhi
22041 lda $3,foo($2) !tprello
22042 lda $4,foo($29) !tprel'
22043 tls_first_major=2
22044 tls_first_minor=13
22045 tls_as_opt=--fatal-warnings
22046 ;;
22047 cris-*-*|crisv32-*-*)
22048 conftest_s='
22049 .section ".tdata","awT",@progbits
22050 x: .long 25
22051 .text
22052 move.d x:IE,$r10
22053 nop'
22054 tls_first_major=2
22055 tls_first_minor=20
22056 tls_as_opt=--fatal-warnings
22057 ;;
22058 frv*-*-*)
22059 conftest_s='
22060 .section ".tdata","awT",@progbits
22061 x: .long 25
22062 .text
22063 call #gettlsoff(x)'
22064 tls_first_major=2
22065 tls_first_minor=14
22066 ;;
22067 hppa*-*-linux*)
22068 conftest_s='
22069 t1: .reg %r20
22070 t2: .reg %r21
22071 gp: .reg %r19
22072 .section ".tdata","awT",@progbits
22073 foo: .long 25
22074 .text
22075 .align 4
22076 addil LT%foo-$tls_gdidx$,gp
22077 ldo RT%foo-$tls_gdidx$(%r1),%arg0
22078 b __tls_get_addr
22079 nop
22080 addil LT%foo-$tls_ldidx$,gp
22081 b __tls_get_addr
22082 ldo RT%foo-$tls_ldidx$(%r1),%arg0
22083 addil LR%foo-$tls_dtpoff$,%ret0
22084 ldo RR%foo-$tls_dtpoff$(%r1),%t1
22085 mfctl %cr27,%t1
22086 addil LT%foo-$tls_ieoff$,gp
22087 ldw RT%foo-$tls_ieoff$(%r1),%t2
22088 add %t1,%t2,%t3
22089 mfctl %cr27,%t1
22090 addil LR%foo-$tls_leoff$,%t1
22091 ldo RR%foo-$tls_leoff$(%r1),%t2'
22092 tls_first_major=2
22093 tls_first_minor=15
22094 tls_as_opt=--fatal-warnings
22095 ;;
22096 arm*-*-*)
22097 conftest_s='
22098 .section ".tdata","awT",%progbits
22099 foo: .long 25
22100 .text
22101 .word foo(gottpoff)
22102 .word foo(tpoff)
22103 .word foo(tlsgd)
22104 .word foo(tlsldm)
22105 .word foo(tlsldo)'
22106 tls_first_major=2
22107 tls_first_minor=17
22108 ;;
22109 i[34567]86-*-*)
22110 case "$target" in
22111 i[34567]86-*-solaris2.[89]*)
22112 # TLS was introduced in the Solaris 9 4/04 release but
22113 # we do not enable it by default on Solaris 9 either.
22114 if test "x$enable_tls" = xyes ; then
22115 on_solaris=yes
22116 else
22117 enable_tls=no;
22118 fi
22119 ;;
22120 i[34567]86-*-solaris2.*)
22121 on_solaris=yes
22122 ;;
22123 *)
22124 on_solaris=no
22125 ;;
22126 esac
22127 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22128 conftest_s='
22129 .section .tdata,"awt",@progbits'
22130 tls_first_major=0
22131 tls_first_minor=0
22132
22133 $as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
22134
22135 else
22136 conftest_s='
22137 .section ".tdata","awT",@progbits'
22138 tls_first_major=2
22139 tls_first_minor=14
22140 tls_as_opt="--fatal-warnings"
22141 fi
22142 conftest_s="$conftest_s
22143 foo: .long 25
22144 .text
22145 movl %gs:0, %eax
22146 leal foo@tlsgd(,%ebx,1), %eax
22147 leal foo@tlsldm(%ebx), %eax
22148 leal foo@dtpoff(%eax), %edx
22149 movl foo@gottpoff(%ebx), %eax
22150 subl foo@gottpoff(%ebx), %eax
22151 addl foo@gotntpoff(%ebx), %eax
22152 movl foo@indntpoff, %eax
22153 movl \$foo@tpoff, %eax
22154 subl \$foo@tpoff, %eax
22155 leal foo@ntpoff(%ecx), %eax"
22156 ;;
22157 x86_64-*-*)
22158 conftest_s='
22159 .section ".tdata","awT",@progbits
22160 foo: .long 25
22161 .text
22162 movq %fs:0, %rax
22163 leaq foo@TLSGD(%rip), %rdi
22164 leaq foo@TLSLD(%rip), %rdi
22165 leaq foo@DTPOFF(%rax), %rdx
22166 movq foo@GOTTPOFF(%rip), %rax
22167 movq $foo@TPOFF, %rax'
22168 tls_first_major=2
22169 tls_first_minor=14
22170 tls_as_opt=--fatal-warnings
22171 ;;
22172 ia64-*-*)
22173 conftest_s='
22174 .section ".tdata","awT",@progbits
22175 foo: data8 25
22176 .text
22177 addl r16 = @ltoff(@dtpmod(foo#)), gp
22178 addl r17 = @ltoff(@dtprel(foo#)), gp
22179 addl r18 = @ltoff(@tprel(foo#)), gp
22180 addl r19 = @dtprel(foo#), gp
22181 adds r21 = @dtprel(foo#), r13
22182 movl r23 = @dtprel(foo#)
22183 addl r20 = @tprel(foo#), gp
22184 adds r22 = @tprel(foo#), r13
22185 movl r24 = @tprel(foo#)'
22186 tls_first_major=2
22187 tls_first_minor=13
22188 tls_as_opt=--fatal-warnings
22189 ;;
22190 mips*-*-*)
22191 conftest_s='
22192 .section .tdata,"awT",@progbits
22193 x:
22194 .word 2
22195 .text
22196 addiu $4, $28, %tlsgd(x)
22197 addiu $4, $28, %tlsldm(x)
22198 lui $4, %dtprel_hi(x)
22199 addiu $4, $4, %dtprel_lo(x)
22200 lw $4, %gottprel(x)($28)
22201 lui $4, %tprel_hi(x)
22202 addiu $4, $4, %tprel_lo(x)'
22203 tls_first_major=2
22204 tls_first_minor=16
22205 tls_as_opt='-32 --fatal-warnings'
22206 ;;
22207 m68k-*-*)
22208 conftest_s='
22209 .section .tdata,"awT",@progbits
22210 x:
22211 .word 2
22212 .text
22213 foo:
22214 move.l x@TLSGD(%a5),%a0
22215 move.l x@TLSLDM(%a5),%a0
22216 move.l x@TLSLDO(%a5),%a0
22217 move.l x@TLSIE(%a5),%a0
22218 move.l x@TLSLE(%a5),%a0'
22219 tls_first_major=2
22220 tls_first_minor=19
22221 tls_as_opt='--fatal-warnings'
22222 ;;
22223 powerpc-*-*)
22224 conftest_s='
22225 .section ".tdata","awT",@progbits
22226 .align 2
22227 ld0: .space 4
22228 ld1: .space 4
22229 x1: .space 4
22230 x2: .space 4
22231 x3: .space 4
22232 .text
22233 addi 3,31,ld0@got@tlsgd
22234 bl __tls_get_addr
22235 addi 3,31,x1@got@tlsld
22236 bl __tls_get_addr
22237 addi 9,3,x1@dtprel
22238 addis 9,3,x2@dtprel@ha
22239 addi 9,9,x2@dtprel@l
22240 lwz 9,x3@got@tprel(31)
22241 add 9,9,x@tls
22242 addi 9,2,x1@tprel
22243 addis 9,2,x2@tprel@ha
22244 addi 9,9,x2@tprel@l'
22245 tls_first_major=2
22246 tls_first_minor=14
22247 tls_as_opt="-a32 --fatal-warnings"
22248 ;;
22249 powerpc64-*-*)
22250 conftest_s='
22251 .section ".tdata","awT",@progbits
22252 .align 3
22253 ld0: .space 8
22254 ld1: .space 8
22255 x1: .space 8
22256 x2: .space 8
22257 x3: .space 8
22258 .text
22259 addi 3,2,ld0@got@tlsgd
22260 bl .__tls_get_addr
22261 nop
22262 addi 3,2,ld1@toc
22263 bl .__tls_get_addr
22264 nop
22265 addi 3,2,x1@got@tlsld
22266 bl .__tls_get_addr
22267 nop
22268 addi 9,3,x1@dtprel
22269 bl .__tls_get_addr
22270 nop
22271 addis 9,3,x2@dtprel@ha
22272 addi 9,9,x2@dtprel@l
22273 bl .__tls_get_addr
22274 nop
22275 ld 9,x3@got@dtprel(2)
22276 add 9,9,3
22277 bl .__tls_get_addr
22278 nop'
22279 tls_first_major=2
22280 tls_first_minor=14
22281 tls_as_opt="-a64 --fatal-warnings"
22282 ;;
22283 s390-*-*)
22284 conftest_s='
22285 .section ".tdata","awT",@progbits
22286 foo: .long 25
22287 .text
22288 .long foo@TLSGD
22289 .long foo@TLSLDM
22290 .long foo@DTPOFF
22291 .long foo@NTPOFF
22292 .long foo@GOTNTPOFF
22293 .long foo@INDNTPOFF
22294 l %r1,foo@GOTNTPOFF(%r12)
22295 l %r1,0(%r1):tls_load:foo
22296 bas %r14,0(%r1,%r13):tls_gdcall:foo
22297 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22298 tls_first_major=2
22299 tls_first_minor=14
22300 tls_as_opt="-m31 --fatal-warnings"
22301 ;;
22302 s390x-*-*)
22303 conftest_s='
22304 .section ".tdata","awT",@progbits
22305 foo: .long 25
22306 .text
22307 .quad foo@TLSGD
22308 .quad foo@TLSLDM
22309 .quad foo@DTPOFF
22310 .quad foo@NTPOFF
22311 .quad foo@GOTNTPOFF
22312 lg %r1,foo@GOTNTPOFF(%r12)
22313 larl %r1,foo@INDNTPOFF
22314 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22315 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22316 tls_first_major=2
22317 tls_first_minor=14
22318 tls_as_opt="-m64 -Aesame --fatal-warnings"
22319 ;;
22320 sh-*-* | sh[34]-*-*)
22321 conftest_s='
22322 .section ".tdata","awT",@progbits
22323 foo: .long 25
22324 .text
22325 .long foo@TLSGD
22326 .long foo@TLSLDM
22327 .long foo@DTPOFF
22328 .long foo@GOTTPOFF
22329 .long foo@TPOFF'
22330 tls_first_major=2
22331 tls_first_minor=13
22332 tls_as_opt=--fatal-warnings
22333 ;;
22334 sparc*-*-*)
22335 case "$target" in
22336 sparc*-sun-solaris2.[89]*)
22337 # TLS was introduced in the Solaris 9 4/04 release but
22338 # we do not enable it by default on Solaris 9 either.
22339 if test "x$enable_tls" = xyes ; then
22340 on_solaris=yes
22341 else
22342 enable_tls=no;
22343 fi
22344 ;;
22345 sparc*-sun-solaris2.*)
22346 on_solaris=yes
22347 ;;
22348 *)
22349 on_solaris=no
22350 ;;
22351 esac
22352 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22353 conftest_s='
22354 .section ".tdata",#alloc,#write,#tls
22355 foo: .long 25
22356 .text
22357 sethi %tgd_hi22(foo), %o0
22358 add %o0, %tgd_lo10(foo), %o1
22359 add %l7, %o1, %o0, %tgd_add(foo)
22360 call __tls_get_addr, %tgd_call(foo)
22361 sethi %tldm_hi22(foo), %l1
22362 add %l1, %tldm_lo10(foo), %l2
22363 add %l7, %l2, %o0, %tldm_add(foo)
22364 call __tls_get_addr, %tldm_call(foo)
22365 sethi %tldo_hix22(foo), %l3
22366 xor %l3, %tldo_lox10(foo), %l4
22367 add %o0, %l4, %l5, %tldo_add(foo)
22368 sethi %tie_hi22(foo), %o3
22369 add %o3, %tie_lo10(foo), %o3
22370 ld [%l7 + %o3], %o2, %tie_ld(foo)
22371 add %g7, %o2, %o4, %tie_add(foo)
22372 sethi %tle_hix22(foo), %l1
22373 xor %l1, %tle_lox10(foo), %o5
22374 ld [%g7 + %o5], %o1'
22375 tls_first_major=0
22376 tls_first_minor=0
22377 else
22378 conftest_s='
22379 .section ".tdata","awT",@progbits
22380 foo: .long 25
22381 .text
22382 sethi %tgd_hi22(foo), %o0
22383 add %o0, %tgd_lo10(foo), %o1
22384 add %l7, %o1, %o0, %tgd_add(foo)
22385 call __tls_get_addr, %tgd_call(foo)
22386 sethi %tldm_hi22(foo), %l1
22387 add %l1, %tldm_lo10(foo), %l2
22388 add %l7, %l2, %o0, %tldm_add(foo)
22389 call __tls_get_addr, %tldm_call(foo)
22390 sethi %tldo_hix22(foo), %l3
22391 xor %l3, %tldo_lox10(foo), %l4
22392 add %o0, %l4, %l5, %tldo_add(foo)
22393 sethi %tie_hi22(foo), %o3
22394 add %o3, %tie_lo10(foo), %o3
22395 ld [%l7 + %o3], %o2, %tie_ld(foo)
22396 add %g7, %o2, %o4, %tie_add(foo)
22397 sethi %tle_hix22(foo), %l1
22398 xor %l1, %tle_lox10(foo), %o5
22399 ld [%g7 + %o5], %o1'
22400 tls_first_major=2
22401 tls_first_minor=14
22402 tls_as_opt="-32 --fatal-warnings"
22403 fi
22404 ;;
22405 xtensa*-*-*)
22406 conftest_s='
22407 .section ".tdata","awT",@progbits
22408 foo: .long 25
22409 .text
22410 movi a8, foo@TLSFUNC
22411 movi a10, foo@TLSARG
22412 callx8.tls a8, foo@TLSCALL'
22413 tls_first_major=2
22414 tls_first_minor=19
22415 ;;
22416 esac
22417 set_have_as_tls=no
22418 if test "x$enable_tls" = xno ; then
22419 : # TLS explicitly disabled.
22420 elif test "x$enable_tls" = xyes ; then
22421 set_have_as_tls=yes # TLS explicitly enabled.
22422 elif test -z "$tls_first_major"; then
22423 : # If we don't have a check, assume no support.
22424 else
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22426 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22427 if test "${gcc_cv_as_tls+set}" = set; then :
22428 $as_echo_n "(cached) " >&6
22429 else
22430 gcc_cv_as_tls=no
22431 if test $in_tree_gas = yes; then
22432 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22433 then gcc_cv_as_tls=yes
22434 fi
22435 elif test x$gcc_cv_as != x; then
22436 echo "$conftest_s" > conftest.s
22437 if { ac_try='$gcc_cv_as $gcc_cv_as_flags $tls_as_opt -o conftest.o conftest.s >&5'
22438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22439 (eval $ac_try) 2>&5
22440 ac_status=$?
22441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22442 test $ac_status = 0; }; }
22443 then
22444 gcc_cv_as_tls=yes
22445 else
22446 echo "configure: failed program was" >&5
22447 cat conftest.s >&5
22448 fi
22449 rm -f conftest.o conftest.s
22450 fi
22451 fi
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22453 $as_echo "$gcc_cv_as_tls" >&6; }
22454 if test $gcc_cv_as_tls = yes; then
22455 set_have_as_tls=yes
22456 fi
22457 fi
22458 if test $set_have_as_tls = yes ; then
22459
22460 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22461
22462 fi
22463
22464 # Target-specific assembler checks.
22465
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22467 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22468 gcc_cv_ld_static_dynamic=no
22469 if test $in_tree_ld = yes ; then
22470 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
22471 gcc_cv_ld_static_dynamic=yes
22472 fi
22473 elif test x$gcc_cv_ld != x; then
22474 # Check if linker supports -Bstatic/-Bdynamic option
22475 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22476 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22477 gcc_cv_ld_static_dynamic=yes
22478 fi
22479 fi
22480 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22481
22482 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22483
22484 fi
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22486 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22487
22488 if test x"$demangler_in_ld" = xyes; then
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22490 $as_echo_n "checking linker --demangle support... " >&6; }
22491 gcc_cv_ld_demangle=no
22492 if test $in_tree_ld = yes; then
22493 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 \
22494 gcc_cv_ld_demangle=yes
22495 fi
22496 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22497 # Check if the GNU linker supports --demangle option
22498 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22499 gcc_cv_ld_demangle=yes
22500 fi
22501 fi
22502 if test x"$gcc_cv_ld_demangle" = xyes; then
22503
22504 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22505
22506 fi
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22508 $as_echo "$gcc_cv_ld_demangle" >&6; }
22509 fi
22510
22511 case "$target" in
22512 # All TARGET_ABI_OSF targets.
22513 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22515 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22516 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22517 $as_echo_n "(cached) " >&6
22518 else
22519 gcc_cv_as_alpha_explicit_relocs=no
22520 if test $in_tree_gas = yes; then
22521 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22522 then gcc_cv_as_alpha_explicit_relocs=yes
22523 fi
22524 elif test x$gcc_cv_as != x; then
22525 echo ' .set nomacro
22526 .text
22527 extbl $3, $2, $3 !lituse_bytoff!1
22528 ldq $2, a($29) !literal!1
22529 ldq $4, b($29) !literal!2
22530 ldq_u $3, 0($2) !lituse_base!1
22531 ldq $27, f($29) !literal!5
22532 jsr $26, ($27), f !lituse_jsr!5
22533 ldah $29, 0($26) !gpdisp!3
22534 lda $0, c($29) !gprel
22535 ldah $1, d($29) !gprelhigh
22536 lda $1, d($1) !gprellow
22537 lda $29, 0($29) !gpdisp!3' > conftest.s
22538 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22543 test $ac_status = 0; }; }
22544 then
22545 gcc_cv_as_alpha_explicit_relocs=yes
22546 else
22547 echo "configure: failed program was" >&5
22548 cat conftest.s >&5
22549 fi
22550 rm -f conftest.o conftest.s
22551 fi
22552 fi
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22554 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22555 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22556
22557 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22558
22559 fi
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22561 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22562 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22563 $as_echo_n "(cached) " >&6
22564 else
22565 gcc_cv_as_alpha_jsrdirect_relocs=no
22566 if test $in_tree_gas = yes; then
22567 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22568 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22569 fi
22570 elif test x$gcc_cv_as != x; then
22571 echo ' .set nomacro
22572 .text
22573 ldq $27, a($29) !literal!1
22574 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22575 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22576 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22577 (eval $ac_try) 2>&5
22578 ac_status=$?
22579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22580 test $ac_status = 0; }; }
22581 then
22582 gcc_cv_as_alpha_jsrdirect_relocs=yes
22583 else
22584 echo "configure: failed program was" >&5
22585 cat conftest.s >&5
22586 fi
22587 rm -f conftest.o conftest.s
22588 fi
22589 fi
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22591 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22592 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22593
22594 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22595
22596 fi
22597 ;;
22598
22599 cris-*-*)
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22601 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22602 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22603 $as_echo_n "(cached) " >&6
22604 else
22605 gcc_cv_as_cris_no_mul_bug=no
22606 if test $in_tree_gas = yes; then
22607 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22608 then gcc_cv_as_cris_no_mul_bug=yes
22609 fi
22610 elif test x$gcc_cv_as != x; then
22611 echo '.text' > conftest.s
22612 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -no-mul-bug-abort -o conftest.o conftest.s >&5'
22613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22614 (eval $ac_try) 2>&5
22615 ac_status=$?
22616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22617 test $ac_status = 0; }; }
22618 then
22619 gcc_cv_as_cris_no_mul_bug=yes
22620 else
22621 echo "configure: failed program was" >&5
22622 cat conftest.s >&5
22623 fi
22624 rm -f conftest.o conftest.s
22625 fi
22626 fi
22627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22628 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22629 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22630
22631 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22632
22633 fi
22634 ;;
22635
22636 sparc*-*-*)
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22638 $as_echo_n "checking assembler for .register... " >&6; }
22639 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22640 $as_echo_n "(cached) " >&6
22641 else
22642 gcc_cv_as_sparc_register_op=no
22643 if test x$gcc_cv_as != x; then
22644 echo '.register %g2, #scratch' > conftest.s
22645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22647 (eval $ac_try) 2>&5
22648 ac_status=$?
22649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22650 test $ac_status = 0; }; }
22651 then
22652 gcc_cv_as_sparc_register_op=yes
22653 else
22654 echo "configure: failed program was" >&5
22655 cat conftest.s >&5
22656 fi
22657 rm -f conftest.o conftest.s
22658 fi
22659 fi
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22661 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22662 if test $gcc_cv_as_sparc_register_op = yes; then
22663
22664 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22665
22666 fi
22667
22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22669 $as_echo_n "checking assembler for -relax option... " >&6; }
22670 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22671 $as_echo_n "(cached) " >&6
22672 else
22673 gcc_cv_as_sparc_relax=no
22674 if test x$gcc_cv_as != x; then
22675 echo '.text' > conftest.s
22676 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -relax -o conftest.o conftest.s >&5'
22677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22678 (eval $ac_try) 2>&5
22679 ac_status=$?
22680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22681 test $ac_status = 0; }; }
22682 then
22683 gcc_cv_as_sparc_relax=yes
22684 else
22685 echo "configure: failed program was" >&5
22686 cat conftest.s >&5
22687 fi
22688 rm -f conftest.o conftest.s
22689 fi
22690 fi
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22692 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22693 if test $gcc_cv_as_sparc_relax = yes; then
22694
22695 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22696
22697 fi
22698
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTDATA_OP relocs" >&5
22700 $as_echo_n "checking assembler for GOTDATA_OP relocs... " >&6; }
22701 if test "${gcc_cv_as_sparc_gotdata_op+set}" = set; then :
22702 $as_echo_n "(cached) " >&6
22703 else
22704 gcc_cv_as_sparc_gotdata_op=no
22705 if test x$gcc_cv_as != x; then
22706 echo '.text
22707 foo:
22708 nop
22709 bar:
22710 sethi %gdop_hix22(foo), %g1
22711 xor %g1, %gdop_lox10(foo), %g1
22712 ld [%l7 + %g1], %g2, %gdop(foo)' > conftest.s
22713 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22718 test $ac_status = 0; }; }
22719 then
22720 if test x$gcc_cv_ld != x \
22721 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22722 if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
22723 if test x$gcc_cv_objdump != x; then
22724 if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
22725 | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
22726 gcc_cv_as_sparc_gotdata_op=no
22727 else
22728 gcc_cv_as_sparc_gotdata_op=yes
22729 fi
22730 fi
22731 else
22732 gcc_cv_as_sparc_gotdata_op=yes
22733 fi
22734 fi
22735 rm -f conftest
22736 else
22737 echo "configure: failed program was" >&5
22738 cat conftest.s >&5
22739 fi
22740 rm -f conftest.o conftest.s
22741 fi
22742 fi
22743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_gotdata_op" >&5
22744 $as_echo "$gcc_cv_as_sparc_gotdata_op" >&6; }
22745 if test $gcc_cv_as_sparc_gotdata_op = yes; then
22746
22747 $as_echo "#define HAVE_AS_SPARC_GOTDATA_OP 1" >>confdefs.h
22748
22749 fi
22750
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22752 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22753 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22754 $as_echo_n "(cached) " >&6
22755 else
22756 gcc_cv_as_sparc_ua_pcrel=no
22757 if test x$gcc_cv_as != x; then
22758 echo '.text
22759 foo:
22760 nop
22761 .data
22762 .align 4
22763 .byte 0
22764 .uaword %r_disp32(foo)' > conftest.s
22765 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22767 (eval $ac_try) 2>&5
22768 ac_status=$?
22769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22770 test $ac_status = 0; }; }
22771 then
22772 if test x$gcc_cv_ld != x \
22773 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22774 gcc_cv_as_sparc_ua_pcrel=yes
22775 fi
22776 rm -f conftest
22777 else
22778 echo "configure: failed program was" >&5
22779 cat conftest.s >&5
22780 fi
22781 rm -f conftest.o conftest.s
22782 fi
22783 fi
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22785 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22786 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22787
22788 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22789
22790
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22792 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22793 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22794 $as_echo_n "(cached) " >&6
22795 else
22796 gcc_cv_as_sparc_ua_pcrel_hidden=no
22797 if test x$gcc_cv_as != x; then
22798 echo '.data
22799 .align 4
22800 .byte 0x31
22801 .uaword %r_disp32(foo)
22802 .byte 0x32, 0x33, 0x34
22803 .global foo
22804 .hidden foo
22805 foo:
22806 .skip 4' > conftest.s
22807 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -K PIC -o conftest.o conftest.s >&5'
22808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22809 (eval $ac_try) 2>&5
22810 ac_status=$?
22811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22812 test $ac_status = 0; }; }
22813 then
22814 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22815 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22816 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22817 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22818 if $gcc_cv_objdump -R conftest 2> /dev/null \
22819 | grep 'DISP32' > /dev/null 2>&1; then
22820 :
22821 else
22822 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22823 fi
22824 fi
22825 rm -f conftest
22826 else
22827 echo "configure: failed program was" >&5
22828 cat conftest.s >&5
22829 fi
22830 rm -f conftest.o conftest.s
22831 fi
22832 fi
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22834 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22835 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22836
22837 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22838
22839 fi
22840
22841 fi # unaligned pcrel relocs
22842
22843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22844 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22845 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22846 $as_echo_n "(cached) " >&6
22847 else
22848 gcc_cv_as_sparc_offsetable_lo10=no
22849 if test x$gcc_cv_as != x; then
22850 echo '.text
22851 or %g1, %lo(ab) + 12, %g1
22852 or %g1, %lo(ab + 12), %g1' > conftest.s
22853 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -xarch=v9 -o conftest.o conftest.s >&5'
22854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22855 (eval $ac_try) 2>&5
22856 ac_status=$?
22857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22858 test $ac_status = 0; }; }
22859 then
22860 if test x$gcc_cv_objdump != x \
22861 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22862 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22863 gcc_cv_as_sparc_offsetable_lo10=yes
22864 fi
22865 else
22866 echo "configure: failed program was" >&5
22867 cat conftest.s >&5
22868 fi
22869 rm -f conftest.o conftest.s
22870 fi
22871 fi
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22873 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22874 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22875
22876 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22877
22878 fi
22879 ;;
22880
22881 i[34567]86-*-* | x86_64-*-*)
22882 case $target_os in
22883 cygwin*)
22884 # Full C++ conformance when using a shared libstdc++-v3 requires some
22885 # support from the Cygwin DLL, which in more recent versions exports
22886 # wrappers to aid in interposing and redirecting operators new, delete,
22887 # etc., as per n2800 #17.6.4.6 [replacement.functions]. Check if we
22888 # are configuring for a version of Cygwin that exports the wrappers.
22889 if test x$host = x$target; then
22890 ac_fn_c_check_func "$LINENO" "__wrap__Znaj" "ac_cv_func___wrap__Znaj"
22891 if test "x$ac_cv_func___wrap__Znaj" = x""yes; then :
22892 gcc_ac_cygwin_dll_wrappers=yes
22893 else
22894 gcc_ac_cygwin_dll_wrappers=no
22895 fi
22896
22897 else
22898 # Can't check presence of libc functions during cross-compile, so
22899 # we just have to assume we're building for an up-to-date target.
22900 gcc_ac_cygwin_dll_wrappers=yes
22901 fi
22902
22903 cat >>confdefs.h <<_ACEOF
22904 #define USE_CYGWIN_LIBSTDCXX_WRAPPERS `if test $gcc_ac_cygwin_dll_wrappers = yes; then echo 1; else echo 0; fi`
22905 _ACEOF
22906
22907 esac
22908 case $target_os in
22909 cygwin* | pe | mingw32*)
22910 # Recent binutils allows the three-operand form of ".comm" on PE. This
22911 # definition is used unconditionally to initialise the default state of
22912 # the target option variable that governs usage of the feature.
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22914 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22915 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22916 $as_echo_n "(cached) " >&6
22917 else
22918 gcc_cv_as_comm_has_align=no
22919 if test $in_tree_gas = yes; then
22920 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22921 then gcc_cv_as_comm_has_align=yes
22922 fi
22923 elif test x$gcc_cv_as != x; then
22924 echo '.comm foo,1,32' > conftest.s
22925 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22927 (eval $ac_try) 2>&5
22928 ac_status=$?
22929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22930 test $ac_status = 0; }; }
22931 then
22932 gcc_cv_as_comm_has_align=yes
22933 else
22934 echo "configure: failed program was" >&5
22935 cat conftest.s >&5
22936 fi
22937 rm -f conftest.o conftest.s
22938 fi
22939 fi
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22941 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22942
22943
22944 cat >>confdefs.h <<_ACEOF
22945 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22946 _ACEOF
22947
22948 # Used for DWARF 2 in PE
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22950 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22951 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22952 $as_echo_n "(cached) " >&6
22953 else
22954 gcc_cv_as_ix86_pe_secrel32=no
22955 if test $in_tree_gas = yes; then
22956 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22957 then gcc_cv_as_ix86_pe_secrel32=yes
22958 fi
22959 elif test x$gcc_cv_as != x; then
22960 echo '.text
22961 foo: nop
22962 .data
22963 .secrel32 foo' > conftest.s
22964 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
22965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22966 (eval $ac_try) 2>&5
22967 ac_status=$?
22968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22969 test $ac_status = 0; }; }
22970 then
22971 if test x$gcc_cv_ld != x \
22972 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22973 gcc_cv_as_ix86_pe_secrel32=yes
22974 fi
22975 rm -f conftest
22976 else
22977 echo "configure: failed program was" >&5
22978 cat conftest.s >&5
22979 fi
22980 rm -f conftest.o conftest.s
22981 fi
22982 fi
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22984 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22985 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22986
22987 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22988
22989 fi
22990 # Test if the assembler supports the extended form of the .section
22991 # directive that specifies section alignment. LTO support uses this,
22992 # but normally only after installation, so we warn but don't fail the
22993 # configure if LTO is enabled but the assembler does not support it.
22994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .section with alignment" >&5
22995 $as_echo_n "checking assembler for .section with alignment... " >&6; }
22996 if test "${gcc_cv_as_section_has_align+set}" = set; then :
22997 $as_echo_n "(cached) " >&6
22998 else
22999 gcc_cv_as_section_has_align=no
23000 if test $in_tree_gas = yes; then
23001 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 1`
23002 then gcc_cv_as_section_has_align=yes
23003 fi
23004 elif test x$gcc_cv_as != x; then
23005 echo '.section lto_test,"dr0"' > conftest.s
23006 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -fatal-warnings -o conftest.o conftest.s >&5'
23007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23008 (eval $ac_try) 2>&5
23009 ac_status=$?
23010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23011 test $ac_status = 0; }; }
23012 then
23013 gcc_cv_as_section_has_align=yes
23014 else
23015 echo "configure: failed program was" >&5
23016 cat conftest.s >&5
23017 fi
23018 rm -f conftest.o conftest.s
23019 fi
23020 fi
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_section_has_align" >&5
23022 $as_echo "$gcc_cv_as_section_has_align" >&6; }
23023
23024 if test x$gcc_cv_as_section_has_align != xyes; then
23025 case ",$enable_languages," in
23026 *,lto,*)
23027 { $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
23028 $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;}
23029 ;;
23030 esac
23031 fi
23032 ;;
23033 esac
23034
23035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
23036 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
23037 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
23038 $as_echo_n "(cached) " >&6
23039 else
23040 gcc_cv_as_ix86_filds=no
23041 if test x$gcc_cv_as != x; then
23042 echo 'filds mem; fists mem' > conftest.s
23043 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23045 (eval $ac_try) 2>&5
23046 ac_status=$?
23047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23048 test $ac_status = 0; }; }
23049 then
23050 gcc_cv_as_ix86_filds=yes
23051 else
23052 echo "configure: failed program was" >&5
23053 cat conftest.s >&5
23054 fi
23055 rm -f conftest.o conftest.s
23056 fi
23057 fi
23058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
23059 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
23060 if test $gcc_cv_as_ix86_filds = yes; then
23061
23062 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
23063
23064 fi
23065
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
23067 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
23068 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
23069 $as_echo_n "(cached) " >&6
23070 else
23071 gcc_cv_as_ix86_fildq=no
23072 if test x$gcc_cv_as != x; then
23073 echo 'fildq mem; fistpq mem' > conftest.s
23074 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23079 test $ac_status = 0; }; }
23080 then
23081 gcc_cv_as_ix86_fildq=yes
23082 else
23083 echo "configure: failed program was" >&5
23084 cat conftest.s >&5
23085 fi
23086 rm -f conftest.o conftest.s
23087 fi
23088 fi
23089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
23090 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
23091 if test $gcc_cv_as_ix86_fildq = yes; then
23092
23093 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
23094
23095 fi
23096
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
23098 $as_echo_n "checking assembler for cmov syntax... " >&6; }
23099 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
23100 $as_echo_n "(cached) " >&6
23101 else
23102 gcc_cv_as_ix86_cmov_sun_syntax=no
23103 if test x$gcc_cv_as != x; then
23104 echo 'cmovl.l %edx, %eax' > conftest.s
23105 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23110 test $ac_status = 0; }; }
23111 then
23112 gcc_cv_as_ix86_cmov_sun_syntax=yes
23113 else
23114 echo "configure: failed program was" >&5
23115 cat conftest.s >&5
23116 fi
23117 rm -f conftest.o conftest.s
23118 fi
23119 fi
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
23121 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
23122 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
23123
23124 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
23125
23126 fi
23127
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
23129 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
23130 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
23131 $as_echo_n "(cached) " >&6
23132 else
23133 gcc_cv_as_ix86_ffreep=no
23134 if test x$gcc_cv_as != x; then
23135 echo 'ffreep %st(1)' > conftest.s
23136 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23141 test $ac_status = 0; }; }
23142 then
23143 gcc_cv_as_ix86_ffreep=yes
23144 else
23145 echo "configure: failed program was" >&5
23146 cat conftest.s >&5
23147 fi
23148 rm -f conftest.o conftest.s
23149 fi
23150 fi
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
23152 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
23153 if test $gcc_cv_as_ix86_ffreep = yes; then
23154
23155 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
23156
23157 fi
23158
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .quad directive" >&5
23160 $as_echo_n "checking assembler for .quad directive... " >&6; }
23161 if test "${gcc_cv_as_ix86_quad+set}" = set; then :
23162 $as_echo_n "(cached) " >&6
23163 else
23164 gcc_cv_as_ix86_quad=no
23165 if test x$gcc_cv_as != x; then
23166 echo '.quad 0' > conftest.s
23167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23172 test $ac_status = 0; }; }
23173 then
23174 gcc_cv_as_ix86_quad=yes
23175 else
23176 echo "configure: failed program was" >&5
23177 cat conftest.s >&5
23178 fi
23179 rm -f conftest.o conftest.s
23180 fi
23181 fi
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_quad" >&5
23183 $as_echo "$gcc_cv_as_ix86_quad" >&6; }
23184 if test $gcc_cv_as_ix86_quad = yes; then
23185
23186 $as_echo "#define HAVE_AS_IX86_QUAD 1" >>confdefs.h
23187
23188 fi
23189
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
23191 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
23192 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23194 else
23195 gcc_cv_as_ix86_sahf=no
23196 if test x$gcc_cv_as != x; then
23197 echo '.code64
23198 sahf' > conftest.s
23199 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23204 test $ac_status = 0; }; }
23205 then
23206 gcc_cv_as_ix86_sahf=yes
23207 else
23208 echo "configure: failed program was" >&5
23209 cat conftest.s >&5
23210 fi
23211 rm -f conftest.o conftest.s
23212 fi
23213 fi
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
23215 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
23216 if test $gcc_cv_as_ix86_sahf = yes; then
23217
23218 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
23219
23220 fi
23221
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
23223 $as_echo_n "checking assembler for swap suffix... " >&6; }
23224 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
23225 $as_echo_n "(cached) " >&6
23226 else
23227 gcc_cv_as_ix86_swap=no
23228 if test x$gcc_cv_as != x; then
23229 echo 'movl.s %esp, %ebp' > conftest.s
23230 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23235 test $ac_status = 0; }; }
23236 then
23237 gcc_cv_as_ix86_swap=yes
23238 else
23239 echo "configure: failed program was" >&5
23240 cat conftest.s >&5
23241 fi
23242 rm -f conftest.o conftest.s
23243 fi
23244 fi
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
23246 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
23247 if test $gcc_cv_as_ix86_swap = yes; then
23248
23249 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
23250
23251 fi
23252
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
23254 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
23255 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
23256 $as_echo_n "(cached) " >&6
23257 else
23258 gcc_cv_as_ix86_diff_sect_delta=no
23259 if test x$gcc_cv_as != x; then
23260 echo '.section .rodata
23261 .L1:
23262 .long .L2-.L1
23263 .long .L3-.L1
23264 .text
23265 .L3: nop
23266 .L2: nop' > conftest.s
23267 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23269 (eval $ac_try) 2>&5
23270 ac_status=$?
23271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23272 test $ac_status = 0; }; }
23273 then
23274 gcc_cv_as_ix86_diff_sect_delta=yes
23275 else
23276 echo "configure: failed program was" >&5
23277 cat conftest.s >&5
23278 fi
23279 rm -f conftest.o conftest.s
23280 fi
23281 fi
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23283 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23284 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23285
23286 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23287
23288 fi
23289
23290 # These two are used unconditionally by i386.[ch]; it is to be defined
23291 # to 1 if the feature is present, 0 otherwise.
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23293 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23294 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23295 $as_echo_n "(cached) " >&6
23296 else
23297 gcc_cv_as_ix86_gotoff_in_data=no
23298 if test $in_tree_gas = yes; then
23299 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23300 then gcc_cv_as_ix86_gotoff_in_data=yes
23301 fi
23302 elif test x$gcc_cv_as != x; then
23303 echo ' .text
23304 .L0:
23305 nop
23306 .data
23307 .long .L0@GOTOFF' > conftest.s
23308 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; }
23314 then
23315 gcc_cv_as_ix86_gotoff_in_data=yes
23316 else
23317 echo "configure: failed program was" >&5
23318 cat conftest.s >&5
23319 fi
23320 rm -f conftest.o conftest.s
23321 fi
23322 fi
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23324 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23325
23326
23327 cat >>confdefs.h <<_ACEOF
23328 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23329 _ACEOF
23330
23331
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rep and lock prefix" >&5
23333 $as_echo_n "checking assembler for rep and lock prefix... " >&6; }
23334 if test "${gcc_cv_as_ix86_rep_lock_prefix+set}" = set; then :
23335 $as_echo_n "(cached) " >&6
23336 else
23337 gcc_cv_as_ix86_rep_lock_prefix=no
23338 if test x$gcc_cv_as != x; then
23339 echo 'rep movsl
23340 lock addl %edi, (%eax,%esi)
23341 lock orl $0, (%esp)' > conftest.s
23342 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23347 test $ac_status = 0; }; }
23348 then
23349 gcc_cv_as_ix86_rep_lock_prefix=yes
23350 else
23351 echo "configure: failed program was" >&5
23352 cat conftest.s >&5
23353 fi
23354 rm -f conftest.o conftest.s
23355 fi
23356 fi
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_rep_lock_prefix" >&5
23358 $as_echo "$gcc_cv_as_ix86_rep_lock_prefix" >&6; }
23359
23360
23361 cat >>confdefs.h <<_ACEOF
23362 #define HAVE_AS_IX86_REP_LOCK_PREFIX `if test $gcc_cv_as_ix86_rep_lock_prefix = yes; then echo 1; else echo 0; fi`
23363 _ACEOF
23364
23365
23366 ;;
23367
23368 ia64*-*-*)
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23370 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23371 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23372 $as_echo_n "(cached) " >&6
23373 else
23374 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23375 if test $in_tree_gas = yes; then
23376 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23377 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23378 fi
23379 elif test x$gcc_cv_as != x; then
23380 echo ' .text
23381 addl r15 = @ltoffx(x#), gp
23382 ;;
23383 ld8.mov r16 = [r15], x#' > conftest.s
23384 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23389 test $ac_status = 0; }; }
23390 then
23391 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23392 else
23393 echo "configure: failed program was" >&5
23394 cat conftest.s >&5
23395 fi
23396 rm -f conftest.o conftest.s
23397 fi
23398 fi
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23400 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23401 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23402
23403 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23404
23405 fi
23406
23407 ;;
23408
23409 powerpc*-*-*)
23410 case $target in
23411 *-*-aix*) conftest_s=' .machine "pwr5"
23412 .csect .text[PR]
23413 mfcr 3,128';;
23414 *-*-darwin*)
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23416 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23417 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23418 $as_echo_n "(cached) " >&6
23419 else
23420 gcc_cv_as_machine_directive=no
23421 if test x$gcc_cv_as != x; then
23422 echo ' .machine ppc7400' > conftest.s
23423 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23425 (eval $ac_try) 2>&5
23426 ac_status=$?
23427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23428 test $ac_status = 0; }; }
23429 then
23430 gcc_cv_as_machine_directive=yes
23431 else
23432 echo "configure: failed program was" >&5
23433 cat conftest.s >&5
23434 fi
23435 rm -f conftest.o conftest.s
23436 fi
23437 fi
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23439 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23440
23441 if test x$gcc_cv_as_machine_directive != xyes; then
23442 echo "*** This target requires an assembler supporting \".machine\"" >&2
23443 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23444 test x$build = x$target && exit 1
23445 fi
23446 conftest_s=' .text
23447 mfcr r3,128';;
23448 *) conftest_s=' .machine power4
23449 .text
23450 mfcr 3,128';;
23451 esac
23452
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23454 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23455 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23456 $as_echo_n "(cached) " >&6
23457 else
23458 gcc_cv_as_powerpc_mfcrf=no
23459 if test $in_tree_gas = yes; then
23460 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23461 then gcc_cv_as_powerpc_mfcrf=yes
23462 fi
23463 elif test x$gcc_cv_as != x; then
23464 echo "$conftest_s" > conftest.s
23465 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23470 test $ac_status = 0; }; }
23471 then
23472 gcc_cv_as_powerpc_mfcrf=yes
23473 else
23474 echo "configure: failed program was" >&5
23475 cat conftest.s >&5
23476 fi
23477 rm -f conftest.o conftest.s
23478 fi
23479 fi
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23481 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23482 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23483
23484 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23485
23486 fi
23487
23488 case $target in
23489 *-*-aix*) conftest_s=' .machine "pwr5"
23490 .csect .text[PR]
23491 popcntb 3,3';;
23492 *) conftest_s=' .machine power5
23493 .text
23494 popcntb 3,3';;
23495 esac
23496
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23498 $as_echo_n "checking assembler for popcntb support... " >&6; }
23499 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23500 $as_echo_n "(cached) " >&6
23501 else
23502 gcc_cv_as_powerpc_popcntb=no
23503 if test $in_tree_gas = yes; then
23504 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23505 then gcc_cv_as_powerpc_popcntb=yes
23506 fi
23507 elif test x$gcc_cv_as != x; then
23508 echo "$conftest_s" > conftest.s
23509 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23511 (eval $ac_try) 2>&5
23512 ac_status=$?
23513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23514 test $ac_status = 0; }; }
23515 then
23516 gcc_cv_as_powerpc_popcntb=yes
23517 else
23518 echo "configure: failed program was" >&5
23519 cat conftest.s >&5
23520 fi
23521 rm -f conftest.o conftest.s
23522 fi
23523 fi
23524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23525 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23526 if test $gcc_cv_as_powerpc_popcntb = yes; then
23527
23528 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23529
23530 fi
23531
23532 case $target in
23533 *-*-aix*) conftest_s=' .machine "pwr5x"
23534 .csect .text[PR]
23535 frin 1,1';;
23536 *) conftest_s=' .machine power5
23537 .text
23538 frin 1,1';;
23539 esac
23540
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23542 $as_echo_n "checking assembler for fp round support... " >&6; }
23543 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23544 $as_echo_n "(cached) " >&6
23545 else
23546 gcc_cv_as_powerpc_fprnd=no
23547 if test $in_tree_gas = yes; then
23548 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23549 then gcc_cv_as_powerpc_fprnd=yes
23550 fi
23551 elif test x$gcc_cv_as != x; then
23552 echo "$conftest_s" > conftest.s
23553 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -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_powerpc_fprnd=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_powerpc_fprnd" >&5
23569 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23570 if test $gcc_cv_as_powerpc_fprnd = yes; then
23571
23572 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23573
23574 fi
23575
23576 case $target in
23577 *-*-aix*) conftest_s=' .machine "pwr6"
23578 .csect .text[PR]
23579 mffgpr 1,3';;
23580 *) conftest_s=' .machine power6
23581 .text
23582 mffgpr 1,3';;
23583 esac
23584
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23586 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23587 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23588 $as_echo_n "(cached) " >&6
23589 else
23590 gcc_cv_as_powerpc_mfpgpr=no
23591 if test $in_tree_gas = yes; then
23592 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23593 then gcc_cv_as_powerpc_mfpgpr=yes
23594 fi
23595 elif test x$gcc_cv_as != x; then
23596 echo "$conftest_s" > conftest.s
23597 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23599 (eval $ac_try) 2>&5
23600 ac_status=$?
23601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23602 test $ac_status = 0; }; }
23603 then
23604 gcc_cv_as_powerpc_mfpgpr=yes
23605 else
23606 echo "configure: failed program was" >&5
23607 cat conftest.s >&5
23608 fi
23609 rm -f conftest.o conftest.s
23610 fi
23611 fi
23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23613 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23614 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23615
23616 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23617
23618 fi
23619
23620 case $target in
23621 *-*-aix*) conftest_s=' .csect .text[PR]
23622 LCF..0:
23623 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23624 *-*-darwin*)
23625 conftest_s=' .text
23626 LCF0:
23627 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23628 *) conftest_s=' .text
23629 .LCF0:
23630 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23631 esac
23632
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23634 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23635 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23636 $as_echo_n "(cached) " >&6
23637 else
23638 gcc_cv_as_powerpc_rel16=no
23639 if test $in_tree_gas = yes; then
23640 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23641 then gcc_cv_as_powerpc_rel16=yes
23642 fi
23643 elif test x$gcc_cv_as != x; then
23644 echo "$conftest_s" > conftest.s
23645 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23647 (eval $ac_try) 2>&5
23648 ac_status=$?
23649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23650 test $ac_status = 0; }; }
23651 then
23652 gcc_cv_as_powerpc_rel16=yes
23653 else
23654 echo "configure: failed program was" >&5
23655 cat conftest.s >&5
23656 fi
23657 rm -f conftest.o conftest.s
23658 fi
23659 fi
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23661 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23662 if test $gcc_cv_as_powerpc_rel16 = yes; then
23663
23664 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23665
23666 fi
23667
23668 case $target in
23669 *-*-aix*) conftest_s=' .machine "pwr6"
23670 .csect .text[PR]
23671 cmpb 3,4,5';;
23672 *) conftest_s=' .machine power6
23673 .text
23674 cmpb 3,4,5';;
23675 esac
23676
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23678 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23679 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23680 $as_echo_n "(cached) " >&6
23681 else
23682 gcc_cv_as_powerpc_cmpb=no
23683 if test $in_tree_gas = yes; then
23684 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23685 then gcc_cv_as_powerpc_cmpb=yes
23686 fi
23687 elif test x$gcc_cv_as != x; then
23688 echo "$conftest_s" > conftest.s
23689 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23691 (eval $ac_try) 2>&5
23692 ac_status=$?
23693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23694 test $ac_status = 0; }; }
23695 then
23696 gcc_cv_as_powerpc_cmpb=yes
23697 else
23698 echo "configure: failed program was" >&5
23699 cat conftest.s >&5
23700 fi
23701 rm -f conftest.o conftest.s
23702 fi
23703 fi
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23705 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23706 if test $gcc_cv_as_powerpc_cmpb = yes; then
23707
23708 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23709
23710 fi
23711
23712 case $target in
23713 *-*-aix*) conftest_s=' .machine "pwr6"
23714 .csect .text[PR]
23715 dadd 1,2,3';;
23716 *) conftest_s=' .machine power6
23717 .text
23718 dadd 1,2,3';;
23719 esac
23720
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23722 $as_echo_n "checking assembler for decimal float support... " >&6; }
23723 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23724 $as_echo_n "(cached) " >&6
23725 else
23726 gcc_cv_as_powerpc_dfp=no
23727 if test $in_tree_gas = yes; then
23728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23729 then gcc_cv_as_powerpc_dfp=yes
23730 fi
23731 elif test x$gcc_cv_as != x; then
23732 echo "$conftest_s" > conftest.s
23733 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23735 (eval $ac_try) 2>&5
23736 ac_status=$?
23737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23738 test $ac_status = 0; }; }
23739 then
23740 gcc_cv_as_powerpc_dfp=yes
23741 else
23742 echo "configure: failed program was" >&5
23743 cat conftest.s >&5
23744 fi
23745 rm -f conftest.o conftest.s
23746 fi
23747 fi
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23749 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23750 if test $gcc_cv_as_powerpc_dfp = yes; then
23751
23752 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23753
23754 fi
23755
23756 case $target in
23757 *-*-aix*) conftest_s=' .machine "pwr7"
23758 .csect .text[PR]
23759 lxvd2x 1,2,3';;
23760 *) conftest_s=' .machine power7
23761 .text
23762 lxvd2x 1,2,3';;
23763 esac
23764
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23766 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23767 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23768 $as_echo_n "(cached) " >&6
23769 else
23770 gcc_cv_as_powerpc_vsx=no
23771 if test $in_tree_gas = yes; then
23772 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23773 then gcc_cv_as_powerpc_vsx=yes
23774 fi
23775 elif test x$gcc_cv_as != x; then
23776 echo "$conftest_s" > conftest.s
23777 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23779 (eval $ac_try) 2>&5
23780 ac_status=$?
23781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23782 test $ac_status = 0; }; }
23783 then
23784 gcc_cv_as_powerpc_vsx=yes
23785 else
23786 echo "configure: failed program was" >&5
23787 cat conftest.s >&5
23788 fi
23789 rm -f conftest.o conftest.s
23790 fi
23791 fi
23792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23793 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23794 if test $gcc_cv_as_powerpc_vsx = yes; then
23795
23796 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23797
23798 fi
23799
23800 case $target in
23801 *-*-aix*) conftest_s=' .machine "pwr7"
23802 .csect .text[PR]
23803 popcntd 3,3';;
23804 *) conftest_s=' .machine power7
23805 .text
23806 popcntd 3,3';;
23807 esac
23808
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23810 $as_echo_n "checking assembler for popcntd support... " >&6; }
23811 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23812 $as_echo_n "(cached) " >&6
23813 else
23814 gcc_cv_as_powerpc_popcntd=no
23815 if test $in_tree_gas = yes; then
23816 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23817 then gcc_cv_as_powerpc_popcntd=yes
23818 fi
23819 elif test x$gcc_cv_as != x; then
23820 echo "$conftest_s" > conftest.s
23821 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23826 test $ac_status = 0; }; }
23827 then
23828 gcc_cv_as_powerpc_popcntd=yes
23829 else
23830 echo "configure: failed program was" >&5
23831 cat conftest.s >&5
23832 fi
23833 rm -f conftest.o conftest.s
23834 fi
23835 fi
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23837 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23838 if test $gcc_cv_as_powerpc_popcntd = yes; then
23839
23840 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23841
23842 fi
23843
23844 case $target in
23845 *-*-aix*) conftest_s=' .csect .text[PR]
23846 lwsync';;
23847 *) conftest_s=' .text
23848 lwsync';;
23849 esac
23850
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23852 $as_echo_n "checking assembler for lwsync support... " >&6; }
23853 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23855 else
23856 gcc_cv_as_powerpc_lwsync=no
23857 if test $in_tree_gas = yes; then
23858 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23859 then gcc_cv_as_powerpc_lwsync=yes
23860 fi
23861 elif test x$gcc_cv_as != x; then
23862 echo "$conftest_s" > conftest.s
23863 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }
23869 then
23870 gcc_cv_as_powerpc_lwsync=yes
23871 else
23872 echo "configure: failed program was" >&5
23873 cat conftest.s >&5
23874 fi
23875 rm -f conftest.o conftest.s
23876 fi
23877 fi
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23879 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23880 if test $gcc_cv_as_powerpc_lwsync = yes; then
23881
23882 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23883
23884 fi
23885
23886 case $target in
23887 *-*-aix*) conftest_s=' .machine "476"
23888 .csect .text[PR]
23889 dci 0';;
23890 *) conftest_s=' .machine "476"
23891 .text
23892 dci 0';;
23893 esac
23894
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23896 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23897 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23898 $as_echo_n "(cached) " >&6
23899 else
23900 gcc_cv_as_powerpc_dci=no
23901 if test $in_tree_gas = yes; then
23902 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23903 then gcc_cv_as_powerpc_dci=yes
23904 fi
23905 elif test x$gcc_cv_as != x; then
23906 echo "$conftest_s" > conftest.s
23907 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -a32 -o conftest.o conftest.s >&5'
23908 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23909 (eval $ac_try) 2>&5
23910 ac_status=$?
23911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23912 test $ac_status = 0; }; }
23913 then
23914 gcc_cv_as_powerpc_dci=yes
23915 else
23916 echo "configure: failed program was" >&5
23917 cat conftest.s >&5
23918 fi
23919 rm -f conftest.o conftest.s
23920 fi
23921 fi
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23923 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23924 if test $gcc_cv_as_powerpc_dci = yes; then
23925
23926 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23927
23928 fi
23929
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23931 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23932 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23933 $as_echo_n "(cached) " >&6
23934 else
23935 gcc_cv_as_powerpc_gnu_attribute=no
23936 if test $in_tree_gas = yes; then
23937 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23938 then gcc_cv_as_powerpc_gnu_attribute=yes
23939 fi
23940 elif test x$gcc_cv_as != x; then
23941 echo '.gnu_attribute 4,1' > conftest.s
23942 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23944 (eval $ac_try) 2>&5
23945 ac_status=$?
23946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23947 test $ac_status = 0; }; }
23948 then
23949 gcc_cv_as_powerpc_gnu_attribute=yes
23950 else
23951 echo "configure: failed program was" >&5
23952 cat conftest.s >&5
23953 fi
23954 rm -f conftest.o conftest.s
23955 fi
23956 fi
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23958 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23959 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23960
23961 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23962
23963 fi
23964
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23966 $as_echo_n "checking assembler for tls marker support... " >&6; }
23967 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23968 $as_echo_n "(cached) " >&6
23969 else
23970 gcc_cv_as_powerpc_tls_markers=no
23971 if test $in_tree_gas = yes; then
23972 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23973 then gcc_cv_as_powerpc_tls_markers=yes
23974 fi
23975 elif test x$gcc_cv_as != x; then
23976 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23977 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
23978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23979 (eval $ac_try) 2>&5
23980 ac_status=$?
23981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23982 test $ac_status = 0; }; }
23983 then
23984 gcc_cv_as_powerpc_tls_markers=yes
23985 else
23986 echo "configure: failed program was" >&5
23987 cat conftest.s >&5
23988 fi
23989 rm -f conftest.o conftest.s
23990 fi
23991 fi
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23993 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23994 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23995
23996 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23997
23998 fi
23999
24000 case $target in
24001 *-*-aix*)
24002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .ref support" >&5
24003 $as_echo_n "checking assembler for .ref support... " >&6; }
24004 if test "${gcc_cv_as_aix_ref+set}" = set; then :
24005 $as_echo_n "(cached) " >&6
24006 else
24007 gcc_cv_as_aix_ref=no
24008 if test $in_tree_gas = yes; then
24009 if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
24010 then :
24011 fi
24012 elif test x$gcc_cv_as != x; then
24013 echo ' .csect stuff[rw]
24014 stuff:
24015 .long 1
24016 .extern sym
24017 .ref sym
24018 ' > conftest.s
24019 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24021 (eval $ac_try) 2>&5
24022 ac_status=$?
24023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24024 test $ac_status = 0; }; }
24025 then
24026 gcc_cv_as_aix_ref=yes
24027 else
24028 echo "configure: failed program was" >&5
24029 cat conftest.s >&5
24030 fi
24031 rm -f conftest.o conftest.s
24032 fi
24033 fi
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aix_ref" >&5
24035 $as_echo "$gcc_cv_as_aix_ref" >&6; }
24036 if test $gcc_cv_as_aix_ref = yes; then
24037
24038 $as_echo "#define HAVE_AS_REF 1" >>confdefs.h
24039
24040 fi
24041 ;;
24042 esac
24043 ;;
24044
24045 mips*-*-*)
24046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
24047 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
24048 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
24049 $as_echo_n "(cached) " >&6
24050 else
24051 gcc_cv_as_mips_explicit_relocs=no
24052 if test $in_tree_gas = yes; then
24053 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
24054 then gcc_cv_as_mips_explicit_relocs=yes
24055 fi
24056 elif test x$gcc_cv_as != x; then
24057 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
24058 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24063 test $ac_status = 0; }; }
24064 then
24065 gcc_cv_as_mips_explicit_relocs=yes
24066 else
24067 echo "configure: failed program was" >&5
24068 cat conftest.s >&5
24069 fi
24070 rm -f conftest.o conftest.s
24071 fi
24072 fi
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
24074 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
24075 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24076 if test x$target_cpu_default = x
24077 then target_cpu_default=MASK_EXPLICIT_RELOCS
24078 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
24079 fi
24080 fi
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
24082 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
24083 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
24084 $as_echo_n "(cached) " >&6
24085 else
24086 gcc_cv_as_mips_no_shared=no
24087 if test $in_tree_gas = yes; then
24088 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
24089 then gcc_cv_as_mips_no_shared=yes
24090 fi
24091 elif test x$gcc_cv_as != x; then
24092 echo 'nop' > conftest.s
24093 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mno-shared -o conftest.o conftest.s >&5'
24094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24095 (eval $ac_try) 2>&5
24096 ac_status=$?
24097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24098 test $ac_status = 0; }; }
24099 then
24100 gcc_cv_as_mips_no_shared=yes
24101 else
24102 echo "configure: failed program was" >&5
24103 cat conftest.s >&5
24104 fi
24105 rm -f conftest.o conftest.s
24106 fi
24107 fi
24108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
24109 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
24110 if test $gcc_cv_as_mips_no_shared = yes; then
24111
24112 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
24113
24114 fi
24115
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
24117 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
24118 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
24119 $as_echo_n "(cached) " >&6
24120 else
24121 gcc_cv_as_mips_gnu_attribute=no
24122 if test $in_tree_gas = yes; then
24123 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24124 then gcc_cv_as_mips_gnu_attribute=yes
24125 fi
24126 elif test x$gcc_cv_as != x; then
24127 echo '.gnu_attribute 4,1' > conftest.s
24128 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24133 test $ac_status = 0; }; }
24134 then
24135 gcc_cv_as_mips_gnu_attribute=yes
24136 else
24137 echo "configure: failed program was" >&5
24138 cat conftest.s >&5
24139 fi
24140 rm -f conftest.o conftest.s
24141 fi
24142 fi
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
24144 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
24145 if test $gcc_cv_as_mips_gnu_attribute = yes; then
24146
24147 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
24148
24149 fi
24150
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
24152 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
24153 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
24154 $as_echo_n "(cached) " >&6
24155 else
24156 gcc_cv_as_mips_dtprelword=no
24157 if test $in_tree_gas = yes; then
24158 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24159 then gcc_cv_as_mips_dtprelword=yes
24160 fi
24161 elif test x$gcc_cv_as != x; then
24162 echo '.section .tdata,"awT",@progbits
24163 x:
24164 .word 2
24165 .text
24166 .dtprelword x+0x8000' > conftest.s
24167 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169 (eval $ac_try) 2>&5
24170 ac_status=$?
24171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172 test $ac_status = 0; }; }
24173 then
24174 gcc_cv_as_mips_dtprelword=yes
24175 else
24176 echo "configure: failed program was" >&5
24177 cat conftest.s >&5
24178 fi
24179 rm -f conftest.o conftest.s
24180 fi
24181 fi
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
24183 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
24184 if test $gcc_cv_as_mips_dtprelword = yes; then
24185
24186 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
24187
24188 fi
24189
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
24191 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
24192 gcc_cv_as_ld_jalr_reloc=no
24193 if test $gcc_cv_as_mips_explicit_relocs = yes; then
24194 if test $in_tree_ld = yes ; then
24195 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 \
24196 && test $in_tree_ld_is_elf = yes; then
24197 gcc_cv_as_ld_jalr_reloc=yes
24198 fi
24199 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
24200 echo ' .ent x' > conftest.s
24201 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
24202 echo ' ld $25,%call16(y)($28)' >> conftest.s
24203 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
24204 echo '1: jalr $25' >> conftest.s
24205 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
24206 echo '1: jalr $25' >> conftest.s
24207 echo ' .end x' >> conftest.s
24208 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
24209 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
24210 if $gcc_cv_objdump -d conftest.so | grep jalr >/dev/null 2>&1 \
24211 && $gcc_cv_objdump -d conftest.so | grep "bal.*<x>" >/dev/null 2>&1; then
24212 gcc_cv_as_ld_jalr_reloc=yes
24213 fi
24214 fi
24215 rm -f conftest.*
24216 fi
24217 fi
24218 if test $gcc_cv_as_ld_jalr_reloc = yes; then
24219 if test x$target_cpu_default = x; then
24220 target_cpu_default=MASK_RELAX_PIC_CALLS
24221 else
24222 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
24223 fi
24224 fi
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
24226 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
24227
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
24229 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
24230 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
24231 $as_echo_n "(cached) " >&6
24232 else
24233 gcc_cv_ld_mips_personality_relaxation=no
24234 if test $in_tree_ld = yes ; then
24235 if test "$gcc_cv_gld_major_version" -eq 2 \
24236 -a "$gcc_cv_gld_minor_version" -ge 21 \
24237 -o "$gcc_cv_gld_major_version" -gt 2; then
24238 gcc_cv_ld_mips_personality_relaxation=yes
24239 fi
24240 elif test x$gcc_cv_as != x \
24241 -a x$gcc_cv_ld != x \
24242 -a x$gcc_cv_readelf != x ; then
24243 cat > conftest.s <<EOF
24244 .cfi_startproc
24245 .cfi_personality 0x80,indirect_ptr
24246 .ent test
24247 test:
24248 nop
24249 .end test
24250 .cfi_endproc
24251
24252 .section .data,"aw",@progbits
24253 indirect_ptr:
24254 .dc.a personality
24255 EOF
24256 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
24257 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
24258 if $gcc_cv_readelf -d conftest 2>&1 \
24259 | grep TEXTREL > /dev/null 2>&1; then
24260 :
24261 elif $gcc_cv_readelf --relocs conftest 2>&1 \
24262 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
24263 :
24264 else
24265 gcc_cv_ld_mips_personality_relaxation=yes
24266 fi
24267 fi
24268 fi
24269 rm -f conftest.s conftest.o conftest
24270 fi
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
24272 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
24273 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
24274
24275 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
24276
24277 fi
24278 ;;
24279 esac
24280
24281 # Mips and HP-UX need the GNU assembler.
24282 # Linux on IA64 might be able to use the Intel assembler.
24283
24284 case "$target" in
24285 mips*-*-* | *-*-hpux* )
24286 if test x$gas_flag = xyes \
24287 || test x"$host" != x"$build" \
24288 || test ! -x "$gcc_cv_as" \
24289 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
24290 :
24291 else
24292 echo "*** This configuration requires the GNU assembler" >&2
24293 exit 1
24294 fi
24295 ;;
24296 esac
24297
24298 # ??? Not all targets support dwarf2 debug_line, even within a version
24299 # of gas. Moreover, we need to emit a valid instruction to trigger any
24300 # info to the output file. So, as supported targets are added to gas 2.11,
24301 # add some instruction here to (also) show we expect this might work.
24302 # ??? Once 2.11 is released, probably need to add first known working
24303 # version to the per-target configury.
24304 case "$target" in
24305 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
24306 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
24307 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
24308 | spu-*-* | fido*-*-* | m32c-*-*)
24309 insn="nop"
24310 ;;
24311 ia64*-*-* | s390*-*-*)
24312 insn="nop 0"
24313 ;;
24314 mmix-*-*)
24315 insn="swym 0"
24316 ;;
24317 esac
24318 if test x"$insn" != x; then
24319 conftest_s="\
24320 .file 1 \"conftest.s\"
24321 .loc 1 3 0
24322 $insn"
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
24324 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
24325 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
24326 $as_echo_n "(cached) " >&6
24327 else
24328 gcc_cv_as_dwarf2_debug_line=no
24329 if test $in_tree_gas = yes; then
24330 if test $in_tree_gas_is_elf = yes \
24331 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24332 then gcc_cv_as_dwarf2_debug_line=yes
24333 fi
24334 elif test x$gcc_cv_as != x; then
24335 echo "$conftest_s" > conftest.s
24336 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24338 (eval $ac_try) 2>&5
24339 ac_status=$?
24340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24341 test $ac_status = 0; }; }
24342 then
24343 if test x$gcc_cv_objdump != x \
24344 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
24345 | grep debug_line > /dev/null 2>&1; then
24346 gcc_cv_as_dwarf2_debug_line=yes
24347 fi
24348 else
24349 echo "configure: failed program was" >&5
24350 cat conftest.s >&5
24351 fi
24352 rm -f conftest.o conftest.s
24353 fi
24354 fi
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
24356 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
24357
24358
24359 # The .debug_line file table must be in the exact order that
24360 # we specified the files, since these indices are also used
24361 # by DW_AT_decl_file. Approximate this test by testing if
24362 # the assembler bitches if the same index is assigned twice.
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24364 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24365 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24366 $as_echo_n "(cached) " >&6
24367 else
24368 gcc_cv_as_dwarf2_file_buggy=no
24369 if test x$gcc_cv_as != x; then
24370 echo ' .file 1 "foo.s"
24371 .file 1 "bar.s"' > conftest.s
24372 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24374 (eval $ac_try) 2>&5
24375 ac_status=$?
24376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24377 test $ac_status = 0; }; }
24378 then
24379 gcc_cv_as_dwarf2_file_buggy=yes
24380 else
24381 echo "configure: failed program was" >&5
24382 cat conftest.s >&5
24383 fi
24384 rm -f conftest.o conftest.s
24385 fi
24386 fi
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24388 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24389
24390
24391 if test $gcc_cv_as_dwarf2_debug_line = yes \
24392 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24393
24394 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24395
24396 fi
24397
24398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24399 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24400 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24401 $as_echo_n "(cached) " >&6
24402 else
24403 gcc_cv_as_gdwarf2_flag=no
24404 if test $in_tree_gas = yes; then
24405 if test $in_tree_gas_is_elf = yes \
24406 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24407 then gcc_cv_as_gdwarf2_flag=yes
24408 fi
24409 elif test x$gcc_cv_as != x; then
24410 echo "$insn" > conftest.s
24411 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gdwarf2 -o conftest.o conftest.s >&5'
24412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24413 (eval $ac_try) 2>&5
24414 ac_status=$?
24415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24416 test $ac_status = 0; }; }
24417 then
24418 gcc_cv_as_gdwarf2_flag=yes
24419 else
24420 echo "configure: failed program was" >&5
24421 cat conftest.s >&5
24422 fi
24423 rm -f conftest.o conftest.s
24424 fi
24425 fi
24426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24427 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24428 if test $gcc_cv_as_gdwarf2_flag = yes; then
24429
24430 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24431
24432 fi
24433
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24435 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24436 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24437 $as_echo_n "(cached) " >&6
24438 else
24439 gcc_cv_as_gstabs_flag=no
24440 if test $in_tree_gas = yes; then
24441 if test $in_tree_gas_is_elf = yes \
24442 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24443 then gcc_cv_as_gstabs_flag=yes
24444 fi
24445 elif test x$gcc_cv_as != x; then
24446 echo "$insn" > conftest.s
24447 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --gstabs -o conftest.o conftest.s >&5'
24448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24449 (eval $ac_try) 2>&5
24450 ac_status=$?
24451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24452 test $ac_status = 0; }; }
24453 then
24454 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24455 # and warns about it, but still exits successfully. So check for
24456 # this.
24457 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24459 (eval $ac_try) 2>&5
24460 ac_status=$?
24461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24462 test $ac_status = 0; }; }
24463 then :
24464 else gcc_cv_as_gstabs_flag=yes
24465 fi
24466 else
24467 echo "configure: failed program was" >&5
24468 cat conftest.s >&5
24469 fi
24470 rm -f conftest.o conftest.s
24471 fi
24472 fi
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24474 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24475 if test $gcc_cv_as_gstabs_flag = yes; then
24476
24477 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24478
24479 fi
24480
24481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24482 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24483 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24484 $as_echo_n "(cached) " >&6
24485 else
24486 gcc_cv_as_debug_prefix_map_flag=no
24487 if test $in_tree_gas = yes; then
24488 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24489 then gcc_cv_as_debug_prefix_map_flag=yes
24490 fi
24491 elif test x$gcc_cv_as != x; then
24492 echo "$insn" > conftest.s
24493 if { ac_try='$gcc_cv_as $gcc_cv_as_flags --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24495 (eval $ac_try) 2>&5
24496 ac_status=$?
24497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24498 test $ac_status = 0; }; }
24499 then
24500 gcc_cv_as_debug_prefix_map_flag=yes
24501 else
24502 echo "configure: failed program was" >&5
24503 cat conftest.s >&5
24504 fi
24505 rm -f conftest.o conftest.s
24506 fi
24507 fi
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24509 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24510 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24511
24512 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24513
24514 fi
24515 fi
24516
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24518 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24519 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24520 $as_echo_n "(cached) " >&6
24521 else
24522 gcc_cv_as_lcomm_with_alignment=no
24523 if test x$gcc_cv_as != x; then
24524 echo '.lcomm bar,4,16' > conftest.s
24525 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24527 (eval $ac_try) 2>&5
24528 ac_status=$?
24529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24530 test $ac_status = 0; }; }
24531 then
24532 gcc_cv_as_lcomm_with_alignment=yes
24533 else
24534 echo "configure: failed program was" >&5
24535 cat conftest.s >&5
24536 fi
24537 rm -f conftest.o conftest.s
24538 fi
24539 fi
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24541 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24542 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24543
24544 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24545
24546 fi
24547
24548 # Check whether --enable-gnu-unique-object was given.
24549 if test "${enable_gnu_unique_object+set}" = set; then :
24550 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24551 yes | no) ;;
24552 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24553 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24554 esac
24555 else
24556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24557 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24558 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24559 $as_echo_n "(cached) " >&6
24560 else
24561 gcc_cv_as_gnu_unique_object=no
24562 if test $in_tree_gas = yes; then
24563 if test $in_tree_gas_is_elf = yes \
24564 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24565 then gcc_cv_as_gnu_unique_object=yes
24566 fi
24567 elif test x$gcc_cv_as != x; then
24568 echo '.type foo, @gnu_unique_object' > conftest.s
24569 if { ac_try='$gcc_cv_as $gcc_cv_as_flags -o conftest.o conftest.s >&5'
24570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24571 (eval $ac_try) 2>&5
24572 ac_status=$?
24573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24574 test $ac_status = 0; }; }
24575 then
24576 gcc_cv_as_gnu_unique_object=yes
24577 else
24578 echo "configure: failed program was" >&5
24579 cat conftest.s >&5
24580 fi
24581 rm -f conftest.o conftest.s
24582 fi
24583 fi
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24585 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24586 if test $gcc_cv_as_gnu_unique_object = yes; then
24587 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24588 if test x$host = x$build -a x$host = x$target &&
24589 glibcver=`ldd --version 2>/dev/null | sed 's/.* //;q'`; then
24590 glibcmajor=`expr "$glibcver" : "\([0-9]*\)"`
24591 glibcminor=`expr "$glibcver" : "[2-9]*\.\([0-9]*\)"`
24592 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24593 if test "$glibcnum" -ge 2011 ; then
24594 enable_gnu_unique_object=yes
24595 fi
24596 fi
24597 fi
24598 fi
24599
24600 if test x$enable_gnu_unique_object = xyes; then
24601
24602 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24603
24604 fi
24605
24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24607 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24608 if test "${gcc_cv_as_line_zero+set}" = set; then :
24609 $as_echo_n "(cached) " >&6
24610 else
24611 gcc_cv_as_line_zero=no
24612 if test $in_tree_gas = yes; then
24613 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24614 then gcc_cv_as_line_zero=yes
24615 fi
24616 elif test "x$gcc_cv_as" != x; then
24617 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24618 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24620 (eval $ac_try) 2>&5
24621 ac_status=$?
24622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24623 test $ac_status = 0; }; } &&
24624 test "x`cat conftest.out`" = x
24625 then
24626 gcc_cv_as_line_zero=yes
24627 else
24628 echo "configure: failed program was" >&5
24629 cat conftest.s >&5
24630 echo "configure: error output was" >&5
24631 cat conftest.out >&5
24632 fi
24633 rm -f conftest.o conftest.s conftest.out
24634 fi
24635 fi
24636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24637 $as_echo "$gcc_cv_as_line_zero" >&6; }
24638 if test "x$gcc_cv_as_line_zero" = xyes; then
24639
24640 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24641
24642 fi
24643
24644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24645 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24646 gcc_cv_ld_eh_frame_hdr=no
24647 if test $in_tree_ld = yes ; then
24648 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 \
24649 && test $in_tree_ld_is_elf = yes; then
24650 gcc_cv_ld_eh_frame_hdr=yes
24651 fi
24652 elif test x$gcc_cv_ld != x; then
24653 # Check if linker supports --eh-frame-hdr option
24654 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24655 gcc_cv_ld_eh_frame_hdr=yes
24656 fi
24657 fi
24658
24659 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24660
24661 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24662
24663 fi
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24665 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24666
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24668 $as_echo_n "checking linker position independent executable support... " >&6; }
24669 gcc_cv_ld_pie=no
24670 if test $in_tree_ld = yes ; then
24671 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 \
24672 && test $in_tree_ld_is_elf = yes; then
24673 gcc_cv_ld_pie=yes
24674 fi
24675 elif test x$gcc_cv_ld != x; then
24676 # Check if linker supports -pie option
24677 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24678 gcc_cv_ld_pie=yes
24679 fi
24680 fi
24681 if test x"$gcc_cv_ld_pie" = xyes; then
24682
24683 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24684
24685 fi
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24687 $as_echo "$gcc_cv_ld_pie" >&6; }
24688
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24690 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24691 gcc_cv_ld_eh_gc_sections=no
24692 if test $in_tree_ld = yes ; then
24693 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 \
24694 && test $in_tree_ld_is_elf = yes; then
24695 gcc_cv_ld_eh_gc_sections=yes
24696 fi
24697 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24698 cat > conftest.s <<EOF
24699 .section .text
24700 .globl _start
24701 .type _start, @function
24702 _start:
24703 .long foo
24704 .size _start, .-_start
24705 .section .text.foo,"ax",@progbits
24706 .type foo, @function
24707 foo:
24708 .long 0
24709 .size foo, .-foo
24710 .section .gcc_except_table.foo,"a",@progbits
24711 .L0:
24712 .long 0
24713 .section .eh_frame,"a",@progbits
24714 .long .L0
24715 EOF
24716 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24717 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24718 | grep "gc-sections option ignored" > /dev/null; then
24719 gcc_cv_ld_eh_gc_sections=no
24720 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24721 | grep gcc_except_table > /dev/null; then
24722 gcc_cv_ld_eh_gc_sections=yes
24723 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24724 if test x$gcc_cv_as_comdat_group != xyes; then
24725 gcc_cv_ld_eh_gc_sections=no
24726 cat > conftest.s <<EOF
24727 .section .text
24728 .globl _start
24729 .type _start, @function
24730 _start:
24731 .long foo
24732 .size _start, .-_start
24733 .section .gnu.linkonce.t.foo,"ax",@progbits
24734 .type foo, @function
24735 foo:
24736 .long 0
24737 .size foo, .-foo
24738 .section .gcc_except_table.foo,"a",@progbits
24739 .L0:
24740 .long 0
24741 .section .eh_frame,"a",@progbits
24742 .long .L0
24743 EOF
24744 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24745 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24746 | grep "gc-sections option ignored" > /dev/null; then
24747 gcc_cv_ld_eh_gc_sections=no
24748 elif $gcc_cv_objdump -h conftest 2> /dev/null \
24749 | grep gcc_except_table > /dev/null; then
24750 gcc_cv_ld_eh_gc_sections=yes
24751 fi
24752 fi
24753 fi
24754 fi
24755 fi
24756 rm -f conftest.s conftest.o conftest
24757 fi
24758 case "$target" in
24759 hppa*-*-linux*)
24760 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24761 gcc_cv_ld_eh_gc_sections=no
24762 ;;
24763 esac
24764 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24765
24766 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24767
24768 fi
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24770 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24771
24772 # --------
24773 # UNSORTED
24774 # --------
24775
24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24777 $as_echo_n "checking linker --as-needed support... " >&6; }
24778 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24779 $as_echo_n "(cached) " >&6
24780 else
24781 gcc_cv_ld_as_needed=no
24782 if test $in_tree_ld = yes ; then
24783 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 \
24784 && test $in_tree_ld_is_elf = yes; then
24785 gcc_cv_ld_as_needed=yes
24786 fi
24787 elif test x$gcc_cv_ld != x; then
24788 # Check if linker supports --as-needed and --no-as-needed options
24789 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24790 gcc_cv_ld_as_needed=yes
24791 fi
24792 fi
24793
24794 fi
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24796 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24797 if test x"$gcc_cv_ld_as_needed" = xyes; then
24798
24799 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24800
24801 fi
24802
24803 case "$target:$tm_file" in
24804 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24806 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24807 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24808 $as_echo_n "(cached) " >&6
24809 else
24810 gcc_cv_ld_no_dot_syms=no
24811 if test $in_tree_ld = yes ; then
24812 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
24813 gcc_cv_ld_no_dot_syms=yes
24814 fi
24815 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24816 cat > conftest1.s <<EOF
24817 .text
24818 bl .foo
24819 EOF
24820 cat > conftest2.s <<EOF
24821 .section ".opd","aw"
24822 .align 3
24823 .globl foo
24824 .type foo,@function
24825 foo:
24826 .quad .LEfoo,.TOC.@tocbase,0
24827 .text
24828 .LEfoo:
24829 blr
24830 .size foo,.-.LEfoo
24831 EOF
24832 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24833 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24834 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24835 gcc_cv_ld_no_dot_syms=yes
24836 fi
24837 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24838 fi
24839
24840 fi
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24842 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24843 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24844
24845 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24846
24847 fi
24848
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker large toc support" >&5
24850 $as_echo_n "checking linker large toc support... " >&6; }
24851 if test "${gcc_cv_ld_large_toc+set}" = set; then :
24852 $as_echo_n "(cached) " >&6
24853 else
24854 gcc_cv_ld_large_toc=no
24855 if test $in_tree_ld = yes ; then
24856 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
24857 gcc_cv_ld_large_toc=yes
24858 fi
24859 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24860 cat > conftest.s <<EOF
24861 .section ".tbss","awT",@nobits
24862 .align 3
24863 ie0: .space 8
24864 .global _start
24865 .text
24866 _start:
24867 addis 9,13,ie0@got@tprel@ha
24868 ld 9,ie0@got@tprel@l(9)
24869 EOF
24870 if $gcc_cv_as -a64 -o conftest.o conftest.s > /dev/null 2>&1 \
24871 && $gcc_cv_ld -melf64ppc --no-toc-sort -o conftest conftest.o > /dev/null 2>&1; then
24872 gcc_cv_ld_large_toc=yes
24873 fi
24874 rm -f conftest conftest.o conftest.s
24875 fi
24876
24877 fi
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_large_toc" >&5
24879 $as_echo "$gcc_cv_ld_large_toc" >&6; }
24880 if test x"$gcc_cv_ld_large_toc" = xyes; then
24881
24882 $as_echo "#define HAVE_LD_LARGE_TOC 1" >>confdefs.h
24883
24884 fi
24885 ;;
24886 esac
24887
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24889 $as_echo_n "checking linker --build-id support... " >&6; }
24890 if test "${gcc_cv_ld_buildid+set}" = set; then :
24891 $as_echo_n "(cached) " >&6
24892 else
24893 gcc_cv_ld_buildid=no
24894 if test $in_tree_ld = yes ; then
24895 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24896 "$gcc_cv_gld_minor_version" -ge 18 -o \
24897 "$gcc_cv_gld_major_version" -gt 2 \
24898 && test $in_tree_ld_is_elf = yes; then
24899 gcc_cv_ld_buildid=yes
24900 fi
24901 elif test x$gcc_cv_ld != x; then
24902 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24903 gcc_cv_ld_buildid=yes
24904 fi
24905 fi
24906 fi
24907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24908 $as_echo "$gcc_cv_ld_buildid" >&6; }
24909 if test x"$gcc_cv_ld_buildid" = xyes; then
24910
24911 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24912
24913 fi
24914
24915 # Check whether --enable-linker-build-id was given.
24916 if test "${enable_linker_build_id+set}" = set; then :
24917 enableval=$enable_linker_build_id;
24918 else
24919 enable_linker_build_id=no
24920 fi
24921
24922
24923 if test x"$enable_linker_build_id" = xyes; then
24924 if test x"$gcc_cv_ld_buildid" = xyes; then
24925
24926 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24927
24928 else
24929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24930 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24931 fi
24932 fi
24933
24934 # In binutils 2.21, GNU ld gained support for new emulations fully
24935 # supporting the Solaris 2 ABI. Detect their presence in the linker used.
24936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker *_sol2 emulation support" >&5
24937 $as_echo_n "checking linker *_sol2 emulation support... " >&6; }
24938 if test "${gcc_cv_ld_sol2_emulation+set}" = set; then :
24939 $as_echo_n "(cached) " >&6
24940 else
24941 gcc_cv_ld_sol2_emulation=no
24942 if test $in_tree_ld = yes ; then
24943 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24944 "$gcc_cv_gld_minor_version" -ge 21 -o \
24945 "$gcc_cv_gld_major_version" -gt 2 \
24946 && test $in_tree_ld_is_elf = yes; then
24947 gcc_cv_ld_sol2_emulation=yes
24948 fi
24949 elif test x$gcc_cv_ld != x; then
24950 if $gcc_cv_ld -V 2>/dev/null | sed -e '1,/Supported emulations/d;q' | \
24951 grep _sol2 > /dev/null; then
24952 gcc_cv_ld_sol2_emulation=yes
24953 fi
24954 fi
24955 fi
24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sol2_emulation" >&5
24957 $as_echo "$gcc_cv_ld_sol2_emulation" >&6; }
24958 if test x"$gcc_cv_ld_sol2_emulation" = xyes; then
24959
24960 $as_echo "#define HAVE_LD_SOL2_EMULATION 1" >>confdefs.h
24961
24962 fi
24963
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24965 $as_echo_n "checking linker --sysroot support... " >&6; }
24966 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24967 $as_echo_n "(cached) " >&6
24968 else
24969 gcc_cv_ld_sysroot=no
24970 if test $in_tree_ld = yes ; then
24971 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
24972 gcc_cv_ld_sysroot=yes
24973 fi
24974 elif test x$gcc_cv_ld != x; then
24975 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24976 gcc_cv_ld_sysroot=yes
24977 fi
24978 fi
24979 fi
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24981 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24982 if test x"$gcc_cv_ld_sysroot" = xyes; then
24983
24984 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24985
24986 fi
24987
24988 if test x$with_sysroot = x && test x$host = x$target \
24989 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24990 && test "$prefix" != "NONE"; then
24991
24992 cat >>confdefs.h <<_ACEOF
24993 #define PREFIX_INCLUDE_DIR "$prefix/include"
24994 _ACEOF
24995
24996 fi
24997
24998 # Test for stack protector support in target C library.
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
25000 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
25001 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
25002 $as_echo_n "(cached) " >&6
25003 else
25004 gcc_cv_libc_provides_ssp=no
25005 case "$target" in
25006 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
25007 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25008 if test "x$with_headers" != x; then
25009 glibc_header_dir=$with_headers
25010 elif test "x$with_sysroot" = x; then
25011 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25012 elif test "x$with_build_sysroot" != "x"; then
25013 glibc_header_dir="${with_build_sysroot}/usr/include"
25014 elif test "x$with_sysroot" = xyes; then
25015 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25016 else
25017 glibc_header_dir="${with_sysroot}/usr/include"
25018 fi
25019 else
25020 glibc_header_dir=/usr/include
25021 fi
25022 # glibc 2.4 and later provides __stack_chk_fail and
25023 # either __stack_chk_guard, or TLS access to stack guard canary.
25024 if test -f $glibc_header_dir/features.h \
25025 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
25026 $glibc_header_dir/features.h > /dev/null; then
25027 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
25028 $glibc_header_dir/features.h > /dev/null; then
25029 gcc_cv_libc_provides_ssp=yes
25030 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
25031 $glibc_header_dir/features.h > /dev/null \
25032 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
25033 $glibc_header_dir/features.h > /dev/null; then
25034 gcc_cv_libc_provides_ssp=yes
25035 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
25036 $glibc_header_dir/features.h > /dev/null && \
25037 test -f $glibc_header_dir/bits/uClibc_config.h && \
25038 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
25039 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
25040 gcc_cv_libc_provides_ssp=yes
25041 fi
25042 fi
25043 ;;
25044 *-*-gnu*)
25045 # Avoid complicated tests (see
25046 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
25047 # simply assert that glibc does provide this, which is true for all
25048 # realistically usable GNU/Hurd configurations.
25049 gcc_cv_libc_provides_ssp=yes;;
25050 *-*-darwin* | *-*-freebsd*)
25051 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
25052 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
25053 gcc_cv_libc_provides_ssp=yes
25054 else
25055 echo "no __stack_chk_fail on this target"
25056 fi
25057
25058 ;;
25059 *) gcc_cv_libc_provides_ssp=no ;;
25060 esac
25061 fi
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
25063 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
25064
25065 if test x$gcc_cv_libc_provides_ssp = xyes; then
25066
25067 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
25068
25069 fi
25070
25071 # Check if TFmode long double should be used by default or not.
25072 # Some glibc targets used DFmode long double, but with glibc 2.4
25073 # and later they can use TFmode.
25074 case "$target" in
25075 powerpc*-*-linux* | \
25076 powerpc*-*-gnu* | \
25077 sparc*-*-linux* | \
25078 s390*-*-linux* | \
25079 alpha*-*-linux*)
25080
25081 # Check whether --with-long-double-128 was given.
25082 if test "${with_long_double_128+set}" = set; then :
25083 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
25084 else
25085 gcc_cv_target_ldbl128=no
25086 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
25087 if test "x$with_sysroot" = x; then
25088 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
25089 elif test "x$with_build_sysroot" != "x"; then
25090 glibc_header_dir="${with_build_sysroot}/usr/include"
25091 elif test "x$with_sysroot" = xyes; then
25092 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
25093 else
25094 glibc_header_dir="${with_sysroot}/usr/include"
25095 fi
25096 else
25097 glibc_header_dir=/usr/include
25098 fi
25099 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
25100 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
25101 && gcc_cv_target_ldbl128=yes
25102
25103 fi
25104
25105 ;;
25106 esac
25107 if test x$gcc_cv_target_ldbl128 = xyes; then
25108
25109 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
25110
25111 fi
25112
25113 # Find out what GC implementation we want, or may, use.
25114
25115 # Check whether --with-gc was given.
25116 if test "${with_gc+set}" = set; then :
25117 withval=$with_gc; case "$withval" in
25118 page)
25119 GGC=ggc-$withval
25120 ;;
25121 zone)
25122 GGC=ggc-$withval
25123
25124 $as_echo "#define GGC_ZONE 1" >>confdefs.h
25125
25126 ;;
25127 *)
25128 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
25129 ;;
25130 esac
25131 else
25132 GGC=ggc-page
25133 fi
25134
25135
25136 echo "Using $GGC for garbage collection."
25137
25138 # Libraries to use on the host. This will normally be set by the top
25139 # level Makefile. Here we simply capture the value for our Makefile.
25140 if test -z "${HOST_LIBS+set}"; then
25141 HOST_LIBS=
25142 fi
25143
25144
25145 # Use the system's zlib library.
25146 zlibdir=-L../zlib
25147 zlibinc="-I\$(srcdir)/../zlib"
25148
25149 # Check whether --with-system-zlib was given.
25150 if test "${with_system_zlib+set}" = set; then :
25151 withval=$with_system_zlib; zlibdir=
25152 zlibinc=
25153
25154 fi
25155
25156
25157
25158
25159
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
25161 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
25162 # Check whether --enable-maintainer-mode was given.
25163 if test "${enable_maintainer_mode+set}" = set; then :
25164 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
25165 else
25166 maintainer_mode=no
25167 fi
25168
25169
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
25171 $as_echo "$maintainer_mode" >&6; }
25172
25173 if test "$maintainer_mode" = "yes"; then
25174 MAINT=''
25175 else
25176 MAINT='#'
25177 fi
25178
25179 # --------------
25180 # Language hooks
25181 # --------------
25182
25183 # Make empty files to contain the specs and options for each language.
25184 # Then add #include lines to for a compiler that has specs and/or options.
25185
25186 subdirs=
25187 lang_opt_files=
25188 lang_specs_files=
25189 lang_tree_files=
25190 # These (without "all_") are set in each config-lang.in.
25191 # `language' must be a single word so is spelled singularly.
25192 all_languages=
25193 all_compilers=
25194 all_outputs='Makefile gccbug'
25195 # List of language makefile fragments.
25196 all_lang_makefrags=
25197 # Additional files for gengtype
25198 all_gtfiles="$target_gtfiles"
25199
25200 # These are the languages that are set in --enable-languages,
25201 # and are available in the GCC tree.
25202 all_selected_languages=
25203
25204 # Add the language fragments.
25205 # Languages are added via two mechanisms. Some information must be
25206 # recorded in makefile variables, these are defined in config-lang.in.
25207 # We accumulate them and plug them into the main Makefile.
25208 # The other mechanism is a set of hooks for each of the main targets
25209 # like `clean', `install', etc.
25210
25211 language_hooks="Make-hooks"
25212
25213 for lang in ${srcdir}/*/config-lang.in
25214 do
25215 test "$lang" = "${srcdir}/*/config-lang.in" && continue
25216
25217 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
25218 if test "x$lang_alias" = x
25219 then
25220 echo "$lang doesn't set \$language." 1>&2
25221 exit 1
25222 fi
25223 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
25224 subdirs="$subdirs $subdir"
25225
25226 # $gcc_subdir is where the gcc integration files are to be found
25227 # for a language, both for internal compiler purposes (compiler
25228 # sources implementing front-end to GCC tree converters), and for
25229 # build infrastructure purposes (Make-lang.in, etc.)
25230 #
25231 # This will be <subdir> (relative to $srcdir) if a line like
25232 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
25233 # is found in <langdir>/config-lang.in, and will remain <langdir>
25234 # otherwise.
25235 #
25236 # Except for the language alias (fetched above), the regular
25237 # "config-lang.in" contents are always retrieved from $gcc_subdir,
25238 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
25239 # only this and the language alias.
25240
25241 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
25242 if [ "$gcc_subdir" = "" ]; then
25243 gcc_subdir="$subdir"
25244 fi
25245
25246 case ",$enable_languages," in
25247 *,$lang_alias,*)
25248 all_selected_languages="$all_selected_languages $lang_alias"
25249 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
25250 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
25251 fi
25252 ;;
25253 esac
25254
25255 language=
25256 boot_language=
25257 compilers=
25258 outputs=
25259 gtfiles=
25260 subdir_requires=
25261 . ${srcdir}/$gcc_subdir/config-lang.in
25262 if test "x$language" = x
25263 then
25264 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
25265 exit 1
25266 fi
25267
25268 ok=:
25269 case ",$enable_languages," in
25270 *,$lang_alias,*) ;;
25271 *)
25272 for i in $subdir_requires; do
25273 test -f "${srcdir}/$i/config-lang.in" && continue
25274 ok=false
25275 break
25276 done
25277 ;;
25278 esac
25279 $ok || continue
25280
25281 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
25282 if test -f $srcdir/$gcc_subdir/lang.opt; then
25283 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
25284 fi
25285 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
25286 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
25287 fi
25288 all_languages="$all_languages $language"
25289 all_compilers="$all_compilers $compilers"
25290 all_outputs="$all_outputs $outputs"
25291 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
25292 case ",$enable_languages," in
25293 *,lto,*)
25294
25295 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
25296
25297 enable_lto=yes
25298
25299 # LTO needs to speak the platform's object file format, and has a
25300 # number of implementations of the required binary file access APIs.
25301 # ELF is the most common, and default. We only link libelf if ELF
25302 # is indeed the selected format.
25303 LTO_BINARY_READER=${lto_binary_reader}
25304 LTO_USE_LIBELF=-lelf
25305 if test "x$lto_binary_reader" != "xlto-elf" ; then
25306 LTO_USE_LIBELF=
25307 fi
25308
25309
25310 ;;
25311 *) ;;
25312 esac
25313 done
25314
25315 # Pick up gtfiles for c
25316 gtfiles=
25317 . ${srcdir}/c-config-lang.in
25318 all_gtfiles="$all_gtfiles [c] $gtfiles"
25319
25320 check_languages=
25321 for language in $all_selected_languages
25322 do
25323 check_languages="$check_languages check-$language"
25324 done
25325
25326 # We link each language in with a set of hooks, reached indirectly via
25327 # lang.${target}. Only do so for selected languages.
25328
25329 rm -f Make-hooks
25330 touch Make-hooks
25331 target_list="all.cross start.encap rest.encap tags \
25332 install-common install-man install-info install-pdf install-html dvi \
25333 pdf html uninstall info man srcextra srcman srcinfo \
25334 mostlyclean clean distclean maintainer-clean install-plugin"
25335
25336 for t in $target_list
25337 do
25338 x=
25339 for lang in $all_selected_languages
25340 do
25341 x="$x $lang.$t"
25342 done
25343 echo "lang.$t: $x" >> Make-hooks
25344 done
25345
25346 # --------
25347 # UNSORTED
25348 # --------
25349
25350 # Create .gdbinit.
25351
25352 echo "dir ." > .gdbinit
25353 echo "dir ${srcdir}" >> .gdbinit
25354 if test x$gdb_needs_out_file_path = xyes
25355 then
25356 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
25357 fi
25358 if test "x$subdirs" != x; then
25359 for s in $subdirs
25360 do
25361 echo "dir ${srcdir}/$s" >> .gdbinit
25362 done
25363 fi
25364 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
25365
25366 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
25367
25368
25369
25370 # Find a directory in which to install a shared libgcc.
25371
25372 # Check whether --enable-version-specific-runtime-libs was given.
25373 if test "${enable_version_specific_runtime_libs+set}" = set; then :
25374 enableval=$enable_version_specific_runtime_libs;
25375 fi
25376
25377
25378
25379 # Check whether --with-slibdir was given.
25380 if test "${with_slibdir+set}" = set; then :
25381 withval=$with_slibdir; slibdir="$with_slibdir"
25382 else
25383 if test "${enable_version_specific_runtime_libs+set}" = set; then
25384 slibdir='$(libsubdir)'
25385 elif test "$host" != "$target"; then
25386 slibdir='$(build_tooldir)/lib'
25387 else
25388 slibdir='$(libdir)'
25389 fi
25390 fi
25391
25392
25393
25394 # Substitute configuration variables
25395
25396
25397
25398
25399
25400
25401
25402
25403
25404
25405
25406
25407
25408
25409
25410
25411
25412
25413
25414
25415
25416
25417
25418
25419
25420
25421
25422
25423
25424
25425
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439
25440
25441
25442
25443
25444
25445
25446
25447
25448
25449
25450
25451
25452
25453
25454
25455 # Echo link setup.
25456 if test x${build} = x${host} ; then
25457 if test x${host} = x${target} ; then
25458 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25459 else
25460 echo "Links are now set up to build a cross-compiler" 1>&2
25461 echo " from ${host} to ${target}." 1>&2
25462 fi
25463 else
25464 if test x${host} = x${target} ; then
25465 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25466 echo " for ${target}." 1>&2
25467 else
25468 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25469 echo " from ${host} to ${target}." 1>&2
25470 fi
25471 fi
25472
25473
25474
25475
25476
25477
25478
25479
25480
25481 if test "x${CLOOGLIBS}" != "x" ; then
25482
25483 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25484
25485 fi
25486
25487
25488
25489 if test "x${LIBELFLIBS}" != "x" ; then
25490
25491 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25492
25493 fi
25494
25495 # Check for plugin support
25496 # Check whether --enable-plugin was given.
25497 if test "${enable_plugin+set}" = set; then :
25498 enableval=$enable_plugin; enable_plugin=$enableval
25499 else
25500 enable_plugin=yes; default_plugin=yes
25501 fi
25502
25503
25504 pluginlibs=
25505 if test x"$enable_plugin" = x"yes"; then
25506
25507 case "${host}" in
25508 *-*-darwin*)
25509 export_sym_check="$gcc_cv_nm -g"
25510 ;;
25511 *)
25512 export_sym_check="$gcc_cv_objdump -T"
25513 ;;
25514 esac
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exported symbols" >&5
25516 $as_echo_n "checking for exported symbols... " >&6; }
25517 echo "int main() {return 0;} int foobar() {return 0;}" > conftest.c
25518 ${CC} ${CFLAGS} ${LDFLAGS} conftest.c -o conftest > /dev/null 2>&1
25519 if $export_sym_check conftest | grep foobar > /dev/null; then
25520 : # No need to use a flag
25521 else
25522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25523 $as_echo_n "checking for -rdynamic... " >&6; }
25524 ${CC} ${CFLAGS} ${LDFLAGS} -rdynamic conftest.c -o conftest > /dev/null 2>&1
25525 if $export_sym_check conftest | grep foobar > /dev/null; then
25526 plugin_rdynamic=yes
25527 pluginlibs="-rdynamic"
25528 else
25529 plugin_rdynamic=no
25530 enable_plugin=no
25531 fi
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_rdynamic" >&5
25533 $as_echo "$plugin_rdynamic" >&6; }
25534 fi
25535
25536 # Check -ldl
25537 saved_LIBS="$LIBS"
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25539 $as_echo_n "checking for library containing dlopen... " >&6; }
25540 if test "${ac_cv_search_dlopen+set}" = set; then :
25541 $as_echo_n "(cached) " >&6
25542 else
25543 ac_func_search_save_LIBS=$LIBS
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545 /* end confdefs.h. */
25546
25547 /* Override any GCC internal prototype to avoid an error.
25548 Use char because int might match the return type of a GCC
25549 builtin and then its argument prototype would still apply. */
25550 #ifdef __cplusplus
25551 extern "C"
25552 #endif
25553 char dlopen ();
25554 int
25555 main ()
25556 {
25557 return dlopen ();
25558 ;
25559 return 0;
25560 }
25561 _ACEOF
25562 for ac_lib in '' dl; do
25563 if test -z "$ac_lib"; then
25564 ac_res="none required"
25565 else
25566 ac_res=-l$ac_lib
25567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25568 fi
25569 if ac_fn_c_try_link "$LINENO"; then :
25570 ac_cv_search_dlopen=$ac_res
25571 fi
25572 rm -f core conftest.err conftest.$ac_objext \
25573 conftest$ac_exeext
25574 if test "${ac_cv_search_dlopen+set}" = set; then :
25575 break
25576 fi
25577 done
25578 if test "${ac_cv_search_dlopen+set}" = set; then :
25579
25580 else
25581 ac_cv_search_dlopen=no
25582 fi
25583 rm conftest.$ac_ext
25584 LIBS=$ac_func_search_save_LIBS
25585 fi
25586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25587 $as_echo "$ac_cv_search_dlopen" >&6; }
25588 ac_res=$ac_cv_search_dlopen
25589 if test "$ac_res" != no; then :
25590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25591
25592 fi
25593
25594 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25595 pluginlibs="$pluginlibs -ldl"
25596 fi
25597 LIBS="$saved_LIBS"
25598
25599 # Check that we can build shared objects with -fPIC -shared
25600 saved_LDFLAGS="$LDFLAGS"
25601 case "${host}" in
25602 *-*-darwin*)
25603 LDFLAGS="$LDFLAGS -fPIC -shared -undefined dynamic_lookup"
25604 ;;
25605 *)
25606 LDFLAGS="$LDFLAGS -fPIC -shared"
25607 ;;
25608 esac
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25610 $as_echo_n "checking for -fPIC -shared... " >&6; }
25611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612 /* end confdefs.h. */
25613 extern int X;
25614 int
25615 main ()
25616 {
25617 return X == 0;
25618 ;
25619 return 0;
25620 }
25621 _ACEOF
25622 if ac_fn_c_try_link "$LINENO"; then :
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25624 $as_echo "yes" >&6; }; have_pic_shared=yes
25625 else
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25627 $as_echo "no" >&6; }; have_pic_shared=no
25628 fi
25629 rm -f core conftest.err conftest.$ac_objext \
25630 conftest$ac_exeext conftest.$ac_ext
25631 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25632 pluginlibs=
25633 enable_plugin=no
25634 fi
25635 LDFLAGS="$saved_LDFLAGS"
25636
25637 # If plugin support had been requested but not available, fail.
25638 if test x"$enable_plugin" = x"no" ; then
25639 if test x"$default_plugin" != x"yes"; then
25640 as_fn_error "
25641 Building GCC with plugin support requires a host that supports
25642 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25643 fi
25644 fi
25645 fi
25646
25647
25648
25649 if test x"$enable_plugin" = x"yes"; then
25650
25651 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25652
25653 fi
25654
25655 # Configure the subdirectories
25656 # AC_CONFIG_SUBDIRS($subdirs)
25657
25658 # Create the Makefile
25659 # and configure language subdirectories
25660 ac_config_files="$ac_config_files $all_outputs"
25661
25662
25663 ac_config_commands="$ac_config_commands default"
25664
25665 cat >confcache <<\_ACEOF
25666 # This file is a shell script that caches the results of configure
25667 # tests run on this system so they can be shared between configure
25668 # scripts and configure runs, see configure's option --config-cache.
25669 # It is not useful on other systems. If it contains results you don't
25670 # want to keep, you may remove or edit it.
25671 #
25672 # config.status only pays attention to the cache file if you give it
25673 # the --recheck option to rerun configure.
25674 #
25675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25677 # following values.
25678
25679 _ACEOF
25680
25681 # The following way of writing the cache mishandles newlines in values,
25682 # but we know of no workaround that is simple, portable, and efficient.
25683 # So, we kill variables containing newlines.
25684 # Ultrix sh set writes to stderr and can't be redirected directly,
25685 # and sets the high bit in the cache file unless we assign to the vars.
25686 (
25687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25688 eval ac_val=\$$ac_var
25689 case $ac_val in #(
25690 *${as_nl}*)
25691 case $ac_var in #(
25692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25694 esac
25695 case $ac_var in #(
25696 _ | IFS | as_nl) ;; #(
25697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25698 *) { eval $ac_var=; unset $ac_var;} ;;
25699 esac ;;
25700 esac
25701 done
25702
25703 (set) 2>&1 |
25704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25705 *${as_nl}ac_space=\ *)
25706 # `set' does not quote correctly, so add quotes: double-quote
25707 # substitution turns \\\\ into \\, and sed turns \\ into \.
25708 sed -n \
25709 "s/'/'\\\\''/g;
25710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25711 ;; #(
25712 *)
25713 # `set' quotes correctly as required by POSIX, so do not add quotes.
25714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25715 ;;
25716 esac |
25717 sort
25718 ) |
25719 sed '
25720 /^ac_cv_env_/b end
25721 t clear
25722 :clear
25723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25724 t end
25725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25726 :end' >>confcache
25727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25728 if test -w "$cache_file"; then
25729 test "x$cache_file" != "x/dev/null" &&
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25731 $as_echo "$as_me: updating cache $cache_file" >&6;}
25732 cat confcache >$cache_file
25733 else
25734 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25735 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25736 fi
25737 fi
25738 rm -f confcache
25739
25740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25741 # Let make expand exec_prefix.
25742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25743
25744 DEFS=-DHAVE_CONFIG_H
25745
25746 ac_libobjs=
25747 ac_ltlibobjs=
25748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25749 # 1. Remove the extension, and $U if already installed.
25750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25751 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25753 # will be set to the directory where LIBOBJS objects are built.
25754 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25755 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25756 done
25757 LIBOBJS=$ac_libobjs
25758
25759 LTLIBOBJS=$ac_ltlibobjs
25760
25761
25762
25763
25764 : ${CONFIG_STATUS=./config.status}
25765 ac_write_fail=0
25766 ac_clean_files_save=$ac_clean_files
25767 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25769 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25770 as_write_fail=0
25771 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25772 #! $SHELL
25773 # Generated by $as_me.
25774 # Run this file to recreate the current configuration.
25775 # Compiler output produced by configure, useful for debugging
25776 # configure, is in config.log if it exists.
25777
25778 debug=false
25779 ac_cs_recheck=false
25780 ac_cs_silent=false
25781
25782 SHELL=\${CONFIG_SHELL-$SHELL}
25783 export SHELL
25784 _ASEOF
25785 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25786 ## -------------------- ##
25787 ## M4sh Initialization. ##
25788 ## -------------------- ##
25789
25790 # Be more Bourne compatible
25791 DUALCASE=1; export DUALCASE # for MKS sh
25792 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25793 emulate sh
25794 NULLCMD=:
25795 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25796 # is contrary to our usage. Disable this feature.
25797 alias -g '${1+"$@"}'='"$@"'
25798 setopt NO_GLOB_SUBST
25799 else
25800 case `(set -o) 2>/dev/null` in #(
25801 *posix*) :
25802 set -o posix ;; #(
25803 *) :
25804 ;;
25805 esac
25806 fi
25807
25808
25809 as_nl='
25810 '
25811 export as_nl
25812 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25813 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25814 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25816 # Prefer a ksh shell builtin over an external printf program on Solaris,
25817 # but without wasting forks for bash or zsh.
25818 if test -z "$BASH_VERSION$ZSH_VERSION" \
25819 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25820 as_echo='print -r --'
25821 as_echo_n='print -rn --'
25822 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25823 as_echo='printf %s\n'
25824 as_echo_n='printf %s'
25825 else
25826 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25827 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25828 as_echo_n='/usr/ucb/echo -n'
25829 else
25830 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25831 as_echo_n_body='eval
25832 arg=$1;
25833 case $arg in #(
25834 *"$as_nl"*)
25835 expr "X$arg" : "X\\(.*\\)$as_nl";
25836 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25837 esac;
25838 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25839 '
25840 export as_echo_n_body
25841 as_echo_n='sh -c $as_echo_n_body as_echo'
25842 fi
25843 export as_echo_body
25844 as_echo='sh -c $as_echo_body as_echo'
25845 fi
25846
25847 # The user is always right.
25848 if test "${PATH_SEPARATOR+set}" != set; then
25849 PATH_SEPARATOR=:
25850 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25851 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25852 PATH_SEPARATOR=';'
25853 }
25854 fi
25855
25856
25857 # IFS
25858 # We need space, tab and new line, in precisely that order. Quoting is
25859 # there to prevent editors from complaining about space-tab.
25860 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25861 # splitting by setting IFS to empty value.)
25862 IFS=" "" $as_nl"
25863
25864 # Find who we are. Look in the path if we contain no directory separator.
25865 case $0 in #((
25866 *[\\/]* ) as_myself=$0 ;;
25867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25868 for as_dir in $PATH
25869 do
25870 IFS=$as_save_IFS
25871 test -z "$as_dir" && as_dir=.
25872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25873 done
25874 IFS=$as_save_IFS
25875
25876 ;;
25877 esac
25878 # We did not find ourselves, most probably we were run as `sh COMMAND'
25879 # in which case we are not to be found in the path.
25880 if test "x$as_myself" = x; then
25881 as_myself=$0
25882 fi
25883 if test ! -f "$as_myself"; then
25884 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25885 exit 1
25886 fi
25887
25888 # Unset variables that we do not need and which cause bugs (e.g. in
25889 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25890 # suppresses any "Segmentation fault" message there. '((' could
25891 # trigger a bug in pdksh 5.2.14.
25892 for as_var in BASH_ENV ENV MAIL MAILPATH
25893 do eval test x\${$as_var+set} = xset \
25894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25895 done
25896 PS1='$ '
25897 PS2='> '
25898 PS4='+ '
25899
25900 # NLS nuisances.
25901 LC_ALL=C
25902 export LC_ALL
25903 LANGUAGE=C
25904 export LANGUAGE
25905
25906 # CDPATH.
25907 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25908
25909
25910 # as_fn_error ERROR [LINENO LOG_FD]
25911 # ---------------------------------
25912 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25913 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25914 # script with status $?, using 1 if that was 0.
25915 as_fn_error ()
25916 {
25917 as_status=$?; test $as_status -eq 0 && as_status=1
25918 if test "$3"; then
25919 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25920 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25921 fi
25922 $as_echo "$as_me: error: $1" >&2
25923 as_fn_exit $as_status
25924 } # as_fn_error
25925
25926
25927 # as_fn_set_status STATUS
25928 # -----------------------
25929 # Set $? to STATUS, without forking.
25930 as_fn_set_status ()
25931 {
25932 return $1
25933 } # as_fn_set_status
25934
25935 # as_fn_exit STATUS
25936 # -----------------
25937 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25938 as_fn_exit ()
25939 {
25940 set +e
25941 as_fn_set_status $1
25942 exit $1
25943 } # as_fn_exit
25944
25945 # as_fn_unset VAR
25946 # ---------------
25947 # Portably unset VAR.
25948 as_fn_unset ()
25949 {
25950 { eval $1=; unset $1;}
25951 }
25952 as_unset=as_fn_unset
25953 # as_fn_append VAR VALUE
25954 # ----------------------
25955 # Append the text in VALUE to the end of the definition contained in VAR. Take
25956 # advantage of any shell optimizations that allow amortized linear growth over
25957 # repeated appends, instead of the typical quadratic growth present in naive
25958 # implementations.
25959 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25960 eval 'as_fn_append ()
25961 {
25962 eval $1+=\$2
25963 }'
25964 else
25965 as_fn_append ()
25966 {
25967 eval $1=\$$1\$2
25968 }
25969 fi # as_fn_append
25970
25971 # as_fn_arith ARG...
25972 # ------------------
25973 # Perform arithmetic evaluation on the ARGs, and store the result in the
25974 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25975 # must be portable across $(()) and expr.
25976 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25977 eval 'as_fn_arith ()
25978 {
25979 as_val=$(( $* ))
25980 }'
25981 else
25982 as_fn_arith ()
25983 {
25984 as_val=`expr "$@" || test $? -eq 1`
25985 }
25986 fi # as_fn_arith
25987
25988
25989 if expr a : '\(a\)' >/dev/null 2>&1 &&
25990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25991 as_expr=expr
25992 else
25993 as_expr=false
25994 fi
25995
25996 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25997 as_basename=basename
25998 else
25999 as_basename=false
26000 fi
26001
26002 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26003 as_dirname=dirname
26004 else
26005 as_dirname=false
26006 fi
26007
26008 as_me=`$as_basename -- "$0" ||
26009 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26010 X"$0" : 'X\(//\)$' \| \
26011 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26012 $as_echo X/"$0" |
26013 sed '/^.*\/\([^/][^/]*\)\/*$/{
26014 s//\1/
26015 q
26016 }
26017 /^X\/\(\/\/\)$/{
26018 s//\1/
26019 q
26020 }
26021 /^X\/\(\/\).*/{
26022 s//\1/
26023 q
26024 }
26025 s/.*/./; q'`
26026
26027 # Avoid depending upon Character Ranges.
26028 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26029 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26030 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26031 as_cr_digits='0123456789'
26032 as_cr_alnum=$as_cr_Letters$as_cr_digits
26033
26034 ECHO_C= ECHO_N= ECHO_T=
26035 case `echo -n x` in #(((((
26036 -n*)
26037 case `echo 'xy\c'` in
26038 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26039 xy) ECHO_C='\c';;
26040 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26041 ECHO_T=' ';;
26042 esac;;
26043 *)
26044 ECHO_N='-n';;
26045 esac
26046
26047 rm -f conf$$ conf$$.exe conf$$.file
26048 if test -d conf$$.dir; then
26049 rm -f conf$$.dir/conf$$.file
26050 else
26051 rm -f conf$$.dir
26052 mkdir conf$$.dir 2>/dev/null
26053 fi
26054 if (echo >conf$$.file) 2>/dev/null; then
26055 if ln -s conf$$.file conf$$ 2>/dev/null; then
26056 as_ln_s='ln -s'
26057 # ... but there are two gotchas:
26058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26060 # In both cases, we have to default to `cp -p'.
26061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26062 as_ln_s='cp -p'
26063 elif ln conf$$.file conf$$ 2>/dev/null; then
26064 as_ln_s=ln
26065 else
26066 as_ln_s='cp -p'
26067 fi
26068 else
26069 as_ln_s='cp -p'
26070 fi
26071 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26072 rmdir conf$$.dir 2>/dev/null
26073
26074
26075 # as_fn_mkdir_p
26076 # -------------
26077 # Create "$as_dir" as a directory, including parents if necessary.
26078 as_fn_mkdir_p ()
26079 {
26080
26081 case $as_dir in #(
26082 -*) as_dir=./$as_dir;;
26083 esac
26084 test -d "$as_dir" || eval $as_mkdir_p || {
26085 as_dirs=
26086 while :; do
26087 case $as_dir in #(
26088 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26089 *) as_qdir=$as_dir;;
26090 esac
26091 as_dirs="'$as_qdir' $as_dirs"
26092 as_dir=`$as_dirname -- "$as_dir" ||
26093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26094 X"$as_dir" : 'X\(//\)[^/]' \| \
26095 X"$as_dir" : 'X\(//\)$' \| \
26096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26097 $as_echo X"$as_dir" |
26098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26099 s//\1/
26100 q
26101 }
26102 /^X\(\/\/\)[^/].*/{
26103 s//\1/
26104 q
26105 }
26106 /^X\(\/\/\)$/{
26107 s//\1/
26108 q
26109 }
26110 /^X\(\/\).*/{
26111 s//\1/
26112 q
26113 }
26114 s/.*/./; q'`
26115 test -d "$as_dir" && break
26116 done
26117 test -z "$as_dirs" || eval "mkdir $as_dirs"
26118 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26119
26120
26121 } # as_fn_mkdir_p
26122 if mkdir -p . 2>/dev/null; then
26123 as_mkdir_p='mkdir -p "$as_dir"'
26124 else
26125 test -d ./-p && rmdir ./-p
26126 as_mkdir_p=false
26127 fi
26128
26129 if test -x / >/dev/null 2>&1; then
26130 as_test_x='test -x'
26131 else
26132 if ls -dL / >/dev/null 2>&1; then
26133 as_ls_L_option=L
26134 else
26135 as_ls_L_option=
26136 fi
26137 as_test_x='
26138 eval sh -c '\''
26139 if test -d "$1"; then
26140 test -d "$1/.";
26141 else
26142 case $1 in #(
26143 -*)set "./$1";;
26144 esac;
26145 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26146 ???[sx]*):;;*)false;;esac;fi
26147 '\'' sh
26148 '
26149 fi
26150 as_executable_p=$as_test_x
26151
26152 # Sed expression to map a string onto a valid CPP name.
26153 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26154
26155 # Sed expression to map a string onto a valid variable name.
26156 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26157
26158
26159 exec 6>&1
26160 ## ----------------------------------- ##
26161 ## Main body of $CONFIG_STATUS script. ##
26162 ## ----------------------------------- ##
26163 _ASEOF
26164 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26165
26166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26167 # Save the log message, to keep $0 and so on meaningful, and to
26168 # report actual input values of CONFIG_FILES etc. instead of their
26169 # values after options handling.
26170 ac_log="
26171 This file was extended by $as_me, which was
26172 generated by GNU Autoconf 2.64. Invocation command line was
26173
26174 CONFIG_FILES = $CONFIG_FILES
26175 CONFIG_HEADERS = $CONFIG_HEADERS
26176 CONFIG_LINKS = $CONFIG_LINKS
26177 CONFIG_COMMANDS = $CONFIG_COMMANDS
26178 $ $0 $@
26179
26180 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26181 "
26182
26183 _ACEOF
26184
26185 case $ac_config_files in *"
26186 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26187 esac
26188
26189 case $ac_config_headers in *"
26190 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26191 esac
26192
26193
26194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26195 # Files that config.status was made for.
26196 config_files="$ac_config_files"
26197 config_headers="$ac_config_headers"
26198 config_commands="$ac_config_commands"
26199
26200 _ACEOF
26201
26202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26203 ac_cs_usage="\
26204 \`$as_me' instantiates files and other configuration actions
26205 from templates according to the current configuration. Unless the files
26206 and actions are specified as TAGs, all are instantiated by default.
26207
26208 Usage: $0 [OPTION]... [TAG]...
26209
26210 -h, --help print this help, then exit
26211 -V, --version print version number and configuration settings, then exit
26212 -q, --quiet, --silent
26213 do not print progress messages
26214 -d, --debug don't remove temporary files
26215 --recheck update $as_me by reconfiguring in the same conditions
26216 --file=FILE[:TEMPLATE]
26217 instantiate the configuration file FILE
26218 --header=FILE[:TEMPLATE]
26219 instantiate the configuration header FILE
26220
26221 Configuration files:
26222 $config_files
26223
26224 Configuration headers:
26225 $config_headers
26226
26227 Configuration commands:
26228 $config_commands
26229
26230 Report bugs to the package provider."
26231
26232 _ACEOF
26233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26234 ac_cs_version="\\
26235 config.status
26236 configured by $0, generated by GNU Autoconf 2.64,
26237 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26238
26239 Copyright (C) 2009 Free Software Foundation, Inc.
26240 This config.status script is free software; the Free Software Foundation
26241 gives unlimited permission to copy, distribute and modify it."
26242
26243 ac_pwd='$ac_pwd'
26244 srcdir='$srcdir'
26245 AWK='$AWK'
26246 test -n "\$AWK" || AWK=awk
26247 _ACEOF
26248
26249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26250 # The default lists apply if the user does not specify any file.
26251 ac_need_defaults=:
26252 while test $# != 0
26253 do
26254 case $1 in
26255 --*=*)
26256 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26257 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26258 ac_shift=:
26259 ;;
26260 *)
26261 ac_option=$1
26262 ac_optarg=$2
26263 ac_shift=shift
26264 ;;
26265 esac
26266
26267 case $ac_option in
26268 # Handling of the options.
26269 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26270 ac_cs_recheck=: ;;
26271 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26272 $as_echo "$ac_cs_version"; exit ;;
26273 --debug | --debu | --deb | --de | --d | -d )
26274 debug=: ;;
26275 --file | --fil | --fi | --f )
26276 $ac_shift
26277 case $ac_optarg in
26278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26279 esac
26280 as_fn_append CONFIG_FILES " '$ac_optarg'"
26281 ac_need_defaults=false;;
26282 --header | --heade | --head | --hea )
26283 $ac_shift
26284 case $ac_optarg in
26285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26286 esac
26287 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26288 ac_need_defaults=false;;
26289 --he | --h)
26290 # Conflict between --help and --header
26291 as_fn_error "ambiguous option: \`$1'
26292 Try \`$0 --help' for more information.";;
26293 --help | --hel | -h )
26294 $as_echo "$ac_cs_usage"; exit ;;
26295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26296 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26297 ac_cs_silent=: ;;
26298
26299 # This is an error.
26300 -*) as_fn_error "unrecognized option: \`$1'
26301 Try \`$0 --help' for more information." ;;
26302
26303 *) as_fn_append ac_config_targets " $1"
26304 ac_need_defaults=false ;;
26305
26306 esac
26307 shift
26308 done
26309
26310 ac_configure_extra_args=
26311
26312 if $ac_cs_silent; then
26313 exec 6>/dev/null
26314 ac_configure_extra_args="$ac_configure_extra_args --silent"
26315 fi
26316
26317 _ACEOF
26318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26319 if \$ac_cs_recheck; then
26320 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26321 shift
26322 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26323 CONFIG_SHELL='$SHELL'
26324 export CONFIG_SHELL
26325 exec "\$@"
26326 fi
26327
26328 _ACEOF
26329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26330 exec 5>>config.log
26331 {
26332 echo
26333 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26334 ## Running $as_me. ##
26335 _ASBOX
26336 $as_echo "$ac_log"
26337 } >&5
26338
26339 _ACEOF
26340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26341 #
26342 # INIT-COMMANDS
26343 #
26344 subdirs='$subdirs'
26345
26346 _ACEOF
26347
26348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26349
26350 # Handling of arguments.
26351 for ac_config_target in $ac_config_targets
26352 do
26353 case $ac_config_target in
26354 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
26355 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
26356 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
26357 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
26358 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
26359 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26360
26361 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26362 esac
26363 done
26364
26365
26366 # If the user did not use the arguments to specify the items to instantiate,
26367 # then the envvar interface is used. Set only those that are not.
26368 # We use the long form for the default assignment because of an extremely
26369 # bizarre bug on SunOS 4.1.3.
26370 if $ac_need_defaults; then
26371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26372 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26373 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26374 fi
26375
26376 # Have a temporary directory for convenience. Make it in the build tree
26377 # simply because there is no reason against having it here, and in addition,
26378 # creating and moving files from /tmp can sometimes cause problems.
26379 # Hook for its removal unless debugging.
26380 # Note that there is a small window in which the directory will not be cleaned:
26381 # after its creation but before its name has been assigned to `$tmp'.
26382 $debug ||
26383 {
26384 tmp=
26385 trap 'exit_status=$?
26386 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26387 ' 0
26388 trap 'as_fn_exit 1' 1 2 13 15
26389 }
26390 # Create a (secure) tmp directory for tmp files.
26391
26392 {
26393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26394 test -n "$tmp" && test -d "$tmp"
26395 } ||
26396 {
26397 tmp=./conf$$-$RANDOM
26398 (umask 077 && mkdir "$tmp")
26399 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26400
26401 # Set up the scripts for CONFIG_FILES section.
26402 # No need to generate them if there are no CONFIG_FILES.
26403 # This happens for instance with `./config.status config.h'.
26404 if test -n "$CONFIG_FILES"; then
26405
26406 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
26407 ac_cs_awk_getline=:
26408 ac_cs_awk_pipe_init=
26409 ac_cs_awk_read_file='
26410 while ((getline aline < (F[key])) > 0)
26411 print(aline)
26412 close(F[key])'
26413 ac_cs_awk_pipe_fini=
26414 else
26415 ac_cs_awk_getline=false
26416 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
26417 ac_cs_awk_read_file='
26418 print "|#_!!_#|"
26419 print "cat " F[key] " &&"
26420 '$ac_cs_awk_pipe_init
26421 # The final `:' finishes the AND list.
26422 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
26423 fi
26424 ac_cr=`echo X | tr X '\015'`
26425 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26426 # But we know of no other shell where ac_cr would be empty at this
26427 # point, so we can use a bashism as a fallback.
26428 if test "x$ac_cr" = x; then
26429 eval ac_cr=\$\'\\r\'
26430 fi
26431 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26432 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26433 ac_cs_awk_cr='\r'
26434 else
26435 ac_cs_awk_cr=$ac_cr
26436 fi
26437
26438 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26439 _ACEOF
26440
26441 # Create commands to substitute file output variables.
26442 {
26443 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26444 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26445 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26446 echo "_ACAWK" &&
26447 echo "_ACEOF"
26448 } >conf$$files.sh &&
26449 . ./conf$$files.sh ||
26450 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26451 rm -f conf$$files.sh
26452
26453 {
26454 echo "cat >conf$$subs.awk <<_ACEOF" &&
26455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26456 echo "_ACEOF"
26457 } >conf$$subs.sh ||
26458 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26459 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26460 ac_delim='%!_!# '
26461 for ac_last_try in false false false false false :; do
26462 . ./conf$$subs.sh ||
26463 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26464
26465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26466 if test $ac_delim_n = $ac_delim_num; then
26467 break
26468 elif $ac_last_try; then
26469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26470 else
26471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26472 fi
26473 done
26474 rm -f conf$$subs.sh
26475
26476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26477 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26478 _ACEOF
26479 sed -n '
26480 h
26481 s/^/S["/; s/!.*/"]=/
26482 p
26483 g
26484 s/^[^!]*!//
26485 :repl
26486 t repl
26487 s/'"$ac_delim"'$//
26488 t delim
26489 :nl
26490 h
26491 s/\(.\{148\}\).*/\1/
26492 t more1
26493 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26494 p
26495 n
26496 b repl
26497 :more1
26498 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26499 p
26500 g
26501 s/.\{148\}//
26502 t nl
26503 :delim
26504 h
26505 s/\(.\{148\}\).*/\1/
26506 t more2
26507 s/["\\]/\\&/g; s/^/"/; s/$/"/
26508 p
26509 b
26510 :more2
26511 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26512 p
26513 g
26514 s/.\{148\}//
26515 t delim
26516 ' <conf$$subs.awk | sed '
26517 /^[^""]/{
26518 N
26519 s/\n//
26520 }
26521 ' >>$CONFIG_STATUS || ac_write_fail=1
26522 rm -f conf$$subs.awk
26523 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26524 _ACAWK
26525 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26526 for (key in S) S_is_set[key] = 1
26527 FS = "\a"
26528 \$ac_cs_awk_pipe_init
26529 }
26530 {
26531 line = $ 0
26532 nfields = split(line, field, "@")
26533 substed = 0
26534 len = length(field[1])
26535 for (i = 2; i < nfields; i++) {
26536 key = field[i]
26537 keylen = length(key)
26538 if (S_is_set[key]) {
26539 value = S[key]
26540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26541 len += length(value) + length(field[++i])
26542 substed = 1
26543 } else
26544 len += 1 + keylen
26545 }
26546 if (nfields == 3 && !substed) {
26547 key = field[2]
26548 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26549 \$ac_cs_awk_read_file
26550 next
26551 }
26552 }
26553 print line
26554 }
26555 \$ac_cs_awk_pipe_fini
26556 _ACAWK
26557 _ACEOF
26558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26559 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26560 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26561 else
26562 cat
26563 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26564 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26565 _ACEOF
26566
26567 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26568 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26569 # trailing colons and then remove the whole line if VPATH becomes empty
26570 # (actually we leave an empty line to preserve line numbers).
26571 if test "x$srcdir" = x.; then
26572 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26573 s/:*\$(srcdir):*/:/
26574 s/:*\${srcdir}:*/:/
26575 s/:*@srcdir@:*/:/
26576 s/^\([^=]*=[ ]*\):*/\1/
26577 s/:*$//
26578 s/^[^=]*=[ ]*$//
26579 }'
26580 fi
26581
26582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26583 fi # test -n "$CONFIG_FILES"
26584
26585 # Set up the scripts for CONFIG_HEADERS section.
26586 # No need to generate them if there are no CONFIG_HEADERS.
26587 # This happens for instance with `./config.status Makefile'.
26588 if test -n "$CONFIG_HEADERS"; then
26589 cat >"$tmp/defines.awk" <<\_ACAWK ||
26590 BEGIN {
26591 _ACEOF
26592
26593 # Transform confdefs.h into an awk script `defines.awk', embedded as
26594 # here-document in config.status, that substitutes the proper values into
26595 # config.h.in to produce config.h.
26596
26597 # Create a delimiter string that does not exist in confdefs.h, to ease
26598 # handling of long lines.
26599 ac_delim='%!_!# '
26600 for ac_last_try in false false :; do
26601 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26602 if test -z "$ac_t"; then
26603 break
26604 elif $ac_last_try; then
26605 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26606 else
26607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26608 fi
26609 done
26610
26611 # For the awk script, D is an array of macro values keyed by name,
26612 # likewise P contains macro parameters if any. Preserve backslash
26613 # newline sequences.
26614
26615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26616 sed -n '
26617 s/.\{148\}/&'"$ac_delim"'/g
26618 t rset
26619 :rset
26620 s/^[ ]*#[ ]*define[ ][ ]*/ /
26621 t def
26622 d
26623 :def
26624 s/\\$//
26625 t bsnl
26626 s/["\\]/\\&/g
26627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26628 D["\1"]=" \3"/p
26629 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26630 d
26631 :bsnl
26632 s/["\\]/\\&/g
26633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26634 D["\1"]=" \3\\\\\\n"\\/p
26635 t cont
26636 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26637 t cont
26638 d
26639 :cont
26640 n
26641 s/.\{148\}/&'"$ac_delim"'/g
26642 t clear
26643 :clear
26644 s/\\$//
26645 t bsnlc
26646 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26647 d
26648 :bsnlc
26649 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26650 b cont
26651 ' <confdefs.h | sed '
26652 s/'"$ac_delim"'/"\\\
26653 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26654
26655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26656 for (key in D) D_is_set[key] = 1
26657 FS = "\a"
26658 }
26659 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26660 line = \$ 0
26661 split(line, arg, " ")
26662 if (arg[1] == "#") {
26663 defundef = arg[2]
26664 mac1 = arg[3]
26665 } else {
26666 defundef = substr(arg[1], 2)
26667 mac1 = arg[2]
26668 }
26669 split(mac1, mac2, "(") #)
26670 macro = mac2[1]
26671 prefix = substr(line, 1, index(line, defundef) - 1)
26672 if (D_is_set[macro]) {
26673 # Preserve the white space surrounding the "#".
26674 print prefix "define", macro P[macro] D[macro]
26675 next
26676 } else {
26677 # Replace #undef with comments. This is necessary, for example,
26678 # in the case of _POSIX_SOURCE, which is predefined and required
26679 # on some systems where configure will not decide to define it.
26680 if (defundef == "undef") {
26681 print "/*", prefix defundef, macro, "*/"
26682 next
26683 }
26684 }
26685 }
26686 { print }
26687 _ACAWK
26688 _ACEOF
26689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26690 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26691 fi # test -n "$CONFIG_HEADERS"
26692
26693
26694 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26695 shift
26696 for ac_tag
26697 do
26698 case $ac_tag in
26699 :[FHLC]) ac_mode=$ac_tag; continue;;
26700 esac
26701 case $ac_mode$ac_tag in
26702 :[FHL]*:*);;
26703 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26704 :[FH]-) ac_tag=-:-;;
26705 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26706 esac
26707 ac_save_IFS=$IFS
26708 IFS=:
26709 set x $ac_tag
26710 IFS=$ac_save_IFS
26711 shift
26712 ac_file=$1
26713 shift
26714
26715 case $ac_mode in
26716 :L) ac_source=$1;;
26717 :[FH])
26718 ac_file_inputs=
26719 for ac_f
26720 do
26721 case $ac_f in
26722 -) ac_f="$tmp/stdin";;
26723 *) # Look for the file first in the build tree, then in the source tree
26724 # (if the path is not absolute). The absolute path cannot be DOS-style,
26725 # because $ac_f cannot contain `:'.
26726 test -f "$ac_f" ||
26727 case $ac_f in
26728 [\\/$]*) false;;
26729 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26730 esac ||
26731 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26732 esac
26733 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26734 as_fn_append ac_file_inputs " '$ac_f'"
26735 done
26736
26737 # Let's still pretend it is `configure' which instantiates (i.e., don't
26738 # use $as_me), people would be surprised to read:
26739 # /* config.h. Generated by config.status. */
26740 configure_input='Generated from '`
26741 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26742 `' by configure.'
26743 if test x"$ac_file" != x-; then
26744 configure_input="$ac_file. $configure_input"
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26746 $as_echo "$as_me: creating $ac_file" >&6;}
26747 fi
26748 # Neutralize special characters interpreted by sed in replacement strings.
26749 case $configure_input in #(
26750 *\&* | *\|* | *\\* )
26751 ac_sed_conf_input=`$as_echo "$configure_input" |
26752 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26753 *) ac_sed_conf_input=$configure_input;;
26754 esac
26755
26756 case $ac_tag in
26757 *:-:* | *:-) cat >"$tmp/stdin" \
26758 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26759 esac
26760 ;;
26761 esac
26762
26763 ac_dir=`$as_dirname -- "$ac_file" ||
26764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26765 X"$ac_file" : 'X\(//\)[^/]' \| \
26766 X"$ac_file" : 'X\(//\)$' \| \
26767 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26768 $as_echo X"$ac_file" |
26769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26770 s//\1/
26771 q
26772 }
26773 /^X\(\/\/\)[^/].*/{
26774 s//\1/
26775 q
26776 }
26777 /^X\(\/\/\)$/{
26778 s//\1/
26779 q
26780 }
26781 /^X\(\/\).*/{
26782 s//\1/
26783 q
26784 }
26785 s/.*/./; q'`
26786 as_dir="$ac_dir"; as_fn_mkdir_p
26787 ac_builddir=.
26788
26789 case "$ac_dir" in
26790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26791 *)
26792 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26793 # A ".." for each directory in $ac_dir_suffix.
26794 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26795 case $ac_top_builddir_sub in
26796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26798 esac ;;
26799 esac
26800 ac_abs_top_builddir=$ac_pwd
26801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26802 # for backward compatibility:
26803 ac_top_builddir=$ac_top_build_prefix
26804
26805 case $srcdir in
26806 .) # We are building in place.
26807 ac_srcdir=.
26808 ac_top_srcdir=$ac_top_builddir_sub
26809 ac_abs_top_srcdir=$ac_pwd ;;
26810 [\\/]* | ?:[\\/]* ) # Absolute name.
26811 ac_srcdir=$srcdir$ac_dir_suffix;
26812 ac_top_srcdir=$srcdir
26813 ac_abs_top_srcdir=$srcdir ;;
26814 *) # Relative name.
26815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26816 ac_top_srcdir=$ac_top_build_prefix$srcdir
26817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26818 esac
26819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26820
26821
26822 case $ac_mode in
26823 :F)
26824 #
26825 # CONFIG_FILE
26826 #
26827
26828 _ACEOF
26829
26830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26831 # If the template does not know about datarootdir, expand it.
26832 # FIXME: This hack should be removed a few years after 2.60.
26833 ac_datarootdir_hack=; ac_datarootdir_seen=
26834 ac_sed_dataroot='
26835 /datarootdir/ {
26836 p
26837 q
26838 }
26839 /@datadir@/p
26840 /@docdir@/p
26841 /@infodir@/p
26842 /@localedir@/p
26843 /@mandir@/p'
26844 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26845 *datarootdir*) ac_datarootdir_seen=yes;;
26846 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26848 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26849 _ACEOF
26850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26851 ac_datarootdir_hack='
26852 s&@datadir@&$datadir&g
26853 s&@docdir@&$docdir&g
26854 s&@infodir@&$infodir&g
26855 s&@localedir@&$localedir&g
26856 s&@mandir@&$mandir&g
26857 s&\\\${datarootdir}&$datarootdir&g' ;;
26858 esac
26859 _ACEOF
26860
26861 # Neutralize VPATH when `$srcdir' = `.'.
26862 # Shell code in configure.ac might set extrasub.
26863 # FIXME: do we really want to maintain this feature?
26864 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26865 ac_sed_extra="$ac_vpsub
26866 $extrasub
26867 _ACEOF
26868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26869 :t
26870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26871 s|@configure_input@|$ac_sed_conf_input|;t t
26872 s&@top_builddir@&$ac_top_builddir_sub&;t t
26873 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26874 s&@srcdir@&$ac_srcdir&;t t
26875 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26876 s&@top_srcdir@&$ac_top_srcdir&;t t
26877 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26878 s&@builddir@&$ac_builddir&;t t
26879 s&@abs_builddir@&$ac_abs_builddir&;t t
26880 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26881 $ac_datarootdir_hack
26882 "
26883 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26884 if $ac_cs_awk_getline; then
26885 $AWK -f "$tmp/subs.awk"
26886 else
26887 $AWK -f "$tmp/subs.awk" | $SHELL
26888 fi >$tmp/out \
26889 || as_fn_error "could not create $ac_file" "$LINENO" 5
26890
26891 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26892 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26893 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26895 which seems to be undefined. Please make sure it is defined." >&5
26896 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26897 which seems to be undefined. Please make sure it is defined." >&2;}
26898
26899 rm -f "$tmp/stdin"
26900 case $ac_file in
26901 -) cat "$tmp/out" && rm -f "$tmp/out";;
26902 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26903 esac \
26904 || as_fn_error "could not create $ac_file" "$LINENO" 5
26905 ;;
26906 :H)
26907 #
26908 # CONFIG_HEADER
26909 #
26910 if test x"$ac_file" != x-; then
26911 {
26912 $as_echo "/* $configure_input */" \
26913 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26914 } >"$tmp/config.h" \
26915 || as_fn_error "could not create $ac_file" "$LINENO" 5
26916 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26917 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26918 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26919 else
26920 rm -f "$ac_file"
26921 mv "$tmp/config.h" "$ac_file" \
26922 || as_fn_error "could not create $ac_file" "$LINENO" 5
26923 fi
26924 else
26925 $as_echo "/* $configure_input */" \
26926 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26927 || as_fn_error "could not create -" "$LINENO" 5
26928 fi
26929 ;;
26930
26931 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26932 $as_echo "$as_me: executing $ac_file commands" >&6;}
26933 ;;
26934 esac
26935
26936
26937 case $ac_file$ac_mode in
26938 "as":F) chmod +x as ;;
26939 "collect-ld":F) chmod +x collect-ld ;;
26940 "nm":F) chmod +x nm ;;
26941 "default":C)
26942 case ${CONFIG_HEADERS} in
26943 *auto-host.h:config.in*)
26944 echo > cstamp-h ;;
26945 esac
26946 # Make sure all the subdirs exist.
26947 for d in $subdirs doc build c-family
26948 do
26949 test -d $d || mkdir $d
26950 done
26951 ;;
26952
26953 esac
26954 done # for ac_tag
26955
26956
26957 as_fn_exit 0
26958 _ACEOF
26959 ac_clean_files=$ac_clean_files_save
26960
26961 test $ac_write_fail = 0 ||
26962 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26963
26964
26965 # configure is writing to config.log, and then calls config.status.
26966 # config.status does its own redirection, appending to config.log.
26967 # Unfortunately, on DOS this fails, as config.log is still kept open
26968 # by configure, so config.status won't be able to write to it; its
26969 # output is simply discarded. So we exec the FD to /dev/null,
26970 # effectively closing config.log, so it can be properly (re)opened and
26971 # appended to by config.status. When coming back to configure, we
26972 # need to make the FD available again.
26973 if test "$no_create" != yes; then
26974 ac_cs_success=:
26975 ac_config_status_args=
26976 test "$silent" = yes &&
26977 ac_config_status_args="$ac_config_status_args --quiet"
26978 exec 5>/dev/null
26979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26980 exec 5>>config.log
26981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26982 # would make configure fail if this is the last instruction.
26983 $ac_cs_success || as_fn_exit $?
26984 fi
26985 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26987 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26988 fi
26989