Fix DealII type problems.
[official-gcc/Ramakrishna.git] / gcc / configure
blobf49cdb77f67ec2354c7914e333f01b1f6277b834
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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.
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 ## -------------------- ##
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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"
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
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
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
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
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='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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 *) :
148 esac
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; }
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
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 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
531 case X$lt_ECHO in
532 X*--fallback-echo)
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 esac
538 ECHO=${lt_ECHO-echo}
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
541 shift
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
548 else
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
555 shift
556 cat <<_LT_EOF
558 _LT_EOF
559 exit 0
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
563 # if CDPATH is set.
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573 then
574 break
576 done
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
583 else
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
592 IFS="$lt_save_ifs"
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 ECHO="$dir/echo"
598 break
600 done
601 IFS="$lt_save_ifs"
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
609 ECHO='print -r'
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
616 export CONFIG_SHELL
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618 else
619 # Try using printf.
620 ECHO='printf %s\n'
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # Cool, printf works
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631 export CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
633 export SHELL
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 else
641 # maybe with a smaller string...
642 prev=:
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646 then
647 break
649 prev="$cmd"
650 done
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656 else
657 # Oops. We lost completely, so just stick with echo.
658 ECHO=echo
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
668 lt_ECHO=$ECHO
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
678 # Name of the host.
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
684 # Initializations.
686 ac_default_prefix=/usr/local
687 ac_clean_files=
688 ac_config_libobj_dir=.
689 LIBOBJS=
690 cross_compiling=no
691 subdirs=
692 MFLAGS=
693 MAKEFLAGS=
695 # Identity of this package.
696 PACKAGE_NAME=
697 PACKAGE_TARNAME=
698 PACKAGE_VERSION=
699 PACKAGE_STRING=
700 PACKAGE_BUGREPORT=
701 PACKAGE_URL=
703 ac_unique_file="tree.c"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
706 #include <stdio.h>
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
709 #endif
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
712 #endif
713 #ifdef STDC_HEADERS
714 # include <stdlib.h>
715 # include <stddef.h>
716 #else
717 # ifdef HAVE_STDLIB_H
718 # include <stdlib.h>
719 # endif
720 #endif
721 #ifdef HAVE_STRING_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723 # include <memory.h>
724 # endif
725 # include <string.h>
726 #endif
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
729 #endif
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
732 #endif
733 #ifdef HAVE_STDINT_H
734 # include <stdint.h>
735 #endif
736 #ifdef HAVE_UNISTD_H
737 # include <unistd.h>
738 #endif"
740 ac_subst_vars='LTLIBOBJS
741 LIBOBJS
742 enable_plugin
743 pluginlibs
744 LIBELFINC
745 LIBELFLIBS
746 CLOOGINC
747 CLOOGLIBS
748 PPLINC
749 PPLLIBS
750 GMPINC
751 GMPLIBS
752 target_cpu_default
753 fortran_target_objs
754 cxx_target_objs
755 c_target_objs
756 use_gcc_stdint
757 xm_defines
758 xm_include_list
759 xm_file_list
760 tm_p_include_list
761 tm_p_file_list
762 tm_defines
763 tm_include_list
764 tm_file_list
765 thread_file
766 out_object_file
767 out_file
768 objc_boehm_gc
769 md_file
770 local_prefix
771 lang_tree_files
772 lang_specs_files
773 lang_opt_files
774 install
775 out_host_hook_obj
776 host_xm_defines
777 host_xm_include_list
778 host_xm_file_list
779 host_exeext
780 gcc_gxx_include_dir
781 gcc_config_arguments
782 float_h_file
783 extra_programs
784 extra_passes
785 extra_parts
786 extra_objs
787 extra_headers_list
788 extra_gcc_objs
789 TM_MULTILIB_EXCEPTIONS_CONFIG
790 TM_MULTILIB_CONFIG
791 TM_ENDIAN_CONFIG
792 tmake_file
793 xmake_file
794 cpp_install_dir
795 check_languages
796 build_file_translate
797 build_xm_defines
798 build_xm_include_list
799 build_xm_file_list
800 build_install_headers_dir
801 build_exeext
802 all_selected_languages
803 all_languages
804 all_lang_makefiles
805 all_lang_makefrags
806 all_gtfiles
807 all_compilers
808 srcdir
809 subdirs
810 slibdir
811 dollar
812 gcc_tooldir
813 enable_lto
814 MAINT
815 zlibinc
816 zlibdir
817 HOST_LIBS
819 libgcc_visibility
820 gcc_cv_readelf
821 gcc_cv_objdump
822 ORIGINAL_NM_FOR_TARGET
823 gcc_cv_nm
824 ORIGINAL_LD_FOR_TARGET
825 ORIGINAL_PLUGIN_LD_FOR_TARGET
826 gcc_cv_ld
827 ORIGINAL_AS_FOR_TARGET
828 gcc_cv_as
829 enable_fast_install
830 objdir
831 CXXCPP
832 OTOOL64
833 OTOOL
834 LIPO
835 NMEDIT
836 DSYMUTIL
837 lt_ECHO
838 STRIP
839 OBJDUMP
840 ac_ct_DUMPBIN
841 DUMPBIN
843 FGREP
845 LIBTOOL
846 collect2
847 STMP_FIXINC
848 BUILD_LDFLAGS
849 BUILD_CFLAGS
850 CC_FOR_BUILD
851 inhibit_libc
852 SYSTEM_HEADER_DIR
854 CROSS
855 CATOBJEXT
856 GENCAT
857 INSTOBJEXT
858 DATADIRNAME
859 CATALOGS
860 POSUB
861 GMSGFMT
862 XGETTEXT
863 INCINTL
864 LIBINTL_DEP
865 LIBINTL
866 USE_NLS
867 extra_opt_files
868 extra_modes_file
869 gthread_flags
870 objext
871 manext
872 LIBICONV_DEP
873 LTLIBICONV
874 LIBICONV
875 LDEXP_LIB
876 GNAT_LIBEXC
877 COLLECT2_LIBS
880 BISON
881 FLEX
882 GENERATED_MANPAGES
883 BUILD_INFO
884 MAKEINFO
885 have_mktemp_command
886 make_compare_target
887 INSTALL_DATA
888 INSTALL_PROGRAM
889 INSTALL
890 ranlib_flags
891 RANLIB
893 LN_S
895 SET_MAKE
896 REPORT_BUGS_TEXI
897 REPORT_BUGS_TO
898 PKGVERSION
899 onestep
900 CROSS_SYSTEM_HEADER_DIR
901 TARGET_SYSTEM_ROOT_DEFINE
902 TARGET_SYSTEM_ROOT
903 enable_shared
904 enable_fixed_point
905 enable_decimal_float
906 enable_multilib
907 ENABLE_BUILD_WITH_CXX
908 coverage_flags
909 valgrind_command
910 valgrind_path_defines
911 valgrind_path
912 TREEBROWSER
913 nocommon_flag
914 warn_cxxflags
915 warn_cflags
916 c_strict_warn
917 strict_warn
918 c_loose_warn
919 loose_warn
920 EGREP
921 GREP
923 OUTPUT_OPTION
924 NO_MINUS_C_MINUS_O
925 GNATMAKE
926 GNATBIND
927 ac_ct_CXX
928 CXXFLAGS
930 OBJEXT
931 EXEEXT
932 ac_ct_CC
933 CPPFLAGS
934 LDFLAGS
935 CFLAGS
937 GENINSRC
938 target_subdir
939 host_subdir
940 build_subdir
941 build_libsubdir
942 target_noncanonical
943 target_os
944 target_vendor
945 target_cpu
946 target
947 host_os
948 host_vendor
949 host_cpu
950 host
951 build_os
952 build_vendor
953 build_cpu
954 build
955 target_alias
956 host_alias
957 build_alias
958 LIBS
959 ECHO_T
960 ECHO_N
961 ECHO_C
962 DEFS
963 mandir
964 localedir
965 libdir
966 psdir
967 pdfdir
968 dvidir
969 htmldir
970 infodir
971 docdir
972 oldincludedir
973 includedir
974 localstatedir
975 sharedstatedir
976 sysconfdir
977 datadir
978 datarootdir
979 libexecdir
980 sbindir
981 bindir
982 program_transform_name
983 prefix
984 exec_prefix
985 PACKAGE_URL
986 PACKAGE_BUGREPORT
987 PACKAGE_STRING
988 PACKAGE_VERSION
989 PACKAGE_TARNAME
990 PACKAGE_NAME
991 PATH_SEPARATOR
992 SHELL'
993 ac_subst_files='language_hooks'
994 ac_user_opts='
995 enable_option_checking
996 with_build_libsubdir
997 with_local_prefix
998 with_gxx_include_dir
999 with_cpp_install_dir
1000 enable_generated_files_in_srcdir
1001 with_gnu_ld
1002 with_ld
1003 with_demangler_in_ld
1004 with_gnu_as
1005 with_as
1006 enable_werror_always
1007 enable_checking
1008 enable_coverage
1009 enable_gather_detailed_mem_stats
1010 enable_build_with_cxx
1011 with_stabs
1012 enable_multilib
1013 enable___cxa_atexit
1014 enable_decimal_float
1015 enable_fixed_point
1016 enable_threads
1017 enable_tls
1018 enable_objc_gc
1019 with_dwarf2
1020 enable_shared
1021 with_build_sysroot
1022 with_sysroot
1023 enable_intermodule
1024 with_pkgversion
1025 with_bugurl
1026 enable_languages
1027 with_multilib_list
1028 enable_rpath
1029 with_libiconv_prefix
1030 enable_initfini_array
1031 enable_sjlj_exceptions
1032 with_system_libunwind
1033 enable_secureplt
1034 enable_cld
1035 enable_win32_registry
1036 enable_static
1037 with_pic
1038 enable_fast_install
1039 enable_libtool_lock
1040 with_plugin_ld
1041 enable_gnu_unique_object
1042 enable_linker_build_id
1043 with_long_double_128
1044 with_gc
1045 with_system_zlib
1046 enable_maintainer_mode
1047 enable_version_specific_runtime_libs
1048 with_slibdir
1049 enable_plugin
1051 ac_precious_vars='build_alias
1052 host_alias
1053 target_alias
1055 CFLAGS
1056 LDFLAGS
1057 LIBS
1058 CPPFLAGS
1060 CXXFLAGS
1063 CXXCPP
1064 GMPLIBS
1065 GMPINC
1066 PPLLIBS
1067 PPLINC
1068 CLOOGLIBS
1069 CLOOGINC
1070 LIBELFLIBS
1071 LIBELFINC'
1074 # Initialize some variables set by options.
1075 ac_init_help=
1076 ac_init_version=false
1077 ac_unrecognized_opts=
1078 ac_unrecognized_sep=
1079 # The variables have the same names as the options, with
1080 # dashes changed to underlines.
1081 cache_file=/dev/null
1082 exec_prefix=NONE
1083 no_create=
1084 no_recursion=
1085 prefix=NONE
1086 program_prefix=NONE
1087 program_suffix=NONE
1088 program_transform_name=s,x,x,
1089 silent=
1090 site=
1091 srcdir=
1092 verbose=
1093 x_includes=NONE
1094 x_libraries=NONE
1096 # Installation directory options.
1097 # These are left unexpanded so users can "make install exec_prefix=/foo"
1098 # and all the variables that are supposed to be based on exec_prefix
1099 # by default will actually change.
1100 # Use braces instead of parens because sh, perl, etc. also accept them.
1101 # (The list follows the same order as the GNU Coding Standards.)
1102 bindir='${exec_prefix}/bin'
1103 sbindir='${exec_prefix}/sbin'
1104 libexecdir='${exec_prefix}/libexec'
1105 datarootdir='${prefix}/share'
1106 datadir='${datarootdir}'
1107 sysconfdir='${prefix}/etc'
1108 sharedstatedir='${prefix}/com'
1109 localstatedir='${prefix}/var'
1110 includedir='${prefix}/include'
1111 oldincludedir='/usr/include'
1112 docdir='${datarootdir}/doc/${PACKAGE}'
1113 infodir='${datarootdir}/info'
1114 htmldir='${docdir}'
1115 dvidir='${docdir}'
1116 pdfdir='${docdir}'
1117 psdir='${docdir}'
1118 libdir='${exec_prefix}/lib'
1119 localedir='${datarootdir}/locale'
1120 mandir='${datarootdir}/man'
1122 ac_prev=
1123 ac_dashdash=
1124 for ac_option
1126 # If the previous option needs an argument, assign it.
1127 if test -n "$ac_prev"; then
1128 eval $ac_prev=\$ac_option
1129 ac_prev=
1130 continue
1133 case $ac_option in
1134 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1135 *) ac_optarg=yes ;;
1136 esac
1138 # Accept the important Cygnus configure options, so we can diagnose typos.
1140 case $ac_dashdash$ac_option in
1142 ac_dashdash=yes ;;
1144 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1145 ac_prev=bindir ;;
1146 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1147 bindir=$ac_optarg ;;
1149 -build | --build | --buil | --bui | --bu)
1150 ac_prev=build_alias ;;
1151 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1152 build_alias=$ac_optarg ;;
1154 -cache-file | --cache-file | --cache-fil | --cache-fi \
1155 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1156 ac_prev=cache_file ;;
1157 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1158 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1159 cache_file=$ac_optarg ;;
1161 --config-cache | -C)
1162 cache_file=config.cache ;;
1164 -datadir | --datadir | --datadi | --datad)
1165 ac_prev=datadir ;;
1166 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1167 datadir=$ac_optarg ;;
1169 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1170 | --dataroo | --dataro | --datar)
1171 ac_prev=datarootdir ;;
1172 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1173 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1174 datarootdir=$ac_optarg ;;
1176 -disable-* | --disable-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid feature name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "enable_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval enable_$ac_useropt=no ;;
1192 -docdir | --docdir | --docdi | --doc | --do)
1193 ac_prev=docdir ;;
1194 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1195 docdir=$ac_optarg ;;
1197 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1198 ac_prev=dvidir ;;
1199 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1200 dvidir=$ac_optarg ;;
1202 -enable-* | --enable-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 as_fn_error "invalid feature name: $ac_useropt"
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1211 "enable_$ac_useropt"
1212 "*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval enable_$ac_useropt=\$ac_optarg ;;
1218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1220 | --exec | --exe | --ex)
1221 ac_prev=exec_prefix ;;
1222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1224 | --exec=* | --exe=* | --ex=*)
1225 exec_prefix=$ac_optarg ;;
1227 -gas | --gas | --ga | --g)
1228 # Obsolete; use --with-gas.
1229 with_gas=yes ;;
1231 -help | --help | --hel | --he | -h)
1232 ac_init_help=long ;;
1233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1234 ac_init_help=recursive ;;
1235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1236 ac_init_help=short ;;
1238 -host | --host | --hos | --ho)
1239 ac_prev=host_alias ;;
1240 -host=* | --host=* | --hos=* | --ho=*)
1241 host_alias=$ac_optarg ;;
1243 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1244 ac_prev=htmldir ;;
1245 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1246 | --ht=*)
1247 htmldir=$ac_optarg ;;
1249 -includedir | --includedir | --includedi | --included | --include \
1250 | --includ | --inclu | --incl | --inc)
1251 ac_prev=includedir ;;
1252 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1253 | --includ=* | --inclu=* | --incl=* | --inc=*)
1254 includedir=$ac_optarg ;;
1256 -infodir | --infodir | --infodi | --infod | --info | --inf)
1257 ac_prev=infodir ;;
1258 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1259 infodir=$ac_optarg ;;
1261 -libdir | --libdir | --libdi | --libd)
1262 ac_prev=libdir ;;
1263 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1264 libdir=$ac_optarg ;;
1266 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1267 | --libexe | --libex | --libe)
1268 ac_prev=libexecdir ;;
1269 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1270 | --libexe=* | --libex=* | --libe=*)
1271 libexecdir=$ac_optarg ;;
1273 -localedir | --localedir | --localedi | --localed | --locale)
1274 ac_prev=localedir ;;
1275 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1276 localedir=$ac_optarg ;;
1278 -localstatedir | --localstatedir | --localstatedi | --localstated \
1279 | --localstate | --localstat | --localsta | --localst | --locals)
1280 ac_prev=localstatedir ;;
1281 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1282 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1283 localstatedir=$ac_optarg ;;
1285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1286 ac_prev=mandir ;;
1287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1288 mandir=$ac_optarg ;;
1290 -nfp | --nfp | --nf)
1291 # Obsolete; use --without-fp.
1292 with_fp=no ;;
1294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1295 | --no-cr | --no-c | -n)
1296 no_create=yes ;;
1298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1300 no_recursion=yes ;;
1302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1304 | --oldin | --oldi | --old | --ol | --o)
1305 ac_prev=oldincludedir ;;
1306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1309 oldincludedir=$ac_optarg ;;
1311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1312 ac_prev=prefix ;;
1313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1314 prefix=$ac_optarg ;;
1316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1317 | --program-pre | --program-pr | --program-p)
1318 ac_prev=program_prefix ;;
1319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1321 program_prefix=$ac_optarg ;;
1323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1324 | --program-suf | --program-su | --program-s)
1325 ac_prev=program_suffix ;;
1326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1328 program_suffix=$ac_optarg ;;
1330 -program-transform-name | --program-transform-name \
1331 | --program-transform-nam | --program-transform-na \
1332 | --program-transform-n | --program-transform- \
1333 | --program-transform | --program-transfor \
1334 | --program-transfo | --program-transf \
1335 | --program-trans | --program-tran \
1336 | --progr-tra | --program-tr | --program-t)
1337 ac_prev=program_transform_name ;;
1338 -program-transform-name=* | --program-transform-name=* \
1339 | --program-transform-nam=* | --program-transform-na=* \
1340 | --program-transform-n=* | --program-transform-=* \
1341 | --program-transform=* | --program-transfor=* \
1342 | --program-transfo=* | --program-transf=* \
1343 | --program-trans=* | --program-tran=* \
1344 | --progr-tra=* | --program-tr=* | --program-t=*)
1345 program_transform_name=$ac_optarg ;;
1347 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1348 ac_prev=pdfdir ;;
1349 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1350 pdfdir=$ac_optarg ;;
1352 -psdir | --psdir | --psdi | --psd | --ps)
1353 ac_prev=psdir ;;
1354 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1355 psdir=$ac_optarg ;;
1357 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1358 | -silent | --silent | --silen | --sile | --sil)
1359 silent=yes ;;
1361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1362 ac_prev=sbindir ;;
1363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1364 | --sbi=* | --sb=*)
1365 sbindir=$ac_optarg ;;
1367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1369 | --sharedst | --shareds | --shared | --share | --shar \
1370 | --sha | --sh)
1371 ac_prev=sharedstatedir ;;
1372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1375 | --sha=* | --sh=*)
1376 sharedstatedir=$ac_optarg ;;
1378 -site | --site | --sit)
1379 ac_prev=site ;;
1380 -site=* | --site=* | --sit=*)
1381 site=$ac_optarg ;;
1383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1384 ac_prev=srcdir ;;
1385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1386 srcdir=$ac_optarg ;;
1388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1389 | --syscon | --sysco | --sysc | --sys | --sy)
1390 ac_prev=sysconfdir ;;
1391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1393 sysconfdir=$ac_optarg ;;
1395 -target | --target | --targe | --targ | --tar | --ta | --t)
1396 ac_prev=target_alias ;;
1397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1398 target_alias=$ac_optarg ;;
1400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1401 verbose=yes ;;
1403 -version | --version | --versio | --versi | --vers | -V)
1404 ac_init_version=: ;;
1406 -with-* | --with-*)
1407 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1408 # Reject names that are not valid shell variable names.
1409 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1410 as_fn_error "invalid package name: $ac_useropt"
1411 ac_useropt_orig=$ac_useropt
1412 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1415 "with_$ac_useropt"
1416 "*) ;;
1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418 ac_unrecognized_sep=', ';;
1419 esac
1420 eval with_$ac_useropt=\$ac_optarg ;;
1422 -without-* | --without-*)
1423 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1424 # Reject names that are not valid shell variable names.
1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1426 as_fn_error "invalid package name: $ac_useropt"
1427 ac_useropt_orig=$ac_useropt
1428 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1429 case $ac_user_opts in
1431 "with_$ac_useropt"
1432 "*) ;;
1433 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1434 ac_unrecognized_sep=', ';;
1435 esac
1436 eval with_$ac_useropt=no ;;
1438 --x)
1439 # Obsolete; use --with-x.
1440 with_x=yes ;;
1442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1443 | --x-incl | --x-inc | --x-in | --x-i)
1444 ac_prev=x_includes ;;
1445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1447 x_includes=$ac_optarg ;;
1449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1451 ac_prev=x_libraries ;;
1452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1454 x_libraries=$ac_optarg ;;
1456 -*) as_fn_error "unrecognized option: \`$ac_option'
1457 Try \`$0 --help' for more information."
1460 *=*)
1461 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1462 # Reject names that are not valid shell variable names.
1463 case $ac_envvar in #(
1464 '' | [0-9]* | *[!_$as_cr_alnum]* )
1465 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1466 esac
1467 eval $ac_envvar=\$ac_optarg
1468 export $ac_envvar ;;
1471 # FIXME: should be removed in autoconf 3.0.
1472 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1473 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1474 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1475 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1478 esac
1479 done
1481 if test -n "$ac_prev"; then
1482 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1483 as_fn_error "missing argument to $ac_option"
1486 if test -n "$ac_unrecognized_opts"; then
1487 case $enable_option_checking in
1488 no) ;;
1489 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1490 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1491 esac
1494 # Check all directory arguments for consistency.
1495 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1496 datadir sysconfdir sharedstatedir localstatedir includedir \
1497 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1498 libdir localedir mandir
1500 eval ac_val=\$$ac_var
1501 # Remove trailing slashes.
1502 case $ac_val in
1503 */ )
1504 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1505 eval $ac_var=\$ac_val;;
1506 esac
1507 # Be sure to have absolute directory names.
1508 case $ac_val in
1509 [\\/$]* | ?:[\\/]* ) continue;;
1510 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1511 esac
1512 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1513 done
1515 # There might be people who depend on the old broken behavior: `$host'
1516 # used to hold the argument of --host etc.
1517 # FIXME: To remove some day.
1518 build=$build_alias
1519 host=$host_alias
1520 target=$target_alias
1522 # FIXME: To remove some day.
1523 if test "x$host_alias" != x; then
1524 if test "x$build_alias" = x; then
1525 cross_compiling=maybe
1526 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1527 If a cross compiler is detected then cross compile mode will be used." >&2
1528 elif test "x$build_alias" != "x$host_alias"; then
1529 cross_compiling=yes
1533 ac_tool_prefix=
1534 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1536 test "$silent" = yes && exec 6>/dev/null
1539 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1540 ac_ls_di=`ls -di .` &&
1541 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1542 as_fn_error "working directory cannot be determined"
1543 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1544 as_fn_error "pwd does not report name of working directory"
1547 # Find the source files, if location was not specified.
1548 if test -z "$srcdir"; then
1549 ac_srcdir_defaulted=yes
1550 # Try the directory containing this script, then the parent directory.
1551 ac_confdir=`$as_dirname -- "$as_myself" ||
1552 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1553 X"$as_myself" : 'X\(//\)[^/]' \| \
1554 X"$as_myself" : 'X\(//\)$' \| \
1555 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1556 $as_echo X"$as_myself" |
1557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1558 s//\1/
1561 /^X\(\/\/\)[^/].*/{
1562 s//\1/
1565 /^X\(\/\/\)$/{
1566 s//\1/
1569 /^X\(\/\).*/{
1570 s//\1/
1573 s/.*/./; q'`
1574 srcdir=$ac_confdir
1575 if test ! -r "$srcdir/$ac_unique_file"; then
1576 srcdir=..
1578 else
1579 ac_srcdir_defaulted=no
1581 if test ! -r "$srcdir/$ac_unique_file"; then
1582 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1583 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1585 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1586 ac_abs_confdir=`(
1587 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1588 pwd)`
1589 # When building in place, set srcdir=.
1590 if test "$ac_abs_confdir" = "$ac_pwd"; then
1591 srcdir=.
1593 # Remove unnecessary trailing slashes from srcdir.
1594 # Double slashes in file names in object file debugging info
1595 # mess up M-x gdb in Emacs.
1596 case $srcdir in
1597 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1598 esac
1599 for ac_var in $ac_precious_vars; do
1600 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1601 eval ac_env_${ac_var}_value=\$${ac_var}
1602 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1603 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1604 done
1607 # Report the --help message.
1609 if test "$ac_init_help" = "long"; then
1610 # Omit some internal or obsolete options to make the list less imposing.
1611 # This message is too long to be a string in the A/UX 3.1 sh.
1612 cat <<_ACEOF
1613 \`configure' configures this package to adapt to many kinds of systems.
1615 Usage: $0 [OPTION]... [VAR=VALUE]...
1617 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1618 VAR=VALUE. See below for descriptions of some of the useful variables.
1620 Defaults for the options are specified in brackets.
1622 Configuration:
1623 -h, --help display this help and exit
1624 --help=short display options specific to this package
1625 --help=recursive display the short help of all the included packages
1626 -V, --version display version information and exit
1627 -q, --quiet, --silent do not print \`checking...' messages
1628 --cache-file=FILE cache test results in FILE [disabled]
1629 -C, --config-cache alias for \`--cache-file=config.cache'
1630 -n, --no-create do not create output files
1631 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1633 Installation directories:
1634 --prefix=PREFIX install architecture-independent files in PREFIX
1635 [$ac_default_prefix]
1636 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1637 [PREFIX]
1639 By default, \`make install' will install all the files in
1640 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1641 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1642 for instance \`--prefix=\$HOME'.
1644 For better control, use the options below.
1646 Fine tuning of the installation directories:
1647 --bindir=DIR user executables [EPREFIX/bin]
1648 --sbindir=DIR system admin executables [EPREFIX/sbin]
1649 --libexecdir=DIR program executables [EPREFIX/libexec]
1650 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1651 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1652 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1653 --libdir=DIR object code libraries [EPREFIX/lib]
1654 --includedir=DIR C header files [PREFIX/include]
1655 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1656 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1657 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1658 --infodir=DIR info documentation [DATAROOTDIR/info]
1659 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1660 --mandir=DIR man documentation [DATAROOTDIR/man]
1661 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1662 --htmldir=DIR html documentation [DOCDIR]
1663 --dvidir=DIR dvi documentation [DOCDIR]
1664 --pdfdir=DIR pdf documentation [DOCDIR]
1665 --psdir=DIR ps documentation [DOCDIR]
1666 _ACEOF
1668 cat <<\_ACEOF
1670 Program names:
1671 --program-prefix=PREFIX prepend PREFIX to installed program names
1672 --program-suffix=SUFFIX append SUFFIX to installed program names
1673 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1675 System types:
1676 --build=BUILD configure for building on BUILD [guessed]
1677 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1678 --target=TARGET configure for building compilers for TARGET [HOST]
1679 _ACEOF
1682 if test -n "$ac_init_help"; then
1684 cat <<\_ACEOF
1686 Optional Features:
1687 --disable-option-checking ignore unrecognized --enable/--with options
1688 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1689 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1690 --enable-generated-files-in-srcdir
1691 put copies of generated files in source dir
1692 intended for creating source tarballs for users
1693 without texinfo bison or flex.
1694 --enable-werror-always enable -Werror despite compiler version
1695 --enable-checking=LIST
1696 enable expensive run-time checks. With LIST,
1697 enable only specific categories of checks.
1698 Categories are: yes,no,all,none,release.
1699 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1700 rtlflag,rtl,runtime,tree,valgrind,types.
1701 --enable-coverage=LEVEL
1702 enable compiler's code coverage collection.
1703 Use to measure compiler performance and locate
1704 unused parts of the compiler. With LEVEL, specify
1705 optimization. Values are opt, noopt,
1706 default is noopt
1707 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1708 --enable-build-with-cxx build with C++ compiler instead of C compiler
1709 --enable-multilib enable library support for multiple ABIs
1710 --enable-__cxa_atexit enable __cxa_atexit for C++
1711 --enable-decimal-float={no,yes,bid,dpd}
1712 enable decimal float extension to C. Selecting 'bid'
1713 or 'dpd' choses which decimal floating point format
1714 to use
1715 --enable-fixed-point enable fixed-point arithmetic extension to C
1716 --enable-threads enable thread usage for target GCC
1717 --enable-threads=LIB use LIB thread package for target GCC
1718 --enable-tls enable or disable generation of tls code
1719 overriding the assembler check for tls support
1720 --enable-objc-gc enable the use of Boehm's garbage collector with
1721 the GNU Objective-C runtime
1722 --disable-shared don't provide a shared libgcc
1723 --enable-intermodule build the compiler in one step
1724 --enable-languages=LIST specify which front-ends to build
1725 --disable-rpath do not hardcode runtime library paths
1726 --enable-initfini-array use .init_array/.fini_array sections
1727 --enable-sjlj-exceptions
1728 arrange to use setjmp/longjmp exception handling
1729 --enable-secureplt enable -msecure-plt by default for PowerPC
1730 --enable-cld enable -mcld by default for 32bit x86
1731 --disable-win32-registry
1732 disable lookup of installation paths in the
1733 Registry on Windows hosts
1734 --enable-win32-registry enable registry lookup (default)
1735 --enable-win32-registry=KEY
1736 use KEY instead of GCC version as the last portion
1737 of the registry key
1738 --enable-shared[=PKGS] build shared libraries [default=yes]
1739 --enable-static[=PKGS] build static libraries [default=yes]
1740 --enable-fast-install[=PKGS]
1741 optimize for fast installation [default=yes]
1742 --disable-libtool-lock avoid locking (might break parallel builds)
1743 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1744 glibc systems
1745 --enable-linker-build-id
1746 compiler will always pass --build-id to linker
1747 --enable-maintainer-mode
1748 enable make rules and dependencies not useful
1749 (and sometimes confusing) to the casual installer
1750 --enable-version-specific-runtime-libs
1751 specify that runtime libraries should be
1752 installed in a compiler-specific directory
1753 --enable-plugin enable plugin support
1755 Optional Packages:
1756 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1757 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1758 --with-build-libsubdir=DIR Directory where to find libraries for build system
1759 --with-local-prefix=DIR specifies directory to put local include
1760 --with-gxx-include-dir=DIR
1761 specifies directory to put g++ header files
1762 --with-cpp-install-dir=DIR
1763 install the user visible C preprocessor in DIR
1764 (relative to PREFIX) as well as PREFIX/bin
1765 --with-gnu-ld arrange to work with GNU ld.
1766 --with-ld arrange to use the specified ld (full pathname)
1767 --with-demangler-in-ld try to use demangler in GNU ld.
1768 --with-gnu-as arrange to work with GNU as
1769 --with-as arrange to use the specified as (full pathname)
1770 --with-stabs arrange to use stabs instead of host debug format
1771 --with-dwarf2 force the default debug format to be DWARF 2
1772 --with-build-sysroot=sysroot
1773 use sysroot as the system root during the build
1774 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1775 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1776 --with-bugurl=URL Direct users to URL to report a bug
1777 --with-multilib-list Select multilibs (SH only)
1778 --with-gnu-ld assume the C compiler uses GNU ld default=no
1779 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1780 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1781 --with-system-libunwind use installed libunwind
1782 --with-pic try to use only PIC/non-PIC objects [default=use
1783 both]
1784 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1785 --with-plugin-ld=[ARG] specify the plugin linker
1786 --with-long-double-128 Use 128-bit long double by default.
1787 --with-gc={page,zone} choose the garbage collection mechanism to use
1788 with the compiler
1789 --with-system-zlib use installed libz
1790 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1792 Some influential environment variables:
1793 CC C compiler command
1794 CFLAGS C compiler flags
1795 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1796 nonstandard directory <lib dir>
1797 LIBS libraries to pass to the linker, e.g. -l<library>
1798 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1799 you have headers in a nonstandard directory <include dir>
1800 CXX C++ compiler command
1801 CXXFLAGS C++ compiler flags
1802 CPP C preprocessor
1803 CXXCPP C++ preprocessor
1804 GMPLIBS How to link GMP
1805 GMPINC How to find GMP include files
1806 PPLLIBS How to link PPL
1807 PPLINC How to find PPL include files
1808 CLOOGLIBS How to link CLOOG
1809 CLOOGINC How to find CLOOG include files
1810 LIBELFLIBS How to link libelf
1811 LIBELFINC How to find libelf include files
1813 Use these variables to override the choices made by `configure' or to help
1814 it to find libraries and programs with nonstandard names/locations.
1816 Report bugs to the package provider.
1817 _ACEOF
1818 ac_status=$?
1821 if test "$ac_init_help" = "recursive"; then
1822 # If there are subdirs, report their specific --help.
1823 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1824 test -d "$ac_dir" ||
1825 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1826 continue
1827 ac_builddir=.
1829 case "$ac_dir" in
1830 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1832 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1833 # A ".." for each directory in $ac_dir_suffix.
1834 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1835 case $ac_top_builddir_sub in
1836 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1837 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1838 esac ;;
1839 esac
1840 ac_abs_top_builddir=$ac_pwd
1841 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1842 # for backward compatibility:
1843 ac_top_builddir=$ac_top_build_prefix
1845 case $srcdir in
1846 .) # We are building in place.
1847 ac_srcdir=.
1848 ac_top_srcdir=$ac_top_builddir_sub
1849 ac_abs_top_srcdir=$ac_pwd ;;
1850 [\\/]* | ?:[\\/]* ) # Absolute name.
1851 ac_srcdir=$srcdir$ac_dir_suffix;
1852 ac_top_srcdir=$srcdir
1853 ac_abs_top_srcdir=$srcdir ;;
1854 *) # Relative name.
1855 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1856 ac_top_srcdir=$ac_top_build_prefix$srcdir
1857 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1858 esac
1859 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1861 cd "$ac_dir" || { ac_status=$?; continue; }
1862 # Check for guested configure.
1863 if test -f "$ac_srcdir/configure.gnu"; then
1864 echo &&
1865 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1866 elif test -f "$ac_srcdir/configure"; then
1867 echo &&
1868 $SHELL "$ac_srcdir/configure" --help=recursive
1869 else
1870 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1871 fi || ac_status=$?
1872 cd "$ac_pwd" || { ac_status=$?; break; }
1873 done
1876 test -n "$ac_init_help" && exit $ac_status
1877 if $ac_init_version; then
1878 cat <<\_ACEOF
1879 configure
1880 generated by GNU Autoconf 2.64
1882 Copyright (C) 2009 Free Software Foundation, Inc.
1883 This configure script is free software; the Free Software Foundation
1884 gives unlimited permission to copy, distribute and modify it.
1885 _ACEOF
1886 exit
1889 ## ------------------------ ##
1890 ## Autoconf initialization. ##
1891 ## ------------------------ ##
1893 # ac_fn_c_try_compile LINENO
1894 # --------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_c_try_compile ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext
1900 if { { ac_try="$ac_compile"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_c_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1924 ac_retval=1
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927 return $ac_retval
1929 } # ac_fn_c_try_compile
1931 # ac_fn_cxx_try_compile LINENO
1932 # ----------------------------
1933 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_compile ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 rm -f conftest.$ac_objext
1938 if { { ac_try="$ac_compile"
1939 case "(($ac_try" in
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_compile") 2>conftest.err
1946 ac_status=$?
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && {
1954 test -z "$ac_cxx_werror_flag" ||
1955 test ! -s conftest.err
1956 } && test -s conftest.$ac_objext; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1962 ac_retval=1
1964 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1965 return $ac_retval
1967 } # ac_fn_cxx_try_compile
1969 # ac_fn_c_try_cpp LINENO
1970 # ----------------------
1971 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1972 ac_fn_c_try_cpp ()
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 if { { ac_try="$ac_cpp conftest.$ac_ext"
1976 case "(($ac_try" in
1977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978 *) ac_try_echo=$ac_try;;
1979 esac
1980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1981 $as_echo "$ac_try_echo"; } >&5
1982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1983 ac_status=$?
1984 if test -s conftest.err; then
1985 grep -v '^ *+' conftest.err >conftest.er1
1986 cat conftest.er1 >&5
1987 mv -f conftest.er1 conftest.err
1989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1990 test $ac_status = 0; } >/dev/null && {
1991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1992 test ! -s conftest.err
1993 }; then :
1994 ac_retval=0
1995 else
1996 $as_echo "$as_me: failed program was:" >&5
1997 sed 's/^/| /' conftest.$ac_ext >&5
1999 ac_retval=1
2001 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2002 return $ac_retval
2004 } # ac_fn_c_try_cpp
2006 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2009 # the include files in INCLUDES and setting the cache variable VAR
2010 # accordingly.
2011 ac_fn_c_check_header_mongrel ()
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2018 $as_echo_n "(cached) " >&6
2020 eval ac_res=\$$3
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 else
2024 # Is the header compilable?
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2026 $as_echo_n "checking $2 usability... " >&6; }
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2030 #include <$2>
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033 ac_header_compiler=yes
2034 else
2035 ac_header_compiler=no
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2039 $as_echo "$ac_header_compiler" >&6; }
2041 # Is the header present?
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2043 $as_echo_n "checking $2 presence... " >&6; }
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2046 #include <$2>
2047 _ACEOF
2048 if ac_fn_c_try_cpp "$LINENO"; then :
2049 ac_header_preproc=yes
2050 else
2051 ac_header_preproc=no
2053 rm -f conftest.err conftest.$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2055 $as_echo "$ac_header_preproc" >&6; }
2057 # So? What about this header?
2058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2059 yes:no: )
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2061 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2063 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2065 no:yes:* )
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2067 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2069 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2071 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2073 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2075 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2077 esac
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079 $as_echo_n "checking for $2... " >&6; }
2080 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081 $as_echo_n "(cached) " >&6
2082 else
2083 eval "$3=\$ac_header_compiler"
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2091 } # ac_fn_c_check_header_mongrel
2093 # ac_fn_c_try_run LINENO
2094 # ----------------------
2095 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2096 # that executables *can* be run.
2097 ac_fn_c_try_run ()
2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2100 if { { ac_try="$ac_link"
2101 case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104 esac
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107 (eval "$ac_link") 2>&5
2108 ac_status=$?
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2111 { { case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114 esac
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_try") 2>&5
2118 ac_status=$?
2119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; }; }; then :
2121 ac_retval=0
2122 else
2123 $as_echo "$as_me: program exited with status $ac_status" >&5
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2127 ac_retval=$ac_status
2129 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2131 return $ac_retval
2133 } # ac_fn_c_try_run
2135 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2136 # -------------------------------------------------------
2137 # Tests whether HEADER exists and can be compiled using the include files in
2138 # INCLUDES, setting the cache variable VAR accordingly.
2139 ac_fn_c_check_header_compile ()
2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143 $as_echo_n "checking for $2... " >&6; }
2144 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2145 $as_echo_n "(cached) " >&6
2146 else
2147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h. */
2150 #include <$2>
2151 _ACEOF
2152 if ac_fn_c_try_compile "$LINENO"; then :
2153 eval "$3=yes"
2154 else
2155 eval "$3=no"
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 eval ac_res=\$$3
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2161 $as_echo "$ac_res" >&6; }
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2164 } # ac_fn_c_check_header_compile
2166 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2167 # --------------------------------------------
2168 # Tries to find the compile-time value of EXPR in a program that includes
2169 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2170 # computed
2171 ac_fn_c_compute_int ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 if test "$cross_compiling" = yes; then
2175 # Depending upon the size, compute the lo and hi bounds.
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2180 main ()
2182 static int test_array [1 - 2 * !(($2) >= 0)];
2183 test_array [0] = 0
2186 return 0;
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190 ac_lo=0 ac_mid=0
2191 while :; do
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193 /* end confdefs.h. */
2196 main ()
2198 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2199 test_array [0] = 0
2202 return 0;
2204 _ACEOF
2205 if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_hi=$ac_mid; break
2207 else
2208 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2209 if test $ac_lo -le $ac_mid; then
2210 ac_lo= ac_hi=
2211 break
2213 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 done
2217 else
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219 /* end confdefs.h. */
2222 main ()
2224 static int test_array [1 - 2 * !(($2) < 0)];
2225 test_array [0] = 0
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232 ac_hi=-1 ac_mid=-1
2233 while :; do
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235 /* end confdefs.h. */
2238 main ()
2240 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2241 test_array [0] = 0
2244 return 0;
2246 _ACEOF
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248 ac_lo=$ac_mid; break
2249 else
2250 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2251 if test $ac_mid -le $ac_hi; then
2252 ac_lo= ac_hi=
2253 break
2255 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 done
2259 else
2260 ac_lo= ac_hi=
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 # Binary search between lo and hi bounds.
2266 while test "x$ac_lo" != "x$ac_hi"; do
2267 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2272 main ()
2274 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2275 test_array [0] = 0
2278 return 0;
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"; then :
2282 ac_hi=$ac_mid
2283 else
2284 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 done
2288 case $ac_lo in #((
2289 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2290 '') ac_retval=1 ;;
2291 esac
2292 else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2296 static long int longval () { return $2; }
2297 static unsigned long int ulongval () { return $2; }
2298 #include <stdio.h>
2299 #include <stdlib.h>
2301 main ()
2304 FILE *f = fopen ("conftest.val", "w");
2305 if (! f)
2306 return 1;
2307 if (($2) < 0)
2309 long int i = longval ();
2310 if (i != ($2))
2311 return 1;
2312 fprintf (f, "%ld", i);
2314 else
2316 unsigned long int i = ulongval ();
2317 if (i != ($2))
2318 return 1;
2319 fprintf (f, "%lu", i);
2321 /* Do not output a trailing newline, as this causes \r\n confusion
2322 on some platforms. */
2323 return ferror (f) || fclose (f) != 0;
2326 return 0;
2328 _ACEOF
2329 if ac_fn_c_try_run "$LINENO"; then :
2330 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2331 else
2332 ac_retval=1
2334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2335 conftest.$ac_objext conftest.beam conftest.$ac_ext
2336 rm -f conftest.val
2339 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2340 return $ac_retval
2342 } # ac_fn_c_compute_int
2344 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2345 # -------------------------------------------
2346 # Tests whether TYPE exists after having included INCLUDES, setting cache
2347 # variable VAR accordingly.
2348 ac_fn_c_check_type ()
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2352 $as_echo_n "checking for $2... " >&6; }
2353 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2354 $as_echo_n "(cached) " >&6
2355 else
2356 eval "$3=no"
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2361 main ()
2363 if (sizeof ($2))
2364 return 0;
2366 return 0;
2368 _ACEOF
2369 if ac_fn_c_try_compile "$LINENO"; then :
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h. */
2374 main ()
2376 if (sizeof (($2)))
2377 return 0;
2379 return 0;
2381 _ACEOF
2382 if ac_fn_c_try_compile "$LINENO"; then :
2384 else
2385 eval "$3=yes"
2387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 eval ac_res=\$$3
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2393 $as_echo "$ac_res" >&6; }
2394 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396 } # ac_fn_c_check_type
2398 # ac_fn_c_find_intX_t LINENO BITS VAR
2399 # -----------------------------------
2400 # Finds a signed integer type with width BITS, setting cache variable VAR
2401 # accordingly.
2402 ac_fn_c_find_intX_t ()
2404 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2406 $as_echo_n "checking for int$2_t... " >&6; }
2407 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2408 $as_echo_n "(cached) " >&6
2409 else
2410 eval "$3=no"
2411 for ac_type in int$2_t 'int' 'long int' \
2412 'long long int' 'short int' 'signed char'; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $ac_includes_default
2417 main ()
2419 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2420 test_array [0] = 0
2423 return 0;
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2429 $ac_includes_default
2431 main ()
2433 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2434 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2435 test_array [0] = 0
2438 return 0;
2440 _ACEOF
2441 if ac_fn_c_try_compile "$LINENO"; then :
2443 else
2444 case $ac_type in #(
2445 int$2_t) :
2446 eval "$3=yes" ;; #(
2447 *) :
2448 eval "$3=\$ac_type" ;;
2449 esac
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 eval as_val=\$$3
2455 if test "x$as_val" = x""no; then :
2457 else
2458 break
2460 done
2462 eval ac_res=\$$3
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464 $as_echo "$ac_res" >&6; }
2465 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 } # ac_fn_c_find_intX_t
2469 # ac_fn_c_try_link LINENO
2470 # -----------------------
2471 # Try to link conftest.$ac_ext, and return whether this succeeded.
2472 ac_fn_c_try_link ()
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 rm -f conftest.$ac_objext conftest$ac_exeext
2476 if { { ac_try="$ac_link"
2477 case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482 $as_echo "$ac_try_echo"; } >&5
2483 (eval "$ac_link") 2>conftest.err
2484 ac_status=$?
2485 if test -s conftest.err; then
2486 grep -v '^ *+' conftest.err >conftest.er1
2487 cat conftest.er1 >&5
2488 mv -f conftest.er1 conftest.err
2490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491 test $ac_status = 0; } && {
2492 test -z "$ac_c_werror_flag" ||
2493 test ! -s conftest.err
2494 } && test -s conftest$ac_exeext && {
2495 test "$cross_compiling" = yes ||
2496 $as_test_x conftest$ac_exeext
2497 }; then :
2498 ac_retval=0
2499 else
2500 $as_echo "$as_me: failed program was:" >&5
2501 sed 's/^/| /' conftest.$ac_ext >&5
2503 ac_retval=1
2505 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2506 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2507 # interfere with the next link command; also delete a directory that is
2508 # left behind by Apple's compiler. We do this before executing the actions.
2509 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2511 return $ac_retval
2513 } # ac_fn_c_try_link
2515 # ac_fn_c_find_uintX_t LINENO BITS VAR
2516 # ------------------------------------
2517 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2518 # accordingly.
2519 ac_fn_c_find_uintX_t ()
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2523 $as_echo_n "checking for uint$2_t... " >&6; }
2524 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 eval "$3=no"
2528 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2529 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2531 /* end confdefs.h. */
2532 $ac_includes_default
2534 main ()
2536 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2537 test_array [0] = 0
2540 return 0;
2542 _ACEOF
2543 if ac_fn_c_try_compile "$LINENO"; then :
2544 case $ac_type in #(
2545 uint$2_t) :
2546 eval "$3=yes" ;; #(
2547 *) :
2548 eval "$3=\$ac_type" ;;
2549 esac
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 eval as_val=\$$3
2553 if test "x$as_val" = x""no; then :
2555 else
2556 break
2558 done
2560 eval ac_res=\$$3
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2562 $as_echo "$ac_res" >&6; }
2563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2565 } # ac_fn_c_find_uintX_t
2567 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2568 # ----------------------------------------------
2569 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2570 ac_fn_c_check_header_preproc ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2574 $as_echo_n "checking for $2... " >&6; }
2575 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2576 $as_echo_n "(cached) " >&6
2577 else
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579 /* end confdefs.h. */
2580 #include <$2>
2581 _ACEOF
2582 if ac_fn_c_try_cpp "$LINENO"; then :
2583 eval "$3=yes"
2584 else
2585 eval "$3=no"
2587 rm -f conftest.err conftest.$ac_ext
2589 eval ac_res=\$$3
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2591 $as_echo "$ac_res" >&6; }
2592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2594 } # ac_fn_c_check_header_preproc
2596 # ac_fn_c_check_func LINENO FUNC VAR
2597 # ----------------------------------
2598 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2599 ac_fn_c_check_func ()
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2611 #define $2 innocuous_$2
2613 /* System header to define __stub macros and hopefully few prototypes,
2614 which can conflict with char $2 (); below.
2615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2616 <limits.h> exists even on freestanding compilers. */
2618 #ifdef __STDC__
2619 # include <limits.h>
2620 #else
2621 # include <assert.h>
2622 #endif
2624 #undef $2
2626 /* Override any GCC internal prototype to avoid an error.
2627 Use char because int might match the return type of a GCC
2628 builtin and then its argument prototype would still apply. */
2629 #ifdef __cplusplus
2630 extern "C"
2631 #endif
2632 char $2 ();
2633 /* The GNU C library defines this for functions which it implements
2634 to always fail with ENOSYS. Some functions are actually named
2635 something starting with __ and the normal name is an alias. */
2636 #if defined __stub_$2 || defined __stub___$2
2637 choke me
2638 #endif
2641 main ()
2643 return $2 ();
2645 return 0;
2647 _ACEOF
2648 if ac_fn_c_try_link "$LINENO"; then :
2649 eval "$3=yes"
2650 else
2651 eval "$3=no"
2653 rm -f core conftest.err conftest.$ac_objext \
2654 conftest$ac_exeext conftest.$ac_ext
2656 eval ac_res=\$$3
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2658 $as_echo "$ac_res" >&6; }
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661 } # ac_fn_c_check_func
2663 # ac_fn_cxx_try_cpp LINENO
2664 # ------------------------
2665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2666 ac_fn_cxx_try_cpp ()
2668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2669 if { { ac_try="$ac_cpp conftest.$ac_ext"
2670 case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673 esac
2674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2675 $as_echo "$ac_try_echo"; } >&5
2676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2677 ac_status=$?
2678 if test -s conftest.err; then
2679 grep -v '^ *+' conftest.err >conftest.er1
2680 cat conftest.er1 >&5
2681 mv -f conftest.er1 conftest.err
2683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684 test $ac_status = 0; } >/dev/null && {
2685 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2686 test ! -s conftest.err
2687 }; then :
2688 ac_retval=0
2689 else
2690 $as_echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2693 ac_retval=1
2695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2696 return $ac_retval
2698 } # ac_fn_cxx_try_cpp
2700 # ac_fn_cxx_try_link LINENO
2701 # -------------------------
2702 # Try to link conftest.$ac_ext, and return whether this succeeded.
2703 ac_fn_cxx_try_link ()
2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { { ac_try="$ac_link"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2713 $as_echo "$ac_try_echo"; } >&5
2714 (eval "$ac_link") 2>conftest.err
2715 ac_status=$?
2716 if test -s conftest.err; then
2717 grep -v '^ *+' conftest.err >conftest.er1
2718 cat conftest.er1 >&5
2719 mv -f conftest.er1 conftest.err
2721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2722 test $ac_status = 0; } && {
2723 test -z "$ac_cxx_werror_flag" ||
2724 test ! -s conftest.err
2725 } && test -s conftest$ac_exeext && {
2726 test "$cross_compiling" = yes ||
2727 $as_test_x conftest$ac_exeext
2728 }; then :
2729 ac_retval=0
2730 else
2731 $as_echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2734 ac_retval=1
2736 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2737 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2738 # interfere with the next link command; also delete a directory that is
2739 # left behind by Apple's compiler. We do this before executing the actions.
2740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2741 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2742 return $ac_retval
2744 } # ac_fn_cxx_try_link
2745 cat >config.log <<_ACEOF
2746 This file contains any messages produced by compilers while
2747 running configure, to aid debugging if configure makes a mistake.
2749 It was created by $as_me, which was
2750 generated by GNU Autoconf 2.64. Invocation command line was
2752 $ $0 $@
2754 _ACEOF
2755 exec 5>>config.log
2757 cat <<_ASUNAME
2758 ## --------- ##
2759 ## Platform. ##
2760 ## --------- ##
2762 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2763 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2764 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2765 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2766 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2768 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2769 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2771 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2772 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2773 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2774 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2775 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2776 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2777 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2779 _ASUNAME
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2784 IFS=$as_save_IFS
2785 test -z "$as_dir" && as_dir=.
2786 $as_echo "PATH: $as_dir"
2787 done
2788 IFS=$as_save_IFS
2790 } >&5
2792 cat >&5 <<_ACEOF
2795 ## ----------- ##
2796 ## Core tests. ##
2797 ## ----------- ##
2799 _ACEOF
2802 # Keep a trace of the command line.
2803 # Strip out --no-create and --no-recursion so they do not pile up.
2804 # Strip out --silent because we don't want to record it for future runs.
2805 # Also quote any args containing shell meta-characters.
2806 # Make two passes to allow for proper duplicate-argument suppression.
2807 ac_configure_args=
2808 ac_configure_args0=
2809 ac_configure_args1=
2810 ac_must_keep_next=false
2811 for ac_pass in 1 2
2813 for ac_arg
2815 case $ac_arg in
2816 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2817 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2818 | -silent | --silent | --silen | --sile | --sil)
2819 continue ;;
2820 *\'*)
2821 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2822 esac
2823 case $ac_pass in
2824 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2826 as_fn_append ac_configure_args1 " '$ac_arg'"
2827 if test $ac_must_keep_next = true; then
2828 ac_must_keep_next=false # Got value, back to normal.
2829 else
2830 case $ac_arg in
2831 *=* | --config-cache | -C | -disable-* | --disable-* \
2832 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2833 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2834 | -with-* | --with-* | -without-* | --without-* | --x)
2835 case "$ac_configure_args0 " in
2836 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2837 esac
2839 -* ) ac_must_keep_next=true ;;
2840 esac
2842 as_fn_append ac_configure_args " '$ac_arg'"
2844 esac
2845 done
2846 done
2847 { ac_configure_args0=; unset ac_configure_args0;}
2848 { ac_configure_args1=; unset ac_configure_args1;}
2850 # When interrupted or exit'd, cleanup temporary files, and complete
2851 # config.log. We remove comments because anyway the quotes in there
2852 # would cause problems or look ugly.
2853 # WARNING: Use '\'' to represent an apostrophe within the trap.
2854 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2855 trap 'exit_status=$?
2856 # Save into config.log some information that might help in debugging.
2858 echo
2860 cat <<\_ASBOX
2861 ## ---------------- ##
2862 ## Cache variables. ##
2863 ## ---------------- ##
2864 _ASBOX
2865 echo
2866 # The following way of writing the cache mishandles newlines in values,
2868 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2869 eval ac_val=\$$ac_var
2870 case $ac_val in #(
2871 *${as_nl}*)
2872 case $ac_var in #(
2873 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2875 esac
2876 case $ac_var in #(
2877 _ | IFS | as_nl) ;; #(
2878 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2879 *) { eval $ac_var=; unset $ac_var;} ;;
2880 esac ;;
2881 esac
2882 done
2883 (set) 2>&1 |
2884 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2885 *${as_nl}ac_space=\ *)
2886 sed -n \
2887 "s/'\''/'\''\\\\'\'''\''/g;
2888 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2889 ;; #(
2891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2893 esac |
2894 sort
2896 echo
2898 cat <<\_ASBOX
2899 ## ----------------- ##
2900 ## Output variables. ##
2901 ## ----------------- ##
2902 _ASBOX
2903 echo
2904 for ac_var in $ac_subst_vars
2906 eval ac_val=\$$ac_var
2907 case $ac_val in
2908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2909 esac
2910 $as_echo "$ac_var='\''$ac_val'\''"
2911 done | sort
2912 echo
2914 if test -n "$ac_subst_files"; then
2915 cat <<\_ASBOX
2916 ## ------------------- ##
2917 ## File substitutions. ##
2918 ## ------------------- ##
2919 _ASBOX
2920 echo
2921 for ac_var in $ac_subst_files
2923 eval ac_val=\$$ac_var
2924 case $ac_val in
2925 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2926 esac
2927 $as_echo "$ac_var='\''$ac_val'\''"
2928 done | sort
2929 echo
2932 if test -s confdefs.h; then
2933 cat <<\_ASBOX
2934 ## ----------- ##
2935 ## confdefs.h. ##
2936 ## ----------- ##
2937 _ASBOX
2938 echo
2939 cat confdefs.h
2940 echo
2942 test "$ac_signal" != 0 &&
2943 $as_echo "$as_me: caught signal $ac_signal"
2944 $as_echo "$as_me: exit $exit_status"
2945 } >&5
2946 rm -f core *.core core.conftest.* &&
2947 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2948 exit $exit_status
2950 for ac_signal in 1 2 13 15; do
2951 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2952 done
2953 ac_signal=0
2955 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2956 rm -f -r conftest* confdefs.h
2958 $as_echo "/* confdefs.h */" > confdefs.h
2960 # Predefined preprocessor variables.
2962 cat >>confdefs.h <<_ACEOF
2963 #define PACKAGE_NAME "$PACKAGE_NAME"
2964 _ACEOF
2966 cat >>confdefs.h <<_ACEOF
2967 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2968 _ACEOF
2970 cat >>confdefs.h <<_ACEOF
2971 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2972 _ACEOF
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE_STRING "$PACKAGE_STRING"
2976 _ACEOF
2978 cat >>confdefs.h <<_ACEOF
2979 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2980 _ACEOF
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE_URL "$PACKAGE_URL"
2984 _ACEOF
2987 # Let the site file select an alternate cache file if it wants to.
2988 # Prefer an explicitly selected file to automatically selected ones.
2989 ac_site_file1=NONE
2990 ac_site_file2=NONE
2991 if test -n "$CONFIG_SITE"; then
2992 ac_site_file1=$CONFIG_SITE
2993 elif test "x$prefix" != xNONE; then
2994 ac_site_file1=$prefix/share/config.site
2995 ac_site_file2=$prefix/etc/config.site
2996 else
2997 ac_site_file1=$ac_default_prefix/share/config.site
2998 ac_site_file2=$ac_default_prefix/etc/config.site
3000 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3002 test "x$ac_site_file" = xNONE && continue
3003 if test -r "$ac_site_file"; then
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3005 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3006 sed 's/^/| /' "$ac_site_file" >&5
3007 . "$ac_site_file"
3009 done
3011 if test -r "$cache_file"; then
3012 # Some versions of bash will fail to source /dev/null (special
3013 # files actually), so we avoid doing that.
3014 if test -f "$cache_file"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3016 $as_echo "$as_me: loading cache $cache_file" >&6;}
3017 case $cache_file in
3018 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3019 *) . "./$cache_file";;
3020 esac
3022 else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3024 $as_echo "$as_me: creating cache $cache_file" >&6;}
3025 >$cache_file
3028 # Check that the precious variables saved in the cache have kept the same
3029 # value.
3030 ac_cache_corrupted=false
3031 for ac_var in $ac_precious_vars; do
3032 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3033 eval ac_new_set=\$ac_env_${ac_var}_set
3034 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3035 eval ac_new_val=\$ac_env_${ac_var}_value
3036 case $ac_old_set,$ac_new_set in
3037 set,)
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3039 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3040 ac_cache_corrupted=: ;;
3041 ,set)
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3043 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3044 ac_cache_corrupted=: ;;
3045 ,);;
3047 if test "x$ac_old_val" != "x$ac_new_val"; then
3048 # differences in whitespace do not lead to failure.
3049 ac_old_val_w=`echo x $ac_old_val`
3050 ac_new_val_w=`echo x $ac_new_val`
3051 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3053 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3054 ac_cache_corrupted=:
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3057 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3058 eval $ac_var=\$ac_old_val
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3061 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3063 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3064 fi;;
3065 esac
3066 # Pass precious variables to config.status.
3067 if test "$ac_new_set" = set; then
3068 case $ac_new_val in
3069 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3070 *) ac_arg=$ac_var=$ac_new_val ;;
3071 esac
3072 case " $ac_configure_args " in
3073 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3074 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3075 esac
3077 done
3078 if $ac_cache_corrupted; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3082 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3083 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3085 ## -------------------- ##
3086 ## Main body of script. ##
3087 ## -------------------- ##
3089 ac_ext=c
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3103 gcc_version=`cat $srcdir/BASE-VER`
3105 # Determine the host, build, and target systems
3106 ac_aux_dir=
3107 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3108 for ac_t in install-sh install.sh shtool; do
3109 if test -f "$ac_dir/$ac_t"; then
3110 ac_aux_dir=$ac_dir
3111 ac_install_sh="$ac_aux_dir/$ac_t -c"
3112 break 2
3114 done
3115 done
3116 if test -z "$ac_aux_dir"; then
3117 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3120 # These three variables are undocumented and unsupported,
3121 # and are intended to be withdrawn in a future Autoconf release.
3122 # They can cause serious problems if a builder's source tree is in a directory
3123 # whose full name contains unusual characters.
3124 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3125 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3126 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3129 # Make sure we can run config.sub.
3130 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3131 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3134 $as_echo_n "checking build system type... " >&6; }
3135 if test "${ac_cv_build+set}" = set; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 ac_build_alias=$build_alias
3139 test "x$ac_build_alias" = x &&
3140 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3141 test "x$ac_build_alias" = x &&
3142 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3143 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3144 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3148 $as_echo "$ac_cv_build" >&6; }
3149 case $ac_cv_build in
3150 *-*-*) ;;
3151 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3152 esac
3153 build=$ac_cv_build
3154 ac_save_IFS=$IFS; IFS='-'
3155 set x $ac_cv_build
3156 shift
3157 build_cpu=$1
3158 build_vendor=$2
3159 shift; shift
3160 # Remember, the first character of IFS is used to create $*,
3161 # except with old shells:
3162 build_os=$*
3163 IFS=$ac_save_IFS
3164 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3168 $as_echo_n "checking host system type... " >&6; }
3169 if test "${ac_cv_host+set}" = set; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 if test "x$host_alias" = x; then
3173 ac_cv_host=$ac_cv_build
3174 else
3175 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3176 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3181 $as_echo "$ac_cv_host" >&6; }
3182 case $ac_cv_host in
3183 *-*-*) ;;
3184 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3185 esac
3186 host=$ac_cv_host
3187 ac_save_IFS=$IFS; IFS='-'
3188 set x $ac_cv_host
3189 shift
3190 host_cpu=$1
3191 host_vendor=$2
3192 shift; shift
3193 # Remember, the first character of IFS is used to create $*,
3194 # except with old shells:
3195 host_os=$*
3196 IFS=$ac_save_IFS
3197 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3201 $as_echo_n "checking target system type... " >&6; }
3202 if test "${ac_cv_target+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test "x$target_alias" = x; then
3206 ac_cv_target=$ac_cv_host
3207 else
3208 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3209 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3214 $as_echo "$ac_cv_target" >&6; }
3215 case $ac_cv_target in
3216 *-*-*) ;;
3217 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3218 esac
3219 target=$ac_cv_target
3220 ac_save_IFS=$IFS; IFS='-'
3221 set x $ac_cv_target
3222 shift
3223 target_cpu=$1
3224 target_vendor=$2
3225 shift; shift
3226 # Remember, the first character of IFS is used to create $*,
3227 # except with old shells:
3228 target_os=$*
3229 IFS=$ac_save_IFS
3230 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3233 # The aliases save the names the user supplied, while $host etc.
3234 # will get canonicalized.
3235 test -n "$target_alias" &&
3236 test "$program_prefix$program_suffix$program_transform_name" = \
3237 NONENONEs,x,x, &&
3238 program_prefix=${target_alias}-
3240 # Determine the noncanonical target name, for directory use.
3241 case ${build_alias} in
3242 "") build_noncanonical=${build} ;;
3243 *) build_noncanonical=${build_alias} ;;
3244 esac
3246 case ${host_alias} in
3247 "") host_noncanonical=${build_noncanonical} ;;
3248 *) host_noncanonical=${host_alias} ;;
3249 esac
3251 case ${target_alias} in
3252 "") target_noncanonical=${host_noncanonical} ;;
3253 *) target_noncanonical=${target_alias} ;;
3254 esac
3259 # Determine the target- and build-specific subdirectories
3261 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3262 # have matching libraries, they should use host libraries: Makefile.tpl
3263 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3264 # However, they still use the build modules, because the corresponding
3265 # host modules (e.g. bison) are only built for the host when bootstrap
3266 # finishes. So:
3267 # - build_subdir is where we find build modules, and never changes.
3268 # - build_libsubdir is where we find build libraries, and can be overridden.
3270 # Prefix 'build-' so this never conflicts with target_subdir.
3271 build_subdir="build-${build_noncanonical}"
3273 # Check whether --with-build-libsubdir was given.
3274 if test "${with_build_libsubdir+set}" = set; then :
3275 withval=$with_build_libsubdir; build_libsubdir="$withval"
3276 else
3277 build_libsubdir="$build_subdir"
3280 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3281 if ( test $srcdir = . && test -d gcc ) \
3282 || test -d $srcdir/../host-${host_noncanonical}; then
3283 host_subdir="host-${host_noncanonical}"
3284 else
3285 host_subdir=.
3287 # No prefix.
3288 target_subdir=${target_noncanonical}
3291 # Set program_transform_name
3292 test "$program_prefix" != NONE &&
3293 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3294 # Use a double $ so make ignores it.
3295 test "$program_suffix" != NONE &&
3296 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3297 # Double any \ or $.
3298 # By default was `s,x,x', remove it if useless.
3299 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3300 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3303 # Check for bogus environment variables.
3304 # Test if LIBRARY_PATH contains the notation for the current directory
3305 # since this would lead to problems installing/building glibc.
3306 # LIBRARY_PATH contains the current directory if one of the following
3307 # is true:
3308 # - one of the terminals (":" and ";") is the first or last sign
3309 # - two terminals occur directly after each other
3310 # - the path contains an element with a dot in it
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3312 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3313 case ${LIBRARY_PATH} in
3314 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3315 library_path_setting="contains current directory"
3318 library_path_setting="ok"
3320 esac
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3322 $as_echo "$library_path_setting" >&6; }
3323 if test "$library_path_setting" != "ok"; then
3324 as_fn_error "
3325 *** LIBRARY_PATH shouldn't contain the current directory when
3326 *** building gcc. Please change the environment variable
3327 *** and run configure again." "$LINENO" 5
3330 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3331 # since this would lead to problems installing/building glibc.
3332 # GCC_EXEC_PREFIX contains the current directory if one of the following
3333 # is true:
3334 # - one of the terminals (":" and ";") is the first or last sign
3335 # - two terminals occur directly after each other
3336 # - the path contains an element with a dot in it
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3338 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3339 case ${GCC_EXEC_PREFIX} in
3340 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3341 gcc_exec_prefix_setting="contains current directory"
3344 gcc_exec_prefix_setting="ok"
3346 esac
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3348 $as_echo "$gcc_exec_prefix_setting" >&6; }
3349 if test "$gcc_exec_prefix_setting" != "ok"; then
3350 as_fn_error "
3351 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3352 *** building gcc. Please change the environment variable
3353 *** and run configure again." "$LINENO" 5
3356 # -----------
3357 # Directories
3358 # -----------
3360 # Specify the local prefix
3361 local_prefix=
3363 # Check whether --with-local-prefix was given.
3364 if test "${with_local_prefix+set}" = set; then :
3365 withval=$with_local_prefix; case "${withval}" in
3366 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3367 no) ;;
3368 *) local_prefix=$with_local_prefix ;;
3369 esac
3373 # Default local prefix if it is empty
3374 if test x$local_prefix = x; then
3375 local_prefix=/usr/local
3378 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3379 # passed in by the toplevel make and thus we'd get different behavior
3380 # depending on where we built the sources.
3381 gcc_gxx_include_dir=
3382 # Specify the g++ header file directory
3384 # Check whether --with-gxx-include-dir was given.
3385 if test "${with_gxx_include_dir+set}" = set; then :
3386 withval=$with_gxx_include_dir; case "${withval}" in
3387 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3388 no) ;;
3389 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3390 esac
3394 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3395 if test x${gcc_gxx_include_dir} = x; then
3396 if test x${enable_version_specific_runtime_libs} = xyes; then
3397 gcc_gxx_include_dir='${libsubdir}/include/c++'
3398 else
3399 libstdcxx_incdir='include/c++/$(version)'
3400 if test x$host != x$target; then
3401 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3403 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3408 # Check whether --with-cpp_install_dir was given.
3409 if test "${with_cpp_install_dir+set}" = set; then :
3410 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3411 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3412 elif test x$withval != xno; then
3413 cpp_install_dir=$withval
3418 # We would like to our source tree to be readonly. However when releases or
3419 # pre-releases are generated, the flex/bison generated files as well as the
3420 # various formats of manuals need to be included along with the rest of the
3421 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3422 # just that.
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3425 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3426 # Check whether --enable-generated-files-in-srcdir was given.
3427 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3428 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3429 else
3430 generated_files_in_srcdir=no
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3435 $as_echo "$generated_files_in_srcdir" >&6; }
3437 if test "$generated_files_in_srcdir" = "yes"; then
3438 GENINSRC=''
3439 else
3440 GENINSRC='#'
3444 # -------------------
3445 # Find default linker
3446 # -------------------
3448 # With GNU ld
3450 # Check whether --with-gnu-ld was given.
3451 if test "${with_gnu_ld+set}" = set; then :
3452 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3453 else
3454 gnu_ld_flag=no
3458 # With pre-defined ld
3460 # Check whether --with-ld was given.
3461 if test "${with_ld+set}" = set; then :
3462 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3465 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3466 if test ! -x "$DEFAULT_LINKER"; then
3467 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3468 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3469 gnu_ld_flag=yes
3472 cat >>confdefs.h <<_ACEOF
3473 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3474 _ACEOF
3478 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3480 cat >>confdefs.h <<_ACEOF
3481 #define HAVE_GNU_LD $gnu_ld
3482 _ACEOF
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3486 $as_echo_n "checking whether a default linker was specified... " >&6; }
3487 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3488 if test x"$gnu_ld_flag" = x"no"; then
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3490 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3491 else
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3493 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3495 else
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3500 # With demangler in GNU ld
3502 # Check whether --with-demangler-in-ld was given.
3503 if test "${with_demangler_in_ld+set}" = set; then :
3504 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3505 else
3506 demangler_in_ld=no
3510 # ----------------------
3511 # Find default assembler
3512 # ----------------------
3514 # With GNU as
3516 # Check whether --with-gnu-as was given.
3517 if test "${with_gnu_as+set}" = set; then :
3518 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3519 else
3520 gas_flag=no
3525 # Check whether --with-as was given.
3526 if test "${with_as+set}" = set; then :
3527 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3530 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3531 if test ! -x "$DEFAULT_ASSEMBLER"; then
3532 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3533 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3534 gas_flag=yes
3537 cat >>confdefs.h <<_ACEOF
3538 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3539 _ACEOF
3543 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3545 cat >>confdefs.h <<_ACEOF
3546 #define HAVE_GNU_AS $gnu_as
3547 _ACEOF
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3551 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3552 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3553 if test x"$gas_flag" = x"no"; then
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3555 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3556 else
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3558 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3560 else
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3565 # ---------------
3566 # Find C compiler
3567 # ---------------
3569 # If a non-executable a.out is present (e.g. created by GNU as above even if
3570 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3571 # file, even when creating an executable, so an execution test fails.
3572 # Remove possible default executable files to avoid this.
3574 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3575 # Autoconf includes it.
3576 rm -f a.out a.exe b.out
3578 # Find the native compiler
3579 ac_ext=c
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 if test -n "$ac_tool_prefix"; then
3585 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3586 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3606 done
3607 done
3608 IFS=$as_save_IFS
3612 CC=$ac_cv_prog_CC
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3616 else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3623 if test -z "$ac_cv_prog_CC"; then
3624 ac_ct_CC=$CC
3625 # Extract the first word of "gcc", so it can be a program name with args.
3626 set dummy gcc; ac_word=$2
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3628 $as_echo_n "checking for $ac_word... " >&6; }
3629 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3630 $as_echo_n "(cached) " >&6
3631 else
3632 if test -n "$ac_ct_CC"; then
3633 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3634 else
3635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3638 IFS=$as_save_IFS
3639 test -z "$as_dir" && as_dir=.
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3642 ac_cv_prog_ac_ct_CC="gcc"
3643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 break 2
3646 done
3647 done
3648 IFS=$as_save_IFS
3652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3653 if test -n "$ac_ct_CC"; then
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3655 $as_echo "$ac_ct_CC" >&6; }
3656 else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 $as_echo "no" >&6; }
3661 if test "x$ac_ct_CC" = x; then
3662 CC=""
3663 else
3664 case $cross_compiling:$ac_tool_warned in
3665 yes:)
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3668 ac_tool_warned=yes ;;
3669 esac
3670 CC=$ac_ct_CC
3672 else
3673 CC="$ac_cv_prog_CC"
3676 if test -z "$CC"; then
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}cc; ac_word=$2
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if test "${ac_cv_prog_CC+set}" = set; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 if test -n "$CC"; then
3686 ac_cv_prog_CC="$CC" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 ac_cv_prog_CC="${ac_tool_prefix}cc"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3699 done
3700 done
3701 IFS=$as_save_IFS
3705 CC=$ac_cv_prog_CC
3706 if test -n "$CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 $as_echo "$CC" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3717 if test -z "$CC"; then
3718 # Extract the first word of "cc", so it can be a program name with args.
3719 set dummy cc; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if test "${ac_cv_prog_CC+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 if test -n "$CC"; then
3726 ac_cv_prog_CC="$CC" # Let the user override the test.
3727 else
3728 ac_prog_rejected=no
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3737 ac_prog_rejected=yes
3738 continue
3740 ac_cv_prog_CC="cc"
3741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3742 break 2
3744 done
3745 done
3746 IFS=$as_save_IFS
3748 if test $ac_prog_rejected = yes; then
3749 # We found a bogon in the path, so make sure we never use it.
3750 set dummy $ac_cv_prog_CC
3751 shift
3752 if test $# != 0; then
3753 # We chose a different compiler from the bogus one.
3754 # However, it has the same basename, so the bogon will be chosen
3755 # first if we set CC to just the basename; use the full file name.
3756 shift
3757 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3762 CC=$ac_cv_prog_CC
3763 if test -n "$CC"; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3765 $as_echo "$CC" >&6; }
3766 else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3773 if test -z "$CC"; then
3774 if test -n "$ac_tool_prefix"; then
3775 for ac_prog in cl.exe
3777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3780 $as_echo_n "checking for $ac_word... " >&6; }
3781 if test "${ac_cv_prog_CC+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
3783 else
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC="$CC" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3798 done
3799 done
3800 IFS=$as_save_IFS
3804 CC=$ac_cv_prog_CC
3805 if test -n "$CC"; then
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3807 $as_echo "$CC" >&6; }
3808 else
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3810 $as_echo "no" >&6; }
3814 test -n "$CC" && break
3815 done
3817 if test -z "$CC"; then
3818 ac_ct_CC=$CC
3819 for ac_prog in cl.exe
3821 # Extract the first word of "$ac_prog", so it can be a program name with args.
3822 set dummy $ac_prog; ac_word=$2
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3824 $as_echo_n "checking for $ac_word... " >&6; }
3825 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 if test -n "$ac_ct_CC"; then
3829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3830 else
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3838 ac_cv_prog_ac_ct_CC="$ac_prog"
3839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3840 break 2
3842 done
3843 done
3844 IFS=$as_save_IFS
3848 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3849 if test -n "$ac_ct_CC"; then
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3851 $as_echo "$ac_ct_CC" >&6; }
3852 else
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3854 $as_echo "no" >&6; }
3858 test -n "$ac_ct_CC" && break
3859 done
3861 if test "x$ac_ct_CC" = x; then
3862 CC=""
3863 else
3864 case $cross_compiling:$ac_tool_warned in
3865 yes:)
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868 ac_tool_warned=yes ;;
3869 esac
3870 CC=$ac_ct_CC
3877 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error "no acceptable C compiler found in \$PATH
3880 See \`config.log' for more details." "$LINENO" 5; }
3882 # Provide some information about the compiler.
3883 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3884 set X $ac_compile
3885 ac_compiler=$2
3886 for ac_option in --version -v -V -qversion; do
3887 { { ac_try="$ac_compiler $ac_option >&5"
3888 case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891 esac
3892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3893 $as_echo "$ac_try_echo"; } >&5
3894 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3895 ac_status=$?
3896 if test -s conftest.err; then
3897 sed '10a\
3898 ... rest of stderr output deleted ...
3899 10q' conftest.err >conftest.er1
3900 cat conftest.er1 >&5
3901 rm -f conftest.er1 conftest.err
3903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3904 test $ac_status = 0; }
3905 done
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3911 main ()
3915 return 0;
3917 _ACEOF
3918 ac_clean_files_save=$ac_clean_files
3919 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3920 # Try to create an executable without -o first, disregard a.out.
3921 # It will help us diagnose broken compilers, and finding out an intuition
3922 # of exeext.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924 $as_echo_n "checking for C compiler default output file name... " >&6; }
3925 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3927 # The possible output files:
3928 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3930 ac_rmfiles=
3931 for ac_file in $ac_files
3933 case $ac_file in
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3936 esac
3937 done
3938 rm -f $ac_rmfiles
3940 if { { ac_try="$ac_link_default"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link_default") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }; then :
3951 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3952 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3953 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3954 # so that the user can short-circuit this test for compilers unknown to
3955 # Autoconf.
3956 for ac_file in $ac_files ''
3958 test -f "$ac_file" || continue
3959 case $ac_file in
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3962 [ab].out )
3963 # We found the default executable, but exeext='' is most
3964 # certainly right.
3965 break;;
3966 *.* )
3967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3968 then :; else
3969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3971 # We set ac_cv_exeext here because the later test for it is not
3972 # safe: cross compilers may not add the suffix if given an `-o'
3973 # argument, so we may need to know it at that point already.
3974 # Even if this section looks crufty: it has the advantage of
3975 # actually working.
3976 break;;
3978 break;;
3979 esac
3980 done
3981 test "$ac_cv_exeext" = no && ac_cv_exeext=
3983 else
3984 ac_file=''
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987 $as_echo "$ac_file" >&6; }
3988 if test -z "$ac_file"; then :
3989 $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 { as_fn_set_status 77
3995 as_fn_error "C compiler cannot create executables
3996 See \`config.log' for more details." "$LINENO" 5; }; }
3998 ac_exeext=$ac_cv_exeext
4000 # Check that the compiler produces executables we can run. If not, either
4001 # the compiler is broken, or we cross compile.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4003 $as_echo_n "checking whether the C compiler works... " >&6; }
4004 # If not cross compiling, check that we can run a simple program.
4005 if test "$cross_compiling" != yes; then
4006 if { ac_try='./$ac_file'
4007 { { case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_try") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; }; then
4017 cross_compiling=no
4018 else
4019 if test "$cross_compiling" = maybe; then
4020 cross_compiling=yes
4021 else
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error "cannot run C compiled programs.
4025 If you meant to cross compile, use \`--host'.
4026 See \`config.log' for more details." "$LINENO" 5; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031 $as_echo "yes" >&6; }
4033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4034 ac_clean_files=$ac_clean_files_save
4035 # Check that the compiler produces executables we can run. If not, either
4036 # the compiler is broken, or we cross compile.
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4038 $as_echo_n "checking whether we are cross compiling... " >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4040 $as_echo "$cross_compiling" >&6; }
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4043 $as_echo_n "checking for suffix of executables... " >&6; }
4044 if { { ac_try="$ac_link"
4045 case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_link") 2>&5
4052 ac_status=$?
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }; then :
4055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4057 # work properly (i.e., refer to `conftest.exe'), while it won't with
4058 # `rm'.
4059 for ac_file in conftest.exe conftest conftest.*; do
4060 test -f "$ac_file" || continue
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4064 break;;
4065 * ) break;;
4066 esac
4067 done
4068 else
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of executables: cannot compile and link
4072 See \`config.log' for more details." "$LINENO" 5; }
4074 rm -f conftest$ac_cv_exeext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076 $as_echo "$ac_cv_exeext" >&6; }
4078 rm -f conftest.$ac_ext
4079 EXEEXT=$ac_cv_exeext
4080 ac_exeext=$EXEEXT
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4082 $as_echo_n "checking for suffix of object files... " >&6; }
4083 if test "${ac_cv_objext+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4090 main ()
4094 return 0;
4096 _ACEOF
4097 rm -f conftest.o conftest.obj
4098 if { { ac_try="$ac_compile"
4099 case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102 esac
4103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104 $as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_compile") 2>&5
4106 ac_status=$?
4107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4108 test $ac_status = 0; }; then :
4109 for ac_file in conftest.o conftest.obj conftest.*; do
4110 test -f "$ac_file" || continue;
4111 case $ac_file in
4112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4113 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4114 break;;
4115 esac
4116 done
4117 else
4118 $as_echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4121 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4123 as_fn_error "cannot compute suffix of object files: cannot compile
4124 See \`config.log' for more details." "$LINENO" 5; }
4126 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4129 $as_echo "$ac_cv_objext" >&6; }
4130 OBJEXT=$ac_cv_objext
4131 ac_objext=$OBJEXT
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4133 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4134 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4135 $as_echo_n "(cached) " >&6
4136 else
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4141 main ()
4143 #ifndef __GNUC__
4144 choke me
4145 #endif
4148 return 0;
4150 _ACEOF
4151 if ac_fn_c_try_compile "$LINENO"; then :
4152 ac_compiler_gnu=yes
4153 else
4154 ac_compiler_gnu=no
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4161 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4162 if test $ac_compiler_gnu = yes; then
4163 GCC=yes
4164 else
4165 GCC=
4167 ac_test_CFLAGS=${CFLAGS+set}
4168 ac_save_CFLAGS=$CFLAGS
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4170 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4171 if test "${ac_cv_prog_cc_g+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 ac_save_c_werror_flag=$ac_c_werror_flag
4175 ac_c_werror_flag=yes
4176 ac_cv_prog_cc_g=no
4177 CFLAGS="-g"
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4182 main ()
4186 return 0;
4188 _ACEOF
4189 if ac_fn_c_try_compile "$LINENO"; then :
4190 ac_cv_prog_cc_g=yes
4191 else
4192 CFLAGS=""
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4197 main ()
4201 return 0;
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4206 else
4207 ac_c_werror_flag=$ac_save_c_werror_flag
4208 CFLAGS="-g"
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4213 main ()
4217 return 0;
4219 _ACEOF
4220 if ac_fn_c_try_compile "$LINENO"; then :
4221 ac_cv_prog_cc_g=yes
4223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 ac_c_werror_flag=$ac_save_c_werror_flag
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4231 $as_echo "$ac_cv_prog_cc_g" >&6; }
4232 if test "$ac_test_CFLAGS" = set; then
4233 CFLAGS=$ac_save_CFLAGS
4234 elif test $ac_cv_prog_cc_g = yes; then
4235 if test "$GCC" = yes; then
4236 CFLAGS="-g -O2"
4237 else
4238 CFLAGS="-g"
4240 else
4241 if test "$GCC" = yes; then
4242 CFLAGS="-O2"
4243 else
4244 CFLAGS=
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4248 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4249 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 ac_cv_prog_cc_c89=no
4253 ac_save_CC=$CC
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <stdarg.h>
4257 #include <stdio.h>
4258 #include <sys/types.h>
4259 #include <sys/stat.h>
4260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4261 struct buf { int x; };
4262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4263 static char *e (p, i)
4264 char **p;
4265 int i;
4267 return p[i];
4269 static char *f (char * (*g) (char **, int), char **p, ...)
4271 char *s;
4272 va_list v;
4273 va_start (v,p);
4274 s = g (p, va_arg (v,int));
4275 va_end (v);
4276 return s;
4279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4280 function prototypes and stuff, but not '\xHH' hex character constants.
4281 These don't provoke an error unfortunately, instead are silently treated
4282 as 'x'. The following induces an error, until -std is added to get
4283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4284 array size at least. It's necessary to write '\x00'==0 to get something
4285 that's true only with -std. */
4286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4289 inside strings and character constants. */
4290 #define FOO(x) 'x'
4291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4293 int test (int i, double x);
4294 struct s1 {int (*f) (int a);};
4295 struct s2 {int (*f) (double a);};
4296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4297 int argc;
4298 char **argv;
4300 main ()
4302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4304 return 0;
4306 _ACEOF
4307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4310 CC="$ac_save_CC $ac_arg"
4311 if ac_fn_c_try_compile "$LINENO"; then :
4312 ac_cv_prog_cc_c89=$ac_arg
4314 rm -f core conftest.err conftest.$ac_objext
4315 test "x$ac_cv_prog_cc_c89" != "xno" && break
4316 done
4317 rm -f conftest.$ac_ext
4318 CC=$ac_save_CC
4321 # AC_CACHE_VAL
4322 case "x$ac_cv_prog_cc_c89" in
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4325 $as_echo "none needed" >&6; } ;;
4326 xno)
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4328 $as_echo "unsupported" >&6; } ;;
4330 CC="$CC $ac_cv_prog_cc_c89"
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4333 esac
4334 if test "x$ac_cv_prog_cc_c89" != xno; then :
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4344 if test "x$CC" != xcc; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4346 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4347 else
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4349 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4351 set dummy $CC; ac_cc=`$as_echo "$2" |
4352 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4353 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4354 $as_echo_n "(cached) " >&6
4355 else
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4360 main ()
4364 return 0;
4366 _ACEOF
4367 # Make sure it works both with $CC and with simple cc.
4368 # We do the test twice because some compilers refuse to overwrite an
4369 # existing .o file with -o, though they will create one.
4370 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4371 rm -f conftest2.*
4372 if { { case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375 esac
4376 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4377 $as_echo "$ac_try_echo"; } >&5
4378 (eval "$ac_try") 2>&5
4379 ac_status=$?
4380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4381 test $ac_status = 0; } &&
4382 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387 $as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_try") 2>&5
4389 ac_status=$?
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; };
4392 then
4393 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4394 if test "x$CC" != xcc; then
4395 # Test first that cc exists at all.
4396 if { ac_try='cc -c conftest.$ac_ext >&5'
4397 { { case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_try") 2>&5
4404 ac_status=$?
4405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406 test $ac_status = 0; }; }; then
4407 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4408 rm -f conftest2.*
4409 if { { case "(($ac_try" in
4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4411 *) ac_try_echo=$ac_try;;
4412 esac
4413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4414 $as_echo "$ac_try_echo"; } >&5
4415 (eval "$ac_try") 2>&5
4416 ac_status=$?
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; } &&
4419 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_try") 2>&5
4426 ac_status=$?
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; };
4429 then
4430 # cc works too.
4432 else
4433 # cc exists but doesn't like -o.
4434 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4438 else
4439 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4441 rm -f core conftest*
4444 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4446 $as_echo "yes" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4451 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4455 # expand $ac_aux_dir to an absolute path
4456 am_aux_dir=`cd $ac_aux_dir && pwd`
4458 # FIXME: we rely on the cache variable name because
4459 # there is no other way.
4460 set dummy $CC
4461 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4462 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4463 if test "$am_t" != yes; then
4464 # Losing compiler, so override with the script.
4465 # FIXME: It is wrong to rewrite CC.
4466 # But if we don't then we get into trouble of one sort or another.
4467 # A longer-term fix would be to have automake use am__CC in this case,
4468 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4469 CC="$am_aux_dir/compile $CC"
4473 ac_ext=cpp
4474 ac_cpp='$CXXCPP $CPPFLAGS'
4475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4478 if test -z "$CXX"; then
4479 if test -n "$CCC"; then
4480 CXX=$CCC
4481 else
4482 if test -n "$ac_tool_prefix"; then
4483 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if test "${ac_cv_prog_CXX+set}" = set; then :
4490 $as_echo_n "(cached) " >&6
4491 else
4492 if test -n "$CXX"; then
4493 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4498 IFS=$as_save_IFS
4499 test -z "$as_dir" && as_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 break 2
4506 done
4507 done
4508 IFS=$as_save_IFS
4512 CXX=$ac_cv_prog_CXX
4513 if test -n "$CXX"; then
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4515 $as_echo "$CXX" >&6; }
4516 else
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518 $as_echo "no" >&6; }
4522 test -n "$CXX" && break
4523 done
4525 if test -z "$CXX"; then
4526 ac_ct_CXX=$CXX
4527 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4529 # Extract the first word of "$ac_prog", so it can be a program name with args.
4530 set dummy $ac_prog; ac_word=$2
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532 $as_echo_n "checking for $ac_word... " >&6; }
4533 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 if test -n "$ac_ct_CXX"; then
4537 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4538 else
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546 ac_cv_prog_ac_ct_CXX="$ac_prog"
4547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 break 2
4550 done
4551 done
4552 IFS=$as_save_IFS
4556 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4557 if test -n "$ac_ct_CXX"; then
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4559 $as_echo "$ac_ct_CXX" >&6; }
4560 else
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562 $as_echo "no" >&6; }
4566 test -n "$ac_ct_CXX" && break
4567 done
4569 if test "x$ac_ct_CXX" = x; then
4570 CXX="g++"
4571 else
4572 case $cross_compiling:$ac_tool_warned in
4573 yes:)
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4576 ac_tool_warned=yes ;;
4577 esac
4578 CXX=$ac_ct_CXX
4584 # Provide some information about the compiler.
4585 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4586 set X $ac_compile
4587 ac_compiler=$2
4588 for ac_option in --version -v -V -qversion; do
4589 { { ac_try="$ac_compiler $ac_option >&5"
4590 case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593 esac
4594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595 $as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4597 ac_status=$?
4598 if test -s conftest.err; then
4599 sed '10a\
4600 ... rest of stderr output deleted ...
4601 10q' conftest.err >conftest.er1
4602 cat conftest.er1 >&5
4603 rm -f conftest.er1 conftest.err
4605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4606 test $ac_status = 0; }
4607 done
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4610 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4611 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4612 $as_echo_n "(cached) " >&6
4613 else
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4618 main ()
4620 #ifndef __GNUC__
4621 choke me
4622 #endif
4625 return 0;
4627 _ACEOF
4628 if ac_fn_cxx_try_compile "$LINENO"; then :
4629 ac_compiler_gnu=yes
4630 else
4631 ac_compiler_gnu=no
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4638 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4639 if test $ac_compiler_gnu = yes; then
4640 GXX=yes
4641 else
4642 GXX=
4644 ac_test_CXXFLAGS=${CXXFLAGS+set}
4645 ac_save_CXXFLAGS=$CXXFLAGS
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4647 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4648 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4652 ac_cxx_werror_flag=yes
4653 ac_cv_prog_cxx_g=no
4654 CXXFLAGS="-g"
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4659 main ()
4663 return 0;
4665 _ACEOF
4666 if ac_fn_cxx_try_compile "$LINENO"; then :
4667 ac_cv_prog_cxx_g=yes
4668 else
4669 CXXFLAGS=""
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4674 main ()
4678 return 0;
4680 _ACEOF
4681 if ac_fn_cxx_try_compile "$LINENO"; then :
4683 else
4684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4685 CXXFLAGS="-g"
4686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4690 main ()
4694 return 0;
4696 _ACEOF
4697 if ac_fn_cxx_try_compile "$LINENO"; then :
4698 ac_cv_prog_cxx_g=yes
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4708 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4709 if test "$ac_test_CXXFLAGS" = set; then
4710 CXXFLAGS=$ac_save_CXXFLAGS
4711 elif test $ac_cv_prog_cxx_g = yes; then
4712 if test "$GXX" = yes; then
4713 CXXFLAGS="-g -O2"
4714 else
4715 CXXFLAGS="-g"
4717 else
4718 if test "$GXX" = yes; then
4719 CXXFLAGS="-O2"
4720 else
4721 CXXFLAGS=
4724 ac_ext=c
4725 ac_cpp='$CPP $CPPFLAGS'
4726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733 if test -n "$ac_tool_prefix"; then
4734 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4735 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4737 $as_echo_n "checking for $ac_word... " >&6; }
4738 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 if test -n "$GNATBIND"; then
4742 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4755 done
4756 done
4757 IFS=$as_save_IFS
4761 GNATBIND=$ac_cv_prog_GNATBIND
4762 if test -n "$GNATBIND"; then
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4764 $as_echo "$GNATBIND" >&6; }
4765 else
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 $as_echo "no" >&6; }
4772 if test -z "$ac_cv_prog_GNATBIND"; then
4773 ac_ct_GNATBIND=$GNATBIND
4774 # Extract the first word of "gnatbind", so it can be a program name with args.
4775 set dummy gnatbind; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$ac_ct_GNATBIND"; then
4782 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4791 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4795 done
4796 done
4797 IFS=$as_save_IFS
4801 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4802 if test -n "$ac_ct_GNATBIND"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4804 $as_echo "$ac_ct_GNATBIND" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4810 if test "x$ac_ct_GNATBIND" = x; then
4811 GNATBIND="no"
4812 else
4813 case $cross_compiling:$ac_tool_warned in
4814 yes:)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4817 ac_tool_warned=yes ;;
4818 esac
4819 GNATBIND=$ac_ct_GNATBIND
4821 else
4822 GNATBIND="$ac_cv_prog_GNATBIND"
4825 if test -n "$ac_tool_prefix"; then
4826 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4827 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$GNATMAKE"; then
4834 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4843 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 GNATMAKE=$ac_cv_prog_GNATMAKE
4854 if test -n "$GNATMAKE"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4856 $as_echo "$GNATMAKE" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4864 if test -z "$ac_cv_prog_GNATMAKE"; then
4865 ac_ct_GNATMAKE=$GNATMAKE
4866 # Extract the first word of "gnatmake", so it can be a program name with args.
4867 set dummy gnatmake; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$ac_ct_GNATMAKE"; then
4874 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4887 done
4888 done
4889 IFS=$as_save_IFS
4893 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4894 if test -n "$ac_ct_GNATMAKE"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4896 $as_echo "$ac_ct_GNATMAKE" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4902 if test "x$ac_ct_GNATMAKE" = x; then
4903 GNATMAKE="no"
4904 else
4905 case $cross_compiling:$ac_tool_warned in
4906 yes:)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4909 ac_tool_warned=yes ;;
4910 esac
4911 GNATMAKE=$ac_ct_GNATMAKE
4913 else
4914 GNATMAKE="$ac_cv_prog_GNATMAKE"
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4918 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4919 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 cat >conftest.adb <<EOF
4923 procedure conftest is begin null; end conftest;
4925 acx_cv_cc_gcc_supports_ada=no
4926 # There is a bug in old released versions of GCC which causes the
4927 # driver to exit successfully when the appropriate language module
4928 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4929 # Therefore we must check for the error message as well as an
4930 # unsuccessful exit.
4931 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4932 # given a .adb file, but produce no object file. So we must check
4933 # if an object file was really produced to guard against this.
4934 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4935 if test x"$errors" = x && test -f conftest.$ac_objext; then
4936 acx_cv_cc_gcc_supports_ada=yes
4938 rm -f conftest.*
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4941 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4943 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4944 have_gnat=yes
4945 else
4946 have_gnat=no
4950 # autoconf is lame and doesn't give us any substitution variable for this.
4951 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4952 NO_MINUS_C_MINUS_O=yes
4953 else
4954 OUTPUT_OPTION='-o $@'
4959 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4960 # optimizations to be activated explicitly by the toplevel.
4961 case "$CC" in
4962 */prev-gcc/xgcc*) ;;
4963 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4964 esac
4967 # -------------------------
4968 # Check C compiler features
4969 # -------------------------
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4978 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4979 # On Suns, sometimes $CPP names a directory.
4980 if test -n "$CPP" && test -d "$CPP"; then
4981 CPP=
4983 if test -z "$CPP"; then
4984 if test "${ac_cv_prog_CPP+set}" = set; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 # Double quotes because CPP needs to be expanded
4988 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4990 ac_preproc_ok=false
4991 for ac_c_preproc_warn_flag in '' yes
4993 # Use a header file that comes with gcc, so configuring glibc
4994 # with a fresh cross-compiler works.
4995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4996 # <limits.h> exists even on freestanding compilers.
4997 # On the NeXT, cc -E runs the code through the compiler's parser,
4998 # not just through cpp. "Syntax error" is here to catch this case.
4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 #ifdef __STDC__
5002 # include <limits.h>
5003 #else
5004 # include <assert.h>
5005 #endif
5006 Syntax error
5007 _ACEOF
5008 if ac_fn_c_try_cpp "$LINENO"; then :
5010 else
5011 # Broken: fails on valid input.
5012 continue
5014 rm -f conftest.err conftest.$ac_ext
5016 # OK, works on sane cases. Now check whether nonexistent headers
5017 # can be detected and how.
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #include <ac_nonexistent.h>
5021 _ACEOF
5022 if ac_fn_c_try_cpp "$LINENO"; then :
5023 # Broken: success on invalid input.
5024 continue
5025 else
5026 # Passes both tests.
5027 ac_preproc_ok=:
5028 break
5030 rm -f conftest.err conftest.$ac_ext
5032 done
5033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5034 rm -f conftest.err conftest.$ac_ext
5035 if $ac_preproc_ok; then :
5036 break
5039 done
5040 ac_cv_prog_CPP=$CPP
5043 CPP=$ac_cv_prog_CPP
5044 else
5045 ac_cv_prog_CPP=$CPP
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5048 $as_echo "$CPP" >&6; }
5049 ac_preproc_ok=false
5050 for ac_c_preproc_warn_flag in '' yes
5052 # Use a header file that comes with gcc, so configuring glibc
5053 # with a fresh cross-compiler works.
5054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5055 # <limits.h> exists even on freestanding compilers.
5056 # On the NeXT, cc -E runs the code through the compiler's parser,
5057 # not just through cpp. "Syntax error" is here to catch this case.
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 #ifdef __STDC__
5061 # include <limits.h>
5062 #else
5063 # include <assert.h>
5064 #endif
5065 Syntax error
5066 _ACEOF
5067 if ac_fn_c_try_cpp "$LINENO"; then :
5069 else
5070 # Broken: fails on valid input.
5071 continue
5073 rm -f conftest.err conftest.$ac_ext
5075 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how.
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if ac_fn_c_try_cpp "$LINENO"; then :
5082 # Broken: success on invalid input.
5083 continue
5084 else
5085 # Passes both tests.
5086 ac_preproc_ok=:
5087 break
5089 rm -f conftest.err conftest.$ac_ext
5091 done
5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093 rm -f conftest.err conftest.$ac_ext
5094 if $ac_preproc_ok; then :
5096 else
5097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5099 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5100 See \`config.log' for more details." "$LINENO" 5; }
5103 ac_ext=c
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5111 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5112 if test "${ac_cv_path_GREP+set}" = set; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if test -z "$GREP"; then
5116 ac_path_GREP_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in grep ggrep; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5126 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5127 # Check for GNU ac_path_GREP and select it if it is found.
5128 # Check for GNU $ac_path_GREP
5129 case `"$ac_path_GREP" --version 2>&1` in
5130 *GNU*)
5131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5133 ac_count=0
5134 $as_echo_n 0123456789 >"conftest.in"
5135 while :
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 $as_echo 'GREP' >> "conftest.nl"
5141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val
5144 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_GREP="$ac_path_GREP"
5147 ac_path_GREP_max=$ac_count
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5151 done
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 esac
5155 $ac_path_GREP_found && break 3
5156 done
5157 done
5158 done
5159 IFS=$as_save_IFS
5160 if test -z "$ac_cv_path_GREP"; then
5161 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5163 else
5164 ac_cv_path_GREP=$GREP
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5169 $as_echo "$ac_cv_path_GREP" >&6; }
5170 GREP="$ac_cv_path_GREP"
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5174 $as_echo_n "checking for egrep... " >&6; }
5175 if test "${ac_cv_path_EGREP+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5177 else
5178 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5179 then ac_cv_path_EGREP="$GREP -E"
5180 else
5181 if test -z "$EGREP"; then
5182 ac_path_EGREP_found=false
5183 # Loop through the user's path and test for each of PROGNAME-LIST
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
5189 for ac_prog in egrep; do
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5192 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5193 # Check for GNU ac_path_EGREP and select it if it is found.
5194 # Check for GNU $ac_path_EGREP
5195 case `"$ac_path_EGREP" --version 2>&1` in
5196 *GNU*)
5197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5199 ac_count=0
5200 $as_echo_n 0123456789 >"conftest.in"
5201 while :
5203 cat "conftest.in" "conftest.in" >"conftest.tmp"
5204 mv "conftest.tmp" "conftest.in"
5205 cp "conftest.in" "conftest.nl"
5206 $as_echo 'EGREP' >> "conftest.nl"
5207 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5209 as_fn_arith $ac_count + 1 && ac_count=$as_val
5210 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5211 # Best one so far, save it but keep looking for a better one
5212 ac_cv_path_EGREP="$ac_path_EGREP"
5213 ac_path_EGREP_max=$ac_count
5215 # 10*(2^10) chars as input seems more than enough
5216 test $ac_count -gt 10 && break
5217 done
5218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5219 esac
5221 $ac_path_EGREP_found && break 3
5222 done
5223 done
5224 done
5225 IFS=$as_save_IFS
5226 if test -z "$ac_cv_path_EGREP"; then
5227 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5229 else
5230 ac_cv_path_EGREP=$EGREP
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5236 $as_echo "$ac_cv_path_EGREP" >&6; }
5237 EGREP="$ac_cv_path_EGREP"
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5241 $as_echo_n "checking for ANSI C header files... " >&6; }
5242 if test "${ac_cv_header_stdc+set}" = set; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 #include <stdlib.h>
5248 #include <stdarg.h>
5249 #include <string.h>
5250 #include <float.h>
5253 main ()
5257 return 0;
5259 _ACEOF
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261 ac_cv_header_stdc=yes
5262 else
5263 ac_cv_header_stdc=no
5265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 if test $ac_cv_header_stdc = yes; then
5268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 #include <string.h>
5273 _ACEOF
5274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5275 $EGREP "memchr" >/dev/null 2>&1; then :
5277 else
5278 ac_cv_header_stdc=no
5280 rm -f conftest*
5284 if test $ac_cv_header_stdc = yes; then
5285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 #include <stdlib.h>
5290 _ACEOF
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "free" >/dev/null 2>&1; then :
5294 else
5295 ac_cv_header_stdc=no
5297 rm -f conftest*
5301 if test $ac_cv_header_stdc = yes; then
5302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5303 if test "$cross_compiling" = yes; then :
5305 else
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308 #include <ctype.h>
5309 #include <stdlib.h>
5310 #if ((' ' & 0x0FF) == 0x020)
5311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5313 #else
5314 # define ISLOWER(c) \
5315 (('a' <= (c) && (c) <= 'i') \
5316 || ('j' <= (c) && (c) <= 'r') \
5317 || ('s' <= (c) && (c) <= 'z'))
5318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5319 #endif
5321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5323 main ()
5325 int i;
5326 for (i = 0; i < 256; i++)
5327 if (XOR (islower (i), ISLOWER (i))
5328 || toupper (i) != TOUPPER (i))
5329 return 2;
5330 return 0;
5332 _ACEOF
5333 if ac_fn_c_try_run "$LINENO"; then :
5335 else
5336 ac_cv_header_stdc=no
5338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5339 conftest.$ac_objext conftest.beam conftest.$ac_ext
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5345 $as_echo "$ac_cv_header_stdc" >&6; }
5346 if test $ac_cv_header_stdc = yes; then
5348 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5354 inttypes.h stdint.h unistd.h
5355 do :
5356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5357 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5359 eval as_val=\$$as_ac_Header
5360 if test "x$as_val" = x""yes; then :
5361 cat >>confdefs.h <<_ACEOF
5362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5363 _ACEOF
5367 done
5371 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5372 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5373 MINIX=yes
5374 else
5375 MINIX=
5379 if test "$MINIX" = yes; then
5381 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5384 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5387 $as_echo "#define _MINIX 1" >>confdefs.h
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5393 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5394 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5400 # define __EXTENSIONS__ 1
5401 $ac_includes_default
5403 main ()
5407 return 0;
5409 _ACEOF
5410 if ac_fn_c_try_compile "$LINENO"; then :
5411 ac_cv_safe_to_define___extensions__=yes
5412 else
5413 ac_cv_safe_to_define___extensions__=no
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5418 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5419 test $ac_cv_safe_to_define___extensions__ = yes &&
5420 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5422 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5424 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5426 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5428 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5437 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5438 # On Suns, sometimes $CPP names a directory.
5439 if test -n "$CPP" && test -d "$CPP"; then
5440 CPP=
5442 if test -z "$CPP"; then
5443 if test "${ac_cv_prog_CPP+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 # Double quotes because CPP needs to be expanded
5447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5449 ac_preproc_ok=false
5450 for ac_c_preproc_warn_flag in '' yes
5452 # Use a header file that comes with gcc, so configuring glibc
5453 # with a fresh cross-compiler works.
5454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5455 # <limits.h> exists even on freestanding compilers.
5456 # On the NeXT, cc -E runs the code through the compiler's parser,
5457 # not just through cpp. "Syntax error" is here to catch this case.
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #ifdef __STDC__
5461 # include <limits.h>
5462 #else
5463 # include <assert.h>
5464 #endif
5465 Syntax error
5466 _ACEOF
5467 if ac_fn_c_try_cpp "$LINENO"; then :
5469 else
5470 # Broken: fails on valid input.
5471 continue
5473 rm -f conftest.err conftest.$ac_ext
5475 # OK, works on sane cases. Now check whether nonexistent headers
5476 # can be detected and how.
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479 #include <ac_nonexistent.h>
5480 _ACEOF
5481 if ac_fn_c_try_cpp "$LINENO"; then :
5482 # Broken: success on invalid input.
5483 continue
5484 else
5485 # Passes both tests.
5486 ac_preproc_ok=:
5487 break
5489 rm -f conftest.err conftest.$ac_ext
5491 done
5492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493 rm -f conftest.err conftest.$ac_ext
5494 if $ac_preproc_ok; then :
5495 break
5498 done
5499 ac_cv_prog_CPP=$CPP
5502 CPP=$ac_cv_prog_CPP
5503 else
5504 ac_cv_prog_CPP=$CPP
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5507 $as_echo "$CPP" >&6; }
5508 ac_preproc_ok=false
5509 for ac_c_preproc_warn_flag in '' yes
5511 # Use a header file that comes with gcc, so configuring glibc
5512 # with a fresh cross-compiler works.
5513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514 # <limits.h> exists even on freestanding compilers.
5515 # On the NeXT, cc -E runs the code through the compiler's parser,
5516 # not just through cpp. "Syntax error" is here to catch this case.
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5518 /* end confdefs.h. */
5519 #ifdef __STDC__
5520 # include <limits.h>
5521 #else
5522 # include <assert.h>
5523 #endif
5524 Syntax error
5525 _ACEOF
5526 if ac_fn_c_try_cpp "$LINENO"; then :
5528 else
5529 # Broken: fails on valid input.
5530 continue
5532 rm -f conftest.err conftest.$ac_ext
5534 # OK, works on sane cases. Now check whether nonexistent headers
5535 # can be detected and how.
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #include <ac_nonexistent.h>
5539 _ACEOF
5540 if ac_fn_c_try_cpp "$LINENO"; then :
5541 # Broken: success on invalid input.
5542 continue
5543 else
5544 # Passes both tests.
5545 ac_preproc_ok=:
5546 break
5548 rm -f conftest.err conftest.$ac_ext
5550 done
5551 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5552 rm -f conftest.err conftest.$ac_ext
5553 if $ac_preproc_ok; then :
5555 else
5556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5558 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5559 See \`config.log' for more details." "$LINENO" 5; }
5562 ac_ext=c
5563 ac_cpp='$CPP $CPPFLAGS'
5564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5569 $as_echo_n "checking for inline... " >&6; }
5570 if test "${ac_cv_c_inline+set}" = set; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 ac_cv_c_inline=no
5574 for ac_kw in inline __inline__ __inline; do
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 #ifndef __cplusplus
5578 typedef int foo_t;
5579 static $ac_kw foo_t static_foo () {return 0; }
5580 $ac_kw foo_t foo () {return 0; }
5581 #endif
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 ac_cv_c_inline=$ac_kw
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 test "$ac_cv_c_inline" != no && break
5589 done
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5593 $as_echo "$ac_cv_c_inline" >&6; }
5595 case $ac_cv_c_inline in
5596 inline | yes) ;;
5598 case $ac_cv_c_inline in
5599 no) ac_val=;;
5600 *) ac_val=$ac_cv_c_inline;;
5601 esac
5602 cat >>confdefs.h <<_ACEOF
5603 #ifndef __cplusplus
5604 #define inline $ac_val
5605 #endif
5606 _ACEOF
5608 esac
5611 # sizeof(char) is 1 by definition.
5612 # The cast to long int works around a bug in the HP C Compiler
5613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5615 # This bug is HP SR number 8606223364.
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5617 $as_echo_n "checking size of void *... " >&6; }
5618 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5620 else
5621 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5623 else
5624 if test "$ac_cv_type_void_p" = yes; then
5625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5627 { as_fn_set_status 77
5628 as_fn_error "cannot compute sizeof (void *)
5629 See \`config.log' for more details." "$LINENO" 5; }; }
5630 else
5631 ac_cv_sizeof_void_p=0
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5637 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5641 cat >>confdefs.h <<_ACEOF
5642 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5643 _ACEOF
5646 # The cast to long int works around a bug in the HP C Compiler
5647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5649 # This bug is HP SR number 8606223364.
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5651 $as_echo_n "checking size of short... " >&6; }
5652 if test "${ac_cv_sizeof_short+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5657 else
5658 if test "$ac_cv_type_short" = yes; then
5659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5661 { as_fn_set_status 77
5662 as_fn_error "cannot compute sizeof (short)
5663 See \`config.log' for more details." "$LINENO" 5; }; }
5664 else
5665 ac_cv_sizeof_short=0
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5671 $as_echo "$ac_cv_sizeof_short" >&6; }
5675 cat >>confdefs.h <<_ACEOF
5676 #define SIZEOF_SHORT $ac_cv_sizeof_short
5677 _ACEOF
5680 # The cast to long int works around a bug in the HP C Compiler
5681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5683 # This bug is HP SR number 8606223364.
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5685 $as_echo_n "checking size of int... " >&6; }
5686 if test "${ac_cv_sizeof_int+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5691 else
5692 if test "$ac_cv_type_int" = yes; then
5693 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5695 { as_fn_set_status 77
5696 as_fn_error "cannot compute sizeof (int)
5697 See \`config.log' for more details." "$LINENO" 5; }; }
5698 else
5699 ac_cv_sizeof_int=0
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5705 $as_echo "$ac_cv_sizeof_int" >&6; }
5709 cat >>confdefs.h <<_ACEOF
5710 #define SIZEOF_INT $ac_cv_sizeof_int
5711 _ACEOF
5714 # The cast to long int works around a bug in the HP C Compiler
5715 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5716 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5717 # This bug is HP SR number 8606223364.
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5719 $as_echo_n "checking size of long... " >&6; }
5720 if test "${ac_cv_sizeof_long+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5725 else
5726 if test "$ac_cv_type_long" = yes; then
5727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5729 { as_fn_set_status 77
5730 as_fn_error "cannot compute sizeof (long)
5731 See \`config.log' for more details." "$LINENO" 5; }; }
5732 else
5733 ac_cv_sizeof_long=0
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5739 $as_echo "$ac_cv_sizeof_long" >&6; }
5743 cat >>confdefs.h <<_ACEOF
5744 #define SIZEOF_LONG $ac_cv_sizeof_long
5745 _ACEOF
5748 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5749 if test "x$ac_cv_type_long_long" = x""yes; then :
5751 cat >>confdefs.h <<_ACEOF
5752 #define HAVE_LONG_LONG 1
5753 _ACEOF
5755 # The cast to long int works around a bug in the HP C Compiler
5756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5758 # This bug is HP SR number 8606223364.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5760 $as_echo_n "checking size of long long... " >&6; }
5761 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5766 else
5767 if test "$ac_cv_type_long_long" = yes; then
5768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5770 { as_fn_set_status 77
5771 as_fn_error "cannot compute sizeof (long long)
5772 See \`config.log' for more details." "$LINENO" 5; }; }
5773 else
5774 ac_cv_sizeof_long_long=0
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5780 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5784 cat >>confdefs.h <<_ACEOF
5785 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5786 _ACEOF
5791 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5792 if test "x$ac_cv_type___int64" = x""yes; then :
5794 cat >>confdefs.h <<_ACEOF
5795 #define HAVE___INT64 1
5796 _ACEOF
5798 # The cast to long int works around a bug in the HP C Compiler
5799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5801 # This bug is HP SR number 8606223364.
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5803 $as_echo_n "checking size of __int64... " >&6; }
5804 if test "${ac_cv_sizeof___int64+set}" = set; then :
5805 $as_echo_n "(cached) " >&6
5806 else
5807 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5809 else
5810 if test "$ac_cv_type___int64" = yes; then
5811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5813 { as_fn_set_status 77
5814 as_fn_error "cannot compute sizeof (__int64)
5815 See \`config.log' for more details." "$LINENO" 5; }; }
5816 else
5817 ac_cv_sizeof___int64=0
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5823 $as_echo "$ac_cv_sizeof___int64" >&6; }
5827 cat >>confdefs.h <<_ACEOF
5828 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5829 _ACEOF
5834 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5835 case $ac_cv_c_int8_t in #(
5836 no|yes) ;; #(
5839 cat >>confdefs.h <<_ACEOF
5840 #define int8_t $ac_cv_c_int8_t
5841 _ACEOF
5843 esac
5845 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5846 case $ac_cv_c_int16_t in #(
5847 no|yes) ;; #(
5850 cat >>confdefs.h <<_ACEOF
5851 #define int16_t $ac_cv_c_int16_t
5852 _ACEOF
5854 esac
5856 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5857 case $ac_cv_c_int32_t in #(
5858 no|yes) ;; #(
5861 cat >>confdefs.h <<_ACEOF
5862 #define int32_t $ac_cv_c_int32_t
5863 _ACEOF
5865 esac
5867 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5868 case $ac_cv_c_int64_t in #(
5869 no|yes) ;; #(
5872 cat >>confdefs.h <<_ACEOF
5873 #define int64_t $ac_cv_c_int64_t
5874 _ACEOF
5876 esac
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5880 $as_echo_n "checking for long long int... " >&6; }
5881 if test "${ac_cv_type_long_long_int+set}" = set; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5887 /* For now, do not test the preprocessor; as of 2007 there are too many
5888 implementations with broken preprocessors. Perhaps this can
5889 be revisited in 2012. In the meantime, code should not expect
5890 #if to work with literals wider than 32 bits. */
5891 /* Test literals. */
5892 long long int ll = 9223372036854775807ll;
5893 long long int nll = -9223372036854775807LL;
5894 unsigned long long int ull = 18446744073709551615ULL;
5895 /* Test constant expressions. */
5896 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5897 ? 1 : -1)];
5898 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5899 ? 1 : -1)];
5900 int i = 63;
5902 main ()
5904 /* Test availability of runtime routines for shift and division. */
5905 long long int llmax = 9223372036854775807ll;
5906 unsigned long long int ullmax = 18446744073709551615ull;
5907 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5908 | (llmax / ll) | (llmax % ll)
5909 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5910 | (ullmax / ull) | (ullmax % ull));
5912 return 0;
5915 _ACEOF
5916 if ac_fn_c_try_link "$LINENO"; then :
5917 if test "$cross_compiling" = yes; then :
5918 ac_cv_type_long_long_int=yes
5919 else
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5922 #include <limits.h>
5923 #ifndef LLONG_MAX
5924 # define HALF \
5925 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5926 # define LLONG_MAX (HALF - 1 + HALF)
5927 #endif
5929 main ()
5931 long long int n = 1;
5932 int i;
5933 for (i = 0; ; i++)
5935 long long int m = n << i;
5936 if (m >> i != n)
5937 return 1;
5938 if (LLONG_MAX / 2 < m)
5939 break;
5941 return 0;
5943 return 0;
5945 _ACEOF
5946 if ac_fn_c_try_run "$LINENO"; then :
5947 ac_cv_type_long_long_int=yes
5948 else
5949 ac_cv_type_long_long_int=no
5951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5952 conftest.$ac_objext conftest.beam conftest.$ac_ext
5955 else
5956 ac_cv_type_long_long_int=no
5958 rm -f core conftest.err conftest.$ac_objext \
5959 conftest$ac_exeext conftest.$ac_ext
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5962 $as_echo "$ac_cv_type_long_long_int" >&6; }
5963 if test $ac_cv_type_long_long_int = yes; then
5965 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5971 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5972 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5974 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5976 else
5977 test $ac_cv_type_long_long_int = yes \
5978 && ac_type='long long int' \
5979 || ac_type='long int'
5981 cat >>confdefs.h <<_ACEOF
5982 #define intmax_t $ac_type
5983 _ACEOF
5989 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5990 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5992 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5994 else
5995 for ac_type in 'int' 'long int' 'long long int'; do
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
5998 $ac_includes_default
6000 main ()
6002 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6003 test_array [0] = 0
6006 return 0;
6008 _ACEOF
6009 if ac_fn_c_try_compile "$LINENO"; then :
6011 cat >>confdefs.h <<_ACEOF
6012 #define intptr_t $ac_type
6013 _ACEOF
6015 ac_type=
6017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 test -z "$ac_type" && break
6019 done
6023 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6024 case $ac_cv_c_uint8_t in #(
6025 no|yes) ;; #(
6028 $as_echo "#define _UINT8_T 1" >>confdefs.h
6031 cat >>confdefs.h <<_ACEOF
6032 #define uint8_t $ac_cv_c_uint8_t
6033 _ACEOF
6035 esac
6037 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6038 case $ac_cv_c_uint16_t in #(
6039 no|yes) ;; #(
6043 cat >>confdefs.h <<_ACEOF
6044 #define uint16_t $ac_cv_c_uint16_t
6045 _ACEOF
6047 esac
6049 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6050 case $ac_cv_c_uint32_t in #(
6051 no|yes) ;; #(
6054 $as_echo "#define _UINT32_T 1" >>confdefs.h
6057 cat >>confdefs.h <<_ACEOF
6058 #define uint32_t $ac_cv_c_uint32_t
6059 _ACEOF
6061 esac
6063 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6064 case $ac_cv_c_uint64_t in #(
6065 no|yes) ;; #(
6068 $as_echo "#define _UINT64_T 1" >>confdefs.h
6071 cat >>confdefs.h <<_ACEOF
6072 #define uint64_t $ac_cv_c_uint64_t
6073 _ACEOF
6075 esac
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6079 $as_echo_n "checking for unsigned long long int... " >&6; }
6080 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6086 /* For now, do not test the preprocessor; as of 2007 there are too many
6087 implementations with broken preprocessors. Perhaps this can
6088 be revisited in 2012. In the meantime, code should not expect
6089 #if to work with literals wider than 32 bits. */
6090 /* Test literals. */
6091 long long int ll = 9223372036854775807ll;
6092 long long int nll = -9223372036854775807LL;
6093 unsigned long long int ull = 18446744073709551615ULL;
6094 /* Test constant expressions. */
6095 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6096 ? 1 : -1)];
6097 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6098 ? 1 : -1)];
6099 int i = 63;
6101 main ()
6103 /* Test availability of runtime routines for shift and division. */
6104 long long int llmax = 9223372036854775807ll;
6105 unsigned long long int ullmax = 18446744073709551615ull;
6106 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6107 | (llmax / ll) | (llmax % ll)
6108 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6109 | (ullmax / ull) | (ullmax % ull));
6111 return 0;
6114 _ACEOF
6115 if ac_fn_c_try_link "$LINENO"; then :
6116 ac_cv_type_unsigned_long_long_int=yes
6117 else
6118 ac_cv_type_unsigned_long_long_int=no
6120 rm -f core conftest.err conftest.$ac_objext \
6121 conftest$ac_exeext conftest.$ac_ext
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6124 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6125 if test $ac_cv_type_unsigned_long_long_int = yes; then
6127 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6133 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6134 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6136 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6138 else
6139 test $ac_cv_type_unsigned_long_long_int = yes \
6140 && ac_type='unsigned long long int' \
6141 || ac_type='unsigned long int'
6143 cat >>confdefs.h <<_ACEOF
6144 #define uintmax_t $ac_type
6145 _ACEOF
6151 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6152 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6154 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6156 else
6157 for ac_type in 'unsigned int' 'unsigned long int' \
6158 'unsigned long long int'; do
6159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6160 /* end confdefs.h. */
6161 $ac_includes_default
6163 main ()
6165 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6166 test_array [0] = 0
6169 return 0;
6171 _ACEOF
6172 if ac_fn_c_try_compile "$LINENO"; then :
6174 cat >>confdefs.h <<_ACEOF
6175 #define uintptr_t $ac_type
6176 _ACEOF
6178 ac_type=
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6181 test -z "$ac_type" && break
6182 done
6199 # ---------------------
6200 # Warnings and checking
6201 # ---------------------
6203 # Check $CC warning features (if it's GCC).
6204 # We want to use -pedantic, but we don't want warnings about
6205 # * 'long long'
6206 # * variadic macros
6207 # * overlong strings
6208 # So, we only use -pedantic if we can disable those warnings.
6210 loose_warn=
6211 save_CFLAGS="$CFLAGS"
6212 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6213 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6216 $as_echo_n "checking whether $CC supports $option... " >&6; }
6217 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 CFLAGS="$option"
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6225 main ()
6229 return 0;
6231 _ACEOF
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 eval "$as_acx_Woption=yes"
6234 else
6235 eval "$as_acx_Woption=no"
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 eval ac_res=\$$as_acx_Woption
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6242 $as_echo "$ac_res" >&6; }
6243 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6244 loose_warn="$loose_warn${loose_warn:+ }$option"
6246 done
6247 CFLAGS="$save_CFLAGS"
6249 c_loose_warn=
6250 save_CFLAGS="$CFLAGS"
6251 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6252 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6255 $as_echo_n "checking whether $CC supports $option... " >&6; }
6256 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 CFLAGS="$option"
6260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6261 /* end confdefs.h. */
6264 main ()
6268 return 0;
6270 _ACEOF
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272 eval "$as_acx_Woption=yes"
6273 else
6274 eval "$as_acx_Woption=no"
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6279 eval ac_res=\$$as_acx_Woption
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6281 $as_echo "$ac_res" >&6; }
6282 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6283 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6285 done
6286 CFLAGS="$save_CFLAGS"
6288 strict_warn=
6289 save_CFLAGS="$CFLAGS"
6290 for option in -Wmissing-format-attribute; do
6291 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6294 $as_echo_n "checking whether $CC supports $option... " >&6; }
6295 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 CFLAGS="$option"
6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6300 /* end confdefs.h. */
6303 main ()
6307 return 0;
6309 _ACEOF
6310 if ac_fn_c_try_compile "$LINENO"; then :
6311 eval "$as_acx_Woption=yes"
6312 else
6313 eval "$as_acx_Woption=no"
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 eval ac_res=\$$as_acx_Woption
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6320 $as_echo "$ac_res" >&6; }
6321 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6322 strict_warn="$strict_warn${strict_warn:+ }$option"
6324 done
6325 CFLAGS="$save_CFLAGS"
6327 c_strict_warn=
6328 save_CFLAGS="$CFLAGS"
6329 for option in -Wold-style-definition -Wc++-compat; do
6330 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6333 $as_echo_n "checking whether $CC supports $option... " >&6; }
6334 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 CFLAGS="$option"
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339 /* end confdefs.h. */
6342 main ()
6346 return 0;
6348 _ACEOF
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 eval "$as_acx_Woption=yes"
6351 else
6352 eval "$as_acx_Woption=no"
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 eval ac_res=\$$as_acx_Woption
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6359 $as_echo "$ac_res" >&6; }
6360 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6361 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6363 done
6364 CFLAGS="$save_CFLAGS"
6366 if test "$GCC" = yes; then :
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6368 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6369 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 save_CFLAGS="$CFLAGS"
6373 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6378 main ()
6382 return 0;
6384 _ACEOF
6385 if ac_fn_c_try_compile "$LINENO"; then :
6386 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6387 else
6388 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391 CFLAGS="$save_CFLAGS"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6394 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6395 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6396 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6401 # Check whether --enable-werror-always was given.
6402 if test "${enable_werror_always+set}" = set; then :
6403 enableval=$enable_werror_always;
6404 else
6405 enable_werror_always=no
6408 if test $enable_werror_always = yes; then :
6409 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6414 # The above macros do nothing if the compiler is not GCC. However, the
6415 # Makefile has more goo to add other flags, so these variables are used
6416 # to enable warnings only for GCC.
6417 warn_cflags=
6418 warn_cxxflags=
6419 if test "x$GCC" = "xyes"; then
6420 warn_cflags='$(GCC_WARN_CFLAGS)'
6421 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6426 # Enable expensive internal checks
6427 is_release=
6428 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6429 is_release=yes
6432 # Check whether --enable-checking was given.
6433 if test "${enable_checking+set}" = set; then :
6434 enableval=$enable_checking; ac_checking_flags="${enableval}"
6435 else
6437 # Determine the default checks.
6438 if test x$is_release = x ; then
6439 ac_checking_flags=yes
6440 else
6441 ac_checking_flags=release
6445 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6446 for check in release $ac_checking_flags
6448 case $check in
6449 # these set all the flags to specific states
6450 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6451 ac_fold_checking= ; ac_gc_checking=1 ;
6452 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6453 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6454 ac_tree_checking=1 ; ac_valgrind_checking= ;
6455 ac_types_checking=1 ;;
6456 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6457 ac_fold_checking= ; ac_gc_checking= ;
6458 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6459 ac_rtlflag_checking= ; ac_runtime_checking= ;
6460 ac_tree_checking= ; ac_valgrind_checking= ;
6461 ac_types_checking= ;;
6462 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6463 ac_fold_checking=1 ; ac_gc_checking=1 ;
6464 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6465 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6466 ac_tree_checking=1 ; ac_valgrind_checking= ;
6467 ac_types_checking=1 ;;
6468 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6469 ac_fold_checking= ; ac_gc_checking= ;
6470 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6471 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6472 ac_tree_checking= ; ac_valgrind_checking= ;
6473 ac_types_checking= ;;
6474 # these enable particular checks
6475 assert) ac_assert_checking=1 ;;
6476 df) ac_df_checking=1 ;;
6477 fold) ac_fold_checking=1 ;;
6478 gc) ac_gc_checking=1 ;;
6479 gcac) ac_gc_always_collect=1 ;;
6480 gimple) ac_gimple_checking=1 ;;
6481 misc) ac_checking=1 ;;
6482 rtl) ac_rtl_checking=1 ;;
6483 rtlflag) ac_rtlflag_checking=1 ;;
6484 runtime) ac_runtime_checking=1 ;;
6485 tree) ac_tree_checking=1 ;;
6486 types) ac_types_checking=1 ;;
6487 valgrind) ac_valgrind_checking=1 ;;
6488 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6489 esac
6490 done
6491 IFS="$ac_save_IFS"
6493 nocommon_flag=""
6494 if test x$ac_checking != x ; then
6496 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6498 nocommon_flag=-fno-common
6501 if test x$ac_df_checking != x ; then
6503 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6506 if test x$ac_assert_checking != x ; then
6508 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6511 if test x$ac_gimple_checking != x ; then
6513 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6517 if test x$ac_runtime_checking != x ; then
6519 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6522 if test x$ac_tree_checking != x ; then
6524 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6526 TREEBROWSER=tree-browser.o
6528 if test x$ac_types_checking != x ; then
6530 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6534 if test x$ac_rtl_checking != x ; then
6536 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6539 if test x$ac_rtlflag_checking != x ; then
6541 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6544 if test x$ac_gc_checking != x ; then
6546 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6549 if test x$ac_gc_always_collect != x ; then
6551 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6554 if test x$ac_fold_checking != x ; then
6556 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6559 valgrind_path_defines=
6560 valgrind_command=
6562 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6563 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6564 have_valgrind_h=yes
6565 else
6566 have_valgrind_h=no
6571 if test x$ac_valgrind_checking != x ; then
6572 # It is certainly possible that there's valgrind but no valgrind.h.
6573 # GCC relies on making annotations so we must have both.
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6575 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6578 #include <valgrind/memcheck.h>
6579 #ifndef VALGRIND_DISCARD
6580 #error VALGRIND_DISCARD not defined
6581 #endif
6582 _ACEOF
6583 if ac_fn_c_try_cpp "$LINENO"; then :
6584 gcc_cv_header_valgrind_memcheck_h=yes
6585 else
6586 gcc_cv_header_valgrind_memcheck_h=no
6588 rm -f conftest.err conftest.$ac_ext
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6590 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6592 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6594 /* end confdefs.h. */
6595 #include <memcheck.h>
6596 #ifndef VALGRIND_DISCARD
6597 #error VALGRIND_DISCARD not defined
6598 #endif
6599 _ACEOF
6600 if ac_fn_c_try_cpp "$LINENO"; then :
6601 gcc_cv_header_memcheck_h=yes
6602 else
6603 gcc_cv_header_memcheck_h=no
6605 rm -f conftest.err conftest.$ac_ext
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6607 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6609 # Prepare PATH_SEPARATOR.
6610 # The user is always right.
6611 if test "${PATH_SEPARATOR+set}" != set; then
6612 echo "#! /bin/sh" >conf$$.sh
6613 echo "exit 0" >>conf$$.sh
6614 chmod +x conf$$.sh
6615 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6616 PATH_SEPARATOR=';'
6617 else
6618 PATH_SEPARATOR=:
6620 rm -f conf$$.sh
6623 # Find out how to test for executable files. Don't use a zero-byte file,
6624 # as systems may use methods other than mode bits to determine executability.
6625 cat >conf$$.file <<_ASEOF
6626 #! /bin/sh
6627 exit 0
6628 _ASEOF
6629 chmod +x conf$$.file
6630 if test -x conf$$.file >/dev/null 2>&1; then
6631 ac_executable_p="test -x"
6632 else
6633 ac_executable_p="test -f"
6635 rm -f conf$$.file
6637 # Extract the first word of "valgrind", so it can be a program name with args.
6638 set dummy valgrind; ac_word=$2
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6640 $as_echo_n "checking for $ac_word... " >&6; }
6641 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6642 $as_echo_n "(cached) " >&6
6643 else
6644 case "$valgrind_path" in
6645 [\\/]* | ?:[\\/]*)
6646 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6649 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6650 for ac_dir in $PATH; do
6651 IFS="$ac_save_IFS"
6652 test -z "$ac_dir" && ac_dir=.
6653 for ac_exec_ext in '' $ac_executable_extensions; do
6654 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6655 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6656 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6657 break 2
6660 done
6661 done
6662 IFS="$ac_save_IFS"
6664 esac
6666 valgrind_path="$ac_cv_path_valgrind_path"
6667 if test -n "$valgrind_path"; then
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6669 $as_echo "$valgrind_path" >&6; }
6670 else
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6675 if test "x$valgrind_path" = "x" \
6676 || (test $have_valgrind_h = no \
6677 && test $gcc_cv_header_memcheck_h = no \
6678 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6679 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6681 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6682 valgrind_command="$valgrind_path -q"
6684 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6686 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6688 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6691 if test $gcc_cv_header_memcheck_h = yes; then
6693 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6700 # Enable code coverage collection
6701 # Check whether --enable-coverage was given.
6702 if test "${enable_coverage+set}" = set; then :
6703 enableval=$enable_coverage; case "${enableval}" in
6704 yes|noopt)
6705 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6707 opt)
6708 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6711 # a.k.a. --disable-coverage
6712 coverage_flags=""
6715 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6717 esac
6718 else
6719 coverage_flags=""
6724 # Check whether --enable-gather-detailed-mem-stats was given.
6725 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6726 enableval=$enable_gather_detailed_mem_stats;
6727 else
6728 enable_gather_detailed_mem_stats=no
6731 if test x$enable_gather_detailed_mem_stats = xyes ; then
6733 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6737 # -------------------------------
6738 # Miscenalleous configure options
6739 # -------------------------------
6741 # See if we are building gcc with C++.
6742 # Check whether --enable-build-with-cxx was given.
6743 if test "${enable_build_with_cxx+set}" = set; then :
6744 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6745 else
6746 ENABLE_BUILD_WITH_CXX=no
6751 # With stabs
6753 # Check whether --with-stabs was given.
6754 if test "${with_stabs+set}" = set; then :
6755 withval=$with_stabs; stabs="$with_stabs"
6756 else
6757 stabs=no
6761 # Determine whether or not multilibs are enabled.
6762 # Check whether --enable-multilib was given.
6763 if test "${enable_multilib+set}" = set; then :
6764 enableval=$enable_multilib;
6765 else
6766 enable_multilib=yes
6771 # Enable __cxa_atexit for C++.
6772 # Check whether --enable-__cxa_atexit was given.
6773 if test "${enable___cxa_atexit+set}" = set; then :
6774 enableval=$enable___cxa_atexit;
6778 # Enable C extension for decimal float if target supports it.
6779 # Check whether --enable-decimal-float was given.
6780 if test "${enable_decimal_float+set}" = set; then :
6781 enableval=$enable_decimal_float;
6782 case $enable_decimal_float in
6783 yes | no | bid | dpd) ;;
6784 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6785 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6786 esac
6788 else
6790 case $target in
6791 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6792 enable_decimal_float=yes
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6796 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6797 enable_decimal_float=no
6799 esac
6804 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6806 cat >>confdefs.h <<_ACEOF
6807 #define ENABLE_DECIMAL_FLOAT $dfp
6808 _ACEOF
6811 # x86's use BID format instead of DPD
6812 case x$enable_decimal_float in
6813 xyes)
6814 case $target in
6815 i?86*-*-linux* | x86_64*-*-linux*)
6816 enable_decimal_float=bid
6819 enable_decimal_float=dpd
6821 esac
6823 xno)
6824 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6825 # dependency on libdecnumber.
6826 enable_decimal_float=dpd
6828 esac
6831 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6833 cat >>confdefs.h <<_ACEOF
6834 #define ENABLE_DECIMAL_BID_FORMAT $bid
6835 _ACEOF
6838 # Enable C extension for fixed-point arithmetic.
6839 # Check whether --enable-fixed-point was given.
6840 if test "${enable_fixed_point+set}" = set; then :
6841 enableval=$enable_fixed_point;
6843 else
6845 case $target in
6846 mips*-*-*)
6847 case $host in
6848 mips*-sgi-irix*)
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6850 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6851 enable_fixed_point=no
6854 enable_fixed_point=yes
6856 esac
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6860 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6861 enable_fixed_point=no
6863 esac
6869 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6871 cat >>confdefs.h <<_ACEOF
6872 #define ENABLE_FIXED_POINT $fixedpoint
6873 _ACEOF
6876 # Enable threads
6877 # Pass with no value to take the default
6878 # Pass with a value to specify a thread package
6879 # Check whether --enable-threads was given.
6880 if test "${enable_threads+set}" = set; then :
6881 enableval=$enable_threads;
6882 else
6883 enable_threads=''
6887 # Check whether --enable-tls was given.
6888 if test "${enable_tls+set}" = set; then :
6889 enableval=$enable_tls;
6890 case $enable_tls in
6891 yes | no) ;;
6892 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6893 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6894 esac
6896 else
6897 enable_tls=''
6901 # Check whether --enable-objc-gc was given.
6902 if test "${enable_objc_gc+set}" = set; then :
6903 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6904 objc_boehm_gc=''
6905 else
6906 objc_boehm_gc=1
6908 else
6909 objc_boehm_gc=''
6914 # Check whether --with-dwarf2 was given.
6915 if test "${with_dwarf2+set}" = set; then :
6916 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6917 else
6918 dwarf2=no
6922 # Check whether --enable-shared was given.
6923 if test "${enable_shared+set}" = set; then :
6924 enableval=$enable_shared;
6925 case $enable_shared in
6926 yes | no) ;;
6928 enable_shared=no
6929 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6930 for pkg in $enableval; do
6931 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6932 enable_shared=yes
6934 done
6935 IFS="$ac_save_ifs"
6937 esac
6939 else
6940 enable_shared=yes
6946 # Check whether --with-build-sysroot was given.
6947 if test "${with_build_sysroot+set}" = set; then :
6948 withval=$with_build_sysroot;
6953 # Check whether --with-sysroot was given.
6954 if test "${with_sysroot+set}" = set; then :
6955 withval=$with_sysroot;
6956 case ${with_sysroot} in
6957 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6958 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6959 esac
6961 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6962 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6964 if test "x$prefix" = xNONE; then
6965 test_prefix=/usr/local
6966 else
6967 test_prefix=$prefix
6969 if test "x$exec_prefix" = xNONE; then
6970 test_exec_prefix=$test_prefix
6971 else
6972 test_exec_prefix=$exec_prefix
6974 case ${TARGET_SYSTEM_ROOT} in
6975 "${test_prefix}"|"${test_prefix}/"*|\
6976 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6977 '${prefix}'|'${prefix}/'*|\
6978 '${exec_prefix}'|'${exec_prefix}/'*)
6979 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6980 TARGET_SYSTEM_ROOT_DEFINE="$t"
6982 esac
6984 else
6986 TARGET_SYSTEM_ROOT=
6987 TARGET_SYSTEM_ROOT_DEFINE=
6988 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6996 # Build with intermodule optimisations
6997 # Check whether --enable-intermodule was given.
6998 if test "${enable_intermodule+set}" = set; then :
6999 enableval=$enable_intermodule; case ${enable_intermodule} in
7000 yes) onestep="-onestep";;
7001 *) onestep="";;
7002 esac
7003 else
7004 onestep=""
7011 # Check whether --with-pkgversion was given.
7012 if test "${with_pkgversion+set}" = set; then :
7013 withval=$with_pkgversion; case "$withval" in
7014 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7015 no) PKGVERSION= ;;
7016 *) PKGVERSION="($withval) " ;;
7017 esac
7018 else
7019 PKGVERSION="(GCC) "
7027 # Check whether --with-bugurl was given.
7028 if test "${with_bugurl+set}" = set; then :
7029 withval=$with_bugurl; case "$withval" in
7030 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7031 no) BUGURL=
7033 *) BUGURL="$withval"
7035 esac
7036 else
7037 BUGURL="http://gcc.gnu.org/bugs.html"
7041 case ${BUGURL} in
7043 REPORT_BUGS_TO=
7044 REPORT_BUGS_TEXI=
7047 REPORT_BUGS_TO="<$BUGURL>"
7048 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7050 esac;
7055 # Sanity check enable_languages in case someone does not run the toplevel
7056 # configure # script.
7057 # Check whether --enable-languages was given.
7058 if test "${enable_languages+set}" = set; then :
7059 enableval=$enable_languages; case ,${enable_languages}, in
7060 ,,|,yes,)
7061 # go safe -- we cannot be much sure without the toplevel
7062 # configure's
7063 # analysis of which target libs are present and usable
7064 enable_languages=c
7066 *,all,*)
7067 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7069 *,c,*)
7072 enable_languages=c,${enable_languages}
7074 esac
7075 else
7076 enable_languages=c
7081 # Check whether --with-multilib-list was given.
7082 if test "${with_multilib_list+set}" = set; then :
7083 withval=$with_multilib_list; :
7084 else
7085 with_multilib_list=default
7089 # -------------------------
7090 # Checks for other programs
7091 # -------------------------
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7094 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7095 set x ${MAKE-make}
7096 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7097 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7098 $as_echo_n "(cached) " >&6
7099 else
7100 cat >conftest.make <<\_ACEOF
7101 SHELL = /bin/sh
7102 all:
7103 @echo '@@@%%%=$(MAKE)=@@@%%%'
7104 _ACEOF
7105 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7106 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7107 *@@@%%%=?*=@@@%%%*)
7108 eval ac_cv_prog_make_${ac_make}_set=yes;;
7110 eval ac_cv_prog_make_${ac_make}_set=no;;
7111 esac
7112 rm -f conftest.make
7114 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7116 $as_echo "yes" >&6; }
7117 SET_MAKE=
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 SET_MAKE="MAKE=${MAKE-make}"
7125 # Find some useful tools
7126 for ac_prog in gawk mawk nawk awk
7128 # Extract the first word of "$ac_prog", so it can be a program name with args.
7129 set dummy $ac_prog; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if test "${ac_cv_prog_AWK+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$AWK"; then
7136 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_prog_AWK="$ac_prog"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7149 done
7150 done
7151 IFS=$as_save_IFS
7155 AWK=$ac_cv_prog_AWK
7156 if test -n "$AWK"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7158 $as_echo "$AWK" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7165 test -n "$AWK" && break
7166 done
7168 # We need awk to create options.c and options.h.
7169 # Bail out if it's missing.
7170 case ${AWK} in
7171 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7172 esac
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7175 $as_echo_n "checking whether ln -s works... " >&6; }
7176 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 rm -f conftestdata_t
7180 echo >conftestdata_f
7181 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7182 then
7183 gcc_cv_prog_LN_S="ln -s"
7184 else
7185 if ln conftestdata_f conftestdata_t 2>/dev/null
7186 then
7187 gcc_cv_prog_LN_S=ln
7188 else
7189 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7190 then
7191 gcc_cv_prog_LN_S="cp -p"
7192 else
7193 gcc_cv_prog_LN_S=cp
7197 rm -f conftestdata_f conftestdata_t
7200 LN_S="$gcc_cv_prog_LN_S"
7201 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7203 $as_echo "yes" >&6; }
7204 else
7205 if test "$gcc_cv_prog_LN_S" = "ln"; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7207 $as_echo "no, using ln" >&6; }
7208 else
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7210 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7215 $as_echo_n "checking whether ln works... " >&6; }
7216 if test "${acx_cv_prog_LN+set}" = set; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 rm -f conftestdata_t
7220 echo >conftestdata_f
7221 if ln conftestdata_f conftestdata_t 2>/dev/null
7222 then
7223 acx_cv_prog_LN=ln
7224 else
7225 acx_cv_prog_LN=no
7227 rm -f conftestdata_f conftestdata_t
7230 if test $acx_cv_prog_LN = no; then
7231 LN="$LN_S"
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7233 $as_echo "no, using $LN" >&6; }
7234 else
7235 LN="$acx_cv_prog_LN"
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 $as_echo "yes" >&6; }
7240 if test -n "$ac_tool_prefix"; then
7241 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7246 $as_echo_n "(cached) " >&6
7247 else
7248 if test -n "$RANLIB"; then
7249 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7254 IFS=$as_save_IFS
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 break 2
7262 done
7263 done
7264 IFS=$as_save_IFS
7268 RANLIB=$ac_cv_prog_RANLIB
7269 if test -n "$RANLIB"; then
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7271 $as_echo "$RANLIB" >&6; }
7272 else
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7279 if test -z "$ac_cv_prog_RANLIB"; then
7280 ac_ct_RANLIB=$RANLIB
7281 # Extract the first word of "ranlib", so it can be a program name with args.
7282 set dummy ranlib; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$ac_ct_RANLIB"; then
7289 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7298 ac_cv_prog_ac_ct_RANLIB="ranlib"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7302 done
7303 done
7304 IFS=$as_save_IFS
7308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7309 if test -n "$ac_ct_RANLIB"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7311 $as_echo "$ac_ct_RANLIB" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7317 if test "x$ac_ct_RANLIB" = x; then
7318 RANLIB=":"
7319 else
7320 case $cross_compiling:$ac_tool_warned in
7321 yes:)
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324 ac_tool_warned=yes ;;
7325 esac
7326 RANLIB=$ac_ct_RANLIB
7328 else
7329 RANLIB="$ac_cv_prog_RANLIB"
7332 case "${host}" in
7333 *-*-darwin*)
7334 # By default, the Darwin ranlib will not treat common symbols as
7335 # definitions when building the archive table of contents. Other
7336 # ranlibs do that; pass an option to the Darwin ranlib that makes
7337 # it behave similarly.
7338 ranlib_flags="-c"
7341 ranlib_flags=""
7342 esac
7345 # Find a good install program. We prefer a C program (faster),
7346 # so one script is as good as another. But avoid the broken or
7347 # incompatible versions:
7348 # SysV /etc/install, /usr/sbin/install
7349 # SunOS /usr/etc/install
7350 # IRIX /sbin/install
7351 # AIX /bin/install
7352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7354 # ./install, which can be erroneously created by make from ./install.sh.
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7356 $as_echo_n "checking for a BSD compatible install... " >&6; }
7357 if test -z "$INSTALL"; then
7358 if test "${ac_cv_path_install+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7362 for ac_dir in $PATH; do
7363 # Account for people who put trailing slashes in PATH elements.
7364 case "$ac_dir/" in
7365 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7367 # OSF1 and SCO ODT 3.0 have their own names for install.
7368 for ac_prog in ginstall scoinst install; do
7369 if test -f $ac_dir/$ac_prog; then
7370 if test $ac_prog = install &&
7371 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7372 # AIX install. It has an incompatible calling convention.
7373 # OSF/1 installbsd also uses dspmsg, but is usable.
7375 else
7376 ac_cv_path_install="$ac_dir/$ac_prog -c"
7377 break 2
7380 done
7382 esac
7383 done
7384 IFS="$ac_save_IFS"
7387 if test "${ac_cv_path_install+set}" = set; then
7388 INSTALL="$ac_cv_path_install"
7389 else
7390 # As a last resort, use the slow shell script. We don't cache a
7391 # path for INSTALL within a source directory, because that will
7392 # break other packages using the cache if that directory is
7393 # removed, or if the path is relative.
7394 INSTALL="$ac_install_sh"
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7398 $as_echo "$INSTALL" >&6; }
7400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7401 # It thinks the first close brace ends the variable substitution.
7402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7407 # See if cmp has --ignore-initial.
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7409 $as_echo_n "checking for cmp's capabilities... " >&6; }
7410 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 echo abfoo >t1
7414 echo cdfoo >t2
7415 gcc_cv_prog_cmp_skip=slowcompare
7416 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7417 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7419 else
7420 gcc_cv_prog_cmp_skip=gnucompare
7423 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7424 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7425 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7427 else
7428 gcc_cv_prog_cmp_skip=fastcompare
7432 rm t1 t2
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7436 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7437 make_compare_target=$gcc_cv_prog_cmp_skip
7441 # See if we have the mktemp command.
7442 # Extract the first word of "mktemp", so it can be a program name with args.
7443 set dummy mktemp; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$have_mktemp_command"; then
7450 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_have_mktemp_command="yes"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7467 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7470 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7471 if test -n "$have_mktemp_command"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7473 $as_echo "$have_mktemp_command" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7481 # See if makeinfo has been installed and is modern enough
7482 # that we can use it.
7484 # Extract the first word of "makeinfo", so it can be a program name with args.
7485 set dummy makeinfo; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 if test -n "$MAKEINFO"; then
7492 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7501 ac_cv_prog_MAKEINFO="makeinfo"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7505 done
7506 done
7507 IFS=$as_save_IFS
7511 MAKEINFO=$ac_cv_prog_MAKEINFO
7512 if test -n "$MAKEINFO"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7514 $as_echo "$MAKEINFO" >&6; }
7515 else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7521 if test -n "$MAKEINFO"; then
7522 # Found it, now check the version.
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7524 $as_echo_n "checking for modern makeinfo... " >&6; }
7525 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7526 $as_echo_n "(cached) " >&6
7527 else
7528 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7529 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7531 case $ac_prog_version in
7532 '') gcc_cv_prog_makeinfo_modern=no;;
7533 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7534 *) gcc_cv_prog_makeinfo_modern=no;;
7535 esac
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7539 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7540 else
7541 gcc_cv_prog_makeinfo_modern=no
7543 if test $gcc_cv_prog_makeinfo_modern = no; then
7544 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7547 if test $gcc_cv_prog_makeinfo_modern = no; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7549 *** Makeinfo is missing or too old.
7550 *** Info documentation will not be built." >&5
7551 $as_echo "$as_me: WARNING:
7552 *** Makeinfo is missing or too old.
7553 *** Info documentation will not be built." >&2;}
7554 BUILD_INFO=
7555 else
7556 BUILD_INFO=info
7560 # Is pod2man recent enough to regenerate manpages?
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7562 $as_echo_n "checking for recent Pod::Man... " >&6; }
7563 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7565 $as_echo "yes" >&6; }
7566 GENERATED_MANPAGES=generated-manpages
7567 else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7570 GENERATED_MANPAGES=
7574 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7576 # How about lex?
7577 for ac_prog in flex
7579 # Extract the first word of "$ac_prog", so it can be a program name with args.
7580 set dummy $ac_prog; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if test "${ac_cv_prog_FLEX+set}" = set; then :
7584 $as_echo_n "(cached) " >&6
7585 else
7586 if test -n "$FLEX"; then
7587 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
7595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596 ac_cv_prog_FLEX="$ac_prog"
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7600 done
7601 done
7602 IFS=$as_save_IFS
7606 FLEX=$ac_cv_prog_FLEX
7607 if test -n "$FLEX"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7609 $as_echo "$FLEX" >&6; }
7610 else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7616 test -n "$FLEX" && break
7617 done
7618 test -n "$FLEX" || FLEX="$MISSING flex"
7621 # Bison?
7622 for ac_prog in bison
7624 # Extract the first word of "$ac_prog", so it can be a program name with args.
7625 set dummy $ac_prog; ac_word=$2
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627 $as_echo_n "checking for $ac_word... " >&6; }
7628 if test "${ac_cv_prog_BISON+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
7630 else
7631 if test -n "$BISON"; then
7632 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7633 else
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635 for as_dir in $PATH
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_prog_BISON="$ac_prog"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 break 2
7645 done
7646 done
7647 IFS=$as_save_IFS
7651 BISON=$ac_cv_prog_BISON
7652 if test -n "$BISON"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7654 $as_echo "$BISON" >&6; }
7655 else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7661 test -n "$BISON" && break
7662 done
7663 test -n "$BISON" || BISON="$MISSING bison"
7666 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7667 # check for build == host before using them.
7669 # NM
7670 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7671 && test -d ../binutils ; then
7672 NM='$(objdir)/../binutils/nm-new'
7673 else
7674 # Extract the first word of "nm", so it can be a program name with args.
7675 set dummy nm; ac_word=$2
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677 $as_echo_n "checking for $ac_word... " >&6; }
7678 if test "${ac_cv_prog_NM+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 if test -n "$NM"; then
7682 ac_cv_prog_NM="$NM" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7691 ac_cv_prog_NM="nm"
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7693 break 2
7695 done
7696 done
7697 IFS=$as_save_IFS
7699 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7702 NM=$ac_cv_prog_NM
7703 if test -n "$NM"; then
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7705 $as_echo "$NM" >&6; }
7706 else
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7714 # AR
7715 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7716 && test -d ../binutils ; then
7717 AR='$(objdir)/../binutils/ar'
7718 else
7719 # Extract the first word of "ar", so it can be a program name with args.
7720 set dummy ar; ac_word=$2
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7722 $as_echo_n "checking for $ac_word... " >&6; }
7723 if test "${ac_cv_prog_AR+set}" = set; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 if test -n "$AR"; then
7727 ac_cv_prog_AR="$AR" # Let the user override the test.
7728 else
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_prog_AR="ar"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7740 done
7741 done
7742 IFS=$as_save_IFS
7744 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7747 AR=$ac_cv_prog_AR
7748 if test -n "$AR"; then
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7750 $as_echo "$AR" >&6; }
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7760 # --------------------
7761 # Checks for C headers
7762 # --------------------
7764 # Need to reject headers which give warnings, so that the -Werror bootstrap
7765 # works later. *sigh* This needs to come before all header checks.
7767 ac_c_preproc_warn_flag=yes
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7770 $as_echo_n "checking for ANSI C header files... " >&6; }
7771 if test "${ac_cv_header_stdc+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
7773 else
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h. */
7776 #include <stdlib.h>
7777 #include <stdarg.h>
7778 #include <string.h>
7779 #include <float.h>
7782 main ()
7786 return 0;
7788 _ACEOF
7789 if ac_fn_c_try_compile "$LINENO"; then :
7790 ac_cv_header_stdc=yes
7791 else
7792 ac_cv_header_stdc=no
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 if test $ac_cv_header_stdc = yes; then
7797 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799 /* end confdefs.h. */
7800 #include <string.h>
7802 _ACEOF
7803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7804 $EGREP "memchr" >/dev/null 2>&1; then :
7806 else
7807 ac_cv_header_stdc=no
7809 rm -f conftest*
7813 if test $ac_cv_header_stdc = yes; then
7814 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 #include <stdlib.h>
7819 _ACEOF
7820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7821 $EGREP "free" >/dev/null 2>&1; then :
7823 else
7824 ac_cv_header_stdc=no
7826 rm -f conftest*
7830 if test $ac_cv_header_stdc = yes; then
7831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7832 if test "$cross_compiling" = yes; then :
7834 else
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7837 #include <ctype.h>
7838 #include <stdlib.h>
7839 #if ((' ' & 0x0FF) == 0x020)
7840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7842 #else
7843 # define ISLOWER(c) \
7844 (('a' <= (c) && (c) <= 'i') \
7845 || ('j' <= (c) && (c) <= 'r') \
7846 || ('s' <= (c) && (c) <= 'z'))
7847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7848 #endif
7850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7852 main ()
7854 int i;
7855 for (i = 0; i < 256; i++)
7856 if (XOR (islower (i), ISLOWER (i))
7857 || toupper (i) != TOUPPER (i))
7858 return 2;
7859 return 0;
7861 _ACEOF
7862 if ac_fn_c_try_run "$LINENO"; then :
7864 else
7865 ac_cv_header_stdc=no
7867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7868 conftest.$ac_objext conftest.beam conftest.$ac_ext
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7874 $as_echo "$ac_cv_header_stdc" >&6; }
7875 if test $ac_cv_header_stdc = yes; then
7877 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7882 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7883 if test "${ac_cv_header_time+set}" = set; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #include <sys/types.h>
7889 #include <sys/time.h>
7890 #include <time.h>
7893 main ()
7895 if ((struct tm *) 0)
7896 return 0;
7898 return 0;
7900 _ACEOF
7901 if ac_fn_c_try_compile "$LINENO"; then :
7902 ac_cv_header_time=yes
7903 else
7904 ac_cv_header_time=no
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7909 $as_echo "$ac_cv_header_time" >&6; }
7910 if test $ac_cv_header_time = yes; then
7912 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7917 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7918 if test "${gcc_cv_header_string+set}" = set; then :
7919 $as_echo_n "(cached) " >&6
7920 else
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h. */
7923 #include <string.h>
7924 #include <strings.h>
7926 main ()
7930 return 0;
7932 _ACEOF
7933 if ac_fn_c_try_compile "$LINENO"; then :
7934 gcc_cv_header_string=yes
7935 else
7936 gcc_cv_header_string=no
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7941 $as_echo "$gcc_cv_header_string" >&6; }
7942 if test $gcc_cv_header_string = yes; then
7944 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7949 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7950 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
7952 else
7953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h. */
7955 #include <sys/types.h>
7956 #include <sys/wait.h>
7957 #ifndef WEXITSTATUS
7958 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7959 #endif
7960 #ifndef WIFEXITED
7961 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7962 #endif
7965 main ()
7967 int s;
7968 wait (&s);
7969 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7971 return 0;
7973 _ACEOF
7974 if ac_fn_c_try_compile "$LINENO"; then :
7975 ac_cv_header_sys_wait_h=yes
7976 else
7977 ac_cv_header_sys_wait_h=no
7979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7982 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7983 if test $ac_cv_header_sys_wait_h = yes; then
7985 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7989 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7990 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7991 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7992 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7993 do :
7994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7995 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7996 eval as_val=\$$as_ac_Header
7997 if test "x$as_val" = x""yes; then :
7998 cat >>confdefs.h <<_ACEOF
7999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000 _ACEOF
8003 done
8006 # Check for thread headers.
8007 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8008 if test "x$ac_cv_header_thread_h" = x""yes; then :
8009 have_thread_h=yes
8010 else
8011 have_thread_h=
8014 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8015 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8016 have_pthread_h=yes
8017 else
8018 have_pthread_h=
8022 # These tests can't be done till we know if we have limits.h.
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8024 $as_echo_n "checking for CHAR_BIT... " >&6; }
8025 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 #ifdef HAVE_LIMITS_H
8031 #include <limits.h>
8032 #endif
8033 #ifdef CHAR_BIT
8034 found
8035 #endif
8036 _ACEOF
8037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8038 $EGREP "found" >/dev/null 2>&1; then :
8039 gcc_cv_decl_char_bit=yes
8040 else
8041 gcc_cv_decl_char_bit=no
8043 rm -f conftest*
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8048 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8049 if test $gcc_cv_decl_char_bit = no; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8051 $as_echo_n "checking number of bits in a byte... " >&6; }
8052 if test "${gcc_cv_c_nbby+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8056 gcc_cv_c_nbby=
8057 while test $i -lt 65; do
8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h. */
8062 main ()
8064 switch(0) {
8065 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8066 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8069 return 0;
8071 _ACEOF
8072 if ac_fn_c_try_compile "$LINENO"; then :
8073 gcc_cv_c_nbby=$i; break
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 i=`expr $i + 1`
8077 done
8078 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8082 $as_echo "$gcc_cv_c_nbby" >&6; }
8083 if test $gcc_cv_c_nbby = failed; then
8084 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8085 else
8087 cat >>confdefs.h <<_ACEOF
8088 #define CHAR_BIT $gcc_cv_c_nbby
8089 _ACEOF
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8094 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8095 if test "${ac_cv_c_bigendian+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 ac_cv_c_bigendian=unknown
8099 # See if we're dealing with a universal compiler.
8100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h. */
8102 #ifndef __APPLE_CC__
8103 not a universal capable compiler
8104 #endif
8105 typedef int dummy;
8107 _ACEOF
8108 if ac_fn_c_try_compile "$LINENO"; then :
8110 # Check for potential -arch flags. It is not universal unless
8111 # there are at least two -arch flags with different values.
8112 ac_arch=
8113 ac_prev=
8114 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8115 if test -n "$ac_prev"; then
8116 case $ac_word in
8117 i?86 | x86_64 | ppc | ppc64)
8118 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8119 ac_arch=$ac_word
8120 else
8121 ac_cv_c_bigendian=universal
8122 break
8125 esac
8126 ac_prev=
8127 elif test "x$ac_word" = "x-arch"; then
8128 ac_prev=arch
8130 done
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8133 if test $ac_cv_c_bigendian = unknown; then
8134 # See if sys/param.h defines the BYTE_ORDER macro.
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137 #include <sys/types.h>
8138 #include <sys/param.h>
8141 main ()
8143 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8144 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8145 && LITTLE_ENDIAN)
8146 bogus endian macros
8147 #endif
8150 return 0;
8152 _ACEOF
8153 if ac_fn_c_try_compile "$LINENO"; then :
8154 # It does; now see whether it defined to BIG_ENDIAN or not.
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 #include <sys/types.h>
8158 #include <sys/param.h>
8161 main ()
8163 #if BYTE_ORDER != BIG_ENDIAN
8164 not big endian
8165 #endif
8168 return 0;
8170 _ACEOF
8171 if ac_fn_c_try_compile "$LINENO"; then :
8172 ac_cv_c_bigendian=yes
8173 else
8174 ac_cv_c_bigendian=no
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 if test $ac_cv_c_bigendian = unknown; then
8181 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8184 #include <limits.h>
8187 main ()
8189 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8190 bogus endian macros
8191 #endif
8194 return 0;
8196 _ACEOF
8197 if ac_fn_c_try_compile "$LINENO"; then :
8198 # It does; now see whether it defined to _BIG_ENDIAN or not.
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 #include <limits.h>
8204 main ()
8206 #ifndef _BIG_ENDIAN
8207 not big endian
8208 #endif
8211 return 0;
8213 _ACEOF
8214 if ac_fn_c_try_compile "$LINENO"; then :
8215 ac_cv_c_bigendian=yes
8216 else
8217 ac_cv_c_bigendian=no
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223 if test $ac_cv_c_bigendian = unknown; then
8224 # Compile a test program.
8225 if test "$cross_compiling" = yes; then :
8226 # Try to guess by grepping values from an object file.
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h. */
8229 short int ascii_mm[] =
8230 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8231 short int ascii_ii[] =
8232 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8233 int use_ascii (int i) {
8234 return ascii_mm[i] + ascii_ii[i];
8236 short int ebcdic_ii[] =
8237 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8238 short int ebcdic_mm[] =
8239 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8240 int use_ebcdic (int i) {
8241 return ebcdic_mm[i] + ebcdic_ii[i];
8243 extern int foo;
8246 main ()
8248 return use_ascii (foo) == use_ebcdic (foo);
8250 return 0;
8252 _ACEOF
8253 if ac_fn_c_try_compile "$LINENO"; then :
8254 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8255 ac_cv_c_bigendian=yes
8257 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8258 if test "$ac_cv_c_bigendian" = unknown; then
8259 ac_cv_c_bigendian=no
8260 else
8261 # finding both strings is unlikely to happen, but who knows?
8262 ac_cv_c_bigendian=unknown
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8267 else
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270 $ac_includes_default
8272 main ()
8275 /* Are we little or big endian? From Harbison&Steele. */
8276 union
8278 long int l;
8279 char c[sizeof (long int)];
8280 } u;
8281 u.l = 1;
8282 return u.c[sizeof (long int) - 1] == 1;
8285 return 0;
8287 _ACEOF
8288 if ac_fn_c_try_run "$LINENO"; then :
8289 ac_cv_c_bigendian=no
8290 else
8291 ac_cv_c_bigendian=yes
8293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8294 conftest.$ac_objext conftest.beam conftest.$ac_ext
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8300 $as_echo "$ac_cv_c_bigendian" >&6; }
8301 case $ac_cv_c_bigendian in #(
8302 yes)
8303 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8304 ;; #(
8306 ;; #(
8307 universal)
8309 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8311 ;; #(
8313 as_fn_error "unknown endianness
8314 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8315 esac
8318 # --------
8319 # UNSORTED
8320 # --------
8323 # These libraries may be used by collect2.
8324 # We may need a special search path to get them linked.
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8326 $as_echo_n "checking for collect2 libraries... " >&6; }
8327 if test "${gcc_cv_collect2_libs+set}" = set; then :
8328 $as_echo_n "(cached) " >&6
8329 else
8330 save_LIBS="$LIBS"
8331 for libs in '' -lld -lmld \
8332 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8333 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8335 LIBS="$libs"
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8339 /* Override any GCC internal prototype to avoid an error.
8340 Use char because int might match the return type of a GCC
8341 builtin and then its argument prototype would still apply. */
8342 #ifdef __cplusplus
8343 extern "C"
8344 #endif
8345 char ldopen ();
8347 main ()
8349 return ldopen ();
8351 return 0;
8353 _ACEOF
8354 if ac_fn_c_try_link "$LINENO"; then :
8355 gcc_cv_collect2_libs="$libs"; break
8357 rm -f core conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
8359 done
8360 LIBS="$save_LIBS"
8361 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8364 $as_echo "$gcc_cv_collect2_libs" >&6; }
8365 case $gcc_cv_collect2_libs in
8366 "none required") ;;
8367 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8368 esac
8371 # When building Ada code on Alpha, we need exc_resume which is usually in
8372 # -lexc. So test for it.
8373 save_LIBS="$LIBS"
8374 LIBS=
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8376 $as_echo_n "checking for library containing exc_resume... " >&6; }
8377 if test "${ac_cv_search_exc_resume+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380 ac_func_search_save_LIBS=$LIBS
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8384 /* Override any GCC internal prototype to avoid an error.
8385 Use char because int might match the return type of a GCC
8386 builtin and then its argument prototype would still apply. */
8387 #ifdef __cplusplus
8388 extern "C"
8389 #endif
8390 char exc_resume ();
8392 main ()
8394 return exc_resume ();
8396 return 0;
8398 _ACEOF
8399 for ac_lib in '' exc; do
8400 if test -z "$ac_lib"; then
8401 ac_res="none required"
8402 else
8403 ac_res=-l$ac_lib
8404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8406 if ac_fn_c_try_link "$LINENO"; then :
8407 ac_cv_search_exc_resume=$ac_res
8409 rm -f core conftest.err conftest.$ac_objext \
8410 conftest$ac_exeext
8411 if test "${ac_cv_search_exc_resume+set}" = set; then :
8412 break
8414 done
8415 if test "${ac_cv_search_exc_resume+set}" = set; then :
8417 else
8418 ac_cv_search_exc_resume=no
8420 rm conftest.$ac_ext
8421 LIBS=$ac_func_search_save_LIBS
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8424 $as_echo "$ac_cv_search_exc_resume" >&6; }
8425 ac_res=$ac_cv_search_exc_resume
8426 if test "$ac_res" != no; then :
8427 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8431 GNAT_LIBEXC="$LIBS"
8432 LIBS="$save_LIBS"
8435 # Some systems put ldexp and frexp in libm instead of libc; assume
8436 # they're both in the same place. jcf-dump needs them.
8437 save_LIBS="$LIBS"
8438 LIBS=
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8440 $as_echo_n "checking for library containing ldexp... " >&6; }
8441 if test "${ac_cv_search_ldexp+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 ac_func_search_save_LIBS=$LIBS
8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446 /* end confdefs.h. */
8448 /* Override any GCC internal prototype to avoid an error.
8449 Use char because int might match the return type of a GCC
8450 builtin and then its argument prototype would still apply. */
8451 #ifdef __cplusplus
8452 extern "C"
8453 #endif
8454 char ldexp ();
8456 main ()
8458 return ldexp ();
8460 return 0;
8462 _ACEOF
8463 for ac_lib in '' m; do
8464 if test -z "$ac_lib"; then
8465 ac_res="none required"
8466 else
8467 ac_res=-l$ac_lib
8468 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8470 if ac_fn_c_try_link "$LINENO"; then :
8471 ac_cv_search_ldexp=$ac_res
8473 rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext
8475 if test "${ac_cv_search_ldexp+set}" = set; then :
8476 break
8478 done
8479 if test "${ac_cv_search_ldexp+set}" = set; then :
8481 else
8482 ac_cv_search_ldexp=no
8484 rm conftest.$ac_ext
8485 LIBS=$ac_func_search_save_LIBS
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8488 $as_echo "$ac_cv_search_ldexp" >&6; }
8489 ac_res=$ac_cv_search_ldexp
8490 if test "$ac_res" != no; then :
8491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8495 LDEXP_LIB="$LIBS"
8496 LIBS="$save_LIBS"
8499 # Use <inttypes.h> only if it exists,
8500 # doesn't clash with <sys/types.h>, and declares intmax_t.
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8502 $as_echo_n "checking for inttypes.h... " >&6; }
8503 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h. */
8508 #include <sys/types.h>
8509 #include <inttypes.h>
8511 main ()
8513 intmax_t i = -1;
8515 return 0;
8517 _ACEOF
8518 if ac_fn_c_try_compile "$LINENO"; then :
8519 gcc_cv_header_inttypes_h=yes
8520 else
8521 gcc_cv_header_inttypes_h=no
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8527 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8528 if test $gcc_cv_header_inttypes_h = yes; then
8530 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8536 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8537 sysconf strsignal getrusage nl_langinfo \
8538 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8539 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
8540 do :
8541 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8542 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8543 eval as_val=\$$as_ac_var
8544 if test "x$as_val" = x""yes; then :
8545 cat >>confdefs.h <<_ACEOF
8546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8547 _ACEOF
8550 done
8553 if test x$ac_cv_func_mbstowcs = xyes; then
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8555 $as_echo_n "checking whether mbstowcs works... " >&6; }
8556 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 if test "$cross_compiling" = yes; then :
8560 gcc_cv_func_mbstowcs_works=yes
8561 else
8562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8563 /* end confdefs.h. */
8564 #include <stdlib.h>
8565 int main()
8567 mbstowcs(0, "", 0);
8568 return 0;
8570 _ACEOF
8571 if ac_fn_c_try_run "$LINENO"; then :
8572 gcc_cv_func_mbstowcs_works=yes
8573 else
8574 gcc_cv_func_mbstowcs_works=no
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577 conftest.$ac_objext conftest.beam conftest.$ac_ext
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8582 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8583 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8585 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8590 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8591 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8593 else
8595 cat >>confdefs.h <<_ACEOF
8596 #define ssize_t int
8597 _ACEOF
8601 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8602 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8604 else
8606 cat >>confdefs.h <<_ACEOF
8607 #define caddr_t char *
8608 _ACEOF
8614 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8615 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8616 gcc_header_sys_mman_h=yes
8617 else
8618 gcc_header_sys_mman_h=no
8621 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8622 if test "x$ac_cv_func_mmap" = x""yes; then :
8623 gcc_func_mmap=yes
8624 else
8625 gcc_func_mmap=no
8628 if test "$gcc_header_sys_mman_h" != yes \
8629 || test "$gcc_func_mmap" != yes; then
8630 gcc_cv_func_mmap_file=no
8631 gcc_cv_func_mmap_dev_zero=no
8632 gcc_cv_func_mmap_anon=no
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8635 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8636 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 # Add a system to this blacklist if
8640 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8641 # memory area containing the same data that you'd get if you applied
8642 # read() to the same fd. The only system known to have a problem here
8643 # is VMS, where text files have record structure.
8644 case "$host_os" in
8645 vms* | ultrix*)
8646 gcc_cv_func_mmap_file=no ;;
8648 gcc_cv_func_mmap_file=yes;;
8649 esac
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8652 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8654 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8655 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 # Add a system to this blacklist if it has mmap() but /dev/zero
8659 # does not exist, or if mmapping /dev/zero does not give anonymous
8660 # zeroed pages with both the following properties:
8661 # 1. If you map N consecutive pages in with one call, and then
8662 # unmap any subset of those pages, the pages that were not
8663 # explicitly unmapped remain accessible.
8664 # 2. If you map two adjacent blocks of memory and then unmap them
8665 # both at once, they must both go away.
8666 # Systems known to be in this category are Windows (all variants),
8667 # VMS, and Darwin.
8668 case "$host_os" in
8669 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8670 gcc_cv_func_mmap_dev_zero=no ;;
8672 gcc_cv_func_mmap_dev_zero=yes;;
8673 esac
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8676 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8678 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8680 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8681 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8682 $as_echo_n "(cached) " >&6
8683 else
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 #include <sys/types.h>
8687 #include <sys/mman.h>
8688 #include <unistd.h>
8690 #ifndef MAP_ANONYMOUS
8691 #define MAP_ANONYMOUS MAP_ANON
8692 #endif
8695 main ()
8697 int n = MAP_ANONYMOUS;
8699 return 0;
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"; then :
8703 gcc_cv_decl_map_anon=yes
8704 else
8705 gcc_cv_decl_map_anon=no
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8710 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8712 if test $gcc_cv_decl_map_anon = no; then
8713 gcc_cv_func_mmap_anon=no
8714 else
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8716 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8717 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
8719 else
8720 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8721 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8722 # doesn't give anonymous zeroed pages with the same properties listed
8723 # above for use of /dev/zero.
8724 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8725 case "$host_os" in
8726 vms* | cygwin* | pe | mingw* | sco* | udk* )
8727 gcc_cv_func_mmap_anon=no ;;
8729 gcc_cv_func_mmap_anon=yes;;
8730 esac
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8733 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8737 if test $gcc_cv_func_mmap_file = yes; then
8739 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8742 if test $gcc_cv_func_mmap_dev_zero = yes; then
8744 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8747 if test $gcc_cv_func_mmap_anon = yes; then
8749 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8754 case "${host}" in
8755 *-*-*vms*)
8756 # Under VMS, vfork works very differently than on Unix. The standard test
8757 # won't work, and it isn't easily adaptable. It makes more sense to
8758 # just force it.
8759 ac_cv_func_vfork_works=yes
8761 esac
8762 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8763 if test "x$ac_cv_type_pid_t" = x""yes; then :
8765 else
8767 cat >>confdefs.h <<_ACEOF
8768 #define pid_t int
8769 _ACEOF
8773 for ac_header in vfork.h
8774 do :
8775 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8776 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8777 cat >>confdefs.h <<_ACEOF
8778 #define HAVE_VFORK_H 1
8779 _ACEOF
8782 done
8784 for ac_func in fork vfork
8785 do :
8786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8787 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8788 eval as_val=\$$as_ac_var
8789 if test "x$as_val" = x""yes; then :
8790 cat >>confdefs.h <<_ACEOF
8791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8792 _ACEOF
8795 done
8797 if test "x$ac_cv_func_fork" = xyes; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8799 $as_echo_n "checking for working fork... " >&6; }
8800 if test "${ac_cv_func_fork_works+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 if test "$cross_compiling" = yes; then :
8804 ac_cv_func_fork_works=cross
8805 else
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 $ac_includes_default
8810 main ()
8813 /* By Ruediger Kuhlmann. */
8814 return fork () < 0;
8817 return 0;
8819 _ACEOF
8820 if ac_fn_c_try_run "$LINENO"; then :
8821 ac_cv_func_fork_works=yes
8822 else
8823 ac_cv_func_fork_works=no
8825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8826 conftest.$ac_objext conftest.beam conftest.$ac_ext
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8831 $as_echo "$ac_cv_func_fork_works" >&6; }
8833 else
8834 ac_cv_func_fork_works=$ac_cv_func_fork
8836 if test "x$ac_cv_func_fork_works" = xcross; then
8837 case $host in
8838 *-*-amigaos* | *-*-msdosdjgpp*)
8839 # Override, as these systems have only a dummy fork() stub
8840 ac_cv_func_fork_works=no
8843 ac_cv_func_fork_works=yes
8845 esac
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8847 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8849 ac_cv_func_vfork_works=$ac_cv_func_vfork
8850 if test "x$ac_cv_func_vfork" = xyes; then
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8852 $as_echo_n "checking for working vfork... " >&6; }
8853 if test "${ac_cv_func_vfork_works+set}" = set; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 if test "$cross_compiling" = yes; then :
8857 ac_cv_func_vfork_works=cross
8858 else
8859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8861 /* Thanks to Paul Eggert for this test. */
8862 $ac_includes_default
8863 #include <sys/wait.h>
8864 #ifdef HAVE_VFORK_H
8865 # include <vfork.h>
8866 #endif
8867 /* On some sparc systems, changes by the child to local and incoming
8868 argument registers are propagated back to the parent. The compiler
8869 is told about this with #include <vfork.h>, but some compilers
8870 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8871 static variable whose address is put into a register that is
8872 clobbered by the vfork. */
8873 static void
8874 #ifdef __cplusplus
8875 sparc_address_test (int arg)
8876 # else
8877 sparc_address_test (arg) int arg;
8878 #endif
8880 static pid_t child;
8881 if (!child) {
8882 child = vfork ();
8883 if (child < 0) {
8884 perror ("vfork");
8885 _exit(2);
8887 if (!child) {
8888 arg = getpid();
8889 write(-1, "", 0);
8890 _exit (arg);
8896 main ()
8898 pid_t parent = getpid ();
8899 pid_t child;
8901 sparc_address_test (0);
8903 child = vfork ();
8905 if (child == 0) {
8906 /* Here is another test for sparc vfork register problems. This
8907 test uses lots of local variables, at least as many local
8908 variables as main has allocated so far including compiler
8909 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8910 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8911 reuse the register of parent for one of the local variables,
8912 since it will think that parent can't possibly be used any more
8913 in this routine. Assigning to the local variable will thus
8914 munge parent in the parent process. */
8915 pid_t
8916 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8917 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8918 /* Convince the compiler that p..p7 are live; otherwise, it might
8919 use the same hardware register for all 8 local variables. */
8920 if (p != p1 || p != p2 || p != p3 || p != p4
8921 || p != p5 || p != p6 || p != p7)
8922 _exit(1);
8924 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8925 from child file descriptors. If the child closes a descriptor
8926 before it execs or exits, this munges the parent's descriptor
8927 as well. Test for this by closing stdout in the child. */
8928 _exit(close(fileno(stdout)) != 0);
8929 } else {
8930 int status;
8931 struct stat st;
8933 while (wait(&status) != child)
8935 return (
8936 /* Was there some problem with vforking? */
8937 child < 0
8939 /* Did the child fail? (This shouldn't happen.) */
8940 || status
8942 /* Did the vfork/compiler bug occur? */
8943 || parent != getpid()
8945 /* Did the file descriptor bug occur? */
8946 || fstat(fileno(stdout), &st) != 0
8950 _ACEOF
8951 if ac_fn_c_try_run "$LINENO"; then :
8952 ac_cv_func_vfork_works=yes
8953 else
8954 ac_cv_func_vfork_works=no
8956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8957 conftest.$ac_objext conftest.beam conftest.$ac_ext
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8962 $as_echo "$ac_cv_func_vfork_works" >&6; }
8965 if test "x$ac_cv_func_fork_works" = xcross; then
8966 ac_cv_func_vfork_works=$ac_cv_func_vfork
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8968 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8971 if test "x$ac_cv_func_vfork_works" = xyes; then
8973 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8975 else
8977 $as_echo "#define vfork fork" >>confdefs.h
8980 if test "x$ac_cv_func_fork_works" = xyes; then
8982 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8988 if test "X$prefix" = "XNONE"; then
8989 acl_final_prefix="$ac_default_prefix"
8990 else
8991 acl_final_prefix="$prefix"
8993 if test "X$exec_prefix" = "XNONE"; then
8994 acl_final_exec_prefix='${prefix}'
8995 else
8996 acl_final_exec_prefix="$exec_prefix"
8998 acl_save_prefix="$prefix"
8999 prefix="$acl_final_prefix"
9000 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9001 prefix="$acl_save_prefix"
9004 # Check whether --with-gnu-ld was given.
9005 if test "${with_gnu_ld+set}" = set; then :
9006 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9007 else
9008 with_gnu_ld=no
9011 # Prepare PATH_SEPARATOR.
9012 # The user is always right.
9013 if test "${PATH_SEPARATOR+set}" != set; then
9014 echo "#! /bin/sh" >conf$$.sh
9015 echo "exit 0" >>conf$$.sh
9016 chmod +x conf$$.sh
9017 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9018 PATH_SEPARATOR=';'
9019 else
9020 PATH_SEPARATOR=:
9022 rm -f conf$$.sh
9024 ac_prog=ld
9025 if test "$GCC" = yes; then
9026 # Check if gcc -print-prog-name=ld gives a path.
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9028 $as_echo_n "checking for ld used by GCC... " >&6; }
9029 case $host in
9030 *-*-mingw*)
9031 # gcc leaves a trailing carriage return which upsets mingw
9032 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9034 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9035 esac
9036 case $ac_prog in
9037 # Accept absolute paths.
9038 [\\/]* | [A-Za-z]:[\\/]*)
9039 re_direlt='/[^/][^/]*/\.\./'
9040 # Canonicalize the path of ld
9041 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9042 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9043 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9044 done
9045 test -z "$LD" && LD="$ac_prog"
9048 # If it fails, then pretend we aren't using GCC.
9049 ac_prog=ld
9052 # If it is relative, then search for the first ld in PATH.
9053 with_gnu_ld=unknown
9055 esac
9056 elif test "$with_gnu_ld" = yes; then
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9058 $as_echo_n "checking for GNU ld... " >&6; }
9059 else
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9061 $as_echo_n "checking for non-GNU ld... " >&6; }
9063 if test "${acl_cv_path_LD+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 if test -z "$LD"; then
9067 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9068 for ac_dir in $PATH; do
9069 test -z "$ac_dir" && ac_dir=.
9070 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9071 acl_cv_path_LD="$ac_dir/$ac_prog"
9072 # Check to see if the program is GNU ld. I'd rather use --version,
9073 # but apparently some GNU ld's only accept -v.
9074 # Break only if it was the GNU/non-GNU ld that we prefer.
9075 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9076 test "$with_gnu_ld" != no && break
9077 else
9078 test "$with_gnu_ld" != yes && break
9081 done
9082 IFS="$ac_save_ifs"
9083 else
9084 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9088 LD="$acl_cv_path_LD"
9089 if test -n "$LD"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9091 $as_echo "$LD" >&6; }
9092 else
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9096 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9098 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9099 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9103 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9104 acl_cv_prog_gnu_ld=yes
9105 else
9106 acl_cv_prog_gnu_ld=no
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9110 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9111 with_gnu_ld=$acl_cv_prog_gnu_ld
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9116 $as_echo_n "checking for shared library run path origin... " >&6; }
9117 if test "${acl_cv_rpath+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9119 else
9121 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9122 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9123 . ./conftest.sh
9124 rm -f ./conftest.sh
9125 acl_cv_rpath=done
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9129 $as_echo "$acl_cv_rpath" >&6; }
9130 wl="$acl_cv_wl"
9131 libext="$acl_cv_libext"
9132 shlibext="$acl_cv_shlibext"
9133 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9134 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9135 hardcode_direct="$acl_cv_hardcode_direct"
9136 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9137 # Check whether --enable-rpath was given.
9138 if test "${enable_rpath+set}" = set; then :
9139 enableval=$enable_rpath; :
9140 else
9141 enable_rpath=yes
9151 use_additional=yes
9153 acl_save_prefix="$prefix"
9154 prefix="$acl_final_prefix"
9155 acl_save_exec_prefix="$exec_prefix"
9156 exec_prefix="$acl_final_exec_prefix"
9158 eval additional_includedir=\"$includedir\"
9159 eval additional_libdir=\"$libdir\"
9161 exec_prefix="$acl_save_exec_prefix"
9162 prefix="$acl_save_prefix"
9165 # Check whether --with-libiconv-prefix was given.
9166 if test "${with_libiconv_prefix+set}" = set; then :
9167 withval=$with_libiconv_prefix;
9168 if test "X$withval" = "Xno"; then
9169 use_additional=no
9170 else
9171 if test "X$withval" = "X"; then
9173 acl_save_prefix="$prefix"
9174 prefix="$acl_final_prefix"
9175 acl_save_exec_prefix="$exec_prefix"
9176 exec_prefix="$acl_final_exec_prefix"
9178 eval additional_includedir=\"$includedir\"
9179 eval additional_libdir=\"$libdir\"
9181 exec_prefix="$acl_save_exec_prefix"
9182 prefix="$acl_save_prefix"
9184 else
9185 additional_includedir="$withval/include"
9186 additional_libdir="$withval/lib"
9192 LIBICONV=
9193 LTLIBICONV=
9194 INCICONV=
9195 rpathdirs=
9196 ltrpathdirs=
9197 names_already_handled=
9198 names_next_round='iconv '
9199 while test -n "$names_next_round"; do
9200 names_this_round="$names_next_round"
9201 names_next_round=
9202 for name in $names_this_round; do
9203 already_handled=
9204 for n in $names_already_handled; do
9205 if test "$n" = "$name"; then
9206 already_handled=yes
9207 break
9209 done
9210 if test -z "$already_handled"; then
9211 names_already_handled="$names_already_handled $name"
9212 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9213 eval value=\"\$HAVE_LIB$uppername\"
9214 if test -n "$value"; then
9215 if test "$value" = yes; then
9216 eval value=\"\$LIB$uppername\"
9217 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9218 eval value=\"\$LTLIB$uppername\"
9219 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9220 else
9223 else
9224 found_dir=
9225 found_la=
9226 found_so=
9227 found_a=
9228 if test $use_additional = yes; then
9229 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9230 found_dir="$additional_libdir"
9231 found_so="$additional_libdir/lib$name.$shlibext"
9232 if test -f "$additional_libdir/lib$name.la"; then
9233 found_la="$additional_libdir/lib$name.la"
9235 else
9236 if test -f "$additional_libdir/lib$name.$libext"; then
9237 found_dir="$additional_libdir"
9238 found_a="$additional_libdir/lib$name.$libext"
9239 if test -f "$additional_libdir/lib$name.la"; then
9240 found_la="$additional_libdir/lib$name.la"
9245 if test "X$found_dir" = "X"; then
9246 for x in $LDFLAGS $LTLIBICONV; do
9248 acl_save_prefix="$prefix"
9249 prefix="$acl_final_prefix"
9250 acl_save_exec_prefix="$exec_prefix"
9251 exec_prefix="$acl_final_exec_prefix"
9252 eval x=\"$x\"
9253 exec_prefix="$acl_save_exec_prefix"
9254 prefix="$acl_save_prefix"
9256 case "$x" in
9257 -L*)
9258 dir=`echo "X$x" | sed -e 's/^X-L//'`
9259 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9260 found_dir="$dir"
9261 found_so="$dir/lib$name.$shlibext"
9262 if test -f "$dir/lib$name.la"; then
9263 found_la="$dir/lib$name.la"
9265 else
9266 if test -f "$dir/lib$name.$libext"; then
9267 found_dir="$dir"
9268 found_a="$dir/lib$name.$libext"
9269 if test -f "$dir/lib$name.la"; then
9270 found_la="$dir/lib$name.la"
9275 esac
9276 if test "X$found_dir" != "X"; then
9277 break
9279 done
9281 if test "X$found_dir" != "X"; then
9282 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9283 if test "X$found_so" != "X"; then
9284 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9286 else
9287 haveit=
9288 for x in $ltrpathdirs; do
9289 if test "X$x" = "X$found_dir"; then
9290 haveit=yes
9291 break
9293 done
9294 if test -z "$haveit"; then
9295 ltrpathdirs="$ltrpathdirs $found_dir"
9297 if test "$hardcode_direct" = yes; then
9298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9299 else
9300 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9301 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9302 haveit=
9303 for x in $rpathdirs; do
9304 if test "X$x" = "X$found_dir"; then
9305 haveit=yes
9306 break
9308 done
9309 if test -z "$haveit"; then
9310 rpathdirs="$rpathdirs $found_dir"
9312 else
9313 haveit=
9314 for x in $LDFLAGS $LIBICONV; do
9316 acl_save_prefix="$prefix"
9317 prefix="$acl_final_prefix"
9318 acl_save_exec_prefix="$exec_prefix"
9319 exec_prefix="$acl_final_exec_prefix"
9320 eval x=\"$x\"
9321 exec_prefix="$acl_save_exec_prefix"
9322 prefix="$acl_save_prefix"
9324 if test "X$x" = "X-L$found_dir"; then
9325 haveit=yes
9326 break
9328 done
9329 if test -z "$haveit"; then
9330 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9332 if test "$hardcode_minus_L" != no; then
9333 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9334 else
9335 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9340 else
9341 if test "X$found_a" != "X"; then
9342 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9343 else
9344 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9347 additional_includedir=
9348 case "$found_dir" in
9349 */lib | */lib/)
9350 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9351 additional_includedir="$basedir/include"
9353 esac
9354 if test "X$additional_includedir" != "X"; then
9355 if test "X$additional_includedir" != "X/usr/include"; then
9356 haveit=
9357 if test "X$additional_includedir" = "X/usr/local/include"; then
9358 if test -n "$GCC"; then
9359 case $host_os in
9360 linux*) haveit=yes;;
9361 esac
9364 if test -z "$haveit"; then
9365 for x in $CPPFLAGS $INCICONV; do
9367 acl_save_prefix="$prefix"
9368 prefix="$acl_final_prefix"
9369 acl_save_exec_prefix="$exec_prefix"
9370 exec_prefix="$acl_final_exec_prefix"
9371 eval x=\"$x\"
9372 exec_prefix="$acl_save_exec_prefix"
9373 prefix="$acl_save_prefix"
9375 if test "X$x" = "X-I$additional_includedir"; then
9376 haveit=yes
9377 break
9379 done
9380 if test -z "$haveit"; then
9381 if test -d "$additional_includedir"; then
9382 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9388 if test -n "$found_la"; then
9389 save_libdir="$libdir"
9390 case "$found_la" in
9391 */* | *\\*) . "$found_la" ;;
9392 *) . "./$found_la" ;;
9393 esac
9394 libdir="$save_libdir"
9395 for dep in $dependency_libs; do
9396 case "$dep" in
9397 -L*)
9398 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9399 if test "X$additional_libdir" != "X/usr/lib"; then
9400 haveit=
9401 if test "X$additional_libdir" = "X/usr/local/lib"; then
9402 if test -n "$GCC"; then
9403 case $host_os in
9404 linux*) haveit=yes;;
9405 esac
9408 if test -z "$haveit"; then
9409 haveit=
9410 for x in $LDFLAGS $LIBICONV; do
9412 acl_save_prefix="$prefix"
9413 prefix="$acl_final_prefix"
9414 acl_save_exec_prefix="$exec_prefix"
9415 exec_prefix="$acl_final_exec_prefix"
9416 eval x=\"$x\"
9417 exec_prefix="$acl_save_exec_prefix"
9418 prefix="$acl_save_prefix"
9420 if test "X$x" = "X-L$additional_libdir"; then
9421 haveit=yes
9422 break
9424 done
9425 if test -z "$haveit"; then
9426 if test -d "$additional_libdir"; then
9427 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9430 haveit=
9431 for x in $LDFLAGS $LTLIBICONV; do
9433 acl_save_prefix="$prefix"
9434 prefix="$acl_final_prefix"
9435 acl_save_exec_prefix="$exec_prefix"
9436 exec_prefix="$acl_final_exec_prefix"
9437 eval x=\"$x\"
9438 exec_prefix="$acl_save_exec_prefix"
9439 prefix="$acl_save_prefix"
9441 if test "X$x" = "X-L$additional_libdir"; then
9442 haveit=yes
9443 break
9445 done
9446 if test -z "$haveit"; then
9447 if test -d "$additional_libdir"; then
9448 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9454 -R*)
9455 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9456 if test "$enable_rpath" != no; then
9457 haveit=
9458 for x in $rpathdirs; do
9459 if test "X$x" = "X$dir"; then
9460 haveit=yes
9461 break
9463 done
9464 if test -z "$haveit"; then
9465 rpathdirs="$rpathdirs $dir"
9467 haveit=
9468 for x in $ltrpathdirs; do
9469 if test "X$x" = "X$dir"; then
9470 haveit=yes
9471 break
9473 done
9474 if test -z "$haveit"; then
9475 ltrpathdirs="$ltrpathdirs $dir"
9479 -l*)
9480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9482 *.la)
9483 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9486 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9487 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9489 esac
9490 done
9492 else
9493 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9494 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9498 done
9499 done
9500 if test "X$rpathdirs" != "X"; then
9501 if test -n "$hardcode_libdir_separator"; then
9502 alldirs=
9503 for found_dir in $rpathdirs; do
9504 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9505 done
9506 acl_save_libdir="$libdir"
9507 libdir="$alldirs"
9508 eval flag=\"$hardcode_libdir_flag_spec\"
9509 libdir="$acl_save_libdir"
9510 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9511 else
9512 for found_dir in $rpathdirs; do
9513 acl_save_libdir="$libdir"
9514 libdir="$found_dir"
9515 eval flag=\"$hardcode_libdir_flag_spec\"
9516 libdir="$acl_save_libdir"
9517 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9518 done
9521 if test "X$ltrpathdirs" != "X"; then
9522 for found_dir in $ltrpathdirs; do
9523 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9524 done
9533 am_save_CPPFLAGS="$CPPFLAGS"
9535 for element in $INCICONV; do
9536 haveit=
9537 for x in $CPPFLAGS; do
9539 acl_save_prefix="$prefix"
9540 prefix="$acl_final_prefix"
9541 acl_save_exec_prefix="$exec_prefix"
9542 exec_prefix="$acl_final_exec_prefix"
9543 eval x=\"$x\"
9544 exec_prefix="$acl_save_exec_prefix"
9545 prefix="$acl_save_prefix"
9547 if test "X$x" = "X$element"; then
9548 haveit=yes
9549 break
9551 done
9552 if test -z "$haveit"; then
9553 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9555 done
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9559 $as_echo_n "checking for iconv... " >&6; }
9560 if test "${am_cv_func_iconv+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9564 am_cv_func_iconv="no, consider installing GNU libiconv"
9565 am_cv_lib_iconv=no
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 #include <stdlib.h>
9569 #include <iconv.h>
9571 main ()
9573 iconv_t cd = iconv_open("","");
9574 iconv(cd,NULL,NULL,NULL,NULL);
9575 iconv_close(cd);
9577 return 0;
9579 _ACEOF
9580 if ac_fn_c_try_link "$LINENO"; then :
9581 am_cv_func_iconv=yes
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 if test "$am_cv_func_iconv" != yes; then
9586 am_save_LIBS="$LIBS"
9587 LIBS="$LIBS $LIBICONV"
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 #include <stdlib.h>
9591 #include <iconv.h>
9593 main ()
9595 iconv_t cd = iconv_open("","");
9596 iconv(cd,NULL,NULL,NULL,NULL);
9597 iconv_close(cd);
9599 return 0;
9601 _ACEOF
9602 if ac_fn_c_try_link "$LINENO"; then :
9603 am_cv_lib_iconv=yes
9604 am_cv_func_iconv=yes
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 LIBS="$am_save_LIBS"
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9613 $as_echo "$am_cv_func_iconv" >&6; }
9614 if test "$am_cv_func_iconv" = yes; then
9616 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9619 if test "$am_cv_lib_iconv" = yes; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9621 $as_echo_n "checking how to link with libiconv... " >&6; }
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9623 $as_echo "$LIBICONV" >&6; }
9624 else
9625 CPPFLAGS="$am_save_CPPFLAGS"
9626 LIBICONV=
9627 LTLIBICONV=
9632 if test "$am_cv_func_iconv" = yes; then
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9634 $as_echo_n "checking for iconv declaration... " >&6; }
9635 if test "${am_cv_proto_iconv+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9642 #include <stdlib.h>
9643 #include <iconv.h>
9644 extern
9645 #ifdef __cplusplus
9647 #endif
9648 #if defined(__STDC__) || defined(__cplusplus)
9649 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9650 #else
9651 size_t iconv();
9652 #endif
9655 main ()
9659 return 0;
9661 _ACEOF
9662 if ac_fn_c_try_compile "$LINENO"; then :
9663 am_cv_proto_iconv_arg1=""
9664 else
9665 am_cv_proto_iconv_arg1="const"
9667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9668 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);"
9671 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9673 }$am_cv_proto_iconv" >&5
9674 $as_echo "${ac_t:-
9675 }$am_cv_proto_iconv" >&6; }
9677 cat >>confdefs.h <<_ACEOF
9678 #define ICONV_CONST $am_cv_proto_iconv_arg1
9679 _ACEOF
9683 # Until we have in-tree GNU iconv:
9684 LIBICONV_DEP=
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9689 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9690 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 #include <locale.h>
9697 main ()
9699 return LC_MESSAGES
9701 return 0;
9703 _ACEOF
9704 if ac_fn_c_try_link "$LINENO"; then :
9705 am_cv_val_LC_MESSAGES=yes
9706 else
9707 am_cv_val_LC_MESSAGES=no
9709 rm -f core conftest.err conftest.$ac_objext \
9710 conftest$ac_exeext conftest.$ac_ext
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9713 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9714 if test $am_cv_val_LC_MESSAGES = yes; then
9716 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9723 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9724 if test "${am_cv_langinfo_codeset+set}" = set; then :
9725 $as_echo_n "(cached) " >&6
9726 else
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 #include <langinfo.h>
9731 main ()
9733 char* cs = nl_langinfo(CODESET);
9735 return 0;
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739 am_cv_langinfo_codeset=yes
9740 else
9741 am_cv_langinfo_codeset=no
9743 rm -f core conftest.err conftest.$ac_objext \
9744 conftest$ac_exeext conftest.$ac_ext
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9748 $as_echo "$am_cv_langinfo_codeset" >&6; }
9749 if test $am_cv_langinfo_codeset = yes; then
9751 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9756 # We will need to find libiberty.h and ansidecl.h
9757 saved_CFLAGS="$CFLAGS"
9758 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9759 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9760 strsignal strstr strverscmp \
9761 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9762 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
9764 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9766 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9767 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9768 $as_echo_n "(cached) " >&6
9769 else
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9772 #undef $ac_tr_decl
9773 #define $ac_tr_decl 1
9775 #include "ansidecl.h"
9776 #include "system.h"
9779 main ()
9781 #ifndef $ac_func
9782 char *(*pfn) = (char *(*)) $ac_func ;
9783 #endif
9785 return 0;
9787 _ACEOF
9788 if ac_fn_c_try_compile "$LINENO"; then :
9789 eval "gcc_cv_have_decl_$ac_func=yes"
9790 else
9791 eval "gcc_cv_have_decl_$ac_func=no"
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9798 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9799 #define $ac_tr_decl 1
9800 _ACEOF
9802 else
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9805 #define $ac_tr_decl 0
9806 _ACEOF
9810 done
9813 for ac_func in getrlimit setrlimit getrusage
9815 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9817 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9818 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9819 $as_echo_n "(cached) " >&6
9820 else
9821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9823 #undef $ac_tr_decl
9824 #define $ac_tr_decl 1
9826 #include "ansidecl.h"
9827 #include "system.h"
9828 #ifdef HAVE_SYS_RESOURCE_H
9829 #include <sys/resource.h>
9830 #endif
9834 main ()
9836 #ifndef $ac_func
9837 char *(*pfn) = (char *(*)) $ac_func ;
9838 #endif
9840 return 0;
9842 _ACEOF
9843 if ac_fn_c_try_compile "$LINENO"; then :
9844 eval "gcc_cv_have_decl_$ac_func=yes"
9845 else
9846 eval "gcc_cv_have_decl_$ac_func=no"
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9853 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9854 #define $ac_tr_decl 1
9855 _ACEOF
9857 else
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9859 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9860 #define $ac_tr_decl 0
9861 _ACEOF
9865 done
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9871 #include "ansidecl.h"
9872 #include "system.h"
9873 #ifdef HAVE_SYS_RESOURCE_H
9874 #include <sys/resource.h>
9875 #endif
9878 main ()
9880 rlim_t l = 0;
9882 return 0;
9884 _ACEOF
9885 if ac_fn_c_try_compile "$LINENO"; then :
9887 else
9889 $as_echo "#define rlim_t long" >>confdefs.h
9892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9894 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9895 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9896 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9897 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9898 for ac_func in ldgetname
9900 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9902 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9903 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9904 $as_echo_n "(cached) " >&6
9905 else
9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 #undef $ac_tr_decl
9909 #define $ac_tr_decl 1
9911 #include "ansidecl.h"
9912 #include "system.h"
9913 #ifdef HAVE_LDFCN_H
9914 #undef FREAD
9915 #undef FWRITE
9916 #include <ldfcn.h>
9917 #endif
9921 main ()
9923 #ifndef $ac_func
9924 char *(*pfn) = (char *(*)) $ac_func ;
9925 #endif
9927 return 0;
9929 _ACEOF
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931 eval "gcc_cv_have_decl_$ac_func=yes"
9932 else
9933 eval "gcc_cv_have_decl_$ac_func=no"
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9938 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9940 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9941 #define $ac_tr_decl 1
9942 _ACEOF
9944 else
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9947 #define $ac_tr_decl 0
9948 _ACEOF
9952 done
9955 for ac_func in times
9957 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9959 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9960 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965 #undef $ac_tr_decl
9966 #define $ac_tr_decl 1
9968 #include "ansidecl.h"
9969 #include "system.h"
9970 #ifdef HAVE_SYS_TIMES_H
9971 #include <sys/times.h>
9972 #endif
9976 main ()
9978 #ifndef $ac_func
9979 char *(*pfn) = (char *(*)) $ac_func ;
9980 #endif
9982 return 0;
9984 _ACEOF
9985 if ac_fn_c_try_compile "$LINENO"; then :
9986 eval "gcc_cv_have_decl_$ac_func=yes"
9987 else
9988 eval "gcc_cv_have_decl_$ac_func=no"
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9993 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9995 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9996 #define $ac_tr_decl 1
9997 _ACEOF
9999 else
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10002 #define $ac_tr_decl 0
10003 _ACEOF
10007 done
10010 for ac_func in sigaltstack
10012 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10014 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10015 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10019 /* end confdefs.h. */
10020 #undef $ac_tr_decl
10021 #define $ac_tr_decl 1
10023 #include "ansidecl.h"
10024 #include "system.h"
10025 #include <signal.h>
10029 main ()
10031 #ifndef $ac_func
10032 char *(*pfn) = (char *(*)) $ac_func ;
10033 #endif
10035 return 0;
10037 _ACEOF
10038 if ac_fn_c_try_compile "$LINENO"; then :
10039 eval "gcc_cv_have_decl_$ac_func=yes"
10040 else
10041 eval "gcc_cv_have_decl_$ac_func=no"
10043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10048 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10049 #define $ac_tr_decl 1
10050 _ACEOF
10052 else
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10055 #define $ac_tr_decl 0
10056 _ACEOF
10060 done
10063 # More time-related stuff.
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10065 $as_echo_n "checking for struct tms... " >&6; }
10066 if test "${ac_cv_struct_tms+set}" = set; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10073 #include "ansidecl.h"
10074 #include "system.h"
10075 #ifdef HAVE_SYS_TIMES_H
10076 #include <sys/times.h>
10077 #endif
10080 main ()
10082 struct tms tms;
10084 return 0;
10086 _ACEOF
10087 if ac_fn_c_try_compile "$LINENO"; then :
10088 ac_cv_struct_tms=yes
10089 else
10090 ac_cv_struct_tms=no
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10095 $as_echo "$ac_cv_struct_tms" >&6; }
10096 if test $ac_cv_struct_tms = yes; then
10098 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10102 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10103 # revisit after autoconf 2.50.
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10105 $as_echo_n "checking for clock_t... " >&6; }
10106 if test "${gcc_cv_type_clock_t+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10108 else
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10113 #include "ansidecl.h"
10114 #include "system.h"
10117 main ()
10119 clock_t x;
10121 return 0;
10123 _ACEOF
10124 if ac_fn_c_try_compile "$LINENO"; then :
10125 gcc_cv_type_clock_t=yes
10126 else
10127 gcc_cv_type_clock_t=no
10129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10132 $as_echo "$gcc_cv_type_clock_t" >&6; }
10133 if test $gcc_cv_type_clock_t = yes; then
10135 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10139 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10140 CFLAGS="$saved_CFLAGS"
10142 # Check whether --enable-initfini-array was given.
10143 if test "${enable_initfini_array+set}" = set; then :
10144 enableval=$enable_initfini_array;
10145 else
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10148 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10149 if test "${gcc_cv_initfini_array+set}" = set; then :
10150 $as_echo_n "(cached) " >&6
10151 else
10152 if test "$cross_compiling" = yes; then :
10153 gcc_cv_initfini_array=no
10154 else
10155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10158 static int x = -1;
10159 int main (void) { return x; }
10160 int foo (void) { x = 0; }
10161 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10162 _ACEOF
10163 if ac_fn_c_try_run "$LINENO"; then :
10164 gcc_cv_initfini_array=yes
10165 else
10166 gcc_cv_initfini_array=no
10168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10169 conftest.$ac_objext conftest.beam conftest.$ac_ext
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10174 $as_echo "$gcc_cv_initfini_array" >&6; }
10175 enable_initfini_array=$gcc_cv_initfini_array
10179 if test $enable_initfini_array = yes; then
10181 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10185 # mkdir takes a single argument on some systems.
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10187 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10188 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192 /* end confdefs.h. */
10194 #include <sys/types.h>
10195 #ifdef HAVE_SYS_STAT_H
10196 # include <sys/stat.h>
10197 #endif
10198 #ifdef HAVE_UNISTD_H
10199 # include <unistd.h>
10200 #endif
10201 #ifdef HAVE_DIRECT_H
10202 # include <direct.h>
10203 #endif
10205 main ()
10207 mkdir ("foo", 0);
10209 return 0;
10211 _ACEOF
10212 if ac_fn_c_try_compile "$LINENO"; then :
10213 gcc_cv_mkdir_takes_one_arg=no
10214 else
10215 gcc_cv_mkdir_takes_one_arg=yes
10217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10220 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10221 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10223 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10228 # File extensions
10229 manext='.1'
10230 objext='.o'
10234 # With Setjmp/Longjmp based exception handling.
10235 # Check whether --enable-sjlj-exceptions was given.
10236 if test "${enable_sjlj_exceptions+set}" = set; then :
10237 enableval=$enable_sjlj_exceptions; case $target in
10238 *-*-hpux10*)
10239 if test $enableval != yes; then
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10241 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10242 enableval=yes
10245 esac
10246 force_sjlj_exceptions=yes
10247 else
10248 case $target in
10249 *-*-hpux10*)
10250 force_sjlj_exceptions=yes
10251 enableval=yes
10254 force_sjlj_exceptions=no
10256 esac
10259 if test $force_sjlj_exceptions = yes; then
10260 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10262 cat >>confdefs.h <<_ACEOF
10263 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10264 _ACEOF
10268 # For platforms with the unwind ABI which includes an unwind library,
10269 # libunwind, we can choose to use the system libunwind.
10270 # config.gcc also contains tests of with_system_libunwind.
10273 # Check whether --with-system-libunwind was given.
10274 if test "${with_system_libunwind+set}" = set; then :
10275 withval=$with_system_libunwind;
10278 # If system-libunwind was not specifically set, pick a default setting.
10279 if test x$with_system_libunwind = x; then
10280 case ${target} in
10281 ia64-*-hpux*) with_system_libunwind=yes ;;
10282 *) with_system_libunwind=no ;;
10283 esac
10285 # Based on system-libunwind and target, do we have ipinfo?
10286 if test x$with_system_libunwind = xyes; then
10287 case ${target} in
10288 ia64-*-*) have_unwind_getipinfo=no ;;
10289 *) have_unwind_getipinfo=yes ;;
10290 esac
10291 else
10292 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10294 case ${target} in
10295 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10296 *) have_unwind_getipinfo=yes ;;
10297 esac
10301 if test x$have_unwind_getipinfo = xyes; then
10303 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10308 # --------------------------------------------------------
10309 # Build, host, and target specific configuration fragments
10310 # --------------------------------------------------------
10312 # Collect build-machine-specific information.
10313 . ${srcdir}/config.build
10315 # Collect host-machine-specific information.
10316 . ${srcdir}/config.host
10318 target_gtfiles=
10320 # Collect target-machine-specific information.
10321 . ${srcdir}/config.gcc
10323 extra_objs="${host_extra_objs} ${extra_objs}"
10324 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10326 # Default the target-machine variables that were not explicitly set.
10327 if test x"$tm_file" = x
10328 then tm_file=$cpu_type/$cpu_type.h; fi
10330 if test x"$extra_headers" = x
10331 then extra_headers=; fi
10333 if test x$md_file = x
10334 then md_file=$cpu_type/$cpu_type.md; fi
10336 if test x$out_file = x
10337 then out_file=$cpu_type/$cpu_type.c; fi
10339 if test x"$tmake_file" = x
10340 then tmake_file=$cpu_type/t-$cpu_type
10343 if test x"$dwarf2" = xyes
10344 then tm_file="$tm_file tm-dwarf2.h"
10347 # Say what files are being used for the output code and MD file.
10348 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10349 echo "Using \`$srcdir/config/$md_file' as machine description file."
10351 # If any of the xm_file variables contain nonexistent files, warn
10352 # about them and drop them.
10355 for x in $build_xm_file; do
10356 if test -f $srcdir/config/$x
10357 then bx="$bx $x"
10358 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10359 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10361 done
10362 build_xm_file="$bx"
10365 for x in $host_xm_file; do
10366 if test -f $srcdir/config/$x
10367 then hx="$hx $x"
10368 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10369 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10371 done
10372 host_xm_file="$hx"
10375 for x in $xm_file; do
10376 if test -f $srcdir/config/$x
10377 then tx="$tx $x"
10378 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10379 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10381 done
10382 xm_file="$tx"
10384 count=a
10385 for f in $tm_file; do
10386 count=${count}x
10387 done
10388 if test $count = ax; then
10389 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10390 else
10391 echo "Using the following target machine macro files:"
10392 for f in $tm_file; do
10393 echo " $srcdir/config/$f"
10394 done
10397 if test x$need_64bit_hwint = xyes; then
10399 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10403 if test x$use_long_long_for_widest_fast_int = xyes; then
10405 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10409 count=a
10410 for f in $host_xm_file; do
10411 count=${count}x
10412 done
10413 if test $count = a; then
10415 elif test $count = ax; then
10416 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10417 else
10418 echo "Using the following host machine macro files:"
10419 for f in $host_xm_file; do
10420 echo " $srcdir/config/$f"
10421 done
10423 echo "Using ${out_host_hook_obj} for host machine hooks."
10425 if test "$host_xm_file" != "$build_xm_file"; then
10426 count=a
10427 for f in $build_xm_file; do
10428 count=${count}x
10429 done
10430 if test $count = a; then
10432 elif test $count = ax; then
10433 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10434 else
10435 echo "Using the following build machine macro files:"
10436 for f in $build_xm_file; do
10437 echo " $srcdir/config/$f"
10438 done
10442 case ${host} in
10443 powerpc*-*-darwin*)
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10445 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10446 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10447 $as_echo_n "(cached) " >&6
10448 else
10449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10450 /* end confdefs.h. */
10452 #include <sys/cdefs.h>
10453 #include <sys/signal.h>
10454 #include <ucontext.h>
10455 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10457 _ACEOF
10458 if ac_fn_c_try_compile "$LINENO"; then :
10459 gcc_cv_mcontext_underscores=no
10460 else
10461 gcc_cv_mcontext_underscores=yes
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10466 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10467 if test $gcc_cv_mcontext_underscores = yes; then
10469 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10473 esac
10475 # ---------
10476 # Threading
10477 # ---------
10479 # Check if a valid thread package
10480 case ${enable_threads} in
10481 "" | no)
10482 # No threads
10483 target_thread_file='single'
10485 yes)
10486 # default
10487 target_thread_file='single'
10489 aix | dce | gnat | irix | posix | posix95 | rtems | \
10490 single | solaris | vxworks | win32 | mipssde)
10491 target_thread_file=${enable_threads}
10494 echo "${enable_threads} is an unknown thread package" 1>&2
10495 exit 1
10497 esac
10499 if test x${thread_file} = x; then
10500 # No thread file set by target-specific clauses in config.gcc,
10501 # so use file chosen by default logic above
10502 thread_file=${target_thread_file}
10505 # Make gthr-default.h if we have a thread file.
10506 gthread_flags=
10507 if test $thread_file != single; then
10508 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10509 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10510 rm -f gthr-default.h-t
10511 else
10512 mv -f gthr-default.h-t gthr-default.h
10514 gthread_flags=-DHAVE_GTHR_DEFAULT
10518 # --------
10519 # UNSORTED
10520 # --------
10522 use_cxa_atexit=no
10523 if test x$enable___cxa_atexit = xyes || \
10524 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10525 if test x$host = x$target; then
10526 case $host in
10527 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10528 # keyed to flag_use_cxa_atexit
10529 *-*-mingw32*)
10530 use_cxa_atexit=yes
10533 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10534 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10535 use_cxa_atexit=yes
10536 else
10537 echo "__cxa_atexit can't be enabled on this target"
10541 esac
10542 else
10543 # We can't check for __cxa_atexit when building a cross, so assume
10544 # it is available
10545 use_cxa_atexit=yes
10547 if test x$use_cxa_atexit = xyes; then
10549 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10554 # Look for a file containing extra machine modes.
10555 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10556 extra_modes_file='$(srcdir)'/config/${extra_modes}
10559 cat >>confdefs.h <<_ACEOF
10560 #define EXTRA_MODES_FILE "config/$extra_modes"
10561 _ACEOF
10565 # Convert extra_options into a form suitable for Makefile use.
10566 extra_opt_files=
10567 for f in $extra_options; do
10568 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10569 done
10572 # auto-host.h is the file containing items generated by autoconf and is
10573 # the first file included by config.h.
10574 # If host=build, it is correct to have bconfig include auto-host.h
10575 # as well. If host!=build, we are in error and need to do more
10576 # work to find out the build config parameters.
10577 if test x$host = x$build
10578 then
10579 build_auto=auto-host.h
10580 else
10581 # We create a subdir, then run autoconf in the subdir.
10582 # To prevent recursion we set host and build for the new
10583 # invocation of configure to the build for this invocation
10584 # of configure.
10585 tempdir=build.$$
10586 rm -rf $tempdir
10587 mkdir $tempdir
10588 cd $tempdir
10589 case ${srcdir} in
10590 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10591 *) realsrcdir=../${srcdir};;
10592 esac
10593 saved_CFLAGS="${CFLAGS}"
10594 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10595 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10596 ${realsrcdir}/configure \
10597 --enable-languages=${enable_languages-all} \
10598 --target=$target_alias --host=$build_alias --build=$build_alias
10599 CFLAGS="${saved_CFLAGS}"
10601 # We just finished tests for the build machine, so rename
10602 # the file auto-build.h in the gcc directory.
10603 mv auto-host.h ../auto-build.h
10604 cd ..
10605 rm -rf $tempdir
10606 build_auto=auto-build.h
10610 tm_file="${tm_file} defaults.h"
10611 tm_p_file="${tm_p_file} tm-preds.h"
10612 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10613 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10614 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10615 # put this back in temporarily.
10616 xm_file="auto-host.h ansidecl.h ${xm_file}"
10618 # --------
10619 # UNSORTED
10620 # --------
10622 # Compile in configure arguments.
10623 if test -f configargs.h ; then
10624 # Being re-configured.
10625 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10626 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10627 else
10628 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10631 # Double all backslashes and backslash all quotes to turn
10632 # gcc_config_arguments into a C string.
10633 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10634 $gcc_config_arguments
10636 gcc_config_arguments_str=`cat conftest.out`
10637 rm -f conftest.out
10639 cat > configargs.h <<EOF
10640 /* Generated automatically. */
10641 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10642 static const char thread_model[] = "$thread_file";
10644 static const struct {
10645 const char *name, *value;
10646 } configure_default_options[] = $configure_default_options;
10649 gcc_BASEVER=`cat $srcdir/BASE-VER`
10650 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10651 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10652 if test -f $srcdir/REVISION ; then
10653 gcc_REVISION=`cat $srcdir/REVISION`
10654 else
10655 gcc_REVISION=""
10657 cat > plugin-version.h <<EOF
10658 #include "configargs.h"
10660 static char basever[] = "$gcc_BASEVER";
10661 static char datestamp[] = "$gcc_DATESTAMP";
10662 static char devphase[] = "$gcc_DEVPHASE";
10663 static char revision[] = "$gcc_REVISION";
10665 /* FIXME plugins: We should make the version information more precise.
10666 One way to do is to add a checksum. */
10668 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10669 devphase, revision,
10670 configuration_arguments};
10673 # Internationalization
10674 # If we haven't got the data from the intl directory,
10675 # assume NLS is disabled.
10676 USE_NLS=no
10677 LIBINTL=
10678 LIBINTL_DEP=
10679 INCINTL=
10680 XGETTEXT=
10681 GMSGFMT=
10682 POSUB=
10684 if test -f ../intl/config.intl; then
10685 . ../intl/config.intl
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10688 $as_echo_n "checking whether NLS is requested... " >&6; }
10689 if test x"$USE_NLS" != xyes; then
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10691 $as_echo "no" >&6; }
10692 else
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10694 $as_echo "yes" >&6; }
10696 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10700 $as_echo_n "checking for catalogs to be installed... " >&6; }
10701 # Look for .po and .gmo files in the source directory.
10702 CATALOGS=
10703 XLINGUAS=
10704 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10705 # If there aren't any .gmo files the shell will give us the
10706 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10707 # weeded out.
10708 case "$cat" in *\**)
10709 continue;;
10710 esac
10711 # The quadruple backslash is collapsed to a double backslash
10712 # by the backticks, then collapsed again by the double quotes,
10713 # leaving us with one backslash in the sed expression (right
10714 # before the dot that mustn't act as a wildcard).
10715 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10716 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10717 # The user is allowed to set LINGUAS to a list of languages to
10718 # install catalogs for. If it's empty that means "all of them."
10719 if test "x$LINGUAS" = x; then
10720 CATALOGS="$CATALOGS $cat"
10721 XLINGUAS="$XLINGUAS $lang"
10722 else
10723 case "$LINGUAS" in *$lang*)
10724 CATALOGS="$CATALOGS $cat"
10725 XLINGUAS="$XLINGUAS $lang"
10727 esac
10729 done
10730 LINGUAS="$XLINGUAS"
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10732 $as_echo "$LINGUAS" >&6; }
10735 DATADIRNAME=share
10737 INSTOBJEXT=.mo
10739 GENCAT=gencat
10741 CATOBJEXT=.gmo
10745 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10746 # -liconv on the link line twice.
10747 case "$LIBINTL" in *$LIBICONV*)
10748 LIBICONV= ;;
10749 esac
10751 # Check whether --enable-secureplt was given.
10752 if test "${enable_secureplt+set}" = set; then :
10753 enableval=$enable_secureplt;
10757 # Check whether --enable-cld was given.
10758 if test "${enable_cld+set}" = set; then :
10759 enableval=$enable_cld;
10760 else
10761 enable_cld=no
10765 # Windows32 Registry support for specifying GCC installation paths.
10766 # Check whether --enable-win32-registry was given.
10767 if test "${enable_win32_registry+set}" = set; then :
10768 enableval=$enable_win32_registry;
10772 case $host_os in
10773 win32 | pe | cygwin* | mingw32* | uwin*)
10774 if test "x$enable_win32_registry" != xno; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10776 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10777 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10778 $as_echo_n "(cached) " >&6
10779 else
10780 ac_func_search_save_LIBS=$LIBS
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10787 #ifdef __cplusplus
10788 extern "C"
10789 #endif
10790 char RegOpenKeyExA ();
10792 main ()
10794 return RegOpenKeyExA ();
10796 return 0;
10798 _ACEOF
10799 for ac_lib in '' advapi32; do
10800 if test -z "$ac_lib"; then
10801 ac_res="none required"
10802 else
10803 ac_res=-l$ac_lib
10804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10806 if ac_fn_c_try_link "$LINENO"; then :
10807 ac_cv_search_RegOpenKeyExA=$ac_res
10809 rm -f core conftest.err conftest.$ac_objext \
10810 conftest$ac_exeext
10811 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10812 break
10814 done
10815 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10817 else
10818 ac_cv_search_RegOpenKeyExA=no
10820 rm conftest.$ac_ext
10821 LIBS=$ac_func_search_save_LIBS
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10824 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10825 ac_res=$ac_cv_search_RegOpenKeyExA
10826 if test "$ac_res" != no; then :
10827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10829 else
10830 enable_win32_registry=no
10835 if test "x$enable_win32_registry" != xno; then
10837 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10840 if test "x$enable_win32_registry" != xyes \
10841 && test "x$enable_win32_registry" != x; then
10843 cat >>confdefs.h <<_ACEOF
10844 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10845 _ACEOF
10850 esac
10852 # Get an absolute path to the GCC top-level source directory
10853 holddir=`${PWDCMD-pwd}`
10854 cd $srcdir
10855 topdir=`${PWDCMD-pwd}`
10856 cd $holddir
10858 # Conditionalize the makefile for this host machine.
10859 xmake_file=
10860 for f in ${host_xmake_file}
10862 if test -f ${srcdir}/config/$f
10863 then
10864 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10866 done
10868 # Conditionalize the makefile for this target machine.
10869 tmake_file_=
10870 for f in ${tmake_file}
10872 if test -f ${srcdir}/config/$f
10873 then
10874 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10876 done
10877 tmake_file="${tmake_file_}"
10879 out_object_file=`basename $out_file .c`.o
10881 tm_file_list="options.h"
10882 tm_include_list="options.h"
10883 for f in $tm_file; do
10884 case $f in
10885 ./* )
10886 f=`echo $f | sed 's/^..//'`
10887 tm_file_list="${tm_file_list} $f"
10888 tm_include_list="${tm_include_list} $f"
10890 defaults.h )
10891 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10892 tm_include_list="${tm_include_list} $f"
10895 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10896 tm_include_list="${tm_include_list} config/$f"
10898 esac
10899 done
10901 tm_p_file_list=
10902 tm_p_include_list=
10903 for f in $tm_p_file; do
10904 case $f in
10905 tm-preds.h )
10906 tm_p_file_list="${tm_p_file_list} $f"
10907 tm_p_include_list="${tm_p_include_list} $f"
10910 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10911 tm_p_include_list="${tm_p_include_list} config/$f"
10912 esac
10913 done
10915 xm_file_list=
10916 xm_include_list=
10917 for f in $xm_file; do
10918 case $f in
10919 ansidecl.h )
10920 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10921 xm_include_list="${xm_include_list} $f"
10923 auto-host.h )
10924 xm_file_list="${xm_file_list} $f"
10925 xm_include_list="${xm_include_list} $f"
10928 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10929 xm_include_list="${xm_include_list} config/$f"
10931 esac
10932 done
10934 host_xm_file_list=
10935 host_xm_include_list=
10936 for f in $host_xm_file; do
10937 case $f in
10938 ansidecl.h )
10939 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10940 host_xm_include_list="${host_xm_include_list} $f"
10942 auto-host.h )
10943 host_xm_file_list="${host_xm_file_list} $f"
10944 host_xm_include_list="${host_xm_include_list} $f"
10947 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10948 host_xm_include_list="${host_xm_include_list} config/$f"
10950 esac
10951 done
10953 build_xm_file_list=
10954 for f in $build_xm_file; do
10955 case $f in
10956 ansidecl.h )
10957 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10958 build_xm_include_list="${build_xm_include_list} $f"
10960 auto-build.h | auto-host.h )
10961 build_xm_file_list="${build_xm_file_list} $f"
10962 build_xm_include_list="${build_xm_include_list} $f"
10965 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10966 build_xm_include_list="${build_xm_include_list} config/$f"
10968 esac
10969 done
10971 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10972 # cross-compiler which does not use the native headers and libraries.
10973 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10974 CROSS=
10975 ALL=all.internal
10976 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10978 if test "x$with_build_sysroot" != x; then
10979 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10980 else
10981 # This value is used, even on a native system, because
10982 # CROSS_SYSTEM_HEADER_DIR is just
10983 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10984 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10987 if test x$host != x$target
10988 then
10989 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10990 ALL=all.cross
10991 SYSTEM_HEADER_DIR=$build_system_header_dir
10992 case "$host","$target" in
10993 # Darwin crosses can use the host system's libraries and headers,
10994 # because of the fat library support. Of course, it must be the
10995 # same version of Darwin on both sides. Allow the user to
10996 # just say --target=foo-darwin without a version number to mean
10997 # "the version on this system".
10998 *-*-darwin*,*-*-darwin*)
10999 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
11000 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
11001 if test $hostos = $targetos -o $targetos = darwin ; then
11002 CROSS=
11003 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11004 with_headers=yes
11008 i?86-*-*,x86_64-*-* \
11009 | powerpc*-*-*,powerpc64*-*-*)
11010 CROSS="$CROSS -DNATIVE_CROSS" ;;
11011 esac
11012 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11013 SYSTEM_HEADER_DIR=$build_system_header_dir
11016 # If this is a cross-compiler that does not
11017 # have its own set of headers then define
11018 # inhibit_libc
11020 # If this is using newlib, without having the headers available now,
11021 # then define inhibit_libc in LIBGCC2_CFLAGS.
11022 # This prevents libgcc2 from containing any code which requires libc
11023 # support.
11024 : ${inhibit_libc=false}
11025 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11026 test x$with_newlib = xyes ; } &&
11027 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11028 inhibit_libc=true
11032 # When building gcc with a cross-compiler, we need to adjust things so
11033 # that the generator programs are still built with the native compiler.
11034 # Also, we cannot run fixincludes.
11036 # These are the normal (build=host) settings:
11037 CC_FOR_BUILD='$(CC)'
11038 BUILD_CFLAGS='$(ALL_CFLAGS)'
11039 BUILD_LDFLAGS='$(LDFLAGS)'
11040 STMP_FIXINC=stmp-fixinc
11042 # And these apply if build != host, or we are generating coverage data
11043 if test x$build != x$host || test "x$coverage_flags" != x
11044 then
11045 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11046 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11049 # Expand extra_headers to include complete path.
11050 # This substitutes for lots of t-* files.
11051 extra_headers_list=
11052 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11053 for file in ${extra_headers} ; do
11054 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11055 done
11057 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11058 if test x"$use_gcc_tgmath" = xyes
11059 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11062 # Define collect2 in Makefile.
11063 case $host_can_use_collect2 in
11064 no) collect2= ;;
11065 *) collect2='collect2$(exeext)' ;;
11066 esac
11069 # Add a definition of USE_COLLECT2 if system wants one.
11070 case $use_collect2 in
11071 no) use_collect2= ;;
11072 "") ;;
11074 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11075 xm_defines="${xm_defines} USE_COLLECT2"
11076 case $host_can_use_collect2 in
11078 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11080 esac
11082 esac
11084 # ---------------------------
11085 # Assembler & linker features
11086 # ---------------------------
11088 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11089 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11090 # However when ld-new is first executed from the build tree, libtool will
11091 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11092 # to the build tree. While doing this we need to use the previous-stage
11093 # linker, or we have an infinite loop. The presence of a shell script as
11094 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11095 # the gcc/collect-ld script. So we need to know how libtool works, or
11096 # exec-tool will fail.
11099 case `pwd` in
11100 *\ * | *\ *)
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11102 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11103 esac
11107 macro_version='2.2.6'
11108 macro_revision='1.3012'
11122 ltmain="$ac_aux_dir/ltmain.sh"
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11126 if test "${ac_cv_path_SED+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
11128 else
11129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11130 for ac_i in 1 2 3 4 5 6 7; do
11131 ac_script="$ac_script$as_nl$ac_script"
11132 done
11133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11134 { ac_script=; unset ac_script;}
11135 if test -z "$SED"; then
11136 ac_path_SED_found=false
11137 # Loop through the user's path and test for each of PROGNAME-LIST
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_prog in sed gsed; do
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11146 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11147 # Check for GNU ac_path_SED and select it if it is found.
11148 # Check for GNU $ac_path_SED
11149 case `"$ac_path_SED" --version 2>&1` in
11150 *GNU*)
11151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11153 ac_count=0
11154 $as_echo_n 0123456789 >"conftest.in"
11155 while :
11157 cat "conftest.in" "conftest.in" >"conftest.tmp"
11158 mv "conftest.tmp" "conftest.in"
11159 cp "conftest.in" "conftest.nl"
11160 $as_echo '' >> "conftest.nl"
11161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11163 as_fn_arith $ac_count + 1 && ac_count=$as_val
11164 if test $ac_count -gt ${ac_path_SED_max-0}; then
11165 # Best one so far, save it but keep looking for a better one
11166 ac_cv_path_SED="$ac_path_SED"
11167 ac_path_SED_max=$ac_count
11169 # 10*(2^10) chars as input seems more than enough
11170 test $ac_count -gt 10 && break
11171 done
11172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11173 esac
11175 $ac_path_SED_found && break 3
11176 done
11177 done
11178 done
11179 IFS=$as_save_IFS
11180 if test -z "$ac_cv_path_SED"; then
11181 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11183 else
11184 ac_cv_path_SED=$SED
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11189 $as_echo "$ac_cv_path_SED" >&6; }
11190 SED="$ac_cv_path_SED"
11191 rm -f conftest.sed
11193 test -z "$SED" && SED=sed
11194 Xsed="$SED -e 1s/^X//"
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11207 $as_echo_n "checking for fgrep... " >&6; }
11208 if test "${ac_cv_path_FGREP+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11210 else
11211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11212 then ac_cv_path_FGREP="$GREP -F"
11213 else
11214 if test -z "$FGREP"; then
11215 ac_path_FGREP_found=false
11216 # Loop through the user's path and test for each of PROGNAME-LIST
11217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11220 IFS=$as_save_IFS
11221 test -z "$as_dir" && as_dir=.
11222 for ac_prog in fgrep; do
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11226 # Check for GNU ac_path_FGREP and select it if it is found.
11227 # Check for GNU $ac_path_FGREP
11228 case `"$ac_path_FGREP" --version 2>&1` in
11229 *GNU*)
11230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11232 ac_count=0
11233 $as_echo_n 0123456789 >"conftest.in"
11234 while :
11236 cat "conftest.in" "conftest.in" >"conftest.tmp"
11237 mv "conftest.tmp" "conftest.in"
11238 cp "conftest.in" "conftest.nl"
11239 $as_echo 'FGREP' >> "conftest.nl"
11240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11242 as_fn_arith $ac_count + 1 && ac_count=$as_val
11243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11244 # Best one so far, save it but keep looking for a better one
11245 ac_cv_path_FGREP="$ac_path_FGREP"
11246 ac_path_FGREP_max=$ac_count
11248 # 10*(2^10) chars as input seems more than enough
11249 test $ac_count -gt 10 && break
11250 done
11251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11252 esac
11254 $ac_path_FGREP_found && break 3
11255 done
11256 done
11257 done
11258 IFS=$as_save_IFS
11259 if test -z "$ac_cv_path_FGREP"; then
11260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11262 else
11263 ac_cv_path_FGREP=$FGREP
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11269 $as_echo "$ac_cv_path_FGREP" >&6; }
11270 FGREP="$ac_cv_path_FGREP"
11273 test -z "$GREP" && GREP=grep
11293 # Check whether --with-gnu-ld was given.
11294 if test "${with_gnu_ld+set}" = set; then :
11295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11296 else
11297 with_gnu_ld=no
11300 ac_prog=ld
11301 if test "$GCC" = yes; then
11302 # Check if gcc -print-prog-name=ld gives a path.
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11304 $as_echo_n "checking for ld used by $CC... " >&6; }
11305 case $host in
11306 *-*-mingw*)
11307 # gcc leaves a trailing carriage return which upsets mingw
11308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11311 esac
11312 case $ac_prog in
11313 # Accept absolute paths.
11314 [\\/]* | ?:[\\/]*)
11315 re_direlt='/[^/][^/]*/\.\./'
11316 # Canonicalize the pathname of ld
11317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11320 done
11321 test -z "$LD" && LD="$ac_prog"
11324 # If it fails, then pretend we aren't using GCC.
11325 ac_prog=ld
11328 # If it is relative, then search for the first ld in PATH.
11329 with_gnu_ld=unknown
11331 esac
11332 elif test "$with_gnu_ld" = yes; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11334 $as_echo_n "checking for GNU ld... " >&6; }
11335 else
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11337 $as_echo_n "checking for non-GNU ld... " >&6; }
11339 if test "${lt_cv_path_LD+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test -z "$LD"; then
11343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11344 for ac_dir in $PATH; do
11345 IFS="$lt_save_ifs"
11346 test -z "$ac_dir" && ac_dir=.
11347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11348 lt_cv_path_LD="$ac_dir/$ac_prog"
11349 # Check to see if the program is GNU ld. I'd rather use --version,
11350 # but apparently some variants of GNU ld only accept -v.
11351 # Break only if it was the GNU/non-GNU ld that we prefer.
11352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11353 *GNU* | *'with BFD'*)
11354 test "$with_gnu_ld" != no && break
11357 test "$with_gnu_ld" != yes && break
11359 esac
11361 done
11362 IFS="$lt_save_ifs"
11363 else
11364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11368 LD="$lt_cv_path_LD"
11369 if test -n "$LD"; then
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11371 $as_echo "$LD" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11383 case `$LD -v 2>&1 </dev/null` in
11384 *GNU* | *'with BFD'*)
11385 lt_cv_prog_gnu_ld=yes
11388 lt_cv_prog_gnu_ld=no
11390 esac
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11394 with_gnu_ld=$lt_cv_prog_gnu_ld
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11406 if test "${lt_cv_path_NM+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 if test -n "$NM"; then
11410 # Let the user override the test.
11411 lt_cv_path_NM="$NM"
11412 else
11413 lt_nm_to_check="${ac_tool_prefix}nm"
11414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11415 lt_nm_to_check="$lt_nm_to_check nm"
11417 for lt_tmp_nm in $lt_nm_to_check; do
11418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11420 IFS="$lt_save_ifs"
11421 test -z "$ac_dir" && ac_dir=.
11422 tmp_nm="$ac_dir/$lt_tmp_nm"
11423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11424 # Check to see if the nm accepts a BSD-compat flag.
11425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11426 # nm: unknown option "B" ignored
11427 # Tru64's nm complains that /dev/null is an invalid object file
11428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11429 */dev/null* | *'Invalid file or object type'*)
11430 lt_cv_path_NM="$tmp_nm -B"
11431 break
11434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11435 */dev/null*)
11436 lt_cv_path_NM="$tmp_nm -p"
11437 break
11440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11441 continue # so that we can try to find one that supports BSD flags
11443 esac
11445 esac
11447 done
11448 IFS="$lt_save_ifs"
11449 done
11450 : ${lt_cv_path_NM=no}
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11454 $as_echo "$lt_cv_path_NM" >&6; }
11455 if test "$lt_cv_path_NM" != "no"; then
11456 NM="$lt_cv_path_NM"
11457 else
11458 # Didn't find any BSD compatible name lister, look for dumpbin.
11459 if test -n "$ac_tool_prefix"; then
11460 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465 $as_echo_n "checking for $ac_word... " >&6; }
11466 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 if test -n "$DUMPBIN"; then
11470 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11471 else
11472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473 for as_dir in $PATH
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
11478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11479 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11483 done
11484 done
11485 IFS=$as_save_IFS
11489 DUMPBIN=$ac_cv_prog_DUMPBIN
11490 if test -n "$DUMPBIN"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11492 $as_echo "$DUMPBIN" >&6; }
11493 else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495 $as_echo "no" >&6; }
11499 test -n "$DUMPBIN" && break
11500 done
11502 if test -z "$DUMPBIN"; then
11503 ac_ct_DUMPBIN=$DUMPBIN
11504 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11506 # Extract the first word of "$ac_prog", so it can be a program name with args.
11507 set dummy $ac_prog; ac_word=$2
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509 $as_echo_n "checking for $ac_word... " >&6; }
11510 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 if test -n "$ac_ct_DUMPBIN"; then
11514 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11515 else
11516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517 for as_dir in $PATH
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11523 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 break 2
11527 done
11528 done
11529 IFS=$as_save_IFS
11533 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11534 if test -n "$ac_ct_DUMPBIN"; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11536 $as_echo "$ac_ct_DUMPBIN" >&6; }
11537 else
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539 $as_echo "no" >&6; }
11543 test -n "$ac_ct_DUMPBIN" && break
11544 done
11546 if test "x$ac_ct_DUMPBIN" = x; then
11547 DUMPBIN=":"
11548 else
11549 case $cross_compiling:$ac_tool_warned in
11550 yes:)
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11553 ac_tool_warned=yes ;;
11554 esac
11555 DUMPBIN=$ac_ct_DUMPBIN
11560 if test "$DUMPBIN" != ":"; then
11561 NM="$DUMPBIN"
11564 test -z "$NM" && NM=nm
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11572 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11573 if test "${lt_cv_nm_interface+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 lt_cv_nm_interface="BSD nm"
11577 echo "int some_variable = 0;" > conftest.$ac_ext
11578 (eval echo "\"\$as_me:11578: $ac_compile\"" >&5)
11579 (eval "$ac_compile" 2>conftest.err)
11580 cat conftest.err >&5
11581 (eval echo "\"\$as_me:11581: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11582 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11583 cat conftest.err >&5
11584 (eval echo "\"\$as_me:11584: output\"" >&5)
11585 cat conftest.out >&5
11586 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11587 lt_cv_nm_interface="MS dumpbin"
11589 rm -f conftest*
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11592 $as_echo "$lt_cv_nm_interface" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11595 $as_echo_n "checking whether ln -s works... " >&6; }
11596 LN_S=$as_ln_s
11597 if test "$LN_S" = "ln -s"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599 $as_echo "yes" >&6; }
11600 else
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11602 $as_echo "no, using $LN_S" >&6; }
11605 # find the maximum length of command line arguments
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11607 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11608 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11609 $as_echo_n "(cached) " >&6
11610 else
11612 teststring="ABCD"
11614 case $build_os in
11615 msdosdjgpp*)
11616 # On DJGPP, this test can blow up pretty badly due to problems in libc
11617 # (any single argument exceeding 2000 bytes causes a buffer overrun
11618 # during glob expansion). Even if it were fixed, the result of this
11619 # check would be larger than it should be.
11620 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11623 gnu*)
11624 # Under GNU Hurd, this test is not required because there is
11625 # no limit to the length of command line arguments.
11626 # Libtool will interpret -1 as no limit whatsoever
11627 lt_cv_sys_max_cmd_len=-1;
11630 cygwin* | mingw* | cegcc*)
11631 # On Win9x/ME, this test blows up -- it succeeds, but takes
11632 # about 5 minutes as the teststring grows exponentially.
11633 # Worse, since 9x/ME are not pre-emptively multitasking,
11634 # you end up with a "frozen" computer, even though with patience
11635 # the test eventually succeeds (with a max line length of 256k).
11636 # Instead, let's just punt: use the minimum linelength reported by
11637 # all of the supported platforms: 8192 (on NT/2K/XP).
11638 lt_cv_sys_max_cmd_len=8192;
11641 amigaos*)
11642 # On AmigaOS with pdksh, this test takes hours, literally.
11643 # So we just punt and use a minimum line length of 8192.
11644 lt_cv_sys_max_cmd_len=8192;
11647 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11648 # This has been around since 386BSD, at least. Likely further.
11649 if test -x /sbin/sysctl; then
11650 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11651 elif test -x /usr/sbin/sysctl; then
11652 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11653 else
11654 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11656 # And add a safety zone
11657 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11658 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11661 interix*)
11662 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11663 lt_cv_sys_max_cmd_len=196608
11666 osf*)
11667 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11668 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11669 # nice to cause kernel panics so lets avoid the loop below.
11670 # First set a reasonable default.
11671 lt_cv_sys_max_cmd_len=16384
11673 if test -x /sbin/sysconfig; then
11674 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11675 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11676 esac
11679 sco3.2v5*)
11680 lt_cv_sys_max_cmd_len=102400
11682 sysv5* | sco5v6* | sysv4.2uw2*)
11683 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11684 if test -n "$kargmax"; then
11685 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11686 else
11687 lt_cv_sys_max_cmd_len=32768
11691 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11692 if test -n "$lt_cv_sys_max_cmd_len"; then
11693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11695 else
11696 # Make teststring a little bigger before we do anything with it.
11697 # a 1K string should be a reasonable start.
11698 for i in 1 2 3 4 5 6 7 8 ; do
11699 teststring=$teststring$teststring
11700 done
11701 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11702 # If test is not a shell built-in, we'll probably end up computing a
11703 # maximum length that is only half of the actual maximum length, but
11704 # we can't tell.
11705 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11706 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11707 test $i != 17 # 1/2 MB should be enough
11709 i=`expr $i + 1`
11710 teststring=$teststring$teststring
11711 done
11712 # Only check the string length outside the loop.
11713 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11714 teststring=
11715 # Add a significant safety factor because C++ compilers can tack on
11716 # massive amounts of additional arguments before passing them to the
11717 # linker. It appears as though 1/2 is a usable value.
11718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11721 esac
11725 if test -n $lt_cv_sys_max_cmd_len ; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11727 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11728 else
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11730 $as_echo "none" >&6; }
11732 max_cmd_len=$lt_cv_sys_max_cmd_len
11739 : ${CP="cp -f"}
11740 : ${MV="mv -f"}
11741 : ${RM="rm -f"}
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11744 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11745 # Try some XSI features
11746 xsi_shell=no
11747 ( _lt_dummy="a/b/c"
11748 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11749 = c,a/b,, \
11750 && eval 'test $(( 1 + 1 )) -eq 2 \
11751 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11752 && xsi_shell=yes
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11754 $as_echo "$xsi_shell" >&6; }
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11758 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11759 lt_shell_append=no
11760 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11761 >/dev/null 2>&1 \
11762 && lt_shell_append=yes
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11764 $as_echo "$lt_shell_append" >&6; }
11767 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11768 lt_unset=unset
11769 else
11770 lt_unset=false
11777 # test EBCDIC or ASCII
11778 case `echo X|tr X '\101'` in
11779 A) # ASCII based system
11780 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11781 lt_SP2NL='tr \040 \012'
11782 lt_NL2SP='tr \015\012 \040\040'
11784 *) # EBCDIC based system
11785 lt_SP2NL='tr \100 \n'
11786 lt_NL2SP='tr \r\n \100\100'
11788 esac
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11799 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11800 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
11802 else
11803 lt_cv_ld_reload_flag='-r'
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11806 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11807 reload_flag=$lt_cv_ld_reload_flag
11808 case $reload_flag in
11809 "" | " "*) ;;
11810 *) reload_flag=" $reload_flag" ;;
11811 esac
11812 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11813 case $host_os in
11814 darwin*)
11815 if test "$GCC" = yes; then
11816 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11817 else
11818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11821 esac
11831 if test -n "$ac_tool_prefix"; then
11832 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11833 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11837 $as_echo_n "(cached) " >&6
11838 else
11839 if test -n "$OBJDUMP"; then
11840 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11841 else
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11849 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851 break 2
11853 done
11854 done
11855 IFS=$as_save_IFS
11859 OBJDUMP=$ac_cv_prog_OBJDUMP
11860 if test -n "$OBJDUMP"; then
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11862 $as_echo "$OBJDUMP" >&6; }
11863 else
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11870 if test -z "$ac_cv_prog_OBJDUMP"; then
11871 ac_ct_OBJDUMP=$OBJDUMP
11872 # Extract the first word of "objdump", so it can be a program name with args.
11873 set dummy objdump; ac_word=$2
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11875 $as_echo_n "checking for $ac_word... " >&6; }
11876 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 if test -n "$ac_ct_OBJDUMP"; then
11880 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11881 else
11882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11883 for as_dir in $PATH
11885 IFS=$as_save_IFS
11886 test -z "$as_dir" && as_dir=.
11887 for ac_exec_ext in '' $ac_executable_extensions; do
11888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11889 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891 break 2
11893 done
11894 done
11895 IFS=$as_save_IFS
11899 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11900 if test -n "$ac_ct_OBJDUMP"; then
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11902 $as_echo "$ac_ct_OBJDUMP" >&6; }
11903 else
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905 $as_echo "no" >&6; }
11908 if test "x$ac_ct_OBJDUMP" = x; then
11909 OBJDUMP="false"
11910 else
11911 case $cross_compiling:$ac_tool_warned in
11912 yes:)
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11915 ac_tool_warned=yes ;;
11916 esac
11917 OBJDUMP=$ac_ct_OBJDUMP
11919 else
11920 OBJDUMP="$ac_cv_prog_OBJDUMP"
11923 test -z "$OBJDUMP" && OBJDUMP=objdump
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11934 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11935 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11936 $as_echo_n "(cached) " >&6
11937 else
11938 lt_cv_file_magic_cmd='$MAGIC_CMD'
11939 lt_cv_file_magic_test_file=
11940 lt_cv_deplibs_check_method='unknown'
11941 # Need to set the preceding variable on all platforms that support
11942 # interlibrary dependencies.
11943 # 'none' -- dependencies not supported.
11944 # `unknown' -- same as none, but documents that we really don't know.
11945 # 'pass_all' -- all dependencies passed with no checks.
11946 # 'test_compile' -- check by making test program.
11947 # 'file_magic [[regex]]' -- check by looking for files in library path
11948 # which responds to the $file_magic_cmd with a given extended regex.
11949 # If you have `file' or equivalent on your system and you're not sure
11950 # whether `pass_all' will *always* work, you probably want this one.
11952 case $host_os in
11953 aix[4-9]*)
11954 lt_cv_deplibs_check_method=pass_all
11957 beos*)
11958 lt_cv_deplibs_check_method=pass_all
11961 bsdi[45]*)
11962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11963 lt_cv_file_magic_cmd='/usr/bin/file -L'
11964 lt_cv_file_magic_test_file=/shlib/libc.so
11967 cygwin*)
11968 # func_win32_libid is a shell function defined in ltmain.sh
11969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11970 lt_cv_file_magic_cmd='func_win32_libid'
11973 mingw* | pw32*)
11974 # Base MSYS/MinGW do not provide the 'file' command needed by
11975 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11976 # unless we find 'file', for example because we are cross-compiling.
11977 if ( file / ) >/dev/null 2>&1; then
11978 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11979 lt_cv_file_magic_cmd='func_win32_libid'
11980 else
11981 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11982 lt_cv_file_magic_cmd='$OBJDUMP -f'
11986 cegcc)
11987 # use the weaker test based on 'objdump'. See mingw*.
11988 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11989 lt_cv_file_magic_cmd='$OBJDUMP -f'
11992 darwin* | rhapsody*)
11993 lt_cv_deplibs_check_method=pass_all
11996 freebsd* | dragonfly*)
11997 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11998 case $host_cpu in
11999 i*86 )
12000 # Not sure whether the presence of OpenBSD here was a mistake.
12001 # Let's accept both of them until this is cleared up.
12002 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12003 lt_cv_file_magic_cmd=/usr/bin/file
12004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12006 esac
12007 else
12008 lt_cv_deplibs_check_method=pass_all
12012 gnu*)
12013 lt_cv_deplibs_check_method=pass_all
12016 hpux10.20* | hpux11*)
12017 lt_cv_file_magic_cmd=/usr/bin/file
12018 case $host_cpu in
12019 ia64*)
12020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12021 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12023 hppa*64*)
12024 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
12025 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12029 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12031 esac
12034 interix[3-9]*)
12035 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12039 irix5* | irix6* | nonstopux*)
12040 case $LD in
12041 *-32|*"-32 ") libmagic=32-bit;;
12042 *-n32|*"-n32 ") libmagic=N32;;
12043 *-64|*"-64 ") libmagic=64-bit;;
12044 *) libmagic=never-match;;
12045 esac
12046 lt_cv_deplibs_check_method=pass_all
12049 # This must be Linux ELF.
12050 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12051 lt_cv_deplibs_check_method=pass_all
12054 netbsd*)
12055 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12057 else
12058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12062 newos6*)
12063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12064 lt_cv_file_magic_cmd=/usr/bin/file
12065 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12068 *nto* | *qnx*)
12069 lt_cv_deplibs_check_method=pass_all
12072 openbsd*)
12073 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12075 else
12076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12080 osf3* | osf4* | osf5*)
12081 lt_cv_deplibs_check_method=pass_all
12084 rdos*)
12085 lt_cv_deplibs_check_method=pass_all
12088 solaris*)
12089 lt_cv_deplibs_check_method=pass_all
12092 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12093 lt_cv_deplibs_check_method=pass_all
12096 sysv4 | sysv4.3*)
12097 case $host_vendor in
12098 motorola)
12099 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]'
12100 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12102 ncr)
12103 lt_cv_deplibs_check_method=pass_all
12105 sequent)
12106 lt_cv_file_magic_cmd='/bin/file'
12107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12109 sni)
12110 lt_cv_file_magic_cmd='/bin/file'
12111 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12112 lt_cv_file_magic_test_file=/lib/libc.so
12114 siemens)
12115 lt_cv_deplibs_check_method=pass_all
12118 lt_cv_deplibs_check_method=pass_all
12120 esac
12123 tpf*)
12124 lt_cv_deplibs_check_method=pass_all
12126 esac
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12130 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12131 file_magic_cmd=$lt_cv_file_magic_cmd
12132 deplibs_check_method=$lt_cv_deplibs_check_method
12133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12146 if test -n "$ac_tool_prefix"; then
12147 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12148 set dummy ${ac_tool_prefix}ar; ac_word=$2
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12150 $as_echo_n "checking for $ac_word... " >&6; }
12151 if test "${ac_cv_prog_AR+set}" = set; then :
12152 $as_echo_n "(cached) " >&6
12153 else
12154 if test -n "$AR"; then
12155 ac_cv_prog_AR="$AR" # Let the user override the test.
12156 else
12157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12158 for as_dir in $PATH
12160 IFS=$as_save_IFS
12161 test -z "$as_dir" && as_dir=.
12162 for ac_exec_ext in '' $ac_executable_extensions; do
12163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12164 ac_cv_prog_AR="${ac_tool_prefix}ar"
12165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12166 break 2
12168 done
12169 done
12170 IFS=$as_save_IFS
12174 AR=$ac_cv_prog_AR
12175 if test -n "$AR"; then
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12177 $as_echo "$AR" >&6; }
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12180 $as_echo "no" >&6; }
12185 if test -z "$ac_cv_prog_AR"; then
12186 ac_ct_AR=$AR
12187 # Extract the first word of "ar", so it can be a program name with args.
12188 set dummy ar; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12190 $as_echo_n "checking for $ac_word... " >&6; }
12191 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 if test -n "$ac_ct_AR"; then
12195 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12196 else
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12204 ac_cv_prog_ac_ct_AR="ar"
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 break 2
12208 done
12209 done
12210 IFS=$as_save_IFS
12214 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12215 if test -n "$ac_ct_AR"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12217 $as_echo "$ac_ct_AR" >&6; }
12218 else
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220 $as_echo "no" >&6; }
12223 if test "x$ac_ct_AR" = x; then
12224 AR="false"
12225 else
12226 case $cross_compiling:$ac_tool_warned in
12227 yes:)
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12230 ac_tool_warned=yes ;;
12231 esac
12232 AR=$ac_ct_AR
12234 else
12235 AR="$ac_cv_prog_AR"
12238 test -z "$AR" && AR=ar
12239 test -z "$AR_FLAGS" && AR_FLAGS=cru
12251 if test -n "$ac_tool_prefix"; then
12252 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12253 set dummy ${ac_tool_prefix}strip; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12255 $as_echo_n "checking for $ac_word... " >&6; }
12256 if test "${ac_cv_prog_STRIP+set}" = set; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 if test -n "$STRIP"; then
12260 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12261 else
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12269 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12273 done
12274 done
12275 IFS=$as_save_IFS
12279 STRIP=$ac_cv_prog_STRIP
12280 if test -n "$STRIP"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12282 $as_echo "$STRIP" >&6; }
12283 else
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285 $as_echo "no" >&6; }
12290 if test -z "$ac_cv_prog_STRIP"; then
12291 ac_ct_STRIP=$STRIP
12292 # Extract the first word of "strip", so it can be a program name with args.
12293 set dummy strip; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295 $as_echo_n "checking for $ac_word... " >&6; }
12296 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12297 $as_echo_n "(cached) " >&6
12298 else
12299 if test -n "$ac_ct_STRIP"; then
12300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12301 else
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12309 ac_cv_prog_ac_ct_STRIP="strip"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12311 break 2
12313 done
12314 done
12315 IFS=$as_save_IFS
12319 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12320 if test -n "$ac_ct_STRIP"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12322 $as_echo "$ac_ct_STRIP" >&6; }
12323 else
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325 $as_echo "no" >&6; }
12328 if test "x$ac_ct_STRIP" = x; then
12329 STRIP=":"
12330 else
12331 case $cross_compiling:$ac_tool_warned in
12332 yes:)
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12335 ac_tool_warned=yes ;;
12336 esac
12337 STRIP=$ac_ct_STRIP
12339 else
12340 STRIP="$ac_cv_prog_STRIP"
12343 test -z "$STRIP" && STRIP=:
12350 if test -n "$ac_tool_prefix"; then
12351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12357 else
12358 if test -n "$RANLIB"; then
12359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12360 else
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12370 break 2
12372 done
12373 done
12374 IFS=$as_save_IFS
12378 RANLIB=$ac_cv_prog_RANLIB
12379 if test -n "$RANLIB"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12381 $as_echo "$RANLIB" >&6; }
12382 else
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12389 if test -z "$ac_cv_prog_RANLIB"; then
12390 ac_ct_RANLIB=$RANLIB
12391 # Extract the first word of "ranlib", so it can be a program name with args.
12392 set dummy ranlib; ac_word=$2
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12394 $as_echo_n "checking for $ac_word... " >&6; }
12395 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 if test -n "$ac_ct_RANLIB"; then
12399 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12400 else
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_prog_ac_ct_RANLIB="ranlib"
12409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12412 done
12413 done
12414 IFS=$as_save_IFS
12418 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12419 if test -n "$ac_ct_RANLIB"; then
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12421 $as_echo "$ac_ct_RANLIB" >&6; }
12422 else
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12424 $as_echo "no" >&6; }
12427 if test "x$ac_ct_RANLIB" = x; then
12428 RANLIB=":"
12429 else
12430 case $cross_compiling:$ac_tool_warned in
12431 yes:)
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12434 ac_tool_warned=yes ;;
12435 esac
12436 RANLIB=$ac_ct_RANLIB
12438 else
12439 RANLIB="$ac_cv_prog_RANLIB"
12442 test -z "$RANLIB" && RANLIB=:
12449 # Determine commands to create old-style static archives.
12450 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12451 old_postinstall_cmds='chmod 644 $oldlib'
12452 old_postuninstall_cmds=
12454 if test -n "$RANLIB"; then
12455 case $host_os in
12456 openbsd*)
12457 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12460 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12462 esac
12463 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12499 # If no C compiler was specified, use CC.
12500 LTCC=${LTCC-"$CC"}
12502 # If no C compiler flags were specified, use CFLAGS.
12503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12505 # Allow CC to be a program name with arguments.
12506 compiler=$CC
12509 # Check for command to grab the raw symbol name followed by C symbol from nm.
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12511 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12512 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12513 $as_echo_n "(cached) " >&6
12514 else
12516 # These are sane defaults that work on at least a few old systems.
12517 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12519 # Character class describing NM global symbol codes.
12520 symcode='[BCDEGRST]'
12522 # Regexp to match symbols that can be accessed directly from C.
12523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12525 # Define system-specific variables.
12526 case $host_os in
12527 aix*)
12528 symcode='[BCDT]'
12530 cygwin* | mingw* | pw32* | cegcc*)
12531 symcode='[ABCDGISTW]'
12533 hpux*)
12534 if test "$host_cpu" = ia64; then
12535 symcode='[ABCDEGRST]'
12538 irix* | nonstopux*)
12539 symcode='[BCDEGRST]'
12541 osf*)
12542 symcode='[BCDEGQRST]'
12544 solaris*)
12545 symcode='[BDRT]'
12547 sco3.2v5*)
12548 symcode='[DT]'
12550 sysv4.2uw2*)
12551 symcode='[DT]'
12553 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12554 symcode='[ABDT]'
12556 sysv4)
12557 symcode='[DFNSTU]'
12559 esac
12561 # If we're using GNU nm, then use its standard symbol codes.
12562 case `$NM -V 2>&1` in
12563 *GNU* | *'with BFD'*)
12564 symcode='[ABCDGIRSTW]' ;;
12565 esac
12567 # Transform an extracted symbol line into a proper C declaration.
12568 # Some systems (esp. on ia64) link data and code symbols differently,
12569 # so use this general approach.
12570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12572 # Transform an extracted symbol line into symbol name and symbol address
12573 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12574 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'"
12576 # Handle CRLF in mingw tool chain
12577 opt_cr=
12578 case $build_os in
12579 mingw*)
12580 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12582 esac
12584 # Try without a prefix underscore, then with it.
12585 for ac_symprfx in "" "_"; do
12587 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12588 symxfrm="\\1 $ac_symprfx\\2 \\2"
12590 # Write the raw and C identifiers.
12591 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12592 # Fake it for dumpbin and say T for any non-static function
12593 # and D for any global variable.
12594 # Also find C++ and __fastcall symbols from MSVC++,
12595 # which start with @ or ?.
12596 lt_cv_sys_global_symbol_pipe="$AWK '"\
12597 " {last_section=section; section=\$ 3};"\
12598 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12599 " \$ 0!~/External *\|/{next};"\
12600 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12601 " {if(hide[section]) next};"\
12602 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12603 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12604 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12605 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12606 " ' prfx=^$ac_symprfx"
12607 else
12608 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12611 # Check to see that the pipe works correctly.
12612 pipe_works=no
12614 rm -f conftest*
12615 cat > conftest.$ac_ext <<_LT_EOF
12616 #ifdef __cplusplus
12617 extern "C" {
12618 #endif
12619 char nm_test_var;
12620 void nm_test_func(void);
12621 void nm_test_func(void){}
12622 #ifdef __cplusplus
12624 #endif
12625 int main(){nm_test_var='a';nm_test_func();return(0);}
12626 _LT_EOF
12628 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12629 (eval $ac_compile) 2>&5
12630 ac_status=$?
12631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12632 test $ac_status = 0; }; then
12633 # Now try to grab the symbols.
12634 nlist=conftest.nm
12635 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
12636 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12637 ac_status=$?
12638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12639 test $ac_status = 0; } && test -s "$nlist"; then
12640 # Try sorting and uniquifying the output.
12641 if sort "$nlist" | uniq > "$nlist"T; then
12642 mv -f "$nlist"T "$nlist"
12643 else
12644 rm -f "$nlist"T
12647 # Make sure that we snagged all the symbols we need.
12648 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12649 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12650 cat <<_LT_EOF > conftest.$ac_ext
12651 #ifdef __cplusplus
12652 extern "C" {
12653 #endif
12655 _LT_EOF
12656 # Now generate the symbol file.
12657 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12659 cat <<_LT_EOF >> conftest.$ac_ext
12661 /* The mapping between symbol names and symbols. */
12662 const struct {
12663 const char *name;
12664 void *address;
12666 lt__PROGRAM__LTX_preloaded_symbols[] =
12668 { "@PROGRAM@", (void *) 0 },
12669 _LT_EOF
12670 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12671 cat <<\_LT_EOF >> conftest.$ac_ext
12672 {0, (void *) 0}
12675 /* This works around a problem in FreeBSD linker */
12676 #ifdef FREEBSD_WORKAROUND
12677 static const void *lt_preloaded_setup() {
12678 return lt__PROGRAM__LTX_preloaded_symbols;
12680 #endif
12682 #ifdef __cplusplus
12684 #endif
12685 _LT_EOF
12686 # Now try linking the two files.
12687 mv conftest.$ac_objext conftstm.$ac_objext
12688 lt_save_LIBS="$LIBS"
12689 lt_save_CFLAGS="$CFLAGS"
12690 LIBS="conftstm.$ac_objext"
12691 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12693 (eval $ac_link) 2>&5
12694 ac_status=$?
12695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12696 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12697 pipe_works=yes
12699 LIBS="$lt_save_LIBS"
12700 CFLAGS="$lt_save_CFLAGS"
12701 else
12702 echo "cannot find nm_test_func in $nlist" >&5
12704 else
12705 echo "cannot find nm_test_var in $nlist" >&5
12707 else
12708 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12710 else
12711 echo "$progname: failed program was:" >&5
12712 cat conftest.$ac_ext >&5
12714 rm -rf conftest* conftst*
12716 # Do not use the global_symbol_pipe unless it works.
12717 if test "$pipe_works" = yes; then
12718 break
12719 else
12720 lt_cv_sys_global_symbol_pipe=
12722 done
12726 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12727 lt_cv_sys_global_symbol_to_cdecl=
12729 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12731 $as_echo "failed" >&6; }
12732 else
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12734 $as_echo "ok" >&6; }
12758 # Check whether --enable-libtool-lock was given.
12759 if test "${enable_libtool_lock+set}" = set; then :
12760 enableval=$enable_libtool_lock;
12763 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12765 # Some flags need to be propagated to the compiler or linker for good
12766 # libtool support.
12767 case $host in
12768 ia64-*-hpux*)
12769 # Find out which ABI we are using.
12770 echo 'int i;' > conftest.$ac_ext
12771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12772 (eval $ac_compile) 2>&5
12773 ac_status=$?
12774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12775 test $ac_status = 0; }; then
12776 case `/usr/bin/file conftest.$ac_objext` in
12777 *ELF-32*)
12778 HPUX_IA64_MODE="32"
12780 *ELF-64*)
12781 HPUX_IA64_MODE="64"
12783 esac
12785 rm -rf conftest*
12787 *-*-irix6*)
12788 # Find out which ABI we are using.
12789 echo '#line 12789 "configure"' > conftest.$ac_ext
12790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12791 (eval $ac_compile) 2>&5
12792 ac_status=$?
12793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12794 test $ac_status = 0; }; then
12795 if test "$lt_cv_prog_gnu_ld" = yes; then
12796 case `/usr/bin/file conftest.$ac_objext` in
12797 *32-bit*)
12798 LD="${LD-ld} -melf32bsmip"
12800 *N32*)
12801 LD="${LD-ld} -melf32bmipn32"
12803 *64-bit*)
12804 LD="${LD-ld} -melf64bmip"
12806 esac
12807 else
12808 case `/usr/bin/file conftest.$ac_objext` in
12809 *32-bit*)
12810 LD="${LD-ld} -32"
12812 *N32*)
12813 LD="${LD-ld} -n32"
12815 *64-bit*)
12816 LD="${LD-ld} -64"
12818 esac
12821 rm -rf conftest*
12824 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12825 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12826 # Find out which ABI we are using.
12827 echo 'int i;' > conftest.$ac_ext
12828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12829 (eval $ac_compile) 2>&5
12830 ac_status=$?
12831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12832 test $ac_status = 0; }; then
12833 case `/usr/bin/file conftest.o` in
12834 *32-bit*)
12835 case $host in
12836 x86_64-*kfreebsd*-gnu)
12837 LD="${LD-ld} -m elf_i386_fbsd"
12839 x86_64-*linux*)
12840 LD="${LD-ld} -m elf_i386"
12842 ppc64-*linux*|powerpc64-*linux*)
12843 LD="${LD-ld} -m elf32ppclinux"
12845 s390x-*linux*)
12846 LD="${LD-ld} -m elf_s390"
12848 sparc64-*linux*)
12849 LD="${LD-ld} -m elf32_sparc"
12851 esac
12853 *64-bit*)
12854 case $host in
12855 x86_64-*kfreebsd*-gnu)
12856 LD="${LD-ld} -m elf_x86_64_fbsd"
12858 x86_64-*linux*)
12859 LD="${LD-ld} -m elf_x86_64"
12861 ppc*-*linux*|powerpc*-*linux*)
12862 LD="${LD-ld} -m elf64ppc"
12864 s390*-*linux*|s390*-*tpf*)
12865 LD="${LD-ld} -m elf64_s390"
12867 sparc*-*linux*)
12868 LD="${LD-ld} -m elf64_sparc"
12870 esac
12872 esac
12874 rm -rf conftest*
12877 *-*-sco3.2v5*)
12878 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12879 SAVE_CFLAGS="$CFLAGS"
12880 CFLAGS="$CFLAGS -belf"
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12882 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12883 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12884 $as_echo_n "(cached) " >&6
12885 else
12886 ac_ext=c
12887 ac_cpp='$CPP $CPPFLAGS'
12888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12896 main ()
12900 return 0;
12902 _ACEOF
12903 if ac_fn_c_try_link "$LINENO"; then :
12904 lt_cv_cc_needs_belf=yes
12905 else
12906 lt_cv_cc_needs_belf=no
12908 rm -f core conftest.err conftest.$ac_objext \
12909 conftest$ac_exeext conftest.$ac_ext
12910 ac_ext=c
12911 ac_cpp='$CPP $CPPFLAGS'
12912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12918 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12919 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12920 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12921 CFLAGS="$SAVE_CFLAGS"
12924 sparc*-*solaris*)
12925 # Find out which ABI we are using.
12926 echo 'int i;' > conftest.$ac_ext
12927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12928 (eval $ac_compile) 2>&5
12929 ac_status=$?
12930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12931 test $ac_status = 0; }; then
12932 case `/usr/bin/file conftest.o` in
12933 *64-bit*)
12934 case $lt_cv_prog_gnu_ld in
12935 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12937 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12938 LD="${LD-ld} -64"
12941 esac
12943 esac
12945 rm -rf conftest*
12947 esac
12949 need_locks="$enable_libtool_lock"
12952 case $host_os in
12953 rhapsody* | darwin*)
12954 if test -n "$ac_tool_prefix"; then
12955 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12956 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958 $as_echo_n "checking for $ac_word... " >&6; }
12959 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12960 $as_echo_n "(cached) " >&6
12961 else
12962 if test -n "$DSYMUTIL"; then
12963 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12964 else
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12974 break 2
12976 done
12977 done
12978 IFS=$as_save_IFS
12982 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12983 if test -n "$DSYMUTIL"; then
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12985 $as_echo "$DSYMUTIL" >&6; }
12986 else
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988 $as_echo "no" >&6; }
12993 if test -z "$ac_cv_prog_DSYMUTIL"; then
12994 ac_ct_DSYMUTIL=$DSYMUTIL
12995 # Extract the first word of "dsymutil", so it can be a program name with args.
12996 set dummy dsymutil; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
13001 else
13002 if test -n "$ac_ct_DSYMUTIL"; then
13003 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13012 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13014 break 2
13016 done
13017 done
13018 IFS=$as_save_IFS
13022 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13023 if test -n "$ac_ct_DSYMUTIL"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13025 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13026 else
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028 $as_echo "no" >&6; }
13031 if test "x$ac_ct_DSYMUTIL" = x; then
13032 DSYMUTIL=":"
13033 else
13034 case $cross_compiling:$ac_tool_warned in
13035 yes:)
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13038 ac_tool_warned=yes ;;
13039 esac
13040 DSYMUTIL=$ac_ct_DSYMUTIL
13042 else
13043 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13046 if test -n "$ac_tool_prefix"; then
13047 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13048 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13050 $as_echo_n "checking for $ac_word... " >&6; }
13051 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13052 $as_echo_n "(cached) " >&6
13053 else
13054 if test -n "$NMEDIT"; then
13055 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13056 else
13057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13058 for as_dir in $PATH
13060 IFS=$as_save_IFS
13061 test -z "$as_dir" && as_dir=.
13062 for ac_exec_ext in '' $ac_executable_extensions; do
13063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13064 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13066 break 2
13068 done
13069 done
13070 IFS=$as_save_IFS
13074 NMEDIT=$ac_cv_prog_NMEDIT
13075 if test -n "$NMEDIT"; then
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13077 $as_echo "$NMEDIT" >&6; }
13078 else
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13080 $as_echo "no" >&6; }
13085 if test -z "$ac_cv_prog_NMEDIT"; then
13086 ac_ct_NMEDIT=$NMEDIT
13087 # Extract the first word of "nmedit", so it can be a program name with args.
13088 set dummy nmedit; ac_word=$2
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090 $as_echo_n "checking for $ac_word... " >&6; }
13091 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 if test -n "$ac_ct_NMEDIT"; then
13095 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13096 else
13097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098 for as_dir in $PATH
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13104 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13106 break 2
13108 done
13109 done
13110 IFS=$as_save_IFS
13114 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13115 if test -n "$ac_ct_NMEDIT"; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13117 $as_echo "$ac_ct_NMEDIT" >&6; }
13118 else
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13123 if test "x$ac_ct_NMEDIT" = x; then
13124 NMEDIT=":"
13125 else
13126 case $cross_compiling:$ac_tool_warned in
13127 yes:)
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13130 ac_tool_warned=yes ;;
13131 esac
13132 NMEDIT=$ac_ct_NMEDIT
13134 else
13135 NMEDIT="$ac_cv_prog_NMEDIT"
13138 if test -n "$ac_tool_prefix"; then
13139 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13140 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142 $as_echo_n "checking for $ac_word... " >&6; }
13143 if test "${ac_cv_prog_LIPO+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 if test -n "$LIPO"; then
13147 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13148 else
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 break 2
13160 done
13161 done
13162 IFS=$as_save_IFS
13166 LIPO=$ac_cv_prog_LIPO
13167 if test -n "$LIPO"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13169 $as_echo "$LIPO" >&6; }
13170 else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172 $as_echo "no" >&6; }
13177 if test -z "$ac_cv_prog_LIPO"; then
13178 ac_ct_LIPO=$LIPO
13179 # Extract the first word of "lipo", so it can be a program name with args.
13180 set dummy lipo; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13182 $as_echo_n "checking for $ac_word... " >&6; }
13183 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13184 $as_echo_n "(cached) " >&6
13185 else
13186 if test -n "$ac_ct_LIPO"; then
13187 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13188 else
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13192 IFS=$as_save_IFS
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13196 ac_cv_prog_ac_ct_LIPO="lipo"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 break 2
13200 done
13201 done
13202 IFS=$as_save_IFS
13206 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13207 if test -n "$ac_ct_LIPO"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13209 $as_echo "$ac_ct_LIPO" >&6; }
13210 else
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13212 $as_echo "no" >&6; }
13215 if test "x$ac_ct_LIPO" = x; then
13216 LIPO=":"
13217 else
13218 case $cross_compiling:$ac_tool_warned in
13219 yes:)
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13222 ac_tool_warned=yes ;;
13223 esac
13224 LIPO=$ac_ct_LIPO
13226 else
13227 LIPO="$ac_cv_prog_LIPO"
13230 if test -n "$ac_tool_prefix"; then
13231 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13232 set dummy ${ac_tool_prefix}otool; ac_word=$2
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13234 $as_echo_n "checking for $ac_word... " >&6; }
13235 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 if test -n "$OTOOL"; then
13239 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13240 else
13241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13242 for as_dir in $PATH
13244 IFS=$as_save_IFS
13245 test -z "$as_dir" && as_dir=.
13246 for ac_exec_ext in '' $ac_executable_extensions; do
13247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13248 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13250 break 2
13252 done
13253 done
13254 IFS=$as_save_IFS
13258 OTOOL=$ac_cv_prog_OTOOL
13259 if test -n "$OTOOL"; then
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13261 $as_echo "$OTOOL" >&6; }
13262 else
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13269 if test -z "$ac_cv_prog_OTOOL"; then
13270 ac_ct_OTOOL=$OTOOL
13271 # Extract the first word of "otool", so it can be a program name with args.
13272 set dummy otool; ac_word=$2
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274 $as_echo_n "checking for $ac_word... " >&6; }
13275 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 if test -n "$ac_ct_OTOOL"; then
13279 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13280 else
13281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282 for as_dir in $PATH
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13288 ac_cv_prog_ac_ct_OTOOL="otool"
13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13290 break 2
13292 done
13293 done
13294 IFS=$as_save_IFS
13298 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13299 if test -n "$ac_ct_OTOOL"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13301 $as_echo "$ac_ct_OTOOL" >&6; }
13302 else
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304 $as_echo "no" >&6; }
13307 if test "x$ac_ct_OTOOL" = x; then
13308 OTOOL=":"
13309 else
13310 case $cross_compiling:$ac_tool_warned in
13311 yes:)
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13314 ac_tool_warned=yes ;;
13315 esac
13316 OTOOL=$ac_ct_OTOOL
13318 else
13319 OTOOL="$ac_cv_prog_OTOOL"
13322 if test -n "$ac_tool_prefix"; then
13323 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13324 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13326 $as_echo_n "checking for $ac_word... " >&6; }
13327 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13329 else
13330 if test -n "$OTOOL64"; then
13331 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13332 else
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13336 IFS=$as_save_IFS
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13340 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342 break 2
13344 done
13345 done
13346 IFS=$as_save_IFS
13350 OTOOL64=$ac_cv_prog_OTOOL64
13351 if test -n "$OTOOL64"; then
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13353 $as_echo "$OTOOL64" >&6; }
13354 else
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13361 if test -z "$ac_cv_prog_OTOOL64"; then
13362 ac_ct_OTOOL64=$OTOOL64
13363 # Extract the first word of "otool64", so it can be a program name with args.
13364 set dummy otool64; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13366 $as_echo_n "checking for $ac_word... " >&6; }
13367 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 if test -n "$ac_ct_OTOOL64"; then
13371 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13372 else
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13376 IFS=$as_save_IFS
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13380 ac_cv_prog_ac_ct_OTOOL64="otool64"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13382 break 2
13384 done
13385 done
13386 IFS=$as_save_IFS
13390 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13391 if test -n "$ac_ct_OTOOL64"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13393 $as_echo "$ac_ct_OTOOL64" >&6; }
13394 else
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13399 if test "x$ac_ct_OTOOL64" = x; then
13400 OTOOL64=":"
13401 else
13402 case $cross_compiling:$ac_tool_warned in
13403 yes:)
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13406 ac_tool_warned=yes ;;
13407 esac
13408 OTOOL64=$ac_ct_OTOOL64
13410 else
13411 OTOOL64="$ac_cv_prog_OTOOL64"
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13441 $as_echo_n "checking for -single_module linker flag... " >&6; }
13442 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13443 $as_echo_n "(cached) " >&6
13444 else
13445 lt_cv_apple_cc_single_mod=no
13446 if test -z "${LT_MULTI_MODULE}"; then
13447 # By default we will add the -single_module flag. You can override
13448 # by either setting the environment variable LT_MULTI_MODULE
13449 # non-empty at configure time, or by adding -multi_module to the
13450 # link flags.
13451 rm -rf libconftest.dylib*
13452 echo "int foo(void){return 1;}" > conftest.c
13453 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13454 -dynamiclib -Wl,-single_module conftest.c" >&5
13455 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13456 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13457 _lt_result=$?
13458 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13459 lt_cv_apple_cc_single_mod=yes
13460 else
13461 cat conftest.err >&5
13463 rm -rf libconftest.dylib*
13464 rm -f conftest.*
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13468 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13470 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13471 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13472 $as_echo_n "(cached) " >&6
13473 else
13474 lt_cv_ld_exported_symbols_list=no
13475 save_LDFLAGS=$LDFLAGS
13476 echo "_main" > conftest.sym
13477 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13482 main ()
13486 return 0;
13488 _ACEOF
13489 if ac_fn_c_try_link "$LINENO"; then :
13490 lt_cv_ld_exported_symbols_list=yes
13491 else
13492 lt_cv_ld_exported_symbols_list=no
13494 rm -f core conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
13496 LDFLAGS="$save_LDFLAGS"
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13500 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13501 case $host_os in
13502 rhapsody* | darwin1.[012])
13503 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13504 darwin1.*)
13505 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13506 darwin*) # darwin 5.x on
13507 # if running on 10.5 or later, the deployment target defaults
13508 # to the OS version, if on x86, and 10.4, the deployment
13509 # target defaults to 10.4. Don't you love it?
13510 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13511 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13512 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13513 10.[012]*)
13514 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13515 10.*)
13516 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13517 esac
13519 esac
13520 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13521 _lt_dar_single_mod='$single_module'
13523 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13524 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13525 else
13526 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13528 if test "$DSYMUTIL" != ":"; then
13529 _lt_dsymutil='~$DSYMUTIL $lib || :'
13530 else
13531 _lt_dsymutil=
13534 esac
13536 for ac_header in dlfcn.h
13537 do :
13538 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13539 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13540 cat >>confdefs.h <<_ACEOF
13541 #define HAVE_DLFCN_H 1
13542 _ACEOF
13545 done
13549 ac_ext=cpp
13550 ac_cpp='$CXXCPP $CPPFLAGS'
13551 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13552 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13553 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13554 if test -z "$CXX"; then
13555 if test -n "$CCC"; then
13556 CXX=$CCC
13557 else
13558 if test -n "$ac_tool_prefix"; then
13559 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13564 $as_echo_n "checking for $ac_word... " >&6; }
13565 if test "${ac_cv_prog_CXX+set}" = set; then :
13566 $as_echo_n "(cached) " >&6
13567 else
13568 if test -n "$CXX"; then
13569 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13570 else
13571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572 for as_dir in $PATH
13574 IFS=$as_save_IFS
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
13577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13578 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13580 break 2
13582 done
13583 done
13584 IFS=$as_save_IFS
13588 CXX=$ac_cv_prog_CXX
13589 if test -n "$CXX"; then
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13591 $as_echo "$CXX" >&6; }
13592 else
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13598 test -n "$CXX" && break
13599 done
13601 if test -z "$CXX"; then
13602 ac_ct_CXX=$CXX
13603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13605 # Extract the first word of "$ac_prog", so it can be a program name with args.
13606 set dummy $ac_prog; ac_word=$2
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608 $as_echo_n "checking for $ac_word... " >&6; }
13609 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
13611 else
13612 if test -n "$ac_ct_CXX"; then
13613 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13614 else
13615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616 for as_dir in $PATH
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13622 ac_cv_prog_ac_ct_CXX="$ac_prog"
13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13624 break 2
13626 done
13627 done
13628 IFS=$as_save_IFS
13632 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13633 if test -n "$ac_ct_CXX"; then
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13635 $as_echo "$ac_ct_CXX" >&6; }
13636 else
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638 $as_echo "no" >&6; }
13642 test -n "$ac_ct_CXX" && break
13643 done
13645 if test "x$ac_ct_CXX" = x; then
13646 CXX="g++"
13647 else
13648 case $cross_compiling:$ac_tool_warned in
13649 yes:)
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13652 ac_tool_warned=yes ;;
13653 esac
13654 CXX=$ac_ct_CXX
13660 # Provide some information about the compiler.
13661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13662 set X $ac_compile
13663 ac_compiler=$2
13664 for ac_option in --version -v -V -qversion; do
13665 { { ac_try="$ac_compiler $ac_option >&5"
13666 case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13669 esac
13670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13671 $as_echo "$ac_try_echo"; } >&5
13672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13673 ac_status=$?
13674 if test -s conftest.err; then
13675 sed '10a\
13676 ... rest of stderr output deleted ...
13677 10q' conftest.err >conftest.er1
13678 cat conftest.er1 >&5
13679 rm -f conftest.er1 conftest.err
13681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13682 test $ac_status = 0; }
13683 done
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13686 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13687 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13688 $as_echo_n "(cached) " >&6
13689 else
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13694 main ()
13696 #ifndef __GNUC__
13697 choke me
13698 #endif
13701 return 0;
13703 _ACEOF
13704 if ac_fn_cxx_try_compile "$LINENO"; then :
13705 ac_compiler_gnu=yes
13706 else
13707 ac_compiler_gnu=no
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13714 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13715 if test $ac_compiler_gnu = yes; then
13716 GXX=yes
13717 else
13718 GXX=
13720 ac_test_CXXFLAGS=${CXXFLAGS+set}
13721 ac_save_CXXFLAGS=$CXXFLAGS
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13723 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13724 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13725 $as_echo_n "(cached) " >&6
13726 else
13727 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13728 ac_cxx_werror_flag=yes
13729 ac_cv_prog_cxx_g=no
13730 CXXFLAGS="-g"
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13735 main ()
13739 return 0;
13741 _ACEOF
13742 if ac_fn_cxx_try_compile "$LINENO"; then :
13743 ac_cv_prog_cxx_g=yes
13744 else
13745 CXXFLAGS=""
13746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13747 /* end confdefs.h. */
13750 main ()
13754 return 0;
13756 _ACEOF
13757 if ac_fn_cxx_try_compile "$LINENO"; then :
13759 else
13760 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13761 CXXFLAGS="-g"
13762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13763 /* end confdefs.h. */
13766 main ()
13770 return 0;
13772 _ACEOF
13773 if ac_fn_cxx_try_compile "$LINENO"; then :
13774 ac_cv_prog_cxx_g=yes
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13781 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13784 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13785 if test "$ac_test_CXXFLAGS" = set; then
13786 CXXFLAGS=$ac_save_CXXFLAGS
13787 elif test $ac_cv_prog_cxx_g = yes; then
13788 if test "$GXX" = yes; then
13789 CXXFLAGS="-g -O2"
13790 else
13791 CXXFLAGS="-g"
13793 else
13794 if test "$GXX" = yes; then
13795 CXXFLAGS="-O2"
13796 else
13797 CXXFLAGS=
13800 ac_ext=c
13801 ac_cpp='$CPP $CPPFLAGS'
13802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13807 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13808 (test "X$CXX" != "Xg++"))) ; then
13809 ac_ext=cpp
13810 ac_cpp='$CXXCPP $CPPFLAGS'
13811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13815 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13816 if test -z "$CXXCPP"; then
13817 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13818 $as_echo_n "(cached) " >&6
13819 else
13820 # Double quotes because CXXCPP needs to be expanded
13821 for CXXCPP in "$CXX -E" "/lib/cpp"
13823 ac_preproc_ok=false
13824 for ac_cxx_preproc_warn_flag in '' yes
13826 # Use a header file that comes with gcc, so configuring glibc
13827 # with a fresh cross-compiler works.
13828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13829 # <limits.h> exists even on freestanding compilers.
13830 # On the NeXT, cc -E runs the code through the compiler's parser,
13831 # not just through cpp. "Syntax error" is here to catch this case.
13832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h. */
13834 #ifdef __STDC__
13835 # include <limits.h>
13836 #else
13837 # include <assert.h>
13838 #endif
13839 Syntax error
13840 _ACEOF
13841 if ac_fn_cxx_try_cpp "$LINENO"; then :
13843 else
13844 # Broken: fails on valid input.
13845 continue
13847 rm -f conftest.err conftest.$ac_ext
13849 # OK, works on sane cases. Now check whether nonexistent headers
13850 # can be detected and how.
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 #include <ac_nonexistent.h>
13854 _ACEOF
13855 if ac_fn_cxx_try_cpp "$LINENO"; then :
13856 # Broken: success on invalid input.
13857 continue
13858 else
13859 # Passes both tests.
13860 ac_preproc_ok=:
13861 break
13863 rm -f conftest.err conftest.$ac_ext
13865 done
13866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13867 rm -f conftest.err conftest.$ac_ext
13868 if $ac_preproc_ok; then :
13869 break
13872 done
13873 ac_cv_prog_CXXCPP=$CXXCPP
13876 CXXCPP=$ac_cv_prog_CXXCPP
13877 else
13878 ac_cv_prog_CXXCPP=$CXXCPP
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13881 $as_echo "$CXXCPP" >&6; }
13882 ac_preproc_ok=false
13883 for ac_cxx_preproc_warn_flag in '' yes
13885 # Use a header file that comes with gcc, so configuring glibc
13886 # with a fresh cross-compiler works.
13887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13888 # <limits.h> exists even on freestanding compilers.
13889 # On the NeXT, cc -E runs the code through the compiler's parser,
13890 # not just through cpp. "Syntax error" is here to catch this case.
13891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h. */
13893 #ifdef __STDC__
13894 # include <limits.h>
13895 #else
13896 # include <assert.h>
13897 #endif
13898 Syntax error
13899 _ACEOF
13900 if ac_fn_cxx_try_cpp "$LINENO"; then :
13902 else
13903 # Broken: fails on valid input.
13904 continue
13906 rm -f conftest.err conftest.$ac_ext
13908 # OK, works on sane cases. Now check whether nonexistent headers
13909 # can be detected and how.
13910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h. */
13912 #include <ac_nonexistent.h>
13913 _ACEOF
13914 if ac_fn_cxx_try_cpp "$LINENO"; then :
13915 # Broken: success on invalid input.
13916 continue
13917 else
13918 # Passes both tests.
13919 ac_preproc_ok=:
13920 break
13922 rm -f conftest.err conftest.$ac_ext
13924 done
13925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13926 rm -f conftest.err conftest.$ac_ext
13927 if $ac_preproc_ok; then :
13929 else
13930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13932 _lt_caught_CXX_error=yes; }
13935 ac_ext=c
13936 ac_cpp='$CPP $CPPFLAGS'
13937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13941 else
13942 _lt_caught_CXX_error=yes
13949 # Set options
13953 enable_dlopen=no
13956 enable_win32_dll=no
13959 # Check whether --enable-shared was given.
13960 if test "${enable_shared+set}" = set; then :
13961 enableval=$enable_shared; p=${PACKAGE-default}
13962 case $enableval in
13963 yes) enable_shared=yes ;;
13964 no) enable_shared=no ;;
13966 enable_shared=no
13967 # Look at the argument we got. We use all the common list separators.
13968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13969 for pkg in $enableval; do
13970 IFS="$lt_save_ifs"
13971 if test "X$pkg" = "X$p"; then
13972 enable_shared=yes
13974 done
13975 IFS="$lt_save_ifs"
13977 esac
13978 else
13979 enable_shared=yes
13990 # Check whether --enable-static was given.
13991 if test "${enable_static+set}" = set; then :
13992 enableval=$enable_static; p=${PACKAGE-default}
13993 case $enableval in
13994 yes) enable_static=yes ;;
13995 no) enable_static=no ;;
13997 enable_static=no
13998 # Look at the argument we got. We use all the common list separators.
13999 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14000 for pkg in $enableval; do
14001 IFS="$lt_save_ifs"
14002 if test "X$pkg" = "X$p"; then
14003 enable_static=yes
14005 done
14006 IFS="$lt_save_ifs"
14008 esac
14009 else
14010 enable_static=yes
14022 # Check whether --with-pic was given.
14023 if test "${with_pic+set}" = set; then :
14024 withval=$with_pic; pic_mode="$withval"
14025 else
14026 pic_mode=default
14030 test -z "$pic_mode" && pic_mode=default
14038 # Check whether --enable-fast-install was given.
14039 if test "${enable_fast_install+set}" = set; then :
14040 enableval=$enable_fast_install; p=${PACKAGE-default}
14041 case $enableval in
14042 yes) enable_fast_install=yes ;;
14043 no) enable_fast_install=no ;;
14045 enable_fast_install=no
14046 # Look at the argument we got. We use all the common list separators.
14047 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14048 for pkg in $enableval; do
14049 IFS="$lt_save_ifs"
14050 if test "X$pkg" = "X$p"; then
14051 enable_fast_install=yes
14053 done
14054 IFS="$lt_save_ifs"
14056 esac
14057 else
14058 enable_fast_install=yes
14071 # This can be used to rebuild libtool when needed
14072 LIBTOOL_DEPS="$ltmain"
14074 # Always use our own libtool.
14075 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14101 test -z "$LN_S" && LN_S="ln -s"
14116 if test -n "${ZSH_VERSION+set}" ; then
14117 setopt NO_GLOB_SUBST
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14121 $as_echo_n "checking for objdir... " >&6; }
14122 if test "${lt_cv_objdir+set}" = set; then :
14123 $as_echo_n "(cached) " >&6
14124 else
14125 rm -f .libs 2>/dev/null
14126 mkdir .libs 2>/dev/null
14127 if test -d .libs; then
14128 lt_cv_objdir=.libs
14129 else
14130 # MS-DOS does not allow filenames that begin with a dot.
14131 lt_cv_objdir=_libs
14133 rmdir .libs 2>/dev/null
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14136 $as_echo "$lt_cv_objdir" >&6; }
14137 objdir=$lt_cv_objdir
14143 cat >>confdefs.h <<_ACEOF
14144 #define LT_OBJDIR "$lt_cv_objdir/"
14145 _ACEOF
14163 case $host_os in
14164 aix3*)
14165 # AIX sometimes has problems with the GCC collect2 program. For some
14166 # reason, if we set the COLLECT_NAMES environment variable, the problems
14167 # vanish in a puff of smoke.
14168 if test "X${COLLECT_NAMES+set}" != Xset; then
14169 COLLECT_NAMES=
14170 export COLLECT_NAMES
14173 esac
14175 # Sed substitution that helps us do robust quoting. It backslashifies
14176 # metacharacters that are still active within double-quoted strings.
14177 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14179 # Same as above, but do not quote variable references.
14180 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14182 # Sed substitution to delay expansion of an escaped shell variable in a
14183 # double_quote_subst'ed string.
14184 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14186 # Sed substitution to delay expansion of an escaped single quote.
14187 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14189 # Sed substitution to avoid accidental globbing in evaled expressions
14190 no_glob_subst='s/\*/\\\*/g'
14192 # Global variables:
14193 ofile=libtool
14194 can_build_shared=yes
14196 # All known linkers require a `.a' archive for static linking (except MSVC,
14197 # which needs '.lib').
14198 libext=a
14200 with_gnu_ld="$lt_cv_prog_gnu_ld"
14202 old_CC="$CC"
14203 old_CFLAGS="$CFLAGS"
14205 # Set sane defaults for various variables
14206 test -z "$CC" && CC=cc
14207 test -z "$LTCC" && LTCC=$CC
14208 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14209 test -z "$LD" && LD=ld
14210 test -z "$ac_objext" && ac_objext=o
14212 for cc_temp in $compiler""; do
14213 case $cc_temp in
14214 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14215 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14216 \-*) ;;
14217 *) break;;
14218 esac
14219 done
14220 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14223 # Only perform the check for file, if the check method requires it
14224 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14225 case $deplibs_check_method in
14226 file_magic*)
14227 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14229 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14230 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14231 $as_echo_n "(cached) " >&6
14232 else
14233 case $MAGIC_CMD in
14234 [\\/*] | ?:[\\/]*)
14235 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14238 lt_save_MAGIC_CMD="$MAGIC_CMD"
14239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14240 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14241 for ac_dir in $ac_dummy; do
14242 IFS="$lt_save_ifs"
14243 test -z "$ac_dir" && ac_dir=.
14244 if test -f $ac_dir/${ac_tool_prefix}file; then
14245 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14246 if test -n "$file_magic_test_file"; then
14247 case $deplibs_check_method in
14248 "file_magic "*)
14249 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14251 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14252 $EGREP "$file_magic_regex" > /dev/null; then
14254 else
14255 cat <<_LT_EOF 1>&2
14257 *** Warning: the command libtool uses to detect shared libraries,
14258 *** $file_magic_cmd, produces output that libtool cannot recognize.
14259 *** The result is that libtool may fail to recognize shared libraries
14260 *** as such. This will affect the creation of libtool libraries that
14261 *** depend on shared libraries, but programs linked with such libtool
14262 *** libraries will work regardless of this problem. Nevertheless, you
14263 *** may want to report the problem to your system manager and/or to
14264 *** bug-libtool@gnu.org
14266 _LT_EOF
14267 fi ;;
14268 esac
14270 break
14272 done
14273 IFS="$lt_save_ifs"
14274 MAGIC_CMD="$lt_save_MAGIC_CMD"
14276 esac
14279 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14280 if test -n "$MAGIC_CMD"; then
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14282 $as_echo "$MAGIC_CMD" >&6; }
14283 else
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14292 if test -z "$lt_cv_path_MAGIC_CMD"; then
14293 if test -n "$ac_tool_prefix"; then
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14295 $as_echo_n "checking for file... " >&6; }
14296 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14297 $as_echo_n "(cached) " >&6
14298 else
14299 case $MAGIC_CMD in
14300 [\\/*] | ?:[\\/]*)
14301 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14304 lt_save_MAGIC_CMD="$MAGIC_CMD"
14305 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14306 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14307 for ac_dir in $ac_dummy; do
14308 IFS="$lt_save_ifs"
14309 test -z "$ac_dir" && ac_dir=.
14310 if test -f $ac_dir/file; then
14311 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14312 if test -n "$file_magic_test_file"; then
14313 case $deplibs_check_method in
14314 "file_magic "*)
14315 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14316 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14317 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14318 $EGREP "$file_magic_regex" > /dev/null; then
14320 else
14321 cat <<_LT_EOF 1>&2
14323 *** Warning: the command libtool uses to detect shared libraries,
14324 *** $file_magic_cmd, produces output that libtool cannot recognize.
14325 *** The result is that libtool may fail to recognize shared libraries
14326 *** as such. This will affect the creation of libtool libraries that
14327 *** depend on shared libraries, but programs linked with such libtool
14328 *** libraries will work regardless of this problem. Nevertheless, you
14329 *** may want to report the problem to your system manager and/or to
14330 *** bug-libtool@gnu.org
14332 _LT_EOF
14333 fi ;;
14334 esac
14336 break
14338 done
14339 IFS="$lt_save_ifs"
14340 MAGIC_CMD="$lt_save_MAGIC_CMD"
14342 esac
14345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14346 if test -n "$MAGIC_CMD"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14348 $as_echo "$MAGIC_CMD" >&6; }
14349 else
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14355 else
14356 MAGIC_CMD=:
14362 esac
14364 # Use C for the default configuration in the libtool script
14366 lt_save_CC="$CC"
14367 ac_ext=c
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14374 # Source file extension for C test sources.
14375 ac_ext=c
14377 # Object file extension for compiled C test sources.
14378 objext=o
14379 objext=$objext
14381 # Code to be used in simple compile tests
14382 lt_simple_compile_test_code="int some_variable = 0;"
14384 # Code to be used in simple link tests
14385 lt_simple_link_test_code='int main(){return(0);}'
14393 # If no C compiler was specified, use CC.
14394 LTCC=${LTCC-"$CC"}
14396 # If no C compiler flags were specified, use CFLAGS.
14397 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14399 # Allow CC to be a program name with arguments.
14400 compiler=$CC
14402 # Save the default compiler, since it gets overwritten when the other
14403 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14404 compiler_DEFAULT=$CC
14406 # save warnings/boilerplate of simple test code
14407 ac_outfile=conftest.$ac_objext
14408 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14409 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14410 _lt_compiler_boilerplate=`cat conftest.err`
14411 $RM conftest*
14413 ac_outfile=conftest.$ac_objext
14414 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14415 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14416 _lt_linker_boilerplate=`cat conftest.err`
14417 $RM -r conftest*
14420 ## CAVEAT EMPTOR:
14421 ## There is no encapsulation within the following macros, do not change
14422 ## the running order or otherwise move them around unless you know exactly
14423 ## what you are doing...
14424 if test -n "$compiler"; then
14426 lt_prog_compiler_no_builtin_flag=
14428 if test "$GCC" = yes; then
14429 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14432 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14434 $as_echo_n "(cached) " >&6
14435 else
14436 lt_cv_prog_compiler_rtti_exceptions=no
14437 ac_outfile=conftest.$ac_objext
14438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14439 lt_compiler_flag="-fno-rtti -fno-exceptions"
14440 # Insert the option either (1) after the last *FLAGS variable, or
14441 # (2) before a word containing "conftest.", or (3) at the end.
14442 # Note that $ac_compile itself does not contain backslashes and begins
14443 # with a dollar sign (not a hyphen), so the echo should work correctly.
14444 # The option is referenced via a variable to avoid confusing sed.
14445 lt_compile=`echo "$ac_compile" | $SED \
14446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14448 -e 's:$: $lt_compiler_flag:'`
14449 (eval echo "\"\$as_me:14449: $lt_compile\"" >&5)
14450 (eval "$lt_compile" 2>conftest.err)
14451 ac_status=$?
14452 cat conftest.err >&5
14453 echo "$as_me:14453: \$? = $ac_status" >&5
14454 if (exit $ac_status) && test -s "$ac_outfile"; then
14455 # The compiler can only warn and ignore the option if not recognized
14456 # So say no if there are warnings other than the usual output.
14457 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14460 lt_cv_prog_compiler_rtti_exceptions=yes
14463 $RM conftest*
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14467 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14469 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14470 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14471 else
14482 lt_prog_compiler_wl=
14483 lt_prog_compiler_pic=
14484 lt_prog_compiler_static=
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14487 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14489 if test "$GCC" = yes; then
14490 lt_prog_compiler_wl='-Wl,'
14491 lt_prog_compiler_static='-static'
14493 case $host_os in
14494 aix*)
14495 # All AIX code is PIC.
14496 if test "$host_cpu" = ia64; then
14497 # AIX 5 now supports IA64 processor
14498 lt_prog_compiler_static='-Bstatic'
14502 amigaos*)
14503 case $host_cpu in
14504 powerpc)
14505 # see comment about AmigaOS4 .so support
14506 lt_prog_compiler_pic='-fPIC'
14508 m68k)
14509 # FIXME: we need at least 68020 code to build shared libraries, but
14510 # adding the `-m68020' flag to GCC prevents building anything better,
14511 # like `-m68040'.
14512 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14514 esac
14517 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14518 # PIC is the default for these OSes.
14521 mingw* | cygwin* | pw32* | os2* | cegcc*)
14522 # This hack is so that the source file can tell whether it is being
14523 # built for inclusion in a dll (and should export symbols for example).
14524 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14525 # (--disable-auto-import) libraries
14526 lt_prog_compiler_pic='-DDLL_EXPORT'
14529 darwin* | rhapsody*)
14530 # PIC is the default on this platform
14531 # Common symbols not allowed in MH_DYLIB files
14532 lt_prog_compiler_pic='-fno-common'
14535 hpux*)
14536 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14537 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14538 # sets the default TLS model and affects inlining.
14539 case $host_cpu in
14540 hppa*64*)
14541 # +Z the default
14544 lt_prog_compiler_pic='-fPIC'
14546 esac
14549 interix[3-9]*)
14550 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14551 # Instead, we relocate shared libraries at runtime.
14554 msdosdjgpp*)
14555 # Just because we use GCC doesn't mean we suddenly get shared libraries
14556 # on systems that don't support them.
14557 lt_prog_compiler_can_build_shared=no
14558 enable_shared=no
14561 *nto* | *qnx*)
14562 # QNX uses GNU C++, but need to define -shared option too, otherwise
14563 # it will coredump.
14564 lt_prog_compiler_pic='-fPIC -shared'
14567 sysv4*MP*)
14568 if test -d /usr/nec; then
14569 lt_prog_compiler_pic=-Kconform_pic
14574 lt_prog_compiler_pic='-fPIC'
14576 esac
14577 else
14578 # PORTME Check for flag to pass linker flags through the system compiler.
14579 case $host_os in
14580 aix*)
14581 lt_prog_compiler_wl='-Wl,'
14582 if test "$host_cpu" = ia64; then
14583 # AIX 5 now supports IA64 processor
14584 lt_prog_compiler_static='-Bstatic'
14585 else
14586 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14590 mingw* | cygwin* | pw32* | os2* | cegcc*)
14591 # This hack is so that the source file can tell whether it is being
14592 # built for inclusion in a dll (and should export symbols for example).
14593 lt_prog_compiler_pic='-DDLL_EXPORT'
14596 hpux9* | hpux10* | hpux11*)
14597 lt_prog_compiler_wl='-Wl,'
14598 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14599 # not for PA HP-UX.
14600 case $host_cpu in
14601 hppa*64*|ia64*)
14602 # +Z the default
14605 lt_prog_compiler_pic='+Z'
14607 esac
14608 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14609 lt_prog_compiler_static='${wl}-a ${wl}archive'
14612 irix5* | irix6* | nonstopux*)
14613 lt_prog_compiler_wl='-Wl,'
14614 # PIC (with -KPIC) is the default.
14615 lt_prog_compiler_static='-non_shared'
14618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14619 case $cc_basename in
14620 # old Intel for x86_64 which still supported -KPIC.
14621 ecc*)
14622 lt_prog_compiler_wl='-Wl,'
14623 lt_prog_compiler_pic='-KPIC'
14624 lt_prog_compiler_static='-static'
14626 # icc used to be incompatible with GCC.
14627 # ICC 10 doesn't accept -KPIC any more.
14628 icc* | ifort*)
14629 lt_prog_compiler_wl='-Wl,'
14630 lt_prog_compiler_pic='-fPIC'
14631 lt_prog_compiler_static='-static'
14633 # Lahey Fortran 8.1.
14634 lf95*)
14635 lt_prog_compiler_wl='-Wl,'
14636 lt_prog_compiler_pic='--shared'
14637 lt_prog_compiler_static='--static'
14639 pgcc* | pgf77* | pgf90* | pgf95*)
14640 # Portland Group compilers (*not* the Pentium gcc compiler,
14641 # which looks to be a dead project)
14642 lt_prog_compiler_wl='-Wl,'
14643 lt_prog_compiler_pic='-fpic'
14644 lt_prog_compiler_static='-Bstatic'
14646 ccc*)
14647 lt_prog_compiler_wl='-Wl,'
14648 # All Alpha code is PIC.
14649 lt_prog_compiler_static='-non_shared'
14651 xl*)
14652 # IBM XL C 8.0/Fortran 10.1 on PPC
14653 lt_prog_compiler_wl='-Wl,'
14654 lt_prog_compiler_pic='-qpic'
14655 lt_prog_compiler_static='-qstaticlink'
14658 case `$CC -V 2>&1 | sed 5q` in
14659 *Sun\ C*)
14660 # Sun C 5.9
14661 lt_prog_compiler_pic='-KPIC'
14662 lt_prog_compiler_static='-Bstatic'
14663 lt_prog_compiler_wl='-Wl,'
14665 *Sun\ F*)
14666 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14667 lt_prog_compiler_pic='-KPIC'
14668 lt_prog_compiler_static='-Bstatic'
14669 lt_prog_compiler_wl=''
14671 esac
14673 esac
14676 newsos6)
14677 lt_prog_compiler_pic='-KPIC'
14678 lt_prog_compiler_static='-Bstatic'
14681 *nto* | *qnx*)
14682 # QNX uses GNU C++, but need to define -shared option too, otherwise
14683 # it will coredump.
14684 lt_prog_compiler_pic='-fPIC -shared'
14687 osf3* | osf4* | osf5*)
14688 lt_prog_compiler_wl='-Wl,'
14689 # All OSF/1 code is PIC.
14690 lt_prog_compiler_static='-non_shared'
14693 rdos*)
14694 lt_prog_compiler_static='-non_shared'
14697 solaris*)
14698 lt_prog_compiler_pic='-KPIC'
14699 lt_prog_compiler_static='-Bstatic'
14700 case $cc_basename in
14701 f77* | f90* | f95*)
14702 lt_prog_compiler_wl='-Qoption ld ';;
14704 lt_prog_compiler_wl='-Wl,';;
14705 esac
14708 sunos4*)
14709 lt_prog_compiler_wl='-Qoption ld '
14710 lt_prog_compiler_pic='-PIC'
14711 lt_prog_compiler_static='-Bstatic'
14714 sysv4 | sysv4.2uw2* | sysv4.3*)
14715 lt_prog_compiler_wl='-Wl,'
14716 lt_prog_compiler_pic='-KPIC'
14717 lt_prog_compiler_static='-Bstatic'
14720 sysv4*MP*)
14721 if test -d /usr/nec ;then
14722 lt_prog_compiler_pic='-Kconform_pic'
14723 lt_prog_compiler_static='-Bstatic'
14727 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14728 lt_prog_compiler_wl='-Wl,'
14729 lt_prog_compiler_pic='-KPIC'
14730 lt_prog_compiler_static='-Bstatic'
14733 unicos*)
14734 lt_prog_compiler_wl='-Wl,'
14735 lt_prog_compiler_can_build_shared=no
14738 uts4*)
14739 lt_prog_compiler_pic='-pic'
14740 lt_prog_compiler_static='-Bstatic'
14744 lt_prog_compiler_can_build_shared=no
14746 esac
14749 case $host_os in
14750 # For platforms which do not support PIC, -DPIC is meaningless:
14751 *djgpp*)
14752 lt_prog_compiler_pic=
14755 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14757 esac
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14759 $as_echo "$lt_prog_compiler_pic" >&6; }
14767 # Check to make sure the PIC flag actually works.
14769 if test -n "$lt_prog_compiler_pic"; then
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14771 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14772 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14773 $as_echo_n "(cached) " >&6
14774 else
14775 lt_cv_prog_compiler_pic_works=no
14776 ac_outfile=conftest.$ac_objext
14777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14778 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14779 # Insert the option either (1) after the last *FLAGS variable, or
14780 # (2) before a word containing "conftest.", or (3) at the end.
14781 # Note that $ac_compile itself does not contain backslashes and begins
14782 # with a dollar sign (not a hyphen), so the echo should work correctly.
14783 # The option is referenced via a variable to avoid confusing sed.
14784 lt_compile=`echo "$ac_compile" | $SED \
14785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14787 -e 's:$: $lt_compiler_flag:'`
14788 (eval echo "\"\$as_me:14788: $lt_compile\"" >&5)
14789 (eval "$lt_compile" 2>conftest.err)
14790 ac_status=$?
14791 cat conftest.err >&5
14792 echo "$as_me:14792: \$? = $ac_status" >&5
14793 if (exit $ac_status) && test -s "$ac_outfile"; then
14794 # The compiler can only warn and ignore the option if not recognized
14795 # So say no if there are warnings other than the usual output.
14796 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14798 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14799 lt_cv_prog_compiler_pic_works=yes
14802 $RM conftest*
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14806 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14808 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14809 case $lt_prog_compiler_pic in
14810 "" | " "*) ;;
14811 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14812 esac
14813 else
14814 lt_prog_compiler_pic=
14815 lt_prog_compiler_can_build_shared=no
14826 # Check to make sure the static flag actually works.
14828 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14830 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14831 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14832 $as_echo_n "(cached) " >&6
14833 else
14834 lt_cv_prog_compiler_static_works=no
14835 save_LDFLAGS="$LDFLAGS"
14836 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14837 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14838 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14839 # The linker can only warn and ignore the option if not recognized
14840 # So say no if there are warnings
14841 if test -s conftest.err; then
14842 # Append any errors to the config.log.
14843 cat conftest.err 1>&5
14844 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14845 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14846 if diff conftest.exp conftest.er2 >/dev/null; then
14847 lt_cv_prog_compiler_static_works=yes
14849 else
14850 lt_cv_prog_compiler_static_works=yes
14853 $RM -r conftest*
14854 LDFLAGS="$save_LDFLAGS"
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14858 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14860 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14862 else
14863 lt_prog_compiler_static=
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14874 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14875 $as_echo_n "(cached) " >&6
14876 else
14877 lt_cv_prog_compiler_c_o=no
14878 $RM -r conftest 2>/dev/null
14879 mkdir conftest
14880 cd conftest
14881 mkdir out
14882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14884 lt_compiler_flag="-o out/conftest2.$ac_objext"
14885 # Insert the option either (1) after the last *FLAGS variable, or
14886 # (2) before a word containing "conftest.", or (3) at the end.
14887 # Note that $ac_compile itself does not contain backslashes and begins
14888 # with a dollar sign (not a hyphen), so the echo should work correctly.
14889 lt_compile=`echo "$ac_compile" | $SED \
14890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14892 -e 's:$: $lt_compiler_flag:'`
14893 (eval echo "\"\$as_me:14893: $lt_compile\"" >&5)
14894 (eval "$lt_compile" 2>out/conftest.err)
14895 ac_status=$?
14896 cat out/conftest.err >&5
14897 echo "$as_me:14897: \$? = $ac_status" >&5
14898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14899 then
14900 # The compiler can only warn and ignore the option if not recognized
14901 # So say no if there are warnings
14902 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14905 lt_cv_prog_compiler_c_o=yes
14908 chmod u+w . 2>&5
14909 $RM conftest*
14910 # SGI C++ compiler will create directory out/ii_files/ for
14911 # template instantiation
14912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14913 $RM out/* && rmdir out
14914 cd ..
14915 $RM -r conftest
14916 $RM conftest*
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932 lt_cv_prog_compiler_c_o=no
14933 $RM -r conftest 2>/dev/null
14934 mkdir conftest
14935 cd conftest
14936 mkdir out
14937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14939 lt_compiler_flag="-o out/conftest2.$ac_objext"
14940 # Insert the option either (1) after the last *FLAGS variable, or
14941 # (2) before a word containing "conftest.", or (3) at the end.
14942 # Note that $ac_compile itself does not contain backslashes and begins
14943 # with a dollar sign (not a hyphen), so the echo should work correctly.
14944 lt_compile=`echo "$ac_compile" | $SED \
14945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14947 -e 's:$: $lt_compiler_flag:'`
14948 (eval echo "\"\$as_me:14948: $lt_compile\"" >&5)
14949 (eval "$lt_compile" 2>out/conftest.err)
14950 ac_status=$?
14951 cat out/conftest.err >&5
14952 echo "$as_me:14952: \$? = $ac_status" >&5
14953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14954 then
14955 # The compiler can only warn and ignore the option if not recognized
14956 # So say no if there are warnings
14957 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14960 lt_cv_prog_compiler_c_o=yes
14963 chmod u+w . 2>&5
14964 $RM conftest*
14965 # SGI C++ compiler will create directory out/ii_files/ for
14966 # template instantiation
14967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14968 $RM out/* && rmdir out
14969 cd ..
14970 $RM -r conftest
14971 $RM conftest*
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14980 hard_links="nottested"
14981 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14982 # do not overwrite the value of need_locks provided by the user
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14984 $as_echo_n "checking if we can lock with hard links... " >&6; }
14985 hard_links=yes
14986 $RM conftest*
14987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14988 touch conftest.a
14989 ln conftest.a conftest.b 2>&5 || hard_links=no
14990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14992 $as_echo "$hard_links" >&6; }
14993 if test "$hard_links" = no; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14995 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14996 need_locks=warn
14998 else
14999 need_locks=no
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15008 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15010 runpath_var=
15011 allow_undefined_flag=
15012 always_export_symbols=no
15013 archive_cmds=
15014 archive_expsym_cmds=
15015 compiler_needs_object=no
15016 enable_shared_with_static_runtimes=no
15017 export_dynamic_flag_spec=
15018 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15019 hardcode_automatic=no
15020 hardcode_direct=no
15021 hardcode_direct_absolute=no
15022 hardcode_libdir_flag_spec=
15023 hardcode_libdir_flag_spec_ld=
15024 hardcode_libdir_separator=
15025 hardcode_minus_L=no
15026 hardcode_shlibpath_var=unsupported
15027 inherit_rpath=no
15028 link_all_deplibs=unknown
15029 module_cmds=
15030 module_expsym_cmds=
15031 old_archive_from_new_cmds=
15032 old_archive_from_expsyms_cmds=
15033 thread_safe_flag_spec=
15034 whole_archive_flag_spec=
15035 # include_expsyms should be a list of space-separated symbols to be *always*
15036 # included in the symbol list
15037 include_expsyms=
15038 # exclude_expsyms can be an extended regexp of symbols to exclude
15039 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15040 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15041 # as well as any symbol that contains `d'.
15042 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15043 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15044 # platforms (ab)use it in PIC code, but their linkers get confused if
15045 # the symbol is explicitly referenced. Since portable code cannot
15046 # rely on this symbol name, it's probably fine to never include it in
15047 # preloaded symbol tables.
15048 # Exclude shared library initialization/finalization symbols.
15049 extract_expsyms_cmds=
15051 case $host_os in
15052 cygwin* | mingw* | pw32* | cegcc*)
15053 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15054 # When not using gcc, we currently assume that we are using
15055 # Microsoft Visual C++.
15056 if test "$GCC" != yes; then
15057 with_gnu_ld=no
15060 interix*)
15061 # we just hope/assume this is gcc and not c89 (= MSVC++)
15062 with_gnu_ld=yes
15064 openbsd*)
15065 with_gnu_ld=no
15067 esac
15069 ld_shlibs=yes
15070 if test "$with_gnu_ld" = yes; then
15071 # If archive_cmds runs LD, not CC, wlarc should be empty
15072 wlarc='${wl}'
15074 # Set some defaults for GNU ld with shared library support. These
15075 # are reset later if shared libraries are not supported. Putting them
15076 # here allows them to be overridden if necessary.
15077 runpath_var=LD_RUN_PATH
15078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15079 export_dynamic_flag_spec='${wl}--export-dynamic'
15080 # ancient GNU ld didn't support --whole-archive et. al.
15081 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15082 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15083 else
15084 whole_archive_flag_spec=
15086 supports_anon_versioning=no
15087 case `$LD -v 2>&1` in
15088 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15089 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15090 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15091 *\ 2.11.*) ;; # other 2.11 versions
15092 *) supports_anon_versioning=yes ;;
15093 esac
15095 # See if GNU ld supports shared libraries.
15096 case $host_os in
15097 aix[3-9]*)
15098 # On AIX/PPC, the GNU linker is very broken
15099 if test "$host_cpu" != ia64; then
15100 ld_shlibs=no
15101 cat <<_LT_EOF 1>&2
15103 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15104 *** to be unable to reliably create shared libraries on AIX.
15105 *** Therefore, libtool is disabling shared libraries support. If you
15106 *** really care for shared libraries, you may want to modify your PATH
15107 *** so that a non-GNU linker is found, and then restart.
15109 _LT_EOF
15113 amigaos*)
15114 case $host_cpu in
15115 powerpc)
15116 # see comment about AmigaOS4 .so support
15117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15118 archive_expsym_cmds=''
15120 m68k)
15121 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)'
15122 hardcode_libdir_flag_spec='-L$libdir'
15123 hardcode_minus_L=yes
15125 esac
15128 beos*)
15129 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15130 allow_undefined_flag=unsupported
15131 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15132 # support --undefined. This deserves some investigation. FIXME
15133 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15134 else
15135 ld_shlibs=no
15139 cygwin* | mingw* | pw32* | cegcc*)
15140 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15141 # as there is no search path for DLLs.
15142 hardcode_libdir_flag_spec='-L$libdir'
15143 allow_undefined_flag=unsupported
15144 always_export_symbols=no
15145 enable_shared_with_static_runtimes=yes
15146 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15148 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15149 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15150 # If the export-symbols file already is a .def file (1st line
15151 # is EXPORTS), use it as is; otherwise, prepend...
15152 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15153 cp $export_symbols $output_objdir/$soname.def;
15154 else
15155 echo EXPORTS > $output_objdir/$soname.def;
15156 cat $export_symbols >> $output_objdir/$soname.def;
15158 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15159 else
15160 ld_shlibs=no
15164 interix[3-9]*)
15165 hardcode_direct=no
15166 hardcode_shlibpath_var=no
15167 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15168 export_dynamic_flag_spec='${wl}-E'
15169 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15170 # Instead, shared libraries are loaded at an image base (0x10000000 by
15171 # default) and relocated if they conflict, which is a slow very memory
15172 # consuming and fragmenting process. To avoid this, we pick a random,
15173 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15174 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15175 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15176 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'
15179 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15180 tmp_diet=no
15181 if test "$host_os" = linux-dietlibc; then
15182 case $cc_basename in
15183 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15184 esac
15186 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15187 && test "$tmp_diet" = no
15188 then
15189 tmp_addflag=
15190 tmp_sharedflag='-shared'
15191 case $cc_basename,$host_cpu in
15192 pgcc*) # Portland Group C compiler
15193 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15194 tmp_addflag=' $pic_flag'
15196 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15197 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15198 tmp_addflag=' $pic_flag -Mnomain' ;;
15199 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15200 tmp_addflag=' -i_dynamic' ;;
15201 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15202 tmp_addflag=' -i_dynamic -nofor_main' ;;
15203 ifc* | ifort*) # Intel Fortran compiler
15204 tmp_addflag=' -nofor_main' ;;
15205 lf95*) # Lahey Fortran 8.1
15206 whole_archive_flag_spec=
15207 tmp_sharedflag='--shared' ;;
15208 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15209 tmp_sharedflag='-qmkshrobj'
15210 tmp_addflag= ;;
15211 esac
15212 case `$CC -V 2>&1 | sed 5q` in
15213 *Sun\ C*) # Sun C 5.9
15214 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15215 compiler_needs_object=yes
15216 tmp_sharedflag='-G' ;;
15217 *Sun\ F*) # Sun Fortran 8.3
15218 tmp_sharedflag='-G' ;;
15219 esac
15220 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222 if test "x$supports_anon_versioning" = xyes; then
15223 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15224 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15225 echo "local: *; };" >> $output_objdir/$libname.ver~
15226 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15229 case $cc_basename in
15230 xlf*)
15231 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15232 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15233 hardcode_libdir_flag_spec=
15234 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15235 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15236 if test "x$supports_anon_versioning" = xyes; then
15237 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15238 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15239 echo "local: *; };" >> $output_objdir/$libname.ver~
15240 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15243 esac
15244 else
15245 ld_shlibs=no
15249 netbsd*)
15250 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15251 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15252 wlarc=
15253 else
15254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15259 solaris*)
15260 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15261 ld_shlibs=no
15262 cat <<_LT_EOF 1>&2
15264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15265 *** create shared libraries on Solaris systems. Therefore, libtool
15266 *** is disabling shared libraries support. We urge you to upgrade GNU
15267 *** binutils to release 2.9.1 or newer. Another option is to modify
15268 *** your PATH or compiler configuration so that the native linker is
15269 *** used, and then restart.
15271 _LT_EOF
15272 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15275 else
15276 ld_shlibs=no
15280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15281 case `$LD -v 2>&1` in
15282 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15283 ld_shlibs=no
15284 cat <<_LT_EOF 1>&2
15286 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15287 *** reliably create shared libraries on SCO systems. Therefore, libtool
15288 *** is disabling shared libraries support. We urge you to upgrade GNU
15289 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15290 *** your PATH or compiler configuration so that the native linker is
15291 *** used, and then restart.
15293 _LT_EOF
15296 # For security reasons, it is highly recommended that you always
15297 # use absolute paths for naming shared libraries, and exclude the
15298 # DT_RUNPATH tag from executables and libraries. But doing so
15299 # requires that you compile everything twice, which is a pain.
15300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15304 else
15305 ld_shlibs=no
15308 esac
15311 sunos4*)
15312 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15313 wlarc=
15314 hardcode_direct=yes
15315 hardcode_shlibpath_var=no
15319 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15321 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15322 else
15323 ld_shlibs=no
15326 esac
15328 if test "$ld_shlibs" = no; then
15329 runpath_var=
15330 hardcode_libdir_flag_spec=
15331 export_dynamic_flag_spec=
15332 whole_archive_flag_spec=
15334 else
15335 # PORTME fill in a description of your system's linker (not GNU ld)
15336 case $host_os in
15337 aix3*)
15338 allow_undefined_flag=unsupported
15339 always_export_symbols=yes
15340 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'
15341 # Note: this linker hardcodes the directories in LIBPATH if there
15342 # are no directories specified by -L.
15343 hardcode_minus_L=yes
15344 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15345 # Neither direct hardcoding nor static linking is supported with a
15346 # broken collect2.
15347 hardcode_direct=unsupported
15351 aix[4-9]*)
15352 if test "$host_cpu" = ia64; then
15353 # On IA64, the linker does run time linking by default, so we don't
15354 # have to do anything special.
15355 aix_use_runtimelinking=no
15356 exp_sym_flag='-Bexport'
15357 no_entry_flag=""
15358 else
15359 # If we're using GNU nm, then we don't want the "-C" option.
15360 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15361 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15362 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15363 else
15364 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'
15366 aix_use_runtimelinking=no
15368 # Test if we are trying to use run time linking or normal
15369 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15370 # need to do runtime linking.
15371 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15372 for ld_flag in $LDFLAGS; do
15373 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15374 aix_use_runtimelinking=yes
15375 break
15377 done
15379 esac
15381 exp_sym_flag='-bexport'
15382 no_entry_flag='-bnoentry'
15385 # When large executables or shared objects are built, AIX ld can
15386 # have problems creating the table of contents. If linking a library
15387 # or program results in "error TOC overflow" add -mminimal-toc to
15388 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15389 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15391 archive_cmds=''
15392 hardcode_direct=yes
15393 hardcode_direct_absolute=yes
15394 hardcode_libdir_separator=':'
15395 link_all_deplibs=yes
15396 file_list_spec='${wl}-f,'
15398 if test "$GCC" = yes; then
15399 case $host_os in aix4.[012]|aix4.[012].*)
15400 # We only want to do this on AIX 4.2 and lower, the check
15401 # below for broken collect2 doesn't work under 4.3+
15402 collect2name=`${CC} -print-prog-name=collect2`
15403 if test -f "$collect2name" &&
15404 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15405 then
15406 # We have reworked collect2
15408 else
15409 # We have old collect2
15410 hardcode_direct=unsupported
15411 # It fails to find uninstalled libraries when the uninstalled
15412 # path is not listed in the libpath. Setting hardcode_minus_L
15413 # to unsupported forces relinking
15414 hardcode_minus_L=yes
15415 hardcode_libdir_flag_spec='-L$libdir'
15416 hardcode_libdir_separator=
15419 esac
15420 shared_flag='-shared'
15421 if test "$aix_use_runtimelinking" = yes; then
15422 shared_flag="$shared_flag "'${wl}-G'
15424 else
15425 # not using gcc
15426 if test "$host_cpu" = ia64; then
15427 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15428 # chokes on -Wl,-G. The following line is correct:
15429 shared_flag='-G'
15430 else
15431 if test "$aix_use_runtimelinking" = yes; then
15432 shared_flag='${wl}-G'
15433 else
15434 shared_flag='${wl}-bM:SRE'
15439 export_dynamic_flag_spec='${wl}-bexpall'
15440 # It seems that -bexpall does not export symbols beginning with
15441 # underscore (_), so it is better to generate a list of symbols to export.
15442 always_export_symbols=yes
15443 if test "$aix_use_runtimelinking" = yes; then
15444 # Warning - without using the other runtime loading flags (-brtl),
15445 # -berok will link without error, but may produce a broken library.
15446 allow_undefined_flag='-berok'
15447 # Determine the default libpath from the value encoded in an
15448 # empty executable.
15449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15453 main ()
15457 return 0;
15459 _ACEOF
15460 if ac_fn_c_try_link "$LINENO"; then :
15462 lt_aix_libpath_sed='
15463 /Import File Strings/,/^$/ {
15464 /^0/ {
15465 s/^0 *\(.*\)$/\1/
15469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15470 # Check for a 64-bit object if we didn't find anything.
15471 if test -z "$aix_libpath"; then
15472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15475 rm -f core conftest.err conftest.$ac_objext \
15476 conftest$ac_exeext conftest.$ac_ext
15477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15479 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15480 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15481 else
15482 if test "$host_cpu" = ia64; then
15483 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15484 allow_undefined_flag="-z nodefs"
15485 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"
15486 else
15487 # Determine the default libpath from the value encoded in an
15488 # empty executable.
15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15493 main ()
15497 return 0;
15499 _ACEOF
15500 if ac_fn_c_try_link "$LINENO"; then :
15502 lt_aix_libpath_sed='
15503 /Import File Strings/,/^$/ {
15504 /^0/ {
15505 s/^0 *\(.*\)$/\1/
15509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15510 # Check for a 64-bit object if we didn't find anything.
15511 if test -z "$aix_libpath"; then
15512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15515 rm -f core conftest.err conftest.$ac_objext \
15516 conftest$ac_exeext conftest.$ac_ext
15517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15520 # Warning - without using the other run time loading flags,
15521 # -berok will link without error, but may produce a broken library.
15522 no_undefined_flag=' ${wl}-bernotok'
15523 allow_undefined_flag=' ${wl}-berok'
15524 # Exported symbols can be pulled into shared objects from archives
15525 whole_archive_flag_spec='$convenience'
15526 archive_cmds_need_lc=yes
15527 # This is similar to how AIX traditionally builds its shared libraries.
15528 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'
15533 amigaos*)
15534 case $host_cpu in
15535 powerpc)
15536 # see comment about AmigaOS4 .so support
15537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15538 archive_expsym_cmds=''
15540 m68k)
15541 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)'
15542 hardcode_libdir_flag_spec='-L$libdir'
15543 hardcode_minus_L=yes
15545 esac
15548 bsdi[45]*)
15549 export_dynamic_flag_spec=-rdynamic
15552 cygwin* | mingw* | pw32* | cegcc*)
15553 # When not using gcc, we currently assume that we are using
15554 # Microsoft Visual C++.
15555 # hardcode_libdir_flag_spec is actually meaningless, as there is
15556 # no search path for DLLs.
15557 hardcode_libdir_flag_spec=' '
15558 allow_undefined_flag=unsupported
15559 # Tell ltmain to make .lib files, not .a files.
15560 libext=lib
15561 # Tell ltmain to make .dll files, not .so files.
15562 shrext_cmds=".dll"
15563 # FIXME: Setting linknames here is a bad hack.
15564 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15565 # The linker will automatically build a .lib file if we build a DLL.
15566 old_archive_from_new_cmds='true'
15567 # FIXME: Should let the user specify the lib program.
15568 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15569 fix_srcfile_path='`cygpath -w "$srcfile"`'
15570 enable_shared_with_static_runtimes=yes
15573 darwin* | rhapsody*)
15576 archive_cmds_need_lc=no
15577 hardcode_direct=no
15578 hardcode_automatic=yes
15579 hardcode_shlibpath_var=unsupported
15580 whole_archive_flag_spec=''
15581 link_all_deplibs=yes
15582 allow_undefined_flag="$_lt_dar_allow_undefined"
15583 case $cc_basename in
15584 ifort*) _lt_dar_can_shared=yes ;;
15585 *) _lt_dar_can_shared=$GCC ;;
15586 esac
15587 if test "$_lt_dar_can_shared" = "yes"; then
15588 output_verbose_link_cmd=echo
15589 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15590 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15591 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}"
15592 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}"
15594 else
15595 ld_shlibs=no
15600 dgux*)
15601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15602 hardcode_libdir_flag_spec='-L$libdir'
15603 hardcode_shlibpath_var=no
15606 freebsd1*)
15607 ld_shlibs=no
15610 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15611 # support. Future versions do this automatically, but an explicit c++rt0.o
15612 # does not break anything, and helps significantly (at the cost of a little
15613 # extra space).
15614 freebsd2.2*)
15615 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15616 hardcode_libdir_flag_spec='-R$libdir'
15617 hardcode_direct=yes
15618 hardcode_shlibpath_var=no
15621 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15622 freebsd2*)
15623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15624 hardcode_direct=yes
15625 hardcode_minus_L=yes
15626 hardcode_shlibpath_var=no
15629 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15630 freebsd* | dragonfly*)
15631 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15632 hardcode_libdir_flag_spec='-R$libdir'
15633 hardcode_direct=yes
15634 hardcode_shlibpath_var=no
15637 hpux9*)
15638 if test "$GCC" = yes; then
15639 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'
15640 else
15641 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'
15643 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15644 hardcode_libdir_separator=:
15645 hardcode_direct=yes
15647 # hardcode_minus_L: Not really in the search PATH,
15648 # but as the default location of the library.
15649 hardcode_minus_L=yes
15650 export_dynamic_flag_spec='${wl}-E'
15653 hpux10*)
15654 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15655 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15656 else
15657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15659 if test "$with_gnu_ld" = no; then
15660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15661 hardcode_libdir_flag_spec_ld='+b $libdir'
15662 hardcode_libdir_separator=:
15663 hardcode_direct=yes
15664 hardcode_direct_absolute=yes
15665 export_dynamic_flag_spec='${wl}-E'
15666 # hardcode_minus_L: Not really in the search PATH,
15667 # but as the default location of the library.
15668 hardcode_minus_L=yes
15672 hpux11*)
15673 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15674 case $host_cpu in
15675 hppa*64*)
15676 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15678 ia64*)
15679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15682 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15684 esac
15685 else
15686 case $host_cpu in
15687 hppa*64*)
15688 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15690 ia64*)
15691 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15694 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15696 esac
15698 if test "$with_gnu_ld" = no; then
15699 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15700 hardcode_libdir_separator=:
15702 case $host_cpu in
15703 hppa*64*|ia64*)
15704 hardcode_direct=no
15705 hardcode_shlibpath_var=no
15708 hardcode_direct=yes
15709 hardcode_direct_absolute=yes
15710 export_dynamic_flag_spec='${wl}-E'
15712 # hardcode_minus_L: Not really in the search PATH,
15713 # but as the default location of the library.
15714 hardcode_minus_L=yes
15716 esac
15720 irix5* | irix6* | nonstopux*)
15721 if test "$GCC" = yes; then
15722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15723 # Try to use the -exported_symbol ld option, if it does not
15724 # work, assume that -exports_file does not work either and
15725 # implicitly export all symbols.
15726 save_LDFLAGS="$LDFLAGS"
15727 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15730 int foo(void) {}
15731 _ACEOF
15732 if ac_fn_c_try_link "$LINENO"; then :
15733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15736 rm -f core conftest.err conftest.$ac_objext \
15737 conftest$ac_exeext conftest.$ac_ext
15738 LDFLAGS="$save_LDFLAGS"
15739 else
15740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
15743 archive_cmds_need_lc='no'
15744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15745 hardcode_libdir_separator=:
15746 inherit_rpath=yes
15747 link_all_deplibs=yes
15750 netbsd*)
15751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15752 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15753 else
15754 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15756 hardcode_libdir_flag_spec='-R$libdir'
15757 hardcode_direct=yes
15758 hardcode_shlibpath_var=no
15761 newsos6)
15762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763 hardcode_direct=yes
15764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15765 hardcode_libdir_separator=:
15766 hardcode_shlibpath_var=no
15769 *nto* | *qnx*)
15772 openbsd*)
15773 if test -f /usr/libexec/ld.so; then
15774 hardcode_direct=yes
15775 hardcode_shlibpath_var=no
15776 hardcode_direct_absolute=yes
15777 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15779 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15781 export_dynamic_flag_spec='${wl}-E'
15782 else
15783 case $host_os in
15784 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15786 hardcode_libdir_flag_spec='-R$libdir'
15789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15792 esac
15794 else
15795 ld_shlibs=no
15799 os2*)
15800 hardcode_libdir_flag_spec='-L$libdir'
15801 hardcode_minus_L=yes
15802 allow_undefined_flag=unsupported
15803 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'
15804 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15807 osf3*)
15808 if test "$GCC" = yes; then
15809 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15810 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15811 else
15812 allow_undefined_flag=' -expect_unresolved \*'
15813 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15815 archive_cmds_need_lc='no'
15816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15817 hardcode_libdir_separator=:
15820 osf4* | osf5*) # as osf3* with the addition of -msym flag
15821 if test "$GCC" = yes; then
15822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15823 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15825 else
15826 allow_undefined_flag=' -expect_unresolved \*'
15827 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15828 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~
15829 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
15831 # Both c and cxx compiler support -rpath directly
15832 hardcode_libdir_flag_spec='-rpath $libdir'
15834 archive_cmds_need_lc='no'
15835 hardcode_libdir_separator=:
15838 solaris*)
15839 no_undefined_flag=' -z defs'
15840 if test "$GCC" = yes; then
15841 wlarc='${wl}'
15842 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15843 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15844 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15845 else
15846 case `$CC -V 2>&1` in
15847 *"Compilers 5.0"*)
15848 wlarc=''
15849 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15850 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15854 wlarc='${wl}'
15855 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15857 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15859 esac
15861 hardcode_libdir_flag_spec='-R$libdir'
15862 hardcode_shlibpath_var=no
15863 case $host_os in
15864 solaris2.[0-5] | solaris2.[0-5].*) ;;
15866 # The compiler driver will combine and reorder linker options,
15867 # but understands `-z linker_flag'. GCC discards it without `$wl',
15868 # but is careful enough not to reorder.
15869 # Supported since Solaris 2.6 (maybe 2.5.1?)
15870 if test "$GCC" = yes; then
15871 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15872 else
15873 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15876 esac
15877 link_all_deplibs=yes
15880 sunos4*)
15881 if test "x$host_vendor" = xsequent; then
15882 # Use $CC to link under sequent, because it throws in some extra .o
15883 # files that make .init and .fini sections work.
15884 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15885 else
15886 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15888 hardcode_libdir_flag_spec='-L$libdir'
15889 hardcode_direct=yes
15890 hardcode_minus_L=yes
15891 hardcode_shlibpath_var=no
15894 sysv4)
15895 case $host_vendor in
15896 sni)
15897 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15898 hardcode_direct=yes # is this really true???
15900 siemens)
15901 ## LD is ld it makes a PLAMLIB
15902 ## CC just makes a GrossModule.
15903 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15904 reload_cmds='$CC -r -o $output$reload_objs'
15905 hardcode_direct=no
15907 motorola)
15908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15909 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15911 esac
15912 runpath_var='LD_RUN_PATH'
15913 hardcode_shlibpath_var=no
15916 sysv4.3*)
15917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15918 hardcode_shlibpath_var=no
15919 export_dynamic_flag_spec='-Bexport'
15922 sysv4*MP*)
15923 if test -d /usr/nec; then
15924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15925 hardcode_shlibpath_var=no
15926 runpath_var=LD_RUN_PATH
15927 hardcode_runpath_var=yes
15928 ld_shlibs=yes
15932 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15933 no_undefined_flag='${wl}-z,text'
15934 archive_cmds_need_lc=no
15935 hardcode_shlibpath_var=no
15936 runpath_var='LD_RUN_PATH'
15938 if test "$GCC" = yes; then
15939 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15940 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 else
15942 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15943 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15947 sysv5* | sco3.2v5* | sco5v6*)
15948 # Note: We can NOT use -z defs as we might desire, because we do not
15949 # link with -lc, and that would cause any symbols used from libc to
15950 # always be unresolved, which means just about no library would
15951 # ever link correctly. If we're not using GNU ld we use -z text
15952 # though, which does catch some bad symbols but isn't as heavy-handed
15953 # as -z defs.
15954 no_undefined_flag='${wl}-z,text'
15955 allow_undefined_flag='${wl}-z,nodefs'
15956 archive_cmds_need_lc=no
15957 hardcode_shlibpath_var=no
15958 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15959 hardcode_libdir_separator=':'
15960 link_all_deplibs=yes
15961 export_dynamic_flag_spec='${wl}-Bexport'
15962 runpath_var='LD_RUN_PATH'
15964 if test "$GCC" = yes; then
15965 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967 else
15968 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15969 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15973 uts4*)
15974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15975 hardcode_libdir_flag_spec='-L$libdir'
15976 hardcode_shlibpath_var=no
15980 ld_shlibs=no
15982 esac
15984 if test x$host_vendor = xsni; then
15985 case $host in
15986 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15987 export_dynamic_flag_spec='${wl}-Blargedynsym'
15989 esac
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15994 $as_echo "$ld_shlibs" >&6; }
15995 test "$ld_shlibs" = no && can_build_shared=no
15997 with_gnu_ld=$with_gnu_ld
16014 # Do we need to explicitly link libc?
16016 case "x$archive_cmds_need_lc" in
16017 x|xyes)
16018 # Assume -lc should be added
16019 archive_cmds_need_lc=yes
16021 if test "$enable_shared" = yes && test "$GCC" = yes; then
16022 case $archive_cmds in
16023 *'~'*)
16024 # FIXME: we may have to deal with multi-command sequences.
16026 '$CC '*)
16027 # Test whether the compiler implicitly links with -lc since on some
16028 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16029 # to ld, don't add -lc before -lgcc.
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16031 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16032 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16033 $as_echo_n "(cached) " >&6
16034 else
16035 $RM conftest*
16036 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16039 (eval $ac_compile) 2>&5
16040 ac_status=$?
16041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16042 test $ac_status = 0; } 2>conftest.err; then
16043 soname=conftest
16044 lib=conftest
16045 libobjs=conftest.$ac_objext
16046 deplibs=
16047 wl=$lt_prog_compiler_wl
16048 pic_flag=$lt_prog_compiler_pic
16049 compiler_flags=-v
16050 linker_flags=-v
16051 verstring=
16052 output_objdir=.
16053 libname=conftest
16054 lt_save_allow_undefined_flag=$allow_undefined_flag
16055 allow_undefined_flag=
16056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16057 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16058 ac_status=$?
16059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16060 test $ac_status = 0; }
16061 then
16062 lt_cv_archive_cmds_need_lc=no
16063 else
16064 lt_cv_archive_cmds_need_lc=yes
16066 allow_undefined_flag=$lt_save_allow_undefined_flag
16067 else
16068 cat conftest.err 1>&5
16070 $RM conftest*
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16074 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16075 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16077 esac
16080 esac
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16239 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16241 if test "$GCC" = yes; then
16242 case $host_os in
16243 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16244 *) lt_awk_arg="/^libraries:/" ;;
16245 esac
16246 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16247 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16248 # if the path contains ";" then we assume it to be the separator
16249 # otherwise default to the standard path separator (i.e. ":") - it is
16250 # assumed that no part of a normal pathname contains ";" but that should
16251 # okay in the real world where ";" in dirpaths is itself problematic.
16252 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16253 else
16254 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16256 # Ok, now we have the path, separated by spaces, we can step through it
16257 # and add multilib dir if necessary.
16258 lt_tmp_lt_search_path_spec=
16259 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16260 for lt_sys_path in $lt_search_path_spec; do
16261 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16263 else
16264 test -d "$lt_sys_path" && \
16265 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16267 done
16268 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16269 BEGIN {RS=" "; FS="/|\n";} {
16270 lt_foo="";
16271 lt_count=0;
16272 for (lt_i = NF; lt_i > 0; lt_i--) {
16273 if ($lt_i != "" && $lt_i != ".") {
16274 if ($lt_i == "..") {
16275 lt_count++;
16276 } else {
16277 if (lt_count == 0) {
16278 lt_foo="/" $lt_i lt_foo;
16279 } else {
16280 lt_count--;
16285 if (lt_foo != "") { lt_freq[lt_foo]++; }
16286 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16288 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16289 else
16290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16292 library_names_spec=
16293 libname_spec='lib$name'
16294 soname_spec=
16295 shrext_cmds=".so"
16296 postinstall_cmds=
16297 postuninstall_cmds=
16298 finish_cmds=
16299 finish_eval=
16300 shlibpath_var=
16301 shlibpath_overrides_runpath=unknown
16302 version_type=none
16303 dynamic_linker="$host_os ld.so"
16304 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16305 need_lib_prefix=unknown
16306 hardcode_into_libs=no
16308 # when you set need_version to no, make sure it does not cause -set_version
16309 # flags to be left without arguments
16310 need_version=unknown
16312 case $host_os in
16313 aix3*)
16314 version_type=linux
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16316 shlibpath_var=LIBPATH
16318 # AIX 3 has no versioning support, so we append a major version to the name.
16319 soname_spec='${libname}${release}${shared_ext}$major'
16322 aix[4-9]*)
16323 version_type=linux
16324 need_lib_prefix=no
16325 need_version=no
16326 hardcode_into_libs=yes
16327 if test "$host_cpu" = ia64; then
16328 # AIX 5 supports IA64
16329 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16330 shlibpath_var=LD_LIBRARY_PATH
16331 else
16332 # With GCC up to 2.95.x, collect2 would create an import file
16333 # for dependence libraries. The import file would start with
16334 # the line `#! .'. This would cause the generated library to
16335 # depend on `.', always an invalid library. This was fixed in
16336 # development snapshots of GCC prior to 3.0.
16337 case $host_os in
16338 aix4 | aix4.[01] | aix4.[01].*)
16339 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16340 echo ' yes '
16341 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16343 else
16344 can_build_shared=no
16347 esac
16348 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16349 # soname into executable. Probably we can add versioning support to
16350 # collect2, so additional links can be useful in future.
16351 if test "$aix_use_runtimelinking" = yes; then
16352 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16353 # instead of lib<name>.a to let people know that these are not
16354 # typical AIX shared libraries.
16355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16356 else
16357 # We preserve .a as extension for shared libraries through AIX4.2
16358 # and later when we are not doing run time linking.
16359 library_names_spec='${libname}${release}.a $libname.a'
16360 soname_spec='${libname}${release}${shared_ext}$major'
16362 shlibpath_var=LIBPATH
16366 amigaos*)
16367 case $host_cpu in
16368 powerpc)
16369 # Since July 2007 AmigaOS4 officially supports .so libraries.
16370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373 m68k)
16374 library_names_spec='$libname.ixlibrary $libname.a'
16375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16376 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
16378 esac
16381 beos*)
16382 library_names_spec='${libname}${shared_ext}'
16383 dynamic_linker="$host_os ld.so"
16384 shlibpath_var=LIBRARY_PATH
16387 bsdi[45]*)
16388 version_type=linux
16389 need_version=no
16390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391 soname_spec='${libname}${release}${shared_ext}$major'
16392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16396 # the default ld.so.conf also contains /usr/contrib/lib and
16397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16398 # libtool to hard-code these into programs
16401 cygwin* | mingw* | pw32* | cegcc*)
16402 version_type=windows
16403 shrext_cmds=".dll"
16404 need_version=no
16405 need_lib_prefix=no
16407 case $GCC,$host_os in
16408 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16409 library_names_spec='$libname.dll.a'
16410 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16411 postinstall_cmds='base_file=`basename \${file}`~
16412 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16413 dldir=$destdir/`dirname \$dlpath`~
16414 test -d \$dldir || mkdir -p \$dldir~
16415 $install_prog $dir/$dlname \$dldir/$dlname~
16416 chmod a+x \$dldir/$dlname~
16417 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16418 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16420 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16421 dlpath=$dir/\$dldll~
16422 $RM \$dlpath'
16423 shlibpath_overrides_runpath=yes
16425 case $host_os in
16426 cygwin*)
16427 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16428 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16429 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16431 mingw* | cegcc*)
16432 # MinGW DLLs use traditional 'lib' prefix
16433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16434 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16435 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16436 # It is most probably a Windows format PATH printed by
16437 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16438 # path with ; separators, and with drive letters. We can handle the
16439 # drive letters (cygwin fileutils understands them), so leave them,
16440 # especially as we might pass files found there to a mingw objdump,
16441 # which wouldn't understand a cygwinified path. Ahh.
16442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16443 else
16444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16447 pw32*)
16448 # pw32 DLLs use 'pw' prefix rather than 'lib'
16449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16451 esac
16455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16457 esac
16458 dynamic_linker='Win32 ld.exe'
16459 # FIXME: first we should search . and the directory the executable is in
16460 shlibpath_var=PATH
16463 darwin* | rhapsody*)
16464 dynamic_linker="$host_os dyld"
16465 version_type=darwin
16466 need_lib_prefix=no
16467 need_version=no
16468 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16469 soname_spec='${libname}${release}${major}$shared_ext'
16470 shlibpath_overrides_runpath=yes
16471 shlibpath_var=DYLD_LIBRARY_PATH
16472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16474 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16475 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16478 dgux*)
16479 version_type=linux
16480 need_lib_prefix=no
16481 need_version=no
16482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 shlibpath_var=LD_LIBRARY_PATH
16487 freebsd1*)
16488 dynamic_linker=no
16491 freebsd* | dragonfly*)
16492 # DragonFly does not have aout. When/if they implement a new
16493 # versioning mechanism, adjust this.
16494 if test -x /usr/bin/objformat; then
16495 objformat=`/usr/bin/objformat`
16496 else
16497 case $host_os in
16498 freebsd[123]*) objformat=aout ;;
16499 *) objformat=elf ;;
16500 esac
16502 version_type=freebsd-$objformat
16503 case $version_type in
16504 freebsd-elf*)
16505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16506 need_version=no
16507 need_lib_prefix=no
16509 freebsd-*)
16510 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16511 need_version=yes
16513 esac
16514 shlibpath_var=LD_LIBRARY_PATH
16515 case $host_os in
16516 freebsd2*)
16517 shlibpath_overrides_runpath=yes
16519 freebsd3.[01]* | freebsdelf3.[01]*)
16520 shlibpath_overrides_runpath=yes
16521 hardcode_into_libs=yes
16523 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16524 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16525 shlibpath_overrides_runpath=no
16526 hardcode_into_libs=yes
16528 *) # from 4.6 on, and DragonFly
16529 shlibpath_overrides_runpath=yes
16530 hardcode_into_libs=yes
16532 esac
16535 gnu*)
16536 version_type=linux
16537 need_lib_prefix=no
16538 need_version=no
16539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16540 soname_spec='${libname}${release}${shared_ext}$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16542 hardcode_into_libs=yes
16545 hpux9* | hpux10* | hpux11*)
16546 # Give a soname corresponding to the major version so that dld.sl refuses to
16547 # link against other versions.
16548 version_type=sunos
16549 need_lib_prefix=no
16550 need_version=no
16551 case $host_cpu in
16552 ia64*)
16553 shrext_cmds='.so'
16554 hardcode_into_libs=yes
16555 dynamic_linker="$host_os dld.so"
16556 shlibpath_var=LD_LIBRARY_PATH
16557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559 soname_spec='${libname}${release}${shared_ext}$major'
16560 if test "X$HPUX_IA64_MODE" = X32; then
16561 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16562 else
16563 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16565 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16567 hppa*64*)
16568 shrext_cmds='.sl'
16569 hardcode_into_libs=yes
16570 dynamic_linker="$host_os dld.sl"
16571 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16572 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16574 soname_spec='${libname}${release}${shared_ext}$major'
16575 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16576 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16579 shrext_cmds='.sl'
16580 dynamic_linker="$host_os dld.sl"
16581 shlibpath_var=SHLIB_PATH
16582 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16584 soname_spec='${libname}${release}${shared_ext}$major'
16586 esac
16587 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16588 postinstall_cmds='chmod 555 $lib'
16591 interix[3-9]*)
16592 version_type=linux
16593 need_lib_prefix=no
16594 need_version=no
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16598 shlibpath_var=LD_LIBRARY_PATH
16599 shlibpath_overrides_runpath=no
16600 hardcode_into_libs=yes
16603 irix5* | irix6* | nonstopux*)
16604 case $host_os in
16605 nonstopux*) version_type=nonstopux ;;
16607 if test "$lt_cv_prog_gnu_ld" = yes; then
16608 version_type=linux
16609 else
16610 version_type=irix
16611 fi ;;
16612 esac
16613 need_lib_prefix=no
16614 need_version=no
16615 soname_spec='${libname}${release}${shared_ext}$major'
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16617 case $host_os in
16618 irix5* | nonstopux*)
16619 libsuff= shlibsuff=
16622 case $LD in # libtool.m4 will add one of these switches to LD
16623 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16624 libsuff= shlibsuff= libmagic=32-bit;;
16625 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16626 libsuff=32 shlibsuff=N32 libmagic=N32;;
16627 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16628 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16629 *) libsuff= shlibsuff= libmagic=never-match;;
16630 esac
16632 esac
16633 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16634 shlibpath_overrides_runpath=no
16635 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16636 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16637 hardcode_into_libs=yes
16640 # No shared lib support for Linux oldld, aout, or coff.
16641 linux*oldld* | linux*aout* | linux*coff*)
16642 dynamic_linker=no
16645 # This must be Linux ELF.
16646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16647 version_type=linux
16648 need_lib_prefix=no
16649 need_version=no
16650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651 soname_spec='${libname}${release}${shared_ext}$major'
16652 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16653 shlibpath_var=LD_LIBRARY_PATH
16654 shlibpath_overrides_runpath=no
16656 # Some binutils ld are patched to set DT_RUNPATH
16657 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16658 $as_echo_n "(cached) " >&6
16659 else
16660 lt_cv_shlibpath_overrides_runpath=no
16661 save_LDFLAGS=$LDFLAGS
16662 save_libdir=$libdir
16663 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16664 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16669 main ()
16673 return 0;
16675 _ACEOF
16676 if ac_fn_c_try_link "$LINENO"; then :
16677 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16678 lt_cv_shlibpath_overrides_runpath=yes
16681 rm -f core conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16683 LDFLAGS=$save_LDFLAGS
16684 libdir=$save_libdir
16688 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16690 # This implies no fast_install, which is unacceptable.
16691 # Some rework will be needed to allow for fast_install
16692 # before this can be enabled.
16693 hardcode_into_libs=yes
16695 # Append ld.so.conf contents to the search path
16696 if test -f /etc/ld.so.conf; then
16697 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;/^$/d' | tr '\n' ' '`
16698 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16701 # We used to test for /lib/ld.so.1 and disable shared libraries on
16702 # powerpc, because MkLinux only supported shared libraries with the
16703 # GNU dynamic linker. Since this was broken with cross compilers,
16704 # most powerpc-linux boxes support dynamic linking these days and
16705 # people can always --disable-shared, the test was removed, and we
16706 # assume the GNU/Linux dynamic linker is in use.
16707 dynamic_linker='GNU/Linux ld.so'
16710 netbsd*)
16711 version_type=sunos
16712 need_lib_prefix=no
16713 need_version=no
16714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16716 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16717 dynamic_linker='NetBSD (a.out) ld.so'
16718 else
16719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16720 soname_spec='${libname}${release}${shared_ext}$major'
16721 dynamic_linker='NetBSD ld.elf_so'
16723 shlibpath_var=LD_LIBRARY_PATH
16724 shlibpath_overrides_runpath=yes
16725 hardcode_into_libs=yes
16728 newsos6)
16729 version_type=linux
16730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16731 shlibpath_var=LD_LIBRARY_PATH
16732 shlibpath_overrides_runpath=yes
16735 *nto* | *qnx*)
16736 version_type=qnx
16737 need_lib_prefix=no
16738 need_version=no
16739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16740 soname_spec='${libname}${release}${shared_ext}$major'
16741 shlibpath_var=LD_LIBRARY_PATH
16742 shlibpath_overrides_runpath=no
16743 hardcode_into_libs=yes
16744 dynamic_linker='ldqnx.so'
16747 openbsd*)
16748 version_type=sunos
16749 sys_lib_dlsearch_path_spec="/usr/lib"
16750 need_lib_prefix=no
16751 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16752 case $host_os in
16753 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16754 *) need_version=no ;;
16755 esac
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16758 shlibpath_var=LD_LIBRARY_PATH
16759 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16760 case $host_os in
16761 openbsd2.[89] | openbsd2.[89].*)
16762 shlibpath_overrides_runpath=no
16765 shlibpath_overrides_runpath=yes
16767 esac
16768 else
16769 shlibpath_overrides_runpath=yes
16773 os2*)
16774 libname_spec='$name'
16775 shrext_cmds=".dll"
16776 need_lib_prefix=no
16777 library_names_spec='$libname${shared_ext} $libname.a'
16778 dynamic_linker='OS/2 ld.exe'
16779 shlibpath_var=LIBPATH
16782 osf3* | osf4* | osf5*)
16783 version_type=osf
16784 need_lib_prefix=no
16785 need_version=no
16786 soname_spec='${libname}${release}${shared_ext}$major'
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16790 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16793 rdos*)
16794 dynamic_linker=no
16797 solaris*)
16798 version_type=linux
16799 need_lib_prefix=no
16800 need_version=no
16801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16802 soname_spec='${libname}${release}${shared_ext}$major'
16803 shlibpath_var=LD_LIBRARY_PATH
16804 shlibpath_overrides_runpath=yes
16805 hardcode_into_libs=yes
16806 # ldd complains unless libraries are executable
16807 postinstall_cmds='chmod +x $lib'
16810 sunos4*)
16811 version_type=sunos
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16814 shlibpath_var=LD_LIBRARY_PATH
16815 shlibpath_overrides_runpath=yes
16816 if test "$with_gnu_ld" = yes; then
16817 need_lib_prefix=no
16819 need_version=yes
16822 sysv4 | sysv4.3*)
16823 version_type=linux
16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16825 soname_spec='${libname}${release}${shared_ext}$major'
16826 shlibpath_var=LD_LIBRARY_PATH
16827 case $host_vendor in
16828 sni)
16829 shlibpath_overrides_runpath=no
16830 need_lib_prefix=no
16831 runpath_var=LD_RUN_PATH
16833 siemens)
16834 need_lib_prefix=no
16836 motorola)
16837 need_lib_prefix=no
16838 need_version=no
16839 shlibpath_overrides_runpath=no
16840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16842 esac
16845 sysv4*MP*)
16846 if test -d /usr/nec ;then
16847 version_type=linux
16848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16849 soname_spec='$libname${shared_ext}.$major'
16850 shlibpath_var=LD_LIBRARY_PATH
16854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16855 version_type=freebsd-elf
16856 need_lib_prefix=no
16857 need_version=no
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 shlibpath_overrides_runpath=yes
16862 hardcode_into_libs=yes
16863 if test "$with_gnu_ld" = yes; then
16864 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16865 else
16866 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16867 case $host_os in
16868 sco3.2v5*)
16869 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16871 esac
16873 sys_lib_dlsearch_path_spec='/usr/lib'
16876 tpf*)
16877 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16878 version_type=linux
16879 need_lib_prefix=no
16880 need_version=no
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882 shlibpath_var=LD_LIBRARY_PATH
16883 shlibpath_overrides_runpath=no
16884 hardcode_into_libs=yes
16887 uts4*)
16888 version_type=linux
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 shlibpath_var=LD_LIBRARY_PATH
16895 dynamic_linker=no
16897 esac
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16899 $as_echo "$dynamic_linker" >&6; }
16900 test "$dynamic_linker" = no && can_build_shared=no
16902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16903 if test "$GCC" = yes; then
16904 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16907 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16908 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16910 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16911 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17001 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17002 hardcode_action=
17003 if test -n "$hardcode_libdir_flag_spec" ||
17004 test -n "$runpath_var" ||
17005 test "X$hardcode_automatic" = "Xyes" ; then
17007 # We can hardcode non-existent directories.
17008 if test "$hardcode_direct" != no &&
17009 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17010 # have to relink, otherwise we might link with an installed library
17011 # when we should be linking with a yet-to-be-installed one
17012 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17013 test "$hardcode_minus_L" != no; then
17014 # Linking always hardcodes the temporary library directory.
17015 hardcode_action=relink
17016 else
17017 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17018 hardcode_action=immediate
17020 else
17021 # We cannot hardcode anything, or else we can only hardcode existing
17022 # directories.
17023 hardcode_action=unsupported
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17026 $as_echo "$hardcode_action" >&6; }
17028 if test "$hardcode_action" = relink ||
17029 test "$inherit_rpath" = yes; then
17030 # Fast installation is not supported
17031 enable_fast_install=no
17032 elif test "$shlibpath_overrides_runpath" = yes ||
17033 test "$enable_shared" = no; then
17034 # Fast installation is not necessary
17035 enable_fast_install=needless
17043 if test "x$enable_dlopen" != xyes; then
17044 enable_dlopen=unknown
17045 enable_dlopen_self=unknown
17046 enable_dlopen_self_static=unknown
17047 else
17048 lt_cv_dlopen=no
17049 lt_cv_dlopen_libs=
17051 case $host_os in
17052 beos*)
17053 lt_cv_dlopen="load_add_on"
17054 lt_cv_dlopen_libs=
17055 lt_cv_dlopen_self=yes
17058 mingw* | pw32* | cegcc*)
17059 lt_cv_dlopen="LoadLibrary"
17060 lt_cv_dlopen_libs=
17063 cygwin*)
17064 lt_cv_dlopen="dlopen"
17065 lt_cv_dlopen_libs=
17068 darwin*)
17069 # if libdl is installed we need to link against it
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17071 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17072 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17073 $as_echo_n "(cached) " >&6
17074 else
17075 ac_check_lib_save_LIBS=$LIBS
17076 LIBS="-ldl $LIBS"
17077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17078 /* end confdefs.h. */
17080 /* Override any GCC internal prototype to avoid an error.
17081 Use char because int might match the return type of a GCC
17082 builtin and then its argument prototype would still apply. */
17083 #ifdef __cplusplus
17084 extern "C"
17085 #endif
17086 char dlopen ();
17088 main ()
17090 return dlopen ();
17092 return 0;
17094 _ACEOF
17095 if ac_fn_c_try_link "$LINENO"; then :
17096 ac_cv_lib_dl_dlopen=yes
17097 else
17098 ac_cv_lib_dl_dlopen=no
17100 rm -f core conftest.err conftest.$ac_objext \
17101 conftest$ac_exeext conftest.$ac_ext
17102 LIBS=$ac_check_lib_save_LIBS
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17106 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17108 else
17110 lt_cv_dlopen="dyld"
17111 lt_cv_dlopen_libs=
17112 lt_cv_dlopen_self=yes
17119 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17120 if test "x$ac_cv_func_shl_load" = x""yes; then :
17121 lt_cv_dlopen="shl_load"
17122 else
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17124 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17125 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17126 $as_echo_n "(cached) " >&6
17127 else
17128 ac_check_lib_save_LIBS=$LIBS
17129 LIBS="-ldld $LIBS"
17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131 /* end confdefs.h. */
17133 /* Override any GCC internal prototype to avoid an error.
17134 Use char because int might match the return type of a GCC
17135 builtin and then its argument prototype would still apply. */
17136 #ifdef __cplusplus
17137 extern "C"
17138 #endif
17139 char shl_load ();
17141 main ()
17143 return shl_load ();
17145 return 0;
17147 _ACEOF
17148 if ac_fn_c_try_link "$LINENO"; then :
17149 ac_cv_lib_dld_shl_load=yes
17150 else
17151 ac_cv_lib_dld_shl_load=no
17153 rm -f core conftest.err conftest.$ac_objext \
17154 conftest$ac_exeext conftest.$ac_ext
17155 LIBS=$ac_check_lib_save_LIBS
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17158 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17159 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17160 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17161 else
17162 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17163 if test "x$ac_cv_func_dlopen" = x""yes; then :
17164 lt_cv_dlopen="dlopen"
17165 else
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17167 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17168 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17169 $as_echo_n "(cached) " >&6
17170 else
17171 ac_check_lib_save_LIBS=$LIBS
17172 LIBS="-ldl $LIBS"
17173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174 /* end confdefs.h. */
17176 /* Override any GCC internal prototype to avoid an error.
17177 Use char because int might match the return type of a GCC
17178 builtin and then its argument prototype would still apply. */
17179 #ifdef __cplusplus
17180 extern "C"
17181 #endif
17182 char dlopen ();
17184 main ()
17186 return dlopen ();
17188 return 0;
17190 _ACEOF
17191 if ac_fn_c_try_link "$LINENO"; then :
17192 ac_cv_lib_dl_dlopen=yes
17193 else
17194 ac_cv_lib_dl_dlopen=no
17196 rm -f core conftest.err conftest.$ac_objext \
17197 conftest$ac_exeext conftest.$ac_ext
17198 LIBS=$ac_check_lib_save_LIBS
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17201 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17202 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17204 else
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17206 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17207 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17208 $as_echo_n "(cached) " >&6
17209 else
17210 ac_check_lib_save_LIBS=$LIBS
17211 LIBS="-lsvld $LIBS"
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17218 #ifdef __cplusplus
17219 extern "C"
17220 #endif
17221 char dlopen ();
17223 main ()
17225 return dlopen ();
17227 return 0;
17229 _ACEOF
17230 if ac_fn_c_try_link "$LINENO"; then :
17231 ac_cv_lib_svld_dlopen=yes
17232 else
17233 ac_cv_lib_svld_dlopen=no
17235 rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17240 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17241 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17242 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17243 else
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17245 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17246 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17247 $as_echo_n "(cached) " >&6
17248 else
17249 ac_check_lib_save_LIBS=$LIBS
17250 LIBS="-ldld $LIBS"
17251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17252 /* end confdefs.h. */
17254 /* Override any GCC internal prototype to avoid an error.
17255 Use char because int might match the return type of a GCC
17256 builtin and then its argument prototype would still apply. */
17257 #ifdef __cplusplus
17258 extern "C"
17259 #endif
17260 char dld_link ();
17262 main ()
17264 return dld_link ();
17266 return 0;
17268 _ACEOF
17269 if ac_fn_c_try_link "$LINENO"; then :
17270 ac_cv_lib_dld_dld_link=yes
17271 else
17272 ac_cv_lib_dld_dld_link=no
17274 rm -f core conftest.err conftest.$ac_objext \
17275 conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17279 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17280 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17281 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17300 esac
17302 if test "x$lt_cv_dlopen" != xno; then
17303 enable_dlopen=yes
17304 else
17305 enable_dlopen=no
17308 case $lt_cv_dlopen in
17309 dlopen)
17310 save_CPPFLAGS="$CPPFLAGS"
17311 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17313 save_LDFLAGS="$LDFLAGS"
17314 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17316 save_LIBS="$LIBS"
17317 LIBS="$lt_cv_dlopen_libs $LIBS"
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17320 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17321 if test "${lt_cv_dlopen_self+set}" = set; then :
17322 $as_echo_n "(cached) " >&6
17323 else
17324 if test "$cross_compiling" = yes; then :
17325 lt_cv_dlopen_self=cross
17326 else
17327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17328 lt_status=$lt_dlunknown
17329 cat > conftest.$ac_ext <<_LT_EOF
17330 #line 17330 "configure"
17331 #include "confdefs.h"
17333 #if HAVE_DLFCN_H
17334 #include <dlfcn.h>
17335 #endif
17337 #include <stdio.h>
17339 #ifdef RTLD_GLOBAL
17340 # define LT_DLGLOBAL RTLD_GLOBAL
17341 #else
17342 # ifdef DL_GLOBAL
17343 # define LT_DLGLOBAL DL_GLOBAL
17344 # else
17345 # define LT_DLGLOBAL 0
17346 # endif
17347 #endif
17349 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17350 find out it does not work in some platform. */
17351 #ifndef LT_DLLAZY_OR_NOW
17352 # ifdef RTLD_LAZY
17353 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17354 # else
17355 # ifdef DL_LAZY
17356 # define LT_DLLAZY_OR_NOW DL_LAZY
17357 # else
17358 # ifdef RTLD_NOW
17359 # define LT_DLLAZY_OR_NOW RTLD_NOW
17360 # else
17361 # ifdef DL_NOW
17362 # define LT_DLLAZY_OR_NOW DL_NOW
17363 # else
17364 # define LT_DLLAZY_OR_NOW 0
17365 # endif
17366 # endif
17367 # endif
17368 # endif
17369 #endif
17371 void fnord() { int i=42;}
17372 int main ()
17374 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17375 int status = $lt_dlunknown;
17377 if (self)
17379 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17380 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17381 /* dlclose (self); */
17383 else
17384 puts (dlerror ());
17386 return status;
17388 _LT_EOF
17389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17390 (eval $ac_link) 2>&5
17391 ac_status=$?
17392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17393 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17394 (./conftest; exit; ) >&5 2>/dev/null
17395 lt_status=$?
17396 case x$lt_status in
17397 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17398 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17399 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17400 esac
17401 else :
17402 # compilation failed
17403 lt_cv_dlopen_self=no
17406 rm -fr conftest*
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17411 $as_echo "$lt_cv_dlopen_self" >&6; }
17413 if test "x$lt_cv_dlopen_self" = xyes; then
17414 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17416 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17417 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17418 $as_echo_n "(cached) " >&6
17419 else
17420 if test "$cross_compiling" = yes; then :
17421 lt_cv_dlopen_self_static=cross
17422 else
17423 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17424 lt_status=$lt_dlunknown
17425 cat > conftest.$ac_ext <<_LT_EOF
17426 #line 17426 "configure"
17427 #include "confdefs.h"
17429 #if HAVE_DLFCN_H
17430 #include <dlfcn.h>
17431 #endif
17433 #include <stdio.h>
17435 #ifdef RTLD_GLOBAL
17436 # define LT_DLGLOBAL RTLD_GLOBAL
17437 #else
17438 # ifdef DL_GLOBAL
17439 # define LT_DLGLOBAL DL_GLOBAL
17440 # else
17441 # define LT_DLGLOBAL 0
17442 # endif
17443 #endif
17445 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17446 find out it does not work in some platform. */
17447 #ifndef LT_DLLAZY_OR_NOW
17448 # ifdef RTLD_LAZY
17449 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17450 # else
17451 # ifdef DL_LAZY
17452 # define LT_DLLAZY_OR_NOW DL_LAZY
17453 # else
17454 # ifdef RTLD_NOW
17455 # define LT_DLLAZY_OR_NOW RTLD_NOW
17456 # else
17457 # ifdef DL_NOW
17458 # define LT_DLLAZY_OR_NOW DL_NOW
17459 # else
17460 # define LT_DLLAZY_OR_NOW 0
17461 # endif
17462 # endif
17463 # endif
17464 # endif
17465 #endif
17467 void fnord() { int i=42;}
17468 int main ()
17470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17471 int status = $lt_dlunknown;
17473 if (self)
17475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17476 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17477 /* dlclose (self); */
17479 else
17480 puts (dlerror ());
17482 return status;
17484 _LT_EOF
17485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17486 (eval $ac_link) 2>&5
17487 ac_status=$?
17488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17489 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17490 (./conftest; exit; ) >&5 2>/dev/null
17491 lt_status=$?
17492 case x$lt_status in
17493 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17494 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17495 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17496 esac
17497 else :
17498 # compilation failed
17499 lt_cv_dlopen_self_static=no
17502 rm -fr conftest*
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17507 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17510 CPPFLAGS="$save_CPPFLAGS"
17511 LDFLAGS="$save_LDFLAGS"
17512 LIBS="$save_LIBS"
17514 esac
17516 case $lt_cv_dlopen_self in
17517 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17518 *) enable_dlopen_self=unknown ;;
17519 esac
17521 case $lt_cv_dlopen_self_static in
17522 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17523 *) enable_dlopen_self_static=unknown ;;
17524 esac
17543 striplib=
17544 old_striplib=
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17546 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17547 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17548 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17549 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17551 $as_echo "yes" >&6; }
17552 else
17553 # FIXME - insert some real tests, host_os isn't really good enough
17554 case $host_os in
17555 darwin*)
17556 if test -n "$STRIP" ; then
17557 striplib="$STRIP -x"
17558 old_striplib="$STRIP -S"
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17560 $as_echo "yes" >&6; }
17561 else
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563 $as_echo "no" >&6; }
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17568 $as_echo "no" >&6; }
17570 esac
17584 # Report which library types will actually be built
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17586 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17588 $as_echo "$can_build_shared" >&6; }
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17591 $as_echo_n "checking whether to build shared libraries... " >&6; }
17592 test "$can_build_shared" = "no" && enable_shared=no
17594 # On AIX, shared libraries and static libraries use the same namespace, and
17595 # are all built from PIC.
17596 case $host_os in
17597 aix3*)
17598 test "$enable_shared" = yes && enable_static=no
17599 if test -n "$RANLIB"; then
17600 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17601 postinstall_cmds='$RANLIB $lib'
17605 aix[4-9]*)
17606 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17607 test "$enable_shared" = yes && enable_static=no
17610 esac
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17612 $as_echo "$enable_shared" >&6; }
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17615 $as_echo_n "checking whether to build static libraries... " >&6; }
17616 # Make sure either enable_shared or enable_static is yes.
17617 test "$enable_shared" = yes || enable_static=yes
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17619 $as_echo "$enable_static" >&6; }
17625 ac_ext=c
17626 ac_cpp='$CPP $CPPFLAGS'
17627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17631 CC="$lt_save_CC"
17634 ac_ext=cpp
17635 ac_cpp='$CXXCPP $CPPFLAGS'
17636 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17637 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17638 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17640 archive_cmds_need_lc_CXX=no
17641 allow_undefined_flag_CXX=
17642 always_export_symbols_CXX=no
17643 archive_expsym_cmds_CXX=
17644 compiler_needs_object_CXX=no
17645 export_dynamic_flag_spec_CXX=
17646 hardcode_direct_CXX=no
17647 hardcode_direct_absolute_CXX=no
17648 hardcode_libdir_flag_spec_CXX=
17649 hardcode_libdir_flag_spec_ld_CXX=
17650 hardcode_libdir_separator_CXX=
17651 hardcode_minus_L_CXX=no
17652 hardcode_shlibpath_var_CXX=unsupported
17653 hardcode_automatic_CXX=no
17654 inherit_rpath_CXX=no
17655 module_cmds_CXX=
17656 module_expsym_cmds_CXX=
17657 link_all_deplibs_CXX=unknown
17658 old_archive_cmds_CXX=$old_archive_cmds
17659 no_undefined_flag_CXX=
17660 whole_archive_flag_spec_CXX=
17661 enable_shared_with_static_runtimes_CXX=no
17663 # Source file extension for C++ test sources.
17664 ac_ext=cpp
17666 # Object file extension for compiled C++ test sources.
17667 objext=o
17668 objext_CXX=$objext
17670 # No sense in running all these tests if we already determined that
17671 # the CXX compiler isn't working. Some variables (like enable_shared)
17672 # are currently assumed to apply to all compilers on this platform,
17673 # and will be corrupted by setting them based on a non-working compiler.
17674 if test "$_lt_caught_CXX_error" != yes; then
17675 # Code to be used in simple compile tests
17676 lt_simple_compile_test_code="int some_variable = 0;"
17678 # Code to be used in simple link tests
17679 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17681 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17688 # If no C compiler was specified, use CC.
17689 LTCC=${LTCC-"$CC"}
17691 # If no C compiler flags were specified, use CFLAGS.
17692 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17694 # Allow CC to be a program name with arguments.
17695 compiler=$CC
17698 # save warnings/boilerplate of simple test code
17699 ac_outfile=conftest.$ac_objext
17700 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17701 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17702 _lt_compiler_boilerplate=`cat conftest.err`
17703 $RM conftest*
17705 ac_outfile=conftest.$ac_objext
17706 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17707 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17708 _lt_linker_boilerplate=`cat conftest.err`
17709 $RM -r conftest*
17712 # Allow CC to be a program name with arguments.
17713 lt_save_CC=$CC
17714 lt_save_LD=$LD
17715 lt_save_GCC=$GCC
17716 GCC=$GXX
17717 lt_save_with_gnu_ld=$with_gnu_ld
17718 lt_save_path_LD=$lt_cv_path_LD
17719 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17720 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17721 else
17722 $as_unset lt_cv_prog_gnu_ld
17724 if test -n "${lt_cv_path_LDCXX+set}"; then
17725 lt_cv_path_LD=$lt_cv_path_LDCXX
17726 else
17727 $as_unset lt_cv_path_LD
17729 test -z "${LDCXX+set}" || LD=$LDCXX
17730 CC=${CXX-"c++"}
17731 compiler=$CC
17732 compiler_CXX=$CC
17733 for cc_temp in $compiler""; do
17734 case $cc_temp in
17735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17737 \-*) ;;
17738 *) break;;
17739 esac
17740 done
17741 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17744 if test -n "$compiler"; then
17745 # We don't want -fno-exception when compiling C++ code, so set the
17746 # no_builtin_flag separately
17747 if test "$GXX" = yes; then
17748 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17749 else
17750 lt_prog_compiler_no_builtin_flag_CXX=
17753 if test "$GXX" = yes; then
17754 # Set up default GNU C++ configuration
17758 # Check whether --with-gnu-ld was given.
17759 if test "${with_gnu_ld+set}" = set; then :
17760 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17761 else
17762 with_gnu_ld=no
17765 ac_prog=ld
17766 if test "$GCC" = yes; then
17767 # Check if gcc -print-prog-name=ld gives a path.
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17769 $as_echo_n "checking for ld used by $CC... " >&6; }
17770 case $host in
17771 *-*-mingw*)
17772 # gcc leaves a trailing carriage return which upsets mingw
17773 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17775 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17776 esac
17777 case $ac_prog in
17778 # Accept absolute paths.
17779 [\\/]* | ?:[\\/]*)
17780 re_direlt='/[^/][^/]*/\.\./'
17781 # Canonicalize the pathname of ld
17782 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17783 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17784 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17785 done
17786 test -z "$LD" && LD="$ac_prog"
17789 # If it fails, then pretend we aren't using GCC.
17790 ac_prog=ld
17793 # If it is relative, then search for the first ld in PATH.
17794 with_gnu_ld=unknown
17796 esac
17797 elif test "$with_gnu_ld" = yes; then
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17799 $as_echo_n "checking for GNU ld... " >&6; }
17800 else
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17802 $as_echo_n "checking for non-GNU ld... " >&6; }
17804 if test "${lt_cv_path_LD+set}" = set; then :
17805 $as_echo_n "(cached) " >&6
17806 else
17807 if test -z "$LD"; then
17808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17809 for ac_dir in $PATH; do
17810 IFS="$lt_save_ifs"
17811 test -z "$ac_dir" && ac_dir=.
17812 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17813 lt_cv_path_LD="$ac_dir/$ac_prog"
17814 # Check to see if the program is GNU ld. I'd rather use --version,
17815 # but apparently some variants of GNU ld only accept -v.
17816 # Break only if it was the GNU/non-GNU ld that we prefer.
17817 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17818 *GNU* | *'with BFD'*)
17819 test "$with_gnu_ld" != no && break
17822 test "$with_gnu_ld" != yes && break
17824 esac
17826 done
17827 IFS="$lt_save_ifs"
17828 else
17829 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17833 LD="$lt_cv_path_LD"
17834 if test -n "$LD"; then
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17836 $as_echo "$LD" >&6; }
17837 else
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17839 $as_echo "no" >&6; }
17841 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17843 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17844 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17845 $as_echo_n "(cached) " >&6
17846 else
17847 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17848 case `$LD -v 2>&1 </dev/null` in
17849 *GNU* | *'with BFD'*)
17850 lt_cv_prog_gnu_ld=yes
17853 lt_cv_prog_gnu_ld=no
17855 esac
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17858 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17859 with_gnu_ld=$lt_cv_prog_gnu_ld
17867 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17868 # archiving commands below assume that GNU ld is being used.
17869 if test "$with_gnu_ld" = yes; then
17870 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17871 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'
17873 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17874 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17876 # If archive_cmds runs LD, not CC, wlarc should be empty
17877 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17878 # investigate it a little bit more. (MM)
17879 wlarc='${wl}'
17881 # ancient GNU ld didn't support --whole-archive et. al.
17882 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17883 $GREP 'no-whole-archive' > /dev/null; then
17884 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17885 else
17886 whole_archive_flag_spec_CXX=
17888 else
17889 with_gnu_ld=no
17890 wlarc=
17892 # A generic and very simple default shared library creation
17893 # command for GNU C++ for the case where it uses the native
17894 # linker, instead of GNU ld. If possible, this setting should
17895 # overridden to take advantage of the native linker features on
17896 # the platform it is being used on.
17897 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17900 # Commands to make compiler produce verbose output that lists
17901 # what "hidden" libraries, object files and flags are used when
17902 # linking a shared library.
17903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
17905 else
17906 GXX=no
17907 with_gnu_ld=no
17908 wlarc=
17911 # PORTME: fill in a description of your system's C++ link characteristics
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17913 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17914 ld_shlibs_CXX=yes
17915 case $host_os in
17916 aix3*)
17917 # FIXME: insert proper C++ library support
17918 ld_shlibs_CXX=no
17920 aix[4-9]*)
17921 if test "$host_cpu" = ia64; then
17922 # On IA64, the linker does run time linking by default, so we don't
17923 # have to do anything special.
17924 aix_use_runtimelinking=no
17925 exp_sym_flag='-Bexport'
17926 no_entry_flag=""
17927 else
17928 aix_use_runtimelinking=no
17930 # Test if we are trying to use run time linking or normal
17931 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17932 # need to do runtime linking.
17933 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17934 for ld_flag in $LDFLAGS; do
17935 case $ld_flag in
17936 *-brtl*)
17937 aix_use_runtimelinking=yes
17938 break
17940 esac
17941 done
17943 esac
17945 exp_sym_flag='-bexport'
17946 no_entry_flag='-bnoentry'
17949 # When large executables or shared objects are built, AIX ld can
17950 # have problems creating the table of contents. If linking a library
17951 # or program results in "error TOC overflow" add -mminimal-toc to
17952 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17953 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17955 archive_cmds_CXX=''
17956 hardcode_direct_CXX=yes
17957 hardcode_direct_absolute_CXX=yes
17958 hardcode_libdir_separator_CXX=':'
17959 link_all_deplibs_CXX=yes
17960 file_list_spec_CXX='${wl}-f,'
17962 if test "$GXX" = yes; then
17963 case $host_os in aix4.[012]|aix4.[012].*)
17964 # We only want to do this on AIX 4.2 and lower, the check
17965 # below for broken collect2 doesn't work under 4.3+
17966 collect2name=`${CC} -print-prog-name=collect2`
17967 if test -f "$collect2name" &&
17968 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17969 then
17970 # We have reworked collect2
17972 else
17973 # We have old collect2
17974 hardcode_direct_CXX=unsupported
17975 # It fails to find uninstalled libraries when the uninstalled
17976 # path is not listed in the libpath. Setting hardcode_minus_L
17977 # to unsupported forces relinking
17978 hardcode_minus_L_CXX=yes
17979 hardcode_libdir_flag_spec_CXX='-L$libdir'
17980 hardcode_libdir_separator_CXX=
17982 esac
17983 shared_flag='-shared'
17984 if test "$aix_use_runtimelinking" = yes; then
17985 shared_flag="$shared_flag "'${wl}-G'
17987 else
17988 # not using gcc
17989 if test "$host_cpu" = ia64; then
17990 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17991 # chokes on -Wl,-G. The following line is correct:
17992 shared_flag='-G'
17993 else
17994 if test "$aix_use_runtimelinking" = yes; then
17995 shared_flag='${wl}-G'
17996 else
17997 shared_flag='${wl}-bM:SRE'
18002 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18003 # It seems that -bexpall does not export symbols beginning with
18004 # underscore (_), so it is better to generate a list of symbols to
18005 # export.
18006 always_export_symbols_CXX=yes
18007 if test "$aix_use_runtimelinking" = yes; then
18008 # Warning - without using the other runtime loading flags (-brtl),
18009 # -berok will link without error, but may produce a broken library.
18010 allow_undefined_flag_CXX='-berok'
18011 # Determine the default libpath from the value encoded in an empty
18012 # executable.
18013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18014 /* end confdefs.h. */
18017 main ()
18021 return 0;
18023 _ACEOF
18024 if ac_fn_cxx_try_link "$LINENO"; then :
18026 lt_aix_libpath_sed='
18027 /Import File Strings/,/^$/ {
18028 /^0/ {
18029 s/^0 *\(.*\)$/\1/
18033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18034 # Check for a 64-bit object if we didn't find anything.
18035 if test -z "$aix_libpath"; then
18036 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18039 rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18041 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18043 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18045 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18046 else
18047 if test "$host_cpu" = ia64; then
18048 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18049 allow_undefined_flag_CXX="-z nodefs"
18050 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"
18051 else
18052 # Determine the default libpath from the value encoded in an
18053 # empty executable.
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18058 main ()
18062 return 0;
18064 _ACEOF
18065 if ac_fn_cxx_try_link "$LINENO"; then :
18067 lt_aix_libpath_sed='
18068 /Import File Strings/,/^$/ {
18069 /^0/ {
18070 s/^0 *\(.*\)$/\1/
18074 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18075 # Check for a 64-bit object if we didn't find anything.
18076 if test -z "$aix_libpath"; then
18077 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18080 rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18082 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18084 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18085 # Warning - without using the other run time loading flags,
18086 # -berok will link without error, but may produce a broken library.
18087 no_undefined_flag_CXX=' ${wl}-bernotok'
18088 allow_undefined_flag_CXX=' ${wl}-berok'
18089 # Exported symbols can be pulled into shared objects from archives
18090 whole_archive_flag_spec_CXX='$convenience'
18091 archive_cmds_need_lc_CXX=yes
18092 # This is similar to how AIX traditionally builds its shared
18093 # libraries.
18094 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'
18099 beos*)
18100 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18101 allow_undefined_flag_CXX=unsupported
18102 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18103 # support --undefined. This deserves some investigation. FIXME
18104 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18105 else
18106 ld_shlibs_CXX=no
18110 chorus*)
18111 case $cc_basename in
18113 # FIXME: insert proper C++ library support
18114 ld_shlibs_CXX=no
18116 esac
18119 cygwin* | mingw* | pw32* | cegcc*)
18120 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18121 # as there is no search path for DLLs.
18122 hardcode_libdir_flag_spec_CXX='-L$libdir'
18123 allow_undefined_flag_CXX=unsupported
18124 always_export_symbols_CXX=no
18125 enable_shared_with_static_runtimes_CXX=yes
18127 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18128 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'
18129 # If the export-symbols file already is a .def file (1st line
18130 # is EXPORTS), use it as is; otherwise, prepend...
18131 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18132 cp $export_symbols $output_objdir/$soname.def;
18133 else
18134 echo EXPORTS > $output_objdir/$soname.def;
18135 cat $export_symbols >> $output_objdir/$soname.def;
18137 $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'
18138 else
18139 ld_shlibs_CXX=no
18142 darwin* | rhapsody*)
18145 archive_cmds_need_lc_CXX=no
18146 hardcode_direct_CXX=no
18147 hardcode_automatic_CXX=yes
18148 hardcode_shlibpath_var_CXX=unsupported
18149 whole_archive_flag_spec_CXX=''
18150 link_all_deplibs_CXX=yes
18151 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18152 case $cc_basename in
18153 ifort*) _lt_dar_can_shared=yes ;;
18154 *) _lt_dar_can_shared=$GCC ;;
18155 esac
18156 if test "$_lt_dar_can_shared" = "yes"; then
18157 output_verbose_link_cmd=echo
18158 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}"
18159 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18160 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}"
18161 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}"
18162 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18163 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}"
18164 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}"
18167 else
18168 ld_shlibs_CXX=no
18173 dgux*)
18174 case $cc_basename in
18175 ec++*)
18176 # FIXME: insert proper C++ library support
18177 ld_shlibs_CXX=no
18179 ghcx*)
18180 # Green Hills C++ Compiler
18181 # FIXME: insert proper C++ library support
18182 ld_shlibs_CXX=no
18185 # FIXME: insert proper C++ library support
18186 ld_shlibs_CXX=no
18188 esac
18191 freebsd[12]*)
18192 # C++ shared libraries reported to be fairly broken before
18193 # switch to ELF
18194 ld_shlibs_CXX=no
18197 freebsd-elf*)
18198 archive_cmds_need_lc_CXX=no
18201 freebsd* | dragonfly*)
18202 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18203 # conventions
18204 ld_shlibs_CXX=yes
18207 gnu*)
18210 hpux9*)
18211 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18212 hardcode_libdir_separator_CXX=:
18213 export_dynamic_flag_spec_CXX='${wl}-E'
18214 hardcode_direct_CXX=yes
18215 hardcode_minus_L_CXX=yes # Not in the search PATH,
18216 # but as the default
18217 # location of the library.
18219 case $cc_basename in
18220 CC*)
18221 # FIXME: insert proper C++ library support
18222 ld_shlibs_CXX=no
18224 aCC*)
18225 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'
18226 # Commands to make compiler produce verbose output that lists
18227 # what "hidden" libraries, object files and flags are used when
18228 # linking a shared library.
18230 # There doesn't appear to be a way to prevent this compiler from
18231 # explicitly linking system object files so we need to strip them
18232 # from the output so that they don't get included in the library
18233 # dependencies.
18234 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; $ECHO "X$list" | $Xsed'
18237 if test "$GXX" = yes; then
18238 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'
18239 else
18240 # FIXME: insert proper C++ library support
18241 ld_shlibs_CXX=no
18244 esac
18247 hpux10*|hpux11*)
18248 if test $with_gnu_ld = no; then
18249 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18250 hardcode_libdir_separator_CXX=:
18252 case $host_cpu in
18253 hppa*64*|ia64*)
18256 export_dynamic_flag_spec_CXX='${wl}-E'
18258 esac
18260 case $host_cpu in
18261 hppa*64*|ia64*)
18262 hardcode_direct_CXX=no
18263 hardcode_shlibpath_var_CXX=no
18266 hardcode_direct_CXX=yes
18267 hardcode_direct_absolute_CXX=yes
18268 hardcode_minus_L_CXX=yes # Not in the search PATH,
18269 # but as the default
18270 # location of the library.
18272 esac
18274 case $cc_basename in
18275 CC*)
18276 # FIXME: insert proper C++ library support
18277 ld_shlibs_CXX=no
18279 aCC*)
18280 case $host_cpu in
18281 hppa*64*)
18282 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18284 ia64*)
18285 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18288 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18290 esac
18291 # Commands to make compiler produce verbose output that lists
18292 # what "hidden" libraries, object files and flags are used when
18293 # linking a shared library.
18295 # There doesn't appear to be a way to prevent this compiler from
18296 # explicitly linking system object files so we need to strip them
18297 # from the output so that they don't get included in the library
18298 # dependencies.
18299 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; $ECHO "X$list" | $Xsed'
18302 if test "$GXX" = yes; then
18303 if test $with_gnu_ld = no; then
18304 case $host_cpu in
18305 hppa*64*)
18306 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18308 ia64*)
18309 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18312 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'
18314 esac
18316 else
18317 # FIXME: insert proper C++ library support
18318 ld_shlibs_CXX=no
18321 esac
18324 interix[3-9]*)
18325 hardcode_direct_CXX=no
18326 hardcode_shlibpath_var_CXX=no
18327 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18328 export_dynamic_flag_spec_CXX='${wl}-E'
18329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18330 # Instead, shared libraries are loaded at an image base (0x10000000 by
18331 # default) and relocated if they conflict, which is a slow very memory
18332 # consuming and fragmenting process. To avoid this, we pick a random,
18333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18335 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'
18336 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'
18338 irix5* | irix6*)
18339 case $cc_basename in
18340 CC*)
18341 # SGI C++
18342 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18344 # Archives containing C++ object files must be created using
18345 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18346 # necessary to make sure instantiated templates are included
18347 # in the archive.
18348 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18351 if test "$GXX" = yes; then
18352 if test "$with_gnu_ld" = no; then
18353 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18354 else
18355 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
18358 link_all_deplibs_CXX=yes
18360 esac
18361 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18362 hardcode_libdir_separator_CXX=:
18363 inherit_rpath_CXX=yes
18366 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18367 case $cc_basename in
18368 KCC*)
18369 # Kuck and Associates, Inc. (KAI) C++ Compiler
18371 # KCC will only create a shared library if the output file
18372 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18373 # to its proper name (with version) after linking.
18374 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'
18375 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'
18376 # Commands to make compiler produce verbose output that lists
18377 # what "hidden" libraries, object files and flags are used when
18378 # linking a shared library.
18380 # There doesn't appear to be a way to prevent this compiler from
18381 # explicitly linking system object files so we need to strip them
18382 # from the output so that they don't get included in the library
18383 # dependencies.
18384 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; $ECHO "X$list" | $Xsed'
18386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18387 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18389 # Archives containing C++ object files must be created using
18390 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18391 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18393 icpc* | ecpc* )
18394 # Intel C++
18395 with_gnu_ld=yes
18396 # version 8.0 and above of icpc choke on multiply defined symbols
18397 # if we add $predep_objects and $postdep_objects, however 7.1 and
18398 # earlier do not add the objects themselves.
18399 case `$CC -V 2>&1` in
18400 *"Version 7."*)
18401 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18402 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'
18404 *) # Version 8.0 or newer
18405 tmp_idyn=
18406 case $host_cpu in
18407 ia64*) tmp_idyn=' -i_dynamic';;
18408 esac
18409 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18410 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'
18412 esac
18413 archive_cmds_need_lc_CXX=no
18414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18415 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18416 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18418 pgCC* | pgcpp*)
18419 # Portland Group C++ compiler
18420 case `$CC -V` in
18421 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
18422 prelink_cmds_CXX='tpldir=Template.dir~
18423 rm -rf $tpldir~
18424 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18425 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18426 old_archive_cmds_CXX='tpldir=Template.dir~
18427 rm -rf $tpldir~
18428 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18429 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18430 $RANLIB $oldlib'
18431 archive_cmds_CXX='tpldir=Template.dir~
18432 rm -rf $tpldir~
18433 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18434 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18435 archive_expsym_cmds_CXX='tpldir=Template.dir~
18436 rm -rf $tpldir~
18437 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18438 $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'
18440 *) # Version 6 will use weak symbols
18441 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18442 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'
18444 esac
18446 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18447 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18448 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18450 cxx*)
18451 # Compaq C++
18452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18453 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'
18455 runpath_var=LD_RUN_PATH
18456 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18457 hardcode_libdir_separator_CXX=:
18459 # Commands to make compiler produce verbose output that lists
18460 # what "hidden" libraries, object files and flags are used when
18461 # linking a shared library.
18463 # There doesn't appear to be a way to prevent this compiler from
18464 # explicitly linking system object files so we need to strip them
18465 # from the output so that they don't get included in the library
18466 # dependencies.
18467 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18469 xl*)
18470 # IBM XL 8.0 on PPC, with GNU ld
18471 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18473 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18474 if test "x$supports_anon_versioning" = xyes; then
18475 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18477 echo "local: *; };" >> $output_objdir/$libname.ver~
18478 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18482 case `$CC -V 2>&1 | sed 5q` in
18483 *Sun\ C*)
18484 # Sun C++ 5.9
18485 no_undefined_flag_CXX=' -zdefs'
18486 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18487 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'
18488 hardcode_libdir_flag_spec_CXX='-R$libdir'
18489 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18490 compiler_needs_object_CXX=yes
18492 # Not sure whether something based on
18493 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18494 # would be better.
18495 output_verbose_link_cmd='echo'
18497 # Archives containing C++ object files must be created using
18498 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18499 # necessary to make sure instantiated templates are included
18500 # in the archive.
18501 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18503 esac
18505 esac
18508 lynxos*)
18509 # FIXME: insert proper C++ library support
18510 ld_shlibs_CXX=no
18513 m88k*)
18514 # FIXME: insert proper C++ library support
18515 ld_shlibs_CXX=no
18518 mvs*)
18519 case $cc_basename in
18520 cxx*)
18521 # FIXME: insert proper C++ library support
18522 ld_shlibs_CXX=no
18525 # FIXME: insert proper C++ library support
18526 ld_shlibs_CXX=no
18528 esac
18531 netbsd*)
18532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18533 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18534 wlarc=
18535 hardcode_libdir_flag_spec_CXX='-R$libdir'
18536 hardcode_direct_CXX=yes
18537 hardcode_shlibpath_var_CXX=no
18539 # Workaround some broken pre-1.5 toolchains
18540 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18543 *nto* | *qnx*)
18544 ld_shlibs_CXX=yes
18547 openbsd2*)
18548 # C++ shared libraries are fairly broken
18549 ld_shlibs_CXX=no
18552 openbsd*)
18553 if test -f /usr/libexec/ld.so; then
18554 hardcode_direct_CXX=yes
18555 hardcode_shlibpath_var_CXX=no
18556 hardcode_direct_absolute_CXX=yes
18557 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18558 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18560 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18561 export_dynamic_flag_spec_CXX='${wl}-E'
18562 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18564 output_verbose_link_cmd=echo
18565 else
18566 ld_shlibs_CXX=no
18570 osf3* | osf4* | osf5*)
18571 case $cc_basename in
18572 KCC*)
18573 # Kuck and Associates, Inc. (KAI) C++ Compiler
18575 # KCC will only create a shared library if the output file
18576 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18577 # to its proper name (with version) after linking.
18578 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'
18580 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18581 hardcode_libdir_separator_CXX=:
18583 # Archives containing C++ object files must be created using
18584 # the KAI C++ compiler.
18585 case $host in
18586 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18587 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18588 esac
18590 RCC*)
18591 # Rational C++ 2.4.1
18592 # FIXME: insert proper C++ library support
18593 ld_shlibs_CXX=no
18595 cxx*)
18596 case $host in
18597 osf3*)
18598 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18599 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18600 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18603 allow_undefined_flag_CXX=' -expect_unresolved \*'
18604 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18605 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18606 echo "-hidden">> $lib.exp~
18607 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
18608 $RM $lib.exp'
18609 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18611 esac
18613 hardcode_libdir_separator_CXX=:
18615 # Commands to make compiler produce verbose output that lists
18616 # what "hidden" libraries, object files and flags are used when
18617 # linking a shared library.
18619 # There doesn't appear to be a way to prevent this compiler from
18620 # explicitly linking system object files so we need to strip them
18621 # from the output so that they don't get included in the library
18622 # dependencies.
18623 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
18626 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18627 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18628 case $host in
18629 osf3*)
18630 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18633 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18635 esac
18637 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18638 hardcode_libdir_separator_CXX=:
18640 # Commands to make compiler produce verbose output that lists
18641 # what "hidden" libraries, object files and flags are used when
18642 # linking a shared library.
18643 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18645 else
18646 # FIXME: insert proper C++ library support
18647 ld_shlibs_CXX=no
18650 esac
18653 psos*)
18654 # FIXME: insert proper C++ library support
18655 ld_shlibs_CXX=no
18658 sunos4*)
18659 case $cc_basename in
18660 CC*)
18661 # Sun C++ 4.x
18662 # FIXME: insert proper C++ library support
18663 ld_shlibs_CXX=no
18665 lcc*)
18666 # Lucid
18667 # FIXME: insert proper C++ library support
18668 ld_shlibs_CXX=no
18671 # FIXME: insert proper C++ library support
18672 ld_shlibs_CXX=no
18674 esac
18677 solaris*)
18678 case $cc_basename in
18679 CC*)
18680 # Sun C++ 4.2, 5.x and Centerline C++
18681 archive_cmds_need_lc_CXX=yes
18682 no_undefined_flag_CXX=' -zdefs'
18683 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18684 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18685 $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'
18687 hardcode_libdir_flag_spec_CXX='-R$libdir'
18688 hardcode_shlibpath_var_CXX=no
18689 case $host_os in
18690 solaris2.[0-5] | solaris2.[0-5].*) ;;
18692 # The compiler driver will combine and reorder linker options,
18693 # but understands `-z linker_flag'.
18694 # Supported since Solaris 2.6 (maybe 2.5.1?)
18695 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18697 esac
18698 link_all_deplibs_CXX=yes
18700 output_verbose_link_cmd='echo'
18702 # Archives containing C++ object files must be created using
18703 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18704 # necessary to make sure instantiated templates are included
18705 # in the archive.
18706 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18708 gcx*)
18709 # Green Hills C++ Compiler
18710 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18712 # The C++ compiler must be used to create the archive.
18713 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18716 # GNU C++ compiler with Solaris linker
18717 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18718 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18719 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18720 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18721 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18722 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18724 # Commands to make compiler produce verbose output that lists
18725 # what "hidden" libraries, object files and flags are used when
18726 # linking a shared library.
18727 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18728 else
18729 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18730 # platform.
18731 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18732 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18733 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18735 # Commands to make compiler produce verbose output that lists
18736 # what "hidden" libraries, object files and flags are used when
18737 # linking a shared library.
18738 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18741 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18742 case $host_os in
18743 solaris2.[0-5] | solaris2.[0-5].*) ;;
18745 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18747 esac
18750 esac
18753 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18754 no_undefined_flag_CXX='${wl}-z,text'
18755 archive_cmds_need_lc_CXX=no
18756 hardcode_shlibpath_var_CXX=no
18757 runpath_var='LD_RUN_PATH'
18759 case $cc_basename in
18760 CC*)
18761 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18762 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18765 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18766 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18768 esac
18771 sysv5* | sco3.2v5* | sco5v6*)
18772 # Note: We can NOT use -z defs as we might desire, because we do not
18773 # link with -lc, and that would cause any symbols used from libc to
18774 # always be unresolved, which means just about no library would
18775 # ever link correctly. If we're not using GNU ld we use -z text
18776 # though, which does catch some bad symbols but isn't as heavy-handed
18777 # as -z defs.
18778 no_undefined_flag_CXX='${wl}-z,text'
18779 allow_undefined_flag_CXX='${wl}-z,nodefs'
18780 archive_cmds_need_lc_CXX=no
18781 hardcode_shlibpath_var_CXX=no
18782 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18783 hardcode_libdir_separator_CXX=':'
18784 link_all_deplibs_CXX=yes
18785 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18786 runpath_var='LD_RUN_PATH'
18788 case $cc_basename in
18789 CC*)
18790 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18794 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18795 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18797 esac
18800 tandem*)
18801 case $cc_basename in
18802 NCC*)
18803 # NonStop-UX NCC 3.20
18804 # FIXME: insert proper C++ library support
18805 ld_shlibs_CXX=no
18808 # FIXME: insert proper C++ library support
18809 ld_shlibs_CXX=no
18811 esac
18814 vxworks*)
18815 # FIXME: insert proper C++ library support
18816 ld_shlibs_CXX=no
18820 # FIXME: insert proper C++ library support
18821 ld_shlibs_CXX=no
18823 esac
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18826 $as_echo "$ld_shlibs_CXX" >&6; }
18827 test "$ld_shlibs_CXX" = no && can_build_shared=no
18829 GCC_CXX="$GXX"
18830 LD_CXX="$LD"
18832 ## CAVEAT EMPTOR:
18833 ## There is no encapsulation within the following macros, do not change
18834 ## the running order or otherwise move them around unless you know exactly
18835 ## what you are doing...
18836 # Dependencies to place before and after the object being linked:
18837 predep_objects_CXX=
18838 postdep_objects_CXX=
18839 predeps_CXX=
18840 postdeps_CXX=
18841 compiler_lib_search_path_CXX=
18843 cat > conftest.$ac_ext <<_LT_EOF
18844 class Foo
18846 public:
18847 Foo (void) { a = 0; }
18848 private:
18849 int a;
18851 _LT_EOF
18853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18854 (eval $ac_compile) 2>&5
18855 ac_status=$?
18856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18857 test $ac_status = 0; }; then
18858 # Parse the compiler output and extract the necessary
18859 # objects, libraries and library flags.
18861 # Sentinel used to keep track of whether or not we are before
18862 # the conftest object file.
18863 pre_test_object_deps_done=no
18865 for p in `eval "$output_verbose_link_cmd"`; do
18866 case $p in
18868 -L* | -R* | -l*)
18869 # Some compilers place space between "-{L,R}" and the path.
18870 # Remove the space.
18871 if test $p = "-L" ||
18872 test $p = "-R"; then
18873 prev=$p
18874 continue
18875 else
18876 prev=
18879 if test "$pre_test_object_deps_done" = no; then
18880 case $p in
18881 -L* | -R*)
18882 # Internal compiler library paths should come after those
18883 # provided the user. The postdeps already come after the
18884 # user supplied libs so there is no need to process them.
18885 if test -z "$compiler_lib_search_path_CXX"; then
18886 compiler_lib_search_path_CXX="${prev}${p}"
18887 else
18888 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18891 # The "-l" case would never come before the object being
18892 # linked, so don't bother handling this case.
18893 esac
18894 else
18895 if test -z "$postdeps_CXX"; then
18896 postdeps_CXX="${prev}${p}"
18897 else
18898 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18903 *.$objext)
18904 # This assumes that the test object file only shows up
18905 # once in the compiler output.
18906 if test "$p" = "conftest.$objext"; then
18907 pre_test_object_deps_done=yes
18908 continue
18911 if test "$pre_test_object_deps_done" = no; then
18912 if test -z "$predep_objects_CXX"; then
18913 predep_objects_CXX="$p"
18914 else
18915 predep_objects_CXX="$predep_objects_CXX $p"
18917 else
18918 if test -z "$postdep_objects_CXX"; then
18919 postdep_objects_CXX="$p"
18920 else
18921 postdep_objects_CXX="$postdep_objects_CXX $p"
18926 *) ;; # Ignore the rest.
18928 esac
18929 done
18931 # Clean up.
18932 rm -f a.out a.exe
18933 else
18934 echo "libtool.m4: error: problem compiling CXX test program"
18937 $RM -f confest.$objext
18939 # PORTME: override above test on systems where it is broken
18940 case $host_os in
18941 interix[3-9]*)
18942 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18943 # hack all around it, let's just trust "g++" to DTRT.
18944 predep_objects_CXX=
18945 postdep_objects_CXX=
18946 postdeps_CXX=
18949 linux*)
18950 case `$CC -V 2>&1 | sed 5q` in
18951 *Sun\ C*)
18952 # Sun C++ 5.9
18954 # The more standards-conforming stlport4 library is
18955 # incompatible with the Cstd library. Avoid specifying
18956 # it if it's in CXXFLAGS. Ignore libCrun as
18957 # -library=stlport4 depends on it.
18958 case " $CXX $CXXFLAGS " in
18959 *" -library=stlport4 "*)
18960 solaris_use_stlport4=yes
18962 esac
18964 if test "$solaris_use_stlport4" != yes; then
18965 postdeps_CXX='-library=Cstd -library=Crun'
18968 esac
18971 solaris*)
18972 case $cc_basename in
18973 CC*)
18974 # The more standards-conforming stlport4 library is
18975 # incompatible with the Cstd library. Avoid specifying
18976 # it if it's in CXXFLAGS. Ignore libCrun as
18977 # -library=stlport4 depends on it.
18978 case " $CXX $CXXFLAGS " in
18979 *" -library=stlport4 "*)
18980 solaris_use_stlport4=yes
18982 esac
18984 # Adding this requires a known-good setup of shared libraries for
18985 # Sun compiler versions before 5.6, else PIC objects from an old
18986 # archive will be linked into the output, leading to subtle bugs.
18987 if test "$solaris_use_stlport4" != yes; then
18988 postdeps_CXX='-library=Cstd -library=Crun'
18991 esac
18993 esac
18996 case " $postdeps_CXX " in
18997 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18998 esac
18999 compiler_lib_search_dirs_CXX=
19000 if test -n "${compiler_lib_search_path_CXX}"; then
19001 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19034 lt_prog_compiler_wl_CXX=
19035 lt_prog_compiler_pic_CXX=
19036 lt_prog_compiler_static_CXX=
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19039 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19041 # C++ specific cases for pic, static, wl, etc.
19042 if test "$GXX" = yes; then
19043 lt_prog_compiler_wl_CXX='-Wl,'
19044 lt_prog_compiler_static_CXX='-static'
19046 case $host_os in
19047 aix*)
19048 # All AIX code is PIC.
19049 if test "$host_cpu" = ia64; then
19050 # AIX 5 now supports IA64 processor
19051 lt_prog_compiler_static_CXX='-Bstatic'
19055 amigaos*)
19056 case $host_cpu in
19057 powerpc)
19058 # see comment about AmigaOS4 .so support
19059 lt_prog_compiler_pic_CXX='-fPIC'
19061 m68k)
19062 # FIXME: we need at least 68020 code to build shared libraries, but
19063 # adding the `-m68020' flag to GCC prevents building anything better,
19064 # like `-m68040'.
19065 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19067 esac
19070 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19071 # PIC is the default for these OSes.
19073 mingw* | cygwin* | os2* | pw32* | cegcc*)
19074 # This hack is so that the source file can tell whether it is being
19075 # built for inclusion in a dll (and should export symbols for example).
19076 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19077 # (--disable-auto-import) libraries
19078 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19080 darwin* | rhapsody*)
19081 # PIC is the default on this platform
19082 # Common symbols not allowed in MH_DYLIB files
19083 lt_prog_compiler_pic_CXX='-fno-common'
19085 *djgpp*)
19086 # DJGPP does not support shared libraries at all
19087 lt_prog_compiler_pic_CXX=
19089 interix[3-9]*)
19090 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19091 # Instead, we relocate shared libraries at runtime.
19093 sysv4*MP*)
19094 if test -d /usr/nec; then
19095 lt_prog_compiler_pic_CXX=-Kconform_pic
19098 hpux*)
19099 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19100 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19101 # sets the default TLS model and affects inlining.
19102 case $host_cpu in
19103 hppa*64*)
19106 lt_prog_compiler_pic_CXX='-fPIC'
19108 esac
19110 *qnx* | *nto*)
19111 # QNX uses GNU C++, but need to define -shared option too, otherwise
19112 # it will coredump.
19113 lt_prog_compiler_pic_CXX='-fPIC -shared'
19116 lt_prog_compiler_pic_CXX='-fPIC'
19118 esac
19119 else
19120 case $host_os in
19121 aix[4-9]*)
19122 # All AIX code is PIC.
19123 if test "$host_cpu" = ia64; then
19124 # AIX 5 now supports IA64 processor
19125 lt_prog_compiler_static_CXX='-Bstatic'
19126 else
19127 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19130 chorus*)
19131 case $cc_basename in
19132 cxch68*)
19133 # Green Hills C++ Compiler
19134 # _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"
19136 esac
19138 dgux*)
19139 case $cc_basename in
19140 ec++*)
19141 lt_prog_compiler_pic_CXX='-KPIC'
19143 ghcx*)
19144 # Green Hills C++ Compiler
19145 lt_prog_compiler_pic_CXX='-pic'
19149 esac
19151 freebsd* | dragonfly*)
19152 # FreeBSD uses GNU C++
19154 hpux9* | hpux10* | hpux11*)
19155 case $cc_basename in
19156 CC*)
19157 lt_prog_compiler_wl_CXX='-Wl,'
19158 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19159 if test "$host_cpu" != ia64; then
19160 lt_prog_compiler_pic_CXX='+Z'
19163 aCC*)
19164 lt_prog_compiler_wl_CXX='-Wl,'
19165 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19166 case $host_cpu in
19167 hppa*64*|ia64*)
19168 # +Z the default
19171 lt_prog_compiler_pic_CXX='+Z'
19173 esac
19177 esac
19179 interix*)
19180 # This is c89, which is MS Visual C++ (no shared libs)
19181 # Anyone wants to do a port?
19183 irix5* | irix6* | nonstopux*)
19184 case $cc_basename in
19185 CC*)
19186 lt_prog_compiler_wl_CXX='-Wl,'
19187 lt_prog_compiler_static_CXX='-non_shared'
19188 # CC pic flag -KPIC is the default.
19192 esac
19194 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19195 case $cc_basename in
19196 KCC*)
19197 # KAI C++ Compiler
19198 lt_prog_compiler_wl_CXX='--backend -Wl,'
19199 lt_prog_compiler_pic_CXX='-fPIC'
19201 ecpc* )
19202 # old Intel C++ for x86_64 which still supported -KPIC.
19203 lt_prog_compiler_wl_CXX='-Wl,'
19204 lt_prog_compiler_pic_CXX='-KPIC'
19205 lt_prog_compiler_static_CXX='-static'
19207 icpc* )
19208 # Intel C++, used to be incompatible with GCC.
19209 # ICC 10 doesn't accept -KPIC any more.
19210 lt_prog_compiler_wl_CXX='-Wl,'
19211 lt_prog_compiler_pic_CXX='-fPIC'
19212 lt_prog_compiler_static_CXX='-static'
19214 pgCC* | pgcpp*)
19215 # Portland Group C++ compiler
19216 lt_prog_compiler_wl_CXX='-Wl,'
19217 lt_prog_compiler_pic_CXX='-fpic'
19218 lt_prog_compiler_static_CXX='-Bstatic'
19220 cxx*)
19221 # Compaq C++
19222 # Make sure the PIC flag is empty. It appears that all Alpha
19223 # Linux and Compaq Tru64 Unix objects are PIC.
19224 lt_prog_compiler_pic_CXX=
19225 lt_prog_compiler_static_CXX='-non_shared'
19227 xlc* | xlC*)
19228 # IBM XL 8.0 on PPC
19229 lt_prog_compiler_wl_CXX='-Wl,'
19230 lt_prog_compiler_pic_CXX='-qpic'
19231 lt_prog_compiler_static_CXX='-qstaticlink'
19234 case `$CC -V 2>&1 | sed 5q` in
19235 *Sun\ C*)
19236 # Sun C++ 5.9
19237 lt_prog_compiler_pic_CXX='-KPIC'
19238 lt_prog_compiler_static_CXX='-Bstatic'
19239 lt_prog_compiler_wl_CXX='-Qoption ld '
19241 esac
19243 esac
19245 lynxos*)
19247 m88k*)
19249 mvs*)
19250 case $cc_basename in
19251 cxx*)
19252 lt_prog_compiler_pic_CXX='-W c,exportall'
19256 esac
19258 netbsd*)
19260 *qnx* | *nto*)
19261 # QNX uses GNU C++, but need to define -shared option too, otherwise
19262 # it will coredump.
19263 lt_prog_compiler_pic_CXX='-fPIC -shared'
19265 osf3* | osf4* | osf5*)
19266 case $cc_basename in
19267 KCC*)
19268 lt_prog_compiler_wl_CXX='--backend -Wl,'
19270 RCC*)
19271 # Rational C++ 2.4.1
19272 lt_prog_compiler_pic_CXX='-pic'
19274 cxx*)
19275 # Digital/Compaq C++
19276 lt_prog_compiler_wl_CXX='-Wl,'
19277 # Make sure the PIC flag is empty. It appears that all Alpha
19278 # Linux and Compaq Tru64 Unix objects are PIC.
19279 lt_prog_compiler_pic_CXX=
19280 lt_prog_compiler_static_CXX='-non_shared'
19284 esac
19286 psos*)
19288 solaris*)
19289 case $cc_basename in
19290 CC*)
19291 # Sun C++ 4.2, 5.x and Centerline C++
19292 lt_prog_compiler_pic_CXX='-KPIC'
19293 lt_prog_compiler_static_CXX='-Bstatic'
19294 lt_prog_compiler_wl_CXX='-Qoption ld '
19296 gcx*)
19297 # Green Hills C++ Compiler
19298 lt_prog_compiler_pic_CXX='-PIC'
19302 esac
19304 sunos4*)
19305 case $cc_basename in
19306 CC*)
19307 # Sun C++ 4.x
19308 lt_prog_compiler_pic_CXX='-pic'
19309 lt_prog_compiler_static_CXX='-Bstatic'
19311 lcc*)
19312 # Lucid
19313 lt_prog_compiler_pic_CXX='-pic'
19317 esac
19319 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19320 case $cc_basename in
19321 CC*)
19322 lt_prog_compiler_wl_CXX='-Wl,'
19323 lt_prog_compiler_pic_CXX='-KPIC'
19324 lt_prog_compiler_static_CXX='-Bstatic'
19326 esac
19328 tandem*)
19329 case $cc_basename in
19330 NCC*)
19331 # NonStop-UX NCC 3.20
19332 lt_prog_compiler_pic_CXX='-KPIC'
19336 esac
19338 vxworks*)
19341 lt_prog_compiler_can_build_shared_CXX=no
19343 esac
19346 case $host_os in
19347 # For platforms which do not support PIC, -DPIC is meaningless:
19348 *djgpp*)
19349 lt_prog_compiler_pic_CXX=
19352 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19354 esac
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19356 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19361 # Check to make sure the PIC flag actually works.
19363 if test -n "$lt_prog_compiler_pic_CXX"; then
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19365 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19366 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19367 $as_echo_n "(cached) " >&6
19368 else
19369 lt_cv_prog_compiler_pic_works_CXX=no
19370 ac_outfile=conftest.$ac_objext
19371 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19372 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19373 # Insert the option either (1) after the last *FLAGS variable, or
19374 # (2) before a word containing "conftest.", or (3) at the end.
19375 # Note that $ac_compile itself does not contain backslashes and begins
19376 # with a dollar sign (not a hyphen), so the echo should work correctly.
19377 # The option is referenced via a variable to avoid confusing sed.
19378 lt_compile=`echo "$ac_compile" | $SED \
19379 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19381 -e 's:$: $lt_compiler_flag:'`
19382 (eval echo "\"\$as_me:19382: $lt_compile\"" >&5)
19383 (eval "$lt_compile" 2>conftest.err)
19384 ac_status=$?
19385 cat conftest.err >&5
19386 echo "$as_me:19386: \$? = $ac_status" >&5
19387 if (exit $ac_status) && test -s "$ac_outfile"; then
19388 # The compiler can only warn and ignore the option if not recognized
19389 # So say no if there are warnings other than the usual output.
19390 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19391 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19392 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19393 lt_cv_prog_compiler_pic_works_CXX=yes
19396 $RM conftest*
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19400 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19402 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19403 case $lt_prog_compiler_pic_CXX in
19404 "" | " "*) ;;
19405 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19406 esac
19407 else
19408 lt_prog_compiler_pic_CXX=
19409 lt_prog_compiler_can_build_shared_CXX=no
19417 # Check to make sure the static flag actually works.
19419 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19421 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19422 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19423 $as_echo_n "(cached) " >&6
19424 else
19425 lt_cv_prog_compiler_static_works_CXX=no
19426 save_LDFLAGS="$LDFLAGS"
19427 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19428 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19429 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19430 # The linker can only warn and ignore the option if not recognized
19431 # So say no if there are warnings
19432 if test -s conftest.err; then
19433 # Append any errors to the config.log.
19434 cat conftest.err 1>&5
19435 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19437 if diff conftest.exp conftest.er2 >/dev/null; then
19438 lt_cv_prog_compiler_static_works_CXX=yes
19440 else
19441 lt_cv_prog_compiler_static_works_CXX=yes
19444 $RM -r conftest*
19445 LDFLAGS="$save_LDFLAGS"
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19449 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19451 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19453 else
19454 lt_prog_compiler_static_CXX=
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19461 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19462 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19463 $as_echo_n "(cached) " >&6
19464 else
19465 lt_cv_prog_compiler_c_o_CXX=no
19466 $RM -r conftest 2>/dev/null
19467 mkdir conftest
19468 cd conftest
19469 mkdir out
19470 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19472 lt_compiler_flag="-o out/conftest2.$ac_objext"
19473 # Insert the option either (1) after the last *FLAGS variable, or
19474 # (2) before a word containing "conftest.", or (3) at the end.
19475 # Note that $ac_compile itself does not contain backslashes and begins
19476 # with a dollar sign (not a hyphen), so the echo should work correctly.
19477 lt_compile=`echo "$ac_compile" | $SED \
19478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19480 -e 's:$: $lt_compiler_flag:'`
19481 (eval echo "\"\$as_me:19481: $lt_compile\"" >&5)
19482 (eval "$lt_compile" 2>out/conftest.err)
19483 ac_status=$?
19484 cat out/conftest.err >&5
19485 echo "$as_me:19485: \$? = $ac_status" >&5
19486 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19487 then
19488 # The compiler can only warn and ignore the option if not recognized
19489 # So say no if there are warnings
19490 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19491 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19492 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19493 lt_cv_prog_compiler_c_o_CXX=yes
19496 chmod u+w . 2>&5
19497 $RM conftest*
19498 # SGI C++ compiler will create directory out/ii_files/ for
19499 # template instantiation
19500 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19501 $RM out/* && rmdir out
19502 cd ..
19503 $RM -r conftest
19504 $RM conftest*
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19508 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19513 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19514 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19515 $as_echo_n "(cached) " >&6
19516 else
19517 lt_cv_prog_compiler_c_o_CXX=no
19518 $RM -r conftest 2>/dev/null
19519 mkdir conftest
19520 cd conftest
19521 mkdir out
19522 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19524 lt_compiler_flag="-o out/conftest2.$ac_objext"
19525 # Insert the option either (1) after the last *FLAGS variable, or
19526 # (2) before a word containing "conftest.", or (3) at the end.
19527 # Note that $ac_compile itself does not contain backslashes and begins
19528 # with a dollar sign (not a hyphen), so the echo should work correctly.
19529 lt_compile=`echo "$ac_compile" | $SED \
19530 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19531 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19532 -e 's:$: $lt_compiler_flag:'`
19533 (eval echo "\"\$as_me:19533: $lt_compile\"" >&5)
19534 (eval "$lt_compile" 2>out/conftest.err)
19535 ac_status=$?
19536 cat out/conftest.err >&5
19537 echo "$as_me:19537: \$? = $ac_status" >&5
19538 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19539 then
19540 # The compiler can only warn and ignore the option if not recognized
19541 # So say no if there are warnings
19542 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19543 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19544 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19545 lt_cv_prog_compiler_c_o_CXX=yes
19548 chmod u+w . 2>&5
19549 $RM conftest*
19550 # SGI C++ compiler will create directory out/ii_files/ for
19551 # template instantiation
19552 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19553 $RM out/* && rmdir out
19554 cd ..
19555 $RM -r conftest
19556 $RM conftest*
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19560 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19565 hard_links="nottested"
19566 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19567 # do not overwrite the value of need_locks provided by the user
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19569 $as_echo_n "checking if we can lock with hard links... " >&6; }
19570 hard_links=yes
19571 $RM conftest*
19572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19573 touch conftest.a
19574 ln conftest.a conftest.b 2>&5 || hard_links=no
19575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19577 $as_echo "$hard_links" >&6; }
19578 if test "$hard_links" = no; then
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19580 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19581 need_locks=warn
19583 else
19584 need_locks=no
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19590 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19592 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19593 case $host_os in
19594 aix[4-9]*)
19595 # If we're using GNU nm, then we don't want the "-C" option.
19596 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19597 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19598 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19599 else
19600 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'
19603 pw32*)
19604 export_symbols_cmds_CXX="$ltdll_cmds"
19606 cygwin* | mingw* | cegcc*)
19607 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'
19610 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19612 esac
19613 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19616 $as_echo "$ld_shlibs_CXX" >&6; }
19617 test "$ld_shlibs_CXX" = no && can_build_shared=no
19619 with_gnu_ld_CXX=$with_gnu_ld
19627 # Do we need to explicitly link libc?
19629 case "x$archive_cmds_need_lc_CXX" in
19630 x|xyes)
19631 # Assume -lc should be added
19632 archive_cmds_need_lc_CXX=yes
19634 if test "$enable_shared" = yes && test "$GCC" = yes; then
19635 case $archive_cmds_CXX in
19636 *'~'*)
19637 # FIXME: we may have to deal with multi-command sequences.
19639 '$CC '*)
19640 # Test whether the compiler implicitly links with -lc since on some
19641 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19642 # to ld, don't add -lc before -lgcc.
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19644 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19645 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19646 $as_echo_n "(cached) " >&6
19647 else
19648 $RM conftest*
19649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19652 (eval $ac_compile) 2>&5
19653 ac_status=$?
19654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19655 test $ac_status = 0; } 2>conftest.err; then
19656 soname=conftest
19657 lib=conftest
19658 libobjs=conftest.$ac_objext
19659 deplibs=
19660 wl=$lt_prog_compiler_wl_CXX
19661 pic_flag=$lt_prog_compiler_pic_CXX
19662 compiler_flags=-v
19663 linker_flags=-v
19664 verstring=
19665 output_objdir=.
19666 libname=conftest
19667 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19668 allow_undefined_flag_CXX=
19669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19670 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19671 ac_status=$?
19672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19673 test $ac_status = 0; }
19674 then
19675 lt_cv_archive_cmds_need_lc_CXX=no
19676 else
19677 lt_cv_archive_cmds_need_lc_CXX=yes
19679 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19680 else
19681 cat conftest.err 1>&5
19683 $RM conftest*
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19687 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19688 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19690 esac
19693 esac
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19759 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19761 library_names_spec=
19762 libname_spec='lib$name'
19763 soname_spec=
19764 shrext_cmds=".so"
19765 postinstall_cmds=
19766 postuninstall_cmds=
19767 finish_cmds=
19768 finish_eval=
19769 shlibpath_var=
19770 shlibpath_overrides_runpath=unknown
19771 version_type=none
19772 dynamic_linker="$host_os ld.so"
19773 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19774 need_lib_prefix=unknown
19775 hardcode_into_libs=no
19777 # when you set need_version to no, make sure it does not cause -set_version
19778 # flags to be left without arguments
19779 need_version=unknown
19781 case $host_os in
19782 aix3*)
19783 version_type=linux
19784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19785 shlibpath_var=LIBPATH
19787 # AIX 3 has no versioning support, so we append a major version to the name.
19788 soname_spec='${libname}${release}${shared_ext}$major'
19791 aix[4-9]*)
19792 version_type=linux
19793 need_lib_prefix=no
19794 need_version=no
19795 hardcode_into_libs=yes
19796 if test "$host_cpu" = ia64; then
19797 # AIX 5 supports IA64
19798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19799 shlibpath_var=LD_LIBRARY_PATH
19800 else
19801 # With GCC up to 2.95.x, collect2 would create an import file
19802 # for dependence libraries. The import file would start with
19803 # the line `#! .'. This would cause the generated library to
19804 # depend on `.', always an invalid library. This was fixed in
19805 # development snapshots of GCC prior to 3.0.
19806 case $host_os in
19807 aix4 | aix4.[01] | aix4.[01].*)
19808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19809 echo ' yes '
19810 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19812 else
19813 can_build_shared=no
19816 esac
19817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19818 # soname into executable. Probably we can add versioning support to
19819 # collect2, so additional links can be useful in future.
19820 if test "$aix_use_runtimelinking" = yes; then
19821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19822 # instead of lib<name>.a to let people know that these are not
19823 # typical AIX shared libraries.
19824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825 else
19826 # We preserve .a as extension for shared libraries through AIX4.2
19827 # and later when we are not doing run time linking.
19828 library_names_spec='${libname}${release}.a $libname.a'
19829 soname_spec='${libname}${release}${shared_ext}$major'
19831 shlibpath_var=LIBPATH
19835 amigaos*)
19836 case $host_cpu in
19837 powerpc)
19838 # Since July 2007 AmigaOS4 officially supports .so libraries.
19839 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19842 m68k)
19843 library_names_spec='$libname.ixlibrary $libname.a'
19844 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19845 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
19847 esac
19850 beos*)
19851 library_names_spec='${libname}${shared_ext}'
19852 dynamic_linker="$host_os ld.so"
19853 shlibpath_var=LIBRARY_PATH
19856 bsdi[45]*)
19857 version_type=linux
19858 need_version=no
19859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19860 soname_spec='${libname}${release}${shared_ext}$major'
19861 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19862 shlibpath_var=LD_LIBRARY_PATH
19863 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19864 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19865 # the default ld.so.conf also contains /usr/contrib/lib and
19866 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19867 # libtool to hard-code these into programs
19870 cygwin* | mingw* | pw32* | cegcc*)
19871 version_type=windows
19872 shrext_cmds=".dll"
19873 need_version=no
19874 need_lib_prefix=no
19876 case $GCC,$host_os in
19877 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19878 library_names_spec='$libname.dll.a'
19879 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19880 postinstall_cmds='base_file=`basename \${file}`~
19881 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19882 dldir=$destdir/`dirname \$dlpath`~
19883 test -d \$dldir || mkdir -p \$dldir~
19884 $install_prog $dir/$dlname \$dldir/$dlname~
19885 chmod a+x \$dldir/$dlname~
19886 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19887 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19889 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19890 dlpath=$dir/\$dldll~
19891 $RM \$dlpath'
19892 shlibpath_overrides_runpath=yes
19894 case $host_os in
19895 cygwin*)
19896 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19897 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19898 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19900 mingw* | cegcc*)
19901 # MinGW DLLs use traditional 'lib' prefix
19902 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19903 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19904 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19905 # It is most probably a Windows format PATH printed by
19906 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19907 # path with ; separators, and with drive letters. We can handle the
19908 # drive letters (cygwin fileutils understands them), so leave them,
19909 # especially as we might pass files found there to a mingw objdump,
19910 # which wouldn't understand a cygwinified path. Ahh.
19911 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19912 else
19913 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19916 pw32*)
19917 # pw32 DLLs use 'pw' prefix rather than 'lib'
19918 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19920 esac
19924 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19926 esac
19927 dynamic_linker='Win32 ld.exe'
19928 # FIXME: first we should search . and the directory the executable is in
19929 shlibpath_var=PATH
19932 darwin* | rhapsody*)
19933 dynamic_linker="$host_os dyld"
19934 version_type=darwin
19935 need_lib_prefix=no
19936 need_version=no
19937 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19938 soname_spec='${libname}${release}${major}$shared_ext'
19939 shlibpath_overrides_runpath=yes
19940 shlibpath_var=DYLD_LIBRARY_PATH
19941 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19946 dgux*)
19947 version_type=linux
19948 need_lib_prefix=no
19949 need_version=no
19950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19951 soname_spec='${libname}${release}${shared_ext}$major'
19952 shlibpath_var=LD_LIBRARY_PATH
19955 freebsd1*)
19956 dynamic_linker=no
19959 freebsd* | dragonfly*)
19960 # DragonFly does not have aout. When/if they implement a new
19961 # versioning mechanism, adjust this.
19962 if test -x /usr/bin/objformat; then
19963 objformat=`/usr/bin/objformat`
19964 else
19965 case $host_os in
19966 freebsd[123]*) objformat=aout ;;
19967 *) objformat=elf ;;
19968 esac
19970 version_type=freebsd-$objformat
19971 case $version_type in
19972 freebsd-elf*)
19973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19974 need_version=no
19975 need_lib_prefix=no
19977 freebsd-*)
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19979 need_version=yes
19981 esac
19982 shlibpath_var=LD_LIBRARY_PATH
19983 case $host_os in
19984 freebsd2*)
19985 shlibpath_overrides_runpath=yes
19987 freebsd3.[01]* | freebsdelf3.[01]*)
19988 shlibpath_overrides_runpath=yes
19989 hardcode_into_libs=yes
19991 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19992 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19993 shlibpath_overrides_runpath=no
19994 hardcode_into_libs=yes
19996 *) # from 4.6 on, and DragonFly
19997 shlibpath_overrides_runpath=yes
19998 hardcode_into_libs=yes
20000 esac
20003 gnu*)
20004 version_type=linux
20005 need_lib_prefix=no
20006 need_version=no
20007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20008 soname_spec='${libname}${release}${shared_ext}$major'
20009 shlibpath_var=LD_LIBRARY_PATH
20010 hardcode_into_libs=yes
20013 hpux9* | hpux10* | hpux11*)
20014 # Give a soname corresponding to the major version so that dld.sl refuses to
20015 # link against other versions.
20016 version_type=sunos
20017 need_lib_prefix=no
20018 need_version=no
20019 case $host_cpu in
20020 ia64*)
20021 shrext_cmds='.so'
20022 hardcode_into_libs=yes
20023 dynamic_linker="$host_os dld.so"
20024 shlibpath_var=LD_LIBRARY_PATH
20025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20027 soname_spec='${libname}${release}${shared_ext}$major'
20028 if test "X$HPUX_IA64_MODE" = X32; then
20029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20030 else
20031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20035 hppa*64*)
20036 shrext_cmds='.sl'
20037 hardcode_into_libs=yes
20038 dynamic_linker="$host_os dld.sl"
20039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20042 soname_spec='${libname}${release}${shared_ext}$major'
20043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20047 shrext_cmds='.sl'
20048 dynamic_linker="$host_os dld.sl"
20049 shlibpath_var=SHLIB_PATH
20050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20052 soname_spec='${libname}${release}${shared_ext}$major'
20054 esac
20055 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20056 postinstall_cmds='chmod 555 $lib'
20059 interix[3-9]*)
20060 version_type=linux
20061 need_lib_prefix=no
20062 need_version=no
20063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20064 soname_spec='${libname}${release}${shared_ext}$major'
20065 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20066 shlibpath_var=LD_LIBRARY_PATH
20067 shlibpath_overrides_runpath=no
20068 hardcode_into_libs=yes
20071 irix5* | irix6* | nonstopux*)
20072 case $host_os in
20073 nonstopux*) version_type=nonstopux ;;
20075 if test "$lt_cv_prog_gnu_ld" = yes; then
20076 version_type=linux
20077 else
20078 version_type=irix
20079 fi ;;
20080 esac
20081 need_lib_prefix=no
20082 need_version=no
20083 soname_spec='${libname}${release}${shared_ext}$major'
20084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20085 case $host_os in
20086 irix5* | nonstopux*)
20087 libsuff= shlibsuff=
20090 case $LD in # libtool.m4 will add one of these switches to LD
20091 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20092 libsuff= shlibsuff= libmagic=32-bit;;
20093 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20094 libsuff=32 shlibsuff=N32 libmagic=N32;;
20095 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20096 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20097 *) libsuff= shlibsuff= libmagic=never-match;;
20098 esac
20100 esac
20101 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20102 shlibpath_overrides_runpath=no
20103 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20104 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20105 hardcode_into_libs=yes
20108 # No shared lib support for Linux oldld, aout, or coff.
20109 linux*oldld* | linux*aout* | linux*coff*)
20110 dynamic_linker=no
20113 # This must be Linux ELF.
20114 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20115 version_type=linux
20116 need_lib_prefix=no
20117 need_version=no
20118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20119 soname_spec='${libname}${release}${shared_ext}$major'
20120 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20121 shlibpath_var=LD_LIBRARY_PATH
20122 shlibpath_overrides_runpath=no
20124 # Some binutils ld are patched to set DT_RUNPATH
20125 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20126 $as_echo_n "(cached) " >&6
20127 else
20128 lt_cv_shlibpath_overrides_runpath=no
20129 save_LDFLAGS=$LDFLAGS
20130 save_libdir=$libdir
20131 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20132 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20137 main ()
20141 return 0;
20143 _ACEOF
20144 if ac_fn_cxx_try_link "$LINENO"; then :
20145 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20146 lt_cv_shlibpath_overrides_runpath=yes
20149 rm -f core conftest.err conftest.$ac_objext \
20150 conftest$ac_exeext conftest.$ac_ext
20151 LDFLAGS=$save_LDFLAGS
20152 libdir=$save_libdir
20156 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20158 # This implies no fast_install, which is unacceptable.
20159 # Some rework will be needed to allow for fast_install
20160 # before this can be enabled.
20161 hardcode_into_libs=yes
20163 # Append ld.so.conf contents to the search path
20164 if test -f /etc/ld.so.conf; then
20165 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;/^$/d' | tr '\n' ' '`
20166 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20169 # We used to test for /lib/ld.so.1 and disable shared libraries on
20170 # powerpc, because MkLinux only supported shared libraries with the
20171 # GNU dynamic linker. Since this was broken with cross compilers,
20172 # most powerpc-linux boxes support dynamic linking these days and
20173 # people can always --disable-shared, the test was removed, and we
20174 # assume the GNU/Linux dynamic linker is in use.
20175 dynamic_linker='GNU/Linux ld.so'
20178 netbsd*)
20179 version_type=sunos
20180 need_lib_prefix=no
20181 need_version=no
20182 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20185 dynamic_linker='NetBSD (a.out) ld.so'
20186 else
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 dynamic_linker='NetBSD ld.elf_so'
20191 shlibpath_var=LD_LIBRARY_PATH
20192 shlibpath_overrides_runpath=yes
20193 hardcode_into_libs=yes
20196 newsos6)
20197 version_type=linux
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=yes
20203 *nto* | *qnx*)
20204 version_type=qnx
20205 need_lib_prefix=no
20206 need_version=no
20207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20208 soname_spec='${libname}${release}${shared_ext}$major'
20209 shlibpath_var=LD_LIBRARY_PATH
20210 shlibpath_overrides_runpath=no
20211 hardcode_into_libs=yes
20212 dynamic_linker='ldqnx.so'
20215 openbsd*)
20216 version_type=sunos
20217 sys_lib_dlsearch_path_spec="/usr/lib"
20218 need_lib_prefix=no
20219 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20220 case $host_os in
20221 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20222 *) need_version=no ;;
20223 esac
20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20226 shlibpath_var=LD_LIBRARY_PATH
20227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20228 case $host_os in
20229 openbsd2.[89] | openbsd2.[89].*)
20230 shlibpath_overrides_runpath=no
20233 shlibpath_overrides_runpath=yes
20235 esac
20236 else
20237 shlibpath_overrides_runpath=yes
20241 os2*)
20242 libname_spec='$name'
20243 shrext_cmds=".dll"
20244 need_lib_prefix=no
20245 library_names_spec='$libname${shared_ext} $libname.a'
20246 dynamic_linker='OS/2 ld.exe'
20247 shlibpath_var=LIBPATH
20250 osf3* | osf4* | osf5*)
20251 version_type=osf
20252 need_lib_prefix=no
20253 need_version=no
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20258 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20261 rdos*)
20262 dynamic_linker=no
20265 solaris*)
20266 version_type=linux
20267 need_lib_prefix=no
20268 need_version=no
20269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20270 soname_spec='${libname}${release}${shared_ext}$major'
20271 shlibpath_var=LD_LIBRARY_PATH
20272 shlibpath_overrides_runpath=yes
20273 hardcode_into_libs=yes
20274 # ldd complains unless libraries are executable
20275 postinstall_cmds='chmod +x $lib'
20278 sunos4*)
20279 version_type=sunos
20280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20281 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20282 shlibpath_var=LD_LIBRARY_PATH
20283 shlibpath_overrides_runpath=yes
20284 if test "$with_gnu_ld" = yes; then
20285 need_lib_prefix=no
20287 need_version=yes
20290 sysv4 | sysv4.3*)
20291 version_type=linux
20292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20293 soname_spec='${libname}${release}${shared_ext}$major'
20294 shlibpath_var=LD_LIBRARY_PATH
20295 case $host_vendor in
20296 sni)
20297 shlibpath_overrides_runpath=no
20298 need_lib_prefix=no
20299 runpath_var=LD_RUN_PATH
20301 siemens)
20302 need_lib_prefix=no
20304 motorola)
20305 need_lib_prefix=no
20306 need_version=no
20307 shlibpath_overrides_runpath=no
20308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20310 esac
20313 sysv4*MP*)
20314 if test -d /usr/nec ;then
20315 version_type=linux
20316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20317 soname_spec='$libname${shared_ext}.$major'
20318 shlibpath_var=LD_LIBRARY_PATH
20322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20323 version_type=freebsd-elf
20324 need_lib_prefix=no
20325 need_version=no
20326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20327 soname_spec='${libname}${release}${shared_ext}$major'
20328 shlibpath_var=LD_LIBRARY_PATH
20329 shlibpath_overrides_runpath=yes
20330 hardcode_into_libs=yes
20331 if test "$with_gnu_ld" = yes; then
20332 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20333 else
20334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20335 case $host_os in
20336 sco3.2v5*)
20337 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20339 esac
20341 sys_lib_dlsearch_path_spec='/usr/lib'
20344 tpf*)
20345 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20346 version_type=linux
20347 need_lib_prefix=no
20348 need_version=no
20349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20350 shlibpath_var=LD_LIBRARY_PATH
20351 shlibpath_overrides_runpath=no
20352 hardcode_into_libs=yes
20355 uts4*)
20356 version_type=linux
20357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 shlibpath_var=LD_LIBRARY_PATH
20363 dynamic_linker=no
20365 esac
20366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20367 $as_echo "$dynamic_linker" >&6; }
20368 test "$dynamic_linker" = no && can_build_shared=no
20370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20371 if test "$GCC" = yes; then
20372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20375 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20376 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20378 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20379 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20418 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20419 hardcode_action_CXX=
20420 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20421 test -n "$runpath_var_CXX" ||
20422 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20424 # We can hardcode non-existent directories.
20425 if test "$hardcode_direct_CXX" != no &&
20426 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20427 # have to relink, otherwise we might link with an installed library
20428 # when we should be linking with a yet-to-be-installed one
20429 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20430 test "$hardcode_minus_L_CXX" != no; then
20431 # Linking always hardcodes the temporary library directory.
20432 hardcode_action_CXX=relink
20433 else
20434 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20435 hardcode_action_CXX=immediate
20437 else
20438 # We cannot hardcode anything, or else we can only hardcode existing
20439 # directories.
20440 hardcode_action_CXX=unsupported
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20443 $as_echo "$hardcode_action_CXX" >&6; }
20445 if test "$hardcode_action_CXX" = relink ||
20446 test "$inherit_rpath_CXX" = yes; then
20447 # Fast installation is not supported
20448 enable_fast_install=no
20449 elif test "$shlibpath_overrides_runpath" = yes ||
20450 test "$enable_shared" = no; then
20451 # Fast installation is not necessary
20452 enable_fast_install=needless
20461 fi # test -n "$compiler"
20463 CC=$lt_save_CC
20464 LDCXX=$LD
20465 LD=$lt_save_LD
20466 GCC=$lt_save_GCC
20467 with_gnu_ld=$lt_save_with_gnu_ld
20468 lt_cv_path_LDCXX=$lt_cv_path_LD
20469 lt_cv_path_LD=$lt_save_path_LD
20470 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20471 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20472 fi # test "$_lt_caught_CXX_error" != yes
20474 ac_ext=c
20475 ac_cpp='$CPP $CPPFLAGS'
20476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20495 # Only expand once:
20501 # Identify the assembler which will work hand-in-glove with the newly
20502 # built GCC, so that we can examine its features. This is the assembler
20503 # which will be driven by the driver program.
20505 # If build != host, and we aren't building gas in-tree, we identify a
20506 # build->target assembler and hope that it will have the same features
20507 # as the host->target assembler we'll be using.
20508 gcc_cv_gas_major_version=
20509 gcc_cv_gas_minor_version=
20510 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20512 if test "${gcc_cv_as+set}" = set; then :
20514 else
20516 if test -x "$DEFAULT_ASSEMBLER"; then
20517 gcc_cv_as="$DEFAULT_ASSEMBLER"
20518 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20519 && test -f ../gas/Makefile \
20520 && test x$build = x$host; then
20521 gcc_cv_as=../gas/as-new$build_exeext
20522 elif test -x as$build_exeext; then
20523 # Build using assembler in the current directory.
20524 gcc_cv_as=./as$build_exeext
20525 elif test -x $AS_FOR_TARGET; then
20526 gcc_cv_as="$AS_FOR_TARGET"
20527 else
20528 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20529 set dummy $AS_FOR_TARGET; ac_word=$2
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20531 $as_echo_n "checking for $ac_word... " >&6; }
20532 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20533 $as_echo_n "(cached) " >&6
20534 else
20535 case $gcc_cv_as in
20536 [\\/]* | ?:[\\/]*)
20537 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20541 for as_dir in $PATH
20543 IFS=$as_save_IFS
20544 test -z "$as_dir" && as_dir=.
20545 for ac_exec_ext in '' $ac_executable_extensions; do
20546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20547 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20549 break 2
20551 done
20552 done
20553 IFS=$as_save_IFS
20556 esac
20558 gcc_cv_as=$ac_cv_path_gcc_cv_as
20559 if test -n "$gcc_cv_as"; then
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20561 $as_echo "$gcc_cv_as" >&6; }
20562 else
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20564 $as_echo "no" >&6; }
20571 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20573 case "$ORIGINAL_AS_FOR_TARGET" in
20574 ./as | ./as$build_exeext) ;;
20575 *) ac_config_files="$ac_config_files as:exec-tool.in"
20577 esac
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20580 $as_echo_n "checking what assembler to use... " >&6; }
20581 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20582 # Single tree build which includes gas. We want to prefer it
20583 # over whatever linker top-level may have detected, since
20584 # we'll use what we're building after installation anyway.
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20586 $as_echo "newly built gas" >&6; }
20587 in_tree_gas=yes
20588 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20589 for f in $gcc_cv_as_bfd_srcdir/configure \
20590 $gcc_cv_as_gas_srcdir/configure \
20591 $gcc_cv_as_gas_srcdir/configure.in \
20592 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20593 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20594 if test x$gcc_cv_gas_version != x; then
20595 break
20597 done
20598 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20599 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20600 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20601 case $gcc_cv_gas_patch_version in
20602 "") gcc_cv_gas_patch_version="0" ;;
20603 esac
20604 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20605 + $gcc_cv_gas_minor_version \) \* 1000 \
20606 + $gcc_cv_gas_patch_version`
20608 in_tree_gas_is_elf=no
20609 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20610 || (grep 'obj_format = multi' ../gas/Makefile \
20611 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20612 then
20613 in_tree_gas_is_elf=yes
20615 else
20616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20617 $as_echo "$gcc_cv_as" >&6; }
20618 in_tree_gas=no
20621 # Identify the linker which will work hand-in-glove with the newly
20622 # built GCC, so that we can examine its features. This is the linker
20623 # which will be driven by the driver program.
20625 # If build != host, and we aren't building gas in-tree, we identify a
20626 # build->target linker and hope that it will have the same features
20627 # as the host->target linker we'll be using.
20628 gcc_cv_gld_major_version=
20629 gcc_cv_gld_minor_version=
20630 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20631 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20633 if test "${gcc_cv_ld+set}" = set; then :
20635 else
20637 if test -x "$DEFAULT_LINKER"; then
20638 gcc_cv_ld="$DEFAULT_LINKER"
20639 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20640 && test -f ../ld/Makefile \
20641 && test x$build = x$host; then
20642 gcc_cv_ld=../ld/ld-new$build_exeext
20643 elif test -x collect-ld$build_exeext; then
20644 # Build using linker in the current directory.
20645 gcc_cv_ld=./collect-ld$build_exeext
20646 elif test -x $LD_FOR_TARGET; then
20647 gcc_cv_ld="$LD_FOR_TARGET"
20648 else
20649 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20650 set dummy $LD_FOR_TARGET; ac_word=$2
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20652 $as_echo_n "checking for $ac_word... " >&6; }
20653 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20654 $as_echo_n "(cached) " >&6
20655 else
20656 case $gcc_cv_ld in
20657 [\\/]* | ?:[\\/]*)
20658 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20662 for as_dir in $PATH
20664 IFS=$as_save_IFS
20665 test -z "$as_dir" && as_dir=.
20666 for ac_exec_ext in '' $ac_executable_extensions; do
20667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20668 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20670 break 2
20672 done
20673 done
20674 IFS=$as_save_IFS
20677 esac
20679 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20680 if test -n "$gcc_cv_ld"; then
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20682 $as_echo "$gcc_cv_ld" >&6; }
20683 else
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20685 $as_echo "no" >&6; }
20692 ORIGINAL_PLUGIN_LD_FOR_TARGET=$gcc_cv_ld
20693 PLUGIN_LD=`basename $gcc_cv_ld`
20695 # Check whether --with-plugin-ld was given.
20696 if test "${with_plugin_ld+set}" = set; then :
20697 withval=$with_plugin_ld; if test x"$withval" != x; then
20698 ORIGINAL_PLUGIN_LD_FOR_TARGET="$withval"
20699 PLUGIN_LD="$withval"
20705 cat >>confdefs.h <<_ACEOF
20706 #define PLUGIN_LD "$PLUGIN_LD"
20707 _ACEOF
20710 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20712 case "$ORIGINAL_LD_FOR_TARGET" in
20713 ./collect-ld | ./collect-ld$build_exeext) ;;
20714 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20716 esac
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20719 $as_echo_n "checking what linker to use... " >&6; }
20720 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20721 # Single tree build which includes ld. We want to prefer it
20722 # over whatever linker top-level may have detected, since
20723 # we'll use what we're building after installation anyway.
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20725 $as_echo "newly built ld" >&6; }
20726 in_tree_ld=yes
20727 in_tree_ld_is_elf=no
20728 if (grep 'EMUL = .*elf' ../ld/Makefile \
20729 || grep 'EMUL = .*linux' ../ld/Makefile \
20730 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20731 in_tree_ld_is_elf=yes
20733 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
20735 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20736 if test x$gcc_cv_gld_version != x; then
20737 break
20739 done
20740 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20741 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20742 else
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20744 $as_echo "$gcc_cv_ld" >&6; }
20745 in_tree_ld=no
20748 # Figure out what nm we will be using.
20749 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20750 if test "${gcc_cv_nm+set}" = set; then :
20752 else
20754 if test -f $gcc_cv_binutils_srcdir/configure.in \
20755 && test -f ../binutils/Makefile \
20756 && test x$build = x$host; then
20757 gcc_cv_nm=../binutils/nm-new$build_exeext
20758 elif test -x nm$build_exeext; then
20759 gcc_cv_nm=./nm$build_exeext
20760 elif test -x $NM_FOR_TARGET; then
20761 gcc_cv_nm="$NM_FOR_TARGET"
20762 else
20763 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20764 set dummy $NM_FOR_TARGET; ac_word=$2
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20766 $as_echo_n "checking for $ac_word... " >&6; }
20767 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20768 $as_echo_n "(cached) " >&6
20769 else
20770 case $gcc_cv_nm in
20771 [\\/]* | ?:[\\/]*)
20772 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20776 for as_dir in $PATH
20778 IFS=$as_save_IFS
20779 test -z "$as_dir" && as_dir=.
20780 for ac_exec_ext in '' $ac_executable_extensions; do
20781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20782 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20784 break 2
20786 done
20787 done
20788 IFS=$as_save_IFS
20791 esac
20793 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20794 if test -n "$gcc_cv_nm"; then
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20796 $as_echo "$gcc_cv_nm" >&6; }
20797 else
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20799 $as_echo "no" >&6; }
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20807 $as_echo_n "checking what nm to use... " >&6; }
20808 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20809 # Single tree build which includes binutils.
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20811 $as_echo "newly built nm" >&6; }
20812 in_tree_nm=yes
20813 else
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20815 $as_echo "$gcc_cv_nm" >&6; }
20816 in_tree_nm=no
20819 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20821 case "$ORIGINAL_NM_FOR_TARGET" in
20822 ./nm | ./nm$build_exeext) ;;
20823 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20825 esac
20828 # Figure out what objdump we will be using.
20829 if test "${gcc_cv_objdump+set}" = set; then :
20831 else
20833 if test -f $gcc_cv_binutils_srcdir/configure.in \
20834 && test -f ../binutils/Makefile \
20835 && test x$build = x$host; then
20836 # Single tree build which includes binutils.
20837 gcc_cv_objdump=../binutils/objdump$build_exeext
20838 elif test -x objdump$build_exeext; then
20839 gcc_cv_objdump=./objdump$build_exeext
20840 elif test -x $OBJDUMP_FOR_TARGET; then
20841 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20842 else
20843 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20844 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20846 $as_echo_n "checking for $ac_word... " >&6; }
20847 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20848 $as_echo_n "(cached) " >&6
20849 else
20850 case $gcc_cv_objdump in
20851 [\\/]* | ?:[\\/]*)
20852 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20856 for as_dir in $PATH
20858 IFS=$as_save_IFS
20859 test -z "$as_dir" && as_dir=.
20860 for ac_exec_ext in '' $ac_executable_extensions; do
20861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20862 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20864 break 2
20866 done
20867 done
20868 IFS=$as_save_IFS
20871 esac
20873 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20874 if test -n "$gcc_cv_objdump"; then
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20876 $as_echo "$gcc_cv_objdump" >&6; }
20877 else
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20879 $as_echo "no" >&6; }
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20887 $as_echo_n "checking what objdump to use... " >&6; }
20888 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20889 # Single tree build which includes binutils.
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20891 $as_echo "newly built objdump" >&6; }
20892 elif test x$gcc_cv_objdump = x; then
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20894 $as_echo "not found" >&6; }
20895 else
20896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20897 $as_echo "$gcc_cv_objdump" >&6; }
20900 # Figure out what readelf we will be using.
20901 if test "${gcc_cv_readelf+set}" = set; then :
20903 else
20905 if test -f $gcc_cv_binutils_srcdir/configure.in \
20906 && test -f ../binutils/Makefile \
20907 && test x$build = x$host; then
20908 # Single tree build which includes binutils.
20909 gcc_cv_readelf=../binutils/readelf$build_exeext
20910 elif test -x readelf$build_exeext; then
20911 gcc_cv_readelf=./readelf$build_exeext
20912 else
20913 # Extract the first word of "readelf", so it can be a program name with args.
20914 set dummy readelf; ac_word=$2
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20916 $as_echo_n "checking for $ac_word... " >&6; }
20917 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20918 $as_echo_n "(cached) " >&6
20919 else
20920 case $gcc_cv_readelf in
20921 [\\/]* | ?:[\\/]*)
20922 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20926 for as_dir in $PATH
20928 IFS=$as_save_IFS
20929 test -z "$as_dir" && as_dir=.
20930 for ac_exec_ext in '' $ac_executable_extensions; do
20931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20932 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20934 break 2
20936 done
20937 done
20938 IFS=$as_save_IFS
20941 esac
20943 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20944 if test -n "$gcc_cv_readelf"; then
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20946 $as_echo "$gcc_cv_readelf" >&6; }
20947 else
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20949 $as_echo "no" >&6; }
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20957 $as_echo_n "checking what readelf to use... " >&6; }
20958 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20959 # Single tree build which includes binutils.
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20961 $as_echo "newly built readelf" >&6; }
20962 elif test x$gcc_cv_readelf = x; then
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20964 $as_echo "not found" >&6; }
20965 else
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20967 $as_echo "$gcc_cv_readelf" >&6; }
20970 # Figure out what assembler alignment features are present.
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20972 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20973 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20974 $as_echo_n "(cached) " >&6
20975 else
20976 gcc_cv_as_balign_and_p2align=no
20977 if test $in_tree_gas = yes; then
20978 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20979 then gcc_cv_as_balign_and_p2align=yes
20981 elif test x$gcc_cv_as != x; then
20982 echo '.balign 4
20983 .p2align 2' > conftest.s
20984 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20986 (eval $ac_try) 2>&5
20987 ac_status=$?
20988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20989 test $ac_status = 0; }; }
20990 then
20991 gcc_cv_as_balign_and_p2align=yes
20992 else
20993 echo "configure: failed program was" >&5
20994 cat conftest.s >&5
20996 rm -f conftest.o conftest.s
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
21000 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
21001 if test $gcc_cv_as_balign_and_p2align = yes; then
21003 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
21008 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
21009 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
21010 $as_echo_n "(cached) " >&6
21011 else
21012 gcc_cv_as_max_skip_p2align=no
21013 if test $in_tree_gas = yes; then
21014 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21015 then gcc_cv_as_max_skip_p2align=yes
21017 elif test x$gcc_cv_as != x; then
21018 echo '.p2align 4,,7' > conftest.s
21019 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21021 (eval $ac_try) 2>&5
21022 ac_status=$?
21023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21024 test $ac_status = 0; }; }
21025 then
21026 gcc_cv_as_max_skip_p2align=yes
21027 else
21028 echo "configure: failed program was" >&5
21029 cat conftest.s >&5
21031 rm -f conftest.o conftest.s
21034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21035 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21036 if test $gcc_cv_as_max_skip_p2align = yes; then
21038 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21043 $as_echo_n "checking assembler for .literal16... " >&6; }
21044 if test "${gcc_cv_as_literal16+set}" = set; then :
21045 $as_echo_n "(cached) " >&6
21046 else
21047 gcc_cv_as_literal16=no
21048 if test $in_tree_gas = yes; then
21049 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21050 then gcc_cv_as_literal16=yes
21052 elif test x$gcc_cv_as != x; then
21053 echo '.literal16' > conftest.s
21054 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21056 (eval $ac_try) 2>&5
21057 ac_status=$?
21058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21059 test $ac_status = 0; }; }
21060 then
21061 gcc_cv_as_literal16=yes
21062 else
21063 echo "configure: failed program was" >&5
21064 cat conftest.s >&5
21066 rm -f conftest.o conftest.s
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21070 $as_echo "$gcc_cv_as_literal16" >&6; }
21071 if test $gcc_cv_as_literal16 = yes; then
21073 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21078 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21079 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21080 $as_echo_n "(cached) " >&6
21081 else
21082 gcc_cv_as_subsection_m1=no
21083 if test $in_tree_gas = yes; then
21084 if test $in_tree_gas_is_elf = yes \
21085 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21086 then gcc_cv_as_subsection_m1=yes
21088 elif test x$gcc_cv_as != x; then
21089 echo 'conftest_label1: .word 0
21090 .subsection -1
21091 conftest_label2: .word 0
21092 .previous' > conftest.s
21093 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21098 test $ac_status = 0; }; }
21099 then
21100 if test x$gcc_cv_nm != x; then
21101 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21102 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21103 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21104 then :
21105 else gcc_cv_as_subsection_m1=yes
21107 rm -f conftest.nm1 conftest.nm2
21109 else
21110 echo "configure: failed program was" >&5
21111 cat conftest.s >&5
21113 rm -f conftest.o conftest.s
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21117 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21118 if test $gcc_cv_as_subsection_m1 = yes; then
21120 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21125 $as_echo_n "checking assembler for .weak... " >&6; }
21126 if test "${gcc_cv_as_weak+set}" = set; then :
21127 $as_echo_n "(cached) " >&6
21128 else
21129 gcc_cv_as_weak=no
21130 if test $in_tree_gas = yes; then
21131 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21132 then gcc_cv_as_weak=yes
21134 elif test x$gcc_cv_as != x; then
21135 echo ' .weak foobar' > conftest.s
21136 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21138 (eval $ac_try) 2>&5
21139 ac_status=$?
21140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21141 test $ac_status = 0; }; }
21142 then
21143 gcc_cv_as_weak=yes
21144 else
21145 echo "configure: failed program was" >&5
21146 cat conftest.s >&5
21148 rm -f conftest.o conftest.s
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21152 $as_echo "$gcc_cv_as_weak" >&6; }
21153 if test $gcc_cv_as_weak = yes; then
21155 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21160 $as_echo_n "checking assembler for .weakref... " >&6; }
21161 if test "${gcc_cv_as_weakref+set}" = set; then :
21162 $as_echo_n "(cached) " >&6
21163 else
21164 gcc_cv_as_weakref=no
21165 if test $in_tree_gas = yes; then
21166 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21167 then gcc_cv_as_weakref=yes
21169 elif test x$gcc_cv_as != x; then
21170 echo ' .weakref foobar, barfnot' > conftest.s
21171 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21173 (eval $ac_try) 2>&5
21174 ac_status=$?
21175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21176 test $ac_status = 0; }; }
21177 then
21178 gcc_cv_as_weakref=yes
21179 else
21180 echo "configure: failed program was" >&5
21181 cat conftest.s >&5
21183 rm -f conftest.o conftest.s
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21187 $as_echo "$gcc_cv_as_weakref" >&6; }
21188 if test $gcc_cv_as_weakref = yes; then
21190 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21195 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21196 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21197 $as_echo_n "(cached) " >&6
21198 else
21199 gcc_cv_as_nsubspa_comdat=no
21200 if test $in_tree_gas = yes; then
21201 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21202 then gcc_cv_as_nsubspa_comdat=yes
21204 elif test x$gcc_cv_as != x; then
21205 echo ' .SPACE $TEXT$
21206 .NSUBSPA $CODE$,COMDAT' > conftest.s
21207 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21209 (eval $ac_try) 2>&5
21210 ac_status=$?
21211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21212 test $ac_status = 0; }; }
21213 then
21214 gcc_cv_as_nsubspa_comdat=yes
21215 else
21216 echo "configure: failed program was" >&5
21217 cat conftest.s >&5
21219 rm -f conftest.o conftest.s
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21223 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21224 if test $gcc_cv_as_nsubspa_comdat = yes; then
21226 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21230 # .hidden needs to be supported in both the assembler and the linker,
21231 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21232 # This is irritatingly difficult to feature test for; we have to check the
21233 # date string after the version number. If we've got an in-tree
21234 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21235 # to be safe.
21236 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21238 $as_echo_n "checking assembler for .hidden... " >&6; }
21239 if test "${gcc_cv_as_hidden+set}" = set; then :
21240 $as_echo_n "(cached) " >&6
21241 else
21242 gcc_cv_as_hidden=no
21243 if test $in_tree_gas = yes; then
21244 if test $in_tree_gas_is_elf = yes \
21245 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21246 then gcc_cv_as_hidden=yes
21248 elif test x$gcc_cv_as != x; then
21249 echo ' .hidden foobar
21250 foobar:' > conftest.s
21251 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21256 test $ac_status = 0; }; }
21257 then
21258 gcc_cv_as_hidden=yes
21259 else
21260 echo "configure: failed program was" >&5
21261 cat conftest.s >&5
21263 rm -f conftest.o conftest.s
21266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21267 $as_echo "$gcc_cv_as_hidden" >&6; }
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21271 $as_echo_n "checking linker for .hidden support... " >&6; }
21272 if test "${gcc_cv_ld_hidden+set}" = set; then :
21273 $as_echo_n "(cached) " >&6
21274 else
21275 if test $in_tree_ld = yes ; then
21276 gcc_cv_ld_hidden=no
21277 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 \
21278 && test $in_tree_ld_is_elf = yes; then
21279 gcc_cv_ld_hidden=yes
21281 else
21282 gcc_cv_ld_hidden=yes
21283 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21284 if echo "$ld_ver" | grep GNU > /dev/null; then
21285 ld_vers=`echo $ld_ver | sed -n \
21286 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21287 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'`
21288 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21289 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21290 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21291 if test 0"$ld_date" -lt 20020404; then
21292 if test -n "$ld_date"; then
21293 # If there was date string, but was earlier than 2002-04-04, fail
21294 gcc_cv_ld_hidden=no
21295 elif test -z "$ld_vers"; then
21296 # If there was no date string nor ld version number, something is wrong
21297 gcc_cv_ld_hidden=no
21298 else
21299 test -z "$ld_vers_patch" && ld_vers_patch=0
21300 if test "$ld_vers_major" -lt 2; then
21301 gcc_cv_ld_hidden=no
21302 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21303 gcc_cv_ld_hidden="no"
21304 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21305 gcc_cv_ld_hidden=no
21309 else
21310 case "${target}" in
21311 hppa64*-*-hpux* | ia64*-*-hpux*)
21312 gcc_cv_ld_hidden=yes
21314 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21315 gcc_cv_ld_hidden=yes
21318 gcc_cv_ld_hidden=no
21320 esac
21324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21325 $as_echo "$gcc_cv_ld_hidden" >&6; }
21326 libgcc_visibility=no
21329 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21330 libgcc_visibility=yes
21332 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21337 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21338 gcc_cv_ld_ro_rw_mix=unknown
21339 if test $in_tree_ld = yes ; then
21340 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 \
21341 && test $in_tree_ld_is_elf = yes; then
21342 gcc_cv_ld_ro_rw_mix=read-write
21344 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21345 echo '.section myfoosect, "a"' > conftest1.s
21346 echo '.section myfoosect, "aw"' > conftest2.s
21347 echo '.byte 1' >> conftest2.s
21348 echo '.section myfoosect, "a"' > conftest3.s
21349 echo '.byte 0' >> conftest3.s
21350 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21351 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21352 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21353 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21354 conftest2.o conftest3.o > /dev/null 2>&1; then
21355 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21356 | sed -e '/myfoosect/!d' -e N`
21357 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21358 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21359 gcc_cv_ld_ro_rw_mix=read-only
21360 else
21361 gcc_cv_ld_ro_rw_mix=read-write
21365 rm -f conftest.* conftest[123].*
21367 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21369 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21373 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21375 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21377 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21378 if test "${gcc_cv_as_leb128+set}" = set; then :
21379 $as_echo_n "(cached) " >&6
21380 else
21381 gcc_cv_as_leb128=no
21382 if test $in_tree_gas = yes; then
21383 if test $in_tree_gas_is_elf = yes \
21384 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21385 then gcc_cv_as_leb128=yes
21387 elif test x$gcc_cv_as != x; then
21388 echo ' .data
21389 .uleb128 L2 - L1
21391 .uleb128 1280
21392 .sleb128 -1010
21393 L2:' > conftest.s
21394 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21399 test $ac_status = 0; }; }
21400 then
21401 # GAS versions before 2.11 do not support uleb128,
21402 # despite appearing to.
21403 # ??? There exists an elf-specific test that will crash
21404 # the assembler. Perhaps it's better to figure out whether
21405 # arbitrary sections are supported and try the test.
21406 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21407 if echo "$as_ver" | grep GNU > /dev/null; then
21408 as_vers=`echo $as_ver | sed -n \
21409 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21410 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21411 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21412 if test $as_major -eq 2 && test $as_minor -lt 11
21413 then :
21414 else gcc_cv_as_leb128=yes
21417 else
21418 echo "configure: failed program was" >&5
21419 cat conftest.s >&5
21421 rm -f conftest.o conftest.s
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21425 $as_echo "$gcc_cv_as_leb128" >&6; }
21426 if test $gcc_cv_as_leb128 = yes; then
21428 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21432 # Check if we have assembler support for unwind directives.
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21434 $as_echo_n "checking assembler for cfi directives... " >&6; }
21435 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21436 $as_echo_n "(cached) " >&6
21437 else
21438 gcc_cv_as_cfi_directive=no
21439 if test x$gcc_cv_as != x; then
21440 echo ' .text
21441 .cfi_startproc
21442 .cfi_offset 0, 0
21443 .cfi_same_value 1
21444 .cfi_def_cfa 1, 2
21445 .cfi_escape 1, 2, 3, 4, 5
21446 .cfi_endproc' > conftest.s
21447 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21449 (eval $ac_try) 2>&5
21450 ac_status=$?
21451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21452 test $ac_status = 0; }; }
21453 then
21454 case "$target" in
21455 *-*-solaris*)
21456 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21457 # read-only and read-write sections, we need to make sure that the
21458 # assembler used emits read-write .eh_frame sections.
21459 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21460 if test "x$gcc_cv_objdump" != x; then
21461 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21462 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21463 gcc_cv_as_cfi_directive=no
21464 else
21465 gcc_cv_as_cfi_directive=yes
21467 else
21468 # no objdump, err on the side of caution
21469 gcc_cv_as_cfi_directive=no
21471 else
21472 gcc_cv_as_cfi_directive=yes
21475 *-*-*)
21476 gcc_cv_as_cfi_directive=yes
21478 esac
21479 else
21480 echo "configure: failed program was" >&5
21481 cat conftest.s >&5
21483 rm -f conftest.o conftest.s
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21487 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21489 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21491 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21492 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21493 $as_echo_n "(cached) " >&6
21494 else
21495 gcc_cv_as_cfi_advance_working=no
21496 if test x$gcc_cv_as != x; then
21497 echo ' .text
21498 .cfi_startproc
21499 .cfi_adjust_cfa_offset 64
21500 .skip 512, 0
21501 .cfi_adjust_cfa_offset 128
21502 .cfi_endproc' > conftest.s
21503 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21505 (eval $ac_try) 2>&5
21506 ac_status=$?
21507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21508 test $ac_status = 0; }; }
21509 then
21511 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21512 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
21513 gcc_cv_as_cfi_advance_working=yes
21516 else
21517 echo "configure: failed program was" >&5
21518 cat conftest.s >&5
21520 rm -f conftest.o conftest.s
21523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21524 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21526 else
21527 # no readelf, err on the side of caution
21528 gcc_cv_as_cfi_advance_working=no
21531 cat >>confdefs.h <<_ACEOF
21532 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21533 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21534 _ACEOF
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21538 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21539 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21540 $as_echo_n "(cached) " >&6
21541 else
21542 gcc_cv_as_cfi_personality_directive=no
21543 if test x$gcc_cv_as != x; then
21544 echo ' .text
21545 .cfi_startproc
21546 .cfi_personality 0, symbol
21547 .cfi_endproc' > conftest.s
21548 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21553 test $ac_status = 0; }; }
21554 then
21555 gcc_cv_as_cfi_personality_directive=yes
21556 else
21557 echo "configure: failed program was" >&5
21558 cat conftest.s >&5
21560 rm -f conftest.o conftest.s
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21564 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21567 cat >>confdefs.h <<_ACEOF
21568 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21569 then echo 1; else echo 0; fi`
21570 _ACEOF
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21574 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21575 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21576 $as_echo_n "(cached) " >&6
21577 else
21578 gcc_cv_as_cfi_sections_directive=no
21579 if test x$gcc_cv_as != x; then
21580 echo ' .text
21581 .cfi_sections .debug_frame, .eh_frame
21582 .cfi_startproc
21583 .cfi_endproc' > conftest.s
21584 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21586 (eval $ac_try) 2>&5
21587 ac_status=$?
21588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21589 test $ac_status = 0; }; }
21590 then
21591 gcc_cv_as_cfi_sections_directive=yes
21592 else
21593 echo "configure: failed program was" >&5
21594 cat conftest.s >&5
21596 rm -f conftest.o conftest.s
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21600 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21603 cat >>confdefs.h <<_ACEOF
21604 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21605 then echo 1; else echo 0; fi`
21606 _ACEOF
21609 # GAS versions up to and including 2.11.0 may mis-optimize
21610 # .eh_frame data.
21611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21612 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21613 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21614 $as_echo_n "(cached) " >&6
21615 else
21616 gcc_cv_as_eh_frame=no
21617 if test $in_tree_gas = yes; then
21618 if test $in_tree_gas_is_elf = yes \
21619 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21620 then gcc_cv_as_eh_frame=yes
21622 elif test x$gcc_cv_as != x; then
21623 echo ' .text
21624 .LFB1:
21625 .4byte 0
21626 .L1:
21627 .4byte 0
21628 .LFE1:
21629 .section .eh_frame,"aw",@progbits
21630 __FRAME_BEGIN__:
21631 .4byte .LECIE1-.LSCIE1
21632 .LSCIE1:
21633 .4byte 0x0
21634 .byte 0x1
21635 .ascii "z\0"
21636 .byte 0x1
21637 .byte 0x78
21638 .byte 0x1a
21639 .byte 0x0
21640 .byte 0x4
21641 .4byte 1
21642 .p2align 1
21643 .LECIE1:
21644 .LSFDE1:
21645 .4byte .LEFDE1-.LASFDE1
21646 .LASFDE1:
21647 .4byte .LASFDE1-__FRAME_BEGIN__
21648 .4byte .LFB1
21649 .4byte .LFE1-.LFB1
21650 .byte 0x4
21651 .4byte .LFE1-.LFB1
21652 .byte 0x4
21653 .4byte .L1-.LFB1
21654 .LEFDE1:' > conftest.s
21655 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21657 (eval $ac_try) 2>&5
21658 ac_status=$?
21659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21660 test $ac_status = 0; }; }
21661 then
21662 cat > conftest.lit <<EOF
21663 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21664 0010 01000000 12000000 18000000 00000000 ................
21665 0020 08000000 04080000 0044 .........D
21667 cat > conftest.big <<EOF
21668 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21669 0010 00000001 00000012 00000018 00000000 ................
21670 0020 00000008 04000000 0844 .........D
21672 # If the assembler didn't choke, and we can objdump,
21673 # and we got the correct data, then succeed.
21674 # The text in the here-document typically retains its unix-style line
21675 # endings, while the output of objdump will use host line endings.
21676 # Therefore, use diff -b for the comparisons.
21677 if test x$gcc_cv_objdump != x \
21678 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21679 | tail -3 > conftest.got \
21680 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21681 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21682 then
21683 gcc_cv_as_eh_frame=yes
21684 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21686 (eval $ac_try) 2>&5
21687 ac_status=$?
21688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21689 test $ac_status = 0; }; }; then
21690 gcc_cv_as_eh_frame=buggy
21691 else
21692 # Uh oh, what do we do now?
21693 gcc_cv_as_eh_frame=no
21695 else
21696 echo "configure: failed program was" >&5
21697 cat conftest.s >&5
21699 rm -f conftest.o conftest.s
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21703 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21706 if test $gcc_cv_as_eh_frame = buggy; then
21708 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21713 $as_echo_n "checking assembler for section merging support... " >&6; }
21714 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21715 $as_echo_n "(cached) " >&6
21716 else
21717 gcc_cv_as_shf_merge=no
21718 if test $in_tree_gas = yes; then
21719 if test $in_tree_gas_is_elf = yes \
21720 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21721 then gcc_cv_as_shf_merge=yes
21723 elif test x$gcc_cv_as != x; then
21724 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21725 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21727 (eval $ac_try) 2>&5
21728 ac_status=$?
21729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21730 test $ac_status = 0; }; }
21731 then
21732 gcc_cv_as_shf_merge=yes
21733 else
21734 echo "configure: failed program was" >&5
21735 cat conftest.s >&5
21737 rm -f conftest.o conftest.s
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21741 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21743 if test $gcc_cv_as_shf_merge = no; then
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21745 $as_echo_n "checking assembler for section merging support... " >&6; }
21746 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21747 $as_echo_n "(cached) " >&6
21748 else
21749 gcc_cv_as_shf_merge=no
21750 if test $in_tree_gas = yes; then
21751 if test $in_tree_gas_is_elf = yes \
21752 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21753 then gcc_cv_as_shf_merge=yes
21755 elif test x$gcc_cv_as != x; then
21756 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21757 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21759 (eval $ac_try) 2>&5
21760 ac_status=$?
21761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21762 test $ac_status = 0; }; }
21763 then
21764 gcc_cv_as_shf_merge=yes
21765 else
21766 echo "configure: failed program was" >&5
21767 cat conftest.s >&5
21769 rm -f conftest.o conftest.s
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21773 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21777 cat >>confdefs.h <<_ACEOF
21778 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21779 _ACEOF
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21783 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21784 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21786 else
21787 gcc_cv_as_comdat_group=no
21788 if test $in_tree_gas = yes; then
21789 if test $in_tree_gas_is_elf = yes \
21790 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21791 then gcc_cv_as_comdat_group=yes
21793 elif test x$gcc_cv_as != x; then
21794 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21795 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21797 (eval $ac_try) 2>&5
21798 ac_status=$?
21799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21800 test $ac_status = 0; }; }
21801 then
21802 gcc_cv_as_comdat_group=yes
21803 else
21804 echo "configure: failed program was" >&5
21805 cat conftest.s >&5
21807 rm -f conftest.o conftest.s
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21811 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21813 if test $gcc_cv_as_comdat_group = yes; then
21814 gcc_cv_as_comdat_group_percent=no
21815 else
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21817 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21818 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21819 $as_echo_n "(cached) " >&6
21820 else
21821 gcc_cv_as_comdat_group_percent=no
21822 if test $in_tree_gas = yes; then
21823 if test $in_tree_gas_is_elf = yes \
21824 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21825 then gcc_cv_as_comdat_group_percent=yes
21827 elif test x$gcc_cv_as != x; then
21828 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21829 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21831 (eval $ac_try) 2>&5
21832 ac_status=$?
21833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21834 test $ac_status = 0; }; }
21835 then
21836 gcc_cv_as_comdat_group_percent=yes
21837 else
21838 echo "configure: failed program was" >&5
21839 cat conftest.s >&5
21841 rm -f conftest.o conftest.s
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21845 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21848 if test $in_tree_ld = yes ; then
21849 comdat_group=no
21850 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 \
21851 && test $in_tree_ld_is_elf = yes; then
21852 comdat_group=yes
21854 elif test x"$ld_vers" != x; then
21855 comdat_group=yes
21856 if test 0"$ld_date" -lt 20050308; then
21857 if test -n "$ld_date"; then
21858 # If there was date string, but was earlier than 2005-03-08, fail
21859 comdat_group=no
21860 elif test "$ld_vers_major" -lt 2; then
21861 comdat_group=no
21862 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21863 comdat_group=no
21866 else
21867 # assume linkers other than GNU ld don't support COMDAT group
21868 comdat_group=no
21870 if test $comdat_group = no; then
21871 gcc_cv_as_comdat_group=no
21872 gcc_cv_as_comdat_group_percent=no
21875 cat >>confdefs.h <<_ACEOF
21876 #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`
21877 _ACEOF
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21881 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21882 if test "${gcc_cv_as_discriminator+set}" = set; then :
21883 $as_echo_n "(cached) " >&6
21884 else
21885 gcc_cv_as_discriminator=no
21886 if test $in_tree_gas = yes; then
21887 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21888 then gcc_cv_as_discriminator=yes
21890 elif test x$gcc_cv_as != x; then
21891 echo ' .text
21892 .file 1 "conf.c"
21893 .loc 1 1 0 discriminator 1' > conftest.s
21894 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21896 (eval $ac_try) 2>&5
21897 ac_status=$?
21898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21899 test $ac_status = 0; }; }
21900 then
21901 gcc_cv_as_discriminator=yes
21902 else
21903 echo "configure: failed program was" >&5
21904 cat conftest.s >&5
21906 rm -f conftest.o conftest.s
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21910 $as_echo "$gcc_cv_as_discriminator" >&6; }
21911 if test $gcc_cv_as_discriminator = yes; then
21913 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21917 # Thread-local storage - the check is heavily parameterized.
21918 conftest_s=
21919 tls_first_major=
21920 tls_first_minor=
21921 tls_as_opt=
21922 case "$target" in
21923 alpha*-*-*)
21924 conftest_s='
21925 .section ".tdata","awT",@progbits
21926 foo: .long 25
21927 .text
21928 ldq $27,__tls_get_addr($29) !literal!1
21929 lda $16,foo($29) !tlsgd!1
21930 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21931 ldq $27,__tls_get_addr($29) !literal!2
21932 lda $16,foo($29) !tlsldm!2
21933 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21934 ldq $1,foo($29) !gotdtprel
21935 ldah $2,foo($29) !dtprelhi
21936 lda $3,foo($2) !dtprello
21937 lda $4,foo($29) !dtprel
21938 ldq $1,foo($29) !gottprel
21939 ldah $2,foo($29) !tprelhi
21940 lda $3,foo($2) !tprello
21941 lda $4,foo($29) !tprel'
21942 tls_first_major=2
21943 tls_first_minor=13
21944 tls_as_opt=--fatal-warnings
21946 cris-*-*|crisv32-*-*)
21947 conftest_s='
21948 .section ".tdata","awT",@progbits
21949 x: .long 25
21950 .text
21951 move.d x:IE,$r10
21952 nop'
21953 tls_first_major=2
21954 tls_first_minor=20
21955 tls_as_opt=--fatal-warnings
21957 frv*-*-*)
21958 conftest_s='
21959 .section ".tdata","awT",@progbits
21960 x: .long 25
21961 .text
21962 call #gettlsoff(x)'
21963 tls_first_major=2
21964 tls_first_minor=14
21966 hppa*-*-linux*)
21967 conftest_s='
21968 t1: .reg %r20
21969 t2: .reg %r21
21970 gp: .reg %r19
21971 .section ".tdata","awT",@progbits
21972 foo: .long 25
21973 .text
21974 .align 4
21975 addil LT%foo-$tls_gdidx$,gp
21976 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21977 b __tls_get_addr
21979 addil LT%foo-$tls_ldidx$,gp
21980 b __tls_get_addr
21981 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21982 addil LR%foo-$tls_dtpoff$,%ret0
21983 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21984 mfctl %cr27,%t1
21985 addil LT%foo-$tls_ieoff$,gp
21986 ldw RT%foo-$tls_ieoff$(%r1),%t2
21987 add %t1,%t2,%t3
21988 mfctl %cr27,%t1
21989 addil LR%foo-$tls_leoff$,%t1
21990 ldo RR%foo-$tls_leoff$(%r1),%t2'
21991 tls_first_major=2
21992 tls_first_minor=15
21993 tls_as_opt=--fatal-warnings
21995 arm*-*-*)
21996 conftest_s='
21997 .section ".tdata","awT",%progbits
21998 foo: .long 25
21999 .text
22000 .word foo(gottpoff)
22001 .word foo(tpoff)
22002 .word foo(tlsgd)
22003 .word foo(tlsldm)
22004 .word foo(tlsldo)'
22005 tls_first_major=2
22006 tls_first_minor=17
22008 i[34567]86-*-*)
22009 conftest_s='
22010 .section ".tdata","awT",@progbits
22011 foo: .long 25
22012 .text
22013 movl %gs:0, %eax
22014 leal foo@TLSGD(,%ebx,1), %eax
22015 leal foo@TLSLDM(%ebx), %eax
22016 leal foo@DTPOFF(%eax), %edx
22017 movl foo@GOTTPOFF(%ebx), %eax
22018 subl foo@GOTTPOFF(%ebx), %eax
22019 addl foo@GOTNTPOFF(%ebx), %eax
22020 movl foo@INDNTPOFF, %eax
22021 movl $foo@TPOFF, %eax
22022 subl $foo@TPOFF, %eax
22023 leal foo@NTPOFF(%ecx), %eax'
22024 tls_first_major=2
22025 tls_first_minor=14
22026 tls_as_opt=--fatal-warnings
22028 x86_64-*-*)
22029 conftest_s='
22030 .section ".tdata","awT",@progbits
22031 foo: .long 25
22032 .text
22033 movq %fs:0, %rax
22034 leaq foo@TLSGD(%rip), %rdi
22035 leaq foo@TLSLD(%rip), %rdi
22036 leaq foo@DTPOFF(%rax), %rdx
22037 movq foo@GOTTPOFF(%rip), %rax
22038 movq $foo@TPOFF, %rax'
22039 tls_first_major=2
22040 tls_first_minor=14
22041 tls_as_opt=--fatal-warnings
22043 ia64-*-*)
22044 conftest_s='
22045 .section ".tdata","awT",@progbits
22046 foo: data8 25
22047 .text
22048 addl r16 = @ltoff(@dtpmod(foo#)), gp
22049 addl r17 = @ltoff(@dtprel(foo#)), gp
22050 addl r18 = @ltoff(@tprel(foo#)), gp
22051 addl r19 = @dtprel(foo#), gp
22052 adds r21 = @dtprel(foo#), r13
22053 movl r23 = @dtprel(foo#)
22054 addl r20 = @tprel(foo#), gp
22055 adds r22 = @tprel(foo#), r13
22056 movl r24 = @tprel(foo#)'
22057 tls_first_major=2
22058 tls_first_minor=13
22059 tls_as_opt=--fatal-warnings
22061 mips*-*-*)
22062 conftest_s='
22063 .section .tdata,"awT",@progbits
22065 .word 2
22066 .text
22067 addiu $4, $28, %tlsgd(x)
22068 addiu $4, $28, %tlsldm(x)
22069 lui $4, %dtprel_hi(x)
22070 addiu $4, $4, %dtprel_lo(x)
22071 lw $4, %gottprel(x)($28)
22072 lui $4, %tprel_hi(x)
22073 addiu $4, $4, %tprel_lo(x)'
22074 tls_first_major=2
22075 tls_first_minor=16
22076 tls_as_opt='-32 --fatal-warnings'
22078 m68k-*-*)
22079 conftest_s='
22080 .section .tdata,"awT",@progbits
22082 .word 2
22083 .text
22084 foo:
22085 move.l x@TLSGD(%a5),%a0
22086 move.l x@TLSLDM(%a5),%a0
22087 move.l x@TLSLDO(%a5),%a0
22088 move.l x@TLSIE(%a5),%a0
22089 move.l x@TLSLE(%a5),%a0'
22090 tls_first_major=2
22091 tls_first_minor=19
22092 tls_as_opt='--fatal-warnings'
22094 powerpc-*-*)
22095 conftest_s='
22096 .section ".tdata","awT",@progbits
22097 .align 2
22098 ld0: .space 4
22099 ld1: .space 4
22100 x1: .space 4
22101 x2: .space 4
22102 x3: .space 4
22103 .text
22104 addi 3,31,ld0@got@tlsgd
22105 bl __tls_get_addr
22106 addi 3,31,x1@got@tlsld
22107 bl __tls_get_addr
22108 addi 9,3,x1@dtprel
22109 addis 9,3,x2@dtprel@ha
22110 addi 9,9,x2@dtprel@l
22111 lwz 9,x3@got@tprel(31)
22112 add 9,9,x@tls
22113 addi 9,2,x1@tprel
22114 addis 9,2,x2@tprel@ha
22115 addi 9,9,x2@tprel@l'
22116 tls_first_major=2
22117 tls_first_minor=14
22118 tls_as_opt="-a32 --fatal-warnings"
22120 powerpc64-*-*)
22121 conftest_s='
22122 .section ".tdata","awT",@progbits
22123 .align 3
22124 ld0: .space 8
22125 ld1: .space 8
22126 x1: .space 8
22127 x2: .space 8
22128 x3: .space 8
22129 .text
22130 addi 3,2,ld0@got@tlsgd
22131 bl .__tls_get_addr
22133 addi 3,2,ld1@toc
22134 bl .__tls_get_addr
22136 addi 3,2,x1@got@tlsld
22137 bl .__tls_get_addr
22139 addi 9,3,x1@dtprel
22140 bl .__tls_get_addr
22142 addis 9,3,x2@dtprel@ha
22143 addi 9,9,x2@dtprel@l
22144 bl .__tls_get_addr
22146 ld 9,x3@got@dtprel(2)
22147 add 9,9,3
22148 bl .__tls_get_addr
22149 nop'
22150 tls_first_major=2
22151 tls_first_minor=14
22152 tls_as_opt="-a64 --fatal-warnings"
22154 s390-*-*)
22155 conftest_s='
22156 .section ".tdata","awT",@progbits
22157 foo: .long 25
22158 .text
22159 .long foo@TLSGD
22160 .long foo@TLSLDM
22161 .long foo@DTPOFF
22162 .long foo@NTPOFF
22163 .long foo@GOTNTPOFF
22164 .long foo@INDNTPOFF
22165 l %r1,foo@GOTNTPOFF(%r12)
22166 l %r1,0(%r1):tls_load:foo
22167 bas %r14,0(%r1,%r13):tls_gdcall:foo
22168 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22169 tls_first_major=2
22170 tls_first_minor=14
22171 tls_as_opt="-m31 --fatal-warnings"
22173 s390x-*-*)
22174 conftest_s='
22175 .section ".tdata","awT",@progbits
22176 foo: .long 25
22177 .text
22178 .quad foo@TLSGD
22179 .quad foo@TLSLDM
22180 .quad foo@DTPOFF
22181 .quad foo@NTPOFF
22182 .quad foo@GOTNTPOFF
22183 lg %r1,foo@GOTNTPOFF(%r12)
22184 larl %r1,foo@INDNTPOFF
22185 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22186 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22187 tls_first_major=2
22188 tls_first_minor=14
22189 tls_as_opt="-m64 -Aesame --fatal-warnings"
22191 sh-*-* | sh[34]-*-*)
22192 conftest_s='
22193 .section ".tdata","awT",@progbits
22194 foo: .long 25
22195 .text
22196 .long foo@TLSGD
22197 .long foo@TLSLDM
22198 .long foo@DTPOFF
22199 .long foo@GOTTPOFF
22200 .long foo@TPOFF'
22201 tls_first_major=2
22202 tls_first_minor=13
22203 tls_as_opt=--fatal-warnings
22205 sparc*-*-*)
22206 case "$target" in
22207 sparc*-sun-solaris2.[56789]*)
22208 # TLS was introduced in the Solaris 9 4/04 release but
22209 # we do not enable it by default on Solaris 9 either.
22210 if test "x$enable_tls" = xyes ; then
22211 on_solaris=yes
22212 else
22213 enable_tls=no;
22216 sparc*-sun-solaris2.*)
22217 on_solaris=yes
22220 on_solaris=no
22222 esac
22223 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22224 conftest_s='
22225 .section ".tdata",#alloc,#write,#tls
22226 foo: .long 25
22227 .text
22228 sethi %tgd_hi22(foo), %o0
22229 add %o0, %tgd_lo10(foo), %o1
22230 add %l7, %o1, %o0, %tgd_add(foo)
22231 call __tls_get_addr, %tgd_call(foo)
22232 sethi %tldm_hi22(foo), %l1
22233 add %l1, %tldm_lo10(foo), %l2
22234 add %l7, %l2, %o0, %tldm_add(foo)
22235 call __tls_get_addr, %tldm_call(foo)
22236 sethi %tldo_hix22(foo), %l3
22237 xor %l3, %tldo_lox10(foo), %l4
22238 add %o0, %l4, %l5, %tldo_add(foo)
22239 sethi %tie_hi22(foo), %o3
22240 add %o3, %tie_lo10(foo), %o3
22241 ld [%l7 + %o3], %o2, %tie_ld(foo)
22242 add %g7, %o2, %o4, %tie_add(foo)
22243 sethi %tle_hix22(foo), %l1
22244 xor %l1, %tle_lox10(foo), %o5
22245 ld [%g7 + %o5], %o1'
22246 tls_first_major=0
22247 tls_first_minor=0
22248 else
22249 conftest_s='
22250 .section ".tdata","awT",@progbits
22251 foo: .long 25
22252 .text
22253 sethi %tgd_hi22(foo), %o0
22254 add %o0, %tgd_lo10(foo), %o1
22255 add %l7, %o1, %o0, %tgd_add(foo)
22256 call __tls_get_addr, %tgd_call(foo)
22257 sethi %tldm_hi22(foo), %l1
22258 add %l1, %tldm_lo10(foo), %l2
22259 add %l7, %l2, %o0, %tldm_add(foo)
22260 call __tls_get_addr, %tldm_call(foo)
22261 sethi %tldo_hix22(foo), %l3
22262 xor %l3, %tldo_lox10(foo), %l4
22263 add %o0, %l4, %l5, %tldo_add(foo)
22264 sethi %tie_hi22(foo), %o3
22265 add %o3, %tie_lo10(foo), %o3
22266 ld [%l7 + %o3], %o2, %tie_ld(foo)
22267 add %g7, %o2, %o4, %tie_add(foo)
22268 sethi %tle_hix22(foo), %l1
22269 xor %l1, %tle_lox10(foo), %o5
22270 ld [%g7 + %o5], %o1'
22271 tls_first_major=2
22272 tls_first_minor=14
22273 tls_as_opt="-32 --fatal-warnings"
22276 xtensa*-*-*)
22277 conftest_s='
22278 .section ".tdata","awT",@progbits
22279 foo: .long 25
22280 .text
22281 movi a8, foo@TLSFUNC
22282 movi a10, foo@TLSARG
22283 callx8.tls a8, foo@TLSCALL'
22284 tls_first_major=2
22285 tls_first_minor=19
22287 esac
22288 set_have_as_tls=no
22289 if test "x$enable_tls" = xno ; then
22290 : # TLS explicitly disabled.
22291 elif test "x$enable_tls" = xyes ; then
22292 set_have_as_tls=yes # TLS explicitly enabled.
22293 elif test -z "$tls_first_major"; then
22294 : # If we don't have a check, assume no support.
22295 else
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22297 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22298 if test "${gcc_cv_as_tls+set}" = set; then :
22299 $as_echo_n "(cached) " >&6
22300 else
22301 gcc_cv_as_tls=no
22302 if test $in_tree_gas = yes; then
22303 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22304 then gcc_cv_as_tls=yes
22306 elif test x$gcc_cv_as != x; then
22307 echo "$conftest_s" > conftest.s
22308 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22310 (eval $ac_try) 2>&5
22311 ac_status=$?
22312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22313 test $ac_status = 0; }; }
22314 then
22315 gcc_cv_as_tls=yes
22316 else
22317 echo "configure: failed program was" >&5
22318 cat conftest.s >&5
22320 rm -f conftest.o conftest.s
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22324 $as_echo "$gcc_cv_as_tls" >&6; }
22325 if test $gcc_cv_as_tls = yes; then
22326 set_have_as_tls=yes
22329 if test $set_have_as_tls = yes ; then
22331 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22335 # Target-specific assembler checks.
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22338 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22339 gcc_cv_ld_static_dynamic=no
22340 if test $in_tree_ld = yes ; then
22341 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
22342 gcc_cv_ld_static_dynamic=yes
22344 elif test x$gcc_cv_ld != x; then
22345 # Check if linker supports -Bstatic/-Bdynamic option
22346 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22347 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22348 gcc_cv_ld_static_dynamic=yes
22351 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22353 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22357 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22359 if test x"$demangler_in_ld" = xyes; then
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22361 $as_echo_n "checking linker --demangle support... " >&6; }
22362 gcc_cv_ld_demangle=no
22363 if test $in_tree_ld = yes; then
22364 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 \
22365 gcc_cv_ld_demangle=yes
22367 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22368 # Check if the GNU linker supports --demangle option
22369 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22370 gcc_cv_ld_demangle=yes
22373 if test x"$gcc_cv_ld_demangle" = xyes; then
22375 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22379 $as_echo "$gcc_cv_ld_demangle" >&6; }
22382 case "$target" in
22383 # All TARGET_ABI_OSF targets.
22384 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22386 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22387 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22388 $as_echo_n "(cached) " >&6
22389 else
22390 gcc_cv_as_alpha_explicit_relocs=no
22391 if test $in_tree_gas = yes; then
22392 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22393 then gcc_cv_as_alpha_explicit_relocs=yes
22395 elif test x$gcc_cv_as != x; then
22396 echo ' .set nomacro
22397 .text
22398 extbl $3, $2, $3 !lituse_bytoff!1
22399 ldq $2, a($29) !literal!1
22400 ldq $4, b($29) !literal!2
22401 ldq_u $3, 0($2) !lituse_base!1
22402 ldq $27, f($29) !literal!5
22403 jsr $26, ($27), f !lituse_jsr!5
22404 ldah $29, 0($26) !gpdisp!3
22405 lda $0, c($29) !gprel
22406 ldah $1, d($29) !gprelhigh
22407 lda $1, d($1) !gprellow
22408 lda $29, 0($29) !gpdisp!3' > conftest.s
22409 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22411 (eval $ac_try) 2>&5
22412 ac_status=$?
22413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22414 test $ac_status = 0; }; }
22415 then
22416 gcc_cv_as_alpha_explicit_relocs=yes
22417 else
22418 echo "configure: failed program was" >&5
22419 cat conftest.s >&5
22421 rm -f conftest.o conftest.s
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22425 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22426 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22428 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22432 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22433 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22434 $as_echo_n "(cached) " >&6
22435 else
22436 gcc_cv_as_alpha_jsrdirect_relocs=no
22437 if test $in_tree_gas = yes; then
22438 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22439 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22441 elif test x$gcc_cv_as != x; then
22442 echo ' .set nomacro
22443 .text
22444 ldq $27, a($29) !literal!1
22445 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22446 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22448 (eval $ac_try) 2>&5
22449 ac_status=$?
22450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22451 test $ac_status = 0; }; }
22452 then
22453 gcc_cv_as_alpha_jsrdirect_relocs=yes
22454 else
22455 echo "configure: failed program was" >&5
22456 cat conftest.s >&5
22458 rm -f conftest.o conftest.s
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22462 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22463 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22465 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22470 cris-*-*)
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22472 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22473 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 gcc_cv_as_cris_no_mul_bug=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22479 then gcc_cv_as_cris_no_mul_bug=yes
22481 elif test x$gcc_cv_as != x; then
22482 echo '.text' > conftest.s
22483 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22485 (eval $ac_try) 2>&5
22486 ac_status=$?
22487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22488 test $ac_status = 0; }; }
22489 then
22490 gcc_cv_as_cris_no_mul_bug=yes
22491 else
22492 echo "configure: failed program was" >&5
22493 cat conftest.s >&5
22495 rm -f conftest.o conftest.s
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22499 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22500 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22502 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22507 sparc*-*-*)
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22509 $as_echo_n "checking assembler for .register... " >&6; }
22510 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22512 else
22513 gcc_cv_as_sparc_register_op=no
22514 if test x$gcc_cv_as != x; then
22515 echo '.register %g2, #scratch' > conftest.s
22516 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22518 (eval $ac_try) 2>&5
22519 ac_status=$?
22520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22521 test $ac_status = 0; }; }
22522 then
22523 gcc_cv_as_sparc_register_op=yes
22524 else
22525 echo "configure: failed program was" >&5
22526 cat conftest.s >&5
22528 rm -f conftest.o conftest.s
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22532 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22533 if test $gcc_cv_as_sparc_register_op = yes; then
22535 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22540 $as_echo_n "checking assembler for -relax option... " >&6; }
22541 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22542 $as_echo_n "(cached) " >&6
22543 else
22544 gcc_cv_as_sparc_relax=no
22545 if test x$gcc_cv_as != x; then
22546 echo '.text' > conftest.s
22547 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22549 (eval $ac_try) 2>&5
22550 ac_status=$?
22551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22552 test $ac_status = 0; }; }
22553 then
22554 gcc_cv_as_sparc_relax=yes
22555 else
22556 echo "configure: failed program was" >&5
22557 cat conftest.s >&5
22559 rm -f conftest.o conftest.s
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22563 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22564 if test $gcc_cv_as_sparc_relax = yes; then
22566 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22571 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22572 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22573 $as_echo_n "(cached) " >&6
22574 else
22575 gcc_cv_as_sparc_ua_pcrel=no
22576 if test x$gcc_cv_as != x; then
22577 echo '.text
22578 foo:
22580 .data
22581 .align 4
22582 .byte 0
22583 .uaword %r_disp32(foo)' > conftest.s
22584 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22586 (eval $ac_try) 2>&5
22587 ac_status=$?
22588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22589 test $ac_status = 0; }; }
22590 then
22591 if test x$gcc_cv_ld != x \
22592 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22593 gcc_cv_as_sparc_ua_pcrel=yes
22595 rm -f conftest
22596 else
22597 echo "configure: failed program was" >&5
22598 cat conftest.s >&5
22600 rm -f conftest.o conftest.s
22603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22604 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22605 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22607 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22611 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22612 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22613 $as_echo_n "(cached) " >&6
22614 else
22615 gcc_cv_as_sparc_ua_pcrel_hidden=no
22616 if test x$gcc_cv_as != x; then
22617 echo '.data
22618 .align 4
22619 .byte 0x31
22620 .uaword %r_disp32(foo)
22621 .byte 0x32, 0x33, 0x34
22622 .global foo
22623 .hidden foo
22624 foo:
22625 .skip 4' > conftest.s
22626 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22631 test $ac_status = 0; }; }
22632 then
22633 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22634 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22635 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22636 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22637 if $gcc_cv_objdump -R conftest 2> /dev/null \
22638 | grep 'DISP32' > /dev/null 2>&1; then
22640 else
22641 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22644 rm -f conftest
22645 else
22646 echo "configure: failed program was" >&5
22647 cat conftest.s >&5
22649 rm -f conftest.o conftest.s
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22653 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22654 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22656 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22660 fi # unaligned pcrel relocs
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22663 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22664 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22665 $as_echo_n "(cached) " >&6
22666 else
22667 gcc_cv_as_sparc_offsetable_lo10=no
22668 if test x$gcc_cv_as != x; then
22669 echo '.text
22670 or %g1, %lo(ab) + 12, %g1
22671 or %g1, %lo(ab + 12), %g1' > conftest.s
22672 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22674 (eval $ac_try) 2>&5
22675 ac_status=$?
22676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22677 test $ac_status = 0; }; }
22678 then
22679 if test x$gcc_cv_objdump != x \
22680 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22681 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22682 gcc_cv_as_sparc_offsetable_lo10=yes
22684 else
22685 echo "configure: failed program was" >&5
22686 cat conftest.s >&5
22688 rm -f conftest.o conftest.s
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22692 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22693 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22695 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22700 i[34567]86-*-* | x86_64-*-*)
22701 case $target_os in
22702 cygwin* | pe | mingw32*)
22703 # Recent binutils allows the three-operand form of ".comm" on PE. This
22704 # definition is used unconditionally to initialise the default state of
22705 # the target option variable that governs usage of the feature.
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22707 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22708 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22709 $as_echo_n "(cached) " >&6
22710 else
22711 gcc_cv_as_comm_has_align=no
22712 if test $in_tree_gas = yes; then
22713 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22714 then gcc_cv_as_comm_has_align=yes
22716 elif test x$gcc_cv_as != x; then
22717 echo '.comm foo,1,32' > conftest.s
22718 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22720 (eval $ac_try) 2>&5
22721 ac_status=$?
22722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22723 test $ac_status = 0; }; }
22724 then
22725 gcc_cv_as_comm_has_align=yes
22726 else
22727 echo "configure: failed program was" >&5
22728 cat conftest.s >&5
22730 rm -f conftest.o conftest.s
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22734 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22737 cat >>confdefs.h <<_ACEOF
22738 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22739 _ACEOF
22741 # Used for DWARF 2 in PE
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22743 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22744 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22745 $as_echo_n "(cached) " >&6
22746 else
22747 gcc_cv_as_ix86_pe_secrel32=no
22748 if test $in_tree_gas = yes; then
22749 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22750 then gcc_cv_as_ix86_pe_secrel32=yes
22752 elif test x$gcc_cv_as != x; then
22753 echo '.text
22754 foo: nop
22755 .data
22756 .secrel32 foo' > conftest.s
22757 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22760 ac_status=$?
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; }
22763 then
22764 if test x$gcc_cv_ld != x \
22765 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22766 gcc_cv_as_ix86_pe_secrel32=yes
22768 rm -f conftest
22769 else
22770 echo "configure: failed program was" >&5
22771 cat conftest.s >&5
22773 rm -f conftest.o conftest.s
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22777 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22778 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22780 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22784 esac
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22787 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22788 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22789 $as_echo_n "(cached) " >&6
22790 else
22791 gcc_cv_as_ix86_filds=no
22792 if test x$gcc_cv_as != x; then
22793 echo 'filds mem; fists mem' > conftest.s
22794 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22799 test $ac_status = 0; }; }
22800 then
22801 gcc_cv_as_ix86_filds=yes
22802 else
22803 echo "configure: failed program was" >&5
22804 cat conftest.s >&5
22806 rm -f conftest.o conftest.s
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22810 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22811 if test $gcc_cv_as_ix86_filds = yes; then
22813 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22818 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22819 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22820 $as_echo_n "(cached) " >&6
22821 else
22822 gcc_cv_as_ix86_fildq=no
22823 if test x$gcc_cv_as != x; then
22824 echo 'fildq mem; fistpq mem' > conftest.s
22825 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22827 (eval $ac_try) 2>&5
22828 ac_status=$?
22829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22830 test $ac_status = 0; }; }
22831 then
22832 gcc_cv_as_ix86_fildq=yes
22833 else
22834 echo "configure: failed program was" >&5
22835 cat conftest.s >&5
22837 rm -f conftest.o conftest.s
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22841 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22842 if test $gcc_cv_as_ix86_fildq = yes; then
22844 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22849 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22850 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22851 $as_echo_n "(cached) " >&6
22852 else
22853 gcc_cv_as_ix86_cmov_sun_syntax=no
22854 if test x$gcc_cv_as != x; then
22855 echo 'cmovl.l %edx, %eax' > conftest.s
22856 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22858 (eval $ac_try) 2>&5
22859 ac_status=$?
22860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861 test $ac_status = 0; }; }
22862 then
22863 gcc_cv_as_ix86_cmov_sun_syntax=yes
22864 else
22865 echo "configure: failed program was" >&5
22866 cat conftest.s >&5
22868 rm -f conftest.o conftest.s
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22872 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22873 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22875 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22880 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22881 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22882 $as_echo_n "(cached) " >&6
22883 else
22884 gcc_cv_as_ix86_ffreep=no
22885 if test x$gcc_cv_as != x; then
22886 echo 'ffreep %st(1)' > conftest.s
22887 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22889 (eval $ac_try) 2>&5
22890 ac_status=$?
22891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22892 test $ac_status = 0; }; }
22893 then
22894 gcc_cv_as_ix86_ffreep=yes
22895 else
22896 echo "configure: failed program was" >&5
22897 cat conftest.s >&5
22899 rm -f conftest.o conftest.s
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22903 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22904 if test $gcc_cv_as_ix86_ffreep = yes; then
22906 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22911 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22912 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22913 $as_echo_n "(cached) " >&6
22914 else
22915 gcc_cv_as_ix86_sahf=no
22916 if test x$gcc_cv_as != x; then
22917 echo 'sahf' > conftest.s
22918 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22920 (eval $ac_try) 2>&5
22921 ac_status=$?
22922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22923 test $ac_status = 0; }; }
22924 then
22925 gcc_cv_as_ix86_sahf=yes
22926 else
22927 echo "configure: failed program was" >&5
22928 cat conftest.s >&5
22930 rm -f conftest.o conftest.s
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22934 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22935 if test $gcc_cv_as_ix86_sahf = yes; then
22937 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for swap suffix" >&5
22942 $as_echo_n "checking assembler for swap suffix... " >&6; }
22943 if test "${gcc_cv_as_ix86_swap+set}" = set; then :
22944 $as_echo_n "(cached) " >&6
22945 else
22946 gcc_cv_as_ix86_swap=no
22947 if test x$gcc_cv_as != x; then
22948 echo 'movl.s %esp, %ebp' > conftest.s
22949 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22951 (eval $ac_try) 2>&5
22952 ac_status=$?
22953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22954 test $ac_status = 0; }; }
22955 then
22956 gcc_cv_as_ix86_swap=yes
22957 else
22958 echo "configure: failed program was" >&5
22959 cat conftest.s >&5
22961 rm -f conftest.o conftest.s
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_swap" >&5
22965 $as_echo "$gcc_cv_as_ix86_swap" >&6; }
22966 if test $gcc_cv_as_ix86_swap = yes; then
22968 $as_echo "#define HAVE_AS_IX86_SWAP 1" >>confdefs.h
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22973 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22974 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22975 $as_echo_n "(cached) " >&6
22976 else
22977 gcc_cv_as_ix86_diff_sect_delta=no
22978 if test x$gcc_cv_as != x; then
22979 echo '.section .rodata
22980 .L1:
22981 .long .L2-.L1
22982 .long .L3-.L1
22983 .text
22984 .L3: nop
22985 .L2: nop' > conftest.s
22986 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22991 test $ac_status = 0; }; }
22992 then
22993 gcc_cv_as_ix86_diff_sect_delta=yes
22994 else
22995 echo "configure: failed program was" >&5
22996 cat conftest.s >&5
22998 rm -f conftest.o conftest.s
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
23002 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
23003 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
23005 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
23009 # This one is used unconditionally by i386.[ch]; it is to be defined
23010 # to 1 if the feature is present, 0 otherwise.
23011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
23012 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
23013 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
23014 $as_echo_n "(cached) " >&6
23015 else
23016 gcc_cv_as_ix86_gotoff_in_data=no
23017 if test $in_tree_gas = yes; then
23018 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23019 then gcc_cv_as_ix86_gotoff_in_data=yes
23021 elif test x$gcc_cv_as != x; then
23022 echo ' .text
23023 .L0:
23025 .data
23026 .long .L0@GOTOFF' > conftest.s
23027 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23029 (eval $ac_try) 2>&5
23030 ac_status=$?
23031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23032 test $ac_status = 0; }; }
23033 then
23034 gcc_cv_as_ix86_gotoff_in_data=yes
23035 else
23036 echo "configure: failed program was" >&5
23037 cat conftest.s >&5
23039 rm -f conftest.o conftest.s
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
23043 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
23046 cat >>confdefs.h <<_ACEOF
23047 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
23048 _ACEOF
23052 ia64*-*-*)
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23054 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23055 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23056 $as_echo_n "(cached) " >&6
23057 else
23058 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23059 if test $in_tree_gas = yes; then
23060 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23061 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23063 elif test x$gcc_cv_as != x; then
23064 echo ' .text
23065 addl r15 = @ltoffx(x#), gp
23067 ld8.mov r16 = [r15], x#' > conftest.s
23068 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23070 (eval $ac_try) 2>&5
23071 ac_status=$?
23072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23073 test $ac_status = 0; }; }
23074 then
23075 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23076 else
23077 echo "configure: failed program was" >&5
23078 cat conftest.s >&5
23080 rm -f conftest.o conftest.s
23083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23084 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23085 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23087 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23093 powerpc*-*-*)
23094 case $target in
23095 *-*-aix*) conftest_s=' .machine "pwr5"
23096 .csect .text[PR]
23097 mfcr 3,128';;
23098 *-*-darwin*)
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23100 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23101 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23102 $as_echo_n "(cached) " >&6
23103 else
23104 gcc_cv_as_machine_directive=no
23105 if test x$gcc_cv_as != x; then
23106 echo ' .machine ppc7400' > conftest.s
23107 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23109 (eval $ac_try) 2>&5
23110 ac_status=$?
23111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23112 test $ac_status = 0; }; }
23113 then
23114 gcc_cv_as_machine_directive=yes
23115 else
23116 echo "configure: failed program was" >&5
23117 cat conftest.s >&5
23119 rm -f conftest.o conftest.s
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23123 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23125 if test x$gcc_cv_as_machine_directive != xyes; then
23126 echo "*** This target requires an assembler supporting \".machine\"" >&2
23127 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23128 test x$build = x$target && exit 1
23130 conftest_s=' .text
23131 mfcr r3,128';;
23132 *) conftest_s=' .machine power4
23133 .text
23134 mfcr 3,128';;
23135 esac
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23138 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23139 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23141 else
23142 gcc_cv_as_powerpc_mfcrf=no
23143 if test $in_tree_gas = yes; then
23144 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23145 then gcc_cv_as_powerpc_mfcrf=yes
23147 elif test x$gcc_cv_as != x; then
23148 echo "$conftest_s" > conftest.s
23149 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23154 test $ac_status = 0; }; }
23155 then
23156 gcc_cv_as_powerpc_mfcrf=yes
23157 else
23158 echo "configure: failed program was" >&5
23159 cat conftest.s >&5
23161 rm -f conftest.o conftest.s
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23165 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23166 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23168 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23172 case $target in
23173 *-*-aix*) conftest_s=' .machine "pwr5"
23174 .csect .text[PR]
23175 popcntb 3,3';;
23176 *) conftest_s=' .machine power5
23177 .text
23178 popcntb 3,3';;
23179 esac
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23182 $as_echo_n "checking assembler for popcntb support... " >&6; }
23183 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23184 $as_echo_n "(cached) " >&6
23185 else
23186 gcc_cv_as_powerpc_popcntb=no
23187 if test $in_tree_gas = yes; then
23188 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23189 then gcc_cv_as_powerpc_popcntb=yes
23191 elif test x$gcc_cv_as != x; then
23192 echo "$conftest_s" > conftest.s
23193 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23195 (eval $ac_try) 2>&5
23196 ac_status=$?
23197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23198 test $ac_status = 0; }; }
23199 then
23200 gcc_cv_as_powerpc_popcntb=yes
23201 else
23202 echo "configure: failed program was" >&5
23203 cat conftest.s >&5
23205 rm -f conftest.o conftest.s
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23209 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23210 if test $gcc_cv_as_powerpc_popcntb = yes; then
23212 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23216 case $target in
23217 *-*-aix*) conftest_s=' .machine "pwr5x"
23218 .csect .text[PR]
23219 frin 1,1';;
23220 *) conftest_s=' .machine power5
23221 .text
23222 frin 1,1';;
23223 esac
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23226 $as_echo_n "checking assembler for fp round support... " >&6; }
23227 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23228 $as_echo_n "(cached) " >&6
23229 else
23230 gcc_cv_as_powerpc_fprnd=no
23231 if test $in_tree_gas = yes; then
23232 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23233 then gcc_cv_as_powerpc_fprnd=yes
23235 elif test x$gcc_cv_as != x; then
23236 echo "$conftest_s" > conftest.s
23237 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23238 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23239 (eval $ac_try) 2>&5
23240 ac_status=$?
23241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23242 test $ac_status = 0; }; }
23243 then
23244 gcc_cv_as_powerpc_fprnd=yes
23245 else
23246 echo "configure: failed program was" >&5
23247 cat conftest.s >&5
23249 rm -f conftest.o conftest.s
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23253 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23254 if test $gcc_cv_as_powerpc_fprnd = yes; then
23256 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23260 case $target in
23261 *-*-aix*) conftest_s=' .machine "pwr6"
23262 .csect .text[PR]
23263 mffgpr 1,3';;
23264 *) conftest_s=' .machine power6
23265 .text
23266 mffgpr 1,3';;
23267 esac
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23270 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23271 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23272 $as_echo_n "(cached) " >&6
23273 else
23274 gcc_cv_as_powerpc_mfpgpr=no
23275 if test $in_tree_gas = yes; then
23276 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23277 then gcc_cv_as_powerpc_mfpgpr=yes
23279 elif test x$gcc_cv_as != x; then
23280 echo "$conftest_s" > conftest.s
23281 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23283 (eval $ac_try) 2>&5
23284 ac_status=$?
23285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23286 test $ac_status = 0; }; }
23287 then
23288 gcc_cv_as_powerpc_mfpgpr=yes
23289 else
23290 echo "configure: failed program was" >&5
23291 cat conftest.s >&5
23293 rm -f conftest.o conftest.s
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23297 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23298 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23300 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23304 case $target in
23305 *-*-aix*) conftest_s=' .csect .text[PR]
23306 LCF..0:
23307 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23308 *-*-darwin*)
23309 conftest_s=' .text
23310 LCF0:
23311 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23312 *) conftest_s=' .text
23313 .LCF0:
23314 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23315 esac
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23318 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23319 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23320 $as_echo_n "(cached) " >&6
23321 else
23322 gcc_cv_as_powerpc_rel16=no
23323 if test $in_tree_gas = yes; then
23324 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23325 then gcc_cv_as_powerpc_rel16=yes
23327 elif test x$gcc_cv_as != x; then
23328 echo "$conftest_s" > conftest.s
23329 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23331 (eval $ac_try) 2>&5
23332 ac_status=$?
23333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23334 test $ac_status = 0; }; }
23335 then
23336 gcc_cv_as_powerpc_rel16=yes
23337 else
23338 echo "configure: failed program was" >&5
23339 cat conftest.s >&5
23341 rm -f conftest.o conftest.s
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23345 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23346 if test $gcc_cv_as_powerpc_rel16 = yes; then
23348 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23352 case $target in
23353 *-*-aix*) conftest_s=' .machine "pwr6"
23354 .csect .text[PR]
23355 cmpb 3,4,5';;
23356 *) conftest_s=' .machine power6
23357 .text
23358 cmpb 3,4,5';;
23359 esac
23361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23362 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23363 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23364 $as_echo_n "(cached) " >&6
23365 else
23366 gcc_cv_as_powerpc_cmpb=no
23367 if test $in_tree_gas = yes; then
23368 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23369 then gcc_cv_as_powerpc_cmpb=yes
23371 elif test x$gcc_cv_as != x; then
23372 echo "$conftest_s" > conftest.s
23373 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23375 (eval $ac_try) 2>&5
23376 ac_status=$?
23377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23378 test $ac_status = 0; }; }
23379 then
23380 gcc_cv_as_powerpc_cmpb=yes
23381 else
23382 echo "configure: failed program was" >&5
23383 cat conftest.s >&5
23385 rm -f conftest.o conftest.s
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23389 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23390 if test $gcc_cv_as_powerpc_cmpb = yes; then
23392 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23396 case $target in
23397 *-*-aix*) conftest_s=' .machine "pwr6"
23398 .csect .text[PR]
23399 dadd 1,2,3';;
23400 *) conftest_s=' .machine power6
23401 .text
23402 dadd 1,2,3';;
23403 esac
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23406 $as_echo_n "checking assembler for decimal float support... " >&6; }
23407 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23408 $as_echo_n "(cached) " >&6
23409 else
23410 gcc_cv_as_powerpc_dfp=no
23411 if test $in_tree_gas = yes; then
23412 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23413 then gcc_cv_as_powerpc_dfp=yes
23415 elif test x$gcc_cv_as != x; then
23416 echo "$conftest_s" > conftest.s
23417 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23419 (eval $ac_try) 2>&5
23420 ac_status=$?
23421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23422 test $ac_status = 0; }; }
23423 then
23424 gcc_cv_as_powerpc_dfp=yes
23425 else
23426 echo "configure: failed program was" >&5
23427 cat conftest.s >&5
23429 rm -f conftest.o conftest.s
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23433 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23434 if test $gcc_cv_as_powerpc_dfp = yes; then
23436 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23440 case $target in
23441 *-*-aix*) conftest_s=' .machine "pwr7"
23442 .csect .text[PR]
23443 lxvd2x 1,2,3';;
23444 *) conftest_s=' .machine power7
23445 .text
23446 lxvd2x 1,2,3';;
23447 esac
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23450 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23451 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23452 $as_echo_n "(cached) " >&6
23453 else
23454 gcc_cv_as_powerpc_vsx=no
23455 if test $in_tree_gas = yes; then
23456 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23457 then gcc_cv_as_powerpc_vsx=yes
23459 elif test x$gcc_cv_as != x; then
23460 echo "$conftest_s" > conftest.s
23461 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23463 (eval $ac_try) 2>&5
23464 ac_status=$?
23465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23466 test $ac_status = 0; }; }
23467 then
23468 gcc_cv_as_powerpc_vsx=yes
23469 else
23470 echo "configure: failed program was" >&5
23471 cat conftest.s >&5
23473 rm -f conftest.o conftest.s
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23477 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23478 if test $gcc_cv_as_powerpc_vsx = yes; then
23480 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23484 case $target in
23485 *-*-aix*) conftest_s=' .machine "pwr7"
23486 .csect .text[PR]
23487 popcntd 3,3';;
23488 *) conftest_s=' .machine power7
23489 .text
23490 popcntd 3,3';;
23491 esac
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23494 $as_echo_n "checking assembler for popcntd support... " >&6; }
23495 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23496 $as_echo_n "(cached) " >&6
23497 else
23498 gcc_cv_as_powerpc_popcntd=no
23499 if test $in_tree_gas = yes; then
23500 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23501 then gcc_cv_as_powerpc_popcntd=yes
23503 elif test x$gcc_cv_as != x; then
23504 echo "$conftest_s" > conftest.s
23505 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23507 (eval $ac_try) 2>&5
23508 ac_status=$?
23509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23510 test $ac_status = 0; }; }
23511 then
23512 gcc_cv_as_powerpc_popcntd=yes
23513 else
23514 echo "configure: failed program was" >&5
23515 cat conftest.s >&5
23517 rm -f conftest.o conftest.s
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23521 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23522 if test $gcc_cv_as_powerpc_popcntd = yes; then
23524 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23528 case $target in
23529 *-*-aix*) conftest_s=' .csect .text[PR]
23530 lwsync';;
23531 *) conftest_s=' .text
23532 lwsync';;
23533 esac
23535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23536 $as_echo_n "checking assembler for lwsync support... " >&6; }
23537 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23538 $as_echo_n "(cached) " >&6
23539 else
23540 gcc_cv_as_powerpc_lwsync=no
23541 if test $in_tree_gas = yes; then
23542 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23543 then gcc_cv_as_powerpc_lwsync=yes
23545 elif test x$gcc_cv_as != x; then
23546 echo "$conftest_s" > conftest.s
23547 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23549 (eval $ac_try) 2>&5
23550 ac_status=$?
23551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23552 test $ac_status = 0; }; }
23553 then
23554 gcc_cv_as_powerpc_lwsync=yes
23555 else
23556 echo "configure: failed program was" >&5
23557 cat conftest.s >&5
23559 rm -f conftest.o conftest.s
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23563 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23564 if test $gcc_cv_as_powerpc_lwsync = yes; then
23566 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23570 case $target in
23571 *-*-aix*) conftest_s=' .machine "476"
23572 .csect .text[PR]
23573 dci 0';;
23574 *) conftest_s=' .machine "476"
23575 .text
23576 dci 0';;
23577 esac
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for data cache invalidate support" >&5
23580 $as_echo_n "checking assembler for data cache invalidate support... " >&6; }
23581 if test "${gcc_cv_as_powerpc_dci+set}" = set; then :
23582 $as_echo_n "(cached) " >&6
23583 else
23584 gcc_cv_as_powerpc_dci=no
23585 if test $in_tree_gas = yes; then
23586 if test $gcc_cv_gas_vers -ge `expr \( \( 9 \* 1000 \) + 99 \) \* 1000 + 0`
23587 then gcc_cv_as_powerpc_dci=yes
23589 elif test x$gcc_cv_as != x; then
23590 echo "$conftest_s" > conftest.s
23591 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23593 (eval $ac_try) 2>&5
23594 ac_status=$?
23595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23596 test $ac_status = 0; }; }
23597 then
23598 gcc_cv_as_powerpc_dci=yes
23599 else
23600 echo "configure: failed program was" >&5
23601 cat conftest.s >&5
23603 rm -f conftest.o conftest.s
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dci" >&5
23607 $as_echo "$gcc_cv_as_powerpc_dci" >&6; }
23608 if test $gcc_cv_as_powerpc_dci = yes; then
23610 $as_echo "#define HAVE_AS_DCI 1" >>confdefs.h
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23615 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23616 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23617 $as_echo_n "(cached) " >&6
23618 else
23619 gcc_cv_as_powerpc_gnu_attribute=no
23620 if test $in_tree_gas = yes; then
23621 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23622 then gcc_cv_as_powerpc_gnu_attribute=yes
23624 elif test x$gcc_cv_as != x; then
23625 echo '.gnu_attribute 4,1' > conftest.s
23626 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23628 (eval $ac_try) 2>&5
23629 ac_status=$?
23630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23631 test $ac_status = 0; }; }
23632 then
23633 gcc_cv_as_powerpc_gnu_attribute=yes
23634 else
23635 echo "configure: failed program was" >&5
23636 cat conftest.s >&5
23638 rm -f conftest.o conftest.s
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23642 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23643 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23645 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23650 $as_echo_n "checking assembler for tls marker support... " >&6; }
23651 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23652 $as_echo_n "(cached) " >&6
23653 else
23654 gcc_cv_as_powerpc_tls_markers=no
23655 if test $in_tree_gas = yes; then
23656 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23657 then gcc_cv_as_powerpc_tls_markers=yes
23659 elif test x$gcc_cv_as != x; then
23660 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23661 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23663 (eval $ac_try) 2>&5
23664 ac_status=$?
23665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23666 test $ac_status = 0; }; }
23667 then
23668 gcc_cv_as_powerpc_tls_markers=yes
23669 else
23670 echo "configure: failed program was" >&5
23671 cat conftest.s >&5
23673 rm -f conftest.o conftest.s
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23677 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23678 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23680 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23685 mips*-*-*)
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23687 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23688 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23689 $as_echo_n "(cached) " >&6
23690 else
23691 gcc_cv_as_mips_explicit_relocs=no
23692 if test $in_tree_gas = yes; then
23693 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23694 then gcc_cv_as_mips_explicit_relocs=yes
23696 elif test x$gcc_cv_as != x; then
23697 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23698 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23700 (eval $ac_try) 2>&5
23701 ac_status=$?
23702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23703 test $ac_status = 0; }; }
23704 then
23705 gcc_cv_as_mips_explicit_relocs=yes
23706 else
23707 echo "configure: failed program was" >&5
23708 cat conftest.s >&5
23710 rm -f conftest.o conftest.s
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23714 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23715 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23716 if test x$target_cpu_default = x
23717 then target_cpu_default=MASK_EXPLICIT_RELOCS
23718 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23722 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23723 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23724 $as_echo_n "(cached) " >&6
23725 else
23726 gcc_cv_as_mips_no_shared=no
23727 if test $in_tree_gas = yes; then
23728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23729 then gcc_cv_as_mips_no_shared=yes
23731 elif test x$gcc_cv_as != x; then
23732 echo 'nop' > conftest.s
23733 if { ac_try='$gcc_cv_as -mno-shared -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_mips_no_shared=yes
23741 else
23742 echo "configure: failed program was" >&5
23743 cat conftest.s >&5
23745 rm -f conftest.o conftest.s
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23749 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23750 if test $gcc_cv_as_mips_no_shared = yes; then
23752 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23757 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23758 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23759 $as_echo_n "(cached) " >&6
23760 else
23761 gcc_cv_as_mips_gnu_attribute=no
23762 if test $in_tree_gas = yes; then
23763 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23764 then gcc_cv_as_mips_gnu_attribute=yes
23766 elif test x$gcc_cv_as != x; then
23767 echo '.gnu_attribute 4,1' > conftest.s
23768 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770 (eval $ac_try) 2>&5
23771 ac_status=$?
23772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773 test $ac_status = 0; }; }
23774 then
23775 gcc_cv_as_mips_gnu_attribute=yes
23776 else
23777 echo "configure: failed program was" >&5
23778 cat conftest.s >&5
23780 rm -f conftest.o conftest.s
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23784 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23785 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23787 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23792 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23793 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23794 $as_echo_n "(cached) " >&6
23795 else
23796 gcc_cv_as_mips_dtprelword=no
23797 if test $in_tree_gas = yes; then
23798 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23799 then gcc_cv_as_mips_dtprelword=yes
23801 elif test x$gcc_cv_as != x; then
23802 echo '.section .tdata,"awT",@progbits
23804 .word 2
23805 .text
23806 .dtprelword x+0x8000' > conftest.s
23807 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23812 test $ac_status = 0; }; }
23813 then
23814 gcc_cv_as_mips_dtprelword=yes
23815 else
23816 echo "configure: failed program was" >&5
23817 cat conftest.s >&5
23819 rm -f conftest.o conftest.s
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23823 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23824 if test $gcc_cv_as_mips_dtprelword = yes; then
23826 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23831 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23832 gcc_cv_as_ld_jalr_reloc=no
23833 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23834 if test $in_tree_ld = yes ; then
23835 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 \
23836 && test $in_tree_ld_is_elf = yes; then
23837 gcc_cv_as_ld_jalr_reloc=yes
23839 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23840 echo ' .ent x' > conftest.s
23841 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
23842 echo ' ld $25,%call16(y)($28)' >> conftest.s
23843 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
23844 echo '1: jalr $25' >> conftest.s
23845 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
23846 echo '1: jalr $25' >> conftest.s
23847 echo ' .end x' >> conftest.s
23848 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
23849 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
23850 if $gcc_cv_objdump -d conftest.so | grep -q jalr \
23851 && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
23852 gcc_cv_as_ld_jalr_reloc=yes
23855 rm -f conftest.*
23858 if test $gcc_cv_as_ld_jalr_reloc = yes; then
23859 if test x$target_cpu_default = x; then
23860 target_cpu_default=MASK_RELAX_PIC_CALLS
23861 else
23862 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
23866 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
23869 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
23870 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
23871 $as_echo_n "(cached) " >&6
23872 else
23873 gcc_cv_ld_mips_personality_relaxation=no
23874 if test $in_tree_ld = yes ; then
23875 if test "$gcc_cv_gld_major_version" -eq 2 \
23876 -a "$gcc_cv_gld_minor_version" -ge 21 \
23877 -o "$gcc_cv_gld_major_version" -gt 2; then
23878 gcc_cv_ld_mips_personality_relaxation=yes
23880 elif test x$gcc_cv_as != x \
23881 -a x$gcc_cv_ld != x \
23882 -a x$gcc_cv_readelf != x ; then
23883 cat > conftest.s <<EOF
23884 .cfi_startproc
23885 .cfi_personality 0x80,indirect_ptr
23886 .ent test
23887 test:
23889 .end test
23890 .cfi_endproc
23892 .section .data,"aw",@progbits
23893 indirect_ptr:
23894 .dc.a personality
23896 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
23897 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
23898 if $gcc_cv_readelf -d conftest 2>&1 \
23899 | grep TEXTREL > /dev/null 2>&1; then
23901 elif $gcc_cv_readelf --relocs conftest 2>&1 \
23902 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
23904 else
23905 gcc_cv_ld_mips_personality_relaxation=yes
23909 rm -f conftest.s conftest.o conftest
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
23912 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
23913 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
23915 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
23919 esac
23921 # Mips and HP-UX need the GNU assembler.
23922 # Linux on IA64 might be able to use the Intel assembler.
23924 case "$target" in
23925 mips*-*-* | *-*-hpux* )
23926 if test x$gas_flag = xyes \
23927 || test x"$host" != x"$build" \
23928 || test ! -x "$gcc_cv_as" \
23929 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23931 else
23932 echo "*** This configuration requires the GNU assembler" >&2
23933 exit 1
23936 esac
23938 # ??? Not all targets support dwarf2 debug_line, even within a version
23939 # of gas. Moreover, we need to emit a valid instruction to trigger any
23940 # info to the output file. So, as supported targets are added to gas 2.11,
23941 # add some instruction here to (also) show we expect this might work.
23942 # ??? Once 2.11 is released, probably need to add first known working
23943 # version to the per-target configury.
23944 case "$target" in
23945 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23946 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23947 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23948 | spu-*-* | fido*-*-* | m32c-*-*)
23949 insn="nop"
23951 ia64*-*-* | s390*-*-*)
23952 insn="nop 0"
23954 mmix-*-*)
23955 insn="swym 0"
23957 esac
23958 if test x"$insn" != x; then
23959 conftest_s="\
23960 .file 1 \"conftest.s\"
23961 .loc 1 3 0
23962 $insn"
23963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23964 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23965 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23966 $as_echo_n "(cached) " >&6
23967 else
23968 gcc_cv_as_dwarf2_debug_line=no
23969 if test $in_tree_gas = yes; then
23970 if test $in_tree_gas_is_elf = yes \
23971 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23972 then gcc_cv_as_dwarf2_debug_line=yes
23974 elif test x$gcc_cv_as != x; then
23975 echo "$conftest_s" > conftest.s
23976 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23978 (eval $ac_try) 2>&5
23979 ac_status=$?
23980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23981 test $ac_status = 0; }; }
23982 then
23983 if test x$gcc_cv_objdump != x \
23984 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23985 | grep debug_line > /dev/null 2>&1; then
23986 gcc_cv_as_dwarf2_debug_line=yes
23988 else
23989 echo "configure: failed program was" >&5
23990 cat conftest.s >&5
23992 rm -f conftest.o conftest.s
23995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23996 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23999 # The .debug_line file table must be in the exact order that
24000 # we specified the files, since these indices are also used
24001 # by DW_AT_decl_file. Approximate this test by testing if
24002 # the assembler bitches if the same index is assigned twice.
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
24004 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
24005 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
24006 $as_echo_n "(cached) " >&6
24007 else
24008 gcc_cv_as_dwarf2_file_buggy=no
24009 if test x$gcc_cv_as != x; then
24010 echo ' .file 1 "foo.s"
24011 .file 1 "bar.s"' > conftest.s
24012 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24017 test $ac_status = 0; }; }
24018 then
24019 gcc_cv_as_dwarf2_file_buggy=yes
24020 else
24021 echo "configure: failed program was" >&5
24022 cat conftest.s >&5
24024 rm -f conftest.o conftest.s
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
24028 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
24031 if test $gcc_cv_as_dwarf2_debug_line = yes \
24032 && test $gcc_cv_as_dwarf2_file_buggy = no; then
24034 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
24039 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
24040 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
24041 $as_echo_n "(cached) " >&6
24042 else
24043 gcc_cv_as_gdwarf2_flag=no
24044 if test $in_tree_gas = yes; then
24045 if test $in_tree_gas_is_elf = yes \
24046 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24047 then gcc_cv_as_gdwarf2_flag=yes
24049 elif test x$gcc_cv_as != x; then
24050 echo "$insn" > conftest.s
24051 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
24052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24053 (eval $ac_try) 2>&5
24054 ac_status=$?
24055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24056 test $ac_status = 0; }; }
24057 then
24058 gcc_cv_as_gdwarf2_flag=yes
24059 else
24060 echo "configure: failed program was" >&5
24061 cat conftest.s >&5
24063 rm -f conftest.o conftest.s
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
24067 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
24068 if test $gcc_cv_as_gdwarf2_flag = yes; then
24070 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
24075 $as_echo_n "checking assembler for --gstabs option... " >&6; }
24076 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24078 else
24079 gcc_cv_as_gstabs_flag=no
24080 if test $in_tree_gas = yes; then
24081 if test $in_tree_gas_is_elf = yes \
24082 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
24083 then gcc_cv_as_gstabs_flag=yes
24085 elif test x$gcc_cv_as != x; then
24086 echo "$insn" > conftest.s
24087 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; }
24093 then
24094 # The native Solaris 9/Intel assembler doesn't understand --gstabs
24095 # and warns about it, but still exits successfully. So check for
24096 # this.
24097 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24099 (eval $ac_try) 2>&5
24100 ac_status=$?
24101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24102 test $ac_status = 0; }; }
24103 then :
24104 else gcc_cv_as_gstabs_flag=yes
24106 else
24107 echo "configure: failed program was" >&5
24108 cat conftest.s >&5
24110 rm -f conftest.o conftest.s
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24114 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24115 if test $gcc_cv_as_gstabs_flag = yes; then
24117 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24122 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24123 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24124 $as_echo_n "(cached) " >&6
24125 else
24126 gcc_cv_as_debug_prefix_map_flag=no
24127 if test $in_tree_gas = yes; then
24128 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24129 then gcc_cv_as_debug_prefix_map_flag=yes
24131 elif test x$gcc_cv_as != x; then
24132 echo "$insn" > conftest.s
24133 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24135 (eval $ac_try) 2>&5
24136 ac_status=$?
24137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24138 test $ac_status = 0; }; }
24139 then
24140 gcc_cv_as_debug_prefix_map_flag=yes
24141 else
24142 echo "configure: failed program was" >&5
24143 cat conftest.s >&5
24145 rm -f conftest.o conftest.s
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24149 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24150 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24152 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24158 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24159 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24160 $as_echo_n "(cached) " >&6
24161 else
24162 gcc_cv_as_lcomm_with_alignment=no
24163 if test x$gcc_cv_as != x; then
24164 echo '.lcomm bar,4,16' > conftest.s
24165 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24170 test $ac_status = 0; }; }
24171 then
24172 gcc_cv_as_lcomm_with_alignment=yes
24173 else
24174 echo "configure: failed program was" >&5
24175 cat conftest.s >&5
24177 rm -f conftest.o conftest.s
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24181 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24182 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24184 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24188 # Check whether --enable-gnu-unique-object was given.
24189 if test "${enable_gnu_unique_object+set}" = set; then :
24190 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24191 yes | no) ;;
24192 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24193 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24194 esac
24195 else
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24197 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24198 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24200 else
24201 gcc_cv_as_gnu_unique_object=no
24202 if test $in_tree_gas = yes; then
24203 if test $in_tree_gas_is_elf = yes \
24204 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24205 then gcc_cv_as_gnu_unique_object=yes
24207 elif test x$gcc_cv_as != x; then
24208 echo '.type foo, @gnu_unique_object' > conftest.s
24209 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24211 (eval $ac_try) 2>&5
24212 ac_status=$?
24213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24214 test $ac_status = 0; }; }
24215 then
24216 gcc_cv_as_gnu_unique_object=yes
24217 else
24218 echo "configure: failed program was" >&5
24219 cat conftest.s >&5
24221 rm -f conftest.o conftest.s
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24225 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24226 if test $gcc_cv_as_gnu_unique_object = yes; then
24227 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24228 if test x$host = x$build -a x$host = x$target &&
24229 glibcver=`ldd --version 2>/dev/null`; then
24230 glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
24231 glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
24232 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24233 if test "$glibcnum" -ge 2011 ; then
24234 enable_gnu_unique_object=yes
24240 if test x$enable_gnu_unique_object = xyes; then
24242 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24247 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24248 if test "${gcc_cv_as_line_zero+set}" = set; then :
24249 $as_echo_n "(cached) " >&6
24250 else
24251 gcc_cv_as_line_zero=no
24252 if test $in_tree_gas = yes; then
24253 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24254 then gcc_cv_as_line_zero=yes
24256 elif test "x$gcc_cv_as" != x; then
24257 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24258 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24260 (eval $ac_try) 2>&5
24261 ac_status=$?
24262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24263 test $ac_status = 0; }; } &&
24264 test "x`cat conftest.out`" = x
24265 then
24266 gcc_cv_as_line_zero=yes
24267 else
24268 echo "configure: failed program was" >&5
24269 cat conftest.s >&5
24270 echo "configure: error output was" >&5
24271 cat conftest.out >&5
24273 rm -f conftest.o conftest.s conftest.out
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24277 $as_echo "$gcc_cv_as_line_zero" >&6; }
24278 if test "x$gcc_cv_as_line_zero" = xyes; then
24280 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24285 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24286 gcc_cv_ld_eh_frame_hdr=no
24287 if test $in_tree_ld = yes ; then
24288 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 \
24289 && test $in_tree_ld_is_elf = yes; then
24290 gcc_cv_ld_eh_frame_hdr=yes
24292 elif test x$gcc_cv_ld != x; then
24293 # Check if linker supports --eh-frame-hdr option
24294 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24295 gcc_cv_ld_eh_frame_hdr=yes
24299 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24301 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24305 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24308 $as_echo_n "checking linker position independent executable support... " >&6; }
24309 gcc_cv_ld_pie=no
24310 if test $in_tree_ld = yes ; then
24311 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 \
24312 && test $in_tree_ld_is_elf = yes; then
24313 gcc_cv_ld_pie=yes
24315 elif test x$gcc_cv_ld != x; then
24316 # Check if linker supports -pie option
24317 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24318 gcc_cv_ld_pie=yes
24321 if test x"$gcc_cv_ld_pie" = xyes; then
24323 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24327 $as_echo "$gcc_cv_ld_pie" >&6; }
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24330 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24331 gcc_cv_ld_eh_gc_sections=no
24332 if test $in_tree_ld = yes ; then
24333 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 \
24334 && test $in_tree_ld_is_elf = yes; then
24335 gcc_cv_ld_eh_gc_sections=yes
24337 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24338 cat > conftest.s <<EOF
24339 .section .text
24340 .globl _start
24341 .type _start, @function
24342 _start:
24343 .long foo
24344 .size _start, .-_start
24345 .section .text.foo,"ax",@progbits
24346 .type foo, @function
24347 foo:
24348 .long 0
24349 .size foo, .-foo
24350 .section .gcc_except_table.foo,"a",@progbits
24351 .L0:
24352 .long 0
24353 .section .eh_frame,"a",@progbits
24354 .long .L0
24356 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24357 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24358 | grep "gc-sections option ignored" > /dev/null; then
24359 gcc_cv_ld_eh_gc_sections=no
24360 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24361 gcc_cv_ld_eh_gc_sections=yes
24362 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24363 if test x$gcc_cv_as_comdat_group != xyes; then
24364 gcc_cv_ld_eh_gc_sections=no
24365 cat > conftest.s <<EOF
24366 .section .text
24367 .globl _start
24368 .type _start, @function
24369 _start:
24370 .long foo
24371 .size _start, .-_start
24372 .section .gnu.linkonce.t.foo,"ax",@progbits
24373 .type foo, @function
24374 foo:
24375 .long 0
24376 .size foo, .-foo
24377 .section .gcc_except_table.foo,"a",@progbits
24378 .L0:
24379 .long 0
24380 .section .eh_frame,"a",@progbits
24381 .long .L0
24383 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24384 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24385 | grep "gc-sections option ignored" > /dev/null; then
24386 gcc_cv_ld_eh_gc_sections=no
24387 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24388 gcc_cv_ld_eh_gc_sections=yes
24394 rm -f conftest.s conftest.o conftest
24396 case "$target" in
24397 hppa*-*-linux*)
24398 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24399 gcc_cv_ld_eh_gc_sections=no
24401 esac
24402 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24404 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24408 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24410 # --------
24411 # UNSORTED
24412 # --------
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24415 $as_echo_n "checking linker --as-needed support... " >&6; }
24416 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24417 $as_echo_n "(cached) " >&6
24418 else
24419 gcc_cv_ld_as_needed=no
24420 if test $in_tree_ld = yes ; then
24421 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 \
24422 && test $in_tree_ld_is_elf = yes; then
24423 gcc_cv_ld_as_needed=yes
24425 elif test x$gcc_cv_ld != x; then
24426 # Check if linker supports --as-needed and --no-as-needed options
24427 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24428 gcc_cv_ld_as_needed=yes
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24434 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24435 if test x"$gcc_cv_ld_as_needed" = xyes; then
24437 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24441 case "$target:$tm_file" in
24442 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24444 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24445 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24446 $as_echo_n "(cached) " >&6
24447 else
24448 gcc_cv_ld_no_dot_syms=no
24449 if test $in_tree_ld = yes ; then
24450 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
24451 gcc_cv_ld_no_dot_syms=yes
24453 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24454 cat > conftest1.s <<EOF
24455 .text
24456 bl .foo
24458 cat > conftest2.s <<EOF
24459 .section ".opd","aw"
24460 .align 3
24461 .globl foo
24462 .type foo,@function
24463 foo:
24464 .quad .LEfoo,.TOC.@tocbase,0
24465 .text
24466 .LEfoo:
24468 .size foo,.-.LEfoo
24470 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24471 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24472 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24473 gcc_cv_ld_no_dot_syms=yes
24475 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24480 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24481 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24483 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24487 esac
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24490 $as_echo_n "checking linker --build-id support... " >&6; }
24491 if test "${gcc_cv_ld_buildid+set}" = set; then :
24492 $as_echo_n "(cached) " >&6
24493 else
24494 gcc_cv_ld_buildid=no
24495 if test $in_tree_ld = yes ; then
24496 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24497 "$gcc_cv_gld_minor_version" -ge 18 -o \
24498 "$gcc_cv_gld_major_version" -gt 2 \
24499 && test $in_tree_ld_is_elf = yes; then
24500 gcc_cv_ld_buildid=yes
24502 elif test x$gcc_cv_ld != x; then
24503 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24504 gcc_cv_ld_buildid=yes
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24509 $as_echo "$gcc_cv_ld_buildid" >&6; }
24510 if test x"$gcc_cv_ld_buildid" = xyes; then
24512 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24516 # Check whether --enable-linker-build-id was given.
24517 if test "${enable_linker_build_id+set}" = set; then :
24518 enableval=$enable_linker_build_id;
24519 else
24520 enable_linker_build_id=no
24524 if test x"$enable_linker_build_id" = xyes; then
24525 if test x"$gcc_cv_ld_buildid" = xyes; then
24527 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24529 else
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24531 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24536 $as_echo_n "checking linker --sysroot support... " >&6; }
24537 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24538 $as_echo_n "(cached) " >&6
24539 else
24540 gcc_cv_ld_sysroot=no
24541 if test $in_tree_ld = yes ; then
24542 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
24543 gcc_cv_ld_sysroot=yes
24545 elif test x$gcc_cv_ld != x; then
24546 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24547 gcc_cv_ld_sysroot=yes
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24552 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24553 if test x"$gcc_cv_ld_sysroot" = xyes; then
24555 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24559 if test x$with_sysroot = x && test x$host = x$target \
24560 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24561 && test "$prefix" != "NONE"; then
24563 cat >>confdefs.h <<_ACEOF
24564 #define PREFIX_INCLUDE_DIR "$prefix/include"
24565 _ACEOF
24569 # Test for stack protector support in target C library.
24570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24571 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24572 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24573 $as_echo_n "(cached) " >&6
24574 else
24575 gcc_cv_libc_provides_ssp=no
24576 case "$target" in
24577 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24578 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24579 if test "x$with_sysroot" = x; then
24580 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24581 elif test "x$with_build_sysroot" != "x"; then
24582 glibc_header_dir="${with_build_sysroot}/usr/include"
24583 elif test "x$with_sysroot" = xyes; then
24584 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24585 else
24586 glibc_header_dir="${with_sysroot}/usr/include"
24588 else
24589 glibc_header_dir=/usr/include
24591 # glibc 2.4 and later provides __stack_chk_fail and
24592 # either __stack_chk_guard, or TLS access to stack guard canary.
24593 if test -f $glibc_header_dir/features.h \
24594 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24595 $glibc_header_dir/features.h > /dev/null; then
24596 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24597 $glibc_header_dir/features.h > /dev/null; then
24598 gcc_cv_libc_provides_ssp=yes
24599 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24600 $glibc_header_dir/features.h > /dev/null \
24601 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24602 $glibc_header_dir/features.h > /dev/null; then
24603 gcc_cv_libc_provides_ssp=yes
24604 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24605 $glibc_header_dir/features.h > /dev/null && \
24606 test -f $glibc_header_dir/bits/uClibc_config.h && \
24607 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24608 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24609 gcc_cv_libc_provides_ssp=yes
24613 *-*-gnu*)
24614 # Avoid complicated tests (see
24615 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24616 # simply assert that glibc does provide this, which is true for all
24617 # realistically usable GNU/Hurd configurations.
24618 gcc_cv_libc_provides_ssp=yes;;
24619 *-*-darwin* | *-*-freebsd*)
24620 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24621 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24622 gcc_cv_libc_provides_ssp=yes
24623 else
24624 echo "no __stack_chk_fail on this target"
24628 *) gcc_cv_libc_provides_ssp=no ;;
24629 esac
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24632 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24634 if test x$gcc_cv_libc_provides_ssp = xyes; then
24636 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24640 # Check if TFmode long double should be used by default or not.
24641 # Some glibc targets used DFmode long double, but with glibc 2.4
24642 # and later they can use TFmode.
24643 case "$target" in
24644 powerpc*-*-linux* | \
24645 powerpc*-*-gnu* | \
24646 sparc*-*-linux* | \
24647 s390*-*-linux* | \
24648 alpha*-*-linux*)
24650 # Check whether --with-long-double-128 was given.
24651 if test "${with_long_double_128+set}" = set; then :
24652 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24653 else
24654 gcc_cv_target_ldbl128=no
24655 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24656 if test "x$with_sysroot" = x; then
24657 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24658 elif test "x$with_build_sysroot" != "x"; then
24659 glibc_header_dir="${with_build_sysroot}/usr/include"
24660 elif test "x$with_sysroot" = xyes; then
24661 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24662 else
24663 glibc_header_dir="${with_sysroot}/usr/include"
24665 else
24666 glibc_header_dir=/usr/include
24668 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24669 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24670 && gcc_cv_target_ldbl128=yes
24675 esac
24676 if test x$gcc_cv_target_ldbl128 = xyes; then
24678 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24682 # Find out what GC implementation we want, or may, use.
24684 # Check whether --with-gc was given.
24685 if test "${with_gc+set}" = set; then :
24686 withval=$with_gc; case "$withval" in
24687 page)
24688 GGC=ggc-$withval
24690 zone)
24691 GGC=ggc-$withval
24693 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24697 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24699 esac
24700 else
24701 GGC=ggc-page
24705 echo "Using $GGC for garbage collection."
24707 # Libraries to use on the host. This will normally be set by the top
24708 # level Makefile. Here we simply capture the value for our Makefile.
24709 if test -z "${HOST_LIBS+set}"; then
24710 HOST_LIBS=
24714 # Use the system's zlib library.
24715 zlibdir=-L../zlib
24716 zlibinc="-I\$(srcdir)/../zlib"
24718 # Check whether --with-system-zlib was given.
24719 if test "${with_system_zlib+set}" = set; then :
24720 withval=$with_system_zlib; zlibdir=
24721 zlibinc=
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24730 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24731 # Check whether --enable-maintainer-mode was given.
24732 if test "${enable_maintainer_mode+set}" = set; then :
24733 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24734 else
24735 maintainer_mode=no
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24740 $as_echo "$maintainer_mode" >&6; }
24742 if test "$maintainer_mode" = "yes"; then
24743 MAINT=''
24744 else
24745 MAINT='#'
24748 # --------------
24749 # Language hooks
24750 # --------------
24752 # Make empty files to contain the specs and options for each language.
24753 # Then add #include lines to for a compiler that has specs and/or options.
24755 subdirs=
24756 lang_opt_files=
24757 lang_specs_files=
24758 lang_tree_files=
24759 # These (without "all_") are set in each config-lang.in.
24760 # `language' must be a single word so is spelled singularly.
24761 all_languages=
24762 all_compilers=
24763 all_outputs='Makefile gccbug'
24764 # List of language makefile fragments.
24765 all_lang_makefrags=
24766 # List of language subdirectory makefiles. Deprecated.
24767 all_lang_makefiles=
24768 # Additional files for gengtype
24769 all_gtfiles="$target_gtfiles"
24771 # These are the languages that are set in --enable-languages,
24772 # and are available in the GCC tree.
24773 all_selected_languages=
24775 # Add the language fragments.
24776 # Languages are added via two mechanisms. Some information must be
24777 # recorded in makefile variables, these are defined in config-lang.in.
24778 # We accumulate them and plug them into the main Makefile.
24779 # The other mechanism is a set of hooks for each of the main targets
24780 # like `clean', `install', etc.
24782 language_hooks="Make-hooks"
24784 for lang in ${srcdir}/*/config-lang.in
24786 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24788 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24789 if test "x$lang_alias" = x
24790 then
24791 echo "$lang doesn't set \$language." 1>&2
24792 exit 1
24794 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24795 subdirs="$subdirs $subdir"
24797 # $gcc_subdir is where the gcc integration files are to be found
24798 # for a language, both for internal compiler purposes (compiler
24799 # sources implementing front-end to GCC tree converters), and for
24800 # build infrastructure purposes (Make-lang.in, etc.)
24802 # This will be <subdir> (relative to $srcdir) if a line like
24803 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24804 # is found in <langdir>/config-lang.in, and will remain <langdir>
24805 # otherwise.
24807 # Except for the language alias (fetched above), the regular
24808 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24809 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24810 # only this and the language alias.
24812 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24813 if [ "$gcc_subdir" = "" ]; then
24814 gcc_subdir="$subdir"
24817 case ",$enable_languages," in
24818 *,$lang_alias,*)
24819 all_selected_languages="$all_selected_languages $lang_alias"
24820 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24821 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24824 esac
24826 language=
24827 boot_language=
24828 compilers=
24829 outputs=
24830 gtfiles=
24831 subdir_requires=
24832 . ${srcdir}/$gcc_subdir/config-lang.in
24833 if test "x$language" = x
24834 then
24835 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24836 exit 1
24839 ok=:
24840 case ",$enable_languages," in
24841 *,$lang_alias,*) ;;
24843 for i in $subdir_requires; do
24844 test -f "${srcdir}/$i/config-lang.in" && continue
24845 ok=false
24846 break
24847 done
24849 esac
24850 $ok || continue
24852 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24853 if test -f $srcdir/$gcc_subdir/lang.opt; then
24854 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24856 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24857 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24859 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24860 then all_lang_makefiles="$gcc_subdir/Makefile"
24862 all_languages="$all_languages $language"
24863 all_compilers="$all_compilers $compilers"
24864 all_outputs="$all_outputs $outputs"
24865 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24866 case ",$enable_languages," in
24867 *,lto,*)
24869 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
24871 enable_lto=yes
24874 *) ;;
24875 esac
24876 done
24878 # Pick up gtfiles for c
24879 gtfiles=
24880 . ${srcdir}/c-config-lang.in
24881 all_gtfiles="$all_gtfiles [c] $gtfiles"
24883 check_languages=
24884 for language in $all_selected_languages
24886 check_languages="$check_languages check-$language"
24887 done
24889 # We link each language in with a set of hooks, reached indirectly via
24890 # lang.${target}. Only do so for selected languages.
24892 rm -f Make-hooks
24893 touch Make-hooks
24894 target_list="all.cross start.encap rest.encap tags \
24895 install-common install-man install-info install-pdf dvi pdf \
24896 html uninstall info man srcextra srcman srcinfo \
24897 mostlyclean clean distclean maintainer-clean install-plugin"
24899 for t in $target_list
24902 for lang in $all_selected_languages
24904 x="$x $lang.$t"
24905 done
24906 echo "lang.$t: $x" >> Make-hooks
24907 done
24909 # --------
24910 # UNSORTED
24911 # --------
24913 # Create .gdbinit.
24915 echo "dir ." > .gdbinit
24916 echo "dir ${srcdir}" >> .gdbinit
24917 if test x$gdb_needs_out_file_path = xyes
24918 then
24919 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24921 if test "x$subdirs" != x; then
24922 for s in $subdirs
24924 echo "dir ${srcdir}/$s" >> .gdbinit
24925 done
24927 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24929 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24933 # Find a directory in which to install a shared libgcc.
24935 # Check whether --enable-version-specific-runtime-libs was given.
24936 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24937 enableval=$enable_version_specific_runtime_libs;
24942 # Check whether --with-slibdir was given.
24943 if test "${with_slibdir+set}" = set; then :
24944 withval=$with_slibdir; slibdir="$with_slibdir"
24945 else
24946 if test "${enable_version_specific_runtime_libs+set}" = set; then
24947 slibdir='$(libsubdir)'
24948 elif test "$host" != "$target"; then
24949 slibdir='$(build_tooldir)/lib'
24950 else
24951 slibdir='$(libdir)'
24957 # Substitute configuration variables
25019 # Echo link setup.
25020 if test x${build} = x${host} ; then
25021 if test x${host} = x${target} ; then
25022 echo "Links are now set up to build a native compiler for ${target}." 1>&2
25023 else
25024 echo "Links are now set up to build a cross-compiler" 1>&2
25025 echo " from ${host} to ${target}." 1>&2
25027 else
25028 if test x${host} = x${target} ; then
25029 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
25030 echo " for ${target}." 1>&2
25031 else
25032 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
25033 echo " from ${host} to ${target}." 1>&2
25040 case "${GMPLIBS}" in
25041 *-lmpc*)
25042 $as_echo "#define HAVE_mpc 1" >>confdefs.h
25044 esac
25051 if test "x${CLOOGLIBS}" != "x" ; then
25053 $as_echo "#define HAVE_cloog 1" >>confdefs.h
25059 if test "x${LIBELFLIBS}" != "x" ; then
25061 $as_echo "#define HAVE_libelf 1" >>confdefs.h
25065 # Check for plugin support
25066 # Check whether --enable-plugin was given.
25067 if test "${enable_plugin+set}" = set; then :
25068 enableval=$enable_plugin; enable_plugin=$enableval
25069 else
25070 enable_plugin=yes; default_plugin=yes
25074 pluginlibs=
25075 if test x"$enable_plugin" = x"yes"; then
25076 # Check that the host supports -rdynamic and -ldl
25077 have_rdynamic=no
25078 have_dl=no
25079 saved_LDFLAGS="$LDFLAGS"
25080 saved_LIBS="$LIBS"
25081 LIBS=
25083 # Check -rdynamic
25084 LDFLAGS="$LDFLAGS -rdynamic"
25085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
25086 $as_echo_n "checking for -rdynamic... " >&6; }
25087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25088 /* end confdefs.h. */
25091 main ()
25093 return 0;
25095 return 0;
25097 _ACEOF
25098 if ac_fn_c_try_link "$LINENO"; then :
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25100 $as_echo "yes" >&6; }; have_rdynamic=yes
25101 else
25102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25103 $as_echo "no" >&6; }
25105 rm -f core conftest.err conftest.$ac_objext \
25106 conftest$ac_exeext conftest.$ac_ext
25107 if test x"$have_rdynamic" = x"yes" ; then
25108 pluginlibs="-rdynamic"
25111 # Check -ldl
25112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
25113 $as_echo_n "checking for library containing dlopen... " >&6; }
25114 if test "${ac_cv_search_dlopen+set}" = set; then :
25115 $as_echo_n "(cached) " >&6
25116 else
25117 ac_func_search_save_LIBS=$LIBS
25118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25119 /* end confdefs.h. */
25121 /* Override any GCC internal prototype to avoid an error.
25122 Use char because int might match the return type of a GCC
25123 builtin and then its argument prototype would still apply. */
25124 #ifdef __cplusplus
25125 extern "C"
25126 #endif
25127 char dlopen ();
25129 main ()
25131 return dlopen ();
25133 return 0;
25135 _ACEOF
25136 for ac_lib in '' dl; do
25137 if test -z "$ac_lib"; then
25138 ac_res="none required"
25139 else
25140 ac_res=-l$ac_lib
25141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25143 if ac_fn_c_try_link "$LINENO"; then :
25144 ac_cv_search_dlopen=$ac_res
25146 rm -f core conftest.err conftest.$ac_objext \
25147 conftest$ac_exeext
25148 if test "${ac_cv_search_dlopen+set}" = set; then :
25149 break
25151 done
25152 if test "${ac_cv_search_dlopen+set}" = set; then :
25154 else
25155 ac_cv_search_dlopen=no
25157 rm conftest.$ac_ext
25158 LIBS=$ac_func_search_save_LIBS
25160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
25161 $as_echo "$ac_cv_search_dlopen" >&6; }
25162 ac_res=$ac_cv_search_dlopen
25163 if test "$ac_res" != no; then :
25164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25168 if test x"$ac_cv_search_dlopen" = x"-ldl"; then
25169 pluginlibs="$pluginlibs -ldl"
25172 # Check that we can build shared objects with -fPIC -shared
25173 LDFLAGS="$LDFLAGS -fPIC -shared"
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25175 $as_echo_n "checking for -fPIC -shared... " >&6; }
25176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25177 /* end confdefs.h. */
25178 extern int X;
25180 main ()
25182 return X == 0;
25184 return 0;
25186 _ACEOF
25187 if ac_fn_c_try_link "$LINENO"; then :
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25189 $as_echo "yes" >&6; }; have_pic_shared=yes
25190 else
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25192 $as_echo "no" >&6; }; have_pic_shared=no
25194 rm -f core conftest.err conftest.$ac_objext \
25195 conftest$ac_exeext conftest.$ac_ext
25196 if test x"$have_pic_shared" != x"yes" -o x"$ac_cv_search_dlopen" = x"no"; then
25197 pluginlibs=
25198 enable_plugin=no
25201 # If plugin support had been requested but not available, fail.
25202 if test x"$enable_plugin" = x"no" ; then
25203 if test x"$default_plugin" != x"yes"; then
25204 as_fn_error "
25205 Building GCC with plugin support requires a host that supports
25206 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25210 LDFLAGS="$saved_LDFLAGS"
25211 LIBS="$saved_LIBS"
25216 if test x"$enable_plugin" = x"yes"; then
25218 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25222 # Configure the subdirectories
25223 # AC_CONFIG_SUBDIRS($subdirs)
25225 # Create the Makefile
25226 # and configure language subdirectories
25227 ac_config_files="$ac_config_files $all_outputs"
25230 ac_config_commands="$ac_config_commands default"
25232 cat >confcache <<\_ACEOF
25233 # This file is a shell script that caches the results of configure
25234 # tests run on this system so they can be shared between configure
25235 # scripts and configure runs, see configure's option --config-cache.
25236 # It is not useful on other systems. If it contains results you don't
25237 # want to keep, you may remove or edit it.
25239 # config.status only pays attention to the cache file if you give it
25240 # the --recheck option to rerun configure.
25242 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25244 # following values.
25246 _ACEOF
25248 # The following way of writing the cache mishandles newlines in values,
25249 # but we know of no workaround that is simple, portable, and efficient.
25250 # So, we kill variables containing newlines.
25251 # Ultrix sh set writes to stderr and can't be redirected directly,
25252 # and sets the high bit in the cache file unless we assign to the vars.
25254 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25255 eval ac_val=\$$ac_var
25256 case $ac_val in #(
25257 *${as_nl}*)
25258 case $ac_var in #(
25259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25261 esac
25262 case $ac_var in #(
25263 _ | IFS | as_nl) ;; #(
25264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25265 *) { eval $ac_var=; unset $ac_var;} ;;
25266 esac ;;
25267 esac
25268 done
25270 (set) 2>&1 |
25271 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25272 *${as_nl}ac_space=\ *)
25273 # `set' does not quote correctly, so add quotes: double-quote
25274 # substitution turns \\\\ into \\, and sed turns \\ into \.
25275 sed -n \
25276 "s/'/'\\\\''/g;
25277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25278 ;; #(
25280 # `set' quotes correctly as required by POSIX, so do not add quotes.
25281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25283 esac |
25284 sort
25286 sed '
25287 /^ac_cv_env_/b end
25288 t clear
25289 :clear
25290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25291 t end
25292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25293 :end' >>confcache
25294 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25295 if test -w "$cache_file"; then
25296 test "x$cache_file" != "x/dev/null" &&
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25298 $as_echo "$as_me: updating cache $cache_file" >&6;}
25299 cat confcache >$cache_file
25300 else
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25302 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25305 rm -f confcache
25307 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25308 # Let make expand exec_prefix.
25309 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25311 DEFS=-DHAVE_CONFIG_H
25313 ac_libobjs=
25314 ac_ltlibobjs=
25315 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25316 # 1. Remove the extension, and $U if already installed.
25317 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25318 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25319 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25320 # will be set to the directory where LIBOBJS objects are built.
25321 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25322 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25323 done
25324 LIBOBJS=$ac_libobjs
25326 LTLIBOBJS=$ac_ltlibobjs
25331 : ${CONFIG_STATUS=./config.status}
25332 ac_write_fail=0
25333 ac_clean_files_save=$ac_clean_files
25334 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25335 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25336 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25337 as_write_fail=0
25338 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25339 #! $SHELL
25340 # Generated by $as_me.
25341 # Run this file to recreate the current configuration.
25342 # Compiler output produced by configure, useful for debugging
25343 # configure, is in config.log if it exists.
25345 debug=false
25346 ac_cs_recheck=false
25347 ac_cs_silent=false
25349 SHELL=\${CONFIG_SHELL-$SHELL}
25350 export SHELL
25351 _ASEOF
25352 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25353 ## -------------------- ##
25354 ## M4sh Initialization. ##
25355 ## -------------------- ##
25357 # Be more Bourne compatible
25358 DUALCASE=1; export DUALCASE # for MKS sh
25359 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25360 emulate sh
25361 NULLCMD=:
25362 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25363 # is contrary to our usage. Disable this feature.
25364 alias -g '${1+"$@"}'='"$@"'
25365 setopt NO_GLOB_SUBST
25366 else
25367 case `(set -o) 2>/dev/null` in #(
25368 *posix*) :
25369 set -o posix ;; #(
25370 *) :
25372 esac
25376 as_nl='
25378 export as_nl
25379 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25380 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25381 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25383 # Prefer a ksh shell builtin over an external printf program on Solaris,
25384 # but without wasting forks for bash or zsh.
25385 if test -z "$BASH_VERSION$ZSH_VERSION" \
25386 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25387 as_echo='print -r --'
25388 as_echo_n='print -rn --'
25389 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25390 as_echo='printf %s\n'
25391 as_echo_n='printf %s'
25392 else
25393 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25394 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25395 as_echo_n='/usr/ucb/echo -n'
25396 else
25397 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25398 as_echo_n_body='eval
25399 arg=$1;
25400 case $arg in #(
25401 *"$as_nl"*)
25402 expr "X$arg" : "X\\(.*\\)$as_nl";
25403 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25404 esac;
25405 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25407 export as_echo_n_body
25408 as_echo_n='sh -c $as_echo_n_body as_echo'
25410 export as_echo_body
25411 as_echo='sh -c $as_echo_body as_echo'
25414 # The user is always right.
25415 if test "${PATH_SEPARATOR+set}" != set; then
25416 PATH_SEPARATOR=:
25417 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25418 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25419 PATH_SEPARATOR=';'
25424 # IFS
25425 # We need space, tab and new line, in precisely that order. Quoting is
25426 # there to prevent editors from complaining about space-tab.
25427 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25428 # splitting by setting IFS to empty value.)
25429 IFS=" "" $as_nl"
25431 # Find who we are. Look in the path if we contain no directory separator.
25432 case $0 in #((
25433 *[\\/]* ) as_myself=$0 ;;
25434 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25435 for as_dir in $PATH
25437 IFS=$as_save_IFS
25438 test -z "$as_dir" && as_dir=.
25439 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25440 done
25441 IFS=$as_save_IFS
25444 esac
25445 # We did not find ourselves, most probably we were run as `sh COMMAND'
25446 # in which case we are not to be found in the path.
25447 if test "x$as_myself" = x; then
25448 as_myself=$0
25450 if test ! -f "$as_myself"; then
25451 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25452 exit 1
25455 # Unset variables that we do not need and which cause bugs (e.g. in
25456 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25457 # suppresses any "Segmentation fault" message there. '((' could
25458 # trigger a bug in pdksh 5.2.14.
25459 for as_var in BASH_ENV ENV MAIL MAILPATH
25460 do eval test x\${$as_var+set} = xset \
25461 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25462 done
25463 PS1='$ '
25464 PS2='> '
25465 PS4='+ '
25467 # NLS nuisances.
25468 LC_ALL=C
25469 export LC_ALL
25470 LANGUAGE=C
25471 export LANGUAGE
25473 # CDPATH.
25474 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25477 # as_fn_error ERROR [LINENO LOG_FD]
25478 # ---------------------------------
25479 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25480 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25481 # script with status $?, using 1 if that was 0.
25482 as_fn_error ()
25484 as_status=$?; test $as_status -eq 0 && as_status=1
25485 if test "$3"; then
25486 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25487 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25489 $as_echo "$as_me: error: $1" >&2
25490 as_fn_exit $as_status
25491 } # as_fn_error
25494 # as_fn_set_status STATUS
25495 # -----------------------
25496 # Set $? to STATUS, without forking.
25497 as_fn_set_status ()
25499 return $1
25500 } # as_fn_set_status
25502 # as_fn_exit STATUS
25503 # -----------------
25504 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25505 as_fn_exit ()
25507 set +e
25508 as_fn_set_status $1
25509 exit $1
25510 } # as_fn_exit
25512 # as_fn_unset VAR
25513 # ---------------
25514 # Portably unset VAR.
25515 as_fn_unset ()
25517 { eval $1=; unset $1;}
25519 as_unset=as_fn_unset
25520 # as_fn_append VAR VALUE
25521 # ----------------------
25522 # Append the text in VALUE to the end of the definition contained in VAR. Take
25523 # advantage of any shell optimizations that allow amortized linear growth over
25524 # repeated appends, instead of the typical quadratic growth present in naive
25525 # implementations.
25526 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25527 eval 'as_fn_append ()
25529 eval $1+=\$2
25531 else
25532 as_fn_append ()
25534 eval $1=\$$1\$2
25536 fi # as_fn_append
25538 # as_fn_arith ARG...
25539 # ------------------
25540 # Perform arithmetic evaluation on the ARGs, and store the result in the
25541 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25542 # must be portable across $(()) and expr.
25543 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25544 eval 'as_fn_arith ()
25546 as_val=$(( $* ))
25548 else
25549 as_fn_arith ()
25551 as_val=`expr "$@" || test $? -eq 1`
25553 fi # as_fn_arith
25556 if expr a : '\(a\)' >/dev/null 2>&1 &&
25557 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25558 as_expr=expr
25559 else
25560 as_expr=false
25563 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25564 as_basename=basename
25565 else
25566 as_basename=false
25569 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25570 as_dirname=dirname
25571 else
25572 as_dirname=false
25575 as_me=`$as_basename -- "$0" ||
25576 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25577 X"$0" : 'X\(//\)$' \| \
25578 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25579 $as_echo X/"$0" |
25580 sed '/^.*\/\([^/][^/]*\)\/*$/{
25581 s//\1/
25584 /^X\/\(\/\/\)$/{
25585 s//\1/
25588 /^X\/\(\/\).*/{
25589 s//\1/
25592 s/.*/./; q'`
25594 # Avoid depending upon Character Ranges.
25595 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25596 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25597 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25598 as_cr_digits='0123456789'
25599 as_cr_alnum=$as_cr_Letters$as_cr_digits
25601 ECHO_C= ECHO_N= ECHO_T=
25602 case `echo -n x` in #(((((
25603 -n*)
25604 case `echo 'xy\c'` in
25605 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25606 xy) ECHO_C='\c';;
25607 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25608 ECHO_T=' ';;
25609 esac;;
25611 ECHO_N='-n';;
25612 esac
25614 rm -f conf$$ conf$$.exe conf$$.file
25615 if test -d conf$$.dir; then
25616 rm -f conf$$.dir/conf$$.file
25617 else
25618 rm -f conf$$.dir
25619 mkdir conf$$.dir 2>/dev/null
25621 if (echo >conf$$.file) 2>/dev/null; then
25622 if ln -s conf$$.file conf$$ 2>/dev/null; then
25623 as_ln_s='ln -s'
25624 # ... but there are two gotchas:
25625 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25626 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25627 # In both cases, we have to default to `cp -p'.
25628 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25629 as_ln_s='cp -p'
25630 elif ln conf$$.file conf$$ 2>/dev/null; then
25631 as_ln_s=ln
25632 else
25633 as_ln_s='cp -p'
25635 else
25636 as_ln_s='cp -p'
25638 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25639 rmdir conf$$.dir 2>/dev/null
25642 # as_fn_mkdir_p
25643 # -------------
25644 # Create "$as_dir" as a directory, including parents if necessary.
25645 as_fn_mkdir_p ()
25648 case $as_dir in #(
25649 -*) as_dir=./$as_dir;;
25650 esac
25651 test -d "$as_dir" || eval $as_mkdir_p || {
25652 as_dirs=
25653 while :; do
25654 case $as_dir in #(
25655 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25656 *) as_qdir=$as_dir;;
25657 esac
25658 as_dirs="'$as_qdir' $as_dirs"
25659 as_dir=`$as_dirname -- "$as_dir" ||
25660 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25661 X"$as_dir" : 'X\(//\)[^/]' \| \
25662 X"$as_dir" : 'X\(//\)$' \| \
25663 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25664 $as_echo X"$as_dir" |
25665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25666 s//\1/
25669 /^X\(\/\/\)[^/].*/{
25670 s//\1/
25673 /^X\(\/\/\)$/{
25674 s//\1/
25677 /^X\(\/\).*/{
25678 s//\1/
25681 s/.*/./; q'`
25682 test -d "$as_dir" && break
25683 done
25684 test -z "$as_dirs" || eval "mkdir $as_dirs"
25685 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25688 } # as_fn_mkdir_p
25689 if mkdir -p . 2>/dev/null; then
25690 as_mkdir_p='mkdir -p "$as_dir"'
25691 else
25692 test -d ./-p && rmdir ./-p
25693 as_mkdir_p=false
25696 if test -x / >/dev/null 2>&1; then
25697 as_test_x='test -x'
25698 else
25699 if ls -dL / >/dev/null 2>&1; then
25700 as_ls_L_option=L
25701 else
25702 as_ls_L_option=
25704 as_test_x='
25705 eval sh -c '\''
25706 if test -d "$1"; then
25707 test -d "$1/.";
25708 else
25709 case $1 in #(
25710 -*)set "./$1";;
25711 esac;
25712 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25713 ???[sx]*):;;*)false;;esac;fi
25714 '\'' sh
25717 as_executable_p=$as_test_x
25719 # Sed expression to map a string onto a valid CPP name.
25720 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25722 # Sed expression to map a string onto a valid variable name.
25723 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25726 exec 6>&1
25727 ## ----------------------------------- ##
25728 ## Main body of $CONFIG_STATUS script. ##
25729 ## ----------------------------------- ##
25730 _ASEOF
25731 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25734 # Save the log message, to keep $0 and so on meaningful, and to
25735 # report actual input values of CONFIG_FILES etc. instead of their
25736 # values after options handling.
25737 ac_log="
25738 This file was extended by $as_me, which was
25739 generated by GNU Autoconf 2.64. Invocation command line was
25741 CONFIG_FILES = $CONFIG_FILES
25742 CONFIG_HEADERS = $CONFIG_HEADERS
25743 CONFIG_LINKS = $CONFIG_LINKS
25744 CONFIG_COMMANDS = $CONFIG_COMMANDS
25745 $ $0 $@
25747 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25750 _ACEOF
25752 case $ac_config_files in *"
25753 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25754 esac
25756 case $ac_config_headers in *"
25757 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25758 esac
25761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25762 # Files that config.status was made for.
25763 config_files="$ac_config_files"
25764 config_headers="$ac_config_headers"
25765 config_commands="$ac_config_commands"
25767 _ACEOF
25769 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25770 ac_cs_usage="\
25771 \`$as_me' instantiates files and other configuration actions
25772 from templates according to the current configuration. Unless the files
25773 and actions are specified as TAGs, all are instantiated by default.
25775 Usage: $0 [OPTION]... [TAG]...
25777 -h, --help print this help, then exit
25778 -V, --version print version number and configuration settings, then exit
25779 -q, --quiet, --silent
25780 do not print progress messages
25781 -d, --debug don't remove temporary files
25782 --recheck update $as_me by reconfiguring in the same conditions
25783 --file=FILE[:TEMPLATE]
25784 instantiate the configuration file FILE
25785 --header=FILE[:TEMPLATE]
25786 instantiate the configuration header FILE
25788 Configuration files:
25789 $config_files
25791 Configuration headers:
25792 $config_headers
25794 Configuration commands:
25795 $config_commands
25797 Report bugs to the package provider."
25799 _ACEOF
25800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25801 ac_cs_version="\\
25802 config.status
25803 configured by $0, generated by GNU Autoconf 2.64,
25804 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25806 Copyright (C) 2009 Free Software Foundation, Inc.
25807 This config.status script is free software; the Free Software Foundation
25808 gives unlimited permission to copy, distribute and modify it."
25810 ac_pwd='$ac_pwd'
25811 srcdir='$srcdir'
25812 AWK='$AWK'
25813 test -n "\$AWK" || AWK=awk
25814 _ACEOF
25816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25817 # The default lists apply if the user does not specify any file.
25818 ac_need_defaults=:
25819 while test $# != 0
25821 case $1 in
25822 --*=*)
25823 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25824 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25825 ac_shift=:
25828 ac_option=$1
25829 ac_optarg=$2
25830 ac_shift=shift
25832 esac
25834 case $ac_option in
25835 # Handling of the options.
25836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25837 ac_cs_recheck=: ;;
25838 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25839 $as_echo "$ac_cs_version"; exit ;;
25840 --debug | --debu | --deb | --de | --d | -d )
25841 debug=: ;;
25842 --file | --fil | --fi | --f )
25843 $ac_shift
25844 case $ac_optarg in
25845 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25846 esac
25847 as_fn_append CONFIG_FILES " '$ac_optarg'"
25848 ac_need_defaults=false;;
25849 --header | --heade | --head | --hea )
25850 $ac_shift
25851 case $ac_optarg in
25852 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25853 esac
25854 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25855 ac_need_defaults=false;;
25856 --he | --h)
25857 # Conflict between --help and --header
25858 as_fn_error "ambiguous option: \`$1'
25859 Try \`$0 --help' for more information.";;
25860 --help | --hel | -h )
25861 $as_echo "$ac_cs_usage"; exit ;;
25862 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25863 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25864 ac_cs_silent=: ;;
25866 # This is an error.
25867 -*) as_fn_error "unrecognized option: \`$1'
25868 Try \`$0 --help' for more information." ;;
25870 *) as_fn_append ac_config_targets " $1"
25871 ac_need_defaults=false ;;
25873 esac
25874 shift
25875 done
25877 ac_configure_extra_args=
25879 if $ac_cs_silent; then
25880 exec 6>/dev/null
25881 ac_configure_extra_args="$ac_configure_extra_args --silent"
25884 _ACEOF
25885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25886 if \$ac_cs_recheck; then
25887 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25888 shift
25889 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25890 CONFIG_SHELL='$SHELL'
25891 export CONFIG_SHELL
25892 exec "\$@"
25895 _ACEOF
25896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25897 exec 5>>config.log
25899 echo
25900 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25901 ## Running $as_me. ##
25902 _ASBOX
25903 $as_echo "$ac_log"
25904 } >&5
25906 _ACEOF
25907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25909 # INIT-COMMANDS
25911 subdirs='$subdirs'
25913 _ACEOF
25915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25917 # Handling of arguments.
25918 for ac_config_target in $ac_config_targets
25920 case $ac_config_target in
25921 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25922 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25923 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25924 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25925 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25926 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25928 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25929 esac
25930 done
25933 # If the user did not use the arguments to specify the items to instantiate,
25934 # then the envvar interface is used. Set only those that are not.
25935 # We use the long form for the default assignment because of an extremely
25936 # bizarre bug on SunOS 4.1.3.
25937 if $ac_need_defaults; then
25938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25939 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25940 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25943 # Have a temporary directory for convenience. Make it in the build tree
25944 # simply because there is no reason against having it here, and in addition,
25945 # creating and moving files from /tmp can sometimes cause problems.
25946 # Hook for its removal unless debugging.
25947 # Note that there is a small window in which the directory will not be cleaned:
25948 # after its creation but before its name has been assigned to `$tmp'.
25949 $debug ||
25951 tmp=
25952 trap 'exit_status=$?
25953 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25955 trap 'as_fn_exit 1' 1 2 13 15
25957 # Create a (secure) tmp directory for tmp files.
25960 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25961 test -n "$tmp" && test -d "$tmp"
25962 } ||
25964 tmp=./conf$$-$RANDOM
25965 (umask 077 && mkdir "$tmp")
25966 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25968 # Set up the scripts for CONFIG_FILES section.
25969 # No need to generate them if there are no CONFIG_FILES.
25970 # This happens for instance with `./config.status config.h'.
25971 if test -n "$CONFIG_FILES"; then
25973 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25974 ac_cs_awk_getline=:
25975 ac_cs_awk_pipe_init=
25976 ac_cs_awk_read_file='
25977 while ((getline aline < (F[key])) > 0)
25978 print(aline)
25979 close(F[key])'
25980 ac_cs_awk_pipe_fini=
25981 else
25982 ac_cs_awk_getline=false
25983 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25984 ac_cs_awk_read_file='
25985 print "|#_!!_#|"
25986 print "cat " F[key] " &&"
25987 '$ac_cs_awk_pipe_init
25988 # The final `:' finishes the AND list.
25989 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25991 ac_cr=`echo X | tr X '\015'`
25992 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25993 # But we know of no other shell where ac_cr would be empty at this
25994 # point, so we can use a bashism as a fallback.
25995 if test "x$ac_cr" = x; then
25996 eval ac_cr=\$\'\\r\'
25998 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25999 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26000 ac_cs_awk_cr='\r'
26001 else
26002 ac_cs_awk_cr=$ac_cr
26005 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26006 _ACEOF
26008 # Create commands to substitute file output variables.
26010 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
26011 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
26012 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
26013 echo "_ACAWK" &&
26014 echo "_ACEOF"
26015 } >conf$$files.sh &&
26016 . ./conf$$files.sh ||
26017 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26018 rm -f conf$$files.sh
26021 echo "cat >conf$$subs.awk <<_ACEOF" &&
26022 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26023 echo "_ACEOF"
26024 } >conf$$subs.sh ||
26025 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26026 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26027 ac_delim='%!_!# '
26028 for ac_last_try in false false false false false :; do
26029 . ./conf$$subs.sh ||
26030 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26032 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26033 if test $ac_delim_n = $ac_delim_num; then
26034 break
26035 elif $ac_last_try; then
26036 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26037 else
26038 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26040 done
26041 rm -f conf$$subs.sh
26043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26044 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26045 _ACEOF
26046 sed -n '
26048 s/^/S["/; s/!.*/"]=/
26051 s/^[^!]*!//
26052 :repl
26053 t repl
26054 s/'"$ac_delim"'$//
26055 t delim
26058 s/\(.\{148\}\).*/\1/
26059 t more1
26060 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26063 b repl
26064 :more1
26065 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26068 s/.\{148\}//
26069 t nl
26070 :delim
26072 s/\(.\{148\}\).*/\1/
26073 t more2
26074 s/["\\]/\\&/g; s/^/"/; s/$/"/
26077 :more2
26078 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26081 s/.\{148\}//
26082 t delim
26083 ' <conf$$subs.awk | sed '
26084 /^[^""]/{
26086 s/\n//
26088 ' >>$CONFIG_STATUS || ac_write_fail=1
26089 rm -f conf$$subs.awk
26090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26091 _ACAWK
26092 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26093 for (key in S) S_is_set[key] = 1
26094 FS = "\a"
26095 \$ac_cs_awk_pipe_init
26098 line = $ 0
26099 nfields = split(line, field, "@")
26100 substed = 0
26101 len = length(field[1])
26102 for (i = 2; i < nfields; i++) {
26103 key = field[i]
26104 keylen = length(key)
26105 if (S_is_set[key]) {
26106 value = S[key]
26107 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26108 len += length(value) + length(field[++i])
26109 substed = 1
26110 } else
26111 len += 1 + keylen
26113 if (nfields == 3 && !substed) {
26114 key = field[2]
26115 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
26116 \$ac_cs_awk_read_file
26117 next
26120 print line
26122 \$ac_cs_awk_pipe_fini
26123 _ACAWK
26124 _ACEOF
26125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26126 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26127 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26128 else
26130 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26131 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26132 _ACEOF
26134 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26135 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26136 # trailing colons and then remove the whole line if VPATH becomes empty
26137 # (actually we leave an empty line to preserve line numbers).
26138 if test "x$srcdir" = x.; then
26139 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26140 s/:*\$(srcdir):*/:/
26141 s/:*\${srcdir}:*/:/
26142 s/:*@srcdir@:*/:/
26143 s/^\([^=]*=[ ]*\):*/\1/
26144 s/:*$//
26145 s/^[^=]*=[ ]*$//
26149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26150 fi # test -n "$CONFIG_FILES"
26152 # Set up the scripts for CONFIG_HEADERS section.
26153 # No need to generate them if there are no CONFIG_HEADERS.
26154 # This happens for instance with `./config.status Makefile'.
26155 if test -n "$CONFIG_HEADERS"; then
26156 cat >"$tmp/defines.awk" <<\_ACAWK ||
26157 BEGIN {
26158 _ACEOF
26160 # Transform confdefs.h into an awk script `defines.awk', embedded as
26161 # here-document in config.status, that substitutes the proper values into
26162 # config.h.in to produce config.h.
26164 # Create a delimiter string that does not exist in confdefs.h, to ease
26165 # handling of long lines.
26166 ac_delim='%!_!# '
26167 for ac_last_try in false false :; do
26168 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26169 if test -z "$ac_t"; then
26170 break
26171 elif $ac_last_try; then
26172 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26173 else
26174 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26176 done
26178 # For the awk script, D is an array of macro values keyed by name,
26179 # likewise P contains macro parameters if any. Preserve backslash
26180 # newline sequences.
26182 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26183 sed -n '
26184 s/.\{148\}/&'"$ac_delim"'/g
26185 t rset
26186 :rset
26187 s/^[ ]*#[ ]*define[ ][ ]*/ /
26188 t def
26190 :def
26191 s/\\$//
26192 t bsnl
26193 s/["\\]/\\&/g
26194 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26195 D["\1"]=" \3"/p
26196 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26198 :bsnl
26199 s/["\\]/\\&/g
26200 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26201 D["\1"]=" \3\\\\\\n"\\/p
26202 t cont
26203 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26204 t cont
26206 :cont
26208 s/.\{148\}/&'"$ac_delim"'/g
26209 t clear
26210 :clear
26211 s/\\$//
26212 t bsnlc
26213 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26215 :bsnlc
26216 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26217 b cont
26218 ' <confdefs.h | sed '
26219 s/'"$ac_delim"'/"\\\
26220 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26223 for (key in D) D_is_set[key] = 1
26224 FS = "\a"
26226 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26227 line = \$ 0
26228 split(line, arg, " ")
26229 if (arg[1] == "#") {
26230 defundef = arg[2]
26231 mac1 = arg[3]
26232 } else {
26233 defundef = substr(arg[1], 2)
26234 mac1 = arg[2]
26236 split(mac1, mac2, "(") #)
26237 macro = mac2[1]
26238 prefix = substr(line, 1, index(line, defundef) - 1)
26239 if (D_is_set[macro]) {
26240 # Preserve the white space surrounding the "#".
26241 print prefix "define", macro P[macro] D[macro]
26242 next
26243 } else {
26244 # Replace #undef with comments. This is necessary, for example,
26245 # in the case of _POSIX_SOURCE, which is predefined and required
26246 # on some systems where configure will not decide to define it.
26247 if (defundef == "undef") {
26248 print "/*", prefix defundef, macro, "*/"
26249 next
26253 { print }
26254 _ACAWK
26255 _ACEOF
26256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26257 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26258 fi # test -n "$CONFIG_HEADERS"
26261 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26262 shift
26263 for ac_tag
26265 case $ac_tag in
26266 :[FHLC]) ac_mode=$ac_tag; continue;;
26267 esac
26268 case $ac_mode$ac_tag in
26269 :[FHL]*:*);;
26270 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26271 :[FH]-) ac_tag=-:-;;
26272 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26273 esac
26274 ac_save_IFS=$IFS
26275 IFS=:
26276 set x $ac_tag
26277 IFS=$ac_save_IFS
26278 shift
26279 ac_file=$1
26280 shift
26282 case $ac_mode in
26283 :L) ac_source=$1;;
26284 :[FH])
26285 ac_file_inputs=
26286 for ac_f
26288 case $ac_f in
26289 -) ac_f="$tmp/stdin";;
26290 *) # Look for the file first in the build tree, then in the source tree
26291 # (if the path is not absolute). The absolute path cannot be DOS-style,
26292 # because $ac_f cannot contain `:'.
26293 test -f "$ac_f" ||
26294 case $ac_f in
26295 [\\/$]*) false;;
26296 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26297 esac ||
26298 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26299 esac
26300 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26301 as_fn_append ac_file_inputs " '$ac_f'"
26302 done
26304 # Let's still pretend it is `configure' which instantiates (i.e., don't
26305 # use $as_me), people would be surprised to read:
26306 # /* config.h. Generated by config.status. */
26307 configure_input='Generated from '`
26308 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26309 `' by configure.'
26310 if test x"$ac_file" != x-; then
26311 configure_input="$ac_file. $configure_input"
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26313 $as_echo "$as_me: creating $ac_file" >&6;}
26315 # Neutralize special characters interpreted by sed in replacement strings.
26316 case $configure_input in #(
26317 *\&* | *\|* | *\\* )
26318 ac_sed_conf_input=`$as_echo "$configure_input" |
26319 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26320 *) ac_sed_conf_input=$configure_input;;
26321 esac
26323 case $ac_tag in
26324 *:-:* | *:-) cat >"$tmp/stdin" \
26325 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26326 esac
26328 esac
26330 ac_dir=`$as_dirname -- "$ac_file" ||
26331 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26332 X"$ac_file" : 'X\(//\)[^/]' \| \
26333 X"$ac_file" : 'X\(//\)$' \| \
26334 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26335 $as_echo X"$ac_file" |
26336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26337 s//\1/
26340 /^X\(\/\/\)[^/].*/{
26341 s//\1/
26344 /^X\(\/\/\)$/{
26345 s//\1/
26348 /^X\(\/\).*/{
26349 s//\1/
26352 s/.*/./; q'`
26353 as_dir="$ac_dir"; as_fn_mkdir_p
26354 ac_builddir=.
26356 case "$ac_dir" in
26357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26359 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26360 # A ".." for each directory in $ac_dir_suffix.
26361 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26362 case $ac_top_builddir_sub in
26363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26365 esac ;;
26366 esac
26367 ac_abs_top_builddir=$ac_pwd
26368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26369 # for backward compatibility:
26370 ac_top_builddir=$ac_top_build_prefix
26372 case $srcdir in
26373 .) # We are building in place.
26374 ac_srcdir=.
26375 ac_top_srcdir=$ac_top_builddir_sub
26376 ac_abs_top_srcdir=$ac_pwd ;;
26377 [\\/]* | ?:[\\/]* ) # Absolute name.
26378 ac_srcdir=$srcdir$ac_dir_suffix;
26379 ac_top_srcdir=$srcdir
26380 ac_abs_top_srcdir=$srcdir ;;
26381 *) # Relative name.
26382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26383 ac_top_srcdir=$ac_top_build_prefix$srcdir
26384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26385 esac
26386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26389 case $ac_mode in
26392 # CONFIG_FILE
26395 _ACEOF
26397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26398 # If the template does not know about datarootdir, expand it.
26399 # FIXME: This hack should be removed a few years after 2.60.
26400 ac_datarootdir_hack=; ac_datarootdir_seen=
26401 ac_sed_dataroot='
26402 /datarootdir/ {
26406 /@datadir@/p
26407 /@docdir@/p
26408 /@infodir@/p
26409 /@localedir@/p
26410 /@mandir@/p'
26411 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26412 *datarootdir*) ac_datarootdir_seen=yes;;
26413 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26415 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26416 _ACEOF
26417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26418 ac_datarootdir_hack='
26419 s&@datadir@&$datadir&g
26420 s&@docdir@&$docdir&g
26421 s&@infodir@&$infodir&g
26422 s&@localedir@&$localedir&g
26423 s&@mandir@&$mandir&g
26424 s&\\\${datarootdir}&$datarootdir&g' ;;
26425 esac
26426 _ACEOF
26428 # Neutralize VPATH when `$srcdir' = `.'.
26429 # Shell code in configure.ac might set extrasub.
26430 # FIXME: do we really want to maintain this feature?
26431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26432 ac_sed_extra="$ac_vpsub
26433 $extrasub
26434 _ACEOF
26435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26438 s|@configure_input@|$ac_sed_conf_input|;t t
26439 s&@top_builddir@&$ac_top_builddir_sub&;t t
26440 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26441 s&@srcdir@&$ac_srcdir&;t t
26442 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26443 s&@top_srcdir@&$ac_top_srcdir&;t t
26444 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26445 s&@builddir@&$ac_builddir&;t t
26446 s&@abs_builddir@&$ac_abs_builddir&;t t
26447 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26448 $ac_datarootdir_hack
26450 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26451 if $ac_cs_awk_getline; then
26452 $AWK -f "$tmp/subs.awk"
26453 else
26454 $AWK -f "$tmp/subs.awk" | $SHELL
26455 fi >$tmp/out \
26456 || as_fn_error "could not create $ac_file" "$LINENO" 5
26458 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26459 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26462 which seems to be undefined. Please make sure it is defined." >&5
26463 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26464 which seems to be undefined. Please make sure it is defined." >&2;}
26466 rm -f "$tmp/stdin"
26467 case $ac_file in
26468 -) cat "$tmp/out" && rm -f "$tmp/out";;
26469 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26470 esac \
26471 || as_fn_error "could not create $ac_file" "$LINENO" 5
26475 # CONFIG_HEADER
26477 if test x"$ac_file" != x-; then
26479 $as_echo "/* $configure_input */" \
26480 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26481 } >"$tmp/config.h" \
26482 || as_fn_error "could not create $ac_file" "$LINENO" 5
26483 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26485 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26486 else
26487 rm -f "$ac_file"
26488 mv "$tmp/config.h" "$ac_file" \
26489 || as_fn_error "could not create $ac_file" "$LINENO" 5
26491 else
26492 $as_echo "/* $configure_input */" \
26493 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26494 || as_fn_error "could not create -" "$LINENO" 5
26498 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26499 $as_echo "$as_me: executing $ac_file commands" >&6;}
26501 esac
26504 case $ac_file$ac_mode in
26505 "as":F) chmod +x as ;;
26506 "collect-ld":F) chmod +x collect-ld ;;
26507 "nm":F) chmod +x nm ;;
26508 "default":C)
26509 case ${CONFIG_HEADERS} in
26510 *auto-host.h:config.in*)
26511 echo > cstamp-h ;;
26512 esac
26513 # Make sure all the subdirs exist.
26514 for d in $subdirs doc build
26516 test -d $d || mkdir $d
26517 done
26520 esac
26521 done # for ac_tag
26524 as_fn_exit 0
26525 _ACEOF
26526 ac_clean_files=$ac_clean_files_save
26528 test $ac_write_fail = 0 ||
26529 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26532 # configure is writing to config.log, and then calls config.status.
26533 # config.status does its own redirection, appending to config.log.
26534 # Unfortunately, on DOS this fails, as config.log is still kept open
26535 # by configure, so config.status won't be able to write to it; its
26536 # output is simply discarded. So we exec the FD to /dev/null,
26537 # effectively closing config.log, so it can be properly (re)opened and
26538 # appended to by config.status. When coming back to configure, we
26539 # need to make the FD available again.
26540 if test "$no_create" != yes; then
26541 ac_cs_success=:
26542 ac_config_status_args=
26543 test "$silent" = yes &&
26544 ac_config_status_args="$ac_config_status_args --quiet"
26545 exec 5>/dev/null
26546 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26547 exec 5>>config.log
26548 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26549 # would make configure fail if this is the last instruction.
26550 $ac_cs_success || as_fn_exit $?
26552 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26554 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}