Merge lto branch into trunk.
[official-gcc.git] / gcc / configure
blobe4f3c2e0acdf483217cf2e2f2ea6f1b433d7cf3c
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 gcc_cv_ld
826 ORIGINAL_AS_FOR_TARGET
827 gcc_cv_as
828 enable_fast_install
829 objdir
830 CXXCPP
831 OTOOL64
832 OTOOL
833 LIPO
834 NMEDIT
835 DSYMUTIL
836 lt_ECHO
837 STRIP
838 OBJDUMP
839 ac_ct_DUMPBIN
840 DUMPBIN
842 FGREP
844 LIBTOOL
845 collect2
846 STMP_FIXINC
847 BUILD_LDFLAGS
848 BUILD_CFLAGS
849 CC_FOR_BUILD
850 inhibit_libc
851 SYSTEM_HEADER_DIR
853 CROSS
854 CATOBJEXT
855 GENCAT
856 INSTOBJEXT
857 DATADIRNAME
858 CATALOGS
859 POSUB
860 GMSGFMT
861 XGETTEXT
862 INCINTL
863 LIBINTL_DEP
864 LIBINTL
865 USE_NLS
866 extra_opt_files
867 extra_modes_file
868 gthread_flags
869 objext
870 manext
871 LIBICONV_DEP
872 LTLIBICONV
873 LIBICONV
874 LDEXP_LIB
875 GNAT_LIBEXC
876 COLLECT2_LIBS
879 BISON
880 FLEX
881 GENERATED_MANPAGES
882 BUILD_INFO
883 MAKEINFO
884 have_mktemp_command
885 make_compare_target
886 INSTALL_DATA
887 INSTALL_PROGRAM
888 INSTALL
889 ranlib_flags
890 RANLIB
892 LN_S
894 SET_MAKE
895 REPORT_BUGS_TEXI
896 REPORT_BUGS_TO
897 PKGVERSION
898 onestep
899 CROSS_SYSTEM_HEADER_DIR
900 TARGET_SYSTEM_ROOT_DEFINE
901 TARGET_SYSTEM_ROOT
902 enable_shared
903 enable_fixed_point
904 enable_decimal_float
905 enable_multilib
906 ENABLE_BUILD_WITH_CXX
907 coverage_flags
908 valgrind_command
909 valgrind_path_defines
910 valgrind_path
911 TREEBROWSER
912 nocommon_flag
913 warn_cxxflags
914 warn_cflags
915 c_strict_warn
916 strict_warn
917 c_loose_warn
918 loose_warn
919 EGREP
920 GREP
922 OUTPUT_OPTION
923 NO_MINUS_C_MINUS_O
924 GNATMAKE
925 GNATBIND
926 ac_ct_CXX
927 CXXFLAGS
929 OBJEXT
930 EXEEXT
931 ac_ct_CC
932 CPPFLAGS
933 LDFLAGS
934 CFLAGS
936 GENINSRC
937 target_subdir
938 host_subdir
939 build_subdir
940 build_libsubdir
941 target_noncanonical
942 target_os
943 target_vendor
944 target_cpu
945 target
946 host_os
947 host_vendor
948 host_cpu
949 host
950 build_os
951 build_vendor
952 build_cpu
953 build
954 target_alias
955 host_alias
956 build_alias
957 LIBS
958 ECHO_T
959 ECHO_N
960 ECHO_C
961 DEFS
962 mandir
963 localedir
964 libdir
965 psdir
966 pdfdir
967 dvidir
968 htmldir
969 infodir
970 docdir
971 oldincludedir
972 includedir
973 localstatedir
974 sharedstatedir
975 sysconfdir
976 datadir
977 datarootdir
978 libexecdir
979 sbindir
980 bindir
981 program_transform_name
982 prefix
983 exec_prefix
984 PACKAGE_URL
985 PACKAGE_BUGREPORT
986 PACKAGE_STRING
987 PACKAGE_VERSION
988 PACKAGE_TARNAME
989 PACKAGE_NAME
990 PATH_SEPARATOR
991 SHELL'
992 ac_subst_files='language_hooks'
993 ac_user_opts='
994 enable_option_checking
995 with_build_libsubdir
996 with_local_prefix
997 with_gxx_include_dir
998 with_cpp_install_dir
999 enable_generated_files_in_srcdir
1000 with_gnu_ld
1001 with_ld
1002 with_demangler_in_ld
1003 with_gnu_as
1004 with_as
1005 enable_werror_always
1006 enable_checking
1007 enable_coverage
1008 enable_gather_detailed_mem_stats
1009 enable_build_with_cxx
1010 with_stabs
1011 enable_multilib
1012 enable___cxa_atexit
1013 enable_decimal_float
1014 enable_fixed_point
1015 enable_threads
1016 enable_tls
1017 enable_objc_gc
1018 with_dwarf2
1019 enable_shared
1020 with_build_sysroot
1021 with_sysroot
1022 enable_intermodule
1023 with_pkgversion
1024 with_bugurl
1025 enable_languages
1026 with_multilib_list
1027 enable_rpath
1028 with_libiconv_prefix
1029 enable_initfini_array
1030 enable_sjlj_exceptions
1031 with_system_libunwind
1032 enable_secureplt
1033 enable_cld
1034 enable_win32_registry
1035 enable_static
1036 with_pic
1037 enable_fast_install
1038 enable_libtool_lock
1039 enable_gnu_unique_object
1040 enable_linker_build_id
1041 with_long_double_128
1042 with_gc
1043 with_system_zlib
1044 enable_maintainer_mode
1045 enable_version_specific_runtime_libs
1046 with_slibdir
1047 enable_plugin
1049 ac_precious_vars='build_alias
1050 host_alias
1051 target_alias
1053 CFLAGS
1054 LDFLAGS
1055 LIBS
1056 CPPFLAGS
1058 CXXFLAGS
1061 CXXCPP
1062 GMPLIBS
1063 GMPINC
1064 PPLLIBS
1065 PPLINC
1066 CLOOGLIBS
1067 CLOOGINC
1068 LIBELFLIBS
1069 LIBELFINC'
1072 # Initialize some variables set by options.
1073 ac_init_help=
1074 ac_init_version=false
1075 ac_unrecognized_opts=
1076 ac_unrecognized_sep=
1077 # The variables have the same names as the options, with
1078 # dashes changed to underlines.
1079 cache_file=/dev/null
1080 exec_prefix=NONE
1081 no_create=
1082 no_recursion=
1083 prefix=NONE
1084 program_prefix=NONE
1085 program_suffix=NONE
1086 program_transform_name=s,x,x,
1087 silent=
1088 site=
1089 srcdir=
1090 verbose=
1091 x_includes=NONE
1092 x_libraries=NONE
1094 # Installation directory options.
1095 # These are left unexpanded so users can "make install exec_prefix=/foo"
1096 # and all the variables that are supposed to be based on exec_prefix
1097 # by default will actually change.
1098 # Use braces instead of parens because sh, perl, etc. also accept them.
1099 # (The list follows the same order as the GNU Coding Standards.)
1100 bindir='${exec_prefix}/bin'
1101 sbindir='${exec_prefix}/sbin'
1102 libexecdir='${exec_prefix}/libexec'
1103 datarootdir='${prefix}/share'
1104 datadir='${datarootdir}'
1105 sysconfdir='${prefix}/etc'
1106 sharedstatedir='${prefix}/com'
1107 localstatedir='${prefix}/var'
1108 includedir='${prefix}/include'
1109 oldincludedir='/usr/include'
1110 docdir='${datarootdir}/doc/${PACKAGE}'
1111 infodir='${datarootdir}/info'
1112 htmldir='${docdir}'
1113 dvidir='${docdir}'
1114 pdfdir='${docdir}'
1115 psdir='${docdir}'
1116 libdir='${exec_prefix}/lib'
1117 localedir='${datarootdir}/locale'
1118 mandir='${datarootdir}/man'
1120 ac_prev=
1121 ac_dashdash=
1122 for ac_option
1124 # If the previous option needs an argument, assign it.
1125 if test -n "$ac_prev"; then
1126 eval $ac_prev=\$ac_option
1127 ac_prev=
1128 continue
1131 case $ac_option in
1132 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1133 *) ac_optarg=yes ;;
1134 esac
1136 # Accept the important Cygnus configure options, so we can diagnose typos.
1138 case $ac_dashdash$ac_option in
1140 ac_dashdash=yes ;;
1142 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1143 ac_prev=bindir ;;
1144 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1145 bindir=$ac_optarg ;;
1147 -build | --build | --buil | --bui | --bu)
1148 ac_prev=build_alias ;;
1149 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1150 build_alias=$ac_optarg ;;
1152 -cache-file | --cache-file | --cache-fil | --cache-fi \
1153 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1154 ac_prev=cache_file ;;
1155 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1156 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1157 cache_file=$ac_optarg ;;
1159 --config-cache | -C)
1160 cache_file=config.cache ;;
1162 -datadir | --datadir | --datadi | --datad)
1163 ac_prev=datadir ;;
1164 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1165 datadir=$ac_optarg ;;
1167 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1168 | --dataroo | --dataro | --datar)
1169 ac_prev=datarootdir ;;
1170 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1171 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1172 datarootdir=$ac_optarg ;;
1174 -disable-* | --disable-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid feature name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "enable_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval enable_$ac_useropt=no ;;
1190 -docdir | --docdir | --docdi | --doc | --do)
1191 ac_prev=docdir ;;
1192 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1193 docdir=$ac_optarg ;;
1195 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1196 ac_prev=dvidir ;;
1197 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1198 dvidir=$ac_optarg ;;
1200 -enable-* | --enable-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error "invalid feature name: $ac_useropt"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1209 "enable_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval enable_$ac_useropt=\$ac_optarg ;;
1216 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1217 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1218 | --exec | --exe | --ex)
1219 ac_prev=exec_prefix ;;
1220 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1221 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1222 | --exec=* | --exe=* | --ex=*)
1223 exec_prefix=$ac_optarg ;;
1225 -gas | --gas | --ga | --g)
1226 # Obsolete; use --with-gas.
1227 with_gas=yes ;;
1229 -help | --help | --hel | --he | -h)
1230 ac_init_help=long ;;
1231 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1232 ac_init_help=recursive ;;
1233 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1234 ac_init_help=short ;;
1236 -host | --host | --hos | --ho)
1237 ac_prev=host_alias ;;
1238 -host=* | --host=* | --hos=* | --ho=*)
1239 host_alias=$ac_optarg ;;
1241 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1242 ac_prev=htmldir ;;
1243 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1244 | --ht=*)
1245 htmldir=$ac_optarg ;;
1247 -includedir | --includedir | --includedi | --included | --include \
1248 | --includ | --inclu | --incl | --inc)
1249 ac_prev=includedir ;;
1250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1251 | --includ=* | --inclu=* | --incl=* | --inc=*)
1252 includedir=$ac_optarg ;;
1254 -infodir | --infodir | --infodi | --infod | --info | --inf)
1255 ac_prev=infodir ;;
1256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1257 infodir=$ac_optarg ;;
1259 -libdir | --libdir | --libdi | --libd)
1260 ac_prev=libdir ;;
1261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1262 libdir=$ac_optarg ;;
1264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1265 | --libexe | --libex | --libe)
1266 ac_prev=libexecdir ;;
1267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1268 | --libexe=* | --libex=* | --libe=*)
1269 libexecdir=$ac_optarg ;;
1271 -localedir | --localedir | --localedi | --localed | --locale)
1272 ac_prev=localedir ;;
1273 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1274 localedir=$ac_optarg ;;
1276 -localstatedir | --localstatedir | --localstatedi | --localstated \
1277 | --localstate | --localstat | --localsta | --localst | --locals)
1278 ac_prev=localstatedir ;;
1279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1280 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1281 localstatedir=$ac_optarg ;;
1283 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1284 ac_prev=mandir ;;
1285 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1286 mandir=$ac_optarg ;;
1288 -nfp | --nfp | --nf)
1289 # Obsolete; use --without-fp.
1290 with_fp=no ;;
1292 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1293 | --no-cr | --no-c | -n)
1294 no_create=yes ;;
1296 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1297 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1298 no_recursion=yes ;;
1300 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1301 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1302 | --oldin | --oldi | --old | --ol | --o)
1303 ac_prev=oldincludedir ;;
1304 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1305 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1306 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1307 oldincludedir=$ac_optarg ;;
1309 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1310 ac_prev=prefix ;;
1311 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1312 prefix=$ac_optarg ;;
1314 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1315 | --program-pre | --program-pr | --program-p)
1316 ac_prev=program_prefix ;;
1317 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1318 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1319 program_prefix=$ac_optarg ;;
1321 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1322 | --program-suf | --program-su | --program-s)
1323 ac_prev=program_suffix ;;
1324 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1325 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1326 program_suffix=$ac_optarg ;;
1328 -program-transform-name | --program-transform-name \
1329 | --program-transform-nam | --program-transform-na \
1330 | --program-transform-n | --program-transform- \
1331 | --program-transform | --program-transfor \
1332 | --program-transfo | --program-transf \
1333 | --program-trans | --program-tran \
1334 | --progr-tra | --program-tr | --program-t)
1335 ac_prev=program_transform_name ;;
1336 -program-transform-name=* | --program-transform-name=* \
1337 | --program-transform-nam=* | --program-transform-na=* \
1338 | --program-transform-n=* | --program-transform-=* \
1339 | --program-transform=* | --program-transfor=* \
1340 | --program-transfo=* | --program-transf=* \
1341 | --program-trans=* | --program-tran=* \
1342 | --progr-tra=* | --program-tr=* | --program-t=*)
1343 program_transform_name=$ac_optarg ;;
1345 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1346 ac_prev=pdfdir ;;
1347 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1348 pdfdir=$ac_optarg ;;
1350 -psdir | --psdir | --psdi | --psd | --ps)
1351 ac_prev=psdir ;;
1352 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1353 psdir=$ac_optarg ;;
1355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1356 | -silent | --silent | --silen | --sile | --sil)
1357 silent=yes ;;
1359 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1360 ac_prev=sbindir ;;
1361 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1362 | --sbi=* | --sb=*)
1363 sbindir=$ac_optarg ;;
1365 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1366 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1367 | --sharedst | --shareds | --shared | --share | --shar \
1368 | --sha | --sh)
1369 ac_prev=sharedstatedir ;;
1370 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1371 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1372 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1373 | --sha=* | --sh=*)
1374 sharedstatedir=$ac_optarg ;;
1376 -site | --site | --sit)
1377 ac_prev=site ;;
1378 -site=* | --site=* | --sit=*)
1379 site=$ac_optarg ;;
1381 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1382 ac_prev=srcdir ;;
1383 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1384 srcdir=$ac_optarg ;;
1386 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1387 | --syscon | --sysco | --sysc | --sys | --sy)
1388 ac_prev=sysconfdir ;;
1389 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1390 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1391 sysconfdir=$ac_optarg ;;
1393 -target | --target | --targe | --targ | --tar | --ta | --t)
1394 ac_prev=target_alias ;;
1395 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1396 target_alias=$ac_optarg ;;
1398 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1399 verbose=yes ;;
1401 -version | --version | --versio | --versi | --vers | -V)
1402 ac_init_version=: ;;
1404 -with-* | --with-*)
1405 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1406 # Reject names that are not valid shell variable names.
1407 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1408 as_fn_error "invalid package name: $ac_useropt"
1409 ac_useropt_orig=$ac_useropt
1410 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1411 case $ac_user_opts in
1413 "with_$ac_useropt"
1414 "*) ;;
1415 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1416 ac_unrecognized_sep=', ';;
1417 esac
1418 eval with_$ac_useropt=\$ac_optarg ;;
1420 -without-* | --without-*)
1421 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1422 # Reject names that are not valid shell variable names.
1423 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1424 as_fn_error "invalid package name: $ac_useropt"
1425 ac_useropt_orig=$ac_useropt
1426 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427 case $ac_user_opts in
1429 "with_$ac_useropt"
1430 "*) ;;
1431 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1432 ac_unrecognized_sep=', ';;
1433 esac
1434 eval with_$ac_useropt=no ;;
1436 --x)
1437 # Obsolete; use --with-x.
1438 with_x=yes ;;
1440 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1441 | --x-incl | --x-inc | --x-in | --x-i)
1442 ac_prev=x_includes ;;
1443 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1444 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1445 x_includes=$ac_optarg ;;
1447 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1448 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1449 ac_prev=x_libraries ;;
1450 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1451 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1452 x_libraries=$ac_optarg ;;
1454 -*) as_fn_error "unrecognized option: \`$ac_option'
1455 Try \`$0 --help' for more information."
1458 *=*)
1459 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1460 # Reject names that are not valid shell variable names.
1461 case $ac_envvar in #(
1462 '' | [0-9]* | *[!_$as_cr_alnum]* )
1463 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1464 esac
1465 eval $ac_envvar=\$ac_optarg
1466 export $ac_envvar ;;
1469 # FIXME: should be removed in autoconf 3.0.
1470 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1471 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1472 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1473 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1476 esac
1477 done
1479 if test -n "$ac_prev"; then
1480 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1481 as_fn_error "missing argument to $ac_option"
1484 if test -n "$ac_unrecognized_opts"; then
1485 case $enable_option_checking in
1486 no) ;;
1487 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1488 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1489 esac
1492 # Check all directory arguments for consistency.
1493 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1494 datadir sysconfdir sharedstatedir localstatedir includedir \
1495 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1496 libdir localedir mandir
1498 eval ac_val=\$$ac_var
1499 # Remove trailing slashes.
1500 case $ac_val in
1501 */ )
1502 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1503 eval $ac_var=\$ac_val;;
1504 esac
1505 # Be sure to have absolute directory names.
1506 case $ac_val in
1507 [\\/$]* | ?:[\\/]* ) continue;;
1508 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1509 esac
1510 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1511 done
1513 # There might be people who depend on the old broken behavior: `$host'
1514 # used to hold the argument of --host etc.
1515 # FIXME: To remove some day.
1516 build=$build_alias
1517 host=$host_alias
1518 target=$target_alias
1520 # FIXME: To remove some day.
1521 if test "x$host_alias" != x; then
1522 if test "x$build_alias" = x; then
1523 cross_compiling=maybe
1524 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1525 If a cross compiler is detected then cross compile mode will be used." >&2
1526 elif test "x$build_alias" != "x$host_alias"; then
1527 cross_compiling=yes
1531 ac_tool_prefix=
1532 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1534 test "$silent" = yes && exec 6>/dev/null
1537 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1538 ac_ls_di=`ls -di .` &&
1539 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1540 as_fn_error "working directory cannot be determined"
1541 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1542 as_fn_error "pwd does not report name of working directory"
1545 # Find the source files, if location was not specified.
1546 if test -z "$srcdir"; then
1547 ac_srcdir_defaulted=yes
1548 # Try the directory containing this script, then the parent directory.
1549 ac_confdir=`$as_dirname -- "$as_myself" ||
1550 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1551 X"$as_myself" : 'X\(//\)[^/]' \| \
1552 X"$as_myself" : 'X\(//\)$' \| \
1553 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1554 $as_echo X"$as_myself" |
1555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1556 s//\1/
1559 /^X\(\/\/\)[^/].*/{
1560 s//\1/
1563 /^X\(\/\/\)$/{
1564 s//\1/
1567 /^X\(\/\).*/{
1568 s//\1/
1571 s/.*/./; q'`
1572 srcdir=$ac_confdir
1573 if test ! -r "$srcdir/$ac_unique_file"; then
1574 srcdir=..
1576 else
1577 ac_srcdir_defaulted=no
1579 if test ! -r "$srcdir/$ac_unique_file"; then
1580 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1581 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1583 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1584 ac_abs_confdir=`(
1585 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1586 pwd)`
1587 # When building in place, set srcdir=.
1588 if test "$ac_abs_confdir" = "$ac_pwd"; then
1589 srcdir=.
1591 # Remove unnecessary trailing slashes from srcdir.
1592 # Double slashes in file names in object file debugging info
1593 # mess up M-x gdb in Emacs.
1594 case $srcdir in
1595 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1596 esac
1597 for ac_var in $ac_precious_vars; do
1598 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1599 eval ac_env_${ac_var}_value=\$${ac_var}
1600 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1601 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1602 done
1605 # Report the --help message.
1607 if test "$ac_init_help" = "long"; then
1608 # Omit some internal or obsolete options to make the list less imposing.
1609 # This message is too long to be a string in the A/UX 3.1 sh.
1610 cat <<_ACEOF
1611 \`configure' configures this package to adapt to many kinds of systems.
1613 Usage: $0 [OPTION]... [VAR=VALUE]...
1615 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1616 VAR=VALUE. See below for descriptions of some of the useful variables.
1618 Defaults for the options are specified in brackets.
1620 Configuration:
1621 -h, --help display this help and exit
1622 --help=short display options specific to this package
1623 --help=recursive display the short help of all the included packages
1624 -V, --version display version information and exit
1625 -q, --quiet, --silent do not print \`checking...' messages
1626 --cache-file=FILE cache test results in FILE [disabled]
1627 -C, --config-cache alias for \`--cache-file=config.cache'
1628 -n, --no-create do not create output files
1629 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1631 Installation directories:
1632 --prefix=PREFIX install architecture-independent files in PREFIX
1633 [$ac_default_prefix]
1634 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1635 [PREFIX]
1637 By default, \`make install' will install all the files in
1638 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1639 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1640 for instance \`--prefix=\$HOME'.
1642 For better control, use the options below.
1644 Fine tuning of the installation directories:
1645 --bindir=DIR user executables [EPREFIX/bin]
1646 --sbindir=DIR system admin executables [EPREFIX/sbin]
1647 --libexecdir=DIR program executables [EPREFIX/libexec]
1648 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1649 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1650 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1651 --libdir=DIR object code libraries [EPREFIX/lib]
1652 --includedir=DIR C header files [PREFIX/include]
1653 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1654 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1655 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1656 --infodir=DIR info documentation [DATAROOTDIR/info]
1657 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1658 --mandir=DIR man documentation [DATAROOTDIR/man]
1659 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1660 --htmldir=DIR html documentation [DOCDIR]
1661 --dvidir=DIR dvi documentation [DOCDIR]
1662 --pdfdir=DIR pdf documentation [DOCDIR]
1663 --psdir=DIR ps documentation [DOCDIR]
1664 _ACEOF
1666 cat <<\_ACEOF
1668 Program names:
1669 --program-prefix=PREFIX prepend PREFIX to installed program names
1670 --program-suffix=SUFFIX append SUFFIX to installed program names
1671 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1673 System types:
1674 --build=BUILD configure for building on BUILD [guessed]
1675 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1676 --target=TARGET configure for building compilers for TARGET [HOST]
1677 _ACEOF
1680 if test -n "$ac_init_help"; then
1682 cat <<\_ACEOF
1684 Optional Features:
1685 --disable-option-checking ignore unrecognized --enable/--with options
1686 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1687 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1688 --enable-generated-files-in-srcdir
1689 put copies of generated files in source dir
1690 intended for creating source tarballs for users
1691 without texinfo bison or flex.
1692 --enable-werror-always enable -Werror despite compiler version
1693 --enable-checking=LIST
1694 enable expensive run-time checks. With LIST,
1695 enable only specific categories of checks.
1696 Categories are: yes,no,all,none,release.
1697 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1698 rtlflag,rtl,runtime,tree,valgrind,types.
1699 --enable-coverage=LEVEL
1700 enable compiler's code coverage collection.
1701 Use to measure compiler performance and locate
1702 unused parts of the compiler. With LEVEL, specify
1703 optimization. Values are opt, noopt,
1704 default is noopt
1705 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1706 --enable-build-with-cxx build with C++ compiler instead of C compiler
1707 --enable-multilib enable library support for multiple ABIs
1708 --enable-__cxa_atexit enable __cxa_atexit for C++
1709 --enable-decimal-float={no,yes,bid,dpd}
1710 enable decimal float extension to C. Selecting 'bid'
1711 or 'dpd' choses which decimal floating point format
1712 to use
1713 --enable-fixed-point enable fixed-point arithmetic extension to C
1714 --enable-threads enable thread usage for target GCC
1715 --enable-threads=LIB use LIB thread package for target GCC
1716 --enable-tls enable or disable generation of tls code
1717 overriding the assembler check for tls support
1718 --enable-objc-gc enable the use of Boehm's garbage collector with
1719 the GNU Objective-C runtime
1720 --disable-shared don't provide a shared libgcc
1721 --enable-intermodule build the compiler in one step
1722 --enable-languages=LIST specify which front-ends to build
1723 --disable-rpath do not hardcode runtime library paths
1724 --enable-initfini-array use .init_array/.fini_array sections
1725 --enable-sjlj-exceptions
1726 arrange to use setjmp/longjmp exception handling
1727 --enable-secureplt enable -msecure-plt by default for PowerPC
1728 --enable-cld enable -mcld by default for 32bit x86
1729 --disable-win32-registry
1730 disable lookup of installation paths in the
1731 Registry on Windows hosts
1732 --enable-win32-registry enable registry lookup (default)
1733 --enable-win32-registry=KEY
1734 use KEY instead of GCC version as the last portion
1735 of the registry key
1736 --enable-shared[=PKGS] build shared libraries [default=yes]
1737 --enable-static[=PKGS] build static libraries [default=yes]
1738 --enable-fast-install[=PKGS]
1739 optimize for fast installation [default=yes]
1740 --disable-libtool-lock avoid locking (might break parallel builds)
1741 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1742 glibc systems
1743 --enable-linker-build-id
1744 compiler will always pass --build-id to linker
1745 --enable-maintainer-mode
1746 enable make rules and dependencies not useful
1747 (and sometimes confusing) to the casual installer
1748 --enable-version-specific-runtime-libs
1749 specify that runtime libraries should be
1750 installed in a compiler-specific directory
1751 --enable-plugin enable plugin support
1753 Optional Packages:
1754 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1755 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1756 --with-build-libsubdir=DIR Directory where to find libraries for build system
1757 --with-local-prefix=DIR specifies directory to put local include
1758 --with-gxx-include-dir=DIR
1759 specifies directory to put g++ header files
1760 --with-cpp-install-dir=DIR
1761 install the user visible C preprocessor in DIR
1762 (relative to PREFIX) as well as PREFIX/bin
1763 --with-gnu-ld arrange to work with GNU ld.
1764 --with-ld arrange to use the specified ld (full pathname)
1765 --with-demangler-in-ld try to use demangler in GNU ld.
1766 --with-gnu-as arrange to work with GNU as
1767 --with-as arrange to use the specified as (full pathname)
1768 --with-stabs arrange to use stabs instead of host debug format
1769 --with-dwarf2 force the default debug format to be DWARF 2
1770 --with-build-sysroot=sysroot
1771 use sysroot as the system root during the build
1772 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1773 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1774 --with-bugurl=URL Direct users to URL to report a bug
1775 --with-multilib-list Select multilibs (SH only)
1776 --with-gnu-ld assume the C compiler uses GNU ld default=no
1777 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1778 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1779 --with-system-libunwind use installed libunwind
1780 --with-pic try to use only PIC/non-PIC objects [default=use
1781 both]
1782 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1783 --with-long-double-128 Use 128-bit long double by default.
1784 --with-gc={page,zone} choose the garbage collection mechanism to use
1785 with the compiler
1786 --with-system-zlib use installed libz
1787 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1789 Some influential environment variables:
1790 CC C compiler command
1791 CFLAGS C compiler flags
1792 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1793 nonstandard directory <lib dir>
1794 LIBS libraries to pass to the linker, e.g. -l<library>
1795 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1796 you have headers in a nonstandard directory <include dir>
1797 CXX C++ compiler command
1798 CXXFLAGS C++ compiler flags
1799 CPP C preprocessor
1800 CXXCPP C++ preprocessor
1801 GMPLIBS How to link GMP
1802 GMPINC How to find GMP include files
1803 PPLLIBS How to link PPL
1804 PPLINC How to find PPL include files
1805 CLOOGLIBS How to link CLOOG
1806 CLOOGINC How to find CLOOG include files
1807 LIBELFLIBS How to link libelf
1808 LIBELFINC How to find libelf include files
1810 Use these variables to override the choices made by `configure' or to help
1811 it to find libraries and programs with nonstandard names/locations.
1813 Report bugs to the package provider.
1814 _ACEOF
1815 ac_status=$?
1818 if test "$ac_init_help" = "recursive"; then
1819 # If there are subdirs, report their specific --help.
1820 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1821 test -d "$ac_dir" ||
1822 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1823 continue
1824 ac_builddir=.
1826 case "$ac_dir" in
1827 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1829 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1830 # A ".." for each directory in $ac_dir_suffix.
1831 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1832 case $ac_top_builddir_sub in
1833 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1834 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1835 esac ;;
1836 esac
1837 ac_abs_top_builddir=$ac_pwd
1838 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1839 # for backward compatibility:
1840 ac_top_builddir=$ac_top_build_prefix
1842 case $srcdir in
1843 .) # We are building in place.
1844 ac_srcdir=.
1845 ac_top_srcdir=$ac_top_builddir_sub
1846 ac_abs_top_srcdir=$ac_pwd ;;
1847 [\\/]* | ?:[\\/]* ) # Absolute name.
1848 ac_srcdir=$srcdir$ac_dir_suffix;
1849 ac_top_srcdir=$srcdir
1850 ac_abs_top_srcdir=$srcdir ;;
1851 *) # Relative name.
1852 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1853 ac_top_srcdir=$ac_top_build_prefix$srcdir
1854 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1855 esac
1856 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1858 cd "$ac_dir" || { ac_status=$?; continue; }
1859 # Check for guested configure.
1860 if test -f "$ac_srcdir/configure.gnu"; then
1861 echo &&
1862 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1863 elif test -f "$ac_srcdir/configure"; then
1864 echo &&
1865 $SHELL "$ac_srcdir/configure" --help=recursive
1866 else
1867 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1868 fi || ac_status=$?
1869 cd "$ac_pwd" || { ac_status=$?; break; }
1870 done
1873 test -n "$ac_init_help" && exit $ac_status
1874 if $ac_init_version; then
1875 cat <<\_ACEOF
1876 configure
1877 generated by GNU Autoconf 2.64
1879 Copyright (C) 2009 Free Software Foundation, Inc.
1880 This configure script is free software; the Free Software Foundation
1881 gives unlimited permission to copy, distribute and modify it.
1882 _ACEOF
1883 exit
1886 ## ------------------------ ##
1887 ## Autoconf initialization. ##
1888 ## ------------------------ ##
1890 # ac_fn_c_try_compile LINENO
1891 # --------------------------
1892 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1893 ac_fn_c_try_compile ()
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 rm -f conftest.$ac_objext
1897 if { { ac_try="$ac_compile"
1898 case "(($ac_try" in
1899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1900 *) ac_try_echo=$ac_try;;
1901 esac
1902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1903 $as_echo "$ac_try_echo"; } >&5
1904 (eval "$ac_compile") 2>conftest.err
1905 ac_status=$?
1906 if test -s conftest.err; then
1907 grep -v '^ *+' conftest.err >conftest.er1
1908 cat conftest.er1 >&5
1909 mv -f conftest.er1 conftest.err
1911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1912 test $ac_status = 0; } && {
1913 test -z "$ac_c_werror_flag" ||
1914 test ! -s conftest.err
1915 } && test -s conftest.$ac_objext; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924 return $ac_retval
1926 } # ac_fn_c_try_compile
1928 # ac_fn_cxx_try_compile LINENO
1929 # ----------------------------
1930 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_cxx_try_compile ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext
1935 if { { ac_try="$ac_compile"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_compile") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_cxx_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest.$ac_objext; then :
1954 ac_retval=0
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1959 ac_retval=1
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 return $ac_retval
1964 } # ac_fn_cxx_try_compile
1966 # ac_fn_c_try_cpp LINENO
1967 # ----------------------
1968 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1969 ac_fn_c_try_cpp ()
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if { { ac_try="$ac_cpp conftest.$ac_ext"
1973 case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976 esac
1977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978 $as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1980 ac_status=$?
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } >/dev/null && {
1988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1989 test ! -s conftest.err
1990 }; then :
1991 ac_retval=0
1992 else
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 ac_retval=1
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1999 return $ac_retval
2001 } # ac_fn_c_try_cpp
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_header_mongrel ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2015 $as_echo_n "(cached) " >&6
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2031 else
2032 ac_header_compiler=no
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2047 else
2048 ac_header_preproc=no
2050 rm -f conftest.err conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 yes:no: )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062 no:yes:* )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2074 esac
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2076 $as_echo_n "checking for $2... " >&6; }
2077 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078 $as_echo_n "(cached) " >&6
2079 else
2080 eval "$3=\$ac_header_compiler"
2082 eval ac_res=\$$3
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 } # ac_fn_c_check_header_mongrel
2090 # ac_fn_c_try_run LINENO
2091 # ----------------------
2092 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2093 # that executables *can* be run.
2094 ac_fn_c_try_run ()
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 if { { ac_try="$ac_link"
2098 case "(($ac_try" in
2099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2100 *) ac_try_echo=$ac_try;;
2101 esac
2102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2103 $as_echo "$ac_try_echo"; } >&5
2104 (eval "$ac_link") 2>&5
2105 ac_status=$?
2106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2107 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2108 { { case "(($ac_try" in
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2111 esac
2112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113 $as_echo "$ac_try_echo"; } >&5
2114 (eval "$ac_try") 2>&5
2115 ac_status=$?
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; }; }; then :
2118 ac_retval=0
2119 else
2120 $as_echo "$as_me: program exited with status $ac_status" >&5
2121 $as_echo "$as_me: failed program was:" >&5
2122 sed 's/^/| /' conftest.$ac_ext >&5
2124 ac_retval=$ac_status
2126 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128 return $ac_retval
2130 } # ac_fn_c_try_run
2132 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2133 # -------------------------------------------------------
2134 # Tests whether HEADER exists and can be compiled using the include files in
2135 # INCLUDES, setting the cache variable VAR accordingly.
2136 ac_fn_c_check_header_compile ()
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2142 $as_echo_n "(cached) " >&6
2143 else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2147 #include <$2>
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 eval "$3=yes"
2151 else
2152 eval "$3=no"
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 eval ac_res=\$$3
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161 } # ac_fn_c_check_header_compile
2163 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2164 # --------------------------------------------
2165 # Tries to find the compile-time value of EXPR in a program that includes
2166 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2167 # computed
2168 ac_fn_c_compute_int ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 if test "$cross_compiling" = yes; then
2172 # Depending upon the size, compute the lo and hi bounds.
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2177 main ()
2179 static int test_array [1 - 2 * !(($2) >= 0)];
2180 test_array [0] = 0
2183 return 0;
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_lo=0 ac_mid=0
2188 while :; do
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2193 main ()
2195 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2196 test_array [0] = 0
2199 return 0;
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 ac_hi=$ac_mid; break
2204 else
2205 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2206 if test $ac_lo -le $ac_mid; then
2207 ac_lo= ac_hi=
2208 break
2210 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 done
2214 else
2215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2216 /* end confdefs.h. */
2219 main ()
2221 static int test_array [1 - 2 * !(($2) < 0)];
2222 test_array [0] = 0
2225 return 0;
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229 ac_hi=-1 ac_mid=-1
2230 while :; do
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2235 main ()
2237 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2238 test_array [0] = 0
2241 return 0;
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 ac_lo=$ac_mid; break
2246 else
2247 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2248 if test $ac_mid -le $ac_hi; then
2249 ac_lo= ac_hi=
2250 break
2252 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 done
2256 else
2257 ac_lo= ac_hi=
2259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 # Binary search between lo and hi bounds.
2263 while test "x$ac_lo" != "x$ac_hi"; do
2264 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2269 main ()
2271 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2272 test_array [0] = 0
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 ac_hi=$ac_mid
2280 else
2281 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 done
2285 case $ac_lo in #((
2286 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2287 '') ac_retval=1 ;;
2288 esac
2289 else
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291 /* end confdefs.h. */
2293 static long int longval () { return $2; }
2294 static unsigned long int ulongval () { return $2; }
2295 #include <stdio.h>
2296 #include <stdlib.h>
2298 main ()
2301 FILE *f = fopen ("conftest.val", "w");
2302 if (! f)
2303 return 1;
2304 if (($2) < 0)
2306 long int i = longval ();
2307 if (i != ($2))
2308 return 1;
2309 fprintf (f, "%ld", i);
2311 else
2313 unsigned long int i = ulongval ();
2314 if (i != ($2))
2315 return 1;
2316 fprintf (f, "%lu", i);
2318 /* Do not output a trailing newline, as this causes \r\n confusion
2319 on some platforms. */
2320 return ferror (f) || fclose (f) != 0;
2323 return 0;
2325 _ACEOF
2326 if ac_fn_c_try_run "$LINENO"; then :
2327 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2328 else
2329 ac_retval=1
2331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2332 conftest.$ac_objext conftest.beam conftest.$ac_ext
2333 rm -f conftest.val
2336 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2337 return $ac_retval
2339 } # ac_fn_c_compute_int
2341 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2342 # -------------------------------------------
2343 # Tests whether TYPE exists after having included INCLUDES, setting cache
2344 # variable VAR accordingly.
2345 ac_fn_c_check_type ()
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2349 $as_echo_n "checking for $2... " >&6; }
2350 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2351 $as_echo_n "(cached) " >&6
2352 else
2353 eval "$3=no"
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h. */
2358 main ()
2360 if (sizeof ($2))
2361 return 0;
2363 return 0;
2365 _ACEOF
2366 if ac_fn_c_try_compile "$LINENO"; then :
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2371 main ()
2373 if (sizeof (($2)))
2374 return 0;
2376 return 0;
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"; then :
2381 else
2382 eval "$3=yes"
2384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2388 eval ac_res=\$$3
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2390 $as_echo "$ac_res" >&6; }
2391 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2393 } # ac_fn_c_check_type
2395 # ac_fn_c_find_intX_t LINENO BITS VAR
2396 # -----------------------------------
2397 # Finds a signed integer type with width BITS, setting cache variable VAR
2398 # accordingly.
2399 ac_fn_c_find_intX_t ()
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2403 $as_echo_n "checking for int$2_t... " >&6; }
2404 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2405 $as_echo_n "(cached) " >&6
2406 else
2407 eval "$3=no"
2408 for ac_type in int$2_t 'int' 'long int' \
2409 'long long int' 'short int' 'signed char'; do
2410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411 /* end confdefs.h. */
2412 $ac_includes_default
2414 main ()
2416 static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1))];
2417 test_array [0] = 0
2420 return 0;
2422 _ACEOF
2423 if ac_fn_c_try_compile "$LINENO"; then :
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2426 $ac_includes_default
2428 main ()
2430 static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 1)
2431 < ($ac_type) (((($ac_type) 1 << ($2 - 2)) - 1) * 2 + 2))];
2432 test_array [0] = 0
2435 return 0;
2437 _ACEOF
2438 if ac_fn_c_try_compile "$LINENO"; then :
2440 else
2441 case $ac_type in #(
2442 int$2_t) :
2443 eval "$3=yes" ;; #(
2444 *) :
2445 eval "$3=\$ac_type" ;;
2446 esac
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 eval as_val=\$$3
2452 if test "x$as_val" = x""no; then :
2454 else
2455 break
2457 done
2459 eval ac_res=\$$3
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2461 $as_echo "$ac_res" >&6; }
2462 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2464 } # ac_fn_c_find_intX_t
2466 # ac_fn_c_try_link LINENO
2467 # -----------------------
2468 # Try to link conftest.$ac_ext, and return whether this succeeded.
2469 ac_fn_c_try_link ()
2471 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472 rm -f conftest.$ac_objext conftest$ac_exeext
2473 if { { ac_try="$ac_link"
2474 case "(($ac_try" in
2475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2476 *) ac_try_echo=$ac_try;;
2477 esac
2478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2479 $as_echo "$ac_try_echo"; } >&5
2480 (eval "$ac_link") 2>conftest.err
2481 ac_status=$?
2482 if test -s conftest.err; then
2483 grep -v '^ *+' conftest.err >conftest.er1
2484 cat conftest.er1 >&5
2485 mv -f conftest.er1 conftest.err
2487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2488 test $ac_status = 0; } && {
2489 test -z "$ac_c_werror_flag" ||
2490 test ! -s conftest.err
2491 } && test -s conftest$ac_exeext && {
2492 test "$cross_compiling" = yes ||
2493 $as_test_x conftest$ac_exeext
2494 }; then :
2495 ac_retval=0
2496 else
2497 $as_echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2500 ac_retval=1
2502 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2503 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2504 # interfere with the next link command; also delete a directory that is
2505 # left behind by Apple's compiler. We do this before executing the actions.
2506 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2507 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2508 return $ac_retval
2510 } # ac_fn_c_try_link
2512 # ac_fn_c_find_uintX_t LINENO BITS VAR
2513 # ------------------------------------
2514 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2515 # accordingly.
2516 ac_fn_c_find_uintX_t ()
2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2520 $as_echo_n "checking for uint$2_t... " >&6; }
2521 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2522 $as_echo_n "(cached) " >&6
2523 else
2524 eval "$3=no"
2525 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2526 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2529 $ac_includes_default
2531 main ()
2533 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
2534 test_array [0] = 0
2537 return 0;
2539 _ACEOF
2540 if ac_fn_c_try_compile "$LINENO"; then :
2541 case $ac_type in #(
2542 uint$2_t) :
2543 eval "$3=yes" ;; #(
2544 *) :
2545 eval "$3=\$ac_type" ;;
2546 esac
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549 eval as_val=\$$3
2550 if test "x$as_val" = x""no; then :
2552 else
2553 break
2555 done
2557 eval ac_res=\$$3
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2560 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562 } # ac_fn_c_find_uintX_t
2564 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2565 # ----------------------------------------------
2566 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2567 ac_fn_c_check_header_preproc ()
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2571 $as_echo_n "checking for $2... " >&6; }
2572 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2573 $as_echo_n "(cached) " >&6
2574 else
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 #include <$2>
2578 _ACEOF
2579 if ac_fn_c_try_cpp "$LINENO"; then :
2580 eval "$3=yes"
2581 else
2582 eval "$3=no"
2584 rm -f conftest.err conftest.$ac_ext
2586 eval ac_res=\$$3
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2591 } # ac_fn_c_check_header_preproc
2593 # ac_fn_c_check_func LINENO FUNC VAR
2594 # ----------------------------------
2595 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2596 ac_fn_c_check_func ()
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2600 $as_echo_n "checking for $2... " >&6; }
2601 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2606 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2608 #define $2 innocuous_$2
2610 /* System header to define __stub macros and hopefully few prototypes,
2611 which can conflict with char $2 (); below.
2612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2613 <limits.h> exists even on freestanding compilers. */
2615 #ifdef __STDC__
2616 # include <limits.h>
2617 #else
2618 # include <assert.h>
2619 #endif
2621 #undef $2
2623 /* Override any GCC internal prototype to avoid an error.
2624 Use char because int might match the return type of a GCC
2625 builtin and then its argument prototype would still apply. */
2626 #ifdef __cplusplus
2627 extern "C"
2628 #endif
2629 char $2 ();
2630 /* The GNU C library defines this for functions which it implements
2631 to always fail with ENOSYS. Some functions are actually named
2632 something starting with __ and the normal name is an alias. */
2633 #if defined __stub_$2 || defined __stub___$2
2634 choke me
2635 #endif
2638 main ()
2640 return $2 ();
2642 return 0;
2644 _ACEOF
2645 if ac_fn_c_try_link "$LINENO"; then :
2646 eval "$3=yes"
2647 else
2648 eval "$3=no"
2650 rm -f core conftest.err conftest.$ac_objext \
2651 conftest$ac_exeext conftest.$ac_ext
2653 eval ac_res=\$$3
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2655 $as_echo "$ac_res" >&6; }
2656 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2658 } # ac_fn_c_check_func
2660 # ac_fn_cxx_try_cpp LINENO
2661 # ------------------------
2662 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2663 ac_fn_cxx_try_cpp ()
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 if { { ac_try="$ac_cpp conftest.$ac_ext"
2667 case "(($ac_try" in
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2670 esac
2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2672 $as_echo "$ac_try_echo"; } >&5
2673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2674 ac_status=$?
2675 if test -s conftest.err; then
2676 grep -v '^ *+' conftest.err >conftest.er1
2677 cat conftest.er1 >&5
2678 mv -f conftest.er1 conftest.err
2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681 test $ac_status = 0; } >/dev/null && {
2682 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2683 test ! -s conftest.err
2684 }; then :
2685 ac_retval=0
2686 else
2687 $as_echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2690 ac_retval=1
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2693 return $ac_retval
2695 } # ac_fn_cxx_try_cpp
2697 # ac_fn_cxx_try_link LINENO
2698 # -------------------------
2699 # Try to link conftest.$ac_ext, and return whether this succeeded.
2700 ac_fn_cxx_try_link ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 rm -f conftest.$ac_objext conftest$ac_exeext
2704 if { { ac_try="$ac_link"
2705 case "(($ac_try" in
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2708 esac
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_link") 2>conftest.err
2712 ac_status=$?
2713 if test -s conftest.err; then
2714 grep -v '^ *+' conftest.err >conftest.er1
2715 cat conftest.er1 >&5
2716 mv -f conftest.er1 conftest.err
2718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2719 test $ac_status = 0; } && {
2720 test -z "$ac_cxx_werror_flag" ||
2721 test ! -s conftest.err
2722 } && test -s conftest$ac_exeext && {
2723 test "$cross_compiling" = yes ||
2724 $as_test_x conftest$ac_exeext
2725 }; then :
2726 ac_retval=0
2727 else
2728 $as_echo "$as_me: failed program was:" >&5
2729 sed 's/^/| /' conftest.$ac_ext >&5
2731 ac_retval=1
2733 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2734 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2735 # interfere with the next link command; also delete a directory that is
2736 # left behind by Apple's compiler. We do this before executing the actions.
2737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2738 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2739 return $ac_retval
2741 } # ac_fn_cxx_try_link
2742 cat >config.log <<_ACEOF
2743 This file contains any messages produced by compilers while
2744 running configure, to aid debugging if configure makes a mistake.
2746 It was created by $as_me, which was
2747 generated by GNU Autoconf 2.64. Invocation command line was
2749 $ $0 $@
2751 _ACEOF
2752 exec 5>>config.log
2754 cat <<_ASUNAME
2755 ## --------- ##
2756 ## Platform. ##
2757 ## --------- ##
2759 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2760 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2761 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2762 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2763 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2765 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2766 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2768 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2769 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2770 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2771 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2772 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2773 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2774 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2776 _ASUNAME
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 $as_echo "PATH: $as_dir"
2784 done
2785 IFS=$as_save_IFS
2787 } >&5
2789 cat >&5 <<_ACEOF
2792 ## ----------- ##
2793 ## Core tests. ##
2794 ## ----------- ##
2796 _ACEOF
2799 # Keep a trace of the command line.
2800 # Strip out --no-create and --no-recursion so they do not pile up.
2801 # Strip out --silent because we don't want to record it for future runs.
2802 # Also quote any args containing shell meta-characters.
2803 # Make two passes to allow for proper duplicate-argument suppression.
2804 ac_configure_args=
2805 ac_configure_args0=
2806 ac_configure_args1=
2807 ac_must_keep_next=false
2808 for ac_pass in 1 2
2810 for ac_arg
2812 case $ac_arg in
2813 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2814 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2815 | -silent | --silent | --silen | --sile | --sil)
2816 continue ;;
2817 *\'*)
2818 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2819 esac
2820 case $ac_pass in
2821 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2823 as_fn_append ac_configure_args1 " '$ac_arg'"
2824 if test $ac_must_keep_next = true; then
2825 ac_must_keep_next=false # Got value, back to normal.
2826 else
2827 case $ac_arg in
2828 *=* | --config-cache | -C | -disable-* | --disable-* \
2829 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2830 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2831 | -with-* | --with-* | -without-* | --without-* | --x)
2832 case "$ac_configure_args0 " in
2833 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2834 esac
2836 -* ) ac_must_keep_next=true ;;
2837 esac
2839 as_fn_append ac_configure_args " '$ac_arg'"
2841 esac
2842 done
2843 done
2844 { ac_configure_args0=; unset ac_configure_args0;}
2845 { ac_configure_args1=; unset ac_configure_args1;}
2847 # When interrupted or exit'd, cleanup temporary files, and complete
2848 # config.log. We remove comments because anyway the quotes in there
2849 # would cause problems or look ugly.
2850 # WARNING: Use '\'' to represent an apostrophe within the trap.
2851 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2852 trap 'exit_status=$?
2853 # Save into config.log some information that might help in debugging.
2855 echo
2857 cat <<\_ASBOX
2858 ## ---------------- ##
2859 ## Cache variables. ##
2860 ## ---------------- ##
2861 _ASBOX
2862 echo
2863 # The following way of writing the cache mishandles newlines in values,
2865 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2866 eval ac_val=\$$ac_var
2867 case $ac_val in #(
2868 *${as_nl}*)
2869 case $ac_var in #(
2870 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2871 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2872 esac
2873 case $ac_var in #(
2874 _ | IFS | as_nl) ;; #(
2875 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2876 *) { eval $ac_var=; unset $ac_var;} ;;
2877 esac ;;
2878 esac
2879 done
2880 (set) 2>&1 |
2881 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2882 *${as_nl}ac_space=\ *)
2883 sed -n \
2884 "s/'\''/'\''\\\\'\'''\''/g;
2885 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2886 ;; #(
2888 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2890 esac |
2891 sort
2893 echo
2895 cat <<\_ASBOX
2896 ## ----------------- ##
2897 ## Output variables. ##
2898 ## ----------------- ##
2899 _ASBOX
2900 echo
2901 for ac_var in $ac_subst_vars
2903 eval ac_val=\$$ac_var
2904 case $ac_val in
2905 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2906 esac
2907 $as_echo "$ac_var='\''$ac_val'\''"
2908 done | sort
2909 echo
2911 if test -n "$ac_subst_files"; then
2912 cat <<\_ASBOX
2913 ## ------------------- ##
2914 ## File substitutions. ##
2915 ## ------------------- ##
2916 _ASBOX
2917 echo
2918 for ac_var in $ac_subst_files
2920 eval ac_val=\$$ac_var
2921 case $ac_val in
2922 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2923 esac
2924 $as_echo "$ac_var='\''$ac_val'\''"
2925 done | sort
2926 echo
2929 if test -s confdefs.h; then
2930 cat <<\_ASBOX
2931 ## ----------- ##
2932 ## confdefs.h. ##
2933 ## ----------- ##
2934 _ASBOX
2935 echo
2936 cat confdefs.h
2937 echo
2939 test "$ac_signal" != 0 &&
2940 $as_echo "$as_me: caught signal $ac_signal"
2941 $as_echo "$as_me: exit $exit_status"
2942 } >&5
2943 rm -f core *.core core.conftest.* &&
2944 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2945 exit $exit_status
2947 for ac_signal in 1 2 13 15; do
2948 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2949 done
2950 ac_signal=0
2952 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2953 rm -f -r conftest* confdefs.h
2955 $as_echo "/* confdefs.h */" > confdefs.h
2957 # Predefined preprocessor variables.
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_NAME "$PACKAGE_NAME"
2961 _ACEOF
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2965 _ACEOF
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2969 _ACEOF
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_STRING "$PACKAGE_STRING"
2973 _ACEOF
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2977 _ACEOF
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_URL "$PACKAGE_URL"
2981 _ACEOF
2984 # Let the site file select an alternate cache file if it wants to.
2985 # Prefer an explicitly selected file to automatically selected ones.
2986 ac_site_file1=NONE
2987 ac_site_file2=NONE
2988 if test -n "$CONFIG_SITE"; then
2989 ac_site_file1=$CONFIG_SITE
2990 elif test "x$prefix" != xNONE; then
2991 ac_site_file1=$prefix/share/config.site
2992 ac_site_file2=$prefix/etc/config.site
2993 else
2994 ac_site_file1=$ac_default_prefix/share/config.site
2995 ac_site_file2=$ac_default_prefix/etc/config.site
2997 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2999 test "x$ac_site_file" = xNONE && continue
3000 if test -r "$ac_site_file"; then
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3002 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3003 sed 's/^/| /' "$ac_site_file" >&5
3004 . "$ac_site_file"
3006 done
3008 if test -r "$cache_file"; then
3009 # Some versions of bash will fail to source /dev/null (special
3010 # files actually), so we avoid doing that.
3011 if test -f "$cache_file"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3013 $as_echo "$as_me: loading cache $cache_file" >&6;}
3014 case $cache_file in
3015 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3016 *) . "./$cache_file";;
3017 esac
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3021 $as_echo "$as_me: creating cache $cache_file" >&6;}
3022 >$cache_file
3025 # Check that the precious variables saved in the cache have kept the same
3026 # value.
3027 ac_cache_corrupted=false
3028 for ac_var in $ac_precious_vars; do
3029 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3030 eval ac_new_set=\$ac_env_${ac_var}_set
3031 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3032 eval ac_new_val=\$ac_env_${ac_var}_value
3033 case $ac_old_set,$ac_new_set in
3034 set,)
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3036 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3037 ac_cache_corrupted=: ;;
3038 ,set)
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3040 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3041 ac_cache_corrupted=: ;;
3042 ,);;
3044 if test "x$ac_old_val" != "x$ac_new_val"; then
3045 # differences in whitespace do not lead to failure.
3046 ac_old_val_w=`echo x $ac_old_val`
3047 ac_new_val_w=`echo x $ac_new_val`
3048 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3050 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3051 ac_cache_corrupted=:
3052 else
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3054 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3055 eval $ac_var=\$ac_old_val
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3058 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3060 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3061 fi;;
3062 esac
3063 # Pass precious variables to config.status.
3064 if test "$ac_new_set" = set; then
3065 case $ac_new_val in
3066 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3067 *) ac_arg=$ac_var=$ac_new_val ;;
3068 esac
3069 case " $ac_configure_args " in
3070 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3071 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3072 esac
3074 done
3075 if $ac_cache_corrupted; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3079 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3080 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3082 ## -------------------- ##
3083 ## Main body of script. ##
3084 ## -------------------- ##
3086 ac_ext=c
3087 ac_cpp='$CPP $CPPFLAGS'
3088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097 ac_config_headers="$ac_config_headers auto-host.h:config.in"
3100 gcc_version=`cat $srcdir/BASE-VER`
3102 # Determine the host, build, and target systems
3103 ac_aux_dir=
3104 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3105 for ac_t in install-sh install.sh shtool; do
3106 if test -f "$ac_dir/$ac_t"; then
3107 ac_aux_dir=$ac_dir
3108 ac_install_sh="$ac_aux_dir/$ac_t -c"
3109 break 2
3111 done
3112 done
3113 if test -z "$ac_aux_dir"; then
3114 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3117 # These three variables are undocumented and unsupported,
3118 # and are intended to be withdrawn in a future Autoconf release.
3119 # They can cause serious problems if a builder's source tree is in a directory
3120 # whose full name contains unusual characters.
3121 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3122 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3123 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3126 # Make sure we can run config.sub.
3127 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3128 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3131 $as_echo_n "checking build system type... " >&6; }
3132 if test "${ac_cv_build+set}" = set; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 ac_build_alias=$build_alias
3136 test "x$ac_build_alias" = x &&
3137 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3138 test "x$ac_build_alias" = x &&
3139 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3141 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3145 $as_echo "$ac_cv_build" >&6; }
3146 case $ac_cv_build in
3147 *-*-*) ;;
3148 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3149 esac
3150 build=$ac_cv_build
3151 ac_save_IFS=$IFS; IFS='-'
3152 set x $ac_cv_build
3153 shift
3154 build_cpu=$1
3155 build_vendor=$2
3156 shift; shift
3157 # Remember, the first character of IFS is used to create $*,
3158 # except with old shells:
3159 build_os=$*
3160 IFS=$ac_save_IFS
3161 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3165 $as_echo_n "checking host system type... " >&6; }
3166 if test "${ac_cv_host+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test "x$host_alias" = x; then
3170 ac_cv_host=$ac_cv_build
3171 else
3172 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3173 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3178 $as_echo "$ac_cv_host" >&6; }
3179 case $ac_cv_host in
3180 *-*-*) ;;
3181 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3182 esac
3183 host=$ac_cv_host
3184 ac_save_IFS=$IFS; IFS='-'
3185 set x $ac_cv_host
3186 shift
3187 host_cpu=$1
3188 host_vendor=$2
3189 shift; shift
3190 # Remember, the first character of IFS is used to create $*,
3191 # except with old shells:
3192 host_os=$*
3193 IFS=$ac_save_IFS
3194 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3198 $as_echo_n "checking target system type... " >&6; }
3199 if test "${ac_cv_target+set}" = set; then :
3200 $as_echo_n "(cached) " >&6
3201 else
3202 if test "x$target_alias" = x; then
3203 ac_cv_target=$ac_cv_host
3204 else
3205 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3206 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3211 $as_echo "$ac_cv_target" >&6; }
3212 case $ac_cv_target in
3213 *-*-*) ;;
3214 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3215 esac
3216 target=$ac_cv_target
3217 ac_save_IFS=$IFS; IFS='-'
3218 set x $ac_cv_target
3219 shift
3220 target_cpu=$1
3221 target_vendor=$2
3222 shift; shift
3223 # Remember, the first character of IFS is used to create $*,
3224 # except with old shells:
3225 target_os=$*
3226 IFS=$ac_save_IFS
3227 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3230 # The aliases save the names the user supplied, while $host etc.
3231 # will get canonicalized.
3232 test -n "$target_alias" &&
3233 test "$program_prefix$program_suffix$program_transform_name" = \
3234 NONENONEs,x,x, &&
3235 program_prefix=${target_alias}-
3237 # Determine the noncanonical target name, for directory use.
3238 case ${build_alias} in
3239 "") build_noncanonical=${build} ;;
3240 *) build_noncanonical=${build_alias} ;;
3241 esac
3243 case ${host_alias} in
3244 "") host_noncanonical=${build_noncanonical} ;;
3245 *) host_noncanonical=${host_alias} ;;
3246 esac
3248 case ${target_alias} in
3249 "") target_noncanonical=${host_noncanonical} ;;
3250 *) target_noncanonical=${target_alias} ;;
3251 esac
3256 # Determine the target- and build-specific subdirectories
3258 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3259 # have matching libraries, they should use host libraries: Makefile.tpl
3260 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3261 # However, they still use the build modules, because the corresponding
3262 # host modules (e.g. bison) are only built for the host when bootstrap
3263 # finishes. So:
3264 # - build_subdir is where we find build modules, and never changes.
3265 # - build_libsubdir is where we find build libraries, and can be overridden.
3267 # Prefix 'build-' so this never conflicts with target_subdir.
3268 build_subdir="build-${build_noncanonical}"
3270 # Check whether --with-build-libsubdir was given.
3271 if test "${with_build_libsubdir+set}" = set; then :
3272 withval=$with_build_libsubdir; build_libsubdir="$withval"
3273 else
3274 build_libsubdir="$build_subdir"
3277 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3278 if ( test $srcdir = . && test -d gcc ) \
3279 || test -d $srcdir/../host-${host_noncanonical}; then
3280 host_subdir="host-${host_noncanonical}"
3281 else
3282 host_subdir=.
3284 # No prefix.
3285 target_subdir=${target_noncanonical}
3288 # Set program_transform_name
3289 test "$program_prefix" != NONE &&
3290 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3291 # Use a double $ so make ignores it.
3292 test "$program_suffix" != NONE &&
3293 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3294 # Double any \ or $.
3295 # By default was `s,x,x', remove it if useless.
3296 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3297 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3300 # Check for bogus environment variables.
3301 # Test if LIBRARY_PATH contains the notation for the current directory
3302 # since this would lead to problems installing/building glibc.
3303 # LIBRARY_PATH contains the current directory if one of the following
3304 # is true:
3305 # - one of the terminals (":" and ";") is the first or last sign
3306 # - two terminals occur directly after each other
3307 # - the path contains an element with a dot in it
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3309 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3310 case ${LIBRARY_PATH} in
3311 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3312 library_path_setting="contains current directory"
3315 library_path_setting="ok"
3317 esac
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3319 $as_echo "$library_path_setting" >&6; }
3320 if test "$library_path_setting" != "ok"; then
3321 as_fn_error "
3322 *** LIBRARY_PATH shouldn't contain the current directory when
3323 *** building gcc. Please change the environment variable
3324 *** and run configure again." "$LINENO" 5
3327 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3328 # since this would lead to problems installing/building glibc.
3329 # GCC_EXEC_PREFIX contains the current directory if one of the following
3330 # is true:
3331 # - one of the terminals (":" and ";") is the first or last sign
3332 # - two terminals occur directly after each other
3333 # - the path contains an element with a dot in it
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3335 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3336 case ${GCC_EXEC_PREFIX} in
3337 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3338 gcc_exec_prefix_setting="contains current directory"
3341 gcc_exec_prefix_setting="ok"
3343 esac
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3345 $as_echo "$gcc_exec_prefix_setting" >&6; }
3346 if test "$gcc_exec_prefix_setting" != "ok"; then
3347 as_fn_error "
3348 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3349 *** building gcc. Please change the environment variable
3350 *** and run configure again." "$LINENO" 5
3353 # -----------
3354 # Directories
3355 # -----------
3357 # Specify the local prefix
3358 local_prefix=
3360 # Check whether --with-local-prefix was given.
3361 if test "${with_local_prefix+set}" = set; then :
3362 withval=$with_local_prefix; case "${withval}" in
3363 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3364 no) ;;
3365 *) local_prefix=$with_local_prefix ;;
3366 esac
3370 # Default local prefix if it is empty
3371 if test x$local_prefix = x; then
3372 local_prefix=/usr/local
3375 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3376 # passed in by the toplevel make and thus we'd get different behavior
3377 # depending on where we built the sources.
3378 gcc_gxx_include_dir=
3379 # Specify the g++ header file directory
3381 # Check whether --with-gxx-include-dir was given.
3382 if test "${with_gxx_include_dir+set}" = set; then :
3383 withval=$with_gxx_include_dir; case "${withval}" in
3384 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3385 no) ;;
3386 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3387 esac
3391 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3392 if test x${gcc_gxx_include_dir} = x; then
3393 if test x${enable_version_specific_runtime_libs} = xyes; then
3394 gcc_gxx_include_dir='${libsubdir}/include/c++'
3395 else
3396 libstdcxx_incdir='include/c++/$(version)'
3397 if test x$host != x$target; then
3398 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3400 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3405 # Check whether --with-cpp_install_dir was given.
3406 if test "${with_cpp_install_dir+set}" = set; then :
3407 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3408 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3409 elif test x$withval != xno; then
3410 cpp_install_dir=$withval
3415 # We would like to our source tree to be readonly. However when releases or
3416 # pre-releases are generated, the flex/bison generated files as well as the
3417 # various formats of manuals need to be included along with the rest of the
3418 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3419 # just that.
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3422 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3423 # Check whether --enable-generated-files-in-srcdir was given.
3424 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3425 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3426 else
3427 generated_files_in_srcdir=no
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3432 $as_echo "$generated_files_in_srcdir" >&6; }
3434 if test "$generated_files_in_srcdir" = "yes"; then
3435 GENINSRC=''
3436 else
3437 GENINSRC='#'
3441 # -------------------
3442 # Find default linker
3443 # -------------------
3445 # With GNU ld
3447 # Check whether --with-gnu-ld was given.
3448 if test "${with_gnu_ld+set}" = set; then :
3449 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3450 else
3451 gnu_ld_flag=no
3455 # With pre-defined ld
3457 # Check whether --with-ld was given.
3458 if test "${with_ld+set}" = set; then :
3459 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3462 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3463 if test ! -x "$DEFAULT_LINKER"; then
3464 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3465 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3466 gnu_ld_flag=yes
3469 cat >>confdefs.h <<_ACEOF
3470 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3471 _ACEOF
3475 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3477 cat >>confdefs.h <<_ACEOF
3478 #define HAVE_GNU_LD $gnu_ld
3479 _ACEOF
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3483 $as_echo_n "checking whether a default linker was specified... " >&6; }
3484 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3485 if test x"$gnu_ld_flag" = x"no"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3487 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3488 else
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3490 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3492 else
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3497 # With demangler in GNU ld
3499 # Check whether --with-demangler-in-ld was given.
3500 if test "${with_demangler_in_ld+set}" = set; then :
3501 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3502 else
3503 demangler_in_ld=no
3507 # ----------------------
3508 # Find default assembler
3509 # ----------------------
3511 # With GNU as
3513 # Check whether --with-gnu-as was given.
3514 if test "${with_gnu_as+set}" = set; then :
3515 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3516 else
3517 gas_flag=no
3522 # Check whether --with-as was given.
3523 if test "${with_as+set}" = set; then :
3524 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3527 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3528 if test ! -x "$DEFAULT_ASSEMBLER"; then
3529 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3530 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3531 gas_flag=yes
3534 cat >>confdefs.h <<_ACEOF
3535 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3536 _ACEOF
3540 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3542 cat >>confdefs.h <<_ACEOF
3543 #define HAVE_GNU_AS $gnu_as
3544 _ACEOF
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3548 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3549 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3550 if test x"$gas_flag" = x"no"; then
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3552 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3553 else
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3555 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3557 else
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559 $as_echo "no" >&6; }
3562 # ---------------
3563 # Find C compiler
3564 # ---------------
3566 # If a non-executable a.out is present (e.g. created by GNU as above even if
3567 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3568 # file, even when creating an executable, so an execution test fails.
3569 # Remove possible default executable files to avoid this.
3571 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3572 # Autoconf includes it.
3573 rm -f a.out a.exe b.out
3575 # Find the native compiler
3576 ac_ext=c
3577 ac_cpp='$CPP $CPPFLAGS'
3578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581 if test -n "$ac_tool_prefix"; then
3582 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3583 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_CC+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 break 2
3603 done
3604 done
3605 IFS=$as_save_IFS
3609 CC=$ac_cv_prog_CC
3610 if test -n "$CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3613 else
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3620 if test -z "$ac_cv_prog_CC"; then
3621 ac_ct_CC=$CC
3622 # Extract the first word of "gcc", so it can be a program name with args.
3623 set dummy gcc; ac_word=$2
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3625 $as_echo_n "checking for $ac_word... " >&6; }
3626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 if test -n "$ac_ct_CC"; then
3630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3631 else
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 ac_cv_prog_ac_ct_CC="gcc"
3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3643 done
3644 done
3645 IFS=$as_save_IFS
3649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3650 if test -n "$ac_ct_CC"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3652 $as_echo "$ac_ct_CC" >&6; }
3653 else
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3658 if test "x$ac_ct_CC" = x; then
3659 CC=""
3660 else
3661 case $cross_compiling:$ac_tool_warned in
3662 yes:)
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3666 esac
3667 CC=$ac_ct_CC
3669 else
3670 CC="$ac_cv_prog_CC"
3673 if test -z "$CC"; then
3674 if test -n "$ac_tool_prefix"; then
3675 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3676 set dummy ${ac_tool_prefix}cc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_CC="${ac_tool_prefix}cc"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3696 done
3697 done
3698 IFS=$as_save_IFS
3702 CC=$ac_cv_prog_CC
3703 if test -n "$CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3705 $as_echo "$CC" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3714 if test -z "$CC"; then
3715 # Extract the first word of "cc", so it can be a program name with args.
3716 set dummy cc; ac_word=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if test "${ac_cv_prog_CC+set}" = set; then :
3720 $as_echo_n "(cached) " >&6
3721 else
3722 if test -n "$CC"; then
3723 ac_cv_prog_CC="$CC" # Let the user override the test.
3724 else
3725 ac_prog_rejected=no
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3729 IFS=$as_save_IFS
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3734 ac_prog_rejected=yes
3735 continue
3737 ac_cv_prog_CC="cc"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3741 done
3742 done
3743 IFS=$as_save_IFS
3745 if test $ac_prog_rejected = yes; then
3746 # We found a bogon in the path, so make sure we never use it.
3747 set dummy $ac_cv_prog_CC
3748 shift
3749 if test $# != 0; then
3750 # We chose a different compiler from the bogus one.
3751 # However, it has the same basename, so the bogon will be chosen
3752 # first if we set CC to just the basename; use the full file name.
3753 shift
3754 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3770 if test -z "$CC"; then
3771 if test -n "$ac_tool_prefix"; then
3772 for ac_prog in cl.exe
3774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if test "${ac_cv_prog_CC+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 if test -n "$CC"; then
3782 ac_cv_prog_CC="$CC" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3795 done
3796 done
3797 IFS=$as_save_IFS
3801 CC=$ac_cv_prog_CC
3802 if test -n "$CC"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3804 $as_echo "$CC" >&6; }
3805 else
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3811 test -n "$CC" && break
3812 done
3814 if test -z "$CC"; then
3815 ac_ct_CC=$CC
3816 for ac_prog in cl.exe
3818 # Extract the first word of "$ac_prog", so it can be a program name with args.
3819 set dummy $ac_prog; ac_word=$2
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3824 else
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827 else
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_ac_ct_CC="$ac_prog"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3839 done
3840 done
3841 IFS=$as_save_IFS
3845 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3846 if test -n "$ac_ct_CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848 $as_echo "$ac_ct_CC" >&6; }
3849 else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 $as_echo "no" >&6; }
3855 test -n "$ac_ct_CC" && break
3856 done
3858 if test "x$ac_ct_CC" = x; then
3859 CC=""
3860 else
3861 case $cross_compiling:$ac_tool_warned in
3862 yes:)
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3865 ac_tool_warned=yes ;;
3866 esac
3867 CC=$ac_ct_CC
3874 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error "no acceptable C compiler found in \$PATH
3877 See \`config.log' for more details." "$LINENO" 5; }
3879 # Provide some information about the compiler.
3880 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3881 set X $ac_compile
3882 ac_compiler=$2
3883 for ac_option in --version -v -V -qversion; do
3884 { { ac_try="$ac_compiler $ac_option >&5"
3885 case "(($ac_try" in
3886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887 *) ac_try_echo=$ac_try;;
3888 esac
3889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3890 $as_echo "$ac_try_echo"; } >&5
3891 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3892 ac_status=$?
3893 if test -s conftest.err; then
3894 sed '10a\
3895 ... rest of stderr output deleted ...
3896 10q' conftest.err >conftest.er1
3897 cat conftest.er1 >&5
3898 rm -f conftest.er1 conftest.err
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3902 done
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3908 main ()
3912 return 0;
3914 _ACEOF
3915 ac_clean_files_save=$ac_clean_files
3916 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3917 # Try to create an executable without -o first, disregard a.out.
3918 # It will help us diagnose broken compilers, and finding out an intuition
3919 # of exeext.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3921 $as_echo_n "checking for C compiler default output file name... " >&6; }
3922 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3924 # The possible output files:
3925 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3927 ac_rmfiles=
3928 for ac_file in $ac_files
3930 case $ac_file in
3931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3932 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3933 esac
3934 done
3935 rm -f $ac_rmfiles
3937 if { { ac_try="$ac_link_default"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944 (eval "$ac_link_default") 2>&5
3945 ac_status=$?
3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947 test $ac_status = 0; }; then :
3948 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3949 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3950 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3951 # so that the user can short-circuit this test for compilers unknown to
3952 # Autoconf.
3953 for ac_file in $ac_files ''
3955 test -f "$ac_file" || continue
3956 case $ac_file in
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3959 [ab].out )
3960 # We found the default executable, but exeext='' is most
3961 # certainly right.
3962 break;;
3963 *.* )
3964 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3965 then :; else
3966 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3968 # We set ac_cv_exeext here because the later test for it is not
3969 # safe: cross compilers may not add the suffix if given an `-o'
3970 # argument, so we may need to know it at that point already.
3971 # Even if this section looks crufty: it has the advantage of
3972 # actually working.
3973 break;;
3975 break;;
3976 esac
3977 done
3978 test "$ac_cv_exeext" = no && ac_cv_exeext=
3980 else
3981 ac_file=''
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3984 $as_echo "$ac_file" >&6; }
3985 if test -z "$ac_file"; then :
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's/^/| /' conftest.$ac_ext >&5
3989 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3990 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3991 { as_fn_set_status 77
3992 as_fn_error "C compiler cannot create executables
3993 See \`config.log' for more details." "$LINENO" 5; }; }
3995 ac_exeext=$ac_cv_exeext
3997 # Check that the compiler produces executables we can run. If not, either
3998 # the compiler is broken, or we cross compile.
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4000 $as_echo_n "checking whether the C compiler works... " >&6; }
4001 # If not cross compiling, check that we can run a simple program.
4002 if test "$cross_compiling" != yes; then
4003 if { ac_try='./$ac_file'
4004 { { case "(($ac_try" in
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4007 esac
4008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4009 $as_echo "$ac_try_echo"; } >&5
4010 (eval "$ac_try") 2>&5
4011 ac_status=$?
4012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4013 test $ac_status = 0; }; }; then
4014 cross_compiling=no
4015 else
4016 if test "$cross_compiling" = maybe; then
4017 cross_compiling=yes
4018 else
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot run C compiled programs.
4022 If you meant to cross compile, use \`--host'.
4023 See \`config.log' for more details." "$LINENO" 5; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4028 $as_echo "yes" >&6; }
4030 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4031 ac_clean_files=$ac_clean_files_save
4032 # Check that the compiler produces executables we can run. If not, either
4033 # the compiler is broken, or we cross compile.
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4035 $as_echo_n "checking whether we are cross compiling... " >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4037 $as_echo "$cross_compiling" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4040 $as_echo_n "checking for suffix of executables... " >&6; }
4041 if { { ac_try="$ac_link"
4042 case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045 esac
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_link") 2>&5
4049 ac_status=$?
4050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051 test $ac_status = 0; }; then :
4052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4054 # work properly (i.e., refer to `conftest.exe'), while it won't with
4055 # `rm'.
4056 for ac_file in conftest.exe conftest conftest.*; do
4057 test -f "$ac_file" || continue
4058 case $ac_file in
4059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4061 break;;
4062 * ) break;;
4063 esac
4064 done
4065 else
4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4068 as_fn_error "cannot compute suffix of executables: cannot compile and link
4069 See \`config.log' for more details." "$LINENO" 5; }
4071 rm -f conftest$ac_cv_exeext
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4073 $as_echo "$ac_cv_exeext" >&6; }
4075 rm -f conftest.$ac_ext
4076 EXEEXT=$ac_cv_exeext
4077 ac_exeext=$EXEEXT
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4079 $as_echo_n "checking for suffix of object files... " >&6; }
4080 if test "${ac_cv_objext+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4087 main ()
4091 return 0;
4093 _ACEOF
4094 rm -f conftest.o conftest.obj
4095 if { { ac_try="$ac_compile"
4096 case "(($ac_try" in
4097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098 *) ac_try_echo=$ac_try;;
4099 esac
4100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101 $as_echo "$ac_try_echo"; } >&5
4102 (eval "$ac_compile") 2>&5
4103 ac_status=$?
4104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105 test $ac_status = 0; }; then :
4106 for ac_file in conftest.o conftest.obj conftest.*; do
4107 test -f "$ac_file" || continue;
4108 case $ac_file in
4109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4111 break;;
4112 esac
4113 done
4114 else
4115 $as_echo "$as_me: failed program was:" >&5
4116 sed 's/^/| /' conftest.$ac_ext >&5
4118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4120 as_fn_error "cannot compute suffix of object files: cannot compile
4121 See \`config.log' for more details." "$LINENO" 5; }
4123 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4126 $as_echo "$ac_cv_objext" >&6; }
4127 OBJEXT=$ac_cv_objext
4128 ac_objext=$OBJEXT
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4130 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4131 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h. */
4138 main ()
4140 #ifndef __GNUC__
4141 choke me
4142 #endif
4145 return 0;
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_compiler_gnu=yes
4150 else
4151 ac_compiler_gnu=no
4153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4154 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4158 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4159 if test $ac_compiler_gnu = yes; then
4160 GCC=yes
4161 else
4162 GCC=
4164 ac_test_CFLAGS=${CFLAGS+set}
4165 ac_save_CFLAGS=$CFLAGS
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4167 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4168 if test "${ac_cv_prog_cc_g+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 ac_save_c_werror_flag=$ac_c_werror_flag
4172 ac_c_werror_flag=yes
4173 ac_cv_prog_cc_g=no
4174 CFLAGS="-g"
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176 /* end confdefs.h. */
4179 main ()
4183 return 0;
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187 ac_cv_prog_cc_g=yes
4188 else
4189 CFLAGS=""
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4194 main ()
4198 return 0;
4200 _ACEOF
4201 if ac_fn_c_try_compile "$LINENO"; then :
4203 else
4204 ac_c_werror_flag=$ac_save_c_werror_flag
4205 CFLAGS="-g"
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 main ()
4214 return 0;
4216 _ACEOF
4217 if ac_fn_c_try_compile "$LINENO"; then :
4218 ac_cv_prog_cc_g=yes
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4225 ac_c_werror_flag=$ac_save_c_werror_flag
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4228 $as_echo "$ac_cv_prog_cc_g" >&6; }
4229 if test "$ac_test_CFLAGS" = set; then
4230 CFLAGS=$ac_save_CFLAGS
4231 elif test $ac_cv_prog_cc_g = yes; then
4232 if test "$GCC" = yes; then
4233 CFLAGS="-g -O2"
4234 else
4235 CFLAGS="-g"
4237 else
4238 if test "$GCC" = yes; then
4239 CFLAGS="-O2"
4240 else
4241 CFLAGS=
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4245 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4246 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248 else
4249 ac_cv_prog_cc_c89=no
4250 ac_save_CC=$CC
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253 #include <stdarg.h>
4254 #include <stdio.h>
4255 #include <sys/types.h>
4256 #include <sys/stat.h>
4257 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4258 struct buf { int x; };
4259 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4260 static char *e (p, i)
4261 char **p;
4262 int i;
4264 return p[i];
4266 static char *f (char * (*g) (char **, int), char **p, ...)
4268 char *s;
4269 va_list v;
4270 va_start (v,p);
4271 s = g (p, va_arg (v,int));
4272 va_end (v);
4273 return s;
4276 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4277 function prototypes and stuff, but not '\xHH' hex character constants.
4278 These don't provoke an error unfortunately, instead are silently treated
4279 as 'x'. The following induces an error, until -std is added to get
4280 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4281 array size at least. It's necessary to write '\x00'==0 to get something
4282 that's true only with -std. */
4283 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4285 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4286 inside strings and character constants. */
4287 #define FOO(x) 'x'
4288 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4290 int test (int i, double x);
4291 struct s1 {int (*f) (int a);};
4292 struct s2 {int (*f) (double a);};
4293 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4294 int argc;
4295 char **argv;
4297 main ()
4299 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4301 return 0;
4303 _ACEOF
4304 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4305 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4307 CC="$ac_save_CC $ac_arg"
4308 if ac_fn_c_try_compile "$LINENO"; then :
4309 ac_cv_prog_cc_c89=$ac_arg
4311 rm -f core conftest.err conftest.$ac_objext
4312 test "x$ac_cv_prog_cc_c89" != "xno" && break
4313 done
4314 rm -f conftest.$ac_ext
4315 CC=$ac_save_CC
4318 # AC_CACHE_VAL
4319 case "x$ac_cv_prog_cc_c89" in
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4322 $as_echo "none needed" >&6; } ;;
4323 xno)
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4325 $as_echo "unsupported" >&6; } ;;
4327 CC="$CC $ac_cv_prog_cc_c89"
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4329 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4330 esac
4331 if test "x$ac_cv_prog_cc_c89" != xno; then :
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341 if test "x$CC" != xcc; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4343 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4344 else
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4346 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4348 set dummy $CC; ac_cc=`$as_echo "$2" |
4349 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4350 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h. */
4357 main ()
4361 return 0;
4363 _ACEOF
4364 # Make sure it works both with $CC and with simple cc.
4365 # We do the test twice because some compilers refuse to overwrite an
4366 # existing .o file with -o, though they will create one.
4367 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4368 rm -f conftest2.*
4369 if { { case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372 esac
4373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374 $as_echo "$ac_try_echo"; } >&5
4375 (eval "$ac_try") 2>&5
4376 ac_status=$?
4377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378 test $ac_status = 0; } &&
4379 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_try") 2>&5
4386 ac_status=$?
4387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388 test $ac_status = 0; };
4389 then
4390 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4391 if test "x$CC" != xcc; then
4392 # Test first that cc exists at all.
4393 if { ac_try='cc -c conftest.$ac_ext >&5'
4394 { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
4401 ac_status=$?
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; }; then
4404 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4405 rm -f conftest2.*
4406 if { { case "(($ac_try" in
4407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408 *) ac_try_echo=$ac_try;;
4409 esac
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412 (eval "$ac_try") 2>&5
4413 ac_status=$?
4414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415 test $ac_status = 0; } &&
4416 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422 (eval "$ac_try") 2>&5
4423 ac_status=$?
4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425 test $ac_status = 0; };
4426 then
4427 # cc works too.
4429 else
4430 # cc exists but doesn't like -o.
4431 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4435 else
4436 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4438 rm -f core conftest*
4441 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443 $as_echo "yes" >&6; }
4444 else
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4448 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4452 # expand $ac_aux_dir to an absolute path
4453 am_aux_dir=`cd $ac_aux_dir && pwd`
4455 # FIXME: we rely on the cache variable name because
4456 # there is no other way.
4457 set dummy $CC
4458 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4459 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4460 if test "$am_t" != yes; then
4461 # Losing compiler, so override with the script.
4462 # FIXME: It is wrong to rewrite CC.
4463 # But if we don't then we get into trouble of one sort or another.
4464 # A longer-term fix would be to have automake use am__CC in this case,
4465 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4466 CC="$am_aux_dir/compile $CC"
4470 ac_ext=cpp
4471 ac_cpp='$CXXCPP $CPPFLAGS'
4472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4475 if test -z "$CXX"; then
4476 if test -n "$CCC"; then
4477 CXX=$CCC
4478 else
4479 if test -n "$ac_tool_prefix"; then
4480 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if test "${ac_cv_prog_CXX+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 if test -n "$CXX"; then
4490 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4503 done
4504 done
4505 IFS=$as_save_IFS
4509 CXX=$ac_cv_prog_CXX
4510 if test -n "$CXX"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4512 $as_echo "$CXX" >&6; }
4513 else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4519 test -n "$CXX" && break
4520 done
4522 if test -z "$CXX"; then
4523 ac_ct_CXX=$CXX
4524 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$ac_ct_CXX"; then
4534 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_ac_ct_CXX="$ac_prog"
4544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4549 IFS=$as_save_IFS
4553 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4554 if test -n "$ac_ct_CXX"; then
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4556 $as_echo "$ac_ct_CXX" >&6; }
4557 else
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4563 test -n "$ac_ct_CXX" && break
4564 done
4566 if test "x$ac_ct_CXX" = x; then
4567 CXX="g++"
4568 else
4569 case $cross_compiling:$ac_tool_warned in
4570 yes:)
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4573 ac_tool_warned=yes ;;
4574 esac
4575 CXX=$ac_ct_CXX
4581 # Provide some information about the compiler.
4582 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4583 set X $ac_compile
4584 ac_compiler=$2
4585 for ac_option in --version -v -V -qversion; do
4586 { { ac_try="$ac_compiler $ac_option >&5"
4587 case "(($ac_try" in
4588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4590 esac
4591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4594 ac_status=$?
4595 if test -s conftest.err; then
4596 sed '10a\
4597 ... rest of stderr output deleted ...
4598 10q' conftest.err >conftest.er1
4599 cat conftest.er1 >&5
4600 rm -f conftest.er1 conftest.err
4602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4603 test $ac_status = 0; }
4604 done
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4607 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4608 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4615 main ()
4617 #ifndef __GNUC__
4618 choke me
4619 #endif
4622 return 0;
4624 _ACEOF
4625 if ac_fn_cxx_try_compile "$LINENO"; then :
4626 ac_compiler_gnu=yes
4627 else
4628 ac_compiler_gnu=no
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4635 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4636 if test $ac_compiler_gnu = yes; then
4637 GXX=yes
4638 else
4639 GXX=
4641 ac_test_CXXFLAGS=${CXXFLAGS+set}
4642 ac_save_CXXFLAGS=$CXXFLAGS
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4644 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4645 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4649 ac_cxx_werror_flag=yes
4650 ac_cv_prog_cxx_g=no
4651 CXXFLAGS="-g"
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4656 main ()
4660 return 0;
4662 _ACEOF
4663 if ac_fn_cxx_try_compile "$LINENO"; then :
4664 ac_cv_prog_cxx_g=yes
4665 else
4666 CXXFLAGS=""
4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4671 main ()
4675 return 0;
4677 _ACEOF
4678 if ac_fn_cxx_try_compile "$LINENO"; then :
4680 else
4681 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4682 CXXFLAGS="-g"
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4687 main ()
4691 return 0;
4693 _ACEOF
4694 if ac_fn_cxx_try_compile "$LINENO"; then :
4695 ac_cv_prog_cxx_g=yes
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4705 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4706 if test "$ac_test_CXXFLAGS" = set; then
4707 CXXFLAGS=$ac_save_CXXFLAGS
4708 elif test $ac_cv_prog_cxx_g = yes; then
4709 if test "$GXX" = yes; then
4710 CXXFLAGS="-g -O2"
4711 else
4712 CXXFLAGS="-g"
4714 else
4715 if test "$GXX" = yes; then
4716 CXXFLAGS="-O2"
4717 else
4718 CXXFLAGS=
4721 ac_ext=c
4722 ac_cpp='$CPP $CPPFLAGS'
4723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4734 $as_echo_n "checking for $ac_word... " >&6; }
4735 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4737 else
4738 if test -n "$GNATBIND"; then
4739 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4740 else
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_exec_ext in '' $ac_executable_extensions; do
4747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4748 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4750 break 2
4752 done
4753 done
4754 IFS=$as_save_IFS
4758 GNATBIND=$ac_cv_prog_GNATBIND
4759 if test -n "$GNATBIND"; then
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4761 $as_echo "$GNATBIND" >&6; }
4762 else
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 $as_echo "no" >&6; }
4769 if test -z "$ac_cv_prog_GNATBIND"; then
4770 ac_ct_GNATBIND=$GNATBIND
4771 # Extract the first word of "gnatbind", so it can be a program name with args.
4772 set dummy gnatbind; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -n "$ac_ct_GNATBIND"; then
4779 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790 break 2
4792 done
4793 done
4794 IFS=$as_save_IFS
4798 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4799 if test -n "$ac_ct_GNATBIND"; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4801 $as_echo "$ac_ct_GNATBIND" >&6; }
4802 else
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4807 if test "x$ac_ct_GNATBIND" = x; then
4808 GNATBIND="no"
4809 else
4810 case $cross_compiling:$ac_tool_warned in
4811 yes:)
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4814 ac_tool_warned=yes ;;
4815 esac
4816 GNATBIND=$ac_ct_GNATBIND
4818 else
4819 GNATBIND="$ac_cv_prog_GNATBIND"
4822 if test -n "$ac_tool_prefix"; then
4823 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4824 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 if test -n "$GNATMAKE"; then
4831 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 break 2
4844 done
4845 done
4846 IFS=$as_save_IFS
4850 GNATMAKE=$ac_cv_prog_GNATMAKE
4851 if test -n "$GNATMAKE"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4853 $as_echo "$GNATMAKE" >&6; }
4854 else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4861 if test -z "$ac_cv_prog_GNATMAKE"; then
4862 ac_ct_GNATMAKE=$GNATMAKE
4863 # Extract the first word of "gnatmake", so it can be a program name with args.
4864 set dummy gnatmake; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$ac_ct_GNATMAKE"; then
4871 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4884 done
4885 done
4886 IFS=$as_save_IFS
4890 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4891 if test -n "$ac_ct_GNATMAKE"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4893 $as_echo "$ac_ct_GNATMAKE" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4899 if test "x$ac_ct_GNATMAKE" = x; then
4900 GNATMAKE="no"
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903 yes:)
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4907 esac
4908 GNATMAKE=$ac_ct_GNATMAKE
4910 else
4911 GNATMAKE="$ac_cv_prog_GNATMAKE"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4915 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4916 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4917 $as_echo_n "(cached) " >&6
4918 else
4919 cat >conftest.adb <<EOF
4920 procedure conftest is begin null; end conftest;
4922 acx_cv_cc_gcc_supports_ada=no
4923 # There is a bug in old released versions of GCC which causes the
4924 # driver to exit successfully when the appropriate language module
4925 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4926 # Therefore we must check for the error message as well as an
4927 # unsuccessful exit.
4928 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4929 # given a .adb file, but produce no object file. So we must check
4930 # if an object file was really produced to guard against this.
4931 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4932 if test x"$errors" = x && test -f conftest.$ac_objext; then
4933 acx_cv_cc_gcc_supports_ada=yes
4935 rm -f conftest.*
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4938 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4940 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4941 have_gnat=yes
4942 else
4943 have_gnat=no
4947 # autoconf is lame and doesn't give us any substitution variable for this.
4948 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4949 NO_MINUS_C_MINUS_O=yes
4950 else
4951 OUTPUT_OPTION='-o $@'
4956 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4957 # optimizations to be activated explicitly by the toplevel.
4958 case "$CC" in
4959 */prev-gcc/xgcc*) ;;
4960 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4961 esac
4964 # -------------------------
4965 # Check C compiler features
4966 # -------------------------
4969 ac_ext=c
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4975 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4976 # On Suns, sometimes $CPP names a directory.
4977 if test -n "$CPP" && test -d "$CPP"; then
4978 CPP=
4980 if test -z "$CPP"; then
4981 if test "${ac_cv_prog_CPP+set}" = set; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 # Double quotes because CPP needs to be expanded
4985 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4987 ac_preproc_ok=false
4988 for ac_c_preproc_warn_flag in '' yes
4990 # Use a header file that comes with gcc, so configuring glibc
4991 # with a fresh cross-compiler works.
4992 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4993 # <limits.h> exists even on freestanding compilers.
4994 # On the NeXT, cc -E runs the code through the compiler's parser,
4995 # not just through cpp. "Syntax error" is here to catch this case.
4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997 /* end confdefs.h. */
4998 #ifdef __STDC__
4999 # include <limits.h>
5000 #else
5001 # include <assert.h>
5002 #endif
5003 Syntax error
5004 _ACEOF
5005 if ac_fn_c_try_cpp "$LINENO"; then :
5007 else
5008 # Broken: fails on valid input.
5009 continue
5011 rm -f conftest.err conftest.$ac_ext
5013 # OK, works on sane cases. Now check whether nonexistent headers
5014 # can be detected and how.
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017 #include <ac_nonexistent.h>
5018 _ACEOF
5019 if ac_fn_c_try_cpp "$LINENO"; then :
5020 # Broken: success on invalid input.
5021 continue
5022 else
5023 # Passes both tests.
5024 ac_preproc_ok=:
5025 break
5027 rm -f conftest.err conftest.$ac_ext
5029 done
5030 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5031 rm -f conftest.err conftest.$ac_ext
5032 if $ac_preproc_ok; then :
5033 break
5036 done
5037 ac_cv_prog_CPP=$CPP
5040 CPP=$ac_cv_prog_CPP
5041 else
5042 ac_cv_prog_CPP=$CPP
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5045 $as_echo "$CPP" >&6; }
5046 ac_preproc_ok=false
5047 for ac_c_preproc_warn_flag in '' yes
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #ifdef __STDC__
5058 # include <limits.h>
5059 #else
5060 # include <assert.h>
5061 #endif
5062 Syntax error
5063 _ACEOF
5064 if ac_fn_c_try_cpp "$LINENO"; then :
5066 else
5067 # Broken: fails on valid input.
5068 continue
5070 rm -f conftest.err conftest.$ac_ext
5072 # OK, works on sane cases. Now check whether nonexistent headers
5073 # can be detected and how.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <ac_nonexistent.h>
5077 _ACEOF
5078 if ac_fn_c_try_cpp "$LINENO"; then :
5079 # Broken: success on invalid input.
5080 continue
5081 else
5082 # Passes both tests.
5083 ac_preproc_ok=:
5084 break
5086 rm -f conftest.err conftest.$ac_ext
5088 done
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.$ac_ext
5091 if $ac_preproc_ok; then :
5093 else
5094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5097 See \`config.log' for more details." "$LINENO" 5; }
5100 ac_ext=c
5101 ac_cpp='$CPP $CPPFLAGS'
5102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5108 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5109 if test "${ac_cv_path_GREP+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -z "$GREP"; then
5113 ac_path_GREP_found=false
5114 # Loop through the user's path and test for each of PROGNAME-LIST
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_prog in grep ggrep; do
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5123 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5124 # Check for GNU ac_path_GREP and select it if it is found.
5125 # Check for GNU $ac_path_GREP
5126 case `"$ac_path_GREP" --version 2>&1` in
5127 *GNU*)
5128 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5130 ac_count=0
5131 $as_echo_n 0123456789 >"conftest.in"
5132 while :
5134 cat "conftest.in" "conftest.in" >"conftest.tmp"
5135 mv "conftest.tmp" "conftest.in"
5136 cp "conftest.in" "conftest.nl"
5137 $as_echo 'GREP' >> "conftest.nl"
5138 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5139 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5140 as_fn_arith $ac_count + 1 && ac_count=$as_val
5141 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5142 # Best one so far, save it but keep looking for a better one
5143 ac_cv_path_GREP="$ac_path_GREP"
5144 ac_path_GREP_max=$ac_count
5146 # 10*(2^10) chars as input seems more than enough
5147 test $ac_count -gt 10 && break
5148 done
5149 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5150 esac
5152 $ac_path_GREP_found && break 3
5153 done
5154 done
5155 done
5156 IFS=$as_save_IFS
5157 if test -z "$ac_cv_path_GREP"; then
5158 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5160 else
5161 ac_cv_path_GREP=$GREP
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5166 $as_echo "$ac_cv_path_GREP" >&6; }
5167 GREP="$ac_cv_path_GREP"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5171 $as_echo_n "checking for egrep... " >&6; }
5172 if test "${ac_cv_path_EGREP+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5174 else
5175 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5176 then ac_cv_path_EGREP="$GREP -E"
5177 else
5178 if test -z "$EGREP"; then
5179 ac_path_EGREP_found=false
5180 # Loop through the user's path and test for each of PROGNAME-LIST
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_prog in egrep; do
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5189 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5190 # Check for GNU ac_path_EGREP and select it if it is found.
5191 # Check for GNU $ac_path_EGREP
5192 case `"$ac_path_EGREP" --version 2>&1` in
5193 *GNU*)
5194 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5196 ac_count=0
5197 $as_echo_n 0123456789 >"conftest.in"
5198 while :
5200 cat "conftest.in" "conftest.in" >"conftest.tmp"
5201 mv "conftest.tmp" "conftest.in"
5202 cp "conftest.in" "conftest.nl"
5203 $as_echo 'EGREP' >> "conftest.nl"
5204 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5206 as_fn_arith $ac_count + 1 && ac_count=$as_val
5207 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5208 # Best one so far, save it but keep looking for a better one
5209 ac_cv_path_EGREP="$ac_path_EGREP"
5210 ac_path_EGREP_max=$ac_count
5212 # 10*(2^10) chars as input seems more than enough
5213 test $ac_count -gt 10 && break
5214 done
5215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5216 esac
5218 $ac_path_EGREP_found && break 3
5219 done
5220 done
5221 done
5222 IFS=$as_save_IFS
5223 if test -z "$ac_cv_path_EGREP"; then
5224 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5226 else
5227 ac_cv_path_EGREP=$EGREP
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5233 $as_echo "$ac_cv_path_EGREP" >&6; }
5234 EGREP="$ac_cv_path_EGREP"
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5238 $as_echo_n "checking for ANSI C header files... " >&6; }
5239 if test "${ac_cv_header_stdc+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 #include <stdlib.h>
5245 #include <stdarg.h>
5246 #include <string.h>
5247 #include <float.h>
5250 main ()
5254 return 0;
5256 _ACEOF
5257 if ac_fn_c_try_compile "$LINENO"; then :
5258 ac_cv_header_stdc=yes
5259 else
5260 ac_cv_header_stdc=no
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5264 if test $ac_cv_header_stdc = yes; then
5265 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 #include <string.h>
5270 _ACEOF
5271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5272 $EGREP "memchr" >/dev/null 2>&1; then :
5274 else
5275 ac_cv_header_stdc=no
5277 rm -f conftest*
5281 if test $ac_cv_header_stdc = yes; then
5282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5285 #include <stdlib.h>
5287 _ACEOF
5288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5289 $EGREP "free" >/dev/null 2>&1; then :
5291 else
5292 ac_cv_header_stdc=no
5294 rm -f conftest*
5298 if test $ac_cv_header_stdc = yes; then
5299 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5300 if test "$cross_compiling" = yes; then :
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <ctype.h>
5306 #include <stdlib.h>
5307 #if ((' ' & 0x0FF) == 0x020)
5308 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5309 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5310 #else
5311 # define ISLOWER(c) \
5312 (('a' <= (c) && (c) <= 'i') \
5313 || ('j' <= (c) && (c) <= 'r') \
5314 || ('s' <= (c) && (c) <= 'z'))
5315 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5316 #endif
5318 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5320 main ()
5322 int i;
5323 for (i = 0; i < 256; i++)
5324 if (XOR (islower (i), ISLOWER (i))
5325 || toupper (i) != TOUPPER (i))
5326 return 2;
5327 return 0;
5329 _ACEOF
5330 if ac_fn_c_try_run "$LINENO"; then :
5332 else
5333 ac_cv_header_stdc=no
5335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5336 conftest.$ac_objext conftest.beam conftest.$ac_ext
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5342 $as_echo "$ac_cv_header_stdc" >&6; }
5343 if test $ac_cv_header_stdc = yes; then
5345 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5349 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5350 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5351 inttypes.h stdint.h unistd.h
5352 do :
5353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5356 eval as_val=\$$as_ac_Header
5357 if test "x$as_val" = x""yes; then :
5358 cat >>confdefs.h <<_ACEOF
5359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360 _ACEOF
5364 done
5368 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5369 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5370 MINIX=yes
5371 else
5372 MINIX=
5376 if test "$MINIX" = yes; then
5378 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5381 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5384 $as_echo "#define _MINIX 1" >>confdefs.h
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5390 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5391 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5392 $as_echo_n "(cached) " >&6
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5397 # define __EXTENSIONS__ 1
5398 $ac_includes_default
5400 main ()
5404 return 0;
5406 _ACEOF
5407 if ac_fn_c_try_compile "$LINENO"; then :
5408 ac_cv_safe_to_define___extensions__=yes
5409 else
5410 ac_cv_safe_to_define___extensions__=no
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5415 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5416 test $ac_cv_safe_to_define___extensions__ = yes &&
5417 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5419 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5421 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5423 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5425 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5428 ac_ext=c
5429 ac_cpp='$CPP $CPPFLAGS'
5430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5434 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5435 # On Suns, sometimes $CPP names a directory.
5436 if test -n "$CPP" && test -d "$CPP"; then
5437 CPP=
5439 if test -z "$CPP"; then
5440 if test "${ac_cv_prog_CPP+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 # Double quotes because CPP needs to be expanded
5444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5446 ac_preproc_ok=false
5447 for ac_c_preproc_warn_flag in '' yes
5449 # Use a header file that comes with gcc, so configuring glibc
5450 # with a fresh cross-compiler works.
5451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452 # <limits.h> exists even on freestanding compilers.
5453 # On the NeXT, cc -E runs the code through the compiler's parser,
5454 # not just through cpp. "Syntax error" is here to catch this case.
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 #ifdef __STDC__
5458 # include <limits.h>
5459 #else
5460 # include <assert.h>
5461 #endif
5462 Syntax error
5463 _ACEOF
5464 if ac_fn_c_try_cpp "$LINENO"; then :
5466 else
5467 # Broken: fails on valid input.
5468 continue
5470 rm -f conftest.err conftest.$ac_ext
5472 # OK, works on sane cases. Now check whether nonexistent headers
5473 # can be detected and how.
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #include <ac_nonexistent.h>
5477 _ACEOF
5478 if ac_fn_c_try_cpp "$LINENO"; then :
5479 # Broken: success on invalid input.
5480 continue
5481 else
5482 # Passes both tests.
5483 ac_preproc_ok=:
5484 break
5486 rm -f conftest.err conftest.$ac_ext
5488 done
5489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5490 rm -f conftest.err conftest.$ac_ext
5491 if $ac_preproc_ok; then :
5492 break
5495 done
5496 ac_cv_prog_CPP=$CPP
5499 CPP=$ac_cv_prog_CPP
5500 else
5501 ac_cv_prog_CPP=$CPP
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5504 $as_echo "$CPP" >&6; }
5505 ac_preproc_ok=false
5506 for ac_c_preproc_warn_flag in '' yes
5508 # Use a header file that comes with gcc, so configuring glibc
5509 # with a fresh cross-compiler works.
5510 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5511 # <limits.h> exists even on freestanding compilers.
5512 # On the NeXT, cc -E runs the code through the compiler's parser,
5513 # not just through cpp. "Syntax error" is here to catch this case.
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5516 #ifdef __STDC__
5517 # include <limits.h>
5518 #else
5519 # include <assert.h>
5520 #endif
5521 Syntax error
5522 _ACEOF
5523 if ac_fn_c_try_cpp "$LINENO"; then :
5525 else
5526 # Broken: fails on valid input.
5527 continue
5529 rm -f conftest.err conftest.$ac_ext
5531 # OK, works on sane cases. Now check whether nonexistent headers
5532 # can be detected and how.
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #include <ac_nonexistent.h>
5536 _ACEOF
5537 if ac_fn_c_try_cpp "$LINENO"; then :
5538 # Broken: success on invalid input.
5539 continue
5540 else
5541 # Passes both tests.
5542 ac_preproc_ok=:
5543 break
5545 rm -f conftest.err conftest.$ac_ext
5547 done
5548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5549 rm -f conftest.err conftest.$ac_ext
5550 if $ac_preproc_ok; then :
5552 else
5553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5555 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5556 See \`config.log' for more details." "$LINENO" 5; }
5559 ac_ext=c
5560 ac_cpp='$CPP $CPPFLAGS'
5561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5566 $as_echo_n "checking for inline... " >&6; }
5567 if test "${ac_cv_c_inline+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 ac_cv_c_inline=no
5571 for ac_kw in inline __inline__ __inline; do
5572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5573 /* end confdefs.h. */
5574 #ifndef __cplusplus
5575 typedef int foo_t;
5576 static $ac_kw foo_t static_foo () {return 0; }
5577 $ac_kw foo_t foo () {return 0; }
5578 #endif
5580 _ACEOF
5581 if ac_fn_c_try_compile "$LINENO"; then :
5582 ac_cv_c_inline=$ac_kw
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 test "$ac_cv_c_inline" != no && break
5586 done
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5590 $as_echo "$ac_cv_c_inline" >&6; }
5592 case $ac_cv_c_inline in
5593 inline | yes) ;;
5595 case $ac_cv_c_inline in
5596 no) ac_val=;;
5597 *) ac_val=$ac_cv_c_inline;;
5598 esac
5599 cat >>confdefs.h <<_ACEOF
5600 #ifndef __cplusplus
5601 #define inline $ac_val
5602 #endif
5603 _ACEOF
5605 esac
5608 # sizeof(char) is 1 by definition.
5609 # The cast to long int works around a bug in the HP C Compiler
5610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5612 # This bug is HP SR number 8606223364.
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5614 $as_echo_n "checking size of void *... " >&6; }
5615 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5620 else
5621 if test "$ac_cv_type_void_p" = yes; then
5622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5624 { as_fn_set_status 77
5625 as_fn_error "cannot compute sizeof (void *)
5626 See \`config.log' for more details." "$LINENO" 5; }; }
5627 else
5628 ac_cv_sizeof_void_p=0
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5634 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5638 cat >>confdefs.h <<_ACEOF
5639 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5640 _ACEOF
5643 # The cast to long int works around a bug in the HP C Compiler
5644 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5645 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5646 # This bug is HP SR number 8606223364.
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5648 $as_echo_n "checking size of short... " >&6; }
5649 if test "${ac_cv_sizeof_short+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5651 else
5652 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5654 else
5655 if test "$ac_cv_type_short" = yes; then
5656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5658 { as_fn_set_status 77
5659 as_fn_error "cannot compute sizeof (short)
5660 See \`config.log' for more details." "$LINENO" 5; }; }
5661 else
5662 ac_cv_sizeof_short=0
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5668 $as_echo "$ac_cv_sizeof_short" >&6; }
5672 cat >>confdefs.h <<_ACEOF
5673 #define SIZEOF_SHORT $ac_cv_sizeof_short
5674 _ACEOF
5677 # The cast to long int works around a bug in the HP C Compiler
5678 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5679 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5680 # This bug is HP SR number 8606223364.
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5682 $as_echo_n "checking size of int... " >&6; }
5683 if test "${ac_cv_sizeof_int+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5688 else
5689 if test "$ac_cv_type_int" = yes; then
5690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5692 { as_fn_set_status 77
5693 as_fn_error "cannot compute sizeof (int)
5694 See \`config.log' for more details." "$LINENO" 5; }; }
5695 else
5696 ac_cv_sizeof_int=0
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5702 $as_echo "$ac_cv_sizeof_int" >&6; }
5706 cat >>confdefs.h <<_ACEOF
5707 #define SIZEOF_INT $ac_cv_sizeof_int
5708 _ACEOF
5711 # The cast to long int works around a bug in the HP C Compiler
5712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5714 # This bug is HP SR number 8606223364.
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5716 $as_echo_n "checking size of long... " >&6; }
5717 if test "${ac_cv_sizeof_long+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5719 else
5720 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5722 else
5723 if test "$ac_cv_type_long" = yes; then
5724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5726 { as_fn_set_status 77
5727 as_fn_error "cannot compute sizeof (long)
5728 See \`config.log' for more details." "$LINENO" 5; }; }
5729 else
5730 ac_cv_sizeof_long=0
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5736 $as_echo "$ac_cv_sizeof_long" >&6; }
5740 cat >>confdefs.h <<_ACEOF
5741 #define SIZEOF_LONG $ac_cv_sizeof_long
5742 _ACEOF
5745 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5746 if test "x$ac_cv_type_long_long" = x""yes; then :
5748 cat >>confdefs.h <<_ACEOF
5749 #define HAVE_LONG_LONG 1
5750 _ACEOF
5752 # The cast to long int works around a bug in the HP C Compiler
5753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5755 # This bug is HP SR number 8606223364.
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5757 $as_echo_n "checking size of long long... " >&6; }
5758 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5759 $as_echo_n "(cached) " >&6
5760 else
5761 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5763 else
5764 if test "$ac_cv_type_long_long" = yes; then
5765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5767 { as_fn_set_status 77
5768 as_fn_error "cannot compute sizeof (long long)
5769 See \`config.log' for more details." "$LINENO" 5; }; }
5770 else
5771 ac_cv_sizeof_long_long=0
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5777 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5781 cat >>confdefs.h <<_ACEOF
5782 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5783 _ACEOF
5788 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5789 if test "x$ac_cv_type___int64" = x""yes; then :
5791 cat >>confdefs.h <<_ACEOF
5792 #define HAVE___INT64 1
5793 _ACEOF
5795 # The cast to long int works around a bug in the HP C Compiler
5796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5798 # This bug is HP SR number 8606223364.
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5800 $as_echo_n "checking size of __int64... " >&6; }
5801 if test "${ac_cv_sizeof___int64+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5806 else
5807 if test "$ac_cv_type___int64" = yes; then
5808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5810 { as_fn_set_status 77
5811 as_fn_error "cannot compute sizeof (__int64)
5812 See \`config.log' for more details." "$LINENO" 5; }; }
5813 else
5814 ac_cv_sizeof___int64=0
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5820 $as_echo "$ac_cv_sizeof___int64" >&6; }
5824 cat >>confdefs.h <<_ACEOF
5825 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5826 _ACEOF
5831 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5832 case $ac_cv_c_int8_t in #(
5833 no|yes) ;; #(
5836 cat >>confdefs.h <<_ACEOF
5837 #define int8_t $ac_cv_c_int8_t
5838 _ACEOF
5840 esac
5842 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5843 case $ac_cv_c_int16_t in #(
5844 no|yes) ;; #(
5847 cat >>confdefs.h <<_ACEOF
5848 #define int16_t $ac_cv_c_int16_t
5849 _ACEOF
5851 esac
5853 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5854 case $ac_cv_c_int32_t in #(
5855 no|yes) ;; #(
5858 cat >>confdefs.h <<_ACEOF
5859 #define int32_t $ac_cv_c_int32_t
5860 _ACEOF
5862 esac
5864 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5865 case $ac_cv_c_int64_t in #(
5866 no|yes) ;; #(
5869 cat >>confdefs.h <<_ACEOF
5870 #define int64_t $ac_cv_c_int64_t
5871 _ACEOF
5873 esac
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5877 $as_echo_n "checking for long long int... " >&6; }
5878 if test "${ac_cv_type_long_long_int+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5884 /* For now, do not test the preprocessor; as of 2007 there are too many
5885 implementations with broken preprocessors. Perhaps this can
5886 be revisited in 2012. In the meantime, code should not expect
5887 #if to work with literals wider than 32 bits. */
5888 /* Test literals. */
5889 long long int ll = 9223372036854775807ll;
5890 long long int nll = -9223372036854775807LL;
5891 unsigned long long int ull = 18446744073709551615ULL;
5892 /* Test constant expressions. */
5893 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5894 ? 1 : -1)];
5895 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5896 ? 1 : -1)];
5897 int i = 63;
5899 main ()
5901 /* Test availability of runtime routines for shift and division. */
5902 long long int llmax = 9223372036854775807ll;
5903 unsigned long long int ullmax = 18446744073709551615ull;
5904 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5905 | (llmax / ll) | (llmax % ll)
5906 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5907 | (ullmax / ull) | (ullmax % ull));
5909 return 0;
5912 _ACEOF
5913 if ac_fn_c_try_link "$LINENO"; then :
5914 if test "$cross_compiling" = yes; then :
5915 ac_cv_type_long_long_int=yes
5916 else
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 #include <limits.h>
5920 #ifndef LLONG_MAX
5921 # define HALF \
5922 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5923 # define LLONG_MAX (HALF - 1 + HALF)
5924 #endif
5926 main ()
5928 long long int n = 1;
5929 int i;
5930 for (i = 0; ; i++)
5932 long long int m = n << i;
5933 if (m >> i != n)
5934 return 1;
5935 if (LLONG_MAX / 2 < m)
5936 break;
5938 return 0;
5940 return 0;
5942 _ACEOF
5943 if ac_fn_c_try_run "$LINENO"; then :
5944 ac_cv_type_long_long_int=yes
5945 else
5946 ac_cv_type_long_long_int=no
5948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5949 conftest.$ac_objext conftest.beam conftest.$ac_ext
5952 else
5953 ac_cv_type_long_long_int=no
5955 rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5959 $as_echo "$ac_cv_type_long_long_int" >&6; }
5960 if test $ac_cv_type_long_long_int = yes; then
5962 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5968 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
5969 if test "x$ac_cv_type_intmax_t" = x""yes; then :
5971 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
5973 else
5974 test $ac_cv_type_long_long_int = yes \
5975 && ac_type='long long int' \
5976 || ac_type='long int'
5978 cat >>confdefs.h <<_ACEOF
5979 #define intmax_t $ac_type
5980 _ACEOF
5986 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
5987 if test "x$ac_cv_type_intptr_t" = x""yes; then :
5989 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
5991 else
5992 for ac_type in 'int' 'long int' 'long long int'; do
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 $ac_includes_default
5997 main ()
5999 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6000 test_array [0] = 0
6003 return 0;
6005 _ACEOF
6006 if ac_fn_c_try_compile "$LINENO"; then :
6008 cat >>confdefs.h <<_ACEOF
6009 #define intptr_t $ac_type
6010 _ACEOF
6012 ac_type=
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 test -z "$ac_type" && break
6016 done
6020 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
6021 case $ac_cv_c_uint8_t in #(
6022 no|yes) ;; #(
6025 $as_echo "#define _UINT8_T 1" >>confdefs.h
6028 cat >>confdefs.h <<_ACEOF
6029 #define uint8_t $ac_cv_c_uint8_t
6030 _ACEOF
6032 esac
6034 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6035 case $ac_cv_c_uint16_t in #(
6036 no|yes) ;; #(
6040 cat >>confdefs.h <<_ACEOF
6041 #define uint16_t $ac_cv_c_uint16_t
6042 _ACEOF
6044 esac
6046 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6047 case $ac_cv_c_uint32_t in #(
6048 no|yes) ;; #(
6051 $as_echo "#define _UINT32_T 1" >>confdefs.h
6054 cat >>confdefs.h <<_ACEOF
6055 #define uint32_t $ac_cv_c_uint32_t
6056 _ACEOF
6058 esac
6060 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
6061 case $ac_cv_c_uint64_t in #(
6062 no|yes) ;; #(
6065 $as_echo "#define _UINT64_T 1" >>confdefs.h
6068 cat >>confdefs.h <<_ACEOF
6069 #define uint64_t $ac_cv_c_uint64_t
6070 _ACEOF
6072 esac
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6076 $as_echo_n "checking for unsigned long long int... " >&6; }
6077 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6078 $as_echo_n "(cached) " >&6
6079 else
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6083 /* For now, do not test the preprocessor; as of 2007 there are too many
6084 implementations with broken preprocessors. Perhaps this can
6085 be revisited in 2012. In the meantime, code should not expect
6086 #if to work with literals wider than 32 bits. */
6087 /* Test literals. */
6088 long long int ll = 9223372036854775807ll;
6089 long long int nll = -9223372036854775807LL;
6090 unsigned long long int ull = 18446744073709551615ULL;
6091 /* Test constant expressions. */
6092 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6093 ? 1 : -1)];
6094 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6095 ? 1 : -1)];
6096 int i = 63;
6098 main ()
6100 /* Test availability of runtime routines for shift and division. */
6101 long long int llmax = 9223372036854775807ll;
6102 unsigned long long int ullmax = 18446744073709551615ull;
6103 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6104 | (llmax / ll) | (llmax % ll)
6105 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6106 | (ullmax / ull) | (ullmax % ull));
6108 return 0;
6111 _ACEOF
6112 if ac_fn_c_try_link "$LINENO"; then :
6113 ac_cv_type_unsigned_long_long_int=yes
6114 else
6115 ac_cv_type_unsigned_long_long_int=no
6117 rm -f core conftest.err conftest.$ac_objext \
6118 conftest$ac_exeext conftest.$ac_ext
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6121 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6122 if test $ac_cv_type_unsigned_long_long_int = yes; then
6124 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6130 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
6131 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
6133 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
6135 else
6136 test $ac_cv_type_unsigned_long_long_int = yes \
6137 && ac_type='unsigned long long int' \
6138 || ac_type='unsigned long int'
6140 cat >>confdefs.h <<_ACEOF
6141 #define uintmax_t $ac_type
6142 _ACEOF
6148 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
6149 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
6151 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
6153 else
6154 for ac_type in 'unsigned int' 'unsigned long int' \
6155 'unsigned long long int'; do
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158 $ac_includes_default
6160 main ()
6162 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
6163 test_array [0] = 0
6166 return 0;
6168 _ACEOF
6169 if ac_fn_c_try_compile "$LINENO"; then :
6171 cat >>confdefs.h <<_ACEOF
6172 #define uintptr_t $ac_type
6173 _ACEOF
6175 ac_type=
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 test -z "$ac_type" && break
6179 done
6196 # ---------------------
6197 # Warnings and checking
6198 # ---------------------
6200 # Check $CC warning features (if it's GCC).
6201 # We want to use -pedantic, but we don't want warnings about
6202 # * 'long long'
6203 # * variadic macros
6204 # * overlong strings
6205 # So, we only use -pedantic if we can disable those warnings.
6207 loose_warn=
6208 save_CFLAGS="$CFLAGS"
6209 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
6210 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6213 $as_echo_n "checking whether $CC supports $option... " >&6; }
6214 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6215 $as_echo_n "(cached) " >&6
6216 else
6217 CFLAGS="$option"
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6222 main ()
6226 return 0;
6228 _ACEOF
6229 if ac_fn_c_try_compile "$LINENO"; then :
6230 eval "$as_acx_Woption=yes"
6231 else
6232 eval "$as_acx_Woption=no"
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 eval ac_res=\$$as_acx_Woption
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6239 $as_echo "$ac_res" >&6; }
6240 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6241 loose_warn="$loose_warn${loose_warn:+ }$option"
6243 done
6244 CFLAGS="$save_CFLAGS"
6246 c_loose_warn=
6247 save_CFLAGS="$CFLAGS"
6248 for option in -Wstrict-prototypes -Wmissing-prototypes; do
6249 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6252 $as_echo_n "checking whether $CC supports $option... " >&6; }
6253 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 CFLAGS="$option"
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6258 /* end confdefs.h. */
6261 main ()
6265 return 0;
6267 _ACEOF
6268 if ac_fn_c_try_compile "$LINENO"; then :
6269 eval "$as_acx_Woption=yes"
6270 else
6271 eval "$as_acx_Woption=no"
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 eval ac_res=\$$as_acx_Woption
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6278 $as_echo "$ac_res" >&6; }
6279 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6280 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
6282 done
6283 CFLAGS="$save_CFLAGS"
6285 strict_warn=
6286 save_CFLAGS="$CFLAGS"
6287 for option in -Wmissing-format-attribute; do
6288 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6291 $as_echo_n "checking whether $CC supports $option... " >&6; }
6292 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 CFLAGS="$option"
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297 /* end confdefs.h. */
6300 main ()
6304 return 0;
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"; then :
6308 eval "$as_acx_Woption=yes"
6309 else
6310 eval "$as_acx_Woption=no"
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 eval ac_res=\$$as_acx_Woption
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6317 $as_echo "$ac_res" >&6; }
6318 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6319 strict_warn="$strict_warn${strict_warn:+ }$option"
6321 done
6322 CFLAGS="$save_CFLAGS"
6324 c_strict_warn=
6325 save_CFLAGS="$CFLAGS"
6326 for option in -Wold-style-definition -Wc++-compat; do
6327 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
6330 $as_echo_n "checking whether $CC supports $option... " >&6; }
6331 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 CFLAGS="$option"
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6339 main ()
6343 return 0;
6345 _ACEOF
6346 if ac_fn_c_try_compile "$LINENO"; then :
6347 eval "$as_acx_Woption=yes"
6348 else
6349 eval "$as_acx_Woption=no"
6351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 eval ac_res=\$$as_acx_Woption
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6356 $as_echo "$ac_res" >&6; }
6357 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
6358 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
6360 done
6361 CFLAGS="$save_CFLAGS"
6363 if test "$GCC" = yes; then :
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
6365 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
6366 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
6367 $as_echo_n "(cached) " >&6
6368 else
6369 save_CFLAGS="$CFLAGS"
6370 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6375 main ()
6379 return 0;
6381 _ACEOF
6382 if ac_fn_c_try_compile "$LINENO"; then :
6383 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
6384 else
6385 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 CFLAGS="$save_CFLAGS"
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
6391 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
6392 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
6393 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
6398 # Check whether --enable-werror-always was given.
6399 if test "${enable_werror_always+set}" = set; then :
6400 enableval=$enable_werror_always;
6401 else
6402 enable_werror_always=no
6405 if test $enable_werror_always = yes; then :
6406 strict_warn="$strict_warn${strict_warn:+ }-Werror"
6411 # The above macros do nothing if the compiler is not GCC. However, the
6412 # Makefile has more goo to add other flags, so these variables are used
6413 # to enable warnings only for GCC.
6414 warn_cflags=
6415 warn_cxxflags=
6416 if test "x$GCC" = "xyes"; then
6417 warn_cflags='$(GCC_WARN_CFLAGS)'
6418 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
6423 # Enable expensive internal checks
6424 is_release=
6425 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
6426 is_release=yes
6429 # Check whether --enable-checking was given.
6430 if test "${enable_checking+set}" = set; then :
6431 enableval=$enable_checking; ac_checking_flags="${enableval}"
6432 else
6434 # Determine the default checks.
6435 if test x$is_release = x ; then
6436 ac_checking_flags=yes
6437 else
6438 ac_checking_flags=release
6442 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
6443 for check in release $ac_checking_flags
6445 case $check in
6446 # these set all the flags to specific states
6447 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
6448 ac_fold_checking= ; ac_gc_checking=1 ;
6449 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
6450 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6451 ac_tree_checking=1 ; ac_valgrind_checking= ;
6452 ac_types_checking=1 ;;
6453 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
6454 ac_fold_checking= ; ac_gc_checking= ;
6455 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6456 ac_rtlflag_checking= ; ac_runtime_checking= ;
6457 ac_tree_checking= ; ac_valgrind_checking= ;
6458 ac_types_checking= ;;
6459 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
6460 ac_fold_checking=1 ; ac_gc_checking=1 ;
6461 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
6462 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
6463 ac_tree_checking=1 ; ac_valgrind_checking= ;
6464 ac_types_checking=1 ;;
6465 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
6466 ac_fold_checking= ; ac_gc_checking= ;
6467 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
6468 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
6469 ac_tree_checking= ; ac_valgrind_checking= ;
6470 ac_types_checking= ;;
6471 # these enable particular checks
6472 assert) ac_assert_checking=1 ;;
6473 df) ac_df_checking=1 ;;
6474 fold) ac_fold_checking=1 ;;
6475 gc) ac_gc_checking=1 ;;
6476 gcac) ac_gc_always_collect=1 ;;
6477 gimple) ac_gimple_checking=1 ;;
6478 misc) ac_checking=1 ;;
6479 rtl) ac_rtl_checking=1 ;;
6480 rtlflag) ac_rtlflag_checking=1 ;;
6481 runtime) ac_runtime_checking=1 ;;
6482 tree) ac_tree_checking=1 ;;
6483 types) ac_types_checking=1 ;;
6484 valgrind) ac_valgrind_checking=1 ;;
6485 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
6486 esac
6487 done
6488 IFS="$ac_save_IFS"
6490 nocommon_flag=""
6491 if test x$ac_checking != x ; then
6493 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6495 nocommon_flag=-fno-common
6498 if test x$ac_df_checking != x ; then
6500 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6503 if test x$ac_assert_checking != x ; then
6505 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6508 if test x$ac_gimple_checking != x ; then
6510 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6514 if test x$ac_runtime_checking != x ; then
6516 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6519 if test x$ac_tree_checking != x ; then
6521 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6523 TREEBROWSER=tree-browser.o
6525 if test x$ac_types_checking != x ; then
6527 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6531 if test x$ac_rtl_checking != x ; then
6533 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6536 if test x$ac_rtlflag_checking != x ; then
6538 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6541 if test x$ac_gc_checking != x ; then
6543 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6546 if test x$ac_gc_always_collect != x ; then
6548 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6551 if test x$ac_fold_checking != x ; then
6553 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6556 valgrind_path_defines=
6557 valgrind_command=
6559 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6560 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6561 have_valgrind_h=yes
6562 else
6563 have_valgrind_h=no
6568 if test x$ac_valgrind_checking != x ; then
6569 # It is certainly possible that there's valgrind but no valgrind.h.
6570 # GCC relies on making annotations so we must have both.
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6572 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574 /* end confdefs.h. */
6575 #include <valgrind/memcheck.h>
6576 #ifndef VALGRIND_DISCARD
6577 #error VALGRIND_DISCARD not defined
6578 #endif
6579 _ACEOF
6580 if ac_fn_c_try_cpp "$LINENO"; then :
6581 gcc_cv_header_valgrind_memcheck_h=yes
6582 else
6583 gcc_cv_header_valgrind_memcheck_h=no
6585 rm -f conftest.err conftest.$ac_ext
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6587 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6589 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 #include <memcheck.h>
6593 #ifndef VALGRIND_DISCARD
6594 #error VALGRIND_DISCARD not defined
6595 #endif
6596 _ACEOF
6597 if ac_fn_c_try_cpp "$LINENO"; then :
6598 gcc_cv_header_memcheck_h=yes
6599 else
6600 gcc_cv_header_memcheck_h=no
6602 rm -f conftest.err conftest.$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6604 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6606 # Prepare PATH_SEPARATOR.
6607 # The user is always right.
6608 if test "${PATH_SEPARATOR+set}" != set; then
6609 echo "#! /bin/sh" >conf$$.sh
6610 echo "exit 0" >>conf$$.sh
6611 chmod +x conf$$.sh
6612 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6613 PATH_SEPARATOR=';'
6614 else
6615 PATH_SEPARATOR=:
6617 rm -f conf$$.sh
6620 # Find out how to test for executable files. Don't use a zero-byte file,
6621 # as systems may use methods other than mode bits to determine executability.
6622 cat >conf$$.file <<_ASEOF
6623 #! /bin/sh
6624 exit 0
6625 _ASEOF
6626 chmod +x conf$$.file
6627 if test -x conf$$.file >/dev/null 2>&1; then
6628 ac_executable_p="test -x"
6629 else
6630 ac_executable_p="test -f"
6632 rm -f conf$$.file
6634 # Extract the first word of "valgrind", so it can be a program name with args.
6635 set dummy valgrind; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 case "$valgrind_path" in
6642 [\\/]* | ?:[\\/]*)
6643 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6646 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6647 for ac_dir in $PATH; do
6648 IFS="$ac_save_IFS"
6649 test -z "$ac_dir" && ac_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6652 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6653 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6654 break 2
6657 done
6658 done
6659 IFS="$ac_save_IFS"
6661 esac
6663 valgrind_path="$ac_cv_path_valgrind_path"
6664 if test -n "$valgrind_path"; then
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6666 $as_echo "$valgrind_path" >&6; }
6667 else
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6669 $as_echo "no" >&6; }
6672 if test "x$valgrind_path" = "x" \
6673 || (test $have_valgrind_h = no \
6674 && test $gcc_cv_header_memcheck_h = no \
6675 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6676 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6678 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6679 valgrind_command="$valgrind_path -q"
6681 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6683 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6685 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6688 if test $gcc_cv_header_memcheck_h = yes; then
6690 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6697 # Enable code coverage collection
6698 # Check whether --enable-coverage was given.
6699 if test "${enable_coverage+set}" = set; then :
6700 enableval=$enable_coverage; case "${enableval}" in
6701 yes|noopt)
6702 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6704 opt)
6705 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6708 # a.k.a. --disable-coverage
6709 coverage_flags=""
6712 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6714 esac
6715 else
6716 coverage_flags=""
6721 # Check whether --enable-gather-detailed-mem-stats was given.
6722 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6723 enableval=$enable_gather_detailed_mem_stats;
6724 else
6725 enable_gather_detailed_mem_stats=no
6728 if test x$enable_gather_detailed_mem_stats = xyes ; then
6730 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6734 # -------------------------------
6735 # Miscenalleous configure options
6736 # -------------------------------
6738 # See if we are building gcc with C++.
6739 # Check whether --enable-build-with-cxx was given.
6740 if test "${enable_build_with_cxx+set}" = set; then :
6741 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6742 else
6743 ENABLE_BUILD_WITH_CXX=no
6748 # With stabs
6750 # Check whether --with-stabs was given.
6751 if test "${with_stabs+set}" = set; then :
6752 withval=$with_stabs; stabs="$with_stabs"
6753 else
6754 stabs=no
6758 # Determine whether or not multilibs are enabled.
6759 # Check whether --enable-multilib was given.
6760 if test "${enable_multilib+set}" = set; then :
6761 enableval=$enable_multilib;
6762 else
6763 enable_multilib=yes
6768 # Enable __cxa_atexit for C++.
6769 # Check whether --enable-__cxa_atexit was given.
6770 if test "${enable___cxa_atexit+set}" = set; then :
6771 enableval=$enable___cxa_atexit;
6775 # Enable C extension for decimal float if target supports it.
6776 # Check whether --enable-decimal-float was given.
6777 if test "${enable_decimal_float+set}" = set; then :
6778 enableval=$enable_decimal_float;
6779 case $enable_decimal_float in
6780 yes | no | bid | dpd) ;;
6781 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6782 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6783 esac
6785 else
6787 case $target in
6788 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6789 enable_decimal_float=yes
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6793 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6794 enable_decimal_float=no
6796 esac
6801 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6803 cat >>confdefs.h <<_ACEOF
6804 #define ENABLE_DECIMAL_FLOAT $dfp
6805 _ACEOF
6808 # x86's use BID format instead of DPD
6809 case x$enable_decimal_float in
6810 xyes)
6811 case $target in
6812 i?86*-*-linux* | x86_64*-*-linux*)
6813 enable_decimal_float=bid
6816 enable_decimal_float=dpd
6818 esac
6820 xno)
6821 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6822 # dependency on libdecnumber.
6823 enable_decimal_float=dpd
6825 esac
6828 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6830 cat >>confdefs.h <<_ACEOF
6831 #define ENABLE_DECIMAL_BID_FORMAT $bid
6832 _ACEOF
6835 # Enable C extension for fixed-point arithmetic.
6836 # Check whether --enable-fixed-point was given.
6837 if test "${enable_fixed_point+set}" = set; then :
6838 enableval=$enable_fixed_point;
6840 else
6842 case $target in
6843 mips*-*-*)
6844 case $host in
6845 mips*-sgi-irix*)
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6847 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6848 enable_fixed_point=no
6851 enable_fixed_point=yes
6853 esac
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6857 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6858 enable_fixed_point=no
6860 esac
6866 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6868 cat >>confdefs.h <<_ACEOF
6869 #define ENABLE_FIXED_POINT $fixedpoint
6870 _ACEOF
6873 # Enable threads
6874 # Pass with no value to take the default
6875 # Pass with a value to specify a thread package
6876 # Check whether --enable-threads was given.
6877 if test "${enable_threads+set}" = set; then :
6878 enableval=$enable_threads;
6879 else
6880 enable_threads=''
6884 # Check whether --enable-tls was given.
6885 if test "${enable_tls+set}" = set; then :
6886 enableval=$enable_tls;
6887 case $enable_tls in
6888 yes | no) ;;
6889 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6890 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6891 esac
6893 else
6894 enable_tls=''
6898 # Check whether --enable-objc-gc was given.
6899 if test "${enable_objc_gc+set}" = set; then :
6900 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6901 objc_boehm_gc=''
6902 else
6903 objc_boehm_gc=1
6905 else
6906 objc_boehm_gc=''
6911 # Check whether --with-dwarf2 was given.
6912 if test "${with_dwarf2+set}" = set; then :
6913 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6914 else
6915 dwarf2=no
6919 # Check whether --enable-shared was given.
6920 if test "${enable_shared+set}" = set; then :
6921 enableval=$enable_shared;
6922 case $enable_shared in
6923 yes | no) ;;
6925 enable_shared=no
6926 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6927 for pkg in $enableval; do
6928 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6929 enable_shared=yes
6931 done
6932 IFS="$ac_save_ifs"
6934 esac
6936 else
6937 enable_shared=yes
6943 # Check whether --with-build-sysroot was given.
6944 if test "${with_build_sysroot+set}" = set; then :
6945 withval=$with_build_sysroot;
6950 # Check whether --with-sysroot was given.
6951 if test "${with_sysroot+set}" = set; then :
6952 withval=$with_sysroot;
6953 case ${with_sysroot} in
6954 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6955 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6956 esac
6958 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6959 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6961 if test "x$prefix" = xNONE; then
6962 test_prefix=/usr/local
6963 else
6964 test_prefix=$prefix
6966 if test "x$exec_prefix" = xNONE; then
6967 test_exec_prefix=$test_prefix
6968 else
6969 test_exec_prefix=$exec_prefix
6971 case ${TARGET_SYSTEM_ROOT} in
6972 "${test_prefix}"|"${test_prefix}/"*|\
6973 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6974 '${prefix}'|'${prefix}/'*|\
6975 '${exec_prefix}'|'${exec_prefix}/'*)
6976 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6977 TARGET_SYSTEM_ROOT_DEFINE="$t"
6979 esac
6981 else
6983 TARGET_SYSTEM_ROOT=
6984 TARGET_SYSTEM_ROOT_DEFINE=
6985 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6993 # Build with intermodule optimisations
6994 # Check whether --enable-intermodule was given.
6995 if test "${enable_intermodule+set}" = set; then :
6996 enableval=$enable_intermodule; case ${enable_intermodule} in
6997 yes) onestep="-onestep";;
6998 *) onestep="";;
6999 esac
7000 else
7001 onestep=""
7008 # Check whether --with-pkgversion was given.
7009 if test "${with_pkgversion+set}" = set; then :
7010 withval=$with_pkgversion; case "$withval" in
7011 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7012 no) PKGVERSION= ;;
7013 *) PKGVERSION="($withval) " ;;
7014 esac
7015 else
7016 PKGVERSION="(GCC) "
7024 # Check whether --with-bugurl was given.
7025 if test "${with_bugurl+set}" = set; then :
7026 withval=$with_bugurl; case "$withval" in
7027 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7028 no) BUGURL=
7030 *) BUGURL="$withval"
7032 esac
7033 else
7034 BUGURL="http://gcc.gnu.org/bugs.html"
7038 case ${BUGURL} in
7040 REPORT_BUGS_TO=
7041 REPORT_BUGS_TEXI=
7044 REPORT_BUGS_TO="<$BUGURL>"
7045 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7047 esac;
7052 # Sanity check enable_languages in case someone does not run the toplevel
7053 # configure # script.
7054 # Check whether --enable-languages was given.
7055 if test "${enable_languages+set}" = set; then :
7056 enableval=$enable_languages; case ,${enable_languages}, in
7057 ,,|,yes,)
7058 # go safe -- we cannot be much sure without the toplevel
7059 # configure's
7060 # analysis of which target libs are present and usable
7061 enable_languages=c
7063 *,all,*)
7064 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
7066 *,c,*)
7069 enable_languages=c,${enable_languages}
7071 esac
7072 else
7073 enable_languages=c
7078 # Check whether --with-multilib-list was given.
7079 if test "${with_multilib_list+set}" = set; then :
7080 withval=$with_multilib_list; :
7081 else
7082 with_multilib_list=default
7086 # -------------------------
7087 # Checks for other programs
7088 # -------------------------
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7091 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7092 set x ${MAKE-make}
7093 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7094 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7095 $as_echo_n "(cached) " >&6
7096 else
7097 cat >conftest.make <<\_ACEOF
7098 SHELL = /bin/sh
7099 all:
7100 @echo '@@@%%%=$(MAKE)=@@@%%%'
7101 _ACEOF
7102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7103 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7104 *@@@%%%=?*=@@@%%%*)
7105 eval ac_cv_prog_make_${ac_make}_set=yes;;
7107 eval ac_cv_prog_make_${ac_make}_set=no;;
7108 esac
7109 rm -f conftest.make
7111 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7113 $as_echo "yes" >&6; }
7114 SET_MAKE=
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7118 SET_MAKE="MAKE=${MAKE-make}"
7122 # Find some useful tools
7123 for ac_prog in gawk mawk nawk awk
7125 # Extract the first word of "$ac_prog", so it can be a program name with args.
7126 set dummy $ac_prog; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if test "${ac_cv_prog_AWK+set}" = set; then :
7130 $as_echo_n "(cached) " >&6
7131 else
7132 if test -n "$AWK"; then
7133 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7138 IFS=$as_save_IFS
7139 test -z "$as_dir" && as_dir=.
7140 for ac_exec_ext in '' $ac_executable_extensions; do
7141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7142 ac_cv_prog_AWK="$ac_prog"
7143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144 break 2
7146 done
7147 done
7148 IFS=$as_save_IFS
7152 AWK=$ac_cv_prog_AWK
7153 if test -n "$AWK"; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7155 $as_echo "$AWK" >&6; }
7156 else
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7162 test -n "$AWK" && break
7163 done
7165 # We need awk to create options.c and options.h.
7166 # Bail out if it's missing.
7167 case ${AWK} in
7168 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
7169 esac
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7172 $as_echo_n "checking whether ln -s works... " >&6; }
7173 if test "${gcc_cv_prog_LN_S+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 rm -f conftestdata_t
7177 echo >conftestdata_f
7178 if ln -s conftestdata_f conftestdata_t 2>/dev/null
7179 then
7180 gcc_cv_prog_LN_S="ln -s"
7181 else
7182 if ln conftestdata_f conftestdata_t 2>/dev/null
7183 then
7184 gcc_cv_prog_LN_S=ln
7185 else
7186 if cp -p conftestdata_f conftestdata_t 2>/dev/null
7187 then
7188 gcc_cv_prog_LN_S="cp -p"
7189 else
7190 gcc_cv_prog_LN_S=cp
7194 rm -f conftestdata_f conftestdata_t
7197 LN_S="$gcc_cv_prog_LN_S"
7198 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7200 $as_echo "yes" >&6; }
7201 else
7202 if test "$gcc_cv_prog_LN_S" = "ln"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
7204 $as_echo "no, using ln" >&6; }
7205 else
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
7207 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
7212 $as_echo_n "checking whether ln works... " >&6; }
7213 if test "${acx_cv_prog_LN+set}" = set; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 rm -f conftestdata_t
7217 echo >conftestdata_f
7218 if ln conftestdata_f conftestdata_t 2>/dev/null
7219 then
7220 acx_cv_prog_LN=ln
7221 else
7222 acx_cv_prog_LN=no
7224 rm -f conftestdata_f conftestdata_t
7227 if test $acx_cv_prog_LN = no; then
7228 LN="$LN_S"
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
7230 $as_echo "no, using $LN" >&6; }
7231 else
7232 LN="$acx_cv_prog_LN"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7234 $as_echo "yes" >&6; }
7237 if test -n "$ac_tool_prefix"; then
7238 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7243 $as_echo_n "(cached) " >&6
7244 else
7245 if test -n "$RANLIB"; then
7246 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7259 done
7260 done
7261 IFS=$as_save_IFS
7265 RANLIB=$ac_cv_prog_RANLIB
7266 if test -n "$RANLIB"; then
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7268 $as_echo "$RANLIB" >&6; }
7269 else
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7276 if test -z "$ac_cv_prog_RANLIB"; then
7277 ac_ct_RANLIB=$RANLIB
7278 # Extract the first word of "ranlib", so it can be a program name with args.
7279 set dummy ranlib; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$ac_ct_RANLIB"; then
7286 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_ac_ct_RANLIB="ranlib"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7299 done
7300 done
7301 IFS=$as_save_IFS
7305 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7306 if test -n "$ac_ct_RANLIB"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7308 $as_echo "$ac_ct_RANLIB" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7314 if test "x$ac_ct_RANLIB" = x; then
7315 RANLIB=":"
7316 else
7317 case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323 RANLIB=$ac_ct_RANLIB
7325 else
7326 RANLIB="$ac_cv_prog_RANLIB"
7329 case "${host}" in
7330 *-*-darwin*)
7331 # By default, the Darwin ranlib will not treat common symbols as
7332 # definitions when building the archive table of contents. Other
7333 # ranlibs do that; pass an option to the Darwin ranlib that makes
7334 # it behave similarly.
7335 ranlib_flags="-c"
7338 ranlib_flags=""
7339 esac
7342 # Find a good install program. We prefer a C program (faster),
7343 # so one script is as good as another. But avoid the broken or
7344 # incompatible versions:
7345 # SysV /etc/install, /usr/sbin/install
7346 # SunOS /usr/etc/install
7347 # IRIX /sbin/install
7348 # AIX /bin/install
7349 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7350 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7351 # ./install, which can be erroneously created by make from ./install.sh.
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
7353 $as_echo_n "checking for a BSD compatible install... " >&6; }
7354 if test -z "$INSTALL"; then
7355 if test "${ac_cv_path_install+set}" = set; then :
7356 $as_echo_n "(cached) " >&6
7357 else
7358 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
7359 for ac_dir in $PATH; do
7360 # Account for people who put trailing slashes in PATH elements.
7361 case "$ac_dir/" in
7362 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
7364 # OSF1 and SCO ODT 3.0 have their own names for install.
7365 for ac_prog in ginstall scoinst install; do
7366 if test -f $ac_dir/$ac_prog; then
7367 if test $ac_prog = install &&
7368 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
7369 # AIX install. It has an incompatible calling convention.
7370 # OSF/1 installbsd also uses dspmsg, but is usable.
7372 else
7373 ac_cv_path_install="$ac_dir/$ac_prog -c"
7374 break 2
7377 done
7379 esac
7380 done
7381 IFS="$ac_save_IFS"
7384 if test "${ac_cv_path_install+set}" = set; then
7385 INSTALL="$ac_cv_path_install"
7386 else
7387 # As a last resort, use the slow shell script. We don't cache a
7388 # path for INSTALL within a source directory, because that will
7389 # break other packages using the cache if that directory is
7390 # removed, or if the path is relative.
7391 INSTALL="$ac_install_sh"
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7395 $as_echo "$INSTALL" >&6; }
7397 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7398 # It thinks the first close brace ends the variable substitution.
7399 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7404 # See if cmp has --ignore-initial.
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
7406 $as_echo_n "checking for cmp's capabilities... " >&6; }
7407 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 echo abfoo >t1
7411 echo cdfoo >t2
7412 gcc_cv_prog_cmp_skip=slowcompare
7413 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
7414 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
7416 else
7417 gcc_cv_prog_cmp_skip=gnucompare
7420 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
7421 if cmp t1 t2 2 2 > /dev/null 2>&1; then
7422 if cmp t1 t2 1 1 > /dev/null 2>&1; then
7424 else
7425 gcc_cv_prog_cmp_skip=fastcompare
7429 rm t1 t2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
7433 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
7434 make_compare_target=$gcc_cv_prog_cmp_skip
7438 # See if we have the mktemp command.
7439 # Extract the first word of "mktemp", so it can be a program name with args.
7440 set dummy mktemp; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 if test -n "$have_mktemp_command"; then
7447 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7456 ac_cv_prog_have_mktemp_command="yes"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7460 done
7461 done
7462 IFS=$as_save_IFS
7464 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
7467 have_mktemp_command=$ac_cv_prog_have_mktemp_command
7468 if test -n "$have_mktemp_command"; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
7470 $as_echo "$have_mktemp_command" >&6; }
7471 else
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473 $as_echo "no" >&6; }
7478 # See if makeinfo has been installed and is modern enough
7479 # that we can use it.
7481 # Extract the first word of "makeinfo", so it can be a program name with args.
7482 set dummy makeinfo; ac_word=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
7487 else
7488 if test -n "$MAKEINFO"; then
7489 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7490 else
7491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 for as_dir in $PATH
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7498 ac_cv_prog_MAKEINFO="makeinfo"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7500 break 2
7502 done
7503 done
7504 IFS=$as_save_IFS
7508 MAKEINFO=$ac_cv_prog_MAKEINFO
7509 if test -n "$MAKEINFO"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7511 $as_echo "$MAKEINFO" >&6; }
7512 else
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7518 if test -n "$MAKEINFO"; then
7519 # Found it, now check the version.
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7521 $as_echo_n "checking for modern makeinfo... " >&6; }
7522 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7526 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7528 case $ac_prog_version in
7529 '') gcc_cv_prog_makeinfo_modern=no;;
7530 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7531 *) gcc_cv_prog_makeinfo_modern=no;;
7532 esac
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7536 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7537 else
7538 gcc_cv_prog_makeinfo_modern=no
7540 if test $gcc_cv_prog_makeinfo_modern = no; then
7541 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7544 if test $gcc_cv_prog_makeinfo_modern = no; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7546 *** Makeinfo is missing or too old.
7547 *** Info documentation will not be built." >&5
7548 $as_echo "$as_me: WARNING:
7549 *** Makeinfo is missing or too old.
7550 *** Info documentation will not be built." >&2;}
7551 BUILD_INFO=
7552 else
7553 BUILD_INFO=info
7557 # Is pod2man recent enough to regenerate manpages?
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7559 $as_echo_n "checking for recent Pod::Man... " >&6; }
7560 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7562 $as_echo "yes" >&6; }
7563 GENERATED_MANPAGES=generated-manpages
7564 else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 GENERATED_MANPAGES=
7571 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7573 # How about lex?
7574 for ac_prog in flex
7576 # Extract the first word of "$ac_prog", so it can be a program name with args.
7577 set dummy $ac_prog; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_FLEX+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 if test -n "$FLEX"; then
7584 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593 ac_cv_prog_FLEX="$ac_prog"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7597 done
7598 done
7599 IFS=$as_save_IFS
7603 FLEX=$ac_cv_prog_FLEX
7604 if test -n "$FLEX"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7606 $as_echo "$FLEX" >&6; }
7607 else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7613 test -n "$FLEX" && break
7614 done
7615 test -n "$FLEX" || FLEX="$MISSING flex"
7618 # Bison?
7619 for ac_prog in bison
7621 # Extract the first word of "$ac_prog", so it can be a program name with args.
7622 set dummy $ac_prog; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if test "${ac_cv_prog_BISON+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 if test -n "$BISON"; then
7629 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7638 ac_cv_prog_BISON="$ac_prog"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7642 done
7643 done
7644 IFS=$as_save_IFS
7648 BISON=$ac_cv_prog_BISON
7649 if test -n "$BISON"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7651 $as_echo "$BISON" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7658 test -n "$BISON" && break
7659 done
7660 test -n "$BISON" || BISON="$MISSING bison"
7663 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7664 # check for build == host before using them.
7666 # NM
7667 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7668 && test -d ../binutils ; then
7669 NM='$(objdir)/../binutils/nm-new'
7670 else
7671 # Extract the first word of "nm", so it can be a program name with args.
7672 set dummy nm; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if test "${ac_cv_prog_NM+set}" = set; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 if test -n "$NM"; then
7679 ac_cv_prog_NM="$NM" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688 ac_cv_prog_NM="nm"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7692 done
7693 done
7694 IFS=$as_save_IFS
7696 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7699 NM=$ac_cv_prog_NM
7700 if test -n "$NM"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7702 $as_echo "$NM" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7711 # AR
7712 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7713 && test -d ../binutils ; then
7714 AR='$(objdir)/../binutils/ar'
7715 else
7716 # Extract the first word of "ar", so it can be a program name with args.
7717 set dummy ar; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if test "${ac_cv_prog_AR+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 if test -n "$AR"; then
7724 ac_cv_prog_AR="$AR" # Let the user override the test.
7725 else
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727 for as_dir in $PATH
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_prog_AR="ar"
7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7735 break 2
7737 done
7738 done
7739 IFS=$as_save_IFS
7741 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7744 AR=$ac_cv_prog_AR
7745 if test -n "$AR"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7747 $as_echo "$AR" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7757 # --------------------
7758 # Checks for C headers
7759 # --------------------
7761 # Need to reject headers which give warnings, so that the -Werror bootstrap
7762 # works later. *sigh* This needs to come before all header checks.
7764 ac_c_preproc_warn_flag=yes
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7767 $as_echo_n "checking for ANSI C header files... " >&6; }
7768 if test "${ac_cv_header_stdc+set}" = set; then :
7769 $as_echo_n "(cached) " >&6
7770 else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 #include <stdlib.h>
7774 #include <stdarg.h>
7775 #include <string.h>
7776 #include <float.h>
7779 main ()
7783 return 0;
7785 _ACEOF
7786 if ac_fn_c_try_compile "$LINENO"; then :
7787 ac_cv_header_stdc=yes
7788 else
7789 ac_cv_header_stdc=no
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 if test $ac_cv_header_stdc = yes; then
7794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797 #include <string.h>
7799 _ACEOF
7800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7801 $EGREP "memchr" >/dev/null 2>&1; then :
7803 else
7804 ac_cv_header_stdc=no
7806 rm -f conftest*
7810 if test $ac_cv_header_stdc = yes; then
7811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814 #include <stdlib.h>
7816 _ACEOF
7817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7818 $EGREP "free" >/dev/null 2>&1; then :
7820 else
7821 ac_cv_header_stdc=no
7823 rm -f conftest*
7827 if test $ac_cv_header_stdc = yes; then
7828 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7829 if test "$cross_compiling" = yes; then :
7831 else
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #include <ctype.h>
7835 #include <stdlib.h>
7836 #if ((' ' & 0x0FF) == 0x020)
7837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7839 #else
7840 # define ISLOWER(c) \
7841 (('a' <= (c) && (c) <= 'i') \
7842 || ('j' <= (c) && (c) <= 'r') \
7843 || ('s' <= (c) && (c) <= 'z'))
7844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7845 #endif
7847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7849 main ()
7851 int i;
7852 for (i = 0; i < 256; i++)
7853 if (XOR (islower (i), ISLOWER (i))
7854 || toupper (i) != TOUPPER (i))
7855 return 2;
7856 return 0;
7858 _ACEOF
7859 if ac_fn_c_try_run "$LINENO"; then :
7861 else
7862 ac_cv_header_stdc=no
7864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7865 conftest.$ac_objext conftest.beam conftest.$ac_ext
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7871 $as_echo "$ac_cv_header_stdc" >&6; }
7872 if test $ac_cv_header_stdc = yes; then
7874 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7879 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7880 if test "${ac_cv_header_time+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885 #include <sys/types.h>
7886 #include <sys/time.h>
7887 #include <time.h>
7890 main ()
7892 if ((struct tm *) 0)
7893 return 0;
7895 return 0;
7897 _ACEOF
7898 if ac_fn_c_try_compile "$LINENO"; then :
7899 ac_cv_header_time=yes
7900 else
7901 ac_cv_header_time=no
7903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7906 $as_echo "$ac_cv_header_time" >&6; }
7907 if test $ac_cv_header_time = yes; then
7909 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7914 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7915 if test "${gcc_cv_header_string+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
7917 else
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h. */
7920 #include <string.h>
7921 #include <strings.h>
7923 main ()
7927 return 0;
7929 _ACEOF
7930 if ac_fn_c_try_compile "$LINENO"; then :
7931 gcc_cv_header_string=yes
7932 else
7933 gcc_cv_header_string=no
7935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7938 $as_echo "$gcc_cv_header_string" >&6; }
7939 if test $gcc_cv_header_string = yes; then
7941 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7946 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7947 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952 #include <sys/types.h>
7953 #include <sys/wait.h>
7954 #ifndef WEXITSTATUS
7955 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7956 #endif
7957 #ifndef WIFEXITED
7958 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7959 #endif
7962 main ()
7964 int s;
7965 wait (&s);
7966 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7968 return 0;
7970 _ACEOF
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 ac_cv_header_sys_wait_h=yes
7973 else
7974 ac_cv_header_sys_wait_h=no
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7979 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7980 if test $ac_cv_header_sys_wait_h = yes; then
7982 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7986 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7987 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7988 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7989 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7990 do :
7991 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7992 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7993 eval as_val=\$$as_ac_Header
7994 if test "x$as_val" = x""yes; then :
7995 cat >>confdefs.h <<_ACEOF
7996 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7997 _ACEOF
8000 done
8003 # Check for thread headers.
8004 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
8005 if test "x$ac_cv_header_thread_h" = x""yes; then :
8006 have_thread_h=yes
8007 else
8008 have_thread_h=
8011 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
8012 if test "x$ac_cv_header_pthread_h" = x""yes; then :
8013 have_pthread_h=yes
8014 else
8015 have_pthread_h=
8019 # These tests can't be done till we know if we have limits.h.
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
8021 $as_echo_n "checking for CHAR_BIT... " >&6; }
8022 if test "${gcc_cv_decl_char_bit+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 #ifdef HAVE_LIMITS_H
8028 #include <limits.h>
8029 #endif
8030 #ifdef CHAR_BIT
8031 found
8032 #endif
8033 _ACEOF
8034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8035 $EGREP "found" >/dev/null 2>&1; then :
8036 gcc_cv_decl_char_bit=yes
8037 else
8038 gcc_cv_decl_char_bit=no
8040 rm -f conftest*
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
8045 $as_echo "$gcc_cv_decl_char_bit" >&6; }
8046 if test $gcc_cv_decl_char_bit = no; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
8048 $as_echo_n "checking number of bits in a byte... " >&6; }
8049 if test "${gcc_cv_c_nbby+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8053 gcc_cv_c_nbby=
8054 while test $i -lt 65; do
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8059 main ()
8061 switch(0) {
8062 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
8063 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
8066 return 0;
8068 _ACEOF
8069 if ac_fn_c_try_compile "$LINENO"; then :
8070 gcc_cv_c_nbby=$i; break
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 i=`expr $i + 1`
8074 done
8075 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
8079 $as_echo "$gcc_cv_c_nbby" >&6; }
8080 if test $gcc_cv_c_nbby = failed; then
8081 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
8082 else
8084 cat >>confdefs.h <<_ACEOF
8085 #define CHAR_BIT $gcc_cv_c_nbby
8086 _ACEOF
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8091 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8092 if test "${ac_cv_c_bigendian+set}" = set; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 ac_cv_c_bigendian=unknown
8096 # See if we're dealing with a universal compiler.
8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8098 /* end confdefs.h. */
8099 #ifndef __APPLE_CC__
8100 not a universal capable compiler
8101 #endif
8102 typedef int dummy;
8104 _ACEOF
8105 if ac_fn_c_try_compile "$LINENO"; then :
8107 # Check for potential -arch flags. It is not universal unless
8108 # there are at least two -arch flags with different values.
8109 ac_arch=
8110 ac_prev=
8111 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8112 if test -n "$ac_prev"; then
8113 case $ac_word in
8114 i?86 | x86_64 | ppc | ppc64)
8115 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8116 ac_arch=$ac_word
8117 else
8118 ac_cv_c_bigendian=universal
8119 break
8122 esac
8123 ac_prev=
8124 elif test "x$ac_word" = "x-arch"; then
8125 ac_prev=arch
8127 done
8129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 if test $ac_cv_c_bigendian = unknown; then
8131 # See if sys/param.h defines the BYTE_ORDER macro.
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134 #include <sys/types.h>
8135 #include <sys/param.h>
8138 main ()
8140 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8141 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8142 && LITTLE_ENDIAN)
8143 bogus endian macros
8144 #endif
8147 return 0;
8149 _ACEOF
8150 if ac_fn_c_try_compile "$LINENO"; then :
8151 # It does; now see whether it defined to BIG_ENDIAN or not.
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 #include <sys/types.h>
8155 #include <sys/param.h>
8158 main ()
8160 #if BYTE_ORDER != BIG_ENDIAN
8161 not big endian
8162 #endif
8165 return 0;
8167 _ACEOF
8168 if ac_fn_c_try_compile "$LINENO"; then :
8169 ac_cv_c_bigendian=yes
8170 else
8171 ac_cv_c_bigendian=no
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 if test $ac_cv_c_bigendian = unknown; then
8178 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* end confdefs.h. */
8181 #include <limits.h>
8184 main ()
8186 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8187 bogus endian macros
8188 #endif
8191 return 0;
8193 _ACEOF
8194 if ac_fn_c_try_compile "$LINENO"; then :
8195 # It does; now see whether it defined to _BIG_ENDIAN or not.
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 #include <limits.h>
8201 main ()
8203 #ifndef _BIG_ENDIAN
8204 not big endian
8205 #endif
8208 return 0;
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"; then :
8212 ac_cv_c_bigendian=yes
8213 else
8214 ac_cv_c_bigendian=no
8216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 if test $ac_cv_c_bigendian = unknown; then
8221 # Compile a test program.
8222 if test "$cross_compiling" = yes; then :
8223 # Try to guess by grepping values from an object file.
8224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h. */
8226 short int ascii_mm[] =
8227 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8228 short int ascii_ii[] =
8229 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8230 int use_ascii (int i) {
8231 return ascii_mm[i] + ascii_ii[i];
8233 short int ebcdic_ii[] =
8234 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8235 short int ebcdic_mm[] =
8236 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8237 int use_ebcdic (int i) {
8238 return ebcdic_mm[i] + ebcdic_ii[i];
8240 extern int foo;
8243 main ()
8245 return use_ascii (foo) == use_ebcdic (foo);
8247 return 0;
8249 _ACEOF
8250 if ac_fn_c_try_compile "$LINENO"; then :
8251 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8252 ac_cv_c_bigendian=yes
8254 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8255 if test "$ac_cv_c_bigendian" = unknown; then
8256 ac_cv_c_bigendian=no
8257 else
8258 # finding both strings is unlikely to happen, but who knows?
8259 ac_cv_c_bigendian=unknown
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8264 else
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 $ac_includes_default
8269 main ()
8272 /* Are we little or big endian? From Harbison&Steele. */
8273 union
8275 long int l;
8276 char c[sizeof (long int)];
8277 } u;
8278 u.l = 1;
8279 return u.c[sizeof (long int) - 1] == 1;
8282 return 0;
8284 _ACEOF
8285 if ac_fn_c_try_run "$LINENO"; then :
8286 ac_cv_c_bigendian=no
8287 else
8288 ac_cv_c_bigendian=yes
8290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8291 conftest.$ac_objext conftest.beam conftest.$ac_ext
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8297 $as_echo "$ac_cv_c_bigendian" >&6; }
8298 case $ac_cv_c_bigendian in #(
8299 yes)
8300 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8301 ;; #(
8303 ;; #(
8304 universal)
8306 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8308 ;; #(
8310 as_fn_error "unknown endianness
8311 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8312 esac
8315 # --------
8316 # UNSORTED
8317 # --------
8320 # These libraries may be used by collect2.
8321 # We may need a special search path to get them linked.
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
8323 $as_echo_n "checking for collect2 libraries... " >&6; }
8324 if test "${gcc_cv_collect2_libs+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 save_LIBS="$LIBS"
8328 for libs in '' -lld -lmld \
8329 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
8330 '-L/usr/lib/cmplrs/cc3.11 -lmld'
8332 LIBS="$libs"
8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8334 /* end confdefs.h. */
8336 /* Override any GCC internal prototype to avoid an error.
8337 Use char because int might match the return type of a GCC
8338 builtin and then its argument prototype would still apply. */
8339 #ifdef __cplusplus
8340 extern "C"
8341 #endif
8342 char ldopen ();
8344 main ()
8346 return ldopen ();
8348 return 0;
8350 _ACEOF
8351 if ac_fn_c_try_link "$LINENO"; then :
8352 gcc_cv_collect2_libs="$libs"; break
8354 rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext conftest.$ac_ext
8356 done
8357 LIBS="$save_LIBS"
8358 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
8361 $as_echo "$gcc_cv_collect2_libs" >&6; }
8362 case $gcc_cv_collect2_libs in
8363 "none required") ;;
8364 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
8365 esac
8368 # When building Ada code on Alpha, we need exc_resume which is usually in
8369 # -lexc. So test for it.
8370 save_LIBS="$LIBS"
8371 LIBS=
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
8373 $as_echo_n "checking for library containing exc_resume... " >&6; }
8374 if test "${ac_cv_search_exc_resume+set}" = set; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 ac_func_search_save_LIBS=$LIBS
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8381 /* Override any GCC internal prototype to avoid an error.
8382 Use char because int might match the return type of a GCC
8383 builtin and then its argument prototype would still apply. */
8384 #ifdef __cplusplus
8385 extern "C"
8386 #endif
8387 char exc_resume ();
8389 main ()
8391 return exc_resume ();
8393 return 0;
8395 _ACEOF
8396 for ac_lib in '' exc; do
8397 if test -z "$ac_lib"; then
8398 ac_res="none required"
8399 else
8400 ac_res=-l$ac_lib
8401 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8403 if ac_fn_c_try_link "$LINENO"; then :
8404 ac_cv_search_exc_resume=$ac_res
8406 rm -f core conftest.err conftest.$ac_objext \
8407 conftest$ac_exeext
8408 if test "${ac_cv_search_exc_resume+set}" = set; then :
8409 break
8411 done
8412 if test "${ac_cv_search_exc_resume+set}" = set; then :
8414 else
8415 ac_cv_search_exc_resume=no
8417 rm conftest.$ac_ext
8418 LIBS=$ac_func_search_save_LIBS
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
8421 $as_echo "$ac_cv_search_exc_resume" >&6; }
8422 ac_res=$ac_cv_search_exc_resume
8423 if test "$ac_res" != no; then :
8424 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8428 GNAT_LIBEXC="$LIBS"
8429 LIBS="$save_LIBS"
8432 # Some systems put ldexp and frexp in libm instead of libc; assume
8433 # they're both in the same place. jcf-dump needs them.
8434 save_LIBS="$LIBS"
8435 LIBS=
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
8437 $as_echo_n "checking for library containing ldexp... " >&6; }
8438 if test "${ac_cv_search_ldexp+set}" = set; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 ac_func_search_save_LIBS=$LIBS
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8445 /* Override any GCC internal prototype to avoid an error.
8446 Use char because int might match the return type of a GCC
8447 builtin and then its argument prototype would still apply. */
8448 #ifdef __cplusplus
8449 extern "C"
8450 #endif
8451 char ldexp ();
8453 main ()
8455 return ldexp ();
8457 return 0;
8459 _ACEOF
8460 for ac_lib in '' m; do
8461 if test -z "$ac_lib"; then
8462 ac_res="none required"
8463 else
8464 ac_res=-l$ac_lib
8465 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8467 if ac_fn_c_try_link "$LINENO"; then :
8468 ac_cv_search_ldexp=$ac_res
8470 rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext
8472 if test "${ac_cv_search_ldexp+set}" = set; then :
8473 break
8475 done
8476 if test "${ac_cv_search_ldexp+set}" = set; then :
8478 else
8479 ac_cv_search_ldexp=no
8481 rm conftest.$ac_ext
8482 LIBS=$ac_func_search_save_LIBS
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
8485 $as_echo "$ac_cv_search_ldexp" >&6; }
8486 ac_res=$ac_cv_search_ldexp
8487 if test "$ac_res" != no; then :
8488 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8492 LDEXP_LIB="$LIBS"
8493 LIBS="$save_LIBS"
8496 # Use <inttypes.h> only if it exists,
8497 # doesn't clash with <sys/types.h>, and declares intmax_t.
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8499 $as_echo_n "checking for inttypes.h... " >&6; }
8500 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8501 $as_echo_n "(cached) " >&6
8502 else
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <sys/types.h>
8506 #include <inttypes.h>
8508 main ()
8510 intmax_t i = -1;
8512 return 0;
8514 _ACEOF
8515 if ac_fn_c_try_compile "$LINENO"; then :
8516 gcc_cv_header_inttypes_h=yes
8517 else
8518 gcc_cv_header_inttypes_h=no
8520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8524 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8525 if test $gcc_cv_header_inttypes_h = yes; then
8527 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8533 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8534 sysconf strsignal getrusage nl_langinfo \
8535 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8536 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
8537 do :
8538 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8540 eval as_val=\$$as_ac_var
8541 if test "x$as_val" = x""yes; then :
8542 cat >>confdefs.h <<_ACEOF
8543 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8544 _ACEOF
8547 done
8550 if test x$ac_cv_func_mbstowcs = xyes; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8552 $as_echo_n "checking whether mbstowcs works... " >&6; }
8553 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8554 $as_echo_n "(cached) " >&6
8555 else
8556 if test "$cross_compiling" = yes; then :
8557 gcc_cv_func_mbstowcs_works=yes
8558 else
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561 #include <stdlib.h>
8562 int main()
8564 mbstowcs(0, "", 0);
8565 return 0;
8567 _ACEOF
8568 if ac_fn_c_try_run "$LINENO"; then :
8569 gcc_cv_func_mbstowcs_works=yes
8570 else
8571 gcc_cv_func_mbstowcs_works=no
8573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8574 conftest.$ac_objext conftest.beam conftest.$ac_ext
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8579 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8580 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8582 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8587 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8588 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8590 else
8592 cat >>confdefs.h <<_ACEOF
8593 #define ssize_t int
8594 _ACEOF
8598 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8599 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8601 else
8603 cat >>confdefs.h <<_ACEOF
8604 #define caddr_t char *
8605 _ACEOF
8611 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8612 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8613 gcc_header_sys_mman_h=yes
8614 else
8615 gcc_header_sys_mman_h=no
8618 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8619 if test "x$ac_cv_func_mmap" = x""yes; then :
8620 gcc_func_mmap=yes
8621 else
8622 gcc_func_mmap=no
8625 if test "$gcc_header_sys_mman_h" != yes \
8626 || test "$gcc_func_mmap" != yes; then
8627 gcc_cv_func_mmap_file=no
8628 gcc_cv_func_mmap_dev_zero=no
8629 gcc_cv_func_mmap_anon=no
8630 else
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8632 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8633 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8634 $as_echo_n "(cached) " >&6
8635 else
8636 # Add a system to this blacklist if
8637 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8638 # memory area containing the same data that you'd get if you applied
8639 # read() to the same fd. The only system known to have a problem here
8640 # is VMS, where text files have record structure.
8641 case "$host_os" in
8642 vms* | ultrix*)
8643 gcc_cv_func_mmap_file=no ;;
8645 gcc_cv_func_mmap_file=yes;;
8646 esac
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8649 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8651 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8652 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 # Add a system to this blacklist if it has mmap() but /dev/zero
8656 # does not exist, or if mmapping /dev/zero does not give anonymous
8657 # zeroed pages with both the following properties:
8658 # 1. If you map N consecutive pages in with one call, and then
8659 # unmap any subset of those pages, the pages that were not
8660 # explicitly unmapped remain accessible.
8661 # 2. If you map two adjacent blocks of memory and then unmap them
8662 # both at once, they must both go away.
8663 # Systems known to be in this category are Windows (all variants),
8664 # VMS, and Darwin.
8665 case "$host_os" in
8666 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8667 gcc_cv_func_mmap_dev_zero=no ;;
8669 gcc_cv_func_mmap_dev_zero=yes;;
8670 esac
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8673 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8675 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8677 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8678 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683 #include <sys/types.h>
8684 #include <sys/mman.h>
8685 #include <unistd.h>
8687 #ifndef MAP_ANONYMOUS
8688 #define MAP_ANONYMOUS MAP_ANON
8689 #endif
8692 main ()
8694 int n = MAP_ANONYMOUS;
8696 return 0;
8698 _ACEOF
8699 if ac_fn_c_try_compile "$LINENO"; then :
8700 gcc_cv_decl_map_anon=yes
8701 else
8702 gcc_cv_decl_map_anon=no
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8707 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8709 if test $gcc_cv_decl_map_anon = no; then
8710 gcc_cv_func_mmap_anon=no
8711 else
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8713 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8714 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8718 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8719 # doesn't give anonymous zeroed pages with the same properties listed
8720 # above for use of /dev/zero.
8721 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8722 case "$host_os" in
8723 vms* | cygwin* | pe | mingw* | sco* | udk* )
8724 gcc_cv_func_mmap_anon=no ;;
8726 gcc_cv_func_mmap_anon=yes;;
8727 esac
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8730 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8734 if test $gcc_cv_func_mmap_file = yes; then
8736 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8739 if test $gcc_cv_func_mmap_dev_zero = yes; then
8741 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8744 if test $gcc_cv_func_mmap_anon = yes; then
8746 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8751 case "${host}" in
8752 *-*-*vms*)
8753 # Under VMS, vfork works very differently than on Unix. The standard test
8754 # won't work, and it isn't easily adaptable. It makes more sense to
8755 # just force it.
8756 ac_cv_func_vfork_works=yes
8758 esac
8759 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8760 if test "x$ac_cv_type_pid_t" = x""yes; then :
8762 else
8764 cat >>confdefs.h <<_ACEOF
8765 #define pid_t int
8766 _ACEOF
8770 for ac_header in vfork.h
8771 do :
8772 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8773 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8774 cat >>confdefs.h <<_ACEOF
8775 #define HAVE_VFORK_H 1
8776 _ACEOF
8779 done
8781 for ac_func in fork vfork
8782 do :
8783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8784 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8785 eval as_val=\$$as_ac_var
8786 if test "x$as_val" = x""yes; then :
8787 cat >>confdefs.h <<_ACEOF
8788 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8789 _ACEOF
8792 done
8794 if test "x$ac_cv_func_fork" = xyes; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8796 $as_echo_n "checking for working fork... " >&6; }
8797 if test "${ac_cv_func_fork_works+set}" = set; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 if test "$cross_compiling" = yes; then :
8801 ac_cv_func_fork_works=cross
8802 else
8803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8805 $ac_includes_default
8807 main ()
8810 /* By Ruediger Kuhlmann. */
8811 return fork () < 0;
8814 return 0;
8816 _ACEOF
8817 if ac_fn_c_try_run "$LINENO"; then :
8818 ac_cv_func_fork_works=yes
8819 else
8820 ac_cv_func_fork_works=no
8822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8823 conftest.$ac_objext conftest.beam conftest.$ac_ext
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8828 $as_echo "$ac_cv_func_fork_works" >&6; }
8830 else
8831 ac_cv_func_fork_works=$ac_cv_func_fork
8833 if test "x$ac_cv_func_fork_works" = xcross; then
8834 case $host in
8835 *-*-amigaos* | *-*-msdosdjgpp*)
8836 # Override, as these systems have only a dummy fork() stub
8837 ac_cv_func_fork_works=no
8840 ac_cv_func_fork_works=yes
8842 esac
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8844 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8846 ac_cv_func_vfork_works=$ac_cv_func_vfork
8847 if test "x$ac_cv_func_vfork" = xyes; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8849 $as_echo_n "checking for working vfork... " >&6; }
8850 if test "${ac_cv_func_vfork_works+set}" = set; then :
8851 $as_echo_n "(cached) " >&6
8852 else
8853 if test "$cross_compiling" = yes; then :
8854 ac_cv_func_vfork_works=cross
8855 else
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 /* Thanks to Paul Eggert for this test. */
8859 $ac_includes_default
8860 #include <sys/wait.h>
8861 #ifdef HAVE_VFORK_H
8862 # include <vfork.h>
8863 #endif
8864 /* On some sparc systems, changes by the child to local and incoming
8865 argument registers are propagated back to the parent. The compiler
8866 is told about this with #include <vfork.h>, but some compilers
8867 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8868 static variable whose address is put into a register that is
8869 clobbered by the vfork. */
8870 static void
8871 #ifdef __cplusplus
8872 sparc_address_test (int arg)
8873 # else
8874 sparc_address_test (arg) int arg;
8875 #endif
8877 static pid_t child;
8878 if (!child) {
8879 child = vfork ();
8880 if (child < 0) {
8881 perror ("vfork");
8882 _exit(2);
8884 if (!child) {
8885 arg = getpid();
8886 write(-1, "", 0);
8887 _exit (arg);
8893 main ()
8895 pid_t parent = getpid ();
8896 pid_t child;
8898 sparc_address_test (0);
8900 child = vfork ();
8902 if (child == 0) {
8903 /* Here is another test for sparc vfork register problems. This
8904 test uses lots of local variables, at least as many local
8905 variables as main has allocated so far including compiler
8906 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8907 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8908 reuse the register of parent for one of the local variables,
8909 since it will think that parent can't possibly be used any more
8910 in this routine. Assigning to the local variable will thus
8911 munge parent in the parent process. */
8912 pid_t
8913 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8914 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8915 /* Convince the compiler that p..p7 are live; otherwise, it might
8916 use the same hardware register for all 8 local variables. */
8917 if (p != p1 || p != p2 || p != p3 || p != p4
8918 || p != p5 || p != p6 || p != p7)
8919 _exit(1);
8921 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8922 from child file descriptors. If the child closes a descriptor
8923 before it execs or exits, this munges the parent's descriptor
8924 as well. Test for this by closing stdout in the child. */
8925 _exit(close(fileno(stdout)) != 0);
8926 } else {
8927 int status;
8928 struct stat st;
8930 while (wait(&status) != child)
8932 return (
8933 /* Was there some problem with vforking? */
8934 child < 0
8936 /* Did the child fail? (This shouldn't happen.) */
8937 || status
8939 /* Did the vfork/compiler bug occur? */
8940 || parent != getpid()
8942 /* Did the file descriptor bug occur? */
8943 || fstat(fileno(stdout), &st) != 0
8947 _ACEOF
8948 if ac_fn_c_try_run "$LINENO"; then :
8949 ac_cv_func_vfork_works=yes
8950 else
8951 ac_cv_func_vfork_works=no
8953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8954 conftest.$ac_objext conftest.beam conftest.$ac_ext
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8959 $as_echo "$ac_cv_func_vfork_works" >&6; }
8962 if test "x$ac_cv_func_fork_works" = xcross; then
8963 ac_cv_func_vfork_works=$ac_cv_func_vfork
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8965 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8968 if test "x$ac_cv_func_vfork_works" = xyes; then
8970 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8972 else
8974 $as_echo "#define vfork fork" >>confdefs.h
8977 if test "x$ac_cv_func_fork_works" = xyes; then
8979 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8985 if test "X$prefix" = "XNONE"; then
8986 acl_final_prefix="$ac_default_prefix"
8987 else
8988 acl_final_prefix="$prefix"
8990 if test "X$exec_prefix" = "XNONE"; then
8991 acl_final_exec_prefix='${prefix}'
8992 else
8993 acl_final_exec_prefix="$exec_prefix"
8995 acl_save_prefix="$prefix"
8996 prefix="$acl_final_prefix"
8997 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8998 prefix="$acl_save_prefix"
9001 # Check whether --with-gnu-ld was given.
9002 if test "${with_gnu_ld+set}" = set; then :
9003 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9004 else
9005 with_gnu_ld=no
9008 # Prepare PATH_SEPARATOR.
9009 # The user is always right.
9010 if test "${PATH_SEPARATOR+set}" != set; then
9011 echo "#! /bin/sh" >conf$$.sh
9012 echo "exit 0" >>conf$$.sh
9013 chmod +x conf$$.sh
9014 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9015 PATH_SEPARATOR=';'
9016 else
9017 PATH_SEPARATOR=:
9019 rm -f conf$$.sh
9021 ac_prog=ld
9022 if test "$GCC" = yes; then
9023 # Check if gcc -print-prog-name=ld gives a path.
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9025 $as_echo_n "checking for ld used by GCC... " >&6; }
9026 case $host in
9027 *-*-mingw*)
9028 # gcc leaves a trailing carriage return which upsets mingw
9029 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9031 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9032 esac
9033 case $ac_prog in
9034 # Accept absolute paths.
9035 [\\/]* | [A-Za-z]:[\\/]*)
9036 re_direlt='/[^/][^/]*/\.\./'
9037 # Canonicalize the path of ld
9038 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9039 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9040 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9041 done
9042 test -z "$LD" && LD="$ac_prog"
9045 # If it fails, then pretend we aren't using GCC.
9046 ac_prog=ld
9049 # If it is relative, then search for the first ld in PATH.
9050 with_gnu_ld=unknown
9052 esac
9053 elif test "$with_gnu_ld" = yes; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9055 $as_echo_n "checking for GNU ld... " >&6; }
9056 else
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9058 $as_echo_n "checking for non-GNU ld... " >&6; }
9060 if test "${acl_cv_path_LD+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 if test -z "$LD"; then
9064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9065 for ac_dir in $PATH; do
9066 test -z "$ac_dir" && ac_dir=.
9067 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9068 acl_cv_path_LD="$ac_dir/$ac_prog"
9069 # Check to see if the program is GNU ld. I'd rather use --version,
9070 # but apparently some GNU ld's only accept -v.
9071 # Break only if it was the GNU/non-GNU ld that we prefer.
9072 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9073 test "$with_gnu_ld" != no && break
9074 else
9075 test "$with_gnu_ld" != yes && break
9078 done
9079 IFS="$ac_save_ifs"
9080 else
9081 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9085 LD="$acl_cv_path_LD"
9086 if test -n "$LD"; then
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9088 $as_echo "$LD" >&6; }
9089 else
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9093 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9095 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9096 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9100 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9101 acl_cv_prog_gnu_ld=yes
9102 else
9103 acl_cv_prog_gnu_ld=no
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9107 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9108 with_gnu_ld=$acl_cv_prog_gnu_ld
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9113 $as_echo_n "checking for shared library run path origin... " >&6; }
9114 if test "${acl_cv_rpath+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
9116 else
9118 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9119 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9120 . ./conftest.sh
9121 rm -f ./conftest.sh
9122 acl_cv_rpath=done
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9126 $as_echo "$acl_cv_rpath" >&6; }
9127 wl="$acl_cv_wl"
9128 libext="$acl_cv_libext"
9129 shlibext="$acl_cv_shlibext"
9130 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9131 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9132 hardcode_direct="$acl_cv_hardcode_direct"
9133 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9134 # Check whether --enable-rpath was given.
9135 if test "${enable_rpath+set}" = set; then :
9136 enableval=$enable_rpath; :
9137 else
9138 enable_rpath=yes
9148 use_additional=yes
9150 acl_save_prefix="$prefix"
9151 prefix="$acl_final_prefix"
9152 acl_save_exec_prefix="$exec_prefix"
9153 exec_prefix="$acl_final_exec_prefix"
9155 eval additional_includedir=\"$includedir\"
9156 eval additional_libdir=\"$libdir\"
9158 exec_prefix="$acl_save_exec_prefix"
9159 prefix="$acl_save_prefix"
9162 # Check whether --with-libiconv-prefix was given.
9163 if test "${with_libiconv_prefix+set}" = set; then :
9164 withval=$with_libiconv_prefix;
9165 if test "X$withval" = "Xno"; then
9166 use_additional=no
9167 else
9168 if test "X$withval" = "X"; then
9170 acl_save_prefix="$prefix"
9171 prefix="$acl_final_prefix"
9172 acl_save_exec_prefix="$exec_prefix"
9173 exec_prefix="$acl_final_exec_prefix"
9175 eval additional_includedir=\"$includedir\"
9176 eval additional_libdir=\"$libdir\"
9178 exec_prefix="$acl_save_exec_prefix"
9179 prefix="$acl_save_prefix"
9181 else
9182 additional_includedir="$withval/include"
9183 additional_libdir="$withval/lib"
9189 LIBICONV=
9190 LTLIBICONV=
9191 INCICONV=
9192 rpathdirs=
9193 ltrpathdirs=
9194 names_already_handled=
9195 names_next_round='iconv '
9196 while test -n "$names_next_round"; do
9197 names_this_round="$names_next_round"
9198 names_next_round=
9199 for name in $names_this_round; do
9200 already_handled=
9201 for n in $names_already_handled; do
9202 if test "$n" = "$name"; then
9203 already_handled=yes
9204 break
9206 done
9207 if test -z "$already_handled"; then
9208 names_already_handled="$names_already_handled $name"
9209 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9210 eval value=\"\$HAVE_LIB$uppername\"
9211 if test -n "$value"; then
9212 if test "$value" = yes; then
9213 eval value=\"\$LIB$uppername\"
9214 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9215 eval value=\"\$LTLIB$uppername\"
9216 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9217 else
9220 else
9221 found_dir=
9222 found_la=
9223 found_so=
9224 found_a=
9225 if test $use_additional = yes; then
9226 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9227 found_dir="$additional_libdir"
9228 found_so="$additional_libdir/lib$name.$shlibext"
9229 if test -f "$additional_libdir/lib$name.la"; then
9230 found_la="$additional_libdir/lib$name.la"
9232 else
9233 if test -f "$additional_libdir/lib$name.$libext"; then
9234 found_dir="$additional_libdir"
9235 found_a="$additional_libdir/lib$name.$libext"
9236 if test -f "$additional_libdir/lib$name.la"; then
9237 found_la="$additional_libdir/lib$name.la"
9242 if test "X$found_dir" = "X"; then
9243 for x in $LDFLAGS $LTLIBICONV; do
9245 acl_save_prefix="$prefix"
9246 prefix="$acl_final_prefix"
9247 acl_save_exec_prefix="$exec_prefix"
9248 exec_prefix="$acl_final_exec_prefix"
9249 eval x=\"$x\"
9250 exec_prefix="$acl_save_exec_prefix"
9251 prefix="$acl_save_prefix"
9253 case "$x" in
9254 -L*)
9255 dir=`echo "X$x" | sed -e 's/^X-L//'`
9256 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9257 found_dir="$dir"
9258 found_so="$dir/lib$name.$shlibext"
9259 if test -f "$dir/lib$name.la"; then
9260 found_la="$dir/lib$name.la"
9262 else
9263 if test -f "$dir/lib$name.$libext"; then
9264 found_dir="$dir"
9265 found_a="$dir/lib$name.$libext"
9266 if test -f "$dir/lib$name.la"; then
9267 found_la="$dir/lib$name.la"
9272 esac
9273 if test "X$found_dir" != "X"; then
9274 break
9276 done
9278 if test "X$found_dir" != "X"; then
9279 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9280 if test "X$found_so" != "X"; then
9281 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9283 else
9284 haveit=
9285 for x in $ltrpathdirs; do
9286 if test "X$x" = "X$found_dir"; then
9287 haveit=yes
9288 break
9290 done
9291 if test -z "$haveit"; then
9292 ltrpathdirs="$ltrpathdirs $found_dir"
9294 if test "$hardcode_direct" = yes; then
9295 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9296 else
9297 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9298 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9299 haveit=
9300 for x in $rpathdirs; do
9301 if test "X$x" = "X$found_dir"; then
9302 haveit=yes
9303 break
9305 done
9306 if test -z "$haveit"; then
9307 rpathdirs="$rpathdirs $found_dir"
9309 else
9310 haveit=
9311 for x in $LDFLAGS $LIBICONV; do
9313 acl_save_prefix="$prefix"
9314 prefix="$acl_final_prefix"
9315 acl_save_exec_prefix="$exec_prefix"
9316 exec_prefix="$acl_final_exec_prefix"
9317 eval x=\"$x\"
9318 exec_prefix="$acl_save_exec_prefix"
9319 prefix="$acl_save_prefix"
9321 if test "X$x" = "X-L$found_dir"; then
9322 haveit=yes
9323 break
9325 done
9326 if test -z "$haveit"; then
9327 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9329 if test "$hardcode_minus_L" != no; then
9330 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9331 else
9332 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9337 else
9338 if test "X$found_a" != "X"; then
9339 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9340 else
9341 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9344 additional_includedir=
9345 case "$found_dir" in
9346 */lib | */lib/)
9347 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9348 additional_includedir="$basedir/include"
9350 esac
9351 if test "X$additional_includedir" != "X"; then
9352 if test "X$additional_includedir" != "X/usr/include"; then
9353 haveit=
9354 if test "X$additional_includedir" = "X/usr/local/include"; then
9355 if test -n "$GCC"; then
9356 case $host_os in
9357 linux*) haveit=yes;;
9358 esac
9361 if test -z "$haveit"; then
9362 for x in $CPPFLAGS $INCICONV; do
9364 acl_save_prefix="$prefix"
9365 prefix="$acl_final_prefix"
9366 acl_save_exec_prefix="$exec_prefix"
9367 exec_prefix="$acl_final_exec_prefix"
9368 eval x=\"$x\"
9369 exec_prefix="$acl_save_exec_prefix"
9370 prefix="$acl_save_prefix"
9372 if test "X$x" = "X-I$additional_includedir"; then
9373 haveit=yes
9374 break
9376 done
9377 if test -z "$haveit"; then
9378 if test -d "$additional_includedir"; then
9379 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9385 if test -n "$found_la"; then
9386 save_libdir="$libdir"
9387 case "$found_la" in
9388 */* | *\\*) . "$found_la" ;;
9389 *) . "./$found_la" ;;
9390 esac
9391 libdir="$save_libdir"
9392 for dep in $dependency_libs; do
9393 case "$dep" in
9394 -L*)
9395 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9396 if test "X$additional_libdir" != "X/usr/lib"; then
9397 haveit=
9398 if test "X$additional_libdir" = "X/usr/local/lib"; then
9399 if test -n "$GCC"; then
9400 case $host_os in
9401 linux*) haveit=yes;;
9402 esac
9405 if test -z "$haveit"; then
9406 haveit=
9407 for x in $LDFLAGS $LIBICONV; do
9409 acl_save_prefix="$prefix"
9410 prefix="$acl_final_prefix"
9411 acl_save_exec_prefix="$exec_prefix"
9412 exec_prefix="$acl_final_exec_prefix"
9413 eval x=\"$x\"
9414 exec_prefix="$acl_save_exec_prefix"
9415 prefix="$acl_save_prefix"
9417 if test "X$x" = "X-L$additional_libdir"; then
9418 haveit=yes
9419 break
9421 done
9422 if test -z "$haveit"; then
9423 if test -d "$additional_libdir"; then
9424 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9427 haveit=
9428 for x in $LDFLAGS $LTLIBICONV; do
9430 acl_save_prefix="$prefix"
9431 prefix="$acl_final_prefix"
9432 acl_save_exec_prefix="$exec_prefix"
9433 exec_prefix="$acl_final_exec_prefix"
9434 eval x=\"$x\"
9435 exec_prefix="$acl_save_exec_prefix"
9436 prefix="$acl_save_prefix"
9438 if test "X$x" = "X-L$additional_libdir"; then
9439 haveit=yes
9440 break
9442 done
9443 if test -z "$haveit"; then
9444 if test -d "$additional_libdir"; then
9445 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9451 -R*)
9452 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9453 if test "$enable_rpath" != no; then
9454 haveit=
9455 for x in $rpathdirs; do
9456 if test "X$x" = "X$dir"; then
9457 haveit=yes
9458 break
9460 done
9461 if test -z "$haveit"; then
9462 rpathdirs="$rpathdirs $dir"
9464 haveit=
9465 for x in $ltrpathdirs; do
9466 if test "X$x" = "X$dir"; then
9467 haveit=yes
9468 break
9470 done
9471 if test -z "$haveit"; then
9472 ltrpathdirs="$ltrpathdirs $dir"
9476 -l*)
9477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9479 *.la)
9480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9483 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9484 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9486 esac
9487 done
9489 else
9490 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9491 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9495 done
9496 done
9497 if test "X$rpathdirs" != "X"; then
9498 if test -n "$hardcode_libdir_separator"; then
9499 alldirs=
9500 for found_dir in $rpathdirs; do
9501 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9502 done
9503 acl_save_libdir="$libdir"
9504 libdir="$alldirs"
9505 eval flag=\"$hardcode_libdir_flag_spec\"
9506 libdir="$acl_save_libdir"
9507 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9508 else
9509 for found_dir in $rpathdirs; do
9510 acl_save_libdir="$libdir"
9511 libdir="$found_dir"
9512 eval flag=\"$hardcode_libdir_flag_spec\"
9513 libdir="$acl_save_libdir"
9514 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9515 done
9518 if test "X$ltrpathdirs" != "X"; then
9519 for found_dir in $ltrpathdirs; do
9520 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9521 done
9530 am_save_CPPFLAGS="$CPPFLAGS"
9532 for element in $INCICONV; do
9533 haveit=
9534 for x in $CPPFLAGS; do
9536 acl_save_prefix="$prefix"
9537 prefix="$acl_final_prefix"
9538 acl_save_exec_prefix="$exec_prefix"
9539 exec_prefix="$acl_final_exec_prefix"
9540 eval x=\"$x\"
9541 exec_prefix="$acl_save_exec_prefix"
9542 prefix="$acl_save_prefix"
9544 if test "X$x" = "X$element"; then
9545 haveit=yes
9546 break
9548 done
9549 if test -z "$haveit"; then
9550 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9552 done
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9556 $as_echo_n "checking for iconv... " >&6; }
9557 if test "${am_cv_func_iconv+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9561 am_cv_func_iconv="no, consider installing GNU libiconv"
9562 am_cv_lib_iconv=no
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 #include <stdlib.h>
9566 #include <iconv.h>
9568 main ()
9570 iconv_t cd = iconv_open("","");
9571 iconv(cd,NULL,NULL,NULL,NULL);
9572 iconv_close(cd);
9574 return 0;
9576 _ACEOF
9577 if ac_fn_c_try_link "$LINENO"; then :
9578 am_cv_func_iconv=yes
9580 rm -f core conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext conftest.$ac_ext
9582 if test "$am_cv_func_iconv" != yes; then
9583 am_save_LIBS="$LIBS"
9584 LIBS="$LIBS $LIBICONV"
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9587 #include <stdlib.h>
9588 #include <iconv.h>
9590 main ()
9592 iconv_t cd = iconv_open("","");
9593 iconv(cd,NULL,NULL,NULL,NULL);
9594 iconv_close(cd);
9596 return 0;
9598 _ACEOF
9599 if ac_fn_c_try_link "$LINENO"; then :
9600 am_cv_lib_iconv=yes
9601 am_cv_func_iconv=yes
9603 rm -f core conftest.err conftest.$ac_objext \
9604 conftest$ac_exeext conftest.$ac_ext
9605 LIBS="$am_save_LIBS"
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9610 $as_echo "$am_cv_func_iconv" >&6; }
9611 if test "$am_cv_func_iconv" = yes; then
9613 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9616 if test "$am_cv_lib_iconv" = yes; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9618 $as_echo_n "checking how to link with libiconv... " >&6; }
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9620 $as_echo "$LIBICONV" >&6; }
9621 else
9622 CPPFLAGS="$am_save_CPPFLAGS"
9623 LIBICONV=
9624 LTLIBICONV=
9629 if test "$am_cv_func_iconv" = yes; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9631 $as_echo_n "checking for iconv declaration... " >&6; }
9632 if test "${am_cv_proto_iconv+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9639 #include <stdlib.h>
9640 #include <iconv.h>
9641 extern
9642 #ifdef __cplusplus
9644 #endif
9645 #if defined(__STDC__) || defined(__cplusplus)
9646 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9647 #else
9648 size_t iconv();
9649 #endif
9652 main ()
9656 return 0;
9658 _ACEOF
9659 if ac_fn_c_try_compile "$LINENO"; then :
9660 am_cv_proto_iconv_arg1=""
9661 else
9662 am_cv_proto_iconv_arg1="const"
9664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9665 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);"
9668 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9670 }$am_cv_proto_iconv" >&5
9671 $as_echo "${ac_t:-
9672 }$am_cv_proto_iconv" >&6; }
9674 cat >>confdefs.h <<_ACEOF
9675 #define ICONV_CONST $am_cv_proto_iconv_arg1
9676 _ACEOF
9680 # Until we have in-tree GNU iconv:
9681 LIBICONV_DEP=
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9686 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9687 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9688 $as_echo_n "(cached) " >&6
9689 else
9690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9691 /* end confdefs.h. */
9692 #include <locale.h>
9694 main ()
9696 return LC_MESSAGES
9698 return 0;
9700 _ACEOF
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 am_cv_val_LC_MESSAGES=yes
9703 else
9704 am_cv_val_LC_MESSAGES=no
9706 rm -f core conftest.err conftest.$ac_objext \
9707 conftest$ac_exeext conftest.$ac_ext
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9710 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9711 if test $am_cv_val_LC_MESSAGES = yes; then
9713 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9720 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9721 if test "${am_cv_langinfo_codeset+set}" = set; then :
9722 $as_echo_n "(cached) " >&6
9723 else
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9726 #include <langinfo.h>
9728 main ()
9730 char* cs = nl_langinfo(CODESET);
9732 return 0;
9734 _ACEOF
9735 if ac_fn_c_try_link "$LINENO"; then :
9736 am_cv_langinfo_codeset=yes
9737 else
9738 am_cv_langinfo_codeset=no
9740 rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9745 $as_echo "$am_cv_langinfo_codeset" >&6; }
9746 if test $am_cv_langinfo_codeset = yes; then
9748 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9753 # We will need to find libiberty.h and ansidecl.h
9754 saved_CFLAGS="$CFLAGS"
9755 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9756 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9757 strsignal strstr strverscmp \
9758 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9759 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
9761 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9763 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9764 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 #undef $ac_tr_decl
9770 #define $ac_tr_decl 1
9772 #include "ansidecl.h"
9773 #include "system.h"
9776 main ()
9778 #ifndef $ac_func
9779 char *(*pfn) = (char *(*)) $ac_func ;
9780 #endif
9782 return 0;
9784 _ACEOF
9785 if ac_fn_c_try_compile "$LINENO"; then :
9786 eval "gcc_cv_have_decl_$ac_func=yes"
9787 else
9788 eval "gcc_cv_have_decl_$ac_func=no"
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9795 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9796 #define $ac_tr_decl 1
9797 _ACEOF
9799 else
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9802 #define $ac_tr_decl 0
9803 _ACEOF
9807 done
9810 for ac_func in getrlimit setrlimit getrusage
9812 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9814 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9815 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9816 $as_echo_n "(cached) " >&6
9817 else
9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9819 /* end confdefs.h. */
9820 #undef $ac_tr_decl
9821 #define $ac_tr_decl 1
9823 #include "ansidecl.h"
9824 #include "system.h"
9825 #ifdef HAVE_SYS_RESOURCE_H
9826 #include <sys/resource.h>
9827 #endif
9831 main ()
9833 #ifndef $ac_func
9834 char *(*pfn) = (char *(*)) $ac_func ;
9835 #endif
9837 return 0;
9839 _ACEOF
9840 if ac_fn_c_try_compile "$LINENO"; then :
9841 eval "gcc_cv_have_decl_$ac_func=yes"
9842 else
9843 eval "gcc_cv_have_decl_$ac_func=no"
9845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9850 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9851 #define $ac_tr_decl 1
9852 _ACEOF
9854 else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9857 #define $ac_tr_decl 0
9858 _ACEOF
9862 done
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9868 #include "ansidecl.h"
9869 #include "system.h"
9870 #ifdef HAVE_SYS_RESOURCE_H
9871 #include <sys/resource.h>
9872 #endif
9875 main ()
9877 rlim_t l = 0;
9879 return 0;
9881 _ACEOF
9882 if ac_fn_c_try_compile "$LINENO"; then :
9884 else
9886 $as_echo "#define rlim_t long" >>confdefs.h
9889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9891 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9892 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9893 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9894 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9895 for ac_func in ldgetname
9897 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9899 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9900 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905 #undef $ac_tr_decl
9906 #define $ac_tr_decl 1
9908 #include "ansidecl.h"
9909 #include "system.h"
9910 #ifdef HAVE_LDFCN_H
9911 #undef FREAD
9912 #undef FWRITE
9913 #include <ldfcn.h>
9914 #endif
9918 main ()
9920 #ifndef $ac_func
9921 char *(*pfn) = (char *(*)) $ac_func ;
9922 #endif
9924 return 0;
9926 _ACEOF
9927 if ac_fn_c_try_compile "$LINENO"; then :
9928 eval "gcc_cv_have_decl_$ac_func=yes"
9929 else
9930 eval "gcc_cv_have_decl_$ac_func=no"
9932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9937 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9938 #define $ac_tr_decl 1
9939 _ACEOF
9941 else
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9944 #define $ac_tr_decl 0
9945 _ACEOF
9949 done
9952 for ac_func in times
9954 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9956 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9957 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9962 #undef $ac_tr_decl
9963 #define $ac_tr_decl 1
9965 #include "ansidecl.h"
9966 #include "system.h"
9967 #ifdef HAVE_SYS_TIMES_H
9968 #include <sys/times.h>
9969 #endif
9973 main ()
9975 #ifndef $ac_func
9976 char *(*pfn) = (char *(*)) $ac_func ;
9977 #endif
9979 return 0;
9981 _ACEOF
9982 if ac_fn_c_try_compile "$LINENO"; then :
9983 eval "gcc_cv_have_decl_$ac_func=yes"
9984 else
9985 eval "gcc_cv_have_decl_$ac_func=no"
9987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9990 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9992 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9993 #define $ac_tr_decl 1
9994 _ACEOF
9996 else
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9999 #define $ac_tr_decl 0
10000 _ACEOF
10004 done
10007 for ac_func in sigaltstack
10009 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
10011 $as_echo_n "checking whether $ac_func is declared... " >&6; }
10012 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
10013 $as_echo_n "(cached) " >&6
10014 else
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017 #undef $ac_tr_decl
10018 #define $ac_tr_decl 1
10020 #include "ansidecl.h"
10021 #include "system.h"
10022 #include <signal.h>
10026 main ()
10028 #ifndef $ac_func
10029 char *(*pfn) = (char *(*)) $ac_func ;
10030 #endif
10032 return 0;
10034 _ACEOF
10035 if ac_fn_c_try_compile "$LINENO"; then :
10036 eval "gcc_cv_have_decl_$ac_func=yes"
10037 else
10038 eval "gcc_cv_have_decl_$ac_func=no"
10040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10045 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
10046 #define $ac_tr_decl 1
10047 _ACEOF
10049 else
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
10052 #define $ac_tr_decl 0
10053 _ACEOF
10057 done
10060 # More time-related stuff.
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
10062 $as_echo_n "checking for struct tms... " >&6; }
10063 if test "${ac_cv_struct_tms+set}" = set; then :
10064 $as_echo_n "(cached) " >&6
10065 else
10067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10070 #include "ansidecl.h"
10071 #include "system.h"
10072 #ifdef HAVE_SYS_TIMES_H
10073 #include <sys/times.h>
10074 #endif
10077 main ()
10079 struct tms tms;
10081 return 0;
10083 _ACEOF
10084 if ac_fn_c_try_compile "$LINENO"; then :
10085 ac_cv_struct_tms=yes
10086 else
10087 ac_cv_struct_tms=no
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
10092 $as_echo "$ac_cv_struct_tms" >&6; }
10093 if test $ac_cv_struct_tms = yes; then
10095 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
10099 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
10100 # revisit after autoconf 2.50.
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
10102 $as_echo_n "checking for clock_t... " >&6; }
10103 if test "${gcc_cv_type_clock_t+set}" = set; then :
10104 $as_echo_n "(cached) " >&6
10105 else
10107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10108 /* end confdefs.h. */
10110 #include "ansidecl.h"
10111 #include "system.h"
10114 main ()
10116 clock_t x;
10118 return 0;
10120 _ACEOF
10121 if ac_fn_c_try_compile "$LINENO"; then :
10122 gcc_cv_type_clock_t=yes
10123 else
10124 gcc_cv_type_clock_t=no
10126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
10129 $as_echo "$gcc_cv_type_clock_t" >&6; }
10130 if test $gcc_cv_type_clock_t = yes; then
10132 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
10136 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
10137 CFLAGS="$saved_CFLAGS"
10139 # Check whether --enable-initfini-array was given.
10140 if test "${enable_initfini_array+set}" = set; then :
10141 enableval=$enable_initfini_array;
10142 else
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
10145 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
10146 if test "${gcc_cv_initfini_array+set}" = set; then :
10147 $as_echo_n "(cached) " >&6
10148 else
10149 if test "$cross_compiling" = yes; then :
10150 gcc_cv_initfini_array=no
10151 else
10152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10155 static int x = -1;
10156 int main (void) { return x; }
10157 int foo (void) { x = 0; }
10158 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
10159 _ACEOF
10160 if ac_fn_c_try_run "$LINENO"; then :
10161 gcc_cv_initfini_array=yes
10162 else
10163 gcc_cv_initfini_array=no
10165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10166 conftest.$ac_objext conftest.beam conftest.$ac_ext
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
10171 $as_echo "$gcc_cv_initfini_array" >&6; }
10172 enable_initfini_array=$gcc_cv_initfini_array
10176 if test $enable_initfini_array = yes; then
10178 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
10182 # mkdir takes a single argument on some systems.
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
10184 $as_echo_n "checking if mkdir takes one argument... " >&6; }
10185 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
10186 $as_echo_n "(cached) " >&6
10187 else
10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10189 /* end confdefs.h. */
10191 #include <sys/types.h>
10192 #ifdef HAVE_SYS_STAT_H
10193 # include <sys/stat.h>
10194 #endif
10195 #ifdef HAVE_UNISTD_H
10196 # include <unistd.h>
10197 #endif
10198 #ifdef HAVE_DIRECT_H
10199 # include <direct.h>
10200 #endif
10202 main ()
10204 mkdir ("foo", 0);
10206 return 0;
10208 _ACEOF
10209 if ac_fn_c_try_compile "$LINENO"; then :
10210 gcc_cv_mkdir_takes_one_arg=no
10211 else
10212 gcc_cv_mkdir_takes_one_arg=yes
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
10217 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
10218 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
10220 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
10225 # File extensions
10226 manext='.1'
10227 objext='.o'
10231 # With Setjmp/Longjmp based exception handling.
10232 # Check whether --enable-sjlj-exceptions was given.
10233 if test "${enable_sjlj_exceptions+set}" = set; then :
10234 enableval=$enable_sjlj_exceptions; case $target in
10235 *-*-hpux10*)
10236 if test $enableval != yes; then
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
10238 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
10239 enableval=yes
10242 esac
10243 force_sjlj_exceptions=yes
10244 else
10245 case $target in
10246 *-*-hpux10*)
10247 force_sjlj_exceptions=yes
10248 enableval=yes
10251 force_sjlj_exceptions=no
10253 esac
10256 if test $force_sjlj_exceptions = yes; then
10257 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
10259 cat >>confdefs.h <<_ACEOF
10260 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
10261 _ACEOF
10265 # For platforms with the unwind ABI which includes an unwind library,
10266 # libunwind, we can choose to use the system libunwind.
10267 # config.gcc also contains tests of with_system_libunwind.
10270 # Check whether --with-system-libunwind was given.
10271 if test "${with_system_libunwind+set}" = set; then :
10272 withval=$with_system_libunwind;
10275 # If system-libunwind was not specifically set, pick a default setting.
10276 if test x$with_system_libunwind = x; then
10277 case ${target} in
10278 ia64-*-hpux*) with_system_libunwind=yes ;;
10279 *) with_system_libunwind=no ;;
10280 esac
10282 # Based on system-libunwind and target, do we have ipinfo?
10283 if test x$with_system_libunwind = xyes; then
10284 case ${target} in
10285 ia64-*-*) have_unwind_getipinfo=no ;;
10286 *) have_unwind_getipinfo=yes ;;
10287 esac
10288 else
10289 # Darwin before version 9 does not have _Unwind_GetIPInfo.
10291 case ${target} in
10292 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
10293 *) have_unwind_getipinfo=yes ;;
10294 esac
10298 if test x$have_unwind_getipinfo = xyes; then
10300 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
10305 # --------------------------------------------------------
10306 # Build, host, and target specific configuration fragments
10307 # --------------------------------------------------------
10309 # Collect build-machine-specific information.
10310 . ${srcdir}/config.build
10312 # Collect host-machine-specific information.
10313 . ${srcdir}/config.host
10315 target_gtfiles=
10317 # Collect target-machine-specific information.
10318 . ${srcdir}/config.gcc
10320 extra_objs="${host_extra_objs} ${extra_objs}"
10321 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
10323 # Default the target-machine variables that were not explicitly set.
10324 if test x"$tm_file" = x
10325 then tm_file=$cpu_type/$cpu_type.h; fi
10327 if test x"$extra_headers" = x
10328 then extra_headers=; fi
10330 if test x$md_file = x
10331 then md_file=$cpu_type/$cpu_type.md; fi
10333 if test x$out_file = x
10334 then out_file=$cpu_type/$cpu_type.c; fi
10336 if test x"$tmake_file" = x
10337 then tmake_file=$cpu_type/t-$cpu_type
10340 if test x"$dwarf2" = xyes
10341 then tm_file="$tm_file tm-dwarf2.h"
10344 # Say what files are being used for the output code and MD file.
10345 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
10346 echo "Using \`$srcdir/config/$md_file' as machine description file."
10348 # If any of the xm_file variables contain nonexistent files, warn
10349 # about them and drop them.
10352 for x in $build_xm_file; do
10353 if test -f $srcdir/config/$x
10354 then bx="$bx $x"
10355 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10356 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10358 done
10359 build_xm_file="$bx"
10362 for x in $host_xm_file; do
10363 if test -f $srcdir/config/$x
10364 then hx="$hx $x"
10365 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10366 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10368 done
10369 host_xm_file="$hx"
10372 for x in $xm_file; do
10373 if test -f $srcdir/config/$x
10374 then tx="$tx $x"
10375 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
10376 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
10378 done
10379 xm_file="$tx"
10381 count=a
10382 for f in $tm_file; do
10383 count=${count}x
10384 done
10385 if test $count = ax; then
10386 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
10387 else
10388 echo "Using the following target machine macro files:"
10389 for f in $tm_file; do
10390 echo " $srcdir/config/$f"
10391 done
10394 if test x$need_64bit_hwint = xyes; then
10396 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
10400 if test x$use_long_long_for_widest_fast_int = xyes; then
10402 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
10406 count=a
10407 for f in $host_xm_file; do
10408 count=${count}x
10409 done
10410 if test $count = a; then
10412 elif test $count = ax; then
10413 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
10414 else
10415 echo "Using the following host machine macro files:"
10416 for f in $host_xm_file; do
10417 echo " $srcdir/config/$f"
10418 done
10420 echo "Using ${out_host_hook_obj} for host machine hooks."
10422 if test "$host_xm_file" != "$build_xm_file"; then
10423 count=a
10424 for f in $build_xm_file; do
10425 count=${count}x
10426 done
10427 if test $count = a; then
10429 elif test $count = ax; then
10430 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
10431 else
10432 echo "Using the following build machine macro files:"
10433 for f in $build_xm_file; do
10434 echo " $srcdir/config/$f"
10435 done
10439 case ${host} in
10440 powerpc*-*-darwin*)
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
10442 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
10443 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
10444 $as_echo_n "(cached) " >&6
10445 else
10446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10447 /* end confdefs.h. */
10449 #include <sys/cdefs.h>
10450 #include <sys/signal.h>
10451 #include <ucontext.h>
10452 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
10454 _ACEOF
10455 if ac_fn_c_try_compile "$LINENO"; then :
10456 gcc_cv_mcontext_underscores=no
10457 else
10458 gcc_cv_mcontext_underscores=yes
10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
10463 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
10464 if test $gcc_cv_mcontext_underscores = yes; then
10466 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
10470 esac
10472 # ---------
10473 # Threading
10474 # ---------
10476 # Check if a valid thread package
10477 case ${enable_threads} in
10478 "" | no)
10479 # No threads
10480 target_thread_file='single'
10482 yes)
10483 # default
10484 target_thread_file='single'
10486 aix | dce | gnat | irix | posix | posix95 | rtems | \
10487 single | solaris | vxworks | win32 | mipssde)
10488 target_thread_file=${enable_threads}
10491 echo "${enable_threads} is an unknown thread package" 1>&2
10492 exit 1
10494 esac
10496 if test x${thread_file} = x; then
10497 # No thread file set by target-specific clauses in config.gcc,
10498 # so use file chosen by default logic above
10499 thread_file=${target_thread_file}
10502 # Make gthr-default.h if we have a thread file.
10503 gthread_flags=
10504 if test $thread_file != single; then
10505 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10506 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10507 rm -f gthr-default.h-t
10508 else
10509 mv -f gthr-default.h-t gthr-default.h
10511 gthread_flags=-DHAVE_GTHR_DEFAULT
10515 # --------
10516 # UNSORTED
10517 # --------
10519 use_cxa_atexit=no
10520 if test x$enable___cxa_atexit = xyes || \
10521 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10522 if test x$host = x$target; then
10523 case $host in
10524 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10525 # keyed to flag_use_cxa_atexit
10526 *-*-mingw32*)
10527 use_cxa_atexit=yes
10530 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10531 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10532 use_cxa_atexit=yes
10533 else
10534 echo "__cxa_atexit can't be enabled on this target"
10538 esac
10539 else
10540 # We can't check for __cxa_atexit when building a cross, so assume
10541 # it is available
10542 use_cxa_atexit=yes
10544 if test x$use_cxa_atexit = xyes; then
10546 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10551 # Look for a file containing extra machine modes.
10552 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10553 extra_modes_file='$(srcdir)'/config/${extra_modes}
10556 cat >>confdefs.h <<_ACEOF
10557 #define EXTRA_MODES_FILE "config/$extra_modes"
10558 _ACEOF
10562 # Convert extra_options into a form suitable for Makefile use.
10563 extra_opt_files=
10564 for f in $extra_options; do
10565 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10566 done
10569 # auto-host.h is the file containing items generated by autoconf and is
10570 # the first file included by config.h.
10571 # If host=build, it is correct to have bconfig include auto-host.h
10572 # as well. If host!=build, we are in error and need to do more
10573 # work to find out the build config parameters.
10574 if test x$host = x$build
10575 then
10576 build_auto=auto-host.h
10577 else
10578 # We create a subdir, then run autoconf in the subdir.
10579 # To prevent recursion we set host and build for the new
10580 # invocation of configure to the build for this invocation
10581 # of configure.
10582 tempdir=build.$$
10583 rm -rf $tempdir
10584 mkdir $tempdir
10585 cd $tempdir
10586 case ${srcdir} in
10587 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10588 *) realsrcdir=../${srcdir};;
10589 esac
10590 saved_CFLAGS="${CFLAGS}"
10591 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10592 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10593 ${realsrcdir}/configure \
10594 --enable-languages=${enable_languages-all} \
10595 --target=$target_alias --host=$build_alias --build=$build_alias
10596 CFLAGS="${saved_CFLAGS}"
10598 # We just finished tests for the build machine, so rename
10599 # the file auto-build.h in the gcc directory.
10600 mv auto-host.h ../auto-build.h
10601 cd ..
10602 rm -rf $tempdir
10603 build_auto=auto-build.h
10607 tm_file="${tm_file} defaults.h"
10608 tm_p_file="${tm_p_file} tm-preds.h"
10609 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10610 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10611 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10612 # put this back in temporarily.
10613 xm_file="auto-host.h ansidecl.h ${xm_file}"
10615 # --------
10616 # UNSORTED
10617 # --------
10619 # Compile in configure arguments.
10620 if test -f configargs.h ; then
10621 # Being re-configured.
10622 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10623 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10624 else
10625 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10628 # Double all backslashes and backslash all quotes to turn
10629 # gcc_config_arguments into a C string.
10630 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10631 $gcc_config_arguments
10633 gcc_config_arguments_str=`cat conftest.out`
10634 rm -f conftest.out
10636 cat > configargs.h <<EOF
10637 /* Generated automatically. */
10638 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10639 static const char thread_model[] = "$thread_file";
10641 static const struct {
10642 const char *name, *value;
10643 } configure_default_options[] = $configure_default_options;
10646 gcc_BASEVER=`cat $srcdir/BASE-VER`
10647 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10648 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10649 if test -f $srcdir/REVISION ; then
10650 gcc_REVISION=`cat $srcdir/REVISION`
10651 else
10652 gcc_REVISION=""
10654 cat > plugin-version.h <<EOF
10655 #include "configargs.h"
10657 static char basever[] = "$gcc_BASEVER";
10658 static char datestamp[] = "$gcc_DATESTAMP";
10659 static char devphase[] = "$gcc_DEVPHASE";
10660 static char revision[] = "$gcc_REVISION";
10662 /* FIXME plugins: We should make the version information more precise.
10663 One way to do is to add a checksum. */
10665 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10666 devphase, revision,
10667 configuration_arguments};
10670 # Internationalization
10671 # If we haven't got the data from the intl directory,
10672 # assume NLS is disabled.
10673 USE_NLS=no
10674 LIBINTL=
10675 LIBINTL_DEP=
10676 INCINTL=
10677 XGETTEXT=
10678 GMSGFMT=
10679 POSUB=
10681 if test -f ../intl/config.intl; then
10682 . ../intl/config.intl
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10685 $as_echo_n "checking whether NLS is requested... " >&6; }
10686 if test x"$USE_NLS" != xyes; then
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10688 $as_echo "no" >&6; }
10689 else
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10691 $as_echo "yes" >&6; }
10693 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10697 $as_echo_n "checking for catalogs to be installed... " >&6; }
10698 # Look for .po and .gmo files in the source directory.
10699 CATALOGS=
10700 XLINGUAS=
10701 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10702 # If there aren't any .gmo files the shell will give us the
10703 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10704 # weeded out.
10705 case "$cat" in *\**)
10706 continue;;
10707 esac
10708 # The quadruple backslash is collapsed to a double backslash
10709 # by the backticks, then collapsed again by the double quotes,
10710 # leaving us with one backslash in the sed expression (right
10711 # before the dot that mustn't act as a wildcard).
10712 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10713 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10714 # The user is allowed to set LINGUAS to a list of languages to
10715 # install catalogs for. If it's empty that means "all of them."
10716 if test "x$LINGUAS" = x; then
10717 CATALOGS="$CATALOGS $cat"
10718 XLINGUAS="$XLINGUAS $lang"
10719 else
10720 case "$LINGUAS" in *$lang*)
10721 CATALOGS="$CATALOGS $cat"
10722 XLINGUAS="$XLINGUAS $lang"
10724 esac
10726 done
10727 LINGUAS="$XLINGUAS"
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10729 $as_echo "$LINGUAS" >&6; }
10732 DATADIRNAME=share
10734 INSTOBJEXT=.mo
10736 GENCAT=gencat
10738 CATOBJEXT=.gmo
10742 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10743 # -liconv on the link line twice.
10744 case "$LIBINTL" in *$LIBICONV*)
10745 LIBICONV= ;;
10746 esac
10748 # Check whether --enable-secureplt was given.
10749 if test "${enable_secureplt+set}" = set; then :
10750 enableval=$enable_secureplt;
10754 # Check whether --enable-cld was given.
10755 if test "${enable_cld+set}" = set; then :
10756 enableval=$enable_cld;
10757 else
10758 enable_cld=no
10762 # Windows32 Registry support for specifying GCC installation paths.
10763 # Check whether --enable-win32-registry was given.
10764 if test "${enable_win32_registry+set}" = set; then :
10765 enableval=$enable_win32_registry;
10769 case $host_os in
10770 win32 | pe | cygwin* | mingw32* | uwin*)
10771 if test "x$enable_win32_registry" != xno; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10773 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10774 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 ac_func_search_save_LIBS=$LIBS
10778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10779 /* end confdefs.h. */
10781 /* Override any GCC internal prototype to avoid an error.
10782 Use char because int might match the return type of a GCC
10783 builtin and then its argument prototype would still apply. */
10784 #ifdef __cplusplus
10785 extern "C"
10786 #endif
10787 char RegOpenKeyExA ();
10789 main ()
10791 return RegOpenKeyExA ();
10793 return 0;
10795 _ACEOF
10796 for ac_lib in '' advapi32; do
10797 if test -z "$ac_lib"; then
10798 ac_res="none required"
10799 else
10800 ac_res=-l$ac_lib
10801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10803 if ac_fn_c_try_link "$LINENO"; then :
10804 ac_cv_search_RegOpenKeyExA=$ac_res
10806 rm -f core conftest.err conftest.$ac_objext \
10807 conftest$ac_exeext
10808 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10809 break
10811 done
10812 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10814 else
10815 ac_cv_search_RegOpenKeyExA=no
10817 rm conftest.$ac_ext
10818 LIBS=$ac_func_search_save_LIBS
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10821 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10822 ac_res=$ac_cv_search_RegOpenKeyExA
10823 if test "$ac_res" != no; then :
10824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10826 else
10827 enable_win32_registry=no
10832 if test "x$enable_win32_registry" != xno; then
10834 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10837 if test "x$enable_win32_registry" != xyes \
10838 && test "x$enable_win32_registry" != x; then
10840 cat >>confdefs.h <<_ACEOF
10841 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10842 _ACEOF
10847 esac
10849 # Get an absolute path to the GCC top-level source directory
10850 holddir=`${PWDCMD-pwd}`
10851 cd $srcdir
10852 topdir=`${PWDCMD-pwd}`
10853 cd $holddir
10855 # Conditionalize the makefile for this host machine.
10856 xmake_file=
10857 for f in ${host_xmake_file}
10859 if test -f ${srcdir}/config/$f
10860 then
10861 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10863 done
10865 # Conditionalize the makefile for this target machine.
10866 tmake_file_=
10867 for f in ${tmake_file}
10869 if test -f ${srcdir}/config/$f
10870 then
10871 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10873 done
10874 tmake_file="${tmake_file_}"
10876 out_object_file=`basename $out_file .c`.o
10878 tm_file_list="options.h"
10879 tm_include_list="options.h"
10880 for f in $tm_file; do
10881 case $f in
10882 ./* )
10883 f=`echo $f | sed 's/^..//'`
10884 tm_file_list="${tm_file_list} $f"
10885 tm_include_list="${tm_include_list} $f"
10887 defaults.h )
10888 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10889 tm_include_list="${tm_include_list} $f"
10892 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10893 tm_include_list="${tm_include_list} config/$f"
10895 esac
10896 done
10898 tm_p_file_list=
10899 tm_p_include_list=
10900 for f in $tm_p_file; do
10901 case $f in
10902 tm-preds.h )
10903 tm_p_file_list="${tm_p_file_list} $f"
10904 tm_p_include_list="${tm_p_include_list} $f"
10907 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10908 tm_p_include_list="${tm_p_include_list} config/$f"
10909 esac
10910 done
10912 xm_file_list=
10913 xm_include_list=
10914 for f in $xm_file; do
10915 case $f in
10916 ansidecl.h )
10917 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10918 xm_include_list="${xm_include_list} $f"
10920 auto-host.h )
10921 xm_file_list="${xm_file_list} $f"
10922 xm_include_list="${xm_include_list} $f"
10925 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10926 xm_include_list="${xm_include_list} config/$f"
10928 esac
10929 done
10931 host_xm_file_list=
10932 host_xm_include_list=
10933 for f in $host_xm_file; do
10934 case $f in
10935 ansidecl.h )
10936 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10937 host_xm_include_list="${host_xm_include_list} $f"
10939 auto-host.h )
10940 host_xm_file_list="${host_xm_file_list} $f"
10941 host_xm_include_list="${host_xm_include_list} $f"
10944 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10945 host_xm_include_list="${host_xm_include_list} config/$f"
10947 esac
10948 done
10950 build_xm_file_list=
10951 for f in $build_xm_file; do
10952 case $f in
10953 ansidecl.h )
10954 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10955 build_xm_include_list="${build_xm_include_list} $f"
10957 auto-build.h | auto-host.h )
10958 build_xm_file_list="${build_xm_file_list} $f"
10959 build_xm_include_list="${build_xm_include_list} $f"
10962 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10963 build_xm_include_list="${build_xm_include_list} config/$f"
10965 esac
10966 done
10968 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10969 # cross-compiler which does not use the native headers and libraries.
10970 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10971 CROSS=
10972 ALL=all.internal
10973 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10975 if test "x$with_build_sysroot" != x; then
10976 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10977 else
10978 # This value is used, even on a native system, because
10979 # CROSS_SYSTEM_HEADER_DIR is just
10980 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10981 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10984 if test x$host != x$target
10985 then
10986 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10987 ALL=all.cross
10988 SYSTEM_HEADER_DIR=$build_system_header_dir
10989 case "$host","$target" in
10990 # Darwin crosses can use the host system's libraries and headers,
10991 # because of the fat library support. Of course, it must be the
10992 # same version of Darwin on both sides. Allow the user to
10993 # just say --target=foo-darwin without a version number to mean
10994 # "the version on this system".
10995 *-*-darwin*,*-*-darwin*)
10996 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10997 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10998 if test $hostos = $targetos -o $targetos = darwin ; then
10999 CROSS=
11000 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
11001 with_headers=yes
11005 i?86-*-*,x86_64-*-* \
11006 | powerpc*-*-*,powerpc64*-*-*)
11007 CROSS="$CROSS -DNATIVE_CROSS" ;;
11008 esac
11009 elif test "x$TARGET_SYSTEM_ROOT" != x; then
11010 SYSTEM_HEADER_DIR=$build_system_header_dir
11013 # If this is a cross-compiler that does not
11014 # have its own set of headers then define
11015 # inhibit_libc
11017 # If this is using newlib, without having the headers available now,
11018 # then define inhibit_libc in LIBGCC2_CFLAGS.
11019 # This prevents libgcc2 from containing any code which requires libc
11020 # support.
11021 : ${inhibit_libc=false}
11022 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
11023 test x$with_newlib = xyes ; } &&
11024 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
11025 inhibit_libc=true
11029 # When building gcc with a cross-compiler, we need to adjust things so
11030 # that the generator programs are still built with the native compiler.
11031 # Also, we cannot run fixincludes.
11033 # These are the normal (build=host) settings:
11034 CC_FOR_BUILD='$(CC)'
11035 BUILD_CFLAGS='$(ALL_CFLAGS)'
11036 BUILD_LDFLAGS='$(LDFLAGS)'
11037 STMP_FIXINC=stmp-fixinc
11039 # And these apply if build != host, or we are generating coverage data
11040 if test x$build != x$host || test "x$coverage_flags" != x
11041 then
11042 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
11043 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
11046 # Expand extra_headers to include complete path.
11047 # This substitutes for lots of t-* files.
11048 extra_headers_list=
11049 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
11050 for file in ${extra_headers} ; do
11051 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
11052 done
11054 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
11055 if test x"$use_gcc_tgmath" = xyes
11056 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
11059 # Define collect2 in Makefile.
11060 case $host_can_use_collect2 in
11061 no) collect2= ;;
11062 *) collect2='collect2$(exeext)' ;;
11063 esac
11066 # Add a definition of USE_COLLECT2 if system wants one.
11067 case $use_collect2 in
11068 no) use_collect2= ;;
11069 "") ;;
11071 host_xm_defines="${host_xm_defines} USE_COLLECT2"
11072 xm_defines="${xm_defines} USE_COLLECT2"
11073 case $host_can_use_collect2 in
11075 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
11077 esac
11079 esac
11081 # ---------------------------
11082 # Assembler & linker features
11083 # ---------------------------
11085 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
11086 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
11087 # However when ld-new is first executed from the build tree, libtool will
11088 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
11089 # to the build tree. While doing this we need to use the previous-stage
11090 # linker, or we have an infinite loop. The presence of a shell script as
11091 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
11092 # the gcc/collect-ld script. So we need to know how libtool works, or
11093 # exec-tool will fail.
11096 case `pwd` in
11097 *\ * | *\ *)
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11099 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11100 esac
11104 macro_version='2.2.6'
11105 macro_revision='1.3012'
11119 ltmain="$ac_aux_dir/ltmain.sh"
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11122 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11123 if test "${ac_cv_path_SED+set}" = set; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11127 for ac_i in 1 2 3 4 5 6 7; do
11128 ac_script="$ac_script$as_nl$ac_script"
11129 done
11130 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11131 { ac_script=; unset ac_script;}
11132 if test -z "$SED"; then
11133 ac_path_SED_found=false
11134 # Loop through the user's path and test for each of PROGNAME-LIST
11135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 for as_dir in $PATH
11138 IFS=$as_save_IFS
11139 test -z "$as_dir" && as_dir=.
11140 for ac_prog in sed gsed; do
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11143 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11144 # Check for GNU ac_path_SED and select it if it is found.
11145 # Check for GNU $ac_path_SED
11146 case `"$ac_path_SED" --version 2>&1` in
11147 *GNU*)
11148 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11150 ac_count=0
11151 $as_echo_n 0123456789 >"conftest.in"
11152 while :
11154 cat "conftest.in" "conftest.in" >"conftest.tmp"
11155 mv "conftest.tmp" "conftest.in"
11156 cp "conftest.in" "conftest.nl"
11157 $as_echo '' >> "conftest.nl"
11158 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11159 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11160 as_fn_arith $ac_count + 1 && ac_count=$as_val
11161 if test $ac_count -gt ${ac_path_SED_max-0}; then
11162 # Best one so far, save it but keep looking for a better one
11163 ac_cv_path_SED="$ac_path_SED"
11164 ac_path_SED_max=$ac_count
11166 # 10*(2^10) chars as input seems more than enough
11167 test $ac_count -gt 10 && break
11168 done
11169 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11170 esac
11172 $ac_path_SED_found && break 3
11173 done
11174 done
11175 done
11176 IFS=$as_save_IFS
11177 if test -z "$ac_cv_path_SED"; then
11178 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11180 else
11181 ac_cv_path_SED=$SED
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11186 $as_echo "$ac_cv_path_SED" >&6; }
11187 SED="$ac_cv_path_SED"
11188 rm -f conftest.sed
11190 test -z "$SED" && SED=sed
11191 Xsed="$SED -e 1s/^X//"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11204 $as_echo_n "checking for fgrep... " >&6; }
11205 if test "${ac_cv_path_FGREP+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11209 then ac_cv_path_FGREP="$GREP -F"
11210 else
11211 if test -z "$FGREP"; then
11212 ac_path_FGREP_found=false
11213 # Loop through the user's path and test for each of PROGNAME-LIST
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_prog in fgrep; do
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11222 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11223 # Check for GNU ac_path_FGREP and select it if it is found.
11224 # Check for GNU $ac_path_FGREP
11225 case `"$ac_path_FGREP" --version 2>&1` in
11226 *GNU*)
11227 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11229 ac_count=0
11230 $as_echo_n 0123456789 >"conftest.in"
11231 while :
11233 cat "conftest.in" "conftest.in" >"conftest.tmp"
11234 mv "conftest.tmp" "conftest.in"
11235 cp "conftest.in" "conftest.nl"
11236 $as_echo 'FGREP' >> "conftest.nl"
11237 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11239 as_fn_arith $ac_count + 1 && ac_count=$as_val
11240 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
11241 # Best one so far, save it but keep looking for a better one
11242 ac_cv_path_FGREP="$ac_path_FGREP"
11243 ac_path_FGREP_max=$ac_count
11245 # 10*(2^10) chars as input seems more than enough
11246 test $ac_count -gt 10 && break
11247 done
11248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11249 esac
11251 $ac_path_FGREP_found && break 3
11252 done
11253 done
11254 done
11255 IFS=$as_save_IFS
11256 if test -z "$ac_cv_path_FGREP"; then
11257 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11259 else
11260 ac_cv_path_FGREP=$FGREP
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
11266 $as_echo "$ac_cv_path_FGREP" >&6; }
11267 FGREP="$ac_cv_path_FGREP"
11270 test -z "$GREP" && GREP=grep
11290 # Check whether --with-gnu-ld was given.
11291 if test "${with_gnu_ld+set}" = set; then :
11292 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11293 else
11294 with_gnu_ld=no
11297 ac_prog=ld
11298 if test "$GCC" = yes; then
11299 # Check if gcc -print-prog-name=ld gives a path.
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11301 $as_echo_n "checking for ld used by $CC... " >&6; }
11302 case $host in
11303 *-*-mingw*)
11304 # gcc leaves a trailing carriage return which upsets mingw
11305 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11307 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11308 esac
11309 case $ac_prog in
11310 # Accept absolute paths.
11311 [\\/]* | ?:[\\/]*)
11312 re_direlt='/[^/][^/]*/\.\./'
11313 # Canonicalize the pathname of ld
11314 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11315 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11316 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11317 done
11318 test -z "$LD" && LD="$ac_prog"
11321 # If it fails, then pretend we aren't using GCC.
11322 ac_prog=ld
11325 # If it is relative, then search for the first ld in PATH.
11326 with_gnu_ld=unknown
11328 esac
11329 elif test "$with_gnu_ld" = yes; then
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11331 $as_echo_n "checking for GNU ld... " >&6; }
11332 else
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11334 $as_echo_n "checking for non-GNU ld... " >&6; }
11336 if test "${lt_cv_path_LD+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11338 else
11339 if test -z "$LD"; then
11340 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11341 for ac_dir in $PATH; do
11342 IFS="$lt_save_ifs"
11343 test -z "$ac_dir" && ac_dir=.
11344 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11345 lt_cv_path_LD="$ac_dir/$ac_prog"
11346 # Check to see if the program is GNU ld. I'd rather use --version,
11347 # but apparently some variants of GNU ld only accept -v.
11348 # Break only if it was the GNU/non-GNU ld that we prefer.
11349 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11350 *GNU* | *'with BFD'*)
11351 test "$with_gnu_ld" != no && break
11354 test "$with_gnu_ld" != yes && break
11356 esac
11358 done
11359 IFS="$lt_save_ifs"
11360 else
11361 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11365 LD="$lt_cv_path_LD"
11366 if test -n "$LD"; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11368 $as_echo "$LD" >&6; }
11369 else
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371 $as_echo "no" >&6; }
11373 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11375 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11376 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
11378 else
11379 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11380 case `$LD -v 2>&1 </dev/null` in
11381 *GNU* | *'with BFD'*)
11382 lt_cv_prog_gnu_ld=yes
11385 lt_cv_prog_gnu_ld=no
11387 esac
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11390 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11391 with_gnu_ld=$lt_cv_prog_gnu_ld
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11402 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11403 if test "${lt_cv_path_NM+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 if test -n "$NM"; then
11407 # Let the user override the test.
11408 lt_cv_path_NM="$NM"
11409 else
11410 lt_nm_to_check="${ac_tool_prefix}nm"
11411 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11412 lt_nm_to_check="$lt_nm_to_check nm"
11414 for lt_tmp_nm in $lt_nm_to_check; do
11415 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11416 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11417 IFS="$lt_save_ifs"
11418 test -z "$ac_dir" && ac_dir=.
11419 tmp_nm="$ac_dir/$lt_tmp_nm"
11420 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11421 # Check to see if the nm accepts a BSD-compat flag.
11422 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11423 # nm: unknown option "B" ignored
11424 # Tru64's nm complains that /dev/null is an invalid object file
11425 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11426 */dev/null* | *'Invalid file or object type'*)
11427 lt_cv_path_NM="$tmp_nm -B"
11428 break
11431 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11432 */dev/null*)
11433 lt_cv_path_NM="$tmp_nm -p"
11434 break
11437 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11438 continue # so that we can try to find one that supports BSD flags
11440 esac
11442 esac
11444 done
11445 IFS="$lt_save_ifs"
11446 done
11447 : ${lt_cv_path_NM=no}
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11451 $as_echo "$lt_cv_path_NM" >&6; }
11452 if test "$lt_cv_path_NM" != "no"; then
11453 NM="$lt_cv_path_NM"
11454 else
11455 # Didn't find any BSD compatible name lister, look for dumpbin.
11456 if test -n "$ac_tool_prefix"; then
11457 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462 $as_echo_n "checking for $ac_word... " >&6; }
11463 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 if test -n "$DUMPBIN"; then
11467 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11468 else
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11472 IFS=$as_save_IFS
11473 test -z "$as_dir" && as_dir=.
11474 for ac_exec_ext in '' $ac_executable_extensions; do
11475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11476 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478 break 2
11480 done
11481 done
11482 IFS=$as_save_IFS
11486 DUMPBIN=$ac_cv_prog_DUMPBIN
11487 if test -n "$DUMPBIN"; then
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11489 $as_echo "$DUMPBIN" >&6; }
11490 else
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11496 test -n "$DUMPBIN" && break
11497 done
11499 if test -z "$DUMPBIN"; then
11500 ac_ct_DUMPBIN=$DUMPBIN
11501 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11503 # Extract the first word of "$ac_prog", so it can be a program name with args.
11504 set dummy $ac_prog; ac_word=$2
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11506 $as_echo_n "checking for $ac_word... " >&6; }
11507 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11508 $as_echo_n "(cached) " >&6
11509 else
11510 if test -n "$ac_ct_DUMPBIN"; then
11511 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11512 else
11513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11514 for as_dir in $PATH
11516 IFS=$as_save_IFS
11517 test -z "$as_dir" && as_dir=.
11518 for ac_exec_ext in '' $ac_executable_extensions; do
11519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11520 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 break 2
11524 done
11525 done
11526 IFS=$as_save_IFS
11530 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11531 if test -n "$ac_ct_DUMPBIN"; then
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11533 $as_echo "$ac_ct_DUMPBIN" >&6; }
11534 else
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11536 $as_echo "no" >&6; }
11540 test -n "$ac_ct_DUMPBIN" && break
11541 done
11543 if test "x$ac_ct_DUMPBIN" = x; then
11544 DUMPBIN=":"
11545 else
11546 case $cross_compiling:$ac_tool_warned in
11547 yes:)
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11550 ac_tool_warned=yes ;;
11551 esac
11552 DUMPBIN=$ac_ct_DUMPBIN
11557 if test "$DUMPBIN" != ":"; then
11558 NM="$DUMPBIN"
11561 test -z "$NM" && NM=nm
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11569 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11570 if test "${lt_cv_nm_interface+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
11572 else
11573 lt_cv_nm_interface="BSD nm"
11574 echo "int some_variable = 0;" > conftest.$ac_ext
11575 (eval echo "\"\$as_me:11575: $ac_compile\"" >&5)
11576 (eval "$ac_compile" 2>conftest.err)
11577 cat conftest.err >&5
11578 (eval echo "\"\$as_me:11578: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11579 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11580 cat conftest.err >&5
11581 (eval echo "\"\$as_me:11581: output\"" >&5)
11582 cat conftest.out >&5
11583 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11584 lt_cv_nm_interface="MS dumpbin"
11586 rm -f conftest*
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11589 $as_echo "$lt_cv_nm_interface" >&6; }
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11592 $as_echo_n "checking whether ln -s works... " >&6; }
11593 LN_S=$as_ln_s
11594 if test "$LN_S" = "ln -s"; then
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11596 $as_echo "yes" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11599 $as_echo "no, using $LN_S" >&6; }
11602 # find the maximum length of command line arguments
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11604 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11605 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11606 $as_echo_n "(cached) " >&6
11607 else
11609 teststring="ABCD"
11611 case $build_os in
11612 msdosdjgpp*)
11613 # On DJGPP, this test can blow up pretty badly due to problems in libc
11614 # (any single argument exceeding 2000 bytes causes a buffer overrun
11615 # during glob expansion). Even if it were fixed, the result of this
11616 # check would be larger than it should be.
11617 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11620 gnu*)
11621 # Under GNU Hurd, this test is not required because there is
11622 # no limit to the length of command line arguments.
11623 # Libtool will interpret -1 as no limit whatsoever
11624 lt_cv_sys_max_cmd_len=-1;
11627 cygwin* | mingw* | cegcc*)
11628 # On Win9x/ME, this test blows up -- it succeeds, but takes
11629 # about 5 minutes as the teststring grows exponentially.
11630 # Worse, since 9x/ME are not pre-emptively multitasking,
11631 # you end up with a "frozen" computer, even though with patience
11632 # the test eventually succeeds (with a max line length of 256k).
11633 # Instead, let's just punt: use the minimum linelength reported by
11634 # all of the supported platforms: 8192 (on NT/2K/XP).
11635 lt_cv_sys_max_cmd_len=8192;
11638 amigaos*)
11639 # On AmigaOS with pdksh, this test takes hours, literally.
11640 # So we just punt and use a minimum line length of 8192.
11641 lt_cv_sys_max_cmd_len=8192;
11644 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11645 # This has been around since 386BSD, at least. Likely further.
11646 if test -x /sbin/sysctl; then
11647 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11648 elif test -x /usr/sbin/sysctl; then
11649 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11650 else
11651 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11653 # And add a safety zone
11654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11658 interix*)
11659 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11660 lt_cv_sys_max_cmd_len=196608
11663 osf*)
11664 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11665 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11666 # nice to cause kernel panics so lets avoid the loop below.
11667 # First set a reasonable default.
11668 lt_cv_sys_max_cmd_len=16384
11670 if test -x /sbin/sysconfig; then
11671 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11672 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11673 esac
11676 sco3.2v5*)
11677 lt_cv_sys_max_cmd_len=102400
11679 sysv5* | sco5v6* | sysv4.2uw2*)
11680 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11681 if test -n "$kargmax"; then
11682 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11683 else
11684 lt_cv_sys_max_cmd_len=32768
11688 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11689 if test -n "$lt_cv_sys_max_cmd_len"; then
11690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11692 else
11693 # Make teststring a little bigger before we do anything with it.
11694 # a 1K string should be a reasonable start.
11695 for i in 1 2 3 4 5 6 7 8 ; do
11696 teststring=$teststring$teststring
11697 done
11698 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11699 # If test is not a shell built-in, we'll probably end up computing a
11700 # maximum length that is only half of the actual maximum length, but
11701 # we can't tell.
11702 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11703 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11704 test $i != 17 # 1/2 MB should be enough
11706 i=`expr $i + 1`
11707 teststring=$teststring$teststring
11708 done
11709 # Only check the string length outside the loop.
11710 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11711 teststring=
11712 # Add a significant safety factor because C++ compilers can tack on
11713 # massive amounts of additional arguments before passing them to the
11714 # linker. It appears as though 1/2 is a usable value.
11715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11718 esac
11722 if test -n $lt_cv_sys_max_cmd_len ; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11724 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11725 else
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11727 $as_echo "none" >&6; }
11729 max_cmd_len=$lt_cv_sys_max_cmd_len
11736 : ${CP="cp -f"}
11737 : ${MV="mv -f"}
11738 : ${RM="rm -f"}
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11741 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11742 # Try some XSI features
11743 xsi_shell=no
11744 ( _lt_dummy="a/b/c"
11745 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11746 = c,a/b,, \
11747 && eval 'test $(( 1 + 1 )) -eq 2 \
11748 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11749 && xsi_shell=yes
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11751 $as_echo "$xsi_shell" >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11755 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11756 lt_shell_append=no
11757 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11758 >/dev/null 2>&1 \
11759 && lt_shell_append=yes
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11761 $as_echo "$lt_shell_append" >&6; }
11764 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11765 lt_unset=unset
11766 else
11767 lt_unset=false
11774 # test EBCDIC or ASCII
11775 case `echo X|tr X '\101'` in
11776 A) # ASCII based system
11777 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11778 lt_SP2NL='tr \040 \012'
11779 lt_NL2SP='tr \015\012 \040\040'
11781 *) # EBCDIC based system
11782 lt_SP2NL='tr \100 \n'
11783 lt_NL2SP='tr \r\n \100\100'
11785 esac
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11796 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11797 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 lt_cv_ld_reload_flag='-r'
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11803 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11804 reload_flag=$lt_cv_ld_reload_flag
11805 case $reload_flag in
11806 "" | " "*) ;;
11807 *) reload_flag=" $reload_flag" ;;
11808 esac
11809 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11810 case $host_os in
11811 darwin*)
11812 if test "$GCC" = yes; then
11813 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11814 else
11815 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11818 esac
11828 if test -n "$ac_tool_prefix"; then
11829 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11830 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11832 $as_echo_n "checking for $ac_word... " >&6; }
11833 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11834 $as_echo_n "(cached) " >&6
11835 else
11836 if test -n "$OBJDUMP"; then
11837 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11838 else
11839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11840 for as_dir in $PATH
11842 IFS=$as_save_IFS
11843 test -z "$as_dir" && as_dir=.
11844 for ac_exec_ext in '' $ac_executable_extensions; do
11845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11846 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11848 break 2
11850 done
11851 done
11852 IFS=$as_save_IFS
11856 OBJDUMP=$ac_cv_prog_OBJDUMP
11857 if test -n "$OBJDUMP"; then
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11859 $as_echo "$OBJDUMP" >&6; }
11860 else
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11862 $as_echo "no" >&6; }
11867 if test -z "$ac_cv_prog_OBJDUMP"; then
11868 ac_ct_OBJDUMP=$OBJDUMP
11869 # Extract the first word of "objdump", so it can be a program name with args.
11870 set dummy objdump; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872 $as_echo_n "checking for $ac_word... " >&6; }
11873 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
11875 else
11876 if test -n "$ac_ct_OBJDUMP"; then
11877 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11878 else
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11886 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11888 break 2
11890 done
11891 done
11892 IFS=$as_save_IFS
11896 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11897 if test -n "$ac_ct_OBJDUMP"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11899 $as_echo "$ac_ct_OBJDUMP" >&6; }
11900 else
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902 $as_echo "no" >&6; }
11905 if test "x$ac_ct_OBJDUMP" = x; then
11906 OBJDUMP="false"
11907 else
11908 case $cross_compiling:$ac_tool_warned in
11909 yes:)
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11912 ac_tool_warned=yes ;;
11913 esac
11914 OBJDUMP=$ac_ct_OBJDUMP
11916 else
11917 OBJDUMP="$ac_cv_prog_OBJDUMP"
11920 test -z "$OBJDUMP" && OBJDUMP=objdump
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11931 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11932 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11933 $as_echo_n "(cached) " >&6
11934 else
11935 lt_cv_file_magic_cmd='$MAGIC_CMD'
11936 lt_cv_file_magic_test_file=
11937 lt_cv_deplibs_check_method='unknown'
11938 # Need to set the preceding variable on all platforms that support
11939 # interlibrary dependencies.
11940 # 'none' -- dependencies not supported.
11941 # `unknown' -- same as none, but documents that we really don't know.
11942 # 'pass_all' -- all dependencies passed with no checks.
11943 # 'test_compile' -- check by making test program.
11944 # 'file_magic [[regex]]' -- check by looking for files in library path
11945 # which responds to the $file_magic_cmd with a given extended regex.
11946 # If you have `file' or equivalent on your system and you're not sure
11947 # whether `pass_all' will *always* work, you probably want this one.
11949 case $host_os in
11950 aix[4-9]*)
11951 lt_cv_deplibs_check_method=pass_all
11954 beos*)
11955 lt_cv_deplibs_check_method=pass_all
11958 bsdi[45]*)
11959 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11960 lt_cv_file_magic_cmd='/usr/bin/file -L'
11961 lt_cv_file_magic_test_file=/shlib/libc.so
11964 cygwin*)
11965 # func_win32_libid is a shell function defined in ltmain.sh
11966 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11967 lt_cv_file_magic_cmd='func_win32_libid'
11970 mingw* | pw32*)
11971 # Base MSYS/MinGW do not provide the 'file' command needed by
11972 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11973 # unless we find 'file', for example because we are cross-compiling.
11974 if ( file / ) >/dev/null 2>&1; then
11975 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11976 lt_cv_file_magic_cmd='func_win32_libid'
11977 else
11978 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11979 lt_cv_file_magic_cmd='$OBJDUMP -f'
11983 cegcc)
11984 # use the weaker test based on 'objdump'. See mingw*.
11985 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11986 lt_cv_file_magic_cmd='$OBJDUMP -f'
11989 darwin* | rhapsody*)
11990 lt_cv_deplibs_check_method=pass_all
11993 freebsd* | dragonfly*)
11994 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11995 case $host_cpu in
11996 i*86 )
11997 # Not sure whether the presence of OpenBSD here was a mistake.
11998 # Let's accept both of them until this is cleared up.
11999 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12000 lt_cv_file_magic_cmd=/usr/bin/file
12001 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12003 esac
12004 else
12005 lt_cv_deplibs_check_method=pass_all
12009 gnu*)
12010 lt_cv_deplibs_check_method=pass_all
12013 hpux10.20* | hpux11*)
12014 lt_cv_file_magic_cmd=/usr/bin/file
12015 case $host_cpu in
12016 ia64*)
12017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12018 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12020 hppa*64*)
12021 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]'
12022 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12025 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12026 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12028 esac
12031 interix[3-9]*)
12032 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12033 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12036 irix5* | irix6* | nonstopux*)
12037 case $LD in
12038 *-32|*"-32 ") libmagic=32-bit;;
12039 *-n32|*"-n32 ") libmagic=N32;;
12040 *-64|*"-64 ") libmagic=64-bit;;
12041 *) libmagic=never-match;;
12042 esac
12043 lt_cv_deplibs_check_method=pass_all
12046 # This must be Linux ELF.
12047 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12048 lt_cv_deplibs_check_method=pass_all
12051 netbsd*)
12052 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12054 else
12055 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12059 newos6*)
12060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12061 lt_cv_file_magic_cmd=/usr/bin/file
12062 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12065 *nto* | *qnx*)
12066 lt_cv_deplibs_check_method=pass_all
12069 openbsd*)
12070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12071 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12072 else
12073 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12077 osf3* | osf4* | osf5*)
12078 lt_cv_deplibs_check_method=pass_all
12081 rdos*)
12082 lt_cv_deplibs_check_method=pass_all
12085 solaris*)
12086 lt_cv_deplibs_check_method=pass_all
12089 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12090 lt_cv_deplibs_check_method=pass_all
12093 sysv4 | sysv4.3*)
12094 case $host_vendor in
12095 motorola)
12096 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]'
12097 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12099 ncr)
12100 lt_cv_deplibs_check_method=pass_all
12102 sequent)
12103 lt_cv_file_magic_cmd='/bin/file'
12104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12106 sni)
12107 lt_cv_file_magic_cmd='/bin/file'
12108 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12109 lt_cv_file_magic_test_file=/lib/libc.so
12111 siemens)
12112 lt_cv_deplibs_check_method=pass_all
12115 lt_cv_deplibs_check_method=pass_all
12117 esac
12120 tpf*)
12121 lt_cv_deplibs_check_method=pass_all
12123 esac
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12127 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12128 file_magic_cmd=$lt_cv_file_magic_cmd
12129 deplibs_check_method=$lt_cv_deplibs_check_method
12130 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12143 if test -n "$ac_tool_prefix"; then
12144 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12145 set dummy ${ac_tool_prefix}ar; ac_word=$2
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12147 $as_echo_n "checking for $ac_word... " >&6; }
12148 if test "${ac_cv_prog_AR+set}" = set; then :
12149 $as_echo_n "(cached) " >&6
12150 else
12151 if test -n "$AR"; then
12152 ac_cv_prog_AR="$AR" # Let the user override the test.
12153 else
12154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155 for as_dir in $PATH
12157 IFS=$as_save_IFS
12158 test -z "$as_dir" && as_dir=.
12159 for ac_exec_ext in '' $ac_executable_extensions; do
12160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12161 ac_cv_prog_AR="${ac_tool_prefix}ar"
12162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12163 break 2
12165 done
12166 done
12167 IFS=$as_save_IFS
12171 AR=$ac_cv_prog_AR
12172 if test -n "$AR"; then
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12174 $as_echo "$AR" >&6; }
12175 else
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12177 $as_echo "no" >&6; }
12182 if test -z "$ac_cv_prog_AR"; then
12183 ac_ct_AR=$AR
12184 # Extract the first word of "ar", so it can be a program name with args.
12185 set dummy ar; ac_word=$2
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12187 $as_echo_n "checking for $ac_word... " >&6; }
12188 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12189 $as_echo_n "(cached) " >&6
12190 else
12191 if test -n "$ac_ct_AR"; then
12192 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12193 else
12194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195 for as_dir in $PATH
12197 IFS=$as_save_IFS
12198 test -z "$as_dir" && as_dir=.
12199 for ac_exec_ext in '' $ac_executable_extensions; do
12200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12201 ac_cv_prog_ac_ct_AR="ar"
12202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12203 break 2
12205 done
12206 done
12207 IFS=$as_save_IFS
12211 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12212 if test -n "$ac_ct_AR"; then
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12214 $as_echo "$ac_ct_AR" >&6; }
12215 else
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217 $as_echo "no" >&6; }
12220 if test "x$ac_ct_AR" = x; then
12221 AR="false"
12222 else
12223 case $cross_compiling:$ac_tool_warned in
12224 yes:)
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12227 ac_tool_warned=yes ;;
12228 esac
12229 AR=$ac_ct_AR
12231 else
12232 AR="$ac_cv_prog_AR"
12235 test -z "$AR" && AR=ar
12236 test -z "$AR_FLAGS" && AR_FLAGS=cru
12248 if test -n "$ac_tool_prefix"; then
12249 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12250 set dummy ${ac_tool_prefix}strip; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252 $as_echo_n "checking for $ac_word... " >&6; }
12253 if test "${ac_cv_prog_STRIP+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 if test -n "$STRIP"; then
12257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12258 else
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12262 IFS=$as_save_IFS
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12266 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12268 break 2
12270 done
12271 done
12272 IFS=$as_save_IFS
12276 STRIP=$ac_cv_prog_STRIP
12277 if test -n "$STRIP"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12279 $as_echo "$STRIP" >&6; }
12280 else
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12287 if test -z "$ac_cv_prog_STRIP"; then
12288 ac_ct_STRIP=$STRIP
12289 # Extract the first word of "strip", so it can be a program name with args.
12290 set dummy strip; ac_word=$2
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12292 $as_echo_n "checking for $ac_word... " >&6; }
12293 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 if test -n "$ac_ct_STRIP"; then
12297 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12298 else
12299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12300 for as_dir in $PATH
12302 IFS=$as_save_IFS
12303 test -z "$as_dir" && as_dir=.
12304 for ac_exec_ext in '' $ac_executable_extensions; do
12305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12306 ac_cv_prog_ac_ct_STRIP="strip"
12307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12308 break 2
12310 done
12311 done
12312 IFS=$as_save_IFS
12316 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12317 if test -n "$ac_ct_STRIP"; then
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12319 $as_echo "$ac_ct_STRIP" >&6; }
12320 else
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12322 $as_echo "no" >&6; }
12325 if test "x$ac_ct_STRIP" = x; then
12326 STRIP=":"
12327 else
12328 case $cross_compiling:$ac_tool_warned in
12329 yes:)
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12332 ac_tool_warned=yes ;;
12333 esac
12334 STRIP=$ac_ct_STRIP
12336 else
12337 STRIP="$ac_cv_prog_STRIP"
12340 test -z "$STRIP" && STRIP=:
12347 if test -n "$ac_tool_prefix"; then
12348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12349 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351 $as_echo_n "checking for $ac_word... " >&6; }
12352 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
12354 else
12355 if test -n "$RANLIB"; then
12356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12357 else
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12367 break 2
12369 done
12370 done
12371 IFS=$as_save_IFS
12375 RANLIB=$ac_cv_prog_RANLIB
12376 if test -n "$RANLIB"; then
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12378 $as_echo "$RANLIB" >&6; }
12379 else
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381 $as_echo "no" >&6; }
12386 if test -z "$ac_cv_prog_RANLIB"; then
12387 ac_ct_RANLIB=$RANLIB
12388 # Extract the first word of "ranlib", so it can be a program name with args.
12389 set dummy ranlib; ac_word=$2
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12391 $as_echo_n "checking for $ac_word... " >&6; }
12392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12393 $as_echo_n "(cached) " >&6
12394 else
12395 if test -n "$ac_ct_RANLIB"; then
12396 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12397 else
12398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_ac_ct_RANLIB="ranlib"
12406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12407 break 2
12409 done
12410 done
12411 IFS=$as_save_IFS
12415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12416 if test -n "$ac_ct_RANLIB"; then
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12418 $as_echo "$ac_ct_RANLIB" >&6; }
12419 else
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12424 if test "x$ac_ct_RANLIB" = x; then
12425 RANLIB=":"
12426 else
12427 case $cross_compiling:$ac_tool_warned in
12428 yes:)
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12431 ac_tool_warned=yes ;;
12432 esac
12433 RANLIB=$ac_ct_RANLIB
12435 else
12436 RANLIB="$ac_cv_prog_RANLIB"
12439 test -z "$RANLIB" && RANLIB=:
12446 # Determine commands to create old-style static archives.
12447 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12448 old_postinstall_cmds='chmod 644 $oldlib'
12449 old_postuninstall_cmds=
12451 if test -n "$RANLIB"; then
12452 case $host_os in
12453 openbsd*)
12454 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
12457 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
12459 esac
12460 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12496 # If no C compiler was specified, use CC.
12497 LTCC=${LTCC-"$CC"}
12499 # If no C compiler flags were specified, use CFLAGS.
12500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12502 # Allow CC to be a program name with arguments.
12503 compiler=$CC
12506 # Check for command to grab the raw symbol name followed by C symbol from nm.
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12508 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12509 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12510 $as_echo_n "(cached) " >&6
12511 else
12513 # These are sane defaults that work on at least a few old systems.
12514 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12516 # Character class describing NM global symbol codes.
12517 symcode='[BCDEGRST]'
12519 # Regexp to match symbols that can be accessed directly from C.
12520 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12522 # Define system-specific variables.
12523 case $host_os in
12524 aix*)
12525 symcode='[BCDT]'
12527 cygwin* | mingw* | pw32* | cegcc*)
12528 symcode='[ABCDGISTW]'
12530 hpux*)
12531 if test "$host_cpu" = ia64; then
12532 symcode='[ABCDEGRST]'
12535 irix* | nonstopux*)
12536 symcode='[BCDEGRST]'
12538 osf*)
12539 symcode='[BCDEGQRST]'
12541 solaris*)
12542 symcode='[BDRT]'
12544 sco3.2v5*)
12545 symcode='[DT]'
12547 sysv4.2uw2*)
12548 symcode='[DT]'
12550 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12551 symcode='[ABDT]'
12553 sysv4)
12554 symcode='[DFNSTU]'
12556 esac
12558 # If we're using GNU nm, then use its standard symbol codes.
12559 case `$NM -V 2>&1` in
12560 *GNU* | *'with BFD'*)
12561 symcode='[ABCDGIRSTW]' ;;
12562 esac
12564 # Transform an extracted symbol line into a proper C declaration.
12565 # Some systems (esp. on ia64) link data and code symbols differently,
12566 # so use this general approach.
12567 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12569 # Transform an extracted symbol line into symbol name and symbol address
12570 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12571 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'"
12573 # Handle CRLF in mingw tool chain
12574 opt_cr=
12575 case $build_os in
12576 mingw*)
12577 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12579 esac
12581 # Try without a prefix underscore, then with it.
12582 for ac_symprfx in "" "_"; do
12584 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12585 symxfrm="\\1 $ac_symprfx\\2 \\2"
12587 # Write the raw and C identifiers.
12588 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12589 # Fake it for dumpbin and say T for any non-static function
12590 # and D for any global variable.
12591 # Also find C++ and __fastcall symbols from MSVC++,
12592 # which start with @ or ?.
12593 lt_cv_sys_global_symbol_pipe="$AWK '"\
12594 " {last_section=section; section=\$ 3};"\
12595 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12596 " \$ 0!~/External *\|/{next};"\
12597 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12598 " {if(hide[section]) next};"\
12599 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12600 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12601 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12602 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12603 " ' prfx=^$ac_symprfx"
12604 else
12605 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12608 # Check to see that the pipe works correctly.
12609 pipe_works=no
12611 rm -f conftest*
12612 cat > conftest.$ac_ext <<_LT_EOF
12613 #ifdef __cplusplus
12614 extern "C" {
12615 #endif
12616 char nm_test_var;
12617 void nm_test_func(void);
12618 void nm_test_func(void){}
12619 #ifdef __cplusplus
12621 #endif
12622 int main(){nm_test_var='a';nm_test_func();return(0);}
12623 _LT_EOF
12625 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12626 (eval $ac_compile) 2>&5
12627 ac_status=$?
12628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629 test $ac_status = 0; }; then
12630 # Now try to grab the symbols.
12631 nlist=conftest.nm
12632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
12633 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12634 ac_status=$?
12635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12636 test $ac_status = 0; } && test -s "$nlist"; then
12637 # Try sorting and uniquifying the output.
12638 if sort "$nlist" | uniq > "$nlist"T; then
12639 mv -f "$nlist"T "$nlist"
12640 else
12641 rm -f "$nlist"T
12644 # Make sure that we snagged all the symbols we need.
12645 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12646 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12647 cat <<_LT_EOF > conftest.$ac_ext
12648 #ifdef __cplusplus
12649 extern "C" {
12650 #endif
12652 _LT_EOF
12653 # Now generate the symbol file.
12654 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12656 cat <<_LT_EOF >> conftest.$ac_ext
12658 /* The mapping between symbol names and symbols. */
12659 const struct {
12660 const char *name;
12661 void *address;
12663 lt__PROGRAM__LTX_preloaded_symbols[] =
12665 { "@PROGRAM@", (void *) 0 },
12666 _LT_EOF
12667 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12668 cat <<\_LT_EOF >> conftest.$ac_ext
12669 {0, (void *) 0}
12672 /* This works around a problem in FreeBSD linker */
12673 #ifdef FREEBSD_WORKAROUND
12674 static const void *lt_preloaded_setup() {
12675 return lt__PROGRAM__LTX_preloaded_symbols;
12677 #endif
12679 #ifdef __cplusplus
12681 #endif
12682 _LT_EOF
12683 # Now try linking the two files.
12684 mv conftest.$ac_objext conftstm.$ac_objext
12685 lt_save_LIBS="$LIBS"
12686 lt_save_CFLAGS="$CFLAGS"
12687 LIBS="conftstm.$ac_objext"
12688 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12689 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12690 (eval $ac_link) 2>&5
12691 ac_status=$?
12692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12693 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12694 pipe_works=yes
12696 LIBS="$lt_save_LIBS"
12697 CFLAGS="$lt_save_CFLAGS"
12698 else
12699 echo "cannot find nm_test_func in $nlist" >&5
12701 else
12702 echo "cannot find nm_test_var in $nlist" >&5
12704 else
12705 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12707 else
12708 echo "$progname: failed program was:" >&5
12709 cat conftest.$ac_ext >&5
12711 rm -rf conftest* conftst*
12713 # Do not use the global_symbol_pipe unless it works.
12714 if test "$pipe_works" = yes; then
12715 break
12716 else
12717 lt_cv_sys_global_symbol_pipe=
12719 done
12723 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12724 lt_cv_sys_global_symbol_to_cdecl=
12726 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12728 $as_echo "failed" >&6; }
12729 else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12731 $as_echo "ok" >&6; }
12755 # Check whether --enable-libtool-lock was given.
12756 if test "${enable_libtool_lock+set}" = set; then :
12757 enableval=$enable_libtool_lock;
12760 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12762 # Some flags need to be propagated to the compiler or linker for good
12763 # libtool support.
12764 case $host in
12765 ia64-*-hpux*)
12766 # Find out which ABI we are using.
12767 echo 'int i;' > conftest.$ac_ext
12768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12769 (eval $ac_compile) 2>&5
12770 ac_status=$?
12771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12772 test $ac_status = 0; }; then
12773 case `/usr/bin/file conftest.$ac_objext` in
12774 *ELF-32*)
12775 HPUX_IA64_MODE="32"
12777 *ELF-64*)
12778 HPUX_IA64_MODE="64"
12780 esac
12782 rm -rf conftest*
12784 *-*-irix6*)
12785 # Find out which ABI we are using.
12786 echo '#line 12786 "configure"' > conftest.$ac_ext
12787 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12788 (eval $ac_compile) 2>&5
12789 ac_status=$?
12790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12791 test $ac_status = 0; }; then
12792 if test "$lt_cv_prog_gnu_ld" = yes; then
12793 case `/usr/bin/file conftest.$ac_objext` in
12794 *32-bit*)
12795 LD="${LD-ld} -melf32bsmip"
12797 *N32*)
12798 LD="${LD-ld} -melf32bmipn32"
12800 *64-bit*)
12801 LD="${LD-ld} -melf64bmip"
12803 esac
12804 else
12805 case `/usr/bin/file conftest.$ac_objext` in
12806 *32-bit*)
12807 LD="${LD-ld} -32"
12809 *N32*)
12810 LD="${LD-ld} -n32"
12812 *64-bit*)
12813 LD="${LD-ld} -64"
12815 esac
12818 rm -rf conftest*
12821 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12822 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12823 # Find out which ABI we are using.
12824 echo 'int i;' > conftest.$ac_ext
12825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12826 (eval $ac_compile) 2>&5
12827 ac_status=$?
12828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12829 test $ac_status = 0; }; then
12830 case `/usr/bin/file conftest.o` in
12831 *32-bit*)
12832 case $host in
12833 x86_64-*kfreebsd*-gnu)
12834 LD="${LD-ld} -m elf_i386_fbsd"
12836 x86_64-*linux*)
12837 LD="${LD-ld} -m elf_i386"
12839 ppc64-*linux*|powerpc64-*linux*)
12840 LD="${LD-ld} -m elf32ppclinux"
12842 s390x-*linux*)
12843 LD="${LD-ld} -m elf_s390"
12845 sparc64-*linux*)
12846 LD="${LD-ld} -m elf32_sparc"
12848 esac
12850 *64-bit*)
12851 case $host in
12852 x86_64-*kfreebsd*-gnu)
12853 LD="${LD-ld} -m elf_x86_64_fbsd"
12855 x86_64-*linux*)
12856 LD="${LD-ld} -m elf_x86_64"
12858 ppc*-*linux*|powerpc*-*linux*)
12859 LD="${LD-ld} -m elf64ppc"
12861 s390*-*linux*|s390*-*tpf*)
12862 LD="${LD-ld} -m elf64_s390"
12864 sparc*-*linux*)
12865 LD="${LD-ld} -m elf64_sparc"
12867 esac
12869 esac
12871 rm -rf conftest*
12874 *-*-sco3.2v5*)
12875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12876 SAVE_CFLAGS="$CFLAGS"
12877 CFLAGS="$CFLAGS -belf"
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12879 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12880 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12881 $as_echo_n "(cached) " >&6
12882 else
12883 ac_ext=c
12884 ac_cpp='$CPP $CPPFLAGS'
12885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12893 main ()
12897 return 0;
12899 _ACEOF
12900 if ac_fn_c_try_link "$LINENO"; then :
12901 lt_cv_cc_needs_belf=yes
12902 else
12903 lt_cv_cc_needs_belf=no
12905 rm -f core conftest.err conftest.$ac_objext \
12906 conftest$ac_exeext conftest.$ac_ext
12907 ac_ext=c
12908 ac_cpp='$CPP $CPPFLAGS'
12909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12915 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12916 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12917 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12918 CFLAGS="$SAVE_CFLAGS"
12921 sparc*-*solaris*)
12922 # Find out which ABI we are using.
12923 echo 'int i;' > conftest.$ac_ext
12924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12925 (eval $ac_compile) 2>&5
12926 ac_status=$?
12927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928 test $ac_status = 0; }; then
12929 case `/usr/bin/file conftest.o` in
12930 *64-bit*)
12931 case $lt_cv_prog_gnu_ld in
12932 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12934 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12935 LD="${LD-ld} -64"
12938 esac
12940 esac
12942 rm -rf conftest*
12944 esac
12946 need_locks="$enable_libtool_lock"
12949 case $host_os in
12950 rhapsody* | darwin*)
12951 if test -n "$ac_tool_prefix"; then
12952 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12953 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955 $as_echo_n "checking for $ac_word... " >&6; }
12956 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958 else
12959 if test -n "$DSYMUTIL"; then
12960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12973 done
12974 done
12975 IFS=$as_save_IFS
12979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12980 if test -n "$DSYMUTIL"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12982 $as_echo "$DSYMUTIL" >&6; }
12983 else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12990 if test -z "$ac_cv_prog_DSYMUTIL"; then
12991 ac_ct_DSYMUTIL=$DSYMUTIL
12992 # Extract the first word of "dsymutil", so it can be a program name with args.
12993 set dummy dsymutil; ac_word=$2
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12995 $as_echo_n "checking for $ac_word... " >&6; }
12996 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12997 $as_echo_n "(cached) " >&6
12998 else
12999 if test -n "$ac_ct_DSYMUTIL"; then
13000 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13001 else
13002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13003 for as_dir in $PATH
13005 IFS=$as_save_IFS
13006 test -z "$as_dir" && as_dir=.
13007 for ac_exec_ext in '' $ac_executable_extensions; do
13008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13009 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13011 break 2
13013 done
13014 done
13015 IFS=$as_save_IFS
13019 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13020 if test -n "$ac_ct_DSYMUTIL"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13022 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025 $as_echo "no" >&6; }
13028 if test "x$ac_ct_DSYMUTIL" = x; then
13029 DSYMUTIL=":"
13030 else
13031 case $cross_compiling:$ac_tool_warned in
13032 yes:)
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13035 ac_tool_warned=yes ;;
13036 esac
13037 DSYMUTIL=$ac_ct_DSYMUTIL
13039 else
13040 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13043 if test -n "$ac_tool_prefix"; then
13044 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13045 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047 $as_echo_n "checking for $ac_word... " >&6; }
13048 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 if test -n "$NMEDIT"; then
13052 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13053 else
13054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055 for as_dir in $PATH
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13061 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13063 break 2
13065 done
13066 done
13067 IFS=$as_save_IFS
13071 NMEDIT=$ac_cv_prog_NMEDIT
13072 if test -n "$NMEDIT"; then
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13074 $as_echo "$NMEDIT" >&6; }
13075 else
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13082 if test -z "$ac_cv_prog_NMEDIT"; then
13083 ac_ct_NMEDIT=$NMEDIT
13084 # Extract the first word of "nmedit", so it can be a program name with args.
13085 set dummy nmedit; ac_word=$2
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087 $as_echo_n "checking for $ac_word... " >&6; }
13088 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 if test -n "$ac_ct_NMEDIT"; then
13092 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13093 else
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13105 done
13106 done
13107 IFS=$as_save_IFS
13111 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13112 if test -n "$ac_ct_NMEDIT"; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13114 $as_echo "$ac_ct_NMEDIT" >&6; }
13115 else
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117 $as_echo "no" >&6; }
13120 if test "x$ac_ct_NMEDIT" = x; then
13121 NMEDIT=":"
13122 else
13123 case $cross_compiling:$ac_tool_warned in
13124 yes:)
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13127 ac_tool_warned=yes ;;
13128 esac
13129 NMEDIT=$ac_ct_NMEDIT
13131 else
13132 NMEDIT="$ac_cv_prog_NMEDIT"
13135 if test -n "$ac_tool_prefix"; then
13136 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13137 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if test "${ac_cv_prog_LIPO+set}" = set; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 if test -n "$LIPO"; then
13144 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13145 else
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13149 IFS=$as_save_IFS
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13155 break 2
13157 done
13158 done
13159 IFS=$as_save_IFS
13163 LIPO=$ac_cv_prog_LIPO
13164 if test -n "$LIPO"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13166 $as_echo "$LIPO" >&6; }
13167 else
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13174 if test -z "$ac_cv_prog_LIPO"; then
13175 ac_ct_LIPO=$LIPO
13176 # Extract the first word of "lipo", so it can be a program name with args.
13177 set dummy lipo; ac_word=$2
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179 $as_echo_n "checking for $ac_word... " >&6; }
13180 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 if test -n "$ac_ct_LIPO"; then
13184 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13185 else
13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187 for as_dir in $PATH
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13193 ac_cv_prog_ac_ct_LIPO="lipo"
13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13195 break 2
13197 done
13198 done
13199 IFS=$as_save_IFS
13203 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13204 if test -n "$ac_ct_LIPO"; then
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13206 $as_echo "$ac_ct_LIPO" >&6; }
13207 else
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209 $as_echo "no" >&6; }
13212 if test "x$ac_ct_LIPO" = x; then
13213 LIPO=":"
13214 else
13215 case $cross_compiling:$ac_tool_warned in
13216 yes:)
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13219 ac_tool_warned=yes ;;
13220 esac
13221 LIPO=$ac_ct_LIPO
13223 else
13224 LIPO="$ac_cv_prog_LIPO"
13227 if test -n "$ac_tool_prefix"; then
13228 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13229 set dummy ${ac_tool_prefix}otool; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13231 $as_echo_n "checking for $ac_word... " >&6; }
13232 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13233 $as_echo_n "(cached) " >&6
13234 else
13235 if test -n "$OTOOL"; then
13236 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13237 else
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13241 IFS=$as_save_IFS
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13245 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247 break 2
13249 done
13250 done
13251 IFS=$as_save_IFS
13255 OTOOL=$ac_cv_prog_OTOOL
13256 if test -n "$OTOOL"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13258 $as_echo "$OTOOL" >&6; }
13259 else
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13261 $as_echo "no" >&6; }
13266 if test -z "$ac_cv_prog_OTOOL"; then
13267 ac_ct_OTOOL=$OTOOL
13268 # Extract the first word of "otool", so it can be a program name with args.
13269 set dummy otool; ac_word=$2
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13271 $as_echo_n "checking for $ac_word... " >&6; }
13272 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13273 $as_echo_n "(cached) " >&6
13274 else
13275 if test -n "$ac_ct_OTOOL"; then
13276 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13277 else
13278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13279 for as_dir in $PATH
13281 IFS=$as_save_IFS
13282 test -z "$as_dir" && as_dir=.
13283 for ac_exec_ext in '' $ac_executable_extensions; do
13284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13285 ac_cv_prog_ac_ct_OTOOL="otool"
13286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13287 break 2
13289 done
13290 done
13291 IFS=$as_save_IFS
13295 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13296 if test -n "$ac_ct_OTOOL"; then
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13298 $as_echo "$ac_ct_OTOOL" >&6; }
13299 else
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301 $as_echo "no" >&6; }
13304 if test "x$ac_ct_OTOOL" = x; then
13305 OTOOL=":"
13306 else
13307 case $cross_compiling:$ac_tool_warned in
13308 yes:)
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13311 ac_tool_warned=yes ;;
13312 esac
13313 OTOOL=$ac_ct_OTOOL
13315 else
13316 OTOOL="$ac_cv_prog_OTOOL"
13319 if test -n "$ac_tool_prefix"; then
13320 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13321 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13323 $as_echo_n "checking for $ac_word... " >&6; }
13324 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 if test -n "$OTOOL64"; then
13328 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13329 else
13330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331 for as_dir in $PATH
13333 IFS=$as_save_IFS
13334 test -z "$as_dir" && as_dir=.
13335 for ac_exec_ext in '' $ac_executable_extensions; do
13336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13337 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13339 break 2
13341 done
13342 done
13343 IFS=$as_save_IFS
13347 OTOOL64=$ac_cv_prog_OTOOL64
13348 if test -n "$OTOOL64"; then
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13350 $as_echo "$OTOOL64" >&6; }
13351 else
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13358 if test -z "$ac_cv_prog_OTOOL64"; then
13359 ac_ct_OTOOL64=$OTOOL64
13360 # Extract the first word of "otool64", so it can be a program name with args.
13361 set dummy otool64; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13363 $as_echo_n "checking for $ac_word... " >&6; }
13364 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13365 $as_echo_n "(cached) " >&6
13366 else
13367 if test -n "$ac_ct_OTOOL64"; then
13368 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13369 else
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13373 IFS=$as_save_IFS
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13377 ac_cv_prog_ac_ct_OTOOL64="otool64"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13379 break 2
13381 done
13382 done
13383 IFS=$as_save_IFS
13387 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13388 if test -n "$ac_ct_OTOOL64"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13390 $as_echo "$ac_ct_OTOOL64" >&6; }
13391 else
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13393 $as_echo "no" >&6; }
13396 if test "x$ac_ct_OTOOL64" = x; then
13397 OTOOL64=":"
13398 else
13399 case $cross_compiling:$ac_tool_warned in
13400 yes:)
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13403 ac_tool_warned=yes ;;
13404 esac
13405 OTOOL64=$ac_ct_OTOOL64
13407 else
13408 OTOOL64="$ac_cv_prog_OTOOL64"
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13438 $as_echo_n "checking for -single_module linker flag... " >&6; }
13439 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 lt_cv_apple_cc_single_mod=no
13443 if test -z "${LT_MULTI_MODULE}"; then
13444 # By default we will add the -single_module flag. You can override
13445 # by either setting the environment variable LT_MULTI_MODULE
13446 # non-empty at configure time, or by adding -multi_module to the
13447 # link flags.
13448 rm -rf libconftest.dylib*
13449 echo "int foo(void){return 1;}" > conftest.c
13450 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13451 -dynamiclib -Wl,-single_module conftest.c" >&5
13452 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13453 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13454 _lt_result=$?
13455 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
13456 lt_cv_apple_cc_single_mod=yes
13457 else
13458 cat conftest.err >&5
13460 rm -rf libconftest.dylib*
13461 rm -f conftest.*
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13465 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13467 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
13468 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
13469 $as_echo_n "(cached) " >&6
13470 else
13471 lt_cv_ld_exported_symbols_list=no
13472 save_LDFLAGS=$LDFLAGS
13473 echo "_main" > conftest.sym
13474 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13479 main ()
13483 return 0;
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"; then :
13487 lt_cv_ld_exported_symbols_list=yes
13488 else
13489 lt_cv_ld_exported_symbols_list=no
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LDFLAGS="$save_LDFLAGS"
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13497 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13498 case $host_os in
13499 rhapsody* | darwin1.[012])
13500 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13501 darwin1.*)
13502 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13503 darwin*) # darwin 5.x on
13504 # if running on 10.5 or later, the deployment target defaults
13505 # to the OS version, if on x86, and 10.4, the deployment
13506 # target defaults to 10.4. Don't you love it?
13507 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13508 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13509 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13510 10.[012]*)
13511 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13512 10.*)
13513 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13514 esac
13516 esac
13517 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13518 _lt_dar_single_mod='$single_module'
13520 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13521 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13522 else
13523 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13525 if test "$DSYMUTIL" != ":"; then
13526 _lt_dsymutil='~$DSYMUTIL $lib || :'
13527 else
13528 _lt_dsymutil=
13531 esac
13533 for ac_header in dlfcn.h
13534 do :
13535 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13536 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13537 cat >>confdefs.h <<_ACEOF
13538 #define HAVE_DLFCN_H 1
13539 _ACEOF
13542 done
13546 ac_ext=cpp
13547 ac_cpp='$CXXCPP $CPPFLAGS'
13548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13551 if test -z "$CXX"; then
13552 if test -n "$CCC"; then
13553 CXX=$CCC
13554 else
13555 if test -n "$ac_tool_prefix"; then
13556 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13558 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13559 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13561 $as_echo_n "checking for $ac_word... " >&6; }
13562 if test "${ac_cv_prog_CXX+set}" = set; then :
13563 $as_echo_n "(cached) " >&6
13564 else
13565 if test -n "$CXX"; then
13566 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13567 else
13568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13569 for as_dir in $PATH
13571 IFS=$as_save_IFS
13572 test -z "$as_dir" && as_dir=.
13573 for ac_exec_ext in '' $ac_executable_extensions; do
13574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13575 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13577 break 2
13579 done
13580 done
13581 IFS=$as_save_IFS
13585 CXX=$ac_cv_prog_CXX
13586 if test -n "$CXX"; then
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13588 $as_echo "$CXX" >&6; }
13589 else
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13591 $as_echo "no" >&6; }
13595 test -n "$CXX" && break
13596 done
13598 if test -z "$CXX"; then
13599 ac_ct_CXX=$CXX
13600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13602 # Extract the first word of "$ac_prog", so it can be a program name with args.
13603 set dummy $ac_prog; ac_word=$2
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13605 $as_echo_n "checking for $ac_word... " >&6; }
13606 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 if test -n "$ac_ct_CXX"; then
13610 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13611 else
13612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13613 for as_dir in $PATH
13615 IFS=$as_save_IFS
13616 test -z "$as_dir" && as_dir=.
13617 for ac_exec_ext in '' $ac_executable_extensions; do
13618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13619 ac_cv_prog_ac_ct_CXX="$ac_prog"
13620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13621 break 2
13623 done
13624 done
13625 IFS=$as_save_IFS
13629 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13630 if test -n "$ac_ct_CXX"; then
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13632 $as_echo "$ac_ct_CXX" >&6; }
13633 else
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13635 $as_echo "no" >&6; }
13639 test -n "$ac_ct_CXX" && break
13640 done
13642 if test "x$ac_ct_CXX" = x; then
13643 CXX="g++"
13644 else
13645 case $cross_compiling:$ac_tool_warned in
13646 yes:)
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13649 ac_tool_warned=yes ;;
13650 esac
13651 CXX=$ac_ct_CXX
13657 # Provide some information about the compiler.
13658 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13659 set X $ac_compile
13660 ac_compiler=$2
13661 for ac_option in --version -v -V -qversion; do
13662 { { ac_try="$ac_compiler $ac_option >&5"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13666 esac
13667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13668 $as_echo "$ac_try_echo"; } >&5
13669 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13670 ac_status=$?
13671 if test -s conftest.err; then
13672 sed '10a\
13673 ... rest of stderr output deleted ...
13674 10q' conftest.err >conftest.er1
13675 cat conftest.er1 >&5
13676 rm -f conftest.er1 conftest.err
13678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13679 test $ac_status = 0; }
13680 done
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13683 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13691 main ()
13693 #ifndef __GNUC__
13694 choke me
13695 #endif
13698 return 0;
13700 _ACEOF
13701 if ac_fn_cxx_try_compile "$LINENO"; then :
13702 ac_compiler_gnu=yes
13703 else
13704 ac_compiler_gnu=no
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13707 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13711 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13712 if test $ac_compiler_gnu = yes; then
13713 GXX=yes
13714 else
13715 GXX=
13717 ac_test_CXXFLAGS=${CXXFLAGS+set}
13718 ac_save_CXXFLAGS=$CXXFLAGS
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13720 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13721 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13722 $as_echo_n "(cached) " >&6
13723 else
13724 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13725 ac_cxx_werror_flag=yes
13726 ac_cv_prog_cxx_g=no
13727 CXXFLAGS="-g"
13728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13729 /* end confdefs.h. */
13732 main ()
13736 return 0;
13738 _ACEOF
13739 if ac_fn_cxx_try_compile "$LINENO"; then :
13740 ac_cv_prog_cxx_g=yes
13741 else
13742 CXXFLAGS=""
13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h. */
13747 main ()
13751 return 0;
13753 _ACEOF
13754 if ac_fn_cxx_try_compile "$LINENO"; then :
13756 else
13757 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13758 CXXFLAGS="-g"
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13763 main ()
13767 return 0;
13769 _ACEOF
13770 if ac_fn_cxx_try_compile "$LINENO"; then :
13771 ac_cv_prog_cxx_g=yes
13773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13781 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13782 if test "$ac_test_CXXFLAGS" = set; then
13783 CXXFLAGS=$ac_save_CXXFLAGS
13784 elif test $ac_cv_prog_cxx_g = yes; then
13785 if test "$GXX" = yes; then
13786 CXXFLAGS="-g -O2"
13787 else
13788 CXXFLAGS="-g"
13790 else
13791 if test "$GXX" = yes; then
13792 CXXFLAGS="-O2"
13793 else
13794 CXXFLAGS=
13797 ac_ext=c
13798 ac_cpp='$CPP $CPPFLAGS'
13799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13803 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13804 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13805 (test "X$CXX" != "Xg++"))) ; then
13806 ac_ext=cpp
13807 ac_cpp='$CXXCPP $CPPFLAGS'
13808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13812 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13813 if test -z "$CXXCPP"; then
13814 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 # Double quotes because CXXCPP needs to be expanded
13818 for CXXCPP in "$CXX -E" "/lib/cpp"
13820 ac_preproc_ok=false
13821 for ac_cxx_preproc_warn_flag in '' yes
13823 # Use a header file that comes with gcc, so configuring glibc
13824 # with a fresh cross-compiler works.
13825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13826 # <limits.h> exists even on freestanding compilers.
13827 # On the NeXT, cc -E runs the code through the compiler's parser,
13828 # not just through cpp. "Syntax error" is here to catch this case.
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831 #ifdef __STDC__
13832 # include <limits.h>
13833 #else
13834 # include <assert.h>
13835 #endif
13836 Syntax error
13837 _ACEOF
13838 if ac_fn_cxx_try_cpp "$LINENO"; then :
13840 else
13841 # Broken: fails on valid input.
13842 continue
13844 rm -f conftest.err conftest.$ac_ext
13846 # OK, works on sane cases. Now check whether nonexistent headers
13847 # can be detected and how.
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #include <ac_nonexistent.h>
13851 _ACEOF
13852 if ac_fn_cxx_try_cpp "$LINENO"; then :
13853 # Broken: success on invalid input.
13854 continue
13855 else
13856 # Passes both tests.
13857 ac_preproc_ok=:
13858 break
13860 rm -f conftest.err conftest.$ac_ext
13862 done
13863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13864 rm -f conftest.err conftest.$ac_ext
13865 if $ac_preproc_ok; then :
13866 break
13869 done
13870 ac_cv_prog_CXXCPP=$CXXCPP
13873 CXXCPP=$ac_cv_prog_CXXCPP
13874 else
13875 ac_cv_prog_CXXCPP=$CXXCPP
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13878 $as_echo "$CXXCPP" >&6; }
13879 ac_preproc_ok=false
13880 for ac_cxx_preproc_warn_flag in '' yes
13882 # Use a header file that comes with gcc, so configuring glibc
13883 # with a fresh cross-compiler works.
13884 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13885 # <limits.h> exists even on freestanding compilers.
13886 # On the NeXT, cc -E runs the code through the compiler's parser,
13887 # not just through cpp. "Syntax error" is here to catch this case.
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13890 #ifdef __STDC__
13891 # include <limits.h>
13892 #else
13893 # include <assert.h>
13894 #endif
13895 Syntax error
13896 _ACEOF
13897 if ac_fn_cxx_try_cpp "$LINENO"; then :
13899 else
13900 # Broken: fails on valid input.
13901 continue
13903 rm -f conftest.err conftest.$ac_ext
13905 # OK, works on sane cases. Now check whether nonexistent headers
13906 # can be detected and how.
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 #include <ac_nonexistent.h>
13910 _ACEOF
13911 if ac_fn_cxx_try_cpp "$LINENO"; then :
13912 # Broken: success on invalid input.
13913 continue
13914 else
13915 # Passes both tests.
13916 ac_preproc_ok=:
13917 break
13919 rm -f conftest.err conftest.$ac_ext
13921 done
13922 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13923 rm -f conftest.err conftest.$ac_ext
13924 if $ac_preproc_ok; then :
13926 else
13927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13929 _lt_caught_CXX_error=yes; }
13932 ac_ext=c
13933 ac_cpp='$CPP $CPPFLAGS'
13934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13938 else
13939 _lt_caught_CXX_error=yes
13946 # Set options
13950 enable_dlopen=no
13953 enable_win32_dll=no
13956 # Check whether --enable-shared was given.
13957 if test "${enable_shared+set}" = set; then :
13958 enableval=$enable_shared; p=${PACKAGE-default}
13959 case $enableval in
13960 yes) enable_shared=yes ;;
13961 no) enable_shared=no ;;
13963 enable_shared=no
13964 # Look at the argument we got. We use all the common list separators.
13965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13966 for pkg in $enableval; do
13967 IFS="$lt_save_ifs"
13968 if test "X$pkg" = "X$p"; then
13969 enable_shared=yes
13971 done
13972 IFS="$lt_save_ifs"
13974 esac
13975 else
13976 enable_shared=yes
13987 # Check whether --enable-static was given.
13988 if test "${enable_static+set}" = set; then :
13989 enableval=$enable_static; p=${PACKAGE-default}
13990 case $enableval in
13991 yes) enable_static=yes ;;
13992 no) enable_static=no ;;
13994 enable_static=no
13995 # Look at the argument we got. We use all the common list separators.
13996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13997 for pkg in $enableval; do
13998 IFS="$lt_save_ifs"
13999 if test "X$pkg" = "X$p"; then
14000 enable_static=yes
14002 done
14003 IFS="$lt_save_ifs"
14005 esac
14006 else
14007 enable_static=yes
14019 # Check whether --with-pic was given.
14020 if test "${with_pic+set}" = set; then :
14021 withval=$with_pic; pic_mode="$withval"
14022 else
14023 pic_mode=default
14027 test -z "$pic_mode" && pic_mode=default
14035 # Check whether --enable-fast-install was given.
14036 if test "${enable_fast_install+set}" = set; then :
14037 enableval=$enable_fast_install; p=${PACKAGE-default}
14038 case $enableval in
14039 yes) enable_fast_install=yes ;;
14040 no) enable_fast_install=no ;;
14042 enable_fast_install=no
14043 # Look at the argument we got. We use all the common list separators.
14044 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14045 for pkg in $enableval; do
14046 IFS="$lt_save_ifs"
14047 if test "X$pkg" = "X$p"; then
14048 enable_fast_install=yes
14050 done
14051 IFS="$lt_save_ifs"
14053 esac
14054 else
14055 enable_fast_install=yes
14068 # This can be used to rebuild libtool when needed
14069 LIBTOOL_DEPS="$ltmain"
14071 # Always use our own libtool.
14072 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14098 test -z "$LN_S" && LN_S="ln -s"
14113 if test -n "${ZSH_VERSION+set}" ; then
14114 setopt NO_GLOB_SUBST
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14118 $as_echo_n "checking for objdir... " >&6; }
14119 if test "${lt_cv_objdir+set}" = set; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 rm -f .libs 2>/dev/null
14123 mkdir .libs 2>/dev/null
14124 if test -d .libs; then
14125 lt_cv_objdir=.libs
14126 else
14127 # MS-DOS does not allow filenames that begin with a dot.
14128 lt_cv_objdir=_libs
14130 rmdir .libs 2>/dev/null
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14133 $as_echo "$lt_cv_objdir" >&6; }
14134 objdir=$lt_cv_objdir
14140 cat >>confdefs.h <<_ACEOF
14141 #define LT_OBJDIR "$lt_cv_objdir/"
14142 _ACEOF
14160 case $host_os in
14161 aix3*)
14162 # AIX sometimes has problems with the GCC collect2 program. For some
14163 # reason, if we set the COLLECT_NAMES environment variable, the problems
14164 # vanish in a puff of smoke.
14165 if test "X${COLLECT_NAMES+set}" != Xset; then
14166 COLLECT_NAMES=
14167 export COLLECT_NAMES
14170 esac
14172 # Sed substitution that helps us do robust quoting. It backslashifies
14173 # metacharacters that are still active within double-quoted strings.
14174 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14176 # Same as above, but do not quote variable references.
14177 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14179 # Sed substitution to delay expansion of an escaped shell variable in a
14180 # double_quote_subst'ed string.
14181 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14183 # Sed substitution to delay expansion of an escaped single quote.
14184 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14186 # Sed substitution to avoid accidental globbing in evaled expressions
14187 no_glob_subst='s/\*/\\\*/g'
14189 # Global variables:
14190 ofile=libtool
14191 can_build_shared=yes
14193 # All known linkers require a `.a' archive for static linking (except MSVC,
14194 # which needs '.lib').
14195 libext=a
14197 with_gnu_ld="$lt_cv_prog_gnu_ld"
14199 old_CC="$CC"
14200 old_CFLAGS="$CFLAGS"
14202 # Set sane defaults for various variables
14203 test -z "$CC" && CC=cc
14204 test -z "$LTCC" && LTCC=$CC
14205 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14206 test -z "$LD" && LD=ld
14207 test -z "$ac_objext" && ac_objext=o
14209 for cc_temp in $compiler""; do
14210 case $cc_temp in
14211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14213 \-*) ;;
14214 *) break;;
14215 esac
14216 done
14217 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14220 # Only perform the check for file, if the check method requires it
14221 test -z "$MAGIC_CMD" && MAGIC_CMD=file
14222 case $deplibs_check_method in
14223 file_magic*)
14224 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14226 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
14227 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14228 $as_echo_n "(cached) " >&6
14229 else
14230 case $MAGIC_CMD in
14231 [\\/*] | ?:[\\/]*)
14232 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14235 lt_save_MAGIC_CMD="$MAGIC_CMD"
14236 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14237 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14238 for ac_dir in $ac_dummy; do
14239 IFS="$lt_save_ifs"
14240 test -z "$ac_dir" && ac_dir=.
14241 if test -f $ac_dir/${ac_tool_prefix}file; then
14242 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14243 if test -n "$file_magic_test_file"; then
14244 case $deplibs_check_method in
14245 "file_magic "*)
14246 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14247 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14248 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14249 $EGREP "$file_magic_regex" > /dev/null; then
14251 else
14252 cat <<_LT_EOF 1>&2
14254 *** Warning: the command libtool uses to detect shared libraries,
14255 *** $file_magic_cmd, produces output that libtool cannot recognize.
14256 *** The result is that libtool may fail to recognize shared libraries
14257 *** as such. This will affect the creation of libtool libraries that
14258 *** depend on shared libraries, but programs linked with such libtool
14259 *** libraries will work regardless of this problem. Nevertheless, you
14260 *** may want to report the problem to your system manager and/or to
14261 *** bug-libtool@gnu.org
14263 _LT_EOF
14264 fi ;;
14265 esac
14267 break
14269 done
14270 IFS="$lt_save_ifs"
14271 MAGIC_CMD="$lt_save_MAGIC_CMD"
14273 esac
14276 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14277 if test -n "$MAGIC_CMD"; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14279 $as_echo "$MAGIC_CMD" >&6; }
14280 else
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14282 $as_echo "no" >&6; }
14289 if test -z "$lt_cv_path_MAGIC_CMD"; then
14290 if test -n "$ac_tool_prefix"; then
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14292 $as_echo_n "checking for file... " >&6; }
14293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 case $MAGIC_CMD in
14297 [\\/*] | ?:[\\/]*)
14298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14301 lt_save_MAGIC_CMD="$MAGIC_CMD"
14302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14304 for ac_dir in $ac_dummy; do
14305 IFS="$lt_save_ifs"
14306 test -z "$ac_dir" && ac_dir=.
14307 if test -f $ac_dir/file; then
14308 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14309 if test -n "$file_magic_test_file"; then
14310 case $deplibs_check_method in
14311 "file_magic "*)
14312 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
14313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14315 $EGREP "$file_magic_regex" > /dev/null; then
14317 else
14318 cat <<_LT_EOF 1>&2
14320 *** Warning: the command libtool uses to detect shared libraries,
14321 *** $file_magic_cmd, produces output that libtool cannot recognize.
14322 *** The result is that libtool may fail to recognize shared libraries
14323 *** as such. This will affect the creation of libtool libraries that
14324 *** depend on shared libraries, but programs linked with such libtool
14325 *** libraries will work regardless of this problem. Nevertheless, you
14326 *** may want to report the problem to your system manager and/or to
14327 *** bug-libtool@gnu.org
14329 _LT_EOF
14330 fi ;;
14331 esac
14333 break
14335 done
14336 IFS="$lt_save_ifs"
14337 MAGIC_CMD="$lt_save_MAGIC_CMD"
14339 esac
14342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14343 if test -n "$MAGIC_CMD"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14345 $as_echo "$MAGIC_CMD" >&6; }
14346 else
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14352 else
14353 MAGIC_CMD=:
14359 esac
14361 # Use C for the default configuration in the libtool script
14363 lt_save_CC="$CC"
14364 ac_ext=c
14365 ac_cpp='$CPP $CPPFLAGS'
14366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14371 # Source file extension for C test sources.
14372 ac_ext=c
14374 # Object file extension for compiled C test sources.
14375 objext=o
14376 objext=$objext
14378 # Code to be used in simple compile tests
14379 lt_simple_compile_test_code="int some_variable = 0;"
14381 # Code to be used in simple link tests
14382 lt_simple_link_test_code='int main(){return(0);}'
14390 # If no C compiler was specified, use CC.
14391 LTCC=${LTCC-"$CC"}
14393 # If no C compiler flags were specified, use CFLAGS.
14394 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14396 # Allow CC to be a program name with arguments.
14397 compiler=$CC
14399 # Save the default compiler, since it gets overwritten when the other
14400 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
14401 compiler_DEFAULT=$CC
14403 # save warnings/boilerplate of simple test code
14404 ac_outfile=conftest.$ac_objext
14405 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14406 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14407 _lt_compiler_boilerplate=`cat conftest.err`
14408 $RM conftest*
14410 ac_outfile=conftest.$ac_objext
14411 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14412 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14413 _lt_linker_boilerplate=`cat conftest.err`
14414 $RM -r conftest*
14417 ## CAVEAT EMPTOR:
14418 ## There is no encapsulation within the following macros, do not change
14419 ## the running order or otherwise move them around unless you know exactly
14420 ## what you are doing...
14421 if test -n "$compiler"; then
14423 lt_prog_compiler_no_builtin_flag=
14425 if test "$GCC" = yes; then
14426 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14429 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
14430 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433 lt_cv_prog_compiler_rtti_exceptions=no
14434 ac_outfile=conftest.$ac_objext
14435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14436 lt_compiler_flag="-fno-rtti -fno-exceptions"
14437 # Insert the option either (1) after the last *FLAGS variable, or
14438 # (2) before a word containing "conftest.", or (3) at the end.
14439 # Note that $ac_compile itself does not contain backslashes and begins
14440 # with a dollar sign (not a hyphen), so the echo should work correctly.
14441 # The option is referenced via a variable to avoid confusing sed.
14442 lt_compile=`echo "$ac_compile" | $SED \
14443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14445 -e 's:$: $lt_compiler_flag:'`
14446 (eval echo "\"\$as_me:14446: $lt_compile\"" >&5)
14447 (eval "$lt_compile" 2>conftest.err)
14448 ac_status=$?
14449 cat conftest.err >&5
14450 echo "$as_me:14450: \$? = $ac_status" >&5
14451 if (exit $ac_status) && test -s "$ac_outfile"; then
14452 # The compiler can only warn and ignore the option if not recognized
14453 # So say no if there are warnings other than the usual output.
14454 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14457 lt_cv_prog_compiler_rtti_exceptions=yes
14460 $RM conftest*
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14464 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14466 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14467 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14468 else
14479 lt_prog_compiler_wl=
14480 lt_prog_compiler_pic=
14481 lt_prog_compiler_static=
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14484 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14486 if test "$GCC" = yes; then
14487 lt_prog_compiler_wl='-Wl,'
14488 lt_prog_compiler_static='-static'
14490 case $host_os in
14491 aix*)
14492 # All AIX code is PIC.
14493 if test "$host_cpu" = ia64; then
14494 # AIX 5 now supports IA64 processor
14495 lt_prog_compiler_static='-Bstatic'
14499 amigaos*)
14500 case $host_cpu in
14501 powerpc)
14502 # see comment about AmigaOS4 .so support
14503 lt_prog_compiler_pic='-fPIC'
14505 m68k)
14506 # FIXME: we need at least 68020 code to build shared libraries, but
14507 # adding the `-m68020' flag to GCC prevents building anything better,
14508 # like `-m68040'.
14509 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14511 esac
14514 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14515 # PIC is the default for these OSes.
14518 mingw* | cygwin* | pw32* | os2* | cegcc*)
14519 # This hack is so that the source file can tell whether it is being
14520 # built for inclusion in a dll (and should export symbols for example).
14521 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14522 # (--disable-auto-import) libraries
14523 lt_prog_compiler_pic='-DDLL_EXPORT'
14526 darwin* | rhapsody*)
14527 # PIC is the default on this platform
14528 # Common symbols not allowed in MH_DYLIB files
14529 lt_prog_compiler_pic='-fno-common'
14532 hpux*)
14533 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14534 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14535 # sets the default TLS model and affects inlining.
14536 case $host_cpu in
14537 hppa*64*)
14538 # +Z the default
14541 lt_prog_compiler_pic='-fPIC'
14543 esac
14546 interix[3-9]*)
14547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14548 # Instead, we relocate shared libraries at runtime.
14551 msdosdjgpp*)
14552 # Just because we use GCC doesn't mean we suddenly get shared libraries
14553 # on systems that don't support them.
14554 lt_prog_compiler_can_build_shared=no
14555 enable_shared=no
14558 *nto* | *qnx*)
14559 # QNX uses GNU C++, but need to define -shared option too, otherwise
14560 # it will coredump.
14561 lt_prog_compiler_pic='-fPIC -shared'
14564 sysv4*MP*)
14565 if test -d /usr/nec; then
14566 lt_prog_compiler_pic=-Kconform_pic
14571 lt_prog_compiler_pic='-fPIC'
14573 esac
14574 else
14575 # PORTME Check for flag to pass linker flags through the system compiler.
14576 case $host_os in
14577 aix*)
14578 lt_prog_compiler_wl='-Wl,'
14579 if test "$host_cpu" = ia64; then
14580 # AIX 5 now supports IA64 processor
14581 lt_prog_compiler_static='-Bstatic'
14582 else
14583 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14587 mingw* | cygwin* | pw32* | os2* | cegcc*)
14588 # This hack is so that the source file can tell whether it is being
14589 # built for inclusion in a dll (and should export symbols for example).
14590 lt_prog_compiler_pic='-DDLL_EXPORT'
14593 hpux9* | hpux10* | hpux11*)
14594 lt_prog_compiler_wl='-Wl,'
14595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14596 # not for PA HP-UX.
14597 case $host_cpu in
14598 hppa*64*|ia64*)
14599 # +Z the default
14602 lt_prog_compiler_pic='+Z'
14604 esac
14605 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14606 lt_prog_compiler_static='${wl}-a ${wl}archive'
14609 irix5* | irix6* | nonstopux*)
14610 lt_prog_compiler_wl='-Wl,'
14611 # PIC (with -KPIC) is the default.
14612 lt_prog_compiler_static='-non_shared'
14615 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14616 case $cc_basename in
14617 # old Intel for x86_64 which still supported -KPIC.
14618 ecc*)
14619 lt_prog_compiler_wl='-Wl,'
14620 lt_prog_compiler_pic='-KPIC'
14621 lt_prog_compiler_static='-static'
14623 # icc used to be incompatible with GCC.
14624 # ICC 10 doesn't accept -KPIC any more.
14625 icc* | ifort*)
14626 lt_prog_compiler_wl='-Wl,'
14627 lt_prog_compiler_pic='-fPIC'
14628 lt_prog_compiler_static='-static'
14630 # Lahey Fortran 8.1.
14631 lf95*)
14632 lt_prog_compiler_wl='-Wl,'
14633 lt_prog_compiler_pic='--shared'
14634 lt_prog_compiler_static='--static'
14636 pgcc* | pgf77* | pgf90* | pgf95*)
14637 # Portland Group compilers (*not* the Pentium gcc compiler,
14638 # which looks to be a dead project)
14639 lt_prog_compiler_wl='-Wl,'
14640 lt_prog_compiler_pic='-fpic'
14641 lt_prog_compiler_static='-Bstatic'
14643 ccc*)
14644 lt_prog_compiler_wl='-Wl,'
14645 # All Alpha code is PIC.
14646 lt_prog_compiler_static='-non_shared'
14648 xl*)
14649 # IBM XL C 8.0/Fortran 10.1 on PPC
14650 lt_prog_compiler_wl='-Wl,'
14651 lt_prog_compiler_pic='-qpic'
14652 lt_prog_compiler_static='-qstaticlink'
14655 case `$CC -V 2>&1 | sed 5q` in
14656 *Sun\ C*)
14657 # Sun C 5.9
14658 lt_prog_compiler_pic='-KPIC'
14659 lt_prog_compiler_static='-Bstatic'
14660 lt_prog_compiler_wl='-Wl,'
14662 *Sun\ F*)
14663 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14664 lt_prog_compiler_pic='-KPIC'
14665 lt_prog_compiler_static='-Bstatic'
14666 lt_prog_compiler_wl=''
14668 esac
14670 esac
14673 newsos6)
14674 lt_prog_compiler_pic='-KPIC'
14675 lt_prog_compiler_static='-Bstatic'
14678 *nto* | *qnx*)
14679 # QNX uses GNU C++, but need to define -shared option too, otherwise
14680 # it will coredump.
14681 lt_prog_compiler_pic='-fPIC -shared'
14684 osf3* | osf4* | osf5*)
14685 lt_prog_compiler_wl='-Wl,'
14686 # All OSF/1 code is PIC.
14687 lt_prog_compiler_static='-non_shared'
14690 rdos*)
14691 lt_prog_compiler_static='-non_shared'
14694 solaris*)
14695 lt_prog_compiler_pic='-KPIC'
14696 lt_prog_compiler_static='-Bstatic'
14697 case $cc_basename in
14698 f77* | f90* | f95*)
14699 lt_prog_compiler_wl='-Qoption ld ';;
14701 lt_prog_compiler_wl='-Wl,';;
14702 esac
14705 sunos4*)
14706 lt_prog_compiler_wl='-Qoption ld '
14707 lt_prog_compiler_pic='-PIC'
14708 lt_prog_compiler_static='-Bstatic'
14711 sysv4 | sysv4.2uw2* | sysv4.3*)
14712 lt_prog_compiler_wl='-Wl,'
14713 lt_prog_compiler_pic='-KPIC'
14714 lt_prog_compiler_static='-Bstatic'
14717 sysv4*MP*)
14718 if test -d /usr/nec ;then
14719 lt_prog_compiler_pic='-Kconform_pic'
14720 lt_prog_compiler_static='-Bstatic'
14724 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14725 lt_prog_compiler_wl='-Wl,'
14726 lt_prog_compiler_pic='-KPIC'
14727 lt_prog_compiler_static='-Bstatic'
14730 unicos*)
14731 lt_prog_compiler_wl='-Wl,'
14732 lt_prog_compiler_can_build_shared=no
14735 uts4*)
14736 lt_prog_compiler_pic='-pic'
14737 lt_prog_compiler_static='-Bstatic'
14741 lt_prog_compiler_can_build_shared=no
14743 esac
14746 case $host_os in
14747 # For platforms which do not support PIC, -DPIC is meaningless:
14748 *djgpp*)
14749 lt_prog_compiler_pic=
14752 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14754 esac
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14756 $as_echo "$lt_prog_compiler_pic" >&6; }
14764 # Check to make sure the PIC flag actually works.
14766 if test -n "$lt_prog_compiler_pic"; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14768 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14769 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14770 $as_echo_n "(cached) " >&6
14771 else
14772 lt_cv_prog_compiler_pic_works=no
14773 ac_outfile=conftest.$ac_objext
14774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14775 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14776 # Insert the option either (1) after the last *FLAGS variable, or
14777 # (2) before a word containing "conftest.", or (3) at the end.
14778 # Note that $ac_compile itself does not contain backslashes and begins
14779 # with a dollar sign (not a hyphen), so the echo should work correctly.
14780 # The option is referenced via a variable to avoid confusing sed.
14781 lt_compile=`echo "$ac_compile" | $SED \
14782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14784 -e 's:$: $lt_compiler_flag:'`
14785 (eval echo "\"\$as_me:14785: $lt_compile\"" >&5)
14786 (eval "$lt_compile" 2>conftest.err)
14787 ac_status=$?
14788 cat conftest.err >&5
14789 echo "$as_me:14789: \$? = $ac_status" >&5
14790 if (exit $ac_status) && test -s "$ac_outfile"; then
14791 # The compiler can only warn and ignore the option if not recognized
14792 # So say no if there are warnings other than the usual output.
14793 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14796 lt_cv_prog_compiler_pic_works=yes
14799 $RM conftest*
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14803 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14805 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14806 case $lt_prog_compiler_pic in
14807 "" | " "*) ;;
14808 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14809 esac
14810 else
14811 lt_prog_compiler_pic=
14812 lt_prog_compiler_can_build_shared=no
14823 # Check to make sure the static flag actually works.
14825 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14827 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14828 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14829 $as_echo_n "(cached) " >&6
14830 else
14831 lt_cv_prog_compiler_static_works=no
14832 save_LDFLAGS="$LDFLAGS"
14833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14834 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14836 # The linker can only warn and ignore the option if not recognized
14837 # So say no if there are warnings
14838 if test -s conftest.err; then
14839 # Append any errors to the config.log.
14840 cat conftest.err 1>&5
14841 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14843 if diff conftest.exp conftest.er2 >/dev/null; then
14844 lt_cv_prog_compiler_static_works=yes
14846 else
14847 lt_cv_prog_compiler_static_works=yes
14850 $RM -r conftest*
14851 LDFLAGS="$save_LDFLAGS"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14855 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14857 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14859 else
14860 lt_prog_compiler_static=
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14870 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14871 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14873 else
14874 lt_cv_prog_compiler_c_o=no
14875 $RM -r conftest 2>/dev/null
14876 mkdir conftest
14877 cd conftest
14878 mkdir out
14879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14881 lt_compiler_flag="-o out/conftest2.$ac_objext"
14882 # Insert the option either (1) after the last *FLAGS variable, or
14883 # (2) before a word containing "conftest.", or (3) at the end.
14884 # Note that $ac_compile itself does not contain backslashes and begins
14885 # with a dollar sign (not a hyphen), so the echo should work correctly.
14886 lt_compile=`echo "$ac_compile" | $SED \
14887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14889 -e 's:$: $lt_compiler_flag:'`
14890 (eval echo "\"\$as_me:14890: $lt_compile\"" >&5)
14891 (eval "$lt_compile" 2>out/conftest.err)
14892 ac_status=$?
14893 cat out/conftest.err >&5
14894 echo "$as_me:14894: \$? = $ac_status" >&5
14895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14896 then
14897 # The compiler can only warn and ignore the option if not recognized
14898 # So say no if there are warnings
14899 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14902 lt_cv_prog_compiler_c_o=yes
14905 chmod u+w . 2>&5
14906 $RM conftest*
14907 # SGI C++ compiler will create directory out/ii_files/ for
14908 # template instantiation
14909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14910 $RM out/* && rmdir out
14911 cd ..
14912 $RM -r conftest
14913 $RM conftest*
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14917 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14926 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14927 $as_echo_n "(cached) " >&6
14928 else
14929 lt_cv_prog_compiler_c_o=no
14930 $RM -r conftest 2>/dev/null
14931 mkdir conftest
14932 cd conftest
14933 mkdir out
14934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14936 lt_compiler_flag="-o out/conftest2.$ac_objext"
14937 # Insert the option either (1) after the last *FLAGS variable, or
14938 # (2) before a word containing "conftest.", or (3) at the end.
14939 # Note that $ac_compile itself does not contain backslashes and begins
14940 # with a dollar sign (not a hyphen), so the echo should work correctly.
14941 lt_compile=`echo "$ac_compile" | $SED \
14942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14944 -e 's:$: $lt_compiler_flag:'`
14945 (eval echo "\"\$as_me:14945: $lt_compile\"" >&5)
14946 (eval "$lt_compile" 2>out/conftest.err)
14947 ac_status=$?
14948 cat out/conftest.err >&5
14949 echo "$as_me:14949: \$? = $ac_status" >&5
14950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14951 then
14952 # The compiler can only warn and ignore the option if not recognized
14953 # So say no if there are warnings
14954 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14957 lt_cv_prog_compiler_c_o=yes
14960 chmod u+w . 2>&5
14961 $RM conftest*
14962 # SGI C++ compiler will create directory out/ii_files/ for
14963 # template instantiation
14964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14965 $RM out/* && rmdir out
14966 cd ..
14967 $RM -r conftest
14968 $RM conftest*
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14972 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14977 hard_links="nottested"
14978 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14979 # do not overwrite the value of need_locks provided by the user
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14981 $as_echo_n "checking if we can lock with hard links... " >&6; }
14982 hard_links=yes
14983 $RM conftest*
14984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14985 touch conftest.a
14986 ln conftest.a conftest.b 2>&5 || hard_links=no
14987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14989 $as_echo "$hard_links" >&6; }
14990 if test "$hard_links" = no; then
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14992 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14993 need_locks=warn
14995 else
14996 need_locks=no
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15005 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15007 runpath_var=
15008 allow_undefined_flag=
15009 always_export_symbols=no
15010 archive_cmds=
15011 archive_expsym_cmds=
15012 compiler_needs_object=no
15013 enable_shared_with_static_runtimes=no
15014 export_dynamic_flag_spec=
15015 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15016 hardcode_automatic=no
15017 hardcode_direct=no
15018 hardcode_direct_absolute=no
15019 hardcode_libdir_flag_spec=
15020 hardcode_libdir_flag_spec_ld=
15021 hardcode_libdir_separator=
15022 hardcode_minus_L=no
15023 hardcode_shlibpath_var=unsupported
15024 inherit_rpath=no
15025 link_all_deplibs=unknown
15026 module_cmds=
15027 module_expsym_cmds=
15028 old_archive_from_new_cmds=
15029 old_archive_from_expsyms_cmds=
15030 thread_safe_flag_spec=
15031 whole_archive_flag_spec=
15032 # include_expsyms should be a list of space-separated symbols to be *always*
15033 # included in the symbol list
15034 include_expsyms=
15035 # exclude_expsyms can be an extended regexp of symbols to exclude
15036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15038 # as well as any symbol that contains `d'.
15039 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15041 # platforms (ab)use it in PIC code, but their linkers get confused if
15042 # the symbol is explicitly referenced. Since portable code cannot
15043 # rely on this symbol name, it's probably fine to never include it in
15044 # preloaded symbol tables.
15045 # Exclude shared library initialization/finalization symbols.
15046 extract_expsyms_cmds=
15048 case $host_os in
15049 cygwin* | mingw* | pw32* | cegcc*)
15050 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15051 # When not using gcc, we currently assume that we are using
15052 # Microsoft Visual C++.
15053 if test "$GCC" != yes; then
15054 with_gnu_ld=no
15057 interix*)
15058 # we just hope/assume this is gcc and not c89 (= MSVC++)
15059 with_gnu_ld=yes
15061 openbsd*)
15062 with_gnu_ld=no
15064 esac
15066 ld_shlibs=yes
15067 if test "$with_gnu_ld" = yes; then
15068 # If archive_cmds runs LD, not CC, wlarc should be empty
15069 wlarc='${wl}'
15071 # Set some defaults for GNU ld with shared library support. These
15072 # are reset later if shared libraries are not supported. Putting them
15073 # here allows them to be overridden if necessary.
15074 runpath_var=LD_RUN_PATH
15075 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15076 export_dynamic_flag_spec='${wl}--export-dynamic'
15077 # ancient GNU ld didn't support --whole-archive et. al.
15078 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15079 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15080 else
15081 whole_archive_flag_spec=
15083 supports_anon_versioning=no
15084 case `$LD -v 2>&1` in
15085 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15086 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15087 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15088 *\ 2.11.*) ;; # other 2.11 versions
15089 *) supports_anon_versioning=yes ;;
15090 esac
15092 # See if GNU ld supports shared libraries.
15093 case $host_os in
15094 aix[3-9]*)
15095 # On AIX/PPC, the GNU linker is very broken
15096 if test "$host_cpu" != ia64; then
15097 ld_shlibs=no
15098 cat <<_LT_EOF 1>&2
15100 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15101 *** to be unable to reliably create shared libraries on AIX.
15102 *** Therefore, libtool is disabling shared libraries support. If you
15103 *** really care for shared libraries, you may want to modify your PATH
15104 *** so that a non-GNU linker is found, and then restart.
15106 _LT_EOF
15110 amigaos*)
15111 case $host_cpu in
15112 powerpc)
15113 # see comment about AmigaOS4 .so support
15114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15115 archive_expsym_cmds=''
15117 m68k)
15118 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)'
15119 hardcode_libdir_flag_spec='-L$libdir'
15120 hardcode_minus_L=yes
15122 esac
15125 beos*)
15126 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15127 allow_undefined_flag=unsupported
15128 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15129 # support --undefined. This deserves some investigation. FIXME
15130 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15131 else
15132 ld_shlibs=no
15136 cygwin* | mingw* | pw32* | cegcc*)
15137 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15138 # as there is no search path for DLLs.
15139 hardcode_libdir_flag_spec='-L$libdir'
15140 allow_undefined_flag=unsupported
15141 always_export_symbols=no
15142 enable_shared_with_static_runtimes=yes
15143 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15145 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15147 # If the export-symbols file already is a .def file (1st line
15148 # is EXPORTS), use it as is; otherwise, prepend...
15149 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15150 cp $export_symbols $output_objdir/$soname.def;
15151 else
15152 echo EXPORTS > $output_objdir/$soname.def;
15153 cat $export_symbols >> $output_objdir/$soname.def;
15155 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15156 else
15157 ld_shlibs=no
15161 interix[3-9]*)
15162 hardcode_direct=no
15163 hardcode_shlibpath_var=no
15164 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15165 export_dynamic_flag_spec='${wl}-E'
15166 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15167 # Instead, shared libraries are loaded at an image base (0x10000000 by
15168 # default) and relocated if they conflict, which is a slow very memory
15169 # consuming and fragmenting process. To avoid this, we pick a random,
15170 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15171 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15172 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15173 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'
15176 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
15177 tmp_diet=no
15178 if test "$host_os" = linux-dietlibc; then
15179 case $cc_basename in
15180 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15181 esac
15183 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15184 && test "$tmp_diet" = no
15185 then
15186 tmp_addflag=
15187 tmp_sharedflag='-shared'
15188 case $cc_basename,$host_cpu in
15189 pgcc*) # Portland Group C compiler
15190 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'
15191 tmp_addflag=' $pic_flag'
15193 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15194 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'
15195 tmp_addflag=' $pic_flag -Mnomain' ;;
15196 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15197 tmp_addflag=' -i_dynamic' ;;
15198 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15199 tmp_addflag=' -i_dynamic -nofor_main' ;;
15200 ifc* | ifort*) # Intel Fortran compiler
15201 tmp_addflag=' -nofor_main' ;;
15202 lf95*) # Lahey Fortran 8.1
15203 whole_archive_flag_spec=
15204 tmp_sharedflag='--shared' ;;
15205 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15206 tmp_sharedflag='-qmkshrobj'
15207 tmp_addflag= ;;
15208 esac
15209 case `$CC -V 2>&1 | sed 5q` in
15210 *Sun\ C*) # Sun C 5.9
15211 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'
15212 compiler_needs_object=yes
15213 tmp_sharedflag='-G' ;;
15214 *Sun\ F*) # Sun Fortran 8.3
15215 tmp_sharedflag='-G' ;;
15216 esac
15217 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15219 if test "x$supports_anon_versioning" = xyes; then
15220 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15221 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15222 echo "local: *; };" >> $output_objdir/$libname.ver~
15223 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15226 case $cc_basename in
15227 xlf*)
15228 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
15229 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
15230 hardcode_libdir_flag_spec=
15231 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15232 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
15233 if test "x$supports_anon_versioning" = xyes; then
15234 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
15235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15236 echo "local: *; };" >> $output_objdir/$libname.ver~
15237 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
15240 esac
15241 else
15242 ld_shlibs=no
15246 netbsd*)
15247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15248 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15249 wlarc=
15250 else
15251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15256 solaris*)
15257 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
15258 ld_shlibs=no
15259 cat <<_LT_EOF 1>&2
15261 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15262 *** create shared libraries on Solaris systems. Therefore, libtool
15263 *** is disabling shared libraries support. We urge you to upgrade GNU
15264 *** binutils to release 2.9.1 or newer. Another option is to modify
15265 *** your PATH or compiler configuration so that the native linker is
15266 *** used, and then restart.
15268 _LT_EOF
15269 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15272 else
15273 ld_shlibs=no
15277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15278 case `$LD -v 2>&1` in
15279 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15280 ld_shlibs=no
15281 cat <<_LT_EOF 1>&2
15283 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15284 *** reliably create shared libraries on SCO systems. Therefore, libtool
15285 *** is disabling shared libraries support. We urge you to upgrade GNU
15286 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15287 *** your PATH or compiler configuration so that the native linker is
15288 *** used, and then restart.
15290 _LT_EOF
15293 # For security reasons, it is highly recommended that you always
15294 # use absolute paths for naming shared libraries, and exclude the
15295 # DT_RUNPATH tag from executables and libraries. But doing so
15296 # requires that you compile everything twice, which is a pain.
15297 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15301 else
15302 ld_shlibs=no
15305 esac
15308 sunos4*)
15309 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15310 wlarc=
15311 hardcode_direct=yes
15312 hardcode_shlibpath_var=no
15316 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15319 else
15320 ld_shlibs=no
15323 esac
15325 if test "$ld_shlibs" = no; then
15326 runpath_var=
15327 hardcode_libdir_flag_spec=
15328 export_dynamic_flag_spec=
15329 whole_archive_flag_spec=
15331 else
15332 # PORTME fill in a description of your system's linker (not GNU ld)
15333 case $host_os in
15334 aix3*)
15335 allow_undefined_flag=unsupported
15336 always_export_symbols=yes
15337 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'
15338 # Note: this linker hardcodes the directories in LIBPATH if there
15339 # are no directories specified by -L.
15340 hardcode_minus_L=yes
15341 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15342 # Neither direct hardcoding nor static linking is supported with a
15343 # broken collect2.
15344 hardcode_direct=unsupported
15348 aix[4-9]*)
15349 if test "$host_cpu" = ia64; then
15350 # On IA64, the linker does run time linking by default, so we don't
15351 # have to do anything special.
15352 aix_use_runtimelinking=no
15353 exp_sym_flag='-Bexport'
15354 no_entry_flag=""
15355 else
15356 # If we're using GNU nm, then we don't want the "-C" option.
15357 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15358 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15359 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'
15360 else
15361 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'
15363 aix_use_runtimelinking=no
15365 # Test if we are trying to use run time linking or normal
15366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15367 # need to do runtime linking.
15368 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15369 for ld_flag in $LDFLAGS; do
15370 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15371 aix_use_runtimelinking=yes
15372 break
15374 done
15376 esac
15378 exp_sym_flag='-bexport'
15379 no_entry_flag='-bnoentry'
15382 # When large executables or shared objects are built, AIX ld can
15383 # have problems creating the table of contents. If linking a library
15384 # or program results in "error TOC overflow" add -mminimal-toc to
15385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15388 archive_cmds=''
15389 hardcode_direct=yes
15390 hardcode_direct_absolute=yes
15391 hardcode_libdir_separator=':'
15392 link_all_deplibs=yes
15393 file_list_spec='${wl}-f,'
15395 if test "$GCC" = yes; then
15396 case $host_os in aix4.[012]|aix4.[012].*)
15397 # We only want to do this on AIX 4.2 and lower, the check
15398 # below for broken collect2 doesn't work under 4.3+
15399 collect2name=`${CC} -print-prog-name=collect2`
15400 if test -f "$collect2name" &&
15401 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15402 then
15403 # We have reworked collect2
15405 else
15406 # We have old collect2
15407 hardcode_direct=unsupported
15408 # It fails to find uninstalled libraries when the uninstalled
15409 # path is not listed in the libpath. Setting hardcode_minus_L
15410 # to unsupported forces relinking
15411 hardcode_minus_L=yes
15412 hardcode_libdir_flag_spec='-L$libdir'
15413 hardcode_libdir_separator=
15416 esac
15417 shared_flag='-shared'
15418 if test "$aix_use_runtimelinking" = yes; then
15419 shared_flag="$shared_flag "'${wl}-G'
15421 else
15422 # not using gcc
15423 if test "$host_cpu" = ia64; then
15424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15425 # chokes on -Wl,-G. The following line is correct:
15426 shared_flag='-G'
15427 else
15428 if test "$aix_use_runtimelinking" = yes; then
15429 shared_flag='${wl}-G'
15430 else
15431 shared_flag='${wl}-bM:SRE'
15436 export_dynamic_flag_spec='${wl}-bexpall'
15437 # It seems that -bexpall does not export symbols beginning with
15438 # underscore (_), so it is better to generate a list of symbols to export.
15439 always_export_symbols=yes
15440 if test "$aix_use_runtimelinking" = yes; then
15441 # Warning - without using the other runtime loading flags (-brtl),
15442 # -berok will link without error, but may produce a broken library.
15443 allow_undefined_flag='-berok'
15444 # Determine the default libpath from the value encoded in an
15445 # empty executable.
15446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15447 /* end confdefs.h. */
15450 main ()
15454 return 0;
15456 _ACEOF
15457 if ac_fn_c_try_link "$LINENO"; then :
15459 lt_aix_libpath_sed='
15460 /Import File Strings/,/^$/ {
15461 /^0/ {
15462 s/^0 *\(.*\)$/\1/
15466 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15467 # Check for a 64-bit object if we didn't find anything.
15468 if test -z "$aix_libpath"; then
15469 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15472 rm -f core conftest.err conftest.$ac_objext \
15473 conftest$ac_exeext conftest.$ac_ext
15474 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15476 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15477 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"
15478 else
15479 if test "$host_cpu" = ia64; then
15480 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15481 allow_undefined_flag="-z nodefs"
15482 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"
15483 else
15484 # Determine the default libpath from the value encoded in an
15485 # empty executable.
15486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15487 /* end confdefs.h. */
15490 main ()
15494 return 0;
15496 _ACEOF
15497 if ac_fn_c_try_link "$LINENO"; then :
15499 lt_aix_libpath_sed='
15500 /Import File Strings/,/^$/ {
15501 /^0/ {
15502 s/^0 *\(.*\)$/\1/
15506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15507 # Check for a 64-bit object if we didn't find anything.
15508 if test -z "$aix_libpath"; then
15509 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15512 rm -f core conftest.err conftest.$ac_objext \
15513 conftest$ac_exeext conftest.$ac_ext
15514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15516 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15517 # Warning - without using the other run time loading flags,
15518 # -berok will link without error, but may produce a broken library.
15519 no_undefined_flag=' ${wl}-bernotok'
15520 allow_undefined_flag=' ${wl}-berok'
15521 # Exported symbols can be pulled into shared objects from archives
15522 whole_archive_flag_spec='$convenience'
15523 archive_cmds_need_lc=yes
15524 # This is similar to how AIX traditionally builds its shared libraries.
15525 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'
15530 amigaos*)
15531 case $host_cpu in
15532 powerpc)
15533 # see comment about AmigaOS4 .so support
15534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15535 archive_expsym_cmds=''
15537 m68k)
15538 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)'
15539 hardcode_libdir_flag_spec='-L$libdir'
15540 hardcode_minus_L=yes
15542 esac
15545 bsdi[45]*)
15546 export_dynamic_flag_spec=-rdynamic
15549 cygwin* | mingw* | pw32* | cegcc*)
15550 # When not using gcc, we currently assume that we are using
15551 # Microsoft Visual C++.
15552 # hardcode_libdir_flag_spec is actually meaningless, as there is
15553 # no search path for DLLs.
15554 hardcode_libdir_flag_spec=' '
15555 allow_undefined_flag=unsupported
15556 # Tell ltmain to make .lib files, not .a files.
15557 libext=lib
15558 # Tell ltmain to make .dll files, not .so files.
15559 shrext_cmds=".dll"
15560 # FIXME: Setting linknames here is a bad hack.
15561 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15562 # The linker will automatically build a .lib file if we build a DLL.
15563 old_archive_from_new_cmds='true'
15564 # FIXME: Should let the user specify the lib program.
15565 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15566 fix_srcfile_path='`cygpath -w "$srcfile"`'
15567 enable_shared_with_static_runtimes=yes
15570 darwin* | rhapsody*)
15573 archive_cmds_need_lc=no
15574 hardcode_direct=no
15575 hardcode_automatic=yes
15576 hardcode_shlibpath_var=unsupported
15577 whole_archive_flag_spec=''
15578 link_all_deplibs=yes
15579 allow_undefined_flag="$_lt_dar_allow_undefined"
15580 case $cc_basename in
15581 ifort*) _lt_dar_can_shared=yes ;;
15582 *) _lt_dar_can_shared=$GCC ;;
15583 esac
15584 if test "$_lt_dar_can_shared" = "yes"; then
15585 output_verbose_link_cmd=echo
15586 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15587 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15588 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}"
15589 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}"
15591 else
15592 ld_shlibs=no
15597 dgux*)
15598 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15599 hardcode_libdir_flag_spec='-L$libdir'
15600 hardcode_shlibpath_var=no
15603 freebsd1*)
15604 ld_shlibs=no
15607 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15608 # support. Future versions do this automatically, but an explicit c++rt0.o
15609 # does not break anything, and helps significantly (at the cost of a little
15610 # extra space).
15611 freebsd2.2*)
15612 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15613 hardcode_libdir_flag_spec='-R$libdir'
15614 hardcode_direct=yes
15615 hardcode_shlibpath_var=no
15618 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15619 freebsd2*)
15620 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15621 hardcode_direct=yes
15622 hardcode_minus_L=yes
15623 hardcode_shlibpath_var=no
15626 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15627 freebsd* | dragonfly*)
15628 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15629 hardcode_libdir_flag_spec='-R$libdir'
15630 hardcode_direct=yes
15631 hardcode_shlibpath_var=no
15634 hpux9*)
15635 if test "$GCC" = yes; then
15636 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'
15637 else
15638 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'
15640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15641 hardcode_libdir_separator=:
15642 hardcode_direct=yes
15644 # hardcode_minus_L: Not really in the search PATH,
15645 # but as the default location of the library.
15646 hardcode_minus_L=yes
15647 export_dynamic_flag_spec='${wl}-E'
15650 hpux10*)
15651 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15652 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15653 else
15654 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15656 if test "$with_gnu_ld" = no; then
15657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15658 hardcode_libdir_flag_spec_ld='+b $libdir'
15659 hardcode_libdir_separator=:
15660 hardcode_direct=yes
15661 hardcode_direct_absolute=yes
15662 export_dynamic_flag_spec='${wl}-E'
15663 # hardcode_minus_L: Not really in the search PATH,
15664 # but as the default location of the library.
15665 hardcode_minus_L=yes
15669 hpux11*)
15670 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15671 case $host_cpu in
15672 hppa*64*)
15673 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15675 ia64*)
15676 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15679 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15681 esac
15682 else
15683 case $host_cpu in
15684 hppa*64*)
15685 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 ia64*)
15688 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15691 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15693 esac
15695 if test "$with_gnu_ld" = no; then
15696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15697 hardcode_libdir_separator=:
15699 case $host_cpu in
15700 hppa*64*|ia64*)
15701 hardcode_direct=no
15702 hardcode_shlibpath_var=no
15705 hardcode_direct=yes
15706 hardcode_direct_absolute=yes
15707 export_dynamic_flag_spec='${wl}-E'
15709 # hardcode_minus_L: Not really in the search PATH,
15710 # but as the default location of the library.
15711 hardcode_minus_L=yes
15713 esac
15717 irix5* | irix6* | nonstopux*)
15718 if test "$GCC" = yes; then
15719 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'
15720 # Try to use the -exported_symbol ld option, if it does not
15721 # work, assume that -exports_file does not work either and
15722 # implicitly export all symbols.
15723 save_LDFLAGS="$LDFLAGS"
15724 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15726 /* end confdefs.h. */
15727 int foo(void) {}
15728 _ACEOF
15729 if ac_fn_c_try_link "$LINENO"; then :
15730 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'
15733 rm -f core conftest.err conftest.$ac_objext \
15734 conftest$ac_exeext conftest.$ac_ext
15735 LDFLAGS="$save_LDFLAGS"
15736 else
15737 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'
15738 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'
15740 archive_cmds_need_lc='no'
15741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15742 hardcode_libdir_separator=:
15743 inherit_rpath=yes
15744 link_all_deplibs=yes
15747 netbsd*)
15748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15750 else
15751 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15753 hardcode_libdir_flag_spec='-R$libdir'
15754 hardcode_direct=yes
15755 hardcode_shlibpath_var=no
15758 newsos6)
15759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15760 hardcode_direct=yes
15761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15762 hardcode_libdir_separator=:
15763 hardcode_shlibpath_var=no
15766 *nto* | *qnx*)
15769 openbsd*)
15770 if test -f /usr/libexec/ld.so; then
15771 hardcode_direct=yes
15772 hardcode_shlibpath_var=no
15773 hardcode_direct_absolute=yes
15774 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15776 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15777 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15778 export_dynamic_flag_spec='${wl}-E'
15779 else
15780 case $host_os in
15781 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15783 hardcode_libdir_flag_spec='-R$libdir'
15786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15789 esac
15791 else
15792 ld_shlibs=no
15796 os2*)
15797 hardcode_libdir_flag_spec='-L$libdir'
15798 hardcode_minus_L=yes
15799 allow_undefined_flag=unsupported
15800 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'
15801 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15804 osf3*)
15805 if test "$GCC" = yes; then
15806 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15807 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'
15808 else
15809 allow_undefined_flag=' -expect_unresolved \*'
15810 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'
15812 archive_cmds_need_lc='no'
15813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15814 hardcode_libdir_separator=:
15817 osf4* | osf5*) # as osf3* with the addition of -msym flag
15818 if test "$GCC" = yes; then
15819 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15820 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'
15821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15822 else
15823 allow_undefined_flag=' -expect_unresolved \*'
15824 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'
15825 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~
15826 $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'
15828 # Both c and cxx compiler support -rpath directly
15829 hardcode_libdir_flag_spec='-rpath $libdir'
15831 archive_cmds_need_lc='no'
15832 hardcode_libdir_separator=:
15835 solaris*)
15836 no_undefined_flag=' -z defs'
15837 if test "$GCC" = yes; then
15838 wlarc='${wl}'
15839 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15840 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15841 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15842 else
15843 case `$CC -V 2>&1` in
15844 *"Compilers 5.0"*)
15845 wlarc=''
15846 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15847 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15848 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15851 wlarc='${wl}'
15852 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15854 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15856 esac
15858 hardcode_libdir_flag_spec='-R$libdir'
15859 hardcode_shlibpath_var=no
15860 case $host_os in
15861 solaris2.[0-5] | solaris2.[0-5].*) ;;
15863 # The compiler driver will combine and reorder linker options,
15864 # but understands `-z linker_flag'. GCC discards it without `$wl',
15865 # but is careful enough not to reorder.
15866 # Supported since Solaris 2.6 (maybe 2.5.1?)
15867 if test "$GCC" = yes; then
15868 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15869 else
15870 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15873 esac
15874 link_all_deplibs=yes
15877 sunos4*)
15878 if test "x$host_vendor" = xsequent; then
15879 # Use $CC to link under sequent, because it throws in some extra .o
15880 # files that make .init and .fini sections work.
15881 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15882 else
15883 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15885 hardcode_libdir_flag_spec='-L$libdir'
15886 hardcode_direct=yes
15887 hardcode_minus_L=yes
15888 hardcode_shlibpath_var=no
15891 sysv4)
15892 case $host_vendor in
15893 sni)
15894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15895 hardcode_direct=yes # is this really true???
15897 siemens)
15898 ## LD is ld it makes a PLAMLIB
15899 ## CC just makes a GrossModule.
15900 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15901 reload_cmds='$CC -r -o $output$reload_objs'
15902 hardcode_direct=no
15904 motorola)
15905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15906 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15908 esac
15909 runpath_var='LD_RUN_PATH'
15910 hardcode_shlibpath_var=no
15913 sysv4.3*)
15914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15915 hardcode_shlibpath_var=no
15916 export_dynamic_flag_spec='-Bexport'
15919 sysv4*MP*)
15920 if test -d /usr/nec; then
15921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15922 hardcode_shlibpath_var=no
15923 runpath_var=LD_RUN_PATH
15924 hardcode_runpath_var=yes
15925 ld_shlibs=yes
15929 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15930 no_undefined_flag='${wl}-z,text'
15931 archive_cmds_need_lc=no
15932 hardcode_shlibpath_var=no
15933 runpath_var='LD_RUN_PATH'
15935 if test "$GCC" = yes; then
15936 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15937 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 else
15939 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15940 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15944 sysv5* | sco3.2v5* | sco5v6*)
15945 # Note: We can NOT use -z defs as we might desire, because we do not
15946 # link with -lc, and that would cause any symbols used from libc to
15947 # always be unresolved, which means just about no library would
15948 # ever link correctly. If we're not using GNU ld we use -z text
15949 # though, which does catch some bad symbols but isn't as heavy-handed
15950 # as -z defs.
15951 no_undefined_flag='${wl}-z,text'
15952 allow_undefined_flag='${wl}-z,nodefs'
15953 archive_cmds_need_lc=no
15954 hardcode_shlibpath_var=no
15955 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15956 hardcode_libdir_separator=':'
15957 link_all_deplibs=yes
15958 export_dynamic_flag_spec='${wl}-Bexport'
15959 runpath_var='LD_RUN_PATH'
15961 if test "$GCC" = yes; then
15962 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15963 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15964 else
15965 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15966 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15970 uts4*)
15971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15972 hardcode_libdir_flag_spec='-L$libdir'
15973 hardcode_shlibpath_var=no
15977 ld_shlibs=no
15979 esac
15981 if test x$host_vendor = xsni; then
15982 case $host in
15983 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15984 export_dynamic_flag_spec='${wl}-Blargedynsym'
15986 esac
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15991 $as_echo "$ld_shlibs" >&6; }
15992 test "$ld_shlibs" = no && can_build_shared=no
15994 with_gnu_ld=$with_gnu_ld
16011 # Do we need to explicitly link libc?
16013 case "x$archive_cmds_need_lc" in
16014 x|xyes)
16015 # Assume -lc should be added
16016 archive_cmds_need_lc=yes
16018 if test "$enable_shared" = yes && test "$GCC" = yes; then
16019 case $archive_cmds in
16020 *'~'*)
16021 # FIXME: we may have to deal with multi-command sequences.
16023 '$CC '*)
16024 # Test whether the compiler implicitly links with -lc since on some
16025 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16026 # to ld, don't add -lc before -lgcc.
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16028 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16029 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
16030 $as_echo_n "(cached) " >&6
16031 else
16032 $RM conftest*
16033 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16035 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16036 (eval $ac_compile) 2>&5
16037 ac_status=$?
16038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16039 test $ac_status = 0; } 2>conftest.err; then
16040 soname=conftest
16041 lib=conftest
16042 libobjs=conftest.$ac_objext
16043 deplibs=
16044 wl=$lt_prog_compiler_wl
16045 pic_flag=$lt_prog_compiler_pic
16046 compiler_flags=-v
16047 linker_flags=-v
16048 verstring=
16049 output_objdir=.
16050 libname=conftest
16051 lt_save_allow_undefined_flag=$allow_undefined_flag
16052 allow_undefined_flag=
16053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16054 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16055 ac_status=$?
16056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16057 test $ac_status = 0; }
16058 then
16059 lt_cv_archive_cmds_need_lc=no
16060 else
16061 lt_cv_archive_cmds_need_lc=yes
16063 allow_undefined_flag=$lt_save_allow_undefined_flag
16064 else
16065 cat conftest.err 1>&5
16067 $RM conftest*
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
16071 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
16072 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
16074 esac
16077 esac
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16236 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16238 if test "$GCC" = yes; then
16239 case $host_os in
16240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
16241 *) lt_awk_arg="/^libraries:/" ;;
16242 esac
16243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16244 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
16245 # if the path contains ";" then we assume it to be the separator
16246 # otherwise default to the standard path separator (i.e. ":") - it is
16247 # assumed that no part of a normal pathname contains ";" but that should
16248 # okay in the real world where ";" in dirpaths is itself problematic.
16249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
16250 else
16251 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16253 # Ok, now we have the path, separated by spaces, we can step through it
16254 # and add multilib dir if necessary.
16255 lt_tmp_lt_search_path_spec=
16256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16257 for lt_sys_path in $lt_search_path_spec; do
16258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16260 else
16261 test -d "$lt_sys_path" && \
16262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16264 done
16265 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
16266 BEGIN {RS=" "; FS="/|\n";} {
16267 lt_foo="";
16268 lt_count=0;
16269 for (lt_i = NF; lt_i > 0; lt_i--) {
16270 if ($lt_i != "" && $lt_i != ".") {
16271 if ($lt_i == "..") {
16272 lt_count++;
16273 } else {
16274 if (lt_count == 0) {
16275 lt_foo="/" $lt_i lt_foo;
16276 } else {
16277 lt_count--;
16282 if (lt_foo != "") { lt_freq[lt_foo]++; }
16283 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16285 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
16286 else
16287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16289 library_names_spec=
16290 libname_spec='lib$name'
16291 soname_spec=
16292 shrext_cmds=".so"
16293 postinstall_cmds=
16294 postuninstall_cmds=
16295 finish_cmds=
16296 finish_eval=
16297 shlibpath_var=
16298 shlibpath_overrides_runpath=unknown
16299 version_type=none
16300 dynamic_linker="$host_os ld.so"
16301 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16302 need_lib_prefix=unknown
16303 hardcode_into_libs=no
16305 # when you set need_version to no, make sure it does not cause -set_version
16306 # flags to be left without arguments
16307 need_version=unknown
16309 case $host_os in
16310 aix3*)
16311 version_type=linux
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16313 shlibpath_var=LIBPATH
16315 # AIX 3 has no versioning support, so we append a major version to the name.
16316 soname_spec='${libname}${release}${shared_ext}$major'
16319 aix[4-9]*)
16320 version_type=linux
16321 need_lib_prefix=no
16322 need_version=no
16323 hardcode_into_libs=yes
16324 if test "$host_cpu" = ia64; then
16325 # AIX 5 supports IA64
16326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16327 shlibpath_var=LD_LIBRARY_PATH
16328 else
16329 # With GCC up to 2.95.x, collect2 would create an import file
16330 # for dependence libraries. The import file would start with
16331 # the line `#! .'. This would cause the generated library to
16332 # depend on `.', always an invalid library. This was fixed in
16333 # development snapshots of GCC prior to 3.0.
16334 case $host_os in
16335 aix4 | aix4.[01] | aix4.[01].*)
16336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16337 echo ' yes '
16338 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16340 else
16341 can_build_shared=no
16344 esac
16345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16346 # soname into executable. Probably we can add versioning support to
16347 # collect2, so additional links can be useful in future.
16348 if test "$aix_use_runtimelinking" = yes; then
16349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16350 # instead of lib<name>.a to let people know that these are not
16351 # typical AIX shared libraries.
16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16353 else
16354 # We preserve .a as extension for shared libraries through AIX4.2
16355 # and later when we are not doing run time linking.
16356 library_names_spec='${libname}${release}.a $libname.a'
16357 soname_spec='${libname}${release}${shared_ext}$major'
16359 shlibpath_var=LIBPATH
16363 amigaos*)
16364 case $host_cpu in
16365 powerpc)
16366 # Since July 2007 AmigaOS4 officially supports .so libraries.
16367 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370 m68k)
16371 library_names_spec='$libname.ixlibrary $libname.a'
16372 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16373 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'
16375 esac
16378 beos*)
16379 library_names_spec='${libname}${shared_ext}'
16380 dynamic_linker="$host_os ld.so"
16381 shlibpath_var=LIBRARY_PATH
16384 bsdi[45]*)
16385 version_type=linux
16386 need_version=no
16387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388 soname_spec='${libname}${release}${shared_ext}$major'
16389 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16390 shlibpath_var=LD_LIBRARY_PATH
16391 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16392 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16393 # the default ld.so.conf also contains /usr/contrib/lib and
16394 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16395 # libtool to hard-code these into programs
16398 cygwin* | mingw* | pw32* | cegcc*)
16399 version_type=windows
16400 shrext_cmds=".dll"
16401 need_version=no
16402 need_lib_prefix=no
16404 case $GCC,$host_os in
16405 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16406 library_names_spec='$libname.dll.a'
16407 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16408 postinstall_cmds='base_file=`basename \${file}`~
16409 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16410 dldir=$destdir/`dirname \$dlpath`~
16411 test -d \$dldir || mkdir -p \$dldir~
16412 $install_prog $dir/$dlname \$dldir/$dlname~
16413 chmod a+x \$dldir/$dlname~
16414 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16415 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16417 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16418 dlpath=$dir/\$dldll~
16419 $RM \$dlpath'
16420 shlibpath_overrides_runpath=yes
16422 case $host_os in
16423 cygwin*)
16424 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16425 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16426 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16428 mingw* | cegcc*)
16429 # MinGW DLLs use traditional 'lib' prefix
16430 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16431 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16432 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16433 # It is most probably a Windows format PATH printed by
16434 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16435 # path with ; separators, and with drive letters. We can handle the
16436 # drive letters (cygwin fileutils understands them), so leave them,
16437 # especially as we might pass files found there to a mingw objdump,
16438 # which wouldn't understand a cygwinified path. Ahh.
16439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16440 else
16441 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16444 pw32*)
16445 # pw32 DLLs use 'pw' prefix rather than 'lib'
16446 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16448 esac
16452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16454 esac
16455 dynamic_linker='Win32 ld.exe'
16456 # FIXME: first we should search . and the directory the executable is in
16457 shlibpath_var=PATH
16460 darwin* | rhapsody*)
16461 dynamic_linker="$host_os dyld"
16462 version_type=darwin
16463 need_lib_prefix=no
16464 need_version=no
16465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16466 soname_spec='${libname}${release}${major}$shared_ext'
16467 shlibpath_overrides_runpath=yes
16468 shlibpath_var=DYLD_LIBRARY_PATH
16469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16475 dgux*)
16476 version_type=linux
16477 need_lib_prefix=no
16478 need_version=no
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 shlibpath_var=LD_LIBRARY_PATH
16484 freebsd1*)
16485 dynamic_linker=no
16488 freebsd* | dragonfly*)
16489 # DragonFly does not have aout. When/if they implement a new
16490 # versioning mechanism, adjust this.
16491 if test -x /usr/bin/objformat; then
16492 objformat=`/usr/bin/objformat`
16493 else
16494 case $host_os in
16495 freebsd[123]*) objformat=aout ;;
16496 *) objformat=elf ;;
16497 esac
16499 version_type=freebsd-$objformat
16500 case $version_type in
16501 freebsd-elf*)
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16503 need_version=no
16504 need_lib_prefix=no
16506 freebsd-*)
16507 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16508 need_version=yes
16510 esac
16511 shlibpath_var=LD_LIBRARY_PATH
16512 case $host_os in
16513 freebsd2*)
16514 shlibpath_overrides_runpath=yes
16516 freebsd3.[01]* | freebsdelf3.[01]*)
16517 shlibpath_overrides_runpath=yes
16518 hardcode_into_libs=yes
16520 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16521 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16522 shlibpath_overrides_runpath=no
16523 hardcode_into_libs=yes
16525 *) # from 4.6 on, and DragonFly
16526 shlibpath_overrides_runpath=yes
16527 hardcode_into_libs=yes
16529 esac
16532 gnu*)
16533 version_type=linux
16534 need_lib_prefix=no
16535 need_version=no
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 hardcode_into_libs=yes
16542 hpux9* | hpux10* | hpux11*)
16543 # Give a soname corresponding to the major version so that dld.sl refuses to
16544 # link against other versions.
16545 version_type=sunos
16546 need_lib_prefix=no
16547 need_version=no
16548 case $host_cpu in
16549 ia64*)
16550 shrext_cmds='.so'
16551 hardcode_into_libs=yes
16552 dynamic_linker="$host_os dld.so"
16553 shlibpath_var=LD_LIBRARY_PATH
16554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 if test "X$HPUX_IA64_MODE" = X32; then
16558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16559 else
16560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16564 hppa*64*)
16565 shrext_cmds='.sl'
16566 hardcode_into_libs=yes
16567 dynamic_linker="$host_os dld.sl"
16568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571 soname_spec='${libname}${release}${shared_ext}$major'
16572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16576 shrext_cmds='.sl'
16577 dynamic_linker="$host_os dld.sl"
16578 shlibpath_var=SHLIB_PATH
16579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16583 esac
16584 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16585 postinstall_cmds='chmod 555 $lib'
16588 interix[3-9]*)
16589 version_type=linux
16590 need_lib_prefix=no
16591 need_version=no
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16593 soname_spec='${libname}${release}${shared_ext}$major'
16594 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16595 shlibpath_var=LD_LIBRARY_PATH
16596 shlibpath_overrides_runpath=no
16597 hardcode_into_libs=yes
16600 irix5* | irix6* | nonstopux*)
16601 case $host_os in
16602 nonstopux*) version_type=nonstopux ;;
16604 if test "$lt_cv_prog_gnu_ld" = yes; then
16605 version_type=linux
16606 else
16607 version_type=irix
16608 fi ;;
16609 esac
16610 need_lib_prefix=no
16611 need_version=no
16612 soname_spec='${libname}${release}${shared_ext}$major'
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16614 case $host_os in
16615 irix5* | nonstopux*)
16616 libsuff= shlibsuff=
16619 case $LD in # libtool.m4 will add one of these switches to LD
16620 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16621 libsuff= shlibsuff= libmagic=32-bit;;
16622 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16623 libsuff=32 shlibsuff=N32 libmagic=N32;;
16624 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16625 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16626 *) libsuff= shlibsuff= libmagic=never-match;;
16627 esac
16629 esac
16630 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16631 shlibpath_overrides_runpath=no
16632 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16633 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16634 hardcode_into_libs=yes
16637 # No shared lib support for Linux oldld, aout, or coff.
16638 linux*oldld* | linux*aout* | linux*coff*)
16639 dynamic_linker=no
16642 # This must be Linux ELF.
16643 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16644 version_type=linux
16645 need_lib_prefix=no
16646 need_version=no
16647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16648 soname_spec='${libname}${release}${shared_ext}$major'
16649 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16650 shlibpath_var=LD_LIBRARY_PATH
16651 shlibpath_overrides_runpath=no
16653 # Some binutils ld are patched to set DT_RUNPATH
16654 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16655 $as_echo_n "(cached) " >&6
16656 else
16657 lt_cv_shlibpath_overrides_runpath=no
16658 save_LDFLAGS=$LDFLAGS
16659 save_libdir=$libdir
16660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16666 main ()
16670 return 0;
16672 _ACEOF
16673 if ac_fn_c_try_link "$LINENO"; then :
16674 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16675 lt_cv_shlibpath_overrides_runpath=yes
16678 rm -f core conftest.err conftest.$ac_objext \
16679 conftest$ac_exeext conftest.$ac_ext
16680 LDFLAGS=$save_LDFLAGS
16681 libdir=$save_libdir
16685 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16687 # This implies no fast_install, which is unacceptable.
16688 # Some rework will be needed to allow for fast_install
16689 # before this can be enabled.
16690 hardcode_into_libs=yes
16692 # Append ld.so.conf contents to the search path
16693 if test -f /etc/ld.so.conf; then
16694 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' ' '`
16695 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16698 # We used to test for /lib/ld.so.1 and disable shared libraries on
16699 # powerpc, because MkLinux only supported shared libraries with the
16700 # GNU dynamic linker. Since this was broken with cross compilers,
16701 # most powerpc-linux boxes support dynamic linking these days and
16702 # people can always --disable-shared, the test was removed, and we
16703 # assume the GNU/Linux dynamic linker is in use.
16704 dynamic_linker='GNU/Linux ld.so'
16707 netbsd*)
16708 version_type=sunos
16709 need_lib_prefix=no
16710 need_version=no
16711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16714 dynamic_linker='NetBSD (a.out) ld.so'
16715 else
16716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 dynamic_linker='NetBSD ld.elf_so'
16720 shlibpath_var=LD_LIBRARY_PATH
16721 shlibpath_overrides_runpath=yes
16722 hardcode_into_libs=yes
16725 newsos6)
16726 version_type=linux
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16728 shlibpath_var=LD_LIBRARY_PATH
16729 shlibpath_overrides_runpath=yes
16732 *nto* | *qnx*)
16733 version_type=qnx
16734 need_lib_prefix=no
16735 need_version=no
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 shlibpath_var=LD_LIBRARY_PATH
16739 shlibpath_overrides_runpath=no
16740 hardcode_into_libs=yes
16741 dynamic_linker='ldqnx.so'
16744 openbsd*)
16745 version_type=sunos
16746 sys_lib_dlsearch_path_spec="/usr/lib"
16747 need_lib_prefix=no
16748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16749 case $host_os in
16750 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16751 *) need_version=no ;;
16752 esac
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16757 case $host_os in
16758 openbsd2.[89] | openbsd2.[89].*)
16759 shlibpath_overrides_runpath=no
16762 shlibpath_overrides_runpath=yes
16764 esac
16765 else
16766 shlibpath_overrides_runpath=yes
16770 os2*)
16771 libname_spec='$name'
16772 shrext_cmds=".dll"
16773 need_lib_prefix=no
16774 library_names_spec='$libname${shared_ext} $libname.a'
16775 dynamic_linker='OS/2 ld.exe'
16776 shlibpath_var=LIBPATH
16779 osf3* | osf4* | osf5*)
16780 version_type=osf
16781 need_lib_prefix=no
16782 need_version=no
16783 soname_spec='${libname}${release}${shared_ext}$major'
16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16785 shlibpath_var=LD_LIBRARY_PATH
16786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16790 rdos*)
16791 dynamic_linker=no
16794 solaris*)
16795 version_type=linux
16796 need_lib_prefix=no
16797 need_version=no
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 shlibpath_var=LD_LIBRARY_PATH
16801 shlibpath_overrides_runpath=yes
16802 hardcode_into_libs=yes
16803 # ldd complains unless libraries are executable
16804 postinstall_cmds='chmod +x $lib'
16807 sunos4*)
16808 version_type=sunos
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16810 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 shlibpath_overrides_runpath=yes
16813 if test "$with_gnu_ld" = yes; then
16814 need_lib_prefix=no
16816 need_version=yes
16819 sysv4 | sysv4.3*)
16820 version_type=linux
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822 soname_spec='${libname}${release}${shared_ext}$major'
16823 shlibpath_var=LD_LIBRARY_PATH
16824 case $host_vendor in
16825 sni)
16826 shlibpath_overrides_runpath=no
16827 need_lib_prefix=no
16828 runpath_var=LD_RUN_PATH
16830 siemens)
16831 need_lib_prefix=no
16833 motorola)
16834 need_lib_prefix=no
16835 need_version=no
16836 shlibpath_overrides_runpath=no
16837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16839 esac
16842 sysv4*MP*)
16843 if test -d /usr/nec ;then
16844 version_type=linux
16845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16846 soname_spec='$libname${shared_ext}.$major'
16847 shlibpath_var=LD_LIBRARY_PATH
16851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16852 version_type=freebsd-elf
16853 need_lib_prefix=no
16854 need_version=no
16855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16856 soname_spec='${libname}${release}${shared_ext}$major'
16857 shlibpath_var=LD_LIBRARY_PATH
16858 shlibpath_overrides_runpath=yes
16859 hardcode_into_libs=yes
16860 if test "$with_gnu_ld" = yes; then
16861 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16862 else
16863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16864 case $host_os in
16865 sco3.2v5*)
16866 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16868 esac
16870 sys_lib_dlsearch_path_spec='/usr/lib'
16873 tpf*)
16874 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16875 version_type=linux
16876 need_lib_prefix=no
16877 need_version=no
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16879 shlibpath_var=LD_LIBRARY_PATH
16880 shlibpath_overrides_runpath=no
16881 hardcode_into_libs=yes
16884 uts4*)
16885 version_type=linux
16886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 shlibpath_var=LD_LIBRARY_PATH
16892 dynamic_linker=no
16894 esac
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16896 $as_echo "$dynamic_linker" >&6; }
16897 test "$dynamic_linker" = no && can_build_shared=no
16899 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16900 if test "$GCC" = yes; then
16901 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16904 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16905 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16907 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16908 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16998 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16999 hardcode_action=
17000 if test -n "$hardcode_libdir_flag_spec" ||
17001 test -n "$runpath_var" ||
17002 test "X$hardcode_automatic" = "Xyes" ; then
17004 # We can hardcode non-existent directories.
17005 if test "$hardcode_direct" != no &&
17006 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17007 # have to relink, otherwise we might link with an installed library
17008 # when we should be linking with a yet-to-be-installed one
17009 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17010 test "$hardcode_minus_L" != no; then
17011 # Linking always hardcodes the temporary library directory.
17012 hardcode_action=relink
17013 else
17014 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17015 hardcode_action=immediate
17017 else
17018 # We cannot hardcode anything, or else we can only hardcode existing
17019 # directories.
17020 hardcode_action=unsupported
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17023 $as_echo "$hardcode_action" >&6; }
17025 if test "$hardcode_action" = relink ||
17026 test "$inherit_rpath" = yes; then
17027 # Fast installation is not supported
17028 enable_fast_install=no
17029 elif test "$shlibpath_overrides_runpath" = yes ||
17030 test "$enable_shared" = no; then
17031 # Fast installation is not necessary
17032 enable_fast_install=needless
17040 if test "x$enable_dlopen" != xyes; then
17041 enable_dlopen=unknown
17042 enable_dlopen_self=unknown
17043 enable_dlopen_self_static=unknown
17044 else
17045 lt_cv_dlopen=no
17046 lt_cv_dlopen_libs=
17048 case $host_os in
17049 beos*)
17050 lt_cv_dlopen="load_add_on"
17051 lt_cv_dlopen_libs=
17052 lt_cv_dlopen_self=yes
17055 mingw* | pw32* | cegcc*)
17056 lt_cv_dlopen="LoadLibrary"
17057 lt_cv_dlopen_libs=
17060 cygwin*)
17061 lt_cv_dlopen="dlopen"
17062 lt_cv_dlopen_libs=
17065 darwin*)
17066 # if libdl is installed we need to link against it
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17068 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17069 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17070 $as_echo_n "(cached) " >&6
17071 else
17072 ac_check_lib_save_LIBS=$LIBS
17073 LIBS="-ldl $LIBS"
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17080 #ifdef __cplusplus
17081 extern "C"
17082 #endif
17083 char dlopen ();
17085 main ()
17087 return dlopen ();
17089 return 0;
17091 _ACEOF
17092 if ac_fn_c_try_link "$LINENO"; then :
17093 ac_cv_lib_dl_dlopen=yes
17094 else
17095 ac_cv_lib_dl_dlopen=no
17097 rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17102 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17103 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17104 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17105 else
17107 lt_cv_dlopen="dyld"
17108 lt_cv_dlopen_libs=
17109 lt_cv_dlopen_self=yes
17116 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17117 if test "x$ac_cv_func_shl_load" = x""yes; then :
17118 lt_cv_dlopen="shl_load"
17119 else
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17121 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17122 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17123 $as_echo_n "(cached) " >&6
17124 else
17125 ac_check_lib_save_LIBS=$LIBS
17126 LIBS="-ldld $LIBS"
17127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17128 /* end confdefs.h. */
17130 /* Override any GCC internal prototype to avoid an error.
17131 Use char because int might match the return type of a GCC
17132 builtin and then its argument prototype would still apply. */
17133 #ifdef __cplusplus
17134 extern "C"
17135 #endif
17136 char shl_load ();
17138 main ()
17140 return shl_load ();
17142 return 0;
17144 _ACEOF
17145 if ac_fn_c_try_link "$LINENO"; then :
17146 ac_cv_lib_dld_shl_load=yes
17147 else
17148 ac_cv_lib_dld_shl_load=no
17150 rm -f core conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
17152 LIBS=$ac_check_lib_save_LIBS
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17155 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17156 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17157 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17158 else
17159 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17160 if test "x$ac_cv_func_dlopen" = x""yes; then :
17161 lt_cv_dlopen="dlopen"
17162 else
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17164 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17165 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17166 $as_echo_n "(cached) " >&6
17167 else
17168 ac_check_lib_save_LIBS=$LIBS
17169 LIBS="-ldl $LIBS"
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17173 /* Override any GCC internal prototype to avoid an error.
17174 Use char because int might match the return type of a GCC
17175 builtin and then its argument prototype would still apply. */
17176 #ifdef __cplusplus
17177 extern "C"
17178 #endif
17179 char dlopen ();
17181 main ()
17183 return dlopen ();
17185 return 0;
17187 _ACEOF
17188 if ac_fn_c_try_link "$LINENO"; then :
17189 ac_cv_lib_dl_dlopen=yes
17190 else
17191 ac_cv_lib_dl_dlopen=no
17193 rm -f core conftest.err conftest.$ac_objext \
17194 conftest$ac_exeext conftest.$ac_ext
17195 LIBS=$ac_check_lib_save_LIBS
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17198 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17199 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17200 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17201 else
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17203 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17204 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17205 $as_echo_n "(cached) " >&6
17206 else
17207 ac_check_lib_save_LIBS=$LIBS
17208 LIBS="-lsvld $LIBS"
17209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17210 /* end confdefs.h. */
17212 /* Override any GCC internal prototype to avoid an error.
17213 Use char because int might match the return type of a GCC
17214 builtin and then its argument prototype would still apply. */
17215 #ifdef __cplusplus
17216 extern "C"
17217 #endif
17218 char dlopen ();
17220 main ()
17222 return dlopen ();
17224 return 0;
17226 _ACEOF
17227 if ac_fn_c_try_link "$LINENO"; then :
17228 ac_cv_lib_svld_dlopen=yes
17229 else
17230 ac_cv_lib_svld_dlopen=no
17232 rm -f core conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17234 LIBS=$ac_check_lib_save_LIBS
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17237 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17238 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17240 else
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17242 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17243 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17244 $as_echo_n "(cached) " >&6
17245 else
17246 ac_check_lib_save_LIBS=$LIBS
17247 LIBS="-ldld $LIBS"
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 char dld_link ();
17259 main ()
17261 return dld_link ();
17263 return 0;
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 ac_cv_lib_dld_dld_link=yes
17268 else
17269 ac_cv_lib_dld_dld_link=no
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17276 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17277 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17278 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17297 esac
17299 if test "x$lt_cv_dlopen" != xno; then
17300 enable_dlopen=yes
17301 else
17302 enable_dlopen=no
17305 case $lt_cv_dlopen in
17306 dlopen)
17307 save_CPPFLAGS="$CPPFLAGS"
17308 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17310 save_LDFLAGS="$LDFLAGS"
17311 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17313 save_LIBS="$LIBS"
17314 LIBS="$lt_cv_dlopen_libs $LIBS"
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17317 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
17318 if test "${lt_cv_dlopen_self+set}" = set; then :
17319 $as_echo_n "(cached) " >&6
17320 else
17321 if test "$cross_compiling" = yes; then :
17322 lt_cv_dlopen_self=cross
17323 else
17324 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17325 lt_status=$lt_dlunknown
17326 cat > conftest.$ac_ext <<_LT_EOF
17327 #line 17327 "configure"
17328 #include "confdefs.h"
17330 #if HAVE_DLFCN_H
17331 #include <dlfcn.h>
17332 #endif
17334 #include <stdio.h>
17336 #ifdef RTLD_GLOBAL
17337 # define LT_DLGLOBAL RTLD_GLOBAL
17338 #else
17339 # ifdef DL_GLOBAL
17340 # define LT_DLGLOBAL DL_GLOBAL
17341 # else
17342 # define LT_DLGLOBAL 0
17343 # endif
17344 #endif
17346 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17347 find out it does not work in some platform. */
17348 #ifndef LT_DLLAZY_OR_NOW
17349 # ifdef RTLD_LAZY
17350 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17351 # else
17352 # ifdef DL_LAZY
17353 # define LT_DLLAZY_OR_NOW DL_LAZY
17354 # else
17355 # ifdef RTLD_NOW
17356 # define LT_DLLAZY_OR_NOW RTLD_NOW
17357 # else
17358 # ifdef DL_NOW
17359 # define LT_DLLAZY_OR_NOW DL_NOW
17360 # else
17361 # define LT_DLLAZY_OR_NOW 0
17362 # endif
17363 # endif
17364 # endif
17365 # endif
17366 #endif
17368 void fnord() { int i=42;}
17369 int main ()
17371 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17372 int status = $lt_dlunknown;
17374 if (self)
17376 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17377 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17378 /* dlclose (self); */
17380 else
17381 puts (dlerror ());
17383 return status;
17385 _LT_EOF
17386 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17387 (eval $ac_link) 2>&5
17388 ac_status=$?
17389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17390 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17391 (./conftest; exit; ) >&5 2>/dev/null
17392 lt_status=$?
17393 case x$lt_status in
17394 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17395 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17396 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17397 esac
17398 else :
17399 # compilation failed
17400 lt_cv_dlopen_self=no
17403 rm -fr conftest*
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17408 $as_echo "$lt_cv_dlopen_self" >&6; }
17410 if test "x$lt_cv_dlopen_self" = xyes; then
17411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17413 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
17414 if test "${lt_cv_dlopen_self_static+set}" = set; then :
17415 $as_echo_n "(cached) " >&6
17416 else
17417 if test "$cross_compiling" = yes; then :
17418 lt_cv_dlopen_self_static=cross
17419 else
17420 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17421 lt_status=$lt_dlunknown
17422 cat > conftest.$ac_ext <<_LT_EOF
17423 #line 17423 "configure"
17424 #include "confdefs.h"
17426 #if HAVE_DLFCN_H
17427 #include <dlfcn.h>
17428 #endif
17430 #include <stdio.h>
17432 #ifdef RTLD_GLOBAL
17433 # define LT_DLGLOBAL RTLD_GLOBAL
17434 #else
17435 # ifdef DL_GLOBAL
17436 # define LT_DLGLOBAL DL_GLOBAL
17437 # else
17438 # define LT_DLGLOBAL 0
17439 # endif
17440 #endif
17442 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17443 find out it does not work in some platform. */
17444 #ifndef LT_DLLAZY_OR_NOW
17445 # ifdef RTLD_LAZY
17446 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17447 # else
17448 # ifdef DL_LAZY
17449 # define LT_DLLAZY_OR_NOW DL_LAZY
17450 # else
17451 # ifdef RTLD_NOW
17452 # define LT_DLLAZY_OR_NOW RTLD_NOW
17453 # else
17454 # ifdef DL_NOW
17455 # define LT_DLLAZY_OR_NOW DL_NOW
17456 # else
17457 # define LT_DLLAZY_OR_NOW 0
17458 # endif
17459 # endif
17460 # endif
17461 # endif
17462 #endif
17464 void fnord() { int i=42;}
17465 int main ()
17467 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17468 int status = $lt_dlunknown;
17470 if (self)
17472 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17473 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17474 /* dlclose (self); */
17476 else
17477 puts (dlerror ());
17479 return status;
17481 _LT_EOF
17482 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17483 (eval $ac_link) 2>&5
17484 ac_status=$?
17485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17486 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17487 (./conftest; exit; ) >&5 2>/dev/null
17488 lt_status=$?
17489 case x$lt_status in
17490 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17491 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17492 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17493 esac
17494 else :
17495 # compilation failed
17496 lt_cv_dlopen_self_static=no
17499 rm -fr conftest*
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17504 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17507 CPPFLAGS="$save_CPPFLAGS"
17508 LDFLAGS="$save_LDFLAGS"
17509 LIBS="$save_LIBS"
17511 esac
17513 case $lt_cv_dlopen_self in
17514 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17515 *) enable_dlopen_self=unknown ;;
17516 esac
17518 case $lt_cv_dlopen_self_static in
17519 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17520 *) enable_dlopen_self_static=unknown ;;
17521 esac
17540 striplib=
17541 old_striplib=
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17543 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17544 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17545 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17546 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17548 $as_echo "yes" >&6; }
17549 else
17550 # FIXME - insert some real tests, host_os isn't really good enough
17551 case $host_os in
17552 darwin*)
17553 if test -n "$STRIP" ; then
17554 striplib="$STRIP -x"
17555 old_striplib="$STRIP -S"
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17557 $as_echo "yes" >&6; }
17558 else
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17560 $as_echo "no" >&6; }
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17565 $as_echo "no" >&6; }
17567 esac
17581 # Report which library types will actually be built
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17583 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17585 $as_echo "$can_build_shared" >&6; }
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17588 $as_echo_n "checking whether to build shared libraries... " >&6; }
17589 test "$can_build_shared" = "no" && enable_shared=no
17591 # On AIX, shared libraries and static libraries use the same namespace, and
17592 # are all built from PIC.
17593 case $host_os in
17594 aix3*)
17595 test "$enable_shared" = yes && enable_static=no
17596 if test -n "$RANLIB"; then
17597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17598 postinstall_cmds='$RANLIB $lib'
17602 aix[4-9]*)
17603 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17604 test "$enable_shared" = yes && enable_static=no
17607 esac
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17609 $as_echo "$enable_shared" >&6; }
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17612 $as_echo_n "checking whether to build static libraries... " >&6; }
17613 # Make sure either enable_shared or enable_static is yes.
17614 test "$enable_shared" = yes || enable_static=yes
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17616 $as_echo "$enable_static" >&6; }
17622 ac_ext=c
17623 ac_cpp='$CPP $CPPFLAGS'
17624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17628 CC="$lt_save_CC"
17631 ac_ext=cpp
17632 ac_cpp='$CXXCPP $CPPFLAGS'
17633 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17634 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17635 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17637 archive_cmds_need_lc_CXX=no
17638 allow_undefined_flag_CXX=
17639 always_export_symbols_CXX=no
17640 archive_expsym_cmds_CXX=
17641 compiler_needs_object_CXX=no
17642 export_dynamic_flag_spec_CXX=
17643 hardcode_direct_CXX=no
17644 hardcode_direct_absolute_CXX=no
17645 hardcode_libdir_flag_spec_CXX=
17646 hardcode_libdir_flag_spec_ld_CXX=
17647 hardcode_libdir_separator_CXX=
17648 hardcode_minus_L_CXX=no
17649 hardcode_shlibpath_var_CXX=unsupported
17650 hardcode_automatic_CXX=no
17651 inherit_rpath_CXX=no
17652 module_cmds_CXX=
17653 module_expsym_cmds_CXX=
17654 link_all_deplibs_CXX=unknown
17655 old_archive_cmds_CXX=$old_archive_cmds
17656 no_undefined_flag_CXX=
17657 whole_archive_flag_spec_CXX=
17658 enable_shared_with_static_runtimes_CXX=no
17660 # Source file extension for C++ test sources.
17661 ac_ext=cpp
17663 # Object file extension for compiled C++ test sources.
17664 objext=o
17665 objext_CXX=$objext
17667 # No sense in running all these tests if we already determined that
17668 # the CXX compiler isn't working. Some variables (like enable_shared)
17669 # are currently assumed to apply to all compilers on this platform,
17670 # and will be corrupted by setting them based on a non-working compiler.
17671 if test "$_lt_caught_CXX_error" != yes; then
17672 # Code to be used in simple compile tests
17673 lt_simple_compile_test_code="int some_variable = 0;"
17675 # Code to be used in simple link tests
17676 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17678 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17685 # If no C compiler was specified, use CC.
17686 LTCC=${LTCC-"$CC"}
17688 # If no C compiler flags were specified, use CFLAGS.
17689 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17691 # Allow CC to be a program name with arguments.
17692 compiler=$CC
17695 # save warnings/boilerplate of simple test code
17696 ac_outfile=conftest.$ac_objext
17697 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17698 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17699 _lt_compiler_boilerplate=`cat conftest.err`
17700 $RM conftest*
17702 ac_outfile=conftest.$ac_objext
17703 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17704 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17705 _lt_linker_boilerplate=`cat conftest.err`
17706 $RM -r conftest*
17709 # Allow CC to be a program name with arguments.
17710 lt_save_CC=$CC
17711 lt_save_LD=$LD
17712 lt_save_GCC=$GCC
17713 GCC=$GXX
17714 lt_save_with_gnu_ld=$with_gnu_ld
17715 lt_save_path_LD=$lt_cv_path_LD
17716 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17717 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17718 else
17719 $as_unset lt_cv_prog_gnu_ld
17721 if test -n "${lt_cv_path_LDCXX+set}"; then
17722 lt_cv_path_LD=$lt_cv_path_LDCXX
17723 else
17724 $as_unset lt_cv_path_LD
17726 test -z "${LDCXX+set}" || LD=$LDCXX
17727 CC=${CXX-"c++"}
17728 compiler=$CC
17729 compiler_CXX=$CC
17730 for cc_temp in $compiler""; do
17731 case $cc_temp in
17732 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17733 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17734 \-*) ;;
17735 *) break;;
17736 esac
17737 done
17738 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17741 if test -n "$compiler"; then
17742 # We don't want -fno-exception when compiling C++ code, so set the
17743 # no_builtin_flag separately
17744 if test "$GXX" = yes; then
17745 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17746 else
17747 lt_prog_compiler_no_builtin_flag_CXX=
17750 if test "$GXX" = yes; then
17751 # Set up default GNU C++ configuration
17755 # Check whether --with-gnu-ld was given.
17756 if test "${with_gnu_ld+set}" = set; then :
17757 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17758 else
17759 with_gnu_ld=no
17762 ac_prog=ld
17763 if test "$GCC" = yes; then
17764 # Check if gcc -print-prog-name=ld gives a path.
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17766 $as_echo_n "checking for ld used by $CC... " >&6; }
17767 case $host in
17768 *-*-mingw*)
17769 # gcc leaves a trailing carriage return which upsets mingw
17770 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17772 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17773 esac
17774 case $ac_prog in
17775 # Accept absolute paths.
17776 [\\/]* | ?:[\\/]*)
17777 re_direlt='/[^/][^/]*/\.\./'
17778 # Canonicalize the pathname of ld
17779 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17780 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17781 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17782 done
17783 test -z "$LD" && LD="$ac_prog"
17786 # If it fails, then pretend we aren't using GCC.
17787 ac_prog=ld
17790 # If it is relative, then search for the first ld in PATH.
17791 with_gnu_ld=unknown
17793 esac
17794 elif test "$with_gnu_ld" = yes; then
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17796 $as_echo_n "checking for GNU ld... " >&6; }
17797 else
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17799 $as_echo_n "checking for non-GNU ld... " >&6; }
17801 if test "${lt_cv_path_LD+set}" = set; then :
17802 $as_echo_n "(cached) " >&6
17803 else
17804 if test -z "$LD"; then
17805 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17806 for ac_dir in $PATH; do
17807 IFS="$lt_save_ifs"
17808 test -z "$ac_dir" && ac_dir=.
17809 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17810 lt_cv_path_LD="$ac_dir/$ac_prog"
17811 # Check to see if the program is GNU ld. I'd rather use --version,
17812 # but apparently some variants of GNU ld only accept -v.
17813 # Break only if it was the GNU/non-GNU ld that we prefer.
17814 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17815 *GNU* | *'with BFD'*)
17816 test "$with_gnu_ld" != no && break
17819 test "$with_gnu_ld" != yes && break
17821 esac
17823 done
17824 IFS="$lt_save_ifs"
17825 else
17826 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17830 LD="$lt_cv_path_LD"
17831 if test -n "$LD"; then
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17833 $as_echo "$LD" >&6; }
17834 else
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17836 $as_echo "no" >&6; }
17838 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17840 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17841 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17842 $as_echo_n "(cached) " >&6
17843 else
17844 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17845 case `$LD -v 2>&1 </dev/null` in
17846 *GNU* | *'with BFD'*)
17847 lt_cv_prog_gnu_ld=yes
17850 lt_cv_prog_gnu_ld=no
17852 esac
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17855 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17856 with_gnu_ld=$lt_cv_prog_gnu_ld
17864 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17865 # archiving commands below assume that GNU ld is being used.
17866 if test "$with_gnu_ld" = yes; then
17867 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17868 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'
17870 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17871 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17873 # If archive_cmds runs LD, not CC, wlarc should be empty
17874 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17875 # investigate it a little bit more. (MM)
17876 wlarc='${wl}'
17878 # ancient GNU ld didn't support --whole-archive et. al.
17879 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17880 $GREP 'no-whole-archive' > /dev/null; then
17881 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17882 else
17883 whole_archive_flag_spec_CXX=
17885 else
17886 with_gnu_ld=no
17887 wlarc=
17889 # A generic and very simple default shared library creation
17890 # command for GNU C++ for the case where it uses the native
17891 # linker, instead of GNU ld. If possible, this setting should
17892 # overridden to take advantage of the native linker features on
17893 # the platform it is being used on.
17894 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17897 # Commands to make compiler produce verbose output that lists
17898 # what "hidden" libraries, object files and flags are used when
17899 # linking a shared library.
17900 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
17902 else
17903 GXX=no
17904 with_gnu_ld=no
17905 wlarc=
17908 # PORTME: fill in a description of your system's C++ link characteristics
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17910 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17911 ld_shlibs_CXX=yes
17912 case $host_os in
17913 aix3*)
17914 # FIXME: insert proper C++ library support
17915 ld_shlibs_CXX=no
17917 aix[4-9]*)
17918 if test "$host_cpu" = ia64; then
17919 # On IA64, the linker does run time linking by default, so we don't
17920 # have to do anything special.
17921 aix_use_runtimelinking=no
17922 exp_sym_flag='-Bexport'
17923 no_entry_flag=""
17924 else
17925 aix_use_runtimelinking=no
17927 # Test if we are trying to use run time linking or normal
17928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17929 # need to do runtime linking.
17930 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17931 for ld_flag in $LDFLAGS; do
17932 case $ld_flag in
17933 *-brtl*)
17934 aix_use_runtimelinking=yes
17935 break
17937 esac
17938 done
17940 esac
17942 exp_sym_flag='-bexport'
17943 no_entry_flag='-bnoentry'
17946 # When large executables or shared objects are built, AIX ld can
17947 # have problems creating the table of contents. If linking a library
17948 # or program results in "error TOC overflow" add -mminimal-toc to
17949 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17950 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17952 archive_cmds_CXX=''
17953 hardcode_direct_CXX=yes
17954 hardcode_direct_absolute_CXX=yes
17955 hardcode_libdir_separator_CXX=':'
17956 link_all_deplibs_CXX=yes
17957 file_list_spec_CXX='${wl}-f,'
17959 if test "$GXX" = yes; then
17960 case $host_os in aix4.[012]|aix4.[012].*)
17961 # We only want to do this on AIX 4.2 and lower, the check
17962 # below for broken collect2 doesn't work under 4.3+
17963 collect2name=`${CC} -print-prog-name=collect2`
17964 if test -f "$collect2name" &&
17965 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17966 then
17967 # We have reworked collect2
17969 else
17970 # We have old collect2
17971 hardcode_direct_CXX=unsupported
17972 # It fails to find uninstalled libraries when the uninstalled
17973 # path is not listed in the libpath. Setting hardcode_minus_L
17974 # to unsupported forces relinking
17975 hardcode_minus_L_CXX=yes
17976 hardcode_libdir_flag_spec_CXX='-L$libdir'
17977 hardcode_libdir_separator_CXX=
17979 esac
17980 shared_flag='-shared'
17981 if test "$aix_use_runtimelinking" = yes; then
17982 shared_flag="$shared_flag "'${wl}-G'
17984 else
17985 # not using gcc
17986 if test "$host_cpu" = ia64; then
17987 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17988 # chokes on -Wl,-G. The following line is correct:
17989 shared_flag='-G'
17990 else
17991 if test "$aix_use_runtimelinking" = yes; then
17992 shared_flag='${wl}-G'
17993 else
17994 shared_flag='${wl}-bM:SRE'
17999 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18000 # It seems that -bexpall does not export symbols beginning with
18001 # underscore (_), so it is better to generate a list of symbols to
18002 # export.
18003 always_export_symbols_CXX=yes
18004 if test "$aix_use_runtimelinking" = yes; then
18005 # Warning - without using the other runtime loading flags (-brtl),
18006 # -berok will link without error, but may produce a broken library.
18007 allow_undefined_flag_CXX='-berok'
18008 # Determine the default libpath from the value encoded in an empty
18009 # executable.
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18014 main ()
18018 return 0;
18020 _ACEOF
18021 if ac_fn_cxx_try_link "$LINENO"; then :
18023 lt_aix_libpath_sed='
18024 /Import File Strings/,/^$/ {
18025 /^0/ {
18026 s/^0 *\(.*\)$/\1/
18030 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18031 # Check for a 64-bit object if we didn't find anything.
18032 if test -z "$aix_libpath"; then
18033 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18036 rm -f core conftest.err conftest.$ac_objext \
18037 conftest$ac_exeext conftest.$ac_ext
18038 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18040 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18042 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"
18043 else
18044 if test "$host_cpu" = ia64; then
18045 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18046 allow_undefined_flag_CXX="-z nodefs"
18047 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"
18048 else
18049 # Determine the default libpath from the value encoded in an
18050 # empty executable.
18051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18052 /* end confdefs.h. */
18055 main ()
18059 return 0;
18061 _ACEOF
18062 if ac_fn_cxx_try_link "$LINENO"; then :
18064 lt_aix_libpath_sed='
18065 /Import File Strings/,/^$/ {
18066 /^0/ {
18067 s/^0 *\(.*\)$/\1/
18071 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18072 # Check for a 64-bit object if we didn't find anything.
18073 if test -z "$aix_libpath"; then
18074 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18077 rm -f core conftest.err conftest.$ac_objext \
18078 conftest$ac_exeext conftest.$ac_ext
18079 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18081 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18082 # Warning - without using the other run time loading flags,
18083 # -berok will link without error, but may produce a broken library.
18084 no_undefined_flag_CXX=' ${wl}-bernotok'
18085 allow_undefined_flag_CXX=' ${wl}-berok'
18086 # Exported symbols can be pulled into shared objects from archives
18087 whole_archive_flag_spec_CXX='$convenience'
18088 archive_cmds_need_lc_CXX=yes
18089 # This is similar to how AIX traditionally builds its shared
18090 # libraries.
18091 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'
18096 beos*)
18097 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18098 allow_undefined_flag_CXX=unsupported
18099 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18100 # support --undefined. This deserves some investigation. FIXME
18101 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18102 else
18103 ld_shlibs_CXX=no
18107 chorus*)
18108 case $cc_basename in
18110 # FIXME: insert proper C++ library support
18111 ld_shlibs_CXX=no
18113 esac
18116 cygwin* | mingw* | pw32* | cegcc*)
18117 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18118 # as there is no search path for DLLs.
18119 hardcode_libdir_flag_spec_CXX='-L$libdir'
18120 allow_undefined_flag_CXX=unsupported
18121 always_export_symbols_CXX=no
18122 enable_shared_with_static_runtimes_CXX=yes
18124 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18125 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'
18126 # If the export-symbols file already is a .def file (1st line
18127 # is EXPORTS), use it as is; otherwise, prepend...
18128 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18129 cp $export_symbols $output_objdir/$soname.def;
18130 else
18131 echo EXPORTS > $output_objdir/$soname.def;
18132 cat $export_symbols >> $output_objdir/$soname.def;
18134 $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'
18135 else
18136 ld_shlibs_CXX=no
18139 darwin* | rhapsody*)
18142 archive_cmds_need_lc_CXX=no
18143 hardcode_direct_CXX=no
18144 hardcode_automatic_CXX=yes
18145 hardcode_shlibpath_var_CXX=unsupported
18146 whole_archive_flag_spec_CXX=''
18147 link_all_deplibs_CXX=yes
18148 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18149 case $cc_basename in
18150 ifort*) _lt_dar_can_shared=yes ;;
18151 *) _lt_dar_can_shared=$GCC ;;
18152 esac
18153 if test "$_lt_dar_can_shared" = "yes"; then
18154 output_verbose_link_cmd=echo
18155 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}"
18156 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18157 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}"
18158 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}"
18159 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18160 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}"
18161 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}"
18164 else
18165 ld_shlibs_CXX=no
18170 dgux*)
18171 case $cc_basename in
18172 ec++*)
18173 # FIXME: insert proper C++ library support
18174 ld_shlibs_CXX=no
18176 ghcx*)
18177 # Green Hills C++ Compiler
18178 # FIXME: insert proper C++ library support
18179 ld_shlibs_CXX=no
18182 # FIXME: insert proper C++ library support
18183 ld_shlibs_CXX=no
18185 esac
18188 freebsd[12]*)
18189 # C++ shared libraries reported to be fairly broken before
18190 # switch to ELF
18191 ld_shlibs_CXX=no
18194 freebsd-elf*)
18195 archive_cmds_need_lc_CXX=no
18198 freebsd* | dragonfly*)
18199 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18200 # conventions
18201 ld_shlibs_CXX=yes
18204 gnu*)
18207 hpux9*)
18208 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18209 hardcode_libdir_separator_CXX=:
18210 export_dynamic_flag_spec_CXX='${wl}-E'
18211 hardcode_direct_CXX=yes
18212 hardcode_minus_L_CXX=yes # Not in the search PATH,
18213 # but as the default
18214 # location of the library.
18216 case $cc_basename in
18217 CC*)
18218 # FIXME: insert proper C++ library support
18219 ld_shlibs_CXX=no
18221 aCC*)
18222 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'
18223 # Commands to make compiler produce verbose output that lists
18224 # what "hidden" libraries, object files and flags are used when
18225 # linking a shared library.
18227 # There doesn't appear to be a way to prevent this compiler from
18228 # explicitly linking system object files so we need to strip them
18229 # from the output so that they don't get included in the library
18230 # dependencies.
18231 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'
18234 if test "$GXX" = yes; then
18235 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'
18236 else
18237 # FIXME: insert proper C++ library support
18238 ld_shlibs_CXX=no
18241 esac
18244 hpux10*|hpux11*)
18245 if test $with_gnu_ld = no; then
18246 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18247 hardcode_libdir_separator_CXX=:
18249 case $host_cpu in
18250 hppa*64*|ia64*)
18253 export_dynamic_flag_spec_CXX='${wl}-E'
18255 esac
18257 case $host_cpu in
18258 hppa*64*|ia64*)
18259 hardcode_direct_CXX=no
18260 hardcode_shlibpath_var_CXX=no
18263 hardcode_direct_CXX=yes
18264 hardcode_direct_absolute_CXX=yes
18265 hardcode_minus_L_CXX=yes # Not in the search PATH,
18266 # but as the default
18267 # location of the library.
18269 esac
18271 case $cc_basename in
18272 CC*)
18273 # FIXME: insert proper C++ library support
18274 ld_shlibs_CXX=no
18276 aCC*)
18277 case $host_cpu in
18278 hppa*64*)
18279 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18281 ia64*)
18282 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18285 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18287 esac
18288 # Commands to make compiler produce verbose output that lists
18289 # what "hidden" libraries, object files and flags are used when
18290 # linking a shared library.
18292 # There doesn't appear to be a way to prevent this compiler from
18293 # explicitly linking system object files so we need to strip them
18294 # from the output so that they don't get included in the library
18295 # dependencies.
18296 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'
18299 if test "$GXX" = yes; then
18300 if test $with_gnu_ld = no; then
18301 case $host_cpu in
18302 hppa*64*)
18303 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18305 ia64*)
18306 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18309 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'
18311 esac
18313 else
18314 # FIXME: insert proper C++ library support
18315 ld_shlibs_CXX=no
18318 esac
18321 interix[3-9]*)
18322 hardcode_direct_CXX=no
18323 hardcode_shlibpath_var_CXX=no
18324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18325 export_dynamic_flag_spec_CXX='${wl}-E'
18326 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18327 # Instead, shared libraries are loaded at an image base (0x10000000 by
18328 # default) and relocated if they conflict, which is a slow very memory
18329 # consuming and fragmenting process. To avoid this, we pick a random,
18330 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18331 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18332 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'
18333 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'
18335 irix5* | irix6*)
18336 case $cc_basename in
18337 CC*)
18338 # SGI C++
18339 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'
18341 # Archives containing C++ object files must be created using
18342 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18343 # necessary to make sure instantiated templates are included
18344 # in the archive.
18345 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18348 if test "$GXX" = yes; then
18349 if test "$with_gnu_ld" = no; then
18350 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'
18351 else
18352 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'
18355 link_all_deplibs_CXX=yes
18357 esac
18358 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18359 hardcode_libdir_separator_CXX=:
18360 inherit_rpath_CXX=yes
18363 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18364 case $cc_basename in
18365 KCC*)
18366 # Kuck and Associates, Inc. (KAI) C++ Compiler
18368 # KCC will only create a shared library if the output file
18369 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18370 # to its proper name (with version) after linking.
18371 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'
18372 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'
18373 # Commands to make compiler produce verbose output that lists
18374 # what "hidden" libraries, object files and flags are used when
18375 # linking a shared library.
18377 # There doesn't appear to be a way to prevent this compiler from
18378 # explicitly linking system object files so we need to strip them
18379 # from the output so that they don't get included in the library
18380 # dependencies.
18381 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'
18383 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18384 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18386 # Archives containing C++ object files must be created using
18387 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18388 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18390 icpc* | ecpc* )
18391 # Intel C++
18392 with_gnu_ld=yes
18393 # version 8.0 and above of icpc choke on multiply defined symbols
18394 # if we add $predep_objects and $postdep_objects, however 7.1 and
18395 # earlier do not add the objects themselves.
18396 case `$CC -V 2>&1` in
18397 *"Version 7."*)
18398 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18399 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'
18401 *) # Version 8.0 or newer
18402 tmp_idyn=
18403 case $host_cpu in
18404 ia64*) tmp_idyn=' -i_dynamic';;
18405 esac
18406 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18407 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'
18409 esac
18410 archive_cmds_need_lc_CXX=no
18411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18412 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18413 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18415 pgCC* | pgcpp*)
18416 # Portland Group C++ compiler
18417 case `$CC -V` in
18418 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
18419 prelink_cmds_CXX='tpldir=Template.dir~
18420 rm -rf $tpldir~
18421 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18422 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
18423 old_archive_cmds_CXX='tpldir=Template.dir~
18424 rm -rf $tpldir~
18425 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18426 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
18427 $RANLIB $oldlib'
18428 archive_cmds_CXX='tpldir=Template.dir~
18429 rm -rf $tpldir~
18430 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18431 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18432 archive_expsym_cmds_CXX='tpldir=Template.dir~
18433 rm -rf $tpldir~
18434 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18435 $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'
18437 *) # Version 6 will use weak symbols
18438 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18439 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'
18441 esac
18443 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18445 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'
18447 cxx*)
18448 # Compaq C++
18449 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18450 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'
18452 runpath_var=LD_RUN_PATH
18453 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18454 hardcode_libdir_separator_CXX=:
18456 # Commands to make compiler produce verbose output that lists
18457 # what "hidden" libraries, object files and flags are used when
18458 # linking a shared library.
18460 # There doesn't appear to be a way to prevent this compiler from
18461 # explicitly linking system object files so we need to strip them
18462 # from the output so that they don't get included in the library
18463 # dependencies.
18464 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'
18466 xl*)
18467 # IBM XL 8.0 on PPC, with GNU ld
18468 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18469 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18470 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18471 if test "x$supports_anon_versioning" = xyes; then
18472 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18473 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18474 echo "local: *; };" >> $output_objdir/$libname.ver~
18475 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18479 case `$CC -V 2>&1 | sed 5q` in
18480 *Sun\ C*)
18481 # Sun C++ 5.9
18482 no_undefined_flag_CXX=' -zdefs'
18483 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18484 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'
18485 hardcode_libdir_flag_spec_CXX='-R$libdir'
18486 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'
18487 compiler_needs_object_CXX=yes
18489 # Not sure whether something based on
18490 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18491 # would be better.
18492 output_verbose_link_cmd='echo'
18494 # Archives containing C++ object files must be created using
18495 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18496 # necessary to make sure instantiated templates are included
18497 # in the archive.
18498 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18500 esac
18502 esac
18505 lynxos*)
18506 # FIXME: insert proper C++ library support
18507 ld_shlibs_CXX=no
18510 m88k*)
18511 # FIXME: insert proper C++ library support
18512 ld_shlibs_CXX=no
18515 mvs*)
18516 case $cc_basename in
18517 cxx*)
18518 # FIXME: insert proper C++ library support
18519 ld_shlibs_CXX=no
18522 # FIXME: insert proper C++ library support
18523 ld_shlibs_CXX=no
18525 esac
18528 netbsd*)
18529 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18530 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18531 wlarc=
18532 hardcode_libdir_flag_spec_CXX='-R$libdir'
18533 hardcode_direct_CXX=yes
18534 hardcode_shlibpath_var_CXX=no
18536 # Workaround some broken pre-1.5 toolchains
18537 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18540 *nto* | *qnx*)
18541 ld_shlibs_CXX=yes
18544 openbsd2*)
18545 # C++ shared libraries are fairly broken
18546 ld_shlibs_CXX=no
18549 openbsd*)
18550 if test -f /usr/libexec/ld.so; then
18551 hardcode_direct_CXX=yes
18552 hardcode_shlibpath_var_CXX=no
18553 hardcode_direct_absolute_CXX=yes
18554 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18556 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18557 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18558 export_dynamic_flag_spec_CXX='${wl}-E'
18559 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18561 output_verbose_link_cmd=echo
18562 else
18563 ld_shlibs_CXX=no
18567 osf3* | osf4* | osf5*)
18568 case $cc_basename in
18569 KCC*)
18570 # Kuck and Associates, Inc. (KAI) C++ Compiler
18572 # KCC will only create a shared library if the output file
18573 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18574 # to its proper name (with version) after linking.
18575 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'
18577 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18578 hardcode_libdir_separator_CXX=:
18580 # Archives containing C++ object files must be created using
18581 # the KAI C++ compiler.
18582 case $host in
18583 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18584 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18585 esac
18587 RCC*)
18588 # Rational C++ 2.4.1
18589 # FIXME: insert proper C++ library support
18590 ld_shlibs_CXX=no
18592 cxx*)
18593 case $host in
18594 osf3*)
18595 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18596 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'
18597 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18600 allow_undefined_flag_CXX=' -expect_unresolved \*'
18601 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'
18602 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18603 echo "-hidden">> $lib.exp~
18604 $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~
18605 $RM $lib.exp'
18606 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18608 esac
18610 hardcode_libdir_separator_CXX=:
18612 # Commands to make compiler produce verbose output that lists
18613 # what "hidden" libraries, object files and flags are used when
18614 # linking a shared library.
18616 # There doesn't appear to be a way to prevent this compiler from
18617 # explicitly linking system object files so we need to strip them
18618 # from the output so that they don't get included in the library
18619 # dependencies.
18620 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'
18623 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18624 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18625 case $host in
18626 osf3*)
18627 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'
18630 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'
18632 esac
18634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18635 hardcode_libdir_separator_CXX=:
18637 # Commands to make compiler produce verbose output that lists
18638 # what "hidden" libraries, object files and flags are used when
18639 # linking a shared library.
18640 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18642 else
18643 # FIXME: insert proper C++ library support
18644 ld_shlibs_CXX=no
18647 esac
18650 psos*)
18651 # FIXME: insert proper C++ library support
18652 ld_shlibs_CXX=no
18655 sunos4*)
18656 case $cc_basename in
18657 CC*)
18658 # Sun C++ 4.x
18659 # FIXME: insert proper C++ library support
18660 ld_shlibs_CXX=no
18662 lcc*)
18663 # Lucid
18664 # FIXME: insert proper C++ library support
18665 ld_shlibs_CXX=no
18668 # FIXME: insert proper C++ library support
18669 ld_shlibs_CXX=no
18671 esac
18674 solaris*)
18675 case $cc_basename in
18676 CC*)
18677 # Sun C++ 4.2, 5.x and Centerline C++
18678 archive_cmds_need_lc_CXX=yes
18679 no_undefined_flag_CXX=' -zdefs'
18680 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18681 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18682 $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'
18684 hardcode_libdir_flag_spec_CXX='-R$libdir'
18685 hardcode_shlibpath_var_CXX=no
18686 case $host_os in
18687 solaris2.[0-5] | solaris2.[0-5].*) ;;
18689 # The compiler driver will combine and reorder linker options,
18690 # but understands `-z linker_flag'.
18691 # Supported since Solaris 2.6 (maybe 2.5.1?)
18692 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18694 esac
18695 link_all_deplibs_CXX=yes
18697 output_verbose_link_cmd='echo'
18699 # Archives containing C++ object files must be created using
18700 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18701 # necessary to make sure instantiated templates are included
18702 # in the archive.
18703 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18705 gcx*)
18706 # Green Hills C++ Compiler
18707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18709 # The C++ compiler must be used to create the archive.
18710 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18713 # GNU C++ compiler with Solaris linker
18714 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18715 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18716 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18717 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18718 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18719 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18721 # Commands to make compiler produce verbose output that lists
18722 # what "hidden" libraries, object files and flags are used when
18723 # linking a shared library.
18724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18725 else
18726 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18727 # platform.
18728 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18729 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18730 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18732 # Commands to make compiler produce verbose output that lists
18733 # what "hidden" libraries, object files and flags are used when
18734 # linking a shared library.
18735 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
18738 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18739 case $host_os in
18740 solaris2.[0-5] | solaris2.[0-5].*) ;;
18742 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18744 esac
18747 esac
18750 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18751 no_undefined_flag_CXX='${wl}-z,text'
18752 archive_cmds_need_lc_CXX=no
18753 hardcode_shlibpath_var_CXX=no
18754 runpath_var='LD_RUN_PATH'
18756 case $cc_basename in
18757 CC*)
18758 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18759 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18762 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18763 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18765 esac
18768 sysv5* | sco3.2v5* | sco5v6*)
18769 # Note: We can NOT use -z defs as we might desire, because we do not
18770 # link with -lc, and that would cause any symbols used from libc to
18771 # always be unresolved, which means just about no library would
18772 # ever link correctly. If we're not using GNU ld we use -z text
18773 # though, which does catch some bad symbols but isn't as heavy-handed
18774 # as -z defs.
18775 no_undefined_flag_CXX='${wl}-z,text'
18776 allow_undefined_flag_CXX='${wl}-z,nodefs'
18777 archive_cmds_need_lc_CXX=no
18778 hardcode_shlibpath_var_CXX=no
18779 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18780 hardcode_libdir_separator_CXX=':'
18781 link_all_deplibs_CXX=yes
18782 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18783 runpath_var='LD_RUN_PATH'
18785 case $cc_basename in
18786 CC*)
18787 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18788 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18792 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18794 esac
18797 tandem*)
18798 case $cc_basename in
18799 NCC*)
18800 # NonStop-UX NCC 3.20
18801 # FIXME: insert proper C++ library support
18802 ld_shlibs_CXX=no
18805 # FIXME: insert proper C++ library support
18806 ld_shlibs_CXX=no
18808 esac
18811 vxworks*)
18812 # FIXME: insert proper C++ library support
18813 ld_shlibs_CXX=no
18817 # FIXME: insert proper C++ library support
18818 ld_shlibs_CXX=no
18820 esac
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18823 $as_echo "$ld_shlibs_CXX" >&6; }
18824 test "$ld_shlibs_CXX" = no && can_build_shared=no
18826 GCC_CXX="$GXX"
18827 LD_CXX="$LD"
18829 ## CAVEAT EMPTOR:
18830 ## There is no encapsulation within the following macros, do not change
18831 ## the running order or otherwise move them around unless you know exactly
18832 ## what you are doing...
18833 # Dependencies to place before and after the object being linked:
18834 predep_objects_CXX=
18835 postdep_objects_CXX=
18836 predeps_CXX=
18837 postdeps_CXX=
18838 compiler_lib_search_path_CXX=
18840 cat > conftest.$ac_ext <<_LT_EOF
18841 class Foo
18843 public:
18844 Foo (void) { a = 0; }
18845 private:
18846 int a;
18848 _LT_EOF
18850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18851 (eval $ac_compile) 2>&5
18852 ac_status=$?
18853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18854 test $ac_status = 0; }; then
18855 # Parse the compiler output and extract the necessary
18856 # objects, libraries and library flags.
18858 # Sentinel used to keep track of whether or not we are before
18859 # the conftest object file.
18860 pre_test_object_deps_done=no
18862 for p in `eval "$output_verbose_link_cmd"`; do
18863 case $p in
18865 -L* | -R* | -l*)
18866 # Some compilers place space between "-{L,R}" and the path.
18867 # Remove the space.
18868 if test $p = "-L" ||
18869 test $p = "-R"; then
18870 prev=$p
18871 continue
18872 else
18873 prev=
18876 if test "$pre_test_object_deps_done" = no; then
18877 case $p in
18878 -L* | -R*)
18879 # Internal compiler library paths should come after those
18880 # provided the user. The postdeps already come after the
18881 # user supplied libs so there is no need to process them.
18882 if test -z "$compiler_lib_search_path_CXX"; then
18883 compiler_lib_search_path_CXX="${prev}${p}"
18884 else
18885 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18888 # The "-l" case would never come before the object being
18889 # linked, so don't bother handling this case.
18890 esac
18891 else
18892 if test -z "$postdeps_CXX"; then
18893 postdeps_CXX="${prev}${p}"
18894 else
18895 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18900 *.$objext)
18901 # This assumes that the test object file only shows up
18902 # once in the compiler output.
18903 if test "$p" = "conftest.$objext"; then
18904 pre_test_object_deps_done=yes
18905 continue
18908 if test "$pre_test_object_deps_done" = no; then
18909 if test -z "$predep_objects_CXX"; then
18910 predep_objects_CXX="$p"
18911 else
18912 predep_objects_CXX="$predep_objects_CXX $p"
18914 else
18915 if test -z "$postdep_objects_CXX"; then
18916 postdep_objects_CXX="$p"
18917 else
18918 postdep_objects_CXX="$postdep_objects_CXX $p"
18923 *) ;; # Ignore the rest.
18925 esac
18926 done
18928 # Clean up.
18929 rm -f a.out a.exe
18930 else
18931 echo "libtool.m4: error: problem compiling CXX test program"
18934 $RM -f confest.$objext
18936 # PORTME: override above test on systems where it is broken
18937 case $host_os in
18938 interix[3-9]*)
18939 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18940 # hack all around it, let's just trust "g++" to DTRT.
18941 predep_objects_CXX=
18942 postdep_objects_CXX=
18943 postdeps_CXX=
18946 linux*)
18947 case `$CC -V 2>&1 | sed 5q` in
18948 *Sun\ C*)
18949 # Sun C++ 5.9
18951 # The more standards-conforming stlport4 library is
18952 # incompatible with the Cstd library. Avoid specifying
18953 # it if it's in CXXFLAGS. Ignore libCrun as
18954 # -library=stlport4 depends on it.
18955 case " $CXX $CXXFLAGS " in
18956 *" -library=stlport4 "*)
18957 solaris_use_stlport4=yes
18959 esac
18961 if test "$solaris_use_stlport4" != yes; then
18962 postdeps_CXX='-library=Cstd -library=Crun'
18965 esac
18968 solaris*)
18969 case $cc_basename in
18970 CC*)
18971 # The more standards-conforming stlport4 library is
18972 # incompatible with the Cstd library. Avoid specifying
18973 # it if it's in CXXFLAGS. Ignore libCrun as
18974 # -library=stlport4 depends on it.
18975 case " $CXX $CXXFLAGS " in
18976 *" -library=stlport4 "*)
18977 solaris_use_stlport4=yes
18979 esac
18981 # Adding this requires a known-good setup of shared libraries for
18982 # Sun compiler versions before 5.6, else PIC objects from an old
18983 # archive will be linked into the output, leading to subtle bugs.
18984 if test "$solaris_use_stlport4" != yes; then
18985 postdeps_CXX='-library=Cstd -library=Crun'
18988 esac
18990 esac
18993 case " $postdeps_CXX " in
18994 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18995 esac
18996 compiler_lib_search_dirs_CXX=
18997 if test -n "${compiler_lib_search_path_CXX}"; then
18998 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19031 lt_prog_compiler_wl_CXX=
19032 lt_prog_compiler_pic_CXX=
19033 lt_prog_compiler_static_CXX=
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19036 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19038 # C++ specific cases for pic, static, wl, etc.
19039 if test "$GXX" = yes; then
19040 lt_prog_compiler_wl_CXX='-Wl,'
19041 lt_prog_compiler_static_CXX='-static'
19043 case $host_os in
19044 aix*)
19045 # All AIX code is PIC.
19046 if test "$host_cpu" = ia64; then
19047 # AIX 5 now supports IA64 processor
19048 lt_prog_compiler_static_CXX='-Bstatic'
19052 amigaos*)
19053 case $host_cpu in
19054 powerpc)
19055 # see comment about AmigaOS4 .so support
19056 lt_prog_compiler_pic_CXX='-fPIC'
19058 m68k)
19059 # FIXME: we need at least 68020 code to build shared libraries, but
19060 # adding the `-m68020' flag to GCC prevents building anything better,
19061 # like `-m68040'.
19062 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19064 esac
19067 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19068 # PIC is the default for these OSes.
19070 mingw* | cygwin* | os2* | pw32* | cegcc*)
19071 # This hack is so that the source file can tell whether it is being
19072 # built for inclusion in a dll (and should export symbols for example).
19073 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19074 # (--disable-auto-import) libraries
19075 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19077 darwin* | rhapsody*)
19078 # PIC is the default on this platform
19079 # Common symbols not allowed in MH_DYLIB files
19080 lt_prog_compiler_pic_CXX='-fno-common'
19082 *djgpp*)
19083 # DJGPP does not support shared libraries at all
19084 lt_prog_compiler_pic_CXX=
19086 interix[3-9]*)
19087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19088 # Instead, we relocate shared libraries at runtime.
19090 sysv4*MP*)
19091 if test -d /usr/nec; then
19092 lt_prog_compiler_pic_CXX=-Kconform_pic
19095 hpux*)
19096 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19097 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19098 # sets the default TLS model and affects inlining.
19099 case $host_cpu in
19100 hppa*64*)
19103 lt_prog_compiler_pic_CXX='-fPIC'
19105 esac
19107 *qnx* | *nto*)
19108 # QNX uses GNU C++, but need to define -shared option too, otherwise
19109 # it will coredump.
19110 lt_prog_compiler_pic_CXX='-fPIC -shared'
19113 lt_prog_compiler_pic_CXX='-fPIC'
19115 esac
19116 else
19117 case $host_os in
19118 aix[4-9]*)
19119 # All AIX code is PIC.
19120 if test "$host_cpu" = ia64; then
19121 # AIX 5 now supports IA64 processor
19122 lt_prog_compiler_static_CXX='-Bstatic'
19123 else
19124 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19127 chorus*)
19128 case $cc_basename in
19129 cxch68*)
19130 # Green Hills C++ Compiler
19131 # _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"
19133 esac
19135 dgux*)
19136 case $cc_basename in
19137 ec++*)
19138 lt_prog_compiler_pic_CXX='-KPIC'
19140 ghcx*)
19141 # Green Hills C++ Compiler
19142 lt_prog_compiler_pic_CXX='-pic'
19146 esac
19148 freebsd* | dragonfly*)
19149 # FreeBSD uses GNU C++
19151 hpux9* | hpux10* | hpux11*)
19152 case $cc_basename in
19153 CC*)
19154 lt_prog_compiler_wl_CXX='-Wl,'
19155 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19156 if test "$host_cpu" != ia64; then
19157 lt_prog_compiler_pic_CXX='+Z'
19160 aCC*)
19161 lt_prog_compiler_wl_CXX='-Wl,'
19162 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19163 case $host_cpu in
19164 hppa*64*|ia64*)
19165 # +Z the default
19168 lt_prog_compiler_pic_CXX='+Z'
19170 esac
19174 esac
19176 interix*)
19177 # This is c89, which is MS Visual C++ (no shared libs)
19178 # Anyone wants to do a port?
19180 irix5* | irix6* | nonstopux*)
19181 case $cc_basename in
19182 CC*)
19183 lt_prog_compiler_wl_CXX='-Wl,'
19184 lt_prog_compiler_static_CXX='-non_shared'
19185 # CC pic flag -KPIC is the default.
19189 esac
19191 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19192 case $cc_basename in
19193 KCC*)
19194 # KAI C++ Compiler
19195 lt_prog_compiler_wl_CXX='--backend -Wl,'
19196 lt_prog_compiler_pic_CXX='-fPIC'
19198 ecpc* )
19199 # old Intel C++ for x86_64 which still supported -KPIC.
19200 lt_prog_compiler_wl_CXX='-Wl,'
19201 lt_prog_compiler_pic_CXX='-KPIC'
19202 lt_prog_compiler_static_CXX='-static'
19204 icpc* )
19205 # Intel C++, used to be incompatible with GCC.
19206 # ICC 10 doesn't accept -KPIC any more.
19207 lt_prog_compiler_wl_CXX='-Wl,'
19208 lt_prog_compiler_pic_CXX='-fPIC'
19209 lt_prog_compiler_static_CXX='-static'
19211 pgCC* | pgcpp*)
19212 # Portland Group C++ compiler
19213 lt_prog_compiler_wl_CXX='-Wl,'
19214 lt_prog_compiler_pic_CXX='-fpic'
19215 lt_prog_compiler_static_CXX='-Bstatic'
19217 cxx*)
19218 # Compaq C++
19219 # Make sure the PIC flag is empty. It appears that all Alpha
19220 # Linux and Compaq Tru64 Unix objects are PIC.
19221 lt_prog_compiler_pic_CXX=
19222 lt_prog_compiler_static_CXX='-non_shared'
19224 xlc* | xlC*)
19225 # IBM XL 8.0 on PPC
19226 lt_prog_compiler_wl_CXX='-Wl,'
19227 lt_prog_compiler_pic_CXX='-qpic'
19228 lt_prog_compiler_static_CXX='-qstaticlink'
19231 case `$CC -V 2>&1 | sed 5q` in
19232 *Sun\ C*)
19233 # Sun C++ 5.9
19234 lt_prog_compiler_pic_CXX='-KPIC'
19235 lt_prog_compiler_static_CXX='-Bstatic'
19236 lt_prog_compiler_wl_CXX='-Qoption ld '
19238 esac
19240 esac
19242 lynxos*)
19244 m88k*)
19246 mvs*)
19247 case $cc_basename in
19248 cxx*)
19249 lt_prog_compiler_pic_CXX='-W c,exportall'
19253 esac
19255 netbsd*)
19257 *qnx* | *nto*)
19258 # QNX uses GNU C++, but need to define -shared option too, otherwise
19259 # it will coredump.
19260 lt_prog_compiler_pic_CXX='-fPIC -shared'
19262 osf3* | osf4* | osf5*)
19263 case $cc_basename in
19264 KCC*)
19265 lt_prog_compiler_wl_CXX='--backend -Wl,'
19267 RCC*)
19268 # Rational C++ 2.4.1
19269 lt_prog_compiler_pic_CXX='-pic'
19271 cxx*)
19272 # Digital/Compaq C++
19273 lt_prog_compiler_wl_CXX='-Wl,'
19274 # Make sure the PIC flag is empty. It appears that all Alpha
19275 # Linux and Compaq Tru64 Unix objects are PIC.
19276 lt_prog_compiler_pic_CXX=
19277 lt_prog_compiler_static_CXX='-non_shared'
19281 esac
19283 psos*)
19285 solaris*)
19286 case $cc_basename in
19287 CC*)
19288 # Sun C++ 4.2, 5.x and Centerline C++
19289 lt_prog_compiler_pic_CXX='-KPIC'
19290 lt_prog_compiler_static_CXX='-Bstatic'
19291 lt_prog_compiler_wl_CXX='-Qoption ld '
19293 gcx*)
19294 # Green Hills C++ Compiler
19295 lt_prog_compiler_pic_CXX='-PIC'
19299 esac
19301 sunos4*)
19302 case $cc_basename in
19303 CC*)
19304 # Sun C++ 4.x
19305 lt_prog_compiler_pic_CXX='-pic'
19306 lt_prog_compiler_static_CXX='-Bstatic'
19308 lcc*)
19309 # Lucid
19310 lt_prog_compiler_pic_CXX='-pic'
19314 esac
19316 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19317 case $cc_basename in
19318 CC*)
19319 lt_prog_compiler_wl_CXX='-Wl,'
19320 lt_prog_compiler_pic_CXX='-KPIC'
19321 lt_prog_compiler_static_CXX='-Bstatic'
19323 esac
19325 tandem*)
19326 case $cc_basename in
19327 NCC*)
19328 # NonStop-UX NCC 3.20
19329 lt_prog_compiler_pic_CXX='-KPIC'
19333 esac
19335 vxworks*)
19338 lt_prog_compiler_can_build_shared_CXX=no
19340 esac
19343 case $host_os in
19344 # For platforms which do not support PIC, -DPIC is meaningless:
19345 *djgpp*)
19346 lt_prog_compiler_pic_CXX=
19349 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19351 esac
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
19353 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
19358 # Check to make sure the PIC flag actually works.
19360 if test -n "$lt_prog_compiler_pic_CXX"; then
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19362 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19363 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
19364 $as_echo_n "(cached) " >&6
19365 else
19366 lt_cv_prog_compiler_pic_works_CXX=no
19367 ac_outfile=conftest.$ac_objext
19368 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19369 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19370 # Insert the option either (1) after the last *FLAGS variable, or
19371 # (2) before a word containing "conftest.", or (3) at the end.
19372 # Note that $ac_compile itself does not contain backslashes and begins
19373 # with a dollar sign (not a hyphen), so the echo should work correctly.
19374 # The option is referenced via a variable to avoid confusing sed.
19375 lt_compile=`echo "$ac_compile" | $SED \
19376 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19378 -e 's:$: $lt_compiler_flag:'`
19379 (eval echo "\"\$as_me:19379: $lt_compile\"" >&5)
19380 (eval "$lt_compile" 2>conftest.err)
19381 ac_status=$?
19382 cat conftest.err >&5
19383 echo "$as_me:19383: \$? = $ac_status" >&5
19384 if (exit $ac_status) && test -s "$ac_outfile"; then
19385 # The compiler can only warn and ignore the option if not recognized
19386 # So say no if there are warnings other than the usual output.
19387 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19388 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19389 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19390 lt_cv_prog_compiler_pic_works_CXX=yes
19393 $RM conftest*
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19397 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19399 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19400 case $lt_prog_compiler_pic_CXX in
19401 "" | " "*) ;;
19402 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19403 esac
19404 else
19405 lt_prog_compiler_pic_CXX=
19406 lt_prog_compiler_can_build_shared_CXX=no
19414 # Check to make sure the static flag actually works.
19416 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19418 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19419 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
19420 $as_echo_n "(cached) " >&6
19421 else
19422 lt_cv_prog_compiler_static_works_CXX=no
19423 save_LDFLAGS="$LDFLAGS"
19424 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19425 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19427 # The linker can only warn and ignore the option if not recognized
19428 # So say no if there are warnings
19429 if test -s conftest.err; then
19430 # Append any errors to the config.log.
19431 cat conftest.err 1>&5
19432 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19434 if diff conftest.exp conftest.er2 >/dev/null; then
19435 lt_cv_prog_compiler_static_works_CXX=yes
19437 else
19438 lt_cv_prog_compiler_static_works_CXX=yes
19441 $RM -r conftest*
19442 LDFLAGS="$save_LDFLAGS"
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19446 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19448 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19450 else
19451 lt_prog_compiler_static_CXX=
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19458 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19459 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19460 $as_echo_n "(cached) " >&6
19461 else
19462 lt_cv_prog_compiler_c_o_CXX=no
19463 $RM -r conftest 2>/dev/null
19464 mkdir conftest
19465 cd conftest
19466 mkdir out
19467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19469 lt_compiler_flag="-o out/conftest2.$ac_objext"
19470 # Insert the option either (1) after the last *FLAGS variable, or
19471 # (2) before a word containing "conftest.", or (3) at the end.
19472 # Note that $ac_compile itself does not contain backslashes and begins
19473 # with a dollar sign (not a hyphen), so the echo should work correctly.
19474 lt_compile=`echo "$ac_compile" | $SED \
19475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19477 -e 's:$: $lt_compiler_flag:'`
19478 (eval echo "\"\$as_me:19478: $lt_compile\"" >&5)
19479 (eval "$lt_compile" 2>out/conftest.err)
19480 ac_status=$?
19481 cat out/conftest.err >&5
19482 echo "$as_me:19482: \$? = $ac_status" >&5
19483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19484 then
19485 # The compiler can only warn and ignore the option if not recognized
19486 # So say no if there are warnings
19487 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19490 lt_cv_prog_compiler_c_o_CXX=yes
19493 chmod u+w . 2>&5
19494 $RM conftest*
19495 # SGI C++ compiler will create directory out/ii_files/ for
19496 # template instantiation
19497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19498 $RM out/* && rmdir out
19499 cd ..
19500 $RM -r conftest
19501 $RM conftest*
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19505 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19510 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19511 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19512 $as_echo_n "(cached) " >&6
19513 else
19514 lt_cv_prog_compiler_c_o_CXX=no
19515 $RM -r conftest 2>/dev/null
19516 mkdir conftest
19517 cd conftest
19518 mkdir out
19519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19521 lt_compiler_flag="-o out/conftest2.$ac_objext"
19522 # Insert the option either (1) after the last *FLAGS variable, or
19523 # (2) before a word containing "conftest.", or (3) at the end.
19524 # Note that $ac_compile itself does not contain backslashes and begins
19525 # with a dollar sign (not a hyphen), so the echo should work correctly.
19526 lt_compile=`echo "$ac_compile" | $SED \
19527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19529 -e 's:$: $lt_compiler_flag:'`
19530 (eval echo "\"\$as_me:19530: $lt_compile\"" >&5)
19531 (eval "$lt_compile" 2>out/conftest.err)
19532 ac_status=$?
19533 cat out/conftest.err >&5
19534 echo "$as_me:19534: \$? = $ac_status" >&5
19535 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19536 then
19537 # The compiler can only warn and ignore the option if not recognized
19538 # So say no if there are warnings
19539 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19540 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19541 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19542 lt_cv_prog_compiler_c_o_CXX=yes
19545 chmod u+w . 2>&5
19546 $RM conftest*
19547 # SGI C++ compiler will create directory out/ii_files/ for
19548 # template instantiation
19549 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19550 $RM out/* && rmdir out
19551 cd ..
19552 $RM -r conftest
19553 $RM conftest*
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19557 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19562 hard_links="nottested"
19563 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19564 # do not overwrite the value of need_locks provided by the user
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19566 $as_echo_n "checking if we can lock with hard links... " >&6; }
19567 hard_links=yes
19568 $RM conftest*
19569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19570 touch conftest.a
19571 ln conftest.a conftest.b 2>&5 || hard_links=no
19572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19574 $as_echo "$hard_links" >&6; }
19575 if test "$hard_links" = no; then
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19577 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19578 need_locks=warn
19580 else
19581 need_locks=no
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19587 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19589 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19590 case $host_os in
19591 aix[4-9]*)
19592 # If we're using GNU nm, then we don't want the "-C" option.
19593 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19594 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19595 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'
19596 else
19597 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'
19600 pw32*)
19601 export_symbols_cmds_CXX="$ltdll_cmds"
19603 cygwin* | mingw* | cegcc*)
19604 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'
19607 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19609 esac
19610 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19613 $as_echo "$ld_shlibs_CXX" >&6; }
19614 test "$ld_shlibs_CXX" = no && can_build_shared=no
19616 with_gnu_ld_CXX=$with_gnu_ld
19624 # Do we need to explicitly link libc?
19626 case "x$archive_cmds_need_lc_CXX" in
19627 x|xyes)
19628 # Assume -lc should be added
19629 archive_cmds_need_lc_CXX=yes
19631 if test "$enable_shared" = yes && test "$GCC" = yes; then
19632 case $archive_cmds_CXX in
19633 *'~'*)
19634 # FIXME: we may have to deal with multi-command sequences.
19636 '$CC '*)
19637 # Test whether the compiler implicitly links with -lc since on some
19638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19639 # to ld, don't add -lc before -lgcc.
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19641 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19642 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19643 $as_echo_n "(cached) " >&6
19644 else
19645 $RM conftest*
19646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19649 (eval $ac_compile) 2>&5
19650 ac_status=$?
19651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19652 test $ac_status = 0; } 2>conftest.err; then
19653 soname=conftest
19654 lib=conftest
19655 libobjs=conftest.$ac_objext
19656 deplibs=
19657 wl=$lt_prog_compiler_wl_CXX
19658 pic_flag=$lt_prog_compiler_pic_CXX
19659 compiler_flags=-v
19660 linker_flags=-v
19661 verstring=
19662 output_objdir=.
19663 libname=conftest
19664 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19665 allow_undefined_flag_CXX=
19666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19667 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19668 ac_status=$?
19669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19670 test $ac_status = 0; }
19671 then
19672 lt_cv_archive_cmds_need_lc_CXX=no
19673 else
19674 lt_cv_archive_cmds_need_lc_CXX=yes
19676 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19677 else
19678 cat conftest.err 1>&5
19680 $RM conftest*
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19684 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19685 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19687 esac
19690 esac
19755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19756 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19758 library_names_spec=
19759 libname_spec='lib$name'
19760 soname_spec=
19761 shrext_cmds=".so"
19762 postinstall_cmds=
19763 postuninstall_cmds=
19764 finish_cmds=
19765 finish_eval=
19766 shlibpath_var=
19767 shlibpath_overrides_runpath=unknown
19768 version_type=none
19769 dynamic_linker="$host_os ld.so"
19770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19771 need_lib_prefix=unknown
19772 hardcode_into_libs=no
19774 # when you set need_version to no, make sure it does not cause -set_version
19775 # flags to be left without arguments
19776 need_version=unknown
19778 case $host_os in
19779 aix3*)
19780 version_type=linux
19781 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19782 shlibpath_var=LIBPATH
19784 # AIX 3 has no versioning support, so we append a major version to the name.
19785 soname_spec='${libname}${release}${shared_ext}$major'
19788 aix[4-9]*)
19789 version_type=linux
19790 need_lib_prefix=no
19791 need_version=no
19792 hardcode_into_libs=yes
19793 if test "$host_cpu" = ia64; then
19794 # AIX 5 supports IA64
19795 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19796 shlibpath_var=LD_LIBRARY_PATH
19797 else
19798 # With GCC up to 2.95.x, collect2 would create an import file
19799 # for dependence libraries. The import file would start with
19800 # the line `#! .'. This would cause the generated library to
19801 # depend on `.', always an invalid library. This was fixed in
19802 # development snapshots of GCC prior to 3.0.
19803 case $host_os in
19804 aix4 | aix4.[01] | aix4.[01].*)
19805 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19806 echo ' yes '
19807 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19809 else
19810 can_build_shared=no
19813 esac
19814 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19815 # soname into executable. Probably we can add versioning support to
19816 # collect2, so additional links can be useful in future.
19817 if test "$aix_use_runtimelinking" = yes; then
19818 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19819 # instead of lib<name>.a to let people know that these are not
19820 # typical AIX shared libraries.
19821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19822 else
19823 # We preserve .a as extension for shared libraries through AIX4.2
19824 # and later when we are not doing run time linking.
19825 library_names_spec='${libname}${release}.a $libname.a'
19826 soname_spec='${libname}${release}${shared_ext}$major'
19828 shlibpath_var=LIBPATH
19832 amigaos*)
19833 case $host_cpu in
19834 powerpc)
19835 # Since July 2007 AmigaOS4 officially supports .so libraries.
19836 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19839 m68k)
19840 library_names_spec='$libname.ixlibrary $libname.a'
19841 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19842 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'
19844 esac
19847 beos*)
19848 library_names_spec='${libname}${shared_ext}'
19849 dynamic_linker="$host_os ld.so"
19850 shlibpath_var=LIBRARY_PATH
19853 bsdi[45]*)
19854 version_type=linux
19855 need_version=no
19856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19857 soname_spec='${libname}${release}${shared_ext}$major'
19858 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19859 shlibpath_var=LD_LIBRARY_PATH
19860 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19861 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19862 # the default ld.so.conf also contains /usr/contrib/lib and
19863 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19864 # libtool to hard-code these into programs
19867 cygwin* | mingw* | pw32* | cegcc*)
19868 version_type=windows
19869 shrext_cmds=".dll"
19870 need_version=no
19871 need_lib_prefix=no
19873 case $GCC,$host_os in
19874 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19875 library_names_spec='$libname.dll.a'
19876 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19877 postinstall_cmds='base_file=`basename \${file}`~
19878 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19879 dldir=$destdir/`dirname \$dlpath`~
19880 test -d \$dldir || mkdir -p \$dldir~
19881 $install_prog $dir/$dlname \$dldir/$dlname~
19882 chmod a+x \$dldir/$dlname~
19883 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19884 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19886 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19887 dlpath=$dir/\$dldll~
19888 $RM \$dlpath'
19889 shlibpath_overrides_runpath=yes
19891 case $host_os in
19892 cygwin*)
19893 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19894 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19895 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19897 mingw* | cegcc*)
19898 # MinGW DLLs use traditional 'lib' prefix
19899 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19900 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19901 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19902 # It is most probably a Windows format PATH printed by
19903 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19904 # path with ; separators, and with drive letters. We can handle the
19905 # drive letters (cygwin fileutils understands them), so leave them,
19906 # especially as we might pass files found there to a mingw objdump,
19907 # which wouldn't understand a cygwinified path. Ahh.
19908 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19909 else
19910 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19913 pw32*)
19914 # pw32 DLLs use 'pw' prefix rather than 'lib'
19915 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19917 esac
19921 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19923 esac
19924 dynamic_linker='Win32 ld.exe'
19925 # FIXME: first we should search . and the directory the executable is in
19926 shlibpath_var=PATH
19929 darwin* | rhapsody*)
19930 dynamic_linker="$host_os dyld"
19931 version_type=darwin
19932 need_lib_prefix=no
19933 need_version=no
19934 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19935 soname_spec='${libname}${release}${major}$shared_ext'
19936 shlibpath_overrides_runpath=yes
19937 shlibpath_var=DYLD_LIBRARY_PATH
19938 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19940 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19943 dgux*)
19944 version_type=linux
19945 need_lib_prefix=no
19946 need_version=no
19947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19948 soname_spec='${libname}${release}${shared_ext}$major'
19949 shlibpath_var=LD_LIBRARY_PATH
19952 freebsd1*)
19953 dynamic_linker=no
19956 freebsd* | dragonfly*)
19957 # DragonFly does not have aout. When/if they implement a new
19958 # versioning mechanism, adjust this.
19959 if test -x /usr/bin/objformat; then
19960 objformat=`/usr/bin/objformat`
19961 else
19962 case $host_os in
19963 freebsd[123]*) objformat=aout ;;
19964 *) objformat=elf ;;
19965 esac
19967 version_type=freebsd-$objformat
19968 case $version_type in
19969 freebsd-elf*)
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19971 need_version=no
19972 need_lib_prefix=no
19974 freebsd-*)
19975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19976 need_version=yes
19978 esac
19979 shlibpath_var=LD_LIBRARY_PATH
19980 case $host_os in
19981 freebsd2*)
19982 shlibpath_overrides_runpath=yes
19984 freebsd3.[01]* | freebsdelf3.[01]*)
19985 shlibpath_overrides_runpath=yes
19986 hardcode_into_libs=yes
19988 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19989 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19990 shlibpath_overrides_runpath=no
19991 hardcode_into_libs=yes
19993 *) # from 4.6 on, and DragonFly
19994 shlibpath_overrides_runpath=yes
19995 hardcode_into_libs=yes
19997 esac
20000 gnu*)
20001 version_type=linux
20002 need_lib_prefix=no
20003 need_version=no
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20005 soname_spec='${libname}${release}${shared_ext}$major'
20006 shlibpath_var=LD_LIBRARY_PATH
20007 hardcode_into_libs=yes
20010 hpux9* | hpux10* | hpux11*)
20011 # Give a soname corresponding to the major version so that dld.sl refuses to
20012 # link against other versions.
20013 version_type=sunos
20014 need_lib_prefix=no
20015 need_version=no
20016 case $host_cpu in
20017 ia64*)
20018 shrext_cmds='.so'
20019 hardcode_into_libs=yes
20020 dynamic_linker="$host_os dld.so"
20021 shlibpath_var=LD_LIBRARY_PATH
20022 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20024 soname_spec='${libname}${release}${shared_ext}$major'
20025 if test "X$HPUX_IA64_MODE" = X32; then
20026 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20027 else
20028 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20032 hppa*64*)
20033 shrext_cmds='.sl'
20034 hardcode_into_libs=yes
20035 dynamic_linker="$host_os dld.sl"
20036 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20037 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20039 soname_spec='${libname}${release}${shared_ext}$major'
20040 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20041 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20044 shrext_cmds='.sl'
20045 dynamic_linker="$host_os dld.sl"
20046 shlibpath_var=SHLIB_PATH
20047 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20049 soname_spec='${libname}${release}${shared_ext}$major'
20051 esac
20052 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20053 postinstall_cmds='chmod 555 $lib'
20056 interix[3-9]*)
20057 version_type=linux
20058 need_lib_prefix=no
20059 need_version=no
20060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20061 soname_spec='${libname}${release}${shared_ext}$major'
20062 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20063 shlibpath_var=LD_LIBRARY_PATH
20064 shlibpath_overrides_runpath=no
20065 hardcode_into_libs=yes
20068 irix5* | irix6* | nonstopux*)
20069 case $host_os in
20070 nonstopux*) version_type=nonstopux ;;
20072 if test "$lt_cv_prog_gnu_ld" = yes; then
20073 version_type=linux
20074 else
20075 version_type=irix
20076 fi ;;
20077 esac
20078 need_lib_prefix=no
20079 need_version=no
20080 soname_spec='${libname}${release}${shared_ext}$major'
20081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20082 case $host_os in
20083 irix5* | nonstopux*)
20084 libsuff= shlibsuff=
20087 case $LD in # libtool.m4 will add one of these switches to LD
20088 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20089 libsuff= shlibsuff= libmagic=32-bit;;
20090 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20091 libsuff=32 shlibsuff=N32 libmagic=N32;;
20092 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20093 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20094 *) libsuff= shlibsuff= libmagic=never-match;;
20095 esac
20097 esac
20098 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20099 shlibpath_overrides_runpath=no
20100 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20101 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20102 hardcode_into_libs=yes
20105 # No shared lib support for Linux oldld, aout, or coff.
20106 linux*oldld* | linux*aout* | linux*coff*)
20107 dynamic_linker=no
20110 # This must be Linux ELF.
20111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20112 version_type=linux
20113 need_lib_prefix=no
20114 need_version=no
20115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20116 soname_spec='${libname}${release}${shared_ext}$major'
20117 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20118 shlibpath_var=LD_LIBRARY_PATH
20119 shlibpath_overrides_runpath=no
20121 # Some binutils ld are patched to set DT_RUNPATH
20122 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
20123 $as_echo_n "(cached) " >&6
20124 else
20125 lt_cv_shlibpath_overrides_runpath=no
20126 save_LDFLAGS=$LDFLAGS
20127 save_libdir=$libdir
20128 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20129 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131 /* end confdefs.h. */
20134 main ()
20138 return 0;
20140 _ACEOF
20141 if ac_fn_cxx_try_link "$LINENO"; then :
20142 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20143 lt_cv_shlibpath_overrides_runpath=yes
20146 rm -f core conftest.err conftest.$ac_objext \
20147 conftest$ac_exeext conftest.$ac_ext
20148 LDFLAGS=$save_LDFLAGS
20149 libdir=$save_libdir
20153 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20155 # This implies no fast_install, which is unacceptable.
20156 # Some rework will be needed to allow for fast_install
20157 # before this can be enabled.
20158 hardcode_into_libs=yes
20160 # Append ld.so.conf contents to the search path
20161 if test -f /etc/ld.so.conf; then
20162 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' ' '`
20163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20166 # We used to test for /lib/ld.so.1 and disable shared libraries on
20167 # powerpc, because MkLinux only supported shared libraries with the
20168 # GNU dynamic linker. Since this was broken with cross compilers,
20169 # most powerpc-linux boxes support dynamic linking these days and
20170 # people can always --disable-shared, the test was removed, and we
20171 # assume the GNU/Linux dynamic linker is in use.
20172 dynamic_linker='GNU/Linux ld.so'
20175 netbsd*)
20176 version_type=sunos
20177 need_lib_prefix=no
20178 need_version=no
20179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20182 dynamic_linker='NetBSD (a.out) ld.so'
20183 else
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20185 soname_spec='${libname}${release}${shared_ext}$major'
20186 dynamic_linker='NetBSD ld.elf_so'
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=yes
20190 hardcode_into_libs=yes
20193 newsos6)
20194 version_type=linux
20195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20196 shlibpath_var=LD_LIBRARY_PATH
20197 shlibpath_overrides_runpath=yes
20200 *nto* | *qnx*)
20201 version_type=qnx
20202 need_lib_prefix=no
20203 need_version=no
20204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205 soname_spec='${libname}${release}${shared_ext}$major'
20206 shlibpath_var=LD_LIBRARY_PATH
20207 shlibpath_overrides_runpath=no
20208 hardcode_into_libs=yes
20209 dynamic_linker='ldqnx.so'
20212 openbsd*)
20213 version_type=sunos
20214 sys_lib_dlsearch_path_spec="/usr/lib"
20215 need_lib_prefix=no
20216 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20217 case $host_os in
20218 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20219 *) need_version=no ;;
20220 esac
20221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20222 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20223 shlibpath_var=LD_LIBRARY_PATH
20224 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20225 case $host_os in
20226 openbsd2.[89] | openbsd2.[89].*)
20227 shlibpath_overrides_runpath=no
20230 shlibpath_overrides_runpath=yes
20232 esac
20233 else
20234 shlibpath_overrides_runpath=yes
20238 os2*)
20239 libname_spec='$name'
20240 shrext_cmds=".dll"
20241 need_lib_prefix=no
20242 library_names_spec='$libname${shared_ext} $libname.a'
20243 dynamic_linker='OS/2 ld.exe'
20244 shlibpath_var=LIBPATH
20247 osf3* | osf4* | osf5*)
20248 version_type=osf
20249 need_lib_prefix=no
20250 need_version=no
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20253 shlibpath_var=LD_LIBRARY_PATH
20254 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20255 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20258 rdos*)
20259 dynamic_linker=no
20262 solaris*)
20263 version_type=linux
20264 need_lib_prefix=no
20265 need_version=no
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 shlibpath_var=LD_LIBRARY_PATH
20269 shlibpath_overrides_runpath=yes
20270 hardcode_into_libs=yes
20271 # ldd complains unless libraries are executable
20272 postinstall_cmds='chmod +x $lib'
20275 sunos4*)
20276 version_type=sunos
20277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20278 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20279 shlibpath_var=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath=yes
20281 if test "$with_gnu_ld" = yes; then
20282 need_lib_prefix=no
20284 need_version=yes
20287 sysv4 | sysv4.3*)
20288 version_type=linux
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20290 soname_spec='${libname}${release}${shared_ext}$major'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 case $host_vendor in
20293 sni)
20294 shlibpath_overrides_runpath=no
20295 need_lib_prefix=no
20296 runpath_var=LD_RUN_PATH
20298 siemens)
20299 need_lib_prefix=no
20301 motorola)
20302 need_lib_prefix=no
20303 need_version=no
20304 shlibpath_overrides_runpath=no
20305 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20307 esac
20310 sysv4*MP*)
20311 if test -d /usr/nec ;then
20312 version_type=linux
20313 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20314 soname_spec='$libname${shared_ext}.$major'
20315 shlibpath_var=LD_LIBRARY_PATH
20319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20320 version_type=freebsd-elf
20321 need_lib_prefix=no
20322 need_version=no
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 shlibpath_var=LD_LIBRARY_PATH
20326 shlibpath_overrides_runpath=yes
20327 hardcode_into_libs=yes
20328 if test "$with_gnu_ld" = yes; then
20329 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20330 else
20331 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20332 case $host_os in
20333 sco3.2v5*)
20334 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20336 esac
20338 sys_lib_dlsearch_path_spec='/usr/lib'
20341 tpf*)
20342 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20343 version_type=linux
20344 need_lib_prefix=no
20345 need_version=no
20346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20347 shlibpath_var=LD_LIBRARY_PATH
20348 shlibpath_overrides_runpath=no
20349 hardcode_into_libs=yes
20352 uts4*)
20353 version_type=linux
20354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20355 soname_spec='${libname}${release}${shared_ext}$major'
20356 shlibpath_var=LD_LIBRARY_PATH
20360 dynamic_linker=no
20362 esac
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20364 $as_echo "$dynamic_linker" >&6; }
20365 test "$dynamic_linker" = no && can_build_shared=no
20367 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20368 if test "$GCC" = yes; then
20369 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20372 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20373 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20375 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20376 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20415 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20416 hardcode_action_CXX=
20417 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20418 test -n "$runpath_var_CXX" ||
20419 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20421 # We can hardcode non-existent directories.
20422 if test "$hardcode_direct_CXX" != no &&
20423 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20424 # have to relink, otherwise we might link with an installed library
20425 # when we should be linking with a yet-to-be-installed one
20426 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20427 test "$hardcode_minus_L_CXX" != no; then
20428 # Linking always hardcodes the temporary library directory.
20429 hardcode_action_CXX=relink
20430 else
20431 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20432 hardcode_action_CXX=immediate
20434 else
20435 # We cannot hardcode anything, or else we can only hardcode existing
20436 # directories.
20437 hardcode_action_CXX=unsupported
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20440 $as_echo "$hardcode_action_CXX" >&6; }
20442 if test "$hardcode_action_CXX" = relink ||
20443 test "$inherit_rpath_CXX" = yes; then
20444 # Fast installation is not supported
20445 enable_fast_install=no
20446 elif test "$shlibpath_overrides_runpath" = yes ||
20447 test "$enable_shared" = no; then
20448 # Fast installation is not necessary
20449 enable_fast_install=needless
20458 fi # test -n "$compiler"
20460 CC=$lt_save_CC
20461 LDCXX=$LD
20462 LD=$lt_save_LD
20463 GCC=$lt_save_GCC
20464 with_gnu_ld=$lt_save_with_gnu_ld
20465 lt_cv_path_LDCXX=$lt_cv_path_LD
20466 lt_cv_path_LD=$lt_save_path_LD
20467 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20468 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20469 fi # test "$_lt_caught_CXX_error" != yes
20471 ac_ext=c
20472 ac_cpp='$CPP $CPPFLAGS'
20473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20492 # Only expand once:
20498 # Identify the assembler which will work hand-in-glove with the newly
20499 # built GCC, so that we can examine its features. This is the assembler
20500 # which will be driven by the driver program.
20502 # If build != host, and we aren't building gas in-tree, we identify a
20503 # build->target assembler and hope that it will have the same features
20504 # as the host->target assembler we'll be using.
20505 gcc_cv_gas_major_version=
20506 gcc_cv_gas_minor_version=
20507 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20509 if test "${gcc_cv_as+set}" = set; then :
20511 else
20513 if test -x "$DEFAULT_ASSEMBLER"; then
20514 gcc_cv_as="$DEFAULT_ASSEMBLER"
20515 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20516 && test -f ../gas/Makefile \
20517 && test x$build = x$host; then
20518 gcc_cv_as=../gas/as-new$build_exeext
20519 elif test -x as$build_exeext; then
20520 # Build using assembler in the current directory.
20521 gcc_cv_as=./as$build_exeext
20522 elif test -x $AS_FOR_TARGET; then
20523 gcc_cv_as="$AS_FOR_TARGET"
20524 else
20525 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20526 set dummy $AS_FOR_TARGET; ac_word=$2
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20528 $as_echo_n "checking for $ac_word... " >&6; }
20529 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20530 $as_echo_n "(cached) " >&6
20531 else
20532 case $gcc_cv_as in
20533 [\\/]* | ?:[\\/]*)
20534 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20538 for as_dir in $PATH
20540 IFS=$as_save_IFS
20541 test -z "$as_dir" && as_dir=.
20542 for ac_exec_ext in '' $ac_executable_extensions; do
20543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20544 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20546 break 2
20548 done
20549 done
20550 IFS=$as_save_IFS
20553 esac
20555 gcc_cv_as=$ac_cv_path_gcc_cv_as
20556 if test -n "$gcc_cv_as"; then
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20558 $as_echo "$gcc_cv_as" >&6; }
20559 else
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20561 $as_echo "no" >&6; }
20568 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20570 case "$ORIGINAL_AS_FOR_TARGET" in
20571 ./as | ./as$build_exeext) ;;
20572 *) ac_config_files="$ac_config_files as:exec-tool.in"
20574 esac
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20577 $as_echo_n "checking what assembler to use... " >&6; }
20578 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20579 # Single tree build which includes gas. We want to prefer it
20580 # over whatever linker top-level may have detected, since
20581 # we'll use what we're building after installation anyway.
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20583 $as_echo "newly built gas" >&6; }
20584 in_tree_gas=yes
20585 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20586 for f in $gcc_cv_as_bfd_srcdir/configure \
20587 $gcc_cv_as_gas_srcdir/configure \
20588 $gcc_cv_as_gas_srcdir/configure.in \
20589 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20590 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20591 if test x$gcc_cv_gas_version != x; then
20592 break
20594 done
20595 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20596 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20597 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20598 case $gcc_cv_gas_patch_version in
20599 "") gcc_cv_gas_patch_version="0" ;;
20600 esac
20601 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20602 + $gcc_cv_gas_minor_version \) \* 1000 \
20603 + $gcc_cv_gas_patch_version`
20605 in_tree_gas_is_elf=no
20606 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20607 || (grep 'obj_format = multi' ../gas/Makefile \
20608 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20609 then
20610 in_tree_gas_is_elf=yes
20612 else
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20614 $as_echo "$gcc_cv_as" >&6; }
20615 in_tree_gas=no
20618 # Identify the linker which will work hand-in-glove with the newly
20619 # built GCC, so that we can examine its features. This is the linker
20620 # which will be driven by the driver program.
20622 # If build != host, and we aren't building gas in-tree, we identify a
20623 # build->target linker and hope that it will have the same features
20624 # as the host->target linker we'll be using.
20625 gcc_cv_gld_major_version=
20626 gcc_cv_gld_minor_version=
20627 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20628 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20630 if test "${gcc_cv_ld+set}" = set; then :
20632 else
20634 if test -x "$DEFAULT_LINKER"; then
20635 gcc_cv_ld="$DEFAULT_LINKER"
20636 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20637 && test -f ../ld/Makefile \
20638 && test x$build = x$host; then
20639 gcc_cv_ld=../ld/ld-new$build_exeext
20640 elif test -x collect-ld$build_exeext; then
20641 # Build using linker in the current directory.
20642 gcc_cv_ld=./collect-ld$build_exeext
20643 elif test -x $LD_FOR_TARGET; then
20644 gcc_cv_ld="$LD_FOR_TARGET"
20645 else
20646 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20647 set dummy $LD_FOR_TARGET; ac_word=$2
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20649 $as_echo_n "checking for $ac_word... " >&6; }
20650 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20651 $as_echo_n "(cached) " >&6
20652 else
20653 case $gcc_cv_ld in
20654 [\\/]* | ?:[\\/]*)
20655 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20659 for as_dir in $PATH
20661 IFS=$as_save_IFS
20662 test -z "$as_dir" && as_dir=.
20663 for ac_exec_ext in '' $ac_executable_extensions; do
20664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20665 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20667 break 2
20669 done
20670 done
20671 IFS=$as_save_IFS
20674 esac
20676 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20677 if test -n "$gcc_cv_ld"; then
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20679 $as_echo "$gcc_cv_ld" >&6; }
20680 else
20681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20682 $as_echo "no" >&6; }
20689 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20691 case "$ORIGINAL_LD_FOR_TARGET" in
20692 ./collect-ld | ./collect-ld$build_exeext) ;;
20693 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20695 esac
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20698 $as_echo_n "checking what linker to use... " >&6; }
20699 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20700 # Single tree build which includes ld. We want to prefer it
20701 # over whatever linker top-level may have detected, since
20702 # we'll use what we're building after installation anyway.
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20704 $as_echo "newly built ld" >&6; }
20705 in_tree_ld=yes
20706 in_tree_ld_is_elf=no
20707 if (grep 'EMUL = .*elf' ../ld/Makefile \
20708 || grep 'EMUL = .*linux' ../ld/Makefile \
20709 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20710 in_tree_ld_is_elf=yes
20712 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
20714 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20715 if test x$gcc_cv_gld_version != x; then
20716 break
20718 done
20719 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20720 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20721 else
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20723 $as_echo "$gcc_cv_ld" >&6; }
20724 in_tree_ld=no
20727 # Figure out what nm we will be using.
20728 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20729 if test "${gcc_cv_nm+set}" = set; then :
20731 else
20733 if test -f $gcc_cv_binutils_srcdir/configure.in \
20734 && test -f ../binutils/Makefile \
20735 && test x$build = x$host; then
20736 gcc_cv_nm=../binutils/nm-new$build_exeext
20737 elif test -x nm$build_exeext; then
20738 gcc_cv_nm=./nm$build_exeext
20739 elif test -x $NM_FOR_TARGET; then
20740 gcc_cv_nm="$NM_FOR_TARGET"
20741 else
20742 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20743 set dummy $NM_FOR_TARGET; ac_word=$2
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20745 $as_echo_n "checking for $ac_word... " >&6; }
20746 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20747 $as_echo_n "(cached) " >&6
20748 else
20749 case $gcc_cv_nm in
20750 [\\/]* | ?:[\\/]*)
20751 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20755 for as_dir in $PATH
20757 IFS=$as_save_IFS
20758 test -z "$as_dir" && as_dir=.
20759 for ac_exec_ext in '' $ac_executable_extensions; do
20760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20761 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20763 break 2
20765 done
20766 done
20767 IFS=$as_save_IFS
20770 esac
20772 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20773 if test -n "$gcc_cv_nm"; then
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20775 $as_echo "$gcc_cv_nm" >&6; }
20776 else
20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20778 $as_echo "no" >&6; }
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20786 $as_echo_n "checking what nm to use... " >&6; }
20787 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20788 # Single tree build which includes binutils.
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20790 $as_echo "newly built nm" >&6; }
20791 in_tree_nm=yes
20792 else
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20794 $as_echo "$gcc_cv_nm" >&6; }
20795 in_tree_nm=no
20798 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20800 case "$ORIGINAL_NM_FOR_TARGET" in
20801 ./nm | ./nm$build_exeext) ;;
20802 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20804 esac
20807 # Figure out what objdump we will be using.
20808 if test "${gcc_cv_objdump+set}" = set; then :
20810 else
20812 if test -f $gcc_cv_binutils_srcdir/configure.in \
20813 && test -f ../binutils/Makefile \
20814 && test x$build = x$host; then
20815 # Single tree build which includes binutils.
20816 gcc_cv_objdump=../binutils/objdump$build_exeext
20817 elif test -x objdump$build_exeext; then
20818 gcc_cv_objdump=./objdump$build_exeext
20819 elif test -x $OBJDUMP_FOR_TARGET; then
20820 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20821 else
20822 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20823 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20825 $as_echo_n "checking for $ac_word... " >&6; }
20826 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20827 $as_echo_n "(cached) " >&6
20828 else
20829 case $gcc_cv_objdump in
20830 [\\/]* | ?:[\\/]*)
20831 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20835 for as_dir in $PATH
20837 IFS=$as_save_IFS
20838 test -z "$as_dir" && as_dir=.
20839 for ac_exec_ext in '' $ac_executable_extensions; do
20840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20841 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20843 break 2
20845 done
20846 done
20847 IFS=$as_save_IFS
20850 esac
20852 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20853 if test -n "$gcc_cv_objdump"; then
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20855 $as_echo "$gcc_cv_objdump" >&6; }
20856 else
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20858 $as_echo "no" >&6; }
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20866 $as_echo_n "checking what objdump to use... " >&6; }
20867 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20868 # Single tree build which includes binutils.
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20870 $as_echo "newly built objdump" >&6; }
20871 elif test x$gcc_cv_objdump = x; then
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20873 $as_echo "not found" >&6; }
20874 else
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20876 $as_echo "$gcc_cv_objdump" >&6; }
20879 # Figure out what readelf we will be using.
20880 if test "${gcc_cv_readelf+set}" = set; then :
20882 else
20884 if test -f $gcc_cv_binutils_srcdir/configure.in \
20885 && test -f ../binutils/Makefile \
20886 && test x$build = x$host; then
20887 # Single tree build which includes binutils.
20888 gcc_cv_readelf=../binutils/readelf$build_exeext
20889 elif test -x readelf$build_exeext; then
20890 gcc_cv_readelf=./readelf$build_exeext
20891 else
20892 # Extract the first word of "readelf", so it can be a program name with args.
20893 set dummy readelf; ac_word=$2
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20895 $as_echo_n "checking for $ac_word... " >&6; }
20896 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20897 $as_echo_n "(cached) " >&6
20898 else
20899 case $gcc_cv_readelf in
20900 [\\/]* | ?:[\\/]*)
20901 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20905 for as_dir in $PATH
20907 IFS=$as_save_IFS
20908 test -z "$as_dir" && as_dir=.
20909 for ac_exec_ext in '' $ac_executable_extensions; do
20910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20911 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20913 break 2
20915 done
20916 done
20917 IFS=$as_save_IFS
20920 esac
20922 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20923 if test -n "$gcc_cv_readelf"; then
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20925 $as_echo "$gcc_cv_readelf" >&6; }
20926 else
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20928 $as_echo "no" >&6; }
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20936 $as_echo_n "checking what readelf to use... " >&6; }
20937 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20938 # Single tree build which includes binutils.
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20940 $as_echo "newly built readelf" >&6; }
20941 elif test x$gcc_cv_readelf = x; then
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20943 $as_echo "not found" >&6; }
20944 else
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20946 $as_echo "$gcc_cv_readelf" >&6; }
20949 # Figure out what assembler alignment features are present.
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20951 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20952 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20953 $as_echo_n "(cached) " >&6
20954 else
20955 gcc_cv_as_balign_and_p2align=no
20956 if test $in_tree_gas = yes; then
20957 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20958 then gcc_cv_as_balign_and_p2align=yes
20960 elif test x$gcc_cv_as != x; then
20961 echo '.balign 4
20962 .p2align 2' > conftest.s
20963 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20965 (eval $ac_try) 2>&5
20966 ac_status=$?
20967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20968 test $ac_status = 0; }; }
20969 then
20970 gcc_cv_as_balign_and_p2align=yes
20971 else
20972 echo "configure: failed program was" >&5
20973 cat conftest.s >&5
20975 rm -f conftest.o conftest.s
20978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20979 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20980 if test $gcc_cv_as_balign_and_p2align = yes; then
20982 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20987 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20988 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20989 $as_echo_n "(cached) " >&6
20990 else
20991 gcc_cv_as_max_skip_p2align=no
20992 if test $in_tree_gas = yes; then
20993 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20994 then gcc_cv_as_max_skip_p2align=yes
20996 elif test x$gcc_cv_as != x; then
20997 echo '.p2align 4,,7' > conftest.s
20998 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21000 (eval $ac_try) 2>&5
21001 ac_status=$?
21002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21003 test $ac_status = 0; }; }
21004 then
21005 gcc_cv_as_max_skip_p2align=yes
21006 else
21007 echo "configure: failed program was" >&5
21008 cat conftest.s >&5
21010 rm -f conftest.o conftest.s
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
21014 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
21015 if test $gcc_cv_as_max_skip_p2align = yes; then
21017 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
21022 $as_echo_n "checking assembler for .literal16... " >&6; }
21023 if test "${gcc_cv_as_literal16+set}" = set; then :
21024 $as_echo_n "(cached) " >&6
21025 else
21026 gcc_cv_as_literal16=no
21027 if test $in_tree_gas = yes; then
21028 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
21029 then gcc_cv_as_literal16=yes
21031 elif test x$gcc_cv_as != x; then
21032 echo '.literal16' > conftest.s
21033 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21035 (eval $ac_try) 2>&5
21036 ac_status=$?
21037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21038 test $ac_status = 0; }; }
21039 then
21040 gcc_cv_as_literal16=yes
21041 else
21042 echo "configure: failed program was" >&5
21043 cat conftest.s >&5
21045 rm -f conftest.o conftest.s
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
21049 $as_echo "$gcc_cv_as_literal16" >&6; }
21050 if test $gcc_cv_as_literal16 = yes; then
21052 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
21057 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
21058 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
21059 $as_echo_n "(cached) " >&6
21060 else
21061 gcc_cv_as_subsection_m1=no
21062 if test $in_tree_gas = yes; then
21063 if test $in_tree_gas_is_elf = yes \
21064 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
21065 then gcc_cv_as_subsection_m1=yes
21067 elif test x$gcc_cv_as != x; then
21068 echo 'conftest_label1: .word 0
21069 .subsection -1
21070 conftest_label2: .word 0
21071 .previous' > conftest.s
21072 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077 test $ac_status = 0; }; }
21078 then
21079 if test x$gcc_cv_nm != x; then
21080 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
21081 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
21082 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
21083 then :
21084 else gcc_cv_as_subsection_m1=yes
21086 rm -f conftest.nm1 conftest.nm2
21088 else
21089 echo "configure: failed program was" >&5
21090 cat conftest.s >&5
21092 rm -f conftest.o conftest.s
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
21096 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
21097 if test $gcc_cv_as_subsection_m1 = yes; then
21099 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
21104 $as_echo_n "checking assembler for .weak... " >&6; }
21105 if test "${gcc_cv_as_weak+set}" = set; then :
21106 $as_echo_n "(cached) " >&6
21107 else
21108 gcc_cv_as_weak=no
21109 if test $in_tree_gas = yes; then
21110 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
21111 then gcc_cv_as_weak=yes
21113 elif test x$gcc_cv_as != x; then
21114 echo ' .weak foobar' > conftest.s
21115 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21116 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21117 (eval $ac_try) 2>&5
21118 ac_status=$?
21119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21120 test $ac_status = 0; }; }
21121 then
21122 gcc_cv_as_weak=yes
21123 else
21124 echo "configure: failed program was" >&5
21125 cat conftest.s >&5
21127 rm -f conftest.o conftest.s
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
21131 $as_echo "$gcc_cv_as_weak" >&6; }
21132 if test $gcc_cv_as_weak = yes; then
21134 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
21138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
21139 $as_echo_n "checking assembler for .weakref... " >&6; }
21140 if test "${gcc_cv_as_weakref+set}" = set; then :
21141 $as_echo_n "(cached) " >&6
21142 else
21143 gcc_cv_as_weakref=no
21144 if test $in_tree_gas = yes; then
21145 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
21146 then gcc_cv_as_weakref=yes
21148 elif test x$gcc_cv_as != x; then
21149 echo ' .weakref foobar, barfnot' > conftest.s
21150 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21152 (eval $ac_try) 2>&5
21153 ac_status=$?
21154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21155 test $ac_status = 0; }; }
21156 then
21157 gcc_cv_as_weakref=yes
21158 else
21159 echo "configure: failed program was" >&5
21160 cat conftest.s >&5
21162 rm -f conftest.o conftest.s
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
21166 $as_echo "$gcc_cv_as_weakref" >&6; }
21167 if test $gcc_cv_as_weakref = yes; then
21169 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
21174 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
21175 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
21176 $as_echo_n "(cached) " >&6
21177 else
21178 gcc_cv_as_nsubspa_comdat=no
21179 if test $in_tree_gas = yes; then
21180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21181 then gcc_cv_as_nsubspa_comdat=yes
21183 elif test x$gcc_cv_as != x; then
21184 echo ' .SPACE $TEXT$
21185 .NSUBSPA $CODE$,COMDAT' > conftest.s
21186 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21188 (eval $ac_try) 2>&5
21189 ac_status=$?
21190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21191 test $ac_status = 0; }; }
21192 then
21193 gcc_cv_as_nsubspa_comdat=yes
21194 else
21195 echo "configure: failed program was" >&5
21196 cat conftest.s >&5
21198 rm -f conftest.o conftest.s
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
21202 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
21203 if test $gcc_cv_as_nsubspa_comdat = yes; then
21205 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
21209 # .hidden needs to be supported in both the assembler and the linker,
21210 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
21211 # This is irritatingly difficult to feature test for; we have to check the
21212 # date string after the version number. If we've got an in-tree
21213 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
21214 # to be safe.
21215 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
21216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
21217 $as_echo_n "checking assembler for .hidden... " >&6; }
21218 if test "${gcc_cv_as_hidden+set}" = set; then :
21219 $as_echo_n "(cached) " >&6
21220 else
21221 gcc_cv_as_hidden=no
21222 if test $in_tree_gas = yes; then
21223 if test $in_tree_gas_is_elf = yes \
21224 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
21225 then gcc_cv_as_hidden=yes
21227 elif test x$gcc_cv_as != x; then
21228 echo ' .hidden foobar
21229 foobar:' > conftest.s
21230 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21232 (eval $ac_try) 2>&5
21233 ac_status=$?
21234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21235 test $ac_status = 0; }; }
21236 then
21237 gcc_cv_as_hidden=yes
21238 else
21239 echo "configure: failed program was" >&5
21240 cat conftest.s >&5
21242 rm -f conftest.o conftest.s
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
21246 $as_echo "$gcc_cv_as_hidden" >&6; }
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
21250 $as_echo_n "checking linker for .hidden support... " >&6; }
21251 if test "${gcc_cv_ld_hidden+set}" = set; then :
21252 $as_echo_n "(cached) " >&6
21253 else
21254 if test $in_tree_ld = yes ; then
21255 gcc_cv_ld_hidden=no
21256 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 \
21257 && test $in_tree_ld_is_elf = yes; then
21258 gcc_cv_ld_hidden=yes
21260 else
21261 gcc_cv_ld_hidden=yes
21262 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
21263 if echo "$ld_ver" | grep GNU > /dev/null; then
21264 ld_vers=`echo $ld_ver | sed -n \
21265 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21266 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'`
21267 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
21268 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
21269 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
21270 if test 0"$ld_date" -lt 20020404; then
21271 if test -n "$ld_date"; then
21272 # If there was date string, but was earlier than 2002-04-04, fail
21273 gcc_cv_ld_hidden=no
21274 elif test -z "$ld_vers"; then
21275 # If there was no date string nor ld version number, something is wrong
21276 gcc_cv_ld_hidden=no
21277 else
21278 test -z "$ld_vers_patch" && ld_vers_patch=0
21279 if test "$ld_vers_major" -lt 2; then
21280 gcc_cv_ld_hidden=no
21281 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
21282 gcc_cv_ld_hidden="no"
21283 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
21284 gcc_cv_ld_hidden=no
21288 else
21289 case "${target}" in
21290 hppa64*-*-hpux* | ia64*-*-hpux*)
21291 gcc_cv_ld_hidden=yes
21293 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
21294 gcc_cv_ld_hidden=yes
21297 gcc_cv_ld_hidden=no
21299 esac
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
21304 $as_echo "$gcc_cv_ld_hidden" >&6; }
21305 libgcc_visibility=no
21308 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
21309 libgcc_visibility=yes
21311 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
21315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
21316 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
21317 gcc_cv_ld_ro_rw_mix=unknown
21318 if test $in_tree_ld = yes ; then
21319 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 \
21320 && test $in_tree_ld_is_elf = yes; then
21321 gcc_cv_ld_ro_rw_mix=read-write
21323 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
21324 echo '.section myfoosect, "a"' > conftest1.s
21325 echo '.section myfoosect, "aw"' > conftest2.s
21326 echo '.byte 1' >> conftest2.s
21327 echo '.section myfoosect, "a"' > conftest3.s
21328 echo '.byte 0' >> conftest3.s
21329 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
21330 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
21331 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
21332 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
21333 conftest2.o conftest3.o > /dev/null 2>&1; then
21334 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
21335 | sed -e '/myfoosect/!d' -e N`
21336 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
21337 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
21338 gcc_cv_ld_ro_rw_mix=read-only
21339 else
21340 gcc_cv_ld_ro_rw_mix=read-write
21344 rm -f conftest.* conftest[123].*
21346 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
21348 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
21352 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
21354 # Check if we have .[us]leb128, and support symbol arithmetic with it.
21355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
21356 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
21357 if test "${gcc_cv_as_leb128+set}" = set; then :
21358 $as_echo_n "(cached) " >&6
21359 else
21360 gcc_cv_as_leb128=no
21361 if test $in_tree_gas = yes; then
21362 if test $in_tree_gas_is_elf = yes \
21363 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
21364 then gcc_cv_as_leb128=yes
21366 elif test x$gcc_cv_as != x; then
21367 echo ' .data
21368 .uleb128 L2 - L1
21370 .uleb128 1280
21371 .sleb128 -1010
21372 L2:' > conftest.s
21373 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21375 (eval $ac_try) 2>&5
21376 ac_status=$?
21377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21378 test $ac_status = 0; }; }
21379 then
21380 # GAS versions before 2.11 do not support uleb128,
21381 # despite appearing to.
21382 # ??? There exists an elf-specific test that will crash
21383 # the assembler. Perhaps it's better to figure out whether
21384 # arbitrary sections are supported and try the test.
21385 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
21386 if echo "$as_ver" | grep GNU > /dev/null; then
21387 as_vers=`echo $as_ver | sed -n \
21388 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
21389 as_major=`expr "$as_vers" : '\([0-9]*\)'`
21390 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
21391 if test $as_major -eq 2 && test $as_minor -lt 11
21392 then :
21393 else gcc_cv_as_leb128=yes
21396 else
21397 echo "configure: failed program was" >&5
21398 cat conftest.s >&5
21400 rm -f conftest.o conftest.s
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
21404 $as_echo "$gcc_cv_as_leb128" >&6; }
21405 if test $gcc_cv_as_leb128 = yes; then
21407 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
21411 # Check if we have assembler support for unwind directives.
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
21413 $as_echo_n "checking assembler for cfi directives... " >&6; }
21414 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
21415 $as_echo_n "(cached) " >&6
21416 else
21417 gcc_cv_as_cfi_directive=no
21418 if test x$gcc_cv_as != x; then
21419 echo ' .text
21420 .cfi_startproc
21421 .cfi_offset 0, 0
21422 .cfi_same_value 1
21423 .cfi_def_cfa 1, 2
21424 .cfi_escape 1, 2, 3, 4, 5
21425 .cfi_endproc' > conftest.s
21426 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21428 (eval $ac_try) 2>&5
21429 ac_status=$?
21430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21431 test $ac_status = 0; }; }
21432 then
21433 case "$target" in
21434 *-*-solaris*)
21435 # If the linker used on Solaris (like Sun ld) isn't capable of merging
21436 # read-only and read-write sections, we need to make sure that the
21437 # assembler used emits read-write .eh_frame sections.
21438 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
21439 if test "x$gcc_cv_objdump" != x; then
21440 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
21441 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
21442 gcc_cv_as_cfi_directive=no
21443 else
21444 gcc_cv_as_cfi_directive=yes
21446 else
21447 # no objdump, err on the side of caution
21448 gcc_cv_as_cfi_directive=no
21450 else
21451 gcc_cv_as_cfi_directive=yes
21454 *-*-*)
21455 gcc_cv_as_cfi_directive=yes
21457 esac
21458 else
21459 echo "configure: failed program was" >&5
21460 cat conftest.s >&5
21462 rm -f conftest.o conftest.s
21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
21466 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
21468 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
21470 $as_echo_n "checking assembler for working cfi advance... " >&6; }
21471 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
21472 $as_echo_n "(cached) " >&6
21473 else
21474 gcc_cv_as_cfi_advance_working=no
21475 if test x$gcc_cv_as != x; then
21476 echo ' .text
21477 .cfi_startproc
21478 .cfi_adjust_cfa_offset 64
21479 .skip 512, 0
21480 .cfi_adjust_cfa_offset 128
21481 .cfi_endproc' > conftest.s
21482 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21484 (eval $ac_try) 2>&5
21485 ac_status=$?
21486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21487 test $ac_status = 0; }; }
21488 then
21490 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
21491 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
21492 gcc_cv_as_cfi_advance_working=yes
21495 else
21496 echo "configure: failed program was" >&5
21497 cat conftest.s >&5
21499 rm -f conftest.o conftest.s
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21503 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21505 else
21506 # no readelf, err on the side of caution
21507 gcc_cv_as_cfi_advance_working=no
21510 cat >>confdefs.h <<_ACEOF
21511 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21512 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21513 _ACEOF
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21517 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21518 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21519 $as_echo_n "(cached) " >&6
21520 else
21521 gcc_cv_as_cfi_personality_directive=no
21522 if test x$gcc_cv_as != x; then
21523 echo ' .text
21524 .cfi_startproc
21525 .cfi_personality 0, symbol
21526 .cfi_endproc' > conftest.s
21527 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21532 test $ac_status = 0; }; }
21533 then
21534 gcc_cv_as_cfi_personality_directive=yes
21535 else
21536 echo "configure: failed program was" >&5
21537 cat conftest.s >&5
21539 rm -f conftest.o conftest.s
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_personality_directive" >&5
21543 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21546 cat >>confdefs.h <<_ACEOF
21547 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21548 then echo 1; else echo 0; fi`
21549 _ACEOF
21552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5
21553 $as_echo_n "checking assembler for cfi sections directive... " >&6; }
21554 if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then :
21555 $as_echo_n "(cached) " >&6
21556 else
21557 gcc_cv_as_cfi_sections_directive=no
21558 if test x$gcc_cv_as != x; then
21559 echo ' .text
21560 .cfi_sections .debug_frame, .eh_frame
21561 .cfi_startproc
21562 .cfi_endproc' > conftest.s
21563 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21565 (eval $ac_try) 2>&5
21566 ac_status=$?
21567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21568 test $ac_status = 0; }; }
21569 then
21570 gcc_cv_as_cfi_sections_directive=yes
21571 else
21572 echo "configure: failed program was" >&5
21573 cat conftest.s >&5
21575 rm -f conftest.o conftest.s
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5
21579 $as_echo "$gcc_cv_as_cfi_sections_directive" >&6; }
21582 cat >>confdefs.h <<_ACEOF
21583 #define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes;
21584 then echo 1; else echo 0; fi`
21585 _ACEOF
21588 # GAS versions up to and including 2.11.0 may mis-optimize
21589 # .eh_frame data.
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21591 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21592 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21593 $as_echo_n "(cached) " >&6
21594 else
21595 gcc_cv_as_eh_frame=no
21596 if test $in_tree_gas = yes; then
21597 if test $in_tree_gas_is_elf = yes \
21598 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21599 then gcc_cv_as_eh_frame=yes
21601 elif test x$gcc_cv_as != x; then
21602 echo ' .text
21603 .LFB1:
21604 .4byte 0
21605 .L1:
21606 .4byte 0
21607 .LFE1:
21608 .section .eh_frame,"aw",@progbits
21609 __FRAME_BEGIN__:
21610 .4byte .LECIE1-.LSCIE1
21611 .LSCIE1:
21612 .4byte 0x0
21613 .byte 0x1
21614 .ascii "z\0"
21615 .byte 0x1
21616 .byte 0x78
21617 .byte 0x1a
21618 .byte 0x0
21619 .byte 0x4
21620 .4byte 1
21621 .p2align 1
21622 .LECIE1:
21623 .LSFDE1:
21624 .4byte .LEFDE1-.LASFDE1
21625 .LASFDE1:
21626 .4byte .LASFDE1-__FRAME_BEGIN__
21627 .4byte .LFB1
21628 .4byte .LFE1-.LFB1
21629 .byte 0x4
21630 .4byte .LFE1-.LFB1
21631 .byte 0x4
21632 .4byte .L1-.LFB1
21633 .LEFDE1:' > conftest.s
21634 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21636 (eval $ac_try) 2>&5
21637 ac_status=$?
21638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21639 test $ac_status = 0; }; }
21640 then
21641 cat > conftest.lit <<EOF
21642 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21643 0010 01000000 12000000 18000000 00000000 ................
21644 0020 08000000 04080000 0044 .........D
21646 cat > conftest.big <<EOF
21647 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21648 0010 00000001 00000012 00000018 00000000 ................
21649 0020 00000008 04000000 0844 .........D
21651 # If the assembler didn't choke, and we can objdump,
21652 # and we got the correct data, then succeed.
21653 # The text in the here-document typically retains its unix-style line
21654 # endings, while the output of objdump will use host line endings.
21655 # Therefore, use diff -b for the comparisons.
21656 if test x$gcc_cv_objdump != x \
21657 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21658 | tail -3 > conftest.got \
21659 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21660 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21661 then
21662 gcc_cv_as_eh_frame=yes
21663 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21665 (eval $ac_try) 2>&5
21666 ac_status=$?
21667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21668 test $ac_status = 0; }; }; then
21669 gcc_cv_as_eh_frame=buggy
21670 else
21671 # Uh oh, what do we do now?
21672 gcc_cv_as_eh_frame=no
21674 else
21675 echo "configure: failed program was" >&5
21676 cat conftest.s >&5
21678 rm -f conftest.o conftest.s
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21682 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21685 if test $gcc_cv_as_eh_frame = buggy; then
21687 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21692 $as_echo_n "checking assembler for section merging support... " >&6; }
21693 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21694 $as_echo_n "(cached) " >&6
21695 else
21696 gcc_cv_as_shf_merge=no
21697 if test $in_tree_gas = yes; then
21698 if test $in_tree_gas_is_elf = yes \
21699 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21700 then gcc_cv_as_shf_merge=yes
21702 elif test x$gcc_cv_as != x; then
21703 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21704 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21705 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21706 (eval $ac_try) 2>&5
21707 ac_status=$?
21708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21709 test $ac_status = 0; }; }
21710 then
21711 gcc_cv_as_shf_merge=yes
21712 else
21713 echo "configure: failed program was" >&5
21714 cat conftest.s >&5
21716 rm -f conftest.o conftest.s
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21720 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21722 if test $gcc_cv_as_shf_merge = no; then
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21724 $as_echo_n "checking assembler for section merging support... " >&6; }
21725 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21726 $as_echo_n "(cached) " >&6
21727 else
21728 gcc_cv_as_shf_merge=no
21729 if test $in_tree_gas = yes; then
21730 if test $in_tree_gas_is_elf = yes \
21731 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21732 then gcc_cv_as_shf_merge=yes
21734 elif test x$gcc_cv_as != x; then
21735 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21736 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21738 (eval $ac_try) 2>&5
21739 ac_status=$?
21740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21741 test $ac_status = 0; }; }
21742 then
21743 gcc_cv_as_shf_merge=yes
21744 else
21745 echo "configure: failed program was" >&5
21746 cat conftest.s >&5
21748 rm -f conftest.o conftest.s
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21752 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21756 cat >>confdefs.h <<_ACEOF
21757 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21758 _ACEOF
21761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21762 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21763 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21764 $as_echo_n "(cached) " >&6
21765 else
21766 gcc_cv_as_comdat_group=no
21767 if test $in_tree_gas = yes; then
21768 if test $in_tree_gas_is_elf = yes \
21769 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21770 then gcc_cv_as_comdat_group=yes
21772 elif test x$gcc_cv_as != x; then
21773 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21774 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21776 (eval $ac_try) 2>&5
21777 ac_status=$?
21778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21779 test $ac_status = 0; }; }
21780 then
21781 gcc_cv_as_comdat_group=yes
21782 else
21783 echo "configure: failed program was" >&5
21784 cat conftest.s >&5
21786 rm -f conftest.o conftest.s
21789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21790 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21792 if test $gcc_cv_as_comdat_group = yes; then
21793 gcc_cv_as_comdat_group_percent=no
21794 else
21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21796 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21797 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21798 $as_echo_n "(cached) " >&6
21799 else
21800 gcc_cv_as_comdat_group_percent=no
21801 if test $in_tree_gas = yes; then
21802 if test $in_tree_gas_is_elf = yes \
21803 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21804 then gcc_cv_as_comdat_group_percent=yes
21806 elif test x$gcc_cv_as != x; then
21807 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21808 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21810 (eval $ac_try) 2>&5
21811 ac_status=$?
21812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21813 test $ac_status = 0; }; }
21814 then
21815 gcc_cv_as_comdat_group_percent=yes
21816 else
21817 echo "configure: failed program was" >&5
21818 cat conftest.s >&5
21820 rm -f conftest.o conftest.s
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21824 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21827 if test $in_tree_ld = yes ; then
21828 comdat_group=no
21829 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 \
21830 && test $in_tree_ld_is_elf = yes; then
21831 comdat_group=yes
21833 elif test x"$ld_vers" != x; then
21834 comdat_group=yes
21835 if test 0"$ld_date" -lt 20050308; then
21836 if test -n "$ld_date"; then
21837 # If there was date string, but was earlier than 2005-03-08, fail
21838 comdat_group=no
21839 elif test "$ld_vers_major" -lt 2; then
21840 comdat_group=no
21841 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21842 comdat_group=no
21845 else
21846 # assume linkers other than GNU ld don't support COMDAT group
21847 comdat_group=no
21849 if test $comdat_group = no; then
21850 gcc_cv_as_comdat_group=no
21851 gcc_cv_as_comdat_group_percent=no
21854 cat >>confdefs.h <<_ACEOF
21855 #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`
21856 _ACEOF
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21860 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21861 if test "${gcc_cv_as_discriminator+set}" = set; then :
21862 $as_echo_n "(cached) " >&6
21863 else
21864 gcc_cv_as_discriminator=no
21865 if test $in_tree_gas = yes; then
21866 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21867 then gcc_cv_as_discriminator=yes
21869 elif test x$gcc_cv_as != x; then
21870 echo ' .text
21871 .file 1 "conf.c"
21872 .loc 1 1 0 discriminator 1' > conftest.s
21873 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878 test $ac_status = 0; }; }
21879 then
21880 gcc_cv_as_discriminator=yes
21881 else
21882 echo "configure: failed program was" >&5
21883 cat conftest.s >&5
21885 rm -f conftest.o conftest.s
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21889 $as_echo "$gcc_cv_as_discriminator" >&6; }
21890 if test $gcc_cv_as_discriminator = yes; then
21892 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21896 # Thread-local storage - the check is heavily parameterized.
21897 conftest_s=
21898 tls_first_major=
21899 tls_first_minor=
21900 tls_as_opt=
21901 case "$target" in
21902 alpha*-*-*)
21903 conftest_s='
21904 .section ".tdata","awT",@progbits
21905 foo: .long 25
21906 .text
21907 ldq $27,__tls_get_addr($29) !literal!1
21908 lda $16,foo($29) !tlsgd!1
21909 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21910 ldq $27,__tls_get_addr($29) !literal!2
21911 lda $16,foo($29) !tlsldm!2
21912 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21913 ldq $1,foo($29) !gotdtprel
21914 ldah $2,foo($29) !dtprelhi
21915 lda $3,foo($2) !dtprello
21916 lda $4,foo($29) !dtprel
21917 ldq $1,foo($29) !gottprel
21918 ldah $2,foo($29) !tprelhi
21919 lda $3,foo($2) !tprello
21920 lda $4,foo($29) !tprel'
21921 tls_first_major=2
21922 tls_first_minor=13
21923 tls_as_opt=--fatal-warnings
21925 cris-*-*|crisv32-*-*)
21926 conftest_s='
21927 .section ".tdata","awT",@progbits
21928 x: .long 25
21929 .text
21930 move.d x:IE,$r10
21931 nop'
21932 tls_first_major=2
21933 tls_first_minor=20
21934 tls_as_opt=--fatal-warnings
21936 frv*-*-*)
21937 conftest_s='
21938 .section ".tdata","awT",@progbits
21939 x: .long 25
21940 .text
21941 call #gettlsoff(x)'
21942 tls_first_major=2
21943 tls_first_minor=14
21945 hppa*-*-linux*)
21946 conftest_s='
21947 t1: .reg %r20
21948 t2: .reg %r21
21949 gp: .reg %r19
21950 .section ".tdata","awT",@progbits
21951 foo: .long 25
21952 .text
21953 .align 4
21954 addil LT%foo-$tls_gdidx$,gp
21955 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21956 b __tls_get_addr
21958 addil LT%foo-$tls_ldidx$,gp
21959 b __tls_get_addr
21960 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21961 addil LR%foo-$tls_dtpoff$,%ret0
21962 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21963 mfctl %cr27,%t1
21964 addil LT%foo-$tls_ieoff$,gp
21965 ldw RT%foo-$tls_ieoff$(%r1),%t2
21966 add %t1,%t2,%t3
21967 mfctl %cr27,%t1
21968 addil LR%foo-$tls_leoff$,%t1
21969 ldo RR%foo-$tls_leoff$(%r1),%t2'
21970 tls_first_major=2
21971 tls_first_minor=15
21972 tls_as_opt=--fatal-warnings
21974 arm*-*-*)
21975 conftest_s='
21976 .section ".tdata","awT",%progbits
21977 foo: .long 25
21978 .text
21979 .word foo(gottpoff)
21980 .word foo(tpoff)
21981 .word foo(tlsgd)
21982 .word foo(tlsldm)
21983 .word foo(tlsldo)'
21984 tls_first_major=2
21985 tls_first_minor=17
21987 i[34567]86-*-*)
21988 conftest_s='
21989 .section ".tdata","awT",@progbits
21990 foo: .long 25
21991 .text
21992 movl %gs:0, %eax
21993 leal foo@TLSGD(,%ebx,1), %eax
21994 leal foo@TLSLDM(%ebx), %eax
21995 leal foo@DTPOFF(%eax), %edx
21996 movl foo@GOTTPOFF(%ebx), %eax
21997 subl foo@GOTTPOFF(%ebx), %eax
21998 addl foo@GOTNTPOFF(%ebx), %eax
21999 movl foo@INDNTPOFF, %eax
22000 movl $foo@TPOFF, %eax
22001 subl $foo@TPOFF, %eax
22002 leal foo@NTPOFF(%ecx), %eax'
22003 tls_first_major=2
22004 tls_first_minor=14
22005 tls_as_opt=--fatal-warnings
22007 x86_64-*-*)
22008 conftest_s='
22009 .section ".tdata","awT",@progbits
22010 foo: .long 25
22011 .text
22012 movq %fs:0, %rax
22013 leaq foo@TLSGD(%rip), %rdi
22014 leaq foo@TLSLD(%rip), %rdi
22015 leaq foo@DTPOFF(%rax), %rdx
22016 movq foo@GOTTPOFF(%rip), %rax
22017 movq $foo@TPOFF, %rax'
22018 tls_first_major=2
22019 tls_first_minor=14
22020 tls_as_opt=--fatal-warnings
22022 ia64-*-*)
22023 conftest_s='
22024 .section ".tdata","awT",@progbits
22025 foo: data8 25
22026 .text
22027 addl r16 = @ltoff(@dtpmod(foo#)), gp
22028 addl r17 = @ltoff(@dtprel(foo#)), gp
22029 addl r18 = @ltoff(@tprel(foo#)), gp
22030 addl r19 = @dtprel(foo#), gp
22031 adds r21 = @dtprel(foo#), r13
22032 movl r23 = @dtprel(foo#)
22033 addl r20 = @tprel(foo#), gp
22034 adds r22 = @tprel(foo#), r13
22035 movl r24 = @tprel(foo#)'
22036 tls_first_major=2
22037 tls_first_minor=13
22038 tls_as_opt=--fatal-warnings
22040 mips*-*-*)
22041 conftest_s='
22042 .section .tdata,"awT",@progbits
22044 .word 2
22045 .text
22046 addiu $4, $28, %tlsgd(x)
22047 addiu $4, $28, %tlsldm(x)
22048 lui $4, %dtprel_hi(x)
22049 addiu $4, $4, %dtprel_lo(x)
22050 lw $4, %gottprel(x)($28)
22051 lui $4, %tprel_hi(x)
22052 addiu $4, $4, %tprel_lo(x)'
22053 tls_first_major=2
22054 tls_first_minor=16
22055 tls_as_opt='-32 --fatal-warnings'
22057 m68k-*-*)
22058 conftest_s='
22059 .section .tdata,"awT",@progbits
22061 .word 2
22062 .text
22063 foo:
22064 move.l x@TLSGD(%a5),%a0
22065 move.l x@TLSLDM(%a5),%a0
22066 move.l x@TLSLDO(%a5),%a0
22067 move.l x@TLSIE(%a5),%a0
22068 move.l x@TLSLE(%a5),%a0'
22069 tls_first_major=2
22070 tls_first_minor=19
22071 tls_as_opt='--fatal-warnings'
22073 powerpc-*-*)
22074 conftest_s='
22075 .section ".tdata","awT",@progbits
22076 .align 2
22077 ld0: .space 4
22078 ld1: .space 4
22079 x1: .space 4
22080 x2: .space 4
22081 x3: .space 4
22082 .text
22083 addi 3,31,ld0@got@tlsgd
22084 bl __tls_get_addr
22085 addi 3,31,x1@got@tlsld
22086 bl __tls_get_addr
22087 addi 9,3,x1@dtprel
22088 addis 9,3,x2@dtprel@ha
22089 addi 9,9,x2@dtprel@l
22090 lwz 9,x3@got@tprel(31)
22091 add 9,9,x@tls
22092 addi 9,2,x1@tprel
22093 addis 9,2,x2@tprel@ha
22094 addi 9,9,x2@tprel@l'
22095 tls_first_major=2
22096 tls_first_minor=14
22097 tls_as_opt="-a32 --fatal-warnings"
22099 powerpc64-*-*)
22100 conftest_s='
22101 .section ".tdata","awT",@progbits
22102 .align 3
22103 ld0: .space 8
22104 ld1: .space 8
22105 x1: .space 8
22106 x2: .space 8
22107 x3: .space 8
22108 .text
22109 addi 3,2,ld0@got@tlsgd
22110 bl .__tls_get_addr
22112 addi 3,2,ld1@toc
22113 bl .__tls_get_addr
22115 addi 3,2,x1@got@tlsld
22116 bl .__tls_get_addr
22118 addi 9,3,x1@dtprel
22119 bl .__tls_get_addr
22121 addis 9,3,x2@dtprel@ha
22122 addi 9,9,x2@dtprel@l
22123 bl .__tls_get_addr
22125 ld 9,x3@got@dtprel(2)
22126 add 9,9,3
22127 bl .__tls_get_addr
22128 nop'
22129 tls_first_major=2
22130 tls_first_minor=14
22131 tls_as_opt="-a64 --fatal-warnings"
22133 s390-*-*)
22134 conftest_s='
22135 .section ".tdata","awT",@progbits
22136 foo: .long 25
22137 .text
22138 .long foo@TLSGD
22139 .long foo@TLSLDM
22140 .long foo@DTPOFF
22141 .long foo@NTPOFF
22142 .long foo@GOTNTPOFF
22143 .long foo@INDNTPOFF
22144 l %r1,foo@GOTNTPOFF(%r12)
22145 l %r1,0(%r1):tls_load:foo
22146 bas %r14,0(%r1,%r13):tls_gdcall:foo
22147 bas %r14,0(%r1,%r13):tls_ldcall:foo'
22148 tls_first_major=2
22149 tls_first_minor=14
22150 tls_as_opt="-m31 --fatal-warnings"
22152 s390x-*-*)
22153 conftest_s='
22154 .section ".tdata","awT",@progbits
22155 foo: .long 25
22156 .text
22157 .quad foo@TLSGD
22158 .quad foo@TLSLDM
22159 .quad foo@DTPOFF
22160 .quad foo@NTPOFF
22161 .quad foo@GOTNTPOFF
22162 lg %r1,foo@GOTNTPOFF(%r12)
22163 larl %r1,foo@INDNTPOFF
22164 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
22165 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
22166 tls_first_major=2
22167 tls_first_minor=14
22168 tls_as_opt="-m64 -Aesame --fatal-warnings"
22170 sh-*-* | sh[34]-*-*)
22171 conftest_s='
22172 .section ".tdata","awT",@progbits
22173 foo: .long 25
22174 .text
22175 .long foo@TLSGD
22176 .long foo@TLSLDM
22177 .long foo@DTPOFF
22178 .long foo@GOTTPOFF
22179 .long foo@TPOFF'
22180 tls_first_major=2
22181 tls_first_minor=13
22182 tls_as_opt=--fatal-warnings
22184 sparc*-*-*)
22185 case "$target" in
22186 sparc*-sun-solaris2.[56789]*)
22187 # TLS was introduced in the Solaris 9 4/04 release but
22188 # we do not enable it by default on Solaris 9 either.
22189 if test "x$enable_tls" = xyes ; then
22190 on_solaris=yes
22191 else
22192 enable_tls=no;
22195 sparc*-sun-solaris2.*)
22196 on_solaris=yes
22199 on_solaris=no
22201 esac
22202 if test x$on_solaris = xyes && test x$gas_flag = xno; then
22203 conftest_s='
22204 .section ".tdata",#alloc,#write,#tls
22205 foo: .long 25
22206 .text
22207 sethi %tgd_hi22(foo), %o0
22208 add %o0, %tgd_lo10(foo), %o1
22209 add %l7, %o1, %o0, %tgd_add(foo)
22210 call __tls_get_addr, %tgd_call(foo)
22211 sethi %tldm_hi22(foo), %l1
22212 add %l1, %tldm_lo10(foo), %l2
22213 add %l7, %l2, %o0, %tldm_add(foo)
22214 call __tls_get_addr, %tldm_call(foo)
22215 sethi %tldo_hix22(foo), %l3
22216 xor %l3, %tldo_lox10(foo), %l4
22217 add %o0, %l4, %l5, %tldo_add(foo)
22218 sethi %tie_hi22(foo), %o3
22219 add %o3, %tie_lo10(foo), %o3
22220 ld [%l7 + %o3], %o2, %tie_ld(foo)
22221 add %g7, %o2, %o4, %tie_add(foo)
22222 sethi %tle_hix22(foo), %l1
22223 xor %l1, %tle_lox10(foo), %o5
22224 ld [%g7 + %o5], %o1'
22225 tls_first_major=0
22226 tls_first_minor=0
22227 else
22228 conftest_s='
22229 .section ".tdata","awT",@progbits
22230 foo: .long 25
22231 .text
22232 sethi %tgd_hi22(foo), %o0
22233 add %o0, %tgd_lo10(foo), %o1
22234 add %l7, %o1, %o0, %tgd_add(foo)
22235 call __tls_get_addr, %tgd_call(foo)
22236 sethi %tldm_hi22(foo), %l1
22237 add %l1, %tldm_lo10(foo), %l2
22238 add %l7, %l2, %o0, %tldm_add(foo)
22239 call __tls_get_addr, %tldm_call(foo)
22240 sethi %tldo_hix22(foo), %l3
22241 xor %l3, %tldo_lox10(foo), %l4
22242 add %o0, %l4, %l5, %tldo_add(foo)
22243 sethi %tie_hi22(foo), %o3
22244 add %o3, %tie_lo10(foo), %o3
22245 ld [%l7 + %o3], %o2, %tie_ld(foo)
22246 add %g7, %o2, %o4, %tie_add(foo)
22247 sethi %tle_hix22(foo), %l1
22248 xor %l1, %tle_lox10(foo), %o5
22249 ld [%g7 + %o5], %o1'
22250 tls_first_major=2
22251 tls_first_minor=14
22252 tls_as_opt="-32 --fatal-warnings"
22255 xtensa*-*-*)
22256 conftest_s='
22257 .section ".tdata","awT",@progbits
22258 foo: .long 25
22259 .text
22260 movi a8, foo@TLSFUNC
22261 movi a10, foo@TLSARG
22262 callx8.tls a8, foo@TLSCALL'
22263 tls_first_major=2
22264 tls_first_minor=19
22266 esac
22267 set_have_as_tls=no
22268 if test "x$enable_tls" = xno ; then
22269 : # TLS explicitly disabled.
22270 elif test "x$enable_tls" = xyes ; then
22271 set_have_as_tls=yes # TLS explicitly enabled.
22272 elif test -z "$tls_first_major"; then
22273 : # If we don't have a check, assume no support.
22274 else
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
22276 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
22277 if test "${gcc_cv_as_tls+set}" = set; then :
22278 $as_echo_n "(cached) " >&6
22279 else
22280 gcc_cv_as_tls=no
22281 if test $in_tree_gas = yes; then
22282 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
22283 then gcc_cv_as_tls=yes
22285 elif test x$gcc_cv_as != x; then
22286 echo "$conftest_s" > conftest.s
22287 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
22288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22292 test $ac_status = 0; }; }
22293 then
22294 gcc_cv_as_tls=yes
22295 else
22296 echo "configure: failed program was" >&5
22297 cat conftest.s >&5
22299 rm -f conftest.o conftest.s
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
22303 $as_echo "$gcc_cv_as_tls" >&6; }
22304 if test $gcc_cv_as_tls = yes; then
22305 set_have_as_tls=yes
22308 if test $set_have_as_tls = yes ; then
22310 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
22314 # Target-specific assembler checks.
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
22317 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
22318 gcc_cv_ld_static_dynamic=no
22319 if test $in_tree_ld = yes ; then
22320 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
22321 gcc_cv_ld_static_dynamic=yes
22323 elif test x$gcc_cv_ld != x; then
22324 # Check if linker supports -Bstatic/-Bdynamic option
22325 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
22326 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
22327 gcc_cv_ld_static_dynamic=yes
22330 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
22332 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
22336 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
22338 if test x"$demangler_in_ld" = xyes; then
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
22340 $as_echo_n "checking linker --demangle support... " >&6; }
22341 gcc_cv_ld_demangle=no
22342 if test $in_tree_ld = yes; then
22343 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 \
22344 gcc_cv_ld_demangle=yes
22346 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
22347 # Check if the GNU linker supports --demangle option
22348 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
22349 gcc_cv_ld_demangle=yes
22352 if test x"$gcc_cv_ld_demangle" = xyes; then
22354 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
22358 $as_echo "$gcc_cv_ld_demangle" >&6; }
22361 case "$target" in
22362 # All TARGET_ABI_OSF targets.
22363 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
22365 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
22366 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22368 else
22369 gcc_cv_as_alpha_explicit_relocs=no
22370 if test $in_tree_gas = yes; then
22371 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
22372 then gcc_cv_as_alpha_explicit_relocs=yes
22374 elif test x$gcc_cv_as != x; then
22375 echo ' .set nomacro
22376 .text
22377 extbl $3, $2, $3 !lituse_bytoff!1
22378 ldq $2, a($29) !literal!1
22379 ldq $4, b($29) !literal!2
22380 ldq_u $3, 0($2) !lituse_base!1
22381 ldq $27, f($29) !literal!5
22382 jsr $26, ($27), f !lituse_jsr!5
22383 ldah $29, 0($26) !gpdisp!3
22384 lda $0, c($29) !gprel
22385 ldah $1, d($29) !gprelhigh
22386 lda $1, d($1) !gprellow
22387 lda $29, 0($29) !gpdisp!3' > conftest.s
22388 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22390 (eval $ac_try) 2>&5
22391 ac_status=$?
22392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22393 test $ac_status = 0; }; }
22394 then
22395 gcc_cv_as_alpha_explicit_relocs=yes
22396 else
22397 echo "configure: failed program was" >&5
22398 cat conftest.s >&5
22400 rm -f conftest.o conftest.s
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
22404 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
22405 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
22407 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
22411 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
22412 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
22413 $as_echo_n "(cached) " >&6
22414 else
22415 gcc_cv_as_alpha_jsrdirect_relocs=no
22416 if test $in_tree_gas = yes; then
22417 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
22418 then gcc_cv_as_alpha_jsrdirect_relocs=yes
22420 elif test x$gcc_cv_as != x; then
22421 echo ' .set nomacro
22422 .text
22423 ldq $27, a($29) !literal!1
22424 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
22425 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22427 (eval $ac_try) 2>&5
22428 ac_status=$?
22429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22430 test $ac_status = 0; }; }
22431 then
22432 gcc_cv_as_alpha_jsrdirect_relocs=yes
22433 else
22434 echo "configure: failed program was" >&5
22435 cat conftest.s >&5
22437 rm -f conftest.o conftest.s
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
22441 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
22442 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
22444 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
22449 cris-*-*)
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
22451 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
22452 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
22453 $as_echo_n "(cached) " >&6
22454 else
22455 gcc_cv_as_cris_no_mul_bug=no
22456 if test $in_tree_gas = yes; then
22457 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22458 then gcc_cv_as_cris_no_mul_bug=yes
22460 elif test x$gcc_cv_as != x; then
22461 echo '.text' > conftest.s
22462 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
22463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22467 test $ac_status = 0; }; }
22468 then
22469 gcc_cv_as_cris_no_mul_bug=yes
22470 else
22471 echo "configure: failed program was" >&5
22472 cat conftest.s >&5
22474 rm -f conftest.o conftest.s
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
22478 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
22479 if test $gcc_cv_as_cris_no_mul_bug = yes; then
22481 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
22486 sparc*-*-*)
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
22488 $as_echo_n "checking assembler for .register... " >&6; }
22489 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
22490 $as_echo_n "(cached) " >&6
22491 else
22492 gcc_cv_as_sparc_register_op=no
22493 if test x$gcc_cv_as != x; then
22494 echo '.register %g2, #scratch' > conftest.s
22495 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22497 (eval $ac_try) 2>&5
22498 ac_status=$?
22499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22500 test $ac_status = 0; }; }
22501 then
22502 gcc_cv_as_sparc_register_op=yes
22503 else
22504 echo "configure: failed program was" >&5
22505 cat conftest.s >&5
22507 rm -f conftest.o conftest.s
22510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
22511 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
22512 if test $gcc_cv_as_sparc_register_op = yes; then
22514 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
22519 $as_echo_n "checking assembler for -relax option... " >&6; }
22520 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
22521 $as_echo_n "(cached) " >&6
22522 else
22523 gcc_cv_as_sparc_relax=no
22524 if test x$gcc_cv_as != x; then
22525 echo '.text' > conftest.s
22526 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
22527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22531 test $ac_status = 0; }; }
22532 then
22533 gcc_cv_as_sparc_relax=yes
22534 else
22535 echo "configure: failed program was" >&5
22536 cat conftest.s >&5
22538 rm -f conftest.o conftest.s
22541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22542 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22543 if test $gcc_cv_as_sparc_relax = yes; then
22545 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22550 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22551 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22552 $as_echo_n "(cached) " >&6
22553 else
22554 gcc_cv_as_sparc_ua_pcrel=no
22555 if test x$gcc_cv_as != x; then
22556 echo '.text
22557 foo:
22559 .data
22560 .align 4
22561 .byte 0
22562 .uaword %r_disp32(foo)' > conftest.s
22563 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22568 test $ac_status = 0; }; }
22569 then
22570 if test x$gcc_cv_ld != x \
22571 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22572 gcc_cv_as_sparc_ua_pcrel=yes
22574 rm -f conftest
22575 else
22576 echo "configure: failed program was" >&5
22577 cat conftest.s >&5
22579 rm -f conftest.o conftest.s
22582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22583 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22584 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22586 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22590 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22591 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22592 $as_echo_n "(cached) " >&6
22593 else
22594 gcc_cv_as_sparc_ua_pcrel_hidden=no
22595 if test x$gcc_cv_as != x; then
22596 echo '.data
22597 .align 4
22598 .byte 0x31
22599 .uaword %r_disp32(foo)
22600 .byte 0x32, 0x33, 0x34
22601 .global foo
22602 .hidden foo
22603 foo:
22604 .skip 4' > conftest.s
22605 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22606 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22607 (eval $ac_try) 2>&5
22608 ac_status=$?
22609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22610 test $ac_status = 0; }; }
22611 then
22612 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22613 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22614 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22615 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22616 if $gcc_cv_objdump -R conftest 2> /dev/null \
22617 | grep 'DISP32' > /dev/null 2>&1; then
22619 else
22620 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22623 rm -f conftest
22624 else
22625 echo "configure: failed program was" >&5
22626 cat conftest.s >&5
22628 rm -f conftest.o conftest.s
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22632 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22633 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22635 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22639 fi # unaligned pcrel relocs
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22642 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22643 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22644 $as_echo_n "(cached) " >&6
22645 else
22646 gcc_cv_as_sparc_offsetable_lo10=no
22647 if test x$gcc_cv_as != x; then
22648 echo '.text
22649 or %g1, %lo(ab) + 12, %g1
22650 or %g1, %lo(ab + 12), %g1' > conftest.s
22651 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22653 (eval $ac_try) 2>&5
22654 ac_status=$?
22655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22656 test $ac_status = 0; }; }
22657 then
22658 if test x$gcc_cv_objdump != x \
22659 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22660 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22661 gcc_cv_as_sparc_offsetable_lo10=yes
22663 else
22664 echo "configure: failed program was" >&5
22665 cat conftest.s >&5
22667 rm -f conftest.o conftest.s
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22671 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22672 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22674 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22679 i[34567]86-*-* | x86_64-*-*)
22680 case $target_os in
22681 cygwin* | pe | mingw32*)
22682 # Recent binutils allows the three-operand form of ".comm" on PE. This
22683 # definition is used unconditionally to initialise the default state of
22684 # the target option variable that governs usage of the feature.
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22686 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22687 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22688 $as_echo_n "(cached) " >&6
22689 else
22690 gcc_cv_as_comm_has_align=no
22691 if test $in_tree_gas = yes; then
22692 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22693 then gcc_cv_as_comm_has_align=yes
22695 elif test x$gcc_cv_as != x; then
22696 echo '.comm foo,1,32' > conftest.s
22697 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22699 (eval $ac_try) 2>&5
22700 ac_status=$?
22701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22702 test $ac_status = 0; }; }
22703 then
22704 gcc_cv_as_comm_has_align=yes
22705 else
22706 echo "configure: failed program was" >&5
22707 cat conftest.s >&5
22709 rm -f conftest.o conftest.s
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22713 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22716 cat >>confdefs.h <<_ACEOF
22717 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22718 _ACEOF
22720 # Used for DWARF 2 in PE
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22722 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22723 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22724 $as_echo_n "(cached) " >&6
22725 else
22726 gcc_cv_as_ix86_pe_secrel32=no
22727 if test $in_tree_gas = yes; then
22728 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22729 then gcc_cv_as_ix86_pe_secrel32=yes
22731 elif test x$gcc_cv_as != x; then
22732 echo '.text
22733 foo: nop
22734 .data
22735 .secrel32 foo' > conftest.s
22736 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22738 (eval $ac_try) 2>&5
22739 ac_status=$?
22740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22741 test $ac_status = 0; }; }
22742 then
22743 if test x$gcc_cv_ld != x \
22744 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22745 gcc_cv_as_ix86_pe_secrel32=yes
22747 rm -f conftest
22748 else
22749 echo "configure: failed program was" >&5
22750 cat conftest.s >&5
22752 rm -f conftest.o conftest.s
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22756 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22757 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22759 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22763 esac
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22766 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22767 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22768 $as_echo_n "(cached) " >&6
22769 else
22770 gcc_cv_as_ix86_filds=no
22771 if test x$gcc_cv_as != x; then
22772 echo 'filds mem; fists mem' > conftest.s
22773 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22775 (eval $ac_try) 2>&5
22776 ac_status=$?
22777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22778 test $ac_status = 0; }; }
22779 then
22780 gcc_cv_as_ix86_filds=yes
22781 else
22782 echo "configure: failed program was" >&5
22783 cat conftest.s >&5
22785 rm -f conftest.o conftest.s
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22789 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22790 if test $gcc_cv_as_ix86_filds = yes; then
22792 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22797 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22798 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22799 $as_echo_n "(cached) " >&6
22800 else
22801 gcc_cv_as_ix86_fildq=no
22802 if test x$gcc_cv_as != x; then
22803 echo 'fildq mem; fistpq mem' > conftest.s
22804 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22806 (eval $ac_try) 2>&5
22807 ac_status=$?
22808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22809 test $ac_status = 0; }; }
22810 then
22811 gcc_cv_as_ix86_fildq=yes
22812 else
22813 echo "configure: failed program was" >&5
22814 cat conftest.s >&5
22816 rm -f conftest.o conftest.s
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22820 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22821 if test $gcc_cv_as_ix86_fildq = yes; then
22823 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22828 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22829 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22830 $as_echo_n "(cached) " >&6
22831 else
22832 gcc_cv_as_ix86_cmov_sun_syntax=no
22833 if test x$gcc_cv_as != x; then
22834 echo 'cmovl.l %edx, %eax' > conftest.s
22835 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22836 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22840 test $ac_status = 0; }; }
22841 then
22842 gcc_cv_as_ix86_cmov_sun_syntax=yes
22843 else
22844 echo "configure: failed program was" >&5
22845 cat conftest.s >&5
22847 rm -f conftest.o conftest.s
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22851 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22852 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22854 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22859 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22860 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22861 $as_echo_n "(cached) " >&6
22862 else
22863 gcc_cv_as_ix86_ffreep=no
22864 if test x$gcc_cv_as != x; then
22865 echo 'ffreep %st(1)' > conftest.s
22866 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22868 (eval $ac_try) 2>&5
22869 ac_status=$?
22870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22871 test $ac_status = 0; }; }
22872 then
22873 gcc_cv_as_ix86_ffreep=yes
22874 else
22875 echo "configure: failed program was" >&5
22876 cat conftest.s >&5
22878 rm -f conftest.o conftest.s
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22882 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22883 if test $gcc_cv_as_ix86_ffreep = yes; then
22885 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22890 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22891 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22892 $as_echo_n "(cached) " >&6
22893 else
22894 gcc_cv_as_ix86_sahf=no
22895 if test x$gcc_cv_as != x; then
22896 echo 'sahf' > conftest.s
22897 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22899 (eval $ac_try) 2>&5
22900 ac_status=$?
22901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22902 test $ac_status = 0; }; }
22903 then
22904 gcc_cv_as_ix86_sahf=yes
22905 else
22906 echo "configure: failed program was" >&5
22907 cat conftest.s >&5
22909 rm -f conftest.o conftest.s
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22913 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22914 if test $gcc_cv_as_ix86_sahf = yes; then
22916 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22921 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22922 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22923 $as_echo_n "(cached) " >&6
22924 else
22925 gcc_cv_as_ix86_diff_sect_delta=no
22926 if test x$gcc_cv_as != x; then
22927 echo '.section .rodata
22928 .L1:
22929 .long .L2-.L1
22930 .long .L3-.L1
22931 .text
22932 .L3: nop
22933 .L2: nop' > conftest.s
22934 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22936 (eval $ac_try) 2>&5
22937 ac_status=$?
22938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22939 test $ac_status = 0; }; }
22940 then
22941 gcc_cv_as_ix86_diff_sect_delta=yes
22942 else
22943 echo "configure: failed program was" >&5
22944 cat conftest.s >&5
22946 rm -f conftest.o conftest.s
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22950 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22951 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22953 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22957 # This one is used unconditionally by i386.[ch]; it is to be defined
22958 # to 1 if the feature is present, 0 otherwise.
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22960 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22961 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22962 $as_echo_n "(cached) " >&6
22963 else
22964 gcc_cv_as_ix86_gotoff_in_data=no
22965 if test $in_tree_gas = yes; then
22966 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22967 then gcc_cv_as_ix86_gotoff_in_data=yes
22969 elif test x$gcc_cv_as != x; then
22970 echo ' .text
22971 .L0:
22973 .data
22974 .long .L0@GOTOFF' > conftest.s
22975 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22977 (eval $ac_try) 2>&5
22978 ac_status=$?
22979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22980 test $ac_status = 0; }; }
22981 then
22982 gcc_cv_as_ix86_gotoff_in_data=yes
22983 else
22984 echo "configure: failed program was" >&5
22985 cat conftest.s >&5
22987 rm -f conftest.o conftest.s
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22991 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22994 cat >>confdefs.h <<_ACEOF
22995 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22996 _ACEOF
23000 ia64*-*-*)
23001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
23002 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
23003 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
23004 $as_echo_n "(cached) " >&6
23005 else
23006 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
23007 if test $in_tree_gas = yes; then
23008 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23009 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23011 elif test x$gcc_cv_as != x; then
23012 echo ' .text
23013 addl r15 = @ltoffx(x#), gp
23015 ld8.mov r16 = [r15], x#' > conftest.s
23016 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23018 (eval $ac_try) 2>&5
23019 ac_status=$?
23020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23021 test $ac_status = 0; }; }
23022 then
23023 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
23024 else
23025 echo "configure: failed program was" >&5
23026 cat conftest.s >&5
23028 rm -f conftest.o conftest.s
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
23032 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
23033 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
23035 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
23041 powerpc*-*-*)
23042 case $target in
23043 *-*-aix*) conftest_s=' .machine "pwr5"
23044 .csect .text[PR]
23045 mfcr 3,128';;
23046 *-*-darwin*)
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
23048 $as_echo_n "checking assembler for .machine directive support... " >&6; }
23049 if test "${gcc_cv_as_machine_directive+set}" = set; then :
23050 $as_echo_n "(cached) " >&6
23051 else
23052 gcc_cv_as_machine_directive=no
23053 if test x$gcc_cv_as != x; then
23054 echo ' .machine ppc7400' > conftest.s
23055 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23057 (eval $ac_try) 2>&5
23058 ac_status=$?
23059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23060 test $ac_status = 0; }; }
23061 then
23062 gcc_cv_as_machine_directive=yes
23063 else
23064 echo "configure: failed program was" >&5
23065 cat conftest.s >&5
23067 rm -f conftest.o conftest.s
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
23071 $as_echo "$gcc_cv_as_machine_directive" >&6; }
23073 if test x$gcc_cv_as_machine_directive != xyes; then
23074 echo "*** This target requires an assembler supporting \".machine\"" >&2
23075 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
23076 test x$build = x$target && exit 1
23078 conftest_s=' .text
23079 mfcr r3,128';;
23080 *) conftest_s=' .machine power4
23081 .text
23082 mfcr 3,128';;
23083 esac
23085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
23086 $as_echo_n "checking assembler for mfcr field support... " >&6; }
23087 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
23088 $as_echo_n "(cached) " >&6
23089 else
23090 gcc_cv_as_powerpc_mfcrf=no
23091 if test $in_tree_gas = yes; then
23092 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23093 then gcc_cv_as_powerpc_mfcrf=yes
23095 elif test x$gcc_cv_as != x; then
23096 echo "$conftest_s" > conftest.s
23097 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23099 (eval $ac_try) 2>&5
23100 ac_status=$?
23101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23102 test $ac_status = 0; }; }
23103 then
23104 gcc_cv_as_powerpc_mfcrf=yes
23105 else
23106 echo "configure: failed program was" >&5
23107 cat conftest.s >&5
23109 rm -f conftest.o conftest.s
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfcrf" >&5
23113 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
23114 if test $gcc_cv_as_powerpc_mfcrf = yes; then
23116 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
23120 case $target in
23121 *-*-aix*) conftest_s=' .machine "pwr5"
23122 .csect .text[PR]
23123 popcntb 3,3';;
23124 *) conftest_s=' .machine power5
23125 .text
23126 popcntb 3,3';;
23127 esac
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
23130 $as_echo_n "checking assembler for popcntb support... " >&6; }
23131 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
23132 $as_echo_n "(cached) " >&6
23133 else
23134 gcc_cv_as_powerpc_popcntb=no
23135 if test $in_tree_gas = yes; then
23136 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23137 then gcc_cv_as_powerpc_popcntb=yes
23139 elif test x$gcc_cv_as != x; then
23140 echo "$conftest_s" > conftest.s
23141 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23143 (eval $ac_try) 2>&5
23144 ac_status=$?
23145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23146 test $ac_status = 0; }; }
23147 then
23148 gcc_cv_as_powerpc_popcntb=yes
23149 else
23150 echo "configure: failed program was" >&5
23151 cat conftest.s >&5
23153 rm -f conftest.o conftest.s
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
23157 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
23158 if test $gcc_cv_as_powerpc_popcntb = yes; then
23160 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
23164 case $target in
23165 *-*-aix*) conftest_s=' .machine "pwr5x"
23166 .csect .text[PR]
23167 frin 1,1';;
23168 *) conftest_s=' .machine power5
23169 .text
23170 frin 1,1';;
23171 esac
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
23174 $as_echo_n "checking assembler for fp round support... " >&6; }
23175 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
23176 $as_echo_n "(cached) " >&6
23177 else
23178 gcc_cv_as_powerpc_fprnd=no
23179 if test $in_tree_gas = yes; then
23180 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23181 then gcc_cv_as_powerpc_fprnd=yes
23183 elif test x$gcc_cv_as != x; then
23184 echo "$conftest_s" > conftest.s
23185 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23187 (eval $ac_try) 2>&5
23188 ac_status=$?
23189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23190 test $ac_status = 0; }; }
23191 then
23192 gcc_cv_as_powerpc_fprnd=yes
23193 else
23194 echo "configure: failed program was" >&5
23195 cat conftest.s >&5
23197 rm -f conftest.o conftest.s
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_fprnd" >&5
23201 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
23202 if test $gcc_cv_as_powerpc_fprnd = yes; then
23204 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
23208 case $target in
23209 *-*-aix*) conftest_s=' .machine "pwr6"
23210 .csect .text[PR]
23211 mffgpr 1,3';;
23212 *) conftest_s=' .machine power6
23213 .text
23214 mffgpr 1,3';;
23215 esac
23217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
23218 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
23219 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
23220 $as_echo_n "(cached) " >&6
23221 else
23222 gcc_cv_as_powerpc_mfpgpr=no
23223 if test $in_tree_gas = yes; then
23224 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23225 then gcc_cv_as_powerpc_mfpgpr=yes
23227 elif test x$gcc_cv_as != x; then
23228 echo "$conftest_s" > conftest.s
23229 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23234 test $ac_status = 0; }; }
23235 then
23236 gcc_cv_as_powerpc_mfpgpr=yes
23237 else
23238 echo "configure: failed program was" >&5
23239 cat conftest.s >&5
23241 rm -f conftest.o conftest.s
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
23245 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
23246 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
23248 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
23252 case $target in
23253 *-*-aix*) conftest_s=' .csect .text[PR]
23254 LCF..0:
23255 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
23256 *-*-darwin*)
23257 conftest_s=' .text
23258 LCF0:
23259 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
23260 *) conftest_s=' .text
23261 .LCF0:
23262 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
23263 esac
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
23266 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
23267 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
23268 $as_echo_n "(cached) " >&6
23269 else
23270 gcc_cv_as_powerpc_rel16=no
23271 if test $in_tree_gas = yes; then
23272 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
23273 then gcc_cv_as_powerpc_rel16=yes
23275 elif test x$gcc_cv_as != x; then
23276 echo "$conftest_s" > conftest.s
23277 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23279 (eval $ac_try) 2>&5
23280 ac_status=$?
23281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23282 test $ac_status = 0; }; }
23283 then
23284 gcc_cv_as_powerpc_rel16=yes
23285 else
23286 echo "configure: failed program was" >&5
23287 cat conftest.s >&5
23289 rm -f conftest.o conftest.s
23292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
23293 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
23294 if test $gcc_cv_as_powerpc_rel16 = yes; then
23296 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
23300 case $target in
23301 *-*-aix*) conftest_s=' .machine "pwr6"
23302 .csect .text[PR]
23303 cmpb 3,4,5';;
23304 *) conftest_s=' .machine power6
23305 .text
23306 cmpb 3,4,5';;
23307 esac
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
23310 $as_echo_n "checking assembler for compare bytes support... " >&6; }
23311 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
23312 $as_echo_n "(cached) " >&6
23313 else
23314 gcc_cv_as_powerpc_cmpb=no
23315 if test $in_tree_gas = yes; then
23316 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23317 then gcc_cv_as_powerpc_cmpb=yes
23319 elif test x$gcc_cv_as != x; then
23320 echo "$conftest_s" > conftest.s
23321 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23326 test $ac_status = 0; }; }
23327 then
23328 gcc_cv_as_powerpc_cmpb=yes
23329 else
23330 echo "configure: failed program was" >&5
23331 cat conftest.s >&5
23333 rm -f conftest.o conftest.s
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
23337 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
23338 if test $gcc_cv_as_powerpc_cmpb = yes; then
23340 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
23344 case $target in
23345 *-*-aix*) conftest_s=' .machine "pwr6"
23346 .csect .text[PR]
23347 dadd 1,2,3';;
23348 *) conftest_s=' .machine power6
23349 .text
23350 dadd 1,2,3';;
23351 esac
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
23354 $as_echo_n "checking assembler for decimal float support... " >&6; }
23355 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
23356 $as_echo_n "(cached) " >&6
23357 else
23358 gcc_cv_as_powerpc_dfp=no
23359 if test $in_tree_gas = yes; then
23360 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23361 then gcc_cv_as_powerpc_dfp=yes
23363 elif test x$gcc_cv_as != x; then
23364 echo "$conftest_s" > conftest.s
23365 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23367 (eval $ac_try) 2>&5
23368 ac_status=$?
23369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23370 test $ac_status = 0; }; }
23371 then
23372 gcc_cv_as_powerpc_dfp=yes
23373 else
23374 echo "configure: failed program was" >&5
23375 cat conftest.s >&5
23377 rm -f conftest.o conftest.s
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_dfp" >&5
23381 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
23382 if test $gcc_cv_as_powerpc_dfp = yes; then
23384 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
23388 case $target in
23389 *-*-aix*) conftest_s=' .machine "pwr7"
23390 .csect .text[PR]
23391 lxvd2x 1,2,3';;
23392 *) conftest_s=' .machine power7
23393 .text
23394 lxvd2x 1,2,3';;
23395 esac
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
23398 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
23399 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
23400 $as_echo_n "(cached) " >&6
23401 else
23402 gcc_cv_as_powerpc_vsx=no
23403 if test $in_tree_gas = yes; then
23404 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23405 then gcc_cv_as_powerpc_vsx=yes
23407 elif test x$gcc_cv_as != x; then
23408 echo "$conftest_s" > conftest.s
23409 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23411 (eval $ac_try) 2>&5
23412 ac_status=$?
23413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23414 test $ac_status = 0; }; }
23415 then
23416 gcc_cv_as_powerpc_vsx=yes
23417 else
23418 echo "configure: failed program was" >&5
23419 cat conftest.s >&5
23421 rm -f conftest.o conftest.s
23424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
23425 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
23426 if test $gcc_cv_as_powerpc_vsx = yes; then
23428 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
23432 case $target in
23433 *-*-aix*) conftest_s=' .machine "pwr7"
23434 .csect .text[PR]
23435 popcntd 3,3';;
23436 *) conftest_s=' .machine power7
23437 .text
23438 popcntd 3,3';;
23439 esac
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
23442 $as_echo_n "checking assembler for popcntd support... " >&6; }
23443 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
23444 $as_echo_n "(cached) " >&6
23445 else
23446 gcc_cv_as_powerpc_popcntd=no
23447 if test $in_tree_gas = yes; then
23448 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23449 then gcc_cv_as_powerpc_popcntd=yes
23451 elif test x$gcc_cv_as != x; then
23452 echo "$conftest_s" > conftest.s
23453 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23455 (eval $ac_try) 2>&5
23456 ac_status=$?
23457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23458 test $ac_status = 0; }; }
23459 then
23460 gcc_cv_as_powerpc_popcntd=yes
23461 else
23462 echo "configure: failed program was" >&5
23463 cat conftest.s >&5
23465 rm -f conftest.o conftest.s
23468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
23469 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
23470 if test $gcc_cv_as_powerpc_popcntd = yes; then
23472 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
23476 case $target in
23477 *-*-aix*) conftest_s=' .csect .text[PR]
23478 lwsync';;
23479 *) conftest_s=' .text
23480 lwsync';;
23481 esac
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
23484 $as_echo_n "checking assembler for lwsync support... " >&6; }
23485 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
23486 $as_echo_n "(cached) " >&6
23487 else
23488 gcc_cv_as_powerpc_lwsync=no
23489 if test $in_tree_gas = yes; then
23490 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
23491 then gcc_cv_as_powerpc_lwsync=yes
23493 elif test x$gcc_cv_as != x; then
23494 echo "$conftest_s" > conftest.s
23495 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
23496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23497 (eval $ac_try) 2>&5
23498 ac_status=$?
23499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23500 test $ac_status = 0; }; }
23501 then
23502 gcc_cv_as_powerpc_lwsync=yes
23503 else
23504 echo "configure: failed program was" >&5
23505 cat conftest.s >&5
23507 rm -f conftest.o conftest.s
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
23511 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
23512 if test $gcc_cv_as_powerpc_lwsync = yes; then
23514 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23519 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23520 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
23521 $as_echo_n "(cached) " >&6
23522 else
23523 gcc_cv_as_powerpc_gnu_attribute=no
23524 if test $in_tree_gas = yes; then
23525 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23526 then gcc_cv_as_powerpc_gnu_attribute=yes
23528 elif test x$gcc_cv_as != x; then
23529 echo '.gnu_attribute 4,1' > conftest.s
23530 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23532 (eval $ac_try) 2>&5
23533 ac_status=$?
23534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23535 test $ac_status = 0; }; }
23536 then
23537 gcc_cv_as_powerpc_gnu_attribute=yes
23538 else
23539 echo "configure: failed program was" >&5
23540 cat conftest.s >&5
23542 rm -f conftest.o conftest.s
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23546 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23547 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23549 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23554 $as_echo_n "checking assembler for tls marker support... " >&6; }
23555 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23556 $as_echo_n "(cached) " >&6
23557 else
23558 gcc_cv_as_powerpc_tls_markers=no
23559 if test $in_tree_gas = yes; then
23560 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23561 then gcc_cv_as_powerpc_tls_markers=yes
23563 elif test x$gcc_cv_as != x; then
23564 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23565 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23567 (eval $ac_try) 2>&5
23568 ac_status=$?
23569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23570 test $ac_status = 0; }; }
23571 then
23572 gcc_cv_as_powerpc_tls_markers=yes
23573 else
23574 echo "configure: failed program was" >&5
23575 cat conftest.s >&5
23577 rm -f conftest.o conftest.s
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23581 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23582 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23584 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23589 mips*-*-*)
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23591 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23592 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23593 $as_echo_n "(cached) " >&6
23594 else
23595 gcc_cv_as_mips_explicit_relocs=no
23596 if test $in_tree_gas = yes; then
23597 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23598 then gcc_cv_as_mips_explicit_relocs=yes
23600 elif test x$gcc_cv_as != x; then
23601 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23602 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23604 (eval $ac_try) 2>&5
23605 ac_status=$?
23606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23607 test $ac_status = 0; }; }
23608 then
23609 gcc_cv_as_mips_explicit_relocs=yes
23610 else
23611 echo "configure: failed program was" >&5
23612 cat conftest.s >&5
23614 rm -f conftest.o conftest.s
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23618 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23619 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23620 if test x$target_cpu_default = x
23621 then target_cpu_default=MASK_EXPLICIT_RELOCS
23622 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23626 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23627 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23628 $as_echo_n "(cached) " >&6
23629 else
23630 gcc_cv_as_mips_no_shared=no
23631 if test $in_tree_gas = yes; then
23632 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23633 then gcc_cv_as_mips_no_shared=yes
23635 elif test x$gcc_cv_as != x; then
23636 echo 'nop' > conftest.s
23637 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23639 (eval $ac_try) 2>&5
23640 ac_status=$?
23641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23642 test $ac_status = 0; }; }
23643 then
23644 gcc_cv_as_mips_no_shared=yes
23645 else
23646 echo "configure: failed program was" >&5
23647 cat conftest.s >&5
23649 rm -f conftest.o conftest.s
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23653 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23654 if test $gcc_cv_as_mips_no_shared = yes; then
23656 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23661 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23662 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23663 $as_echo_n "(cached) " >&6
23664 else
23665 gcc_cv_as_mips_gnu_attribute=no
23666 if test $in_tree_gas = yes; then
23667 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23668 then gcc_cv_as_mips_gnu_attribute=yes
23670 elif test x$gcc_cv_as != x; then
23671 echo '.gnu_attribute 4,1' > conftest.s
23672 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23674 (eval $ac_try) 2>&5
23675 ac_status=$?
23676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23677 test $ac_status = 0; }; }
23678 then
23679 gcc_cv_as_mips_gnu_attribute=yes
23680 else
23681 echo "configure: failed program was" >&5
23682 cat conftest.s >&5
23684 rm -f conftest.o conftest.s
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23688 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23689 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23691 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23696 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23697 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23698 $as_echo_n "(cached) " >&6
23699 else
23700 gcc_cv_as_mips_dtprelword=no
23701 if test $in_tree_gas = yes; then
23702 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23703 then gcc_cv_as_mips_dtprelword=yes
23705 elif test x$gcc_cv_as != x; then
23706 echo '.section .tdata,"awT",@progbits
23708 .word 2
23709 .text
23710 .dtprelword x+0x8000' > conftest.s
23711 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23713 (eval $ac_try) 2>&5
23714 ac_status=$?
23715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23716 test $ac_status = 0; }; }
23717 then
23718 gcc_cv_as_mips_dtprelword=yes
23719 else
23720 echo "configure: failed program was" >&5
23721 cat conftest.s >&5
23723 rm -f conftest.o conftest.s
23726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23727 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23728 if test $gcc_cv_as_mips_dtprelword = yes; then
23730 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker for explicit JALR relocation" >&5
23735 $as_echo_n "checking assembler and linker for explicit JALR relocation... " >&6; }
23736 gcc_cv_as_ld_jalr_reloc=no
23737 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23738 if test $in_tree_ld = yes ; then
23739 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 \
23740 && test $in_tree_ld_is_elf = yes; then
23741 gcc_cv_as_ld_jalr_reloc=yes
23743 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x; then
23744 echo ' .ent x' > conftest.s
23745 echo 'x: ld $2,%got_disp(y)($3)' >> conftest.s
23746 echo ' ld $25,%call16(y)($28)' >> conftest.s
23747 echo ' .reloc 1f,R_MIPS_JALR,y' >> conftest.s
23748 echo '1: jalr $25' >> conftest.s
23749 echo ' .reloc 1f,R_MIPS_JALR,x' >> conftest.s
23750 echo '1: jalr $25' >> conftest.s
23751 echo ' .end x' >> conftest.s
23752 if $gcc_cv_as -o conftest.o conftest.s >/dev/null 2>&5 \
23753 && $gcc_cv_ld -shared -o conftest.so conftest.o >/dev/null 2>&5; then
23754 if $gcc_cv_objdump -d conftest.so | grep -q jalr \
23755 && $gcc_cv_objdump -d conftest.so | grep -q "bal.*<x>"; then
23756 gcc_cv_as_ld_jalr_reloc=yes
23759 rm -f conftest.*
23762 if test $gcc_cv_as_ld_jalr_reloc = yes; then
23763 if test x$target_cpu_default = x; then
23764 target_cpu_default=MASK_RELAX_PIC_CALLS
23765 else
23766 target_cpu_default="($target_cpu_default)|MASK_RELAX_PIC_CALLS"
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ld_jalr_reloc" >&5
23770 $as_echo "$gcc_cv_as_ld_jalr_reloc" >&6; }
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .eh_frame personality relaxation" >&5
23773 $as_echo_n "checking linker for .eh_frame personality relaxation... " >&6; }
23774 if test "${gcc_cv_ld_mips_personality_relaxation+set}" = set; then :
23775 $as_echo_n "(cached) " >&6
23776 else
23777 gcc_cv_ld_mips_personality_relaxation=no
23778 if test $in_tree_ld = yes ; then
23779 if test "$gcc_cv_gld_major_version" -eq 2 \
23780 -a "$gcc_cv_gld_minor_version" -ge 21 \
23781 -o "$gcc_cv_gld_major_version" -gt 2; then
23782 gcc_cv_ld_mips_personality_relaxation=yes
23784 elif test x$gcc_cv_as != x \
23785 -a x$gcc_cv_ld != x \
23786 -a x$gcc_cv_readelf != x ; then
23787 cat > conftest.s <<EOF
23788 .cfi_startproc
23789 .cfi_personality 0x80,indirect_ptr
23790 .ent test
23791 test:
23793 .end test
23794 .cfi_endproc
23796 .section .data,"aw",@progbits
23797 indirect_ptr:
23798 .dc.a personality
23800 if $gcc_cv_as -KPIC -o conftest.o conftest.s > /dev/null 2>&1 \
23801 && $gcc_cv_ld -o conftest conftest.o -shared > /dev/null 2>&1; then
23802 if $gcc_cv_readelf -d conftest 2>&1 \
23803 | grep TEXTREL > /dev/null 2>&1; then
23805 elif $gcc_cv_readelf --relocs conftest 2>&1 \
23806 | grep 'R_MIPS_REL32 *$' > /dev/null 2>&1; then
23808 else
23809 gcc_cv_ld_mips_personality_relaxation=yes
23813 rm -f conftest.s conftest.o conftest
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_mips_personality_relaxation" >&5
23816 $as_echo "$gcc_cv_ld_mips_personality_relaxation" >&6; }
23817 if test x$gcc_cv_ld_mips_personality_relaxation = xyes; then
23819 $as_echo "#define HAVE_LD_PERSONALITY_RELAXATION 1" >>confdefs.h
23823 esac
23825 # Mips and HP-UX need the GNU assembler.
23826 # Linux on IA64 might be able to use the Intel assembler.
23828 case "$target" in
23829 mips*-*-* | *-*-hpux* )
23830 if test x$gas_flag = xyes \
23831 || test x"$host" != x"$build" \
23832 || test ! -x "$gcc_cv_as" \
23833 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23835 else
23836 echo "*** This configuration requires the GNU assembler" >&2
23837 exit 1
23840 esac
23842 # ??? Not all targets support dwarf2 debug_line, even within a version
23843 # of gas. Moreover, we need to emit a valid instruction to trigger any
23844 # info to the output file. So, as supported targets are added to gas 2.11,
23845 # add some instruction here to (also) show we expect this might work.
23846 # ??? Once 2.11 is released, probably need to add first known working
23847 # version to the per-target configury.
23848 case "$target" in
23849 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23850 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23851 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23852 | spu-*-* | fido*-*-* | m32c-*-*)
23853 insn="nop"
23855 ia64*-*-* | s390*-*-*)
23856 insn="nop 0"
23858 mmix-*-*)
23859 insn="swym 0"
23861 esac
23862 if test x"$insn" != x; then
23863 conftest_s="\
23864 .file 1 \"conftest.s\"
23865 .loc 1 3 0
23866 $insn"
23867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23868 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23869 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23870 $as_echo_n "(cached) " >&6
23871 else
23872 gcc_cv_as_dwarf2_debug_line=no
23873 if test $in_tree_gas = yes; then
23874 if test $in_tree_gas_is_elf = yes \
23875 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23876 then gcc_cv_as_dwarf2_debug_line=yes
23878 elif test x$gcc_cv_as != x; then
23879 echo "$conftest_s" > conftest.s
23880 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23885 test $ac_status = 0; }; }
23886 then
23887 if test x$gcc_cv_objdump != x \
23888 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23889 | grep debug_line > /dev/null 2>&1; then
23890 gcc_cv_as_dwarf2_debug_line=yes
23892 else
23893 echo "configure: failed program was" >&5
23894 cat conftest.s >&5
23896 rm -f conftest.o conftest.s
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23900 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23903 # The .debug_line file table must be in the exact order that
23904 # we specified the files, since these indices are also used
23905 # by DW_AT_decl_file. Approximate this test by testing if
23906 # the assembler bitches if the same index is assigned twice.
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23908 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23909 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23910 $as_echo_n "(cached) " >&6
23911 else
23912 gcc_cv_as_dwarf2_file_buggy=no
23913 if test x$gcc_cv_as != x; then
23914 echo ' .file 1 "foo.s"
23915 .file 1 "bar.s"' > conftest.s
23916 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23918 (eval $ac_try) 2>&5
23919 ac_status=$?
23920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23921 test $ac_status = 0; }; }
23922 then
23923 gcc_cv_as_dwarf2_file_buggy=yes
23924 else
23925 echo "configure: failed program was" >&5
23926 cat conftest.s >&5
23928 rm -f conftest.o conftest.s
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23932 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23935 if test $gcc_cv_as_dwarf2_debug_line = yes \
23936 && test $gcc_cv_as_dwarf2_file_buggy = no; then
23938 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23943 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23944 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23945 $as_echo_n "(cached) " >&6
23946 else
23947 gcc_cv_as_gdwarf2_flag=no
23948 if test $in_tree_gas = yes; then
23949 if test $in_tree_gas_is_elf = yes \
23950 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23951 then gcc_cv_as_gdwarf2_flag=yes
23953 elif test x$gcc_cv_as != x; then
23954 echo "$insn" > conftest.s
23955 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23957 (eval $ac_try) 2>&5
23958 ac_status=$?
23959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23960 test $ac_status = 0; }; }
23961 then
23962 gcc_cv_as_gdwarf2_flag=yes
23963 else
23964 echo "configure: failed program was" >&5
23965 cat conftest.s >&5
23967 rm -f conftest.o conftest.s
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23971 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23972 if test $gcc_cv_as_gdwarf2_flag = yes; then
23974 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23979 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23980 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23981 $as_echo_n "(cached) " >&6
23982 else
23983 gcc_cv_as_gstabs_flag=no
23984 if test $in_tree_gas = yes; then
23985 if test $in_tree_gas_is_elf = yes \
23986 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23987 then gcc_cv_as_gstabs_flag=yes
23989 elif test x$gcc_cv_as != x; then
23990 echo "$insn" > conftest.s
23991 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23993 (eval $ac_try) 2>&5
23994 ac_status=$?
23995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23996 test $ac_status = 0; }; }
23997 then
23998 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23999 # and warns about it, but still exits successfully. So check for
24000 # this.
24001 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
24002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24003 (eval $ac_try) 2>&5
24004 ac_status=$?
24005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24006 test $ac_status = 0; }; }
24007 then :
24008 else gcc_cv_as_gstabs_flag=yes
24010 else
24011 echo "configure: failed program was" >&5
24012 cat conftest.s >&5
24014 rm -f conftest.o conftest.s
24017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
24018 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
24019 if test $gcc_cv_as_gstabs_flag = yes; then
24021 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
24026 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
24027 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
24028 $as_echo_n "(cached) " >&6
24029 else
24030 gcc_cv_as_debug_prefix_map_flag=no
24031 if test $in_tree_gas = yes; then
24032 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
24033 then gcc_cv_as_debug_prefix_map_flag=yes
24035 elif test x$gcc_cv_as != x; then
24036 echo "$insn" > conftest.s
24037 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
24038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24039 (eval $ac_try) 2>&5
24040 ac_status=$?
24041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24042 test $ac_status = 0; }; }
24043 then
24044 gcc_cv_as_debug_prefix_map_flag=yes
24045 else
24046 echo "configure: failed program was" >&5
24047 cat conftest.s >&5
24049 rm -f conftest.o conftest.s
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
24053 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
24054 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
24056 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
24062 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
24063 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
24064 $as_echo_n "(cached) " >&6
24065 else
24066 gcc_cv_as_lcomm_with_alignment=no
24067 if test x$gcc_cv_as != x; then
24068 echo '.lcomm bar,4,16' > conftest.s
24069 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24071 (eval $ac_try) 2>&5
24072 ac_status=$?
24073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24074 test $ac_status = 0; }; }
24075 then
24076 gcc_cv_as_lcomm_with_alignment=yes
24077 else
24078 echo "configure: failed program was" >&5
24079 cat conftest.s >&5
24081 rm -f conftest.o conftest.s
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
24085 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
24086 if test $gcc_cv_as_lcomm_with_alignment = yes; then
24088 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
24092 # Check whether --enable-gnu-unique-object was given.
24093 if test "${enable_gnu_unique_object+set}" = set; then :
24094 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
24095 yes | no) ;;
24096 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
24097 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
24098 esac
24099 else
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
24101 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
24102 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
24103 $as_echo_n "(cached) " >&6
24104 else
24105 gcc_cv_as_gnu_unique_object=no
24106 if test $in_tree_gas = yes; then
24107 if test $in_tree_gas_is_elf = yes \
24108 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
24109 then gcc_cv_as_gnu_unique_object=yes
24111 elif test x$gcc_cv_as != x; then
24112 echo '.type foo, @gnu_unique_object' > conftest.s
24113 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
24114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24115 (eval $ac_try) 2>&5
24116 ac_status=$?
24117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24118 test $ac_status = 0; }; }
24119 then
24120 gcc_cv_as_gnu_unique_object=yes
24121 else
24122 echo "configure: failed program was" >&5
24123 cat conftest.s >&5
24125 rm -f conftest.o conftest.s
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
24129 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
24130 if test $gcc_cv_as_gnu_unique_object = yes; then
24131 # Also check for ld.so support, i.e. glibc 2.11 or higher.
24132 if test x$host = x$build -a x$host = x$target &&
24133 glibcver=`ldd --version 2>/dev/null`; then
24134 glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
24135 glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
24136 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
24137 if test "$glibcnum" -ge 2011 ; then
24138 enable_gnu_unique_object=yes
24144 if test x$enable_gnu_unique_object = xyes; then
24146 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
24151 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
24152 if test "${gcc_cv_as_line_zero+set}" = set; then :
24153 $as_echo_n "(cached) " >&6
24154 else
24155 gcc_cv_as_line_zero=no
24156 if test $in_tree_gas = yes; then
24157 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
24158 then gcc_cv_as_line_zero=yes
24160 elif test "x$gcc_cv_as" != x; then
24161 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
24162 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
24163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24164 (eval $ac_try) 2>&5
24165 ac_status=$?
24166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24167 test $ac_status = 0; }; } &&
24168 test "x`cat conftest.out`" = x
24169 then
24170 gcc_cv_as_line_zero=yes
24171 else
24172 echo "configure: failed program was" >&5
24173 cat conftest.s >&5
24174 echo "configure: error output was" >&5
24175 cat conftest.out >&5
24177 rm -f conftest.o conftest.s conftest.out
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
24181 $as_echo "$gcc_cv_as_line_zero" >&6; }
24182 if test "x$gcc_cv_as_line_zero" = xyes; then
24184 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
24189 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
24190 gcc_cv_ld_eh_frame_hdr=no
24191 if test $in_tree_ld = yes ; then
24192 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 \
24193 && test $in_tree_ld_is_elf = yes; then
24194 gcc_cv_ld_eh_frame_hdr=yes
24196 elif test x$gcc_cv_ld != x; then
24197 # Check if linker supports --eh-frame-hdr option
24198 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
24199 gcc_cv_ld_eh_frame_hdr=yes
24203 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
24205 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
24208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
24209 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
24212 $as_echo_n "checking linker position independent executable support... " >&6; }
24213 gcc_cv_ld_pie=no
24214 if test $in_tree_ld = yes ; then
24215 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 \
24216 && test $in_tree_ld_is_elf = yes; then
24217 gcc_cv_ld_pie=yes
24219 elif test x$gcc_cv_ld != x; then
24220 # Check if linker supports -pie option
24221 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
24222 gcc_cv_ld_pie=yes
24225 if test x"$gcc_cv_ld_pie" = xyes; then
24227 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
24231 $as_echo "$gcc_cv_ld_pie" >&6; }
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
24234 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
24235 gcc_cv_ld_eh_gc_sections=no
24236 if test $in_tree_ld = yes ; then
24237 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 \
24238 && test $in_tree_ld_is_elf = yes; then
24239 gcc_cv_ld_eh_gc_sections=yes
24241 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
24242 cat > conftest.s <<EOF
24243 .section .text
24244 .globl _start
24245 .type _start, @function
24246 _start:
24247 .long foo
24248 .size _start, .-_start
24249 .section .text.foo,"ax",@progbits
24250 .type foo, @function
24251 foo:
24252 .long 0
24253 .size foo, .-foo
24254 .section .gcc_except_table.foo,"a",@progbits
24255 .L0:
24256 .long 0
24257 .section .eh_frame,"a",@progbits
24258 .long .L0
24260 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24261 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24262 | grep "gc-sections option ignored" > /dev/null; then
24263 gcc_cv_ld_eh_gc_sections=no
24264 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24265 gcc_cv_ld_eh_gc_sections=yes
24266 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
24267 if test x$gcc_cv_as_comdat_group != xyes; then
24268 gcc_cv_ld_eh_gc_sections=no
24269 cat > conftest.s <<EOF
24270 .section .text
24271 .globl _start
24272 .type _start, @function
24273 _start:
24274 .long foo
24275 .size _start, .-_start
24276 .section .gnu.linkonce.t.foo,"ax",@progbits
24277 .type foo, @function
24278 foo:
24279 .long 0
24280 .size foo, .-foo
24281 .section .gcc_except_table.foo,"a",@progbits
24282 .L0:
24283 .long 0
24284 .section .eh_frame,"a",@progbits
24285 .long .L0
24287 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
24288 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
24289 | grep "gc-sections option ignored" > /dev/null; then
24290 gcc_cv_ld_eh_gc_sections=no
24291 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
24292 gcc_cv_ld_eh_gc_sections=yes
24298 rm -f conftest.s conftest.o conftest
24300 case "$target" in
24301 hppa*-*-linux*)
24302 # ??? This apparently exposes a binutils bug with PC-relative relocations.
24303 gcc_cv_ld_eh_gc_sections=no
24305 esac
24306 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
24308 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
24312 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
24314 # --------
24315 # UNSORTED
24316 # --------
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
24319 $as_echo_n "checking linker --as-needed support... " >&6; }
24320 if test "${gcc_cv_ld_as_needed+set}" = set; then :
24321 $as_echo_n "(cached) " >&6
24322 else
24323 gcc_cv_ld_as_needed=no
24324 if test $in_tree_ld = yes ; then
24325 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 \
24326 && test $in_tree_ld_is_elf = yes; then
24327 gcc_cv_ld_as_needed=yes
24329 elif test x$gcc_cv_ld != x; then
24330 # Check if linker supports --as-needed and --no-as-needed options
24331 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
24332 gcc_cv_ld_as_needed=yes
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
24338 $as_echo "$gcc_cv_ld_as_needed" >&6; }
24339 if test x"$gcc_cv_ld_as_needed" = xyes; then
24341 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
24345 case "$target:$tm_file" in
24346 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
24348 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
24349 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
24350 $as_echo_n "(cached) " >&6
24351 else
24352 gcc_cv_ld_no_dot_syms=no
24353 if test $in_tree_ld = yes ; then
24354 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
24355 gcc_cv_ld_no_dot_syms=yes
24357 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
24358 cat > conftest1.s <<EOF
24359 .text
24360 bl .foo
24362 cat > conftest2.s <<EOF
24363 .section ".opd","aw"
24364 .align 3
24365 .globl foo
24366 .type foo,@function
24367 foo:
24368 .quad .LEfoo,.TOC.@tocbase,0
24369 .text
24370 .LEfoo:
24372 .size foo,.-.LEfoo
24374 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
24375 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
24376 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
24377 gcc_cv_ld_no_dot_syms=yes
24379 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
24384 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
24385 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
24387 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
24391 esac
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
24394 $as_echo_n "checking linker --build-id support... " >&6; }
24395 if test "${gcc_cv_ld_buildid+set}" = set; then :
24396 $as_echo_n "(cached) " >&6
24397 else
24398 gcc_cv_ld_buildid=no
24399 if test $in_tree_ld = yes ; then
24400 if test "$gcc_cv_gld_major_version" -eq 2 -a \
24401 "$gcc_cv_gld_minor_version" -ge 18 -o \
24402 "$gcc_cv_gld_major_version" -gt 2 \
24403 && test $in_tree_ld_is_elf = yes; then
24404 gcc_cv_ld_buildid=yes
24406 elif test x$gcc_cv_ld != x; then
24407 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
24408 gcc_cv_ld_buildid=yes
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
24413 $as_echo "$gcc_cv_ld_buildid" >&6; }
24414 if test x"$gcc_cv_ld_buildid" = xyes; then
24416 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
24420 # Check whether --enable-linker-build-id was given.
24421 if test "${enable_linker_build_id+set}" = set; then :
24422 enableval=$enable_linker_build_id;
24423 else
24424 enable_linker_build_id=no
24428 if test x"$enable_linker_build_id" = xyes; then
24429 if test x"$gcc_cv_ld_buildid" = xyes; then
24431 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
24433 else
24434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
24435 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
24440 $as_echo_n "checking linker --sysroot support... " >&6; }
24441 if test "${gcc_cv_ld_sysroot+set}" = set; then :
24442 $as_echo_n "(cached) " >&6
24443 else
24444 gcc_cv_ld_sysroot=no
24445 if test $in_tree_ld = yes ; then
24446 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
24447 gcc_cv_ld_sysroot=yes
24449 elif test x$gcc_cv_ld != x; then
24450 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
24451 gcc_cv_ld_sysroot=yes
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
24456 $as_echo "$gcc_cv_ld_sysroot" >&6; }
24457 if test x"$gcc_cv_ld_sysroot" = xyes; then
24459 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
24463 if test x$with_sysroot = x && test x$host = x$target \
24464 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
24465 && test "$prefix" != "NONE"; then
24467 cat >>confdefs.h <<_ACEOF
24468 #define PREFIX_INCLUDE_DIR "$prefix/include"
24469 _ACEOF
24473 # Test for stack protector support in target C library.
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
24475 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
24476 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
24477 $as_echo_n "(cached) " >&6
24478 else
24479 gcc_cv_libc_provides_ssp=no
24480 case "$target" in
24481 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
24482 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24483 if test "x$with_sysroot" = x; then
24484 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24485 elif test "x$with_build_sysroot" != "x"; then
24486 glibc_header_dir="${with_build_sysroot}/usr/include"
24487 elif test "x$with_sysroot" = xyes; then
24488 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24489 else
24490 glibc_header_dir="${with_sysroot}/usr/include"
24492 else
24493 glibc_header_dir=/usr/include
24495 # glibc 2.4 and later provides __stack_chk_fail and
24496 # either __stack_chk_guard, or TLS access to stack guard canary.
24497 if test -f $glibc_header_dir/features.h \
24498 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
24499 $glibc_header_dir/features.h > /dev/null; then
24500 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
24501 $glibc_header_dir/features.h > /dev/null; then
24502 gcc_cv_libc_provides_ssp=yes
24503 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
24504 $glibc_header_dir/features.h > /dev/null \
24505 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
24506 $glibc_header_dir/features.h > /dev/null; then
24507 gcc_cv_libc_provides_ssp=yes
24508 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
24509 $glibc_header_dir/features.h > /dev/null && \
24510 test -f $glibc_header_dir/bits/uClibc_config.h && \
24511 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
24512 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
24513 gcc_cv_libc_provides_ssp=yes
24517 *-*-gnu*)
24518 # Avoid complicated tests (see
24519 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
24520 # simply assert that glibc does provide this, which is true for all
24521 # realistically usable GNU/Hurd configurations.
24522 gcc_cv_libc_provides_ssp=yes;;
24523 *-*-darwin* | *-*-freebsd*)
24524 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
24525 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
24526 gcc_cv_libc_provides_ssp=yes
24527 else
24528 echo "no __stack_chk_fail on this target"
24532 *) gcc_cv_libc_provides_ssp=no ;;
24533 esac
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
24536 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
24538 if test x$gcc_cv_libc_provides_ssp = xyes; then
24540 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
24544 # Check if TFmode long double should be used by default or not.
24545 # Some glibc targets used DFmode long double, but with glibc 2.4
24546 # and later they can use TFmode.
24547 case "$target" in
24548 powerpc*-*-linux* | \
24549 powerpc*-*-gnu* | \
24550 sparc*-*-linux* | \
24551 s390*-*-linux* | \
24552 alpha*-*-linux*)
24554 # Check whether --with-long-double-128 was given.
24555 if test "${with_long_double_128+set}" = set; then :
24556 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
24557 else
24558 gcc_cv_target_ldbl128=no
24559 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
24560 if test "x$with_sysroot" = x; then
24561 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
24562 elif test "x$with_build_sysroot" != "x"; then
24563 glibc_header_dir="${with_build_sysroot}/usr/include"
24564 elif test "x$with_sysroot" = xyes; then
24565 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
24566 else
24567 glibc_header_dir="${with_sysroot}/usr/include"
24569 else
24570 glibc_header_dir=/usr/include
24572 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
24573 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
24574 && gcc_cv_target_ldbl128=yes
24579 esac
24580 if test x$gcc_cv_target_ldbl128 = xyes; then
24582 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
24586 # Find out what GC implementation we want, or may, use.
24588 # Check whether --with-gc was given.
24589 if test "${with_gc+set}" = set; then :
24590 withval=$with_gc; case "$withval" in
24591 page)
24592 GGC=ggc-$withval
24594 zone)
24595 GGC=ggc-$withval
24597 $as_echo "#define GGC_ZONE 1" >>confdefs.h
24601 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
24603 esac
24604 else
24605 GGC=ggc-page
24609 echo "Using $GGC for garbage collection."
24611 # Libraries to use on the host. This will normally be set by the top
24612 # level Makefile. Here we simply capture the value for our Makefile.
24613 if test -z "${HOST_LIBS+set}"; then
24614 HOST_LIBS=
24618 # Use the system's zlib library.
24619 zlibdir=-L../zlib
24620 zlibinc="-I\$(srcdir)/../zlib"
24622 # Check whether --with-system-zlib was given.
24623 if test "${with_system_zlib+set}" = set; then :
24624 withval=$with_system_zlib; zlibdir=
24625 zlibinc=
24633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24634 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24635 # Check whether --enable-maintainer-mode was given.
24636 if test "${enable_maintainer_mode+set}" = set; then :
24637 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24638 else
24639 maintainer_mode=no
24643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24644 $as_echo "$maintainer_mode" >&6; }
24646 if test "$maintainer_mode" = "yes"; then
24647 MAINT=''
24648 else
24649 MAINT='#'
24652 # --------------
24653 # Language hooks
24654 # --------------
24656 # Make empty files to contain the specs and options for each language.
24657 # Then add #include lines to for a compiler that has specs and/or options.
24659 subdirs=
24660 lang_opt_files=
24661 lang_specs_files=
24662 lang_tree_files=
24663 # These (without "all_") are set in each config-lang.in.
24664 # `language' must be a single word so is spelled singularly.
24665 all_languages=
24666 all_compilers=
24667 all_outputs='Makefile gccbug'
24668 # List of language makefile fragments.
24669 all_lang_makefrags=
24670 # List of language subdirectory makefiles. Deprecated.
24671 all_lang_makefiles=
24672 # Additional files for gengtype
24673 all_gtfiles="$target_gtfiles"
24675 # These are the languages that are set in --enable-languages,
24676 # and are available in the GCC tree.
24677 all_selected_languages=
24679 # Add the language fragments.
24680 # Languages are added via two mechanisms. Some information must be
24681 # recorded in makefile variables, these are defined in config-lang.in.
24682 # We accumulate them and plug them into the main Makefile.
24683 # The other mechanism is a set of hooks for each of the main targets
24684 # like `clean', `install', etc.
24686 language_hooks="Make-hooks"
24688 for lang in ${srcdir}/*/config-lang.in
24690 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24692 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24693 if test "x$lang_alias" = x
24694 then
24695 echo "$lang doesn't set \$language." 1>&2
24696 exit 1
24698 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24699 subdirs="$subdirs $subdir"
24701 # $gcc_subdir is where the gcc integration files are to be found
24702 # for a language, both for internal compiler purposes (compiler
24703 # sources implementing front-end to GCC tree converters), and for
24704 # build infrastructure purposes (Make-lang.in, etc.)
24706 # This will be <subdir> (relative to $srcdir) if a line like
24707 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24708 # is found in <langdir>/config-lang.in, and will remain <langdir>
24709 # otherwise.
24711 # Except for the language alias (fetched above), the regular
24712 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24713 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24714 # only this and the language alias.
24716 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24717 if [ "$gcc_subdir" = "" ]; then
24718 gcc_subdir="$subdir"
24721 case ",$enable_languages," in
24722 *,$lang_alias,*)
24723 all_selected_languages="$all_selected_languages $lang_alias"
24724 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24725 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24728 esac
24730 language=
24731 boot_language=
24732 compilers=
24733 outputs=
24734 gtfiles=
24735 subdir_requires=
24736 . ${srcdir}/$gcc_subdir/config-lang.in
24737 if test "x$language" = x
24738 then
24739 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24740 exit 1
24743 ok=:
24744 case ",$enable_languages," in
24745 *,$lang_alias,*) ;;
24747 for i in $subdir_requires; do
24748 test -f "${srcdir}/$i/config-lang.in" && continue
24749 ok=false
24750 break
24751 done
24753 esac
24754 $ok || continue
24756 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24757 if test -f $srcdir/$gcc_subdir/lang.opt; then
24758 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24760 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24761 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24763 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24764 then all_lang_makefiles="$gcc_subdir/Makefile"
24766 all_languages="$all_languages $language"
24767 all_compilers="$all_compilers $compilers"
24768 all_outputs="$all_outputs $outputs"
24769 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24770 case ",$enable_languages," in
24771 *,lto,*)
24773 $as_echo "#define ENABLE_LTO 1" >>confdefs.h
24775 enable_lto=yes
24778 *) ;;
24779 esac
24780 done
24782 # Pick up gtfiles for c
24783 gtfiles=
24784 . ${srcdir}/c-config-lang.in
24785 all_gtfiles="$all_gtfiles [c] $gtfiles"
24787 check_languages=
24788 for language in $all_selected_languages
24790 check_languages="$check_languages check-$language"
24791 done
24793 # We link each language in with a set of hooks, reached indirectly via
24794 # lang.${target}. Only do so for selected languages.
24796 rm -f Make-hooks
24797 touch Make-hooks
24798 target_list="all.cross start.encap rest.encap tags \
24799 install-common install-man install-info install-pdf dvi pdf \
24800 html uninstall info man srcextra srcman srcinfo \
24801 mostlyclean clean distclean maintainer-clean install-plugin"
24803 for t in $target_list
24806 for lang in $all_selected_languages
24808 x="$x $lang.$t"
24809 done
24810 echo "lang.$t: $x" >> Make-hooks
24811 done
24813 # --------
24814 # UNSORTED
24815 # --------
24817 # Create .gdbinit.
24819 echo "dir ." > .gdbinit
24820 echo "dir ${srcdir}" >> .gdbinit
24821 if test x$gdb_needs_out_file_path = xyes
24822 then
24823 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24825 if test "x$subdirs" != x; then
24826 for s in $subdirs
24828 echo "dir ${srcdir}/$s" >> .gdbinit
24829 done
24831 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24833 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24837 # Find a directory in which to install a shared libgcc.
24839 # Check whether --enable-version-specific-runtime-libs was given.
24840 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24841 enableval=$enable_version_specific_runtime_libs;
24846 # Check whether --with-slibdir was given.
24847 if test "${with_slibdir+set}" = set; then :
24848 withval=$with_slibdir; slibdir="$with_slibdir"
24849 else
24850 if test "${enable_version_specific_runtime_libs+set}" = set; then
24851 slibdir='$(libsubdir)'
24852 elif test "$host" != "$target"; then
24853 slibdir='$(build_tooldir)/lib'
24854 else
24855 slibdir='$(libdir)'
24861 # Substitute configuration variables
24923 # Echo link setup.
24924 if test x${build} = x${host} ; then
24925 if test x${host} = x${target} ; then
24926 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24927 else
24928 echo "Links are now set up to build a cross-compiler" 1>&2
24929 echo " from ${host} to ${target}." 1>&2
24931 else
24932 if test x${host} = x${target} ; then
24933 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24934 echo " for ${target}." 1>&2
24935 else
24936 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24937 echo " from ${host} to ${target}." 1>&2
24944 case "${GMPLIBS}" in
24945 *-lmpc*)
24946 $as_echo "#define HAVE_mpc 1" >>confdefs.h
24948 esac
24955 if test "x${CLOOGLIBS}" != "x" ; then
24957 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24963 if test "x${LIBELFLIBS}" != "x" ; then
24965 $as_echo "#define HAVE_libelf 1" >>confdefs.h
24969 # Check for plugin support
24970 # Check whether --enable-plugin was given.
24971 if test "${enable_plugin+set}" = set; then :
24972 enableval=$enable_plugin; enable_plugin=$enableval
24973 else
24974 enable_plugin=yes; default_plugin=yes
24978 pluginlibs=
24979 if test x"$enable_plugin" = x"yes"; then
24980 # Check that the host supports -rdynamic and -ldl
24981 have_rdynamic=no
24982 have_dl=no
24983 saved_LDFLAGS="$LDFLAGS"
24984 saved_LIBS="$LIBS"
24985 LIBS=
24987 # Check -rdynamic
24988 LDFLAGS="$LDFLAGS -rdynamic"
24989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24990 $as_echo_n "checking for -rdynamic... " >&6; }
24991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24992 /* end confdefs.h. */
24995 main ()
24997 return 0;
24999 return 0;
25001 _ACEOF
25002 if ac_fn_c_try_link "$LINENO"; then :
25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25004 $as_echo "yes" >&6; }; have_rdynamic=yes
25005 else
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25007 $as_echo "no" >&6; }
25009 rm -f core conftest.err conftest.$ac_objext \
25010 conftest$ac_exeext conftest.$ac_ext
25011 if test x"$have_rdynamic" = x"yes" ; then
25012 pluginlibs="-rdynamic"
25015 # Check -ldl
25016 LIBS="$LIBS -ldl"
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldl" >&5
25018 $as_echo_n "checking for -ldl... " >&6; }
25019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25020 /* end confdefs.h. */
25021 #include <dlfcn.h>
25023 main ()
25025 volatile int f = 0; if (f) dlopen ("dummy", 0);
25027 return 0;
25029 _ACEOF
25030 if ac_fn_c_try_link "$LINENO"; then :
25031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25032 $as_echo "yes" >&6; }; have_dl=yes
25033 else
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25035 $as_echo "no" >&6; }
25037 rm -f core conftest.err conftest.$ac_objext \
25038 conftest$ac_exeext conftest.$ac_ext
25039 if test x"$have_dl" = x"yes"; then
25040 pluginlibs="$pluginlibs -ldl"
25043 # Check that we can build shared objects with -fPIC -shared
25044 LDFLAGS="$LDFLAGS -fPIC -shared"
25045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
25046 $as_echo_n "checking for -fPIC -shared... " >&6; }
25047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25048 /* end confdefs.h. */
25049 extern int X;
25051 main ()
25053 return X == 0;
25055 return 0;
25057 _ACEOF
25058 if ac_fn_c_try_link "$LINENO"; then :
25059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25060 $as_echo "yes" >&6; }; have_pic_shared=yes
25061 else
25062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25063 $as_echo "no" >&6; }; have_pic_shared=no
25065 rm -f core conftest.err conftest.$ac_objext \
25066 conftest$ac_exeext conftest.$ac_ext
25067 if test x"$have_pic_shared" != x"yes"; then
25068 pluginlibs=
25069 enable_plugin=no
25072 # If plugin support had been requested but not available, fail.
25073 if test x"$enable_plugin" = x"no" ; then
25074 if test x"$default_plugin" != x"yes"; then
25075 as_fn_error "
25076 Building GCC with plugin support requires a host that supports
25077 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
25081 LDFLAGS="$saved_LDFLAGS"
25082 LIBS="$saved_LIBS"
25087 if test x"$enable_plugin" = x"yes"; then
25089 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
25093 # Configure the subdirectories
25094 # AC_CONFIG_SUBDIRS($subdirs)
25096 # Create the Makefile
25097 # and configure language subdirectories
25098 ac_config_files="$ac_config_files $all_outputs"
25101 ac_config_commands="$ac_config_commands default"
25103 cat >confcache <<\_ACEOF
25104 # This file is a shell script that caches the results of configure
25105 # tests run on this system so they can be shared between configure
25106 # scripts and configure runs, see configure's option --config-cache.
25107 # It is not useful on other systems. If it contains results you don't
25108 # want to keep, you may remove or edit it.
25110 # config.status only pays attention to the cache file if you give it
25111 # the --recheck option to rerun configure.
25113 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25114 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25115 # following values.
25117 _ACEOF
25119 # The following way of writing the cache mishandles newlines in values,
25120 # but we know of no workaround that is simple, portable, and efficient.
25121 # So, we kill variables containing newlines.
25122 # Ultrix sh set writes to stderr and can't be redirected directly,
25123 # and sets the high bit in the cache file unless we assign to the vars.
25125 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25126 eval ac_val=\$$ac_var
25127 case $ac_val in #(
25128 *${as_nl}*)
25129 case $ac_var in #(
25130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25131 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25132 esac
25133 case $ac_var in #(
25134 _ | IFS | as_nl) ;; #(
25135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25136 *) { eval $ac_var=; unset $ac_var;} ;;
25137 esac ;;
25138 esac
25139 done
25141 (set) 2>&1 |
25142 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25143 *${as_nl}ac_space=\ *)
25144 # `set' does not quote correctly, so add quotes: double-quote
25145 # substitution turns \\\\ into \\, and sed turns \\ into \.
25146 sed -n \
25147 "s/'/'\\\\''/g;
25148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25149 ;; #(
25151 # `set' quotes correctly as required by POSIX, so do not add quotes.
25152 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25154 esac |
25155 sort
25157 sed '
25158 /^ac_cv_env_/b end
25159 t clear
25160 :clear
25161 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25162 t end
25163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25164 :end' >>confcache
25165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25166 if test -w "$cache_file"; then
25167 test "x$cache_file" != "x/dev/null" &&
25168 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25169 $as_echo "$as_me: updating cache $cache_file" >&6;}
25170 cat confcache >$cache_file
25171 else
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25173 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25176 rm -f confcache
25178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25179 # Let make expand exec_prefix.
25180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25182 DEFS=-DHAVE_CONFIG_H
25184 ac_libobjs=
25185 ac_ltlibobjs=
25186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25187 # 1. Remove the extension, and $U if already installed.
25188 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25189 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25190 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25191 # will be set to the directory where LIBOBJS objects are built.
25192 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25193 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25194 done
25195 LIBOBJS=$ac_libobjs
25197 LTLIBOBJS=$ac_ltlibobjs
25202 : ${CONFIG_STATUS=./config.status}
25203 ac_write_fail=0
25204 ac_clean_files_save=$ac_clean_files
25205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25207 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25208 as_write_fail=0
25209 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25210 #! $SHELL
25211 # Generated by $as_me.
25212 # Run this file to recreate the current configuration.
25213 # Compiler output produced by configure, useful for debugging
25214 # configure, is in config.log if it exists.
25216 debug=false
25217 ac_cs_recheck=false
25218 ac_cs_silent=false
25220 SHELL=\${CONFIG_SHELL-$SHELL}
25221 export SHELL
25222 _ASEOF
25223 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25224 ## -------------------- ##
25225 ## M4sh Initialization. ##
25226 ## -------------------- ##
25228 # Be more Bourne compatible
25229 DUALCASE=1; export DUALCASE # for MKS sh
25230 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25231 emulate sh
25232 NULLCMD=:
25233 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25234 # is contrary to our usage. Disable this feature.
25235 alias -g '${1+"$@"}'='"$@"'
25236 setopt NO_GLOB_SUBST
25237 else
25238 case `(set -o) 2>/dev/null` in #(
25239 *posix*) :
25240 set -o posix ;; #(
25241 *) :
25243 esac
25247 as_nl='
25249 export as_nl
25250 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25251 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25252 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25253 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25254 # Prefer a ksh shell builtin over an external printf program on Solaris,
25255 # but without wasting forks for bash or zsh.
25256 if test -z "$BASH_VERSION$ZSH_VERSION" \
25257 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25258 as_echo='print -r --'
25259 as_echo_n='print -rn --'
25260 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25261 as_echo='printf %s\n'
25262 as_echo_n='printf %s'
25263 else
25264 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25265 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25266 as_echo_n='/usr/ucb/echo -n'
25267 else
25268 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25269 as_echo_n_body='eval
25270 arg=$1;
25271 case $arg in #(
25272 *"$as_nl"*)
25273 expr "X$arg" : "X\\(.*\\)$as_nl";
25274 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25275 esac;
25276 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25278 export as_echo_n_body
25279 as_echo_n='sh -c $as_echo_n_body as_echo'
25281 export as_echo_body
25282 as_echo='sh -c $as_echo_body as_echo'
25285 # The user is always right.
25286 if test "${PATH_SEPARATOR+set}" != set; then
25287 PATH_SEPARATOR=:
25288 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25289 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25290 PATH_SEPARATOR=';'
25295 # IFS
25296 # We need space, tab and new line, in precisely that order. Quoting is
25297 # there to prevent editors from complaining about space-tab.
25298 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25299 # splitting by setting IFS to empty value.)
25300 IFS=" "" $as_nl"
25302 # Find who we are. Look in the path if we contain no directory separator.
25303 case $0 in #((
25304 *[\\/]* ) as_myself=$0 ;;
25305 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25306 for as_dir in $PATH
25308 IFS=$as_save_IFS
25309 test -z "$as_dir" && as_dir=.
25310 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25311 done
25312 IFS=$as_save_IFS
25315 esac
25316 # We did not find ourselves, most probably we were run as `sh COMMAND'
25317 # in which case we are not to be found in the path.
25318 if test "x$as_myself" = x; then
25319 as_myself=$0
25321 if test ! -f "$as_myself"; then
25322 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25323 exit 1
25326 # Unset variables that we do not need and which cause bugs (e.g. in
25327 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25328 # suppresses any "Segmentation fault" message there. '((' could
25329 # trigger a bug in pdksh 5.2.14.
25330 for as_var in BASH_ENV ENV MAIL MAILPATH
25331 do eval test x\${$as_var+set} = xset \
25332 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25333 done
25334 PS1='$ '
25335 PS2='> '
25336 PS4='+ '
25338 # NLS nuisances.
25339 LC_ALL=C
25340 export LC_ALL
25341 LANGUAGE=C
25342 export LANGUAGE
25344 # CDPATH.
25345 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25348 # as_fn_error ERROR [LINENO LOG_FD]
25349 # ---------------------------------
25350 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25351 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25352 # script with status $?, using 1 if that was 0.
25353 as_fn_error ()
25355 as_status=$?; test $as_status -eq 0 && as_status=1
25356 if test "$3"; then
25357 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25358 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25360 $as_echo "$as_me: error: $1" >&2
25361 as_fn_exit $as_status
25362 } # as_fn_error
25365 # as_fn_set_status STATUS
25366 # -----------------------
25367 # Set $? to STATUS, without forking.
25368 as_fn_set_status ()
25370 return $1
25371 } # as_fn_set_status
25373 # as_fn_exit STATUS
25374 # -----------------
25375 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25376 as_fn_exit ()
25378 set +e
25379 as_fn_set_status $1
25380 exit $1
25381 } # as_fn_exit
25383 # as_fn_unset VAR
25384 # ---------------
25385 # Portably unset VAR.
25386 as_fn_unset ()
25388 { eval $1=; unset $1;}
25390 as_unset=as_fn_unset
25391 # as_fn_append VAR VALUE
25392 # ----------------------
25393 # Append the text in VALUE to the end of the definition contained in VAR. Take
25394 # advantage of any shell optimizations that allow amortized linear growth over
25395 # repeated appends, instead of the typical quadratic growth present in naive
25396 # implementations.
25397 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25398 eval 'as_fn_append ()
25400 eval $1+=\$2
25402 else
25403 as_fn_append ()
25405 eval $1=\$$1\$2
25407 fi # as_fn_append
25409 # as_fn_arith ARG...
25410 # ------------------
25411 # Perform arithmetic evaluation on the ARGs, and store the result in the
25412 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25413 # must be portable across $(()) and expr.
25414 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25415 eval 'as_fn_arith ()
25417 as_val=$(( $* ))
25419 else
25420 as_fn_arith ()
25422 as_val=`expr "$@" || test $? -eq 1`
25424 fi # as_fn_arith
25427 if expr a : '\(a\)' >/dev/null 2>&1 &&
25428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25429 as_expr=expr
25430 else
25431 as_expr=false
25434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25435 as_basename=basename
25436 else
25437 as_basename=false
25440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25441 as_dirname=dirname
25442 else
25443 as_dirname=false
25446 as_me=`$as_basename -- "$0" ||
25447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25448 X"$0" : 'X\(//\)$' \| \
25449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25450 $as_echo X/"$0" |
25451 sed '/^.*\/\([^/][^/]*\)\/*$/{
25452 s//\1/
25455 /^X\/\(\/\/\)$/{
25456 s//\1/
25459 /^X\/\(\/\).*/{
25460 s//\1/
25463 s/.*/./; q'`
25465 # Avoid depending upon Character Ranges.
25466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25469 as_cr_digits='0123456789'
25470 as_cr_alnum=$as_cr_Letters$as_cr_digits
25472 ECHO_C= ECHO_N= ECHO_T=
25473 case `echo -n x` in #(((((
25474 -n*)
25475 case `echo 'xy\c'` in
25476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25477 xy) ECHO_C='\c';;
25478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25479 ECHO_T=' ';;
25480 esac;;
25482 ECHO_N='-n';;
25483 esac
25485 rm -f conf$$ conf$$.exe conf$$.file
25486 if test -d conf$$.dir; then
25487 rm -f conf$$.dir/conf$$.file
25488 else
25489 rm -f conf$$.dir
25490 mkdir conf$$.dir 2>/dev/null
25492 if (echo >conf$$.file) 2>/dev/null; then
25493 if ln -s conf$$.file conf$$ 2>/dev/null; then
25494 as_ln_s='ln -s'
25495 # ... but there are two gotchas:
25496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25498 # In both cases, we have to default to `cp -p'.
25499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25500 as_ln_s='cp -p'
25501 elif ln conf$$.file conf$$ 2>/dev/null; then
25502 as_ln_s=ln
25503 else
25504 as_ln_s='cp -p'
25506 else
25507 as_ln_s='cp -p'
25509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25510 rmdir conf$$.dir 2>/dev/null
25513 # as_fn_mkdir_p
25514 # -------------
25515 # Create "$as_dir" as a directory, including parents if necessary.
25516 as_fn_mkdir_p ()
25519 case $as_dir in #(
25520 -*) as_dir=./$as_dir;;
25521 esac
25522 test -d "$as_dir" || eval $as_mkdir_p || {
25523 as_dirs=
25524 while :; do
25525 case $as_dir in #(
25526 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25527 *) as_qdir=$as_dir;;
25528 esac
25529 as_dirs="'$as_qdir' $as_dirs"
25530 as_dir=`$as_dirname -- "$as_dir" ||
25531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25532 X"$as_dir" : 'X\(//\)[^/]' \| \
25533 X"$as_dir" : 'X\(//\)$' \| \
25534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25535 $as_echo X"$as_dir" |
25536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25537 s//\1/
25540 /^X\(\/\/\)[^/].*/{
25541 s//\1/
25544 /^X\(\/\/\)$/{
25545 s//\1/
25548 /^X\(\/\).*/{
25549 s//\1/
25552 s/.*/./; q'`
25553 test -d "$as_dir" && break
25554 done
25555 test -z "$as_dirs" || eval "mkdir $as_dirs"
25556 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25559 } # as_fn_mkdir_p
25560 if mkdir -p . 2>/dev/null; then
25561 as_mkdir_p='mkdir -p "$as_dir"'
25562 else
25563 test -d ./-p && rmdir ./-p
25564 as_mkdir_p=false
25567 if test -x / >/dev/null 2>&1; then
25568 as_test_x='test -x'
25569 else
25570 if ls -dL / >/dev/null 2>&1; then
25571 as_ls_L_option=L
25572 else
25573 as_ls_L_option=
25575 as_test_x='
25576 eval sh -c '\''
25577 if test -d "$1"; then
25578 test -d "$1/.";
25579 else
25580 case $1 in #(
25581 -*)set "./$1";;
25582 esac;
25583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25584 ???[sx]*):;;*)false;;esac;fi
25585 '\'' sh
25588 as_executable_p=$as_test_x
25590 # Sed expression to map a string onto a valid CPP name.
25591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25593 # Sed expression to map a string onto a valid variable name.
25594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25597 exec 6>&1
25598 ## ----------------------------------- ##
25599 ## Main body of $CONFIG_STATUS script. ##
25600 ## ----------------------------------- ##
25601 _ASEOF
25602 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25605 # Save the log message, to keep $0 and so on meaningful, and to
25606 # report actual input values of CONFIG_FILES etc. instead of their
25607 # values after options handling.
25608 ac_log="
25609 This file was extended by $as_me, which was
25610 generated by GNU Autoconf 2.64. Invocation command line was
25612 CONFIG_FILES = $CONFIG_FILES
25613 CONFIG_HEADERS = $CONFIG_HEADERS
25614 CONFIG_LINKS = $CONFIG_LINKS
25615 CONFIG_COMMANDS = $CONFIG_COMMANDS
25616 $ $0 $@
25618 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25621 _ACEOF
25623 case $ac_config_files in *"
25624 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25625 esac
25627 case $ac_config_headers in *"
25628 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25629 esac
25632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25633 # Files that config.status was made for.
25634 config_files="$ac_config_files"
25635 config_headers="$ac_config_headers"
25636 config_commands="$ac_config_commands"
25638 _ACEOF
25640 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25641 ac_cs_usage="\
25642 \`$as_me' instantiates files and other configuration actions
25643 from templates according to the current configuration. Unless the files
25644 and actions are specified as TAGs, all are instantiated by default.
25646 Usage: $0 [OPTION]... [TAG]...
25648 -h, --help print this help, then exit
25649 -V, --version print version number and configuration settings, then exit
25650 -q, --quiet, --silent
25651 do not print progress messages
25652 -d, --debug don't remove temporary files
25653 --recheck update $as_me by reconfiguring in the same conditions
25654 --file=FILE[:TEMPLATE]
25655 instantiate the configuration file FILE
25656 --header=FILE[:TEMPLATE]
25657 instantiate the configuration header FILE
25659 Configuration files:
25660 $config_files
25662 Configuration headers:
25663 $config_headers
25665 Configuration commands:
25666 $config_commands
25668 Report bugs to the package provider."
25670 _ACEOF
25671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25672 ac_cs_version="\\
25673 config.status
25674 configured by $0, generated by GNU Autoconf 2.64,
25675 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25677 Copyright (C) 2009 Free Software Foundation, Inc.
25678 This config.status script is free software; the Free Software Foundation
25679 gives unlimited permission to copy, distribute and modify it."
25681 ac_pwd='$ac_pwd'
25682 srcdir='$srcdir'
25683 AWK='$AWK'
25684 test -n "\$AWK" || AWK=awk
25685 _ACEOF
25687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25688 # The default lists apply if the user does not specify any file.
25689 ac_need_defaults=:
25690 while test $# != 0
25692 case $1 in
25693 --*=*)
25694 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25695 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25696 ac_shift=:
25699 ac_option=$1
25700 ac_optarg=$2
25701 ac_shift=shift
25703 esac
25705 case $ac_option in
25706 # Handling of the options.
25707 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25708 ac_cs_recheck=: ;;
25709 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25710 $as_echo "$ac_cs_version"; exit ;;
25711 --debug | --debu | --deb | --de | --d | -d )
25712 debug=: ;;
25713 --file | --fil | --fi | --f )
25714 $ac_shift
25715 case $ac_optarg in
25716 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25717 esac
25718 as_fn_append CONFIG_FILES " '$ac_optarg'"
25719 ac_need_defaults=false;;
25720 --header | --heade | --head | --hea )
25721 $ac_shift
25722 case $ac_optarg in
25723 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25724 esac
25725 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25726 ac_need_defaults=false;;
25727 --he | --h)
25728 # Conflict between --help and --header
25729 as_fn_error "ambiguous option: \`$1'
25730 Try \`$0 --help' for more information.";;
25731 --help | --hel | -h )
25732 $as_echo "$ac_cs_usage"; exit ;;
25733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25734 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25735 ac_cs_silent=: ;;
25737 # This is an error.
25738 -*) as_fn_error "unrecognized option: \`$1'
25739 Try \`$0 --help' for more information." ;;
25741 *) as_fn_append ac_config_targets " $1"
25742 ac_need_defaults=false ;;
25744 esac
25745 shift
25746 done
25748 ac_configure_extra_args=
25750 if $ac_cs_silent; then
25751 exec 6>/dev/null
25752 ac_configure_extra_args="$ac_configure_extra_args --silent"
25755 _ACEOF
25756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25757 if \$ac_cs_recheck; then
25758 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25759 shift
25760 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25761 CONFIG_SHELL='$SHELL'
25762 export CONFIG_SHELL
25763 exec "\$@"
25766 _ACEOF
25767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25768 exec 5>>config.log
25770 echo
25771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25772 ## Running $as_me. ##
25773 _ASBOX
25774 $as_echo "$ac_log"
25775 } >&5
25777 _ACEOF
25778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25780 # INIT-COMMANDS
25782 subdirs='$subdirs'
25784 _ACEOF
25786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25788 # Handling of arguments.
25789 for ac_config_target in $ac_config_targets
25791 case $ac_config_target in
25792 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25793 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25794 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25795 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25796 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25797 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25799 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25800 esac
25801 done
25804 # If the user did not use the arguments to specify the items to instantiate,
25805 # then the envvar interface is used. Set only those that are not.
25806 # We use the long form for the default assignment because of an extremely
25807 # bizarre bug on SunOS 4.1.3.
25808 if $ac_need_defaults; then
25809 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25810 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25811 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25814 # Have a temporary directory for convenience. Make it in the build tree
25815 # simply because there is no reason against having it here, and in addition,
25816 # creating and moving files from /tmp can sometimes cause problems.
25817 # Hook for its removal unless debugging.
25818 # Note that there is a small window in which the directory will not be cleaned:
25819 # after its creation but before its name has been assigned to `$tmp'.
25820 $debug ||
25822 tmp=
25823 trap 'exit_status=$?
25824 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25826 trap 'as_fn_exit 1' 1 2 13 15
25828 # Create a (secure) tmp directory for tmp files.
25831 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25832 test -n "$tmp" && test -d "$tmp"
25833 } ||
25835 tmp=./conf$$-$RANDOM
25836 (umask 077 && mkdir "$tmp")
25837 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25839 # Set up the scripts for CONFIG_FILES section.
25840 # No need to generate them if there are no CONFIG_FILES.
25841 # This happens for instance with `./config.status config.h'.
25842 if test -n "$CONFIG_FILES"; then
25844 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25845 ac_cs_awk_getline=:
25846 ac_cs_awk_pipe_init=
25847 ac_cs_awk_read_file='
25848 while ((getline aline < (F[key])) > 0)
25849 print(aline)
25850 close(F[key])'
25851 ac_cs_awk_pipe_fini=
25852 else
25853 ac_cs_awk_getline=false
25854 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25855 ac_cs_awk_read_file='
25856 print "|#_!!_#|"
25857 print "cat " F[key] " &&"
25858 '$ac_cs_awk_pipe_init
25859 # The final `:' finishes the AND list.
25860 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25862 ac_cr=`echo X | tr X '\015'`
25863 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25864 # But we know of no other shell where ac_cr would be empty at this
25865 # point, so we can use a bashism as a fallback.
25866 if test "x$ac_cr" = x; then
25867 eval ac_cr=\$\'\\r\'
25869 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25870 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25871 ac_cs_awk_cr='\r'
25872 else
25873 ac_cs_awk_cr=$ac_cr
25876 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25877 _ACEOF
25879 # Create commands to substitute file output variables.
25881 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25882 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25883 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25884 echo "_ACAWK" &&
25885 echo "_ACEOF"
25886 } >conf$$files.sh &&
25887 . ./conf$$files.sh ||
25888 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25889 rm -f conf$$files.sh
25892 echo "cat >conf$$subs.awk <<_ACEOF" &&
25893 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25894 echo "_ACEOF"
25895 } >conf$$subs.sh ||
25896 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25897 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25898 ac_delim='%!_!# '
25899 for ac_last_try in false false false false false :; do
25900 . ./conf$$subs.sh ||
25901 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25903 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25904 if test $ac_delim_n = $ac_delim_num; then
25905 break
25906 elif $ac_last_try; then
25907 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25908 else
25909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25911 done
25912 rm -f conf$$subs.sh
25914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25915 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25916 _ACEOF
25917 sed -n '
25919 s/^/S["/; s/!.*/"]=/
25922 s/^[^!]*!//
25923 :repl
25924 t repl
25925 s/'"$ac_delim"'$//
25926 t delim
25929 s/\(.\{148\}\).*/\1/
25930 t more1
25931 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25934 b repl
25935 :more1
25936 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25939 s/.\{148\}//
25940 t nl
25941 :delim
25943 s/\(.\{148\}\).*/\1/
25944 t more2
25945 s/["\\]/\\&/g; s/^/"/; s/$/"/
25948 :more2
25949 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25952 s/.\{148\}//
25953 t delim
25954 ' <conf$$subs.awk | sed '
25955 /^[^""]/{
25957 s/\n//
25959 ' >>$CONFIG_STATUS || ac_write_fail=1
25960 rm -f conf$$subs.awk
25961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25962 _ACAWK
25963 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25964 for (key in S) S_is_set[key] = 1
25965 FS = "\a"
25966 \$ac_cs_awk_pipe_init
25969 line = $ 0
25970 nfields = split(line, field, "@")
25971 substed = 0
25972 len = length(field[1])
25973 for (i = 2; i < nfields; i++) {
25974 key = field[i]
25975 keylen = length(key)
25976 if (S_is_set[key]) {
25977 value = S[key]
25978 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25979 len += length(value) + length(field[++i])
25980 substed = 1
25981 } else
25982 len += 1 + keylen
25984 if (nfields == 3 && !substed) {
25985 key = field[2]
25986 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25987 \$ac_cs_awk_read_file
25988 next
25991 print line
25993 \$ac_cs_awk_pipe_fini
25994 _ACAWK
25995 _ACEOF
25996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25997 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25998 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25999 else
26001 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26002 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26003 _ACEOF
26005 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26006 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26007 # trailing colons and then remove the whole line if VPATH becomes empty
26008 # (actually we leave an empty line to preserve line numbers).
26009 if test "x$srcdir" = x.; then
26010 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26011 s/:*\$(srcdir):*/:/
26012 s/:*\${srcdir}:*/:/
26013 s/:*@srcdir@:*/:/
26014 s/^\([^=]*=[ ]*\):*/\1/
26015 s/:*$//
26016 s/^[^=]*=[ ]*$//
26020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26021 fi # test -n "$CONFIG_FILES"
26023 # Set up the scripts for CONFIG_HEADERS section.
26024 # No need to generate them if there are no CONFIG_HEADERS.
26025 # This happens for instance with `./config.status Makefile'.
26026 if test -n "$CONFIG_HEADERS"; then
26027 cat >"$tmp/defines.awk" <<\_ACAWK ||
26028 BEGIN {
26029 _ACEOF
26031 # Transform confdefs.h into an awk script `defines.awk', embedded as
26032 # here-document in config.status, that substitutes the proper values into
26033 # config.h.in to produce config.h.
26035 # Create a delimiter string that does not exist in confdefs.h, to ease
26036 # handling of long lines.
26037 ac_delim='%!_!# '
26038 for ac_last_try in false false :; do
26039 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26040 if test -z "$ac_t"; then
26041 break
26042 elif $ac_last_try; then
26043 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26044 else
26045 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26047 done
26049 # For the awk script, D is an array of macro values keyed by name,
26050 # likewise P contains macro parameters if any. Preserve backslash
26051 # newline sequences.
26053 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26054 sed -n '
26055 s/.\{148\}/&'"$ac_delim"'/g
26056 t rset
26057 :rset
26058 s/^[ ]*#[ ]*define[ ][ ]*/ /
26059 t def
26061 :def
26062 s/\\$//
26063 t bsnl
26064 s/["\\]/\\&/g
26065 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26066 D["\1"]=" \3"/p
26067 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26069 :bsnl
26070 s/["\\]/\\&/g
26071 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26072 D["\1"]=" \3\\\\\\n"\\/p
26073 t cont
26074 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26075 t cont
26077 :cont
26079 s/.\{148\}/&'"$ac_delim"'/g
26080 t clear
26081 :clear
26082 s/\\$//
26083 t bsnlc
26084 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26086 :bsnlc
26087 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26088 b cont
26089 ' <confdefs.h | sed '
26090 s/'"$ac_delim"'/"\\\
26091 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26094 for (key in D) D_is_set[key] = 1
26095 FS = "\a"
26097 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26098 line = \$ 0
26099 split(line, arg, " ")
26100 if (arg[1] == "#") {
26101 defundef = arg[2]
26102 mac1 = arg[3]
26103 } else {
26104 defundef = substr(arg[1], 2)
26105 mac1 = arg[2]
26107 split(mac1, mac2, "(") #)
26108 macro = mac2[1]
26109 prefix = substr(line, 1, index(line, defundef) - 1)
26110 if (D_is_set[macro]) {
26111 # Preserve the white space surrounding the "#".
26112 print prefix "define", macro P[macro] D[macro]
26113 next
26114 } else {
26115 # Replace #undef with comments. This is necessary, for example,
26116 # in the case of _POSIX_SOURCE, which is predefined and required
26117 # on some systems where configure will not decide to define it.
26118 if (defundef == "undef") {
26119 print "/*", prefix defundef, macro, "*/"
26120 next
26124 { print }
26125 _ACAWK
26126 _ACEOF
26127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26128 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26129 fi # test -n "$CONFIG_HEADERS"
26132 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26133 shift
26134 for ac_tag
26136 case $ac_tag in
26137 :[FHLC]) ac_mode=$ac_tag; continue;;
26138 esac
26139 case $ac_mode$ac_tag in
26140 :[FHL]*:*);;
26141 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26142 :[FH]-) ac_tag=-:-;;
26143 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26144 esac
26145 ac_save_IFS=$IFS
26146 IFS=:
26147 set x $ac_tag
26148 IFS=$ac_save_IFS
26149 shift
26150 ac_file=$1
26151 shift
26153 case $ac_mode in
26154 :L) ac_source=$1;;
26155 :[FH])
26156 ac_file_inputs=
26157 for ac_f
26159 case $ac_f in
26160 -) ac_f="$tmp/stdin";;
26161 *) # Look for the file first in the build tree, then in the source tree
26162 # (if the path is not absolute). The absolute path cannot be DOS-style,
26163 # because $ac_f cannot contain `:'.
26164 test -f "$ac_f" ||
26165 case $ac_f in
26166 [\\/$]*) false;;
26167 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26168 esac ||
26169 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26170 esac
26171 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26172 as_fn_append ac_file_inputs " '$ac_f'"
26173 done
26175 # Let's still pretend it is `configure' which instantiates (i.e., don't
26176 # use $as_me), people would be surprised to read:
26177 # /* config.h. Generated by config.status. */
26178 configure_input='Generated from '`
26179 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26180 `' by configure.'
26181 if test x"$ac_file" != x-; then
26182 configure_input="$ac_file. $configure_input"
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26184 $as_echo "$as_me: creating $ac_file" >&6;}
26186 # Neutralize special characters interpreted by sed in replacement strings.
26187 case $configure_input in #(
26188 *\&* | *\|* | *\\* )
26189 ac_sed_conf_input=`$as_echo "$configure_input" |
26190 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26191 *) ac_sed_conf_input=$configure_input;;
26192 esac
26194 case $ac_tag in
26195 *:-:* | *:-) cat >"$tmp/stdin" \
26196 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26197 esac
26199 esac
26201 ac_dir=`$as_dirname -- "$ac_file" ||
26202 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26203 X"$ac_file" : 'X\(//\)[^/]' \| \
26204 X"$ac_file" : 'X\(//\)$' \| \
26205 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26206 $as_echo X"$ac_file" |
26207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26208 s//\1/
26211 /^X\(\/\/\)[^/].*/{
26212 s//\1/
26215 /^X\(\/\/\)$/{
26216 s//\1/
26219 /^X\(\/\).*/{
26220 s//\1/
26223 s/.*/./; q'`
26224 as_dir="$ac_dir"; as_fn_mkdir_p
26225 ac_builddir=.
26227 case "$ac_dir" in
26228 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26230 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26231 # A ".." for each directory in $ac_dir_suffix.
26232 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26233 case $ac_top_builddir_sub in
26234 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26235 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26236 esac ;;
26237 esac
26238 ac_abs_top_builddir=$ac_pwd
26239 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26240 # for backward compatibility:
26241 ac_top_builddir=$ac_top_build_prefix
26243 case $srcdir in
26244 .) # We are building in place.
26245 ac_srcdir=.
26246 ac_top_srcdir=$ac_top_builddir_sub
26247 ac_abs_top_srcdir=$ac_pwd ;;
26248 [\\/]* | ?:[\\/]* ) # Absolute name.
26249 ac_srcdir=$srcdir$ac_dir_suffix;
26250 ac_top_srcdir=$srcdir
26251 ac_abs_top_srcdir=$srcdir ;;
26252 *) # Relative name.
26253 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26254 ac_top_srcdir=$ac_top_build_prefix$srcdir
26255 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26256 esac
26257 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26260 case $ac_mode in
26263 # CONFIG_FILE
26266 _ACEOF
26268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26269 # If the template does not know about datarootdir, expand it.
26270 # FIXME: This hack should be removed a few years after 2.60.
26271 ac_datarootdir_hack=; ac_datarootdir_seen=
26272 ac_sed_dataroot='
26273 /datarootdir/ {
26277 /@datadir@/p
26278 /@docdir@/p
26279 /@infodir@/p
26280 /@localedir@/p
26281 /@mandir@/p'
26282 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26283 *datarootdir*) ac_datarootdir_seen=yes;;
26284 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26286 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26287 _ACEOF
26288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26289 ac_datarootdir_hack='
26290 s&@datadir@&$datadir&g
26291 s&@docdir@&$docdir&g
26292 s&@infodir@&$infodir&g
26293 s&@localedir@&$localedir&g
26294 s&@mandir@&$mandir&g
26295 s&\\\${datarootdir}&$datarootdir&g' ;;
26296 esac
26297 _ACEOF
26299 # Neutralize VPATH when `$srcdir' = `.'.
26300 # Shell code in configure.ac might set extrasub.
26301 # FIXME: do we really want to maintain this feature?
26302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26303 ac_sed_extra="$ac_vpsub
26304 $extrasub
26305 _ACEOF
26306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26308 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26309 s|@configure_input@|$ac_sed_conf_input|;t t
26310 s&@top_builddir@&$ac_top_builddir_sub&;t t
26311 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26312 s&@srcdir@&$ac_srcdir&;t t
26313 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26314 s&@top_srcdir@&$ac_top_srcdir&;t t
26315 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26316 s&@builddir@&$ac_builddir&;t t
26317 s&@abs_builddir@&$ac_abs_builddir&;t t
26318 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26319 $ac_datarootdir_hack
26321 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
26322 if $ac_cs_awk_getline; then
26323 $AWK -f "$tmp/subs.awk"
26324 else
26325 $AWK -f "$tmp/subs.awk" | $SHELL
26326 fi >$tmp/out \
26327 || as_fn_error "could not create $ac_file" "$LINENO" 5
26329 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26330 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26331 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26333 which seems to be undefined. Please make sure it is defined." >&5
26334 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26335 which seems to be undefined. Please make sure it is defined." >&2;}
26337 rm -f "$tmp/stdin"
26338 case $ac_file in
26339 -) cat "$tmp/out" && rm -f "$tmp/out";;
26340 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26341 esac \
26342 || as_fn_error "could not create $ac_file" "$LINENO" 5
26346 # CONFIG_HEADER
26348 if test x"$ac_file" != x-; then
26350 $as_echo "/* $configure_input */" \
26351 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26352 } >"$tmp/config.h" \
26353 || as_fn_error "could not create $ac_file" "$LINENO" 5
26354 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26355 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26356 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26357 else
26358 rm -f "$ac_file"
26359 mv "$tmp/config.h" "$ac_file" \
26360 || as_fn_error "could not create $ac_file" "$LINENO" 5
26362 else
26363 $as_echo "/* $configure_input */" \
26364 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26365 || as_fn_error "could not create -" "$LINENO" 5
26369 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26370 $as_echo "$as_me: executing $ac_file commands" >&6;}
26372 esac
26375 case $ac_file$ac_mode in
26376 "as":F) chmod +x as ;;
26377 "collect-ld":F) chmod +x collect-ld ;;
26378 "nm":F) chmod +x nm ;;
26379 "default":C)
26380 case ${CONFIG_HEADERS} in
26381 *auto-host.h:config.in*)
26382 echo > cstamp-h ;;
26383 esac
26384 # Make sure all the subdirs exist.
26385 for d in $subdirs doc build
26387 test -d $d || mkdir $d
26388 done
26391 esac
26392 done # for ac_tag
26395 as_fn_exit 0
26396 _ACEOF
26397 ac_clean_files=$ac_clean_files_save
26399 test $ac_write_fail = 0 ||
26400 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26403 # configure is writing to config.log, and then calls config.status.
26404 # config.status does its own redirection, appending to config.log.
26405 # Unfortunately, on DOS this fails, as config.log is still kept open
26406 # by configure, so config.status won't be able to write to it; its
26407 # output is simply discarded. So we exec the FD to /dev/null,
26408 # effectively closing config.log, so it can be properly (re)opened and
26409 # appended to by config.status. When coming back to configure, we
26410 # need to make the FD available again.
26411 if test "$no_create" != yes; then
26412 ac_cs_success=:
26413 ac_config_status_args=
26414 test "$silent" = yes &&
26415 ac_config_status_args="$ac_config_status_args --quiet"
26416 exec 5>/dev/null
26417 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26418 exec 5>>config.log
26419 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26420 # would make configure fail if this is the last instruction.
26421 $ac_cs_success || as_fn_exit $?
26423 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26425 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}