Enable dumping of alias graphs.
[official-gcc/Ramakrishna.git] / gcc / configure
blobdbc7f154a3b778d1c989832a7478ed635fa6a729
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 CLOOGINC
745 CLOOGLIBS
746 PPLINC
747 PPLLIBS
748 GMPINC
749 GMPLIBS
750 target_cpu_default
751 fortran_target_objs
752 cxx_target_objs
753 c_target_objs
754 use_gcc_stdint
755 xm_defines
756 xm_include_list
757 xm_file_list
758 tm_p_include_list
759 tm_p_file_list
760 tm_defines
761 tm_include_list
762 tm_file_list
763 thread_file
764 out_object_file
765 out_file
766 objc_boehm_gc
767 md_file
768 local_prefix
769 lang_tree_files
770 lang_specs_files
771 lang_opt_files
772 install
773 out_host_hook_obj
774 host_xm_defines
775 host_xm_include_list
776 host_xm_file_list
777 host_exeext
778 gcc_gxx_include_dir
779 gcc_config_arguments
780 float_h_file
781 extra_programs
782 extra_passes
783 extra_parts
784 extra_objs
785 extra_headers_list
786 extra_gcc_objs
787 TM_MULTILIB_EXCEPTIONS_CONFIG
788 TM_MULTILIB_CONFIG
789 TM_ENDIAN_CONFIG
790 tmake_file
791 xmake_file
792 cpp_install_dir
793 check_languages
794 build_file_translate
795 build_xm_defines
796 build_xm_include_list
797 build_xm_file_list
798 build_install_headers_dir
799 build_exeext
800 all_selected_languages
801 all_languages
802 all_lang_makefiles
803 all_lang_makefrags
804 all_gtfiles
805 all_compilers
806 srcdir
807 subdirs
808 slibdir
809 dollar
810 gcc_tooldir
811 MAINT
812 zlibinc
813 zlibdir
814 HOST_LIBS
816 libgcc_visibility
817 gcc_cv_readelf
818 gcc_cv_objdump
819 ORIGINAL_NM_FOR_TARGET
820 gcc_cv_nm
821 ORIGINAL_LD_FOR_TARGET
822 gcc_cv_ld
823 ORIGINAL_AS_FOR_TARGET
824 gcc_cv_as
825 enable_fast_install
826 objdir
827 CXXCPP
828 OTOOL64
829 OTOOL
830 LIPO
831 NMEDIT
832 DSYMUTIL
833 lt_ECHO
834 STRIP
835 OBJDUMP
836 ac_ct_DUMPBIN
837 DUMPBIN
839 FGREP
841 LIBTOOL
842 collect2
843 STMP_FIXINC
844 BUILD_LDFLAGS
845 BUILD_CFLAGS
846 CC_FOR_BUILD
847 inhibit_libc
848 SYSTEM_HEADER_DIR
850 CROSS
851 CATOBJEXT
852 GENCAT
853 INSTOBJEXT
854 DATADIRNAME
855 CATALOGS
856 POSUB
857 GMSGFMT
858 XGETTEXT
859 INCINTL
860 LIBINTL_DEP
861 LIBINTL
862 USE_NLS
863 extra_opt_files
864 extra_modes_file
865 gthread_flags
866 objext
867 manext
868 LIBICONV_DEP
869 LTLIBICONV
870 LIBICONV
871 LDEXP_LIB
872 GNAT_LIBEXC
873 COLLECT2_LIBS
876 BISON
877 FLEX
878 GENERATED_MANPAGES
879 BUILD_INFO
880 MAKEINFO
881 have_mktemp_command
882 make_compare_target
883 INSTALL_DATA
884 INSTALL_PROGRAM
885 INSTALL
886 ranlib_flags
887 RANLIB
889 LN_S
891 SET_MAKE
892 REPORT_BUGS_TEXI
893 REPORT_BUGS_TO
894 PKGVERSION
895 onestep
896 CROSS_SYSTEM_HEADER_DIR
897 TARGET_SYSTEM_ROOT_DEFINE
898 TARGET_SYSTEM_ROOT
899 enable_shared
900 enable_fixed_point
901 enable_decimal_float
902 enable_multilib
903 ENABLE_BUILD_WITH_CXX
904 coverage_flags
905 valgrind_command
906 valgrind_path_defines
907 valgrind_path
908 TREEBROWSER
909 nocommon_flag
910 warn_cxxflags
911 warn_cflags
912 c_strict_warn
913 strict_warn
914 c_loose_warn
915 loose_warn
916 EGREP
917 GREP
919 OUTPUT_OPTION
920 NO_MINUS_C_MINUS_O
921 GNATMAKE
922 GNATBIND
923 ac_ct_CXX
924 CXXFLAGS
926 OBJEXT
927 EXEEXT
928 ac_ct_CC
929 CPPFLAGS
930 LDFLAGS
931 CFLAGS
933 GENINSRC
934 target_subdir
935 host_subdir
936 build_subdir
937 build_libsubdir
938 target_noncanonical
939 target_os
940 target_vendor
941 target_cpu
942 target
943 host_os
944 host_vendor
945 host_cpu
946 host
947 build_os
948 build_vendor
949 build_cpu
950 build
951 target_alias
952 host_alias
953 build_alias
954 LIBS
955 ECHO_T
956 ECHO_N
957 ECHO_C
958 DEFS
959 mandir
960 localedir
961 libdir
962 psdir
963 pdfdir
964 dvidir
965 htmldir
966 infodir
967 docdir
968 oldincludedir
969 includedir
970 localstatedir
971 sharedstatedir
972 sysconfdir
973 datadir
974 datarootdir
975 libexecdir
976 sbindir
977 bindir
978 program_transform_name
979 prefix
980 exec_prefix
981 PACKAGE_URL
982 PACKAGE_BUGREPORT
983 PACKAGE_STRING
984 PACKAGE_VERSION
985 PACKAGE_TARNAME
986 PACKAGE_NAME
987 PATH_SEPARATOR
988 SHELL'
989 ac_subst_files='language_hooks'
990 ac_user_opts='
991 enable_option_checking
992 with_build_libsubdir
993 with_local_prefix
994 with_gxx_include_dir
995 with_cpp_install_dir
996 enable_generated_files_in_srcdir
997 with_gnu_ld
998 with_ld
999 with_demangler_in_ld
1000 with_gnu_as
1001 with_as
1002 enable_werror_always
1003 enable_checking
1004 enable_coverage
1005 enable_gather_detailed_mem_stats
1006 enable_build_with_cxx
1007 with_stabs
1008 enable_multilib
1009 enable___cxa_atexit
1010 enable_decimal_float
1011 enable_fixed_point
1012 enable_threads
1013 enable_tls
1014 enable_objc_gc
1015 with_dwarf2
1016 enable_shared
1017 with_build_sysroot
1018 with_sysroot
1019 enable_intermodule
1020 with_pkgversion
1021 with_bugurl
1022 enable_languages
1023 with_multilib_list
1024 enable_rpath
1025 with_libiconv_prefix
1026 enable_initfini_array
1027 enable_sjlj_exceptions
1028 with_system_libunwind
1029 enable_secureplt
1030 enable_cld
1031 enable_win32_registry
1032 enable_static
1033 with_pic
1034 enable_fast_install
1035 enable_libtool_lock
1036 enable_gnu_unique_object
1037 enable_linker_build_id
1038 with_long_double_128
1039 with_gc
1040 with_system_zlib
1041 enable_maintainer_mode
1042 enable_version_specific_runtime_libs
1043 with_slibdir
1044 enable_plugin
1046 ac_precious_vars='build_alias
1047 host_alias
1048 target_alias
1050 CFLAGS
1051 LDFLAGS
1052 LIBS
1053 CPPFLAGS
1055 CXXFLAGS
1058 CXXCPP
1059 GMPLIBS
1060 GMPINC
1061 PPLLIBS
1062 PPLINC
1063 CLOOGLIBS
1064 CLOOGINC'
1067 # Initialize some variables set by options.
1068 ac_init_help=
1069 ac_init_version=false
1070 ac_unrecognized_opts=
1071 ac_unrecognized_sep=
1072 # The variables have the same names as the options, with
1073 # dashes changed to underlines.
1074 cache_file=/dev/null
1075 exec_prefix=NONE
1076 no_create=
1077 no_recursion=
1078 prefix=NONE
1079 program_prefix=NONE
1080 program_suffix=NONE
1081 program_transform_name=s,x,x,
1082 silent=
1083 site=
1084 srcdir=
1085 verbose=
1086 x_includes=NONE
1087 x_libraries=NONE
1089 # Installation directory options.
1090 # These are left unexpanded so users can "make install exec_prefix=/foo"
1091 # and all the variables that are supposed to be based on exec_prefix
1092 # by default will actually change.
1093 # Use braces instead of parens because sh, perl, etc. also accept them.
1094 # (The list follows the same order as the GNU Coding Standards.)
1095 bindir='${exec_prefix}/bin'
1096 sbindir='${exec_prefix}/sbin'
1097 libexecdir='${exec_prefix}/libexec'
1098 datarootdir='${prefix}/share'
1099 datadir='${datarootdir}'
1100 sysconfdir='${prefix}/etc'
1101 sharedstatedir='${prefix}/com'
1102 localstatedir='${prefix}/var'
1103 includedir='${prefix}/include'
1104 oldincludedir='/usr/include'
1105 docdir='${datarootdir}/doc/${PACKAGE}'
1106 infodir='${datarootdir}/info'
1107 htmldir='${docdir}'
1108 dvidir='${docdir}'
1109 pdfdir='${docdir}'
1110 psdir='${docdir}'
1111 libdir='${exec_prefix}/lib'
1112 localedir='${datarootdir}/locale'
1113 mandir='${datarootdir}/man'
1115 ac_prev=
1116 ac_dashdash=
1117 for ac_option
1119 # If the previous option needs an argument, assign it.
1120 if test -n "$ac_prev"; then
1121 eval $ac_prev=\$ac_option
1122 ac_prev=
1123 continue
1126 case $ac_option in
1127 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1128 *) ac_optarg=yes ;;
1129 esac
1131 # Accept the important Cygnus configure options, so we can diagnose typos.
1133 case $ac_dashdash$ac_option in
1135 ac_dashdash=yes ;;
1137 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138 ac_prev=bindir ;;
1139 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1140 bindir=$ac_optarg ;;
1142 -build | --build | --buil | --bui | --bu)
1143 ac_prev=build_alias ;;
1144 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1145 build_alias=$ac_optarg ;;
1147 -cache-file | --cache-file | --cache-fil | --cache-fi \
1148 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1149 ac_prev=cache_file ;;
1150 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1151 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1152 cache_file=$ac_optarg ;;
1154 --config-cache | -C)
1155 cache_file=config.cache ;;
1157 -datadir | --datadir | --datadi | --datad)
1158 ac_prev=datadir ;;
1159 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1160 datadir=$ac_optarg ;;
1162 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1163 | --dataroo | --dataro | --datar)
1164 ac_prev=datarootdir ;;
1165 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1166 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1167 datarootdir=$ac_optarg ;;
1169 -disable-* | --disable-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid feature name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1178 "enable_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval enable_$ac_useropt=no ;;
1185 -docdir | --docdir | --docdi | --doc | --do)
1186 ac_prev=docdir ;;
1187 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188 docdir=$ac_optarg ;;
1190 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1191 ac_prev=dvidir ;;
1192 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193 dvidir=$ac_optarg ;;
1195 -enable-* | --enable-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid feature name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "enable_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval enable_$ac_useropt=\$ac_optarg ;;
1211 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1212 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1213 | --exec | --exe | --ex)
1214 ac_prev=exec_prefix ;;
1215 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1216 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1217 | --exec=* | --exe=* | --ex=*)
1218 exec_prefix=$ac_optarg ;;
1220 -gas | --gas | --ga | --g)
1221 # Obsolete; use --with-gas.
1222 with_gas=yes ;;
1224 -help | --help | --hel | --he | -h)
1225 ac_init_help=long ;;
1226 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1227 ac_init_help=recursive ;;
1228 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1229 ac_init_help=short ;;
1231 -host | --host | --hos | --ho)
1232 ac_prev=host_alias ;;
1233 -host=* | --host=* | --hos=* | --ho=*)
1234 host_alias=$ac_optarg ;;
1236 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237 ac_prev=htmldir ;;
1238 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239 | --ht=*)
1240 htmldir=$ac_optarg ;;
1242 -includedir | --includedir | --includedi | --included | --include \
1243 | --includ | --inclu | --incl | --inc)
1244 ac_prev=includedir ;;
1245 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1246 | --includ=* | --inclu=* | --incl=* | --inc=*)
1247 includedir=$ac_optarg ;;
1249 -infodir | --infodir | --infodi | --infod | --info | --inf)
1250 ac_prev=infodir ;;
1251 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252 infodir=$ac_optarg ;;
1254 -libdir | --libdir | --libdi | --libd)
1255 ac_prev=libdir ;;
1256 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257 libdir=$ac_optarg ;;
1259 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1260 | --libexe | --libex | --libe)
1261 ac_prev=libexecdir ;;
1262 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1263 | --libexe=* | --libex=* | --libe=*)
1264 libexecdir=$ac_optarg ;;
1266 -localedir | --localedir | --localedi | --localed | --locale)
1267 ac_prev=localedir ;;
1268 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269 localedir=$ac_optarg ;;
1271 -localstatedir | --localstatedir | --localstatedi | --localstated \
1272 | --localstate | --localstat | --localsta | --localst | --locals)
1273 ac_prev=localstatedir ;;
1274 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1275 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1276 localstatedir=$ac_optarg ;;
1278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279 ac_prev=mandir ;;
1280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281 mandir=$ac_optarg ;;
1283 -nfp | --nfp | --nf)
1284 # Obsolete; use --without-fp.
1285 with_fp=no ;;
1287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288 | --no-cr | --no-c | -n)
1289 no_create=yes ;;
1291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1293 no_recursion=yes ;;
1295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1297 | --oldin | --oldi | --old | --ol | --o)
1298 ac_prev=oldincludedir ;;
1299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1302 oldincludedir=$ac_optarg ;;
1304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305 ac_prev=prefix ;;
1306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307 prefix=$ac_optarg ;;
1309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1310 | --program-pre | --program-pr | --program-p)
1311 ac_prev=program_prefix ;;
1312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1314 program_prefix=$ac_optarg ;;
1316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1317 | --program-suf | --program-su | --program-s)
1318 ac_prev=program_suffix ;;
1319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1321 program_suffix=$ac_optarg ;;
1323 -program-transform-name | --program-transform-name \
1324 | --program-transform-nam | --program-transform-na \
1325 | --program-transform-n | --program-transform- \
1326 | --program-transform | --program-transfor \
1327 | --program-transfo | --program-transf \
1328 | --program-trans | --program-tran \
1329 | --progr-tra | --program-tr | --program-t)
1330 ac_prev=program_transform_name ;;
1331 -program-transform-name=* | --program-transform-name=* \
1332 | --program-transform-nam=* | --program-transform-na=* \
1333 | --program-transform-n=* | --program-transform-=* \
1334 | --program-transform=* | --program-transfor=* \
1335 | --program-transfo=* | --program-transf=* \
1336 | --program-trans=* | --program-tran=* \
1337 | --progr-tra=* | --program-tr=* | --program-t=*)
1338 program_transform_name=$ac_optarg ;;
1340 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341 ac_prev=pdfdir ;;
1342 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343 pdfdir=$ac_optarg ;;
1345 -psdir | --psdir | --psdi | --psd | --ps)
1346 ac_prev=psdir ;;
1347 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1348 psdir=$ac_optarg ;;
1350 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351 | -silent | --silent | --silen | --sile | --sil)
1352 silent=yes ;;
1354 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355 ac_prev=sbindir ;;
1356 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357 | --sbi=* | --sb=*)
1358 sbindir=$ac_optarg ;;
1360 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1361 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1362 | --sharedst | --shareds | --shared | --share | --shar \
1363 | --sha | --sh)
1364 ac_prev=sharedstatedir ;;
1365 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1367 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368 | --sha=* | --sh=*)
1369 sharedstatedir=$ac_optarg ;;
1371 -site | --site | --sit)
1372 ac_prev=site ;;
1373 -site=* | --site=* | --sit=*)
1374 site=$ac_optarg ;;
1376 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377 ac_prev=srcdir ;;
1378 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379 srcdir=$ac_optarg ;;
1381 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1382 | --syscon | --sysco | --sysc | --sys | --sy)
1383 ac_prev=sysconfdir ;;
1384 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1385 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1386 sysconfdir=$ac_optarg ;;
1388 -target | --target | --targe | --targ | --tar | --ta | --t)
1389 ac_prev=target_alias ;;
1390 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1391 target_alias=$ac_optarg ;;
1393 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1394 verbose=yes ;;
1396 -version | --version | --versio | --versi | --vers | -V)
1397 ac_init_version=: ;;
1399 -with-* | --with-*)
1400 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401 # Reject names that are not valid shell variable names.
1402 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1403 as_fn_error "invalid package name: $ac_useropt"
1404 ac_useropt_orig=$ac_useropt
1405 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406 case $ac_user_opts in
1408 "with_$ac_useropt"
1409 "*) ;;
1410 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1411 ac_unrecognized_sep=', ';;
1412 esac
1413 eval with_$ac_useropt=\$ac_optarg ;;
1415 -without-* | --without-*)
1416 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1417 # Reject names that are not valid shell variable names.
1418 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419 as_fn_error "invalid package name: $ac_useropt"
1420 ac_useropt_orig=$ac_useropt
1421 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422 case $ac_user_opts in
1424 "with_$ac_useropt"
1425 "*) ;;
1426 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1427 ac_unrecognized_sep=', ';;
1428 esac
1429 eval with_$ac_useropt=no ;;
1431 --x)
1432 # Obsolete; use --with-x.
1433 with_x=yes ;;
1435 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1436 | --x-incl | --x-inc | --x-in | --x-i)
1437 ac_prev=x_includes ;;
1438 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1439 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1440 x_includes=$ac_optarg ;;
1442 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1443 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1444 ac_prev=x_libraries ;;
1445 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1446 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1447 x_libraries=$ac_optarg ;;
1449 -*) as_fn_error "unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information."
1453 *=*)
1454 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1455 # Reject names that are not valid shell variable names.
1456 case $ac_envvar in #(
1457 '' | [0-9]* | *[!_$as_cr_alnum]* )
1458 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1459 esac
1460 eval $ac_envvar=\$ac_optarg
1461 export $ac_envvar ;;
1464 # FIXME: should be removed in autoconf 3.0.
1465 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1471 esac
1472 done
1474 if test -n "$ac_prev"; then
1475 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476 as_fn_error "missing argument to $ac_option"
1479 if test -n "$ac_unrecognized_opts"; then
1480 case $enable_option_checking in
1481 no) ;;
1482 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1483 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1484 esac
1487 # Check all directory arguments for consistency.
1488 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1489 datadir sysconfdir sharedstatedir localstatedir includedir \
1490 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1491 libdir localedir mandir
1493 eval ac_val=\$$ac_var
1494 # Remove trailing slashes.
1495 case $ac_val in
1496 */ )
1497 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1498 eval $ac_var=\$ac_val;;
1499 esac
1500 # Be sure to have absolute directory names.
1501 case $ac_val in
1502 [\\/$]* | ?:[\\/]* ) continue;;
1503 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1504 esac
1505 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1506 done
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1511 build=$build_alias
1512 host=$host_alias
1513 target=$target_alias
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x; then
1517 if test "x$build_alias" = x; then
1518 cross_compiling=maybe
1519 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1520 If a cross compiler is detected then cross compile mode will be used." >&2
1521 elif test "x$build_alias" != "x$host_alias"; then
1522 cross_compiling=yes
1526 ac_tool_prefix=
1527 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1529 test "$silent" = yes && exec 6>/dev/null
1532 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1533 ac_ls_di=`ls -di .` &&
1534 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1535 as_fn_error "working directory cannot be determined"
1536 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1537 as_fn_error "pwd does not report name of working directory"
1540 # Find the source files, if location was not specified.
1541 if test -z "$srcdir"; then
1542 ac_srcdir_defaulted=yes
1543 # Try the directory containing this script, then the parent directory.
1544 ac_confdir=`$as_dirname -- "$as_myself" ||
1545 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1546 X"$as_myself" : 'X\(//\)[^/]' \| \
1547 X"$as_myself" : 'X\(//\)$' \| \
1548 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1549 $as_echo X"$as_myself" |
1550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1551 s//\1/
1554 /^X\(\/\/\)[^/].*/{
1555 s//\1/
1558 /^X\(\/\/\)$/{
1559 s//\1/
1562 /^X\(\/\).*/{
1563 s//\1/
1566 s/.*/./; q'`
1567 srcdir=$ac_confdir
1568 if test ! -r "$srcdir/$ac_unique_file"; then
1569 srcdir=..
1571 else
1572 ac_srcdir_defaulted=no
1574 if test ! -r "$srcdir/$ac_unique_file"; then
1575 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1576 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1578 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1579 ac_abs_confdir=`(
1580 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1581 pwd)`
1582 # When building in place, set srcdir=.
1583 if test "$ac_abs_confdir" = "$ac_pwd"; then
1584 srcdir=.
1586 # Remove unnecessary trailing slashes from srcdir.
1587 # Double slashes in file names in object file debugging info
1588 # mess up M-x gdb in Emacs.
1589 case $srcdir in
1590 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1591 esac
1592 for ac_var in $ac_precious_vars; do
1593 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1594 eval ac_env_${ac_var}_value=\$${ac_var}
1595 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1596 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1597 done
1600 # Report the --help message.
1602 if test "$ac_init_help" = "long"; then
1603 # Omit some internal or obsolete options to make the list less imposing.
1604 # This message is too long to be a string in the A/UX 3.1 sh.
1605 cat <<_ACEOF
1606 \`configure' configures this package to adapt to many kinds of systems.
1608 Usage: $0 [OPTION]... [VAR=VALUE]...
1610 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1611 VAR=VALUE. See below for descriptions of some of the useful variables.
1613 Defaults for the options are specified in brackets.
1615 Configuration:
1616 -h, --help display this help and exit
1617 --help=short display options specific to this package
1618 --help=recursive display the short help of all the included packages
1619 -V, --version display version information and exit
1620 -q, --quiet, --silent do not print \`checking...' messages
1621 --cache-file=FILE cache test results in FILE [disabled]
1622 -C, --config-cache alias for \`--cache-file=config.cache'
1623 -n, --no-create do not create output files
1624 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1626 Installation directories:
1627 --prefix=PREFIX install architecture-independent files in PREFIX
1628 [$ac_default_prefix]
1629 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1630 [PREFIX]
1632 By default, \`make install' will install all the files in
1633 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1634 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1635 for instance \`--prefix=\$HOME'.
1637 For better control, use the options below.
1639 Fine tuning of the installation directories:
1640 --bindir=DIR user executables [EPREFIX/bin]
1641 --sbindir=DIR system admin executables [EPREFIX/sbin]
1642 --libexecdir=DIR program executables [EPREFIX/libexec]
1643 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1644 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1645 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1646 --libdir=DIR object code libraries [EPREFIX/lib]
1647 --includedir=DIR C header files [PREFIX/include]
1648 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1649 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1650 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1651 --infodir=DIR info documentation [DATAROOTDIR/info]
1652 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1653 --mandir=DIR man documentation [DATAROOTDIR/man]
1654 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1655 --htmldir=DIR html documentation [DOCDIR]
1656 --dvidir=DIR dvi documentation [DOCDIR]
1657 --pdfdir=DIR pdf documentation [DOCDIR]
1658 --psdir=DIR ps documentation [DOCDIR]
1659 _ACEOF
1661 cat <<\_ACEOF
1663 Program names:
1664 --program-prefix=PREFIX prepend PREFIX to installed program names
1665 --program-suffix=SUFFIX append SUFFIX to installed program names
1666 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1668 System types:
1669 --build=BUILD configure for building on BUILD [guessed]
1670 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1671 --target=TARGET configure for building compilers for TARGET [HOST]
1672 _ACEOF
1675 if test -n "$ac_init_help"; then
1677 cat <<\_ACEOF
1679 Optional Features:
1680 --disable-option-checking ignore unrecognized --enable/--with options
1681 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1682 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1683 --enable-generated-files-in-srcdir
1684 put copies of generated files in source dir
1685 intended for creating source tarballs for users
1686 without texinfo bison or flex.
1687 --enable-werror-always enable -Werror despite compiler version
1688 --enable-checking=LIST
1689 enable expensive run-time checks. With LIST,
1690 enable only specific categories of checks.
1691 Categories are: yes,no,all,none,release.
1692 Flags are: assert,df,fold,gc,gcac,gimple,misc,
1693 rtlflag,rtl,runtime,tree,valgrind,types.
1694 --enable-coverage=LEVEL
1695 enable compiler's code coverage collection.
1696 Use to measure compiler performance and locate
1697 unused parts of the compiler. With LEVEL, specify
1698 optimization. Values are opt, noopt,
1699 default is noopt
1700 --enable-gather-detailed-mem-stats enable detailed memory allocation stats gathering
1701 --enable-build-with-cxx build with C++ compiler instead of C compiler
1702 --enable-multilib enable library support for multiple ABIs
1703 --enable-__cxa_atexit enable __cxa_atexit for C++
1704 --enable-decimal-float={no,yes,bid,dpd}
1705 enable decimal float extension to C. Selecting 'bid'
1706 or 'dpd' choses which decimal floating point format
1707 to use
1708 --enable-fixed-point enable fixed-point arithmetic extension to C
1709 --enable-threads enable thread usage for target GCC
1710 --enable-threads=LIB use LIB thread package for target GCC
1711 --enable-tls enable or disable generation of tls code
1712 overriding the assembler check for tls support
1713 --enable-objc-gc enable the use of Boehm's garbage collector with
1714 the GNU Objective-C runtime
1715 --disable-shared don't provide a shared libgcc
1716 --enable-intermodule build the compiler in one step
1717 --enable-languages=LIST specify which front-ends to build
1718 --disable-rpath do not hardcode runtime library paths
1719 --enable-initfini-array use .init_array/.fini_array sections
1720 --enable-sjlj-exceptions
1721 arrange to use setjmp/longjmp exception handling
1722 --enable-secureplt enable -msecure-plt by default for PowerPC
1723 --enable-cld enable -mcld by default for 32bit x86
1724 --disable-win32-registry
1725 disable lookup of installation paths in the
1726 Registry on Windows hosts
1727 --enable-win32-registry enable registry lookup (default)
1728 --enable-win32-registry=KEY
1729 use KEY instead of GCC version as the last portion
1730 of the registry key
1731 --enable-shared[=PKGS] build shared libraries [default=yes]
1732 --enable-static[=PKGS] build static libraries [default=yes]
1733 --enable-fast-install[=PKGS]
1734 optimize for fast installation [default=yes]
1735 --disable-libtool-lock avoid locking (might break parallel builds)
1736 --enable-gnu-unique-object enable the use of the @gnu_unique_object ELF extension on
1737 glibc systems
1738 --enable-linker-build-id
1739 compiler will always pass --build-id to linker
1740 --enable-maintainer-mode
1741 enable make rules and dependencies not useful
1742 (and sometimes confusing) to the casual installer
1743 --enable-version-specific-runtime-libs
1744 specify that runtime libraries should be
1745 installed in a compiler-specific directory
1746 --enable-plugin enable plugin support
1748 Optional Packages:
1749 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1750 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1751 --with-build-libsubdir=DIR Directory where to find libraries for build system
1752 --with-local-prefix=DIR specifies directory to put local include
1753 --with-gxx-include-dir=DIR
1754 specifies directory to put g++ header files
1755 --with-cpp-install-dir=DIR
1756 install the user visible C preprocessor in DIR
1757 (relative to PREFIX) as well as PREFIX/bin
1758 --with-gnu-ld arrange to work with GNU ld.
1759 --with-ld arrange to use the specified ld (full pathname)
1760 --with-demangler-in-ld try to use demangler in GNU ld.
1761 --with-gnu-as arrange to work with GNU as
1762 --with-as arrange to use the specified as (full pathname)
1763 --with-stabs arrange to use stabs instead of host debug format
1764 --with-dwarf2 force the default debug format to be DWARF 2
1765 --with-build-sysroot=sysroot
1766 use sysroot as the system root during the build
1767 --with-sysroot=DIR Search for usr/lib, usr/include, et al, within DIR.
1768 --with-pkgversion=PKG Use PKG in the version string in place of "GCC"
1769 --with-bugurl=URL Direct users to URL to report a bug
1770 --with-multilib-list Select multilibs (SH only)
1771 --with-gnu-ld assume the C compiler uses GNU ld default=no
1772 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1773 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1774 --with-system-libunwind use installed libunwind
1775 --with-pic try to use only PIC/non-PIC objects [default=use
1776 both]
1777 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1778 --with-long-double-128 Use 128-bit long double by default.
1779 --with-gc={page,zone} choose the garbage collection mechanism to use
1780 with the compiler
1781 --with-system-zlib use installed libz
1782 --with-slibdir=DIR shared libraries in DIR [LIBDIR]
1784 Some influential environment variables:
1785 CC C compiler command
1786 CFLAGS C compiler flags
1787 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1788 nonstandard directory <lib dir>
1789 LIBS libraries to pass to the linker, e.g. -l<library>
1790 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1791 you have headers in a nonstandard directory <include dir>
1792 CXX C++ compiler command
1793 CXXFLAGS C++ compiler flags
1794 CPP C preprocessor
1795 CXXCPP C++ preprocessor
1796 GMPLIBS How to link GMP
1797 GMPINC How to find GMP include files
1798 PPLLIBS How to link PPL
1799 PPLINC How to find PPL include files
1800 CLOOGLIBS How to link CLOOG
1801 CLOOGINC How to find CLOOG include files
1803 Use these variables to override the choices made by `configure' or to help
1804 it to find libraries and programs with nonstandard names/locations.
1806 Report bugs to the package provider.
1807 _ACEOF
1808 ac_status=$?
1811 if test "$ac_init_help" = "recursive"; then
1812 # If there are subdirs, report their specific --help.
1813 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1814 test -d "$ac_dir" ||
1815 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1816 continue
1817 ac_builddir=.
1819 case "$ac_dir" in
1820 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1822 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1823 # A ".." for each directory in $ac_dir_suffix.
1824 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1825 case $ac_top_builddir_sub in
1826 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1827 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1828 esac ;;
1829 esac
1830 ac_abs_top_builddir=$ac_pwd
1831 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1832 # for backward compatibility:
1833 ac_top_builddir=$ac_top_build_prefix
1835 case $srcdir in
1836 .) # We are building in place.
1837 ac_srcdir=.
1838 ac_top_srcdir=$ac_top_builddir_sub
1839 ac_abs_top_srcdir=$ac_pwd ;;
1840 [\\/]* | ?:[\\/]* ) # Absolute name.
1841 ac_srcdir=$srcdir$ac_dir_suffix;
1842 ac_top_srcdir=$srcdir
1843 ac_abs_top_srcdir=$srcdir ;;
1844 *) # Relative name.
1845 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1846 ac_top_srcdir=$ac_top_build_prefix$srcdir
1847 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1848 esac
1849 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1851 cd "$ac_dir" || { ac_status=$?; continue; }
1852 # Check for guested configure.
1853 if test -f "$ac_srcdir/configure.gnu"; then
1854 echo &&
1855 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1856 elif test -f "$ac_srcdir/configure"; then
1857 echo &&
1858 $SHELL "$ac_srcdir/configure" --help=recursive
1859 else
1860 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1861 fi || ac_status=$?
1862 cd "$ac_pwd" || { ac_status=$?; break; }
1863 done
1866 test -n "$ac_init_help" && exit $ac_status
1867 if $ac_init_version; then
1868 cat <<\_ACEOF
1869 configure
1870 generated by GNU Autoconf 2.64
1872 Copyright (C) 2009 Free Software Foundation, Inc.
1873 This configure script is free software; the Free Software Foundation
1874 gives unlimited permission to copy, distribute and modify it.
1875 _ACEOF
1876 exit
1879 ## ------------------------ ##
1880 ## Autoconf initialization. ##
1881 ## ------------------------ ##
1883 # ac_fn_c_try_compile LINENO
1884 # --------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_c_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1919 } # ac_fn_c_try_compile
1921 # ac_fn_cxx_try_compile LINENO
1922 # ----------------------------
1923 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_cxx_try_compile ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext
1928 if { { ac_try="$ac_compile"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_compile") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_cxx_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest.$ac_objext; then :
1947 ac_retval=0
1948 else
1949 $as_echo "$as_me: failed program was:" >&5
1950 sed 's/^/| /' conftest.$ac_ext >&5
1952 ac_retval=1
1954 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955 return $ac_retval
1957 } # ac_fn_cxx_try_compile
1959 # ac_fn_c_try_cpp LINENO
1960 # ----------------------
1961 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1962 ac_fn_c_try_cpp ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 if { { ac_try="$ac_cpp conftest.$ac_ext"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } >/dev/null && {
1981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 }; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1989 ac_retval=1
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 return $ac_retval
1994 } # ac_fn_c_try_cpp
1996 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1999 # the include files in INCLUDES and setting the cache variable VAR
2000 # accordingly.
2001 ac_fn_c_check_header_mongrel ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2008 $as_echo_n "(cached) " >&6
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 else
2014 # Is the header compilable?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2016 $as_echo_n "checking $2 usability... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2020 #include <$2>
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 ac_header_compiler=yes
2024 else
2025 ac_header_compiler=no
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2029 $as_echo "$ac_header_compiler" >&6; }
2031 # Is the header present?
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2033 $as_echo_n "checking $2 presence... " >&6; }
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 #include <$2>
2037 _ACEOF
2038 if ac_fn_c_try_cpp "$LINENO"; then :
2039 ac_header_preproc=yes
2040 else
2041 ac_header_preproc=no
2043 rm -f conftest.err conftest.$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2045 $as_echo "$ac_header_preproc" >&6; }
2047 # So? What about this header?
2048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2049 yes:no: )
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2051 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2055 no:yes:* )
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2057 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2059 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2061 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2063 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2065 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067 esac
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 eval "$3=\$ac_header_compiler"
2075 eval ac_res=\$$3
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081 } # ac_fn_c_check_header_mongrel
2083 # ac_fn_c_try_run LINENO
2084 # ----------------------
2085 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2086 # that executables *can* be run.
2087 ac_fn_c_try_run ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if { { ac_try="$ac_link"
2091 case "(($ac_try" in
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2094 esac
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_link") 2>&5
2098 ac_status=$?
2099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2100 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2101 { { case "(($ac_try" in
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2104 esac
2105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2106 $as_echo "$ac_try_echo"; } >&5
2107 (eval "$ac_try") 2>&5
2108 ac_status=$?
2109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110 test $ac_status = 0; }; }; then :
2111 ac_retval=0
2112 else
2113 $as_echo "$as_me: program exited with status $ac_status" >&5
2114 $as_echo "$as_me: failed program was:" >&5
2115 sed 's/^/| /' conftest.$ac_ext >&5
2117 ac_retval=$ac_status
2119 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2120 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121 return $ac_retval
2123 } # ac_fn_c_try_run
2125 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2126 # -------------------------------------------------------
2127 # Tests whether HEADER exists and can be compiled using the include files in
2128 # INCLUDES, setting the cache variable VAR accordingly.
2129 ac_fn_c_check_header_compile ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135 $as_echo_n "(cached) " >&6
2136 else
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2140 #include <$2>
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 eval "$3=yes"
2144 else
2145 eval "$3=no"
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149 eval ac_res=\$$3
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151 $as_echo "$ac_res" >&6; }
2152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2154 } # ac_fn_c_check_header_compile
2156 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2157 # --------------------------------------------
2158 # Tries to find the compile-time value of EXPR in a program that includes
2159 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2160 # computed
2161 ac_fn_c_compute_int ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 if test "$cross_compiling" = yes; then
2165 # Depending upon the size, compute the lo and hi bounds.
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2170 main ()
2172 static int test_array [1 - 2 * !(($2) >= 0)];
2173 test_array [0] = 0
2176 return 0;
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 ac_lo=0 ac_mid=0
2181 while :; do
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2186 main ()
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 test_array [0] = 0
2192 return 0;
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=$ac_mid; break
2197 else
2198 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2199 if test $ac_lo -le $ac_mid; then
2200 ac_lo= ac_hi=
2201 break
2203 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 done
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2212 main ()
2214 static int test_array [1 - 2 * !(($2) < 0)];
2215 test_array [0] = 0
2218 return 0;
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 ac_hi=-1 ac_mid=-1
2223 while :; do
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2228 main ()
2230 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2231 test_array [0] = 0
2234 return 0;
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_lo=$ac_mid; break
2239 else
2240 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2241 if test $ac_mid -le $ac_hi; then
2242 ac_lo= ac_hi=
2243 break
2245 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248 done
2249 else
2250 ac_lo= ac_hi=
2252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 # Binary search between lo and hi bounds.
2256 while test "x$ac_lo" != "x$ac_hi"; do
2257 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2262 main ()
2264 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2265 test_array [0] = 0
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 ac_hi=$ac_mid
2273 else
2274 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2277 done
2278 case $ac_lo in #((
2279 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2280 '') ac_retval=1 ;;
2281 esac
2282 else
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2286 static long int longval () { return $2; }
2287 static unsigned long int ulongval () { return $2; }
2288 #include <stdio.h>
2289 #include <stdlib.h>
2291 main ()
2294 FILE *f = fopen ("conftest.val", "w");
2295 if (! f)
2296 return 1;
2297 if (($2) < 0)
2299 long int i = longval ();
2300 if (i != ($2))
2301 return 1;
2302 fprintf (f, "%ld", i);
2304 else
2306 unsigned long int i = ulongval ();
2307 if (i != ($2))
2308 return 1;
2309 fprintf (f, "%lu", i);
2311 /* Do not output a trailing newline, as this causes \r\n confusion
2312 on some platforms. */
2313 return ferror (f) || fclose (f) != 0;
2316 return 0;
2318 _ACEOF
2319 if ac_fn_c_try_run "$LINENO"; then :
2320 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2321 else
2322 ac_retval=1
2324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2325 conftest.$ac_objext conftest.beam conftest.$ac_ext
2326 rm -f conftest.val
2329 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2330 return $ac_retval
2332 } # ac_fn_c_compute_int
2334 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335 # -------------------------------------------
2336 # Tests whether TYPE exists after having included INCLUDES, setting cache
2337 # variable VAR accordingly.
2338 ac_fn_c_check_type ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 eval "$3=no"
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2351 main ()
2353 if (sizeof ($2))
2354 return 0;
2356 return 0;
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2364 main ()
2366 if (sizeof (($2)))
2367 return 0;
2369 return 0;
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2374 else
2375 eval "$3=yes"
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 eval ac_res=\$$3
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2386 } # ac_fn_c_check_type
2388 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2389 # ----------------------------------------------
2390 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2391 ac_fn_c_check_header_preproc ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2395 $as_echo_n "checking for $2... " >&6; }
2396 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2401 #include <$2>
2402 _ACEOF
2403 if ac_fn_c_try_cpp "$LINENO"; then :
2404 eval "$3=yes"
2405 else
2406 eval "$3=no"
2408 rm -f conftest.err conftest.$ac_ext
2410 eval ac_res=\$$3
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412 $as_echo "$ac_res" >&6; }
2413 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 } # ac_fn_c_check_header_preproc
2417 # ac_fn_c_try_link LINENO
2418 # -----------------------
2419 # Try to link conftest.$ac_ext, and return whether this succeeded.
2420 ac_fn_c_try_link ()
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 rm -f conftest.$ac_objext conftest$ac_exeext
2424 if { { ac_try="$ac_link"
2425 case "(($ac_try" in
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2428 esac
2429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2430 $as_echo "$ac_try_echo"; } >&5
2431 (eval "$ac_link") 2>conftest.err
2432 ac_status=$?
2433 if test -s conftest.err; then
2434 grep -v '^ *+' conftest.err >conftest.er1
2435 cat conftest.er1 >&5
2436 mv -f conftest.er1 conftest.err
2438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2439 test $ac_status = 0; } && {
2440 test -z "$ac_c_werror_flag" ||
2441 test ! -s conftest.err
2442 } && test -s conftest$ac_exeext && {
2443 test "$cross_compiling" = yes ||
2444 $as_test_x conftest$ac_exeext
2445 }; then :
2446 ac_retval=0
2447 else
2448 $as_echo "$as_me: failed program was:" >&5
2449 sed 's/^/| /' conftest.$ac_ext >&5
2451 ac_retval=1
2453 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2454 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2455 # interfere with the next link command; also delete a directory that is
2456 # left behind by Apple's compiler. We do this before executing the actions.
2457 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2458 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2459 return $ac_retval
2461 } # ac_fn_c_try_link
2463 # ac_fn_c_check_func LINENO FUNC VAR
2464 # ----------------------------------
2465 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2466 ac_fn_c_check_func ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2470 $as_echo_n "checking for $2... " >&6; }
2471 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2472 $as_echo_n "(cached) " >&6
2473 else
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2478 #define $2 innocuous_$2
2480 /* System header to define __stub macros and hopefully few prototypes,
2481 which can conflict with char $2 (); below.
2482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2483 <limits.h> exists even on freestanding compilers. */
2485 #ifdef __STDC__
2486 # include <limits.h>
2487 #else
2488 # include <assert.h>
2489 #endif
2491 #undef $2
2493 /* Override any GCC internal prototype to avoid an error.
2494 Use char because int might match the return type of a GCC
2495 builtin and then its argument prototype would still apply. */
2496 #ifdef __cplusplus
2497 extern "C"
2498 #endif
2499 char $2 ();
2500 /* The GNU C library defines this for functions which it implements
2501 to always fail with ENOSYS. Some functions are actually named
2502 something starting with __ and the normal name is an alias. */
2503 #if defined __stub_$2 || defined __stub___$2
2504 choke me
2505 #endif
2508 main ()
2510 return $2 ();
2512 return 0;
2514 _ACEOF
2515 if ac_fn_c_try_link "$LINENO"; then :
2516 eval "$3=yes"
2517 else
2518 eval "$3=no"
2520 rm -f core conftest.err conftest.$ac_objext \
2521 conftest$ac_exeext conftest.$ac_ext
2523 eval ac_res=\$$3
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2525 $as_echo "$ac_res" >&6; }
2526 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2528 } # ac_fn_c_check_func
2530 # ac_fn_cxx_try_cpp LINENO
2531 # ------------------------
2532 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2533 ac_fn_cxx_try_cpp ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 if { { ac_try="$ac_cpp conftest.$ac_ext"
2537 case "(($ac_try" in
2538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539 *) ac_try_echo=$ac_try;;
2540 esac
2541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2542 $as_echo "$ac_try_echo"; } >&5
2543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2544 ac_status=$?
2545 if test -s conftest.err; then
2546 grep -v '^ *+' conftest.err >conftest.er1
2547 cat conftest.er1 >&5
2548 mv -f conftest.er1 conftest.err
2550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2551 test $ac_status = 0; } >/dev/null && {
2552 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2553 test ! -s conftest.err
2554 }; then :
2555 ac_retval=0
2556 else
2557 $as_echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2560 ac_retval=1
2562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2563 return $ac_retval
2565 } # ac_fn_cxx_try_cpp
2567 # ac_fn_cxx_try_link LINENO
2568 # -------------------------
2569 # Try to link conftest.$ac_ext, and return whether this succeeded.
2570 ac_fn_cxx_try_link ()
2572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2573 rm -f conftest.$ac_objext conftest$ac_exeext
2574 if { { ac_try="$ac_link"
2575 case "(($ac_try" in
2576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577 *) ac_try_echo=$ac_try;;
2578 esac
2579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2580 $as_echo "$ac_try_echo"; } >&5
2581 (eval "$ac_link") 2>conftest.err
2582 ac_status=$?
2583 if test -s conftest.err; then
2584 grep -v '^ *+' conftest.err >conftest.er1
2585 cat conftest.er1 >&5
2586 mv -f conftest.er1 conftest.err
2588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2589 test $ac_status = 0; } && {
2590 test -z "$ac_cxx_werror_flag" ||
2591 test ! -s conftest.err
2592 } && test -s conftest$ac_exeext && {
2593 test "$cross_compiling" = yes ||
2594 $as_test_x conftest$ac_exeext
2595 }; then :
2596 ac_retval=0
2597 else
2598 $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2601 ac_retval=1
2603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2605 # interfere with the next link command; also delete a directory that is
2606 # left behind by Apple's compiler. We do this before executing the actions.
2607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2609 return $ac_retval
2611 } # ac_fn_cxx_try_link
2612 cat >config.log <<_ACEOF
2613 This file contains any messages produced by compilers while
2614 running configure, to aid debugging if configure makes a mistake.
2616 It was created by $as_me, which was
2617 generated by GNU Autoconf 2.64. Invocation command line was
2619 $ $0 $@
2621 _ACEOF
2622 exec 5>>config.log
2624 cat <<_ASUNAME
2625 ## --------- ##
2626 ## Platform. ##
2627 ## --------- ##
2629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2646 _ASUNAME
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 $as_echo "PATH: $as_dir"
2654 done
2655 IFS=$as_save_IFS
2657 } >&5
2659 cat >&5 <<_ACEOF
2662 ## ----------- ##
2663 ## Core tests. ##
2664 ## ----------- ##
2666 _ACEOF
2669 # Keep a trace of the command line.
2670 # Strip out --no-create and --no-recursion so they do not pile up.
2671 # Strip out --silent because we don't want to record it for future runs.
2672 # Also quote any args containing shell meta-characters.
2673 # Make two passes to allow for proper duplicate-argument suppression.
2674 ac_configure_args=
2675 ac_configure_args0=
2676 ac_configure_args1=
2677 ac_must_keep_next=false
2678 for ac_pass in 1 2
2680 for ac_arg
2682 case $ac_arg in
2683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2685 | -silent | --silent | --silen | --sile | --sil)
2686 continue ;;
2687 *\'*)
2688 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2689 esac
2690 case $ac_pass in
2691 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2693 as_fn_append ac_configure_args1 " '$ac_arg'"
2694 if test $ac_must_keep_next = true; then
2695 ac_must_keep_next=false # Got value, back to normal.
2696 else
2697 case $ac_arg in
2698 *=* | --config-cache | -C | -disable-* | --disable-* \
2699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2701 | -with-* | --with-* | -without-* | --without-* | --x)
2702 case "$ac_configure_args0 " in
2703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2704 esac
2706 -* ) ac_must_keep_next=true ;;
2707 esac
2709 as_fn_append ac_configure_args " '$ac_arg'"
2711 esac
2712 done
2713 done
2714 { ac_configure_args0=; unset ac_configure_args0;}
2715 { ac_configure_args1=; unset ac_configure_args1;}
2717 # When interrupted or exit'd, cleanup temporary files, and complete
2718 # config.log. We remove comments because anyway the quotes in there
2719 # would cause problems or look ugly.
2720 # WARNING: Use '\'' to represent an apostrophe within the trap.
2721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2722 trap 'exit_status=$?
2723 # Save into config.log some information that might help in debugging.
2725 echo
2727 cat <<\_ASBOX
2728 ## ---------------- ##
2729 ## Cache variables. ##
2730 ## ---------------- ##
2731 _ASBOX
2732 echo
2733 # The following way of writing the cache mishandles newlines in values,
2735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2736 eval ac_val=\$$ac_var
2737 case $ac_val in #(
2738 *${as_nl}*)
2739 case $ac_var in #(
2740 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2742 esac
2743 case $ac_var in #(
2744 _ | IFS | as_nl) ;; #(
2745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2746 *) { eval $ac_var=; unset $ac_var;} ;;
2747 esac ;;
2748 esac
2749 done
2750 (set) 2>&1 |
2751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2752 *${as_nl}ac_space=\ *)
2753 sed -n \
2754 "s/'\''/'\''\\\\'\'''\''/g;
2755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2756 ;; #(
2758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2760 esac |
2761 sort
2763 echo
2765 cat <<\_ASBOX
2766 ## ----------------- ##
2767 ## Output variables. ##
2768 ## ----------------- ##
2769 _ASBOX
2770 echo
2771 for ac_var in $ac_subst_vars
2773 eval ac_val=\$$ac_var
2774 case $ac_val in
2775 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2776 esac
2777 $as_echo "$ac_var='\''$ac_val'\''"
2778 done | sort
2779 echo
2781 if test -n "$ac_subst_files"; then
2782 cat <<\_ASBOX
2783 ## ------------------- ##
2784 ## File substitutions. ##
2785 ## ------------------- ##
2786 _ASBOX
2787 echo
2788 for ac_var in $ac_subst_files
2790 eval ac_val=\$$ac_var
2791 case $ac_val in
2792 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2793 esac
2794 $as_echo "$ac_var='\''$ac_val'\''"
2795 done | sort
2796 echo
2799 if test -s confdefs.h; then
2800 cat <<\_ASBOX
2801 ## ----------- ##
2802 ## confdefs.h. ##
2803 ## ----------- ##
2804 _ASBOX
2805 echo
2806 cat confdefs.h
2807 echo
2809 test "$ac_signal" != 0 &&
2810 $as_echo "$as_me: caught signal $ac_signal"
2811 $as_echo "$as_me: exit $exit_status"
2812 } >&5
2813 rm -f core *.core core.conftest.* &&
2814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2815 exit $exit_status
2817 for ac_signal in 1 2 13 15; do
2818 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2819 done
2820 ac_signal=0
2822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2823 rm -f -r conftest* confdefs.h
2825 $as_echo "/* confdefs.h */" > confdefs.h
2827 # Predefined preprocessor variables.
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_NAME "$PACKAGE_NAME"
2831 _ACEOF
2833 cat >>confdefs.h <<_ACEOF
2834 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2835 _ACEOF
2837 cat >>confdefs.h <<_ACEOF
2838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2839 _ACEOF
2841 cat >>confdefs.h <<_ACEOF
2842 #define PACKAGE_STRING "$PACKAGE_STRING"
2843 _ACEOF
2845 cat >>confdefs.h <<_ACEOF
2846 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2847 _ACEOF
2849 cat >>confdefs.h <<_ACEOF
2850 #define PACKAGE_URL "$PACKAGE_URL"
2851 _ACEOF
2854 # Let the site file select an alternate cache file if it wants to.
2855 # Prefer an explicitly selected file to automatically selected ones.
2856 ac_site_file1=NONE
2857 ac_site_file2=NONE
2858 if test -n "$CONFIG_SITE"; then
2859 ac_site_file1=$CONFIG_SITE
2860 elif test "x$prefix" != xNONE; then
2861 ac_site_file1=$prefix/share/config.site
2862 ac_site_file2=$prefix/etc/config.site
2863 else
2864 ac_site_file1=$ac_default_prefix/share/config.site
2865 ac_site_file2=$ac_default_prefix/etc/config.site
2867 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2869 test "x$ac_site_file" = xNONE && continue
2870 if test -r "$ac_site_file"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2872 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2873 sed 's/^/| /' "$ac_site_file" >&5
2874 . "$ac_site_file"
2876 done
2878 if test -r "$cache_file"; then
2879 # Some versions of bash will fail to source /dev/null (special
2880 # files actually), so we avoid doing that.
2881 if test -f "$cache_file"; then
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2883 $as_echo "$as_me: loading cache $cache_file" >&6;}
2884 case $cache_file in
2885 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2886 *) . "./$cache_file";;
2887 esac
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2891 $as_echo "$as_me: creating cache $cache_file" >&6;}
2892 >$cache_file
2895 # Check that the precious variables saved in the cache have kept the same
2896 # value.
2897 ac_cache_corrupted=false
2898 for ac_var in $ac_precious_vars; do
2899 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2900 eval ac_new_set=\$ac_env_${ac_var}_set
2901 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2902 eval ac_new_val=\$ac_env_${ac_var}_value
2903 case $ac_old_set,$ac_new_set in
2904 set,)
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2906 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2907 ac_cache_corrupted=: ;;
2908 ,set)
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2910 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2911 ac_cache_corrupted=: ;;
2912 ,);;
2914 if test "x$ac_old_val" != "x$ac_new_val"; then
2915 # differences in whitespace do not lead to failure.
2916 ac_old_val_w=`echo x $ac_old_val`
2917 ac_new_val_w=`echo x $ac_new_val`
2918 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2920 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2921 ac_cache_corrupted=:
2922 else
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2924 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2925 eval $ac_var=\$ac_old_val
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2928 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2930 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2931 fi;;
2932 esac
2933 # Pass precious variables to config.status.
2934 if test "$ac_new_set" = set; then
2935 case $ac_new_val in
2936 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2937 *) ac_arg=$ac_var=$ac_new_val ;;
2938 esac
2939 case " $ac_configure_args " in
2940 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2941 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2942 esac
2944 done
2945 if $ac_cache_corrupted; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2949 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2950 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2952 ## -------------------- ##
2953 ## Main body of script. ##
2954 ## -------------------- ##
2956 ac_ext=c
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967 ac_config_headers="$ac_config_headers auto-host.h:config.in"
2970 gcc_version=`cat $srcdir/BASE-VER`
2972 # Determine the host, build, and target systems
2973 ac_aux_dir=
2974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2975 for ac_t in install-sh install.sh shtool; do
2976 if test -f "$ac_dir/$ac_t"; then
2977 ac_aux_dir=$ac_dir
2978 ac_install_sh="$ac_aux_dir/$ac_t -c"
2979 break 2
2981 done
2982 done
2983 if test -z "$ac_aux_dir"; then
2984 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2987 # These three variables are undocumented and unsupported,
2988 # and are intended to be withdrawn in a future Autoconf release.
2989 # They can cause serious problems if a builder's source tree is in a directory
2990 # whose full name contains unusual characters.
2991 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2992 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2993 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2996 # Make sure we can run config.sub.
2997 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2998 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3001 $as_echo_n "checking build system type... " >&6; }
3002 if test "${ac_cv_build+set}" = set; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 ac_build_alias=$build_alias
3006 test "x$ac_build_alias" = x &&
3007 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3008 test "x$ac_build_alias" = x &&
3009 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3011 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3015 $as_echo "$ac_cv_build" >&6; }
3016 case $ac_cv_build in
3017 *-*-*) ;;
3018 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3019 esac
3020 build=$ac_cv_build
3021 ac_save_IFS=$IFS; IFS='-'
3022 set x $ac_cv_build
3023 shift
3024 build_cpu=$1
3025 build_vendor=$2
3026 shift; shift
3027 # Remember, the first character of IFS is used to create $*,
3028 # except with old shells:
3029 build_os=$*
3030 IFS=$ac_save_IFS
3031 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3035 $as_echo_n "checking host system type... " >&6; }
3036 if test "${ac_cv_host+set}" = set; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test "x$host_alias" = x; then
3040 ac_cv_host=$ac_cv_build
3041 else
3042 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3043 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3048 $as_echo "$ac_cv_host" >&6; }
3049 case $ac_cv_host in
3050 *-*-*) ;;
3051 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3052 esac
3053 host=$ac_cv_host
3054 ac_save_IFS=$IFS; IFS='-'
3055 set x $ac_cv_host
3056 shift
3057 host_cpu=$1
3058 host_vendor=$2
3059 shift; shift
3060 # Remember, the first character of IFS is used to create $*,
3061 # except with old shells:
3062 host_os=$*
3063 IFS=$ac_save_IFS
3064 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3068 $as_echo_n "checking target system type... " >&6; }
3069 if test "${ac_cv_target+set}" = set; then :
3070 $as_echo_n "(cached) " >&6
3071 else
3072 if test "x$target_alias" = x; then
3073 ac_cv_target=$ac_cv_host
3074 else
3075 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3076 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3081 $as_echo "$ac_cv_target" >&6; }
3082 case $ac_cv_target in
3083 *-*-*) ;;
3084 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3085 esac
3086 target=$ac_cv_target
3087 ac_save_IFS=$IFS; IFS='-'
3088 set x $ac_cv_target
3089 shift
3090 target_cpu=$1
3091 target_vendor=$2
3092 shift; shift
3093 # Remember, the first character of IFS is used to create $*,
3094 # except with old shells:
3095 target_os=$*
3096 IFS=$ac_save_IFS
3097 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3100 # The aliases save the names the user supplied, while $host etc.
3101 # will get canonicalized.
3102 test -n "$target_alias" &&
3103 test "$program_prefix$program_suffix$program_transform_name" = \
3104 NONENONEs,x,x, &&
3105 program_prefix=${target_alias}-
3107 # Determine the noncanonical target name, for directory use.
3108 case ${build_alias} in
3109 "") build_noncanonical=${build} ;;
3110 *) build_noncanonical=${build_alias} ;;
3111 esac
3113 case ${host_alias} in
3114 "") host_noncanonical=${build_noncanonical} ;;
3115 *) host_noncanonical=${host_alias} ;;
3116 esac
3118 case ${target_alias} in
3119 "") target_noncanonical=${host_noncanonical} ;;
3120 *) target_noncanonical=${target_alias} ;;
3121 esac
3126 # Determine the target- and build-specific subdirectories
3128 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3129 # have matching libraries, they should use host libraries: Makefile.tpl
3130 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3131 # However, they still use the build modules, because the corresponding
3132 # host modules (e.g. bison) are only built for the host when bootstrap
3133 # finishes. So:
3134 # - build_subdir is where we find build modules, and never changes.
3135 # - build_libsubdir is where we find build libraries, and can be overridden.
3137 # Prefix 'build-' so this never conflicts with target_subdir.
3138 build_subdir="build-${build_noncanonical}"
3140 # Check whether --with-build-libsubdir was given.
3141 if test "${with_build_libsubdir+set}" = set; then :
3142 withval=$with_build_libsubdir; build_libsubdir="$withval"
3143 else
3144 build_libsubdir="$build_subdir"
3147 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3148 if ( test $srcdir = . && test -d gcc ) \
3149 || test -d $srcdir/../host-${host_noncanonical}; then
3150 host_subdir="host-${host_noncanonical}"
3151 else
3152 host_subdir=.
3154 # No prefix.
3155 target_subdir=${target_noncanonical}
3158 # Set program_transform_name
3159 test "$program_prefix" != NONE &&
3160 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3161 # Use a double $ so make ignores it.
3162 test "$program_suffix" != NONE &&
3163 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3164 # Double any \ or $.
3165 # By default was `s,x,x', remove it if useless.
3166 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3167 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3170 # Check for bogus environment variables.
3171 # Test if LIBRARY_PATH contains the notation for the current directory
3172 # since this would lead to problems installing/building glibc.
3173 # LIBRARY_PATH contains the current directory if one of the following
3174 # is true:
3175 # - one of the terminals (":" and ";") is the first or last sign
3176 # - two terminals occur directly after each other
3177 # - the path contains an element with a dot in it
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY_PATH variable" >&5
3179 $as_echo_n "checking LIBRARY_PATH variable... " >&6; }
3180 case ${LIBRARY_PATH} in
3181 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3182 library_path_setting="contains current directory"
3185 library_path_setting="ok"
3187 esac
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $library_path_setting" >&5
3189 $as_echo "$library_path_setting" >&6; }
3190 if test "$library_path_setting" != "ok"; then
3191 as_fn_error "
3192 *** LIBRARY_PATH shouldn't contain the current directory when
3193 *** building gcc. Please change the environment variable
3194 *** and run configure again." "$LINENO" 5
3197 # Test if GCC_EXEC_PREFIX contains the notation for the current directory
3198 # since this would lead to problems installing/building glibc.
3199 # GCC_EXEC_PREFIX contains the current directory if one of the following
3200 # is true:
3201 # - one of the terminals (":" and ";") is the first or last sign
3202 # - two terminals occur directly after each other
3203 # - the path contains an element with a dot in it
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCC_EXEC_PREFIX variable" >&5
3205 $as_echo_n "checking GCC_EXEC_PREFIX variable... " >&6; }
3206 case ${GCC_EXEC_PREFIX} in
3207 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* )
3208 gcc_exec_prefix_setting="contains current directory"
3211 gcc_exec_prefix_setting="ok"
3213 esac
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_exec_prefix_setting" >&5
3215 $as_echo "$gcc_exec_prefix_setting" >&6; }
3216 if test "$gcc_exec_prefix_setting" != "ok"; then
3217 as_fn_error "
3218 *** GCC_EXEC_PREFIX shouldn't contain the current directory when
3219 *** building gcc. Please change the environment variable
3220 *** and run configure again." "$LINENO" 5
3223 # -----------
3224 # Directories
3225 # -----------
3227 # Specify the local prefix
3228 local_prefix=
3230 # Check whether --with-local-prefix was given.
3231 if test "${with_local_prefix+set}" = set; then :
3232 withval=$with_local_prefix; case "${withval}" in
3233 yes) as_fn_error "bad value ${withval} given for local include directory prefix" "$LINENO" 5 ;;
3234 no) ;;
3235 *) local_prefix=$with_local_prefix ;;
3236 esac
3240 # Default local prefix if it is empty
3241 if test x$local_prefix = x; then
3242 local_prefix=/usr/local
3245 # Don't set gcc_gxx_include_dir to gxx_include_dir since that's only
3246 # passed in by the toplevel make and thus we'd get different behavior
3247 # depending on where we built the sources.
3248 gcc_gxx_include_dir=
3249 # Specify the g++ header file directory
3251 # Check whether --with-gxx-include-dir was given.
3252 if test "${with_gxx_include_dir+set}" = set; then :
3253 withval=$with_gxx_include_dir; case "${withval}" in
3254 yes) as_fn_error "bad value ${withval} given for g++ include directory" "$LINENO" 5 ;;
3255 no) ;;
3256 *) gcc_gxx_include_dir=$with_gxx_include_dir ;;
3257 esac
3261 # This logic must match libstdc++-v3/acinclude.m4:GLIBCXX_EXPORT_INSTALL_INFO.
3262 if test x${gcc_gxx_include_dir} = x; then
3263 if test x${enable_version_specific_runtime_libs} = xyes; then
3264 gcc_gxx_include_dir='${libsubdir}/include/c++'
3265 else
3266 libstdcxx_incdir='include/c++/$(version)'
3267 if test x$host != x$target; then
3268 libstdcxx_incdir="$target_alias/$libstdcxx_incdir"
3270 gcc_gxx_include_dir="\$(libsubdir)/\$(libsubdir_to_prefix)$libstdcxx_incdir"
3275 # Check whether --with-cpp_install_dir was given.
3276 if test "${with_cpp_install_dir+set}" = set; then :
3277 withval=$with_cpp_install_dir; if test x$withval = xyes; then
3278 as_fn_error "option --with-cpp-install-dir requires an argument" "$LINENO" 5
3279 elif test x$withval != xno; then
3280 cpp_install_dir=$withval
3285 # We would like to our source tree to be readonly. However when releases or
3286 # pre-releases are generated, the flex/bison generated files as well as the
3287 # various formats of manuals need to be included along with the rest of the
3288 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3289 # just that.
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3292 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3293 # Check whether --enable-generated-files-in-srcdir was given.
3294 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3295 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3296 else
3297 generated_files_in_srcdir=no
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3302 $as_echo "$generated_files_in_srcdir" >&6; }
3304 if test "$generated_files_in_srcdir" = "yes"; then
3305 GENINSRC=''
3306 else
3307 GENINSRC='#'
3311 # -------------------
3312 # Find default linker
3313 # -------------------
3315 # With GNU ld
3317 # Check whether --with-gnu-ld was given.
3318 if test "${with_gnu_ld+set}" = set; then :
3319 withval=$with_gnu_ld; gnu_ld_flag="$with_gnu_ld"
3320 else
3321 gnu_ld_flag=no
3325 # With pre-defined ld
3327 # Check whether --with-ld was given.
3328 if test "${with_ld+set}" = set; then :
3329 withval=$with_ld; DEFAULT_LINKER="$with_ld"
3332 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3333 if test ! -x "$DEFAULT_LINKER"; then
3334 as_fn_error "cannot execute: $DEFAULT_LINKER: check --with-ld or env. var. DEFAULT_LINKER" "$LINENO" 5
3335 elif $DEFAULT_LINKER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3336 gnu_ld_flag=yes
3339 cat >>confdefs.h <<_ACEOF
3340 #define DEFAULT_LINKER "$DEFAULT_LINKER"
3341 _ACEOF
3345 gnu_ld=`if test x"$gnu_ld_flag" = x"yes"; then echo 1; else echo 0; fi`
3347 cat >>confdefs.h <<_ACEOF
3348 #define HAVE_GNU_LD $gnu_ld
3349 _ACEOF
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default linker was specified" >&5
3353 $as_echo_n "checking whether a default linker was specified... " >&6; }
3354 if test x"${DEFAULT_LINKER+set}" = x"set"; then
3355 if test x"$gnu_ld_flag" = x"no"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER)" >&5
3357 $as_echo "yes ($DEFAULT_LINKER)" >&6; }
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_LINKER - GNU ld)" >&5
3360 $as_echo "yes ($DEFAULT_LINKER - GNU ld)" >&6; }
3362 else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3367 # With demangler in GNU ld
3369 # Check whether --with-demangler-in-ld was given.
3370 if test "${with_demangler_in_ld+set}" = set; then :
3371 withval=$with_demangler_in_ld; demangler_in_ld="$with_demangler_in_ld"
3372 else
3373 demangler_in_ld=no
3377 # ----------------------
3378 # Find default assembler
3379 # ----------------------
3381 # With GNU as
3383 # Check whether --with-gnu-as was given.
3384 if test "${with_gnu_as+set}" = set; then :
3385 withval=$with_gnu_as; gas_flag="$with_gnu_as"
3386 else
3387 gas_flag=no
3392 # Check whether --with-as was given.
3393 if test "${with_as+set}" = set; then :
3394 withval=$with_as; DEFAULT_ASSEMBLER="$with_as"
3397 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3398 if test ! -x "$DEFAULT_ASSEMBLER"; then
3399 as_fn_error "cannot execute: $DEFAULT_ASSEMBLER: check --with-as or env. var. DEFAULT_ASSEMBLER" "$LINENO" 5
3400 elif $DEFAULT_ASSEMBLER -v < /dev/null 2>&1 | grep GNU > /dev/null; then
3401 gas_flag=yes
3404 cat >>confdefs.h <<_ACEOF
3405 #define DEFAULT_ASSEMBLER "$DEFAULT_ASSEMBLER"
3406 _ACEOF
3410 gnu_as=`if test x"$gas_flag" = x"yes"; then echo 1; else echo 0; fi`
3412 cat >>confdefs.h <<_ACEOF
3413 #define HAVE_GNU_AS $gnu_as
3414 _ACEOF
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a default assembler was specified" >&5
3418 $as_echo_n "checking whether a default assembler was specified... " >&6; }
3419 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then
3420 if test x"$gas_flag" = x"no"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER)" >&5
3422 $as_echo "yes ($DEFAULT_ASSEMBLER)" >&6; }
3423 else
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEFAULT_ASSEMBLER - GNU as)" >&5
3425 $as_echo "yes ($DEFAULT_ASSEMBLER - GNU as)" >&6; }
3427 else
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3429 $as_echo "no" >&6; }
3432 # ---------------
3433 # Find C compiler
3434 # ---------------
3436 # If a non-executable a.out is present (e.g. created by GNU as above even if
3437 # invoked with -v only), the IRIX 6 native ld just overwrites the existing
3438 # file, even when creating an executable, so an execution test fails.
3439 # Remove possible default executable files to avoid this.
3441 # FIXME: This really belongs into AC_PROG_CC and can be removed once
3442 # Autoconf includes it.
3443 rm -f a.out a.exe b.out
3445 # Find the native compiler
3446 ac_ext=c
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3473 done
3474 done
3475 IFS=$as_save_IFS
3479 CC=$ac_cv_prog_CC
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3490 if test -z "$ac_cv_prog_CC"; then
3491 ac_ct_CC=$CC
3492 # Extract the first word of "gcc", so it can be a program name with args.
3493 set dummy gcc; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_CC="gcc"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3513 done
3514 done
3515 IFS=$as_save_IFS
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3528 if test "x$ac_ct_CC" = x; then
3529 CC=""
3530 else
3531 case $cross_compiling:$ac_tool_warned in
3532 yes:)
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3535 ac_tool_warned=yes ;;
3536 esac
3537 CC=$ac_ct_CC
3539 else
3540 CC="$ac_cv_prog_CC"
3543 if test -z "$CC"; then
3544 if test -n "$ac_tool_prefix"; then
3545 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3546 set dummy ${ac_tool_prefix}cc; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if test "${ac_cv_prog_CC+set}" = set; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$CC"; then
3553 ac_cv_prog_CC="$CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3562 ac_cv_prog_CC="${ac_tool_prefix}cc"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3566 done
3567 done
3568 IFS=$as_save_IFS
3572 CC=$ac_cv_prog_CC
3573 if test -n "$CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3575 $as_echo "$CC" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3584 if test -z "$CC"; then
3585 # Extract the first word of "cc", so it can be a program name with args.
3586 set dummy cc; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if test "${ac_cv_prog_CC+set}" = set; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 ac_prog_rejected=no
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in $PATH
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3603 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3604 ac_prog_rejected=yes
3605 continue
3607 ac_cv_prog_CC="cc"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609 break 2
3611 done
3612 done
3613 IFS=$as_save_IFS
3615 if test $ac_prog_rejected = yes; then
3616 # We found a bogon in the path, so make sure we never use it.
3617 set dummy $ac_cv_prog_CC
3618 shift
3619 if test $# != 0; then
3620 # We chose a different compiler from the bogus one.
3621 # However, it has the same basename, so the bogon will be chosen
3622 # first if we set CC to just the basename; use the full file name.
3623 shift
3624 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3629 CC=$ac_cv_prog_CC
3630 if test -n "$CC"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3632 $as_echo "$CC" >&6; }
3633 else
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3640 if test -z "$CC"; then
3641 if test -n "$ac_tool_prefix"; then
3642 for ac_prog in cl.exe
3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 test -n "$CC" && break
3682 done
3684 if test -z "$CC"; then
3685 ac_ct_CC=$CC
3686 for ac_prog in cl.exe
3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
3689 set dummy $ac_prog; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 if test -n "$ac_ct_CC"; then
3696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_prog_ac_ct_CC="$ac_prog"
3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3709 done
3710 done
3711 IFS=$as_save_IFS
3715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3716 if test -n "$ac_ct_CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3718 $as_echo "$ac_ct_CC" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3725 test -n "$ac_ct_CC" && break
3726 done
3728 if test "x$ac_ct_CC" = x; then
3729 CC=""
3730 else
3731 case $cross_compiling:$ac_tool_warned in
3732 yes:)
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735 ac_tool_warned=yes ;;
3736 esac
3737 CC=$ac_ct_CC
3744 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3746 as_fn_error "no acceptable C compiler found in \$PATH
3747 See \`config.log' for more details." "$LINENO" 5; }
3749 # Provide some information about the compiler.
3750 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3751 set X $ac_compile
3752 ac_compiler=$2
3753 for ac_option in --version -v -V -qversion; do
3754 { { ac_try="$ac_compiler $ac_option >&5"
3755 case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3762 ac_status=$?
3763 if test -s conftest.err; then
3764 sed '10a\
3765 ... rest of stderr output deleted ...
3766 10q' conftest.err >conftest.er1
3767 cat conftest.er1 >&5
3768 rm -f conftest.er1 conftest.err
3770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3771 test $ac_status = 0; }
3772 done
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3778 main ()
3782 return 0;
3784 _ACEOF
3785 ac_clean_files_save=$ac_clean_files
3786 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3787 # Try to create an executable without -o first, disregard a.out.
3788 # It will help us diagnose broken compilers, and finding out an intuition
3789 # of exeext.
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3791 $as_echo_n "checking for C compiler default output file name... " >&6; }
3792 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3794 # The possible output files:
3795 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3797 ac_rmfiles=
3798 for ac_file in $ac_files
3800 case $ac_file in
3801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3802 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3803 esac
3804 done
3805 rm -f $ac_rmfiles
3807 if { { ac_try="$ac_link_default"
3808 case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_link_default") 2>&5
3815 ac_status=$?
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; }; then :
3818 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3819 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3820 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3821 # so that the user can short-circuit this test for compilers unknown to
3822 # Autoconf.
3823 for ac_file in $ac_files ''
3825 test -f "$ac_file" || continue
3826 case $ac_file in
3827 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3829 [ab].out )
3830 # We found the default executable, but exeext='' is most
3831 # certainly right.
3832 break;;
3833 *.* )
3834 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3835 then :; else
3836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 # We set ac_cv_exeext here because the later test for it is not
3839 # safe: cross compilers may not add the suffix if given an `-o'
3840 # argument, so we may need to know it at that point already.
3841 # Even if this section looks crufty: it has the advantage of
3842 # actually working.
3843 break;;
3845 break;;
3846 esac
3847 done
3848 test "$ac_cv_exeext" = no && ac_cv_exeext=
3850 else
3851 ac_file=''
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3854 $as_echo "$ac_file" >&6; }
3855 if test -z "$ac_file"; then :
3856 $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3861 { as_fn_set_status 77
3862 as_fn_error "C compiler cannot create executables
3863 See \`config.log' for more details." "$LINENO" 5; }; }
3865 ac_exeext=$ac_cv_exeext
3867 # Check that the compiler produces executables we can run. If not, either
3868 # the compiler is broken, or we cross compile.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3870 $as_echo_n "checking whether the C compiler works... " >&6; }
3871 # If not cross compiling, check that we can run a simple program.
3872 if test "$cross_compiling" != yes; then
3873 if { ac_try='./$ac_file'
3874 { { case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 $as_echo "$ac_try_echo"; } >&5
3880 (eval "$ac_try") 2>&5
3881 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; }; then
3884 cross_compiling=no
3885 else
3886 if test "$cross_compiling" = maybe; then
3887 cross_compiling=yes
3888 else
3889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error "cannot run C compiled programs.
3892 If you meant to cross compile, use \`--host'.
3893 See \`config.log' for more details." "$LINENO" 5; }
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3898 $as_echo "yes" >&6; }
3900 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3901 ac_clean_files=$ac_clean_files_save
3902 # Check that the compiler produces executables we can run. If not, either
3903 # the compiler is broken, or we cross compile.
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3905 $as_echo_n "checking whether we are cross compiling... " >&6; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3907 $as_echo "$cross_compiling" >&6; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3910 $as_echo_n "checking for suffix of executables... " >&6; }
3911 if { { ac_try="$ac_link"
3912 case "(($ac_try" in
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3917 $as_echo "$ac_try_echo"; } >&5
3918 (eval "$ac_link") 2>&5
3919 ac_status=$?
3920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3921 test $ac_status = 0; }; then :
3922 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3923 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3924 # work properly (i.e., refer to `conftest.exe'), while it won't with
3925 # `rm'.
3926 for ac_file in conftest.exe conftest conftest.*; do
3927 test -f "$ac_file" || continue
3928 case $ac_file in
3929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3930 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3931 break;;
3932 * ) break;;
3933 esac
3934 done
3935 else
3936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 as_fn_error "cannot compute suffix of executables: cannot compile and link
3939 See \`config.log' for more details." "$LINENO" 5; }
3941 rm -f conftest$ac_cv_exeext
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3943 $as_echo "$ac_cv_exeext" >&6; }
3945 rm -f conftest.$ac_ext
3946 EXEEXT=$ac_cv_exeext
3947 ac_exeext=$EXEEXT
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949 $as_echo_n "checking for suffix of object files... " >&6; }
3950 if test "${ac_cv_objext+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952 else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3957 main ()
3961 return 0;
3963 _ACEOF
3964 rm -f conftest.o conftest.obj
3965 if { { ac_try="$ac_compile"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_compile") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue;
3978 case $ac_file in
3979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3981 break;;
3982 esac
3983 done
3984 else
3985 $as_echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error "cannot compute suffix of object files: cannot compile
3991 See \`config.log' for more details." "$LINENO" 5; }
3993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3996 $as_echo "$ac_cv_objext" >&6; }
3997 OBJEXT=$ac_cv_objext
3998 ac_objext=$OBJEXT
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4008 main ()
4010 #ifndef __GNUC__
4011 choke me
4012 #endif
4015 return 0;
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_compiler_gnu=yes
4020 else
4021 ac_compiler_gnu=no
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029 if test $ac_compiler_gnu = yes; then
4030 GCC=yes
4031 else
4032 GCC=
4034 ac_test_CFLAGS=${CFLAGS+set}
4035 ac_save_CFLAGS=$CFLAGS
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4038 if test "${ac_cv_prog_cc_g+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes
4043 ac_cv_prog_cc_g=no
4044 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4049 main ()
4053 return 0;
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_g=yes
4058 else
4059 CFLAGS=""
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4064 main ()
4068 return 0;
4070 _ACEOF
4071 if ac_fn_c_try_compile "$LINENO"; then :
4073 else
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4075 CFLAGS="-g"
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h. */
4080 main ()
4084 return 0;
4086 _ACEOF
4087 if ac_fn_c_try_compile "$LINENO"; then :
4088 ac_cv_prog_cc_g=yes
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4098 $as_echo "$ac_cv_prog_cc_g" >&6; }
4099 if test "$ac_test_CFLAGS" = set; then
4100 CFLAGS=$ac_save_CFLAGS
4101 elif test $ac_cv_prog_cc_g = yes; then
4102 if test "$GCC" = yes; then
4103 CFLAGS="-g -O2"
4104 else
4105 CFLAGS="-g"
4107 else
4108 if test "$GCC" = yes; then
4109 CFLAGS="-O2"
4110 else
4111 CFLAGS=
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 ac_cv_prog_cc_c89=no
4120 ac_save_CC=$CC
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #include <stdarg.h>
4124 #include <stdio.h>
4125 #include <sys/types.h>
4126 #include <sys/stat.h>
4127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4128 struct buf { int x; };
4129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4130 static char *e (p, i)
4131 char **p;
4132 int i;
4134 return p[i];
4136 static char *f (char * (*g) (char **, int), char **p, ...)
4138 char *s;
4139 va_list v;
4140 va_start (v,p);
4141 s = g (p, va_arg (v,int));
4142 va_end (v);
4143 return s;
4146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4147 function prototypes and stuff, but not '\xHH' hex character constants.
4148 These don't provoke an error unfortunately, instead are silently treated
4149 as 'x'. The following induces an error, until -std is added to get
4150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4151 array size at least. It's necessary to write '\x00'==0 to get something
4152 that's true only with -std. */
4153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4156 inside strings and character constants. */
4157 #define FOO(x) 'x'
4158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4160 int test (int i, double x);
4161 struct s1 {int (*f) (int a);};
4162 struct s2 {int (*f) (double a);};
4163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4164 int argc;
4165 char **argv;
4167 main ()
4169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4171 return 0;
4173 _ACEOF
4174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4177 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then :
4179 ac_cv_prog_cc_c89=$ac_arg
4181 rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c89" != "xno" && break
4183 done
4184 rm -f conftest.$ac_ext
4185 CC=$ac_save_CC
4188 # AC_CACHE_VAL
4189 case "x$ac_cv_prog_cc_c89" in
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4192 $as_echo "none needed" >&6; } ;;
4193 xno)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4195 $as_echo "unsupported" >&6; } ;;
4197 CC="$CC $ac_cv_prog_cc_c89"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4200 esac
4201 if test "x$ac_cv_prog_cc_c89" != xno; then :
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4211 if test "x$CC" != xcc; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4213 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4214 else
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4216 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4218 set dummy $CC; ac_cc=`$as_echo "$2" |
4219 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4220 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4227 main ()
4231 return 0;
4233 _ACEOF
4234 # Make sure it works both with $CC and with simple cc.
4235 # We do the test twice because some compilers refuse to overwrite an
4236 # existing .o file with -o, though they will create one.
4237 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4238 rm -f conftest2.*
4239 if { { case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242 esac
4243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4244 $as_echo "$ac_try_echo"; } >&5
4245 (eval "$ac_try") 2>&5
4246 ac_status=$?
4247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4248 test $ac_status = 0; } &&
4249 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4254 $as_echo "$ac_try_echo"; } >&5
4255 (eval "$ac_try") 2>&5
4256 ac_status=$?
4257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4258 test $ac_status = 0; };
4259 then
4260 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4261 if test "x$CC" != xcc; then
4262 # Test first that cc exists at all.
4263 if { ac_try='cc -c conftest.$ac_ext >&5'
4264 { { case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 $as_echo "$ac_try_echo"; } >&5
4270 (eval "$ac_try") 2>&5
4271 ac_status=$?
4272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }; }; then
4274 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4275 rm -f conftest2.*
4276 if { { case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4281 $as_echo "$ac_try_echo"; } >&5
4282 (eval "$ac_try") 2>&5
4283 ac_status=$?
4284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285 test $ac_status = 0; } &&
4286 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291 $as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_try") 2>&5
4293 ac_status=$?
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; };
4296 then
4297 # cc works too.
4299 else
4300 # cc exists but doesn't like -o.
4301 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4305 else
4306 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4308 rm -f core conftest*
4311 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4313 $as_echo "yes" >&6; }
4314 else
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4316 $as_echo "no" >&6; }
4318 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4322 # expand $ac_aux_dir to an absolute path
4323 am_aux_dir=`cd $ac_aux_dir && pwd`
4325 # FIXME: we rely on the cache variable name because
4326 # there is no other way.
4327 set dummy $CC
4328 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4329 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4330 if test "$am_t" != yes; then
4331 # Losing compiler, so override with the script.
4332 # FIXME: It is wrong to rewrite CC.
4333 # But if we don't then we get into trouble of one sort or another.
4334 # A longer-term fix would be to have automake use am__CC in this case,
4335 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4336 CC="$am_aux_dir/compile $CC"
4340 ac_ext=cpp
4341 ac_cpp='$CXXCPP $CPPFLAGS'
4342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4345 if test -z "$CXX"; then
4346 if test -n "$CCC"; then
4347 CXX=$CCC
4348 else
4349 if test -n "$ac_tool_prefix"; then
4350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4352 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if test "${ac_cv_prog_CXX+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4358 else
4359 if test -n "$CXX"; then
4360 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4361 else
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4373 done
4374 done
4375 IFS=$as_save_IFS
4379 CXX=$ac_cv_prog_CXX
4380 if test -n "$CXX"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4382 $as_echo "$CXX" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4389 test -n "$CXX" && break
4390 done
4392 if test -z "$CXX"; then
4393 ac_ct_CXX=$CXX
4394 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4396 # Extract the first word of "$ac_prog", so it can be a program name with args.
4397 set dummy $ac_prog; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 if test -n "$ac_ct_CXX"; then
4404 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4405 else
4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413 ac_cv_prog_ac_ct_CXX="$ac_prog"
4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4417 done
4418 done
4419 IFS=$as_save_IFS
4423 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4424 if test -n "$ac_ct_CXX"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4426 $as_echo "$ac_ct_CXX" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4433 test -n "$ac_ct_CXX" && break
4434 done
4436 if test "x$ac_ct_CXX" = x; then
4437 CXX="g++"
4438 else
4439 case $cross_compiling:$ac_tool_warned in
4440 yes:)
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4443 ac_tool_warned=yes ;;
4444 esac
4445 CXX=$ac_ct_CXX
4451 # Provide some information about the compiler.
4452 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4453 set X $ac_compile
4454 ac_compiler=$2
4455 for ac_option in --version -v -V -qversion; do
4456 { { ac_try="$ac_compiler $ac_option >&5"
4457 case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460 esac
4461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4462 $as_echo "$ac_try_echo"; } >&5
4463 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4464 ac_status=$?
4465 if test -s conftest.err; then
4466 sed '10a\
4467 ... rest of stderr output deleted ...
4468 10q' conftest.err >conftest.er1
4469 cat conftest.er1 >&5
4470 rm -f conftest.er1 conftest.err
4472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473 test $ac_status = 0; }
4474 done
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4477 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4478 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4485 main ()
4487 #ifndef __GNUC__
4488 choke me
4489 #endif
4492 return 0;
4494 _ACEOF
4495 if ac_fn_cxx_try_compile "$LINENO"; then :
4496 ac_compiler_gnu=yes
4497 else
4498 ac_compiler_gnu=no
4500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4501 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4505 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4506 if test $ac_compiler_gnu = yes; then
4507 GXX=yes
4508 else
4509 GXX=
4511 ac_test_CXXFLAGS=${CXXFLAGS+set}
4512 ac_save_CXXFLAGS=$CXXFLAGS
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4514 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4515 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4519 ac_cxx_werror_flag=yes
4520 ac_cv_prog_cxx_g=no
4521 CXXFLAGS="-g"
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4526 main ()
4530 return 0;
4532 _ACEOF
4533 if ac_fn_cxx_try_compile "$LINENO"; then :
4534 ac_cv_prog_cxx_g=yes
4535 else
4536 CXXFLAGS=""
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4541 main ()
4545 return 0;
4547 _ACEOF
4548 if ac_fn_cxx_try_compile "$LINENO"; then :
4550 else
4551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4552 CXXFLAGS="-g"
4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 /* end confdefs.h. */
4557 main ()
4561 return 0;
4563 _ACEOF
4564 if ac_fn_cxx_try_compile "$LINENO"; then :
4565 ac_cv_prog_cxx_g=yes
4567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4575 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4576 if test "$ac_test_CXXFLAGS" = set; then
4577 CXXFLAGS=$ac_save_CXXFLAGS
4578 elif test $ac_cv_prog_cxx_g = yes; then
4579 if test "$GXX" = yes; then
4580 CXXFLAGS="-g -O2"
4581 else
4582 CXXFLAGS="-g"
4584 else
4585 if test "$GXX" = yes; then
4586 CXXFLAGS="-O2"
4587 else
4588 CXXFLAGS=
4591 ac_ext=c
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600 if test -n "$ac_tool_prefix"; then
4601 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4602 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$GNATBIND"; then
4609 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4622 done
4623 done
4624 IFS=$as_save_IFS
4628 GNATBIND=$ac_cv_prog_GNATBIND
4629 if test -n "$GNATBIND"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4631 $as_echo "$GNATBIND" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4639 if test -z "$ac_cv_prog_GNATBIND"; then
4640 ac_ct_GNATBIND=$GNATBIND
4641 # Extract the first word of "gnatbind", so it can be a program name with args.
4642 set dummy gnatbind; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 if test -n "$ac_ct_GNATBIND"; then
4649 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4668 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4669 if test -n "$ac_ct_GNATBIND"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4671 $as_echo "$ac_ct_GNATBIND" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4677 if test "x$ac_ct_GNATBIND" = x; then
4678 GNATBIND="no"
4679 else
4680 case $cross_compiling:$ac_tool_warned in
4681 yes:)
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4685 esac
4686 GNATBIND=$ac_ct_GNATBIND
4688 else
4689 GNATBIND="$ac_cv_prog_GNATBIND"
4692 if test -n "$ac_tool_prefix"; then
4693 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4694 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4696 $as_echo_n "checking for $ac_word... " >&6; }
4697 if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 if test -n "$GNATMAKE"; then
4701 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
4711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 break 2
4714 done
4715 done
4716 IFS=$as_save_IFS
4720 GNATMAKE=$ac_cv_prog_GNATMAKE
4721 if test -n "$GNATMAKE"; then
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4723 $as_echo "$GNATMAKE" >&6; }
4724 else
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4726 $as_echo "no" >&6; }
4731 if test -z "$ac_cv_prog_GNATMAKE"; then
4732 ac_ct_GNATMAKE=$GNATMAKE
4733 # Extract the first word of "gnatmake", so it can be a program name with args.
4734 set dummy gnatmake; ac_word=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 if test -n "$ac_ct_GNATMAKE"; then
4741 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4754 done
4755 done
4756 IFS=$as_save_IFS
4760 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4761 if test -n "$ac_ct_GNATMAKE"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4763 $as_echo "$ac_ct_GNATMAKE" >&6; }
4764 else
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4769 if test "x$ac_ct_GNATMAKE" = x; then
4770 GNATMAKE="no"
4771 else
4772 case $cross_compiling:$ac_tool_warned in
4773 yes:)
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4776 ac_tool_warned=yes ;;
4777 esac
4778 GNATMAKE=$ac_ct_GNATMAKE
4780 else
4781 GNATMAKE="$ac_cv_prog_GNATMAKE"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4785 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4786 if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4788 else
4789 cat >conftest.adb <<EOF
4790 procedure conftest is begin null; end conftest;
4792 acx_cv_cc_gcc_supports_ada=no
4793 # There is a bug in old released versions of GCC which causes the
4794 # driver to exit successfully when the appropriate language module
4795 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4796 # Therefore we must check for the error message as well as an
4797 # unsuccessful exit.
4798 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
4799 # given a .adb file, but produce no object file. So we must check
4800 # if an object file was really produced to guard against this.
4801 errors=`(${CC} -I"$srcdir"/ada -c conftest.adb) 2>&1 || echo failure`
4802 if test x"$errors" = x && test -f conftest.$ac_objext; then
4803 acx_cv_cc_gcc_supports_ada=yes
4805 rm -f conftest.*
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4808 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
4810 if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
4811 have_gnat=yes
4812 else
4813 have_gnat=no
4817 # autoconf is lame and doesn't give us any substitution variable for this.
4818 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then
4819 NO_MINUS_C_MINUS_O=yes
4820 else
4821 OUTPUT_OPTION='-o $@'
4826 # Remove the -O2: for historical reasons, unless bootstrapping we prefer
4827 # optimizations to be activated explicitly by the toplevel.
4828 case "$CC" in
4829 */prev-gcc/xgcc*) ;;
4830 *) CFLAGS=`echo $CFLAGS | sed "s/-O[s0-9]* *//" ` ;;
4831 esac
4834 # -------------------------
4835 # Check C compiler features
4836 # -------------------------
4839 ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4845 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4846 # On Suns, sometimes $CPP names a directory.
4847 if test -n "$CPP" && test -d "$CPP"; then
4848 CPP=
4850 if test -z "$CPP"; then
4851 if test "${ac_cv_prog_CPP+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 # Double quotes because CPP needs to be expanded
4855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4857 ac_preproc_ok=false
4858 for ac_c_preproc_warn_flag in '' yes
4860 # Use a header file that comes with gcc, so configuring glibc
4861 # with a fresh cross-compiler works.
4862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863 # <limits.h> exists even on freestanding compilers.
4864 # On the NeXT, cc -E runs the code through the compiler's parser,
4865 # not just through cpp. "Syntax error" is here to catch this case.
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 #ifdef __STDC__
4869 # include <limits.h>
4870 #else
4871 # include <assert.h>
4872 #endif
4873 Syntax error
4874 _ACEOF
4875 if ac_fn_c_try_cpp "$LINENO"; then :
4877 else
4878 # Broken: fails on valid input.
4879 continue
4881 rm -f conftest.err conftest.$ac_ext
4883 # OK, works on sane cases. Now check whether nonexistent headers
4884 # can be detected and how.
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 #include <ac_nonexistent.h>
4888 _ACEOF
4889 if ac_fn_c_try_cpp "$LINENO"; then :
4890 # Broken: success on invalid input.
4891 continue
4892 else
4893 # Passes both tests.
4894 ac_preproc_ok=:
4895 break
4897 rm -f conftest.err conftest.$ac_ext
4899 done
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.$ac_ext
4902 if $ac_preproc_ok; then :
4903 break
4906 done
4907 ac_cv_prog_CPP=$CPP
4910 CPP=$ac_cv_prog_CPP
4911 else
4912 ac_cv_prog_CPP=$CPP
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4915 $as_echo "$CPP" >&6; }
4916 ac_preproc_ok=false
4917 for ac_c_preproc_warn_flag in '' yes
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 #ifdef __STDC__
4928 # include <limits.h>
4929 #else
4930 # include <assert.h>
4931 #endif
4932 Syntax error
4933 _ACEOF
4934 if ac_fn_c_try_cpp "$LINENO"; then :
4936 else
4937 # Broken: fails on valid input.
4938 continue
4940 rm -f conftest.err conftest.$ac_ext
4942 # OK, works on sane cases. Now check whether nonexistent headers
4943 # can be detected and how.
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 #include <ac_nonexistent.h>
4947 _ACEOF
4948 if ac_fn_c_try_cpp "$LINENO"; then :
4949 # Broken: success on invalid input.
4950 continue
4951 else
4952 # Passes both tests.
4953 ac_preproc_ok=:
4954 break
4956 rm -f conftest.err conftest.$ac_ext
4958 done
4959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4960 rm -f conftest.err conftest.$ac_ext
4961 if $ac_preproc_ok; then :
4963 else
4964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4967 See \`config.log' for more details." "$LINENO" 5; }
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4978 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4979 if test "${ac_cv_path_GREP+set}" = set; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -z "$GREP"; then
4983 ac_path_GREP_found=false
4984 # Loop through the user's path and test for each of PROGNAME-LIST
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_prog in grep ggrep; do
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4994 # Check for GNU ac_path_GREP and select it if it is found.
4995 # Check for GNU $ac_path_GREP
4996 case `"$ac_path_GREP" --version 2>&1` in
4997 *GNU*)
4998 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5000 ac_count=0
5001 $as_echo_n 0123456789 >"conftest.in"
5002 while :
5004 cat "conftest.in" "conftest.in" >"conftest.tmp"
5005 mv "conftest.tmp" "conftest.in"
5006 cp "conftest.in" "conftest.nl"
5007 $as_echo 'GREP' >> "conftest.nl"
5008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5009 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5010 as_fn_arith $ac_count + 1 && ac_count=$as_val
5011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5012 # Best one so far, save it but keep looking for a better one
5013 ac_cv_path_GREP="$ac_path_GREP"
5014 ac_path_GREP_max=$ac_count
5016 # 10*(2^10) chars as input seems more than enough
5017 test $ac_count -gt 10 && break
5018 done
5019 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5020 esac
5022 $ac_path_GREP_found && break 3
5023 done
5024 done
5025 done
5026 IFS=$as_save_IFS
5027 if test -z "$ac_cv_path_GREP"; then
5028 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5030 else
5031 ac_cv_path_GREP=$GREP
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5036 $as_echo "$ac_cv_path_GREP" >&6; }
5037 GREP="$ac_cv_path_GREP"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5041 $as_echo_n "checking for egrep... " >&6; }
5042 if test "${ac_cv_path_EGREP+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5046 then ac_cv_path_EGREP="$GREP -E"
5047 else
5048 if test -z "$EGREP"; then
5049 ac_path_EGREP_found=false
5050 # Loop through the user's path and test for each of PROGNAME-LIST
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_prog in egrep; do
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5059 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5060 # Check for GNU ac_path_EGREP and select it if it is found.
5061 # Check for GNU $ac_path_EGREP
5062 case `"$ac_path_EGREP" --version 2>&1` in
5063 *GNU*)
5064 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5066 ac_count=0
5067 $as_echo_n 0123456789 >"conftest.in"
5068 while :
5070 cat "conftest.in" "conftest.in" >"conftest.tmp"
5071 mv "conftest.tmp" "conftest.in"
5072 cp "conftest.in" "conftest.nl"
5073 $as_echo 'EGREP' >> "conftest.nl"
5074 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5076 as_fn_arith $ac_count + 1 && ac_count=$as_val
5077 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5078 # Best one so far, save it but keep looking for a better one
5079 ac_cv_path_EGREP="$ac_path_EGREP"
5080 ac_path_EGREP_max=$ac_count
5082 # 10*(2^10) chars as input seems more than enough
5083 test $ac_count -gt 10 && break
5084 done
5085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5086 esac
5088 $ac_path_EGREP_found && break 3
5089 done
5090 done
5091 done
5092 IFS=$as_save_IFS
5093 if test -z "$ac_cv_path_EGREP"; then
5094 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096 else
5097 ac_cv_path_EGREP=$EGREP
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5103 $as_echo "$ac_cv_path_EGREP" >&6; }
5104 EGREP="$ac_cv_path_EGREP"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5108 $as_echo_n "checking for ANSI C header files... " >&6; }
5109 if test "${ac_cv_header_stdc+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5113 /* end confdefs.h. */
5114 #include <stdlib.h>
5115 #include <stdarg.h>
5116 #include <string.h>
5117 #include <float.h>
5120 main ()
5124 return 0;
5126 _ACEOF
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128 ac_cv_header_stdc=yes
5129 else
5130 ac_cv_header_stdc=no
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 if test $ac_cv_header_stdc = yes; then
5135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 #include <string.h>
5140 _ACEOF
5141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5142 $EGREP "memchr" >/dev/null 2>&1; then :
5144 else
5145 ac_cv_header_stdc=no
5147 rm -f conftest*
5151 if test $ac_cv_header_stdc = yes; then
5152 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155 #include <stdlib.h>
5157 _ACEOF
5158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159 $EGREP "free" >/dev/null 2>&1; then :
5161 else
5162 ac_cv_header_stdc=no
5164 rm -f conftest*
5168 if test $ac_cv_header_stdc = yes; then
5169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5170 if test "$cross_compiling" = yes; then :
5172 else
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5175 #include <ctype.h>
5176 #include <stdlib.h>
5177 #if ((' ' & 0x0FF) == 0x020)
5178 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5179 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5180 #else
5181 # define ISLOWER(c) \
5182 (('a' <= (c) && (c) <= 'i') \
5183 || ('j' <= (c) && (c) <= 'r') \
5184 || ('s' <= (c) && (c) <= 'z'))
5185 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5186 #endif
5188 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5190 main ()
5192 int i;
5193 for (i = 0; i < 256; i++)
5194 if (XOR (islower (i), ISLOWER (i))
5195 || toupper (i) != TOUPPER (i))
5196 return 2;
5197 return 0;
5199 _ACEOF
5200 if ac_fn_c_try_run "$LINENO"; then :
5202 else
5203 ac_cv_header_stdc=no
5205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5206 conftest.$ac_objext conftest.beam conftest.$ac_ext
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5212 $as_echo "$ac_cv_header_stdc" >&6; }
5213 if test $ac_cv_header_stdc = yes; then
5215 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5219 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5220 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5221 inttypes.h stdint.h unistd.h
5222 do :
5223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5224 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5226 eval as_val=\$$as_ac_Header
5227 if test "x$as_val" = x""yes; then :
5228 cat >>confdefs.h <<_ACEOF
5229 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5230 _ACEOF
5234 done
5238 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5239 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5240 MINIX=yes
5241 else
5242 MINIX=
5246 if test "$MINIX" = yes; then
5248 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5251 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5254 $as_echo "#define _MINIX 1" >>confdefs.h
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5260 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5261 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h. */
5267 # define __EXTENSIONS__ 1
5268 $ac_includes_default
5270 main ()
5274 return 0;
5276 _ACEOF
5277 if ac_fn_c_try_compile "$LINENO"; then :
5278 ac_cv_safe_to_define___extensions__=yes
5279 else
5280 ac_cv_safe_to_define___extensions__=no
5282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5285 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5286 test $ac_cv_safe_to_define___extensions__ = yes &&
5287 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5289 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5291 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5293 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5295 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5298 ac_ext=c
5299 ac_cpp='$CPP $CPPFLAGS'
5300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5304 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5305 # On Suns, sometimes $CPP names a directory.
5306 if test -n "$CPP" && test -d "$CPP"; then
5307 CPP=
5309 if test -z "$CPP"; then
5310 if test "${ac_cv_prog_CPP+set}" = set; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 # Double quotes because CPP needs to be expanded
5314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5316 ac_preproc_ok=false
5317 for ac_c_preproc_warn_flag in '' yes
5319 # Use a header file that comes with gcc, so configuring glibc
5320 # with a fresh cross-compiler works.
5321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5322 # <limits.h> exists even on freestanding compilers.
5323 # On the NeXT, cc -E runs the code through the compiler's parser,
5324 # not just through cpp. "Syntax error" is here to catch this case.
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 #ifdef __STDC__
5328 # include <limits.h>
5329 #else
5330 # include <assert.h>
5331 #endif
5332 Syntax error
5333 _ACEOF
5334 if ac_fn_c_try_cpp "$LINENO"; then :
5336 else
5337 # Broken: fails on valid input.
5338 continue
5340 rm -f conftest.err conftest.$ac_ext
5342 # OK, works on sane cases. Now check whether nonexistent headers
5343 # can be detected and how.
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #include <ac_nonexistent.h>
5347 _ACEOF
5348 if ac_fn_c_try_cpp "$LINENO"; then :
5349 # Broken: success on invalid input.
5350 continue
5351 else
5352 # Passes both tests.
5353 ac_preproc_ok=:
5354 break
5356 rm -f conftest.err conftest.$ac_ext
5358 done
5359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5360 rm -f conftest.err conftest.$ac_ext
5361 if $ac_preproc_ok; then :
5362 break
5365 done
5366 ac_cv_prog_CPP=$CPP
5369 CPP=$ac_cv_prog_CPP
5370 else
5371 ac_cv_prog_CPP=$CPP
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5374 $as_echo "$CPP" >&6; }
5375 ac_preproc_ok=false
5376 for ac_c_preproc_warn_flag in '' yes
5378 # Use a header file that comes with gcc, so configuring glibc
5379 # with a fresh cross-compiler works.
5380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5381 # <limits.h> exists even on freestanding compilers.
5382 # On the NeXT, cc -E runs the code through the compiler's parser,
5383 # not just through cpp. "Syntax error" is here to catch this case.
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #ifdef __STDC__
5387 # include <limits.h>
5388 #else
5389 # include <assert.h>
5390 #endif
5391 Syntax error
5392 _ACEOF
5393 if ac_fn_c_try_cpp "$LINENO"; then :
5395 else
5396 # Broken: fails on valid input.
5397 continue
5399 rm -f conftest.err conftest.$ac_ext
5401 # OK, works on sane cases. Now check whether nonexistent headers
5402 # can be detected and how.
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <ac_nonexistent.h>
5406 _ACEOF
5407 if ac_fn_c_try_cpp "$LINENO"; then :
5408 # Broken: success on invalid input.
5409 continue
5410 else
5411 # Passes both tests.
5412 ac_preproc_ok=:
5413 break
5415 rm -f conftest.err conftest.$ac_ext
5417 done
5418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5419 rm -f conftest.err conftest.$ac_ext
5420 if $ac_preproc_ok; then :
5422 else
5423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5425 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5426 See \`config.log' for more details." "$LINENO" 5; }
5429 ac_ext=c
5430 ac_cpp='$CPP $CPPFLAGS'
5431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5436 $as_echo_n "checking for inline... " >&6; }
5437 if test "${ac_cv_c_inline+set}" = set; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 ac_cv_c_inline=no
5441 for ac_kw in inline __inline__ __inline; do
5442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5444 #ifndef __cplusplus
5445 typedef int foo_t;
5446 static $ac_kw foo_t static_foo () {return 0; }
5447 $ac_kw foo_t foo () {return 0; }
5448 #endif
5450 _ACEOF
5451 if ac_fn_c_try_compile "$LINENO"; then :
5452 ac_cv_c_inline=$ac_kw
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 test "$ac_cv_c_inline" != no && break
5456 done
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5460 $as_echo "$ac_cv_c_inline" >&6; }
5462 case $ac_cv_c_inline in
5463 inline | yes) ;;
5465 case $ac_cv_c_inline in
5466 no) ac_val=;;
5467 *) ac_val=$ac_cv_c_inline;;
5468 esac
5469 cat >>confdefs.h <<_ACEOF
5470 #ifndef __cplusplus
5471 #define inline $ac_val
5472 #endif
5473 _ACEOF
5475 esac
5478 # sizeof(char) is 1 by definition.
5479 # The cast to long int works around a bug in the HP C Compiler
5480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5482 # This bug is HP SR number 8606223364.
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5484 $as_echo_n "checking size of void *... " >&6; }
5485 if test "${ac_cv_sizeof_void_p+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
5490 else
5491 if test "$ac_cv_type_void_p" = yes; then
5492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5494 { as_fn_set_status 77
5495 as_fn_error "cannot compute sizeof (void *)
5496 See \`config.log' for more details." "$LINENO" 5; }; }
5497 else
5498 ac_cv_sizeof_void_p=0
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5504 $as_echo "$ac_cv_sizeof_void_p" >&6; }
5508 cat >>confdefs.h <<_ACEOF
5509 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5510 _ACEOF
5513 # The cast to long int works around a bug in the HP C Compiler
5514 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5515 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5516 # This bug is HP SR number 8606223364.
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
5518 $as_echo_n "checking size of short... " >&6; }
5519 if test "${ac_cv_sizeof_short+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
5524 else
5525 if test "$ac_cv_type_short" = yes; then
5526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5528 { as_fn_set_status 77
5529 as_fn_error "cannot compute sizeof (short)
5530 See \`config.log' for more details." "$LINENO" 5; }; }
5531 else
5532 ac_cv_sizeof_short=0
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
5538 $as_echo "$ac_cv_sizeof_short" >&6; }
5542 cat >>confdefs.h <<_ACEOF
5543 #define SIZEOF_SHORT $ac_cv_sizeof_short
5544 _ACEOF
5547 # The cast to long int works around a bug in the HP C Compiler
5548 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5549 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5550 # This bug is HP SR number 8606223364.
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
5552 $as_echo_n "checking size of int... " >&6; }
5553 if test "${ac_cv_sizeof_int+set}" = set; then :
5554 $as_echo_n "(cached) " >&6
5555 else
5556 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
5558 else
5559 if test "$ac_cv_type_int" = yes; then
5560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5562 { as_fn_set_status 77
5563 as_fn_error "cannot compute sizeof (int)
5564 See \`config.log' for more details." "$LINENO" 5; }; }
5565 else
5566 ac_cv_sizeof_int=0
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
5572 $as_echo "$ac_cv_sizeof_int" >&6; }
5576 cat >>confdefs.h <<_ACEOF
5577 #define SIZEOF_INT $ac_cv_sizeof_int
5578 _ACEOF
5581 # The cast to long int works around a bug in the HP C Compiler
5582 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5583 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5584 # This bug is HP SR number 8606223364.
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5586 $as_echo_n "checking size of long... " >&6; }
5587 if test "${ac_cv_sizeof_long+set}" = set; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5592 else
5593 if test "$ac_cv_type_long" = yes; then
5594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5596 { as_fn_set_status 77
5597 as_fn_error "cannot compute sizeof (long)
5598 See \`config.log' for more details." "$LINENO" 5; }; }
5599 else
5600 ac_cv_sizeof_long=0
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5606 $as_echo "$ac_cv_sizeof_long" >&6; }
5610 cat >>confdefs.h <<_ACEOF
5611 #define SIZEOF_LONG $ac_cv_sizeof_long
5612 _ACEOF
5615 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
5616 if test "x$ac_cv_type_long_long" = x""yes; then :
5618 cat >>confdefs.h <<_ACEOF
5619 #define HAVE_LONG_LONG 1
5620 _ACEOF
5622 # The cast to long int works around a bug in the HP C Compiler
5623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5625 # This bug is HP SR number 8606223364.
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
5627 $as_echo_n "checking size of long long... " >&6; }
5628 if test "${ac_cv_sizeof_long_long+set}" = set; then :
5629 $as_echo_n "(cached) " >&6
5630 else
5631 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
5633 else
5634 if test "$ac_cv_type_long_long" = yes; then
5635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5637 { as_fn_set_status 77
5638 as_fn_error "cannot compute sizeof (long long)
5639 See \`config.log' for more details." "$LINENO" 5; }; }
5640 else
5641 ac_cv_sizeof_long_long=0
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
5647 $as_echo "$ac_cv_sizeof_long_long" >&6; }
5651 cat >>confdefs.h <<_ACEOF
5652 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
5653 _ACEOF
5658 ac_fn_c_check_type "$LINENO" "__int64" "ac_cv_type___int64" "$ac_includes_default"
5659 if test "x$ac_cv_type___int64" = x""yes; then :
5661 cat >>confdefs.h <<_ACEOF
5662 #define HAVE___INT64 1
5663 _ACEOF
5665 # The cast to long int works around a bug in the HP C Compiler
5666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5668 # This bug is HP SR number 8606223364.
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
5670 $as_echo_n "checking size of __int64... " >&6; }
5671 if test "${ac_cv_sizeof___int64+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5673 else
5674 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default"; then :
5676 else
5677 if test "$ac_cv_type___int64" = yes; then
5678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5680 { as_fn_set_status 77
5681 as_fn_error "cannot compute sizeof (__int64)
5682 See \`config.log' for more details." "$LINENO" 5; }; }
5683 else
5684 ac_cv_sizeof___int64=0
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
5690 $as_echo "$ac_cv_sizeof___int64" >&6; }
5694 cat >>confdefs.h <<_ACEOF
5695 #define SIZEOF___INT64 $ac_cv_sizeof___int64
5696 _ACEOF
5702 # ---------------------
5703 # Warnings and checking
5704 # ---------------------
5706 # Check $CC warning features (if it's GCC).
5707 # We want to use -pedantic, but we don't want warnings about
5708 # * 'long long'
5709 # * variadic macros
5710 # * overlong strings
5711 # So, we only use -pedantic if we can disable those warnings.
5713 loose_warn=
5714 save_CFLAGS="$CFLAGS"
5715 for option in -W -Wall -Wwrite-strings -Wcast-qual; do
5716 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5719 $as_echo_n "checking whether $CC supports $option... " >&6; }
5720 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 CFLAGS="$option"
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5728 main ()
5732 return 0;
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 eval "$as_acx_Woption=yes"
5737 else
5738 eval "$as_acx_Woption=no"
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 eval ac_res=\$$as_acx_Woption
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5745 $as_echo "$ac_res" >&6; }
5746 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5747 loose_warn="$loose_warn${loose_warn:+ }$option"
5749 done
5750 CFLAGS="$save_CFLAGS"
5752 c_loose_warn=
5753 save_CFLAGS="$CFLAGS"
5754 for option in -Wstrict-prototypes -Wmissing-prototypes; do
5755 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5758 $as_echo_n "checking whether $CC supports $option... " >&6; }
5759 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 CFLAGS="$option"
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5767 main ()
5771 return 0;
5773 _ACEOF
5774 if ac_fn_c_try_compile "$LINENO"; then :
5775 eval "$as_acx_Woption=yes"
5776 else
5777 eval "$as_acx_Woption=no"
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 eval ac_res=\$$as_acx_Woption
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5784 $as_echo "$ac_res" >&6; }
5785 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5786 c_loose_warn="$c_loose_warn${c_loose_warn:+ }$option"
5788 done
5789 CFLAGS="$save_CFLAGS"
5791 strict_warn=
5792 save_CFLAGS="$CFLAGS"
5793 for option in -Wmissing-format-attribute; do
5794 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5797 $as_echo_n "checking whether $CC supports $option... " >&6; }
5798 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 CFLAGS="$option"
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5806 main ()
5810 return 0;
5812 _ACEOF
5813 if ac_fn_c_try_compile "$LINENO"; then :
5814 eval "$as_acx_Woption=yes"
5815 else
5816 eval "$as_acx_Woption=no"
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 eval ac_res=\$$as_acx_Woption
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5823 $as_echo "$ac_res" >&6; }
5824 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5825 strict_warn="$strict_warn${strict_warn:+ }$option"
5827 done
5828 CFLAGS="$save_CFLAGS"
5830 c_strict_warn=
5831 save_CFLAGS="$CFLAGS"
5832 for option in -Wold-style-definition -Wc++-compat; do
5833 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
5836 $as_echo_n "checking whether $CC supports $option... " >&6; }
5837 if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 CFLAGS="$option"
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5845 main ()
5849 return 0;
5851 _ACEOF
5852 if ac_fn_c_try_compile "$LINENO"; then :
5853 eval "$as_acx_Woption=yes"
5854 else
5855 eval "$as_acx_Woption=no"
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 eval ac_res=\$$as_acx_Woption
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5862 $as_echo "$ac_res" >&6; }
5863 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
5864 c_strict_warn="$c_strict_warn${c_strict_warn:+ }$option"
5866 done
5867 CFLAGS="$save_CFLAGS"
5869 if test "$GCC" = yes; then :
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings" >&5
5871 $as_echo_n "checking whether $CC supports -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings... " >&6; }
5872 if test "${acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 save_CFLAGS="$CFLAGS"
5876 CFLAGS="-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5881 main ()
5885 return 0;
5887 _ACEOF
5888 if ac_fn_c_try_compile "$LINENO"; then :
5889 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=yes
5890 else
5891 acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings=no
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 CFLAGS="$save_CFLAGS"
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&5
5897 $as_echo "$acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings" >&6; }
5898 if test $acx_cv_prog_cc_pedantic__Wno_long_long__Wno_variadic_macros__Wno_overlength_strings = yes; then :
5899 strict_warn="$strict_warn${strict_warn:+ }-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings"
5904 # Check whether --enable-werror-always was given.
5905 if test "${enable_werror_always+set}" = set; then :
5906 enableval=$enable_werror_always;
5907 else
5908 enable_werror_always=no
5911 if test $enable_werror_always = yes; then :
5912 strict_warn="$strict_warn${strict_warn:+ }-Werror"
5917 # The above macros do nothing if the compiler is not GCC. However, the
5918 # Makefile has more goo to add other flags, so these variables are used
5919 # to enable warnings only for GCC.
5920 warn_cflags=
5921 warn_cxxflags=
5922 if test "x$GCC" = "xyes"; then
5923 warn_cflags='$(GCC_WARN_CFLAGS)'
5924 warn_cxxflags='$(GCC_WARN_CXXFLAGS)'
5929 # Enable expensive internal checks
5930 is_release=
5931 if test x"`cat $srcdir/DEV-PHASE`" != xexperimental; then
5932 is_release=yes
5935 # Check whether --enable-checking was given.
5936 if test "${enable_checking+set}" = set; then :
5937 enableval=$enable_checking; ac_checking_flags="${enableval}"
5938 else
5940 # Determine the default checks.
5941 if test x$is_release = x ; then
5942 ac_checking_flags=yes
5943 else
5944 ac_checking_flags=release
5948 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
5949 for check in release $ac_checking_flags
5951 case $check in
5952 # these set all the flags to specific states
5953 yes) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking= ;
5954 ac_fold_checking= ; ac_gc_checking=1 ;
5955 ac_gc_always_collect= ; ac_gimple_checking=1 ; ac_rtl_checking= ;
5956 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
5957 ac_tree_checking=1 ; ac_valgrind_checking= ;
5958 ac_types_checking=1 ;;
5959 no|none) ac_assert_checking= ; ac_checking= ; ac_df_checking= ;
5960 ac_fold_checking= ; ac_gc_checking= ;
5961 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
5962 ac_rtlflag_checking= ; ac_runtime_checking= ;
5963 ac_tree_checking= ; ac_valgrind_checking= ;
5964 ac_types_checking= ;;
5965 all) ac_assert_checking=1 ; ac_checking=1 ; ac_df_checking=1 ;
5966 ac_fold_checking=1 ; ac_gc_checking=1 ;
5967 ac_gc_always_collect=1 ; ac_gimple_checking=1 ; ac_rtl_checking=1 ;
5968 ac_rtlflag_checking=1 ; ac_runtime_checking=1 ;
5969 ac_tree_checking=1 ; ac_valgrind_checking= ;
5970 ac_types_checking=1 ;;
5971 release) ac_assert_checking=1 ; ac_checking= ; ac_df_checking= ;
5972 ac_fold_checking= ; ac_gc_checking= ;
5973 ac_gc_always_collect= ; ac_gimple_checking= ; ac_rtl_checking= ;
5974 ac_rtlflag_checking= ; ac_runtime_checking=1 ;
5975 ac_tree_checking= ; ac_valgrind_checking= ;
5976 ac_types_checking= ;;
5977 # these enable particular checks
5978 assert) ac_assert_checking=1 ;;
5979 df) ac_df_checking=1 ;;
5980 fold) ac_fold_checking=1 ;;
5981 gc) ac_gc_checking=1 ;;
5982 gcac) ac_gc_always_collect=1 ;;
5983 gimple) ac_gimple_checking=1 ;;
5984 misc) ac_checking=1 ;;
5985 rtl) ac_rtl_checking=1 ;;
5986 rtlflag) ac_rtlflag_checking=1 ;;
5987 runtime) ac_runtime_checking=1 ;;
5988 tree) ac_tree_checking=1 ;;
5989 types) ac_types_checking=1 ;;
5990 valgrind) ac_valgrind_checking=1 ;;
5991 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
5992 esac
5993 done
5994 IFS="$ac_save_IFS"
5996 nocommon_flag=""
5997 if test x$ac_checking != x ; then
5999 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
6001 nocommon_flag=-fno-common
6004 if test x$ac_df_checking != x ; then
6006 $as_echo "#define ENABLE_DF_CHECKING 1" >>confdefs.h
6009 if test x$ac_assert_checking != x ; then
6011 $as_echo "#define ENABLE_ASSERT_CHECKING 1" >>confdefs.h
6014 if test x$ac_gimple_checking != x ; then
6016 $as_echo "#define ENABLE_GIMPLE_CHECKING 1" >>confdefs.h
6020 if test x$ac_runtime_checking != x ; then
6022 $as_echo "#define ENABLE_RUNTIME_CHECKING 1" >>confdefs.h
6025 if test x$ac_tree_checking != x ; then
6027 $as_echo "#define ENABLE_TREE_CHECKING 1" >>confdefs.h
6029 TREEBROWSER=tree-browser.o
6031 if test x$ac_types_checking != x ; then
6033 $as_echo "#define ENABLE_TYPES_CHECKING 1" >>confdefs.h
6037 if test x$ac_rtl_checking != x ; then
6039 $as_echo "#define ENABLE_RTL_CHECKING 1" >>confdefs.h
6042 if test x$ac_rtlflag_checking != x ; then
6044 $as_echo "#define ENABLE_RTL_FLAG_CHECKING 1" >>confdefs.h
6047 if test x$ac_gc_checking != x ; then
6049 $as_echo "#define ENABLE_GC_CHECKING 1" >>confdefs.h
6052 if test x$ac_gc_always_collect != x ; then
6054 $as_echo "#define ENABLE_GC_ALWAYS_COLLECT 1" >>confdefs.h
6057 if test x$ac_fold_checking != x ; then
6059 $as_echo "#define ENABLE_FOLD_CHECKING 1" >>confdefs.h
6062 valgrind_path_defines=
6063 valgrind_command=
6065 ac_fn_c_check_header_mongrel "$LINENO" "valgrind.h" "ac_cv_header_valgrind_h" "$ac_includes_default"
6066 if test "x$ac_cv_header_valgrind_h" = x""yes; then :
6067 have_valgrind_h=yes
6068 else
6069 have_valgrind_h=no
6074 if test x$ac_valgrind_checking != x ; then
6075 # It is certainly possible that there's valgrind but no valgrind.h.
6076 # GCC relies on making annotations so we must have both.
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <valgrind/memcheck.h>" >&5
6078 $as_echo_n "checking for VALGRIND_DISCARD in <valgrind/memcheck.h>... " >&6; }
6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6080 /* end confdefs.h. */
6081 #include <valgrind/memcheck.h>
6082 #ifndef VALGRIND_DISCARD
6083 #error VALGRIND_DISCARD not defined
6084 #endif
6085 _ACEOF
6086 if ac_fn_c_try_cpp "$LINENO"; then :
6087 gcc_cv_header_valgrind_memcheck_h=yes
6088 else
6089 gcc_cv_header_valgrind_memcheck_h=no
6091 rm -f conftest.err conftest.$ac_ext
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_valgrind_memcheck_h" >&5
6093 $as_echo "$gcc_cv_header_valgrind_memcheck_h" >&6; }
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND_DISCARD in <memcheck.h>" >&5
6095 $as_echo_n "checking for VALGRIND_DISCARD in <memcheck.h>... " >&6; }
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 #include <memcheck.h>
6099 #ifndef VALGRIND_DISCARD
6100 #error VALGRIND_DISCARD not defined
6101 #endif
6102 _ACEOF
6103 if ac_fn_c_try_cpp "$LINENO"; then :
6104 gcc_cv_header_memcheck_h=yes
6105 else
6106 gcc_cv_header_memcheck_h=no
6108 rm -f conftest.err conftest.$ac_ext
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_memcheck_h" >&5
6110 $as_echo "$gcc_cv_header_memcheck_h" >&6; }
6112 # Prepare PATH_SEPARATOR.
6113 # The user is always right.
6114 if test "${PATH_SEPARATOR+set}" != set; then
6115 echo "#! /bin/sh" >conf$$.sh
6116 echo "exit 0" >>conf$$.sh
6117 chmod +x conf$$.sh
6118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6119 PATH_SEPARATOR=';'
6120 else
6121 PATH_SEPARATOR=:
6123 rm -f conf$$.sh
6126 # Find out how to test for executable files. Don't use a zero-byte file,
6127 # as systems may use methods other than mode bits to determine executability.
6128 cat >conf$$.file <<_ASEOF
6129 #! /bin/sh
6130 exit 0
6131 _ASEOF
6132 chmod +x conf$$.file
6133 if test -x conf$$.file >/dev/null 2>&1; then
6134 ac_executable_p="test -x"
6135 else
6136 ac_executable_p="test -f"
6138 rm -f conf$$.file
6140 # Extract the first word of "valgrind", so it can be a program name with args.
6141 set dummy valgrind; ac_word=$2
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143 $as_echo_n "checking for $ac_word... " >&6; }
6144 if test "${ac_cv_path_valgrind_path+set}" = set; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 case "$valgrind_path" in
6148 [\\/]* | ?:[\\/]*)
6149 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path.
6152 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6153 for ac_dir in $PATH; do
6154 IFS="$ac_save_IFS"
6155 test -z "$ac_dir" && ac_dir=.
6156 for ac_exec_ext in '' $ac_executable_extensions; do
6157 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6158 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then
6159 ac_cv_path_valgrind_path="$ac_dir/$ac_word$ac_exec_ext"
6160 break 2
6163 done
6164 done
6165 IFS="$ac_save_IFS"
6167 esac
6169 valgrind_path="$ac_cv_path_valgrind_path"
6170 if test -n "$valgrind_path"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $valgrind_path" >&5
6172 $as_echo "$valgrind_path" >&6; }
6173 else
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175 $as_echo "no" >&6; }
6178 if test "x$valgrind_path" = "x" \
6179 || (test $have_valgrind_h = no \
6180 && test $gcc_cv_header_memcheck_h = no \
6181 && test $gcc_cv_header_valgrind_memcheck_h = no); then
6182 as_fn_error "*** Can't find both valgrind and valgrind/memcheck.h, memcheck.h or valgrind.h" "$LINENO" 5
6184 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"'
6185 valgrind_command="$valgrind_path -q"
6187 $as_echo "#define ENABLE_VALGRIND_CHECKING 1" >>confdefs.h
6189 if test $gcc_cv_header_valgrind_memcheck_h = yes; then
6191 $as_echo "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h
6194 if test $gcc_cv_header_memcheck_h = yes; then
6196 $as_echo "#define HAVE_MEMCHECK_H 1" >>confdefs.h
6203 # Enable code coverage collection
6204 # Check whether --enable-coverage was given.
6205 if test "${enable_coverage+set}" = set; then :
6206 enableval=$enable_coverage; case "${enableval}" in
6207 yes|noopt)
6208 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O0"
6210 opt)
6211 coverage_flags="-fprofile-arcs -ftest-coverage -frandom-seed=\$@ -O2"
6214 # a.k.a. --disable-coverage
6215 coverage_flags=""
6218 as_fn_error "unknown coverage setting $enableval" "$LINENO" 5
6220 esac
6221 else
6222 coverage_flags=""
6227 # Check whether --enable-gather-detailed-mem-stats was given.
6228 if test "${enable_gather_detailed_mem_stats+set}" = set; then :
6229 enableval=$enable_gather_detailed_mem_stats;
6230 else
6231 enable_gather_detailed_mem_stats=no
6234 if test x$enable_gather_detailed_mem_stats = xyes ; then
6236 $as_echo "#define GATHER_STATISTICS 1" >>confdefs.h
6240 # -------------------------------
6241 # Miscenalleous configure options
6242 # -------------------------------
6244 # See if we are building gcc with C++.
6245 # Check whether --enable-build-with-cxx was given.
6246 if test "${enable_build_with_cxx+set}" = set; then :
6247 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
6248 else
6249 ENABLE_BUILD_WITH_CXX=no
6254 # With stabs
6256 # Check whether --with-stabs was given.
6257 if test "${with_stabs+set}" = set; then :
6258 withval=$with_stabs; stabs="$with_stabs"
6259 else
6260 stabs=no
6264 # Determine whether or not multilibs are enabled.
6265 # Check whether --enable-multilib was given.
6266 if test "${enable_multilib+set}" = set; then :
6267 enableval=$enable_multilib;
6268 else
6269 enable_multilib=yes
6274 # Enable __cxa_atexit for C++.
6275 # Check whether --enable-__cxa_atexit was given.
6276 if test "${enable___cxa_atexit+set}" = set; then :
6277 enableval=$enable___cxa_atexit;
6281 # Enable C extension for decimal float if target supports it.
6282 # Check whether --enable-decimal-float was given.
6283 if test "${enable_decimal_float+set}" = set; then :
6284 enableval=$enable_decimal_float;
6285 case $enable_decimal_float in
6286 yes | no | bid | dpd) ;;
6287 *) as_fn_error "'$enable_decimal_float' is an invalid value for --enable-decimal-float.
6288 Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
6289 esac
6291 else
6293 case $target in
6294 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*)
6295 enable_decimal_float=yes
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: decimal float is not supported for this target" >&5
6299 $as_echo "$as_me: WARNING: decimal float is not supported for this target" >&2;}
6300 enable_decimal_float=no
6302 esac
6307 dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
6309 cat >>confdefs.h <<_ACEOF
6310 #define ENABLE_DECIMAL_FLOAT $dfp
6311 _ACEOF
6314 # x86's use BID format instead of DPD
6315 case x$enable_decimal_float in
6316 xyes)
6317 case $target in
6318 i?86*-*-linux* | x86_64*-*-linux*)
6319 enable_decimal_float=bid
6322 enable_decimal_float=dpd
6324 esac
6326 xno)
6327 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
6328 # dependency on libdecnumber.
6329 enable_decimal_float=dpd
6331 esac
6334 bid=`if test $enable_decimal_float = bid; then echo 1; else echo 0; fi`
6336 cat >>confdefs.h <<_ACEOF
6337 #define ENABLE_DECIMAL_BID_FORMAT $bid
6338 _ACEOF
6341 # Enable C extension for fixed-point arithmetic.
6342 # Check whether --enable-fixed-point was given.
6343 if test "${enable_fixed_point+set}" = set; then :
6344 enableval=$enable_fixed_point;
6346 else
6348 case $target in
6349 mips*-*-*)
6350 case $host in
6351 mips*-sgi-irix*)
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported on IRIX" >&5
6353 $as_echo "$as_me: WARNING: fixed-point is not supported on IRIX" >&2;}
6354 enable_fixed_point=no
6357 enable_fixed_point=yes
6359 esac
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fixed-point is not supported for this target" >&5
6363 $as_echo "$as_me: WARNING: fixed-point is not supported for this target" >&2;}
6364 enable_fixed_point=no
6366 esac
6372 fixedpoint=`if test $enable_fixed_point = yes; then echo 1; else echo 0; fi`
6374 cat >>confdefs.h <<_ACEOF
6375 #define ENABLE_FIXED_POINT $fixedpoint
6376 _ACEOF
6379 # Enable threads
6380 # Pass with no value to take the default
6381 # Pass with a value to specify a thread package
6382 # Check whether --enable-threads was given.
6383 if test "${enable_threads+set}" = set; then :
6384 enableval=$enable_threads;
6385 else
6386 enable_threads=''
6390 # Check whether --enable-tls was given.
6391 if test "${enable_tls+set}" = set; then :
6392 enableval=$enable_tls;
6393 case $enable_tls in
6394 yes | no) ;;
6395 *) as_fn_error "'$enable_tls' is an invalid value for --enable-tls.
6396 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
6397 esac
6399 else
6400 enable_tls=''
6404 # Check whether --enable-objc-gc was given.
6405 if test "${enable_objc_gc+set}" = set; then :
6406 enableval=$enable_objc_gc; if test x$enable_objc_gc = xno; then
6407 objc_boehm_gc=''
6408 else
6409 objc_boehm_gc=1
6411 else
6412 objc_boehm_gc=''
6417 # Check whether --with-dwarf2 was given.
6418 if test "${with_dwarf2+set}" = set; then :
6419 withval=$with_dwarf2; dwarf2="$with_dwarf2"
6420 else
6421 dwarf2=no
6425 # Check whether --enable-shared was given.
6426 if test "${enable_shared+set}" = set; then :
6427 enableval=$enable_shared;
6428 case $enable_shared in
6429 yes | no) ;;
6431 enable_shared=no
6432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
6433 for pkg in $enableval; do
6434 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then
6435 enable_shared=yes
6437 done
6438 IFS="$ac_save_ifs"
6440 esac
6442 else
6443 enable_shared=yes
6449 # Check whether --with-build-sysroot was given.
6450 if test "${with_build_sysroot+set}" = set; then :
6451 withval=$with_build_sysroot;
6456 # Check whether --with-sysroot was given.
6457 if test "${with_sysroot+set}" = set; then :
6458 withval=$with_sysroot;
6459 case ${with_sysroot} in
6460 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_noncanonical}/sys-root' ;;
6461 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
6462 esac
6464 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
6465 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
6467 if test "x$prefix" = xNONE; then
6468 test_prefix=/usr/local
6469 else
6470 test_prefix=$prefix
6472 if test "x$exec_prefix" = xNONE; then
6473 test_exec_prefix=$test_prefix
6474 else
6475 test_exec_prefix=$exec_prefix
6477 case ${TARGET_SYSTEM_ROOT} in
6478 "${test_prefix}"|"${test_prefix}/"*|\
6479 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
6480 '${prefix}'|'${prefix}/'*|\
6481 '${exec_prefix}'|'${exec_prefix}/'*)
6482 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
6483 TARGET_SYSTEM_ROOT_DEFINE="$t"
6485 esac
6487 else
6489 TARGET_SYSTEM_ROOT=
6490 TARGET_SYSTEM_ROOT_DEFINE=
6491 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include'
6499 # Build with intermodule optimisations
6500 # Check whether --enable-intermodule was given.
6501 if test "${enable_intermodule+set}" = set; then :
6502 enableval=$enable_intermodule; case ${enable_intermodule} in
6503 yes) onestep="-onestep";;
6504 *) onestep="";;
6505 esac
6506 else
6507 onestep=""
6514 # Check whether --with-pkgversion was given.
6515 if test "${with_pkgversion+set}" = set; then :
6516 withval=$with_pkgversion; case "$withval" in
6517 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6518 no) PKGVERSION= ;;
6519 *) PKGVERSION="($withval) " ;;
6520 esac
6521 else
6522 PKGVERSION="(GCC) "
6530 # Check whether --with-bugurl was given.
6531 if test "${with_bugurl+set}" = set; then :
6532 withval=$with_bugurl; case "$withval" in
6533 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6534 no) BUGURL=
6536 *) BUGURL="$withval"
6538 esac
6539 else
6540 BUGURL="http://gcc.gnu.org/bugs.html"
6544 case ${BUGURL} in
6546 REPORT_BUGS_TO=
6547 REPORT_BUGS_TEXI=
6550 REPORT_BUGS_TO="<$BUGURL>"
6551 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6553 esac;
6558 # Sanity check enable_languages in case someone does not run the toplevel
6559 # configure # script.
6560 # Check whether --enable-languages was given.
6561 if test "${enable_languages+set}" = set; then :
6562 enableval=$enable_languages; case ,${enable_languages}, in
6563 ,,|,yes,)
6564 # go safe -- we cannot be much sure without the toplevel
6565 # configure's
6566 # analysis of which target libs are present and usable
6567 enable_languages=c
6569 *,all,*)
6570 as_fn_error "only the toplevel supports --enable-languages=all" "$LINENO" 5
6572 *,c,*)
6575 enable_languages=c,${enable_languages}
6577 esac
6578 else
6579 enable_languages=c
6584 # Check whether --with-multilib-list was given.
6585 if test "${with_multilib_list+set}" = set; then :
6586 withval=$with_multilib_list; :
6587 else
6588 with_multilib_list=default
6592 # -------------------------
6593 # Checks for other programs
6594 # -------------------------
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6597 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6598 set x ${MAKE-make}
6599 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6600 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6601 $as_echo_n "(cached) " >&6
6602 else
6603 cat >conftest.make <<\_ACEOF
6604 SHELL = /bin/sh
6605 all:
6606 @echo '@@@%%%=$(MAKE)=@@@%%%'
6607 _ACEOF
6608 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6609 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6610 *@@@%%%=?*=@@@%%%*)
6611 eval ac_cv_prog_make_${ac_make}_set=yes;;
6613 eval ac_cv_prog_make_${ac_make}_set=no;;
6614 esac
6615 rm -f conftest.make
6617 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6619 $as_echo "yes" >&6; }
6620 SET_MAKE=
6621 else
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 SET_MAKE="MAKE=${MAKE-make}"
6628 # Find some useful tools
6629 for ac_prog in gawk mawk nawk awk
6631 # Extract the first word of "$ac_prog", so it can be a program name with args.
6632 set dummy $ac_prog; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_AWK+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$AWK"; then
6639 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_AWK="$ac_prog"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6658 AWK=$ac_cv_prog_AWK
6659 if test -n "$AWK"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6661 $as_echo "$AWK" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6668 test -n "$AWK" && break
6669 done
6671 # We need awk to create options.c and options.h.
6672 # Bail out if it's missing.
6673 case ${AWK} in
6674 "") as_fn_error "can't build without awk, bailing out" "$LINENO" 5 ;;
6675 esac
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6678 $as_echo_n "checking whether ln -s works... " >&6; }
6679 if test "${gcc_cv_prog_LN_S+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 rm -f conftestdata_t
6683 echo >conftestdata_f
6684 if ln -s conftestdata_f conftestdata_t 2>/dev/null
6685 then
6686 gcc_cv_prog_LN_S="ln -s"
6687 else
6688 if ln conftestdata_f conftestdata_t 2>/dev/null
6689 then
6690 gcc_cv_prog_LN_S=ln
6691 else
6692 if cp -p conftestdata_f conftestdata_t 2>/dev/null
6693 then
6694 gcc_cv_prog_LN_S="cp -p"
6695 else
6696 gcc_cv_prog_LN_S=cp
6700 rm -f conftestdata_f conftestdata_t
6703 LN_S="$gcc_cv_prog_LN_S"
6704 if test "$gcc_cv_prog_LN_S" = "ln -s"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6706 $as_echo "yes" >&6; }
6707 else
6708 if test "$gcc_cv_prog_LN_S" = "ln"; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using ln" >&5
6710 $as_echo "no, using ln" >&6; }
6711 else
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, and neither does ln, so using $gcc_cv_prog_LN_S" >&5
6713 $as_echo "no, and neither does ln, so using $gcc_cv_prog_LN_S" >&6; }
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
6718 $as_echo_n "checking whether ln works... " >&6; }
6719 if test "${acx_cv_prog_LN+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 rm -f conftestdata_t
6723 echo >conftestdata_f
6724 if ln conftestdata_f conftestdata_t 2>/dev/null
6725 then
6726 acx_cv_prog_LN=ln
6727 else
6728 acx_cv_prog_LN=no
6730 rm -f conftestdata_f conftestdata_t
6733 if test $acx_cv_prog_LN = no; then
6734 LN="$LN_S"
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
6736 $as_echo "no, using $LN" >&6; }
6737 else
6738 LN="$acx_cv_prog_LN"
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6740 $as_echo "yes" >&6; }
6743 if test -n "$ac_tool_prefix"; then
6744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6745 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747 $as_echo_n "checking for $ac_word... " >&6; }
6748 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6749 $as_echo_n "(cached) " >&6
6750 else
6751 if test -n "$RANLIB"; then
6752 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6753 else
6754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755 for as_dir in $PATH
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
6760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6765 done
6766 done
6767 IFS=$as_save_IFS
6771 RANLIB=$ac_cv_prog_RANLIB
6772 if test -n "$RANLIB"; then
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6774 $as_echo "$RANLIB" >&6; }
6775 else
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6782 if test -z "$ac_cv_prog_RANLIB"; then
6783 ac_ct_RANLIB=$RANLIB
6784 # Extract the first word of "ranlib", so it can be a program name with args.
6785 set dummy ranlib; ac_word=$2
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6787 $as_echo_n "checking for $ac_word... " >&6; }
6788 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6789 $as_echo_n "(cached) " >&6
6790 else
6791 if test -n "$ac_ct_RANLIB"; then
6792 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6793 else
6794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6797 IFS=$as_save_IFS
6798 test -z "$as_dir" && as_dir=.
6799 for ac_exec_ext in '' $ac_executable_extensions; do
6800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6801 ac_cv_prog_ac_ct_RANLIB="ranlib"
6802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 break 2
6805 done
6806 done
6807 IFS=$as_save_IFS
6811 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6812 if test -n "$ac_ct_RANLIB"; then
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6814 $as_echo "$ac_ct_RANLIB" >&6; }
6815 else
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6817 $as_echo "no" >&6; }
6820 if test "x$ac_ct_RANLIB" = x; then
6821 RANLIB=":"
6822 else
6823 case $cross_compiling:$ac_tool_warned in
6824 yes:)
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6827 ac_tool_warned=yes ;;
6828 esac
6829 RANLIB=$ac_ct_RANLIB
6831 else
6832 RANLIB="$ac_cv_prog_RANLIB"
6835 case "${host}" in
6836 *-*-darwin*)
6837 # By default, the Darwin ranlib will not treat common symbols as
6838 # definitions when building the archive table of contents. Other
6839 # ranlibs do that; pass an option to the Darwin ranlib that makes
6840 # it behave similarly.
6841 ranlib_flags="-c"
6844 ranlib_flags=""
6845 esac
6848 # Find a good install program. We prefer a C program (faster),
6849 # so one script is as good as another. But avoid the broken or
6850 # incompatible versions:
6851 # SysV /etc/install, /usr/sbin/install
6852 # SunOS /usr/etc/install
6853 # IRIX /sbin/install
6854 # AIX /bin/install
6855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6857 # ./install, which can be erroneously created by make from ./install.sh.
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD compatible install" >&5
6859 $as_echo_n "checking for a BSD compatible install... " >&6; }
6860 if test -z "$INSTALL"; then
6861 if test "${ac_cv_path_install+set}" = set; then :
6862 $as_echo_n "(cached) " >&6
6863 else
6864 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
6865 for ac_dir in $PATH; do
6866 # Account for people who put trailing slashes in PATH elements.
6867 case "$ac_dir/" in
6868 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6870 # OSF1 and SCO ODT 3.0 have their own names for install.
6871 for ac_prog in ginstall scoinst install; do
6872 if test -f $ac_dir/$ac_prog; then
6873 if test $ac_prog = install &&
6874 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
6875 # AIX install. It has an incompatible calling convention.
6876 # OSF/1 installbsd also uses dspmsg, but is usable.
6878 else
6879 ac_cv_path_install="$ac_dir/$ac_prog -c"
6880 break 2
6883 done
6885 esac
6886 done
6887 IFS="$ac_save_IFS"
6890 if test "${ac_cv_path_install+set}" = set; then
6891 INSTALL="$ac_cv_path_install"
6892 else
6893 # As a last resort, use the slow shell script. We don't cache a
6894 # path for INSTALL within a source directory, because that will
6895 # break other packages using the cache if that directory is
6896 # removed, or if the path is relative.
6897 INSTALL="$ac_install_sh"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6901 $as_echo "$INSTALL" >&6; }
6903 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6904 # It thinks the first close brace ends the variable substitution.
6905 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6910 # See if cmp has --ignore-initial.
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmp's capabilities" >&5
6912 $as_echo_n "checking for cmp's capabilities... " >&6; }
6913 if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
6914 $as_echo_n "(cached) " >&6
6915 else
6916 echo abfoo >t1
6917 echo cdfoo >t2
6918 gcc_cv_prog_cmp_skip=slowcompare
6919 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
6920 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6922 else
6923 gcc_cv_prog_cmp_skip=gnucompare
6926 if test $gcc_cv_prog_cmp_skip = slowcompare ; then
6927 if cmp t1 t2 2 2 > /dev/null 2>&1; then
6928 if cmp t1 t2 1 1 > /dev/null 2>&1; then
6930 else
6931 gcc_cv_prog_cmp_skip=fastcompare
6935 rm t1 t2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
6939 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
6940 make_compare_target=$gcc_cv_prog_cmp_skip
6944 # See if we have the mktemp command.
6945 # Extract the first word of "mktemp", so it can be a program name with args.
6946 set dummy mktemp; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if test "${ac_cv_prog_have_mktemp_command+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6951 else
6952 if test -n "$have_mktemp_command"; then
6953 ac_cv_prog_have_mktemp_command="$have_mktemp_command" # Let the user override the test.
6954 else
6955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6956 for as_dir in $PATH
6958 IFS=$as_save_IFS
6959 test -z "$as_dir" && as_dir=.
6960 for ac_exec_ext in '' $ac_executable_extensions; do
6961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6962 ac_cv_prog_have_mktemp_command="yes"
6963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6964 break 2
6966 done
6967 done
6968 IFS=$as_save_IFS
6970 test -z "$ac_cv_prog_have_mktemp_command" && ac_cv_prog_have_mktemp_command="no"
6973 have_mktemp_command=$ac_cv_prog_have_mktemp_command
6974 if test -n "$have_mktemp_command"; then
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_mktemp_command" >&5
6976 $as_echo "$have_mktemp_command" >&6; }
6977 else
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6979 $as_echo "no" >&6; }
6984 # See if makeinfo has been installed and is modern enough
6985 # that we can use it.
6987 # Extract the first word of "makeinfo", so it can be a program name with args.
6988 set dummy makeinfo; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 if test -n "$MAKEINFO"; then
6995 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_MAKEINFO="makeinfo"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7008 done
7009 done
7010 IFS=$as_save_IFS
7014 MAKEINFO=$ac_cv_prog_MAKEINFO
7015 if test -n "$MAKEINFO"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7017 $as_echo "$MAKEINFO" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7024 if test -n "$MAKEINFO"; then
7025 # Found it, now check the version.
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
7027 $as_echo_n "checking for modern makeinfo... " >&6; }
7028 if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
7032 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
7034 case $ac_prog_version in
7035 '') gcc_cv_prog_makeinfo_modern=no;;
7036 4.[7-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
7037 *) gcc_cv_prog_makeinfo_modern=no;;
7038 esac
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
7042 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
7043 else
7044 gcc_cv_prog_makeinfo_modern=no
7046 if test $gcc_cv_prog_makeinfo_modern = no; then
7047 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
7050 if test $gcc_cv_prog_makeinfo_modern = no; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7052 *** Makeinfo is missing or too old.
7053 *** Info documentation will not be built." >&5
7054 $as_echo "$as_me: WARNING:
7055 *** Makeinfo is missing or too old.
7056 *** Info documentation will not be built." >&2;}
7057 BUILD_INFO=
7058 else
7059 BUILD_INFO=info
7063 # Is pod2man recent enough to regenerate manpages?
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent Pod::Man" >&5
7065 $as_echo_n "checking for recent Pod::Man... " >&6; }
7066 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7068 $as_echo "yes" >&6; }
7069 GENERATED_MANPAGES=generated-manpages
7070 else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7073 GENERATED_MANPAGES=
7077 MISSING="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing"
7079 # How about lex?
7080 for ac_prog in flex
7082 # Extract the first word of "$ac_prog", so it can be a program name with args.
7083 set dummy $ac_prog; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if test "${ac_cv_prog_FLEX+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 if test -n "$FLEX"; then
7090 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7095 IFS=$as_save_IFS
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_prog_FLEX="$ac_prog"
7100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 break 2
7103 done
7104 done
7105 IFS=$as_save_IFS
7109 FLEX=$ac_cv_prog_FLEX
7110 if test -n "$FLEX"; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7112 $as_echo "$FLEX" >&6; }
7113 else
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7119 test -n "$FLEX" && break
7120 done
7121 test -n "$FLEX" || FLEX="$MISSING flex"
7124 # Bison?
7125 for ac_prog in bison
7127 # Extract the first word of "$ac_prog", so it can be a program name with args.
7128 set dummy $ac_prog; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if test "${ac_cv_prog_BISON+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7133 else
7134 if test -n "$BISON"; then
7135 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7140 IFS=$as_save_IFS
7141 test -z "$as_dir" && as_dir=.
7142 for ac_exec_ext in '' $ac_executable_extensions; do
7143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144 ac_cv_prog_BISON="$ac_prog"
7145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146 break 2
7148 done
7149 done
7150 IFS=$as_save_IFS
7154 BISON=$ac_cv_prog_BISON
7155 if test -n "$BISON"; then
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7157 $as_echo "$BISON" >&6; }
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7164 test -n "$BISON" && break
7165 done
7166 test -n "$BISON" || BISON="$MISSING bison"
7169 # Binutils are not build modules, unlike bison/flex/makeinfo. So we
7170 # check for build == host before using them.
7172 # NM
7173 if test x${build} = x${host} && test -f $srcdir/../binutils/nm.c \
7174 && test -d ../binutils ; then
7175 NM='$(objdir)/../binutils/nm-new'
7176 else
7177 # Extract the first word of "nm", so it can be a program name with args.
7178 set dummy nm; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if test "${ac_cv_prog_NM+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test -n "$NM"; then
7185 ac_cv_prog_NM="$NM" # Let the user override the test.
7186 else
7187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188 for as_dir in $PATH
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7194 ac_cv_prog_NM="nm"
7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 break 2
7198 done
7199 done
7200 IFS=$as_save_IFS
7202 test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing nm"
7205 NM=$ac_cv_prog_NM
7206 if test -n "$NM"; then
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
7208 $as_echo "$NM" >&6; }
7209 else
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7211 $as_echo "no" >&6; }
7217 # AR
7218 if test x${build} = x${host} && test -f $srcdir/../binutils/ar.c \
7219 && test -d ../binutils ; then
7220 AR='$(objdir)/../binutils/ar'
7221 else
7222 # Extract the first word of "ar", so it can be a program name with args.
7223 set dummy ar; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_prog_AR+set}" = set; then :
7227 $as_echo_n "(cached) " >&6
7228 else
7229 if test -n "$AR"; then
7230 ac_cv_prog_AR="$AR" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_prog_AR="ar"
7240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7243 done
7244 done
7245 IFS=$as_save_IFS
7247 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing ar"
7250 AR=$ac_cv_prog_AR
7251 if test -n "$AR"; then
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7253 $as_echo "$AR" >&6; }
7254 else
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256 $as_echo "no" >&6; }
7263 # --------------------
7264 # Checks for C headers
7265 # --------------------
7267 # Need to reject headers which give warnings, so that the -Werror bootstrap
7268 # works later. *sigh* This needs to come before all header checks.
7270 ac_c_preproc_warn_flag=yes
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7273 $as_echo_n "checking for ANSI C header files... " >&6; }
7274 if test "${ac_cv_header_stdc+set}" = set; then :
7275 $as_echo_n "(cached) " >&6
7276 else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 #include <stdlib.h>
7280 #include <stdarg.h>
7281 #include <string.h>
7282 #include <float.h>
7285 main ()
7289 return 0;
7291 _ACEOF
7292 if ac_fn_c_try_compile "$LINENO"; then :
7293 ac_cv_header_stdc=yes
7294 else
7295 ac_cv_header_stdc=no
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 if test $ac_cv_header_stdc = yes; then
7300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7303 #include <string.h>
7305 _ACEOF
7306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307 $EGREP "memchr" >/dev/null 2>&1; then :
7309 else
7310 ac_cv_header_stdc=no
7312 rm -f conftest*
7316 if test $ac_cv_header_stdc = yes; then
7317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h. */
7320 #include <stdlib.h>
7322 _ACEOF
7323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7324 $EGREP "free" >/dev/null 2>&1; then :
7326 else
7327 ac_cv_header_stdc=no
7329 rm -f conftest*
7333 if test $ac_cv_header_stdc = yes; then
7334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7335 if test "$cross_compiling" = yes; then :
7337 else
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7340 #include <ctype.h>
7341 #include <stdlib.h>
7342 #if ((' ' & 0x0FF) == 0x020)
7343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7345 #else
7346 # define ISLOWER(c) \
7347 (('a' <= (c) && (c) <= 'i') \
7348 || ('j' <= (c) && (c) <= 'r') \
7349 || ('s' <= (c) && (c) <= 'z'))
7350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7351 #endif
7353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7355 main ()
7357 int i;
7358 for (i = 0; i < 256; i++)
7359 if (XOR (islower (i), ISLOWER (i))
7360 || toupper (i) != TOUPPER (i))
7361 return 2;
7362 return 0;
7364 _ACEOF
7365 if ac_fn_c_try_run "$LINENO"; then :
7367 else
7368 ac_cv_header_stdc=no
7370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7371 conftest.$ac_objext conftest.beam conftest.$ac_ext
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7377 $as_echo "$ac_cv_header_stdc" >&6; }
7378 if test $ac_cv_header_stdc = yes; then
7380 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7385 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7386 if test "${ac_cv_header_time+set}" = set; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 #include <sys/types.h>
7392 #include <sys/time.h>
7393 #include <time.h>
7396 main ()
7398 if ((struct tm *) 0)
7399 return 0;
7401 return 0;
7403 _ACEOF
7404 if ac_fn_c_try_compile "$LINENO"; then :
7405 ac_cv_header_time=yes
7406 else
7407 ac_cv_header_time=no
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7412 $as_echo "$ac_cv_header_time" >&6; }
7413 if test $ac_cv_header_time = yes; then
7415 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
7420 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
7421 if test "${gcc_cv_header_string+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7426 #include <string.h>
7427 #include <strings.h>
7429 main ()
7433 return 0;
7435 _ACEOF
7436 if ac_fn_c_try_compile "$LINENO"; then :
7437 gcc_cv_header_string=yes
7438 else
7439 gcc_cv_header_string=no
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
7444 $as_echo "$gcc_cv_header_string" >&6; }
7445 if test $gcc_cv_header_string = yes; then
7447 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7452 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7453 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7458 #include <sys/types.h>
7459 #include <sys/wait.h>
7460 #ifndef WEXITSTATUS
7461 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7462 #endif
7463 #ifndef WIFEXITED
7464 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7465 #endif
7468 main ()
7470 int s;
7471 wait (&s);
7472 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7474 return 0;
7476 _ACEOF
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 ac_cv_header_sys_wait_h=yes
7479 else
7480 ac_cv_header_sys_wait_h=no
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7485 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7486 if test $ac_cv_header_sys_wait_h = yes; then
7488 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7492 for ac_header in limits.h stddef.h string.h strings.h stdlib.h time.h iconv.h \
7493 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
7494 sys/resource.h sys/param.h sys/times.h sys/stat.h \
7495 direct.h malloc.h langinfo.h ldfcn.h locale.h wchar.h
7496 do :
7497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498 ac_fn_c_check_header_preproc "$LINENO" "$ac_header" "$as_ac_Header"
7499 eval as_val=\$$as_ac_Header
7500 if test "x$as_val" = x""yes; then :
7501 cat >>confdefs.h <<_ACEOF
7502 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7503 _ACEOF
7506 done
7509 # Check for thread headers.
7510 ac_fn_c_check_header_preproc "$LINENO" "thread.h" "ac_cv_header_thread_h"
7511 if test "x$ac_cv_header_thread_h" = x""yes; then :
7512 have_thread_h=yes
7513 else
7514 have_thread_h=
7517 ac_fn_c_check_header_preproc "$LINENO" "pthread.h" "ac_cv_header_pthread_h"
7518 if test "x$ac_cv_header_pthread_h" = x""yes; then :
7519 have_pthread_h=yes
7520 else
7521 have_pthread_h=
7525 # These tests can't be done till we know if we have limits.h.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHAR_BIT" >&5
7527 $as_echo_n "checking for CHAR_BIT... " >&6; }
7528 if test "${gcc_cv_decl_char_bit+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #ifdef HAVE_LIMITS_H
7534 #include <limits.h>
7535 #endif
7536 #ifdef CHAR_BIT
7537 found
7538 #endif
7539 _ACEOF
7540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7541 $EGREP "found" >/dev/null 2>&1; then :
7542 gcc_cv_decl_char_bit=yes
7543 else
7544 gcc_cv_decl_char_bit=no
7546 rm -f conftest*
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_char_bit" >&5
7551 $as_echo "$gcc_cv_decl_char_bit" >&6; }
7552 if test $gcc_cv_decl_char_bit = no; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of bits in a byte" >&5
7554 $as_echo_n "checking number of bits in a byte... " >&6; }
7555 if test "${gcc_cv_c_nbby+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7559 gcc_cv_c_nbby=
7560 while test $i -lt 65; do
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7565 main ()
7567 switch(0) {
7568 case (unsigned char)((unsigned long)1 << $i) == ((unsigned long)1 << $i):
7569 case (unsigned char)((unsigned long)1<<($i-1)) == ((unsigned long)1<<($i-1)):
7572 return 0;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"; then :
7576 gcc_cv_c_nbby=$i; break
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7579 i=`expr $i + 1`
7580 done
7581 test -z "$gcc_cv_c_nbby" && gcc_cv_c_nbby=failed
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_c_nbby" >&5
7585 $as_echo "$gcc_cv_c_nbby" >&6; }
7586 if test $gcc_cv_c_nbby = failed; then
7587 as_fn_error "cannot determine number of bits in a byte" "$LINENO" 5
7588 else
7590 cat >>confdefs.h <<_ACEOF
7591 #define CHAR_BIT $gcc_cv_c_nbby
7592 _ACEOF
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7597 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7598 if test "${ac_cv_c_bigendian+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
7600 else
7601 ac_cv_c_bigendian=unknown
7602 # See if we're dealing with a universal compiler.
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7605 #ifndef __APPLE_CC__
7606 not a universal capable compiler
7607 #endif
7608 typedef int dummy;
7610 _ACEOF
7611 if ac_fn_c_try_compile "$LINENO"; then :
7613 # Check for potential -arch flags. It is not universal unless
7614 # there are at least two -arch flags with different values.
7615 ac_arch=
7616 ac_prev=
7617 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7618 if test -n "$ac_prev"; then
7619 case $ac_word in
7620 i?86 | x86_64 | ppc | ppc64)
7621 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7622 ac_arch=$ac_word
7623 else
7624 ac_cv_c_bigendian=universal
7625 break
7628 esac
7629 ac_prev=
7630 elif test "x$ac_word" = "x-arch"; then
7631 ac_prev=arch
7633 done
7635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 if test $ac_cv_c_bigendian = unknown; then
7637 # See if sys/param.h defines the BYTE_ORDER macro.
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 #include <sys/types.h>
7641 #include <sys/param.h>
7644 main ()
7646 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7647 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7648 && LITTLE_ENDIAN)
7649 bogus endian macros
7650 #endif
7653 return 0;
7655 _ACEOF
7656 if ac_fn_c_try_compile "$LINENO"; then :
7657 # It does; now see whether it defined to BIG_ENDIAN or not.
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7660 #include <sys/types.h>
7661 #include <sys/param.h>
7664 main ()
7666 #if BYTE_ORDER != BIG_ENDIAN
7667 not big endian
7668 #endif
7671 return 0;
7673 _ACEOF
7674 if ac_fn_c_try_compile "$LINENO"; then :
7675 ac_cv_c_bigendian=yes
7676 else
7677 ac_cv_c_bigendian=no
7679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 if test $ac_cv_c_bigendian = unknown; then
7684 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h. */
7687 #include <limits.h>
7690 main ()
7692 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7693 bogus endian macros
7694 #endif
7697 return 0;
7699 _ACEOF
7700 if ac_fn_c_try_compile "$LINENO"; then :
7701 # It does; now see whether it defined to _BIG_ENDIAN or not.
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 #include <limits.h>
7707 main ()
7709 #ifndef _BIG_ENDIAN
7710 not big endian
7711 #endif
7714 return 0;
7716 _ACEOF
7717 if ac_fn_c_try_compile "$LINENO"; then :
7718 ac_cv_c_bigendian=yes
7719 else
7720 ac_cv_c_bigendian=no
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 if test $ac_cv_c_bigendian = unknown; then
7727 # Compile a test program.
7728 if test "$cross_compiling" = yes; then :
7729 # Try to guess by grepping values from an object file.
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732 short int ascii_mm[] =
7733 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7734 short int ascii_ii[] =
7735 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7736 int use_ascii (int i) {
7737 return ascii_mm[i] + ascii_ii[i];
7739 short int ebcdic_ii[] =
7740 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7741 short int ebcdic_mm[] =
7742 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7743 int use_ebcdic (int i) {
7744 return ebcdic_mm[i] + ebcdic_ii[i];
7746 extern int foo;
7749 main ()
7751 return use_ascii (foo) == use_ebcdic (foo);
7753 return 0;
7755 _ACEOF
7756 if ac_fn_c_try_compile "$LINENO"; then :
7757 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7758 ac_cv_c_bigendian=yes
7760 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7761 if test "$ac_cv_c_bigendian" = unknown; then
7762 ac_cv_c_bigendian=no
7763 else
7764 # finding both strings is unlikely to happen, but who knows?
7765 ac_cv_c_bigendian=unknown
7769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 else
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 $ac_includes_default
7775 main ()
7778 /* Are we little or big endian? From Harbison&Steele. */
7779 union
7781 long int l;
7782 char c[sizeof (long int)];
7783 } u;
7784 u.l = 1;
7785 return u.c[sizeof (long int) - 1] == 1;
7788 return 0;
7790 _ACEOF
7791 if ac_fn_c_try_run "$LINENO"; then :
7792 ac_cv_c_bigendian=no
7793 else
7794 ac_cv_c_bigendian=yes
7796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7797 conftest.$ac_objext conftest.beam conftest.$ac_ext
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7803 $as_echo "$ac_cv_c_bigendian" >&6; }
7804 case $ac_cv_c_bigendian in #(
7805 yes)
7806 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7807 ;; #(
7809 ;; #(
7810 universal)
7812 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7814 ;; #(
7816 as_fn_error "unknown endianness
7817 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7818 esac
7821 # --------
7822 # UNSORTED
7823 # --------
7826 # These libraries may be used by collect2.
7827 # We may need a special search path to get them linked.
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for collect2 libraries" >&5
7829 $as_echo_n "checking for collect2 libraries... " >&6; }
7830 if test "${gcc_cv_collect2_libs+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 save_LIBS="$LIBS"
7834 for libs in '' -lld -lmld \
7835 '-L/usr/lib/cmplrs/cc2.11 -lmld' \
7836 '-L/usr/lib/cmplrs/cc3.11 -lmld'
7838 LIBS="$libs"
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7842 /* Override any GCC internal prototype to avoid an error.
7843 Use char because int might match the return type of a GCC
7844 builtin and then its argument prototype would still apply. */
7845 #ifdef __cplusplus
7846 extern "C"
7847 #endif
7848 char ldopen ();
7850 main ()
7852 return ldopen ();
7854 return 0;
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"; then :
7858 gcc_cv_collect2_libs="$libs"; break
7860 rm -f core conftest.err conftest.$ac_objext \
7861 conftest$ac_exeext conftest.$ac_ext
7862 done
7863 LIBS="$save_LIBS"
7864 test -z "$gcc_cv_collect2_libs" && gcc_cv_collect2_libs='none required'
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_collect2_libs" >&5
7867 $as_echo "$gcc_cv_collect2_libs" >&6; }
7868 case $gcc_cv_collect2_libs in
7869 "none required") ;;
7870 *) COLLECT2_LIBS=$gcc_cv_collect2_libs ;;
7871 esac
7874 # When building Ada code on Alpha, we need exc_resume which is usually in
7875 # -lexc. So test for it.
7876 save_LIBS="$LIBS"
7877 LIBS=
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing exc_resume" >&5
7879 $as_echo_n "checking for library containing exc_resume... " >&6; }
7880 if test "${ac_cv_search_exc_resume+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 ac_func_search_save_LIBS=$LIBS
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7887 /* Override any GCC internal prototype to avoid an error.
7888 Use char because int might match the return type of a GCC
7889 builtin and then its argument prototype would still apply. */
7890 #ifdef __cplusplus
7891 extern "C"
7892 #endif
7893 char exc_resume ();
7895 main ()
7897 return exc_resume ();
7899 return 0;
7901 _ACEOF
7902 for ac_lib in '' exc; do
7903 if test -z "$ac_lib"; then
7904 ac_res="none required"
7905 else
7906 ac_res=-l$ac_lib
7907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7909 if ac_fn_c_try_link "$LINENO"; then :
7910 ac_cv_search_exc_resume=$ac_res
7912 rm -f core conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext
7914 if test "${ac_cv_search_exc_resume+set}" = set; then :
7915 break
7917 done
7918 if test "${ac_cv_search_exc_resume+set}" = set; then :
7920 else
7921 ac_cv_search_exc_resume=no
7923 rm conftest.$ac_ext
7924 LIBS=$ac_func_search_save_LIBS
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_exc_resume" >&5
7927 $as_echo "$ac_cv_search_exc_resume" >&6; }
7928 ac_res=$ac_cv_search_exc_resume
7929 if test "$ac_res" != no; then :
7930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7934 GNAT_LIBEXC="$LIBS"
7935 LIBS="$save_LIBS"
7938 # Some systems put ldexp and frexp in libm instead of libc; assume
7939 # they're both in the same place. jcf-dump needs them.
7940 save_LIBS="$LIBS"
7941 LIBS=
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldexp" >&5
7943 $as_echo_n "checking for library containing ldexp... " >&6; }
7944 if test "${ac_cv_search_ldexp+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
7946 else
7947 ac_func_search_save_LIBS=$LIBS
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7951 /* Override any GCC internal prototype to avoid an error.
7952 Use char because int might match the return type of a GCC
7953 builtin and then its argument prototype would still apply. */
7954 #ifdef __cplusplus
7955 extern "C"
7956 #endif
7957 char ldexp ();
7959 main ()
7961 return ldexp ();
7963 return 0;
7965 _ACEOF
7966 for ac_lib in '' m; do
7967 if test -z "$ac_lib"; then
7968 ac_res="none required"
7969 else
7970 ac_res=-l$ac_lib
7971 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7973 if ac_fn_c_try_link "$LINENO"; then :
7974 ac_cv_search_ldexp=$ac_res
7976 rm -f core conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext
7978 if test "${ac_cv_search_ldexp+set}" = set; then :
7979 break
7981 done
7982 if test "${ac_cv_search_ldexp+set}" = set; then :
7984 else
7985 ac_cv_search_ldexp=no
7987 rm conftest.$ac_ext
7988 LIBS=$ac_func_search_save_LIBS
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldexp" >&5
7991 $as_echo "$ac_cv_search_ldexp" >&6; }
7992 ac_res=$ac_cv_search_ldexp
7993 if test "$ac_res" != no; then :
7994 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7998 LDEXP_LIB="$LIBS"
7999 LIBS="$save_LIBS"
8002 # Use <inttypes.h> only if it exists,
8003 # doesn't clash with <sys/types.h>, and declares intmax_t.
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
8005 $as_echo_n "checking for inttypes.h... " >&6; }
8006 if test "${gcc_cv_header_inttypes_h+set}" = set; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h. */
8011 #include <sys/types.h>
8012 #include <inttypes.h>
8014 main ()
8016 intmax_t i = -1;
8018 return 0;
8020 _ACEOF
8021 if ac_fn_c_try_compile "$LINENO"; then :
8022 gcc_cv_header_inttypes_h=yes
8023 else
8024 gcc_cv_header_inttypes_h=no
8026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_inttypes_h" >&5
8030 $as_echo "$gcc_cv_header_inttypes_h" >&6; }
8031 if test $gcc_cv_header_inttypes_h = yes; then
8033 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
8039 for ac_func in times clock kill getrlimit setrlimit atoll atoq \
8040 sysconf strsignal getrusage nl_langinfo \
8041 gettimeofday mbstowcs wcswidth mmap mincore setlocale \
8042 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
8043 do :
8044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8046 eval as_val=\$$as_ac_var
8047 if test "x$as_val" = x""yes; then :
8048 cat >>confdefs.h <<_ACEOF
8049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8050 _ACEOF
8053 done
8056 if test x$ac_cv_func_mbstowcs = xyes; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbstowcs works" >&5
8058 $as_echo_n "checking whether mbstowcs works... " >&6; }
8059 if test "${gcc_cv_func_mbstowcs_works+set}" = set; then :
8060 $as_echo_n "(cached) " >&6
8061 else
8062 if test "$cross_compiling" = yes; then :
8063 gcc_cv_func_mbstowcs_works=yes
8064 else
8065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8066 /* end confdefs.h. */
8067 #include <stdlib.h>
8068 int main()
8070 mbstowcs(0, "", 0);
8071 return 0;
8073 _ACEOF
8074 if ac_fn_c_try_run "$LINENO"; then :
8075 gcc_cv_func_mbstowcs_works=yes
8076 else
8077 gcc_cv_func_mbstowcs_works=no
8079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8080 conftest.$ac_objext conftest.beam conftest.$ac_ext
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mbstowcs_works" >&5
8085 $as_echo "$gcc_cv_func_mbstowcs_works" >&6; }
8086 if test x$gcc_cv_func_mbstowcs_works = xyes; then
8088 $as_echo "#define HAVE_WORKING_MBSTOWCS 1" >>confdefs.h
8093 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
8094 if test "x$ac_cv_type_ssize_t" = x""yes; then :
8096 else
8098 cat >>confdefs.h <<_ACEOF
8099 #define ssize_t int
8100 _ACEOF
8104 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
8105 if test "x$ac_cv_type_caddr_t" = x""yes; then :
8107 else
8109 cat >>confdefs.h <<_ACEOF
8110 #define caddr_t char *
8111 _ACEOF
8117 ac_fn_c_check_header_preproc "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h"
8118 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
8119 gcc_header_sys_mman_h=yes
8120 else
8121 gcc_header_sys_mman_h=no
8124 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8125 if test "x$ac_cv_func_mmap" = x""yes; then :
8126 gcc_func_mmap=yes
8127 else
8128 gcc_func_mmap=no
8131 if test "$gcc_header_sys_mman_h" != yes \
8132 || test "$gcc_func_mmap" != yes; then
8133 gcc_cv_func_mmap_file=no
8134 gcc_cv_func_mmap_dev_zero=no
8135 gcc_cv_func_mmap_anon=no
8136 else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
8138 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
8139 if test "${gcc_cv_func_mmap_file+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 # Add a system to this blacklist if
8143 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
8144 # memory area containing the same data that you'd get if you applied
8145 # read() to the same fd. The only system known to have a problem here
8146 # is VMS, where text files have record structure.
8147 case "$host_os" in
8148 vms* | ultrix*)
8149 gcc_cv_func_mmap_file=no ;;
8151 gcc_cv_func_mmap_file=yes;;
8152 esac
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_file" >&5
8155 $as_echo "$gcc_cv_func_mmap_file" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
8157 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
8158 if test "${gcc_cv_func_mmap_dev_zero+set}" = set; then :
8159 $as_echo_n "(cached) " >&6
8160 else
8161 # Add a system to this blacklist if it has mmap() but /dev/zero
8162 # does not exist, or if mmapping /dev/zero does not give anonymous
8163 # zeroed pages with both the following properties:
8164 # 1. If you map N consecutive pages in with one call, and then
8165 # unmap any subset of those pages, the pages that were not
8166 # explicitly unmapped remain accessible.
8167 # 2. If you map two adjacent blocks of memory and then unmap them
8168 # both at once, they must both go away.
8169 # Systems known to be in this category are Windows (all variants),
8170 # VMS, and Darwin.
8171 case "$host_os" in
8172 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
8173 gcc_cv_func_mmap_dev_zero=no ;;
8175 gcc_cv_func_mmap_dev_zero=yes;;
8176 esac
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_dev_zero" >&5
8179 $as_echo "$gcc_cv_func_mmap_dev_zero" >&6; }
8181 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
8183 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
8184 if test "${gcc_cv_decl_map_anon+set}" = set; then :
8185 $as_echo_n "(cached) " >&6
8186 else
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8189 #include <sys/types.h>
8190 #include <sys/mman.h>
8191 #include <unistd.h>
8193 #ifndef MAP_ANONYMOUS
8194 #define MAP_ANONYMOUS MAP_ANON
8195 #endif
8198 main ()
8200 int n = MAP_ANONYMOUS;
8202 return 0;
8204 _ACEOF
8205 if ac_fn_c_try_compile "$LINENO"; then :
8206 gcc_cv_decl_map_anon=yes
8207 else
8208 gcc_cv_decl_map_anon=no
8210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_decl_map_anon" >&5
8213 $as_echo "$gcc_cv_decl_map_anon" >&6; }
8215 if test $gcc_cv_decl_map_anon = no; then
8216 gcc_cv_func_mmap_anon=no
8217 else
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
8219 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
8220 if test "${gcc_cv_func_mmap_anon+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8222 else
8223 # Add a system to this blacklist if it has mmap() and MAP_ANON or
8224 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
8225 # doesn't give anonymous zeroed pages with the same properties listed
8226 # above for use of /dev/zero.
8227 # Systems known to be in this category are Windows, VMS, and SCO Unix.
8228 case "$host_os" in
8229 vms* | cygwin* | pe | mingw* | sco* | udk* )
8230 gcc_cv_func_mmap_anon=no ;;
8232 gcc_cv_func_mmap_anon=yes;;
8233 esac
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_func_mmap_anon" >&5
8236 $as_echo "$gcc_cv_func_mmap_anon" >&6; }
8240 if test $gcc_cv_func_mmap_file = yes; then
8242 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
8245 if test $gcc_cv_func_mmap_dev_zero = yes; then
8247 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
8250 if test $gcc_cv_func_mmap_anon = yes; then
8252 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
8257 case "${host}" in
8258 *-*-*vms*)
8259 # Under VMS, vfork works very differently than on Unix. The standard test
8260 # won't work, and it isn't easily adaptable. It makes more sense to
8261 # just force it.
8262 ac_cv_func_vfork_works=yes
8264 esac
8265 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8266 if test "x$ac_cv_type_pid_t" = x""yes; then :
8268 else
8270 cat >>confdefs.h <<_ACEOF
8271 #define pid_t int
8272 _ACEOF
8276 for ac_header in vfork.h
8277 do :
8278 ac_fn_c_check_header_preproc "$LINENO" "vfork.h" "ac_cv_header_vfork_h"
8279 if test "x$ac_cv_header_vfork_h" = x""yes; then :
8280 cat >>confdefs.h <<_ACEOF
8281 #define HAVE_VFORK_H 1
8282 _ACEOF
8285 done
8287 for ac_func in fork vfork
8288 do :
8289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8290 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8291 eval as_val=\$$as_ac_var
8292 if test "x$as_val" = x""yes; then :
8293 cat >>confdefs.h <<_ACEOF
8294 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8295 _ACEOF
8298 done
8300 if test "x$ac_cv_func_fork" = xyes; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
8302 $as_echo_n "checking for working fork... " >&6; }
8303 if test "${ac_cv_func_fork_works+set}" = set; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 if test "$cross_compiling" = yes; then :
8307 ac_cv_func_fork_works=cross
8308 else
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 $ac_includes_default
8313 main ()
8316 /* By Ruediger Kuhlmann. */
8317 return fork () < 0;
8320 return 0;
8322 _ACEOF
8323 if ac_fn_c_try_run "$LINENO"; then :
8324 ac_cv_func_fork_works=yes
8325 else
8326 ac_cv_func_fork_works=no
8328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8329 conftest.$ac_objext conftest.beam conftest.$ac_ext
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
8334 $as_echo "$ac_cv_func_fork_works" >&6; }
8336 else
8337 ac_cv_func_fork_works=$ac_cv_func_fork
8339 if test "x$ac_cv_func_fork_works" = xcross; then
8340 case $host in
8341 *-*-amigaos* | *-*-msdosdjgpp*)
8342 # Override, as these systems have only a dummy fork() stub
8343 ac_cv_func_fork_works=no
8346 ac_cv_func_fork_works=yes
8348 esac
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
8350 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
8352 ac_cv_func_vfork_works=$ac_cv_func_vfork
8353 if test "x$ac_cv_func_vfork" = xyes; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
8355 $as_echo_n "checking for working vfork... " >&6; }
8356 if test "${ac_cv_func_vfork_works+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 if test "$cross_compiling" = yes; then :
8360 ac_cv_func_vfork_works=cross
8361 else
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 /* Thanks to Paul Eggert for this test. */
8365 $ac_includes_default
8366 #include <sys/wait.h>
8367 #ifdef HAVE_VFORK_H
8368 # include <vfork.h>
8369 #endif
8370 /* On some sparc systems, changes by the child to local and incoming
8371 argument registers are propagated back to the parent. The compiler
8372 is told about this with #include <vfork.h>, but some compilers
8373 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
8374 static variable whose address is put into a register that is
8375 clobbered by the vfork. */
8376 static void
8377 #ifdef __cplusplus
8378 sparc_address_test (int arg)
8379 # else
8380 sparc_address_test (arg) int arg;
8381 #endif
8383 static pid_t child;
8384 if (!child) {
8385 child = vfork ();
8386 if (child < 0) {
8387 perror ("vfork");
8388 _exit(2);
8390 if (!child) {
8391 arg = getpid();
8392 write(-1, "", 0);
8393 _exit (arg);
8399 main ()
8401 pid_t parent = getpid ();
8402 pid_t child;
8404 sparc_address_test (0);
8406 child = vfork ();
8408 if (child == 0) {
8409 /* Here is another test for sparc vfork register problems. This
8410 test uses lots of local variables, at least as many local
8411 variables as main has allocated so far including compiler
8412 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
8413 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
8414 reuse the register of parent for one of the local variables,
8415 since it will think that parent can't possibly be used any more
8416 in this routine. Assigning to the local variable will thus
8417 munge parent in the parent process. */
8418 pid_t
8419 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
8420 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
8421 /* Convince the compiler that p..p7 are live; otherwise, it might
8422 use the same hardware register for all 8 local variables. */
8423 if (p != p1 || p != p2 || p != p3 || p != p4
8424 || p != p5 || p != p6 || p != p7)
8425 _exit(1);
8427 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
8428 from child file descriptors. If the child closes a descriptor
8429 before it execs or exits, this munges the parent's descriptor
8430 as well. Test for this by closing stdout in the child. */
8431 _exit(close(fileno(stdout)) != 0);
8432 } else {
8433 int status;
8434 struct stat st;
8436 while (wait(&status) != child)
8438 return (
8439 /* Was there some problem with vforking? */
8440 child < 0
8442 /* Did the child fail? (This shouldn't happen.) */
8443 || status
8445 /* Did the vfork/compiler bug occur? */
8446 || parent != getpid()
8448 /* Did the file descriptor bug occur? */
8449 || fstat(fileno(stdout), &st) != 0
8453 _ACEOF
8454 if ac_fn_c_try_run "$LINENO"; then :
8455 ac_cv_func_vfork_works=yes
8456 else
8457 ac_cv_func_vfork_works=no
8459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8460 conftest.$ac_objext conftest.beam conftest.$ac_ext
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8465 $as_echo "$ac_cv_func_vfork_works" >&6; }
8468 if test "x$ac_cv_func_fork_works" = xcross; then
8469 ac_cv_func_vfork_works=$ac_cv_func_vfork
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8471 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
8474 if test "x$ac_cv_func_vfork_works" = xyes; then
8476 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
8478 else
8480 $as_echo "#define vfork fork" >>confdefs.h
8483 if test "x$ac_cv_func_fork_works" = xyes; then
8485 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
8491 if test "X$prefix" = "XNONE"; then
8492 acl_final_prefix="$ac_default_prefix"
8493 else
8494 acl_final_prefix="$prefix"
8496 if test "X$exec_prefix" = "XNONE"; then
8497 acl_final_exec_prefix='${prefix}'
8498 else
8499 acl_final_exec_prefix="$exec_prefix"
8501 acl_save_prefix="$prefix"
8502 prefix="$acl_final_prefix"
8503 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8504 prefix="$acl_save_prefix"
8507 # Check whether --with-gnu-ld was given.
8508 if test "${with_gnu_ld+set}" = set; then :
8509 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8510 else
8511 with_gnu_ld=no
8514 # Prepare PATH_SEPARATOR.
8515 # The user is always right.
8516 if test "${PATH_SEPARATOR+set}" != set; then
8517 echo "#! /bin/sh" >conf$$.sh
8518 echo "exit 0" >>conf$$.sh
8519 chmod +x conf$$.sh
8520 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8521 PATH_SEPARATOR=';'
8522 else
8523 PATH_SEPARATOR=:
8525 rm -f conf$$.sh
8527 ac_prog=ld
8528 if test "$GCC" = yes; then
8529 # Check if gcc -print-prog-name=ld gives a path.
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8531 $as_echo_n "checking for ld used by GCC... " >&6; }
8532 case $host in
8533 *-*-mingw*)
8534 # gcc leaves a trailing carriage return which upsets mingw
8535 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8537 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8538 esac
8539 case $ac_prog in
8540 # Accept absolute paths.
8541 [\\/]* | [A-Za-z]:[\\/]*)
8542 re_direlt='/[^/][^/]*/\.\./'
8543 # Canonicalize the path of ld
8544 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8545 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8546 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8547 done
8548 test -z "$LD" && LD="$ac_prog"
8551 # If it fails, then pretend we aren't using GCC.
8552 ac_prog=ld
8555 # If it is relative, then search for the first ld in PATH.
8556 with_gnu_ld=unknown
8558 esac
8559 elif test "$with_gnu_ld" = yes; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8561 $as_echo_n "checking for GNU ld... " >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8564 $as_echo_n "checking for non-GNU ld... " >&6; }
8566 if test "${acl_cv_path_LD+set}" = set; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 if test -z "$LD"; then
8570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8571 for ac_dir in $PATH; do
8572 test -z "$ac_dir" && ac_dir=.
8573 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8574 acl_cv_path_LD="$ac_dir/$ac_prog"
8575 # Check to see if the program is GNU ld. I'd rather use --version,
8576 # but apparently some GNU ld's only accept -v.
8577 # Break only if it was the GNU/non-GNU ld that we prefer.
8578 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8579 test "$with_gnu_ld" != no && break
8580 else
8581 test "$with_gnu_ld" != yes && break
8584 done
8585 IFS="$ac_save_ifs"
8586 else
8587 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8591 LD="$acl_cv_path_LD"
8592 if test -n "$LD"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8594 $as_echo "$LD" >&6; }
8595 else
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8599 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8601 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8602 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8606 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8607 acl_cv_prog_gnu_ld=yes
8608 else
8609 acl_cv_prog_gnu_ld=no
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8613 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8614 with_gnu_ld=$acl_cv_prog_gnu_ld
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8619 $as_echo_n "checking for shared library run path origin... " >&6; }
8620 if test "${acl_cv_rpath+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8624 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8625 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8626 . ./conftest.sh
8627 rm -f ./conftest.sh
8628 acl_cv_rpath=done
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8632 $as_echo "$acl_cv_rpath" >&6; }
8633 wl="$acl_cv_wl"
8634 libext="$acl_cv_libext"
8635 shlibext="$acl_cv_shlibext"
8636 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8637 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8638 hardcode_direct="$acl_cv_hardcode_direct"
8639 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8640 # Check whether --enable-rpath was given.
8641 if test "${enable_rpath+set}" = set; then :
8642 enableval=$enable_rpath; :
8643 else
8644 enable_rpath=yes
8654 use_additional=yes
8656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8661 eval additional_includedir=\"$includedir\"
8662 eval additional_libdir=\"$libdir\"
8664 exec_prefix="$acl_save_exec_prefix"
8665 prefix="$acl_save_prefix"
8668 # Check whether --with-libiconv-prefix was given.
8669 if test "${with_libiconv_prefix+set}" = set; then :
8670 withval=$with_libiconv_prefix;
8671 if test "X$withval" = "Xno"; then
8672 use_additional=no
8673 else
8674 if test "X$withval" = "X"; then
8676 acl_save_prefix="$prefix"
8677 prefix="$acl_final_prefix"
8678 acl_save_exec_prefix="$exec_prefix"
8679 exec_prefix="$acl_final_exec_prefix"
8681 eval additional_includedir=\"$includedir\"
8682 eval additional_libdir=\"$libdir\"
8684 exec_prefix="$acl_save_exec_prefix"
8685 prefix="$acl_save_prefix"
8687 else
8688 additional_includedir="$withval/include"
8689 additional_libdir="$withval/lib"
8695 LIBICONV=
8696 LTLIBICONV=
8697 INCICONV=
8698 rpathdirs=
8699 ltrpathdirs=
8700 names_already_handled=
8701 names_next_round='iconv '
8702 while test -n "$names_next_round"; do
8703 names_this_round="$names_next_round"
8704 names_next_round=
8705 for name in $names_this_round; do
8706 already_handled=
8707 for n in $names_already_handled; do
8708 if test "$n" = "$name"; then
8709 already_handled=yes
8710 break
8712 done
8713 if test -z "$already_handled"; then
8714 names_already_handled="$names_already_handled $name"
8715 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8716 eval value=\"\$HAVE_LIB$uppername\"
8717 if test -n "$value"; then
8718 if test "$value" = yes; then
8719 eval value=\"\$LIB$uppername\"
8720 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8721 eval value=\"\$LTLIB$uppername\"
8722 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8723 else
8726 else
8727 found_dir=
8728 found_la=
8729 found_so=
8730 found_a=
8731 if test $use_additional = yes; then
8732 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8733 found_dir="$additional_libdir"
8734 found_so="$additional_libdir/lib$name.$shlibext"
8735 if test -f "$additional_libdir/lib$name.la"; then
8736 found_la="$additional_libdir/lib$name.la"
8738 else
8739 if test -f "$additional_libdir/lib$name.$libext"; then
8740 found_dir="$additional_libdir"
8741 found_a="$additional_libdir/lib$name.$libext"
8742 if test -f "$additional_libdir/lib$name.la"; then
8743 found_la="$additional_libdir/lib$name.la"
8748 if test "X$found_dir" = "X"; then
8749 for x in $LDFLAGS $LTLIBICONV; do
8751 acl_save_prefix="$prefix"
8752 prefix="$acl_final_prefix"
8753 acl_save_exec_prefix="$exec_prefix"
8754 exec_prefix="$acl_final_exec_prefix"
8755 eval x=\"$x\"
8756 exec_prefix="$acl_save_exec_prefix"
8757 prefix="$acl_save_prefix"
8759 case "$x" in
8760 -L*)
8761 dir=`echo "X$x" | sed -e 's/^X-L//'`
8762 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8763 found_dir="$dir"
8764 found_so="$dir/lib$name.$shlibext"
8765 if test -f "$dir/lib$name.la"; then
8766 found_la="$dir/lib$name.la"
8768 else
8769 if test -f "$dir/lib$name.$libext"; then
8770 found_dir="$dir"
8771 found_a="$dir/lib$name.$libext"
8772 if test -f "$dir/lib$name.la"; then
8773 found_la="$dir/lib$name.la"
8778 esac
8779 if test "X$found_dir" != "X"; then
8780 break
8782 done
8784 if test "X$found_dir" != "X"; then
8785 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8786 if test "X$found_so" != "X"; then
8787 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8789 else
8790 haveit=
8791 for x in $ltrpathdirs; do
8792 if test "X$x" = "X$found_dir"; then
8793 haveit=yes
8794 break
8796 done
8797 if test -z "$haveit"; then
8798 ltrpathdirs="$ltrpathdirs $found_dir"
8800 if test "$hardcode_direct" = yes; then
8801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8802 else
8803 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8804 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8805 haveit=
8806 for x in $rpathdirs; do
8807 if test "X$x" = "X$found_dir"; then
8808 haveit=yes
8809 break
8811 done
8812 if test -z "$haveit"; then
8813 rpathdirs="$rpathdirs $found_dir"
8815 else
8816 haveit=
8817 for x in $LDFLAGS $LIBICONV; do
8819 acl_save_prefix="$prefix"
8820 prefix="$acl_final_prefix"
8821 acl_save_exec_prefix="$exec_prefix"
8822 exec_prefix="$acl_final_exec_prefix"
8823 eval x=\"$x\"
8824 exec_prefix="$acl_save_exec_prefix"
8825 prefix="$acl_save_prefix"
8827 if test "X$x" = "X-L$found_dir"; then
8828 haveit=yes
8829 break
8831 done
8832 if test -z "$haveit"; then
8833 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8835 if test "$hardcode_minus_L" != no; then
8836 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8837 else
8838 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8843 else
8844 if test "X$found_a" != "X"; then
8845 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8846 else
8847 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8850 additional_includedir=
8851 case "$found_dir" in
8852 */lib | */lib/)
8853 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8854 additional_includedir="$basedir/include"
8856 esac
8857 if test "X$additional_includedir" != "X"; then
8858 if test "X$additional_includedir" != "X/usr/include"; then
8859 haveit=
8860 if test "X$additional_includedir" = "X/usr/local/include"; then
8861 if test -n "$GCC"; then
8862 case $host_os in
8863 linux*) haveit=yes;;
8864 esac
8867 if test -z "$haveit"; then
8868 for x in $CPPFLAGS $INCICONV; do
8870 acl_save_prefix="$prefix"
8871 prefix="$acl_final_prefix"
8872 acl_save_exec_prefix="$exec_prefix"
8873 exec_prefix="$acl_final_exec_prefix"
8874 eval x=\"$x\"
8875 exec_prefix="$acl_save_exec_prefix"
8876 prefix="$acl_save_prefix"
8878 if test "X$x" = "X-I$additional_includedir"; then
8879 haveit=yes
8880 break
8882 done
8883 if test -z "$haveit"; then
8884 if test -d "$additional_includedir"; then
8885 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8891 if test -n "$found_la"; then
8892 save_libdir="$libdir"
8893 case "$found_la" in
8894 */* | *\\*) . "$found_la" ;;
8895 *) . "./$found_la" ;;
8896 esac
8897 libdir="$save_libdir"
8898 for dep in $dependency_libs; do
8899 case "$dep" in
8900 -L*)
8901 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8902 if test "X$additional_libdir" != "X/usr/lib"; then
8903 haveit=
8904 if test "X$additional_libdir" = "X/usr/local/lib"; then
8905 if test -n "$GCC"; then
8906 case $host_os in
8907 linux*) haveit=yes;;
8908 esac
8911 if test -z "$haveit"; then
8912 haveit=
8913 for x in $LDFLAGS $LIBICONV; do
8915 acl_save_prefix="$prefix"
8916 prefix="$acl_final_prefix"
8917 acl_save_exec_prefix="$exec_prefix"
8918 exec_prefix="$acl_final_exec_prefix"
8919 eval x=\"$x\"
8920 exec_prefix="$acl_save_exec_prefix"
8921 prefix="$acl_save_prefix"
8923 if test "X$x" = "X-L$additional_libdir"; then
8924 haveit=yes
8925 break
8927 done
8928 if test -z "$haveit"; then
8929 if test -d "$additional_libdir"; then
8930 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8933 haveit=
8934 for x in $LDFLAGS $LTLIBICONV; do
8936 acl_save_prefix="$prefix"
8937 prefix="$acl_final_prefix"
8938 acl_save_exec_prefix="$exec_prefix"
8939 exec_prefix="$acl_final_exec_prefix"
8940 eval x=\"$x\"
8941 exec_prefix="$acl_save_exec_prefix"
8942 prefix="$acl_save_prefix"
8944 if test "X$x" = "X-L$additional_libdir"; then
8945 haveit=yes
8946 break
8948 done
8949 if test -z "$haveit"; then
8950 if test -d "$additional_libdir"; then
8951 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8957 -R*)
8958 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8959 if test "$enable_rpath" != no; then
8960 haveit=
8961 for x in $rpathdirs; do
8962 if test "X$x" = "X$dir"; then
8963 haveit=yes
8964 break
8966 done
8967 if test -z "$haveit"; then
8968 rpathdirs="$rpathdirs $dir"
8970 haveit=
8971 for x in $ltrpathdirs; do
8972 if test "X$x" = "X$dir"; then
8973 haveit=yes
8974 break
8976 done
8977 if test -z "$haveit"; then
8978 ltrpathdirs="$ltrpathdirs $dir"
8982 -l*)
8983 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8985 *.la)
8986 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8989 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8990 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8992 esac
8993 done
8995 else
8996 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8997 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9001 done
9002 done
9003 if test "X$rpathdirs" != "X"; then
9004 if test -n "$hardcode_libdir_separator"; then
9005 alldirs=
9006 for found_dir in $rpathdirs; do
9007 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9008 done
9009 acl_save_libdir="$libdir"
9010 libdir="$alldirs"
9011 eval flag=\"$hardcode_libdir_flag_spec\"
9012 libdir="$acl_save_libdir"
9013 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9014 else
9015 for found_dir in $rpathdirs; do
9016 acl_save_libdir="$libdir"
9017 libdir="$found_dir"
9018 eval flag=\"$hardcode_libdir_flag_spec\"
9019 libdir="$acl_save_libdir"
9020 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9021 done
9024 if test "X$ltrpathdirs" != "X"; then
9025 for found_dir in $ltrpathdirs; do
9026 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9027 done
9036 am_save_CPPFLAGS="$CPPFLAGS"
9038 for element in $INCICONV; do
9039 haveit=
9040 for x in $CPPFLAGS; do
9042 acl_save_prefix="$prefix"
9043 prefix="$acl_final_prefix"
9044 acl_save_exec_prefix="$exec_prefix"
9045 exec_prefix="$acl_final_exec_prefix"
9046 eval x=\"$x\"
9047 exec_prefix="$acl_save_exec_prefix"
9048 prefix="$acl_save_prefix"
9050 if test "X$x" = "X$element"; then
9051 haveit=yes
9052 break
9054 done
9055 if test -z "$haveit"; then
9056 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9058 done
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9062 $as_echo_n "checking for iconv... " >&6; }
9063 if test "${am_cv_func_iconv+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9067 am_cv_func_iconv="no, consider installing GNU libiconv"
9068 am_cv_lib_iconv=no
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 #include <stdlib.h>
9072 #include <iconv.h>
9074 main ()
9076 iconv_t cd = iconv_open("","");
9077 iconv(cd,NULL,NULL,NULL,NULL);
9078 iconv_close(cd);
9080 return 0;
9082 _ACEOF
9083 if ac_fn_c_try_link "$LINENO"; then :
9084 am_cv_func_iconv=yes
9086 rm -f core conftest.err conftest.$ac_objext \
9087 conftest$ac_exeext conftest.$ac_ext
9088 if test "$am_cv_func_iconv" != yes; then
9089 am_save_LIBS="$LIBS"
9090 LIBS="$LIBS $LIBICONV"
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 #include <stdlib.h>
9094 #include <iconv.h>
9096 main ()
9098 iconv_t cd = iconv_open("","");
9099 iconv(cd,NULL,NULL,NULL,NULL);
9100 iconv_close(cd);
9102 return 0;
9104 _ACEOF
9105 if ac_fn_c_try_link "$LINENO"; then :
9106 am_cv_lib_iconv=yes
9107 am_cv_func_iconv=yes
9109 rm -f core conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111 LIBS="$am_save_LIBS"
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9116 $as_echo "$am_cv_func_iconv" >&6; }
9117 if test "$am_cv_func_iconv" = yes; then
9119 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9122 if test "$am_cv_lib_iconv" = yes; then
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9124 $as_echo_n "checking how to link with libiconv... " >&6; }
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9126 $as_echo "$LIBICONV" >&6; }
9127 else
9128 CPPFLAGS="$am_save_CPPFLAGS"
9129 LIBICONV=
9130 LTLIBICONV=
9135 if test "$am_cv_func_iconv" = yes; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9137 $as_echo_n "checking for iconv declaration... " >&6; }
9138 if test "${am_cv_proto_iconv+set}" = set; then :
9139 $as_echo_n "(cached) " >&6
9140 else
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9145 #include <stdlib.h>
9146 #include <iconv.h>
9147 extern
9148 #ifdef __cplusplus
9150 #endif
9151 #if defined(__STDC__) || defined(__cplusplus)
9152 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9153 #else
9154 size_t iconv();
9155 #endif
9158 main ()
9162 return 0;
9164 _ACEOF
9165 if ac_fn_c_try_compile "$LINENO"; then :
9166 am_cv_proto_iconv_arg1=""
9167 else
9168 am_cv_proto_iconv_arg1="const"
9170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 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);"
9174 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9176 }$am_cv_proto_iconv" >&5
9177 $as_echo "${ac_t:-
9178 }$am_cv_proto_iconv" >&6; }
9180 cat >>confdefs.h <<_ACEOF
9181 #define ICONV_CONST $am_cv_proto_iconv_arg1
9182 _ACEOF
9186 # Until we have in-tree GNU iconv:
9187 LIBICONV_DEP=
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9192 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9193 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 #include <locale.h>
9200 main ()
9202 return LC_MESSAGES
9204 return 0;
9206 _ACEOF
9207 if ac_fn_c_try_link "$LINENO"; then :
9208 am_cv_val_LC_MESSAGES=yes
9209 else
9210 am_cv_val_LC_MESSAGES=no
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext conftest.$ac_ext
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9216 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9217 if test $am_cv_val_LC_MESSAGES = yes; then
9219 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9226 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9227 if test "${am_cv_langinfo_codeset+set}" = set; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 #include <langinfo.h>
9234 main ()
9236 char* cs = nl_langinfo(CODESET);
9238 return 0;
9240 _ACEOF
9241 if ac_fn_c_try_link "$LINENO"; then :
9242 am_cv_langinfo_codeset=yes
9243 else
9244 am_cv_langinfo_codeset=no
9246 rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9251 $as_echo "$am_cv_langinfo_codeset" >&6; }
9252 if test $am_cv_langinfo_codeset = yes; then
9254 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9259 # We will need to find libiberty.h and ansidecl.h
9260 saved_CFLAGS="$CFLAGS"
9261 CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include"
9262 for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \
9263 strsignal strstr strverscmp \
9264 errno snprintf vsnprintf vasprintf malloc realloc calloc \
9265 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
9267 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9269 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9270 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9271 $as_echo_n "(cached) " >&6
9272 else
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275 #undef $ac_tr_decl
9276 #define $ac_tr_decl 1
9278 #include "ansidecl.h"
9279 #include "system.h"
9282 main ()
9284 #ifndef $ac_func
9285 char *(*pfn) = (char *(*)) $ac_func ;
9286 #endif
9288 return 0;
9290 _ACEOF
9291 if ac_fn_c_try_compile "$LINENO"; then :
9292 eval "gcc_cv_have_decl_$ac_func=yes"
9293 else
9294 eval "gcc_cv_have_decl_$ac_func=no"
9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9301 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9302 #define $ac_tr_decl 1
9303 _ACEOF
9305 else
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9307 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9308 #define $ac_tr_decl 0
9309 _ACEOF
9313 done
9316 for ac_func in getrlimit setrlimit getrusage
9318 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9320 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9321 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 #undef $ac_tr_decl
9327 #define $ac_tr_decl 1
9329 #include "ansidecl.h"
9330 #include "system.h"
9331 #ifdef HAVE_SYS_RESOURCE_H
9332 #include <sys/resource.h>
9333 #endif
9337 main ()
9339 #ifndef $ac_func
9340 char *(*pfn) = (char *(*)) $ac_func ;
9341 #endif
9343 return 0;
9345 _ACEOF
9346 if ac_fn_c_try_compile "$LINENO"; then :
9347 eval "gcc_cv_have_decl_$ac_func=yes"
9348 else
9349 eval "gcc_cv_have_decl_$ac_func=no"
9351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9356 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9357 #define $ac_tr_decl 1
9358 _ACEOF
9360 else
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9363 #define $ac_tr_decl 0
9364 _ACEOF
9368 done
9371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h. */
9374 #include "ansidecl.h"
9375 #include "system.h"
9376 #ifdef HAVE_SYS_RESOURCE_H
9377 #include <sys/resource.h>
9378 #endif
9381 main ()
9383 rlim_t l = 0;
9385 return 0;
9387 _ACEOF
9388 if ac_fn_c_try_compile "$LINENO"; then :
9390 else
9392 $as_echo "#define rlim_t long" >>confdefs.h
9395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9397 # On AIX 5.2, <ldfcn.h> conflicts with <fcntl.h>, as both define incompatible
9398 # FREAD and FWRITE macros. Fortunately, for GCC's single usage of ldgetname
9399 # in collect2.c, <fcntl.h> isn't visible, but the configure test below needs
9400 # to undef these macros to get the correct value for HAVE_DECL_LDGETNAME.
9401 for ac_func in ldgetname
9403 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9405 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9406 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9407 $as_echo_n "(cached) " >&6
9408 else
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411 #undef $ac_tr_decl
9412 #define $ac_tr_decl 1
9414 #include "ansidecl.h"
9415 #include "system.h"
9416 #ifdef HAVE_LDFCN_H
9417 #undef FREAD
9418 #undef FWRITE
9419 #include <ldfcn.h>
9420 #endif
9424 main ()
9426 #ifndef $ac_func
9427 char *(*pfn) = (char *(*)) $ac_func ;
9428 #endif
9430 return 0;
9432 _ACEOF
9433 if ac_fn_c_try_compile "$LINENO"; then :
9434 eval "gcc_cv_have_decl_$ac_func=yes"
9435 else
9436 eval "gcc_cv_have_decl_$ac_func=no"
9438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9441 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9443 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9444 #define $ac_tr_decl 1
9445 _ACEOF
9447 else
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9449 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9450 #define $ac_tr_decl 0
9451 _ACEOF
9455 done
9458 for ac_func in times
9460 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9462 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9463 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9468 #undef $ac_tr_decl
9469 #define $ac_tr_decl 1
9471 #include "ansidecl.h"
9472 #include "system.h"
9473 #ifdef HAVE_SYS_TIMES_H
9474 #include <sys/times.h>
9475 #endif
9479 main ()
9481 #ifndef $ac_func
9482 char *(*pfn) = (char *(*)) $ac_func ;
9483 #endif
9485 return 0;
9487 _ACEOF
9488 if ac_fn_c_try_compile "$LINENO"; then :
9489 eval "gcc_cv_have_decl_$ac_func=yes"
9490 else
9491 eval "gcc_cv_have_decl_$ac_func=no"
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9498 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9499 #define $ac_tr_decl 1
9500 _ACEOF
9502 else
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9505 #define $ac_tr_decl 0
9506 _ACEOF
9510 done
9513 for ac_func in sigaltstack
9515 ac_tr_decl=`$as_echo "HAVE_DECL_$ac_func" | $as_tr_cpp`
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ac_func is declared" >&5
9517 $as_echo_n "checking whether $ac_func is declared... " >&6; }
9518 if { as_var=gcc_cv_have_decl_$ac_func; eval "test \"\${$as_var+set}\" = set"; }; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 #undef $ac_tr_decl
9524 #define $ac_tr_decl 1
9526 #include "ansidecl.h"
9527 #include "system.h"
9528 #include <signal.h>
9532 main ()
9534 #ifndef $ac_func
9535 char *(*pfn) = (char *(*)) $ac_func ;
9536 #endif
9538 return 0;
9540 _ACEOF
9541 if ac_fn_c_try_compile "$LINENO"; then :
9542 eval "gcc_cv_have_decl_$ac_func=yes"
9543 else
9544 eval "gcc_cv_have_decl_$ac_func=no"
9546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9549 if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9551 $as_echo "yes" >&6; } ; cat >>confdefs.h <<_ACEOF
9552 #define $ac_tr_decl 1
9553 _ACEOF
9555 else
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9557 $as_echo "no" >&6; } ; cat >>confdefs.h <<_ACEOF
9558 #define $ac_tr_decl 0
9559 _ACEOF
9563 done
9566 # More time-related stuff.
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tms" >&5
9568 $as_echo_n "checking for struct tms... " >&6; }
9569 if test "${ac_cv_struct_tms+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
9571 else
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9576 #include "ansidecl.h"
9577 #include "system.h"
9578 #ifdef HAVE_SYS_TIMES_H
9579 #include <sys/times.h>
9580 #endif
9583 main ()
9585 struct tms tms;
9587 return 0;
9589 _ACEOF
9590 if ac_fn_c_try_compile "$LINENO"; then :
9591 ac_cv_struct_tms=yes
9592 else
9593 ac_cv_struct_tms=no
9595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tms" >&5
9598 $as_echo "$ac_cv_struct_tms" >&6; }
9599 if test $ac_cv_struct_tms = yes; then
9601 $as_echo "#define HAVE_STRUCT_TMS 1" >>confdefs.h
9605 # use gcc_cv_* here because this doesn't match the behavior of AC_CHECK_TYPE.
9606 # revisit after autoconf 2.50.
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t" >&5
9608 $as_echo_n "checking for clock_t... " >&6; }
9609 if test "${gcc_cv_type_clock_t+set}" = set; then :
9610 $as_echo_n "(cached) " >&6
9611 else
9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9616 #include "ansidecl.h"
9617 #include "system.h"
9620 main ()
9622 clock_t x;
9624 return 0;
9626 _ACEOF
9627 if ac_fn_c_try_compile "$LINENO"; then :
9628 gcc_cv_type_clock_t=yes
9629 else
9630 gcc_cv_type_clock_t=no
9632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_type_clock_t" >&5
9635 $as_echo "$gcc_cv_type_clock_t" >&6; }
9636 if test $gcc_cv_type_clock_t = yes; then
9638 $as_echo "#define HAVE_CLOCK_T 1" >>confdefs.h
9642 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests.
9643 CFLAGS="$saved_CFLAGS"
9645 # Check whether --enable-initfini-array was given.
9646 if test "${enable_initfini_array+set}" = set; then :
9647 enableval=$enable_initfini_array;
9648 else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
9651 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
9652 if test "${gcc_cv_initfini_array+set}" = set; then :
9653 $as_echo_n "(cached) " >&6
9654 else
9655 if test "$cross_compiling" = yes; then :
9656 gcc_cv_initfini_array=no
9657 else
9658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9659 /* end confdefs.h. */
9661 static int x = -1;
9662 int main (void) { return x; }
9663 int foo (void) { x = 0; }
9664 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
9665 _ACEOF
9666 if ac_fn_c_try_run "$LINENO"; then :
9667 gcc_cv_initfini_array=yes
9668 else
9669 gcc_cv_initfini_array=no
9671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9672 conftest.$ac_objext conftest.beam conftest.$ac_ext
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_initfini_array" >&5
9677 $as_echo "$gcc_cv_initfini_array" >&6; }
9678 enable_initfini_array=$gcc_cv_initfini_array
9682 if test $enable_initfini_array = yes; then
9684 $as_echo "#define HAVE_INITFINI_ARRAY 1" >>confdefs.h
9688 # mkdir takes a single argument on some systems.
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkdir takes one argument" >&5
9690 $as_echo_n "checking if mkdir takes one argument... " >&6; }
9691 if test "${gcc_cv_mkdir_takes_one_arg+set}" = set; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9695 /* end confdefs.h. */
9697 #include <sys/types.h>
9698 #ifdef HAVE_SYS_STAT_H
9699 # include <sys/stat.h>
9700 #endif
9701 #ifdef HAVE_UNISTD_H
9702 # include <unistd.h>
9703 #endif
9704 #ifdef HAVE_DIRECT_H
9705 # include <direct.h>
9706 #endif
9708 main ()
9710 mkdir ("foo", 0);
9712 return 0;
9714 _ACEOF
9715 if ac_fn_c_try_compile "$LINENO"; then :
9716 gcc_cv_mkdir_takes_one_arg=no
9717 else
9718 gcc_cv_mkdir_takes_one_arg=yes
9720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mkdir_takes_one_arg" >&5
9723 $as_echo "$gcc_cv_mkdir_takes_one_arg" >&6; }
9724 if test $gcc_cv_mkdir_takes_one_arg = yes ; then
9726 $as_echo "#define MKDIR_TAKES_ONE_ARG 1" >>confdefs.h
9731 # File extensions
9732 manext='.1'
9733 objext='.o'
9737 # With Setjmp/Longjmp based exception handling.
9738 # Check whether --enable-sjlj-exceptions was given.
9739 if test "${enable_sjlj_exceptions+set}" = set; then :
9740 enableval=$enable_sjlj_exceptions; case $target in
9741 *-*-hpux10*)
9742 if test $enableval != yes; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&5
9744 $as_echo "$as_me: WARNING: dwarf2 exceptions not supported, sjlj exceptions forced" >&2;}
9745 enableval=yes
9748 esac
9749 force_sjlj_exceptions=yes
9750 else
9751 case $target in
9752 *-*-hpux10*)
9753 force_sjlj_exceptions=yes
9754 enableval=yes
9757 force_sjlj_exceptions=no
9759 esac
9762 if test $force_sjlj_exceptions = yes; then
9763 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`
9765 cat >>confdefs.h <<_ACEOF
9766 #define CONFIG_SJLJ_EXCEPTIONS $sjlj
9767 _ACEOF
9771 # For platforms with the unwind ABI which includes an unwind library,
9772 # libunwind, we can choose to use the system libunwind.
9773 # config.gcc also contains tests of with_system_libunwind.
9776 # Check whether --with-system-libunwind was given.
9777 if test "${with_system_libunwind+set}" = set; then :
9778 withval=$with_system_libunwind;
9781 # If system-libunwind was not specifically set, pick a default setting.
9782 if test x$with_system_libunwind = x; then
9783 case ${target} in
9784 ia64-*-hpux*) with_system_libunwind=yes ;;
9785 *) with_system_libunwind=no ;;
9786 esac
9788 # Based on system-libunwind and target, do we have ipinfo?
9789 if test x$with_system_libunwind = xyes; then
9790 case ${target} in
9791 ia64-*-*) have_unwind_getipinfo=no ;;
9792 *) have_unwind_getipinfo=yes ;;
9793 esac
9794 else
9795 # Darwin before version 9 does not have _Unwind_GetIPInfo.
9797 case ${target} in
9798 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
9799 *) have_unwind_getipinfo=yes ;;
9800 esac
9804 if test x$have_unwind_getipinfo = xyes; then
9806 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
9811 # --------------------------------------------------------
9812 # Build, host, and target specific configuration fragments
9813 # --------------------------------------------------------
9815 # Collect build-machine-specific information.
9816 . ${srcdir}/config.build
9818 # Collect host-machine-specific information.
9819 . ${srcdir}/config.host
9821 target_gtfiles=
9823 # Collect target-machine-specific information.
9824 . ${srcdir}/config.gcc
9826 extra_objs="${host_extra_objs} ${extra_objs}"
9827 extra_gcc_objs="${host_extra_gcc_objs} ${extra_gcc_objs}"
9829 # Default the target-machine variables that were not explicitly set.
9830 if test x"$tm_file" = x
9831 then tm_file=$cpu_type/$cpu_type.h; fi
9833 if test x"$extra_headers" = x
9834 then extra_headers=; fi
9836 if test x$md_file = x
9837 then md_file=$cpu_type/$cpu_type.md; fi
9839 if test x$out_file = x
9840 then out_file=$cpu_type/$cpu_type.c; fi
9842 if test x"$tmake_file" = x
9843 then tmake_file=$cpu_type/t-$cpu_type
9846 if test x"$dwarf2" = xyes
9847 then tm_file="$tm_file tm-dwarf2.h"
9850 # Say what files are being used for the output code and MD file.
9851 echo "Using \`$srcdir/config/$out_file' for machine-specific logic."
9852 echo "Using \`$srcdir/config/$md_file' as machine description file."
9854 # If any of the xm_file variables contain nonexistent files, warn
9855 # about them and drop them.
9858 for x in $build_xm_file; do
9859 if test -f $srcdir/config/$x
9860 then bx="$bx $x"
9861 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9862 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9864 done
9865 build_xm_file="$bx"
9868 for x in $host_xm_file; do
9869 if test -f $srcdir/config/$x
9870 then hx="$hx $x"
9871 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9872 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9874 done
9875 host_xm_file="$hx"
9878 for x in $xm_file; do
9879 if test -f $srcdir/config/$x
9880 then tx="$tx $x"
9881 else { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $srcdir/config/$x does not exist." >&5
9882 $as_echo "$as_me: WARNING: $srcdir/config/$x does not exist." >&2;}
9884 done
9885 xm_file="$tx"
9887 count=a
9888 for f in $tm_file; do
9889 count=${count}x
9890 done
9891 if test $count = ax; then
9892 echo "Using \`$srcdir/config/$tm_file' as target machine macro file."
9893 else
9894 echo "Using the following target machine macro files:"
9895 for f in $tm_file; do
9896 echo " $srcdir/config/$f"
9897 done
9900 if test x$need_64bit_hwint = xyes; then
9902 $as_echo "#define NEED_64BIT_HOST_WIDE_INT 1" >>confdefs.h
9906 if test x$use_long_long_for_widest_fast_int = xyes; then
9908 $as_echo "#define USE_LONG_LONG_FOR_WIDEST_FAST_INT 1" >>confdefs.h
9912 count=a
9913 for f in $host_xm_file; do
9914 count=${count}x
9915 done
9916 if test $count = a; then
9918 elif test $count = ax; then
9919 echo "Using \`$srcdir/config/$host_xm_file' as host machine macro file."
9920 else
9921 echo "Using the following host machine macro files:"
9922 for f in $host_xm_file; do
9923 echo " $srcdir/config/$f"
9924 done
9926 echo "Using ${out_host_hook_obj} for host machine hooks."
9928 if test "$host_xm_file" != "$build_xm_file"; then
9929 count=a
9930 for f in $build_xm_file; do
9931 count=${count}x
9932 done
9933 if test $count = a; then
9935 elif test $count = ax; then
9936 echo "Using \`$srcdir/config/$build_xm_file' as build machine macro file."
9937 else
9938 echo "Using the following build machine macro files:"
9939 for f in $build_xm_file; do
9940 echo " $srcdir/config/$f"
9941 done
9945 case ${host} in
9946 powerpc*-*-darwin*)
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mcontext_t fields have underscores" >&5
9948 $as_echo_n "checking whether mcontext_t fields have underscores... " >&6; }
9949 if test "${gcc_cv_mcontext_underscores+set}" = set; then :
9950 $as_echo_n "(cached) " >&6
9951 else
9952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9953 /* end confdefs.h. */
9955 #include <sys/cdefs.h>
9956 #include <sys/signal.h>
9957 #include <ucontext.h>
9958 int main() { mcontext_t m; if (m->ss.srr0) return 0; return 0; }
9960 _ACEOF
9961 if ac_fn_c_try_compile "$LINENO"; then :
9962 gcc_cv_mcontext_underscores=no
9963 else
9964 gcc_cv_mcontext_underscores=yes
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_mcontext_underscores" >&5
9969 $as_echo "$gcc_cv_mcontext_underscores" >&6; }
9970 if test $gcc_cv_mcontext_underscores = yes; then
9972 $as_echo "#define HAS_MCONTEXT_T_UNDERSCORES /**/" >>confdefs.h
9976 esac
9978 # ---------
9979 # Threading
9980 # ---------
9982 # Check if a valid thread package
9983 case ${enable_threads} in
9984 "" | no)
9985 # No threads
9986 target_thread_file='single'
9988 yes)
9989 # default
9990 target_thread_file='single'
9992 aix | dce | gnat | irix | posix | posix95 | rtems | \
9993 single | solaris | vxworks | win32 | mipssde)
9994 target_thread_file=${enable_threads}
9997 echo "${enable_threads} is an unknown thread package" 1>&2
9998 exit 1
10000 esac
10002 if test x${thread_file} = x; then
10003 # No thread file set by target-specific clauses in config.gcc,
10004 # so use file chosen by default logic above
10005 thread_file=${target_thread_file}
10008 # Make gthr-default.h if we have a thread file.
10009 gthread_flags=
10010 if test $thread_file != single; then
10011 echo "#include \"gthr-${thread_file}.h\"" > gthr-default.h-t
10012 if diff gthr-default.h-t gthr-default.h 2>/dev/null; then
10013 rm -f gthr-default.h-t
10014 else
10015 mv -f gthr-default.h-t gthr-default.h
10017 gthread_flags=-DHAVE_GTHR_DEFAULT
10021 # --------
10022 # UNSORTED
10023 # --------
10025 use_cxa_atexit=no
10026 if test x$enable___cxa_atexit = xyes || \
10027 test x$enable___cxa_atexit = x -a x$default_use_cxa_atexit = xyes; then
10028 if test x$host = x$target; then
10029 case $host in
10030 # mingw32 doesn't have __cxa_atexit but uses atexit registration
10031 # keyed to flag_use_cxa_atexit
10032 *-*-mingw32*)
10033 use_cxa_atexit=yes
10036 ac_fn_c_check_func "$LINENO" "__cxa_atexit" "ac_cv_func___cxa_atexit"
10037 if test "x$ac_cv_func___cxa_atexit" = x""yes; then :
10038 use_cxa_atexit=yes
10039 else
10040 echo "__cxa_atexit can't be enabled on this target"
10044 esac
10045 else
10046 # We can't check for __cxa_atexit when building a cross, so assume
10047 # it is available
10048 use_cxa_atexit=yes
10050 if test x$use_cxa_atexit = xyes; then
10052 $as_echo "#define DEFAULT_USE_CXA_ATEXIT 2" >>confdefs.h
10057 # Look for a file containing extra machine modes.
10058 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then
10059 extra_modes_file='$(srcdir)'/config/${extra_modes}
10062 cat >>confdefs.h <<_ACEOF
10063 #define EXTRA_MODES_FILE "config/$extra_modes"
10064 _ACEOF
10068 # Convert extra_options into a form suitable for Makefile use.
10069 extra_opt_files=
10070 for f in $extra_options; do
10071 extra_opt_files="$extra_opt_files \$(srcdir)/config/$f"
10072 done
10075 # auto-host.h is the file containing items generated by autoconf and is
10076 # the first file included by config.h.
10077 # If host=build, it is correct to have bconfig include auto-host.h
10078 # as well. If host!=build, we are in error and need to do more
10079 # work to find out the build config parameters.
10080 if test x$host = x$build
10081 then
10082 build_auto=auto-host.h
10083 else
10084 # We create a subdir, then run autoconf in the subdir.
10085 # To prevent recursion we set host and build for the new
10086 # invocation of configure to the build for this invocation
10087 # of configure.
10088 tempdir=build.$$
10089 rm -rf $tempdir
10090 mkdir $tempdir
10091 cd $tempdir
10092 case ${srcdir} in
10093 /* | A-Za-z:\\/* ) realsrcdir=${srcdir};;
10094 *) realsrcdir=../${srcdir};;
10095 esac
10096 saved_CFLAGS="${CFLAGS}"
10097 CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
10098 LDFLAGS="${LDFLAGS_FOR_BUILD}" \
10099 ${realsrcdir}/configure \
10100 --enable-languages=${enable_languages-all} \
10101 --target=$target_alias --host=$build_alias --build=$build_alias
10102 CFLAGS="${saved_CFLAGS}"
10104 # We just finished tests for the build machine, so rename
10105 # the file auto-build.h in the gcc directory.
10106 mv auto-host.h ../auto-build.h
10107 cd ..
10108 rm -rf $tempdir
10109 build_auto=auto-build.h
10113 tm_file="${tm_file} defaults.h"
10114 tm_p_file="${tm_p_file} tm-preds.h"
10115 host_xm_file="auto-host.h ansidecl.h ${host_xm_file}"
10116 build_xm_file="${build_auto} ansidecl.h ${build_xm_file}"
10117 # We don't want ansidecl.h in target files, write code there in ISO/GNU C.
10118 # put this back in temporarily.
10119 xm_file="auto-host.h ansidecl.h ${xm_file}"
10121 # --------
10122 # UNSORTED
10123 # --------
10125 # Compile in configure arguments.
10126 if test -f configargs.h ; then
10127 # Being re-configured.
10128 gcc_config_arguments=`grep configuration_arguments configargs.h | sed -e 's/.*"\([^"]*\)".*/\1/'`
10129 gcc_config_arguments="$gcc_config_arguments : (reconfigured) $TOPLEVEL_CONFIGURE_ARGUMENTS"
10130 else
10131 gcc_config_arguments="$TOPLEVEL_CONFIGURE_ARGUMENTS"
10134 # Double all backslashes and backslash all quotes to turn
10135 # gcc_config_arguments into a C string.
10136 sed -e 's/\\/\\\\/g; s/"/\\"/g' <<EOF >conftest.out
10137 $gcc_config_arguments
10139 gcc_config_arguments_str=`cat conftest.out`
10140 rm -f conftest.out
10142 cat > configargs.h <<EOF
10143 /* Generated automatically. */
10144 static const char configuration_arguments[] = "$gcc_config_arguments_str";
10145 static const char thread_model[] = "$thread_file";
10147 static const struct {
10148 const char *name, *value;
10149 } configure_default_options[] = $configure_default_options;
10152 gcc_BASEVER=`cat $srcdir/BASE-VER`
10153 gcc_DEVPHASE=`cat $srcdir/DEV-PHASE`
10154 gcc_DATESTAMP=`cat $srcdir/DATESTAMP`
10155 if test -f $srcdir/REVISION ; then
10156 gcc_REVISION=`cat $srcdir/REVISION`
10157 else
10158 gcc_REVISION=""
10160 cat > plugin-version.h <<EOF
10161 #include "configargs.h"
10163 static char basever[] = "$gcc_BASEVER";
10164 static char datestamp[] = "$gcc_DATESTAMP";
10165 static char devphase[] = "$gcc_DEVPHASE";
10166 static char revision[] = "$gcc_REVISION";
10168 /* FIXME plugins: We should make the version information more precise.
10169 One way to do is to add a checksum. */
10171 static struct plugin_gcc_version gcc_version = {basever, datestamp,
10172 devphase, revision,
10173 configuration_arguments};
10176 # Internationalization
10177 # If we haven't got the data from the intl directory,
10178 # assume NLS is disabled.
10179 USE_NLS=no
10180 LIBINTL=
10181 LIBINTL_DEP=
10182 INCINTL=
10183 XGETTEXT=
10184 GMSGFMT=
10185 POSUB=
10187 if test -f ../intl/config.intl; then
10188 . ../intl/config.intl
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10191 $as_echo_n "checking whether NLS is requested... " >&6; }
10192 if test x"$USE_NLS" != xyes; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10194 $as_echo "no" >&6; }
10195 else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10197 $as_echo "yes" >&6; }
10199 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
10203 $as_echo_n "checking for catalogs to be installed... " >&6; }
10204 # Look for .po and .gmo files in the source directory.
10205 CATALOGS=
10206 XLINGUAS=
10207 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
10208 # If there aren't any .gmo files the shell will give us the
10209 # literal string "../path/to/srcdir/po/*.gmo" which has to be
10210 # weeded out.
10211 case "$cat" in *\**)
10212 continue;;
10213 esac
10214 # The quadruple backslash is collapsed to a double backslash
10215 # by the backticks, then collapsed again by the double quotes,
10216 # leaving us with one backslash in the sed expression (right
10217 # before the dot that mustn't act as a wildcard).
10218 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
10219 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
10220 # The user is allowed to set LINGUAS to a list of languages to
10221 # install catalogs for. If it's empty that means "all of them."
10222 if test "x$LINGUAS" = x; then
10223 CATALOGS="$CATALOGS $cat"
10224 XLINGUAS="$XLINGUAS $lang"
10225 else
10226 case "$LINGUAS" in *$lang*)
10227 CATALOGS="$CATALOGS $cat"
10228 XLINGUAS="$XLINGUAS $lang"
10230 esac
10232 done
10233 LINGUAS="$XLINGUAS"
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
10235 $as_echo "$LINGUAS" >&6; }
10238 DATADIRNAME=share
10240 INSTOBJEXT=.mo
10242 GENCAT=gencat
10244 CATOBJEXT=.gmo
10248 # If LIBINTL contains LIBICONV, then clear LIBICONV so we don't get
10249 # -liconv on the link line twice.
10250 case "$LIBINTL" in *$LIBICONV*)
10251 LIBICONV= ;;
10252 esac
10254 # Check whether --enable-secureplt was given.
10255 if test "${enable_secureplt+set}" = set; then :
10256 enableval=$enable_secureplt;
10260 # Check whether --enable-cld was given.
10261 if test "${enable_cld+set}" = set; then :
10262 enableval=$enable_cld;
10263 else
10264 enable_cld=no
10268 # Windows32 Registry support for specifying GCC installation paths.
10269 # Check whether --enable-win32-registry was given.
10270 if test "${enable_win32_registry+set}" = set; then :
10271 enableval=$enable_win32_registry;
10275 case $host_os in
10276 win32 | pe | cygwin* | mingw32* | uwin*)
10277 if test "x$enable_win32_registry" != xno; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing RegOpenKeyExA" >&5
10279 $as_echo_n "checking for library containing RegOpenKeyExA... " >&6; }
10280 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10282 else
10283 ac_func_search_save_LIBS=$LIBS
10284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h. */
10287 /* Override any GCC internal prototype to avoid an error.
10288 Use char because int might match the return type of a GCC
10289 builtin and then its argument prototype would still apply. */
10290 #ifdef __cplusplus
10291 extern "C"
10292 #endif
10293 char RegOpenKeyExA ();
10295 main ()
10297 return RegOpenKeyExA ();
10299 return 0;
10301 _ACEOF
10302 for ac_lib in '' advapi32; do
10303 if test -z "$ac_lib"; then
10304 ac_res="none required"
10305 else
10306 ac_res=-l$ac_lib
10307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10309 if ac_fn_c_try_link "$LINENO"; then :
10310 ac_cv_search_RegOpenKeyExA=$ac_res
10312 rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext
10314 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10315 break
10317 done
10318 if test "${ac_cv_search_RegOpenKeyExA+set}" = set; then :
10320 else
10321 ac_cv_search_RegOpenKeyExA=no
10323 rm conftest.$ac_ext
10324 LIBS=$ac_func_search_save_LIBS
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_RegOpenKeyExA" >&5
10327 $as_echo "$ac_cv_search_RegOpenKeyExA" >&6; }
10328 ac_res=$ac_cv_search_RegOpenKeyExA
10329 if test "$ac_res" != no; then :
10330 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10332 else
10333 enable_win32_registry=no
10338 if test "x$enable_win32_registry" != xno; then
10340 $as_echo "#define ENABLE_WIN32_REGISTRY 1" >>confdefs.h
10343 if test "x$enable_win32_registry" != xyes \
10344 && test "x$enable_win32_registry" != x; then
10346 cat >>confdefs.h <<_ACEOF
10347 #define WIN32_REGISTRY_KEY "$enable_win32_registry"
10348 _ACEOF
10353 esac
10355 # Get an absolute path to the GCC top-level source directory
10356 holddir=`${PWDCMD-pwd}`
10357 cd $srcdir
10358 topdir=`${PWDCMD-pwd}`
10359 cd $holddir
10361 # Conditionalize the makefile for this host machine.
10362 xmake_file=
10363 for f in ${host_xmake_file}
10365 if test -f ${srcdir}/config/$f
10366 then
10367 xmake_file="${xmake_file} \$(srcdir)/config/$f"
10369 done
10371 # Conditionalize the makefile for this target machine.
10372 tmake_file_=
10373 for f in ${tmake_file}
10375 if test -f ${srcdir}/config/$f
10376 then
10377 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
10379 done
10380 tmake_file="${tmake_file_}"
10382 out_object_file=`basename $out_file .c`.o
10384 tm_file_list="options.h"
10385 tm_include_list="options.h"
10386 for f in $tm_file; do
10387 case $f in
10388 ./* )
10389 f=`echo $f | sed 's/^..//'`
10390 tm_file_list="${tm_file_list} $f"
10391 tm_include_list="${tm_include_list} $f"
10393 defaults.h )
10394 tm_file_list="${tm_file_list} \$(srcdir)/$f"
10395 tm_include_list="${tm_include_list} $f"
10398 tm_file_list="${tm_file_list} \$(srcdir)/config/$f"
10399 tm_include_list="${tm_include_list} config/$f"
10401 esac
10402 done
10404 tm_p_file_list=
10405 tm_p_include_list=
10406 for f in $tm_p_file; do
10407 case $f in
10408 tm-preds.h )
10409 tm_p_file_list="${tm_p_file_list} $f"
10410 tm_p_include_list="${tm_p_include_list} $f"
10413 tm_p_file_list="${tm_p_file_list} \$(srcdir)/config/$f"
10414 tm_p_include_list="${tm_p_include_list} config/$f"
10415 esac
10416 done
10418 xm_file_list=
10419 xm_include_list=
10420 for f in $xm_file; do
10421 case $f in
10422 ansidecl.h )
10423 xm_file_list="${xm_file_list} \$(srcdir)/../include/$f"
10424 xm_include_list="${xm_include_list} $f"
10426 auto-host.h )
10427 xm_file_list="${xm_file_list} $f"
10428 xm_include_list="${xm_include_list} $f"
10431 xm_file_list="${xm_file_list} \$(srcdir)/config/$f"
10432 xm_include_list="${xm_include_list} config/$f"
10434 esac
10435 done
10437 host_xm_file_list=
10438 host_xm_include_list=
10439 for f in $host_xm_file; do
10440 case $f in
10441 ansidecl.h )
10442 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/$f"
10443 host_xm_include_list="${host_xm_include_list} $f"
10445 auto-host.h )
10446 host_xm_file_list="${host_xm_file_list} $f"
10447 host_xm_include_list="${host_xm_include_list} $f"
10450 host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f"
10451 host_xm_include_list="${host_xm_include_list} config/$f"
10453 esac
10454 done
10456 build_xm_file_list=
10457 for f in $build_xm_file; do
10458 case $f in
10459 ansidecl.h )
10460 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/$f"
10461 build_xm_include_list="${build_xm_include_list} $f"
10463 auto-build.h | auto-host.h )
10464 build_xm_file_list="${build_xm_file_list} $f"
10465 build_xm_include_list="${build_xm_include_list} $f"
10468 build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f"
10469 build_xm_include_list="${build_xm_include_list} config/$f"
10471 esac
10472 done
10474 # Define macro CROSS_DIRECTORY_STRUCTURE in compilation if this is a
10475 # cross-compiler which does not use the native headers and libraries.
10476 # Also use all.cross instead of all.internal and adjust SYSTEM_HEADER_DIR.
10477 CROSS=
10478 ALL=all.internal
10479 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10481 if test "x$with_build_sysroot" != x; then
10482 build_system_header_dir=$with_build_sysroot'$${sysroot_headers_suffix}$(NATIVE_SYSTEM_HEADER_DIR)'
10483 else
10484 # This value is used, even on a native system, because
10485 # CROSS_SYSTEM_HEADER_DIR is just
10486 # $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR).
10487 build_system_header_dir='$(CROSS_SYSTEM_HEADER_DIR)'
10490 if test x$host != x$target
10491 then
10492 CROSS="-DCROSS_DIRECTORY_STRUCTURE"
10493 ALL=all.cross
10494 SYSTEM_HEADER_DIR=$build_system_header_dir
10495 case "$host","$target" in
10496 # Darwin crosses can use the host system's libraries and headers,
10497 # because of the fat library support. Of course, it must be the
10498 # same version of Darwin on both sides. Allow the user to
10499 # just say --target=foo-darwin without a version number to mean
10500 # "the version on this system".
10501 *-*-darwin*,*-*-darwin*)
10502 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
10503 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
10504 if test $hostos = $targetos -o $targetos = darwin ; then
10505 CROSS=
10506 SYSTEM_HEADER_DIR='$(NATIVE_SYSTEM_HEADER_DIR)'
10507 with_headers=yes
10511 i?86-*-*,x86_64-*-* \
10512 | powerpc*-*-*,powerpc64*-*-*)
10513 CROSS="$CROSS -DNATIVE_CROSS" ;;
10514 esac
10515 elif test "x$TARGET_SYSTEM_ROOT" != x; then
10516 SYSTEM_HEADER_DIR=$build_system_header_dir
10519 # If this is a cross-compiler that does not
10520 # have its own set of headers then define
10521 # inhibit_libc
10523 # If this is using newlib, without having the headers available now,
10524 # then define inhibit_libc in LIBGCC2_CFLAGS.
10525 # This prevents libgcc2 from containing any code which requires libc
10526 # support.
10527 : ${inhibit_libc=false}
10528 if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
10529 test x$with_newlib = xyes ; } &&
10530 { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
10531 inhibit_libc=true
10535 # When building gcc with a cross-compiler, we need to adjust things so
10536 # that the generator programs are still built with the native compiler.
10537 # Also, we cannot run fixincludes.
10539 # These are the normal (build=host) settings:
10540 CC_FOR_BUILD='$(CC)'
10541 BUILD_CFLAGS='$(ALL_CFLAGS)'
10542 BUILD_LDFLAGS='$(LDFLAGS)'
10543 STMP_FIXINC=stmp-fixinc
10545 # And these apply if build != host, or we are generating coverage data
10546 if test x$build != x$host || test "x$coverage_flags" != x
10547 then
10548 BUILD_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD)'
10549 BUILD_LDFLAGS='$(LDFLAGS_FOR_BUILD)'
10552 # Expand extra_headers to include complete path.
10553 # This substitutes for lots of t-* files.
10554 extra_headers_list=
10555 # Prepend $(srcdir)/config/${cpu_type}/ to every entry in extra_headers.
10556 for file in ${extra_headers} ; do
10557 extra_headers_list="${extra_headers_list} \$(srcdir)/config/${cpu_type}/${file}"
10558 done
10560 # If use_gcc_tgmath is set, append ginclude/tgmath.h.
10561 if test x"$use_gcc_tgmath" = xyes
10562 then extra_headers_list="${extra_headers_list} \$(srcdir)/ginclude/tgmath.h"
10565 # Define collect2 in Makefile.
10566 case $host_can_use_collect2 in
10567 no) collect2= ;;
10568 *) collect2='collect2$(exeext)' ;;
10569 esac
10572 # Add a definition of USE_COLLECT2 if system wants one.
10573 case $use_collect2 in
10574 no) use_collect2= ;;
10575 "") ;;
10577 host_xm_defines="${host_xm_defines} USE_COLLECT2"
10578 xm_defines="${xm_defines} USE_COLLECT2"
10579 case $host_can_use_collect2 in
10581 as_fn_error "collect2 is required but cannot be built on this system" "$LINENO" 5
10583 esac
10585 esac
10587 # ---------------------------
10588 # Assembler & linker features
10589 # ---------------------------
10591 # During stage 2, ld is actually gcc/collect-ld, which is a small script to
10592 # discern between when to use prev-ld/ld-new and when to use ld/ld-new.
10593 # However when ld-new is first executed from the build tree, libtool will
10594 # relink it as .libs/lt-ld-new, so that it can give it an RPATH that refers
10595 # to the build tree. While doing this we need to use the previous-stage
10596 # linker, or we have an infinite loop. The presence of a shell script as
10597 # ld/ld-new, and the fact that the script *uses ld itself*, is what confuses
10598 # the gcc/collect-ld script. So we need to know how libtool works, or
10599 # exec-tool will fail.
10602 case `pwd` in
10603 *\ * | *\ *)
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10605 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10606 esac
10610 macro_version='2.2.6'
10611 macro_revision='1.3012'
10625 ltmain="$ac_aux_dir/ltmain.sh"
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
10628 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
10629 if test "${ac_cv_path_SED+set}" = set; then :
10630 $as_echo_n "(cached) " >&6
10631 else
10632 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
10633 for ac_i in 1 2 3 4 5 6 7; do
10634 ac_script="$ac_script$as_nl$ac_script"
10635 done
10636 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
10637 { ac_script=; unset ac_script;}
10638 if test -z "$SED"; then
10639 ac_path_SED_found=false
10640 # Loop through the user's path and test for each of PROGNAME-LIST
10641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642 for as_dir in $PATH
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
10646 for ac_prog in sed gsed; do
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
10649 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
10650 # Check for GNU ac_path_SED and select it if it is found.
10651 # Check for GNU $ac_path_SED
10652 case `"$ac_path_SED" --version 2>&1` in
10653 *GNU*)
10654 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
10656 ac_count=0
10657 $as_echo_n 0123456789 >"conftest.in"
10658 while :
10660 cat "conftest.in" "conftest.in" >"conftest.tmp"
10661 mv "conftest.tmp" "conftest.in"
10662 cp "conftest.in" "conftest.nl"
10663 $as_echo '' >> "conftest.nl"
10664 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
10665 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10666 as_fn_arith $ac_count + 1 && ac_count=$as_val
10667 if test $ac_count -gt ${ac_path_SED_max-0}; then
10668 # Best one so far, save it but keep looking for a better one
10669 ac_cv_path_SED="$ac_path_SED"
10670 ac_path_SED_max=$ac_count
10672 # 10*(2^10) chars as input seems more than enough
10673 test $ac_count -gt 10 && break
10674 done
10675 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10676 esac
10678 $ac_path_SED_found && break 3
10679 done
10680 done
10681 done
10682 IFS=$as_save_IFS
10683 if test -z "$ac_cv_path_SED"; then
10684 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
10686 else
10687 ac_cv_path_SED=$SED
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
10692 $as_echo "$ac_cv_path_SED" >&6; }
10693 SED="$ac_cv_path_SED"
10694 rm -f conftest.sed
10696 test -z "$SED" && SED=sed
10697 Xsed="$SED -e 1s/^X//"
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
10710 $as_echo_n "checking for fgrep... " >&6; }
10711 if test "${ac_cv_path_FGREP+set}" = set; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
10715 then ac_cv_path_FGREP="$GREP -F"
10716 else
10717 if test -z "$FGREP"; then
10718 ac_path_FGREP_found=false
10719 # Loop through the user's path and test for each of PROGNAME-LIST
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
10725 for ac_prog in fgrep; do
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
10728 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
10729 # Check for GNU ac_path_FGREP and select it if it is found.
10730 # Check for GNU $ac_path_FGREP
10731 case `"$ac_path_FGREP" --version 2>&1` in
10732 *GNU*)
10733 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
10735 ac_count=0
10736 $as_echo_n 0123456789 >"conftest.in"
10737 while :
10739 cat "conftest.in" "conftest.in" >"conftest.tmp"
10740 mv "conftest.tmp" "conftest.in"
10741 cp "conftest.in" "conftest.nl"
10742 $as_echo 'FGREP' >> "conftest.nl"
10743 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
10744 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10745 as_fn_arith $ac_count + 1 && ac_count=$as_val
10746 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
10747 # Best one so far, save it but keep looking for a better one
10748 ac_cv_path_FGREP="$ac_path_FGREP"
10749 ac_path_FGREP_max=$ac_count
10751 # 10*(2^10) chars as input seems more than enough
10752 test $ac_count -gt 10 && break
10753 done
10754 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10755 esac
10757 $ac_path_FGREP_found && break 3
10758 done
10759 done
10760 done
10761 IFS=$as_save_IFS
10762 if test -z "$ac_cv_path_FGREP"; then
10763 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10765 else
10766 ac_cv_path_FGREP=$FGREP
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
10772 $as_echo "$ac_cv_path_FGREP" >&6; }
10773 FGREP="$ac_cv_path_FGREP"
10776 test -z "$GREP" && GREP=grep
10796 # Check whether --with-gnu-ld was given.
10797 if test "${with_gnu_ld+set}" = set; then :
10798 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10799 else
10800 with_gnu_ld=no
10803 ac_prog=ld
10804 if test "$GCC" = yes; then
10805 # Check if gcc -print-prog-name=ld gives a path.
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10807 $as_echo_n "checking for ld used by $CC... " >&6; }
10808 case $host in
10809 *-*-mingw*)
10810 # gcc leaves a trailing carriage return which upsets mingw
10811 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10813 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10814 esac
10815 case $ac_prog in
10816 # Accept absolute paths.
10817 [\\/]* | ?:[\\/]*)
10818 re_direlt='/[^/][^/]*/\.\./'
10819 # Canonicalize the pathname of ld
10820 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10821 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10822 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10823 done
10824 test -z "$LD" && LD="$ac_prog"
10827 # If it fails, then pretend we aren't using GCC.
10828 ac_prog=ld
10831 # If it is relative, then search for the first ld in PATH.
10832 with_gnu_ld=unknown
10834 esac
10835 elif test "$with_gnu_ld" = yes; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10837 $as_echo_n "checking for GNU ld... " >&6; }
10838 else
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10840 $as_echo_n "checking for non-GNU ld... " >&6; }
10842 if test "${lt_cv_path_LD+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 if test -z "$LD"; then
10846 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10847 for ac_dir in $PATH; do
10848 IFS="$lt_save_ifs"
10849 test -z "$ac_dir" && ac_dir=.
10850 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10851 lt_cv_path_LD="$ac_dir/$ac_prog"
10852 # Check to see if the program is GNU ld. I'd rather use --version,
10853 # but apparently some variants of GNU ld only accept -v.
10854 # Break only if it was the GNU/non-GNU ld that we prefer.
10855 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10856 *GNU* | *'with BFD'*)
10857 test "$with_gnu_ld" != no && break
10860 test "$with_gnu_ld" != yes && break
10862 esac
10864 done
10865 IFS="$lt_save_ifs"
10866 else
10867 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10871 LD="$lt_cv_path_LD"
10872 if test -n "$LD"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10874 $as_echo "$LD" >&6; }
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10879 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10881 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10882 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10886 case `$LD -v 2>&1 </dev/null` in
10887 *GNU* | *'with BFD'*)
10888 lt_cv_prog_gnu_ld=yes
10891 lt_cv_prog_gnu_ld=no
10893 esac
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10896 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10897 with_gnu_ld=$lt_cv_prog_gnu_ld
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10908 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
10909 if test "${lt_cv_path_NM+set}" = set; then :
10910 $as_echo_n "(cached) " >&6
10911 else
10912 if test -n "$NM"; then
10913 # Let the user override the test.
10914 lt_cv_path_NM="$NM"
10915 else
10916 lt_nm_to_check="${ac_tool_prefix}nm"
10917 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10918 lt_nm_to_check="$lt_nm_to_check nm"
10920 for lt_tmp_nm in $lt_nm_to_check; do
10921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10922 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10923 IFS="$lt_save_ifs"
10924 test -z "$ac_dir" && ac_dir=.
10925 tmp_nm="$ac_dir/$lt_tmp_nm"
10926 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10927 # Check to see if the nm accepts a BSD-compat flag.
10928 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10929 # nm: unknown option "B" ignored
10930 # Tru64's nm complains that /dev/null is an invalid object file
10931 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10932 */dev/null* | *'Invalid file or object type'*)
10933 lt_cv_path_NM="$tmp_nm -B"
10934 break
10937 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10938 */dev/null*)
10939 lt_cv_path_NM="$tmp_nm -p"
10940 break
10943 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10944 continue # so that we can try to find one that supports BSD flags
10946 esac
10948 esac
10950 done
10951 IFS="$lt_save_ifs"
10952 done
10953 : ${lt_cv_path_NM=no}
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10957 $as_echo "$lt_cv_path_NM" >&6; }
10958 if test "$lt_cv_path_NM" != "no"; then
10959 NM="$lt_cv_path_NM"
10960 else
10961 # Didn't find any BSD compatible name lister, look for dumpbin.
10962 if test -n "$ac_tool_prefix"; then
10963 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
10965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968 $as_echo_n "checking for $ac_word... " >&6; }
10969 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10971 else
10972 if test -n "$DUMPBIN"; then
10973 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10974 else
10975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10976 for as_dir in $PATH
10978 IFS=$as_save_IFS
10979 test -z "$as_dir" && as_dir=.
10980 for ac_exec_ext in '' $ac_executable_extensions; do
10981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10982 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 break 2
10986 done
10987 done
10988 IFS=$as_save_IFS
10992 DUMPBIN=$ac_cv_prog_DUMPBIN
10993 if test -n "$DUMPBIN"; then
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10995 $as_echo "$DUMPBIN" >&6; }
10996 else
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998 $as_echo "no" >&6; }
11002 test -n "$DUMPBIN" && break
11003 done
11005 if test -z "$DUMPBIN"; then
11006 ac_ct_DUMPBIN=$DUMPBIN
11007 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11009 # Extract the first word of "$ac_prog", so it can be a program name with args.
11010 set dummy $ac_prog; ac_word=$2
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 $as_echo_n "checking for $ac_word... " >&6; }
11013 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11014 $as_echo_n "(cached) " >&6
11015 else
11016 if test -n "$ac_ct_DUMPBIN"; then
11017 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11018 else
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $PATH
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11026 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11028 break 2
11030 done
11031 done
11032 IFS=$as_save_IFS
11036 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11037 if test -n "$ac_ct_DUMPBIN"; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11039 $as_echo "$ac_ct_DUMPBIN" >&6; }
11040 else
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042 $as_echo "no" >&6; }
11046 test -n "$ac_ct_DUMPBIN" && break
11047 done
11049 if test "x$ac_ct_DUMPBIN" = x; then
11050 DUMPBIN=":"
11051 else
11052 case $cross_compiling:$ac_tool_warned in
11053 yes:)
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11056 ac_tool_warned=yes ;;
11057 esac
11058 DUMPBIN=$ac_ct_DUMPBIN
11063 if test "$DUMPBIN" != ":"; then
11064 NM="$DUMPBIN"
11067 test -z "$NM" && NM=nm
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11075 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11076 if test "${lt_cv_nm_interface+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 lt_cv_nm_interface="BSD nm"
11080 echo "int some_variable = 0;" > conftest.$ac_ext
11081 (eval echo "\"\$as_me:11081: $ac_compile\"" >&5)
11082 (eval "$ac_compile" 2>conftest.err)
11083 cat conftest.err >&5
11084 (eval echo "\"\$as_me:11084: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11085 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11086 cat conftest.err >&5
11087 (eval echo "\"\$as_me:11087: output\"" >&5)
11088 cat conftest.out >&5
11089 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11090 lt_cv_nm_interface="MS dumpbin"
11092 rm -f conftest*
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11095 $as_echo "$lt_cv_nm_interface" >&6; }
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11098 $as_echo_n "checking whether ln -s works... " >&6; }
11099 LN_S=$as_ln_s
11100 if test "$LN_S" = "ln -s"; then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11102 $as_echo "yes" >&6; }
11103 else
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11105 $as_echo "no, using $LN_S" >&6; }
11108 # find the maximum length of command line arguments
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11110 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
11111 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
11113 else
11115 teststring="ABCD"
11117 case $build_os in
11118 msdosdjgpp*)
11119 # On DJGPP, this test can blow up pretty badly due to problems in libc
11120 # (any single argument exceeding 2000 bytes causes a buffer overrun
11121 # during glob expansion). Even if it were fixed, the result of this
11122 # check would be larger than it should be.
11123 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11126 gnu*)
11127 # Under GNU Hurd, this test is not required because there is
11128 # no limit to the length of command line arguments.
11129 # Libtool will interpret -1 as no limit whatsoever
11130 lt_cv_sys_max_cmd_len=-1;
11133 cygwin* | mingw* | cegcc*)
11134 # On Win9x/ME, this test blows up -- it succeeds, but takes
11135 # about 5 minutes as the teststring grows exponentially.
11136 # Worse, since 9x/ME are not pre-emptively multitasking,
11137 # you end up with a "frozen" computer, even though with patience
11138 # the test eventually succeeds (with a max line length of 256k).
11139 # Instead, let's just punt: use the minimum linelength reported by
11140 # all of the supported platforms: 8192 (on NT/2K/XP).
11141 lt_cv_sys_max_cmd_len=8192;
11144 amigaos*)
11145 # On AmigaOS with pdksh, this test takes hours, literally.
11146 # So we just punt and use a minimum line length of 8192.
11147 lt_cv_sys_max_cmd_len=8192;
11150 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
11151 # This has been around since 386BSD, at least. Likely further.
11152 if test -x /sbin/sysctl; then
11153 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11154 elif test -x /usr/sbin/sysctl; then
11155 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11156 else
11157 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11159 # And add a safety zone
11160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11164 interix*)
11165 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11166 lt_cv_sys_max_cmd_len=196608
11169 osf*)
11170 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11171 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11172 # nice to cause kernel panics so lets avoid the loop below.
11173 # First set a reasonable default.
11174 lt_cv_sys_max_cmd_len=16384
11176 if test -x /sbin/sysconfig; then
11177 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11178 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11179 esac
11182 sco3.2v5*)
11183 lt_cv_sys_max_cmd_len=102400
11185 sysv5* | sco5v6* | sysv4.2uw2*)
11186 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11187 if test -n "$kargmax"; then
11188 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11189 else
11190 lt_cv_sys_max_cmd_len=32768
11194 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
11195 if test -n "$lt_cv_sys_max_cmd_len"; then
11196 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11197 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11198 else
11199 # Make teststring a little bigger before we do anything with it.
11200 # a 1K string should be a reasonable start.
11201 for i in 1 2 3 4 5 6 7 8 ; do
11202 teststring=$teststring$teststring
11203 done
11204 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11205 # If test is not a shell built-in, we'll probably end up computing a
11206 # maximum length that is only half of the actual maximum length, but
11207 # we can't tell.
11208 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
11209 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
11210 test $i != 17 # 1/2 MB should be enough
11212 i=`expr $i + 1`
11213 teststring=$teststring$teststring
11214 done
11215 # Only check the string length outside the loop.
11216 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11217 teststring=
11218 # Add a significant safety factor because C++ compilers can tack on
11219 # massive amounts of additional arguments before passing them to the
11220 # linker. It appears as though 1/2 is a usable value.
11221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11224 esac
11228 if test -n $lt_cv_sys_max_cmd_len ; then
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11230 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11231 else
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11233 $as_echo "none" >&6; }
11235 max_cmd_len=$lt_cv_sys_max_cmd_len
11242 : ${CP="cp -f"}
11243 : ${MV="mv -f"}
11244 : ${RM="rm -f"}
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
11247 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
11248 # Try some XSI features
11249 xsi_shell=no
11250 ( _lt_dummy="a/b/c"
11251 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
11252 = c,a/b,, \
11253 && eval 'test $(( 1 + 1 )) -eq 2 \
11254 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
11255 && xsi_shell=yes
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
11257 $as_echo "$xsi_shell" >&6; }
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
11261 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
11262 lt_shell_append=no
11263 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
11264 >/dev/null 2>&1 \
11265 && lt_shell_append=yes
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
11267 $as_echo "$lt_shell_append" >&6; }
11270 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11271 lt_unset=unset
11272 else
11273 lt_unset=false
11280 # test EBCDIC or ASCII
11281 case `echo X|tr X '\101'` in
11282 A) # ASCII based system
11283 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11284 lt_SP2NL='tr \040 \012'
11285 lt_NL2SP='tr \015\012 \040\040'
11287 *) # EBCDIC based system
11288 lt_SP2NL='tr \100 \n'
11289 lt_NL2SP='tr \r\n \100\100'
11291 esac
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11302 $as_echo_n "checking for $LD option to reload object files... " >&6; }
11303 if test "${lt_cv_ld_reload_flag+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 lt_cv_ld_reload_flag='-r'
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11309 $as_echo "$lt_cv_ld_reload_flag" >&6; }
11310 reload_flag=$lt_cv_ld_reload_flag
11311 case $reload_flag in
11312 "" | " "*) ;;
11313 *) reload_flag=" $reload_flag" ;;
11314 esac
11315 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11316 case $host_os in
11317 darwin*)
11318 if test "$GCC" = yes; then
11319 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
11320 else
11321 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11324 esac
11334 if test -n "$ac_tool_prefix"; then
11335 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11336 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 $as_echo_n "checking for $ac_word... " >&6; }
11339 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 if test -n "$OBJDUMP"; then
11343 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11344 else
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346 for as_dir in $PATH
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11352 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11354 break 2
11356 done
11357 done
11358 IFS=$as_save_IFS
11362 OBJDUMP=$ac_cv_prog_OBJDUMP
11363 if test -n "$OBJDUMP"; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11365 $as_echo "$OBJDUMP" >&6; }
11366 else
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11373 if test -z "$ac_cv_prog_OBJDUMP"; then
11374 ac_ct_OBJDUMP=$OBJDUMP
11375 # Extract the first word of "objdump", so it can be a program name with args.
11376 set dummy objdump; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378 $as_echo_n "checking for $ac_word... " >&6; }
11379 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11380 $as_echo_n "(cached) " >&6
11381 else
11382 if test -n "$ac_ct_OBJDUMP"; then
11383 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11384 else
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11388 IFS=$as_save_IFS
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11392 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 break 2
11396 done
11397 done
11398 IFS=$as_save_IFS
11402 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11403 if test -n "$ac_ct_OBJDUMP"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11405 $as_echo "$ac_ct_OBJDUMP" >&6; }
11406 else
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408 $as_echo "no" >&6; }
11411 if test "x$ac_ct_OBJDUMP" = x; then
11412 OBJDUMP="false"
11413 else
11414 case $cross_compiling:$ac_tool_warned in
11415 yes:)
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11418 ac_tool_warned=yes ;;
11419 esac
11420 OBJDUMP=$ac_ct_OBJDUMP
11422 else
11423 OBJDUMP="$ac_cv_prog_OBJDUMP"
11426 test -z "$OBJDUMP" && OBJDUMP=objdump
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11437 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
11438 if test "${lt_cv_deplibs_check_method+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
11440 else
11441 lt_cv_file_magic_cmd='$MAGIC_CMD'
11442 lt_cv_file_magic_test_file=
11443 lt_cv_deplibs_check_method='unknown'
11444 # Need to set the preceding variable on all platforms that support
11445 # interlibrary dependencies.
11446 # 'none' -- dependencies not supported.
11447 # `unknown' -- same as none, but documents that we really don't know.
11448 # 'pass_all' -- all dependencies passed with no checks.
11449 # 'test_compile' -- check by making test program.
11450 # 'file_magic [[regex]]' -- check by looking for files in library path
11451 # which responds to the $file_magic_cmd with a given extended regex.
11452 # If you have `file' or equivalent on your system and you're not sure
11453 # whether `pass_all' will *always* work, you probably want this one.
11455 case $host_os in
11456 aix[4-9]*)
11457 lt_cv_deplibs_check_method=pass_all
11460 beos*)
11461 lt_cv_deplibs_check_method=pass_all
11464 bsdi[45]*)
11465 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11466 lt_cv_file_magic_cmd='/usr/bin/file -L'
11467 lt_cv_file_magic_test_file=/shlib/libc.so
11470 cygwin*)
11471 # func_win32_libid is a shell function defined in ltmain.sh
11472 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11473 lt_cv_file_magic_cmd='func_win32_libid'
11476 mingw* | pw32*)
11477 # Base MSYS/MinGW do not provide the 'file' command needed by
11478 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11479 # unless we find 'file', for example because we are cross-compiling.
11480 if ( file / ) >/dev/null 2>&1; then
11481 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11482 lt_cv_file_magic_cmd='func_win32_libid'
11483 else
11484 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
11485 lt_cv_file_magic_cmd='$OBJDUMP -f'
11489 cegcc)
11490 # use the weaker test based on 'objdump'. See mingw*.
11491 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11492 lt_cv_file_magic_cmd='$OBJDUMP -f'
11495 darwin* | rhapsody*)
11496 lt_cv_deplibs_check_method=pass_all
11499 freebsd* | dragonfly*)
11500 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11501 case $host_cpu in
11502 i*86 )
11503 # Not sure whether the presence of OpenBSD here was a mistake.
11504 # Let's accept both of them until this is cleared up.
11505 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11506 lt_cv_file_magic_cmd=/usr/bin/file
11507 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11509 esac
11510 else
11511 lt_cv_deplibs_check_method=pass_all
11515 gnu*)
11516 lt_cv_deplibs_check_method=pass_all
11519 hpux10.20* | hpux11*)
11520 lt_cv_file_magic_cmd=/usr/bin/file
11521 case $host_cpu in
11522 ia64*)
11523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11524 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11526 hppa*64*)
11527 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]'
11528 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
11532 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11534 esac
11537 interix[3-9]*)
11538 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11539 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11542 irix5* | irix6* | nonstopux*)
11543 case $LD in
11544 *-32|*"-32 ") libmagic=32-bit;;
11545 *-n32|*"-n32 ") libmagic=N32;;
11546 *-64|*"-64 ") libmagic=64-bit;;
11547 *) libmagic=never-match;;
11548 esac
11549 lt_cv_deplibs_check_method=pass_all
11552 # This must be Linux ELF.
11553 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11554 lt_cv_deplibs_check_method=pass_all
11557 netbsd*)
11558 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11560 else
11561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11565 newos6*)
11566 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11567 lt_cv_file_magic_cmd=/usr/bin/file
11568 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11571 *nto* | *qnx*)
11572 lt_cv_deplibs_check_method=pass_all
11575 openbsd*)
11576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11577 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11578 else
11579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11583 osf3* | osf4* | osf5*)
11584 lt_cv_deplibs_check_method=pass_all
11587 rdos*)
11588 lt_cv_deplibs_check_method=pass_all
11591 solaris*)
11592 lt_cv_deplibs_check_method=pass_all
11595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11596 lt_cv_deplibs_check_method=pass_all
11599 sysv4 | sysv4.3*)
11600 case $host_vendor in
11601 motorola)
11602 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]'
11603 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11605 ncr)
11606 lt_cv_deplibs_check_method=pass_all
11608 sequent)
11609 lt_cv_file_magic_cmd='/bin/file'
11610 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11612 sni)
11613 lt_cv_file_magic_cmd='/bin/file'
11614 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11615 lt_cv_file_magic_test_file=/lib/libc.so
11617 siemens)
11618 lt_cv_deplibs_check_method=pass_all
11621 lt_cv_deplibs_check_method=pass_all
11623 esac
11626 tpf*)
11627 lt_cv_deplibs_check_method=pass_all
11629 esac
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11633 $as_echo "$lt_cv_deplibs_check_method" >&6; }
11634 file_magic_cmd=$lt_cv_file_magic_cmd
11635 deplibs_check_method=$lt_cv_deplibs_check_method
11636 test -z "$deplibs_check_method" && deplibs_check_method=unknown
11649 if test -n "$ac_tool_prefix"; then
11650 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11651 set dummy ${ac_tool_prefix}ar; ac_word=$2
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653 $as_echo_n "checking for $ac_word... " >&6; }
11654 if test "${ac_cv_prog_AR+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11656 else
11657 if test -n "$AR"; then
11658 ac_cv_prog_AR="$AR" # Let the user override the test.
11659 else
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667 ac_cv_prog_AR="${ac_tool_prefix}ar"
11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11671 done
11672 done
11673 IFS=$as_save_IFS
11677 AR=$ac_cv_prog_AR
11678 if test -n "$AR"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11680 $as_echo "$AR" >&6; }
11681 else
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11688 if test -z "$ac_cv_prog_AR"; then
11689 ac_ct_AR=$AR
11690 # Extract the first word of "ar", so it can be a program name with args.
11691 set dummy ar; ac_word=$2
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693 $as_echo_n "checking for $ac_word... " >&6; }
11694 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 if test -n "$ac_ct_AR"; then
11698 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11699 else
11700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701 for as_dir in $PATH
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
11706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11707 ac_cv_prog_ac_ct_AR="ar"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 break 2
11711 done
11712 done
11713 IFS=$as_save_IFS
11717 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11718 if test -n "$ac_ct_AR"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11720 $as_echo "$ac_ct_AR" >&6; }
11721 else
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723 $as_echo "no" >&6; }
11726 if test "x$ac_ct_AR" = x; then
11727 AR="false"
11728 else
11729 case $cross_compiling:$ac_tool_warned in
11730 yes:)
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11733 ac_tool_warned=yes ;;
11734 esac
11735 AR=$ac_ct_AR
11737 else
11738 AR="$ac_cv_prog_AR"
11741 test -z "$AR" && AR=ar
11742 test -z "$AR_FLAGS" && AR_FLAGS=cru
11754 if test -n "$ac_tool_prefix"; then
11755 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11756 set dummy ${ac_tool_prefix}strip; ac_word=$2
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758 $as_echo_n "checking for $ac_word... " >&6; }
11759 if test "${ac_cv_prog_STRIP+set}" = set; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 if test -n "$STRIP"; then
11763 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11764 else
11765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766 for as_dir in $PATH
11768 IFS=$as_save_IFS
11769 test -z "$as_dir" && as_dir=.
11770 for ac_exec_ext in '' $ac_executable_extensions; do
11771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11772 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774 break 2
11776 done
11777 done
11778 IFS=$as_save_IFS
11782 STRIP=$ac_cv_prog_STRIP
11783 if test -n "$STRIP"; then
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11785 $as_echo "$STRIP" >&6; }
11786 else
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788 $as_echo "no" >&6; }
11793 if test -z "$ac_cv_prog_STRIP"; then
11794 ac_ct_STRIP=$STRIP
11795 # Extract the first word of "strip", so it can be a program name with args.
11796 set dummy strip; ac_word=$2
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11798 $as_echo_n "checking for $ac_word... " >&6; }
11799 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test -n "$ac_ct_STRIP"; then
11803 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11804 else
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_prog_ac_ct_STRIP="strip"
11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11816 done
11817 done
11818 IFS=$as_save_IFS
11822 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11823 if test -n "$ac_ct_STRIP"; then
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11825 $as_echo "$ac_ct_STRIP" >&6; }
11826 else
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11828 $as_echo "no" >&6; }
11831 if test "x$ac_ct_STRIP" = x; then
11832 STRIP=":"
11833 else
11834 case $cross_compiling:$ac_tool_warned in
11835 yes:)
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11838 ac_tool_warned=yes ;;
11839 esac
11840 STRIP=$ac_ct_STRIP
11842 else
11843 STRIP="$ac_cv_prog_STRIP"
11846 test -z "$STRIP" && STRIP=:
11853 if test -n "$ac_tool_prefix"; then
11854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if test "${ac_cv_prog_RANLIB+set}" = set; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test -n "$RANLIB"; then
11862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11863 else
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11867 IFS=$as_save_IFS
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11873 break 2
11875 done
11876 done
11877 IFS=$as_save_IFS
11881 RANLIB=$ac_cv_prog_RANLIB
11882 if test -n "$RANLIB"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11884 $as_echo "$RANLIB" >&6; }
11885 else
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11892 if test -z "$ac_cv_prog_RANLIB"; then
11893 ac_ct_RANLIB=$RANLIB
11894 # Extract the first word of "ranlib", so it can be a program name with args.
11895 set dummy ranlib; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 if test -n "$ac_ct_RANLIB"; then
11902 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11903 else
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905 for as_dir in $PATH
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11911 ac_cv_prog_ac_ct_RANLIB="ranlib"
11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913 break 2
11915 done
11916 done
11917 IFS=$as_save_IFS
11921 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11922 if test -n "$ac_ct_RANLIB"; then
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11924 $as_echo "$ac_ct_RANLIB" >&6; }
11925 else
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11930 if test "x$ac_ct_RANLIB" = x; then
11931 RANLIB=":"
11932 else
11933 case $cross_compiling:$ac_tool_warned in
11934 yes:)
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11937 ac_tool_warned=yes ;;
11938 esac
11939 RANLIB=$ac_ct_RANLIB
11941 else
11942 RANLIB="$ac_cv_prog_RANLIB"
11945 test -z "$RANLIB" && RANLIB=:
11952 # Determine commands to create old-style static archives.
11953 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11954 old_postinstall_cmds='chmod 644 $oldlib'
11955 old_postuninstall_cmds=
11957 if test -n "$RANLIB"; then
11958 case $host_os in
11959 openbsd*)
11960 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11963 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11965 esac
11966 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
12002 # If no C compiler was specified, use CC.
12003 LTCC=${LTCC-"$CC"}
12005 # If no C compiler flags were specified, use CFLAGS.
12006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12008 # Allow CC to be a program name with arguments.
12009 compiler=$CC
12012 # Check for command to grab the raw symbol name followed by C symbol from nm.
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12014 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
12015 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
12017 else
12019 # These are sane defaults that work on at least a few old systems.
12020 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
12022 # Character class describing NM global symbol codes.
12023 symcode='[BCDEGRST]'
12025 # Regexp to match symbols that can be accessed directly from C.
12026 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12028 # Define system-specific variables.
12029 case $host_os in
12030 aix*)
12031 symcode='[BCDT]'
12033 cygwin* | mingw* | pw32* | cegcc*)
12034 symcode='[ABCDGISTW]'
12036 hpux*)
12037 if test "$host_cpu" = ia64; then
12038 symcode='[ABCDEGRST]'
12041 irix* | nonstopux*)
12042 symcode='[BCDEGRST]'
12044 osf*)
12045 symcode='[BCDEGQRST]'
12047 solaris*)
12048 symcode='[BDRT]'
12050 sco3.2v5*)
12051 symcode='[DT]'
12053 sysv4.2uw2*)
12054 symcode='[DT]'
12056 sysv5* | sco5v6* | unixware* | OpenUNIX*)
12057 symcode='[ABDT]'
12059 sysv4)
12060 symcode='[DFNSTU]'
12062 esac
12064 # If we're using GNU nm, then use its standard symbol codes.
12065 case `$NM -V 2>&1` in
12066 *GNU* | *'with BFD'*)
12067 symcode='[ABCDGIRSTW]' ;;
12068 esac
12070 # Transform an extracted symbol line into a proper C declaration.
12071 # Some systems (esp. on ia64) link data and code symbols differently,
12072 # so use this general approach.
12073 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
12075 # Transform an extracted symbol line into symbol name and symbol address
12076 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
12077 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'"
12079 # Handle CRLF in mingw tool chain
12080 opt_cr=
12081 case $build_os in
12082 mingw*)
12083 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12085 esac
12087 # Try without a prefix underscore, then with it.
12088 for ac_symprfx in "" "_"; do
12090 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12091 symxfrm="\\1 $ac_symprfx\\2 \\2"
12093 # Write the raw and C identifiers.
12094 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12095 # Fake it for dumpbin and say T for any non-static function
12096 # and D for any global variable.
12097 # Also find C++ and __fastcall symbols from MSVC++,
12098 # which start with @ or ?.
12099 lt_cv_sys_global_symbol_pipe="$AWK '"\
12100 " {last_section=section; section=\$ 3};"\
12101 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
12102 " \$ 0!~/External *\|/{next};"\
12103 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12104 " {if(hide[section]) next};"\
12105 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
12106 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12107 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
12108 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12109 " ' prfx=^$ac_symprfx"
12110 else
12111 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12114 # Check to see that the pipe works correctly.
12115 pipe_works=no
12117 rm -f conftest*
12118 cat > conftest.$ac_ext <<_LT_EOF
12119 #ifdef __cplusplus
12120 extern "C" {
12121 #endif
12122 char nm_test_var;
12123 void nm_test_func(void);
12124 void nm_test_func(void){}
12125 #ifdef __cplusplus
12127 #endif
12128 int main(){nm_test_var='a';nm_test_func();return(0);}
12129 _LT_EOF
12131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12132 (eval $ac_compile) 2>&5
12133 ac_status=$?
12134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12135 test $ac_status = 0; }; then
12136 # Now try to grab the symbols.
12137 nlist=conftest.nm
12138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
12139 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
12140 ac_status=$?
12141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12142 test $ac_status = 0; } && test -s "$nlist"; then
12143 # Try sorting and uniquifying the output.
12144 if sort "$nlist" | uniq > "$nlist"T; then
12145 mv -f "$nlist"T "$nlist"
12146 else
12147 rm -f "$nlist"T
12150 # Make sure that we snagged all the symbols we need.
12151 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12152 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12153 cat <<_LT_EOF > conftest.$ac_ext
12154 #ifdef __cplusplus
12155 extern "C" {
12156 #endif
12158 _LT_EOF
12159 # Now generate the symbol file.
12160 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12162 cat <<_LT_EOF >> conftest.$ac_ext
12164 /* The mapping between symbol names and symbols. */
12165 const struct {
12166 const char *name;
12167 void *address;
12169 lt__PROGRAM__LTX_preloaded_symbols[] =
12171 { "@PROGRAM@", (void *) 0 },
12172 _LT_EOF
12173 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12174 cat <<\_LT_EOF >> conftest.$ac_ext
12175 {0, (void *) 0}
12178 /* This works around a problem in FreeBSD linker */
12179 #ifdef FREEBSD_WORKAROUND
12180 static const void *lt_preloaded_setup() {
12181 return lt__PROGRAM__LTX_preloaded_symbols;
12183 #endif
12185 #ifdef __cplusplus
12187 #endif
12188 _LT_EOF
12189 # Now try linking the two files.
12190 mv conftest.$ac_objext conftstm.$ac_objext
12191 lt_save_LIBS="$LIBS"
12192 lt_save_CFLAGS="$CFLAGS"
12193 LIBS="conftstm.$ac_objext"
12194 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12195 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12196 (eval $ac_link) 2>&5
12197 ac_status=$?
12198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12199 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12200 pipe_works=yes
12202 LIBS="$lt_save_LIBS"
12203 CFLAGS="$lt_save_CFLAGS"
12204 else
12205 echo "cannot find nm_test_func in $nlist" >&5
12207 else
12208 echo "cannot find nm_test_var in $nlist" >&5
12210 else
12211 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12213 else
12214 echo "$progname: failed program was:" >&5
12215 cat conftest.$ac_ext >&5
12217 rm -rf conftest* conftst*
12219 # Do not use the global_symbol_pipe unless it works.
12220 if test "$pipe_works" = yes; then
12221 break
12222 else
12223 lt_cv_sys_global_symbol_pipe=
12225 done
12229 if test -z "$lt_cv_sys_global_symbol_pipe"; then
12230 lt_cv_sys_global_symbol_to_cdecl=
12232 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12234 $as_echo "failed" >&6; }
12235 else
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12237 $as_echo "ok" >&6; }
12261 # Check whether --enable-libtool-lock was given.
12262 if test "${enable_libtool_lock+set}" = set; then :
12263 enableval=$enable_libtool_lock;
12266 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12268 # Some flags need to be propagated to the compiler or linker for good
12269 # libtool support.
12270 case $host in
12271 ia64-*-hpux*)
12272 # Find out which ABI we are using.
12273 echo 'int i;' > conftest.$ac_ext
12274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12275 (eval $ac_compile) 2>&5
12276 ac_status=$?
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; }; then
12279 case `/usr/bin/file conftest.$ac_objext` in
12280 *ELF-32*)
12281 HPUX_IA64_MODE="32"
12283 *ELF-64*)
12284 HPUX_IA64_MODE="64"
12286 esac
12288 rm -rf conftest*
12290 *-*-irix6*)
12291 # Find out which ABI we are using.
12292 echo '#line 12292 "configure"' > conftest.$ac_ext
12293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12294 (eval $ac_compile) 2>&5
12295 ac_status=$?
12296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297 test $ac_status = 0; }; then
12298 if test "$lt_cv_prog_gnu_ld" = yes; then
12299 case `/usr/bin/file conftest.$ac_objext` in
12300 *32-bit*)
12301 LD="${LD-ld} -melf32bsmip"
12303 *N32*)
12304 LD="${LD-ld} -melf32bmipn32"
12306 *64-bit*)
12307 LD="${LD-ld} -melf64bmip"
12309 esac
12310 else
12311 case `/usr/bin/file conftest.$ac_objext` in
12312 *32-bit*)
12313 LD="${LD-ld} -32"
12315 *N32*)
12316 LD="${LD-ld} -n32"
12318 *64-bit*)
12319 LD="${LD-ld} -64"
12321 esac
12324 rm -rf conftest*
12327 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12328 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12329 # Find out which ABI we are using.
12330 echo 'int i;' > conftest.$ac_ext
12331 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12332 (eval $ac_compile) 2>&5
12333 ac_status=$?
12334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12335 test $ac_status = 0; }; then
12336 case `/usr/bin/file conftest.o` in
12337 *32-bit*)
12338 case $host in
12339 x86_64-*kfreebsd*-gnu)
12340 LD="${LD-ld} -m elf_i386_fbsd"
12342 x86_64-*linux*)
12343 LD="${LD-ld} -m elf_i386"
12345 ppc64-*linux*|powerpc64-*linux*)
12346 LD="${LD-ld} -m elf32ppclinux"
12348 s390x-*linux*)
12349 LD="${LD-ld} -m elf_s390"
12351 sparc64-*linux*)
12352 LD="${LD-ld} -m elf32_sparc"
12354 esac
12356 *64-bit*)
12357 case $host in
12358 x86_64-*kfreebsd*-gnu)
12359 LD="${LD-ld} -m elf_x86_64_fbsd"
12361 x86_64-*linux*)
12362 LD="${LD-ld} -m elf_x86_64"
12364 ppc*-*linux*|powerpc*-*linux*)
12365 LD="${LD-ld} -m elf64ppc"
12367 s390*-*linux*|s390*-*tpf*)
12368 LD="${LD-ld} -m elf64_s390"
12370 sparc*-*linux*)
12371 LD="${LD-ld} -m elf64_sparc"
12373 esac
12375 esac
12377 rm -rf conftest*
12380 *-*-sco3.2v5*)
12381 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12382 SAVE_CFLAGS="$CFLAGS"
12383 CFLAGS="$CFLAGS -belf"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12385 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
12386 if test "${lt_cv_cc_needs_belf+set}" = set; then :
12387 $as_echo_n "(cached) " >&6
12388 else
12389 ac_ext=c
12390 ac_cpp='$CPP $CPPFLAGS'
12391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12396 /* end confdefs.h. */
12399 main ()
12403 return 0;
12405 _ACEOF
12406 if ac_fn_c_try_link "$LINENO"; then :
12407 lt_cv_cc_needs_belf=yes
12408 else
12409 lt_cv_cc_needs_belf=no
12411 rm -f core conftest.err conftest.$ac_objext \
12412 conftest$ac_exeext conftest.$ac_ext
12413 ac_ext=c
12414 ac_cpp='$CPP $CPPFLAGS'
12415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12421 $as_echo "$lt_cv_cc_needs_belf" >&6; }
12422 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12423 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12424 CFLAGS="$SAVE_CFLAGS"
12427 sparc*-*solaris*)
12428 # Find out which ABI we are using.
12429 echo 'int i;' > conftest.$ac_ext
12430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12431 (eval $ac_compile) 2>&5
12432 ac_status=$?
12433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434 test $ac_status = 0; }; then
12435 case `/usr/bin/file conftest.o` in
12436 *64-bit*)
12437 case $lt_cv_prog_gnu_ld in
12438 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12440 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12441 LD="${LD-ld} -64"
12444 esac
12446 esac
12448 rm -rf conftest*
12450 esac
12452 need_locks="$enable_libtool_lock"
12455 case $host_os in
12456 rhapsody* | darwin*)
12457 if test -n "$ac_tool_prefix"; then
12458 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12459 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12461 $as_echo_n "checking for $ac_word... " >&6; }
12462 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 if test -n "$DSYMUTIL"; then
12466 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12467 else
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12475 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12479 done
12480 done
12481 IFS=$as_save_IFS
12485 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12486 if test -n "$DSYMUTIL"; then
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12488 $as_echo "$DSYMUTIL" >&6; }
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12491 $as_echo "no" >&6; }
12496 if test -z "$ac_cv_prog_DSYMUTIL"; then
12497 ac_ct_DSYMUTIL=$DSYMUTIL
12498 # Extract the first word of "dsymutil", so it can be a program name with args.
12499 set dummy dsymutil; ac_word=$2
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501 $as_echo_n "checking for $ac_word... " >&6; }
12502 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 if test -n "$ac_ct_DSYMUTIL"; then
12506 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12507 else
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12515 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12517 break 2
12519 done
12520 done
12521 IFS=$as_save_IFS
12525 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12526 if test -n "$ac_ct_DSYMUTIL"; then
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12528 $as_echo "$ac_ct_DSYMUTIL" >&6; }
12529 else
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12534 if test "x$ac_ct_DSYMUTIL" = x; then
12535 DSYMUTIL=":"
12536 else
12537 case $cross_compiling:$ac_tool_warned in
12538 yes:)
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12541 ac_tool_warned=yes ;;
12542 esac
12543 DSYMUTIL=$ac_ct_DSYMUTIL
12545 else
12546 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12549 if test -n "$ac_tool_prefix"; then
12550 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12551 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553 $as_echo_n "checking for $ac_word... " >&6; }
12554 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
12556 else
12557 if test -n "$NMEDIT"; then
12558 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12559 else
12560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561 for as_dir in $PATH
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12567 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12571 done
12572 done
12573 IFS=$as_save_IFS
12577 NMEDIT=$ac_cv_prog_NMEDIT
12578 if test -n "$NMEDIT"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12580 $as_echo "$NMEDIT" >&6; }
12581 else
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12583 $as_echo "no" >&6; }
12588 if test -z "$ac_cv_prog_NMEDIT"; then
12589 ac_ct_NMEDIT=$NMEDIT
12590 # Extract the first word of "nmedit", so it can be a program name with args.
12591 set dummy nmedit; ac_word=$2
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593 $as_echo_n "checking for $ac_word... " >&6; }
12594 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
12596 else
12597 if test -n "$ac_ct_NMEDIT"; then
12598 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12599 else
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12607 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12611 done
12612 done
12613 IFS=$as_save_IFS
12617 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12618 if test -n "$ac_ct_NMEDIT"; then
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12620 $as_echo "$ac_ct_NMEDIT" >&6; }
12621 else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623 $as_echo "no" >&6; }
12626 if test "x$ac_ct_NMEDIT" = x; then
12627 NMEDIT=":"
12628 else
12629 case $cross_compiling:$ac_tool_warned in
12630 yes:)
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12633 ac_tool_warned=yes ;;
12634 esac
12635 NMEDIT=$ac_ct_NMEDIT
12637 else
12638 NMEDIT="$ac_cv_prog_NMEDIT"
12641 if test -n "$ac_tool_prefix"; then
12642 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12643 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12645 $as_echo_n "checking for $ac_word... " >&6; }
12646 if test "${ac_cv_prog_LIPO+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649 if test -n "$LIPO"; then
12650 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12651 else
12652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653 for as_dir in $PATH
12655 IFS=$as_save_IFS
12656 test -z "$as_dir" && as_dir=.
12657 for ac_exec_ext in '' $ac_executable_extensions; do
12658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12659 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661 break 2
12663 done
12664 done
12665 IFS=$as_save_IFS
12669 LIPO=$ac_cv_prog_LIPO
12670 if test -n "$LIPO"; then
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12672 $as_echo "$LIPO" >&6; }
12673 else
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675 $as_echo "no" >&6; }
12680 if test -z "$ac_cv_prog_LIPO"; then
12681 ac_ct_LIPO=$LIPO
12682 # Extract the first word of "lipo", so it can be a program name with args.
12683 set dummy lipo; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12685 $as_echo_n "checking for $ac_word... " >&6; }
12686 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
12687 $as_echo_n "(cached) " >&6
12688 else
12689 if test -n "$ac_ct_LIPO"; then
12690 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12691 else
12692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH
12695 IFS=$as_save_IFS
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
12698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12699 ac_cv_prog_ac_ct_LIPO="lipo"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 break 2
12703 done
12704 done
12705 IFS=$as_save_IFS
12709 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12710 if test -n "$ac_ct_LIPO"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12712 $as_echo "$ac_ct_LIPO" >&6; }
12713 else
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12715 $as_echo "no" >&6; }
12718 if test "x$ac_ct_LIPO" = x; then
12719 LIPO=":"
12720 else
12721 case $cross_compiling:$ac_tool_warned in
12722 yes:)
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12725 ac_tool_warned=yes ;;
12726 esac
12727 LIPO=$ac_ct_LIPO
12729 else
12730 LIPO="$ac_cv_prog_LIPO"
12733 if test -n "$ac_tool_prefix"; then
12734 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12735 set dummy ${ac_tool_prefix}otool; ac_word=$2
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12737 $as_echo_n "checking for $ac_word... " >&6; }
12738 if test "${ac_cv_prog_OTOOL+set}" = set; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 if test -n "$OTOOL"; then
12742 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12743 else
12744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12745 for as_dir in $PATH
12747 IFS=$as_save_IFS
12748 test -z "$as_dir" && as_dir=.
12749 for ac_exec_ext in '' $ac_executable_extensions; do
12750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12751 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12753 break 2
12755 done
12756 done
12757 IFS=$as_save_IFS
12761 OTOOL=$ac_cv_prog_OTOOL
12762 if test -n "$OTOOL"; then
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12764 $as_echo "$OTOOL" >&6; }
12765 else
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12772 if test -z "$ac_cv_prog_OTOOL"; then
12773 ac_ct_OTOOL=$OTOOL
12774 # Extract the first word of "otool", so it can be a program name with args.
12775 set dummy otool; ac_word=$2
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12777 $as_echo_n "checking for $ac_word... " >&6; }
12778 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 if test -n "$ac_ct_OTOOL"; then
12782 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12783 else
12784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12787 IFS=$as_save_IFS
12788 test -z "$as_dir" && as_dir=.
12789 for ac_exec_ext in '' $ac_executable_extensions; do
12790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12791 ac_cv_prog_ac_ct_OTOOL="otool"
12792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793 break 2
12795 done
12796 done
12797 IFS=$as_save_IFS
12801 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12802 if test -n "$ac_ct_OTOOL"; then
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12804 $as_echo "$ac_ct_OTOOL" >&6; }
12805 else
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12810 if test "x$ac_ct_OTOOL" = x; then
12811 OTOOL=":"
12812 else
12813 case $cross_compiling:$ac_tool_warned in
12814 yes:)
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12817 ac_tool_warned=yes ;;
12818 esac
12819 OTOOL=$ac_ct_OTOOL
12821 else
12822 OTOOL="$ac_cv_prog_OTOOL"
12825 if test -n "$ac_tool_prefix"; then
12826 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12827 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12829 $as_echo_n "checking for $ac_word... " >&6; }
12830 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
12831 $as_echo_n "(cached) " >&6
12832 else
12833 if test -n "$OTOOL64"; then
12834 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12835 else
12836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12837 for as_dir in $PATH
12839 IFS=$as_save_IFS
12840 test -z "$as_dir" && as_dir=.
12841 for ac_exec_ext in '' $ac_executable_extensions; do
12842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12843 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12845 break 2
12847 done
12848 done
12849 IFS=$as_save_IFS
12853 OTOOL64=$ac_cv_prog_OTOOL64
12854 if test -n "$OTOOL64"; then
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12856 $as_echo "$OTOOL64" >&6; }
12857 else
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12859 $as_echo "no" >&6; }
12864 if test -z "$ac_cv_prog_OTOOL64"; then
12865 ac_ct_OTOOL64=$OTOOL64
12866 # Extract the first word of "otool64", so it can be a program name with args.
12867 set dummy otool64; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
12871 $as_echo_n "(cached) " >&6
12872 else
12873 if test -n "$ac_ct_OTOOL64"; then
12874 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12875 else
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12879 IFS=$as_save_IFS
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12883 ac_cv_prog_ac_ct_OTOOL64="otool64"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12885 break 2
12887 done
12888 done
12889 IFS=$as_save_IFS
12893 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12894 if test -n "$ac_ct_OTOOL64"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12896 $as_echo "$ac_ct_OTOOL64" >&6; }
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899 $as_echo "no" >&6; }
12902 if test "x$ac_ct_OTOOL64" = x; then
12903 OTOOL64=":"
12904 else
12905 case $cross_compiling:$ac_tool_warned in
12906 yes:)
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12909 ac_tool_warned=yes ;;
12910 esac
12911 OTOOL64=$ac_ct_OTOOL64
12913 else
12914 OTOOL64="$ac_cv_prog_OTOOL64"
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12944 $as_echo_n "checking for -single_module linker flag... " >&6; }
12945 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
12946 $as_echo_n "(cached) " >&6
12947 else
12948 lt_cv_apple_cc_single_mod=no
12949 if test -z "${LT_MULTI_MODULE}"; then
12950 # By default we will add the -single_module flag. You can override
12951 # by either setting the environment variable LT_MULTI_MODULE
12952 # non-empty at configure time, or by adding -multi_module to the
12953 # link flags.
12954 rm -rf libconftest.dylib*
12955 echo "int foo(void){return 1;}" > conftest.c
12956 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12957 -dynamiclib -Wl,-single_module conftest.c" >&5
12958 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12959 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12960 _lt_result=$?
12961 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12962 lt_cv_apple_cc_single_mod=yes
12963 else
12964 cat conftest.err >&5
12966 rm -rf libconftest.dylib*
12967 rm -f conftest.*
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12971 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12973 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12974 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
12975 $as_echo_n "(cached) " >&6
12976 else
12977 lt_cv_ld_exported_symbols_list=no
12978 save_LDFLAGS=$LDFLAGS
12979 echo "_main" > conftest.sym
12980 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12985 main ()
12989 return 0;
12991 _ACEOF
12992 if ac_fn_c_try_link "$LINENO"; then :
12993 lt_cv_ld_exported_symbols_list=yes
12994 else
12995 lt_cv_ld_exported_symbols_list=no
12997 rm -f core conftest.err conftest.$ac_objext \
12998 conftest$ac_exeext conftest.$ac_ext
12999 LDFLAGS="$save_LDFLAGS"
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13003 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
13004 case $host_os in
13005 rhapsody* | darwin1.[012])
13006 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13007 darwin1.*)
13008 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13009 darwin*) # darwin 5.x on
13010 # if running on 10.5 or later, the deployment target defaults
13011 # to the OS version, if on x86, and 10.4, the deployment
13012 # target defaults to 10.4. Don't you love it?
13013 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13014 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13015 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13016 10.[012]*)
13017 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13018 10.*)
13019 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13020 esac
13022 esac
13023 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13024 _lt_dar_single_mod='$single_module'
13026 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13027 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13028 else
13029 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13031 if test "$DSYMUTIL" != ":"; then
13032 _lt_dsymutil='~$DSYMUTIL $lib || :'
13033 else
13034 _lt_dsymutil=
13037 esac
13039 for ac_header in dlfcn.h
13040 do :
13041 ac_fn_c_check_header_preproc "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h"
13042 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
13043 cat >>confdefs.h <<_ACEOF
13044 #define HAVE_DLFCN_H 1
13045 _ACEOF
13048 done
13052 ac_ext=cpp
13053 ac_cpp='$CXXCPP $CPPFLAGS'
13054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13057 if test -z "$CXX"; then
13058 if test -n "$CCC"; then
13059 CXX=$CCC
13060 else
13061 if test -n "$ac_tool_prefix"; then
13062 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13067 $as_echo_n "checking for $ac_word... " >&6; }
13068 if test "${ac_cv_prog_CXX+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13070 else
13071 if test -n "$CXX"; then
13072 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13073 else
13074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13075 for as_dir in $PATH
13077 IFS=$as_save_IFS
13078 test -z "$as_dir" && as_dir=.
13079 for ac_exec_ext in '' $ac_executable_extensions; do
13080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13081 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13083 break 2
13085 done
13086 done
13087 IFS=$as_save_IFS
13091 CXX=$ac_cv_prog_CXX
13092 if test -n "$CXX"; then
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13094 $as_echo "$CXX" >&6; }
13095 else
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13097 $as_echo "no" >&6; }
13101 test -n "$CXX" && break
13102 done
13104 if test -z "$CXX"; then
13105 ac_ct_CXX=$CXX
13106 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13108 # Extract the first word of "$ac_prog", so it can be a program name with args.
13109 set dummy $ac_prog; ac_word=$2
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13111 $as_echo_n "checking for $ac_word... " >&6; }
13112 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 if test -n "$ac_ct_CXX"; then
13116 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13117 else
13118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13119 for as_dir in $PATH
13121 IFS=$as_save_IFS
13122 test -z "$as_dir" && as_dir=.
13123 for ac_exec_ext in '' $ac_executable_extensions; do
13124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13125 ac_cv_prog_ac_ct_CXX="$ac_prog"
13126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13127 break 2
13129 done
13130 done
13131 IFS=$as_save_IFS
13135 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13136 if test -n "$ac_ct_CXX"; then
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13138 $as_echo "$ac_ct_CXX" >&6; }
13139 else
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141 $as_echo "no" >&6; }
13145 test -n "$ac_ct_CXX" && break
13146 done
13148 if test "x$ac_ct_CXX" = x; then
13149 CXX="g++"
13150 else
13151 case $cross_compiling:$ac_tool_warned in
13152 yes:)
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13155 ac_tool_warned=yes ;;
13156 esac
13157 CXX=$ac_ct_CXX
13163 # Provide some information about the compiler.
13164 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13165 set X $ac_compile
13166 ac_compiler=$2
13167 for ac_option in --version -v -V -qversion; do
13168 { { ac_try="$ac_compiler $ac_option >&5"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13172 esac
13173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13174 $as_echo "$ac_try_echo"; } >&5
13175 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13176 ac_status=$?
13177 if test -s conftest.err; then
13178 sed '10a\
13179 ... rest of stderr output deleted ...
13180 10q' conftest.err >conftest.er1
13181 cat conftest.er1 >&5
13182 rm -f conftest.er1 conftest.err
13184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13185 test $ac_status = 0; }
13186 done
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13189 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13190 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194 /* end confdefs.h. */
13197 main ()
13199 #ifndef __GNUC__
13200 choke me
13201 #endif
13204 return 0;
13206 _ACEOF
13207 if ac_fn_cxx_try_compile "$LINENO"; then :
13208 ac_compiler_gnu=yes
13209 else
13210 ac_compiler_gnu=no
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13217 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13218 if test $ac_compiler_gnu = yes; then
13219 GXX=yes
13220 else
13221 GXX=
13223 ac_test_CXXFLAGS=${CXXFLAGS+set}
13224 ac_save_CXXFLAGS=$CXXFLAGS
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13226 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13227 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13231 ac_cxx_werror_flag=yes
13232 ac_cv_prog_cxx_g=no
13233 CXXFLAGS="-g"
13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13238 main ()
13242 return 0;
13244 _ACEOF
13245 if ac_fn_cxx_try_compile "$LINENO"; then :
13246 ac_cv_prog_cxx_g=yes
13247 else
13248 CXXFLAGS=""
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13253 main ()
13257 return 0;
13259 _ACEOF
13260 if ac_fn_cxx_try_compile "$LINENO"; then :
13262 else
13263 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13264 CXXFLAGS="-g"
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13269 main ()
13273 return 0;
13275 _ACEOF
13276 if ac_fn_cxx_try_compile "$LINENO"; then :
13277 ac_cv_prog_cxx_g=yes
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13287 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13288 if test "$ac_test_CXXFLAGS" = set; then
13289 CXXFLAGS=$ac_save_CXXFLAGS
13290 elif test $ac_cv_prog_cxx_g = yes; then
13291 if test "$GXX" = yes; then
13292 CXXFLAGS="-g -O2"
13293 else
13294 CXXFLAGS="-g"
13296 else
13297 if test "$GXX" = yes; then
13298 CXXFLAGS="-O2"
13299 else
13300 CXXFLAGS=
13303 ac_ext=c
13304 ac_cpp='$CPP $CPPFLAGS'
13305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13309 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13310 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13311 (test "X$CXX" != "Xg++"))) ; then
13312 ac_ext=cpp
13313 ac_cpp='$CXXCPP $CPPFLAGS'
13314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13318 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13319 if test -z "$CXXCPP"; then
13320 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
13322 else
13323 # Double quotes because CXXCPP needs to be expanded
13324 for CXXCPP in "$CXX -E" "/lib/cpp"
13326 ac_preproc_ok=false
13327 for ac_cxx_preproc_warn_flag in '' yes
13329 # Use a header file that comes with gcc, so configuring glibc
13330 # with a fresh cross-compiler works.
13331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13332 # <limits.h> exists even on freestanding compilers.
13333 # On the NeXT, cc -E runs the code through the compiler's parser,
13334 # not just through cpp. "Syntax error" is here to catch this case.
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13337 #ifdef __STDC__
13338 # include <limits.h>
13339 #else
13340 # include <assert.h>
13341 #endif
13342 Syntax error
13343 _ACEOF
13344 if ac_fn_cxx_try_cpp "$LINENO"; then :
13346 else
13347 # Broken: fails on valid input.
13348 continue
13350 rm -f conftest.err conftest.$ac_ext
13352 # OK, works on sane cases. Now check whether nonexistent headers
13353 # can be detected and how.
13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 #include <ac_nonexistent.h>
13357 _ACEOF
13358 if ac_fn_cxx_try_cpp "$LINENO"; then :
13359 # Broken: success on invalid input.
13360 continue
13361 else
13362 # Passes both tests.
13363 ac_preproc_ok=:
13364 break
13366 rm -f conftest.err conftest.$ac_ext
13368 done
13369 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13370 rm -f conftest.err conftest.$ac_ext
13371 if $ac_preproc_ok; then :
13372 break
13375 done
13376 ac_cv_prog_CXXCPP=$CXXCPP
13379 CXXCPP=$ac_cv_prog_CXXCPP
13380 else
13381 ac_cv_prog_CXXCPP=$CXXCPP
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13384 $as_echo "$CXXCPP" >&6; }
13385 ac_preproc_ok=false
13386 for ac_cxx_preproc_warn_flag in '' yes
13388 # Use a header file that comes with gcc, so configuring glibc
13389 # with a fresh cross-compiler works.
13390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13391 # <limits.h> exists even on freestanding compilers.
13392 # On the NeXT, cc -E runs the code through the compiler's parser,
13393 # not just through cpp. "Syntax error" is here to catch this case.
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396 #ifdef __STDC__
13397 # include <limits.h>
13398 #else
13399 # include <assert.h>
13400 #endif
13401 Syntax error
13402 _ACEOF
13403 if ac_fn_cxx_try_cpp "$LINENO"; then :
13405 else
13406 # Broken: fails on valid input.
13407 continue
13409 rm -f conftest.err conftest.$ac_ext
13411 # OK, works on sane cases. Now check whether nonexistent headers
13412 # can be detected and how.
13413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13414 /* end confdefs.h. */
13415 #include <ac_nonexistent.h>
13416 _ACEOF
13417 if ac_fn_cxx_try_cpp "$LINENO"; then :
13418 # Broken: success on invalid input.
13419 continue
13420 else
13421 # Passes both tests.
13422 ac_preproc_ok=:
13423 break
13425 rm -f conftest.err conftest.$ac_ext
13427 done
13428 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13429 rm -f conftest.err conftest.$ac_ext
13430 if $ac_preproc_ok; then :
13432 else
13433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13435 _lt_caught_CXX_error=yes; }
13438 ac_ext=c
13439 ac_cpp='$CPP $CPPFLAGS'
13440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13444 else
13445 _lt_caught_CXX_error=yes
13452 # Set options
13456 enable_dlopen=no
13459 enable_win32_dll=no
13462 # Check whether --enable-shared was given.
13463 if test "${enable_shared+set}" = set; then :
13464 enableval=$enable_shared; p=${PACKAGE-default}
13465 case $enableval in
13466 yes) enable_shared=yes ;;
13467 no) enable_shared=no ;;
13469 enable_shared=no
13470 # Look at the argument we got. We use all the common list separators.
13471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13472 for pkg in $enableval; do
13473 IFS="$lt_save_ifs"
13474 if test "X$pkg" = "X$p"; then
13475 enable_shared=yes
13477 done
13478 IFS="$lt_save_ifs"
13480 esac
13481 else
13482 enable_shared=yes
13493 # Check whether --enable-static was given.
13494 if test "${enable_static+set}" = set; then :
13495 enableval=$enable_static; p=${PACKAGE-default}
13496 case $enableval in
13497 yes) enable_static=yes ;;
13498 no) enable_static=no ;;
13500 enable_static=no
13501 # Look at the argument we got. We use all the common list separators.
13502 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13503 for pkg in $enableval; do
13504 IFS="$lt_save_ifs"
13505 if test "X$pkg" = "X$p"; then
13506 enable_static=yes
13508 done
13509 IFS="$lt_save_ifs"
13511 esac
13512 else
13513 enable_static=yes
13525 # Check whether --with-pic was given.
13526 if test "${with_pic+set}" = set; then :
13527 withval=$with_pic; pic_mode="$withval"
13528 else
13529 pic_mode=default
13533 test -z "$pic_mode" && pic_mode=default
13541 # Check whether --enable-fast-install was given.
13542 if test "${enable_fast_install+set}" = set; then :
13543 enableval=$enable_fast_install; p=${PACKAGE-default}
13544 case $enableval in
13545 yes) enable_fast_install=yes ;;
13546 no) enable_fast_install=no ;;
13548 enable_fast_install=no
13549 # Look at the argument we got. We use all the common list separators.
13550 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13551 for pkg in $enableval; do
13552 IFS="$lt_save_ifs"
13553 if test "X$pkg" = "X$p"; then
13554 enable_fast_install=yes
13556 done
13557 IFS="$lt_save_ifs"
13559 esac
13560 else
13561 enable_fast_install=yes
13574 # This can be used to rebuild libtool when needed
13575 LIBTOOL_DEPS="$ltmain"
13577 # Always use our own libtool.
13578 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13604 test -z "$LN_S" && LN_S="ln -s"
13619 if test -n "${ZSH_VERSION+set}" ; then
13620 setopt NO_GLOB_SUBST
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13624 $as_echo_n "checking for objdir... " >&6; }
13625 if test "${lt_cv_objdir+set}" = set; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 rm -f .libs 2>/dev/null
13629 mkdir .libs 2>/dev/null
13630 if test -d .libs; then
13631 lt_cv_objdir=.libs
13632 else
13633 # MS-DOS does not allow filenames that begin with a dot.
13634 lt_cv_objdir=_libs
13636 rmdir .libs 2>/dev/null
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13639 $as_echo "$lt_cv_objdir" >&6; }
13640 objdir=$lt_cv_objdir
13646 cat >>confdefs.h <<_ACEOF
13647 #define LT_OBJDIR "$lt_cv_objdir/"
13648 _ACEOF
13666 case $host_os in
13667 aix3*)
13668 # AIX sometimes has problems with the GCC collect2 program. For some
13669 # reason, if we set the COLLECT_NAMES environment variable, the problems
13670 # vanish in a puff of smoke.
13671 if test "X${COLLECT_NAMES+set}" != Xset; then
13672 COLLECT_NAMES=
13673 export COLLECT_NAMES
13676 esac
13678 # Sed substitution that helps us do robust quoting. It backslashifies
13679 # metacharacters that are still active within double-quoted strings.
13680 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
13682 # Same as above, but do not quote variable references.
13683 double_quote_subst='s/\(["`\\]\)/\\\1/g'
13685 # Sed substitution to delay expansion of an escaped shell variable in a
13686 # double_quote_subst'ed string.
13687 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13689 # Sed substitution to delay expansion of an escaped single quote.
13690 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
13692 # Sed substitution to avoid accidental globbing in evaled expressions
13693 no_glob_subst='s/\*/\\\*/g'
13695 # Global variables:
13696 ofile=libtool
13697 can_build_shared=yes
13699 # All known linkers require a `.a' archive for static linking (except MSVC,
13700 # which needs '.lib').
13701 libext=a
13703 with_gnu_ld="$lt_cv_prog_gnu_ld"
13705 old_CC="$CC"
13706 old_CFLAGS="$CFLAGS"
13708 # Set sane defaults for various variables
13709 test -z "$CC" && CC=cc
13710 test -z "$LTCC" && LTCC=$CC
13711 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13712 test -z "$LD" && LD=ld
13713 test -z "$ac_objext" && ac_objext=o
13715 for cc_temp in $compiler""; do
13716 case $cc_temp in
13717 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13718 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13719 \-*) ;;
13720 *) break;;
13721 esac
13722 done
13723 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13726 # Only perform the check for file, if the check method requires it
13727 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13728 case $deplibs_check_method in
13729 file_magic*)
13730 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13732 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13733 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13734 $as_echo_n "(cached) " >&6
13735 else
13736 case $MAGIC_CMD in
13737 [\\/*] | ?:[\\/]*)
13738 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13741 lt_save_MAGIC_CMD="$MAGIC_CMD"
13742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13743 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13744 for ac_dir in $ac_dummy; do
13745 IFS="$lt_save_ifs"
13746 test -z "$ac_dir" && ac_dir=.
13747 if test -f $ac_dir/${ac_tool_prefix}file; then
13748 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13749 if test -n "$file_magic_test_file"; then
13750 case $deplibs_check_method in
13751 "file_magic "*)
13752 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13753 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13754 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13755 $EGREP "$file_magic_regex" > /dev/null; then
13757 else
13758 cat <<_LT_EOF 1>&2
13760 *** Warning: the command libtool uses to detect shared libraries,
13761 *** $file_magic_cmd, produces output that libtool cannot recognize.
13762 *** The result is that libtool may fail to recognize shared libraries
13763 *** as such. This will affect the creation of libtool libraries that
13764 *** depend on shared libraries, but programs linked with such libtool
13765 *** libraries will work regardless of this problem. Nevertheless, you
13766 *** may want to report the problem to your system manager and/or to
13767 *** bug-libtool@gnu.org
13769 _LT_EOF
13770 fi ;;
13771 esac
13773 break
13775 done
13776 IFS="$lt_save_ifs"
13777 MAGIC_CMD="$lt_save_MAGIC_CMD"
13779 esac
13782 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13783 if test -n "$MAGIC_CMD"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13785 $as_echo "$MAGIC_CMD" >&6; }
13786 else
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13795 if test -z "$lt_cv_path_MAGIC_CMD"; then
13796 if test -n "$ac_tool_prefix"; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13798 $as_echo_n "checking for file... " >&6; }
13799 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
13800 $as_echo_n "(cached) " >&6
13801 else
13802 case $MAGIC_CMD in
13803 [\\/*] | ?:[\\/]*)
13804 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13807 lt_save_MAGIC_CMD="$MAGIC_CMD"
13808 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13809 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13810 for ac_dir in $ac_dummy; do
13811 IFS="$lt_save_ifs"
13812 test -z "$ac_dir" && ac_dir=.
13813 if test -f $ac_dir/file; then
13814 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13815 if test -n "$file_magic_test_file"; then
13816 case $deplibs_check_method in
13817 "file_magic "*)
13818 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13819 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13820 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13821 $EGREP "$file_magic_regex" > /dev/null; then
13823 else
13824 cat <<_LT_EOF 1>&2
13826 *** Warning: the command libtool uses to detect shared libraries,
13827 *** $file_magic_cmd, produces output that libtool cannot recognize.
13828 *** The result is that libtool may fail to recognize shared libraries
13829 *** as such. This will affect the creation of libtool libraries that
13830 *** depend on shared libraries, but programs linked with such libtool
13831 *** libraries will work regardless of this problem. Nevertheless, you
13832 *** may want to report the problem to your system manager and/or to
13833 *** bug-libtool@gnu.org
13835 _LT_EOF
13836 fi ;;
13837 esac
13839 break
13841 done
13842 IFS="$lt_save_ifs"
13843 MAGIC_CMD="$lt_save_MAGIC_CMD"
13845 esac
13848 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13849 if test -n "$MAGIC_CMD"; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13851 $as_echo "$MAGIC_CMD" >&6; }
13852 else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854 $as_echo "no" >&6; }
13858 else
13859 MAGIC_CMD=:
13865 esac
13867 # Use C for the default configuration in the libtool script
13869 lt_save_CC="$CC"
13870 ac_ext=c
13871 ac_cpp='$CPP $CPPFLAGS'
13872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13877 # Source file extension for C test sources.
13878 ac_ext=c
13880 # Object file extension for compiled C test sources.
13881 objext=o
13882 objext=$objext
13884 # Code to be used in simple compile tests
13885 lt_simple_compile_test_code="int some_variable = 0;"
13887 # Code to be used in simple link tests
13888 lt_simple_link_test_code='int main(){return(0);}'
13896 # If no C compiler was specified, use CC.
13897 LTCC=${LTCC-"$CC"}
13899 # If no C compiler flags were specified, use CFLAGS.
13900 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13902 # Allow CC to be a program name with arguments.
13903 compiler=$CC
13905 # Save the default compiler, since it gets overwritten when the other
13906 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13907 compiler_DEFAULT=$CC
13909 # save warnings/boilerplate of simple test code
13910 ac_outfile=conftest.$ac_objext
13911 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13912 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13913 _lt_compiler_boilerplate=`cat conftest.err`
13914 $RM conftest*
13916 ac_outfile=conftest.$ac_objext
13917 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13918 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13919 _lt_linker_boilerplate=`cat conftest.err`
13920 $RM -r conftest*
13923 ## CAVEAT EMPTOR:
13924 ## There is no encapsulation within the following macros, do not change
13925 ## the running order or otherwise move them around unless you know exactly
13926 ## what you are doing...
13927 if test -n "$compiler"; then
13929 lt_prog_compiler_no_builtin_flag=
13931 if test "$GCC" = yes; then
13932 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13935 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13936 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
13937 $as_echo_n "(cached) " >&6
13938 else
13939 lt_cv_prog_compiler_rtti_exceptions=no
13940 ac_outfile=conftest.$ac_objext
13941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13942 lt_compiler_flag="-fno-rtti -fno-exceptions"
13943 # Insert the option either (1) after the last *FLAGS variable, or
13944 # (2) before a word containing "conftest.", or (3) at the end.
13945 # Note that $ac_compile itself does not contain backslashes and begins
13946 # with a dollar sign (not a hyphen), so the echo should work correctly.
13947 # The option is referenced via a variable to avoid confusing sed.
13948 lt_compile=`echo "$ac_compile" | $SED \
13949 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13950 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13951 -e 's:$: $lt_compiler_flag:'`
13952 (eval echo "\"\$as_me:13952: $lt_compile\"" >&5)
13953 (eval "$lt_compile" 2>conftest.err)
13954 ac_status=$?
13955 cat conftest.err >&5
13956 echo "$as_me:13956: \$? = $ac_status" >&5
13957 if (exit $ac_status) && test -s "$ac_outfile"; then
13958 # The compiler can only warn and ignore the option if not recognized
13959 # So say no if there are warnings other than the usual output.
13960 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13961 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13962 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13963 lt_cv_prog_compiler_rtti_exceptions=yes
13966 $RM conftest*
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13970 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13972 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13973 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13974 else
13985 lt_prog_compiler_wl=
13986 lt_prog_compiler_pic=
13987 lt_prog_compiler_static=
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13990 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13992 if test "$GCC" = yes; then
13993 lt_prog_compiler_wl='-Wl,'
13994 lt_prog_compiler_static='-static'
13996 case $host_os in
13997 aix*)
13998 # All AIX code is PIC.
13999 if test "$host_cpu" = ia64; then
14000 # AIX 5 now supports IA64 processor
14001 lt_prog_compiler_static='-Bstatic'
14005 amigaos*)
14006 case $host_cpu in
14007 powerpc)
14008 # see comment about AmigaOS4 .so support
14009 lt_prog_compiler_pic='-fPIC'
14011 m68k)
14012 # FIXME: we need at least 68020 code to build shared libraries, but
14013 # adding the `-m68020' flag to GCC prevents building anything better,
14014 # like `-m68040'.
14015 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14017 esac
14020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14021 # PIC is the default for these OSes.
14024 mingw* | cygwin* | pw32* | os2* | cegcc*)
14025 # This hack is so that the source file can tell whether it is being
14026 # built for inclusion in a dll (and should export symbols for example).
14027 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14028 # (--disable-auto-import) libraries
14029 lt_prog_compiler_pic='-DDLL_EXPORT'
14032 darwin* | rhapsody*)
14033 # PIC is the default on this platform
14034 # Common symbols not allowed in MH_DYLIB files
14035 lt_prog_compiler_pic='-fno-common'
14038 hpux*)
14039 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14040 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14041 # sets the default TLS model and affects inlining.
14042 case $host_cpu in
14043 hppa*64*)
14044 # +Z the default
14047 lt_prog_compiler_pic='-fPIC'
14049 esac
14052 interix[3-9]*)
14053 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14054 # Instead, we relocate shared libraries at runtime.
14057 msdosdjgpp*)
14058 # Just because we use GCC doesn't mean we suddenly get shared libraries
14059 # on systems that don't support them.
14060 lt_prog_compiler_can_build_shared=no
14061 enable_shared=no
14064 *nto* | *qnx*)
14065 # QNX uses GNU C++, but need to define -shared option too, otherwise
14066 # it will coredump.
14067 lt_prog_compiler_pic='-fPIC -shared'
14070 sysv4*MP*)
14071 if test -d /usr/nec; then
14072 lt_prog_compiler_pic=-Kconform_pic
14077 lt_prog_compiler_pic='-fPIC'
14079 esac
14080 else
14081 # PORTME Check for flag to pass linker flags through the system compiler.
14082 case $host_os in
14083 aix*)
14084 lt_prog_compiler_wl='-Wl,'
14085 if test "$host_cpu" = ia64; then
14086 # AIX 5 now supports IA64 processor
14087 lt_prog_compiler_static='-Bstatic'
14088 else
14089 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14093 mingw* | cygwin* | pw32* | os2* | cegcc*)
14094 # This hack is so that the source file can tell whether it is being
14095 # built for inclusion in a dll (and should export symbols for example).
14096 lt_prog_compiler_pic='-DDLL_EXPORT'
14099 hpux9* | hpux10* | hpux11*)
14100 lt_prog_compiler_wl='-Wl,'
14101 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14102 # not for PA HP-UX.
14103 case $host_cpu in
14104 hppa*64*|ia64*)
14105 # +Z the default
14108 lt_prog_compiler_pic='+Z'
14110 esac
14111 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14112 lt_prog_compiler_static='${wl}-a ${wl}archive'
14115 irix5* | irix6* | nonstopux*)
14116 lt_prog_compiler_wl='-Wl,'
14117 # PIC (with -KPIC) is the default.
14118 lt_prog_compiler_static='-non_shared'
14121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14122 case $cc_basename in
14123 # old Intel for x86_64 which still supported -KPIC.
14124 ecc*)
14125 lt_prog_compiler_wl='-Wl,'
14126 lt_prog_compiler_pic='-KPIC'
14127 lt_prog_compiler_static='-static'
14129 # icc used to be incompatible with GCC.
14130 # ICC 10 doesn't accept -KPIC any more.
14131 icc* | ifort*)
14132 lt_prog_compiler_wl='-Wl,'
14133 lt_prog_compiler_pic='-fPIC'
14134 lt_prog_compiler_static='-static'
14136 # Lahey Fortran 8.1.
14137 lf95*)
14138 lt_prog_compiler_wl='-Wl,'
14139 lt_prog_compiler_pic='--shared'
14140 lt_prog_compiler_static='--static'
14142 pgcc* | pgf77* | pgf90* | pgf95*)
14143 # Portland Group compilers (*not* the Pentium gcc compiler,
14144 # which looks to be a dead project)
14145 lt_prog_compiler_wl='-Wl,'
14146 lt_prog_compiler_pic='-fpic'
14147 lt_prog_compiler_static='-Bstatic'
14149 ccc*)
14150 lt_prog_compiler_wl='-Wl,'
14151 # All Alpha code is PIC.
14152 lt_prog_compiler_static='-non_shared'
14154 xl*)
14155 # IBM XL C 8.0/Fortran 10.1 on PPC
14156 lt_prog_compiler_wl='-Wl,'
14157 lt_prog_compiler_pic='-qpic'
14158 lt_prog_compiler_static='-qstaticlink'
14161 case `$CC -V 2>&1 | sed 5q` in
14162 *Sun\ C*)
14163 # Sun C 5.9
14164 lt_prog_compiler_pic='-KPIC'
14165 lt_prog_compiler_static='-Bstatic'
14166 lt_prog_compiler_wl='-Wl,'
14168 *Sun\ F*)
14169 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14170 lt_prog_compiler_pic='-KPIC'
14171 lt_prog_compiler_static='-Bstatic'
14172 lt_prog_compiler_wl=''
14174 esac
14176 esac
14179 newsos6)
14180 lt_prog_compiler_pic='-KPIC'
14181 lt_prog_compiler_static='-Bstatic'
14184 *nto* | *qnx*)
14185 # QNX uses GNU C++, but need to define -shared option too, otherwise
14186 # it will coredump.
14187 lt_prog_compiler_pic='-fPIC -shared'
14190 osf3* | osf4* | osf5*)
14191 lt_prog_compiler_wl='-Wl,'
14192 # All OSF/1 code is PIC.
14193 lt_prog_compiler_static='-non_shared'
14196 rdos*)
14197 lt_prog_compiler_static='-non_shared'
14200 solaris*)
14201 lt_prog_compiler_pic='-KPIC'
14202 lt_prog_compiler_static='-Bstatic'
14203 case $cc_basename in
14204 f77* | f90* | f95*)
14205 lt_prog_compiler_wl='-Qoption ld ';;
14207 lt_prog_compiler_wl='-Wl,';;
14208 esac
14211 sunos4*)
14212 lt_prog_compiler_wl='-Qoption ld '
14213 lt_prog_compiler_pic='-PIC'
14214 lt_prog_compiler_static='-Bstatic'
14217 sysv4 | sysv4.2uw2* | sysv4.3*)
14218 lt_prog_compiler_wl='-Wl,'
14219 lt_prog_compiler_pic='-KPIC'
14220 lt_prog_compiler_static='-Bstatic'
14223 sysv4*MP*)
14224 if test -d /usr/nec ;then
14225 lt_prog_compiler_pic='-Kconform_pic'
14226 lt_prog_compiler_static='-Bstatic'
14230 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14231 lt_prog_compiler_wl='-Wl,'
14232 lt_prog_compiler_pic='-KPIC'
14233 lt_prog_compiler_static='-Bstatic'
14236 unicos*)
14237 lt_prog_compiler_wl='-Wl,'
14238 lt_prog_compiler_can_build_shared=no
14241 uts4*)
14242 lt_prog_compiler_pic='-pic'
14243 lt_prog_compiler_static='-Bstatic'
14247 lt_prog_compiler_can_build_shared=no
14249 esac
14252 case $host_os in
14253 # For platforms which do not support PIC, -DPIC is meaningless:
14254 *djgpp*)
14255 lt_prog_compiler_pic=
14258 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14260 esac
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
14262 $as_echo "$lt_prog_compiler_pic" >&6; }
14270 # Check to make sure the PIC flag actually works.
14272 if test -n "$lt_prog_compiler_pic"; then
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14274 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14275 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
14276 $as_echo_n "(cached) " >&6
14277 else
14278 lt_cv_prog_compiler_pic_works=no
14279 ac_outfile=conftest.$ac_objext
14280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14281 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14282 # Insert the option either (1) after the last *FLAGS variable, or
14283 # (2) before a word containing "conftest.", or (3) at the end.
14284 # Note that $ac_compile itself does not contain backslashes and begins
14285 # with a dollar sign (not a hyphen), so the echo should work correctly.
14286 # The option is referenced via a variable to avoid confusing sed.
14287 lt_compile=`echo "$ac_compile" | $SED \
14288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14290 -e 's:$: $lt_compiler_flag:'`
14291 (eval echo "\"\$as_me:14291: $lt_compile\"" >&5)
14292 (eval "$lt_compile" 2>conftest.err)
14293 ac_status=$?
14294 cat conftest.err >&5
14295 echo "$as_me:14295: \$? = $ac_status" >&5
14296 if (exit $ac_status) && test -s "$ac_outfile"; then
14297 # The compiler can only warn and ignore the option if not recognized
14298 # So say no if there are warnings other than the usual output.
14299 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14302 lt_cv_prog_compiler_pic_works=yes
14305 $RM conftest*
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14309 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14311 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14312 case $lt_prog_compiler_pic in
14313 "" | " "*) ;;
14314 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14315 esac
14316 else
14317 lt_prog_compiler_pic=
14318 lt_prog_compiler_can_build_shared=no
14329 # Check to make sure the static flag actually works.
14331 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14333 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14334 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
14335 $as_echo_n "(cached) " >&6
14336 else
14337 lt_cv_prog_compiler_static_works=no
14338 save_LDFLAGS="$LDFLAGS"
14339 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14340 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14341 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14342 # The linker can only warn and ignore the option if not recognized
14343 # So say no if there are warnings
14344 if test -s conftest.err; then
14345 # Append any errors to the config.log.
14346 cat conftest.err 1>&5
14347 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14348 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14349 if diff conftest.exp conftest.er2 >/dev/null; then
14350 lt_cv_prog_compiler_static_works=yes
14352 else
14353 lt_cv_prog_compiler_static_works=yes
14356 $RM -r conftest*
14357 LDFLAGS="$save_LDFLAGS"
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14361 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14363 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14365 else
14366 lt_prog_compiler_static=
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14377 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14378 $as_echo_n "(cached) " >&6
14379 else
14380 lt_cv_prog_compiler_c_o=no
14381 $RM -r conftest 2>/dev/null
14382 mkdir conftest
14383 cd conftest
14384 mkdir out
14385 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14387 lt_compiler_flag="-o out/conftest2.$ac_objext"
14388 # Insert the option either (1) after the last *FLAGS variable, or
14389 # (2) before a word containing "conftest.", or (3) at the end.
14390 # Note that $ac_compile itself does not contain backslashes and begins
14391 # with a dollar sign (not a hyphen), so the echo should work correctly.
14392 lt_compile=`echo "$ac_compile" | $SED \
14393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14395 -e 's:$: $lt_compiler_flag:'`
14396 (eval echo "\"\$as_me:14396: $lt_compile\"" >&5)
14397 (eval "$lt_compile" 2>out/conftest.err)
14398 ac_status=$?
14399 cat out/conftest.err >&5
14400 echo "$as_me:14400: \$? = $ac_status" >&5
14401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14402 then
14403 # The compiler can only warn and ignore the option if not recognized
14404 # So say no if there are warnings
14405 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14408 lt_cv_prog_compiler_c_o=yes
14411 chmod u+w . 2>&5
14412 $RM conftest*
14413 # SGI C++ compiler will create directory out/ii_files/ for
14414 # template instantiation
14415 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14416 $RM out/* && rmdir out
14417 cd ..
14418 $RM -r conftest
14419 $RM conftest*
14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14423 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14431 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14432 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
14433 $as_echo_n "(cached) " >&6
14434 else
14435 lt_cv_prog_compiler_c_o=no
14436 $RM -r conftest 2>/dev/null
14437 mkdir conftest
14438 cd conftest
14439 mkdir out
14440 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14442 lt_compiler_flag="-o out/conftest2.$ac_objext"
14443 # Insert the option either (1) after the last *FLAGS variable, or
14444 # (2) before a word containing "conftest.", or (3) at the end.
14445 # Note that $ac_compile itself does not contain backslashes and begins
14446 # with a dollar sign (not a hyphen), so the echo should work correctly.
14447 lt_compile=`echo "$ac_compile" | $SED \
14448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14450 -e 's:$: $lt_compiler_flag:'`
14451 (eval echo "\"\$as_me:14451: $lt_compile\"" >&5)
14452 (eval "$lt_compile" 2>out/conftest.err)
14453 ac_status=$?
14454 cat out/conftest.err >&5
14455 echo "$as_me:14455: \$? = $ac_status" >&5
14456 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14457 then
14458 # The compiler can only warn and ignore the option if not recognized
14459 # So say no if there are warnings
14460 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14461 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14462 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14463 lt_cv_prog_compiler_c_o=yes
14466 chmod u+w . 2>&5
14467 $RM conftest*
14468 # SGI C++ compiler will create directory out/ii_files/ for
14469 # template instantiation
14470 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14471 $RM out/* && rmdir out
14472 cd ..
14473 $RM -r conftest
14474 $RM conftest*
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14478 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14483 hard_links="nottested"
14484 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14485 # do not overwrite the value of need_locks provided by the user
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14487 $as_echo_n "checking if we can lock with hard links... " >&6; }
14488 hard_links=yes
14489 $RM conftest*
14490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14491 touch conftest.a
14492 ln conftest.a conftest.b 2>&5 || hard_links=no
14493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14495 $as_echo "$hard_links" >&6; }
14496 if test "$hard_links" = no; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14498 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14499 need_locks=warn
14501 else
14502 need_locks=no
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14511 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14513 runpath_var=
14514 allow_undefined_flag=
14515 always_export_symbols=no
14516 archive_cmds=
14517 archive_expsym_cmds=
14518 compiler_needs_object=no
14519 enable_shared_with_static_runtimes=no
14520 export_dynamic_flag_spec=
14521 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14522 hardcode_automatic=no
14523 hardcode_direct=no
14524 hardcode_direct_absolute=no
14525 hardcode_libdir_flag_spec=
14526 hardcode_libdir_flag_spec_ld=
14527 hardcode_libdir_separator=
14528 hardcode_minus_L=no
14529 hardcode_shlibpath_var=unsupported
14530 inherit_rpath=no
14531 link_all_deplibs=unknown
14532 module_cmds=
14533 module_expsym_cmds=
14534 old_archive_from_new_cmds=
14535 old_archive_from_expsyms_cmds=
14536 thread_safe_flag_spec=
14537 whole_archive_flag_spec=
14538 # include_expsyms should be a list of space-separated symbols to be *always*
14539 # included in the symbol list
14540 include_expsyms=
14541 # exclude_expsyms can be an extended regexp of symbols to exclude
14542 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14543 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14544 # as well as any symbol that contains `d'.
14545 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14546 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14547 # platforms (ab)use it in PIC code, but their linkers get confused if
14548 # the symbol is explicitly referenced. Since portable code cannot
14549 # rely on this symbol name, it's probably fine to never include it in
14550 # preloaded symbol tables.
14551 # Exclude shared library initialization/finalization symbols.
14552 extract_expsyms_cmds=
14554 case $host_os in
14555 cygwin* | mingw* | pw32* | cegcc*)
14556 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14557 # When not using gcc, we currently assume that we are using
14558 # Microsoft Visual C++.
14559 if test "$GCC" != yes; then
14560 with_gnu_ld=no
14563 interix*)
14564 # we just hope/assume this is gcc and not c89 (= MSVC++)
14565 with_gnu_ld=yes
14567 openbsd*)
14568 with_gnu_ld=no
14570 esac
14572 ld_shlibs=yes
14573 if test "$with_gnu_ld" = yes; then
14574 # If archive_cmds runs LD, not CC, wlarc should be empty
14575 wlarc='${wl}'
14577 # Set some defaults for GNU ld with shared library support. These
14578 # are reset later if shared libraries are not supported. Putting them
14579 # here allows them to be overridden if necessary.
14580 runpath_var=LD_RUN_PATH
14581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14582 export_dynamic_flag_spec='${wl}--export-dynamic'
14583 # ancient GNU ld didn't support --whole-archive et. al.
14584 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14585 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14586 else
14587 whole_archive_flag_spec=
14589 supports_anon_versioning=no
14590 case `$LD -v 2>&1` in
14591 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14592 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14593 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14594 *\ 2.11.*) ;; # other 2.11 versions
14595 *) supports_anon_versioning=yes ;;
14596 esac
14598 # See if GNU ld supports shared libraries.
14599 case $host_os in
14600 aix[3-9]*)
14601 # On AIX/PPC, the GNU linker is very broken
14602 if test "$host_cpu" != ia64; then
14603 ld_shlibs=no
14604 cat <<_LT_EOF 1>&2
14606 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14607 *** to be unable to reliably create shared libraries on AIX.
14608 *** Therefore, libtool is disabling shared libraries support. If you
14609 *** really care for shared libraries, you may want to modify your PATH
14610 *** so that a non-GNU linker is found, and then restart.
14612 _LT_EOF
14616 amigaos*)
14617 case $host_cpu in
14618 powerpc)
14619 # see comment about AmigaOS4 .so support
14620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14621 archive_expsym_cmds=''
14623 m68k)
14624 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)'
14625 hardcode_libdir_flag_spec='-L$libdir'
14626 hardcode_minus_L=yes
14628 esac
14631 beos*)
14632 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14633 allow_undefined_flag=unsupported
14634 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14635 # support --undefined. This deserves some investigation. FIXME
14636 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14637 else
14638 ld_shlibs=no
14642 cygwin* | mingw* | pw32* | cegcc*)
14643 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14644 # as there is no search path for DLLs.
14645 hardcode_libdir_flag_spec='-L$libdir'
14646 allow_undefined_flag=unsupported
14647 always_export_symbols=no
14648 enable_shared_with_static_runtimes=yes
14649 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14651 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14653 # If the export-symbols file already is a .def file (1st line
14654 # is EXPORTS), use it as is; otherwise, prepend...
14655 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14656 cp $export_symbols $output_objdir/$soname.def;
14657 else
14658 echo EXPORTS > $output_objdir/$soname.def;
14659 cat $export_symbols >> $output_objdir/$soname.def;
14661 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14662 else
14663 ld_shlibs=no
14667 interix[3-9]*)
14668 hardcode_direct=no
14669 hardcode_shlibpath_var=no
14670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14671 export_dynamic_flag_spec='${wl}-E'
14672 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14673 # Instead, shared libraries are loaded at an image base (0x10000000 by
14674 # default) and relocated if they conflict, which is a slow very memory
14675 # consuming and fragmenting process. To avoid this, we pick a random,
14676 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14677 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14678 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14679 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'
14682 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14683 tmp_diet=no
14684 if test "$host_os" = linux-dietlibc; then
14685 case $cc_basename in
14686 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14687 esac
14689 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14690 && test "$tmp_diet" = no
14691 then
14692 tmp_addflag=
14693 tmp_sharedflag='-shared'
14694 case $cc_basename,$host_cpu in
14695 pgcc*) # Portland Group C compiler
14696 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'
14697 tmp_addflag=' $pic_flag'
14699 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14700 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'
14701 tmp_addflag=' $pic_flag -Mnomain' ;;
14702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14703 tmp_addflag=' -i_dynamic' ;;
14704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14705 tmp_addflag=' -i_dynamic -nofor_main' ;;
14706 ifc* | ifort*) # Intel Fortran compiler
14707 tmp_addflag=' -nofor_main' ;;
14708 lf95*) # Lahey Fortran 8.1
14709 whole_archive_flag_spec=
14710 tmp_sharedflag='--shared' ;;
14711 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14712 tmp_sharedflag='-qmkshrobj'
14713 tmp_addflag= ;;
14714 esac
14715 case `$CC -V 2>&1 | sed 5q` in
14716 *Sun\ C*) # Sun C 5.9
14717 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'
14718 compiler_needs_object=yes
14719 tmp_sharedflag='-G' ;;
14720 *Sun\ F*) # Sun Fortran 8.3
14721 tmp_sharedflag='-G' ;;
14722 esac
14723 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14725 if test "x$supports_anon_versioning" = xyes; then
14726 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14727 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14728 echo "local: *; };" >> $output_objdir/$libname.ver~
14729 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14732 case $cc_basename in
14733 xlf*)
14734 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14735 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14736 hardcode_libdir_flag_spec=
14737 hardcode_libdir_flag_spec_ld='-rpath $libdir'
14738 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14739 if test "x$supports_anon_versioning" = xyes; then
14740 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14742 echo "local: *; };" >> $output_objdir/$libname.ver~
14743 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14746 esac
14747 else
14748 ld_shlibs=no
14752 netbsd*)
14753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14754 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14755 wlarc=
14756 else
14757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14762 solaris*)
14763 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14764 ld_shlibs=no
14765 cat <<_LT_EOF 1>&2
14767 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14768 *** create shared libraries on Solaris systems. Therefore, libtool
14769 *** is disabling shared libraries support. We urge you to upgrade GNU
14770 *** binutils to release 2.9.1 or newer. Another option is to modify
14771 *** your PATH or compiler configuration so that the native linker is
14772 *** used, and then restart.
14774 _LT_EOF
14775 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14776 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14777 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14778 else
14779 ld_shlibs=no
14783 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14784 case `$LD -v 2>&1` in
14785 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14786 ld_shlibs=no
14787 cat <<_LT_EOF 1>&2
14789 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14790 *** reliably create shared libraries on SCO systems. Therefore, libtool
14791 *** is disabling shared libraries support. We urge you to upgrade GNU
14792 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14793 *** your PATH or compiler configuration so that the native linker is
14794 *** used, and then restart.
14796 _LT_EOF
14799 # For security reasons, it is highly recommended that you always
14800 # use absolute paths for naming shared libraries, and exclude the
14801 # DT_RUNPATH tag from executables and libraries. But doing so
14802 # requires that you compile everything twice, which is a pain.
14803 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14804 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14805 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14807 else
14808 ld_shlibs=no
14811 esac
14814 sunos4*)
14815 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14816 wlarc=
14817 hardcode_direct=yes
14818 hardcode_shlibpath_var=no
14822 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14824 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14825 else
14826 ld_shlibs=no
14829 esac
14831 if test "$ld_shlibs" = no; then
14832 runpath_var=
14833 hardcode_libdir_flag_spec=
14834 export_dynamic_flag_spec=
14835 whole_archive_flag_spec=
14837 else
14838 # PORTME fill in a description of your system's linker (not GNU ld)
14839 case $host_os in
14840 aix3*)
14841 allow_undefined_flag=unsupported
14842 always_export_symbols=yes
14843 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'
14844 # Note: this linker hardcodes the directories in LIBPATH if there
14845 # are no directories specified by -L.
14846 hardcode_minus_L=yes
14847 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14848 # Neither direct hardcoding nor static linking is supported with a
14849 # broken collect2.
14850 hardcode_direct=unsupported
14854 aix[4-9]*)
14855 if test "$host_cpu" = ia64; then
14856 # On IA64, the linker does run time linking by default, so we don't
14857 # have to do anything special.
14858 aix_use_runtimelinking=no
14859 exp_sym_flag='-Bexport'
14860 no_entry_flag=""
14861 else
14862 # If we're using GNU nm, then we don't want the "-C" option.
14863 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14864 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14865 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'
14866 else
14867 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'
14869 aix_use_runtimelinking=no
14871 # Test if we are trying to use run time linking or normal
14872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14873 # need to do runtime linking.
14874 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14875 for ld_flag in $LDFLAGS; do
14876 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14877 aix_use_runtimelinking=yes
14878 break
14880 done
14882 esac
14884 exp_sym_flag='-bexport'
14885 no_entry_flag='-bnoentry'
14888 # When large executables or shared objects are built, AIX ld can
14889 # have problems creating the table of contents. If linking a library
14890 # or program results in "error TOC overflow" add -mminimal-toc to
14891 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14892 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14894 archive_cmds=''
14895 hardcode_direct=yes
14896 hardcode_direct_absolute=yes
14897 hardcode_libdir_separator=':'
14898 link_all_deplibs=yes
14899 file_list_spec='${wl}-f,'
14901 if test "$GCC" = yes; then
14902 case $host_os in aix4.[012]|aix4.[012].*)
14903 # We only want to do this on AIX 4.2 and lower, the check
14904 # below for broken collect2 doesn't work under 4.3+
14905 collect2name=`${CC} -print-prog-name=collect2`
14906 if test -f "$collect2name" &&
14907 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14908 then
14909 # We have reworked collect2
14911 else
14912 # We have old collect2
14913 hardcode_direct=unsupported
14914 # It fails to find uninstalled libraries when the uninstalled
14915 # path is not listed in the libpath. Setting hardcode_minus_L
14916 # to unsupported forces relinking
14917 hardcode_minus_L=yes
14918 hardcode_libdir_flag_spec='-L$libdir'
14919 hardcode_libdir_separator=
14922 esac
14923 shared_flag='-shared'
14924 if test "$aix_use_runtimelinking" = yes; then
14925 shared_flag="$shared_flag "'${wl}-G'
14927 else
14928 # not using gcc
14929 if test "$host_cpu" = ia64; then
14930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14931 # chokes on -Wl,-G. The following line is correct:
14932 shared_flag='-G'
14933 else
14934 if test "$aix_use_runtimelinking" = yes; then
14935 shared_flag='${wl}-G'
14936 else
14937 shared_flag='${wl}-bM:SRE'
14942 export_dynamic_flag_spec='${wl}-bexpall'
14943 # It seems that -bexpall does not export symbols beginning with
14944 # underscore (_), so it is better to generate a list of symbols to export.
14945 always_export_symbols=yes
14946 if test "$aix_use_runtimelinking" = yes; then
14947 # Warning - without using the other runtime loading flags (-brtl),
14948 # -berok will link without error, but may produce a broken library.
14949 allow_undefined_flag='-berok'
14950 # Determine the default libpath from the value encoded in an
14951 # empty executable.
14952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14953 /* end confdefs.h. */
14956 main ()
14960 return 0;
14962 _ACEOF
14963 if ac_fn_c_try_link "$LINENO"; then :
14965 lt_aix_libpath_sed='
14966 /Import File Strings/,/^$/ {
14967 /^0/ {
14968 s/^0 *\(.*\)$/\1/
14972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14973 # Check for a 64-bit object if we didn't find anything.
14974 if test -z "$aix_libpath"; then
14975 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14978 rm -f core conftest.err conftest.$ac_objext \
14979 conftest$ac_exeext conftest.$ac_ext
14980 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14982 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14983 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"
14984 else
14985 if test "$host_cpu" = ia64; then
14986 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14987 allow_undefined_flag="-z nodefs"
14988 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"
14989 else
14990 # Determine the default libpath from the value encoded in an
14991 # empty executable.
14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h. */
14996 main ()
15000 return 0;
15002 _ACEOF
15003 if ac_fn_c_try_link "$LINENO"; then :
15005 lt_aix_libpath_sed='
15006 /Import File Strings/,/^$/ {
15007 /^0/ {
15008 s/^0 *\(.*\)$/\1/
15012 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15013 # Check for a 64-bit object if we didn't find anything.
15014 if test -z "$aix_libpath"; then
15015 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15022 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15023 # Warning - without using the other run time loading flags,
15024 # -berok will link without error, but may produce a broken library.
15025 no_undefined_flag=' ${wl}-bernotok'
15026 allow_undefined_flag=' ${wl}-berok'
15027 # Exported symbols can be pulled into shared objects from archives
15028 whole_archive_flag_spec='$convenience'
15029 archive_cmds_need_lc=yes
15030 # This is similar to how AIX traditionally builds its shared libraries.
15031 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'
15036 amigaos*)
15037 case $host_cpu in
15038 powerpc)
15039 # see comment about AmigaOS4 .so support
15040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15041 archive_expsym_cmds=''
15043 m68k)
15044 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)'
15045 hardcode_libdir_flag_spec='-L$libdir'
15046 hardcode_minus_L=yes
15048 esac
15051 bsdi[45]*)
15052 export_dynamic_flag_spec=-rdynamic
15055 cygwin* | mingw* | pw32* | cegcc*)
15056 # When not using gcc, we currently assume that we are using
15057 # Microsoft Visual C++.
15058 # hardcode_libdir_flag_spec is actually meaningless, as there is
15059 # no search path for DLLs.
15060 hardcode_libdir_flag_spec=' '
15061 allow_undefined_flag=unsupported
15062 # Tell ltmain to make .lib files, not .a files.
15063 libext=lib
15064 # Tell ltmain to make .dll files, not .so files.
15065 shrext_cmds=".dll"
15066 # FIXME: Setting linknames here is a bad hack.
15067 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
15068 # The linker will automatically build a .lib file if we build a DLL.
15069 old_archive_from_new_cmds='true'
15070 # FIXME: Should let the user specify the lib program.
15071 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15072 fix_srcfile_path='`cygpath -w "$srcfile"`'
15073 enable_shared_with_static_runtimes=yes
15076 darwin* | rhapsody*)
15079 archive_cmds_need_lc=no
15080 hardcode_direct=no
15081 hardcode_automatic=yes
15082 hardcode_shlibpath_var=unsupported
15083 whole_archive_flag_spec=''
15084 link_all_deplibs=yes
15085 allow_undefined_flag="$_lt_dar_allow_undefined"
15086 case $cc_basename in
15087 ifort*) _lt_dar_can_shared=yes ;;
15088 *) _lt_dar_can_shared=$GCC ;;
15089 esac
15090 if test "$_lt_dar_can_shared" = "yes"; then
15091 output_verbose_link_cmd=echo
15092 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15093 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15094 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}"
15095 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}"
15097 else
15098 ld_shlibs=no
15103 dgux*)
15104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15105 hardcode_libdir_flag_spec='-L$libdir'
15106 hardcode_shlibpath_var=no
15109 freebsd1*)
15110 ld_shlibs=no
15113 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15114 # support. Future versions do this automatically, but an explicit c++rt0.o
15115 # does not break anything, and helps significantly (at the cost of a little
15116 # extra space).
15117 freebsd2.2*)
15118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15119 hardcode_libdir_flag_spec='-R$libdir'
15120 hardcode_direct=yes
15121 hardcode_shlibpath_var=no
15124 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15125 freebsd2*)
15126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15127 hardcode_direct=yes
15128 hardcode_minus_L=yes
15129 hardcode_shlibpath_var=no
15132 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15133 freebsd* | dragonfly*)
15134 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15135 hardcode_libdir_flag_spec='-R$libdir'
15136 hardcode_direct=yes
15137 hardcode_shlibpath_var=no
15140 hpux9*)
15141 if test "$GCC" = yes; then
15142 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'
15143 else
15144 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'
15146 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15147 hardcode_libdir_separator=:
15148 hardcode_direct=yes
15150 # hardcode_minus_L: Not really in the search PATH,
15151 # but as the default location of the library.
15152 hardcode_minus_L=yes
15153 export_dynamic_flag_spec='${wl}-E'
15156 hpux10*)
15157 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15158 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15159 else
15160 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15162 if test "$with_gnu_ld" = no; then
15163 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15164 hardcode_libdir_flag_spec_ld='+b $libdir'
15165 hardcode_libdir_separator=:
15166 hardcode_direct=yes
15167 hardcode_direct_absolute=yes
15168 export_dynamic_flag_spec='${wl}-E'
15169 # hardcode_minus_L: Not really in the search PATH,
15170 # but as the default location of the library.
15171 hardcode_minus_L=yes
15175 hpux11*)
15176 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15177 case $host_cpu in
15178 hppa*64*)
15179 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15181 ia64*)
15182 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15185 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15187 esac
15188 else
15189 case $host_cpu in
15190 hppa*64*)
15191 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15193 ia64*)
15194 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15197 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15199 esac
15201 if test "$with_gnu_ld" = no; then
15202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15203 hardcode_libdir_separator=:
15205 case $host_cpu in
15206 hppa*64*|ia64*)
15207 hardcode_direct=no
15208 hardcode_shlibpath_var=no
15211 hardcode_direct=yes
15212 hardcode_direct_absolute=yes
15213 export_dynamic_flag_spec='${wl}-E'
15215 # hardcode_minus_L: Not really in the search PATH,
15216 # but as the default location of the library.
15217 hardcode_minus_L=yes
15219 esac
15223 irix5* | irix6* | nonstopux*)
15224 if test "$GCC" = yes; then
15225 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'
15226 # Try to use the -exported_symbol ld option, if it does not
15227 # work, assume that -exports_file does not work either and
15228 # implicitly export all symbols.
15229 save_LDFLAGS="$LDFLAGS"
15230 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15232 /* end confdefs.h. */
15233 int foo(void) {}
15234 _ACEOF
15235 if ac_fn_c_try_link "$LINENO"; then :
15236 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'
15239 rm -f core conftest.err conftest.$ac_objext \
15240 conftest$ac_exeext conftest.$ac_ext
15241 LDFLAGS="$save_LDFLAGS"
15242 else
15243 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'
15244 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'
15246 archive_cmds_need_lc='no'
15247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15248 hardcode_libdir_separator=:
15249 inherit_rpath=yes
15250 link_all_deplibs=yes
15253 netbsd*)
15254 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15255 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15256 else
15257 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15259 hardcode_libdir_flag_spec='-R$libdir'
15260 hardcode_direct=yes
15261 hardcode_shlibpath_var=no
15264 newsos6)
15265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15266 hardcode_direct=yes
15267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15268 hardcode_libdir_separator=:
15269 hardcode_shlibpath_var=no
15272 *nto* | *qnx*)
15275 openbsd*)
15276 if test -f /usr/libexec/ld.so; then
15277 hardcode_direct=yes
15278 hardcode_shlibpath_var=no
15279 hardcode_direct_absolute=yes
15280 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15282 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15283 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15284 export_dynamic_flag_spec='${wl}-E'
15285 else
15286 case $host_os in
15287 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15289 hardcode_libdir_flag_spec='-R$libdir'
15292 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15293 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15295 esac
15297 else
15298 ld_shlibs=no
15302 os2*)
15303 hardcode_libdir_flag_spec='-L$libdir'
15304 hardcode_minus_L=yes
15305 allow_undefined_flag=unsupported
15306 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'
15307 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15310 osf3*)
15311 if test "$GCC" = yes; then
15312 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15313 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'
15314 else
15315 allow_undefined_flag=' -expect_unresolved \*'
15316 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'
15318 archive_cmds_need_lc='no'
15319 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15320 hardcode_libdir_separator=:
15323 osf4* | osf5*) # as osf3* with the addition of -msym flag
15324 if test "$GCC" = yes; then
15325 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15326 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'
15327 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15328 else
15329 allow_undefined_flag=' -expect_unresolved \*'
15330 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'
15331 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~
15332 $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'
15334 # Both c and cxx compiler support -rpath directly
15335 hardcode_libdir_flag_spec='-rpath $libdir'
15337 archive_cmds_need_lc='no'
15338 hardcode_libdir_separator=:
15341 solaris*)
15342 no_undefined_flag=' -z defs'
15343 if test "$GCC" = yes; then
15344 wlarc='${wl}'
15345 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15346 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15347 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15348 else
15349 case `$CC -V 2>&1` in
15350 *"Compilers 5.0"*)
15351 wlarc=''
15352 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15353 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15354 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15357 wlarc='${wl}'
15358 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15359 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15360 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15362 esac
15364 hardcode_libdir_flag_spec='-R$libdir'
15365 hardcode_shlibpath_var=no
15366 case $host_os in
15367 solaris2.[0-5] | solaris2.[0-5].*) ;;
15369 # The compiler driver will combine and reorder linker options,
15370 # but understands `-z linker_flag'. GCC discards it without `$wl',
15371 # but is careful enough not to reorder.
15372 # Supported since Solaris 2.6 (maybe 2.5.1?)
15373 if test "$GCC" = yes; then
15374 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15375 else
15376 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15379 esac
15380 link_all_deplibs=yes
15383 sunos4*)
15384 if test "x$host_vendor" = xsequent; then
15385 # Use $CC to link under sequent, because it throws in some extra .o
15386 # files that make .init and .fini sections work.
15387 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15388 else
15389 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15391 hardcode_libdir_flag_spec='-L$libdir'
15392 hardcode_direct=yes
15393 hardcode_minus_L=yes
15394 hardcode_shlibpath_var=no
15397 sysv4)
15398 case $host_vendor in
15399 sni)
15400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15401 hardcode_direct=yes # is this really true???
15403 siemens)
15404 ## LD is ld it makes a PLAMLIB
15405 ## CC just makes a GrossModule.
15406 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15407 reload_cmds='$CC -r -o $output$reload_objs'
15408 hardcode_direct=no
15410 motorola)
15411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15412 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15414 esac
15415 runpath_var='LD_RUN_PATH'
15416 hardcode_shlibpath_var=no
15419 sysv4.3*)
15420 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15421 hardcode_shlibpath_var=no
15422 export_dynamic_flag_spec='-Bexport'
15425 sysv4*MP*)
15426 if test -d /usr/nec; then
15427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15428 hardcode_shlibpath_var=no
15429 runpath_var=LD_RUN_PATH
15430 hardcode_runpath_var=yes
15431 ld_shlibs=yes
15435 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15436 no_undefined_flag='${wl}-z,text'
15437 archive_cmds_need_lc=no
15438 hardcode_shlibpath_var=no
15439 runpath_var='LD_RUN_PATH'
15441 if test "$GCC" = yes; then
15442 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15443 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15444 else
15445 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15446 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15450 sysv5* | sco3.2v5* | sco5v6*)
15451 # Note: We can NOT use -z defs as we might desire, because we do not
15452 # link with -lc, and that would cause any symbols used from libc to
15453 # always be unresolved, which means just about no library would
15454 # ever link correctly. If we're not using GNU ld we use -z text
15455 # though, which does catch some bad symbols but isn't as heavy-handed
15456 # as -z defs.
15457 no_undefined_flag='${wl}-z,text'
15458 allow_undefined_flag='${wl}-z,nodefs'
15459 archive_cmds_need_lc=no
15460 hardcode_shlibpath_var=no
15461 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15462 hardcode_libdir_separator=':'
15463 link_all_deplibs=yes
15464 export_dynamic_flag_spec='${wl}-Bexport'
15465 runpath_var='LD_RUN_PATH'
15467 if test "$GCC" = yes; then
15468 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15469 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15470 else
15471 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15472 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 uts4*)
15477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15478 hardcode_libdir_flag_spec='-L$libdir'
15479 hardcode_shlibpath_var=no
15483 ld_shlibs=no
15485 esac
15487 if test x$host_vendor = xsni; then
15488 case $host in
15489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15490 export_dynamic_flag_spec='${wl}-Blargedynsym'
15492 esac
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15497 $as_echo "$ld_shlibs" >&6; }
15498 test "$ld_shlibs" = no && can_build_shared=no
15500 with_gnu_ld=$with_gnu_ld
15517 # Do we need to explicitly link libc?
15519 case "x$archive_cmds_need_lc" in
15520 x|xyes)
15521 # Assume -lc should be added
15522 archive_cmds_need_lc=yes
15524 if test "$enable_shared" = yes && test "$GCC" = yes; then
15525 case $archive_cmds in
15526 *'~'*)
15527 # FIXME: we may have to deal with multi-command sequences.
15529 '$CC '*)
15530 # Test whether the compiler implicitly links with -lc since on some
15531 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15532 # to ld, don't add -lc before -lgcc.
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15534 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15535 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
15536 $as_echo_n "(cached) " >&6
15537 else
15538 $RM conftest*
15539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15542 (eval $ac_compile) 2>&5
15543 ac_status=$?
15544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15545 test $ac_status = 0; } 2>conftest.err; then
15546 soname=conftest
15547 lib=conftest
15548 libobjs=conftest.$ac_objext
15549 deplibs=
15550 wl=$lt_prog_compiler_wl
15551 pic_flag=$lt_prog_compiler_pic
15552 compiler_flags=-v
15553 linker_flags=-v
15554 verstring=
15555 output_objdir=.
15556 libname=conftest
15557 lt_save_allow_undefined_flag=$allow_undefined_flag
15558 allow_undefined_flag=
15559 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15560 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15561 ac_status=$?
15562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15563 test $ac_status = 0; }
15564 then
15565 lt_cv_archive_cmds_need_lc=no
15566 else
15567 lt_cv_archive_cmds_need_lc=yes
15569 allow_undefined_flag=$lt_save_allow_undefined_flag
15570 else
15571 cat conftest.err 1>&5
15573 $RM conftest*
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15577 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15578 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15580 esac
15583 esac
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15742 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15744 if test "$GCC" = yes; then
15745 case $host_os in
15746 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15747 *) lt_awk_arg="/^libraries:/" ;;
15748 esac
15749 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15750 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
15751 # if the path contains ";" then we assume it to be the separator
15752 # otherwise default to the standard path separator (i.e. ":") - it is
15753 # assumed that no part of a normal pathname contains ";" but that should
15754 # okay in the real world where ";" in dirpaths is itself problematic.
15755 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
15756 else
15757 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15759 # Ok, now we have the path, separated by spaces, we can step through it
15760 # and add multilib dir if necessary.
15761 lt_tmp_lt_search_path_spec=
15762 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15763 for lt_sys_path in $lt_search_path_spec; do
15764 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15765 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15766 else
15767 test -d "$lt_sys_path" && \
15768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15770 done
15771 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
15772 BEGIN {RS=" "; FS="/|\n";} {
15773 lt_foo="";
15774 lt_count=0;
15775 for (lt_i = NF; lt_i > 0; lt_i--) {
15776 if ($lt_i != "" && $lt_i != ".") {
15777 if ($lt_i == "..") {
15778 lt_count++;
15779 } else {
15780 if (lt_count == 0) {
15781 lt_foo="/" $lt_i lt_foo;
15782 } else {
15783 lt_count--;
15788 if (lt_foo != "") { lt_freq[lt_foo]++; }
15789 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15791 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
15792 else
15793 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15795 library_names_spec=
15796 libname_spec='lib$name'
15797 soname_spec=
15798 shrext_cmds=".so"
15799 postinstall_cmds=
15800 postuninstall_cmds=
15801 finish_cmds=
15802 finish_eval=
15803 shlibpath_var=
15804 shlibpath_overrides_runpath=unknown
15805 version_type=none
15806 dynamic_linker="$host_os ld.so"
15807 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15808 need_lib_prefix=unknown
15809 hardcode_into_libs=no
15811 # when you set need_version to no, make sure it does not cause -set_version
15812 # flags to be left without arguments
15813 need_version=unknown
15815 case $host_os in
15816 aix3*)
15817 version_type=linux
15818 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15819 shlibpath_var=LIBPATH
15821 # AIX 3 has no versioning support, so we append a major version to the name.
15822 soname_spec='${libname}${release}${shared_ext}$major'
15825 aix[4-9]*)
15826 version_type=linux
15827 need_lib_prefix=no
15828 need_version=no
15829 hardcode_into_libs=yes
15830 if test "$host_cpu" = ia64; then
15831 # AIX 5 supports IA64
15832 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15833 shlibpath_var=LD_LIBRARY_PATH
15834 else
15835 # With GCC up to 2.95.x, collect2 would create an import file
15836 # for dependence libraries. The import file would start with
15837 # the line `#! .'. This would cause the generated library to
15838 # depend on `.', always an invalid library. This was fixed in
15839 # development snapshots of GCC prior to 3.0.
15840 case $host_os in
15841 aix4 | aix4.[01] | aix4.[01].*)
15842 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15843 echo ' yes '
15844 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15846 else
15847 can_build_shared=no
15850 esac
15851 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15852 # soname into executable. Probably we can add versioning support to
15853 # collect2, so additional links can be useful in future.
15854 if test "$aix_use_runtimelinking" = yes; then
15855 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15856 # instead of lib<name>.a to let people know that these are not
15857 # typical AIX shared libraries.
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859 else
15860 # We preserve .a as extension for shared libraries through AIX4.2
15861 # and later when we are not doing run time linking.
15862 library_names_spec='${libname}${release}.a $libname.a'
15863 soname_spec='${libname}${release}${shared_ext}$major'
15865 shlibpath_var=LIBPATH
15869 amigaos*)
15870 case $host_cpu in
15871 powerpc)
15872 # Since July 2007 AmigaOS4 officially supports .so libraries.
15873 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15876 m68k)
15877 library_names_spec='$libname.ixlibrary $libname.a'
15878 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15879 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'
15881 esac
15884 beos*)
15885 library_names_spec='${libname}${shared_ext}'
15886 dynamic_linker="$host_os ld.so"
15887 shlibpath_var=LIBRARY_PATH
15890 bsdi[45]*)
15891 version_type=linux
15892 need_version=no
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15896 shlibpath_var=LD_LIBRARY_PATH
15897 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15898 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15899 # the default ld.so.conf also contains /usr/contrib/lib and
15900 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15901 # libtool to hard-code these into programs
15904 cygwin* | mingw* | pw32* | cegcc*)
15905 version_type=windows
15906 shrext_cmds=".dll"
15907 need_version=no
15908 need_lib_prefix=no
15910 case $GCC,$host_os in
15911 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15912 library_names_spec='$libname.dll.a'
15913 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15914 postinstall_cmds='base_file=`basename \${file}`~
15915 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15916 dldir=$destdir/`dirname \$dlpath`~
15917 test -d \$dldir || mkdir -p \$dldir~
15918 $install_prog $dir/$dlname \$dldir/$dlname~
15919 chmod a+x \$dldir/$dlname~
15920 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15921 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15923 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15924 dlpath=$dir/\$dldll~
15925 $RM \$dlpath'
15926 shlibpath_overrides_runpath=yes
15928 case $host_os in
15929 cygwin*)
15930 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15932 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15934 mingw* | cegcc*)
15935 # MinGW DLLs use traditional 'lib' prefix
15936 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15937 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15938 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15939 # It is most probably a Windows format PATH printed by
15940 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15941 # path with ; separators, and with drive letters. We can handle the
15942 # drive letters (cygwin fileutils understands them), so leave them,
15943 # especially as we might pass files found there to a mingw objdump,
15944 # which wouldn't understand a cygwinified path. Ahh.
15945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15946 else
15947 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15950 pw32*)
15951 # pw32 DLLs use 'pw' prefix rather than 'lib'
15952 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15954 esac
15958 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15960 esac
15961 dynamic_linker='Win32 ld.exe'
15962 # FIXME: first we should search . and the directory the executable is in
15963 shlibpath_var=PATH
15966 darwin* | rhapsody*)
15967 dynamic_linker="$host_os dyld"
15968 version_type=darwin
15969 need_lib_prefix=no
15970 need_version=no
15971 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15972 soname_spec='${libname}${release}${major}$shared_ext'
15973 shlibpath_overrides_runpath=yes
15974 shlibpath_var=DYLD_LIBRARY_PATH
15975 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15977 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15978 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15981 dgux*)
15982 version_type=linux
15983 need_lib_prefix=no
15984 need_version=no
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15986 soname_spec='${libname}${release}${shared_ext}$major'
15987 shlibpath_var=LD_LIBRARY_PATH
15990 freebsd1*)
15991 dynamic_linker=no
15994 freebsd* | dragonfly*)
15995 # DragonFly does not have aout. When/if they implement a new
15996 # versioning mechanism, adjust this.
15997 if test -x /usr/bin/objformat; then
15998 objformat=`/usr/bin/objformat`
15999 else
16000 case $host_os in
16001 freebsd[123]*) objformat=aout ;;
16002 *) objformat=elf ;;
16003 esac
16005 version_type=freebsd-$objformat
16006 case $version_type in
16007 freebsd-elf*)
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16009 need_version=no
16010 need_lib_prefix=no
16012 freebsd-*)
16013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16014 need_version=yes
16016 esac
16017 shlibpath_var=LD_LIBRARY_PATH
16018 case $host_os in
16019 freebsd2*)
16020 shlibpath_overrides_runpath=yes
16022 freebsd3.[01]* | freebsdelf3.[01]*)
16023 shlibpath_overrides_runpath=yes
16024 hardcode_into_libs=yes
16026 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16027 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16028 shlibpath_overrides_runpath=no
16029 hardcode_into_libs=yes
16031 *) # from 4.6 on, and DragonFly
16032 shlibpath_overrides_runpath=yes
16033 hardcode_into_libs=yes
16035 esac
16038 gnu*)
16039 version_type=linux
16040 need_lib_prefix=no
16041 need_version=no
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16043 soname_spec='${libname}${release}${shared_ext}$major'
16044 shlibpath_var=LD_LIBRARY_PATH
16045 hardcode_into_libs=yes
16048 hpux9* | hpux10* | hpux11*)
16049 # Give a soname corresponding to the major version so that dld.sl refuses to
16050 # link against other versions.
16051 version_type=sunos
16052 need_lib_prefix=no
16053 need_version=no
16054 case $host_cpu in
16055 ia64*)
16056 shrext_cmds='.so'
16057 hardcode_into_libs=yes
16058 dynamic_linker="$host_os dld.so"
16059 shlibpath_var=LD_LIBRARY_PATH
16060 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16063 if test "X$HPUX_IA64_MODE" = X32; then
16064 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16065 else
16066 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16068 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16070 hppa*64*)
16071 shrext_cmds='.sl'
16072 hardcode_into_libs=yes
16073 dynamic_linker="$host_os dld.sl"
16074 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16075 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16079 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16082 shrext_cmds='.sl'
16083 dynamic_linker="$host_os dld.sl"
16084 shlibpath_var=SHLIB_PATH
16085 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16089 esac
16090 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16091 postinstall_cmds='chmod 555 $lib'
16094 interix[3-9]*)
16095 version_type=linux
16096 need_lib_prefix=no
16097 need_version=no
16098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16099 soname_spec='${libname}${release}${shared_ext}$major'
16100 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16101 shlibpath_var=LD_LIBRARY_PATH
16102 shlibpath_overrides_runpath=no
16103 hardcode_into_libs=yes
16106 irix5* | irix6* | nonstopux*)
16107 case $host_os in
16108 nonstopux*) version_type=nonstopux ;;
16110 if test "$lt_cv_prog_gnu_ld" = yes; then
16111 version_type=linux
16112 else
16113 version_type=irix
16114 fi ;;
16115 esac
16116 need_lib_prefix=no
16117 need_version=no
16118 soname_spec='${libname}${release}${shared_ext}$major'
16119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16120 case $host_os in
16121 irix5* | nonstopux*)
16122 libsuff= shlibsuff=
16125 case $LD in # libtool.m4 will add one of these switches to LD
16126 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16127 libsuff= shlibsuff= libmagic=32-bit;;
16128 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16129 libsuff=32 shlibsuff=N32 libmagic=N32;;
16130 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16131 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16132 *) libsuff= shlibsuff= libmagic=never-match;;
16133 esac
16135 esac
16136 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16137 shlibpath_overrides_runpath=no
16138 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16139 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16140 hardcode_into_libs=yes
16143 # No shared lib support for Linux oldld, aout, or coff.
16144 linux*oldld* | linux*aout* | linux*coff*)
16145 dynamic_linker=no
16148 # This must be Linux ELF.
16149 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16150 version_type=linux
16151 need_lib_prefix=no
16152 need_version=no
16153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16154 soname_spec='${libname}${release}${shared_ext}$major'
16155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16156 shlibpath_var=LD_LIBRARY_PATH
16157 shlibpath_overrides_runpath=no
16159 # Some binutils ld are patched to set DT_RUNPATH
16160 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16161 $as_echo_n "(cached) " >&6
16162 else
16163 lt_cv_shlibpath_overrides_runpath=no
16164 save_LDFLAGS=$LDFLAGS
16165 save_libdir=$libdir
16166 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16167 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16169 /* end confdefs.h. */
16172 main ()
16176 return 0;
16178 _ACEOF
16179 if ac_fn_c_try_link "$LINENO"; then :
16180 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16181 lt_cv_shlibpath_overrides_runpath=yes
16184 rm -f core conftest.err conftest.$ac_objext \
16185 conftest$ac_exeext conftest.$ac_ext
16186 LDFLAGS=$save_LDFLAGS
16187 libdir=$save_libdir
16191 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16193 # This implies no fast_install, which is unacceptable.
16194 # Some rework will be needed to allow for fast_install
16195 # before this can be enabled.
16196 hardcode_into_libs=yes
16198 # Append ld.so.conf contents to the search path
16199 if test -f /etc/ld.so.conf; then
16200 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' ' '`
16201 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16204 # We used to test for /lib/ld.so.1 and disable shared libraries on
16205 # powerpc, because MkLinux only supported shared libraries with the
16206 # GNU dynamic linker. Since this was broken with cross compilers,
16207 # most powerpc-linux boxes support dynamic linking these days and
16208 # people can always --disable-shared, the test was removed, and we
16209 # assume the GNU/Linux dynamic linker is in use.
16210 dynamic_linker='GNU/Linux ld.so'
16213 netbsd*)
16214 version_type=sunos
16215 need_lib_prefix=no
16216 need_version=no
16217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16220 dynamic_linker='NetBSD (a.out) ld.so'
16221 else
16222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16223 soname_spec='${libname}${release}${shared_ext}$major'
16224 dynamic_linker='NetBSD ld.elf_so'
16226 shlibpath_var=LD_LIBRARY_PATH
16227 shlibpath_overrides_runpath=yes
16228 hardcode_into_libs=yes
16231 newsos6)
16232 version_type=linux
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16234 shlibpath_var=LD_LIBRARY_PATH
16235 shlibpath_overrides_runpath=yes
16238 *nto* | *qnx*)
16239 version_type=qnx
16240 need_lib_prefix=no
16241 need_version=no
16242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243 soname_spec='${libname}${release}${shared_ext}$major'
16244 shlibpath_var=LD_LIBRARY_PATH
16245 shlibpath_overrides_runpath=no
16246 hardcode_into_libs=yes
16247 dynamic_linker='ldqnx.so'
16250 openbsd*)
16251 version_type=sunos
16252 sys_lib_dlsearch_path_spec="/usr/lib"
16253 need_lib_prefix=no
16254 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16255 case $host_os in
16256 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16257 *) need_version=no ;;
16258 esac
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16260 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16261 shlibpath_var=LD_LIBRARY_PATH
16262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16263 case $host_os in
16264 openbsd2.[89] | openbsd2.[89].*)
16265 shlibpath_overrides_runpath=no
16268 shlibpath_overrides_runpath=yes
16270 esac
16271 else
16272 shlibpath_overrides_runpath=yes
16276 os2*)
16277 libname_spec='$name'
16278 shrext_cmds=".dll"
16279 need_lib_prefix=no
16280 library_names_spec='$libname${shared_ext} $libname.a'
16281 dynamic_linker='OS/2 ld.exe'
16282 shlibpath_var=LIBPATH
16285 osf3* | osf4* | osf5*)
16286 version_type=osf
16287 need_lib_prefix=no
16288 need_version=no
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16291 shlibpath_var=LD_LIBRARY_PATH
16292 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16293 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16296 rdos*)
16297 dynamic_linker=no
16300 solaris*)
16301 version_type=linux
16302 need_lib_prefix=no
16303 need_version=no
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305 soname_spec='${libname}${release}${shared_ext}$major'
16306 shlibpath_var=LD_LIBRARY_PATH
16307 shlibpath_overrides_runpath=yes
16308 hardcode_into_libs=yes
16309 # ldd complains unless libraries are executable
16310 postinstall_cmds='chmod +x $lib'
16313 sunos4*)
16314 version_type=sunos
16315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16316 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16317 shlibpath_var=LD_LIBRARY_PATH
16318 shlibpath_overrides_runpath=yes
16319 if test "$with_gnu_ld" = yes; then
16320 need_lib_prefix=no
16322 need_version=yes
16325 sysv4 | sysv4.3*)
16326 version_type=linux
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328 soname_spec='${libname}${release}${shared_ext}$major'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 case $host_vendor in
16331 sni)
16332 shlibpath_overrides_runpath=no
16333 need_lib_prefix=no
16334 runpath_var=LD_RUN_PATH
16336 siemens)
16337 need_lib_prefix=no
16339 motorola)
16340 need_lib_prefix=no
16341 need_version=no
16342 shlibpath_overrides_runpath=no
16343 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16345 esac
16348 sysv4*MP*)
16349 if test -d /usr/nec ;then
16350 version_type=linux
16351 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16352 soname_spec='$libname${shared_ext}.$major'
16353 shlibpath_var=LD_LIBRARY_PATH
16357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16358 version_type=freebsd-elf
16359 need_lib_prefix=no
16360 need_version=no
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16362 soname_spec='${libname}${release}${shared_ext}$major'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath=yes
16365 hardcode_into_libs=yes
16366 if test "$with_gnu_ld" = yes; then
16367 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16368 else
16369 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16370 case $host_os in
16371 sco3.2v5*)
16372 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16374 esac
16376 sys_lib_dlsearch_path_spec='/usr/lib'
16379 tpf*)
16380 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16381 version_type=linux
16382 need_lib_prefix=no
16383 need_version=no
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 shlibpath_overrides_runpath=no
16387 hardcode_into_libs=yes
16390 uts4*)
16391 version_type=linux
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16393 soname_spec='${libname}${release}${shared_ext}$major'
16394 shlibpath_var=LD_LIBRARY_PATH
16398 dynamic_linker=no
16400 esac
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16402 $as_echo "$dynamic_linker" >&6; }
16403 test "$dynamic_linker" = no && can_build_shared=no
16405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16406 if test "$GCC" = yes; then
16407 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16411 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16414 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16504 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16505 hardcode_action=
16506 if test -n "$hardcode_libdir_flag_spec" ||
16507 test -n "$runpath_var" ||
16508 test "X$hardcode_automatic" = "Xyes" ; then
16510 # We can hardcode non-existent directories.
16511 if test "$hardcode_direct" != no &&
16512 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16513 # have to relink, otherwise we might link with an installed library
16514 # when we should be linking with a yet-to-be-installed one
16515 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16516 test "$hardcode_minus_L" != no; then
16517 # Linking always hardcodes the temporary library directory.
16518 hardcode_action=relink
16519 else
16520 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16521 hardcode_action=immediate
16523 else
16524 # We cannot hardcode anything, or else we can only hardcode existing
16525 # directories.
16526 hardcode_action=unsupported
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16529 $as_echo "$hardcode_action" >&6; }
16531 if test "$hardcode_action" = relink ||
16532 test "$inherit_rpath" = yes; then
16533 # Fast installation is not supported
16534 enable_fast_install=no
16535 elif test "$shlibpath_overrides_runpath" = yes ||
16536 test "$enable_shared" = no; then
16537 # Fast installation is not necessary
16538 enable_fast_install=needless
16546 if test "x$enable_dlopen" != xyes; then
16547 enable_dlopen=unknown
16548 enable_dlopen_self=unknown
16549 enable_dlopen_self_static=unknown
16550 else
16551 lt_cv_dlopen=no
16552 lt_cv_dlopen_libs=
16554 case $host_os in
16555 beos*)
16556 lt_cv_dlopen="load_add_on"
16557 lt_cv_dlopen_libs=
16558 lt_cv_dlopen_self=yes
16561 mingw* | pw32* | cegcc*)
16562 lt_cv_dlopen="LoadLibrary"
16563 lt_cv_dlopen_libs=
16566 cygwin*)
16567 lt_cv_dlopen="dlopen"
16568 lt_cv_dlopen_libs=
16571 darwin*)
16572 # if libdl is installed we need to link against it
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16574 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16575 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16576 $as_echo_n "(cached) " >&6
16577 else
16578 ac_check_lib_save_LIBS=$LIBS
16579 LIBS="-ldl $LIBS"
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581 /* end confdefs.h. */
16583 /* Override any GCC internal prototype to avoid an error.
16584 Use char because int might match the return type of a GCC
16585 builtin and then its argument prototype would still apply. */
16586 #ifdef __cplusplus
16587 extern "C"
16588 #endif
16589 char dlopen ();
16591 main ()
16593 return dlopen ();
16595 return 0;
16597 _ACEOF
16598 if ac_fn_c_try_link "$LINENO"; then :
16599 ac_cv_lib_dl_dlopen=yes
16600 else
16601 ac_cv_lib_dl_dlopen=no
16603 rm -f core conftest.err conftest.$ac_objext \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16608 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16609 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16610 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16611 else
16613 lt_cv_dlopen="dyld"
16614 lt_cv_dlopen_libs=
16615 lt_cv_dlopen_self=yes
16622 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16623 if test "x$ac_cv_func_shl_load" = x""yes; then :
16624 lt_cv_dlopen="shl_load"
16625 else
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16627 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16628 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
16629 $as_echo_n "(cached) " >&6
16630 else
16631 ac_check_lib_save_LIBS=$LIBS
16632 LIBS="-ldld $LIBS"
16633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16634 /* end confdefs.h. */
16636 /* Override any GCC internal prototype to avoid an error.
16637 Use char because int might match the return type of a GCC
16638 builtin and then its argument prototype would still apply. */
16639 #ifdef __cplusplus
16640 extern "C"
16641 #endif
16642 char shl_load ();
16644 main ()
16646 return shl_load ();
16648 return 0;
16650 _ACEOF
16651 if ac_fn_c_try_link "$LINENO"; then :
16652 ac_cv_lib_dld_shl_load=yes
16653 else
16654 ac_cv_lib_dld_shl_load=no
16656 rm -f core conftest.err conftest.$ac_objext \
16657 conftest$ac_exeext conftest.$ac_ext
16658 LIBS=$ac_check_lib_save_LIBS
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16661 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16662 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
16663 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16664 else
16665 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16666 if test "x$ac_cv_func_dlopen" = x""yes; then :
16667 lt_cv_dlopen="dlopen"
16668 else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16670 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16671 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
16672 $as_echo_n "(cached) " >&6
16673 else
16674 ac_check_lib_save_LIBS=$LIBS
16675 LIBS="-ldl $LIBS"
16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16679 /* Override any GCC internal prototype to avoid an error.
16680 Use char because int might match the return type of a GCC
16681 builtin and then its argument prototype would still apply. */
16682 #ifdef __cplusplus
16683 extern "C"
16684 #endif
16685 char dlopen ();
16687 main ()
16689 return dlopen ();
16691 return 0;
16693 _ACEOF
16694 if ac_fn_c_try_link "$LINENO"; then :
16695 ac_cv_lib_dl_dlopen=yes
16696 else
16697 ac_cv_lib_dl_dlopen=no
16699 rm -f core conftest.err conftest.$ac_objext \
16700 conftest$ac_exeext conftest.$ac_ext
16701 LIBS=$ac_check_lib_save_LIBS
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16704 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16705 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
16706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16707 else
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16709 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16710 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 ac_check_lib_save_LIBS=$LIBS
16714 LIBS="-lsvld $LIBS"
16715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16716 /* end confdefs.h. */
16718 /* Override any GCC internal prototype to avoid an error.
16719 Use char because int might match the return type of a GCC
16720 builtin and then its argument prototype would still apply. */
16721 #ifdef __cplusplus
16722 extern "C"
16723 #endif
16724 char dlopen ();
16726 main ()
16728 return dlopen ();
16730 return 0;
16732 _ACEOF
16733 if ac_fn_c_try_link "$LINENO"; then :
16734 ac_cv_lib_svld_dlopen=yes
16735 else
16736 ac_cv_lib_svld_dlopen=no
16738 rm -f core conftest.err conftest.$ac_objext \
16739 conftest$ac_exeext conftest.$ac_ext
16740 LIBS=$ac_check_lib_save_LIBS
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16743 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16744 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
16745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16746 else
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16748 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16749 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
16750 $as_echo_n "(cached) " >&6
16751 else
16752 ac_check_lib_save_LIBS=$LIBS
16753 LIBS="-ldld $LIBS"
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16757 /* Override any GCC internal prototype to avoid an error.
16758 Use char because int might match the return type of a GCC
16759 builtin and then its argument prototype would still apply. */
16760 #ifdef __cplusplus
16761 extern "C"
16762 #endif
16763 char dld_link ();
16765 main ()
16767 return dld_link ();
16769 return 0;
16771 _ACEOF
16772 if ac_fn_c_try_link "$LINENO"; then :
16773 ac_cv_lib_dld_dld_link=yes
16774 else
16775 ac_cv_lib_dld_dld_link=no
16777 rm -f core conftest.err conftest.$ac_objext \
16778 conftest$ac_exeext conftest.$ac_ext
16779 LIBS=$ac_check_lib_save_LIBS
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16782 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16783 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
16784 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16803 esac
16805 if test "x$lt_cv_dlopen" != xno; then
16806 enable_dlopen=yes
16807 else
16808 enable_dlopen=no
16811 case $lt_cv_dlopen in
16812 dlopen)
16813 save_CPPFLAGS="$CPPFLAGS"
16814 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16816 save_LDFLAGS="$LDFLAGS"
16817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16819 save_LIBS="$LIBS"
16820 LIBS="$lt_cv_dlopen_libs $LIBS"
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16823 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16824 if test "${lt_cv_dlopen_self+set}" = set; then :
16825 $as_echo_n "(cached) " >&6
16826 else
16827 if test "$cross_compiling" = yes; then :
16828 lt_cv_dlopen_self=cross
16829 else
16830 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16831 lt_status=$lt_dlunknown
16832 cat > conftest.$ac_ext <<_LT_EOF
16833 #line 16833 "configure"
16834 #include "confdefs.h"
16836 #if HAVE_DLFCN_H
16837 #include <dlfcn.h>
16838 #endif
16840 #include <stdio.h>
16842 #ifdef RTLD_GLOBAL
16843 # define LT_DLGLOBAL RTLD_GLOBAL
16844 #else
16845 # ifdef DL_GLOBAL
16846 # define LT_DLGLOBAL DL_GLOBAL
16847 # else
16848 # define LT_DLGLOBAL 0
16849 # endif
16850 #endif
16852 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16853 find out it does not work in some platform. */
16854 #ifndef LT_DLLAZY_OR_NOW
16855 # ifdef RTLD_LAZY
16856 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16857 # else
16858 # ifdef DL_LAZY
16859 # define LT_DLLAZY_OR_NOW DL_LAZY
16860 # else
16861 # ifdef RTLD_NOW
16862 # define LT_DLLAZY_OR_NOW RTLD_NOW
16863 # else
16864 # ifdef DL_NOW
16865 # define LT_DLLAZY_OR_NOW DL_NOW
16866 # else
16867 # define LT_DLLAZY_OR_NOW 0
16868 # endif
16869 # endif
16870 # endif
16871 # endif
16872 #endif
16874 void fnord() { int i=42;}
16875 int main ()
16877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16878 int status = $lt_dlunknown;
16880 if (self)
16882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16884 /* dlclose (self); */
16886 else
16887 puts (dlerror ());
16889 return status;
16891 _LT_EOF
16892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16893 (eval $ac_link) 2>&5
16894 ac_status=$?
16895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16896 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16897 (./conftest; exit; ) >&5 2>/dev/null
16898 lt_status=$?
16899 case x$lt_status in
16900 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16901 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16902 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16903 esac
16904 else :
16905 # compilation failed
16906 lt_cv_dlopen_self=no
16909 rm -fr conftest*
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16914 $as_echo "$lt_cv_dlopen_self" >&6; }
16916 if test "x$lt_cv_dlopen_self" = xyes; then
16917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16919 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16920 if test "${lt_cv_dlopen_self_static+set}" = set; then :
16921 $as_echo_n "(cached) " >&6
16922 else
16923 if test "$cross_compiling" = yes; then :
16924 lt_cv_dlopen_self_static=cross
16925 else
16926 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16927 lt_status=$lt_dlunknown
16928 cat > conftest.$ac_ext <<_LT_EOF
16929 #line 16929 "configure"
16930 #include "confdefs.h"
16932 #if HAVE_DLFCN_H
16933 #include <dlfcn.h>
16934 #endif
16936 #include <stdio.h>
16938 #ifdef RTLD_GLOBAL
16939 # define LT_DLGLOBAL RTLD_GLOBAL
16940 #else
16941 # ifdef DL_GLOBAL
16942 # define LT_DLGLOBAL DL_GLOBAL
16943 # else
16944 # define LT_DLGLOBAL 0
16945 # endif
16946 #endif
16948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16949 find out it does not work in some platform. */
16950 #ifndef LT_DLLAZY_OR_NOW
16951 # ifdef RTLD_LAZY
16952 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16953 # else
16954 # ifdef DL_LAZY
16955 # define LT_DLLAZY_OR_NOW DL_LAZY
16956 # else
16957 # ifdef RTLD_NOW
16958 # define LT_DLLAZY_OR_NOW RTLD_NOW
16959 # else
16960 # ifdef DL_NOW
16961 # define LT_DLLAZY_OR_NOW DL_NOW
16962 # else
16963 # define LT_DLLAZY_OR_NOW 0
16964 # endif
16965 # endif
16966 # endif
16967 # endif
16968 #endif
16970 void fnord() { int i=42;}
16971 int main ()
16973 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16974 int status = $lt_dlunknown;
16976 if (self)
16978 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16979 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16980 /* dlclose (self); */
16982 else
16983 puts (dlerror ());
16985 return status;
16987 _LT_EOF
16988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16989 (eval $ac_link) 2>&5
16990 ac_status=$?
16991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16992 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16993 (./conftest; exit; ) >&5 2>/dev/null
16994 lt_status=$?
16995 case x$lt_status in
16996 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16997 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16998 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16999 esac
17000 else :
17001 # compilation failed
17002 lt_cv_dlopen_self_static=no
17005 rm -fr conftest*
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17010 $as_echo "$lt_cv_dlopen_self_static" >&6; }
17013 CPPFLAGS="$save_CPPFLAGS"
17014 LDFLAGS="$save_LDFLAGS"
17015 LIBS="$save_LIBS"
17017 esac
17019 case $lt_cv_dlopen_self in
17020 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17021 *) enable_dlopen_self=unknown ;;
17022 esac
17024 case $lt_cv_dlopen_self_static in
17025 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17026 *) enable_dlopen_self_static=unknown ;;
17027 esac
17046 striplib=
17047 old_striplib=
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17049 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
17050 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17051 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17052 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17054 $as_echo "yes" >&6; }
17055 else
17056 # FIXME - insert some real tests, host_os isn't really good enough
17057 case $host_os in
17058 darwin*)
17059 if test -n "$STRIP" ; then
17060 striplib="$STRIP -x"
17061 old_striplib="$STRIP -S"
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17063 $as_echo "yes" >&6; }
17064 else
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17066 $as_echo "no" >&6; }
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071 $as_echo "no" >&6; }
17073 esac
17087 # Report which library types will actually be built
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17089 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17091 $as_echo "$can_build_shared" >&6; }
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17094 $as_echo_n "checking whether to build shared libraries... " >&6; }
17095 test "$can_build_shared" = "no" && enable_shared=no
17097 # On AIX, shared libraries and static libraries use the same namespace, and
17098 # are all built from PIC.
17099 case $host_os in
17100 aix3*)
17101 test "$enable_shared" = yes && enable_static=no
17102 if test -n "$RANLIB"; then
17103 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17104 postinstall_cmds='$RANLIB $lib'
17108 aix[4-9]*)
17109 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17110 test "$enable_shared" = yes && enable_static=no
17113 esac
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17115 $as_echo "$enable_shared" >&6; }
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17118 $as_echo_n "checking whether to build static libraries... " >&6; }
17119 # Make sure either enable_shared or enable_static is yes.
17120 test "$enable_shared" = yes || enable_static=yes
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17122 $as_echo "$enable_static" >&6; }
17128 ac_ext=c
17129 ac_cpp='$CPP $CPPFLAGS'
17130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17134 CC="$lt_save_CC"
17137 ac_ext=cpp
17138 ac_cpp='$CXXCPP $CPPFLAGS'
17139 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17140 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17141 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17143 archive_cmds_need_lc_CXX=no
17144 allow_undefined_flag_CXX=
17145 always_export_symbols_CXX=no
17146 archive_expsym_cmds_CXX=
17147 compiler_needs_object_CXX=no
17148 export_dynamic_flag_spec_CXX=
17149 hardcode_direct_CXX=no
17150 hardcode_direct_absolute_CXX=no
17151 hardcode_libdir_flag_spec_CXX=
17152 hardcode_libdir_flag_spec_ld_CXX=
17153 hardcode_libdir_separator_CXX=
17154 hardcode_minus_L_CXX=no
17155 hardcode_shlibpath_var_CXX=unsupported
17156 hardcode_automatic_CXX=no
17157 inherit_rpath_CXX=no
17158 module_cmds_CXX=
17159 module_expsym_cmds_CXX=
17160 link_all_deplibs_CXX=unknown
17161 old_archive_cmds_CXX=$old_archive_cmds
17162 no_undefined_flag_CXX=
17163 whole_archive_flag_spec_CXX=
17164 enable_shared_with_static_runtimes_CXX=no
17166 # Source file extension for C++ test sources.
17167 ac_ext=cpp
17169 # Object file extension for compiled C++ test sources.
17170 objext=o
17171 objext_CXX=$objext
17173 # No sense in running all these tests if we already determined that
17174 # the CXX compiler isn't working. Some variables (like enable_shared)
17175 # are currently assumed to apply to all compilers on this platform,
17176 # and will be corrupted by setting them based on a non-working compiler.
17177 if test "$_lt_caught_CXX_error" != yes; then
17178 # Code to be used in simple compile tests
17179 lt_simple_compile_test_code="int some_variable = 0;"
17181 # Code to be used in simple link tests
17182 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17184 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17191 # If no C compiler was specified, use CC.
17192 LTCC=${LTCC-"$CC"}
17194 # If no C compiler flags were specified, use CFLAGS.
17195 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17197 # Allow CC to be a program name with arguments.
17198 compiler=$CC
17201 # save warnings/boilerplate of simple test code
17202 ac_outfile=conftest.$ac_objext
17203 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17204 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17205 _lt_compiler_boilerplate=`cat conftest.err`
17206 $RM conftest*
17208 ac_outfile=conftest.$ac_objext
17209 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17210 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17211 _lt_linker_boilerplate=`cat conftest.err`
17212 $RM -r conftest*
17215 # Allow CC to be a program name with arguments.
17216 lt_save_CC=$CC
17217 lt_save_LD=$LD
17218 lt_save_GCC=$GCC
17219 GCC=$GXX
17220 lt_save_with_gnu_ld=$with_gnu_ld
17221 lt_save_path_LD=$lt_cv_path_LD
17222 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17223 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17224 else
17225 $as_unset lt_cv_prog_gnu_ld
17227 if test -n "${lt_cv_path_LDCXX+set}"; then
17228 lt_cv_path_LD=$lt_cv_path_LDCXX
17229 else
17230 $as_unset lt_cv_path_LD
17232 test -z "${LDCXX+set}" || LD=$LDCXX
17233 CC=${CXX-"c++"}
17234 compiler=$CC
17235 compiler_CXX=$CC
17236 for cc_temp in $compiler""; do
17237 case $cc_temp in
17238 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17239 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17240 \-*) ;;
17241 *) break;;
17242 esac
17243 done
17244 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17247 if test -n "$compiler"; then
17248 # We don't want -fno-exception when compiling C++ code, so set the
17249 # no_builtin_flag separately
17250 if test "$GXX" = yes; then
17251 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17252 else
17253 lt_prog_compiler_no_builtin_flag_CXX=
17256 if test "$GXX" = yes; then
17257 # Set up default GNU C++ configuration
17261 # Check whether --with-gnu-ld was given.
17262 if test "${with_gnu_ld+set}" = set; then :
17263 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17264 else
17265 with_gnu_ld=no
17268 ac_prog=ld
17269 if test "$GCC" = yes; then
17270 # Check if gcc -print-prog-name=ld gives a path.
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17272 $as_echo_n "checking for ld used by $CC... " >&6; }
17273 case $host in
17274 *-*-mingw*)
17275 # gcc leaves a trailing carriage return which upsets mingw
17276 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17278 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17279 esac
17280 case $ac_prog in
17281 # Accept absolute paths.
17282 [\\/]* | ?:[\\/]*)
17283 re_direlt='/[^/][^/]*/\.\./'
17284 # Canonicalize the pathname of ld
17285 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17286 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17287 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17288 done
17289 test -z "$LD" && LD="$ac_prog"
17292 # If it fails, then pretend we aren't using GCC.
17293 ac_prog=ld
17296 # If it is relative, then search for the first ld in PATH.
17297 with_gnu_ld=unknown
17299 esac
17300 elif test "$with_gnu_ld" = yes; then
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17302 $as_echo_n "checking for GNU ld... " >&6; }
17303 else
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17305 $as_echo_n "checking for non-GNU ld... " >&6; }
17307 if test "${lt_cv_path_LD+set}" = set; then :
17308 $as_echo_n "(cached) " >&6
17309 else
17310 if test -z "$LD"; then
17311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17312 for ac_dir in $PATH; do
17313 IFS="$lt_save_ifs"
17314 test -z "$ac_dir" && ac_dir=.
17315 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17316 lt_cv_path_LD="$ac_dir/$ac_prog"
17317 # Check to see if the program is GNU ld. I'd rather use --version,
17318 # but apparently some variants of GNU ld only accept -v.
17319 # Break only if it was the GNU/non-GNU ld that we prefer.
17320 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17321 *GNU* | *'with BFD'*)
17322 test "$with_gnu_ld" != no && break
17325 test "$with_gnu_ld" != yes && break
17327 esac
17329 done
17330 IFS="$lt_save_ifs"
17331 else
17332 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17336 LD="$lt_cv_path_LD"
17337 if test -n "$LD"; then
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17339 $as_echo "$LD" >&6; }
17340 else
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17342 $as_echo "no" >&6; }
17344 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17346 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17347 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
17348 $as_echo_n "(cached) " >&6
17349 else
17350 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17351 case `$LD -v 2>&1 </dev/null` in
17352 *GNU* | *'with BFD'*)
17353 lt_cv_prog_gnu_ld=yes
17356 lt_cv_prog_gnu_ld=no
17358 esac
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17361 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17362 with_gnu_ld=$lt_cv_prog_gnu_ld
17370 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17371 # archiving commands below assume that GNU ld is being used.
17372 if test "$with_gnu_ld" = yes; then
17373 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17374 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'
17376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17377 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17379 # If archive_cmds runs LD, not CC, wlarc should be empty
17380 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17381 # investigate it a little bit more. (MM)
17382 wlarc='${wl}'
17384 # ancient GNU ld didn't support --whole-archive et. al.
17385 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17386 $GREP 'no-whole-archive' > /dev/null; then
17387 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17388 else
17389 whole_archive_flag_spec_CXX=
17391 else
17392 with_gnu_ld=no
17393 wlarc=
17395 # A generic and very simple default shared library creation
17396 # command for GNU C++ for the case where it uses the native
17397 # linker, instead of GNU ld. If possible, this setting should
17398 # overridden to take advantage of the native linker features on
17399 # the platform it is being used on.
17400 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17403 # Commands to make compiler produce verbose output that lists
17404 # what "hidden" libraries, object files and flags are used when
17405 # linking a shared library.
17406 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17408 else
17409 GXX=no
17410 with_gnu_ld=no
17411 wlarc=
17414 # PORTME: fill in a description of your system's C++ link characteristics
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17416 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17417 ld_shlibs_CXX=yes
17418 case $host_os in
17419 aix3*)
17420 # FIXME: insert proper C++ library support
17421 ld_shlibs_CXX=no
17423 aix[4-9]*)
17424 if test "$host_cpu" = ia64; then
17425 # On IA64, the linker does run time linking by default, so we don't
17426 # have to do anything special.
17427 aix_use_runtimelinking=no
17428 exp_sym_flag='-Bexport'
17429 no_entry_flag=""
17430 else
17431 aix_use_runtimelinking=no
17433 # Test if we are trying to use run time linking or normal
17434 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17435 # need to do runtime linking.
17436 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17437 for ld_flag in $LDFLAGS; do
17438 case $ld_flag in
17439 *-brtl*)
17440 aix_use_runtimelinking=yes
17441 break
17443 esac
17444 done
17446 esac
17448 exp_sym_flag='-bexport'
17449 no_entry_flag='-bnoentry'
17452 # When large executables or shared objects are built, AIX ld can
17453 # have problems creating the table of contents. If linking a library
17454 # or program results in "error TOC overflow" add -mminimal-toc to
17455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17458 archive_cmds_CXX=''
17459 hardcode_direct_CXX=yes
17460 hardcode_direct_absolute_CXX=yes
17461 hardcode_libdir_separator_CXX=':'
17462 link_all_deplibs_CXX=yes
17463 file_list_spec_CXX='${wl}-f,'
17465 if test "$GXX" = yes; then
17466 case $host_os in aix4.[012]|aix4.[012].*)
17467 # We only want to do this on AIX 4.2 and lower, the check
17468 # below for broken collect2 doesn't work under 4.3+
17469 collect2name=`${CC} -print-prog-name=collect2`
17470 if test -f "$collect2name" &&
17471 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17472 then
17473 # We have reworked collect2
17475 else
17476 # We have old collect2
17477 hardcode_direct_CXX=unsupported
17478 # It fails to find uninstalled libraries when the uninstalled
17479 # path is not listed in the libpath. Setting hardcode_minus_L
17480 # to unsupported forces relinking
17481 hardcode_minus_L_CXX=yes
17482 hardcode_libdir_flag_spec_CXX='-L$libdir'
17483 hardcode_libdir_separator_CXX=
17485 esac
17486 shared_flag='-shared'
17487 if test "$aix_use_runtimelinking" = yes; then
17488 shared_flag="$shared_flag "'${wl}-G'
17490 else
17491 # not using gcc
17492 if test "$host_cpu" = ia64; then
17493 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17494 # chokes on -Wl,-G. The following line is correct:
17495 shared_flag='-G'
17496 else
17497 if test "$aix_use_runtimelinking" = yes; then
17498 shared_flag='${wl}-G'
17499 else
17500 shared_flag='${wl}-bM:SRE'
17505 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17506 # It seems that -bexpall does not export symbols beginning with
17507 # underscore (_), so it is better to generate a list of symbols to
17508 # export.
17509 always_export_symbols_CXX=yes
17510 if test "$aix_use_runtimelinking" = yes; then
17511 # Warning - without using the other runtime loading flags (-brtl),
17512 # -berok will link without error, but may produce a broken library.
17513 allow_undefined_flag_CXX='-berok'
17514 # Determine the default libpath from the value encoded in an empty
17515 # executable.
17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17520 main ()
17524 return 0;
17526 _ACEOF
17527 if ac_fn_cxx_try_link "$LINENO"; then :
17529 lt_aix_libpath_sed='
17530 /Import File Strings/,/^$/ {
17531 /^0/ {
17532 s/^0 *\(.*\)$/\1/
17536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17537 # Check for a 64-bit object if we didn't find anything.
17538 if test -z "$aix_libpath"; then
17539 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17542 rm -f core conftest.err conftest.$ac_objext \
17543 conftest$ac_exeext conftest.$ac_ext
17544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17546 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17548 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"
17549 else
17550 if test "$host_cpu" = ia64; then
17551 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17552 allow_undefined_flag_CXX="-z nodefs"
17553 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"
17554 else
17555 # Determine the default libpath from the value encoded in an
17556 # empty executable.
17557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h. */
17561 main ()
17565 return 0;
17567 _ACEOF
17568 if ac_fn_cxx_try_link "$LINENO"; then :
17570 lt_aix_libpath_sed='
17571 /Import File Strings/,/^$/ {
17572 /^0/ {
17573 s/^0 *\(.*\)$/\1/
17577 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17578 # Check for a 64-bit object if we didn't find anything.
17579 if test -z "$aix_libpath"; then
17580 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17583 rm -f core conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
17585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17587 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17588 # Warning - without using the other run time loading flags,
17589 # -berok will link without error, but may produce a broken library.
17590 no_undefined_flag_CXX=' ${wl}-bernotok'
17591 allow_undefined_flag_CXX=' ${wl}-berok'
17592 # Exported symbols can be pulled into shared objects from archives
17593 whole_archive_flag_spec_CXX='$convenience'
17594 archive_cmds_need_lc_CXX=yes
17595 # This is similar to how AIX traditionally builds its shared
17596 # libraries.
17597 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'
17602 beos*)
17603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17604 allow_undefined_flag_CXX=unsupported
17605 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17606 # support --undefined. This deserves some investigation. FIXME
17607 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17608 else
17609 ld_shlibs_CXX=no
17613 chorus*)
17614 case $cc_basename in
17616 # FIXME: insert proper C++ library support
17617 ld_shlibs_CXX=no
17619 esac
17622 cygwin* | mingw* | pw32* | cegcc*)
17623 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17624 # as there is no search path for DLLs.
17625 hardcode_libdir_flag_spec_CXX='-L$libdir'
17626 allow_undefined_flag_CXX=unsupported
17627 always_export_symbols_CXX=no
17628 enable_shared_with_static_runtimes_CXX=yes
17630 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17631 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'
17632 # If the export-symbols file already is a .def file (1st line
17633 # is EXPORTS), use it as is; otherwise, prepend...
17634 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17635 cp $export_symbols $output_objdir/$soname.def;
17636 else
17637 echo EXPORTS > $output_objdir/$soname.def;
17638 cat $export_symbols >> $output_objdir/$soname.def;
17640 $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'
17641 else
17642 ld_shlibs_CXX=no
17645 darwin* | rhapsody*)
17648 archive_cmds_need_lc_CXX=no
17649 hardcode_direct_CXX=no
17650 hardcode_automatic_CXX=yes
17651 hardcode_shlibpath_var_CXX=unsupported
17652 whole_archive_flag_spec_CXX=''
17653 link_all_deplibs_CXX=yes
17654 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17655 case $cc_basename in
17656 ifort*) _lt_dar_can_shared=yes ;;
17657 *) _lt_dar_can_shared=$GCC ;;
17658 esac
17659 if test "$_lt_dar_can_shared" = "yes"; then
17660 output_verbose_link_cmd=echo
17661 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}"
17662 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17663 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}"
17664 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}"
17665 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17666 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}"
17667 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}"
17670 else
17671 ld_shlibs_CXX=no
17676 dgux*)
17677 case $cc_basename in
17678 ec++*)
17679 # FIXME: insert proper C++ library support
17680 ld_shlibs_CXX=no
17682 ghcx*)
17683 # Green Hills C++ Compiler
17684 # FIXME: insert proper C++ library support
17685 ld_shlibs_CXX=no
17688 # FIXME: insert proper C++ library support
17689 ld_shlibs_CXX=no
17691 esac
17694 freebsd[12]*)
17695 # C++ shared libraries reported to be fairly broken before
17696 # switch to ELF
17697 ld_shlibs_CXX=no
17700 freebsd-elf*)
17701 archive_cmds_need_lc_CXX=no
17704 freebsd* | dragonfly*)
17705 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17706 # conventions
17707 ld_shlibs_CXX=yes
17710 gnu*)
17713 hpux9*)
17714 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17715 hardcode_libdir_separator_CXX=:
17716 export_dynamic_flag_spec_CXX='${wl}-E'
17717 hardcode_direct_CXX=yes
17718 hardcode_minus_L_CXX=yes # Not in the search PATH,
17719 # but as the default
17720 # location of the library.
17722 case $cc_basename in
17723 CC*)
17724 # FIXME: insert proper C++ library support
17725 ld_shlibs_CXX=no
17727 aCC*)
17728 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'
17729 # Commands to make compiler produce verbose output that lists
17730 # what "hidden" libraries, object files and flags are used when
17731 # linking a shared library.
17733 # There doesn't appear to be a way to prevent this compiler from
17734 # explicitly linking system object files so we need to strip them
17735 # from the output so that they don't get included in the library
17736 # dependencies.
17737 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
17740 if test "$GXX" = yes; then
17741 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'
17742 else
17743 # FIXME: insert proper C++ library support
17744 ld_shlibs_CXX=no
17747 esac
17750 hpux10*|hpux11*)
17751 if test $with_gnu_ld = no; then
17752 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17753 hardcode_libdir_separator_CXX=:
17755 case $host_cpu in
17756 hppa*64*|ia64*)
17759 export_dynamic_flag_spec_CXX='${wl}-E'
17761 esac
17763 case $host_cpu in
17764 hppa*64*|ia64*)
17765 hardcode_direct_CXX=no
17766 hardcode_shlibpath_var_CXX=no
17769 hardcode_direct_CXX=yes
17770 hardcode_direct_absolute_CXX=yes
17771 hardcode_minus_L_CXX=yes # Not in the search PATH,
17772 # but as the default
17773 # location of the library.
17775 esac
17777 case $cc_basename in
17778 CC*)
17779 # FIXME: insert proper C++ library support
17780 ld_shlibs_CXX=no
17782 aCC*)
17783 case $host_cpu in
17784 hppa*64*)
17785 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17787 ia64*)
17788 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17791 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17793 esac
17794 # Commands to make compiler produce verbose output that lists
17795 # what "hidden" libraries, object files and flags are used when
17796 # linking a shared library.
17798 # There doesn't appear to be a way to prevent this compiler from
17799 # explicitly linking system object files so we need to strip them
17800 # from the output so that they don't get included in the library
17801 # dependencies.
17802 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'
17805 if test "$GXX" = yes; then
17806 if test $with_gnu_ld = no; then
17807 case $host_cpu in
17808 hppa*64*)
17809 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17811 ia64*)
17812 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17815 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'
17817 esac
17819 else
17820 # FIXME: insert proper C++ library support
17821 ld_shlibs_CXX=no
17824 esac
17827 interix[3-9]*)
17828 hardcode_direct_CXX=no
17829 hardcode_shlibpath_var_CXX=no
17830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17831 export_dynamic_flag_spec_CXX='${wl}-E'
17832 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17833 # Instead, shared libraries are loaded at an image base (0x10000000 by
17834 # default) and relocated if they conflict, which is a slow very memory
17835 # consuming and fragmenting process. To avoid this, we pick a random,
17836 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17837 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17838 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'
17839 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'
17841 irix5* | irix6*)
17842 case $cc_basename in
17843 CC*)
17844 # SGI C++
17845 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'
17847 # Archives containing C++ object files must be created using
17848 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17849 # necessary to make sure instantiated templates are included
17850 # in the archive.
17851 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17854 if test "$GXX" = yes; then
17855 if test "$with_gnu_ld" = no; then
17856 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'
17857 else
17858 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'
17861 link_all_deplibs_CXX=yes
17863 esac
17864 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17865 hardcode_libdir_separator_CXX=:
17866 inherit_rpath_CXX=yes
17869 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17870 case $cc_basename in
17871 KCC*)
17872 # Kuck and Associates, Inc. (KAI) C++ Compiler
17874 # KCC will only create a shared library if the output file
17875 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17876 # to its proper name (with version) after linking.
17877 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'
17878 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'
17879 # Commands to make compiler produce verbose output that lists
17880 # what "hidden" libraries, object files and flags are used when
17881 # linking a shared library.
17883 # There doesn't appear to be a way to prevent this compiler from
17884 # explicitly linking system object files so we need to strip them
17885 # from the output so that they don't get included in the library
17886 # dependencies.
17887 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'
17889 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17890 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17892 # Archives containing C++ object files must be created using
17893 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17894 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17896 icpc* | ecpc* )
17897 # Intel C++
17898 with_gnu_ld=yes
17899 # version 8.0 and above of icpc choke on multiply defined symbols
17900 # if we add $predep_objects and $postdep_objects, however 7.1 and
17901 # earlier do not add the objects themselves.
17902 case `$CC -V 2>&1` in
17903 *"Version 7."*)
17904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17905 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'
17907 *) # Version 8.0 or newer
17908 tmp_idyn=
17909 case $host_cpu in
17910 ia64*) tmp_idyn=' -i_dynamic';;
17911 esac
17912 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17913 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'
17915 esac
17916 archive_cmds_need_lc_CXX=no
17917 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17918 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17919 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17921 pgCC* | pgcpp*)
17922 # Portland Group C++ compiler
17923 case `$CC -V` in
17924 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17925 prelink_cmds_CXX='tpldir=Template.dir~
17926 rm -rf $tpldir~
17927 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17928 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17929 old_archive_cmds_CXX='tpldir=Template.dir~
17930 rm -rf $tpldir~
17931 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17932 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17933 $RANLIB $oldlib'
17934 archive_cmds_CXX='tpldir=Template.dir~
17935 rm -rf $tpldir~
17936 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17937 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17938 archive_expsym_cmds_CXX='tpldir=Template.dir~
17939 rm -rf $tpldir~
17940 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17941 $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'
17943 *) # Version 6 will use weak symbols
17944 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17945 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'
17947 esac
17949 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17951 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'
17953 cxx*)
17954 # Compaq C++
17955 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17956 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'
17958 runpath_var=LD_RUN_PATH
17959 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17960 hardcode_libdir_separator_CXX=:
17962 # Commands to make compiler produce verbose output that lists
17963 # what "hidden" libraries, object files and flags are used when
17964 # linking a shared library.
17966 # There doesn't appear to be a way to prevent this compiler from
17967 # explicitly linking system object files so we need to strip them
17968 # from the output so that they don't get included in the library
17969 # dependencies.
17970 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'
17972 xl*)
17973 # IBM XL 8.0 on PPC, with GNU ld
17974 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17975 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17976 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17977 if test "x$supports_anon_versioning" = xyes; then
17978 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17979 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17980 echo "local: *; };" >> $output_objdir/$libname.ver~
17981 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17985 case `$CC -V 2>&1 | sed 5q` in
17986 *Sun\ C*)
17987 # Sun C++ 5.9
17988 no_undefined_flag_CXX=' -zdefs'
17989 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17990 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'
17991 hardcode_libdir_flag_spec_CXX='-R$libdir'
17992 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'
17993 compiler_needs_object_CXX=yes
17995 # Not sure whether something based on
17996 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17997 # would be better.
17998 output_verbose_link_cmd='echo'
18000 # Archives containing C++ object files must be created using
18001 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18002 # necessary to make sure instantiated templates are included
18003 # in the archive.
18004 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18006 esac
18008 esac
18011 lynxos*)
18012 # FIXME: insert proper C++ library support
18013 ld_shlibs_CXX=no
18016 m88k*)
18017 # FIXME: insert proper C++ library support
18018 ld_shlibs_CXX=no
18021 mvs*)
18022 case $cc_basename in
18023 cxx*)
18024 # FIXME: insert proper C++ library support
18025 ld_shlibs_CXX=no
18028 # FIXME: insert proper C++ library support
18029 ld_shlibs_CXX=no
18031 esac
18034 netbsd*)
18035 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18036 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18037 wlarc=
18038 hardcode_libdir_flag_spec_CXX='-R$libdir'
18039 hardcode_direct_CXX=yes
18040 hardcode_shlibpath_var_CXX=no
18042 # Workaround some broken pre-1.5 toolchains
18043 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18046 *nto* | *qnx*)
18047 ld_shlibs_CXX=yes
18050 openbsd2*)
18051 # C++ shared libraries are fairly broken
18052 ld_shlibs_CXX=no
18055 openbsd*)
18056 if test -f /usr/libexec/ld.so; then
18057 hardcode_direct_CXX=yes
18058 hardcode_shlibpath_var_CXX=no
18059 hardcode_direct_absolute_CXX=yes
18060 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18061 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18062 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18063 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18064 export_dynamic_flag_spec_CXX='${wl}-E'
18065 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18067 output_verbose_link_cmd=echo
18068 else
18069 ld_shlibs_CXX=no
18073 osf3* | osf4* | osf5*)
18074 case $cc_basename in
18075 KCC*)
18076 # Kuck and Associates, Inc. (KAI) C++ Compiler
18078 # KCC will only create a shared library if the output file
18079 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18080 # to its proper name (with version) after linking.
18081 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'
18083 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18084 hardcode_libdir_separator_CXX=:
18086 # Archives containing C++ object files must be created using
18087 # the KAI C++ compiler.
18088 case $host in
18089 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18090 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18091 esac
18093 RCC*)
18094 # Rational C++ 2.4.1
18095 # FIXME: insert proper C++ library support
18096 ld_shlibs_CXX=no
18098 cxx*)
18099 case $host in
18100 osf3*)
18101 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18102 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'
18103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18106 allow_undefined_flag_CXX=' -expect_unresolved \*'
18107 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'
18108 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18109 echo "-hidden">> $lib.exp~
18110 $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~
18111 $RM $lib.exp'
18112 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18114 esac
18116 hardcode_libdir_separator_CXX=:
18118 # Commands to make compiler produce verbose output that lists
18119 # what "hidden" libraries, object files and flags are used when
18120 # linking a shared library.
18122 # There doesn't appear to be a way to prevent this compiler from
18123 # explicitly linking system object files so we need to strip them
18124 # from the output so that they don't get included in the library
18125 # dependencies.
18126 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'
18129 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18130 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18131 case $host in
18132 osf3*)
18133 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'
18136 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'
18138 esac
18140 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18141 hardcode_libdir_separator_CXX=:
18143 # Commands to make compiler produce verbose output that lists
18144 # what "hidden" libraries, object files and flags are used when
18145 # linking a shared library.
18146 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18148 else
18149 # FIXME: insert proper C++ library support
18150 ld_shlibs_CXX=no
18153 esac
18156 psos*)
18157 # FIXME: insert proper C++ library support
18158 ld_shlibs_CXX=no
18161 sunos4*)
18162 case $cc_basename in
18163 CC*)
18164 # Sun C++ 4.x
18165 # FIXME: insert proper C++ library support
18166 ld_shlibs_CXX=no
18168 lcc*)
18169 # Lucid
18170 # FIXME: insert proper C++ library support
18171 ld_shlibs_CXX=no
18174 # FIXME: insert proper C++ library support
18175 ld_shlibs_CXX=no
18177 esac
18180 solaris*)
18181 case $cc_basename in
18182 CC*)
18183 # Sun C++ 4.2, 5.x and Centerline C++
18184 archive_cmds_need_lc_CXX=yes
18185 no_undefined_flag_CXX=' -zdefs'
18186 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18187 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18188 $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'
18190 hardcode_libdir_flag_spec_CXX='-R$libdir'
18191 hardcode_shlibpath_var_CXX=no
18192 case $host_os in
18193 solaris2.[0-5] | solaris2.[0-5].*) ;;
18195 # The compiler driver will combine and reorder linker options,
18196 # but understands `-z linker_flag'.
18197 # Supported since Solaris 2.6 (maybe 2.5.1?)
18198 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18200 esac
18201 link_all_deplibs_CXX=yes
18203 output_verbose_link_cmd='echo'
18205 # Archives containing C++ object files must be created using
18206 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18207 # necessary to make sure instantiated templates are included
18208 # in the archive.
18209 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18211 gcx*)
18212 # Green Hills C++ Compiler
18213 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18215 # The C++ compiler must be used to create the archive.
18216 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18219 # GNU C++ compiler with Solaris linker
18220 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18221 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18222 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18223 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18224 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18225 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18227 # Commands to make compiler produce verbose output that lists
18228 # what "hidden" libraries, object files and flags are used when
18229 # linking a shared library.
18230 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18231 else
18232 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18233 # platform.
18234 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18235 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18236 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18238 # Commands to make compiler produce verbose output that lists
18239 # what "hidden" libraries, object files and flags are used when
18240 # linking a shared library.
18241 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18244 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18245 case $host_os in
18246 solaris2.[0-5] | solaris2.[0-5].*) ;;
18248 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18250 esac
18253 esac
18256 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18257 no_undefined_flag_CXX='${wl}-z,text'
18258 archive_cmds_need_lc_CXX=no
18259 hardcode_shlibpath_var_CXX=no
18260 runpath_var='LD_RUN_PATH'
18262 case $cc_basename in
18263 CC*)
18264 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18265 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18268 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18269 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18271 esac
18274 sysv5* | sco3.2v5* | sco5v6*)
18275 # Note: We can NOT use -z defs as we might desire, because we do not
18276 # link with -lc, and that would cause any symbols used from libc to
18277 # always be unresolved, which means just about no library would
18278 # ever link correctly. If we're not using GNU ld we use -z text
18279 # though, which does catch some bad symbols but isn't as heavy-handed
18280 # as -z defs.
18281 no_undefined_flag_CXX='${wl}-z,text'
18282 allow_undefined_flag_CXX='${wl}-z,nodefs'
18283 archive_cmds_need_lc_CXX=no
18284 hardcode_shlibpath_var_CXX=no
18285 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18286 hardcode_libdir_separator_CXX=':'
18287 link_all_deplibs_CXX=yes
18288 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18289 runpath_var='LD_RUN_PATH'
18291 case $cc_basename in
18292 CC*)
18293 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18294 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18297 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18298 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18300 esac
18303 tandem*)
18304 case $cc_basename in
18305 NCC*)
18306 # NonStop-UX NCC 3.20
18307 # FIXME: insert proper C++ library support
18308 ld_shlibs_CXX=no
18311 # FIXME: insert proper C++ library support
18312 ld_shlibs_CXX=no
18314 esac
18317 vxworks*)
18318 # FIXME: insert proper C++ library support
18319 ld_shlibs_CXX=no
18323 # FIXME: insert proper C++ library support
18324 ld_shlibs_CXX=no
18326 esac
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18329 $as_echo "$ld_shlibs_CXX" >&6; }
18330 test "$ld_shlibs_CXX" = no && can_build_shared=no
18332 GCC_CXX="$GXX"
18333 LD_CXX="$LD"
18335 ## CAVEAT EMPTOR:
18336 ## There is no encapsulation within the following macros, do not change
18337 ## the running order or otherwise move them around unless you know exactly
18338 ## what you are doing...
18339 # Dependencies to place before and after the object being linked:
18340 predep_objects_CXX=
18341 postdep_objects_CXX=
18342 predeps_CXX=
18343 postdeps_CXX=
18344 compiler_lib_search_path_CXX=
18346 cat > conftest.$ac_ext <<_LT_EOF
18347 class Foo
18349 public:
18350 Foo (void) { a = 0; }
18351 private:
18352 int a;
18354 _LT_EOF
18356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18357 (eval $ac_compile) 2>&5
18358 ac_status=$?
18359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18360 test $ac_status = 0; }; then
18361 # Parse the compiler output and extract the necessary
18362 # objects, libraries and library flags.
18364 # Sentinel used to keep track of whether or not we are before
18365 # the conftest object file.
18366 pre_test_object_deps_done=no
18368 for p in `eval "$output_verbose_link_cmd"`; do
18369 case $p in
18371 -L* | -R* | -l*)
18372 # Some compilers place space between "-{L,R}" and the path.
18373 # Remove the space.
18374 if test $p = "-L" ||
18375 test $p = "-R"; then
18376 prev=$p
18377 continue
18378 else
18379 prev=
18382 if test "$pre_test_object_deps_done" = no; then
18383 case $p in
18384 -L* | -R*)
18385 # Internal compiler library paths should come after those
18386 # provided the user. The postdeps already come after the
18387 # user supplied libs so there is no need to process them.
18388 if test -z "$compiler_lib_search_path_CXX"; then
18389 compiler_lib_search_path_CXX="${prev}${p}"
18390 else
18391 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18394 # The "-l" case would never come before the object being
18395 # linked, so don't bother handling this case.
18396 esac
18397 else
18398 if test -z "$postdeps_CXX"; then
18399 postdeps_CXX="${prev}${p}"
18400 else
18401 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18406 *.$objext)
18407 # This assumes that the test object file only shows up
18408 # once in the compiler output.
18409 if test "$p" = "conftest.$objext"; then
18410 pre_test_object_deps_done=yes
18411 continue
18414 if test "$pre_test_object_deps_done" = no; then
18415 if test -z "$predep_objects_CXX"; then
18416 predep_objects_CXX="$p"
18417 else
18418 predep_objects_CXX="$predep_objects_CXX $p"
18420 else
18421 if test -z "$postdep_objects_CXX"; then
18422 postdep_objects_CXX="$p"
18423 else
18424 postdep_objects_CXX="$postdep_objects_CXX $p"
18429 *) ;; # Ignore the rest.
18431 esac
18432 done
18434 # Clean up.
18435 rm -f a.out a.exe
18436 else
18437 echo "libtool.m4: error: problem compiling CXX test program"
18440 $RM -f confest.$objext
18442 # PORTME: override above test on systems where it is broken
18443 case $host_os in
18444 interix[3-9]*)
18445 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18446 # hack all around it, let's just trust "g++" to DTRT.
18447 predep_objects_CXX=
18448 postdep_objects_CXX=
18449 postdeps_CXX=
18452 linux*)
18453 case `$CC -V 2>&1 | sed 5q` in
18454 *Sun\ C*)
18455 # Sun C++ 5.9
18457 # The more standards-conforming stlport4 library is
18458 # incompatible with the Cstd library. Avoid specifying
18459 # it if it's in CXXFLAGS. Ignore libCrun as
18460 # -library=stlport4 depends on it.
18461 case " $CXX $CXXFLAGS " in
18462 *" -library=stlport4 "*)
18463 solaris_use_stlport4=yes
18465 esac
18467 if test "$solaris_use_stlport4" != yes; then
18468 postdeps_CXX='-library=Cstd -library=Crun'
18471 esac
18474 solaris*)
18475 case $cc_basename in
18476 CC*)
18477 # The more standards-conforming stlport4 library is
18478 # incompatible with the Cstd library. Avoid specifying
18479 # it if it's in CXXFLAGS. Ignore libCrun as
18480 # -library=stlport4 depends on it.
18481 case " $CXX $CXXFLAGS " in
18482 *" -library=stlport4 "*)
18483 solaris_use_stlport4=yes
18485 esac
18487 # Adding this requires a known-good setup of shared libraries for
18488 # Sun compiler versions before 5.6, else PIC objects from an old
18489 # archive will be linked into the output, leading to subtle bugs.
18490 if test "$solaris_use_stlport4" != yes; then
18491 postdeps_CXX='-library=Cstd -library=Crun'
18494 esac
18496 esac
18499 case " $postdeps_CXX " in
18500 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18501 esac
18502 compiler_lib_search_dirs_CXX=
18503 if test -n "${compiler_lib_search_path_CXX}"; then
18504 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18537 lt_prog_compiler_wl_CXX=
18538 lt_prog_compiler_pic_CXX=
18539 lt_prog_compiler_static_CXX=
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18542 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18544 # C++ specific cases for pic, static, wl, etc.
18545 if test "$GXX" = yes; then
18546 lt_prog_compiler_wl_CXX='-Wl,'
18547 lt_prog_compiler_static_CXX='-static'
18549 case $host_os in
18550 aix*)
18551 # All AIX code is PIC.
18552 if test "$host_cpu" = ia64; then
18553 # AIX 5 now supports IA64 processor
18554 lt_prog_compiler_static_CXX='-Bstatic'
18558 amigaos*)
18559 case $host_cpu in
18560 powerpc)
18561 # see comment about AmigaOS4 .so support
18562 lt_prog_compiler_pic_CXX='-fPIC'
18564 m68k)
18565 # FIXME: we need at least 68020 code to build shared libraries, but
18566 # adding the `-m68020' flag to GCC prevents building anything better,
18567 # like `-m68040'.
18568 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18570 esac
18573 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18574 # PIC is the default for these OSes.
18576 mingw* | cygwin* | os2* | pw32* | cegcc*)
18577 # This hack is so that the source file can tell whether it is being
18578 # built for inclusion in a dll (and should export symbols for example).
18579 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18580 # (--disable-auto-import) libraries
18581 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18583 darwin* | rhapsody*)
18584 # PIC is the default on this platform
18585 # Common symbols not allowed in MH_DYLIB files
18586 lt_prog_compiler_pic_CXX='-fno-common'
18588 *djgpp*)
18589 # DJGPP does not support shared libraries at all
18590 lt_prog_compiler_pic_CXX=
18592 interix[3-9]*)
18593 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18594 # Instead, we relocate shared libraries at runtime.
18596 sysv4*MP*)
18597 if test -d /usr/nec; then
18598 lt_prog_compiler_pic_CXX=-Kconform_pic
18601 hpux*)
18602 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18603 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18604 # sets the default TLS model and affects inlining.
18605 case $host_cpu in
18606 hppa*64*)
18609 lt_prog_compiler_pic_CXX='-fPIC'
18611 esac
18613 *qnx* | *nto*)
18614 # QNX uses GNU C++, but need to define -shared option too, otherwise
18615 # it will coredump.
18616 lt_prog_compiler_pic_CXX='-fPIC -shared'
18619 lt_prog_compiler_pic_CXX='-fPIC'
18621 esac
18622 else
18623 case $host_os in
18624 aix[4-9]*)
18625 # All AIX code is PIC.
18626 if test "$host_cpu" = ia64; then
18627 # AIX 5 now supports IA64 processor
18628 lt_prog_compiler_static_CXX='-Bstatic'
18629 else
18630 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18633 chorus*)
18634 case $cc_basename in
18635 cxch68*)
18636 # Green Hills C++ Compiler
18637 # _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"
18639 esac
18641 dgux*)
18642 case $cc_basename in
18643 ec++*)
18644 lt_prog_compiler_pic_CXX='-KPIC'
18646 ghcx*)
18647 # Green Hills C++ Compiler
18648 lt_prog_compiler_pic_CXX='-pic'
18652 esac
18654 freebsd* | dragonfly*)
18655 # FreeBSD uses GNU C++
18657 hpux9* | hpux10* | hpux11*)
18658 case $cc_basename in
18659 CC*)
18660 lt_prog_compiler_wl_CXX='-Wl,'
18661 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18662 if test "$host_cpu" != ia64; then
18663 lt_prog_compiler_pic_CXX='+Z'
18666 aCC*)
18667 lt_prog_compiler_wl_CXX='-Wl,'
18668 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18669 case $host_cpu in
18670 hppa*64*|ia64*)
18671 # +Z the default
18674 lt_prog_compiler_pic_CXX='+Z'
18676 esac
18680 esac
18682 interix*)
18683 # This is c89, which is MS Visual C++ (no shared libs)
18684 # Anyone wants to do a port?
18686 irix5* | irix6* | nonstopux*)
18687 case $cc_basename in
18688 CC*)
18689 lt_prog_compiler_wl_CXX='-Wl,'
18690 lt_prog_compiler_static_CXX='-non_shared'
18691 # CC pic flag -KPIC is the default.
18695 esac
18697 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18698 case $cc_basename in
18699 KCC*)
18700 # KAI C++ Compiler
18701 lt_prog_compiler_wl_CXX='--backend -Wl,'
18702 lt_prog_compiler_pic_CXX='-fPIC'
18704 ecpc* )
18705 # old Intel C++ for x86_64 which still supported -KPIC.
18706 lt_prog_compiler_wl_CXX='-Wl,'
18707 lt_prog_compiler_pic_CXX='-KPIC'
18708 lt_prog_compiler_static_CXX='-static'
18710 icpc* )
18711 # Intel C++, used to be incompatible with GCC.
18712 # ICC 10 doesn't accept -KPIC any more.
18713 lt_prog_compiler_wl_CXX='-Wl,'
18714 lt_prog_compiler_pic_CXX='-fPIC'
18715 lt_prog_compiler_static_CXX='-static'
18717 pgCC* | pgcpp*)
18718 # Portland Group C++ compiler
18719 lt_prog_compiler_wl_CXX='-Wl,'
18720 lt_prog_compiler_pic_CXX='-fpic'
18721 lt_prog_compiler_static_CXX='-Bstatic'
18723 cxx*)
18724 # Compaq C++
18725 # Make sure the PIC flag is empty. It appears that all Alpha
18726 # Linux and Compaq Tru64 Unix objects are PIC.
18727 lt_prog_compiler_pic_CXX=
18728 lt_prog_compiler_static_CXX='-non_shared'
18730 xlc* | xlC*)
18731 # IBM XL 8.0 on PPC
18732 lt_prog_compiler_wl_CXX='-Wl,'
18733 lt_prog_compiler_pic_CXX='-qpic'
18734 lt_prog_compiler_static_CXX='-qstaticlink'
18737 case `$CC -V 2>&1 | sed 5q` in
18738 *Sun\ C*)
18739 # Sun C++ 5.9
18740 lt_prog_compiler_pic_CXX='-KPIC'
18741 lt_prog_compiler_static_CXX='-Bstatic'
18742 lt_prog_compiler_wl_CXX='-Qoption ld '
18744 esac
18746 esac
18748 lynxos*)
18750 m88k*)
18752 mvs*)
18753 case $cc_basename in
18754 cxx*)
18755 lt_prog_compiler_pic_CXX='-W c,exportall'
18759 esac
18761 netbsd*)
18763 *qnx* | *nto*)
18764 # QNX uses GNU C++, but need to define -shared option too, otherwise
18765 # it will coredump.
18766 lt_prog_compiler_pic_CXX='-fPIC -shared'
18768 osf3* | osf4* | osf5*)
18769 case $cc_basename in
18770 KCC*)
18771 lt_prog_compiler_wl_CXX='--backend -Wl,'
18773 RCC*)
18774 # Rational C++ 2.4.1
18775 lt_prog_compiler_pic_CXX='-pic'
18777 cxx*)
18778 # Digital/Compaq C++
18779 lt_prog_compiler_wl_CXX='-Wl,'
18780 # Make sure the PIC flag is empty. It appears that all Alpha
18781 # Linux and Compaq Tru64 Unix objects are PIC.
18782 lt_prog_compiler_pic_CXX=
18783 lt_prog_compiler_static_CXX='-non_shared'
18787 esac
18789 psos*)
18791 solaris*)
18792 case $cc_basename in
18793 CC*)
18794 # Sun C++ 4.2, 5.x and Centerline C++
18795 lt_prog_compiler_pic_CXX='-KPIC'
18796 lt_prog_compiler_static_CXX='-Bstatic'
18797 lt_prog_compiler_wl_CXX='-Qoption ld '
18799 gcx*)
18800 # Green Hills C++ Compiler
18801 lt_prog_compiler_pic_CXX='-PIC'
18805 esac
18807 sunos4*)
18808 case $cc_basename in
18809 CC*)
18810 # Sun C++ 4.x
18811 lt_prog_compiler_pic_CXX='-pic'
18812 lt_prog_compiler_static_CXX='-Bstatic'
18814 lcc*)
18815 # Lucid
18816 lt_prog_compiler_pic_CXX='-pic'
18820 esac
18822 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18823 case $cc_basename in
18824 CC*)
18825 lt_prog_compiler_wl_CXX='-Wl,'
18826 lt_prog_compiler_pic_CXX='-KPIC'
18827 lt_prog_compiler_static_CXX='-Bstatic'
18829 esac
18831 tandem*)
18832 case $cc_basename in
18833 NCC*)
18834 # NonStop-UX NCC 3.20
18835 lt_prog_compiler_pic_CXX='-KPIC'
18839 esac
18841 vxworks*)
18844 lt_prog_compiler_can_build_shared_CXX=no
18846 esac
18849 case $host_os in
18850 # For platforms which do not support PIC, -DPIC is meaningless:
18851 *djgpp*)
18852 lt_prog_compiler_pic_CXX=
18855 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18857 esac
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
18859 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18864 # Check to make sure the PIC flag actually works.
18866 if test -n "$lt_prog_compiler_pic_CXX"; then
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18868 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18869 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
18870 $as_echo_n "(cached) " >&6
18871 else
18872 lt_cv_prog_compiler_pic_works_CXX=no
18873 ac_outfile=conftest.$ac_objext
18874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18875 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18876 # Insert the option either (1) after the last *FLAGS variable, or
18877 # (2) before a word containing "conftest.", or (3) at the end.
18878 # Note that $ac_compile itself does not contain backslashes and begins
18879 # with a dollar sign (not a hyphen), so the echo should work correctly.
18880 # The option is referenced via a variable to avoid confusing sed.
18881 lt_compile=`echo "$ac_compile" | $SED \
18882 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18883 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18884 -e 's:$: $lt_compiler_flag:'`
18885 (eval echo "\"\$as_me:18885: $lt_compile\"" >&5)
18886 (eval "$lt_compile" 2>conftest.err)
18887 ac_status=$?
18888 cat conftest.err >&5
18889 echo "$as_me:18889: \$? = $ac_status" >&5
18890 if (exit $ac_status) && test -s "$ac_outfile"; then
18891 # The compiler can only warn and ignore the option if not recognized
18892 # So say no if there are warnings other than the usual output.
18893 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18894 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18895 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18896 lt_cv_prog_compiler_pic_works_CXX=yes
18899 $RM conftest*
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18903 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18905 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18906 case $lt_prog_compiler_pic_CXX in
18907 "" | " "*) ;;
18908 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18909 esac
18910 else
18911 lt_prog_compiler_pic_CXX=
18912 lt_prog_compiler_can_build_shared_CXX=no
18920 # Check to make sure the static flag actually works.
18922 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18925 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
18926 $as_echo_n "(cached) " >&6
18927 else
18928 lt_cv_prog_compiler_static_works_CXX=no
18929 save_LDFLAGS="$LDFLAGS"
18930 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18931 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18932 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18933 # The linker can only warn and ignore the option if not recognized
18934 # So say no if there are warnings
18935 if test -s conftest.err; then
18936 # Append any errors to the config.log.
18937 cat conftest.err 1>&5
18938 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18940 if diff conftest.exp conftest.er2 >/dev/null; then
18941 lt_cv_prog_compiler_static_works_CXX=yes
18943 else
18944 lt_cv_prog_compiler_static_works_CXX=yes
18947 $RM -r conftest*
18948 LDFLAGS="$save_LDFLAGS"
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18952 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18954 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18956 else
18957 lt_prog_compiler_static_CXX=
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18964 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18965 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18966 $as_echo_n "(cached) " >&6
18967 else
18968 lt_cv_prog_compiler_c_o_CXX=no
18969 $RM -r conftest 2>/dev/null
18970 mkdir conftest
18971 cd conftest
18972 mkdir out
18973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18975 lt_compiler_flag="-o out/conftest2.$ac_objext"
18976 # Insert the option either (1) after the last *FLAGS variable, or
18977 # (2) before a word containing "conftest.", or (3) at the end.
18978 # Note that $ac_compile itself does not contain backslashes and begins
18979 # with a dollar sign (not a hyphen), so the echo should work correctly.
18980 lt_compile=`echo "$ac_compile" | $SED \
18981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18983 -e 's:$: $lt_compiler_flag:'`
18984 (eval echo "\"\$as_me:18984: $lt_compile\"" >&5)
18985 (eval "$lt_compile" 2>out/conftest.err)
18986 ac_status=$?
18987 cat out/conftest.err >&5
18988 echo "$as_me:18988: \$? = $ac_status" >&5
18989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18990 then
18991 # The compiler can only warn and ignore the option if not recognized
18992 # So say no if there are warnings
18993 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18996 lt_cv_prog_compiler_c_o_CXX=yes
18999 chmod u+w . 2>&5
19000 $RM conftest*
19001 # SGI C++ compiler will create directory out/ii_files/ for
19002 # template instantiation
19003 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19004 $RM out/* && rmdir out
19005 cd ..
19006 $RM -r conftest
19007 $RM conftest*
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19011 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19016 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19017 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
19018 $as_echo_n "(cached) " >&6
19019 else
19020 lt_cv_prog_compiler_c_o_CXX=no
19021 $RM -r conftest 2>/dev/null
19022 mkdir conftest
19023 cd conftest
19024 mkdir out
19025 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19027 lt_compiler_flag="-o out/conftest2.$ac_objext"
19028 # Insert the option either (1) after the last *FLAGS variable, or
19029 # (2) before a word containing "conftest.", or (3) at the end.
19030 # Note that $ac_compile itself does not contain backslashes and begins
19031 # with a dollar sign (not a hyphen), so the echo should work correctly.
19032 lt_compile=`echo "$ac_compile" | $SED \
19033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19035 -e 's:$: $lt_compiler_flag:'`
19036 (eval echo "\"\$as_me:19036: $lt_compile\"" >&5)
19037 (eval "$lt_compile" 2>out/conftest.err)
19038 ac_status=$?
19039 cat out/conftest.err >&5
19040 echo "$as_me:19040: \$? = $ac_status" >&5
19041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19042 then
19043 # The compiler can only warn and ignore the option if not recognized
19044 # So say no if there are warnings
19045 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19046 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19047 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19048 lt_cv_prog_compiler_c_o_CXX=yes
19051 chmod u+w . 2>&5
19052 $RM conftest*
19053 # SGI C++ compiler will create directory out/ii_files/ for
19054 # template instantiation
19055 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19056 $RM out/* && rmdir out
19057 cd ..
19058 $RM -r conftest
19059 $RM conftest*
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19063 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19068 hard_links="nottested"
19069 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19070 # do not overwrite the value of need_locks provided by the user
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19072 $as_echo_n "checking if we can lock with hard links... " >&6; }
19073 hard_links=yes
19074 $RM conftest*
19075 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19076 touch conftest.a
19077 ln conftest.a conftest.b 2>&5 || hard_links=no
19078 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19080 $as_echo "$hard_links" >&6; }
19081 if test "$hard_links" = no; then
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19083 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19084 need_locks=warn
19086 else
19087 need_locks=no
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19093 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19095 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19096 case $host_os in
19097 aix[4-9]*)
19098 # If we're using GNU nm, then we don't want the "-C" option.
19099 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19100 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19101 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'
19102 else
19103 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'
19106 pw32*)
19107 export_symbols_cmds_CXX="$ltdll_cmds"
19109 cygwin* | mingw* | cegcc*)
19110 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'
19113 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19115 esac
19116 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19119 $as_echo "$ld_shlibs_CXX" >&6; }
19120 test "$ld_shlibs_CXX" = no && can_build_shared=no
19122 with_gnu_ld_CXX=$with_gnu_ld
19130 # Do we need to explicitly link libc?
19132 case "x$archive_cmds_need_lc_CXX" in
19133 x|xyes)
19134 # Assume -lc should be added
19135 archive_cmds_need_lc_CXX=yes
19137 if test "$enable_shared" = yes && test "$GCC" = yes; then
19138 case $archive_cmds_CXX in
19139 *'~'*)
19140 # FIXME: we may have to deal with multi-command sequences.
19142 '$CC '*)
19143 # Test whether the compiler implicitly links with -lc since on some
19144 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19145 # to ld, don't add -lc before -lgcc.
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19147 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19148 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
19149 $as_echo_n "(cached) " >&6
19150 else
19151 $RM conftest*
19152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19155 (eval $ac_compile) 2>&5
19156 ac_status=$?
19157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19158 test $ac_status = 0; } 2>conftest.err; then
19159 soname=conftest
19160 lib=conftest
19161 libobjs=conftest.$ac_objext
19162 deplibs=
19163 wl=$lt_prog_compiler_wl_CXX
19164 pic_flag=$lt_prog_compiler_pic_CXX
19165 compiler_flags=-v
19166 linker_flags=-v
19167 verstring=
19168 output_objdir=.
19169 libname=conftest
19170 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19171 allow_undefined_flag_CXX=
19172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19173 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19174 ac_status=$?
19175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19176 test $ac_status = 0; }
19177 then
19178 lt_cv_archive_cmds_need_lc_CXX=no
19179 else
19180 lt_cv_archive_cmds_need_lc_CXX=yes
19182 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19183 else
19184 cat conftest.err 1>&5
19186 $RM conftest*
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19190 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19191 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19193 esac
19196 esac
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19262 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19264 library_names_spec=
19265 libname_spec='lib$name'
19266 soname_spec=
19267 shrext_cmds=".so"
19268 postinstall_cmds=
19269 postuninstall_cmds=
19270 finish_cmds=
19271 finish_eval=
19272 shlibpath_var=
19273 shlibpath_overrides_runpath=unknown
19274 version_type=none
19275 dynamic_linker="$host_os ld.so"
19276 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19277 need_lib_prefix=unknown
19278 hardcode_into_libs=no
19280 # when you set need_version to no, make sure it does not cause -set_version
19281 # flags to be left without arguments
19282 need_version=unknown
19284 case $host_os in
19285 aix3*)
19286 version_type=linux
19287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19288 shlibpath_var=LIBPATH
19290 # AIX 3 has no versioning support, so we append a major version to the name.
19291 soname_spec='${libname}${release}${shared_ext}$major'
19294 aix[4-9]*)
19295 version_type=linux
19296 need_lib_prefix=no
19297 need_version=no
19298 hardcode_into_libs=yes
19299 if test "$host_cpu" = ia64; then
19300 # AIX 5 supports IA64
19301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19302 shlibpath_var=LD_LIBRARY_PATH
19303 else
19304 # With GCC up to 2.95.x, collect2 would create an import file
19305 # for dependence libraries. The import file would start with
19306 # the line `#! .'. This would cause the generated library to
19307 # depend on `.', always an invalid library. This was fixed in
19308 # development snapshots of GCC prior to 3.0.
19309 case $host_os in
19310 aix4 | aix4.[01] | aix4.[01].*)
19311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19312 echo ' yes '
19313 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19315 else
19316 can_build_shared=no
19319 esac
19320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19321 # soname into executable. Probably we can add versioning support to
19322 # collect2, so additional links can be useful in future.
19323 if test "$aix_use_runtimelinking" = yes; then
19324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19325 # instead of lib<name>.a to let people know that these are not
19326 # typical AIX shared libraries.
19327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19328 else
19329 # We preserve .a as extension for shared libraries through AIX4.2
19330 # and later when we are not doing run time linking.
19331 library_names_spec='${libname}${release}.a $libname.a'
19332 soname_spec='${libname}${release}${shared_ext}$major'
19334 shlibpath_var=LIBPATH
19338 amigaos*)
19339 case $host_cpu in
19340 powerpc)
19341 # Since July 2007 AmigaOS4 officially supports .so libraries.
19342 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19345 m68k)
19346 library_names_spec='$libname.ixlibrary $libname.a'
19347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19348 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'
19350 esac
19353 beos*)
19354 library_names_spec='${libname}${shared_ext}'
19355 dynamic_linker="$host_os ld.so"
19356 shlibpath_var=LIBRARY_PATH
19359 bsdi[45]*)
19360 version_type=linux
19361 need_version=no
19362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19363 soname_spec='${libname}${release}${shared_ext}$major'
19364 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19365 shlibpath_var=LD_LIBRARY_PATH
19366 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19367 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19368 # the default ld.so.conf also contains /usr/contrib/lib and
19369 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19370 # libtool to hard-code these into programs
19373 cygwin* | mingw* | pw32* | cegcc*)
19374 version_type=windows
19375 shrext_cmds=".dll"
19376 need_version=no
19377 need_lib_prefix=no
19379 case $GCC,$host_os in
19380 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19381 library_names_spec='$libname.dll.a'
19382 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19383 postinstall_cmds='base_file=`basename \${file}`~
19384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19385 dldir=$destdir/`dirname \$dlpath`~
19386 test -d \$dldir || mkdir -p \$dldir~
19387 $install_prog $dir/$dlname \$dldir/$dlname~
19388 chmod a+x \$dldir/$dlname~
19389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19393 dlpath=$dir/\$dldll~
19394 $RM \$dlpath'
19395 shlibpath_overrides_runpath=yes
19397 case $host_os in
19398 cygwin*)
19399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19401 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19403 mingw* | cegcc*)
19404 # MinGW DLLs use traditional 'lib' prefix
19405 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19406 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19407 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19408 # It is most probably a Windows format PATH printed by
19409 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19410 # path with ; separators, and with drive letters. We can handle the
19411 # drive letters (cygwin fileutils understands them), so leave them,
19412 # especially as we might pass files found there to a mingw objdump,
19413 # which wouldn't understand a cygwinified path. Ahh.
19414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19415 else
19416 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19419 pw32*)
19420 # pw32 DLLs use 'pw' prefix rather than 'lib'
19421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19423 esac
19427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19429 esac
19430 dynamic_linker='Win32 ld.exe'
19431 # FIXME: first we should search . and the directory the executable is in
19432 shlibpath_var=PATH
19435 darwin* | rhapsody*)
19436 dynamic_linker="$host_os dyld"
19437 version_type=darwin
19438 need_lib_prefix=no
19439 need_version=no
19440 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19441 soname_spec='${libname}${release}${major}$shared_ext'
19442 shlibpath_overrides_runpath=yes
19443 shlibpath_var=DYLD_LIBRARY_PATH
19444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19446 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19449 dgux*)
19450 version_type=linux
19451 need_lib_prefix=no
19452 need_version=no
19453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19454 soname_spec='${libname}${release}${shared_ext}$major'
19455 shlibpath_var=LD_LIBRARY_PATH
19458 freebsd1*)
19459 dynamic_linker=no
19462 freebsd* | dragonfly*)
19463 # DragonFly does not have aout. When/if they implement a new
19464 # versioning mechanism, adjust this.
19465 if test -x /usr/bin/objformat; then
19466 objformat=`/usr/bin/objformat`
19467 else
19468 case $host_os in
19469 freebsd[123]*) objformat=aout ;;
19470 *) objformat=elf ;;
19471 esac
19473 version_type=freebsd-$objformat
19474 case $version_type in
19475 freebsd-elf*)
19476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19477 need_version=no
19478 need_lib_prefix=no
19480 freebsd-*)
19481 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19482 need_version=yes
19484 esac
19485 shlibpath_var=LD_LIBRARY_PATH
19486 case $host_os in
19487 freebsd2*)
19488 shlibpath_overrides_runpath=yes
19490 freebsd3.[01]* | freebsdelf3.[01]*)
19491 shlibpath_overrides_runpath=yes
19492 hardcode_into_libs=yes
19494 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19495 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19496 shlibpath_overrides_runpath=no
19497 hardcode_into_libs=yes
19499 *) # from 4.6 on, and DragonFly
19500 shlibpath_overrides_runpath=yes
19501 hardcode_into_libs=yes
19503 esac
19506 gnu*)
19507 version_type=linux
19508 need_lib_prefix=no
19509 need_version=no
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19511 soname_spec='${libname}${release}${shared_ext}$major'
19512 shlibpath_var=LD_LIBRARY_PATH
19513 hardcode_into_libs=yes
19516 hpux9* | hpux10* | hpux11*)
19517 # Give a soname corresponding to the major version so that dld.sl refuses to
19518 # link against other versions.
19519 version_type=sunos
19520 need_lib_prefix=no
19521 need_version=no
19522 case $host_cpu in
19523 ia64*)
19524 shrext_cmds='.so'
19525 hardcode_into_libs=yes
19526 dynamic_linker="$host_os dld.so"
19527 shlibpath_var=LD_LIBRARY_PATH
19528 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19530 soname_spec='${libname}${release}${shared_ext}$major'
19531 if test "X$HPUX_IA64_MODE" = X32; then
19532 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19533 else
19534 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19538 hppa*64*)
19539 shrext_cmds='.sl'
19540 hardcode_into_libs=yes
19541 dynamic_linker="$host_os dld.sl"
19542 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545 soname_spec='${libname}${release}${shared_ext}$major'
19546 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19547 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19550 shrext_cmds='.sl'
19551 dynamic_linker="$host_os dld.sl"
19552 shlibpath_var=SHLIB_PATH
19553 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19555 soname_spec='${libname}${release}${shared_ext}$major'
19557 esac
19558 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19559 postinstall_cmds='chmod 555 $lib'
19562 interix[3-9]*)
19563 version_type=linux
19564 need_lib_prefix=no
19565 need_version=no
19566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19567 soname_spec='${libname}${release}${shared_ext}$major'
19568 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19569 shlibpath_var=LD_LIBRARY_PATH
19570 shlibpath_overrides_runpath=no
19571 hardcode_into_libs=yes
19574 irix5* | irix6* | nonstopux*)
19575 case $host_os in
19576 nonstopux*) version_type=nonstopux ;;
19578 if test "$lt_cv_prog_gnu_ld" = yes; then
19579 version_type=linux
19580 else
19581 version_type=irix
19582 fi ;;
19583 esac
19584 need_lib_prefix=no
19585 need_version=no
19586 soname_spec='${libname}${release}${shared_ext}$major'
19587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19588 case $host_os in
19589 irix5* | nonstopux*)
19590 libsuff= shlibsuff=
19593 case $LD in # libtool.m4 will add one of these switches to LD
19594 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19595 libsuff= shlibsuff= libmagic=32-bit;;
19596 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19597 libsuff=32 shlibsuff=N32 libmagic=N32;;
19598 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19599 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19600 *) libsuff= shlibsuff= libmagic=never-match;;
19601 esac
19603 esac
19604 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19605 shlibpath_overrides_runpath=no
19606 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19607 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19608 hardcode_into_libs=yes
19611 # No shared lib support for Linux oldld, aout, or coff.
19612 linux*oldld* | linux*aout* | linux*coff*)
19613 dynamic_linker=no
19616 # This must be Linux ELF.
19617 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19618 version_type=linux
19619 need_lib_prefix=no
19620 need_version=no
19621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19622 soname_spec='${libname}${release}${shared_ext}$major'
19623 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19624 shlibpath_var=LD_LIBRARY_PATH
19625 shlibpath_overrides_runpath=no
19627 # Some binutils ld are patched to set DT_RUNPATH
19628 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
19629 $as_echo_n "(cached) " >&6
19630 else
19631 lt_cv_shlibpath_overrides_runpath=no
19632 save_LDFLAGS=$LDFLAGS
19633 save_libdir=$libdir
19634 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19635 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h. */
19640 main ()
19644 return 0;
19646 _ACEOF
19647 if ac_fn_cxx_try_link "$LINENO"; then :
19648 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19649 lt_cv_shlibpath_overrides_runpath=yes
19652 rm -f core conftest.err conftest.$ac_objext \
19653 conftest$ac_exeext conftest.$ac_ext
19654 LDFLAGS=$save_LDFLAGS
19655 libdir=$save_libdir
19659 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19661 # This implies no fast_install, which is unacceptable.
19662 # Some rework will be needed to allow for fast_install
19663 # before this can be enabled.
19664 hardcode_into_libs=yes
19666 # Append ld.so.conf contents to the search path
19667 if test -f /etc/ld.so.conf; then
19668 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' ' '`
19669 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19672 # We used to test for /lib/ld.so.1 and disable shared libraries on
19673 # powerpc, because MkLinux only supported shared libraries with the
19674 # GNU dynamic linker. Since this was broken with cross compilers,
19675 # most powerpc-linux boxes support dynamic linking these days and
19676 # people can always --disable-shared, the test was removed, and we
19677 # assume the GNU/Linux dynamic linker is in use.
19678 dynamic_linker='GNU/Linux ld.so'
19681 netbsd*)
19682 version_type=sunos
19683 need_lib_prefix=no
19684 need_version=no
19685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19687 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19688 dynamic_linker='NetBSD (a.out) ld.so'
19689 else
19690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19691 soname_spec='${libname}${release}${shared_ext}$major'
19692 dynamic_linker='NetBSD ld.elf_so'
19694 shlibpath_var=LD_LIBRARY_PATH
19695 shlibpath_overrides_runpath=yes
19696 hardcode_into_libs=yes
19699 newsos6)
19700 version_type=linux
19701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19702 shlibpath_var=LD_LIBRARY_PATH
19703 shlibpath_overrides_runpath=yes
19706 *nto* | *qnx*)
19707 version_type=qnx
19708 need_lib_prefix=no
19709 need_version=no
19710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19711 soname_spec='${libname}${release}${shared_ext}$major'
19712 shlibpath_var=LD_LIBRARY_PATH
19713 shlibpath_overrides_runpath=no
19714 hardcode_into_libs=yes
19715 dynamic_linker='ldqnx.so'
19718 openbsd*)
19719 version_type=sunos
19720 sys_lib_dlsearch_path_spec="/usr/lib"
19721 need_lib_prefix=no
19722 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19723 case $host_os in
19724 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19725 *) need_version=no ;;
19726 esac
19727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19728 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19729 shlibpath_var=LD_LIBRARY_PATH
19730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19731 case $host_os in
19732 openbsd2.[89] | openbsd2.[89].*)
19733 shlibpath_overrides_runpath=no
19736 shlibpath_overrides_runpath=yes
19738 esac
19739 else
19740 shlibpath_overrides_runpath=yes
19744 os2*)
19745 libname_spec='$name'
19746 shrext_cmds=".dll"
19747 need_lib_prefix=no
19748 library_names_spec='$libname${shared_ext} $libname.a'
19749 dynamic_linker='OS/2 ld.exe'
19750 shlibpath_var=LIBPATH
19753 osf3* | osf4* | osf5*)
19754 version_type=osf
19755 need_lib_prefix=no
19756 need_version=no
19757 soname_spec='${libname}${release}${shared_ext}$major'
19758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19759 shlibpath_var=LD_LIBRARY_PATH
19760 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19761 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19764 rdos*)
19765 dynamic_linker=no
19768 solaris*)
19769 version_type=linux
19770 need_lib_prefix=no
19771 need_version=no
19772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19773 soname_spec='${libname}${release}${shared_ext}$major'
19774 shlibpath_var=LD_LIBRARY_PATH
19775 shlibpath_overrides_runpath=yes
19776 hardcode_into_libs=yes
19777 # ldd complains unless libraries are executable
19778 postinstall_cmds='chmod +x $lib'
19781 sunos4*)
19782 version_type=sunos
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19784 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19785 shlibpath_var=LD_LIBRARY_PATH
19786 shlibpath_overrides_runpath=yes
19787 if test "$with_gnu_ld" = yes; then
19788 need_lib_prefix=no
19790 need_version=yes
19793 sysv4 | sysv4.3*)
19794 version_type=linux
19795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19796 soname_spec='${libname}${release}${shared_ext}$major'
19797 shlibpath_var=LD_LIBRARY_PATH
19798 case $host_vendor in
19799 sni)
19800 shlibpath_overrides_runpath=no
19801 need_lib_prefix=no
19802 runpath_var=LD_RUN_PATH
19804 siemens)
19805 need_lib_prefix=no
19807 motorola)
19808 need_lib_prefix=no
19809 need_version=no
19810 shlibpath_overrides_runpath=no
19811 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19813 esac
19816 sysv4*MP*)
19817 if test -d /usr/nec ;then
19818 version_type=linux
19819 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19820 soname_spec='$libname${shared_ext}.$major'
19821 shlibpath_var=LD_LIBRARY_PATH
19825 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19826 version_type=freebsd-elf
19827 need_lib_prefix=no
19828 need_version=no
19829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19830 soname_spec='${libname}${release}${shared_ext}$major'
19831 shlibpath_var=LD_LIBRARY_PATH
19832 shlibpath_overrides_runpath=yes
19833 hardcode_into_libs=yes
19834 if test "$with_gnu_ld" = yes; then
19835 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19836 else
19837 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19838 case $host_os in
19839 sco3.2v5*)
19840 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19842 esac
19844 sys_lib_dlsearch_path_spec='/usr/lib'
19847 tpf*)
19848 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19849 version_type=linux
19850 need_lib_prefix=no
19851 need_version=no
19852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19853 shlibpath_var=LD_LIBRARY_PATH
19854 shlibpath_overrides_runpath=no
19855 hardcode_into_libs=yes
19858 uts4*)
19859 version_type=linux
19860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19861 soname_spec='${libname}${release}${shared_ext}$major'
19862 shlibpath_var=LD_LIBRARY_PATH
19866 dynamic_linker=no
19868 esac
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19870 $as_echo "$dynamic_linker" >&6; }
19871 test "$dynamic_linker" = no && can_build_shared=no
19873 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19874 if test "$GCC" = yes; then
19875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19878 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19879 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19881 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19882 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19921 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19922 hardcode_action_CXX=
19923 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19924 test -n "$runpath_var_CXX" ||
19925 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19927 # We can hardcode non-existent directories.
19928 if test "$hardcode_direct_CXX" != no &&
19929 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19930 # have to relink, otherwise we might link with an installed library
19931 # when we should be linking with a yet-to-be-installed one
19932 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19933 test "$hardcode_minus_L_CXX" != no; then
19934 # Linking always hardcodes the temporary library directory.
19935 hardcode_action_CXX=relink
19936 else
19937 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19938 hardcode_action_CXX=immediate
19940 else
19941 # We cannot hardcode anything, or else we can only hardcode existing
19942 # directories.
19943 hardcode_action_CXX=unsupported
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19946 $as_echo "$hardcode_action_CXX" >&6; }
19948 if test "$hardcode_action_CXX" = relink ||
19949 test "$inherit_rpath_CXX" = yes; then
19950 # Fast installation is not supported
19951 enable_fast_install=no
19952 elif test "$shlibpath_overrides_runpath" = yes ||
19953 test "$enable_shared" = no; then
19954 # Fast installation is not necessary
19955 enable_fast_install=needless
19964 fi # test -n "$compiler"
19966 CC=$lt_save_CC
19967 LDCXX=$LD
19968 LD=$lt_save_LD
19969 GCC=$lt_save_GCC
19970 with_gnu_ld=$lt_save_with_gnu_ld
19971 lt_cv_path_LDCXX=$lt_cv_path_LD
19972 lt_cv_path_LD=$lt_save_path_LD
19973 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19974 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19975 fi # test "$_lt_caught_CXX_error" != yes
19977 ac_ext=c
19978 ac_cpp='$CPP $CPPFLAGS'
19979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19998 # Only expand once:
20004 # Identify the assembler which will work hand-in-glove with the newly
20005 # built GCC, so that we can examine its features. This is the assembler
20006 # which will be driven by the driver program.
20008 # If build != host, and we aren't building gas in-tree, we identify a
20009 # build->target assembler and hope that it will have the same features
20010 # as the host->target assembler we'll be using.
20011 gcc_cv_gas_major_version=
20012 gcc_cv_gas_minor_version=
20013 gcc_cv_as_gas_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/gas
20015 if test "${gcc_cv_as+set}" = set; then :
20017 else
20019 if test -x "$DEFAULT_ASSEMBLER"; then
20020 gcc_cv_as="$DEFAULT_ASSEMBLER"
20021 elif test -f $gcc_cv_as_gas_srcdir/configure.in \
20022 && test -f ../gas/Makefile \
20023 && test x$build = x$host; then
20024 gcc_cv_as=../gas/as-new$build_exeext
20025 elif test -x as$build_exeext; then
20026 # Build using assembler in the current directory.
20027 gcc_cv_as=./as$build_exeext
20028 elif test -x $AS_FOR_TARGET; then
20029 gcc_cv_as="$AS_FOR_TARGET"
20030 else
20031 # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
20032 set dummy $AS_FOR_TARGET; ac_word=$2
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20034 $as_echo_n "checking for $ac_word... " >&6; }
20035 if test "${ac_cv_path_gcc_cv_as+set}" = set; then :
20036 $as_echo_n "(cached) " >&6
20037 else
20038 case $gcc_cv_as in
20039 [\\/]* | ?:[\\/]*)
20040 ac_cv_path_gcc_cv_as="$gcc_cv_as" # Let the user override the test with a path.
20043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20044 for as_dir in $PATH
20046 IFS=$as_save_IFS
20047 test -z "$as_dir" && as_dir=.
20048 for ac_exec_ext in '' $ac_executable_extensions; do
20049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20050 ac_cv_path_gcc_cv_as="$as_dir/$ac_word$ac_exec_ext"
20051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20052 break 2
20054 done
20055 done
20056 IFS=$as_save_IFS
20059 esac
20061 gcc_cv_as=$ac_cv_path_gcc_cv_as
20062 if test -n "$gcc_cv_as"; then
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20064 $as_echo "$gcc_cv_as" >&6; }
20065 else
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20067 $as_echo "no" >&6; }
20074 ORIGINAL_AS_FOR_TARGET=$gcc_cv_as
20076 case "$ORIGINAL_AS_FOR_TARGET" in
20077 ./as | ./as$build_exeext) ;;
20078 *) ac_config_files="$ac_config_files as:exec-tool.in"
20080 esac
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what assembler to use" >&5
20083 $as_echo_n "checking what assembler to use... " >&6; }
20084 if test "$gcc_cv_as" = ../gas/as-new$build_exeext; then
20085 # Single tree build which includes gas. We want to prefer it
20086 # over whatever linker top-level may have detected, since
20087 # we'll use what we're building after installation anyway.
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built gas" >&5
20089 $as_echo "newly built gas" >&6; }
20090 in_tree_gas=yes
20091 gcc_cv_as_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20092 for f in $gcc_cv_as_bfd_srcdir/configure \
20093 $gcc_cv_as_gas_srcdir/configure \
20094 $gcc_cv_as_gas_srcdir/configure.in \
20095 $gcc_cv_as_gas_srcdir/Makefile.in ; do
20096 gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20097 if test x$gcc_cv_gas_version != x; then
20098 break
20100 done
20101 gcc_cv_gas_major_version=`expr "$gcc_cv_gas_version" : "VERSION=\([0-9]*\)"`
20102 gcc_cv_gas_minor_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20103 gcc_cv_gas_patch_version=`expr "$gcc_cv_gas_version" : "VERSION=[0-9]*\.[0-9]*\.\([0-9]*\)"`
20104 case $gcc_cv_gas_patch_version in
20105 "") gcc_cv_gas_patch_version="0" ;;
20106 esac
20107 gcc_cv_gas_vers=`expr \( \( $gcc_cv_gas_major_version \* 1000 \) \
20108 + $gcc_cv_gas_minor_version \) \* 1000 \
20109 + $gcc_cv_gas_patch_version`
20111 in_tree_gas_is_elf=no
20112 if grep 'obj_format = elf' ../gas/Makefile > /dev/null \
20113 || (grep 'obj_format = multi' ../gas/Makefile \
20114 && grep 'extra_objects =.* obj-elf' ../gas/Makefile) > /dev/null
20115 then
20116 in_tree_gas_is_elf=yes
20118 else
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as" >&5
20120 $as_echo "$gcc_cv_as" >&6; }
20121 in_tree_gas=no
20124 # Identify the linker which will work hand-in-glove with the newly
20125 # built GCC, so that we can examine its features. This is the linker
20126 # which will be driven by the driver program.
20128 # If build != host, and we aren't building gas in-tree, we identify a
20129 # build->target linker and hope that it will have the same features
20130 # as the host->target linker we'll be using.
20131 gcc_cv_gld_major_version=
20132 gcc_cv_gld_minor_version=
20133 gcc_cv_ld_gld_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/ld
20134 gcc_cv_ld_bfd_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/bfd
20136 if test "${gcc_cv_ld+set}" = set; then :
20138 else
20140 if test -x "$DEFAULT_LINKER"; then
20141 gcc_cv_ld="$DEFAULT_LINKER"
20142 elif test -f $gcc_cv_ld_gld_srcdir/configure.in \
20143 && test -f ../ld/Makefile \
20144 && test x$build = x$host; then
20145 gcc_cv_ld=../ld/ld-new$build_exeext
20146 elif test -x collect-ld$build_exeext; then
20147 # Build using linker in the current directory.
20148 gcc_cv_ld=./collect-ld$build_exeext
20149 elif test -x $LD_FOR_TARGET; then
20150 gcc_cv_ld="$LD_FOR_TARGET"
20151 else
20152 # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
20153 set dummy $LD_FOR_TARGET; ac_word=$2
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20155 $as_echo_n "checking for $ac_word... " >&6; }
20156 if test "${ac_cv_path_gcc_cv_ld+set}" = set; then :
20157 $as_echo_n "(cached) " >&6
20158 else
20159 case $gcc_cv_ld in
20160 [\\/]* | ?:[\\/]*)
20161 ac_cv_path_gcc_cv_ld="$gcc_cv_ld" # Let the user override the test with a path.
20164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20165 for as_dir in $PATH
20167 IFS=$as_save_IFS
20168 test -z "$as_dir" && as_dir=.
20169 for ac_exec_ext in '' $ac_executable_extensions; do
20170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20171 ac_cv_path_gcc_cv_ld="$as_dir/$ac_word$ac_exec_ext"
20172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20173 break 2
20175 done
20176 done
20177 IFS=$as_save_IFS
20180 esac
20182 gcc_cv_ld=$ac_cv_path_gcc_cv_ld
20183 if test -n "$gcc_cv_ld"; then
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20185 $as_echo "$gcc_cv_ld" >&6; }
20186 else
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188 $as_echo "no" >&6; }
20195 ORIGINAL_LD_FOR_TARGET=$gcc_cv_ld
20197 case "$ORIGINAL_LD_FOR_TARGET" in
20198 ./collect-ld | ./collect-ld$build_exeext) ;;
20199 *) ac_config_files="$ac_config_files collect-ld:exec-tool.in"
20201 esac
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker to use" >&5
20204 $as_echo_n "checking what linker to use... " >&6; }
20205 if test "$gcc_cv_ld" = ../ld/ld-new$build_exeext; then
20206 # Single tree build which includes ld. We want to prefer it
20207 # over whatever linker top-level may have detected, since
20208 # we'll use what we're building after installation anyway.
20209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built ld" >&5
20210 $as_echo "newly built ld" >&6; }
20211 in_tree_ld=yes
20212 in_tree_ld_is_elf=no
20213 if (grep 'EMUL = .*elf' ../ld/Makefile \
20214 || grep 'EMUL = .*linux' ../ld/Makefile \
20215 || grep 'EMUL = .*lynx' ../ld/Makefile) > /dev/null; then
20216 in_tree_ld_is_elf=yes
20218 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
20220 gcc_cv_gld_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f`
20221 if test x$gcc_cv_gld_version != x; then
20222 break
20224 done
20225 gcc_cv_gld_major_version=`expr "$gcc_cv_gld_version" : "VERSION=\([0-9]*\)"`
20226 gcc_cv_gld_minor_version=`expr "$gcc_cv_gld_version" : "VERSION=[0-9]*\.\([0-9]*\)"`
20227 else
20228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld" >&5
20229 $as_echo "$gcc_cv_ld" >&6; }
20230 in_tree_ld=no
20233 # Figure out what nm we will be using.
20234 gcc_cv_binutils_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/binutils
20235 if test "${gcc_cv_nm+set}" = set; then :
20237 else
20239 if test -f $gcc_cv_binutils_srcdir/configure.in \
20240 && test -f ../binutils/Makefile \
20241 && test x$build = x$host; then
20242 gcc_cv_nm=../binutils/nm-new$build_exeext
20243 elif test -x nm$build_exeext; then
20244 gcc_cv_nm=./nm$build_exeext
20245 elif test -x $NM_FOR_TARGET; then
20246 gcc_cv_nm="$NM_FOR_TARGET"
20247 else
20248 # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
20249 set dummy $NM_FOR_TARGET; ac_word=$2
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20251 $as_echo_n "checking for $ac_word... " >&6; }
20252 if test "${ac_cv_path_gcc_cv_nm+set}" = set; then :
20253 $as_echo_n "(cached) " >&6
20254 else
20255 case $gcc_cv_nm in
20256 [\\/]* | ?:[\\/]*)
20257 ac_cv_path_gcc_cv_nm="$gcc_cv_nm" # Let the user override the test with a path.
20260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261 for as_dir in $PATH
20263 IFS=$as_save_IFS
20264 test -z "$as_dir" && as_dir=.
20265 for ac_exec_ext in '' $ac_executable_extensions; do
20266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20267 ac_cv_path_gcc_cv_nm="$as_dir/$ac_word$ac_exec_ext"
20268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20269 break 2
20271 done
20272 done
20273 IFS=$as_save_IFS
20276 esac
20278 gcc_cv_nm=$ac_cv_path_gcc_cv_nm
20279 if test -n "$gcc_cv_nm"; then
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20281 $as_echo "$gcc_cv_nm" >&6; }
20282 else
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20284 $as_echo "no" >&6; }
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what nm to use" >&5
20292 $as_echo_n "checking what nm to use... " >&6; }
20293 if test "$gcc_cv_nm" = ../binutils/nm-new$build_exeext; then
20294 # Single tree build which includes binutils.
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built nm" >&5
20296 $as_echo "newly built nm" >&6; }
20297 in_tree_nm=yes
20298 else
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_nm" >&5
20300 $as_echo "$gcc_cv_nm" >&6; }
20301 in_tree_nm=no
20304 ORIGINAL_NM_FOR_TARGET=$gcc_cv_nm
20306 case "$ORIGINAL_NM_FOR_TARGET" in
20307 ./nm | ./nm$build_exeext) ;;
20308 *) ac_config_files="$ac_config_files nm:exec-tool.in"
20310 esac
20313 # Figure out what objdump we will be using.
20314 if test "${gcc_cv_objdump+set}" = set; then :
20316 else
20318 if test -f $gcc_cv_binutils_srcdir/configure.in \
20319 && test -f ../binutils/Makefile \
20320 && test x$build = x$host; then
20321 # Single tree build which includes binutils.
20322 gcc_cv_objdump=../binutils/objdump$build_exeext
20323 elif test -x objdump$build_exeext; then
20324 gcc_cv_objdump=./objdump$build_exeext
20325 elif test -x $OBJDUMP_FOR_TARGET; then
20326 gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
20327 else
20328 # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
20329 set dummy $OBJDUMP_FOR_TARGET; ac_word=$2
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20331 $as_echo_n "checking for $ac_word... " >&6; }
20332 if test "${ac_cv_path_gcc_cv_objdump+set}" = set; then :
20333 $as_echo_n "(cached) " >&6
20334 else
20335 case $gcc_cv_objdump in
20336 [\\/]* | ?:[\\/]*)
20337 ac_cv_path_gcc_cv_objdump="$gcc_cv_objdump" # Let the user override the test with a path.
20340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20341 for as_dir in $PATH
20343 IFS=$as_save_IFS
20344 test -z "$as_dir" && as_dir=.
20345 for ac_exec_ext in '' $ac_executable_extensions; do
20346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20347 ac_cv_path_gcc_cv_objdump="$as_dir/$ac_word$ac_exec_ext"
20348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20349 break 2
20351 done
20352 done
20353 IFS=$as_save_IFS
20356 esac
20358 gcc_cv_objdump=$ac_cv_path_gcc_cv_objdump
20359 if test -n "$gcc_cv_objdump"; then
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20361 $as_echo "$gcc_cv_objdump" >&6; }
20362 else
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20364 $as_echo "no" >&6; }
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what objdump to use" >&5
20372 $as_echo_n "checking what objdump to use... " >&6; }
20373 if test "$gcc_cv_objdump" = ../binutils/objdump$build_exeext; then
20374 # Single tree build which includes binutils.
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built objdump" >&5
20376 $as_echo "newly built objdump" >&6; }
20377 elif test x$gcc_cv_objdump = x; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20379 $as_echo "not found" >&6; }
20380 else
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_objdump" >&5
20382 $as_echo "$gcc_cv_objdump" >&6; }
20385 # Figure out what readelf we will be using.
20386 if test "${gcc_cv_readelf+set}" = set; then :
20388 else
20390 if test -f $gcc_cv_binutils_srcdir/configure.in \
20391 && test -f ../binutils/Makefile \
20392 && test x$build = x$host; then
20393 # Single tree build which includes binutils.
20394 gcc_cv_readelf=../binutils/readelf$build_exeext
20395 elif test -x readelf$build_exeext; then
20396 gcc_cv_readelf=./readelf$build_exeext
20397 else
20398 # Extract the first word of "readelf", so it can be a program name with args.
20399 set dummy readelf; ac_word=$2
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20401 $as_echo_n "checking for $ac_word... " >&6; }
20402 if test "${ac_cv_path_gcc_cv_readelf+set}" = set; then :
20403 $as_echo_n "(cached) " >&6
20404 else
20405 case $gcc_cv_readelf in
20406 [\\/]* | ?:[\\/]*)
20407 ac_cv_path_gcc_cv_readelf="$gcc_cv_readelf" # Let the user override the test with a path.
20410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20411 for as_dir in $PATH
20413 IFS=$as_save_IFS
20414 test -z "$as_dir" && as_dir=.
20415 for ac_exec_ext in '' $ac_executable_extensions; do
20416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20417 ac_cv_path_gcc_cv_readelf="$as_dir/$ac_word$ac_exec_ext"
20418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20419 break 2
20421 done
20422 done
20423 IFS=$as_save_IFS
20426 esac
20428 gcc_cv_readelf=$ac_cv_path_gcc_cv_readelf
20429 if test -n "$gcc_cv_readelf"; then
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20431 $as_echo "$gcc_cv_readelf" >&6; }
20432 else
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20434 $as_echo "no" >&6; }
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what readelf to use" >&5
20442 $as_echo_n "checking what readelf to use... " >&6; }
20443 if test "$gcc_cv_readelf" = ../binutils/readelf$build_exeext; then
20444 # Single tree build which includes binutils.
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: newly built readelf" >&5
20446 $as_echo "newly built readelf" >&6; }
20447 elif test x$gcc_cv_readelf = x; then
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20449 $as_echo "not found" >&6; }
20450 else
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_readelf" >&5
20452 $as_echo "$gcc_cv_readelf" >&6; }
20455 # Figure out what assembler alignment features are present.
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .balign and .p2align" >&5
20457 $as_echo_n "checking assembler for .balign and .p2align... " >&6; }
20458 if test "${gcc_cv_as_balign_and_p2align+set}" = set; then :
20459 $as_echo_n "(cached) " >&6
20460 else
20461 gcc_cv_as_balign_and_p2align=no
20462 if test $in_tree_gas = yes; then
20463 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 6 \) \* 1000 + 0`
20464 then gcc_cv_as_balign_and_p2align=yes
20466 elif test x$gcc_cv_as != x; then
20467 echo '.balign 4
20468 .p2align 2' > conftest.s
20469 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20471 (eval $ac_try) 2>&5
20472 ac_status=$?
20473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20474 test $ac_status = 0; }; }
20475 then
20476 gcc_cv_as_balign_and_p2align=yes
20477 else
20478 echo "configure: failed program was" >&5
20479 cat conftest.s >&5
20481 rm -f conftest.o conftest.s
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_balign_and_p2align" >&5
20485 $as_echo "$gcc_cv_as_balign_and_p2align" >&6; }
20486 if test $gcc_cv_as_balign_and_p2align = yes; then
20488 $as_echo "#define HAVE_GAS_BALIGN_AND_P2ALIGN 1" >>confdefs.h
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .p2align with maximum skip" >&5
20493 $as_echo_n "checking assembler for .p2align with maximum skip... " >&6; }
20494 if test "${gcc_cv_as_max_skip_p2align+set}" = set; then :
20495 $as_echo_n "(cached) " >&6
20496 else
20497 gcc_cv_as_max_skip_p2align=no
20498 if test $in_tree_gas = yes; then
20499 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20500 then gcc_cv_as_max_skip_p2align=yes
20502 elif test x$gcc_cv_as != x; then
20503 echo '.p2align 4,,7' > conftest.s
20504 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20506 (eval $ac_try) 2>&5
20507 ac_status=$?
20508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20509 test $ac_status = 0; }; }
20510 then
20511 gcc_cv_as_max_skip_p2align=yes
20512 else
20513 echo "configure: failed program was" >&5
20514 cat conftest.s >&5
20516 rm -f conftest.o conftest.s
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_max_skip_p2align" >&5
20520 $as_echo "$gcc_cv_as_max_skip_p2align" >&6; }
20521 if test $gcc_cv_as_max_skip_p2align = yes; then
20523 $as_echo "#define HAVE_GAS_MAX_SKIP_P2ALIGN 1" >>confdefs.h
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .literal16" >&5
20528 $as_echo_n "checking assembler for .literal16... " >&6; }
20529 if test "${gcc_cv_as_literal16+set}" = set; then :
20530 $as_echo_n "(cached) " >&6
20531 else
20532 gcc_cv_as_literal16=no
20533 if test $in_tree_gas = yes; then
20534 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 8 \) \* 1000 + 0`
20535 then gcc_cv_as_literal16=yes
20537 elif test x$gcc_cv_as != x; then
20538 echo '.literal16' > conftest.s
20539 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20541 (eval $ac_try) 2>&5
20542 ac_status=$?
20543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20544 test $ac_status = 0; }; }
20545 then
20546 gcc_cv_as_literal16=yes
20547 else
20548 echo "configure: failed program was" >&5
20549 cat conftest.s >&5
20551 rm -f conftest.o conftest.s
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_literal16" >&5
20555 $as_echo "$gcc_cv_as_literal16" >&6; }
20556 if test $gcc_cv_as_literal16 = yes; then
20558 $as_echo "#define HAVE_GAS_LITERAL16 1" >>confdefs.h
20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working .subsection -1" >&5
20563 $as_echo_n "checking assembler for working .subsection -1... " >&6; }
20564 if test "${gcc_cv_as_subsection_m1+set}" = set; then :
20565 $as_echo_n "(cached) " >&6
20566 else
20567 gcc_cv_as_subsection_m1=no
20568 if test $in_tree_gas = yes; then
20569 if test $in_tree_gas_is_elf = yes \
20570 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 9 \) \* 1000 + 0`
20571 then gcc_cv_as_subsection_m1=yes
20573 elif test x$gcc_cv_as != x; then
20574 echo 'conftest_label1: .word 0
20575 .subsection -1
20576 conftest_label2: .word 0
20577 .previous' > conftest.s
20578 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20579 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20580 (eval $ac_try) 2>&5
20581 ac_status=$?
20582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20583 test $ac_status = 0; }; }
20584 then
20585 if test x$gcc_cv_nm != x; then
20586 $gcc_cv_nm conftest.o | grep conftest_label1 > conftest.nm1
20587 $gcc_cv_nm conftest.o | grep conftest_label2 | sed -e 's/label2/label1/' > conftest.nm2
20588 if cmp conftest.nm1 conftest.nm2 > /dev/null 2>&1
20589 then :
20590 else gcc_cv_as_subsection_m1=yes
20592 rm -f conftest.nm1 conftest.nm2
20594 else
20595 echo "configure: failed program was" >&5
20596 cat conftest.s >&5
20598 rm -f conftest.o conftest.s
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_subsection_m1" >&5
20602 $as_echo "$gcc_cv_as_subsection_m1" >&6; }
20603 if test $gcc_cv_as_subsection_m1 = yes; then
20605 $as_echo "#define HAVE_GAS_SUBSECTION_ORDERING 1" >>confdefs.h
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weak" >&5
20610 $as_echo_n "checking assembler for .weak... " >&6; }
20611 if test "${gcc_cv_as_weak+set}" = set; then :
20612 $as_echo_n "(cached) " >&6
20613 else
20614 gcc_cv_as_weak=no
20615 if test $in_tree_gas = yes; then
20616 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 2 \) \* 1000 + 0`
20617 then gcc_cv_as_weak=yes
20619 elif test x$gcc_cv_as != x; then
20620 echo ' .weak foobar' > conftest.s
20621 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20626 test $ac_status = 0; }; }
20627 then
20628 gcc_cv_as_weak=yes
20629 else
20630 echo "configure: failed program was" >&5
20631 cat conftest.s >&5
20633 rm -f conftest.o conftest.s
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weak" >&5
20637 $as_echo "$gcc_cv_as_weak" >&6; }
20638 if test $gcc_cv_as_weak = yes; then
20640 $as_echo "#define HAVE_GAS_WEAK 1" >>confdefs.h
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .weakref" >&5
20645 $as_echo_n "checking assembler for .weakref... " >&6; }
20646 if test "${gcc_cv_as_weakref+set}" = set; then :
20647 $as_echo_n "(cached) " >&6
20648 else
20649 gcc_cv_as_weakref=no
20650 if test $in_tree_gas = yes; then
20651 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
20652 then gcc_cv_as_weakref=yes
20654 elif test x$gcc_cv_as != x; then
20655 echo ' .weakref foobar, barfnot' > conftest.s
20656 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20658 (eval $ac_try) 2>&5
20659 ac_status=$?
20660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20661 test $ac_status = 0; }; }
20662 then
20663 gcc_cv_as_weakref=yes
20664 else
20665 echo "configure: failed program was" >&5
20666 cat conftest.s >&5
20668 rm -f conftest.o conftest.s
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_weakref" >&5
20672 $as_echo "$gcc_cv_as_weakref" >&6; }
20673 if test $gcc_cv_as_weakref = yes; then
20675 $as_echo "#define HAVE_GAS_WEAKREF 1" >>confdefs.h
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .nsubspa comdat" >&5
20680 $as_echo_n "checking assembler for .nsubspa comdat... " >&6; }
20681 if test "${gcc_cv_as_nsubspa_comdat+set}" = set; then :
20682 $as_echo_n "(cached) " >&6
20683 else
20684 gcc_cv_as_nsubspa_comdat=no
20685 if test $in_tree_gas = yes; then
20686 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
20687 then gcc_cv_as_nsubspa_comdat=yes
20689 elif test x$gcc_cv_as != x; then
20690 echo ' .SPACE $TEXT$
20691 .NSUBSPA $CODE$,COMDAT' > conftest.s
20692 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20697 test $ac_status = 0; }; }
20698 then
20699 gcc_cv_as_nsubspa_comdat=yes
20700 else
20701 echo "configure: failed program was" >&5
20702 cat conftest.s >&5
20704 rm -f conftest.o conftest.s
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_nsubspa_comdat" >&5
20708 $as_echo "$gcc_cv_as_nsubspa_comdat" >&6; }
20709 if test $gcc_cv_as_nsubspa_comdat = yes; then
20711 $as_echo "#define HAVE_GAS_NSUBSPA_COMDAT 1" >>confdefs.h
20715 # .hidden needs to be supported in both the assembler and the linker,
20716 # because GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.
20717 # This is irritatingly difficult to feature test for; we have to check the
20718 # date string after the version number. If we've got an in-tree
20719 # ld, we don't know its patchlevel version, so we set the baseline at 2.13
20720 # to be safe.
20721 # The gcc_GAS_CHECK_FEATURE call just sets a cache variable.
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .hidden" >&5
20723 $as_echo_n "checking assembler for .hidden... " >&6; }
20724 if test "${gcc_cv_as_hidden+set}" = set; then :
20725 $as_echo_n "(cached) " >&6
20726 else
20727 gcc_cv_as_hidden=no
20728 if test $in_tree_gas = yes; then
20729 if test $in_tree_gas_is_elf = yes \
20730 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 13 \) \* 1000 + 0`
20731 then gcc_cv_as_hidden=yes
20733 elif test x$gcc_cv_as != x; then
20734 echo ' .hidden foobar
20735 foobar:' > conftest.s
20736 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20737 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20738 (eval $ac_try) 2>&5
20739 ac_status=$?
20740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20741 test $ac_status = 0; }; }
20742 then
20743 gcc_cv_as_hidden=yes
20744 else
20745 echo "configure: failed program was" >&5
20746 cat conftest.s >&5
20748 rm -f conftest.o conftest.s
20751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_hidden" >&5
20752 $as_echo "$gcc_cv_as_hidden" >&6; }
20755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker for .hidden support" >&5
20756 $as_echo_n "checking linker for .hidden support... " >&6; }
20757 if test "${gcc_cv_ld_hidden+set}" = set; then :
20758 $as_echo_n "(cached) " >&6
20759 else
20760 if test $in_tree_ld = yes ; then
20761 gcc_cv_ld_hidden=no
20762 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 \
20763 && test $in_tree_ld_is_elf = yes; then
20764 gcc_cv_ld_hidden=yes
20766 else
20767 gcc_cv_ld_hidden=yes
20768 ld_ver=`$gcc_cv_ld --version 2>/dev/null | sed 1q`
20769 if echo "$ld_ver" | grep GNU > /dev/null; then
20770 ld_vers=`echo $ld_ver | sed -n \
20771 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20772 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'`
20773 ld_vers_major=`expr "$ld_vers" : '\([0-9]*\)'`
20774 ld_vers_minor=`expr "$ld_vers" : '[0-9]*\.\([0-9]*\)'`
20775 ld_vers_patch=`expr "$ld_vers" : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20776 if test 0"$ld_date" -lt 20020404; then
20777 if test -n "$ld_date"; then
20778 # If there was date string, but was earlier than 2002-04-04, fail
20779 gcc_cv_ld_hidden=no
20780 elif test -z "$ld_vers"; then
20781 # If there was no date string nor ld version number, something is wrong
20782 gcc_cv_ld_hidden=no
20783 else
20784 test -z "$ld_vers_patch" && ld_vers_patch=0
20785 if test "$ld_vers_major" -lt 2; then
20786 gcc_cv_ld_hidden=no
20787 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 12; then
20788 gcc_cv_ld_hidden="no"
20789 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 12 -a "$ld_vers_patch" -eq 0; then
20790 gcc_cv_ld_hidden=no
20794 else
20795 case "${target}" in
20796 hppa64*-*-hpux* | ia64*-*-hpux*)
20797 gcc_cv_ld_hidden=yes
20799 *-*-solaris2.9* | *-*-solaris2.1[0-9]*)
20800 gcc_cv_ld_hidden=yes
20803 gcc_cv_ld_hidden=no
20805 esac
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_hidden" >&5
20810 $as_echo "$gcc_cv_ld_hidden" >&6; }
20811 libgcc_visibility=no
20814 if test $gcc_cv_as_hidden = yes && test $gcc_cv_ld_hidden = yes; then
20815 libgcc_visibility=yes
20817 $as_echo "#define HAVE_GAS_HIDDEN 1" >>confdefs.h
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker read-only and read-write section mixing" >&5
20822 $as_echo_n "checking linker read-only and read-write section mixing... " >&6; }
20823 gcc_cv_ld_ro_rw_mix=unknown
20824 if test $in_tree_ld = yes ; then
20825 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 \
20826 && test $in_tree_ld_is_elf = yes; then
20827 gcc_cv_ld_ro_rw_mix=read-write
20829 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
20830 echo '.section myfoosect, "a"' > conftest1.s
20831 echo '.section myfoosect, "aw"' > conftest2.s
20832 echo '.byte 1' >> conftest2.s
20833 echo '.section myfoosect, "a"' > conftest3.s
20834 echo '.byte 0' >> conftest3.s
20835 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \
20836 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \
20837 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \
20838 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \
20839 conftest2.o conftest3.o > /dev/null 2>&1; then
20840 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \
20841 | sed -e '/myfoosect/!d' -e N`
20842 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then
20843 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then
20844 gcc_cv_ld_ro_rw_mix=read-only
20845 else
20846 gcc_cv_ld_ro_rw_mix=read-write
20850 rm -f conftest.* conftest[123].*
20852 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then
20854 $as_echo "#define HAVE_LD_RO_RW_SECTION_MIXING 1" >>confdefs.h
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_ro_rw_mix" >&5
20858 $as_echo "$gcc_cv_ld_ro_rw_mix" >&6; }
20860 # Check if we have .[us]leb128, and support symbol arithmetic with it.
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .sleb128 and .uleb128" >&5
20862 $as_echo_n "checking assembler for .sleb128 and .uleb128... " >&6; }
20863 if test "${gcc_cv_as_leb128+set}" = set; then :
20864 $as_echo_n "(cached) " >&6
20865 else
20866 gcc_cv_as_leb128=no
20867 if test $in_tree_gas = yes; then
20868 if test $in_tree_gas_is_elf = yes \
20869 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
20870 then gcc_cv_as_leb128=yes
20872 elif test x$gcc_cv_as != x; then
20873 echo ' .data
20874 .uleb128 L2 - L1
20876 .uleb128 1280
20877 .sleb128 -1010
20878 L2:' > conftest.s
20879 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20884 test $ac_status = 0; }; }
20885 then
20886 # GAS versions before 2.11 do not support uleb128,
20887 # despite appearing to.
20888 # ??? There exists an elf-specific test that will crash
20889 # the assembler. Perhaps it's better to figure out whether
20890 # arbitrary sections are supported and try the test.
20891 as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
20892 if echo "$as_ver" | grep GNU > /dev/null; then
20893 as_vers=`echo $as_ver | sed -n \
20894 -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*.*\)$,\1,p'`
20895 as_major=`expr "$as_vers" : '\([0-9]*\)'`
20896 as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
20897 if test $as_major -eq 2 && test $as_minor -lt 11
20898 then :
20899 else gcc_cv_as_leb128=yes
20902 else
20903 echo "configure: failed program was" >&5
20904 cat conftest.s >&5
20906 rm -f conftest.o conftest.s
20909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_leb128" >&5
20910 $as_echo "$gcc_cv_as_leb128" >&6; }
20911 if test $gcc_cv_as_leb128 = yes; then
20913 $as_echo "#define HAVE_AS_LEB128 1" >>confdefs.h
20917 # Check if we have assembler support for unwind directives.
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi directives" >&5
20919 $as_echo_n "checking assembler for cfi directives... " >&6; }
20920 if test "${gcc_cv_as_cfi_directive+set}" = set; then :
20921 $as_echo_n "(cached) " >&6
20922 else
20923 gcc_cv_as_cfi_directive=no
20924 if test x$gcc_cv_as != x; then
20925 echo ' .text
20926 .cfi_startproc
20927 .cfi_offset 0, 0
20928 .cfi_same_value 1
20929 .cfi_def_cfa 1, 2
20930 .cfi_escape 1, 2, 3, 4, 5
20931 .cfi_endproc' > conftest.s
20932 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20934 (eval $ac_try) 2>&5
20935 ac_status=$?
20936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20937 test $ac_status = 0; }; }
20938 then
20939 case "$target" in
20940 *-*-solaris*)
20941 # If the linker used on Solaris (like Sun ld) isn't capable of merging
20942 # read-only and read-write sections, we need to make sure that the
20943 # assembler used emits read-write .eh_frame sections.
20944 if test "x$gcc_cv_ld_ro_rw_mix" != xread-write; then
20945 if test "x$gcc_cv_objdump" != x; then
20946 if $gcc_cv_objdump -h conftest.o 2>/dev/null | \
20947 sed -e /.eh_frame/!d -e N | grep READONLY > /dev/null; then
20948 gcc_cv_as_cfi_directive=no
20949 else
20950 gcc_cv_as_cfi_directive=yes
20952 else
20953 # no objdump, err on the side of caution
20954 gcc_cv_as_cfi_directive=no
20956 else
20957 gcc_cv_as_cfi_directive=yes
20960 *-*-*)
20961 gcc_cv_as_cfi_directive=yes
20963 esac
20964 else
20965 echo "configure: failed program was" >&5
20966 cat conftest.s >&5
20968 rm -f conftest.o conftest.s
20971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
20972 $as_echo "$gcc_cv_as_cfi_directive" >&6; }
20974 if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
20976 $as_echo_n "checking assembler for working cfi advance... " >&6; }
20977 if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
20978 $as_echo_n "(cached) " >&6
20979 else
20980 gcc_cv_as_cfi_advance_working=no
20981 if test x$gcc_cv_as != x; then
20982 echo ' .text
20983 .cfi_startproc
20984 .cfi_adjust_cfa_offset 64
20985 .skip 512, 0
20986 .cfi_adjust_cfa_offset 128
20987 .cfi_endproc' > conftest.s
20988 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
20989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20993 test $ac_status = 0; }; }
20994 then
20996 if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
20997 | grep 'DW_CFA_advance_loc[12]:[ ][ ]*512[ ]' >/dev/null; then
20998 gcc_cv_as_cfi_advance_working=yes
21001 else
21002 echo "configure: failed program was" >&5
21003 cat conftest.s >&5
21005 rm -f conftest.o conftest.s
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_advance_working" >&5
21009 $as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
21011 else
21012 # no readelf, err on the side of caution
21013 gcc_cv_as_cfi_advance_working=no
21016 cat >>confdefs.h <<_ACEOF
21017 #define HAVE_GAS_CFI_DIRECTIVE `if test $gcc_cv_as_cfi_directive = yes \
21018 && test $gcc_cv_as_cfi_advance_working = yes; then echo 1; else echo 0; fi`
21019 _ACEOF
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi personality directive" >&5
21023 $as_echo_n "checking assembler for cfi personality directive... " >&6; }
21024 if test "${gcc_cv_as_cfi_personality_directive+set}" = set; then :
21025 $as_echo_n "(cached) " >&6
21026 else
21027 gcc_cv_as_cfi_personality_directive=no
21028 if test x$gcc_cv_as != x; then
21029 echo ' .text
21030 .cfi_startproc
21031 .cfi_personality 0, symbol
21032 .cfi_endproc' > 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_cfi_personality_directive=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_cfi_personality_directive" >&5
21049 $as_echo "$gcc_cv_as_cfi_personality_directive" >&6; }
21052 cat >>confdefs.h <<_ACEOF
21053 #define HAVE_GAS_CFI_PERSONALITY_DIRECTIVE `if test $gcc_cv_as_cfi_personality_directive = yes;
21054 then echo 1; else echo 0; fi`
21055 _ACEOF
21058 # GAS versions up to and including 2.11.0 may mis-optimize
21059 # .eh_frame data.
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5
21061 $as_echo_n "checking assembler for eh_frame optimization... " >&6; }
21062 if test "${gcc_cv_as_eh_frame+set}" = set; then :
21063 $as_echo_n "(cached) " >&6
21064 else
21065 gcc_cv_as_eh_frame=no
21066 if test $in_tree_gas = yes; then
21067 if test $in_tree_gas_is_elf = yes \
21068 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21069 then gcc_cv_as_eh_frame=yes
21071 elif test x$gcc_cv_as != x; then
21072 echo ' .text
21073 .LFB1:
21074 .4byte 0
21075 .L1:
21076 .4byte 0
21077 .LFE1:
21078 .section .eh_frame,"aw",@progbits
21079 __FRAME_BEGIN__:
21080 .4byte .LECIE1-.LSCIE1
21081 .LSCIE1:
21082 .4byte 0x0
21083 .byte 0x1
21084 .ascii "z\0"
21085 .byte 0x1
21086 .byte 0x78
21087 .byte 0x1a
21088 .byte 0x0
21089 .byte 0x4
21090 .4byte 1
21091 .p2align 1
21092 .LECIE1:
21093 .LSFDE1:
21094 .4byte .LEFDE1-.LASFDE1
21095 .LASFDE1:
21096 .4byte .LASFDE1-__FRAME_BEGIN__
21097 .4byte .LFB1
21098 .4byte .LFE1-.LFB1
21099 .byte 0x4
21100 .4byte .LFE1-.LFB1
21101 .byte 0x4
21102 .4byte .L1-.LFB1
21103 .LEFDE1:' > conftest.s
21104 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21106 (eval $ac_try) 2>&5
21107 ac_status=$?
21108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21109 test $ac_status = 0; }; }
21110 then
21111 cat > conftest.lit <<EOF
21112 0000 10000000 00000000 017a0001 781a0004 .........z..x...
21113 0010 01000000 12000000 18000000 00000000 ................
21114 0020 08000000 04080000 0044 .........D
21116 cat > conftest.big <<EOF
21117 0000 00000010 00000000 017a0001 781a0004 .........z..x...
21118 0010 00000001 00000012 00000018 00000000 ................
21119 0020 00000008 04000000 0844 .........D
21121 # If the assembler didn't choke, and we can objdump,
21122 # and we got the correct data, then succeed.
21123 # The text in the here-document typically retains its unix-style line
21124 # endings, while the output of objdump will use host line endings.
21125 # Therefore, use diff -b for the comparisons.
21126 if test x$gcc_cv_objdump != x \
21127 && $gcc_cv_objdump -s -j .eh_frame conftest.o 2>/dev/null \
21128 | tail -3 > conftest.got \
21129 && { diff -b conftest.lit conftest.got > /dev/null 2>&1 \
21130 || diff -b conftest.big conftest.got > /dev/null 2>&1; }
21131 then
21132 gcc_cv_as_eh_frame=yes
21133 elif { ac_try='$gcc_cv_as -o conftest.o --traditional-format /dev/null'
21134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21135 (eval $ac_try) 2>&5
21136 ac_status=$?
21137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21138 test $ac_status = 0; }; }; then
21139 gcc_cv_as_eh_frame=buggy
21140 else
21141 # Uh oh, what do we do now?
21142 gcc_cv_as_eh_frame=no
21144 else
21145 echo "configure: failed program was" >&5
21146 cat conftest.s >&5
21148 rm -f conftest.o conftest.s
21151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_eh_frame" >&5
21152 $as_echo "$gcc_cv_as_eh_frame" >&6; }
21155 if test $gcc_cv_as_eh_frame = buggy; then
21157 $as_echo "#define USE_AS_TRADITIONAL_FORMAT 1" >>confdefs.h
21161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21162 $as_echo_n "checking assembler for section merging support... " >&6; }
21163 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21164 $as_echo_n "(cached) " >&6
21165 else
21166 gcc_cv_as_shf_merge=no
21167 if test $in_tree_gas = yes; then
21168 if test $in_tree_gas_is_elf = yes \
21169 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21170 then gcc_cv_as_shf_merge=yes
21172 elif test x$gcc_cv_as != x; then
21173 echo '.section .rodata.str, "aMS", @progbits, 1' > conftest.s
21174 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21176 (eval $ac_try) 2>&5
21177 ac_status=$?
21178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21179 test $ac_status = 0; }; }
21180 then
21181 gcc_cv_as_shf_merge=yes
21182 else
21183 echo "configure: failed program was" >&5
21184 cat conftest.s >&5
21186 rm -f conftest.o conftest.s
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21190 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21192 if test $gcc_cv_as_shf_merge = no; then
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for section merging support" >&5
21194 $as_echo_n "checking assembler for section merging support... " >&6; }
21195 if test "${gcc_cv_as_shf_merge+set}" = set; then :
21196 $as_echo_n "(cached) " >&6
21197 else
21198 gcc_cv_as_shf_merge=no
21199 if test $in_tree_gas = yes; then
21200 if test $in_tree_gas_is_elf = yes \
21201 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21202 then gcc_cv_as_shf_merge=yes
21204 elif test x$gcc_cv_as != x; then
21205 echo '.section .rodata.str, "aMS", %progbits, 1' > conftest.s
21206 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21208 (eval $ac_try) 2>&5
21209 ac_status=$?
21210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21211 test $ac_status = 0; }; }
21212 then
21213 gcc_cv_as_shf_merge=yes
21214 else
21215 echo "configure: failed program was" >&5
21216 cat conftest.s >&5
21218 rm -f conftest.o conftest.s
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_shf_merge" >&5
21222 $as_echo "$gcc_cv_as_shf_merge" >&6; }
21226 cat >>confdefs.h <<_ACEOF
21227 #define HAVE_GAS_SHF_MERGE `if test $gcc_cv_as_shf_merge = yes; then echo 1; else echo 0; fi`
21228 _ACEOF
21231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21232 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21233 if test "${gcc_cv_as_comdat_group+set}" = set; then :
21234 $as_echo_n "(cached) " >&6
21235 else
21236 gcc_cv_as_comdat_group=no
21237 if test $in_tree_gas = yes; then
21238 if test $in_tree_gas_is_elf = yes \
21239 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21240 then gcc_cv_as_comdat_group=yes
21242 elif test x$gcc_cv_as != x; then
21243 echo '.section .text,"axG",@progbits,.foo,comdat' > conftest.s
21244 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21246 (eval $ac_try) 2>&5
21247 ac_status=$?
21248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21249 test $ac_status = 0; }; }
21250 then
21251 gcc_cv_as_comdat_group=yes
21252 else
21253 echo "configure: failed program was" >&5
21254 cat conftest.s >&5
21256 rm -f conftest.o conftest.s
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group" >&5
21260 $as_echo "$gcc_cv_as_comdat_group" >&6; }
21262 if test $gcc_cv_as_comdat_group = yes; then
21263 gcc_cv_as_comdat_group_percent=no
21264 else
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for COMDAT group support" >&5
21266 $as_echo_n "checking assembler for COMDAT group support... " >&6; }
21267 if test "${gcc_cv_as_comdat_group_percent+set}" = set; then :
21268 $as_echo_n "(cached) " >&6
21269 else
21270 gcc_cv_as_comdat_group_percent=no
21271 if test $in_tree_gas = yes; then
21272 if test $in_tree_gas_is_elf = yes \
21273 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
21274 then gcc_cv_as_comdat_group_percent=yes
21276 elif test x$gcc_cv_as != x; then
21277 echo '.section .text,"axG",%progbits,.foo,comdat' > conftest.s
21278 if { ac_try='$gcc_cv_as --fatal-warnings -o conftest.o conftest.s >&5'
21279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
21282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21283 test $ac_status = 0; }; }
21284 then
21285 gcc_cv_as_comdat_group_percent=yes
21286 else
21287 echo "configure: failed program was" >&5
21288 cat conftest.s >&5
21290 rm -f conftest.o conftest.s
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comdat_group_percent" >&5
21294 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
21297 if test $in_tree_ld = yes ; then
21298 comdat_group=no
21299 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 \
21300 && test $in_tree_ld_is_elf = yes; then
21301 comdat_group=yes
21303 elif test x"$ld_vers" != x; then
21304 comdat_group=yes
21305 if test 0"$ld_date" -lt 20050308; then
21306 if test -n "$ld_date"; then
21307 # If there was date string, but was earlier than 2005-03-08, fail
21308 comdat_group=no
21309 elif test "$ld_vers_major" -lt 2; then
21310 comdat_group=no
21311 elif test "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -lt 16; then
21312 comdat_group=no
21315 else
21316 # assume linkers other than GNU ld don't support COMDAT group
21317 comdat_group=no
21319 if test $comdat_group = no; then
21320 gcc_cv_as_comdat_group=no
21321 gcc_cv_as_comdat_group_percent=no
21324 cat >>confdefs.h <<_ACEOF
21325 #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`
21326 _ACEOF
21329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for line table discriminator support" >&5
21330 $as_echo_n "checking assembler for line table discriminator support... " >&6; }
21331 if test "${gcc_cv_as_discriminator+set}" = set; then :
21332 $as_echo_n "(cached) " >&6
21333 else
21334 gcc_cv_as_discriminator=no
21335 if test $in_tree_gas = yes; then
21336 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 51`
21337 then gcc_cv_as_discriminator=yes
21339 elif test x$gcc_cv_as != x; then
21340 echo ' .text
21341 .file 1 "conf.c"
21342 .loc 1 1 0 discriminator 1' > conftest.s
21343 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21345 (eval $ac_try) 2>&5
21346 ac_status=$?
21347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21348 test $ac_status = 0; }; }
21349 then
21350 gcc_cv_as_discriminator=yes
21351 else
21352 echo "configure: failed program was" >&5
21353 cat conftest.s >&5
21355 rm -f conftest.o conftest.s
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_discriminator" >&5
21359 $as_echo "$gcc_cv_as_discriminator" >&6; }
21360 if test $gcc_cv_as_discriminator = yes; then
21362 $as_echo "#define HAVE_GAS_DISCRIMINATOR 1" >>confdefs.h
21366 # Thread-local storage - the check is heavily parameterized.
21367 conftest_s=
21368 tls_first_major=
21369 tls_first_minor=
21370 tls_as_opt=
21371 case "$target" in
21372 alpha*-*-*)
21373 conftest_s='
21374 .section ".tdata","awT",@progbits
21375 foo: .long 25
21376 .text
21377 ldq $27,__tls_get_addr($29) !literal!1
21378 lda $16,foo($29) !tlsgd!1
21379 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1
21380 ldq $27,__tls_get_addr($29) !literal!2
21381 lda $16,foo($29) !tlsldm!2
21382 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2
21383 ldq $1,foo($29) !gotdtprel
21384 ldah $2,foo($29) !dtprelhi
21385 lda $3,foo($2) !dtprello
21386 lda $4,foo($29) !dtprel
21387 ldq $1,foo($29) !gottprel
21388 ldah $2,foo($29) !tprelhi
21389 lda $3,foo($2) !tprello
21390 lda $4,foo($29) !tprel'
21391 tls_first_major=2
21392 tls_first_minor=13
21393 tls_as_opt=--fatal-warnings
21395 cris-*-*|crisv32-*-*)
21396 conftest_s='
21397 .section ".tdata","awT",@progbits
21398 x: .long 25
21399 .text
21400 move.d x:IE,$r10
21401 nop'
21402 tls_first_major=2
21403 tls_first_minor=20
21404 tls_as_opt=--fatal-warnings
21406 frv*-*-*)
21407 conftest_s='
21408 .section ".tdata","awT",@progbits
21409 x: .long 25
21410 .text
21411 call #gettlsoff(x)'
21412 tls_first_major=2
21413 tls_first_minor=14
21415 hppa*-*-linux*)
21416 conftest_s='
21417 t1: .reg %r20
21418 t2: .reg %r21
21419 gp: .reg %r19
21420 .section ".tdata","awT",@progbits
21421 foo: .long 25
21422 .text
21423 .align 4
21424 addil LT%foo-$tls_gdidx$,gp
21425 ldo RT%foo-$tls_gdidx$(%r1),%arg0
21426 b __tls_get_addr
21428 addil LT%foo-$tls_ldidx$,gp
21429 b __tls_get_addr
21430 ldo RT%foo-$tls_ldidx$(%r1),%arg0
21431 addil LR%foo-$tls_dtpoff$,%ret0
21432 ldo RR%foo-$tls_dtpoff$(%r1),%t1
21433 mfctl %cr27,%t1
21434 addil LT%foo-$tls_ieoff$,gp
21435 ldw RT%foo-$tls_ieoff$(%r1),%t2
21436 add %t1,%t2,%t3
21437 mfctl %cr27,%t1
21438 addil LR%foo-$tls_leoff$,%t1
21439 ldo RR%foo-$tls_leoff$(%r1),%t2'
21440 tls_first_major=2
21441 tls_first_minor=15
21442 tls_as_opt=--fatal-warnings
21444 arm*-*-*)
21445 conftest_s='
21446 .section ".tdata","awT",%progbits
21447 foo: .long 25
21448 .text
21449 .word foo(gottpoff)
21450 .word foo(tpoff)
21451 .word foo(tlsgd)
21452 .word foo(tlsldm)
21453 .word foo(tlsldo)'
21454 tls_first_major=2
21455 tls_first_minor=17
21457 i[34567]86-*-*)
21458 conftest_s='
21459 .section ".tdata","awT",@progbits
21460 foo: .long 25
21461 .text
21462 movl %gs:0, %eax
21463 leal foo@TLSGD(,%ebx,1), %eax
21464 leal foo@TLSLDM(%ebx), %eax
21465 leal foo@DTPOFF(%eax), %edx
21466 movl foo@GOTTPOFF(%ebx), %eax
21467 subl foo@GOTTPOFF(%ebx), %eax
21468 addl foo@GOTNTPOFF(%ebx), %eax
21469 movl foo@INDNTPOFF, %eax
21470 movl $foo@TPOFF, %eax
21471 subl $foo@TPOFF, %eax
21472 leal foo@NTPOFF(%ecx), %eax'
21473 tls_first_major=2
21474 tls_first_minor=14
21475 tls_as_opt=--fatal-warnings
21477 x86_64-*-*)
21478 conftest_s='
21479 .section ".tdata","awT",@progbits
21480 foo: .long 25
21481 .text
21482 movq %fs:0, %rax
21483 leaq foo@TLSGD(%rip), %rdi
21484 leaq foo@TLSLD(%rip), %rdi
21485 leaq foo@DTPOFF(%rax), %rdx
21486 movq foo@GOTTPOFF(%rip), %rax
21487 movq $foo@TPOFF, %rax'
21488 tls_first_major=2
21489 tls_first_minor=14
21490 tls_as_opt=--fatal-warnings
21492 ia64-*-*)
21493 conftest_s='
21494 .section ".tdata","awT",@progbits
21495 foo: data8 25
21496 .text
21497 addl r16 = @ltoff(@dtpmod(foo#)), gp
21498 addl r17 = @ltoff(@dtprel(foo#)), gp
21499 addl r18 = @ltoff(@tprel(foo#)), gp
21500 addl r19 = @dtprel(foo#), gp
21501 adds r21 = @dtprel(foo#), r13
21502 movl r23 = @dtprel(foo#)
21503 addl r20 = @tprel(foo#), gp
21504 adds r22 = @tprel(foo#), r13
21505 movl r24 = @tprel(foo#)'
21506 tls_first_major=2
21507 tls_first_minor=13
21508 tls_as_opt=--fatal-warnings
21510 mips*-*-*)
21511 conftest_s='
21512 .section .tdata,"awT",@progbits
21514 .word 2
21515 .text
21516 addiu $4, $28, %tlsgd(x)
21517 addiu $4, $28, %tlsldm(x)
21518 lui $4, %dtprel_hi(x)
21519 addiu $4, $4, %dtprel_lo(x)
21520 lw $4, %gottprel(x)($28)
21521 lui $4, %tprel_hi(x)
21522 addiu $4, $4, %tprel_lo(x)'
21523 tls_first_major=2
21524 tls_first_minor=16
21525 tls_as_opt='-32 --fatal-warnings'
21527 m68k-*-*)
21528 conftest_s='
21529 .section .tdata,"awT",@progbits
21531 .word 2
21532 .text
21533 foo:
21534 move.l x@TLSGD(%a5),%a0
21535 move.l x@TLSLDM(%a5),%a0
21536 move.l x@TLSLDO(%a5),%a0
21537 move.l x@TLSIE(%a5),%a0
21538 move.l x@TLSLE(%a5),%a0'
21539 tls_first_major=2
21540 tls_first_minor=19
21541 tls_as_opt='--fatal-warnings'
21543 powerpc-*-*)
21544 conftest_s='
21545 .section ".tdata","awT",@progbits
21546 .align 2
21547 ld0: .space 4
21548 ld1: .space 4
21549 x1: .space 4
21550 x2: .space 4
21551 x3: .space 4
21552 .text
21553 addi 3,31,ld0@got@tlsgd
21554 bl __tls_get_addr
21555 addi 3,31,x1@got@tlsld
21556 bl __tls_get_addr
21557 addi 9,3,x1@dtprel
21558 addis 9,3,x2@dtprel@ha
21559 addi 9,9,x2@dtprel@l
21560 lwz 9,x3@got@tprel(31)
21561 add 9,9,x@tls
21562 addi 9,2,x1@tprel
21563 addis 9,2,x2@tprel@ha
21564 addi 9,9,x2@tprel@l'
21565 tls_first_major=2
21566 tls_first_minor=14
21567 tls_as_opt="-a32 --fatal-warnings"
21569 powerpc64-*-*)
21570 conftest_s='
21571 .section ".tdata","awT",@progbits
21572 .align 3
21573 ld0: .space 8
21574 ld1: .space 8
21575 x1: .space 8
21576 x2: .space 8
21577 x3: .space 8
21578 .text
21579 addi 3,2,ld0@got@tlsgd
21580 bl .__tls_get_addr
21582 addi 3,2,ld1@toc
21583 bl .__tls_get_addr
21585 addi 3,2,x1@got@tlsld
21586 bl .__tls_get_addr
21588 addi 9,3,x1@dtprel
21589 bl .__tls_get_addr
21591 addis 9,3,x2@dtprel@ha
21592 addi 9,9,x2@dtprel@l
21593 bl .__tls_get_addr
21595 ld 9,x3@got@dtprel(2)
21596 add 9,9,3
21597 bl .__tls_get_addr
21598 nop'
21599 tls_first_major=2
21600 tls_first_minor=14
21601 tls_as_opt="-a64 --fatal-warnings"
21603 s390-*-*)
21604 conftest_s='
21605 .section ".tdata","awT",@progbits
21606 foo: .long 25
21607 .text
21608 .long foo@TLSGD
21609 .long foo@TLSLDM
21610 .long foo@DTPOFF
21611 .long foo@NTPOFF
21612 .long foo@GOTNTPOFF
21613 .long foo@INDNTPOFF
21614 l %r1,foo@GOTNTPOFF(%r12)
21615 l %r1,0(%r1):tls_load:foo
21616 bas %r14,0(%r1,%r13):tls_gdcall:foo
21617 bas %r14,0(%r1,%r13):tls_ldcall:foo'
21618 tls_first_major=2
21619 tls_first_minor=14
21620 tls_as_opt="-m31 --fatal-warnings"
21622 s390x-*-*)
21623 conftest_s='
21624 .section ".tdata","awT",@progbits
21625 foo: .long 25
21626 .text
21627 .quad foo@TLSGD
21628 .quad foo@TLSLDM
21629 .quad foo@DTPOFF
21630 .quad foo@NTPOFF
21631 .quad foo@GOTNTPOFF
21632 lg %r1,foo@GOTNTPOFF(%r12)
21633 larl %r1,foo@INDNTPOFF
21634 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo
21635 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo'
21636 tls_first_major=2
21637 tls_first_minor=14
21638 tls_as_opt="-m64 -Aesame --fatal-warnings"
21640 sh-*-* | sh[34]-*-*)
21641 conftest_s='
21642 .section ".tdata","awT",@progbits
21643 foo: .long 25
21644 .text
21645 .long foo@TLSGD
21646 .long foo@TLSLDM
21647 .long foo@DTPOFF
21648 .long foo@GOTTPOFF
21649 .long foo@TPOFF'
21650 tls_first_major=2
21651 tls_first_minor=13
21652 tls_as_opt=--fatal-warnings
21654 sparc*-*-*)
21655 case "$target" in
21656 sparc*-sun-solaris2.[56789]*)
21657 # TLS was introduced in the Solaris 9 4/04 release but
21658 # we do not enable it by default on Solaris 9 either.
21659 if test "x$enable_tls" = xyes ; then
21660 on_solaris=yes
21661 else
21662 enable_tls=no;
21665 sparc*-sun-solaris2.*)
21666 on_solaris=yes
21669 on_solaris=no
21671 esac
21672 if test x$on_solaris = xyes && test x$gas_flag = xno; then
21673 conftest_s='
21674 .section ".tdata",#alloc,#write,#tls
21675 foo: .long 25
21676 .text
21677 sethi %tgd_hi22(foo), %o0
21678 add %o0, %tgd_lo10(foo), %o1
21679 add %l7, %o1, %o0, %tgd_add(foo)
21680 call __tls_get_addr, %tgd_call(foo)
21681 sethi %tldm_hi22(foo), %l1
21682 add %l1, %tldm_lo10(foo), %l2
21683 add %l7, %l2, %o0, %tldm_add(foo)
21684 call __tls_get_addr, %tldm_call(foo)
21685 sethi %tldo_hix22(foo), %l3
21686 xor %l3, %tldo_lox10(foo), %l4
21687 add %o0, %l4, %l5, %tldo_add(foo)
21688 sethi %tie_hi22(foo), %o3
21689 add %o3, %tie_lo10(foo), %o3
21690 ld [%l7 + %o3], %o2, %tie_ld(foo)
21691 add %g7, %o2, %o4, %tie_add(foo)
21692 sethi %tle_hix22(foo), %l1
21693 xor %l1, %tle_lox10(foo), %o5
21694 ld [%g7 + %o5], %o1'
21695 tls_first_major=0
21696 tls_first_minor=0
21697 else
21698 conftest_s='
21699 .section ".tdata","awT",@progbits
21700 foo: .long 25
21701 .text
21702 sethi %tgd_hi22(foo), %o0
21703 add %o0, %tgd_lo10(foo), %o1
21704 add %l7, %o1, %o0, %tgd_add(foo)
21705 call __tls_get_addr, %tgd_call(foo)
21706 sethi %tldm_hi22(foo), %l1
21707 add %l1, %tldm_lo10(foo), %l2
21708 add %l7, %l2, %o0, %tldm_add(foo)
21709 call __tls_get_addr, %tldm_call(foo)
21710 sethi %tldo_hix22(foo), %l3
21711 xor %l3, %tldo_lox10(foo), %l4
21712 add %o0, %l4, %l5, %tldo_add(foo)
21713 sethi %tie_hi22(foo), %o3
21714 add %o3, %tie_lo10(foo), %o3
21715 ld [%l7 + %o3], %o2, %tie_ld(foo)
21716 add %g7, %o2, %o4, %tie_add(foo)
21717 sethi %tle_hix22(foo), %l1
21718 xor %l1, %tle_lox10(foo), %o5
21719 ld [%g7 + %o5], %o1'
21720 tls_first_major=2
21721 tls_first_minor=14
21722 tls_as_opt="-32 --fatal-warnings"
21725 xtensa*-*-*)
21726 conftest_s='
21727 .section ".tdata","awT",@progbits
21728 foo: .long 25
21729 .text
21730 movi a8, foo@TLSFUNC
21731 movi a10, foo@TLSARG
21732 callx8.tls a8, foo@TLSCALL'
21733 tls_first_major=2
21734 tls_first_minor=19
21736 esac
21737 set_have_as_tls=no
21738 if test "x$enable_tls" = xno ; then
21739 : # TLS explicitly disabled.
21740 elif test "x$enable_tls" = xyes ; then
21741 set_have_as_tls=yes # TLS explicitly enabled.
21742 elif test -z "$tls_first_major"; then
21743 : # If we don't have a check, assume no support.
21744 else
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for thread-local storage support" >&5
21746 $as_echo_n "checking assembler for thread-local storage support... " >&6; }
21747 if test "${gcc_cv_as_tls+set}" = set; then :
21748 $as_echo_n "(cached) " >&6
21749 else
21750 gcc_cv_as_tls=no
21751 if test $in_tree_gas = yes; then
21752 if test $gcc_cv_gas_vers -ge `expr \( \( $tls_first_major \* 1000 \) + $tls_first_minor \) \* 1000 + 0`
21753 then gcc_cv_as_tls=yes
21755 elif test x$gcc_cv_as != x; then
21756 echo "$conftest_s" > conftest.s
21757 if { ac_try='$gcc_cv_as $tls_as_opt -o conftest.o conftest.s >&5'
21758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21759 (eval $ac_try) 2>&5
21760 ac_status=$?
21761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21762 test $ac_status = 0; }; }
21763 then
21764 gcc_cv_as_tls=yes
21765 else
21766 echo "configure: failed program was" >&5
21767 cat conftest.s >&5
21769 rm -f conftest.o conftest.s
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_tls" >&5
21773 $as_echo "$gcc_cv_as_tls" >&6; }
21774 if test $gcc_cv_as_tls = yes; then
21775 set_have_as_tls=yes
21778 if test $set_have_as_tls = yes ; then
21780 $as_echo "#define HAVE_AS_TLS 1" >>confdefs.h
21784 # Target-specific assembler checks.
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker -Bstatic/-Bdynamic option" >&5
21787 $as_echo_n "checking linker -Bstatic/-Bdynamic option... " >&6; }
21788 gcc_cv_ld_static_dynamic=no
21789 if test $in_tree_ld = yes ; then
21790 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
21791 gcc_cv_ld_static_dynamic=yes
21793 elif test x$gcc_cv_ld != x; then
21794 # Check if linker supports -Bstatic/-Bdynamic option
21795 if $gcc_cv_ld --help 2>/dev/null | grep -- -Bstatic > /dev/null \
21796 && $gcc_cv_ld --help 2>/dev/null | grep -- -Bdynamic > /dev/null; then
21797 gcc_cv_ld_static_dynamic=yes
21800 if test x"$gcc_cv_ld_static_dynamic" = xyes; then
21802 $as_echo "#define HAVE_LD_STATIC_DYNAMIC 1" >>confdefs.h
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_static_dynamic" >&5
21806 $as_echo "$gcc_cv_ld_static_dynamic" >&6; }
21808 if test x"$demangler_in_ld" = xyes; then
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --demangle support" >&5
21810 $as_echo_n "checking linker --demangle support... " >&6; }
21811 gcc_cv_ld_demangle=no
21812 if test $in_tree_ld = yes; then
21813 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 \
21814 gcc_cv_ld_demangle=yes
21816 elif test x$gcc_cv_ld != x -a x"$gnu_ld" = xyes; then
21817 # Check if the GNU linker supports --demangle option
21818 if $gcc_cv_ld --help 2>/dev/null | grep no-demangle > /dev/null; then
21819 gcc_cv_ld_demangle=yes
21822 if test x"$gcc_cv_ld_demangle" = xyes; then
21824 $as_echo "#define HAVE_LD_DEMANGLE 1" >>confdefs.h
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_demangle" >&5
21828 $as_echo "$gcc_cv_ld_demangle" >&6; }
21831 case "$target" in
21832 # All TARGET_ABI_OSF targets.
21833 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*)
21834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
21835 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
21836 if test "${gcc_cv_as_alpha_explicit_relocs+set}" = set; then :
21837 $as_echo_n "(cached) " >&6
21838 else
21839 gcc_cv_as_alpha_explicit_relocs=no
21840 if test $in_tree_gas = yes; then
21841 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 12 \) \* 1000 + 0`
21842 then gcc_cv_as_alpha_explicit_relocs=yes
21844 elif test x$gcc_cv_as != x; then
21845 echo ' .set nomacro
21846 .text
21847 extbl $3, $2, $3 !lituse_bytoff!1
21848 ldq $2, a($29) !literal!1
21849 ldq $4, b($29) !literal!2
21850 ldq_u $3, 0($2) !lituse_base!1
21851 ldq $27, f($29) !literal!5
21852 jsr $26, ($27), f !lituse_jsr!5
21853 ldah $29, 0($26) !gpdisp!3
21854 lda $0, c($29) !gprel
21855 ldah $1, d($29) !gprelhigh
21856 lda $1, d($1) !gprellow
21857 lda $29, 0($29) !gpdisp!3' > conftest.s
21858 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21860 (eval $ac_try) 2>&5
21861 ac_status=$?
21862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21863 test $ac_status = 0; }; }
21864 then
21865 gcc_cv_as_alpha_explicit_relocs=yes
21866 else
21867 echo "configure: failed program was" >&5
21868 cat conftest.s >&5
21870 rm -f conftest.o conftest.s
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_explicit_relocs" >&5
21874 $as_echo "$gcc_cv_as_alpha_explicit_relocs" >&6; }
21875 if test $gcc_cv_as_alpha_explicit_relocs = yes; then
21877 $as_echo "#define HAVE_AS_EXPLICIT_RELOCS 1" >>confdefs.h
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for jsrdirect relocation support" >&5
21881 $as_echo_n "checking assembler for jsrdirect relocation support... " >&6; }
21882 if test "${gcc_cv_as_alpha_jsrdirect_relocs+set}" = set; then :
21883 $as_echo_n "(cached) " >&6
21884 else
21885 gcc_cv_as_alpha_jsrdirect_relocs=no
21886 if test $in_tree_gas = yes; then
21887 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 90`
21888 then gcc_cv_as_alpha_jsrdirect_relocs=yes
21890 elif test x$gcc_cv_as != x; then
21891 echo ' .set nomacro
21892 .text
21893 ldq $27, a($29) !literal!1
21894 jsr $26, ($27), a !lituse_jsrdirect!1' > conftest.s
21895 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21897 (eval $ac_try) 2>&5
21898 ac_status=$?
21899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21900 test $ac_status = 0; }; }
21901 then
21902 gcc_cv_as_alpha_jsrdirect_relocs=yes
21903 else
21904 echo "configure: failed program was" >&5
21905 cat conftest.s >&5
21907 rm -f conftest.o conftest.s
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_alpha_jsrdirect_relocs" >&5
21911 $as_echo "$gcc_cv_as_alpha_jsrdirect_relocs" >&6; }
21912 if test $gcc_cv_as_alpha_jsrdirect_relocs = yes; then
21914 $as_echo "#define HAVE_AS_JSRDIRECT_RELOCS 1" >>confdefs.h
21919 cris-*-*)
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -no-mul-bug-abort option" >&5
21921 $as_echo_n "checking assembler for -no-mul-bug-abort option... " >&6; }
21922 if test "${gcc_cv_as_cris_no_mul_bug+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21924 else
21925 gcc_cv_as_cris_no_mul_bug=no
21926 if test $in_tree_gas = yes; then
21927 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
21928 then gcc_cv_as_cris_no_mul_bug=yes
21930 elif test x$gcc_cv_as != x; then
21931 echo '.text' > conftest.s
21932 if { ac_try='$gcc_cv_as -no-mul-bug-abort -o conftest.o conftest.s >&5'
21933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21937 test $ac_status = 0; }; }
21938 then
21939 gcc_cv_as_cris_no_mul_bug=yes
21940 else
21941 echo "configure: failed program was" >&5
21942 cat conftest.s >&5
21944 rm -f conftest.o conftest.s
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cris_no_mul_bug" >&5
21948 $as_echo "$gcc_cv_as_cris_no_mul_bug" >&6; }
21949 if test $gcc_cv_as_cris_no_mul_bug = yes; then
21951 $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
21956 sparc*-*-*)
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
21958 $as_echo_n "checking assembler for .register... " >&6; }
21959 if test "${gcc_cv_as_sparc_register_op+set}" = set; then :
21960 $as_echo_n "(cached) " >&6
21961 else
21962 gcc_cv_as_sparc_register_op=no
21963 if test x$gcc_cv_as != x; then
21964 echo '.register %g2, #scratch' > conftest.s
21965 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
21966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21967 (eval $ac_try) 2>&5
21968 ac_status=$?
21969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21970 test $ac_status = 0; }; }
21971 then
21972 gcc_cv_as_sparc_register_op=yes
21973 else
21974 echo "configure: failed program was" >&5
21975 cat conftest.s >&5
21977 rm -f conftest.o conftest.s
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_register_op" >&5
21981 $as_echo "$gcc_cv_as_sparc_register_op" >&6; }
21982 if test $gcc_cv_as_sparc_register_op = yes; then
21984 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -relax option" >&5
21989 $as_echo_n "checking assembler for -relax option... " >&6; }
21990 if test "${gcc_cv_as_sparc_relax+set}" = set; then :
21991 $as_echo_n "(cached) " >&6
21992 else
21993 gcc_cv_as_sparc_relax=no
21994 if test x$gcc_cv_as != x; then
21995 echo '.text' > conftest.s
21996 if { ac_try='$gcc_cv_as -relax -o conftest.o conftest.s >&5'
21997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21998 (eval $ac_try) 2>&5
21999 ac_status=$?
22000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22001 test $ac_status = 0; }; }
22002 then
22003 gcc_cv_as_sparc_relax=yes
22004 else
22005 echo "configure: failed program was" >&5
22006 cat conftest.s >&5
22008 rm -f conftest.o conftest.s
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_relax" >&5
22012 $as_echo "$gcc_cv_as_sparc_relax" >&6; }
22013 if test $gcc_cv_as_sparc_relax = yes; then
22015 $as_echo "#define HAVE_AS_RELAX_OPTION 1" >>confdefs.h
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs" >&5
22020 $as_echo_n "checking assembler for unaligned pcrel relocs... " >&6; }
22021 if test "${gcc_cv_as_sparc_ua_pcrel+set}" = set; then :
22022 $as_echo_n "(cached) " >&6
22023 else
22024 gcc_cv_as_sparc_ua_pcrel=no
22025 if test x$gcc_cv_as != x; then
22026 echo '.text
22027 foo:
22029 .data
22030 .align 4
22031 .byte 0
22032 .uaword %r_disp32(foo)' > conftest.s
22033 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22035 (eval $ac_try) 2>&5
22036 ac_status=$?
22037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22038 test $ac_status = 0; }; }
22039 then
22040 if test x$gcc_cv_ld != x \
22041 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
22042 gcc_cv_as_sparc_ua_pcrel=yes
22044 rm -f conftest
22045 else
22046 echo "configure: failed program was" >&5
22047 cat conftest.s >&5
22049 rm -f conftest.o conftest.s
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel" >&5
22053 $as_echo "$gcc_cv_as_sparc_ua_pcrel" >&6; }
22054 if test $gcc_cv_as_sparc_ua_pcrel = yes; then
22056 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for unaligned pcrel relocs against hidden symbols" >&5
22060 $as_echo_n "checking assembler for unaligned pcrel relocs against hidden symbols... " >&6; }
22061 if test "${gcc_cv_as_sparc_ua_pcrel_hidden+set}" = set; then :
22062 $as_echo_n "(cached) " >&6
22063 else
22064 gcc_cv_as_sparc_ua_pcrel_hidden=no
22065 if test x$gcc_cv_as != x; then
22066 echo '.data
22067 .align 4
22068 .byte 0x31
22069 .uaword %r_disp32(foo)
22070 .byte 0x32, 0x33, 0x34
22071 .global foo
22072 .hidden foo
22073 foo:
22074 .skip 4' > conftest.s
22075 if { ac_try='$gcc_cv_as -K PIC -o conftest.o conftest.s >&5'
22076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22080 test $ac_status = 0; }; }
22081 then
22082 if test x$gcc_cv_ld != x && test x$gcc_cv_objdump != x \
22083 && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
22084 && $gcc_cv_objdump -s -j .data conftest 2> /dev/null \
22085 | grep ' 31000000 07323334' > /dev/null 2>&1; then
22086 if $gcc_cv_objdump -R conftest 2> /dev/null \
22087 | grep 'DISP32' > /dev/null 2>&1; then
22089 else
22090 gcc_cv_as_sparc_ua_pcrel_hidden=yes
22093 rm -f conftest
22094 else
22095 echo "configure: failed program was" >&5
22096 cat conftest.s >&5
22098 rm -f conftest.o conftest.s
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_ua_pcrel_hidden" >&5
22102 $as_echo "$gcc_cv_as_sparc_ua_pcrel_hidden" >&6; }
22103 if test $gcc_cv_as_sparc_ua_pcrel_hidden = yes; then
22105 $as_echo "#define HAVE_AS_SPARC_UA_PCREL_HIDDEN 1" >>confdefs.h
22109 fi # unaligned pcrel relocs
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for offsetable %lo()" >&5
22112 $as_echo_n "checking assembler for offsetable %lo()... " >&6; }
22113 if test "${gcc_cv_as_sparc_offsetable_lo10+set}" = set; then :
22114 $as_echo_n "(cached) " >&6
22115 else
22116 gcc_cv_as_sparc_offsetable_lo10=no
22117 if test x$gcc_cv_as != x; then
22118 echo '.text
22119 or %g1, %lo(ab) + 12, %g1
22120 or %g1, %lo(ab + 12), %g1' > conftest.s
22121 if { ac_try='$gcc_cv_as -xarch=v9 -o conftest.o conftest.s >&5'
22122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22126 test $ac_status = 0; }; }
22127 then
22128 if test x$gcc_cv_objdump != x \
22129 && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
22130 | grep ' 82106000 82106000' > /dev/null 2>&1; then
22131 gcc_cv_as_sparc_offsetable_lo10=yes
22133 else
22134 echo "configure: failed program was" >&5
22135 cat conftest.s >&5
22137 rm -f conftest.o conftest.s
22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_sparc_offsetable_lo10" >&5
22141 $as_echo "$gcc_cv_as_sparc_offsetable_lo10" >&6; }
22142 if test $gcc_cv_as_sparc_offsetable_lo10 = yes; then
22144 $as_echo "#define HAVE_AS_OFFSETABLE_LO10 1" >>confdefs.h
22149 i[34567]86-*-* | x86_64-*-*)
22150 case $target_os in
22151 cygwin* | pe | mingw32*)
22152 # Recent binutils allows the three-operand form of ".comm" on PE. This
22153 # definition is used unconditionally to initialise the default state of
22154 # the target option variable that governs usage of the feature.
22155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .comm with alignment" >&5
22156 $as_echo_n "checking assembler for .comm with alignment... " >&6; }
22157 if test "${gcc_cv_as_comm_has_align+set}" = set; then :
22158 $as_echo_n "(cached) " >&6
22159 else
22160 gcc_cv_as_comm_has_align=no
22161 if test $in_tree_gas = yes; then
22162 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
22163 then gcc_cv_as_comm_has_align=yes
22165 elif test x$gcc_cv_as != x; then
22166 echo '.comm foo,1,32' > conftest.s
22167 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22169 (eval $ac_try) 2>&5
22170 ac_status=$?
22171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22172 test $ac_status = 0; }; }
22173 then
22174 gcc_cv_as_comm_has_align=yes
22175 else
22176 echo "configure: failed program was" >&5
22177 cat conftest.s >&5
22179 rm -f conftest.o conftest.s
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_comm_has_align" >&5
22183 $as_echo "$gcc_cv_as_comm_has_align" >&6; }
22186 cat >>confdefs.h <<_ACEOF
22187 #define HAVE_GAS_ALIGNED_COMM `if test $gcc_cv_as_comm_has_align = yes; then echo 1; else echo 0; fi`
22188 _ACEOF
22190 # Used for DWARF 2 in PE
22191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .secrel32 relocs" >&5
22192 $as_echo_n "checking assembler for .secrel32 relocs... " >&6; }
22193 if test "${gcc_cv_as_ix86_pe_secrel32+set}" = set; then :
22194 $as_echo_n "(cached) " >&6
22195 else
22196 gcc_cv_as_ix86_pe_secrel32=no
22197 if test $in_tree_gas = yes; then
22198 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 15 \) \* 1000 + 91`
22199 then gcc_cv_as_ix86_pe_secrel32=yes
22201 elif test x$gcc_cv_as != x; then
22202 echo '.text
22203 foo: nop
22204 .data
22205 .secrel32 foo' > conftest.s
22206 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22208 (eval $ac_try) 2>&5
22209 ac_status=$?
22210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22211 test $ac_status = 0; }; }
22212 then
22213 if test x$gcc_cv_ld != x \
22214 && $gcc_cv_ld -o conftest conftest.o > /dev/null 2>&1; then
22215 gcc_cv_as_ix86_pe_secrel32=yes
22217 rm -f conftest
22218 else
22219 echo "configure: failed program was" >&5
22220 cat conftest.s >&5
22222 rm -f conftest.o conftest.s
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_pe_secrel32" >&5
22226 $as_echo "$gcc_cv_as_ix86_pe_secrel32" >&6; }
22227 if test $gcc_cv_as_ix86_pe_secrel32 = yes; then
22229 $as_echo "#define HAVE_GAS_PE_SECREL32_RELOC 1" >>confdefs.h
22233 esac
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for filds and fists mnemonics" >&5
22236 $as_echo_n "checking assembler for filds and fists mnemonics... " >&6; }
22237 if test "${gcc_cv_as_ix86_filds+set}" = set; then :
22238 $as_echo_n "(cached) " >&6
22239 else
22240 gcc_cv_as_ix86_filds=no
22241 if test x$gcc_cv_as != x; then
22242 echo 'filds mem; fists mem' > conftest.s
22243 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22245 (eval $ac_try) 2>&5
22246 ac_status=$?
22247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22248 test $ac_status = 0; }; }
22249 then
22250 gcc_cv_as_ix86_filds=yes
22251 else
22252 echo "configure: failed program was" >&5
22253 cat conftest.s >&5
22255 rm -f conftest.o conftest.s
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_filds" >&5
22259 $as_echo "$gcc_cv_as_ix86_filds" >&6; }
22260 if test $gcc_cv_as_ix86_filds = yes; then
22262 $as_echo "#define HAVE_AS_IX86_FILDS 1" >>confdefs.h
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fildq and fistpq mnemonics" >&5
22267 $as_echo_n "checking assembler for fildq and fistpq mnemonics... " >&6; }
22268 if test "${gcc_cv_as_ix86_fildq+set}" = set; then :
22269 $as_echo_n "(cached) " >&6
22270 else
22271 gcc_cv_as_ix86_fildq=no
22272 if test x$gcc_cv_as != x; then
22273 echo 'fildq mem; fistpq mem' > conftest.s
22274 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22276 (eval $ac_try) 2>&5
22277 ac_status=$?
22278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22279 test $ac_status = 0; }; }
22280 then
22281 gcc_cv_as_ix86_fildq=yes
22282 else
22283 echo "configure: failed program was" >&5
22284 cat conftest.s >&5
22286 rm -f conftest.o conftest.s
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_fildq" >&5
22290 $as_echo "$gcc_cv_as_ix86_fildq" >&6; }
22291 if test $gcc_cv_as_ix86_fildq = yes; then
22293 $as_echo "#define HAVE_AS_IX86_FILDQ 1" >>confdefs.h
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cmov syntax" >&5
22298 $as_echo_n "checking assembler for cmov syntax... " >&6; }
22299 if test "${gcc_cv_as_ix86_cmov_sun_syntax+set}" = set; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22302 gcc_cv_as_ix86_cmov_sun_syntax=no
22303 if test x$gcc_cv_as != x; then
22304 echo 'cmovl.l %edx, %eax' > conftest.s
22305 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22307 (eval $ac_try) 2>&5
22308 ac_status=$?
22309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22310 test $ac_status = 0; }; }
22311 then
22312 gcc_cv_as_ix86_cmov_sun_syntax=yes
22313 else
22314 echo "configure: failed program was" >&5
22315 cat conftest.s >&5
22317 rm -f conftest.o conftest.s
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_cmov_sun_syntax" >&5
22321 $as_echo "$gcc_cv_as_ix86_cmov_sun_syntax" >&6; }
22322 if test $gcc_cv_as_ix86_cmov_sun_syntax = yes; then
22324 $as_echo "#define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1" >>confdefs.h
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ffreep mnemonic" >&5
22329 $as_echo_n "checking assembler for ffreep mnemonic... " >&6; }
22330 if test "${gcc_cv_as_ix86_ffreep+set}" = set; then :
22331 $as_echo_n "(cached) " >&6
22332 else
22333 gcc_cv_as_ix86_ffreep=no
22334 if test x$gcc_cv_as != x; then
22335 echo 'ffreep %st(1)' > conftest.s
22336 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22338 (eval $ac_try) 2>&5
22339 ac_status=$?
22340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22341 test $ac_status = 0; }; }
22342 then
22343 gcc_cv_as_ix86_ffreep=yes
22344 else
22345 echo "configure: failed program was" >&5
22346 cat conftest.s >&5
22348 rm -f conftest.o conftest.s
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_ffreep" >&5
22352 $as_echo "$gcc_cv_as_ix86_ffreep" >&6; }
22353 if test $gcc_cv_as_ix86_ffreep = yes; then
22355 $as_echo "#define HAVE_AS_IX86_FFREEP 1" >>confdefs.h
22359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for sahf mnemonic" >&5
22360 $as_echo_n "checking assembler for sahf mnemonic... " >&6; }
22361 if test "${gcc_cv_as_ix86_sahf+set}" = set; then :
22362 $as_echo_n "(cached) " >&6
22363 else
22364 gcc_cv_as_ix86_sahf=no
22365 if test x$gcc_cv_as != x; then
22366 echo 'sahf' > conftest.s
22367 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22372 test $ac_status = 0; }; }
22373 then
22374 gcc_cv_as_ix86_sahf=yes
22375 else
22376 echo "configure: failed program was" >&5
22377 cat conftest.s >&5
22379 rm -f conftest.o conftest.s
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_sahf" >&5
22383 $as_echo "$gcc_cv_as_ix86_sahf" >&6; }
22384 if test $gcc_cv_as_ix86_sahf = yes; then
22386 $as_echo "#define HAVE_AS_IX86_SAHF 1" >>confdefs.h
22390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for different section symbol subtraction" >&5
22391 $as_echo_n "checking assembler for different section symbol subtraction... " >&6; }
22392 if test "${gcc_cv_as_ix86_diff_sect_delta+set}" = set; then :
22393 $as_echo_n "(cached) " >&6
22394 else
22395 gcc_cv_as_ix86_diff_sect_delta=no
22396 if test x$gcc_cv_as != x; then
22397 echo '.section .rodata
22398 .L1:
22399 .long .L2-.L1
22400 .long .L3-.L1
22401 .text
22402 .L3: nop
22403 .L2: nop' > conftest.s
22404 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22406 (eval $ac_try) 2>&5
22407 ac_status=$?
22408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22409 test $ac_status = 0; }; }
22410 then
22411 gcc_cv_as_ix86_diff_sect_delta=yes
22412 else
22413 echo "configure: failed program was" >&5
22414 cat conftest.s >&5
22416 rm -f conftest.o conftest.s
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_diff_sect_delta" >&5
22420 $as_echo "$gcc_cv_as_ix86_diff_sect_delta" >&6; }
22421 if test $gcc_cv_as_ix86_diff_sect_delta = yes; then
22423 $as_echo "#define HAVE_AS_IX86_DIFF_SECT_DELTA 1" >>confdefs.h
22427 # This one is used unconditionally by i386.[ch]; it is to be defined
22428 # to 1 if the feature is present, 0 otherwise.
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for GOTOFF in data" >&5
22430 $as_echo_n "checking assembler for GOTOFF in data... " >&6; }
22431 if test "${gcc_cv_as_ix86_gotoff_in_data+set}" = set; then :
22432 $as_echo_n "(cached) " >&6
22433 else
22434 gcc_cv_as_ix86_gotoff_in_data=no
22435 if test $in_tree_gas = yes; then
22436 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
22437 then gcc_cv_as_ix86_gotoff_in_data=yes
22439 elif test x$gcc_cv_as != x; then
22440 echo ' .text
22441 .L0:
22443 .data
22444 .long .L0@GOTOFF' > conftest.s
22445 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22447 (eval $ac_try) 2>&5
22448 ac_status=$?
22449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22450 test $ac_status = 0; }; }
22451 then
22452 gcc_cv_as_ix86_gotoff_in_data=yes
22453 else
22454 echo "configure: failed program was" >&5
22455 cat conftest.s >&5
22457 rm -f conftest.o conftest.s
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ix86_gotoff_in_data" >&5
22461 $as_echo "$gcc_cv_as_ix86_gotoff_in_data" >&6; }
22464 cat >>confdefs.h <<_ACEOF
22465 #define HAVE_AS_GOTOFF_IN_DATA `if test $gcc_cv_as_ix86_gotoff_in_data = yes; then echo 1; else echo 0; fi`
22466 _ACEOF
22470 ia64*-*-*)
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for ltoffx and ldxmov relocs" >&5
22472 $as_echo_n "checking assembler for ltoffx and ldxmov relocs... " >&6; }
22473 if test "${gcc_cv_as_ia64_ltoffx_ldxmov_relocs+set}" = set; then :
22474 $as_echo_n "(cached) " >&6
22475 else
22476 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=no
22477 if test $in_tree_gas = yes; then
22478 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22479 then gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22481 elif test x$gcc_cv_as != x; then
22482 echo ' .text
22483 addl r15 = @ltoffx(x#), gp
22485 ld8.mov r16 = [r15], x#' > conftest.s
22486 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22488 (eval $ac_try) 2>&5
22489 ac_status=$?
22490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22491 test $ac_status = 0; }; }
22492 then
22493 gcc_cv_as_ia64_ltoffx_ldxmov_relocs=yes
22494 else
22495 echo "configure: failed program was" >&5
22496 cat conftest.s >&5
22498 rm -f conftest.o conftest.s
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&5
22502 $as_echo "$gcc_cv_as_ia64_ltoffx_ldxmov_relocs" >&6; }
22503 if test $gcc_cv_as_ia64_ltoffx_ldxmov_relocs = yes; then
22505 $as_echo "#define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1" >>confdefs.h
22511 powerpc*-*-*)
22512 case $target in
22513 *-*-aix*) conftest_s=' .machine "pwr5"
22514 .csect .text[PR]
22515 mfcr 3,128';;
22516 *-*-darwin*)
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .machine directive support" >&5
22518 $as_echo_n "checking assembler for .machine directive support... " >&6; }
22519 if test "${gcc_cv_as_machine_directive+set}" = set; then :
22520 $as_echo_n "(cached) " >&6
22521 else
22522 gcc_cv_as_machine_directive=no
22523 if test x$gcc_cv_as != x; then
22524 echo ' .machine ppc7400' > conftest.s
22525 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22530 test $ac_status = 0; }; }
22531 then
22532 gcc_cv_as_machine_directive=yes
22533 else
22534 echo "configure: failed program was" >&5
22535 cat conftest.s >&5
22537 rm -f conftest.o conftest.s
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_machine_directive" >&5
22541 $as_echo "$gcc_cv_as_machine_directive" >&6; }
22543 if test x$gcc_cv_as_machine_directive != xyes; then
22544 echo "*** This target requires an assembler supporting \".machine\"" >&2
22545 echo you can get it from: ftp://gcc.gnu.org/pub/gcc/infrastructure/cctools-528.5.dmg >&2
22546 test x$build = x$target && exit 1
22548 conftest_s=' .text
22549 mfcr r3,128';;
22550 *) conftest_s=' .machine power4
22551 .text
22552 mfcr 3,128';;
22553 esac
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for mfcr field support" >&5
22556 $as_echo_n "checking assembler for mfcr field support... " >&6; }
22557 if test "${gcc_cv_as_powerpc_mfcrf+set}" = set; then :
22558 $as_echo_n "(cached) " >&6
22559 else
22560 gcc_cv_as_powerpc_mfcrf=no
22561 if test $in_tree_gas = yes; then
22562 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
22563 then gcc_cv_as_powerpc_mfcrf=yes
22565 elif test x$gcc_cv_as != x; then
22566 echo "$conftest_s" > conftest.s
22567 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22569 (eval $ac_try) 2>&5
22570 ac_status=$?
22571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22572 test $ac_status = 0; }; }
22573 then
22574 gcc_cv_as_powerpc_mfcrf=yes
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_powerpc_mfcrf" >&5
22583 $as_echo "$gcc_cv_as_powerpc_mfcrf" >&6; }
22584 if test $gcc_cv_as_powerpc_mfcrf = yes; then
22586 $as_echo "#define HAVE_AS_MFCRF 1" >>confdefs.h
22590 case $target in
22591 *-*-aix*) conftest_s=' .machine "pwr5"
22592 .csect .text[PR]
22593 popcntb 3,3';;
22594 *) conftest_s=' .machine power5
22595 .text
22596 popcntb 3,3';;
22597 esac
22599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntb support" >&5
22600 $as_echo_n "checking assembler for popcntb support... " >&6; }
22601 if test "${gcc_cv_as_powerpc_popcntb+set}" = set; then :
22602 $as_echo_n "(cached) " >&6
22603 else
22604 gcc_cv_as_powerpc_popcntb=no
22605 if test $in_tree_gas = yes; then
22606 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22607 then gcc_cv_as_powerpc_popcntb=yes
22609 elif test x$gcc_cv_as != x; then
22610 echo "$conftest_s" > conftest.s
22611 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22613 (eval $ac_try) 2>&5
22614 ac_status=$?
22615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22616 test $ac_status = 0; }; }
22617 then
22618 gcc_cv_as_powerpc_popcntb=yes
22619 else
22620 echo "configure: failed program was" >&5
22621 cat conftest.s >&5
22623 rm -f conftest.o conftest.s
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntb" >&5
22627 $as_echo "$gcc_cv_as_powerpc_popcntb" >&6; }
22628 if test $gcc_cv_as_powerpc_popcntb = yes; then
22630 $as_echo "#define HAVE_AS_POPCNTB 1" >>confdefs.h
22634 case $target in
22635 *-*-aix*) conftest_s=' .machine "pwr5x"
22636 .csect .text[PR]
22637 frin 1,1';;
22638 *) conftest_s=' .machine power5
22639 .text
22640 frin 1,1';;
22641 esac
22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for fp round support" >&5
22644 $as_echo_n "checking assembler for fp round support... " >&6; }
22645 if test "${gcc_cv_as_powerpc_fprnd+set}" = set; then :
22646 $as_echo_n "(cached) " >&6
22647 else
22648 gcc_cv_as_powerpc_fprnd=no
22649 if test $in_tree_gas = yes; then
22650 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22651 then gcc_cv_as_powerpc_fprnd=yes
22653 elif test x$gcc_cv_as != x; then
22654 echo "$conftest_s" > conftest.s
22655 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22657 (eval $ac_try) 2>&5
22658 ac_status=$?
22659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22660 test $ac_status = 0; }; }
22661 then
22662 gcc_cv_as_powerpc_fprnd=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_powerpc_fprnd" >&5
22671 $as_echo "$gcc_cv_as_powerpc_fprnd" >&6; }
22672 if test $gcc_cv_as_powerpc_fprnd = yes; then
22674 $as_echo "#define HAVE_AS_FPRND 1" >>confdefs.h
22678 case $target in
22679 *-*-aix*) conftest_s=' .machine "pwr6"
22680 .csect .text[PR]
22681 mffgpr 1,3';;
22682 *) conftest_s=' .machine power6
22683 .text
22684 mffgpr 1,3';;
22685 esac
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for move fp gpr support" >&5
22688 $as_echo_n "checking assembler for move fp gpr support... " >&6; }
22689 if test "${gcc_cv_as_powerpc_mfpgpr+set}" = set; then :
22690 $as_echo_n "(cached) " >&6
22691 else
22692 gcc_cv_as_powerpc_mfpgpr=no
22693 if test $in_tree_gas = yes; then
22694 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22695 then gcc_cv_as_powerpc_mfpgpr=yes
22697 elif test x$gcc_cv_as != x; then
22698 echo "$conftest_s" > conftest.s
22699 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
22700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22701 (eval $ac_try) 2>&5
22702 ac_status=$?
22703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22704 test $ac_status = 0; }; }
22705 then
22706 gcc_cv_as_powerpc_mfpgpr=yes
22707 else
22708 echo "configure: failed program was" >&5
22709 cat conftest.s >&5
22711 rm -f conftest.o conftest.s
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_mfpgpr" >&5
22715 $as_echo "$gcc_cv_as_powerpc_mfpgpr" >&6; }
22716 if test $gcc_cv_as_powerpc_mfpgpr = yes; then
22718 $as_echo "#define HAVE_AS_MFPGPR 1" >>confdefs.h
22722 case $target in
22723 *-*-aix*) conftest_s=' .csect .text[PR]
22724 LCF..0:
22725 addis 11,30,_GLOBAL_OFFSET_TABLE_-LCF..0@ha';;
22726 *-*-darwin*)
22727 conftest_s=' .text
22728 LCF0:
22729 addis r11,r30,_GLOBAL_OFFSET_TABLE_-LCF0@ha';;
22730 *) conftest_s=' .text
22731 .LCF0:
22732 addis 11,30,_GLOBAL_OFFSET_TABLE_-.LCF0@ha';;
22733 esac
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for rel16 relocs" >&5
22736 $as_echo_n "checking assembler for rel16 relocs... " >&6; }
22737 if test "${gcc_cv_as_powerpc_rel16+set}" = set; then :
22738 $as_echo_n "(cached) " >&6
22739 else
22740 gcc_cv_as_powerpc_rel16=no
22741 if test $in_tree_gas = yes; then
22742 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 17 \) \* 1000 + 0`
22743 then gcc_cv_as_powerpc_rel16=yes
22745 elif test x$gcc_cv_as != x; then
22746 echo "$conftest_s" > conftest.s
22747 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22752 test $ac_status = 0; }; }
22753 then
22754 gcc_cv_as_powerpc_rel16=yes
22755 else
22756 echo "configure: failed program was" >&5
22757 cat conftest.s >&5
22759 rm -f conftest.o conftest.s
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_rel16" >&5
22763 $as_echo "$gcc_cv_as_powerpc_rel16" >&6; }
22764 if test $gcc_cv_as_powerpc_rel16 = yes; then
22766 $as_echo "#define HAVE_AS_REL16 1" >>confdefs.h
22770 case $target in
22771 *-*-aix*) conftest_s=' .machine "pwr6"
22772 .csect .text[PR]
22773 cmpb 3,4,5';;
22774 *) conftest_s=' .machine power6
22775 .text
22776 cmpb 3,4,5';;
22777 esac
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for compare bytes support" >&5
22780 $as_echo_n "checking assembler for compare bytes support... " >&6; }
22781 if test "${gcc_cv_as_powerpc_cmpb+set}" = set; then :
22782 $as_echo_n "(cached) " >&6
22783 else
22784 gcc_cv_as_powerpc_cmpb=no
22785 if test $in_tree_gas = yes; then
22786 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22787 then gcc_cv_as_powerpc_cmpb=yes
22789 elif test x$gcc_cv_as != x; then
22790 echo "$conftest_s" > conftest.s
22791 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22796 test $ac_status = 0; }; }
22797 then
22798 gcc_cv_as_powerpc_cmpb=yes
22799 else
22800 echo "configure: failed program was" >&5
22801 cat conftest.s >&5
22803 rm -f conftest.o conftest.s
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_cmpb" >&5
22807 $as_echo "$gcc_cv_as_powerpc_cmpb" >&6; }
22808 if test $gcc_cv_as_powerpc_cmpb = yes; then
22810 $as_echo "#define HAVE_AS_CMPB 1" >>confdefs.h
22814 case $target in
22815 *-*-aix*) conftest_s=' .machine "pwr6"
22816 .csect .text[PR]
22817 dadd 1,2,3';;
22818 *) conftest_s=' .machine power6
22819 .text
22820 dadd 1,2,3';;
22821 esac
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for decimal float support" >&5
22824 $as_echo_n "checking assembler for decimal float support... " >&6; }
22825 if test "${gcc_cv_as_powerpc_dfp+set}" = set; then :
22826 $as_echo_n "(cached) " >&6
22827 else
22828 gcc_cv_as_powerpc_dfp=no
22829 if test $in_tree_gas = yes; then
22830 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22831 then gcc_cv_as_powerpc_dfp=yes
22833 elif test x$gcc_cv_as != x; then
22834 echo "$conftest_s" > conftest.s
22835 if { ac_try='$gcc_cv_as -a32 -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_powerpc_dfp=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_powerpc_dfp" >&5
22851 $as_echo "$gcc_cv_as_powerpc_dfp" >&6; }
22852 if test $gcc_cv_as_powerpc_dfp = yes; then
22854 $as_echo "#define HAVE_AS_DFP 1" >>confdefs.h
22858 case $target in
22859 *-*-aix*) conftest_s=' .machine "pwr7"
22860 .csect .text[PR]
22861 lxvd2x 1,2,3';;
22862 *) conftest_s=' .machine power7
22863 .text
22864 lxvd2x 1,2,3';;
22865 esac
22867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for vector-scalar support" >&5
22868 $as_echo_n "checking assembler for vector-scalar support... " >&6; }
22869 if test "${gcc_cv_as_powerpc_vsx+set}" = set; then :
22870 $as_echo_n "(cached) " >&6
22871 else
22872 gcc_cv_as_powerpc_vsx=no
22873 if test $in_tree_gas = yes; then
22874 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22875 then gcc_cv_as_powerpc_vsx=yes
22877 elif test x$gcc_cv_as != x; then
22878 echo "$conftest_s" > conftest.s
22879 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22881 (eval $ac_try) 2>&5
22882 ac_status=$?
22883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22884 test $ac_status = 0; }; }
22885 then
22886 gcc_cv_as_powerpc_vsx=yes
22887 else
22888 echo "configure: failed program was" >&5
22889 cat conftest.s >&5
22891 rm -f conftest.o conftest.s
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_vsx" >&5
22895 $as_echo "$gcc_cv_as_powerpc_vsx" >&6; }
22896 if test $gcc_cv_as_powerpc_vsx = yes; then
22898 $as_echo "#define HAVE_AS_VSX 1" >>confdefs.h
22902 case $target in
22903 *-*-aix*) conftest_s=' .machine "pwr7"
22904 .csect .text[PR]
22905 popcntd 3,3';;
22906 *) conftest_s=' .machine power7
22907 .text
22908 popcntd 3,3';;
22909 esac
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for popcntd support" >&5
22912 $as_echo_n "checking assembler for popcntd support... " >&6; }
22913 if test "${gcc_cv_as_powerpc_popcntd+set}" = set; then :
22914 $as_echo_n "(cached) " >&6
22915 else
22916 gcc_cv_as_powerpc_popcntd=no
22917 if test $in_tree_gas = yes; then
22918 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22919 then gcc_cv_as_powerpc_popcntd=yes
22921 elif test x$gcc_cv_as != x; then
22922 echo "$conftest_s" > conftest.s
22923 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22928 test $ac_status = 0; }; }
22929 then
22930 gcc_cv_as_powerpc_popcntd=yes
22931 else
22932 echo "configure: failed program was" >&5
22933 cat conftest.s >&5
22935 rm -f conftest.o conftest.s
22938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_popcntd" >&5
22939 $as_echo "$gcc_cv_as_powerpc_popcntd" >&6; }
22940 if test $gcc_cv_as_powerpc_popcntd = yes; then
22942 $as_echo "#define HAVE_AS_POPCNTD 1" >>confdefs.h
22946 case $target in
22947 *-*-aix*) conftest_s=' .csect .text[PR]
22948 lwsync';;
22949 *) conftest_s=' .text
22950 lwsync';;
22951 esac
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for lwsync support" >&5
22954 $as_echo_n "checking assembler for lwsync support... " >&6; }
22955 if test "${gcc_cv_as_powerpc_lwsync+set}" = set; then :
22956 $as_echo_n "(cached) " >&6
22957 else
22958 gcc_cv_as_powerpc_lwsync=no
22959 if test $in_tree_gas = yes; then
22960 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 2`
22961 then gcc_cv_as_powerpc_lwsync=yes
22963 elif test x$gcc_cv_as != x; then
22964 echo "$conftest_s" > conftest.s
22965 if { ac_try='$gcc_cv_as -a32 -o conftest.o conftest.s >&5'
22966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22967 (eval $ac_try) 2>&5
22968 ac_status=$?
22969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22970 test $ac_status = 0; }; }
22971 then
22972 gcc_cv_as_powerpc_lwsync=yes
22973 else
22974 echo "configure: failed program was" >&5
22975 cat conftest.s >&5
22977 rm -f conftest.o conftest.s
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_lwsync" >&5
22981 $as_echo "$gcc_cv_as_powerpc_lwsync" >&6; }
22982 if test $gcc_cv_as_powerpc_lwsync = yes; then
22984 $as_echo "#define HAVE_AS_LWSYNC 1" >>confdefs.h
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
22989 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
22990 if test "${gcc_cv_as_powerpc_gnu_attribute+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 gcc_cv_as_powerpc_gnu_attribute=no
22994 if test $in_tree_gas = yes; then
22995 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
22996 then gcc_cv_as_powerpc_gnu_attribute=yes
22998 elif test x$gcc_cv_as != x; then
22999 echo '.gnu_attribute 4,1' > conftest.s
23000 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23002 (eval $ac_try) 2>&5
23003 ac_status=$?
23004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23005 test $ac_status = 0; }; }
23006 then
23007 gcc_cv_as_powerpc_gnu_attribute=yes
23008 else
23009 echo "configure: failed program was" >&5
23010 cat conftest.s >&5
23012 rm -f conftest.o conftest.s
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_gnu_attribute" >&5
23016 $as_echo "$gcc_cv_as_powerpc_gnu_attribute" >&6; }
23017 if test $gcc_cv_as_powerpc_gnu_attribute = yes; then
23019 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tls marker support" >&5
23024 $as_echo_n "checking assembler for tls marker support... " >&6; }
23025 if test "${gcc_cv_as_powerpc_tls_markers+set}" = set; then :
23026 $as_echo_n "(cached) " >&6
23027 else
23028 gcc_cv_as_powerpc_tls_markers=no
23029 if test $in_tree_gas = yes; then
23030 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 20 \) \* 1000 + 0`
23031 then gcc_cv_as_powerpc_tls_markers=yes
23033 elif test x$gcc_cv_as != x; then
23034 echo ' bl __tls_get_addr(x@tlsgd)' > conftest.s
23035 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23037 (eval $ac_try) 2>&5
23038 ac_status=$?
23039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23040 test $ac_status = 0; }; }
23041 then
23042 gcc_cv_as_powerpc_tls_markers=yes
23043 else
23044 echo "configure: failed program was" >&5
23045 cat conftest.s >&5
23047 rm -f conftest.o conftest.s
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_powerpc_tls_markers" >&5
23051 $as_echo "$gcc_cv_as_powerpc_tls_markers" >&6; }
23052 if test $gcc_cv_as_powerpc_tls_markers = yes; then
23054 $as_echo "#define HAVE_AS_TLS_MARKERS 1" >>confdefs.h
23059 mips*-*-*)
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for explicit relocation support" >&5
23061 $as_echo_n "checking assembler for explicit relocation support... " >&6; }
23062 if test "${gcc_cv_as_mips_explicit_relocs+set}" = set; then :
23063 $as_echo_n "(cached) " >&6
23064 else
23065 gcc_cv_as_mips_explicit_relocs=no
23066 if test $in_tree_gas = yes; then
23067 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 14 \) \* 1000 + 0`
23068 then gcc_cv_as_mips_explicit_relocs=yes
23070 elif test x$gcc_cv_as != x; then
23071 echo ' lw $4,%gp_rel(foo)($4)' > conftest.s
23072 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23074 (eval $ac_try) 2>&5
23075 ac_status=$?
23076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23077 test $ac_status = 0; }; }
23078 then
23079 gcc_cv_as_mips_explicit_relocs=yes
23080 else
23081 echo "configure: failed program was" >&5
23082 cat conftest.s >&5
23084 rm -f conftest.o conftest.s
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_explicit_relocs" >&5
23088 $as_echo "$gcc_cv_as_mips_explicit_relocs" >&6; }
23089 if test $gcc_cv_as_mips_explicit_relocs = yes; then
23090 if test x$target_cpu_default = x
23091 then target_cpu_default=MASK_EXPLICIT_RELOCS
23092 else target_cpu_default="($target_cpu_default)|MASK_EXPLICIT_RELOCS"
23095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mno-shared support" >&5
23096 $as_echo_n "checking assembler for -mno-shared support... " >&6; }
23097 if test "${gcc_cv_as_mips_no_shared+set}" = set; then :
23098 $as_echo_n "(cached) " >&6
23099 else
23100 gcc_cv_as_mips_no_shared=no
23101 if test $in_tree_gas = yes; then
23102 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 0`
23103 then gcc_cv_as_mips_no_shared=yes
23105 elif test x$gcc_cv_as != x; then
23106 echo 'nop' > conftest.s
23107 if { ac_try='$gcc_cv_as -mno-shared -o conftest.o conftest.s >&5'
23108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23109 (eval $ac_try) 2>&5
23110 ac_status=$?
23111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23112 test $ac_status = 0; }; }
23113 then
23114 gcc_cv_as_mips_no_shared=yes
23115 else
23116 echo "configure: failed program was" >&5
23117 cat conftest.s >&5
23119 rm -f conftest.o conftest.s
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_no_shared" >&5
23123 $as_echo "$gcc_cv_as_mips_no_shared" >&6; }
23124 if test $gcc_cv_as_mips_no_shared = yes; then
23126 $as_echo "#define HAVE_AS_NO_SHARED 1" >>confdefs.h
23130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .gnu_attribute support" >&5
23131 $as_echo_n "checking assembler for .gnu_attribute support... " >&6; }
23132 if test "${gcc_cv_as_mips_gnu_attribute+set}" = set; then :
23133 $as_echo_n "(cached) " >&6
23134 else
23135 gcc_cv_as_mips_gnu_attribute=no
23136 if test $in_tree_gas = yes; then
23137 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23138 then gcc_cv_as_mips_gnu_attribute=yes
23140 elif test x$gcc_cv_as != x; then
23141 echo '.gnu_attribute 4,1' > conftest.s
23142 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23144 (eval $ac_try) 2>&5
23145 ac_status=$?
23146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23147 test $ac_status = 0; }; }
23148 then
23149 gcc_cv_as_mips_gnu_attribute=yes
23150 else
23151 echo "configure: failed program was" >&5
23152 cat conftest.s >&5
23154 rm -f conftest.o conftest.s
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_gnu_attribute" >&5
23158 $as_echo "$gcc_cv_as_mips_gnu_attribute" >&6; }
23159 if test $gcc_cv_as_mips_gnu_attribute = yes; then
23161 $as_echo "#define HAVE_AS_GNU_ATTRIBUTE 1" >>confdefs.h
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .dtprelword support" >&5
23166 $as_echo_n "checking assembler for .dtprelword support... " >&6; }
23167 if test "${gcc_cv_as_mips_dtprelword+set}" = set; then :
23168 $as_echo_n "(cached) " >&6
23169 else
23170 gcc_cv_as_mips_dtprelword=no
23171 if test $in_tree_gas = yes; then
23172 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23173 then gcc_cv_as_mips_dtprelword=yes
23175 elif test x$gcc_cv_as != x; then
23176 echo '.section .tdata,"awT",@progbits
23178 .word 2
23179 .text
23180 .dtprelword x+0x8000' > conftest.s
23181 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23183 (eval $ac_try) 2>&5
23184 ac_status=$?
23185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186 test $ac_status = 0; }; }
23187 then
23188 gcc_cv_as_mips_dtprelword=yes
23189 else
23190 echo "configure: failed program was" >&5
23191 cat conftest.s >&5
23193 rm -f conftest.o conftest.s
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_mips_dtprelword" >&5
23197 $as_echo "$gcc_cv_as_mips_dtprelword" >&6; }
23198 if test $gcc_cv_as_mips_dtprelword = yes; then
23200 $as_echo "#define HAVE_AS_DTPRELWORD 1" >>confdefs.h
23204 esac
23206 # Mips and HP-UX need the GNU assembler.
23207 # Linux on IA64 might be able to use the Intel assembler.
23209 case "$target" in
23210 mips*-*-* | *-*-hpux* )
23211 if test x$gas_flag = xyes \
23212 || test x"$host" != x"$build" \
23213 || test ! -x "$gcc_cv_as" \
23214 || "$gcc_cv_as" -v < /dev/null 2>&1 | grep GNU > /dev/null; then
23216 else
23217 echo "*** This configuration requires the GNU assembler" >&2
23218 exit 1
23221 esac
23223 # ??? Not all targets support dwarf2 debug_line, even within a version
23224 # of gas. Moreover, we need to emit a valid instruction to trigger any
23225 # info to the output file. So, as supported targets are added to gas 2.11,
23226 # add some instruction here to (also) show we expect this might work.
23227 # ??? Once 2.11 is released, probably need to add first known working
23228 # version to the per-target configury.
23229 case "$target" in
23230 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \
23231 | x86_64*-*-* | hppa*-*-* | arm*-*-* \
23232 | xstormy16*-*-* | cris-*-* | crisv32-*-* | xtensa*-*-* | bfin-*-* | score*-*-* \
23233 | spu-*-* | fido*-*-* | m32c-*-*)
23234 insn="nop"
23236 ia64*-*-* | s390*-*-*)
23237 insn="nop 0"
23239 mmix-*-*)
23240 insn="swym 0"
23242 esac
23243 if test x"$insn" != x; then
23244 conftest_s="\
23245 .file 1 \"conftest.s\"
23246 .loc 1 3 0
23247 $insn"
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for dwarf2 debug_line support" >&5
23249 $as_echo_n "checking assembler for dwarf2 debug_line support... " >&6; }
23250 if test "${gcc_cv_as_dwarf2_debug_line+set}" = set; then :
23251 $as_echo_n "(cached) " >&6
23252 else
23253 gcc_cv_as_dwarf2_debug_line=no
23254 if test $in_tree_gas = yes; then
23255 if test $in_tree_gas_is_elf = yes \
23256 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23257 then gcc_cv_as_dwarf2_debug_line=yes
23259 elif test x$gcc_cv_as != x; then
23260 echo "$conftest_s" > conftest.s
23261 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23263 (eval $ac_try) 2>&5
23264 ac_status=$?
23265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23266 test $ac_status = 0; }; }
23267 then
23268 if test x$gcc_cv_objdump != x \
23269 && $gcc_cv_objdump -h conftest.o 2> /dev/null \
23270 | grep debug_line > /dev/null 2>&1; then
23271 gcc_cv_as_dwarf2_debug_line=yes
23273 else
23274 echo "configure: failed program was" >&5
23275 cat conftest.s >&5
23277 rm -f conftest.o conftest.s
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_debug_line" >&5
23281 $as_echo "$gcc_cv_as_dwarf2_debug_line" >&6; }
23284 # The .debug_line file table must be in the exact order that
23285 # we specified the files, since these indices are also used
23286 # by DW_AT_decl_file. Approximate this test by testing if
23287 # the assembler bitches if the same index is assigned twice.
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for buggy dwarf2 .file directive" >&5
23289 $as_echo_n "checking assembler for buggy dwarf2 .file directive... " >&6; }
23290 if test "${gcc_cv_as_dwarf2_file_buggy+set}" = set; then :
23291 $as_echo_n "(cached) " >&6
23292 else
23293 gcc_cv_as_dwarf2_file_buggy=no
23294 if test x$gcc_cv_as != x; then
23295 echo ' .file 1 "foo.s"
23296 .file 1 "bar.s"' > conftest.s
23297 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23299 (eval $ac_try) 2>&5
23300 ac_status=$?
23301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23302 test $ac_status = 0; }; }
23303 then
23304 gcc_cv_as_dwarf2_file_buggy=yes
23305 else
23306 echo "configure: failed program was" >&5
23307 cat conftest.s >&5
23309 rm -f conftest.o conftest.s
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_dwarf2_file_buggy" >&5
23313 $as_echo "$gcc_cv_as_dwarf2_file_buggy" >&6; }
23316 if test $gcc_cv_as_dwarf2_debug_line = yes \
23317 && test $gcc_cv_as_dwarf2_file_buggy = no; then
23319 $as_echo "#define HAVE_AS_DWARF2_DEBUG_LINE 1" >>confdefs.h
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gdwarf2 option" >&5
23324 $as_echo_n "checking assembler for --gdwarf2 option... " >&6; }
23325 if test "${gcc_cv_as_gdwarf2_flag+set}" = set; then :
23326 $as_echo_n "(cached) " >&6
23327 else
23328 gcc_cv_as_gdwarf2_flag=no
23329 if test $in_tree_gas = yes; then
23330 if test $in_tree_gas_is_elf = yes \
23331 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23332 then gcc_cv_as_gdwarf2_flag=yes
23334 elif test x$gcc_cv_as != x; then
23335 echo "$insn" > conftest.s
23336 if { ac_try='$gcc_cv_as --gdwarf2 -o conftest.o conftest.s >&5'
23337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23338 (eval $ac_try) 2>&5
23339 ac_status=$?
23340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23341 test $ac_status = 0; }; }
23342 then
23343 gcc_cv_as_gdwarf2_flag=yes
23344 else
23345 echo "configure: failed program was" >&5
23346 cat conftest.s >&5
23348 rm -f conftest.o conftest.s
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gdwarf2_flag" >&5
23352 $as_echo "$gcc_cv_as_gdwarf2_flag" >&6; }
23353 if test $gcc_cv_as_gdwarf2_flag = yes; then
23355 $as_echo "#define HAVE_AS_GDWARF2_DEBUG_FLAG 1" >>confdefs.h
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --gstabs option" >&5
23360 $as_echo_n "checking assembler for --gstabs option... " >&6; }
23361 if test "${gcc_cv_as_gstabs_flag+set}" = set; then :
23362 $as_echo_n "(cached) " >&6
23363 else
23364 gcc_cv_as_gstabs_flag=no
23365 if test $in_tree_gas = yes; then
23366 if test $in_tree_gas_is_elf = yes \
23367 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 11 \) \* 1000 + 0`
23368 then gcc_cv_as_gstabs_flag=yes
23370 elif test x$gcc_cv_as != x; then
23371 echo "$insn" > conftest.s
23372 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s >&5'
23373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23374 (eval $ac_try) 2>&5
23375 ac_status=$?
23376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23377 test $ac_status = 0; }; }
23378 then
23379 # The native Solaris 9/Intel assembler doesn't understand --gstabs
23380 # and warns about it, but still exits successfully. So check for
23381 # this.
23382 if { ac_try='$gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | grep -i warning > /dev/null'
23383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23384 (eval $ac_try) 2>&5
23385 ac_status=$?
23386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23387 test $ac_status = 0; }; }
23388 then :
23389 else gcc_cv_as_gstabs_flag=yes
23391 else
23392 echo "configure: failed program was" >&5
23393 cat conftest.s >&5
23395 rm -f conftest.o conftest.s
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gstabs_flag" >&5
23399 $as_echo "$gcc_cv_as_gstabs_flag" >&6; }
23400 if test $gcc_cv_as_gstabs_flag = yes; then
23402 $as_echo "#define HAVE_AS_GSTABS_DEBUG_FLAG 1" >>confdefs.h
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for --debug-prefix-map option" >&5
23407 $as_echo_n "checking assembler for --debug-prefix-map option... " >&6; }
23408 if test "${gcc_cv_as_debug_prefix_map_flag+set}" = set; then :
23409 $as_echo_n "(cached) " >&6
23410 else
23411 gcc_cv_as_debug_prefix_map_flag=no
23412 if test $in_tree_gas = yes; then
23413 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 18 \) \* 1000 + 0`
23414 then gcc_cv_as_debug_prefix_map_flag=yes
23416 elif test x$gcc_cv_as != x; then
23417 echo "$insn" > conftest.s
23418 if { ac_try='$gcc_cv_as --debug-prefix-map /a=/b -o conftest.o conftest.s >&5'
23419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23423 test $ac_status = 0; }; }
23424 then
23425 gcc_cv_as_debug_prefix_map_flag=yes
23426 else
23427 echo "configure: failed program was" >&5
23428 cat conftest.s >&5
23430 rm -f conftest.o conftest.s
23433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_debug_prefix_map_flag" >&5
23434 $as_echo "$gcc_cv_as_debug_prefix_map_flag" >&6; }
23435 if test $gcc_cv_as_debug_prefix_map_flag = yes; then
23437 $as_echo "#define HAVE_AS_DEBUG_PREFIX_MAP 1" >>confdefs.h
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .lcomm with alignment" >&5
23443 $as_echo_n "checking assembler for .lcomm with alignment... " >&6; }
23444 if test "${gcc_cv_as_lcomm_with_alignment+set}" = set; then :
23445 $as_echo_n "(cached) " >&6
23446 else
23447 gcc_cv_as_lcomm_with_alignment=no
23448 if test x$gcc_cv_as != x; then
23449 echo '.lcomm bar,4,16' > conftest.s
23450 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23455 test $ac_status = 0; }; }
23456 then
23457 gcc_cv_as_lcomm_with_alignment=yes
23458 else
23459 echo "configure: failed program was" >&5
23460 cat conftest.s >&5
23462 rm -f conftest.o conftest.s
23465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_lcomm_with_alignment" >&5
23466 $as_echo "$gcc_cv_as_lcomm_with_alignment" >&6; }
23467 if test $gcc_cv_as_lcomm_with_alignment = yes; then
23469 $as_echo "#define HAVE_GAS_LCOMM_WITH_ALIGNMENT 1" >>confdefs.h
23473 # Check whether --enable-gnu-unique-object was given.
23474 if test "${enable_gnu_unique_object+set}" = set; then :
23475 enableval=$enable_gnu_unique_object; case $enable_gnu_unique_object in
23476 yes | no) ;;
23477 *) as_fn_error "'$enable_gnu_unique_object' is an invalid value for --enable-gnu-unique-object.
23478 Valid choices are 'yes' and 'no'." "$LINENO" 5 ;;
23479 esac
23480 else
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for gnu_unique_object" >&5
23482 $as_echo_n "checking assembler for gnu_unique_object... " >&6; }
23483 if test "${gcc_cv_as_gnu_unique_object+set}" = set; then :
23484 $as_echo_n "(cached) " >&6
23485 else
23486 gcc_cv_as_gnu_unique_object=no
23487 if test $in_tree_gas = yes; then
23488 if test $in_tree_gas_is_elf = yes \
23489 && test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 19 \) \* 1000 + 52`
23490 then gcc_cv_as_gnu_unique_object=yes
23492 elif test x$gcc_cv_as != x; then
23493 echo '.type foo, @gnu_unique_object' > conftest.s
23494 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5'
23495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23499 test $ac_status = 0; }; }
23500 then
23501 # Also check for ld.so support, i.e. glibc 2.11 or higher.
23502 if test x$host = x$build -a x$host = x$target &&
23503 glibcver=`ldd --version 2>/dev/null`; then
23504 glibcmajor=`expr "$glibcver" : "ldd (GNU libc) \([0-9]*\)"`
23505 glibcminor=`expr "$glibcver" : "ldd (GNU libc) [0-9]*\.\([0-9]*\)"`
23506 glibcnum=`expr $glibcmajor \* 1000 + $glibcminor`
23507 if test "$glibcnum" -ge 2011 ; then
23508 gcc_cv_as_gnu_unique_object=yes
23511 else
23512 echo "configure: failed program was" >&5
23513 cat conftest.s >&5
23515 rm -f conftest.o conftest.s
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_gnu_unique_object" >&5
23519 $as_echo "$gcc_cv_as_gnu_unique_object" >&6; }
23520 if test $gcc_cv_as_gnu_unique_object = yes; then
23521 enable_gnu_unique_object=yes
23525 if test x$enable_gnu_unique_object = xyes; then
23527 $as_echo "#define HAVE_GAS_GNU_UNIQUE_OBJECT 1" >>confdefs.h
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for tolerance to line number 0" >&5
23532 $as_echo_n "checking assembler for tolerance to line number 0... " >&6; }
23533 if test "${gcc_cv_as_line_zero+set}" = set; then :
23534 $as_echo_n "(cached) " >&6
23535 else
23536 gcc_cv_as_line_zero=no
23537 if test $in_tree_gas = yes; then
23538 if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 16 \) \* 1000 + 91`
23539 then gcc_cv_as_line_zero=yes
23541 elif test "x$gcc_cv_as" != x; then
23542 { echo '# 1 "test.s" 1'; echo '# 0 "" 2'; } > conftest.s
23543 if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5 2>conftest.out'
23544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
23547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23548 test $ac_status = 0; }; } &&
23549 test "x`cat conftest.out`" = x
23550 then
23551 gcc_cv_as_line_zero=yes
23552 else
23553 echo "configure: failed program was" >&5
23554 cat conftest.s >&5
23555 echo "configure: error output was" >&5
23556 cat conftest.out >&5
23558 rm -f conftest.o conftest.s conftest.out
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_line_zero" >&5
23562 $as_echo "$gcc_cv_as_line_zero" >&6; }
23563 if test "x$gcc_cv_as_line_zero" = xyes; then
23565 $as_echo "#define HAVE_AS_LINE_ZERO 1" >>confdefs.h
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker PT_GNU_EH_FRAME support" >&5
23570 $as_echo_n "checking linker PT_GNU_EH_FRAME support... " >&6; }
23571 gcc_cv_ld_eh_frame_hdr=no
23572 if test $in_tree_ld = yes ; then
23573 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 \
23574 && test $in_tree_ld_is_elf = yes; then
23575 gcc_cv_ld_eh_frame_hdr=yes
23577 elif test x$gcc_cv_ld != x; then
23578 # Check if linker supports --eh-frame-hdr option
23579 if $gcc_cv_ld --help 2>/dev/null | grep eh-frame-hdr > /dev/null; then
23580 gcc_cv_ld_eh_frame_hdr=yes
23584 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then
23586 $as_echo "#define HAVE_LD_EH_FRAME_HDR 1" >>confdefs.h
23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_frame_hdr" >&5
23590 $as_echo "$gcc_cv_ld_eh_frame_hdr" >&6; }
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker position independent executable support" >&5
23593 $as_echo_n "checking linker position independent executable support... " >&6; }
23594 gcc_cv_ld_pie=no
23595 if test $in_tree_ld = yes ; then
23596 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 \
23597 && test $in_tree_ld_is_elf = yes; then
23598 gcc_cv_ld_pie=yes
23600 elif test x$gcc_cv_ld != x; then
23601 # Check if linker supports -pie option
23602 if $gcc_cv_ld --help 2>/dev/null | grep -- -pie > /dev/null; then
23603 gcc_cv_ld_pie=yes
23606 if test x"$gcc_cv_ld_pie" = xyes; then
23608 $as_echo "#define HAVE_LD_PIE 1" >>confdefs.h
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_pie" >&5
23612 $as_echo "$gcc_cv_ld_pie" >&6; }
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker EH-compatible garbage collection of sections" >&5
23615 $as_echo_n "checking linker EH-compatible garbage collection of sections... " >&6; }
23616 gcc_cv_ld_eh_gc_sections=no
23617 if test $in_tree_ld = yes ; then
23618 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 \
23619 && test $in_tree_ld_is_elf = yes; then
23620 gcc_cv_ld_eh_gc_sections=yes
23622 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then
23623 cat > conftest.s <<EOF
23624 .section .text
23625 .globl _start
23626 .type _start, @function
23627 _start:
23628 .long foo
23629 .size _start, .-_start
23630 .section .text.foo,"ax",@progbits
23631 .type foo, @function
23632 foo:
23633 .long 0
23634 .size foo, .-foo
23635 .section .gcc_except_table.foo,"a",@progbits
23636 .L0:
23637 .long 0
23638 .section .eh_frame,"a",@progbits
23639 .long .L0
23641 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23642 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23643 | grep "gc-sections option ignored" > /dev/null; then
23644 gcc_cv_ld_eh_gc_sections=no
23645 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23646 gcc_cv_ld_eh_gc_sections=yes
23647 # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections.
23648 if test x$gcc_cv_as_comdat_group != xyes; then
23649 gcc_cv_ld_eh_gc_sections=no
23650 cat > conftest.s <<EOF
23651 .section .text
23652 .globl _start
23653 .type _start, @function
23654 _start:
23655 .long foo
23656 .size _start, .-_start
23657 .section .gnu.linkonce.t.foo,"ax",@progbits
23658 .type foo, @function
23659 foo:
23660 .long 0
23661 .size foo, .-foo
23662 .section .gcc_except_table.foo,"a",@progbits
23663 .L0:
23664 .long 0
23665 .section .eh_frame,"a",@progbits
23666 .long .L0
23668 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then
23669 if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \
23670 | grep "gc-sections option ignored" > /dev/null; then
23671 gcc_cv_ld_eh_gc_sections=no
23672 elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then
23673 gcc_cv_ld_eh_gc_sections=yes
23679 rm -f conftest.s conftest.o conftest
23681 case "$target" in
23682 hppa*-*-linux*)
23683 # ??? This apparently exposes a binutils bug with PC-relative relocations.
23684 gcc_cv_ld_eh_gc_sections=no
23686 esac
23687 if test x$gcc_cv_ld_eh_gc_sections = xyes; then
23689 $as_echo "#define HAVE_LD_EH_GC_SECTIONS 1" >>confdefs.h
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_eh_gc_sections" >&5
23693 $as_echo "$gcc_cv_ld_eh_gc_sections" >&6; }
23695 # --------
23696 # UNSORTED
23697 # --------
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
23700 $as_echo_n "checking linker --as-needed support... " >&6; }
23701 if test "${gcc_cv_ld_as_needed+set}" = set; then :
23702 $as_echo_n "(cached) " >&6
23703 else
23704 gcc_cv_ld_as_needed=no
23705 if test $in_tree_ld = yes ; then
23706 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 \
23707 && test $in_tree_ld_is_elf = yes; then
23708 gcc_cv_ld_as_needed=yes
23710 elif test x$gcc_cv_ld != x; then
23711 # Check if linker supports --as-needed and --no-as-needed options
23712 if $gcc_cv_ld --help 2>/dev/null | grep as-needed > /dev/null; then
23713 gcc_cv_ld_as_needed=yes
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_as_needed" >&5
23719 $as_echo "$gcc_cv_ld_as_needed" >&6; }
23720 if test x"$gcc_cv_ld_as_needed" = xyes; then
23722 $as_echo "#define HAVE_LD_AS_NEEDED 1" >>confdefs.h
23726 case "$target:$tm_file" in
23727 powerpc64*-*-linux* | powerpc*-*-linux*rs6000/biarch64.h*)
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker support for omitting dot symbols" >&5
23729 $as_echo_n "checking linker support for omitting dot symbols... " >&6; }
23730 if test "${gcc_cv_ld_no_dot_syms+set}" = set; then :
23731 $as_echo_n "(cached) " >&6
23732 else
23733 gcc_cv_ld_no_dot_syms=no
23734 if test $in_tree_ld = yes ; then
23735 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
23736 gcc_cv_ld_no_dot_syms=yes
23738 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x ; then
23739 cat > conftest1.s <<EOF
23740 .text
23741 bl .foo
23743 cat > conftest2.s <<EOF
23744 .section ".opd","aw"
23745 .align 3
23746 .globl foo
23747 .type foo,@function
23748 foo:
23749 .quad .LEfoo,.TOC.@tocbase,0
23750 .text
23751 .LEfoo:
23753 .size foo,.-.LEfoo
23755 if $gcc_cv_as -a64 -o conftest1.o conftest1.s > /dev/null 2>&1 \
23756 && $gcc_cv_as -a64 -o conftest2.o conftest2.s > /dev/null 2>&1 \
23757 && $gcc_cv_ld -melf64ppc -o conftest conftest1.o conftest2.o > /dev/null 2>&1; then
23758 gcc_cv_ld_no_dot_syms=yes
23760 rm -f conftest conftest1.o conftest2.o conftest1.s conftest2.s
23764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_no_dot_syms" >&5
23765 $as_echo "$gcc_cv_ld_no_dot_syms" >&6; }
23766 if test x"$gcc_cv_ld_no_dot_syms" = xyes; then
23768 $as_echo "#define HAVE_LD_NO_DOT_SYMS 1" >>confdefs.h
23772 esac
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --build-id support" >&5
23775 $as_echo_n "checking linker --build-id support... " >&6; }
23776 if test "${gcc_cv_ld_buildid+set}" = set; then :
23777 $as_echo_n "(cached) " >&6
23778 else
23779 gcc_cv_ld_buildid=no
23780 if test $in_tree_ld = yes ; then
23781 if test "$gcc_cv_gld_major_version" -eq 2 -a \
23782 "$gcc_cv_gld_minor_version" -ge 18 -o \
23783 "$gcc_cv_gld_major_version" -gt 2 \
23784 && test $in_tree_ld_is_elf = yes; then
23785 gcc_cv_ld_buildid=yes
23787 elif test x$gcc_cv_ld != x; then
23788 if $gcc_cv_ld --help 2>/dev/null | grep build-id > /dev/null; then
23789 gcc_cv_ld_buildid=yes
23793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_buildid" >&5
23794 $as_echo "$gcc_cv_ld_buildid" >&6; }
23795 if test x"$gcc_cv_ld_buildid" = xyes; then
23797 $as_echo "#define HAVE_LD_BUILDID 1" >>confdefs.h
23801 # Check whether --enable-linker-build-id was given.
23802 if test "${enable_linker_build_id+set}" = set; then :
23803 enableval=$enable_linker_build_id;
23804 else
23805 enable_linker_build_id=no
23809 if test x"$enable_linker_build_id" = xyes; then
23810 if test x"$gcc_cv_ld_buildid" = xyes; then
23812 $as_echo "#define ENABLE_LD_BUILDID 1" >>confdefs.h
23814 else
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&5
23816 $as_echo "$as_me: WARNING: --build-id is not supported by your linker; --enable-linker-build-id ignored" >&2;}
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --sysroot support" >&5
23821 $as_echo_n "checking linker --sysroot support... " >&6; }
23822 if test "${gcc_cv_ld_sysroot+set}" = set; then :
23823 $as_echo_n "(cached) " >&6
23824 else
23825 gcc_cv_ld_sysroot=no
23826 if test $in_tree_ld = yes ; then
23827 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
23828 gcc_cv_ld_sysroot=yes
23830 elif test x$gcc_cv_ld != x; then
23831 if $gcc_cv_ld --help 2>/dev/null | grep sysroot > /dev/null; then
23832 gcc_cv_ld_sysroot=yes
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_ld_sysroot" >&5
23837 $as_echo "$gcc_cv_ld_sysroot" >&6; }
23838 if test x"$gcc_cv_ld_sysroot" = xyes; then
23840 $as_echo "#define HAVE_LD_SYSROOT 1" >>confdefs.h
23844 if test x$with_sysroot = x && test x$host = x$target \
23845 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" \
23846 && test "$prefix" != "NONE"; then
23848 cat >>confdefs.h <<_ACEOF
23849 #define PREFIX_INCLUDE_DIR "$prefix/include"
23850 _ACEOF
23854 # Test for stack protector support in target C library.
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __stack_chk_fail in target C library" >&5
23856 $as_echo_n "checking __stack_chk_fail in target C library... " >&6; }
23857 if test "${gcc_cv_libc_provides_ssp+set}" = set; then :
23858 $as_echo_n "(cached) " >&6
23859 else
23860 gcc_cv_libc_provides_ssp=no
23861 case "$target" in
23862 *-*-linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
23863 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23864 if test "x$with_sysroot" = x; then
23865 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23866 elif test "x$with_build_sysroot" != "x"; then
23867 glibc_header_dir="${with_build_sysroot}/usr/include"
23868 elif test "x$with_sysroot" = xyes; then
23869 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23870 else
23871 glibc_header_dir="${with_sysroot}/usr/include"
23873 else
23874 glibc_header_dir=/usr/include
23876 # glibc 2.4 and later provides __stack_chk_fail and
23877 # either __stack_chk_guard, or TLS access to stack guard canary.
23878 if test -f $glibc_header_dir/features.h \
23879 && $EGREP '^[ ]*#[ ]*define[ ]+__GNU_LIBRARY__[ ]+([1-9][0-9]|[6-9])' \
23880 $glibc_header_dir/features.h > /dev/null; then
23881 if $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+([1-9][0-9]|[3-9])' \
23882 $glibc_header_dir/features.h > /dev/null; then
23883 gcc_cv_libc_provides_ssp=yes
23884 elif $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC__[ ]+2' \
23885 $glibc_header_dir/features.h > /dev/null \
23886 && $EGREP '^[ ]*#[ ]*define[ ]+__GLIBC_MINOR__[ ]+([1-9][0-9]|[4-9])' \
23887 $glibc_header_dir/features.h > /dev/null; then
23888 gcc_cv_libc_provides_ssp=yes
23889 elif $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC__[ ]+1' \
23890 $glibc_header_dir/features.h > /dev/null && \
23891 test -f $glibc_header_dir/bits/uClibc_config.h && \
23892 $EGREP '^[ ]*#[ ]*define[ ]+__UCLIBC_HAS_SSP__[ ]+1' \
23893 $glibc_header_dir/bits/uClibc_config.h > /dev/null; then
23894 gcc_cv_libc_provides_ssp=yes
23898 *-*-gnu*)
23899 # Avoid complicated tests (see
23900 # <http://gcc.gnu.org/ml/gcc/2008-10/msg00130.html>) and for now
23901 # simply assert that glibc does provide this, which is true for all
23902 # realistically usable GNU/Hurd configurations.
23903 gcc_cv_libc_provides_ssp=yes;;
23904 *-*-darwin*)
23905 ac_fn_c_check_func "$LINENO" "__stack_chk_fail" "ac_cv_func___stack_chk_fail"
23906 if test "x$ac_cv_func___stack_chk_fail" = x""yes; then :
23907 gcc_cv_libc_provides_ssp=yes
23908 else
23909 echo "no __stack_chk_fail on this target"
23913 *) gcc_cv_libc_provides_ssp=no ;;
23914 esac
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_libc_provides_ssp" >&5
23917 $as_echo "$gcc_cv_libc_provides_ssp" >&6; }
23919 if test x$gcc_cv_libc_provides_ssp = xyes; then
23921 $as_echo "#define TARGET_LIBC_PROVIDES_SSP 1" >>confdefs.h
23925 # Check if TFmode long double should be used by default or not.
23926 # Some glibc targets used DFmode long double, but with glibc 2.4
23927 # and later they can use TFmode.
23928 case "$target" in
23929 powerpc*-*-linux* | \
23930 powerpc*-*-gnu* | \
23931 sparc*-*-linux* | \
23932 s390*-*-linux* | \
23933 alpha*-*-linux*)
23935 # Check whether --with-long-double-128 was given.
23936 if test "${with_long_double_128+set}" = set; then :
23937 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128"
23938 else
23939 gcc_cv_target_ldbl128=no
23940 if test x$host != x$target || test "x$TARGET_SYSTEM_ROOT" != x; then
23941 if test "x$with_sysroot" = x; then
23942 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-include"
23943 elif test "x$with_build_sysroot" != "x"; then
23944 glibc_header_dir="${with_build_sysroot}/usr/include"
23945 elif test "x$with_sysroot" = xyes; then
23946 glibc_header_dir="${exec_prefix}/${target_noncanonical}/sys-root/usr/include"
23947 else
23948 glibc_header_dir="${with_sysroot}/usr/include"
23950 else
23951 glibc_header_dir=/usr/include
23953 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \
23954 $glibc_header_dir/bits/wordsize.h > /dev/null 2>&1 \
23955 && gcc_cv_target_ldbl128=yes
23960 esac
23961 if test x$gcc_cv_target_ldbl128 = xyes; then
23963 $as_echo "#define TARGET_DEFAULT_LONG_DOUBLE_128 1" >>confdefs.h
23967 # Find out what GC implementation we want, or may, use.
23969 # Check whether --with-gc was given.
23970 if test "${with_gc+set}" = set; then :
23971 withval=$with_gc; case "$withval" in
23972 page)
23973 GGC=ggc-$withval
23975 zone)
23976 GGC=ggc-$withval
23978 $as_echo "#define GGC_ZONE 1" >>confdefs.h
23982 as_fn_error "$withval is an invalid option to --with-gc" "$LINENO" 5
23984 esac
23985 else
23986 GGC=ggc-page
23990 echo "Using $GGC for garbage collection."
23992 # Libraries to use on the host. This will normally be set by the top
23993 # level Makefile. Here we simply capture the value for our Makefile.
23994 if test -z "${HOST_LIBS+set}"; then
23995 HOST_LIBS=
23999 # Use the system's zlib library.
24000 zlibdir=-L../zlib
24001 zlibinc="-I\$(srcdir)/../zlib"
24003 # Check whether --with-system-zlib was given.
24004 if test "${with_system_zlib+set}" = set; then :
24005 withval=$with_system_zlib; zlibdir=
24006 zlibinc=
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
24015 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
24016 # Check whether --enable-maintainer-mode was given.
24017 if test "${enable_maintainer_mode+set}" = set; then :
24018 enableval=$enable_maintainer_mode; maintainer_mode=$enableval
24019 else
24020 maintainer_mode=no
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $maintainer_mode" >&5
24025 $as_echo "$maintainer_mode" >&6; }
24027 if test "$maintainer_mode" = "yes"; then
24028 MAINT=''
24029 else
24030 MAINT='#'
24033 # --------------
24034 # Language hooks
24035 # --------------
24037 # Make empty files to contain the specs and options for each language.
24038 # Then add #include lines to for a compiler that has specs and/or options.
24040 subdirs=
24041 lang_opt_files=
24042 lang_specs_files=
24043 lang_tree_files=
24044 # These (without "all_") are set in each config-lang.in.
24045 # `language' must be a single word so is spelled singularly.
24046 all_languages=
24047 all_compilers=
24048 all_outputs='Makefile gccbug'
24049 # List of language makefile fragments.
24050 all_lang_makefrags=
24051 # List of language subdirectory makefiles. Deprecated.
24052 all_lang_makefiles=
24053 # Additional files for gengtype
24054 all_gtfiles="$target_gtfiles"
24056 # These are the languages that are set in --enable-languages,
24057 # and are available in the GCC tree.
24058 all_selected_languages=
24060 # Add the language fragments.
24061 # Languages are added via two mechanisms. Some information must be
24062 # recorded in makefile variables, these are defined in config-lang.in.
24063 # We accumulate them and plug them into the main Makefile.
24064 # The other mechanism is a set of hooks for each of the main targets
24065 # like `clean', `install', etc.
24067 language_hooks="Make-hooks"
24069 for lang in ${srcdir}/*/config-lang.in
24071 test "$lang" = "${srcdir}/*/config-lang.in" && continue
24073 lang_alias=`sed -n -e 's,^language=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^language=\([^ ]*\).*$,\1,p' $lang`
24074 if test "x$lang_alias" = x
24075 then
24076 echo "$lang doesn't set \$language." 1>&2
24077 exit 1
24079 subdir="`echo $lang | sed -e 's,^.*/\([^/]*\)/config-lang.in$,\1,'`"
24080 subdirs="$subdirs $subdir"
24082 # $gcc_subdir is where the gcc integration files are to be found
24083 # for a language, both for internal compiler purposes (compiler
24084 # sources implementing front-end to GCC tree converters), and for
24085 # build infrastructure purposes (Make-lang.in, etc.)
24087 # This will be <subdir> (relative to $srcdir) if a line like
24088 # gcc_subdir="<subdir>" or gcc_subdir=<subdir>
24089 # is found in <langdir>/config-lang.in, and will remain <langdir>
24090 # otherwise.
24092 # Except for the language alias (fetched above), the regular
24093 # "config-lang.in" contents are always retrieved from $gcc_subdir,
24094 # so a <langdir>/config-lang.in setting gcc_subdir typically sets
24095 # only this and the language alias.
24097 gcc_subdir=`sed -n -e 's,^gcc_subdir=['"'"'"'"]\(.*\)["'"'"'"'].*$,\1,p' -e 's,^gcc_subdir=\([^ ]*\).*$,\1,p' $lang`
24098 if [ "$gcc_subdir" = "" ]; then
24099 gcc_subdir="$subdir"
24102 case ",$enable_languages," in
24103 *,$lang_alias,*)
24104 all_selected_languages="$all_selected_languages $lang_alias"
24105 if test -f $srcdir/$gcc_subdir/lang-specs.h; then
24106 lang_specs_files="$lang_specs_files $srcdir/$gcc_subdir/lang-specs.h"
24109 esac
24111 language=
24112 boot_language=
24113 compilers=
24114 outputs=
24115 gtfiles=
24116 subdir_requires=
24117 . ${srcdir}/$gcc_subdir/config-lang.in
24118 if test "x$language" = x
24119 then
24120 echo "${srcdir}/$gcc_subdir/config-lang.in doesn't set \$language." 1>&2
24121 exit 1
24124 ok=:
24125 case ",$enable_languages," in
24126 *,$lang_alias,*) ;;
24128 for i in $subdir_requires; do
24129 test -f "${srcdir}/$i/config-lang.in" && continue
24130 ok=false
24131 break
24132 done
24134 esac
24135 $ok || continue
24137 all_lang_makefrags="$all_lang_makefrags \$(srcdir)/$gcc_subdir/Make-lang.in"
24138 if test -f $srcdir/$gcc_subdir/lang.opt; then
24139 lang_opt_files="$lang_opt_files $srcdir/$gcc_subdir/lang.opt"
24141 if test -f $srcdir/$gcc_subdir/$subdir-tree.def; then
24142 lang_tree_files="$lang_tree_files $srcdir/$gcc_subdir/$subdir-tree.def"
24144 if test -f ${srcdir}/$gcc_subdir/Makefile.in
24145 then all_lang_makefiles="$gcc_subdir/Makefile"
24147 all_languages="$all_languages $language"
24148 all_compilers="$all_compilers $compilers"
24149 all_outputs="$all_outputs $outputs"
24150 all_gtfiles="$all_gtfiles [$subdir] $gtfiles"
24151 done
24153 # Pick up gtfiles for c
24154 gtfiles=
24155 . ${srcdir}/c-config-lang.in
24156 all_gtfiles="$all_gtfiles [c] $gtfiles"
24158 check_languages=
24159 for language in $all_selected_languages
24161 check_languages="$check_languages check-$language"
24162 done
24164 # We link each language in with a set of hooks, reached indirectly via
24165 # lang.${target}. Only do so for selected languages.
24167 rm -f Make-hooks
24168 touch Make-hooks
24169 target_list="all.cross start.encap rest.encap tags \
24170 install-common install-man install-info install-pdf dvi pdf \
24171 html uninstall info man srcextra srcman srcinfo \
24172 mostlyclean clean distclean maintainer-clean install-plugin"
24174 for t in $target_list
24177 for lang in $all_selected_languages
24179 x="$x $lang.$t"
24180 done
24181 echo "lang.$t: $x" >> Make-hooks
24182 done
24184 # --------
24185 # UNSORTED
24186 # --------
24188 # Create .gdbinit.
24190 echo "dir ." > .gdbinit
24191 echo "dir ${srcdir}" >> .gdbinit
24192 if test x$gdb_needs_out_file_path = xyes
24193 then
24194 echo "dir ${srcdir}/config/"`dirname ${out_file}` >> .gdbinit
24196 if test "x$subdirs" != x; then
24197 for s in $subdirs
24199 echo "dir ${srcdir}/$s" >> .gdbinit
24200 done
24202 echo "source ${srcdir}/gdbinit.in" >> .gdbinit
24204 gcc_tooldir='$(libsubdir)/$(libsubdir_to_prefix)$(target_noncanonical)'
24208 # Find a directory in which to install a shared libgcc.
24210 # Check whether --enable-version-specific-runtime-libs was given.
24211 if test "${enable_version_specific_runtime_libs+set}" = set; then :
24212 enableval=$enable_version_specific_runtime_libs;
24217 # Check whether --with-slibdir was given.
24218 if test "${with_slibdir+set}" = set; then :
24219 withval=$with_slibdir; slibdir="$with_slibdir"
24220 else
24221 if test "${enable_version_specific_runtime_libs+set}" = set; then
24222 slibdir='$(libsubdir)'
24223 elif test "$host" != "$target"; then
24224 slibdir='$(build_tooldir)/lib'
24225 else
24226 slibdir='$(libdir)'
24232 # Substitute configuration variables
24294 # Echo link setup.
24295 if test x${build} = x${host} ; then
24296 if test x${host} = x${target} ; then
24297 echo "Links are now set up to build a native compiler for ${target}." 1>&2
24298 else
24299 echo "Links are now set up to build a cross-compiler" 1>&2
24300 echo " from ${host} to ${target}." 1>&2
24302 else
24303 if test x${host} = x${target} ; then
24304 echo "Links are now set up to build (on ${build}) a native compiler" 1>&2
24305 echo " for ${target}." 1>&2
24306 else
24307 echo "Links are now set up to build (on ${build}) a cross-compiler" 1>&2
24308 echo " from ${host} to ${target}." 1>&2
24315 case "${GMPLIBS}" in
24316 *-lmpc*)
24317 $as_echo "#define HAVE_mpc 1" >>confdefs.h
24319 esac
24326 if test "x${CLOOGLIBS}" != "x" ; then
24328 $as_echo "#define HAVE_cloog 1" >>confdefs.h
24332 # Check for plugin support
24333 # Check whether --enable-plugin was given.
24334 if test "${enable_plugin+set}" = set; then :
24335 enableval=$enable_plugin; enable_plugin=$enableval
24336 else
24337 enable_plugin=yes; default_plugin=yes
24341 pluginlibs=
24342 if test x"$enable_plugin" = x"yes"; then
24343 # Check that the host supports -rdynamic and -ldl
24344 have_rdynamic=no
24345 have_dl=no
24346 saved_LDFLAGS="$LDFLAGS"
24347 saved_LIBS="$LIBS"
24348 LIBS=
24350 # Check -rdynamic
24351 LDFLAGS="$LDFLAGS -rdynamic"
24352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -rdynamic" >&5
24353 $as_echo_n "checking for -rdynamic... " >&6; }
24354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24355 /* end confdefs.h. */
24358 main ()
24360 return 0;
24362 return 0;
24364 _ACEOF
24365 if ac_fn_c_try_link "$LINENO"; then :
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24367 $as_echo "yes" >&6; }; have_rdynamic=yes
24368 else
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24370 $as_echo "no" >&6; }
24372 rm -f core conftest.err conftest.$ac_objext \
24373 conftest$ac_exeext conftest.$ac_ext
24374 if test x"$have_rdynamic" = x"yes" ; then
24375 pluginlibs="-rdynamic"
24378 # Check -ldl
24379 LDFLAGS="$LDFLAGS -ldl"
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ldl" >&5
24381 $as_echo_n "checking for -ldl... " >&6; }
24382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24383 /* end confdefs.h. */
24384 #include <dlfcn.h>
24386 main ()
24388 volatile int f = 0; if (f) dlopen ("dummy", 0);
24390 return 0;
24392 _ACEOF
24393 if ac_fn_c_try_link "$LINENO"; then :
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24395 $as_echo "yes" >&6; }; have_dl=yes
24396 else
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24398 $as_echo "no" >&6; }
24400 rm -f core conftest.err conftest.$ac_objext \
24401 conftest$ac_exeext conftest.$ac_ext
24402 if test x"$have_dl" = x"yes"; then
24403 pluginlibs="$pluginlibs -ldl"
24406 # Check that we can build shared objects with -fPIC -shared
24407 LDFLAGS="$LDFLAGS -fPIC -shared"
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fPIC -shared" >&5
24409 $as_echo_n "checking for -fPIC -shared... " >&6; }
24410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24411 /* end confdefs.h. */
24412 extern int X;
24414 main ()
24416 return X == 0;
24418 return 0;
24420 _ACEOF
24421 if ac_fn_c_try_link "$LINENO"; then :
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24423 $as_echo "yes" >&6; }; have_pic_shared=yes
24424 else
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24426 $as_echo "no" >&6; }; have_pic_shared=no
24428 rm -f core conftest.err conftest.$ac_objext \
24429 conftest$ac_exeext conftest.$ac_ext
24430 if test x"$have_pic_shared" != x"yes"; then
24431 pluginlibs=
24432 enable_plugin=no
24435 # If plugin support had been requested but not available, fail.
24436 if test x"$enable_plugin" = x"no" ; then
24437 if test x"$default_plugin" != x"yes"; then
24438 as_fn_error "
24439 Building GCC with plugin support requires a host that supports
24440 -fPIC, -shared, -ldl and -rdynamic." "$LINENO" 5
24444 LDFLAGS="$saved_LDFLAGS"
24445 LIBS="$saved_LIBS"
24450 if test x"$enable_plugin" = x"yes"; then
24452 $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h
24456 # Configure the subdirectories
24457 # AC_CONFIG_SUBDIRS($subdirs)
24459 # Create the Makefile
24460 # and configure language subdirectories
24461 ac_config_files="$ac_config_files $all_outputs"
24464 ac_config_commands="$ac_config_commands default"
24466 cat >confcache <<\_ACEOF
24467 # This file is a shell script that caches the results of configure
24468 # tests run on this system so they can be shared between configure
24469 # scripts and configure runs, see configure's option --config-cache.
24470 # It is not useful on other systems. If it contains results you don't
24471 # want to keep, you may remove or edit it.
24473 # config.status only pays attention to the cache file if you give it
24474 # the --recheck option to rerun configure.
24476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24478 # following values.
24480 _ACEOF
24482 # The following way of writing the cache mishandles newlines in values,
24483 # but we know of no workaround that is simple, portable, and efficient.
24484 # So, we kill variables containing newlines.
24485 # Ultrix sh set writes to stderr and can't be redirected directly,
24486 # and sets the high bit in the cache file unless we assign to the vars.
24488 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24489 eval ac_val=\$$ac_var
24490 case $ac_val in #(
24491 *${as_nl}*)
24492 case $ac_var in #(
24493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24495 esac
24496 case $ac_var in #(
24497 _ | IFS | as_nl) ;; #(
24498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24499 *) { eval $ac_var=; unset $ac_var;} ;;
24500 esac ;;
24501 esac
24502 done
24504 (set) 2>&1 |
24505 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24506 *${as_nl}ac_space=\ *)
24507 # `set' does not quote correctly, so add quotes: double-quote
24508 # substitution turns \\\\ into \\, and sed turns \\ into \.
24509 sed -n \
24510 "s/'/'\\\\''/g;
24511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24512 ;; #(
24514 # `set' quotes correctly as required by POSIX, so do not add quotes.
24515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24517 esac |
24518 sort
24520 sed '
24521 /^ac_cv_env_/b end
24522 t clear
24523 :clear
24524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24525 t end
24526 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24527 :end' >>confcache
24528 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24529 if test -w "$cache_file"; then
24530 test "x$cache_file" != "x/dev/null" &&
24531 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24532 $as_echo "$as_me: updating cache $cache_file" >&6;}
24533 cat confcache >$cache_file
24534 else
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24536 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24539 rm -f confcache
24541 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24542 # Let make expand exec_prefix.
24543 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24545 DEFS=-DHAVE_CONFIG_H
24547 ac_libobjs=
24548 ac_ltlibobjs=
24549 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24550 # 1. Remove the extension, and $U if already installed.
24551 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24552 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24553 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24554 # will be set to the directory where LIBOBJS objects are built.
24555 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24556 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24557 done
24558 LIBOBJS=$ac_libobjs
24560 LTLIBOBJS=$ac_ltlibobjs
24565 : ${CONFIG_STATUS=./config.status}
24566 ac_write_fail=0
24567 ac_clean_files_save=$ac_clean_files
24568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24570 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24571 as_write_fail=0
24572 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24573 #! $SHELL
24574 # Generated by $as_me.
24575 # Run this file to recreate the current configuration.
24576 # Compiler output produced by configure, useful for debugging
24577 # configure, is in config.log if it exists.
24579 debug=false
24580 ac_cs_recheck=false
24581 ac_cs_silent=false
24583 SHELL=\${CONFIG_SHELL-$SHELL}
24584 export SHELL
24585 _ASEOF
24586 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24587 ## -------------------- ##
24588 ## M4sh Initialization. ##
24589 ## -------------------- ##
24591 # Be more Bourne compatible
24592 DUALCASE=1; export DUALCASE # for MKS sh
24593 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24594 emulate sh
24595 NULLCMD=:
24596 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24597 # is contrary to our usage. Disable this feature.
24598 alias -g '${1+"$@"}'='"$@"'
24599 setopt NO_GLOB_SUBST
24600 else
24601 case `(set -o) 2>/dev/null` in #(
24602 *posix*) :
24603 set -o posix ;; #(
24604 *) :
24606 esac
24610 as_nl='
24612 export as_nl
24613 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24614 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24615 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24616 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24617 # Prefer a ksh shell builtin over an external printf program on Solaris,
24618 # but without wasting forks for bash or zsh.
24619 if test -z "$BASH_VERSION$ZSH_VERSION" \
24620 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24621 as_echo='print -r --'
24622 as_echo_n='print -rn --'
24623 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24624 as_echo='printf %s\n'
24625 as_echo_n='printf %s'
24626 else
24627 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24628 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24629 as_echo_n='/usr/ucb/echo -n'
24630 else
24631 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24632 as_echo_n_body='eval
24633 arg=$1;
24634 case $arg in #(
24635 *"$as_nl"*)
24636 expr "X$arg" : "X\\(.*\\)$as_nl";
24637 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24638 esac;
24639 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24641 export as_echo_n_body
24642 as_echo_n='sh -c $as_echo_n_body as_echo'
24644 export as_echo_body
24645 as_echo='sh -c $as_echo_body as_echo'
24648 # The user is always right.
24649 if test "${PATH_SEPARATOR+set}" != set; then
24650 PATH_SEPARATOR=:
24651 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24652 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24653 PATH_SEPARATOR=';'
24658 # IFS
24659 # We need space, tab and new line, in precisely that order. Quoting is
24660 # there to prevent editors from complaining about space-tab.
24661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24662 # splitting by setting IFS to empty value.)
24663 IFS=" "" $as_nl"
24665 # Find who we are. Look in the path if we contain no directory separator.
24666 case $0 in #((
24667 *[\\/]* ) as_myself=$0 ;;
24668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24669 for as_dir in $PATH
24671 IFS=$as_save_IFS
24672 test -z "$as_dir" && as_dir=.
24673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24674 done
24675 IFS=$as_save_IFS
24678 esac
24679 # We did not find ourselves, most probably we were run as `sh COMMAND'
24680 # in which case we are not to be found in the path.
24681 if test "x$as_myself" = x; then
24682 as_myself=$0
24684 if test ! -f "$as_myself"; then
24685 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24686 exit 1
24689 # Unset variables that we do not need and which cause bugs (e.g. in
24690 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24691 # suppresses any "Segmentation fault" message there. '((' could
24692 # trigger a bug in pdksh 5.2.14.
24693 for as_var in BASH_ENV ENV MAIL MAILPATH
24694 do eval test x\${$as_var+set} = xset \
24695 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24696 done
24697 PS1='$ '
24698 PS2='> '
24699 PS4='+ '
24701 # NLS nuisances.
24702 LC_ALL=C
24703 export LC_ALL
24704 LANGUAGE=C
24705 export LANGUAGE
24707 # CDPATH.
24708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24711 # as_fn_error ERROR [LINENO LOG_FD]
24712 # ---------------------------------
24713 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24714 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24715 # script with status $?, using 1 if that was 0.
24716 as_fn_error ()
24718 as_status=$?; test $as_status -eq 0 && as_status=1
24719 if test "$3"; then
24720 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24721 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24723 $as_echo "$as_me: error: $1" >&2
24724 as_fn_exit $as_status
24725 } # as_fn_error
24728 # as_fn_set_status STATUS
24729 # -----------------------
24730 # Set $? to STATUS, without forking.
24731 as_fn_set_status ()
24733 return $1
24734 } # as_fn_set_status
24736 # as_fn_exit STATUS
24737 # -----------------
24738 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24739 as_fn_exit ()
24741 set +e
24742 as_fn_set_status $1
24743 exit $1
24744 } # as_fn_exit
24746 # as_fn_unset VAR
24747 # ---------------
24748 # Portably unset VAR.
24749 as_fn_unset ()
24751 { eval $1=; unset $1;}
24753 as_unset=as_fn_unset
24754 # as_fn_append VAR VALUE
24755 # ----------------------
24756 # Append the text in VALUE to the end of the definition contained in VAR. Take
24757 # advantage of any shell optimizations that allow amortized linear growth over
24758 # repeated appends, instead of the typical quadratic growth present in naive
24759 # implementations.
24760 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24761 eval 'as_fn_append ()
24763 eval $1+=\$2
24765 else
24766 as_fn_append ()
24768 eval $1=\$$1\$2
24770 fi # as_fn_append
24772 # as_fn_arith ARG...
24773 # ------------------
24774 # Perform arithmetic evaluation on the ARGs, and store the result in the
24775 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24776 # must be portable across $(()) and expr.
24777 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24778 eval 'as_fn_arith ()
24780 as_val=$(( $* ))
24782 else
24783 as_fn_arith ()
24785 as_val=`expr "$@" || test $? -eq 1`
24787 fi # as_fn_arith
24790 if expr a : '\(a\)' >/dev/null 2>&1 &&
24791 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24792 as_expr=expr
24793 else
24794 as_expr=false
24797 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24798 as_basename=basename
24799 else
24800 as_basename=false
24803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24804 as_dirname=dirname
24805 else
24806 as_dirname=false
24809 as_me=`$as_basename -- "$0" ||
24810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24811 X"$0" : 'X\(//\)$' \| \
24812 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24813 $as_echo X/"$0" |
24814 sed '/^.*\/\([^/][^/]*\)\/*$/{
24815 s//\1/
24818 /^X\/\(\/\/\)$/{
24819 s//\1/
24822 /^X\/\(\/\).*/{
24823 s//\1/
24826 s/.*/./; q'`
24828 # Avoid depending upon Character Ranges.
24829 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24830 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24831 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24832 as_cr_digits='0123456789'
24833 as_cr_alnum=$as_cr_Letters$as_cr_digits
24835 ECHO_C= ECHO_N= ECHO_T=
24836 case `echo -n x` in #(((((
24837 -n*)
24838 case `echo 'xy\c'` in
24839 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24840 xy) ECHO_C='\c';;
24841 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24842 ECHO_T=' ';;
24843 esac;;
24845 ECHO_N='-n';;
24846 esac
24848 rm -f conf$$ conf$$.exe conf$$.file
24849 if test -d conf$$.dir; then
24850 rm -f conf$$.dir/conf$$.file
24851 else
24852 rm -f conf$$.dir
24853 mkdir conf$$.dir 2>/dev/null
24855 if (echo >conf$$.file) 2>/dev/null; then
24856 if ln -s conf$$.file conf$$ 2>/dev/null; then
24857 as_ln_s='ln -s'
24858 # ... but there are two gotchas:
24859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24861 # In both cases, we have to default to `cp -p'.
24862 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24863 as_ln_s='cp -p'
24864 elif ln conf$$.file conf$$ 2>/dev/null; then
24865 as_ln_s=ln
24866 else
24867 as_ln_s='cp -p'
24869 else
24870 as_ln_s='cp -p'
24872 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24873 rmdir conf$$.dir 2>/dev/null
24876 # as_fn_mkdir_p
24877 # -------------
24878 # Create "$as_dir" as a directory, including parents if necessary.
24879 as_fn_mkdir_p ()
24882 case $as_dir in #(
24883 -*) as_dir=./$as_dir;;
24884 esac
24885 test -d "$as_dir" || eval $as_mkdir_p || {
24886 as_dirs=
24887 while :; do
24888 case $as_dir in #(
24889 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24890 *) as_qdir=$as_dir;;
24891 esac
24892 as_dirs="'$as_qdir' $as_dirs"
24893 as_dir=`$as_dirname -- "$as_dir" ||
24894 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24895 X"$as_dir" : 'X\(//\)[^/]' \| \
24896 X"$as_dir" : 'X\(//\)$' \| \
24897 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24898 $as_echo X"$as_dir" |
24899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24900 s//\1/
24903 /^X\(\/\/\)[^/].*/{
24904 s//\1/
24907 /^X\(\/\/\)$/{
24908 s//\1/
24911 /^X\(\/\).*/{
24912 s//\1/
24915 s/.*/./; q'`
24916 test -d "$as_dir" && break
24917 done
24918 test -z "$as_dirs" || eval "mkdir $as_dirs"
24919 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
24922 } # as_fn_mkdir_p
24923 if mkdir -p . 2>/dev/null; then
24924 as_mkdir_p='mkdir -p "$as_dir"'
24925 else
24926 test -d ./-p && rmdir ./-p
24927 as_mkdir_p=false
24930 if test -x / >/dev/null 2>&1; then
24931 as_test_x='test -x'
24932 else
24933 if ls -dL / >/dev/null 2>&1; then
24934 as_ls_L_option=L
24935 else
24936 as_ls_L_option=
24938 as_test_x='
24939 eval sh -c '\''
24940 if test -d "$1"; then
24941 test -d "$1/.";
24942 else
24943 case $1 in #(
24944 -*)set "./$1";;
24945 esac;
24946 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
24947 ???[sx]*):;;*)false;;esac;fi
24948 '\'' sh
24951 as_executable_p=$as_test_x
24953 # Sed expression to map a string onto a valid CPP name.
24954 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24956 # Sed expression to map a string onto a valid variable name.
24957 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24960 exec 6>&1
24961 ## ----------------------------------- ##
24962 ## Main body of $CONFIG_STATUS script. ##
24963 ## ----------------------------------- ##
24964 _ASEOF
24965 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24968 # Save the log message, to keep $0 and so on meaningful, and to
24969 # report actual input values of CONFIG_FILES etc. instead of their
24970 # values after options handling.
24971 ac_log="
24972 This file was extended by $as_me, which was
24973 generated by GNU Autoconf 2.64. Invocation command line was
24975 CONFIG_FILES = $CONFIG_FILES
24976 CONFIG_HEADERS = $CONFIG_HEADERS
24977 CONFIG_LINKS = $CONFIG_LINKS
24978 CONFIG_COMMANDS = $CONFIG_COMMANDS
24979 $ $0 $@
24981 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24984 _ACEOF
24986 case $ac_config_files in *"
24987 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24988 esac
24990 case $ac_config_headers in *"
24991 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24992 esac
24995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24996 # Files that config.status was made for.
24997 config_files="$ac_config_files"
24998 config_headers="$ac_config_headers"
24999 config_commands="$ac_config_commands"
25001 _ACEOF
25003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25004 ac_cs_usage="\
25005 \`$as_me' instantiates files and other configuration actions
25006 from templates according to the current configuration. Unless the files
25007 and actions are specified as TAGs, all are instantiated by default.
25009 Usage: $0 [OPTION]... [TAG]...
25011 -h, --help print this help, then exit
25012 -V, --version print version number and configuration settings, then exit
25013 -q, --quiet, --silent
25014 do not print progress messages
25015 -d, --debug don't remove temporary files
25016 --recheck update $as_me by reconfiguring in the same conditions
25017 --file=FILE[:TEMPLATE]
25018 instantiate the configuration file FILE
25019 --header=FILE[:TEMPLATE]
25020 instantiate the configuration header FILE
25022 Configuration files:
25023 $config_files
25025 Configuration headers:
25026 $config_headers
25028 Configuration commands:
25029 $config_commands
25031 Report bugs to the package provider."
25033 _ACEOF
25034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25035 ac_cs_version="\\
25036 config.status
25037 configured by $0, generated by GNU Autoconf 2.64,
25038 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25040 Copyright (C) 2009 Free Software Foundation, Inc.
25041 This config.status script is free software; the Free Software Foundation
25042 gives unlimited permission to copy, distribute and modify it."
25044 ac_pwd='$ac_pwd'
25045 srcdir='$srcdir'
25046 AWK='$AWK'
25047 test -n "\$AWK" || AWK=awk
25048 _ACEOF
25050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25051 # The default lists apply if the user does not specify any file.
25052 ac_need_defaults=:
25053 while test $# != 0
25055 case $1 in
25056 --*=*)
25057 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25058 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25059 ac_shift=:
25062 ac_option=$1
25063 ac_optarg=$2
25064 ac_shift=shift
25066 esac
25068 case $ac_option in
25069 # Handling of the options.
25070 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25071 ac_cs_recheck=: ;;
25072 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25073 $as_echo "$ac_cs_version"; exit ;;
25074 --debug | --debu | --deb | --de | --d | -d )
25075 debug=: ;;
25076 --file | --fil | --fi | --f )
25077 $ac_shift
25078 case $ac_optarg in
25079 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25080 esac
25081 as_fn_append CONFIG_FILES " '$ac_optarg'"
25082 ac_need_defaults=false;;
25083 --header | --heade | --head | --hea )
25084 $ac_shift
25085 case $ac_optarg in
25086 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25087 esac
25088 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25089 ac_need_defaults=false;;
25090 --he | --h)
25091 # Conflict between --help and --header
25092 as_fn_error "ambiguous option: \`$1'
25093 Try \`$0 --help' for more information.";;
25094 --help | --hel | -h )
25095 $as_echo "$ac_cs_usage"; exit ;;
25096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25098 ac_cs_silent=: ;;
25100 # This is an error.
25101 -*) as_fn_error "unrecognized option: \`$1'
25102 Try \`$0 --help' for more information." ;;
25104 *) as_fn_append ac_config_targets " $1"
25105 ac_need_defaults=false ;;
25107 esac
25108 shift
25109 done
25111 ac_configure_extra_args=
25113 if $ac_cs_silent; then
25114 exec 6>/dev/null
25115 ac_configure_extra_args="$ac_configure_extra_args --silent"
25118 _ACEOF
25119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25120 if \$ac_cs_recheck; then
25121 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25122 shift
25123 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25124 CONFIG_SHELL='$SHELL'
25125 export CONFIG_SHELL
25126 exec "\$@"
25129 _ACEOF
25130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25131 exec 5>>config.log
25133 echo
25134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25135 ## Running $as_me. ##
25136 _ASBOX
25137 $as_echo "$ac_log"
25138 } >&5
25140 _ACEOF
25141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25143 # INIT-COMMANDS
25145 subdirs='$subdirs'
25147 _ACEOF
25149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25151 # Handling of arguments.
25152 for ac_config_target in $ac_config_targets
25154 case $ac_config_target in
25155 "auto-host.h") CONFIG_HEADERS="$CONFIG_HEADERS auto-host.h:config.in" ;;
25156 "as") CONFIG_FILES="$CONFIG_FILES as:exec-tool.in" ;;
25157 "collect-ld") CONFIG_FILES="$CONFIG_FILES collect-ld:exec-tool.in" ;;
25158 "nm") CONFIG_FILES="$CONFIG_FILES nm:exec-tool.in" ;;
25159 "$all_outputs") CONFIG_FILES="$CONFIG_FILES $all_outputs" ;;
25160 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25162 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25163 esac
25164 done
25167 # If the user did not use the arguments to specify the items to instantiate,
25168 # then the envvar interface is used. Set only those that are not.
25169 # We use the long form for the default assignment because of an extremely
25170 # bizarre bug on SunOS 4.1.3.
25171 if $ac_need_defaults; then
25172 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25173 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25174 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25177 # Have a temporary directory for convenience. Make it in the build tree
25178 # simply because there is no reason against having it here, and in addition,
25179 # creating and moving files from /tmp can sometimes cause problems.
25180 # Hook for its removal unless debugging.
25181 # Note that there is a small window in which the directory will not be cleaned:
25182 # after its creation but before its name has been assigned to `$tmp'.
25183 $debug ||
25185 tmp=
25186 trap 'exit_status=$?
25187 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25189 trap 'as_fn_exit 1' 1 2 13 15
25191 # Create a (secure) tmp directory for tmp files.
25194 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25195 test -n "$tmp" && test -d "$tmp"
25196 } ||
25198 tmp=./conf$$-$RANDOM
25199 (umask 077 && mkdir "$tmp")
25200 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25202 # Set up the scripts for CONFIG_FILES section.
25203 # No need to generate them if there are no CONFIG_FILES.
25204 # This happens for instance with `./config.status config.h'.
25205 if test -n "$CONFIG_FILES"; then
25207 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
25208 ac_cs_awk_getline=:
25209 ac_cs_awk_pipe_init=
25210 ac_cs_awk_read_file='
25211 while ((getline aline < (F[key])) > 0)
25212 print(aline)
25213 close(F[key])'
25214 ac_cs_awk_pipe_fini=
25215 else
25216 ac_cs_awk_getline=false
25217 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
25218 ac_cs_awk_read_file='
25219 print "|#_!!_#|"
25220 print "cat " F[key] " &&"
25221 '$ac_cs_awk_pipe_init
25222 # The final `:' finishes the AND list.
25223 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
25225 ac_cr=`echo X | tr X '\015'`
25226 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25227 # But we know of no other shell where ac_cr would be empty at this
25228 # point, so we can use a bashism as a fallback.
25229 if test "x$ac_cr" = x; then
25230 eval ac_cr=\$\'\\r\'
25232 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25233 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25234 ac_cs_awk_cr='\r'
25235 else
25236 ac_cs_awk_cr=$ac_cr
25239 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25240 _ACEOF
25242 # Create commands to substitute file output variables.
25244 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
25245 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
25246 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
25247 echo "_ACAWK" &&
25248 echo "_ACEOF"
25249 } >conf$$files.sh &&
25250 . ./conf$$files.sh ||
25251 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25252 rm -f conf$$files.sh
25255 echo "cat >conf$$subs.awk <<_ACEOF" &&
25256 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25257 echo "_ACEOF"
25258 } >conf$$subs.sh ||
25259 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25260 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25261 ac_delim='%!_!# '
25262 for ac_last_try in false false false false false :; do
25263 . ./conf$$subs.sh ||
25264 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25266 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25267 if test $ac_delim_n = $ac_delim_num; then
25268 break
25269 elif $ac_last_try; then
25270 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25271 else
25272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25274 done
25275 rm -f conf$$subs.sh
25277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25278 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25279 _ACEOF
25280 sed -n '
25282 s/^/S["/; s/!.*/"]=/
25285 s/^[^!]*!//
25286 :repl
25287 t repl
25288 s/'"$ac_delim"'$//
25289 t delim
25292 s/\(.\{148\}\).*/\1/
25293 t more1
25294 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25297 b repl
25298 :more1
25299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25302 s/.\{148\}//
25303 t nl
25304 :delim
25306 s/\(.\{148\}\).*/\1/
25307 t more2
25308 s/["\\]/\\&/g; s/^/"/; s/$/"/
25311 :more2
25312 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25315 s/.\{148\}//
25316 t delim
25317 ' <conf$$subs.awk | sed '
25318 /^[^""]/{
25320 s/\n//
25322 ' >>$CONFIG_STATUS || ac_write_fail=1
25323 rm -f conf$$subs.awk
25324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25325 _ACAWK
25326 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25327 for (key in S) S_is_set[key] = 1
25328 FS = "\a"
25329 \$ac_cs_awk_pipe_init
25332 line = $ 0
25333 nfields = split(line, field, "@")
25334 substed = 0
25335 len = length(field[1])
25336 for (i = 2; i < nfields; i++) {
25337 key = field[i]
25338 keylen = length(key)
25339 if (S_is_set[key]) {
25340 value = S[key]
25341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25342 len += length(value) + length(field[++i])
25343 substed = 1
25344 } else
25345 len += 1 + keylen
25347 if (nfields == 3 && !substed) {
25348 key = field[2]
25349 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
25350 \$ac_cs_awk_read_file
25351 next
25354 print line
25356 \$ac_cs_awk_pipe_fini
25357 _ACAWK
25358 _ACEOF
25359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25360 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25361 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25362 else
25364 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25365 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25366 _ACEOF
25368 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25369 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25370 # trailing colons and then remove the whole line if VPATH becomes empty
25371 # (actually we leave an empty line to preserve line numbers).
25372 if test "x$srcdir" = x.; then
25373 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25374 s/:*\$(srcdir):*/:/
25375 s/:*\${srcdir}:*/:/
25376 s/:*@srcdir@:*/:/
25377 s/^\([^=]*=[ ]*\):*/\1/
25378 s/:*$//
25379 s/^[^=]*=[ ]*$//
25383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25384 fi # test -n "$CONFIG_FILES"
25386 # Set up the scripts for CONFIG_HEADERS section.
25387 # No need to generate them if there are no CONFIG_HEADERS.
25388 # This happens for instance with `./config.status Makefile'.
25389 if test -n "$CONFIG_HEADERS"; then
25390 cat >"$tmp/defines.awk" <<\_ACAWK ||
25391 BEGIN {
25392 _ACEOF
25394 # Transform confdefs.h into an awk script `defines.awk', embedded as
25395 # here-document in config.status, that substitutes the proper values into
25396 # config.h.in to produce config.h.
25398 # Create a delimiter string that does not exist in confdefs.h, to ease
25399 # handling of long lines.
25400 ac_delim='%!_!# '
25401 for ac_last_try in false false :; do
25402 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25403 if test -z "$ac_t"; then
25404 break
25405 elif $ac_last_try; then
25406 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25407 else
25408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25410 done
25412 # For the awk script, D is an array of macro values keyed by name,
25413 # likewise P contains macro parameters if any. Preserve backslash
25414 # newline sequences.
25416 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25417 sed -n '
25418 s/.\{148\}/&'"$ac_delim"'/g
25419 t rset
25420 :rset
25421 s/^[ ]*#[ ]*define[ ][ ]*/ /
25422 t def
25424 :def
25425 s/\\$//
25426 t bsnl
25427 s/["\\]/\\&/g
25428 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25429 D["\1"]=" \3"/p
25430 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25432 :bsnl
25433 s/["\\]/\\&/g
25434 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25435 D["\1"]=" \3\\\\\\n"\\/p
25436 t cont
25437 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25438 t cont
25440 :cont
25442 s/.\{148\}/&'"$ac_delim"'/g
25443 t clear
25444 :clear
25445 s/\\$//
25446 t bsnlc
25447 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25449 :bsnlc
25450 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25451 b cont
25452 ' <confdefs.h | sed '
25453 s/'"$ac_delim"'/"\\\
25454 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25457 for (key in D) D_is_set[key] = 1
25458 FS = "\a"
25460 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25461 line = \$ 0
25462 split(line, arg, " ")
25463 if (arg[1] == "#") {
25464 defundef = arg[2]
25465 mac1 = arg[3]
25466 } else {
25467 defundef = substr(arg[1], 2)
25468 mac1 = arg[2]
25470 split(mac1, mac2, "(") #)
25471 macro = mac2[1]
25472 prefix = substr(line, 1, index(line, defundef) - 1)
25473 if (D_is_set[macro]) {
25474 # Preserve the white space surrounding the "#".
25475 print prefix "define", macro P[macro] D[macro]
25476 next
25477 } else {
25478 # Replace #undef with comments. This is necessary, for example,
25479 # in the case of _POSIX_SOURCE, which is predefined and required
25480 # on some systems where configure will not decide to define it.
25481 if (defundef == "undef") {
25482 print "/*", prefix defundef, macro, "*/"
25483 next
25487 { print }
25488 _ACAWK
25489 _ACEOF
25490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25491 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25492 fi # test -n "$CONFIG_HEADERS"
25495 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25496 shift
25497 for ac_tag
25499 case $ac_tag in
25500 :[FHLC]) ac_mode=$ac_tag; continue;;
25501 esac
25502 case $ac_mode$ac_tag in
25503 :[FHL]*:*);;
25504 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25505 :[FH]-) ac_tag=-:-;;
25506 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25507 esac
25508 ac_save_IFS=$IFS
25509 IFS=:
25510 set x $ac_tag
25511 IFS=$ac_save_IFS
25512 shift
25513 ac_file=$1
25514 shift
25516 case $ac_mode in
25517 :L) ac_source=$1;;
25518 :[FH])
25519 ac_file_inputs=
25520 for ac_f
25522 case $ac_f in
25523 -) ac_f="$tmp/stdin";;
25524 *) # Look for the file first in the build tree, then in the source tree
25525 # (if the path is not absolute). The absolute path cannot be DOS-style,
25526 # because $ac_f cannot contain `:'.
25527 test -f "$ac_f" ||
25528 case $ac_f in
25529 [\\/$]*) false;;
25530 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25531 esac ||
25532 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25533 esac
25534 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25535 as_fn_append ac_file_inputs " '$ac_f'"
25536 done
25538 # Let's still pretend it is `configure' which instantiates (i.e., don't
25539 # use $as_me), people would be surprised to read:
25540 # /* config.h. Generated by config.status. */
25541 configure_input='Generated from '`
25542 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25543 `' by configure.'
25544 if test x"$ac_file" != x-; then
25545 configure_input="$ac_file. $configure_input"
25546 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25547 $as_echo "$as_me: creating $ac_file" >&6;}
25549 # Neutralize special characters interpreted by sed in replacement strings.
25550 case $configure_input in #(
25551 *\&* | *\|* | *\\* )
25552 ac_sed_conf_input=`$as_echo "$configure_input" |
25553 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25554 *) ac_sed_conf_input=$configure_input;;
25555 esac
25557 case $ac_tag in
25558 *:-:* | *:-) cat >"$tmp/stdin" \
25559 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25560 esac
25562 esac
25564 ac_dir=`$as_dirname -- "$ac_file" ||
25565 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25566 X"$ac_file" : 'X\(//\)[^/]' \| \
25567 X"$ac_file" : 'X\(//\)$' \| \
25568 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25569 $as_echo X"$ac_file" |
25570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25571 s//\1/
25574 /^X\(\/\/\)[^/].*/{
25575 s//\1/
25578 /^X\(\/\/\)$/{
25579 s//\1/
25582 /^X\(\/\).*/{
25583 s//\1/
25586 s/.*/./; q'`
25587 as_dir="$ac_dir"; as_fn_mkdir_p
25588 ac_builddir=.
25590 case "$ac_dir" in
25591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25594 # A ".." for each directory in $ac_dir_suffix.
25595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25596 case $ac_top_builddir_sub in
25597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25599 esac ;;
25600 esac
25601 ac_abs_top_builddir=$ac_pwd
25602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25603 # for backward compatibility:
25604 ac_top_builddir=$ac_top_build_prefix
25606 case $srcdir in
25607 .) # We are building in place.
25608 ac_srcdir=.
25609 ac_top_srcdir=$ac_top_builddir_sub
25610 ac_abs_top_srcdir=$ac_pwd ;;
25611 [\\/]* | ?:[\\/]* ) # Absolute name.
25612 ac_srcdir=$srcdir$ac_dir_suffix;
25613 ac_top_srcdir=$srcdir
25614 ac_abs_top_srcdir=$srcdir ;;
25615 *) # Relative name.
25616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25617 ac_top_srcdir=$ac_top_build_prefix$srcdir
25618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25619 esac
25620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25623 case $ac_mode in
25626 # CONFIG_FILE
25629 _ACEOF
25631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25632 # If the template does not know about datarootdir, expand it.
25633 # FIXME: This hack should be removed a few years after 2.60.
25634 ac_datarootdir_hack=; ac_datarootdir_seen=
25635 ac_sed_dataroot='
25636 /datarootdir/ {
25640 /@datadir@/p
25641 /@docdir@/p
25642 /@infodir@/p
25643 /@localedir@/p
25644 /@mandir@/p'
25645 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25646 *datarootdir*) ac_datarootdir_seen=yes;;
25647 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25649 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25650 _ACEOF
25651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25652 ac_datarootdir_hack='
25653 s&@datadir@&$datadir&g
25654 s&@docdir@&$docdir&g
25655 s&@infodir@&$infodir&g
25656 s&@localedir@&$localedir&g
25657 s&@mandir@&$mandir&g
25658 s&\\\${datarootdir}&$datarootdir&g' ;;
25659 esac
25660 _ACEOF
25662 # Neutralize VPATH when `$srcdir' = `.'.
25663 # Shell code in configure.ac might set extrasub.
25664 # FIXME: do we really want to maintain this feature?
25665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25666 ac_sed_extra="$ac_vpsub
25667 $extrasub
25668 _ACEOF
25669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25672 s|@configure_input@|$ac_sed_conf_input|;t t
25673 s&@top_builddir@&$ac_top_builddir_sub&;t t
25674 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25675 s&@srcdir@&$ac_srcdir&;t t
25676 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25677 s&@top_srcdir@&$ac_top_srcdir&;t t
25678 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25679 s&@builddir@&$ac_builddir&;t t
25680 s&@abs_builddir@&$ac_abs_builddir&;t t
25681 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25682 $ac_datarootdir_hack
25684 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
25685 if $ac_cs_awk_getline; then
25686 $AWK -f "$tmp/subs.awk"
25687 else
25688 $AWK -f "$tmp/subs.awk" | $SHELL
25689 fi >$tmp/out \
25690 || as_fn_error "could not create $ac_file" "$LINENO" 5
25692 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25693 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25694 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25696 which seems to be undefined. Please make sure it is defined." >&5
25697 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25698 which seems to be undefined. Please make sure it is defined." >&2;}
25700 rm -f "$tmp/stdin"
25701 case $ac_file in
25702 -) cat "$tmp/out" && rm -f "$tmp/out";;
25703 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25704 esac \
25705 || as_fn_error "could not create $ac_file" "$LINENO" 5
25709 # CONFIG_HEADER
25711 if test x"$ac_file" != x-; then
25713 $as_echo "/* $configure_input */" \
25714 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25715 } >"$tmp/config.h" \
25716 || as_fn_error "could not create $ac_file" "$LINENO" 5
25717 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25718 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25719 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25720 else
25721 rm -f "$ac_file"
25722 mv "$tmp/config.h" "$ac_file" \
25723 || as_fn_error "could not create $ac_file" "$LINENO" 5
25725 else
25726 $as_echo "/* $configure_input */" \
25727 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25728 || as_fn_error "could not create -" "$LINENO" 5
25732 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25733 $as_echo "$as_me: executing $ac_file commands" >&6;}
25735 esac
25738 case $ac_file$ac_mode in
25739 "as":F) chmod +x as ;;
25740 "collect-ld":F) chmod +x collect-ld ;;
25741 "nm":F) chmod +x nm ;;
25742 "default":C)
25743 case ${CONFIG_HEADERS} in
25744 *auto-host.h:config.in*)
25745 echo > cstamp-h ;;
25746 esac
25747 # Make sure all the subdirs exist.
25748 for d in $subdirs doc build
25750 test -d $d || mkdir $d
25751 done
25754 esac
25755 done # for ac_tag
25758 as_fn_exit 0
25759 _ACEOF
25760 ac_clean_files=$ac_clean_files_save
25762 test $ac_write_fail = 0 ||
25763 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
25766 # configure is writing to config.log, and then calls config.status.
25767 # config.status does its own redirection, appending to config.log.
25768 # Unfortunately, on DOS this fails, as config.log is still kept open
25769 # by configure, so config.status won't be able to write to it; its
25770 # output is simply discarded. So we exec the FD to /dev/null,
25771 # effectively closing config.log, so it can be properly (re)opened and
25772 # appended to by config.status. When coming back to configure, we
25773 # need to make the FD available again.
25774 if test "$no_create" != yes; then
25775 ac_cs_success=:
25776 ac_config_status_args=
25777 test "$silent" = yes &&
25778 ac_config_status_args="$ac_config_status_args --quiet"
25779 exec 5>/dev/null
25780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25781 exec 5>>config.log
25782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25783 # would make configure fail if this is the last instruction.
25784 $ac_cs_success || as_fn_exit $?
25786 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25788 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}